@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.
Files changed (334) hide show
  1. package/build/config.d.ts +1 -27
  2. package/build/config.js +4 -31
  3. package/build/config.js.map +1 -1
  4. package/build/db.js +3 -0
  5. package/build/db.js.map +1 -1
  6. package/build/index.js +3 -0
  7. package/build/index.js.map +1 -1
  8. package/build/server.js +1 -1
  9. package/build/server.js.map +1 -1
  10. package/build/setup.d.ts +1 -0
  11. package/build/setup.js +4 -2
  12. package/build/setup.js.map +1 -1
  13. package/build/tools/create_document_with_properties/index.d.ts +5 -5
  14. package/build/tools/create_document_with_properties/index.js +2 -2
  15. package/build/tools/create_document_with_properties/index.js.map +1 -1
  16. package/build/tools/create_document_with_properties/params.d.ts +8 -8
  17. package/build/tools/create_document_with_properties/params.js +1 -1
  18. package/build/tools/create_document_with_properties/params.js.map +1 -1
  19. package/build/tools/generate_property/index.d.ts +1 -1
  20. package/build/tools/generate_property/index.js +1 -1
  21. package/build/tools/generate_property/index.js.map +1 -1
  22. package/build/tools/generate_property/params.d.ts +4 -4
  23. package/build/tools/index.d.ts +8 -8
  24. package/build/tools/index.js +5 -5
  25. package/build/tools/index.js.map +1 -1
  26. package/build/tools/organize_attachments/index.d.ts +1 -1
  27. package/build/tools/organize_attachments/index.js +2 -2
  28. package/build/tools/organize_attachments/index.js.map +1 -1
  29. package/build/tools/vault/index.d.ts +1 -1
  30. package/build/tools/vault/index.js +3 -3
  31. package/build/tools/vault/index.js.map +1 -1
  32. package/build/tools/vault/params.d.ts +2 -2
  33. package/build/tools/vault/types/collect_context.d.ts +32 -32
  34. package/build/tools/vault/types/collect_context.js +1 -1
  35. package/build/tools/vault/types/collect_context.js.map +1 -1
  36. package/build/tools/vault/types/list_all.d.ts +12 -12
  37. package/build/tools/vault/types/list_all.js +2 -2
  38. package/build/tools/vault/types/list_all.js.map +1 -1
  39. package/build/tools/vault/types/read_specific.d.ts +6 -6
  40. package/build/tools/vault/types/read_specific.js +1 -1
  41. package/build/tools/vault/types/read_specific.js.map +1 -1
  42. package/build/tools/vault/types/search.d.ts +10 -10
  43. package/build/tools/vault/utils/actions/collect_context.d.ts +1 -1
  44. package/build/tools/vault/utils/actions/collect_context.js +4 -4
  45. package/build/tools/vault/utils/actions/collect_context.js.map +1 -1
  46. package/build/tools/vault/utils/actions/list_all.d.ts +1 -1
  47. package/build/tools/vault/utils/actions/list_all.js +1 -1
  48. package/build/tools/vault/utils/actions/list_all.js.map +1 -1
  49. package/build/tools/vault/utils/actions/load_memory.d.ts +1 -1
  50. package/build/tools/vault/utils/actions/load_memory.js +3 -3
  51. package/build/tools/vault/utils/actions/load_memory.js.map +1 -1
  52. package/build/tools/vault/utils/actions/read.d.ts +1 -1
  53. package/build/tools/vault/utils/actions/read.js +1 -1
  54. package/build/tools/vault/utils/actions/read.js.map +1 -1
  55. package/build/tools/vault/utils/actions/search.d.ts +1 -1
  56. package/build/tools/vault/utils/actions/search.js +2 -2
  57. package/build/tools/vault/utils/actions/search.js.map +1 -1
  58. package/build/tools/vault/utils/shared.d.ts +1 -1
  59. package/build/tools/vault/utils.d.ts +7 -7
  60. package/build/tools/vault/utils.js +7 -7
  61. package/build/tools/vault/utils.js.map +1 -1
  62. package/build/tools/write_property/index.d.ts +5 -5
  63. package/build/tools/write_property/index.js +1 -1
  64. package/build/tools/write_property/index.js.map +1 -1
  65. package/build/tools/write_property/params.d.ts +8 -8
  66. package/build/utils/DirectoryWalker.d.ts +1 -1
  67. package/build/utils/Embedder.js +1 -1
  68. package/build/utils/Embedder.js.map +1 -1
  69. package/build/utils/Indexer.d.ts +2 -2
  70. package/build/utils/Indexer.js +2 -2
  71. package/build/utils/Indexer.js.map +1 -1
  72. package/build/utils/LLMClient.js +16 -0
  73. package/build/utils/LLMClient.js.map +1 -1
  74. package/build/utils/LocalReranker.js +1 -1
  75. package/build/utils/LocalReranker.js.map +1 -1
  76. package/build/utils/RAGIndexer.d.ts +1 -1
  77. package/build/utils/RAGIndexer.js +6 -6
  78. package/build/utils/RAGIndexer.js.map +1 -1
  79. package/build/utils/RerankerClient.js +20 -1
  80. package/build/utils/RerankerClient.js.map +1 -1
  81. package/build/utils/VaultManger/VaultManager.d.ts +3 -3
  82. package/build/utils/VaultManger/VaultManager.js +9 -9
  83. package/build/utils/VaultManger/VaultManager.js.map +1 -1
  84. package/build/utils/VaultManger/index.d.ts +3 -3
  85. package/build/utils/VaultManger/index.js +2 -2
  86. package/build/utils/VaultManger/index.js.map +1 -1
  87. package/build/utils/VaultManger/types.d.ts +1 -1
  88. package/build/utils/VaultWatcher.js +1 -1
  89. package/build/utils/VaultWatcher.js.map +1 -1
  90. package/build/utils/VectorDB.js +31 -6
  91. package/build/utils/VectorDB.js.map +1 -1
  92. package/build/utils/getVaultManager.d.ts +1 -1
  93. package/build/utils/getVaultManager.js +1 -1
  94. package/build/utils/getVaultManager.js.map +1 -1
  95. package/build/utils/processor/MatterParser.d.ts +1 -1
  96. package/build/utils/processor/MatterParser.js +1 -1
  97. package/build/utils/processor/MatterParser.js.map +1 -1
  98. package/package.json +13 -49
  99. package/LICENSE +0 -15
  100. package/README.md +0 -512
  101. package/build/cli/App.d.ts +0 -1
  102. package/build/cli/App.js +0 -194
  103. package/build/cli/App.js.map +0 -1
  104. package/build/cli/AppContainer.d.ts +0 -1
  105. package/build/cli/AppContainer.js +0 -18
  106. package/build/cli/AppContainer.js.map +0 -1
  107. package/build/cli/colors.d.ts +0 -15
  108. package/build/cli/colors.js +0 -15
  109. package/build/cli/colors.js.map +0 -1
  110. package/build/cli/commands/types.d.ts +0 -19
  111. package/build/cli/commands/types.js +0 -11
  112. package/build/cli/commands/types.js.map +0 -1
  113. package/build/cli/config/SettingContext.d.ts +0 -1
  114. package/build/cli/config/SettingContext.js +0 -2
  115. package/build/cli/config/SettingContext.js.map +0 -1
  116. package/build/cli/config/mcpServersConfig.d.ts +0 -30
  117. package/build/cli/config/mcpServersConfig.js +0 -119
  118. package/build/cli/config/mcpServersConfig.js.map +0 -1
  119. package/build/cli/config/settingSchema.d.ts +0 -180
  120. package/build/cli/config/settingSchema.js +0 -128
  121. package/build/cli/config/settingSchema.js.map +0 -1
  122. package/build/cli/constants.d.ts +0 -47
  123. package/build/cli/constants.js +0 -101
  124. package/build/cli/constants.js.map +0 -1
  125. package/build/cli/context/InputContext.d.ts +0 -12
  126. package/build/cli/context/InputContext.js +0 -10
  127. package/build/cli/context/InputContext.js.map +0 -1
  128. package/build/cli/context/KeypressContext.d.ts +0 -30
  129. package/build/cli/context/KeypressContext.js +0 -200
  130. package/build/cli/context/KeypressContext.js.map +0 -1
  131. package/build/cli/context/KeypressContext.util.d.ts +0 -7
  132. package/build/cli/context/KeypressContext.util.js +0 -476
  133. package/build/cli/context/KeypressContext.util.js.map +0 -1
  134. package/build/cli/hooks/useAtCompletion.d.ts +0 -12
  135. package/build/cli/hooks/useAtCompletion.js +0 -5
  136. package/build/cli/hooks/useAtCompletion.js.map +0 -1
  137. package/build/cli/hooks/useCommandCompletion.d.ts +0 -59
  138. package/build/cli/hooks/useCommandCompletion.js +0 -344
  139. package/build/cli/hooks/useCommandCompletion.js.map +0 -1
  140. package/build/cli/hooks/useCompletion.d.ts +0 -22
  141. package/build/cli/hooks/useCompletion.js +0 -84
  142. package/build/cli/hooks/useCompletion.js.map +0 -1
  143. package/build/cli/hooks/useDispatcher.d.ts +0 -6
  144. package/build/cli/hooks/useDispatcher.js +0 -286
  145. package/build/cli/hooks/useDispatcher.js.map +0 -1
  146. package/build/cli/hooks/useFocus.d.ts +0 -2
  147. package/build/cli/hooks/useFocus.js +0 -3
  148. package/build/cli/hooks/useFocus.js.map +0 -1
  149. package/build/cli/hooks/useInputHistory.d.ts +0 -24
  150. package/build/cli/hooks/useInputHistory.js +0 -159
  151. package/build/cli/hooks/useInputHistory.js.map +0 -1
  152. package/build/cli/hooks/useKeyMatchers.d.ts +0 -17
  153. package/build/cli/hooks/useKeyMatchers.js +0 -13
  154. package/build/cli/hooks/useKeyMatchers.js.map +0 -1
  155. package/build/cli/hooks/useKeypress.d.ts +0 -19
  156. package/build/cli/hooks/useKeypress.js +0 -28
  157. package/build/cli/hooks/useKeypress.js.map +0 -1
  158. package/build/cli/hooks/useLlmStream/constants.d.ts +0 -4
  159. package/build/cli/hooks/useLlmStream/constants.js +0 -5
  160. package/build/cli/hooks/useLlmStream/constants.js.map +0 -1
  161. package/build/cli/hooks/useLlmStream/index.d.ts +0 -2
  162. package/build/cli/hooks/useLlmStream/index.js +0 -2
  163. package/build/cli/hooks/useLlmStream/index.js.map +0 -1
  164. package/build/cli/hooks/useLlmStream/llmService.d.ts +0 -2
  165. package/build/cli/hooks/useLlmStream/llmService.js +0 -110
  166. package/build/cli/hooks/useLlmStream/llmService.js.map +0 -1
  167. package/build/cli/hooks/useLlmStream/types.d.ts +0 -38
  168. package/build/cli/hooks/useLlmStream/types.js +0 -2
  169. package/build/cli/hooks/useLlmStream/types.js.map +0 -1
  170. package/build/cli/hooks/useLlmStream/useLlmStream.d.ts +0 -12
  171. package/build/cli/hooks/useLlmStream/useLlmStream.js +0 -162
  172. package/build/cli/hooks/useLlmStream/useLlmStream.js.map +0 -1
  173. package/build/cli/hooks/useLlmStream/utils.d.ts +0 -15
  174. package/build/cli/hooks/useLlmStream/utils.js +0 -108
  175. package/build/cli/hooks/useLlmStream/utils.js.map +0 -1
  176. package/build/cli/hooks/useMcpClient.d.ts +0 -10
  177. package/build/cli/hooks/useMcpClient.js +0 -100
  178. package/build/cli/hooks/useMcpClient.js.map +0 -1
  179. package/build/cli/hooks/useMcpManager.d.ts +0 -26
  180. package/build/cli/hooks/useMcpManager.js +0 -89
  181. package/build/cli/hooks/useMcpManager.js.map +0 -1
  182. package/build/cli/hooks/usePromptCompletion.d.ts +0 -19
  183. package/build/cli/hooks/usePromptCompletion.js +0 -13
  184. package/build/cli/hooks/usePromptCompletion.js.map +0 -1
  185. package/build/cli/hooks/useRagContext.d.ts +0 -6
  186. package/build/cli/hooks/useRagContext.js +0 -83
  187. package/build/cli/hooks/useRagContext.js.map +0 -1
  188. package/build/cli/hooks/useShellCompletion.d.ts +0 -18
  189. package/build/cli/hooks/useShellCompletion.js +0 -10
  190. package/build/cli/hooks/useShellCompletion.js.map +0 -1
  191. package/build/cli/hooks/useSlashCompletion.d.ts +0 -21
  192. package/build/cli/hooks/useSlashCompletion.js +0 -11
  193. package/build/cli/hooks/useSlashCompletion.js.map +0 -1
  194. package/build/cli/hooks/useTerminalSize.d.ts +0 -4
  195. package/build/cli/hooks/useTerminalSize.js +0 -21
  196. package/build/cli/hooks/useTerminalSize.js.map +0 -1
  197. package/build/cli/index.d.ts +0 -1
  198. package/build/cli/index.js +0 -10
  199. package/build/cli/index.js.map +0 -1
  200. package/build/cli/key/input.d.ts +0 -5
  201. package/build/cli/key/input.js +0 -9
  202. package/build/cli/key/input.js.map +0 -1
  203. package/build/cli/key/keyBindings.d.ts +0 -152
  204. package/build/cli/key/keyBindings.js +0 -630
  205. package/build/cli/key/keyBindings.js.map +0 -1
  206. package/build/cli/key/keyMatchers.d.ts +0 -19
  207. package/build/cli/key/keyMatchers.js +0 -25
  208. package/build/cli/key/keyMatchers.js.map +0 -1
  209. package/build/cli/key/mouse.d.ts +0 -23
  210. package/build/cli/key/mouse.js +0 -155
  211. package/build/cli/key/mouse.js.map +0 -1
  212. package/build/cli/key/text-buffer-bestcase.d.ts +0 -867
  213. package/build/cli/key/text-buffer-bestcase.js +0 -2754
  214. package/build/cli/key/text-buffer-bestcase.js.map +0 -1
  215. package/build/cli/key/text-buffer.d.ts +0 -506
  216. package/build/cli/key/text-buffer.js +0 -919
  217. package/build/cli/key/text-buffer.js.map +0 -1
  218. package/build/cli/main.d.ts +0 -1
  219. package/build/cli/main.js +0 -20
  220. package/build/cli/main.js.map +0 -1
  221. package/build/cli/reference/HistoryItemDisplay.d.ts +0 -23
  222. package/build/cli/reference/HistoryItemDisplay.js +0 -63
  223. package/build/cli/reference/HistoryItemDisplay.js.map +0 -1
  224. package/build/cli/reference/InputContext.d.ts +0 -17
  225. package/build/cli/reference/InputContext.js +0 -16
  226. package/build/cli/reference/InputContext.js.map +0 -1
  227. package/build/cli/reference/KerypressContext.d.ts +0 -37
  228. package/build/cli/reference/KerypressContext.js +0 -791
  229. package/build/cli/reference/KerypressContext.js.map +0 -1
  230. package/build/cli/reference/MainContent.d.ts +0 -6
  231. package/build/cli/reference/MainContent.js +0 -207
  232. package/build/cli/reference/MainContent.js.map +0 -1
  233. package/build/cli/reference/UIStateContext.d.ts +0 -188
  234. package/build/cli/reference/UIStateContext.js +0 -16
  235. package/build/cli/reference/UIStateContext.js.map +0 -1
  236. package/build/cli/reference/text-buffer.d.ts +0 -867
  237. package/build/cli/reference/text-buffer.js +0 -2754
  238. package/build/cli/reference/text-buffer.js.map +0 -1
  239. package/build/cli/reference/useGeminiStream.d.ts +0 -42
  240. package/build/cli/reference/useGeminiStream.js +0 -1404
  241. package/build/cli/reference/useGeminiStream.js.map +0 -1
  242. package/build/cli/services/McpClientService.d.ts +0 -32
  243. package/build/cli/services/McpClientService.js +0 -123
  244. package/build/cli/services/McpClientService.js.map +0 -1
  245. package/build/cli/services/McpManager.d.ts +0 -28
  246. package/build/cli/services/McpManager.js +0 -146
  247. package/build/cli/services/McpManager.js.map +0 -1
  248. package/build/cli/theme/builtin/default-dark.d.ts +0 -7
  249. package/build/cli/theme/builtin/default-dark.js +0 -143
  250. package/build/cli/theme/builtin/default-dark.js.map +0 -1
  251. package/build/cli/theme/builtin/no-color.d.ts +0 -7
  252. package/build/cli/theme/builtin/no-color.js +0 -125
  253. package/build/cli/theme/builtin/no-color.js.map +0 -1
  254. package/build/cli/theme/builtin/tokyonight-dark.d.ts +0 -7
  255. package/build/cli/theme/builtin/tokyonight-dark.js +0 -146
  256. package/build/cli/theme/builtin/tokyonight-dark.js.map +0 -1
  257. package/build/cli/theme/semantic-colors.d.ts +0 -2
  258. package/build/cli/theme/semantic-colors.js +0 -19
  259. package/build/cli/theme/semantic-colors.js.map +0 -1
  260. package/build/cli/theme/semantic-tokens.d.ts +0 -42
  261. package/build/cli/theme/semantic-tokens.js +0 -77
  262. package/build/cli/theme/semantic-tokens.js.map +0 -1
  263. package/build/cli/theme/theme-manager.d.ts +0 -32
  264. package/build/cli/theme/theme-manager.js +0 -150
  265. package/build/cli/theme/theme-manager.js.map +0 -1
  266. package/build/cli/theme/theme.d.ts +0 -107
  267. package/build/cli/theme/theme.js +0 -333
  268. package/build/cli/theme/theme.js.map +0 -1
  269. package/build/cli/tmp.d.ts +0 -1
  270. package/build/cli/tmp.js +0 -27
  271. package/build/cli/tmp.js.map +0 -1
  272. package/build/cli/types.d.ts +0 -74
  273. package/build/cli/types.js +0 -8
  274. package/build/cli/types.js.map +0 -1
  275. package/build/cli/ui/ConnectionStatus.d.ts +0 -13
  276. package/build/cli/ui/ConnectionStatus.js +0 -24
  277. package/build/cli/ui/ConnectionStatus.js.map +0 -1
  278. package/build/cli/ui/HelpCommands.d.ts +0 -5
  279. package/build/cli/ui/HelpCommands.js +0 -11
  280. package/build/cli/ui/HelpCommands.js.map +0 -1
  281. package/build/cli/ui/HistoryItemDisplay.d.ts +0 -9
  282. package/build/cli/ui/HistoryItemDisplay.js +0 -38
  283. package/build/cli/ui/HistoryItemDisplay.js.map +0 -1
  284. package/build/cli/ui/InputPrompt-bestcase.d.ts +0 -63
  285. package/build/cli/ui/InputPrompt-bestcase.js +0 -1301
  286. package/build/cli/ui/InputPrompt-bestcase.js.map +0 -1
  287. package/build/cli/ui/InputPrompt.d.ts +0 -13
  288. package/build/cli/ui/InputPrompt.js +0 -145
  289. package/build/cli/ui/InputPrompt.js.map +0 -1
  290. package/build/cli/ui/InputPrompt.tmp.d.ts +0 -7
  291. package/build/cli/ui/InputPrompt.tmp.js +0 -215
  292. package/build/cli/ui/InputPrompt.tmp.js.map +0 -1
  293. package/build/cli/ui/LLMErrorComponent.d.ts +0 -6
  294. package/build/cli/ui/LLMErrorComponent.js +0 -14
  295. package/build/cli/ui/LLMErrorComponent.js.map +0 -1
  296. package/build/cli/ui/LLMHealthChecker.d.ts +0 -8
  297. package/build/cli/ui/LLMHealthChecker.js +0 -22
  298. package/build/cli/ui/LLMHealthChecker.js.map +0 -1
  299. package/build/cli/ui/MCPServers.d.ts +0 -11
  300. package/build/cli/ui/MCPServers.js +0 -18
  301. package/build/cli/ui/MCPServers.js.map +0 -1
  302. package/build/cli/ui/MainContent.d.ts +0 -10
  303. package/build/cli/ui/MainContent.js +0 -24
  304. package/build/cli/ui/MainContent.js.map +0 -1
  305. package/build/cli/ui/MouseContext.d.ts +0 -1
  306. package/build/cli/ui/MouseContext.js +0 -2
  307. package/build/cli/ui/MouseContext.js.map +0 -1
  308. package/build/cli/ui/SuggestionsDisplay.d.ts +0 -25
  309. package/build/cli/ui/SuggestionsDisplay.js +0 -45
  310. package/build/cli/ui/SuggestionsDisplay.js.map +0 -1
  311. package/build/cli/ui/ThinkingIndicator.d.ts +0 -2
  312. package/build/cli/ui/ThinkingIndicator.js +0 -16
  313. package/build/cli/ui/ThinkingIndicator.js.map +0 -1
  314. package/build/cli/ui/layout/DefaultAppLayout.d.ts +0 -2
  315. package/build/cli/ui/layout/DefaultAppLayout.js +0 -6
  316. package/build/cli/ui/layout/DefaultAppLayout.js.map +0 -1
  317. package/build/cli/ui/shared/ExpandableText.d.ts +0 -14
  318. package/build/cli/ui/shared/ExpandableText.js +0 -19
  319. package/build/cli/ui/shared/ExpandableText.js.map +0 -1
  320. package/build/cli/utils/cache.d.ts +0 -21
  321. package/build/cli/utils/cache.js +0 -56
  322. package/build/cli/utils/cache.js.map +0 -1
  323. package/build/cli/utils/commandUtils.d.ts +0 -11
  324. package/build/cli/utils/commandUtils.js +0 -16
  325. package/build/cli/utils/commandUtils.js.map +0 -1
  326. package/build/cli/utils/debugLogger.d.ts +0 -12
  327. package/build/cli/utils/debugLogger.js +0 -54
  328. package/build/cli/utils/debugLogger.js.map +0 -1
  329. package/build/cli/utils/historyStorage.d.ts +0 -13
  330. package/build/cli/utils/historyStorage.js +0 -64
  331. package/build/cli/utils/historyStorage.js.map +0 -1
  332. package/build/cli/utils/textUtil.d.ts +0 -68
  333. package/build/cli/utils/textUtil.js +0 -236
  334. package/build/cli/utils/textUtil.js.map +0 -1
