@sunub/obsidian-mcp-server 0.2.0 → 0.3.0

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.
Files changed (283) hide show
  1. package/README.md +201 -25
  2. package/build/cli/AppContainer.d.ts +1 -0
  3. package/build/cli/AppContainer.js +197 -0
  4. package/build/cli/AppContainer.js.map +1 -0
  5. package/build/cli/app.js +7 -0
  6. package/build/cli/app.js.map +1 -0
  7. package/build/cli/config/SettingContext.d.ts +1 -0
  8. package/build/cli/config/SettingContext.js +2 -0
  9. package/build/cli/config/SettingContext.js.map +1 -0
  10. package/build/cli/config/mcpServersConfig.d.ts +18 -0
  11. package/build/cli/config/mcpServersConfig.js +119 -0
  12. package/build/cli/config/mcpServersConfig.js.map +1 -0
  13. package/build/cli/config/settingSchema.d.ts +180 -0
  14. package/build/cli/config/settingSchema.js +128 -0
  15. package/build/cli/config/settingSchema.js.map +1 -0
  16. package/build/cli/context/InputContext.d.ts +12 -0
  17. package/build/cli/context/InputContext.js +10 -0
  18. package/build/cli/context/InputContext.js.map +1 -0
  19. package/build/cli/context/KeypressContext.d.ts +30 -0
  20. package/build/cli/context/KeypressContext.js +200 -0
  21. package/build/cli/context/KeypressContext.js.map +1 -0
  22. package/build/cli/context/KeypressContext.util.d.ts +7 -0
  23. package/build/cli/context/KeypressContext.util.js +474 -0
  24. package/build/cli/context/KeypressContext.util.js.map +1 -0
  25. package/build/cli/hooks/useAtCompletion.d.ts +12 -0
  26. package/build/cli/hooks/useAtCompletion.js +5 -0
  27. package/build/cli/hooks/useAtCompletion.js.map +1 -0
  28. package/build/cli/hooks/useCommandCompletion.d.ts +59 -0
  29. package/build/cli/hooks/useCommandCompletion.js +344 -0
  30. package/build/cli/hooks/useCommandCompletion.js.map +1 -0
  31. package/build/cli/hooks/useCompletion.d.ts +22 -0
  32. package/build/cli/hooks/useCompletion.js +84 -0
  33. package/build/cli/hooks/useCompletion.js.map +1 -0
  34. package/build/cli/hooks/useDispatcher.d.ts +6 -0
  35. package/build/cli/hooks/useDispatcher.js +286 -0
  36. package/build/cli/hooks/useDispatcher.js.map +1 -0
  37. package/build/cli/hooks/useFocus.d.ts +2 -0
  38. package/build/cli/hooks/useFocus.js +3 -0
  39. package/build/cli/hooks/useFocus.js.map +1 -0
  40. package/build/cli/hooks/useInputHistory.d.ts +24 -0
  41. package/build/cli/hooks/useInputHistory.js +159 -0
  42. package/build/cli/hooks/useInputHistory.js.map +1 -0
  43. package/build/cli/hooks/useKeyMatchers.d.ts +17 -0
  44. package/build/cli/hooks/useKeyMatchers.js +13 -0
  45. package/build/cli/hooks/useKeyMatchers.js.map +1 -0
  46. package/build/cli/hooks/useKeypress.d.ts +19 -0
  47. package/build/cli/hooks/useKeypress.js +28 -0
  48. package/build/cli/hooks/useKeypress.js.map +1 -0
  49. package/build/cli/hooks/useLlmStream.d.ts +12 -0
  50. package/build/cli/hooks/useLlmStream.js +365 -0
  51. package/build/cli/hooks/useLlmStream.js.map +1 -0
  52. package/build/cli/hooks/useMcpClient.d.ts +10 -0
  53. package/build/cli/hooks/useMcpClient.js +100 -0
  54. package/build/cli/hooks/useMcpClient.js.map +1 -0
  55. package/build/cli/hooks/useMcpManager.d.ts +22 -0
  56. package/build/cli/hooks/useMcpManager.js +86 -0
  57. package/build/cli/hooks/useMcpManager.js.map +1 -0
  58. package/build/cli/hooks/usePromptCompletion.d.ts +19 -0
  59. package/build/cli/hooks/usePromptCompletion.js +13 -0
  60. package/build/cli/hooks/usePromptCompletion.js.map +1 -0
  61. package/build/cli/hooks/useRagContext.d.ts +6 -0
  62. package/build/cli/hooks/useRagContext.js +83 -0
  63. package/build/cli/hooks/useRagContext.js.map +1 -0
  64. package/build/cli/hooks/useShellCompletion.d.ts +18 -0
  65. package/build/cli/hooks/useShellCompletion.js +10 -0
  66. package/build/cli/hooks/useShellCompletion.js.map +1 -0
  67. package/build/cli/hooks/useSlashCompletion.d.ts +21 -0
  68. package/build/cli/hooks/useSlashCompletion.js +11 -0
  69. package/build/cli/hooks/useSlashCompletion.js.map +1 -0
  70. package/build/cli/hooks/useTerminalSize.d.ts +9 -0
  71. package/build/cli/hooks/useTerminalSize.js +26 -0
  72. package/build/cli/hooks/useTerminalSize.js.map +1 -0
  73. package/build/cli/index.js +27 -0
  74. package/build/cli/index.js.map +1 -0
  75. package/build/cli/key/keyBindings.d.ts +152 -0
  76. package/build/cli/key/keyBindings.js +630 -0
  77. package/build/cli/key/keyBindings.js.map +1 -0
  78. package/build/cli/key/keyMatchers.d.ts +27 -0
  79. package/build/cli/key/keyMatchers.js +33 -0
  80. package/build/cli/key/keyMatchers.js.map +1 -0
  81. package/build/cli/key/text-buffer-bestcase.js +2754 -0
  82. package/build/cli/key/text-buffer-bestcase.js.map +1 -0
  83. package/build/cli/key/text-buffer.js +918 -0
  84. package/build/cli/key/text-buffer.js.map +1 -0
  85. package/build/cli/reference/HistoryItemDisplay.d.ts +23 -0
  86. package/build/cli/reference/HistoryItemDisplay.js +63 -0
  87. package/build/cli/reference/HistoryItemDisplay.js.map +1 -0
  88. package/build/cli/reference/InputContext.d.ts +17 -0
  89. package/build/cli/reference/InputContext.js +16 -0
  90. package/build/cli/reference/InputContext.js.map +1 -0
  91. package/build/cli/reference/KerypressContext.d.ts +37 -0
  92. package/build/cli/reference/KerypressContext.js +791 -0
  93. package/build/cli/reference/KerypressContext.js.map +1 -0
  94. package/build/cli/reference/MainContent.d.ts +6 -0
  95. package/build/cli/reference/MainContent.js +207 -0
  96. package/build/cli/reference/MainContent.js.map +1 -0
  97. package/build/cli/reference/UIStateContext.d.ts +188 -0
  98. package/build/cli/reference/UIStateContext.js +16 -0
  99. package/build/cli/reference/UIStateContext.js.map +1 -0
  100. package/build/cli/reference/useGeminiStream.d.ts +42 -0
  101. package/build/cli/reference/useGeminiStream.js +1404 -0
  102. package/build/cli/reference/useGeminiStream.js.map +1 -0
  103. package/build/cli/services/McpClientService.d.ts +32 -0
  104. package/build/cli/services/McpClientService.js +123 -0
  105. package/build/cli/services/McpClientService.js.map +1 -0
  106. package/build/cli/services/McpManager.d.ts +28 -0
  107. package/build/cli/services/McpManager.js +146 -0
  108. package/build/cli/services/McpManager.js.map +1 -0
  109. package/build/cli/theme/builtin/no-color.js +125 -0
  110. package/build/cli/theme/builtin/no-color.js.map +1 -0
  111. package/build/cli/theme/builtin/tokyonight-dark.js +146 -0
  112. package/build/cli/theme/builtin/tokyonight-dark.js.map +1 -0
  113. package/build/cli/theme/semantic-colors.js +19 -0
  114. package/build/cli/theme/semantic-colors.js.map +1 -0
  115. package/build/cli/theme/semantic-tokens.js +77 -0
  116. package/build/cli/theme/semantic-tokens.js.map +1 -0
  117. package/build/cli/theme/theme-manager.d.ts +32 -0
  118. package/build/cli/theme/theme-manager.js +150 -0
  119. package/build/cli/theme/theme-manager.js.map +1 -0
  120. package/build/cli/theme/theme.js +333 -0
  121. package/build/cli/theme/theme.js.map +1 -0
  122. package/build/cli/tmp.js +27 -0
  123. package/build/cli/tmp.js.map +1 -0
  124. package/build/cli/types.d.ts +72 -0
  125. package/build/cli/types.js +8 -0
  126. package/build/cli/types.js.map +1 -0
  127. package/build/cli/ui/ConnectionStatus.d.ts +13 -0
  128. package/build/cli/ui/ConnectionStatus.js +24 -0
  129. package/build/cli/ui/ConnectionStatus.js.map +1 -0
  130. package/build/cli/ui/HelpCommands.d.ts +5 -0
  131. package/build/cli/ui/HelpCommands.js +11 -0
  132. package/build/cli/ui/HelpCommands.js.map +1 -0
  133. package/build/cli/ui/HistoryItemDisplay.d.ts +9 -0
  134. package/build/cli/ui/HistoryItemDisplay.js +38 -0
  135. package/build/cli/ui/HistoryItemDisplay.js.map +1 -0
  136. package/build/cli/ui/InputPrompt-bestcase.d.ts +63 -0
  137. package/build/cli/ui/InputPrompt-bestcase.js +1301 -0
  138. package/build/cli/ui/InputPrompt-bestcase.js.map +1 -0
  139. package/build/cli/ui/InputPrompt.d.ts +12 -0
  140. package/build/cli/ui/InputPrompt.js +145 -0
  141. package/build/cli/ui/InputPrompt.js.map +1 -0
  142. package/build/cli/ui/InputPrompt.tmp.d.ts +7 -0
  143. package/build/cli/ui/InputPrompt.tmp.js +215 -0
  144. package/build/cli/ui/InputPrompt.tmp.js.map +1 -0
  145. package/build/cli/ui/MainContent.d.ts +10 -0
  146. package/build/cli/ui/MainContent.js +24 -0
  147. package/build/cli/ui/MainContent.js.map +1 -0
  148. package/build/cli/ui/MouseContext.d.ts +1 -0
  149. package/build/cli/ui/MouseContext.js +2 -0
  150. package/build/cli/ui/MouseContext.js.map +1 -0
  151. package/build/cli/ui/SuggestionsDisplay.d.ts +25 -0
  152. package/build/cli/ui/SuggestionsDisplay.js +45 -0
  153. package/build/cli/ui/SuggestionsDisplay.js.map +1 -0
  154. package/build/cli/ui/ThinkingIndicator.d.ts +2 -0
  155. package/build/cli/ui/ThinkingIndicator.js +16 -0
  156. package/build/cli/ui/ThinkingIndicator.js.map +1 -0
  157. package/build/cli/ui/layout/DefaultAppLayout.d.ts +2 -0
  158. package/build/cli/ui/layout/DefaultAppLayout.js +6 -0
  159. package/build/cli/ui/layout/DefaultAppLayout.js.map +1 -0
  160. package/build/cli/ui/shared/ExpandableText.d.ts +14 -0
  161. package/build/cli/ui/shared/ExpandableText.js +19 -0
  162. package/build/cli/ui/shared/ExpandableText.js.map +1 -0
  163. package/build/cli/utils/commandUtils.d.ts +11 -0
  164. package/build/cli/utils/commandUtils.js +16 -0
  165. package/build/cli/utils/commandUtils.js.map +1 -0
  166. package/build/cli/utils/debugLogger.d.ts +12 -0
  167. package/build/cli/utils/debugLogger.js +52 -0
  168. package/build/cli/utils/debugLogger.js.map +1 -0
  169. package/build/cli/utils/historyStorage.d.ts +13 -0
  170. package/build/cli/utils/historyStorage.js +64 -0
  171. package/build/cli/utils/historyStorage.js.map +1 -0
  172. package/build/cli/utils/textUtil.d.ts +68 -0
  173. package/build/cli/utils/textUtil.js +236 -0
  174. package/build/cli/utils/textUtil.js.map +1 -0
  175. package/build/config.js +31 -5
  176. package/build/config.js.map +1 -0
  177. package/build/db.js +55 -0
  178. package/build/db.js.map +1 -0
  179. package/build/index.js +4 -0
  180. package/build/index.js.map +1 -0
  181. package/build/tools/create_document_with_properties/index.d.ts +60 -0
  182. package/build/tools/create_document_with_properties/index.js +6 -0
  183. package/build/tools/create_document_with_properties/index.js.map +1 -0
  184. package/build/tools/create_document_with_properties/params.d.ts +66 -0
  185. package/build/tools/generate_property/index.js +6 -0
  186. package/build/tools/generate_property/index.js.map +1 -0
  187. package/build/tools/index.d.ts +184 -0
  188. package/build/tools/organize_attachments/index.js +6 -0
  189. package/build/tools/organize_attachments/index.js.map +1 -0
  190. package/build/tools/organize_attachments/params.d.ts +122 -0
  191. package/build/tools/vault/index.js +16 -2
  192. package/build/tools/vault/index.js.map +1 -0
  193. package/build/tools/vault/params.d.ts +115 -0
  194. package/build/tools/vault/types/collect_context.d.ts +1340 -0
  195. package/build/tools/vault/types/list_all.d.ts +387 -0
  196. package/build/tools/vault/types/read_specific.d.ts +297 -0
  197. package/build/tools/vault/types/search.d.ts +598 -0
  198. package/build/tools/vault/utils/actions/collect_context.js +26 -1
  199. package/build/tools/vault/utils/actions/collect_context.js.map +1 -0
  200. package/build/tools/vault/utils/actions/index_rag.js +27 -0
  201. package/build/tools/vault/utils/actions/index_rag.js.map +1 -0
  202. package/build/tools/vault/utils/actions/list_all.js +1 -0
  203. package/build/tools/vault/utils/actions/list_all.js.map +1 -0
  204. package/build/tools/vault/utils/actions/load_memory.js +23 -13
  205. package/build/tools/vault/utils/actions/load_memory.js.map +1 -0
  206. package/build/tools/vault/utils/actions/read.js +2 -1
  207. package/build/tools/vault/utils/actions/read.js.map +1 -0
  208. package/build/tools/vault/utils/actions/search.js +2 -1
  209. package/build/tools/vault/utils/actions/search.js.map +1 -0
  210. package/build/tools/vault/utils/actions/search_semantic.js +54 -0
  211. package/build/tools/vault/utils/actions/search_semantic.js.map +1 -0
  212. package/build/tools/vault/utils/actions/stats.js +1 -0
  213. package/build/tools/vault/utils/actions/stats.js.map +1 -0
  214. package/build/tools/vault/utils/document.js +1 -0
  215. package/build/tools/vault/utils/document.js.map +1 -0
  216. package/build/tools/write_property/index.d.ts +58 -0
  217. package/build/tools/write_property/index.js +6 -0
  218. package/build/tools/write_property/index.js.map +1 -0
  219. package/build/utils/DirectoryWalker.d.ts +6 -0
  220. package/build/utils/DirectoryWalker.js +7 -0
  221. package/build/utils/DirectoryWalker.js.map +1 -0
  222. package/build/utils/Indexer.d.ts +18 -0
  223. package/build/utils/Indexer.js +5 -9
  224. package/build/utils/Indexer.js.map +1 -0
  225. package/build/utils/LLMClient.d.ts +37 -0
  226. package/build/utils/LLMClient.js +82 -0
  227. package/build/utils/LLMClient.js.map +1 -0
  228. package/build/utils/RAGIndexer.d.ts +22 -0
  229. package/build/utils/RAGIndexer.js +206 -0
  230. package/build/utils/RAGIndexer.js.map +1 -0
  231. package/build/utils/RerankerClient.d.ts +27 -0
  232. package/build/utils/RerankerClient.js +69 -0
  233. package/build/utils/RerankerClient.js.map +1 -0
  234. package/build/utils/VaultManger/VaultManager.d.ts +34 -0
  235. package/build/utils/VaultManger/VaultManager.js +1 -0
  236. package/build/utils/VaultManger/VaultManager.js.map +1 -0
  237. package/build/utils/VaultManger/VaultPathError.d.ts +6 -0
  238. package/build/utils/VaultManger/VaultPathError.js +1 -0
  239. package/build/utils/VaultManger/VaultPathError.js.map +1 -0
  240. package/build/utils/VaultManger/index.d.ts +3 -0
  241. package/build/utils/VaultManger/index.js +1 -0
  242. package/build/utils/VaultManger/index.js.map +1 -0
  243. package/build/utils/VaultManger/types.d.ts +16 -0
  244. package/build/utils/VaultManger/types.js +1 -0
  245. package/build/utils/VaultManger/types.js.map +1 -0
  246. package/build/utils/VaultWatcher.d.ts +8 -0
  247. package/build/utils/VaultWatcher.js +96 -0
  248. package/build/utils/VaultWatcher.js.map +1 -0
  249. package/build/utils/VectorDB.d.ts +53 -0
  250. package/build/utils/VectorDB.js +243 -0
  251. package/build/utils/VectorDB.js.map +1 -0
  252. package/build/utils/createToolError.d.ts +2 -0
  253. package/build/utils/createToolError.js +1 -0
  254. package/build/utils/createToolError.js.map +1 -0
  255. package/build/utils/getVaultManager.d.ts +2 -0
  256. package/build/utils/getVaultManager.js +1 -0
  257. package/build/utils/getVaultManager.js.map +1 -0
  258. package/build/utils/processor/LinkExtractor.d.ts +2 -0
  259. package/build/utils/processor/LinkExtractor.js +1 -0
  260. package/build/utils/processor/LinkExtractor.js.map +1 -0
  261. package/build/utils/processor/MatterParser.d.ts +2 -0
  262. package/build/utils/processor/MatterParser.js +12 -3
  263. package/build/utils/processor/MatterParser.js.map +1 -0
  264. package/build/utils/processor/types.d.ts +100 -0
  265. package/package.json +28 -3
  266. package/build/server.js +0 -32
  267. package/build/tools/create_document_with_properties/params.js +0 -32
  268. package/build/tools/generate_property/params.js +0 -54
  269. package/build/tools/index.js +0 -12
  270. package/build/tools/organize_attachments/params.js +0 -60
  271. package/build/tools/organize_attachments/utils.js +0 -65
  272. package/build/tools/vault/metrics.js +0 -126
  273. package/build/tools/vault/params.js +0 -141
  274. package/build/tools/vault/types/collect_context.js +0 -102
  275. package/build/tools/vault/types/list_all.js +0 -52
  276. package/build/tools/vault/types/read_specific.js +0 -40
  277. package/build/tools/vault/types/search.js +0 -58
  278. package/build/tools/vault/utils/constants.js +0 -2
  279. package/build/tools/vault/utils/shared.js +0 -74
  280. package/build/tools/vault/utils.js +0 -6
  281. package/build/tools/write_property/params.js +0 -51
  282. package/build/utils/processor/types.js +0 -27
  283. package/build/utils/semaphore.js +0 -25
