update workspace

This commit is contained in:
duanfuxiang
2025-06-27 22:08:36 +08:00
parent 0df4e4edd3
commit 772270863c
86 changed files with 6988 additions and 1156 deletions

View File

@@ -105,4 +105,50 @@ export type UseMcpToolArgs = {
parameters: Record<string, unknown>;
}
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | MatchSearchFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs | SearchWebToolArgs | FetchUrlsContentToolArgs | SwitchModeToolArgs | ApplyDiffToolArgs | UseMcpToolArgs;
export type DataviewQueryToolArgs = {
type: 'dataview_query';
query: string;
outputFormat: string;
finish?: boolean;
}
export type AnalyzePaperToolArgs = {
type: 'analyze_paper';
path: string;
finish?: boolean;
}
export type KeyInsightsToolArgs = {
type: 'key_insights';
path: string;
finish?: boolean;
}
export type DenseSummaryToolArgs = {
type: 'dense_summary';
path: string;
finish?: boolean;
}
export type ReflectionsToolArgs = {
type: 'reflections';
path: string;
finish?: boolean;
}
export type TableOfContentsToolArgs = {
type: 'table_of_contents';
path: string;
depth?: number;
format?: string;
include_summary?: boolean;
finish?: boolean;
}
export type SimpleSummaryToolArgs = {
type: 'simple_summary';
path: string;
finish?: boolean;
}
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | MatchSearchFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs | SearchWebToolArgs | FetchUrlsContentToolArgs | SwitchModeToolArgs | ApplyDiffToolArgs | UseMcpToolArgs | DataviewQueryToolArgs | AnalyzePaperToolArgs | KeyInsightsToolArgs | DenseSummaryToolArgs | ReflectionsToolArgs | TableOfContentsToolArgs | SimpleSummaryToolArgs;

View File

@@ -289,6 +289,8 @@ export const InfioSettingsSchema = z.object({
// multiSearchReplaceDiffStrategy
multiSearchReplaceDiffStrategy: z.boolean().catch(true),
// Workspace
workspace: z.string().catch(''),
// Mode
mode: z.string().catch('ask'),
defaultMention: z.enum(['none', 'current-file', 'vault']).catch('none'),