@@ -1,107 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { CSSProperties } from "react";
7
- import type { SemanticColors } from "./semantic-tokens.js";
8
- export declare const INK_SUPPORTED_NAMES: Set<string>;
9
- export declare const CSS_NAME_TO_HEX_MAP: {
10
- [k: string]: string;
11
- };
12
- export declare const INK_NAME_TO_HEX_MAP: Readonly<Record<string, string>>;
13
- /**
14
- * Calculates the relative luminance of a color.
15
- * See https://www.w3.org/TR/WCAG20/#relativeluminancedef
16
- *
17
- * @param color Color string (hex or Ink-supported name)
18
- * @returns Luminance value (0-255)
19
- */
20
- export declare function getLuminance(color: string): number;
21
- /**
22
- * Resolves a CSS color value (name or hex) into an Ink-compatible color string.
23
- * @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
24
- * @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
25
- */
26
- export declare function resolveColor(colorValue: string): string | undefined;
27
- export declare function interpolateColor(color1: string, color2: string, factor: number): string;
28
- export declare function getThemeTypeFromBackgroundColor(backgroundColor: string | undefined): "light" | "dark" | undefined;
29
- export type ThemeType = "light" | "dark" | "ansi" | "custom";
30
- export interface ColorsTheme {
31
- type: ThemeType;
32
- Background: string;
33
- Foreground: string;
34
- LightBlue: string;
35
- AccentBlue: string;
36
- AccentPurple: string;
37
- AccentCyan: string;
38
- AccentGreen: string;
39
- AccentYellow: string;
40
- AccentRed: string;
41
- DiffAdded: string;
42
- DiffRemoved: string;
43
- Comment: string;
44
- Gray: string;
45
- DarkGray: string;
46
- InputBackground?: string;
47
- MessageBackground?: string;
48
- FocusBackground?: string;
49
- FocusColor?: string;
50
- GradientColors?: string[];
51
- }
52
- export declare const lightTheme: ColorsTheme;
53
- export declare const darkTheme: ColorsTheme;
54
- export declare const ansiTheme: ColorsTheme;
55
- export declare class Theme {
56
- readonly name: string;
57
- readonly type: ThemeType;
58
- readonly colors: ColorsTheme;
59
- /**
60
- * The default foreground color for text when no specific highlight rule applies.
61
- * This is an Ink-compatible color string (hex or name).
62
- */
63
- readonly defaultColor: string;
64
- /**
65
- * Stores the mapping from highlight.js class names (e.g., 'hljs-keyword')
66
- * to Ink-compatible color strings (hex or name).
67
- */
68
- protected readonly _colorMap: Readonly<Record<string, string>>;
69
- readonly semanticColors: SemanticColors;
70
- /**
71
- * Creates a new Theme instance.
72
- * @param name The name of the theme.
73
- * @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
74
- */
75
- constructor(name: string, type: ThemeType, rawMappings: Record<string, CSSProperties>, colors: ColorsTheme, semanticColors?: SemanticColors);
76
- /**
77
- * Gets the Ink-compatible color string for a given highlight.js class name.
78
- * @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
79
- * @returns The corresponding Ink color string (hex or name) if it exists.
80
- */
81
- getInkColor(hljsClass: string): string | undefined;
82
- /**
83
- * Resolves a CSS color value (name or hex) into an Ink-compatible color string.
84
- * @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
85
- * @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
86
- */
87
- private static _resolveColor;
88
- /**
89
- * Builds the internal map from highlight.js class names to Ink-compatible color strings.
90
- * This method is protected and primarily intended for use by the constructor.
91
- * @param hljsTheme The raw CSSProperties mappings from a react-syntax-highlighter theme object.
92
- * @returns An Ink-compatible theme map (Record<string, string>).
93
- */
94
- protected _buildColorMap(hljsTheme: Record<string, CSSProperties>): Record<string, string>;
95
- }
96
- /**
97
- * Picks a default theme name based on terminal background color.
98
- * It first tries to find a theme with an exact background color match.
99
- * If no match is found, it falls back to a light or dark theme based on the
100
- * luminance of the background color.
101
- * @param terminalBackground The hex color string of the terminal background.
102
- * @param availableThemes A list of available themes to search through.
103
- * @param defaultDarkThemeName The name of the fallback dark theme.
104
- * @param defaultLightThemeName The name of the fallback light theme.
105
- * @returns The name of the chosen theme.
106
- */
107
- export declare function pickDefaultThemeName(terminalBackground: string | undefined, availableThemes: readonly Theme[], defaultDarkThemeName: string, defaultLightThemeName: string): string;
@@ -1,333 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import tinycolor from "tinycolor2";
7
- import tinygradient from "tinygradient";
8
- import { DEFAULT_INPUT_BACKGROUND_OPACITY, DEFAULT_SELECTION_OPACITY, } from "../constants.js";
9
- // Define the set of Ink's named colors for quick lookup
10
- export const INK_SUPPORTED_NAMES = new Set([
11
- "black",
12
- "red",
13
- "green",
14
- "yellow",
15
- "blue",
16
- "cyan",
17
- "magenta",
18
- "white",
19
- "gray",
20
- "grey",
21
- "blackbright",
22
- "redbright",
23
- "greenbright",
24
- "yellowbright",
25
- "bluebright",
26
- "cyanbright",
27
- "magentabright",
28
- "whitebright",
29
- ]);
30
- // Use tinycolor's built-in names map for CSS colors, excluding ones Ink supports
31
- export const CSS_NAME_TO_HEX_MAP = Object.fromEntries(Object.entries(tinycolor.names)
32
- .filter(([name]) => !INK_SUPPORTED_NAMES.has(name))
33
- .map(([name, hex]) => [name, `#${hex}`]));
34
- // Mapping for ANSI bright colors that are not in tinycolor's standard CSS names
35
- export const INK_NAME_TO_HEX_MAP = {
36
- blackbright: "#555555",
37
- redbright: "#ff5555",
38
- greenbright: "#55ff55",
39
- yellowbright: "#ffff55",
40
- bluebright: "#5555ff",
41
- magentabright: "#ff55ff",
42
- cyanbright: "#55ffff",
43
- whitebright: "#ffffff",
44
- };
45
- /**
46
- * Calculates the relative luminance of a color.
47
- * See https://www.w3.org/TR/WCAG20/#relativeluminancedef
48
- *
49
- * @param color Color string (hex or Ink-supported name)
50
- * @returns Luminance value (0-255)
51
- */
52
- export function getLuminance(color) {
53
- const resolved = color.toLowerCase();
54
- const hex = INK_NAME_TO_HEX_MAP[resolved] || resolved;
55
- const colorObj = tinycolor(hex);
56
- if (!colorObj.isValid()) {
57
- return 0;
58
- }
59
- // tinycolor returns 0-1, we need 0-255
60
- return colorObj.getLuminance() * 255;
61
- }
62
- /**
63
- * Resolves a CSS color value (name or hex) into an Ink-compatible color string.
64
- * @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
65
- * @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
66
- */
67
- export function resolveColor(colorValue) {
68
- const lowerColor = colorValue.toLowerCase();
69
- // 1. Check if it's already a hex code and valid
70
- if (lowerColor.startsWith("#")) {
71
- if (/^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(colorValue)) {
72
- return lowerColor;
73
- }
74
- else {
75
- return undefined;
76
- }
77
- }
78
- // Handle hex codes without #
79
- if (/^[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(colorValue)) {
80
- return `#${lowerColor}`;
81
- }
82
- // 2. Check if it's an Ink supported name (lowercase)
83
- if (INK_SUPPORTED_NAMES.has(lowerColor)) {
84
- return lowerColor; // Use Ink name directly
85
- }
86
- // 3. Check if it's a known CSS name we can map to hex
87
- // We can't import CSS_NAME_TO_HEX_MAP here due to circular deps,
88
- // but we can use tinycolor directly for named colors.
89
- const colorObj = tinycolor(lowerColor);
90
- if (colorObj.isValid()) {
91
- return colorObj.toHexString();
92
- }
93
- // 4. Could not resolve
94
- return undefined;
95
- }
96
- export function interpolateColor(color1, color2, factor) {
97
- if (factor <= 0 && color1) {
98
- return color1;
99
- }
100
- if (factor >= 1 && color2) {
101
- return color2;
102
- }
103
- if (!color1 || !color2) {
104
- return "";
105
- }
106
- try {
107
- const gradient = tinygradient(color1, color2);
108
- const color = gradient.rgbAt(factor);
109
- return color.toHexString();
110
- }
111
- catch {
112
- return color1;
113
- }
114
- }
115
- export function getThemeTypeFromBackgroundColor(backgroundColor) {
116
- if (!backgroundColor) {
117
- return undefined;
118
- }
119
- const resolvedColor = resolveColor(backgroundColor);
120
- if (!resolvedColor) {
121
- return undefined;
122
- }
123
- const luminance = getLuminance(resolvedColor);
124
- return luminance > 128 ? "light" : "dark";
125
- }
126
- export const lightTheme = {
127
- type: "light",
128
- Background: "#FFFFFF",
129
- Foreground: "#000000",
130
- LightBlue: "#005FAF",
131
- AccentBlue: "#005FAF",
132
- AccentPurple: "#5F00FF",
133
- AccentCyan: "#005F87",
134
- AccentGreen: "#005F00",
135
- AccentYellow: "#875F00",
136
- AccentRed: "#AF0000",
137
- DiffAdded: "#D7FFD7",
138
- DiffRemoved: "#FFD7D7",
139
- Comment: "#008700",
140
- Gray: "#5F5F5F",
141
- DarkGray: "#5F5F5F",
142
- InputBackground: "#E4E4E4",
143
- MessageBackground: "#FAFAFA",
144
- FocusBackground: "#D7FFD7",
145
- GradientColors: ["#4796E4", "#847ACE", "#C3677F"],
146
- };
147
- export const darkTheme = {
148
- type: "dark",
149
- Background: "#000000",
150
- Foreground: "#FFFFFF",
151
- LightBlue: "#AFD7D7",
152
- AccentBlue: "#87AFFF",
153
- AccentPurple: "#D7AFFF",
154
- AccentCyan: "#87D7D7",
155
- AccentGreen: "#D7FFD7",
156
- AccentYellow: "#FFFFAF",
157
- AccentRed: "#FF87AF",
158
- DiffAdded: "#005F00",
159
- DiffRemoved: "#5F0000",
160
- Comment: "#AFAFAF",
161
- Gray: "#AFAFAF",
162
- DarkGray: "#878787",
163
- InputBackground: "#5F5F5F",
164
- MessageBackground: "#5F5F5F",
165
- FocusBackground: "#005F00",
166
- GradientColors: ["#4796E4", "#847ACE", "#C3677F"],
167
- };
168
- export const ansiTheme = {
169
- type: "ansi",
170
- Background: "black",
171
- Foreground: "",
172
- LightBlue: "blue",
173
- AccentBlue: "blue",
174
- AccentPurple: "magenta",
175
- AccentCyan: "cyan",
176
- AccentGreen: "green",
177
- AccentYellow: "yellow",
178
- AccentRed: "red",
179
- DiffAdded: "green",
180
- DiffRemoved: "red",
181
- Comment: "gray",
182
- Gray: "gray",
183
- DarkGray: "gray",
184
- InputBackground: "black",
185
- MessageBackground: "black",
186
- FocusBackground: "black",
187
- };
188
- export class Theme {
189
- name;
190
- type;
191
- colors;
192
- /**
193
- * The default foreground color for text when no specific highlight rule applies.
194
- * This is an Ink-compatible color string (hex or name).
195
- */
196
- defaultColor;
197
- /**
198
- * Stores the mapping from highlight.js class names (e.g., 'hljs-keyword')
199
- * to Ink-compatible color strings (hex or name).
200
- */
201
- _colorMap;
202
- semanticColors;
203
- /**
204
- * Creates a new Theme instance.
205
- * @param name The name of the theme.
206
- * @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
207
- */
208
- constructor(name, type, rawMappings, colors, semanticColors) {
209
- this.name = name;
210
- this.type = type;
211
- this.colors = colors;
212
- this.semanticColors = semanticColors ?? {
213
- text: {
214
- primary: this.colors.Foreground,
215
- secondary: this.colors.Gray,
216
- link: this.colors.AccentBlue,
217
- accent: this.colors.AccentPurple,
218
- response: this.colors.Foreground,
219
- },
220
- background: {
221
- primary: this.colors.Background,
222
- message: this.colors.MessageBackground ??
223
- interpolateColor(this.colors.Background, this.colors.Gray, DEFAULT_INPUT_BACKGROUND_OPACITY),
224
- input: this.colors.InputBackground ??
225
- interpolateColor(this.colors.Background, this.colors.Gray, DEFAULT_INPUT_BACKGROUND_OPACITY),
226
- focus: this.colors.FocusBackground ??
227
- interpolateColor(this.colors.Background, this.colors.FocusColor ?? this.colors.AccentGreen, DEFAULT_SELECTION_OPACITY),
228
- diff: {
229
- added: this.colors.DiffAdded,
230
- removed: this.colors.DiffRemoved,
231
- },
232
- },
233
- border: {
234
- default: this.colors.DarkGray,
235
- },
236
- ui: {
237
- comment: this.colors.Gray,
238
- symbol: this.colors.AccentCyan,
239
- active: this.colors.AccentBlue,
240
- dark: this.colors.DarkGray,
241
- focus: this.colors.FocusColor ?? this.colors.AccentGreen,
242
- gradient: this.colors.GradientColors,
243
- },
244
- status: {
245
- error: this.colors.AccentRed,
246
- success: this.colors.AccentGreen,
247
- warning: this.colors.AccentYellow,
248
- },
249
- };
250
- this._colorMap = Object.freeze(this._buildColorMap(rawMappings)); // Build and freeze the map
251
- // Determine the default foreground color
252
- const rawDefaultColor = rawMappings["hljs"]?.color;
253
- this.defaultColor =
254
- (rawDefaultColor
255
- ? Theme._resolveColor(rawDefaultColor)
256
- : undefined) ?? ""; // Default to empty string if not found or resolvable
257
- }
258
- /**
259
- * Gets the Ink-compatible color string for a given highlight.js class name.
260
- * @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
261
- * @returns The corresponding Ink color string (hex or name) if it exists.
262
- */
263
- getInkColor(hljsClass) {
264
- return this._colorMap[hljsClass];
265
- }
266
- /**
267
- * Resolves a CSS color value (name or hex) into an Ink-compatible color string.
268
- * @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
269
- * @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
270
- */
271
- static _resolveColor(colorValue) {
272
- return resolveColor(colorValue);
273
- }
274
- /**
275
- * Builds the internal map from highlight.js class names to Ink-compatible color strings.
276
- * This method is protected and primarily intended for use by the constructor.
277
- * @param hljsTheme The raw CSSProperties mappings from a react-syntax-highlighter theme object.
278
- * @returns An Ink-compatible theme map (Record<string, string>).
279
- */
280
- _buildColorMap(hljsTheme) {
281
- const inkTheme = {};
282
- for (const key in hljsTheme) {
283
- // Ensure the key starts with 'hljs-' or is 'hljs' for the base style
284
- if (!key.startsWith("hljs-") && key !== "hljs") {
285
- continue; // Skip keys not related to highlighting classes
286
- }
287
- const style = hljsTheme[key];
288
- if (style?.color) {
289
- const resolvedColor = Theme._resolveColor(style.color);
290
- if (resolvedColor !== undefined) {
291
- // Use the original key from the hljsTheme (e.g., 'hljs-keyword')
292
- inkTheme[key] = resolvedColor;
293
- }
294
- // If color is not resolvable, it's omitted from the map,
295
- // this enables falling back to the default foreground color.
296
- }
297
- // We currently only care about the 'color' property for Ink rendering.
298
- // Other properties like background, fontStyle, etc., are ignored.
299
- }
300
- return inkTheme;
301
- }
302
- }
303
- /**
304
- * Picks a default theme name based on terminal background color.
305
- * It first tries to find a theme with an exact background color match.
306
- * If no match is found, it falls back to a light or dark theme based on the
307
- * luminance of the background color.
308
- * @param terminalBackground The hex color string of the terminal background.
309
- * @param availableThemes A list of available themes to search through.
310
- * @param defaultDarkThemeName The name of the fallback dark theme.
311
- * @param defaultLightThemeName The name of the fallback light theme.
312
- * @returns The name of the chosen theme.
313
- */
314
- export function pickDefaultThemeName(terminalBackground, availableThemes, defaultDarkThemeName, defaultLightThemeName) {
315
- if (terminalBackground) {
316
- const lowerTerminalBackground = terminalBackground.toLowerCase();
317
- for (const theme of availableThemes) {
318
- if (!theme.colors.Background)
319
- continue;
320
- // resolveColor can return undefined
321
- const themeBg = resolveColor(theme.colors.Background)?.toLowerCase();
322
- if (themeBg === lowerTerminalBackground) {
323
- return theme.name;
324
- }
325
- }
326
- }
327
- const themeType = getThemeTypeFromBackgroundColor(terminalBackground);
328
- if (themeType === "light") {
329
- return defaultLightThemeName;
330
- }
331
- return defaultDarkThemeName;
332
- }
333
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/cli/theme/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,EACN,gCAAgC,EAChC,yBAAyB,GACzB,MAAM,iBAAiB,CAAC;AAGzB,wDAAwD;AACxD,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC;IAC1C,OAAO;IACP,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM;IACN,MAAM;IACN,aAAa;IACb,WAAW;IACX,aAAa;IACb,cAAc;IACd,YA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AAE,CAAC;gBAClB,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACvD,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;oBACjC,iEAAiE;oBACjE,QAAQ,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;gBAC/B,CAAC;gBACD,yDAAyD;gBACzD,6DAA6D;YAC9D,CAAC;YACD,uEAAuE;YACvE,kEAAkE;QACnE,CAAC;QACD,OAAO,QAAQ,CAAC;IACjB,CAAC;CACD;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CACnC,kBAAsC,EACtC,eAAiC,EACjC,oBAA4B,EAC5B,qBAA6B;IAE7B,IAAI,kBAAkB,EAAE,CAAC;QACxB,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,WAAW,EAAE,CAAC;QACjE,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;YACrC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU;gBAAE,SAAS;YACvC,oCAAoC;YACpC,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,WAAW,EAAE,CAAC;YACrE,IAAI,OAAO,KAAK,uBAAuB,EAAE,CAAC;gBACzC,OAAO,KAAK,CAAC,IAAI,CAAC;YACnB,CAAC;QACF,CAAC;IACF,CAAC;IAED,MAAM,SAAS,GAAG,+BAA+B,CAAC,kBAAkB,CAAC,CAAC;IACtE,IAAI,SAAS,KAAK,OAAO,EAAE,CAAC;QAC3B,OAAO,qBAAqB,CAAC;IAC9B,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC7B,CAAC"}
@@ -1 +0,0 @@
1
- export {};
package/build/cli/tmp.js DELETED
@@ -1,27 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-nocheck
3
- import { render, Text } from "ink";
4
- import { useMemo, useState } from "react";
5
- import { InputContext } from "./context/InputContext.js";
6
- import { KeypressProvider } from "./context/KeypressContext.js";
7
- import { useTextBuffer } from "./key/text-buffer.js";
8
- import { InputPrompt } from "./ui/InputPrompt.js";
9
- function App() {
10
- const [submitText, setSubmitText] = useState("");
11
- const buffer = useTextBuffer();
12
- const inputState = useMemo(() => ({
13
- buffer,
14
- userMessages: inputHistory,
15
- shellModeActive,
16
- showEscapePrompt,
17
- copyModeEnabled,
18
- inputWidth,
19
- suggestionsWidth,
20
- }), [buffer]);
21
- return (_jsx(KeypressProvider, { children: _jsxs(InputContext.Provider, { value: inputState, children: [_jsxs(Text, { children: ["You submitted: ", submitText] }), _jsx(InputPrompt, { onSubmit: (text) => setSubmitText(text) })] }) }));
22
- }
23
- function start() {
24
- render(_jsx(App, {}));
25
- }
26
- start();
27
- //# sourceMappingURL=tmp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tmp.js","sourceRoot":"","sources":["../../src/cli/tmp.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,SAAS,GAAG;IACX,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,OAAO,CACzB,GAAG,EAAE,CAAC,CAAC;QACN,MAAM;QACN,YAAY,EAAE,YAAY;QAC1B,eAAe;QACf,gBAAgB;QAChB,eAAe;QACf,UAAU;QACV,gBAAgB;KAChB,CAAC,EACF,CAAC,MAAM,CAAC,CACR,CAAC;IAEF,OAAO,CACN,KAAC,gBAAgB,cAChB,MAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,aACvC,MAAC,IAAI,kCAAiB,UAAU,IAAQ,EACxC,KAAC,WAAW,IAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,GAAI,IACjC,GACN,CACnB,CAAC;AACH,CAAC;AACD,SAAS,KAAK;IACb,MAAM,CAAC,KAAC,GAAG,KAAG,CAAC,CAAC;AACjB,CAAC;AAED,KAAK,EAAE,CAAC"}
@@ -1,74 +0,0 @@
1
- /**
2
- * Core types for the CLI AI Agent conversation system.
3
- *
4
- * These types define the data structures used to manage conversation state,
5
- * streaming responses, and history rendering throughout the application.
6
- */
7
- /** 대화 기록의 단일 항목 */
8
- export interface HistoryItem {
9
- /** 고유 식별자 (자동 증가) */
10
- id: number;
11
- /** 메시지 타입 */
12
- type: "user" | "assistant" | "error" | "info";
13
- /** 메시지 내용 (일반 텍스트, 향후 마크다운 렌더링 확장 가능) */
14
- content: string;
15
- /** 생성 시각 (Date.now()) */
16
- timestamp: number;
17
- }
18
- /**
19
- * 현재 스트리밍 중인 응답의 상태.
20
- *
21
- * `<Static>` 바깥에서 활발히 리렌더링되며,
22
- * `isComplete === true`가 되면 AppContainer가 history로 이관합니다.
23
- */
24
- export interface PendingItem {
25
- type: "assistant";
26
- /** 실시간으로 누적되는 텍스트 (thinking 제외) */
27
- content: string;
28
- /** 생각하는 과정 텍스트 */
29
- thinkingContent?: string;
30
- /** 현재 thinking 블록 안에 있는지 */
31
- isThinking?: boolean;
32
- /** 스트림이 완료되었는지 */
33
- isComplete: boolean;
34
- }
35
- /**
36
- * LLM 스트리밍의 전체 상태 머신.
37
- *
38
- * - `idle`: 대기 상태 (입력 가능)
39
- * - `thinking`: 요청 전송 완료, 첫 번째 청크 대기 중
40
- * - `streaming`: 청크가 도착하여 실시간 출력 중
41
- * - `error`: 스트리밍 중 에러 발생
42
- */
43
- export type StreamingState = "idle" | "thinking" | "streaming" | "error";
44
- /**
45
- * 컨텐츠 렌더링 함수 시그니처.
46
- * 향후 마크다운 렌더링 지원 시 이 타입의 구현체를 교체하면 됩니다.
47
- */
48
- export type ContentRenderer = (content: string, width: number) => string;
49
- /** Ollama 대화 메시지 (멀티턴 히스토리용) */
50
- export interface OllamaMessage {
51
- role: "system" | "user" | "assistant";
52
- content: string;
53
- }
54
- /** MCP 도구 호출 결과 (SDK의 CallToolResult 경량 재정의) */
55
- export interface McpToolResult {
56
- isError?: boolean;
57
- content: Array<{
58
- type: string;
59
- text?: string;
60
- }>;
61
- }
62
- /** MCP callTool 함수 시그니처 */
63
- export type CallToolFn = (name: string, args: Record<string, unknown>) => Promise<McpToolResult>;
64
- /** Dispatcher 슬래시 커맨드 처리 결과 */
65
- export interface DispatchResult {
66
- type: "tool_result" | "local_action" | "unknown_command" | "llm_required";
67
- content: string;
68
- /** llm_required 타입일 때 원본 사용자 입력 (LLM에게 보낼 의도) */
69
- userIntent?: string;
70
- }
71
- /** MCP 클라이언트 연결 상태 */
72
- export type McpConnectionState = "disconnected" | "connecting" | "connected" | "error";
73
- /** LLM Health Check Status */
74
- export type LLMHealthStatus = "checking" | "success" | "error";
@@ -1,8 +0,0 @@
1
- /**
2
- * Core types for the CLI AI Agent conversation system.
3
- *
4
- * These types define the data structures used to manage conversation state,
5
- * streaming responses, and history rendering throughout the application.
6
- */
7
- export {};
8
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/cli/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,13 +0,0 @@
1
- /**
2
- * ConnectionStatus — 다중 MCP 서버 연결 상태 표시기
3
- *
4
- * 터미널 상단에 각 MCP 서버의 연결 상태를 시각적으로 표시합니다.
5
- */
6
- import type React from "react";
7
- import type { ServerConnectionInfo } from "../services/McpManager.js";
8
- interface ConnectionStatusProps {
9
- connections: Map<string, ServerConnectionInfo>;
10
- errors: Map<string, Error>;
11
- }
12
- export declare const ConnectionStatus: React.FC<ConnectionStatusProps>;
13
- export {};
@@ -1,24 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * ConnectionStatus — 다중 MCP 서버 연결 상태 표시기
4
- *
5
- * 터미널 상단에 각 MCP 서버의 연결 상태를 시각적으로 표시합니다.
6
- */
7
- import { Box, Text } from "ink";
8
- const STATE_CONFIG = {
9
- connected: { symbol: "●", color: "green", label: "Connected" },
10
- connecting: { symbol: "○", color: "yellow", label: "Connecting..." },
11
- disconnected: { symbol: "◌", color: "gray", label: "Disconnected" },
12
- error: { symbol: "✖", color: "red", label: "Error" },
13
- };
14
- export const ConnectionStatus = ({ connections, errors, }) => {
15
- if (connections.size === 0) {
16
- return (_jsx(Box, { paddingX: 1, marginBottom: 1, children: _jsx(Text, { color: "gray", children: "\u25CC MCP \uC11C\uBC84\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4" }) }));
17
- }
18
- return (_jsx(Box, { paddingX: 1, marginBottom: 1, flexDirection: "column", children: Array.from(connections.entries()).map(([serverName, info]) => {
19
- const config = STATE_CONFIG[info.state];
20
- const serverError = errors.get(serverName);
21
- return (_jsxs(Box, { flexDirection: "row", children: [_jsxs(Text, { color: config.color, children: [config.symbol, " ", serverName] }), _jsxs(Text, { color: "gray", children: [" — ", config.label] }), info.state === "connected" && info.toolCount > 0 && (_jsxs(Text, { color: "gray", children: [" (", info.toolCount, " tools)"] })), info.state === "error" && serverError && (_jsxs(Text, { color: "red", children: [" (", serverError.message, ")"] }))] }, serverName));
22
- }) }));
23
- };
24
- //# sourceMappingURL=ConnectionStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConnectionStatus.js","sourceRoot":"","sources":["../../../src/cli/ui/ConnectionStatus.tsx"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C,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,aACvB,MAAM,CAAC,MAAM,OAAG,UAAU,IACrB,EACP,MAAC,IAAI,IAAC,KAAK,EAAC,MAAM,aAChB,KAAK,EACL,MAAM,CAAC,KAAK,IACP,EACN,IAAI,CAAC,KAAK,KAAK,WAAW,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CACpD,MAAC,IAAI,IAAC,KAAK,EAAC,MAAM,mBAAI,IAAI,CAAC,SAAS,eAAe,CACnD,EACA,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,WAAW,IAAI,CACzC,MAAC,IAAI,IAAC,KAAK,EAAC,KAAK,mBAAI,WAAW,CAAC,OAAO,SAAS,CACjD,KAbQ,UAAU,CAcd,CACN,CAAC;QACH,CAAC,CAAC,GACG,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- interface HelpCommandsProps {
2
- width?: number;
3
- }
4
- export declare function HelpCommands({ width }: HelpCommandsProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from "ink";
3
- import tools from "../../tools/index.js";
4
- import { SLASH_COMMANDS } from "../constants.js";
5
- export function HelpCommands({ width }) {
6
- return (_jsxs(Box, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "gray", width: width ? width - 2 : undefined, children: [_jsx(Text, { bold: true, color: "yellow", children: "\uD83D\uDCA1 Slash Commands:" }), SLASH_COMMANDS.map((item) => (_jsxs(Box, { marginLeft: 2, children: [_jsx(Box, { width: 20, children: _jsx(Text, { color: "cyan", children: item.command }) }), _jsxs(Text, { children: ["\u2014 ", item.desc] })] }, item.command))), _jsx(Box, { marginTop: 1, children: _jsx(Text, { bold: true, color: "yellow", children: "\uD83D\uDEE0 MCP Tools (Internal):" }) }), Object.entries(tools).map(([name, info]) => {
7
- const tool = info;
8
- return (_jsxs(Box, { flexDirection: "column", marginLeft: 2, marginTop: 0, children: [_jsx(Text, { color: "magenta", children: tool.name }), _jsx(Box, { marginLeft: 2, children: _jsx(Text, { color: "gray", italic: true, children: tool.shorthandDescription.en }) })] }, name));
9
- }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: "gray", children: "\uC790\uC5F0\uC5B4 \uC9C8\uBB38\uC740 \uC2AC\uB798\uC2DC \uC5C6\uC774 \uC785\uB825\uD558\uBA74 RAG \uAE30\uBC18\uC73C\uB85C \uB2F5\uBCC0\uD569\uB2C8\uB2E4." }) })] }));
10
- }
11
- //# sourceMappingURL=HelpCommands.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HelpCommands.js","sourceRoot":"","sources":["../../../src/cli/ui/HelpCommands.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAcjD,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,EAAqB;IACxD,OAAO,CACN,MAAC,GAAG,IACH,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,CAAC,EACV,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,MAAM,EAClB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,aAEpC,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,QAAQ,6CAElB,EACN,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC7B,MAAC,GAAG,IAAoB,UAAU,EAAE,CAAC,aACpC,KAAC,GAAG,IAAC,KAAK,EAAE,EAAE,YACb,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,OAAO,GAAQ,GACnC,EACN,MAAC,IAAI,0BAAI,IAAI,CAAC,IAAI,IAAQ,KAJjB,IAAI,CAAC,OAAO,CAKhB,CACN,CAAC,EAEF,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YAChB,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,QAAQ,mDAElB,GACF,EACL,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;gBAC3C,MAAM,IAAI,GAAG,IAA2B,CAAC;gBACzC,OAAO,CACN,MAAC,GAAG,IAAY,aAAa,EAAC,QAAQ,EAAC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,aACjE,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,YAAE,IAAI,CAAC,IAAI,GAAQ,EACxC,KAAC,GAAG,IAAC,UAAU,EAAE,CAAC,YACjB,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,kBACvB,IAAI,CAAC,oBAAoB,CAAC,EAAE,GACvB,GACF,KANG,IAAI,CAOR,CACN,CAAC;YACH,CAAC,CAAC,EAEF,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YAChB,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,4KAEX,GACF,IACD,CACN,CAAC;AACH,CAAC"}
@@ -1,9 +0,0 @@
1
- import type React from "react";
2
- import type { ContentRenderer, HistoryItem } from "../types.js";
3
- interface HistoryItemDisplayProps {
4
- item: HistoryItem;
5
- width: number;
6
- contentRenderer?: ContentRenderer;
7
- }
8
- export declare const HistoryItemDisplay: React.FC<HistoryItemDisplayProps>;
9
- export {};