@sunub/obsidian-mcp-server 0.3.6 → 0.3.9
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/build/config.d.ts +1 -27
- package/build/config.js +4 -31
- package/build/config.js.map +1 -1
- package/build/db.js +3 -0
- package/build/db.js.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/build/server.js +1 -1
- package/build/server.js.map +1 -1
- package/build/setup.d.ts +1 -0
- package/build/setup.js +4 -2
- package/build/setup.js.map +1 -1
- package/build/tools/create_document_with_properties/index.d.ts +5 -5
- package/build/tools/create_document_with_properties/index.js +2 -2
- package/build/tools/create_document_with_properties/index.js.map +1 -1
- package/build/tools/create_document_with_properties/params.d.ts +8 -8
- package/build/tools/create_document_with_properties/params.js +1 -1
- package/build/tools/create_document_with_properties/params.js.map +1 -1
- package/build/tools/generate_property/index.d.ts +1 -1
- package/build/tools/generate_property/index.js +1 -1
- package/build/tools/generate_property/index.js.map +1 -1
- package/build/tools/generate_property/params.d.ts +4 -4
- package/build/tools/index.d.ts +8 -8
- package/build/tools/index.js +5 -5
- package/build/tools/index.js.map +1 -1
- package/build/tools/organize_attachments/index.d.ts +1 -1
- package/build/tools/organize_attachments/index.js +2 -2
- package/build/tools/organize_attachments/index.js.map +1 -1
- package/build/tools/vault/index.d.ts +1 -1
- package/build/tools/vault/index.js +3 -3
- package/build/tools/vault/index.js.map +1 -1
- package/build/tools/vault/params.d.ts +2 -2
- package/build/tools/vault/types/collect_context.d.ts +32 -32
- package/build/tools/vault/types/collect_context.js +1 -1
- package/build/tools/vault/types/collect_context.js.map +1 -1
- package/build/tools/vault/types/list_all.d.ts +12 -12
- package/build/tools/vault/types/list_all.js +2 -2
- package/build/tools/vault/types/list_all.js.map +1 -1
- package/build/tools/vault/types/read_specific.d.ts +6 -6
- package/build/tools/vault/types/read_specific.js +1 -1
- package/build/tools/vault/types/read_specific.js.map +1 -1
- package/build/tools/vault/types/search.d.ts +10 -10
- package/build/tools/vault/utils/actions/collect_context.d.ts +1 -1
- package/build/tools/vault/utils/actions/collect_context.js +4 -4
- package/build/tools/vault/utils/actions/collect_context.js.map +1 -1
- package/build/tools/vault/utils/actions/list_all.d.ts +1 -1
- package/build/tools/vault/utils/actions/list_all.js +1 -1
- package/build/tools/vault/utils/actions/list_all.js.map +1 -1
- package/build/tools/vault/utils/actions/load_memory.d.ts +1 -1
- package/build/tools/vault/utils/actions/load_memory.js +3 -3
- package/build/tools/vault/utils/actions/load_memory.js.map +1 -1
- package/build/tools/vault/utils/actions/read.d.ts +1 -1
- package/build/tools/vault/utils/actions/read.js +1 -1
- package/build/tools/vault/utils/actions/read.js.map +1 -1
- package/build/tools/vault/utils/actions/search.d.ts +1 -1
- package/build/tools/vault/utils/actions/search.js +2 -2
- package/build/tools/vault/utils/actions/search.js.map +1 -1
- package/build/tools/vault/utils/shared.d.ts +1 -1
- package/build/tools/vault/utils.d.ts +7 -7
- package/build/tools/vault/utils.js +7 -7
- package/build/tools/vault/utils.js.map +1 -1
- package/build/tools/write_property/index.d.ts +5 -5
- package/build/tools/write_property/index.js +1 -1
- package/build/tools/write_property/index.js.map +1 -1
- package/build/tools/write_property/params.d.ts +8 -8
- package/build/utils/DirectoryWalker.d.ts +1 -1
- package/build/utils/Embedder.js +1 -1
- package/build/utils/Embedder.js.map +1 -1
- package/build/utils/Indexer.d.ts +2 -2
- package/build/utils/Indexer.js +2 -2
- package/build/utils/Indexer.js.map +1 -1
- package/build/utils/LLMClient.js +16 -0
- package/build/utils/LLMClient.js.map +1 -1
- package/build/utils/LocalReranker.js +1 -1
- package/build/utils/LocalReranker.js.map +1 -1
- package/build/utils/RAGIndexer.d.ts +1 -1
- package/build/utils/RAGIndexer.js +6 -6
- package/build/utils/RAGIndexer.js.map +1 -1
- package/build/utils/RerankerClient.js +20 -1
- package/build/utils/RerankerClient.js.map +1 -1
- package/build/utils/VaultManger/VaultManager.d.ts +3 -3
- package/build/utils/VaultManger/VaultManager.js +9 -9
- package/build/utils/VaultManger/VaultManager.js.map +1 -1
- package/build/utils/VaultManger/index.d.ts +3 -3
- package/build/utils/VaultManger/index.js +2 -2
- package/build/utils/VaultManger/index.js.map +1 -1
- package/build/utils/VaultManger/types.d.ts +1 -1
- package/build/utils/VaultWatcher.js +1 -1
- package/build/utils/VaultWatcher.js.map +1 -1
- package/build/utils/VectorDB.js +31 -6
- package/build/utils/VectorDB.js.map +1 -1
- package/build/utils/getVaultManager.d.ts +1 -1
- package/build/utils/getVaultManager.js +1 -1
- package/build/utils/getVaultManager.js.map +1 -1
- package/build/utils/processor/MatterParser.d.ts +1 -1
- package/build/utils/processor/MatterParser.js +1 -1
- package/build/utils/processor/MatterParser.js.map +1 -1
- package/package.json +13 -49
- package/LICENSE +0 -15
- package/README.md +0 -512
- package/build/cli/App.d.ts +0 -1
- package/build/cli/App.js +0 -194
- package/build/cli/App.js.map +0 -1
- package/build/cli/AppContainer.d.ts +0 -1
- package/build/cli/AppContainer.js +0 -18
- package/build/cli/AppContainer.js.map +0 -1
- package/build/cli/colors.d.ts +0 -15
- package/build/cli/colors.js +0 -15
- package/build/cli/colors.js.map +0 -1
- package/build/cli/commands/types.d.ts +0 -19
- package/build/cli/commands/types.js +0 -11
- package/build/cli/commands/types.js.map +0 -1
- package/build/cli/config/SettingContext.d.ts +0 -1
- package/build/cli/config/SettingContext.js +0 -2
- package/build/cli/config/SettingContext.js.map +0 -1
- package/build/cli/config/mcpServersConfig.d.ts +0 -30
- package/build/cli/config/mcpServersConfig.js +0 -119
- package/build/cli/config/mcpServersConfig.js.map +0 -1
- package/build/cli/config/settingSchema.d.ts +0 -180
- package/build/cli/config/settingSchema.js +0 -128
- package/build/cli/config/settingSchema.js.map +0 -1
- package/build/cli/constants.d.ts +0 -47
- package/build/cli/constants.js +0 -101
- package/build/cli/constants.js.map +0 -1
- package/build/cli/context/InputContext.d.ts +0 -12
- package/build/cli/context/InputContext.js +0 -10
- package/build/cli/context/InputContext.js.map +0 -1
- package/build/cli/context/KeypressContext.d.ts +0 -30
- package/build/cli/context/KeypressContext.js +0 -200
- package/build/cli/context/KeypressContext.js.map +0 -1
- package/build/cli/context/KeypressContext.util.d.ts +0 -7
- package/build/cli/context/KeypressContext.util.js +0 -476
- package/build/cli/context/KeypressContext.util.js.map +0 -1
- package/build/cli/hooks/useAtCompletion.d.ts +0 -12
- package/build/cli/hooks/useAtCompletion.js +0 -5
- package/build/cli/hooks/useAtCompletion.js.map +0 -1
- package/build/cli/hooks/useCommandCompletion.d.ts +0 -59
- package/build/cli/hooks/useCommandCompletion.js +0 -344
- package/build/cli/hooks/useCommandCompletion.js.map +0 -1
- package/build/cli/hooks/useCompletion.d.ts +0 -22
- package/build/cli/hooks/useCompletion.js +0 -84
- package/build/cli/hooks/useCompletion.js.map +0 -1
- package/build/cli/hooks/useDispatcher.d.ts +0 -6
- package/build/cli/hooks/useDispatcher.js +0 -286
- package/build/cli/hooks/useDispatcher.js.map +0 -1
- package/build/cli/hooks/useFocus.d.ts +0 -2
- package/build/cli/hooks/useFocus.js +0 -3
- package/build/cli/hooks/useFocus.js.map +0 -1
- package/build/cli/hooks/useInputHistory.d.ts +0 -24
- package/build/cli/hooks/useInputHistory.js +0 -159
- package/build/cli/hooks/useInputHistory.js.map +0 -1
- package/build/cli/hooks/useKeyMatchers.d.ts +0 -17
- package/build/cli/hooks/useKeyMatchers.js +0 -13
- package/build/cli/hooks/useKeyMatchers.js.map +0 -1
- package/build/cli/hooks/useKeypress.d.ts +0 -19
- package/build/cli/hooks/useKeypress.js +0 -28
- package/build/cli/hooks/useKeypress.js.map +0 -1
- package/build/cli/hooks/useLlmStream/constants.d.ts +0 -4
- package/build/cli/hooks/useLlmStream/constants.js +0 -5
- package/build/cli/hooks/useLlmStream/constants.js.map +0 -1
- package/build/cli/hooks/useLlmStream/index.d.ts +0 -2
- package/build/cli/hooks/useLlmStream/index.js +0 -2
- package/build/cli/hooks/useLlmStream/index.js.map +0 -1
- package/build/cli/hooks/useLlmStream/llmService.d.ts +0 -2
- package/build/cli/hooks/useLlmStream/llmService.js +0 -110
- package/build/cli/hooks/useLlmStream/llmService.js.map +0 -1
- package/build/cli/hooks/useLlmStream/types.d.ts +0 -38
- package/build/cli/hooks/useLlmStream/types.js +0 -2
- package/build/cli/hooks/useLlmStream/types.js.map +0 -1
- package/build/cli/hooks/useLlmStream/useLlmStream.d.ts +0 -12
- package/build/cli/hooks/useLlmStream/useLlmStream.js +0 -162
- package/build/cli/hooks/useLlmStream/useLlmStream.js.map +0 -1
- package/build/cli/hooks/useLlmStream/utils.d.ts +0 -15
- package/build/cli/hooks/useLlmStream/utils.js +0 -108
- package/build/cli/hooks/useLlmStream/utils.js.map +0 -1
- package/build/cli/hooks/useMcpClient.d.ts +0 -10
- package/build/cli/hooks/useMcpClient.js +0 -100
- package/build/cli/hooks/useMcpClient.js.map +0 -1
- package/build/cli/hooks/useMcpManager.d.ts +0 -26
- package/build/cli/hooks/useMcpManager.js +0 -89
- package/build/cli/hooks/useMcpManager.js.map +0 -1
- package/build/cli/hooks/usePromptCompletion.d.ts +0 -19
- package/build/cli/hooks/usePromptCompletion.js +0 -13
- package/build/cli/hooks/usePromptCompletion.js.map +0 -1
- package/build/cli/hooks/useRagContext.d.ts +0 -6
- package/build/cli/hooks/useRagContext.js +0 -83
- package/build/cli/hooks/useRagContext.js.map +0 -1
- package/build/cli/hooks/useShellCompletion.d.ts +0 -18
- package/build/cli/hooks/useShellCompletion.js +0 -10
- package/build/cli/hooks/useShellCompletion.js.map +0 -1
- package/build/cli/hooks/useSlashCompletion.d.ts +0 -21
- package/build/cli/hooks/useSlashCompletion.js +0 -11
- package/build/cli/hooks/useSlashCompletion.js.map +0 -1
- package/build/cli/hooks/useTerminalSize.d.ts +0 -4
- package/build/cli/hooks/useTerminalSize.js +0 -21
- package/build/cli/hooks/useTerminalSize.js.map +0 -1
- package/build/cli/index.d.ts +0 -1
- package/build/cli/index.js +0 -10
- package/build/cli/index.js.map +0 -1
- package/build/cli/key/input.d.ts +0 -5
- package/build/cli/key/input.js +0 -9
- package/build/cli/key/input.js.map +0 -1
- package/build/cli/key/keyBindings.d.ts +0 -152
- package/build/cli/key/keyBindings.js +0 -630
- package/build/cli/key/keyBindings.js.map +0 -1
- package/build/cli/key/keyMatchers.d.ts +0 -19
- package/build/cli/key/keyMatchers.js +0 -25
- package/build/cli/key/keyMatchers.js.map +0 -1
- package/build/cli/key/mouse.d.ts +0 -23
- package/build/cli/key/mouse.js +0 -155
- package/build/cli/key/mouse.js.map +0 -1
- package/build/cli/key/text-buffer-bestcase.d.ts +0 -867
- package/build/cli/key/text-buffer-bestcase.js +0 -2754
- package/build/cli/key/text-buffer-bestcase.js.map +0 -1
- package/build/cli/key/text-buffer.d.ts +0 -506
- package/build/cli/key/text-buffer.js +0 -919
- package/build/cli/key/text-buffer.js.map +0 -1
- package/build/cli/main.d.ts +0 -1
- package/build/cli/main.js +0 -20
- package/build/cli/main.js.map +0 -1
- package/build/cli/reference/HistoryItemDisplay.d.ts +0 -23
- package/build/cli/reference/HistoryItemDisplay.js +0 -63
- package/build/cli/reference/HistoryItemDisplay.js.map +0 -1
- package/build/cli/reference/InputContext.d.ts +0 -17
- package/build/cli/reference/InputContext.js +0 -16
- package/build/cli/reference/InputContext.js.map +0 -1
- package/build/cli/reference/KerypressContext.d.ts +0 -37
- package/build/cli/reference/KerypressContext.js +0 -791
- package/build/cli/reference/KerypressContext.js.map +0 -1
- package/build/cli/reference/MainContent.d.ts +0 -6
- package/build/cli/reference/MainContent.js +0 -207
- package/build/cli/reference/MainContent.js.map +0 -1
- package/build/cli/reference/UIStateContext.d.ts +0 -188
- package/build/cli/reference/UIStateContext.js +0 -16
- package/build/cli/reference/UIStateContext.js.map +0 -1
- package/build/cli/reference/text-buffer.d.ts +0 -867
- package/build/cli/reference/text-buffer.js +0 -2754
- package/build/cli/reference/text-buffer.js.map +0 -1
- package/build/cli/reference/useGeminiStream.d.ts +0 -42
- package/build/cli/reference/useGeminiStream.js +0 -1404
- package/build/cli/reference/useGeminiStream.js.map +0 -1
- package/build/cli/services/McpClientService.d.ts +0 -32
- package/build/cli/services/McpClientService.js +0 -123
- package/build/cli/services/McpClientService.js.map +0 -1
- package/build/cli/services/McpManager.d.ts +0 -28
- package/build/cli/services/McpManager.js +0 -146
- package/build/cli/services/McpManager.js.map +0 -1
- package/build/cli/theme/builtin/default-dark.d.ts +0 -7
- package/build/cli/theme/builtin/default-dark.js +0 -143
- package/build/cli/theme/builtin/default-dark.js.map +0 -1
- package/build/cli/theme/builtin/no-color.d.ts +0 -7
- package/build/cli/theme/builtin/no-color.js +0 -125
- package/build/cli/theme/builtin/no-color.js.map +0 -1
- package/build/cli/theme/builtin/tokyonight-dark.d.ts +0 -7
- package/build/cli/theme/builtin/tokyonight-dark.js +0 -146
- package/build/cli/theme/builtin/tokyonight-dark.js.map +0 -1
- package/build/cli/theme/semantic-colors.d.ts +0 -2
- package/build/cli/theme/semantic-colors.js +0 -19
- package/build/cli/theme/semantic-colors.js.map +0 -1
- package/build/cli/theme/semantic-tokens.d.ts +0 -42
- package/build/cli/theme/semantic-tokens.js +0 -77
- package/build/cli/theme/semantic-tokens.js.map +0 -1
- package/build/cli/theme/theme-manager.d.ts +0 -32
- package/build/cli/theme/theme-manager.js +0 -150
- package/build/cli/theme/theme-manager.js.map +0 -1
- package/build/cli/theme/theme.d.ts +0 -107
- package/build/cli/theme/theme.js +0 -333
- package/build/cli/theme/theme.js.map +0 -1
- package/build/cli/tmp.d.ts +0 -1
- package/build/cli/tmp.js +0 -27
- package/build/cli/tmp.js.map +0 -1
- package/build/cli/types.d.ts +0 -74
- package/build/cli/types.js +0 -8
- package/build/cli/types.js.map +0 -1
- package/build/cli/ui/ConnectionStatus.d.ts +0 -13
- package/build/cli/ui/ConnectionStatus.js +0 -24
- package/build/cli/ui/ConnectionStatus.js.map +0 -1
- package/build/cli/ui/HelpCommands.d.ts +0 -5
- package/build/cli/ui/HelpCommands.js +0 -11
- package/build/cli/ui/HelpCommands.js.map +0 -1
- package/build/cli/ui/HistoryItemDisplay.d.ts +0 -9
- package/build/cli/ui/HistoryItemDisplay.js +0 -38
- package/build/cli/ui/HistoryItemDisplay.js.map +0 -1
- package/build/cli/ui/InputPrompt-bestcase.d.ts +0 -63
- package/build/cli/ui/InputPrompt-bestcase.js +0 -1301
- package/build/cli/ui/InputPrompt-bestcase.js.map +0 -1
- package/build/cli/ui/InputPrompt.d.ts +0 -13
- package/build/cli/ui/InputPrompt.js +0 -145
- package/build/cli/ui/InputPrompt.js.map +0 -1
- package/build/cli/ui/InputPrompt.tmp.d.ts +0 -7
- package/build/cli/ui/InputPrompt.tmp.js +0 -215
- package/build/cli/ui/InputPrompt.tmp.js.map +0 -1
- package/build/cli/ui/LLMErrorComponent.d.ts +0 -6
- package/build/cli/ui/LLMErrorComponent.js +0 -14
- package/build/cli/ui/LLMErrorComponent.js.map +0 -1
- package/build/cli/ui/LLMHealthChecker.d.ts +0 -8
- package/build/cli/ui/LLMHealthChecker.js +0 -22
- package/build/cli/ui/LLMHealthChecker.js.map +0 -1
- package/build/cli/ui/MCPServers.d.ts +0 -11
- package/build/cli/ui/MCPServers.js +0 -18
- package/build/cli/ui/MCPServers.js.map +0 -1
- package/build/cli/ui/MainContent.d.ts +0 -10
- package/build/cli/ui/MainContent.js +0 -24
- package/build/cli/ui/MainContent.js.map +0 -1
- package/build/cli/ui/MouseContext.d.ts +0 -1
- package/build/cli/ui/MouseContext.js +0 -2
- package/build/cli/ui/MouseContext.js.map +0 -1
- package/build/cli/ui/SuggestionsDisplay.d.ts +0 -25
- package/build/cli/ui/SuggestionsDisplay.js +0 -45
- package/build/cli/ui/SuggestionsDisplay.js.map +0 -1
- package/build/cli/ui/ThinkingIndicator.d.ts +0 -2
- package/build/cli/ui/ThinkingIndicator.js +0 -16
- package/build/cli/ui/ThinkingIndicator.js.map +0 -1
- package/build/cli/ui/layout/DefaultAppLayout.d.ts +0 -2
- package/build/cli/ui/layout/DefaultAppLayout.js +0 -6
- package/build/cli/ui/layout/DefaultAppLayout.js.map +0 -1
- package/build/cli/ui/shared/ExpandableText.d.ts +0 -14
- package/build/cli/ui/shared/ExpandableText.js +0 -19
- package/build/cli/ui/shared/ExpandableText.js.map +0 -1
- package/build/cli/utils/cache.d.ts +0 -21
- package/build/cli/utils/cache.js +0 -56
- package/build/cli/utils/cache.js.map +0 -1
- package/build/cli/utils/commandUtils.d.ts +0 -11
- package/build/cli/utils/commandUtils.js +0 -16
- package/build/cli/utils/commandUtils.js.map +0 -1
- package/build/cli/utils/debugLogger.d.ts +0 -12
- package/build/cli/utils/debugLogger.js +0 -54
- package/build/cli/utils/debugLogger.js.map +0 -1
- package/build/cli/utils/historyStorage.d.ts +0 -13
- package/build/cli/utils/historyStorage.js +0 -64
- package/build/cli/utils/historyStorage.js.map +0 -1
- package/build/cli/utils/textUtil.d.ts +0 -68
- package/build/cli/utils/textUtil.js +0 -236
- package/build/cli/utils/textUtil.js.map +0 -1
|
@@ -53,10 +53,10 @@ export declare const collectContextDocumentSchema: z.ZodObject<{
|
|
|
53
53
|
backlinks_count: z.ZodNumber;
|
|
54
54
|
truncated: z.ZodBoolean;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
|
|
56
|
+
filename: string;
|
|
57
57
|
tags: string[];
|
|
58
|
+
title: string;
|
|
58
59
|
summary: string;
|
|
59
|
-
filename: string;
|
|
60
60
|
stats: {
|
|
61
61
|
contentLength: number;
|
|
62
62
|
wordCount: number;
|
|
@@ -70,10 +70,10 @@ export declare const collectContextDocumentSchema: z.ZodObject<{
|
|
|
70
70
|
relevance: "high" | "medium" | "low";
|
|
71
71
|
backlinks_count: number;
|
|
72
72
|
}, {
|
|
73
|
-
|
|
73
|
+
filename: string;
|
|
74
74
|
tags: string[];
|
|
75
|
+
title: string;
|
|
75
76
|
summary: string;
|
|
76
|
-
filename: string;
|
|
77
77
|
stats: {
|
|
78
78
|
contentLength: number;
|
|
79
79
|
wordCount: number;
|
|
@@ -166,10 +166,10 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
166
166
|
backlinks_count: z.ZodNumber;
|
|
167
167
|
truncated: z.ZodBoolean;
|
|
168
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
|
-
|
|
169
|
+
filename: string;
|
|
170
170
|
tags: string[];
|
|
171
|
+
title: string;
|
|
171
172
|
summary: string;
|
|
172
|
-
filename: string;
|
|
173
173
|
stats: {
|
|
174
174
|
contentLength: number;
|
|
175
175
|
wordCount: number;
|
|
@@ -183,10 +183,10 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
183
183
|
relevance: "high" | "medium" | "low";
|
|
184
184
|
backlinks_count: number;
|
|
185
185
|
}, {
|
|
186
|
-
|
|
186
|
+
filename: string;
|
|
187
187
|
tags: string[];
|
|
188
|
+
title: string;
|
|
188
189
|
summary: string;
|
|
189
|
-
filename: string;
|
|
190
190
|
stats: {
|
|
191
191
|
contentLength: number;
|
|
192
192
|
wordCount: number;
|
|
@@ -319,10 +319,10 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
319
319
|
}>;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
321
|
documents: {
|
|
322
|
-
|
|
322
|
+
filename: string;
|
|
323
323
|
tags: string[];
|
|
324
|
+
title: string;
|
|
324
325
|
summary: string;
|
|
325
|
-
filename: string;
|
|
326
326
|
stats: {
|
|
327
327
|
contentLength: number;
|
|
328
328
|
wordCount: number;
|
|
@@ -382,10 +382,10 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
382
382
|
} | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
documents: {
|
|
385
|
-
|
|
385
|
+
filename: string;
|
|
386
386
|
tags: string[];
|
|
387
|
+
title: string;
|
|
387
388
|
summary: string;
|
|
388
|
-
filename: string;
|
|
389
389
|
stats: {
|
|
390
390
|
contentLength: number;
|
|
391
391
|
wordCount: number;
|
|
@@ -501,10 +501,10 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
501
501
|
backlinks_count: z.ZodNumber;
|
|
502
502
|
truncated: z.ZodBoolean;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
|
|
504
|
+
filename: string;
|
|
505
505
|
tags: string[];
|
|
506
|
+
title: string;
|
|
506
507
|
summary: string;
|
|
507
|
-
filename: string;
|
|
508
508
|
stats: {
|
|
509
509
|
contentLength: number;
|
|
510
510
|
wordCount: number;
|
|
@@ -518,10 +518,10 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
518
518
|
relevance: "high" | "medium" | "low";
|
|
519
519
|
backlinks_count: number;
|
|
520
520
|
}, {
|
|
521
|
-
|
|
521
|
+
filename: string;
|
|
522
522
|
tags: string[];
|
|
523
|
+
title: string;
|
|
523
524
|
summary: string;
|
|
524
|
-
filename: string;
|
|
525
525
|
stats: {
|
|
526
526
|
contentLength: number;
|
|
527
527
|
wordCount: number;
|
|
@@ -680,10 +680,10 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
680
680
|
}>;
|
|
681
681
|
}, "strip", z.ZodTypeAny, {
|
|
682
682
|
documents: {
|
|
683
|
-
|
|
683
|
+
filename: string;
|
|
684
684
|
tags: string[];
|
|
685
|
+
title: string;
|
|
685
686
|
summary: string;
|
|
686
|
-
filename: string;
|
|
687
687
|
stats: {
|
|
688
688
|
contentLength: number;
|
|
689
689
|
wordCount: number;
|
|
@@ -752,10 +752,10 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
752
752
|
} | undefined;
|
|
753
753
|
}, {
|
|
754
754
|
documents: {
|
|
755
|
-
|
|
755
|
+
filename: string;
|
|
756
756
|
tags: string[];
|
|
757
|
+
title: string;
|
|
757
758
|
summary: string;
|
|
758
|
-
filename: string;
|
|
759
759
|
stats: {
|
|
760
760
|
contentLength: number;
|
|
761
761
|
wordCount: number;
|
|
@@ -857,10 +857,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
857
857
|
backlinks_count: z.ZodNumber;
|
|
858
858
|
truncated: z.ZodBoolean;
|
|
859
859
|
}, "strip", z.ZodTypeAny, {
|
|
860
|
-
|
|
860
|
+
filename: string;
|
|
861
861
|
tags: string[];
|
|
862
|
+
title: string;
|
|
862
863
|
summary: string;
|
|
863
|
-
filename: string;
|
|
864
864
|
stats: {
|
|
865
865
|
contentLength: number;
|
|
866
866
|
wordCount: number;
|
|
@@ -874,10 +874,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
874
874
|
relevance: "high" | "medium" | "low";
|
|
875
875
|
backlinks_count: number;
|
|
876
876
|
}, {
|
|
877
|
-
|
|
877
|
+
filename: string;
|
|
878
878
|
tags: string[];
|
|
879
|
+
title: string;
|
|
879
880
|
summary: string;
|
|
880
|
-
filename: string;
|
|
881
881
|
stats: {
|
|
882
882
|
contentLength: number;
|
|
883
883
|
wordCount: number;
|
|
@@ -1036,10 +1036,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1036
1036
|
}>;
|
|
1037
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1038
1038
|
documents: {
|
|
1039
|
-
|
|
1039
|
+
filename: string;
|
|
1040
1040
|
tags: string[];
|
|
1041
|
+
title: string;
|
|
1041
1042
|
summary: string;
|
|
1042
|
-
filename: string;
|
|
1043
1043
|
stats: {
|
|
1044
1044
|
contentLength: number;
|
|
1045
1045
|
wordCount: number;
|
|
@@ -1108,10 +1108,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1108
1108
|
} | undefined;
|
|
1109
1109
|
}, {
|
|
1110
1110
|
documents: {
|
|
1111
|
-
|
|
1111
|
+
filename: string;
|
|
1112
1112
|
tags: string[];
|
|
1113
|
+
title: string;
|
|
1113
1114
|
summary: string;
|
|
1114
|
-
filename: string;
|
|
1115
1115
|
stats: {
|
|
1116
1116
|
contentLength: number;
|
|
1117
1117
|
wordCount: number;
|
|
@@ -1183,10 +1183,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1183
1183
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
1184
1184
|
text: {
|
|
1185
1185
|
documents: {
|
|
1186
|
-
|
|
1186
|
+
filename: string;
|
|
1187
1187
|
tags: string[];
|
|
1188
|
+
title: string;
|
|
1188
1189
|
summary: string;
|
|
1189
|
-
filename: string;
|
|
1190
1190
|
stats: {
|
|
1191
1191
|
contentLength: number;
|
|
1192
1192
|
wordCount: number;
|
|
@@ -1258,10 +1258,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1258
1258
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
1259
1259
|
text: {
|
|
1260
1260
|
documents: {
|
|
1261
|
-
|
|
1261
|
+
filename: string;
|
|
1262
1262
|
tags: string[];
|
|
1263
|
+
title: string;
|
|
1263
1264
|
summary: string;
|
|
1264
|
-
filename: string;
|
|
1265
1265
|
stats: {
|
|
1266
1266
|
contentLength: number;
|
|
1267
1267
|
wordCount: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { compressionModeSchema, responseTypeSchema } from "
|
|
2
|
+
import { compressionModeSchema, responseTypeSchema, } from "../../../tools/vault/params.js";
|
|
3
3
|
export const collectContextScopeSchema = z.enum(["topic", "all"]);
|
|
4
4
|
export const collectContextMemoryModeSchema = z.enum([
|
|
5
5
|
"response_only",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collect_context.js","sourceRoot":"","sources":["../../../../src/tools/vault/types/collect_context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"collect_context.js","sourceRoot":"","sources":["../../../../src/tools/vault/types/collect_context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACN,qBAAqB,EACrB,kBAAkB,GAClB,M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A+B;CAC5C,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,gCAAgC;CACtC,CAAC,CAAC"}
|
|
@@ -35,6 +35,7 @@ declare const documentSchema: z.ZodObject<{
|
|
|
35
35
|
contentLength: number;
|
|
36
36
|
}>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
filename: string;
|
|
38
39
|
metadata: {
|
|
39
40
|
title: string;
|
|
40
41
|
date?: string | Date | undefined;
|
|
@@ -44,12 +45,12 @@ declare const documentSchema: z.ZodObject<{
|
|
|
44
45
|
category?: string | undefined;
|
|
45
46
|
completed?: boolean | undefined;
|
|
46
47
|
};
|
|
47
|
-
filename: string;
|
|
48
48
|
stats: {
|
|
49
49
|
contentLength: number;
|
|
50
50
|
};
|
|
51
51
|
fullPath: string;
|
|
52
52
|
}, {
|
|
53
|
+
filename: string;
|
|
53
54
|
metadata: {
|
|
54
55
|
title: string;
|
|
55
56
|
date?: string | Date | undefined;
|
|
@@ -59,7 +60,6 @@ declare const documentSchema: z.ZodObject<{
|
|
|
59
60
|
category?: string | undefined;
|
|
60
61
|
completed?: boolean | undefined;
|
|
61
62
|
};
|
|
62
|
-
filename: string;
|
|
63
63
|
stats: {
|
|
64
64
|
contentLength: number;
|
|
65
65
|
};
|
|
@@ -135,6 +135,7 @@ export declare const listAllDocumentsDataSchema: z.ZodObject<{
|
|
|
135
135
|
contentLength: number;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
filename: string;
|
|
138
139
|
metadata: {
|
|
139
140
|
title: string;
|
|
140
141
|
date?: string | Date | undefined;
|
|
@@ -144,12 +145,12 @@ export declare const listAllDocumentsDataSchema: z.ZodObject<{
|
|
|
144
145
|
category?: string | undefined;
|
|
145
146
|
completed?: boolean | undefined;
|
|
146
147
|
};
|
|
147
|
-
filename: string;
|
|
148
148
|
stats: {
|
|
149
149
|
contentLength: number;
|
|
150
150
|
};
|
|
151
151
|
fullPath: string;
|
|
152
152
|
}, {
|
|
153
|
+
filename: string;
|
|
153
154
|
metadata: {
|
|
154
155
|
title: string;
|
|
155
156
|
date?: string | Date | undefined;
|
|
@@ -159,7 +160,6 @@ export declare const listAllDocumentsDataSchema: z.ZodObject<{
|
|
|
159
160
|
category?: string | undefined;
|
|
160
161
|
completed?: boolean | undefined;
|
|
161
162
|
};
|
|
162
|
-
filename: string;
|
|
163
163
|
stats: {
|
|
164
164
|
contentLength: number;
|
|
165
165
|
};
|
|
@@ -167,6 +167,7 @@ export declare const listAllDocumentsDataSchema: z.ZodObject<{
|
|
|
167
167
|
}>, "many">;
|
|
168
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
169
|
documents: {
|
|
170
|
+
filename: string;
|
|
170
171
|
metadata: {
|
|
171
172
|
title: string;
|
|
172
173
|
date?: string | Date | undefined;
|
|
@@ -176,7 +177,6 @@ export declare const listAllDocumentsDataSchema: z.ZodObject<{
|
|
|
176
177
|
category?: string | undefined;
|
|
177
178
|
completed?: boolean | undefined;
|
|
178
179
|
};
|
|
179
|
-
filename: string;
|
|
180
180
|
stats: {
|
|
181
181
|
contentLength: number;
|
|
182
182
|
};
|
|
@@ -188,6 +188,7 @@ export declare const listAllDocumentsDataSchema: z.ZodObject<{
|
|
|
188
188
|
};
|
|
189
189
|
}, {
|
|
190
190
|
documents: {
|
|
191
|
+
filename: string;
|
|
191
192
|
metadata: {
|
|
192
193
|
title: string;
|
|
193
194
|
date?: string | Date | undefined;
|
|
@@ -197,7 +198,6 @@ export declare const listAllDocumentsDataSchema: z.ZodObject<{
|
|
|
197
198
|
category?: string | undefined;
|
|
198
199
|
completed?: boolean | undefined;
|
|
199
200
|
};
|
|
200
|
-
filename: string;
|
|
201
201
|
stats: {
|
|
202
202
|
contentLength: number;
|
|
203
203
|
};
|
|
@@ -257,6 +257,7 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
257
257
|
contentLength: number;
|
|
258
258
|
}>;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
filename: string;
|
|
260
261
|
metadata: {
|
|
261
262
|
title: string;
|
|
262
263
|
date?: string | Date | undefined;
|
|
@@ -266,12 +267,12 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
266
267
|
category?: string | undefined;
|
|
267
268
|
completed?: boolean | undefined;
|
|
268
269
|
};
|
|
269
|
-
filename: string;
|
|
270
270
|
stats: {
|
|
271
271
|
contentLength: number;
|
|
272
272
|
};
|
|
273
273
|
fullPath: string;
|
|
274
274
|
}, {
|
|
275
|
+
filename: string;
|
|
275
276
|
metadata: {
|
|
276
277
|
title: string;
|
|
277
278
|
date?: string | Date | undefined;
|
|
@@ -281,7 +282,6 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
281
282
|
category?: string | undefined;
|
|
282
283
|
completed?: boolean | undefined;
|
|
283
284
|
};
|
|
284
|
-
filename: string;
|
|
285
285
|
stats: {
|
|
286
286
|
contentLength: number;
|
|
287
287
|
};
|
|
@@ -289,6 +289,7 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
289
289
|
}>, "many">;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
291
|
documents: {
|
|
292
|
+
filename: string;
|
|
292
293
|
metadata: {
|
|
293
294
|
title: string;
|
|
294
295
|
date?: string | Date | undefined;
|
|
@@ -298,7 +299,6 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
298
299
|
category?: string | undefined;
|
|
299
300
|
completed?: boolean | undefined;
|
|
300
301
|
};
|
|
301
|
-
filename: string;
|
|
302
302
|
stats: {
|
|
303
303
|
contentLength: number;
|
|
304
304
|
};
|
|
@@ -310,6 +310,7 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
310
310
|
};
|
|
311
311
|
}, {
|
|
312
312
|
documents: {
|
|
313
|
+
filename: string;
|
|
313
314
|
metadata: {
|
|
314
315
|
title: string;
|
|
315
316
|
date?: string | Date | undefined;
|
|
@@ -319,7 +320,6 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
319
320
|
category?: string | undefined;
|
|
320
321
|
completed?: boolean | undefined;
|
|
321
322
|
};
|
|
322
|
-
filename: string;
|
|
323
323
|
stats: {
|
|
324
324
|
contentLength: number;
|
|
325
325
|
};
|
|
@@ -334,6 +334,7 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
334
334
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
335
335
|
text: {
|
|
336
336
|
documents: {
|
|
337
|
+
filename: string;
|
|
337
338
|
metadata: {
|
|
338
339
|
title: string;
|
|
339
340
|
date?: string | Date | undefined;
|
|
@@ -343,7 +344,6 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
343
344
|
category?: string | undefined;
|
|
344
345
|
completed?: boolean | undefined;
|
|
345
346
|
};
|
|
346
|
-
filename: string;
|
|
347
347
|
stats: {
|
|
348
348
|
contentLength: number;
|
|
349
349
|
};
|
|
@@ -358,6 +358,7 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
358
358
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
359
359
|
text: {
|
|
360
360
|
documents: {
|
|
361
|
+
filename: string;
|
|
361
362
|
metadata: {
|
|
362
363
|
title: string;
|
|
363
364
|
date?: string | Date | undefined;
|
|
@@ -367,7 +368,6 @@ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
|
|
|
367
368
|
category?: string | undefined;
|
|
368
369
|
completed?: boolean | undefined;
|
|
369
370
|
};
|
|
370
|
-
filename: string;
|
|
371
371
|
stats: {
|
|
372
372
|
contentLength: number;
|
|
373
373
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { responseTypeSchema } from "../../../tools/vault/params.js";
|
|
2
3
|
import { FrontMatterSchema } from "../../../utils/processor/types.js";
|
|
3
|
-
import {
|
|
4
|
-
// import { metadataSchema } from '../params.js';
|
|
4
|
+
// import { metadataSchema } from '@/tools/vault/types/@/tools/vault/params.js';
|
|
5
5
|
// 실제 응답 구조에 맞춘 스키마
|
|
6
6
|
const metadataSchema = FrontMatterSchema;
|
|
7
7
|
const documentStatsSchema = z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_all.js","sourceRoot":"","sources":["../../../../src/tools/vault/types/list_all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"list_all.js","sourceRoot":"","sources":["../../../../src/tools/vault/types/list_all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,gFAAgF;AAEhF,mBAAmB;AACnB,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAEzC,MAAM,mBAAmB,GAAG,CAAC;KAC3B,MAAM,CAAC;IACP,aAAa,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,CAAC,2CAA2C,CAAC;CACvD,CAAC;KACD,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC;KACtB,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC7D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IACvE,QAAQ,EAAE,cAAc;IACxB,KAAK,EAAE,mBAAmB;CAC1B,CAAC;KACD,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AAEnC,MAAM,mBAAmB,GAAG,CAAC;KAC3B,MAAM,CAAC;IACP,eAAe,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,CAAC,wCAAwC,CAAC;IACpD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CACnE,CAAC;KACD,QAAQ,CAAC,2BAA2B,CAAC,CAAC;AAExC,MAAM,oBAAoB,GAAG,CAAC;KAC5B,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACvD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACrD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CAC7C,CAAC;KACD,QAAQ,CAAC,wCAAwC,CAAC,CAAC;AAErD,4BAA4B;AAC5B,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACzC,MAAM,CAAC;IACP,cAAc,EAAE,mBAAmB;IACnC,SAAS,EAAE,CAAC;SACV,KAAK,CAAC,cAAc,CAAC;SACrB,QAAQ,CAAC,oCAAoC,CAAC;CAChD,CAAC;KACD,QAAQ,CAAC,kDAAkD,CAAC,CAAC;AAE/D,wDAAwD;AACxD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACP,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;CAChC,CAAC;KACD,QAAQ,CAAC,iEAAiE,CAAC,CAAC"}
|
|
@@ -61,8 +61,8 @@ export declare const readSpecificFileDocumentData: z.ZodObject<{
|
|
|
61
61
|
filePath: string;
|
|
62
62
|
}>, "many">>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
content: string;
|
|
65
64
|
filePath: string;
|
|
65
|
+
content: string;
|
|
66
66
|
frontmatter: {
|
|
67
67
|
title: string;
|
|
68
68
|
date?: string | Date | undefined;
|
|
@@ -88,8 +88,8 @@ export declare const readSpecificFileDocumentData: z.ZodObject<{
|
|
|
88
88
|
filePath: string;
|
|
89
89
|
}[] | undefined;
|
|
90
90
|
}, {
|
|
91
|
-
content: string;
|
|
92
91
|
filePath: string;
|
|
92
|
+
content: string;
|
|
93
93
|
frontmatter: {
|
|
94
94
|
title: string;
|
|
95
95
|
date?: string | Date | undefined;
|
|
@@ -179,8 +179,8 @@ export declare const readSpecificFileResponseSchema: z.ZodObject<{
|
|
|
179
179
|
filePath: string;
|
|
180
180
|
}>, "many">>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
content: string;
|
|
183
182
|
filePath: string;
|
|
183
|
+
content: string;
|
|
184
184
|
frontmatter: {
|
|
185
185
|
title: string;
|
|
186
186
|
date?: string | Date | undefined;
|
|
@@ -206,8 +206,8 @@ export declare const readSpecificFileResponseSchema: z.ZodObject<{
|
|
|
206
206
|
filePath: string;
|
|
207
207
|
}[] | undefined;
|
|
208
208
|
}, {
|
|
209
|
-
content: string;
|
|
210
209
|
filePath: string;
|
|
210
|
+
content: string;
|
|
211
211
|
frontmatter: {
|
|
212
212
|
title: string;
|
|
213
213
|
date?: string | Date | undefined;
|
|
@@ -236,8 +236,8 @@ export declare const readSpecificFileResponseSchema: z.ZodObject<{
|
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
237
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
238
238
|
text: {
|
|
239
|
-
content: string;
|
|
240
239
|
filePath: string;
|
|
240
|
+
content: string;
|
|
241
241
|
frontmatter: {
|
|
242
242
|
title: string;
|
|
243
243
|
date?: string | Date | undefined;
|
|
@@ -266,8 +266,8 @@ export declare const readSpecificFileResponseSchema: z.ZodObject<{
|
|
|
266
266
|
}, {
|
|
267
267
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
268
268
|
text: {
|
|
269
|
-
content: string;
|
|
270
269
|
filePath: string;
|
|
270
|
+
content: string;
|
|
271
271
|
frontmatter: {
|
|
272
272
|
title: string;
|
|
273
273
|
date?: string | Date | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { responseTypeSchema } from "../../../tools/vault/params.js";
|
|
2
3
|
import { FrontMatterSchema } from "../../../utils/processor/types.js";
|
|
3
|
-
import { responseTypeSchema } from "../params.js";
|
|
4
4
|
const statsSchema = z
|
|
5
5
|
.object({
|
|
6
6
|
wordCount: z.number().describe("Total number of words in the content"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read_specific.js","sourceRoot":"","sources":["../../../../src/tools/vault/types/read_specific.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"read_specific.js","sourceRoot":"","sources":["../../../../src/tools/vault/types/read_specific.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,GAAG,CAAC;KACnB,MAAM,CAAC;IACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACtE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACtE,aAAa,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,CAAC,sDAAsD,CAAC;IAClE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACxE,cAAc,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,CAAC,2CAA2C,CAAC;CACvD,CAAC;KACD,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAE1D,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC1D,QAAQ,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,oCAAoC,CAAC;SAC9C,QAAQ,EAAE,EAAE,4BAA4B;IAC1C,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CACtC,sCAAsC,CACtC;IACD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACjE,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC;KACD,QAAQ,CACR,qEAAqE,CACrE,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,4BAA4B;CAClC,CAAC,CAAC"}
|
|
@@ -118,6 +118,7 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
118
118
|
note: string;
|
|
119
119
|
}>]>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
filename: string;
|
|
121
122
|
content: {
|
|
122
123
|
excerpt: string;
|
|
123
124
|
full: string;
|
|
@@ -134,7 +135,6 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
134
135
|
category?: string | undefined;
|
|
135
136
|
completed?: boolean | undefined;
|
|
136
137
|
};
|
|
137
|
-
filename: string;
|
|
138
138
|
stats: {
|
|
139
139
|
contentLength: number;
|
|
140
140
|
wordCount: number;
|
|
@@ -142,6 +142,7 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
142
142
|
};
|
|
143
143
|
fullPath: string;
|
|
144
144
|
}, {
|
|
145
|
+
filename: string;
|
|
145
146
|
content: {
|
|
146
147
|
excerpt: string;
|
|
147
148
|
full: string;
|
|
@@ -158,7 +159,6 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
158
159
|
category?: string | undefined;
|
|
159
160
|
completed?: boolean | undefined;
|
|
160
161
|
};
|
|
161
|
-
filename: string;
|
|
162
162
|
stats: {
|
|
163
163
|
contentLength: number;
|
|
164
164
|
wordCount: number;
|
|
@@ -231,6 +231,7 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
231
231
|
note: string;
|
|
232
232
|
}>]>;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
filename: string;
|
|
234
235
|
content: {
|
|
235
236
|
excerpt: string;
|
|
236
237
|
full: string;
|
|
@@ -247,7 +248,6 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
247
248
|
category?: string | undefined;
|
|
248
249
|
completed?: boolean | undefined;
|
|
249
250
|
};
|
|
250
|
-
filename: string;
|
|
251
251
|
stats: {
|
|
252
252
|
contentLength: number;
|
|
253
253
|
wordCount: number;
|
|
@@ -255,6 +255,7 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
255
255
|
};
|
|
256
256
|
fullPath: string;
|
|
257
257
|
}, {
|
|
258
|
+
filename: string;
|
|
258
259
|
content: {
|
|
259
260
|
excerpt: string;
|
|
260
261
|
full: string;
|
|
@@ -271,7 +272,6 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
271
272
|
category?: string | undefined;
|
|
272
273
|
completed?: boolean | undefined;
|
|
273
274
|
};
|
|
274
|
-
filename: string;
|
|
275
275
|
stats: {
|
|
276
276
|
contentLength: number;
|
|
277
277
|
wordCount: number;
|
|
@@ -281,6 +281,7 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
281
281
|
}>, "many">;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
283
|
documents: {
|
|
284
|
+
filename: string;
|
|
284
285
|
content: {
|
|
285
286
|
excerpt: string;
|
|
286
287
|
full: string;
|
|
@@ -297,7 +298,6 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
297
298
|
category?: string | undefined;
|
|
298
299
|
completed?: boolean | undefined;
|
|
299
300
|
};
|
|
300
|
-
filename: string;
|
|
301
301
|
stats: {
|
|
302
302
|
contentLength: number;
|
|
303
303
|
wordCount: number;
|
|
@@ -310,6 +310,7 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
310
310
|
total_in_vault: number;
|
|
311
311
|
}, {
|
|
312
312
|
documents: {
|
|
313
|
+
filename: string;
|
|
313
314
|
content: {
|
|
314
315
|
excerpt: string;
|
|
315
316
|
full: string;
|
|
@@ -326,7 +327,6 @@ export declare const SearchSuccessSchema: z.ZodObject<{
|
|
|
326
327
|
category?: string | undefined;
|
|
327
328
|
completed?: boolean | undefined;
|
|
328
329
|
};
|
|
329
|
-
filename: string;
|
|
330
330
|
stats: {
|
|
331
331
|
contentLength: number;
|
|
332
332
|
wordCount: number;
|
|
@@ -442,6 +442,7 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
442
442
|
note: string;
|
|
443
443
|
}>]>;
|
|
444
444
|
}, "strip", z.ZodTypeAny, {
|
|
445
|
+
filename: string;
|
|
445
446
|
content: {
|
|
446
447
|
excerpt: string;
|
|
447
448
|
full: string;
|
|
@@ -458,7 +459,6 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
458
459
|
category?: string | undefined;
|
|
459
460
|
completed?: boolean | undefined;
|
|
460
461
|
};
|
|
461
|
-
filename: string;
|
|
462
462
|
stats: {
|
|
463
463
|
contentLength: number;
|
|
464
464
|
wordCount: number;
|
|
@@ -466,6 +466,7 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
466
466
|
};
|
|
467
467
|
fullPath: string;
|
|
468
468
|
}, {
|
|
469
|
+
filename: string;
|
|
469
470
|
content: {
|
|
470
471
|
excerpt: string;
|
|
471
472
|
full: string;
|
|
@@ -482,7 +483,6 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
482
483
|
category?: string | undefined;
|
|
483
484
|
completed?: boolean | undefined;
|
|
484
485
|
};
|
|
485
|
-
filename: string;
|
|
486
486
|
stats: {
|
|
487
487
|
contentLength: number;
|
|
488
488
|
wordCount: number;
|
|
@@ -492,6 +492,7 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
492
492
|
}>, "many">;
|
|
493
493
|
}, "strip", z.ZodTypeAny, {
|
|
494
494
|
documents: {
|
|
495
|
+
filename: string;
|
|
495
496
|
content: {
|
|
496
497
|
excerpt: string;
|
|
497
498
|
full: string;
|
|
@@ -508,7 +509,6 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
508
509
|
category?: string | undefined;
|
|
509
510
|
completed?: boolean | undefined;
|
|
510
511
|
};
|
|
511
|
-
filename: string;
|
|
512
512
|
stats: {
|
|
513
513
|
contentLength: number;
|
|
514
514
|
wordCount: number;
|
|
@@ -521,6 +521,7 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
521
521
|
total_in_vault: number;
|
|
522
522
|
}, {
|
|
523
523
|
documents: {
|
|
524
|
+
filename: string;
|
|
524
525
|
content: {
|
|
525
526
|
excerpt: string;
|
|
526
527
|
full: string;
|
|
@@ -537,7 +538,6 @@ export declare const SearchResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
537
538
|
category?: string | undefined;
|
|
538
539
|
completed?: boolean | undefined;
|
|
539
540
|
};
|
|
540
|
-
filename: string;
|
|
541
541
|
stats: {
|
|
542
542
|
contentLength: number;
|
|
543
543
|
wordCount: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import type { ObsidianContentQueryParams } from "../../../../tools/vault/params.js";
|
|
2
3
|
import type { VaultManager } from "../../../../utils/VaultManger/VaultManager.js";
|
|
3
|
-
import type { ObsidianContentQueryParams } from "../../params.js";
|
|
4
4
|
export declare function collectContext(vaultManager: VaultManager, params: ObsidianContentQueryParams): Promise<CallToolResult>;
|