@builder.io/dev-tools 1.23.0-dev.202602040834.bdc0ad986 → 1.23.1-dev.202602041136.20ed347c4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +149 -30
- package/cli/index.cjs.map +3 -3
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +18 -5
- package/server/index.mjs +18 -5
- package/types/cli/__tests__/globSearch.spec.d.ts +1 -0
- package/types/cli/code-tools.d.ts +7 -0
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -85,6 +85,7 @@ export interface ToolContext {
|
|
|
85
85
|
} | null>;
|
|
86
86
|
}
|
|
87
87
|
export declare function resolveToolCalls(toolContext: ToolContext, toolCalls: LLMToolCalls[], existingToolResults: ContentMessageItemToolResult[] | undefined, onStep: (step: GenerateCompletionStep) => void): Promise<ContentMessageItemToolResult[]>;
|
|
88
|
+
export declare function globSearch(toolContext: ToolContext, { pattern }: CodeGenToolMap["Glob"]): Promise<ToolResolution>;
|
|
88
89
|
interface RipgrepMatch {
|
|
89
90
|
path: string;
|
|
90
91
|
lineNumber: number;
|
|
@@ -95,6 +96,12 @@ interface RipgrepResult {
|
|
|
95
96
|
}
|
|
96
97
|
export declare function runRipgrep(sys: DevToolsSys, bashWorkingDirectory: string, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
|
|
97
98
|
export declare function getRipgrepExecutable(sys: DevToolsSys): Promise<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Normalizes a glob pattern for use with ripgrep --files --glob.
|
|
101
|
+
* Adds recursive prefix when needed for better matching.
|
|
102
|
+
* @param pattern - The glob pattern to normalize
|
|
103
|
+
*/
|
|
104
|
+
export declare function normalizeGlobPattern(pattern: string): string;
|
|
98
105
|
/**
|
|
99
106
|
* Returns true if query is likely a string literal rather than a regex.
|
|
100
107
|
* Returns false otherwise.
|