chore: include pre-built dist for github install
This commit is contained in:
Vendored
+11
@@ -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>;
|
||||
Vendored
+6
@@ -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/*"];
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export { createGlobTools } from "./tools";
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { GlobResult } from "./types";
|
||||
export declare function formatGlobResult(result: GlobResult): string;
|
||||
Vendored
+3
@@ -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>;
|
||||
Vendored
+21
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user