mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 08:00:10 +00:00
update apply diff
This commit is contained in:
@@ -64,6 +64,13 @@ export type SearchAndReplaceToolArgs = {
|
||||
}[];
|
||||
}
|
||||
|
||||
export type ApplyDiffToolArgs = {
|
||||
type: 'apply_diff';
|
||||
filepath: string;
|
||||
diff: string;
|
||||
finish?: boolean;
|
||||
}
|
||||
|
||||
export type SearchWebToolArgs = {
|
||||
type: 'search_web';
|
||||
query: string;
|
||||
@@ -83,4 +90,4 @@ export type SwitchModeToolArgs = {
|
||||
finish?: boolean;
|
||||
}
|
||||
|
||||
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs | SearchWebToolArgs | FetchUrlsContentToolArgs | SwitchModeToolArgs;
|
||||
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs | SearchWebToolArgs | FetchUrlsContentToolArgs | SwitchModeToolArgs | ApplyDiffToolArgs;
|
||||
|
||||
@@ -219,6 +219,15 @@ export const InfioSettingsSchema = z.object({
|
||||
embeddingModelProvider: z.nativeEnum(ApiProvider).catch(ApiProvider.Google),
|
||||
embeddingModelId: z.string().catch(''),
|
||||
|
||||
// fuzzyMatchThreshold
|
||||
fuzzyMatchThreshold: z.number().catch(0.85),
|
||||
|
||||
// experimentalDiffStrategy
|
||||
experimentalDiffStrategy: z.boolean().catch(false),
|
||||
|
||||
// multiSearchReplaceDiffStrategy
|
||||
multiSearchReplaceDiffStrategy: z.boolean().catch(true),
|
||||
|
||||
// Mode
|
||||
mode: z.string().catch('ask'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user