chore: include pre-built dist for github install

This commit is contained in:
Robin Mordasiewicz
2026-03-14 04:56:50 +00:00
parent a7f0a4cf46
commit bce8ff3a75
1011 changed files with 150081 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { type GrepBackend } from "./constants";
import type { GlobOptions, GlobResult } from "./types";
export interface ResolvedCli {
path: string;
backend: GrepBackend;
}
declare function buildRgArgs(options: GlobOptions): string[];
declare function buildFindArgs(options: GlobOptions): string[];
declare function buildPowerShellCommand(options: GlobOptions): string[];
export { buildRgArgs, buildFindArgs, buildPowerShellCommand };
export declare function runRgFiles(options: GlobOptions, resolvedCli?: ResolvedCli): Promise<GlobResult>;
+6
View File
@@ -0,0 +1,6 @@
export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend, DEFAULT_RG_THREADS } from "../grep/constants";
export declare const DEFAULT_TIMEOUT_MS = 60000;
export declare const DEFAULT_LIMIT = 100;
export declare const DEFAULT_MAX_DEPTH = 20;
export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
export declare const RG_FILES_FLAGS: readonly ["--files", "--color=never", "--glob=!.git/*"];
+1
View File
@@ -0,0 +1 @@
export { createGlobTools } from "./tools";
+2
View File
@@ -0,0 +1,2 @@
import type { GlobResult } from "./types";
export declare function formatGlobResult(result: GlobResult): string;
+3
View File
@@ -0,0 +1,3 @@
import type { PluginInput } from "@opencode-ai/plugin";
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
export declare function createGlobTools(ctx: PluginInput): Record<string, ToolDefinition>;
+21
View File
@@ -0,0 +1,21 @@
export interface FileMatch {
path: string;
mtime: number;
}
export interface GlobResult {
files: FileMatch[];
totalFiles: number;
truncated: boolean;
error?: string;
}
export interface GlobOptions {
pattern: string;
paths?: string[];
hidden?: boolean;
follow?: boolean;
noIgnore?: boolean;
maxDepth?: number;
timeout?: number;
limit?: number;
threads?: number;
}