@@ -0,0 +1,387 @@
1
+ import { z } from "zod";
2
+ declare const documentSchema: z.ZodObject<{
3
+ filename: z.ZodString;
4
+ fullPath: z.ZodString;
5
+ metadata: z.ZodObject<{
6
+ title: z.ZodString;
7
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
8
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ summary: z.ZodOptional<z.ZodString>;
10
+ slug: z.ZodOptional<z.ZodString>;
11
+ category: z.ZodOptional<z.ZodString>;
12
+ completed: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ title: string;
15
+ date?: string | Date | undefined;
16
+ tags?: string[] | undefined;
17
+ summary?: string | undefined;
18
+ slug?: string | undefined;
19
+ category?: string | undefined;
20
+ completed?: boolean | undefined;
21
+ }, {
22
+ title: string;
23
+ date?: string | Date | undefined;
24
+ tags?: string[] | undefined;
25
+ summary?: string | undefined;
26
+ slug?: string | undefined;
27
+ category?: string | undefined;
28
+ completed?: boolean | undefined;
29
+ }>;
30
+ stats: z.ZodObject<{
31
+ contentLength: z.ZodNumber;
32
+ }, "strip", z.ZodTypeAny, {
33
+ contentLength: number;
34
+ }, {
35
+ contentLength: number;
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ filename: string;
39
+ fullPath: string;
40
+ stats: {
41
+ contentLength: number;
42
+ };
43
+ metadata: {
44
+ title: string;
45
+ date?: string | Date | undefined;
46
+ tags?: string[] | undefined;
47
+ summary?: string | undefined;
48
+ slug?: string | undefined;
49
+ category?: string | undefined;
50
+ completed?: boolean | undefined;
51
+ };
52
+ }, {
53
+ filename: string;
54
+ fullPath: string;
55
+ stats: {
56
+ contentLength: number;
57
+ };
58
+ metadata: {
59
+ title: string;
60
+ date?: string | Date | undefined;
61
+ tags?: string[] | undefined;
62
+ summary?: string | undefined;
63
+ slug?: string | undefined;
64
+ category?: string | undefined;
65
+ completed?: boolean | undefined;
66
+ };
67
+ }>;
68
+ declare const vaultOverviewSchema: z.ZodObject<{
69
+ total_documents: z.ZodNumber;
70
+ showing: z.ZodNumber;
71
+ }, "strip", z.ZodTypeAny, {
72
+ total_documents: number;
73
+ showing: number;
74
+ }, {
75
+ total_documents: number;
76
+ showing: number;
77
+ }>;
78
+ declare const aiInstructionsSchema: z.ZodObject<{
79
+ purpose: z.ZodString;
80
+ usage: z.ZodString;
81
+ note: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ usage: string;
84
+ purpose: string;
85
+ note: string;
86
+ }, {
87
+ usage: string;
88
+ purpose: string;
89
+ note: string;
90
+ }>;
91
+ export declare const listAllDocumentsDataSchema: z.ZodObject<{
92
+ vault_overview: z.ZodObject<{
93
+ total_documents: z.ZodNumber;
94
+ showing: z.ZodNumber;
95
+ }, "strip", z.ZodTypeAny, {
96
+ total_documents: number;
97
+ showing: number;
98
+ }, {
99
+ total_documents: number;
100
+ showing: number;
101
+ }>;
102
+ documents: z.ZodArray<z.ZodObject<{
103
+ filename: z.ZodString;
104
+ fullPath: z.ZodString;
105
+ metadata: z.ZodObject<{
106
+ title: z.ZodString;
107
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
108
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
+ summary: z.ZodOptional<z.ZodString>;
110
+ slug: z.ZodOptional<z.ZodString>;
111
+ category: z.ZodOptional<z.ZodString>;
112
+ completed: z.ZodOptional<z.ZodBoolean>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ title: string;
115
+ date?: string | Date | undefined;
116
+ tags?: string[] | undefined;
117
+ summary?: string | undefined;
118
+ slug?: string | undefined;
119
+ category?: string | undefined;
120
+ completed?: boolean | undefined;
121
+ }, {
122
+ title: string;
123
+ date?: string | Date | undefined;
124
+ tags?: string[] | undefined;
125
+ summary?: string | undefined;
126
+ slug?: string | undefined;
127
+ category?: string | undefined;
128
+ completed?: boolean | undefined;
129
+ }>;
130
+ stats: z.ZodObject<{
131
+ contentLength: z.ZodNumber;
132
+ }, "strip", z.ZodTypeAny, {
133
+ contentLength: number;
134
+ }, {
135
+ contentLength: number;
136
+ }>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ filename: string;
139
+ fullPath: string;
140
+ stats: {
141
+ contentLength: number;
142
+ };
143
+ metadata: {
144
+ title: string;
145
+ date?: string | Date | undefined;
146
+ tags?: string[] | undefined;
147
+ summary?: string | undefined;
148
+ slug?: string | undefined;
149
+ category?: string | undefined;
150
+ completed?: boolean | undefined;
151
+ };
152
+ }, {
153
+ filename: string;
154
+ fullPath: string;
155
+ stats: {
156
+ contentLength: number;
157
+ };
158
+ metadata: {
159
+ title: string;
160
+ date?: string | Date | undefined;
161
+ tags?: string[] | undefined;
162
+ summary?: string | undefined;
163
+ slug?: string | undefined;
164
+ category?: string | undefined;
165
+ completed?: boolean | undefined;
166
+ };
167
+ }>, "many">;
168
+ }, "strip", z.ZodTypeAny, {
169
+ documents: {
170
+ filename: string;
171
+ fullPath: string;
172
+ stats: {
173
+ contentLength: number;
174
+ };
175
+ metadata: {
176
+ title: string;
177
+ date?: string | Date | undefined;
178
+ tags?: string[] | undefined;
179
+ summary?: string | undefined;
180
+ slug?: string | undefined;
181
+ category?: string | undefined;
182
+ completed?: boolean | undefined;
183
+ };
184
+ }[];
185
+ vault_overview: {
186
+ total_documents: number;
187
+ showing: number;
188
+ };
189
+ }, {
190
+ documents: {
191
+ filename: string;
192
+ fullPath: string;
193
+ stats: {
194
+ contentLength: number;
195
+ };
196
+ metadata: {
197
+ title: string;
198
+ date?: string | Date | undefined;
199
+ tags?: string[] | undefined;
200
+ summary?: string | undefined;
201
+ slug?: string | undefined;
202
+ category?: string | undefined;
203
+ completed?: boolean | undefined;
204
+ };
205
+ }[];
206
+ vault_overview: {
207
+ total_documents: number;
208
+ showing: number;
209
+ };
210
+ }>;
211
+ export declare const listAllDocumentsResponseSchema: z.ZodObject<{
212
+ type: z.ZodEnum<["text", "audio", "image", "resource", "resource_link"]>;
213
+ text: z.ZodObject<{
214
+ vault_overview: z.ZodObject<{
215
+ total_documents: z.ZodNumber;
216
+ showing: z.ZodNumber;
217
+ }, "strip", z.ZodTypeAny, {
218
+ total_documents: number;
219
+ showing: number;
220
+ }, {
221
+ total_documents: number;
222
+ showing: number;
223
+ }>;
224
+ documents: z.ZodArray<z.ZodObject<{
225
+ filename: z.ZodString;
226
+ fullPath: z.ZodString;
227
+ metadata: z.ZodObject<{
228
+ title: z.ZodString;
229
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
230
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
+ summary: z.ZodOptional<z.ZodString>;
232
+ slug: z.ZodOptional<z.ZodString>;
233
+ category: z.ZodOptional<z.ZodString>;
234
+ completed: z.ZodOptional<z.ZodBoolean>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ title: string;
237
+ date?: string | Date | undefined;
238
+ tags?: string[] | undefined;
239
+ summary?: string | undefined;
240
+ slug?: string | undefined;
241
+ category?: string | undefined;
242
+ completed?: boolean | undefined;
243
+ }, {
244
+ title: string;
245
+ date?: string | Date | undefined;
246
+ tags?: string[] | undefined;
247
+ summary?: string | undefined;
248
+ slug?: string | undefined;
249
+ category?: string | undefined;
250
+ completed?: boolean | undefined;
251
+ }>;
252
+ stats: z.ZodObject<{
253
+ contentLength: z.ZodNumber;
254
+ }, "strip", z.ZodTypeAny, {
255
+ contentLength: number;
256
+ }, {
257
+ contentLength: number;
258
+ }>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ filename: string;
261
+ fullPath: string;
262
+ stats: {
263
+ contentLength: number;
264
+ };
265
+ metadata: {
266
+ title: string;
267
+ date?: string | Date | undefined;
268
+ tags?: string[] | undefined;
269
+ summary?: string | undefined;
270
+ slug?: string | undefined;
271
+ category?: string | undefined;
272
+ completed?: boolean | undefined;
273
+ };
274
+ }, {
275
+ filename: string;
276
+ fullPath: string;
277
+ stats: {
278
+ contentLength: number;
279
+ };
280
+ metadata: {
281
+ title: string;
282
+ date?: string | Date | undefined;
283
+ tags?: string[] | undefined;
284
+ summary?: string | undefined;
285
+ slug?: string | undefined;
286
+ category?: string | undefined;
287
+ completed?: boolean | undefined;
288
+ };
289
+ }>, "many">;
290
+ }, "strip", z.ZodTypeAny, {
291
+ documents: {
292
+ filename: string;
293
+ fullPath: string;
294
+ stats: {
295
+ contentLength: number;
296
+ };
297
+ metadata: {
298
+ title: string;
299
+ date?: string | Date | undefined;
300
+ tags?: string[] | undefined;
301
+ summary?: string | undefined;
302
+ slug?: string | undefined;
303
+ category?: string | undefined;
304
+ completed?: boolean | undefined;
305
+ };
306
+ }[];
307
+ vault_overview: {
308
+ total_documents: number;
309
+ showing: number;
310
+ };
311
+ }, {
312
+ documents: {
313
+ filename: string;
314
+ fullPath: string;
315
+ stats: {
316
+ contentLength: number;
317
+ };
318
+ metadata: {
319
+ title: string;
320
+ date?: string | Date | undefined;
321
+ tags?: string[] | undefined;
322
+ summary?: string | undefined;
323
+ slug?: string | undefined;
324
+ category?: string | undefined;
325
+ completed?: boolean | undefined;
326
+ };
327
+ }[];
328
+ vault_overview: {
329
+ total_documents: number;
330
+ showing: number;
331
+ };
332
+ }>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ type: "text" | "image" | "audio" | "resource_link" | "resource";
335
+ text: {
336
+ documents: {
337
+ filename: string;
338
+ fullPath: string;
339
+ stats: {
340
+ contentLength: number;
341
+ };
342
+ metadata: {
343
+ title: string;
344
+ date?: string | Date | undefined;
345
+ tags?: string[] | undefined;
346
+ summary?: string | undefined;
347
+ slug?: string | undefined;
348
+ category?: string | undefined;
349
+ completed?: boolean | undefined;
350
+ };
351
+ }[];
352
+ vault_overview: {
353
+ total_documents: number;
354
+ showing: number;
355
+ };
356
+ };
357
+ }, {
358
+ type: "text" | "image" | "audio" | "resource_link" | "resource";
359
+ text: {
360
+ documents: {
361
+ filename: string;
362
+ fullPath: string;
363
+ stats: {
364
+ contentLength: number;
365
+ };
366
+ metadata: {
367
+ title: string;
368
+ date?: string | Date | undefined;
369
+ tags?: string[] | undefined;
370
+ summary?: string | undefined;
371
+ slug?: string | undefined;
372
+ category?: string | undefined;
373
+ completed?: boolean | undefined;
374
+ };
375
+ }[];
376
+ vault_overview: {
377
+ total_documents: number;
378
+ showing: number;
379
+ };
380
+ };
381
+ }>;
382
+ export type ListAllDocumentsResponse = z.infer<typeof listAllDocumentsResponseSchema>;
383
+ export type ListAllDocumentsData = z.infer<typeof listAllDocumentsDataSchema>;
384
+ export type DocumentInfo = z.infer<typeof documentSchema>;
385
+ export type VaultOverview = z.infer<typeof vaultOverviewSchema>;
386
+ export type AIInstructions = z.infer<typeof aiInstructionsSchema>;
387
+ export {};
@@ -0,0 +1,297 @@
1
+ import { z } from "zod";
2
+ export declare const readSpecificFileDocumentData: z.ZodObject<{
3
+ filePath: z.ZodString;
4
+ filename: z.ZodOptional<z.ZodString>;
5
+ frontmatter: z.ZodObject<{
6
+ title: z.ZodString;
7
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
8
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ summary: z.ZodOptional<z.ZodString>;
10
+ slug: z.ZodOptional<z.ZodString>;
11
+ category: z.ZodOptional<z.ZodString>;
12
+ completed: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ title: string;
15
+ date?: string | Date | undefined;
16
+ tags?: string[] | undefined;
17
+ summary?: string | undefined;
18
+ slug?: string | undefined;
19
+ category?: string | undefined;
20
+ completed?: boolean | undefined;
21
+ }, {
22
+ title: string;
23
+ date?: string | Date | undefined;
24
+ tags?: string[] | undefined;
25
+ summary?: string | undefined;
26
+ slug?: string | undefined;
27
+ category?: string | undefined;
28
+ completed?: boolean | undefined;
29
+ }>;
30
+ contentLength: z.ZodNumber;
31
+ imageLinks: z.ZodArray<z.ZodString, "many">;
32
+ documentLinks: z.ZodArray<z.ZodString, "many">;
33
+ content: z.ZodString;
34
+ stats: z.ZodObject<{
35
+ wordCount: z.ZodNumber;
36
+ lineCount: z.ZodNumber;
37
+ contentLength: z.ZodNumber;
38
+ hasContent: z.ZodBoolean;
39
+ characterCount: z.ZodNumber;
40
+ }, "strip", z.ZodTypeAny, {
41
+ contentLength: number;
42
+ characterCount: number;
43
+ wordCount: number;
44
+ hasContent: boolean;
45
+ lineCount: number;
46
+ }, {
47
+ contentLength: number;
48
+ characterCount: number;
49
+ wordCount: number;
50
+ hasContent: boolean;
51
+ lineCount: number;
52
+ }>;
53
+ backlinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ filePath: z.ZodString;
55
+ title: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ title: string;
58
+ filePath: string;
59
+ }, {
60
+ title: string;
61
+ filePath: string;
62
+ }>, "many">>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ content: string;
65
+ frontmatter: {
66
+ title: string;
67
+ date?: string | Date | undefined;
68
+ tags?: string[] | undefined;
69
+ summary?: string | undefined;
70
+ slug?: string | undefined;
71
+ category?: string | undefined;
72
+ completed?: boolean | undefined;
73
+ };
74
+ contentLength: number;
75
+ filePath: string;
76
+ stats: {
77
+ contentLength: number;
78
+ characterCount: number;
79
+ wordCount: number;
80
+ hasContent: boolean;
81
+ lineCount: number;
82
+ };
83
+ imageLinks: string[];
84
+ documentLinks: string[];
85
+ filename?: string | undefined;
86
+ backlinks?: {
87
+ title: string;
88
+ filePath: string;
89
+ }[] | undefined;
90
+ }, {
91
+ content: string;
92
+ frontmatter: {
93
+ title: string;
94
+ date?: string | Date | undefined;
95
+ tags?: string[] | undefined;
96
+ summary?: string | undefined;
97
+ slug?: string | undefined;
98
+ category?: string | undefined;
99
+ completed?: boolean | undefined;
100
+ };
101
+ contentLength: number;
102
+ filePath: string;
103
+ stats: {
104
+ contentLength: number;
105
+ characterCount: number;
106
+ wordCount: number;
107
+ hasContent: boolean;
108
+ lineCount: number;
109
+ };
110
+ imageLinks: string[];
111
+ documentLinks: string[];
112
+ filename?: string | undefined;
113
+ backlinks?: {
114
+ title: string;
115
+ filePath: string;
116
+ }[] | undefined;
117
+ }>;
118
+ export declare const readSpecificFileResponseSchema: z.ZodObject<{
119
+ type: z.ZodEnum<["text", "audio", "image", "resource", "resource_link"]>;
120
+ text: z.ZodObject<{
121
+ filePath: z.ZodString;
122
+ filename: z.ZodOptional<z.ZodString>;
123
+ frontmatter: z.ZodObject<{
124
+ title: z.ZodString;
125
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
126
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
127
+ summary: z.ZodOptional<z.ZodString>;
128
+ slug: z.ZodOptional<z.ZodString>;
129
+ category: z.ZodOptional<z.ZodString>;
130
+ completed: z.ZodOptional<z.ZodBoolean>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ title: string;
133
+ date?: string | Date | undefined;
134
+ tags?: string[] | undefined;
135
+ summary?: string | undefined;
136
+ slug?: string | undefined;
137
+ category?: string | undefined;
138
+ completed?: boolean | undefined;
139
+ }, {
140
+ title: string;
141
+ date?: string | Date | undefined;
142
+ tags?: string[] | undefined;
143
+ summary?: string | undefined;
144
+ slug?: string | undefined;
145
+ category?: string | undefined;
146
+ completed?: boolean | undefined;
147
+ }>;
148
+ contentLength: z.ZodNumber;
149
+ imageLinks: z.ZodArray<z.ZodString, "many">;
150
+ documentLinks: z.ZodArray<z.ZodString, "many">;
151
+ content: z.ZodString;
152
+ stats: z.ZodObject<{
153
+ wordCount: z.ZodNumber;
154
+ lineCount: z.ZodNumber;
155
+ contentLength: z.ZodNumber;
156
+ hasContent: z.ZodBoolean;
157
+ characterCount: z.ZodNumber;
158
+ }, "strip", z.ZodTypeAny, {
159
+ contentLength: number;
160
+ characterCount: number;
161
+ wordCount: number;
162
+ hasContent: boolean;
163
+ lineCount: number;
164
+ }, {
165
+ contentLength: number;
166
+ characterCount: number;
167
+ wordCount: number;
168
+ hasContent: boolean;
169
+ lineCount: number;
170
+ }>;
171
+ backlinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
+ filePath: z.ZodString;
173
+ title: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ title: string;
176
+ filePath: string;
177
+ }, {
178
+ title: string;
179
+ filePath: string;
180
+ }>, "many">>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ content: string;
183
+ frontmatter: {
184
+ title: string;
185
+ date?: string | Date | undefined;
186
+ tags?: string[] | undefined;
187
+ summary?: string | undefined;
188
+ slug?: string | undefined;
189
+ category?: string | undefined;
190
+ completed?: boolean | undefined;
191
+ };
192
+ contentLength: number;
193
+ filePath: string;
194
+ stats: {
195
+ contentLength: number;
196
+ characterCount: number;
197
+ wordCount: number;
198
+ hasContent: boolean;
199
+ lineCount: number;
200
+ };
201
+ imageLinks: string[];
202
+ documentLinks: string[];
203
+ filename?: string | undefined;
204
+ backlinks?: {
205
+ title: string;
206
+ filePath: string;
207
+ }[] | undefined;
208
+ }, {
209
+ content: string;
210
+ frontmatter: {
211
+ title: string;
212
+ date?: string | Date | undefined;
213
+ tags?: string[] | undefined;
214
+ summary?: string | undefined;
215
+ slug?: string | undefined;
216
+ category?: string | undefined;
217
+ completed?: boolean | undefined;
218
+ };
219
+ contentLength: number;
220
+ filePath: string;
221
+ stats: {
222
+ contentLength: number;
223
+ characterCount: number;
224
+ wordCount: number;
225
+ hasContent: boolean;
226
+ lineCount: number;
227
+ };
228
+ imageLinks: string[];
229
+ documentLinks: string[];
230
+ filename?: string | undefined;
231
+ backlinks?: {
232
+ title: string;
233
+ filePath: string;
234
+ }[] | undefined;
235
+ }>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ type: "text" | "image" | "audio" | "resource_link" | "resource";
238
+ text: {
239
+ content: string;
240
+ frontmatter: {
241
+ title: string;
242
+ date?: string | Date | undefined;
243
+ tags?: string[] | undefined;
244
+ summary?: string | undefined;
245
+ slug?: string | undefined;
246
+ category?: string | undefined;
247
+ completed?: boolean | undefined;
248
+ };
249
+ contentLength: number;
250
+ filePath: string;
251
+ stats: {
252
+ contentLength: number;
253
+ characterCount: number;
254
+ wordCount: number;
255
+ hasContent: boolean;
256
+ lineCount: number;
257
+ };
258
+ imageLinks: string[];
259
+ documentLinks: string[];
260
+ filename?: string | undefined;
261
+ backlinks?: {
262
+ title: string;
263
+ filePath: string;
264
+ }[] | undefined;
265
+ };
266
+ }, {
267
+ type: "text" | "image" | "audio" | "resource_link" | "resource";
268
+ text: {
269
+ content: string;
270
+ frontmatter: {
271
+ title: string;
272
+ date?: string | Date | undefined;
273
+ tags?: string[] | undefined;
274
+ summary?: string | undefined;
275
+ slug?: string | undefined;
276
+ category?: string | undefined;
277
+ completed?: boolean | undefined;
278
+ };
279
+ contentLength: number;
280
+ filePath: string;
281
+ stats: {
282
+ contentLength: number;
283
+ characterCount: number;
284
+ wordCount: number;
285
+ hasContent: boolean;
286
+ lineCount: number;
287
+ };
288
+ imageLinks: string[];
289
+ documentLinks: string[];
290
+ filename?: string | undefined;
291
+ backlinks?: {
292
+ title: string;
293
+ filePath: string;
294
+ }[] | undefined;
295
+ };
296
+ }>;
297
+ export type ReadSpecificFileResponse = z.infer<typeof readSpecificFileResponseSchema>;