orquesta-cli 0.1.13 → 0.1.14

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 (539) hide show
  1. package/README.md +30 -4
  2. package/dist/cli.js +65 -4
  3. package/dist/core/config/config-manager.d.ts +13 -1
  4. package/dist/core/config/config-manager.js +83 -0
  5. package/dist/core/slash-command-handler.d.ts +1 -0
  6. package/dist/core/slash-command-handler.js +129 -0
  7. package/dist/orquesta/config-sync.d.ts +73 -0
  8. package/dist/orquesta/config-sync.js +230 -0
  9. package/dist/orquesta/prompt-reporter.d.ts +16 -0
  10. package/dist/orquesta/prompt-reporter.js +85 -0
  11. package/dist/setup/first-run-setup.d.ts +15 -0
  12. package/dist/setup/first-run-setup.js +238 -0
  13. package/dist/types/index.d.ts +11 -2
  14. package/dist/ui/TodoPanel.d.ts +1 -0
  15. package/dist/ui/TodoPanel.js +6 -1
  16. package/dist/ui/components/LLMSetupWizard.js +373 -7
  17. package/dist/ui/components/Logo.d.ts +2 -0
  18. package/dist/ui/components/Logo.js +10 -3
  19. package/dist/ui/components/OpenRouterModelBrowser.d.ts +13 -0
  20. package/dist/ui/components/OpenRouterModelBrowser.js +221 -0
  21. package/dist/ui/components/PlanExecuteApp.js +30 -4
  22. package/dist/ui/components/ProjectSelector.d.ts +8 -0
  23. package/dist/ui/components/ProjectSelector.js +119 -0
  24. package/dist/ui/components/StatusBar.d.ts +2 -0
  25. package/dist/ui/components/StatusBar.js +6 -1
  26. package/dist/ui/hooks/slashCommandProcessor.js +8 -4
  27. package/package.json +11 -5
  28. package/.eslintrc.json +0 -26
  29. package/.prettierrc.json +0 -10
  30. package/CLAUDE.md +0 -199
  31. package/SECURITY.md +0 -290
  32. package/TEST_LOCAL.md +0 -245
  33. package/dist/agents/base/base-agent.d.ts.map +0 -1
  34. package/dist/agents/base/base-agent.js.map +0 -1
  35. package/dist/agents/docs-search/index.d.ts.map +0 -1
  36. package/dist/agents/docs-search/index.js.map +0 -1
  37. package/dist/agents/index.d.ts.map +0 -1
  38. package/dist/agents/index.js.map +0 -1
  39. package/dist/agents/planner/index.d.ts.map +0 -1
  40. package/dist/agents/planner/index.js.map +0 -1
  41. package/dist/cli.d.ts.map +0 -1
  42. package/dist/cli.js.map +0 -1
  43. package/dist/constants.d.ts.map +0 -1
  44. package/dist/constants.js.map +0 -1
  45. package/dist/core/compact/compact-manager.d.ts.map +0 -1
  46. package/dist/core/compact/compact-manager.js.map +0 -1
  47. package/dist/core/compact/compact-prompts.d.ts.map +0 -1
  48. package/dist/core/compact/compact-prompts.js.map +0 -1
  49. package/dist/core/compact/context-tracker.d.ts.map +0 -1
  50. package/dist/core/compact/context-tracker.js.map +0 -1
  51. package/dist/core/compact/index.d.ts.map +0 -1
  52. package/dist/core/compact/index.js.map +0 -1
  53. package/dist/core/config/config-manager.d.ts.map +0 -1
  54. package/dist/core/config/config-manager.js.map +0 -1
  55. package/dist/core/config/index.d.ts.map +0 -1
  56. package/dist/core/config/index.js.map +0 -1
  57. package/dist/core/docs-manager.d.ts.map +0 -1
  58. package/dist/core/docs-manager.js.map +0 -1
  59. package/dist/core/git-auto-updater.d.ts.map +0 -1
  60. package/dist/core/git-auto-updater.js.map +0 -1
  61. package/dist/core/llm/index.d.ts.map +0 -1
  62. package/dist/core/llm/index.js.map +0 -1
  63. package/dist/core/llm/llm-client.d.ts.map +0 -1
  64. package/dist/core/llm/llm-client.js.map +0 -1
  65. package/dist/core/session/index.d.ts.map +0 -1
  66. package/dist/core/session/index.js.map +0 -1
  67. package/dist/core/session/session-manager.d.ts.map +0 -1
  68. package/dist/core/session/session-manager.js.map +0 -1
  69. package/dist/core/slash-command-handler.d.ts.map +0 -1
  70. package/dist/core/slash-command-handler.js.map +0 -1
  71. package/dist/core/usage-tracker.d.ts.map +0 -1
  72. package/dist/core/usage-tracker.js.map +0 -1
  73. package/dist/errors/base.d.ts.map +0 -1
  74. package/dist/errors/base.js.map +0 -1
  75. package/dist/errors/file.d.ts.map +0 -1
  76. package/dist/errors/file.js.map +0 -1
  77. package/dist/errors/index.d.ts.map +0 -1
  78. package/dist/errors/index.js.map +0 -1
  79. package/dist/errors/llm.d.ts.map +0 -1
  80. package/dist/errors/llm.js.map +0 -1
  81. package/dist/errors/network.d.ts.map +0 -1
  82. package/dist/errors/network.js.map +0 -1
  83. package/dist/errors/validation.d.ts.map +0 -1
  84. package/dist/errors/validation.js.map +0 -1
  85. package/dist/eval/eval-runner.d.ts.map +0 -1
  86. package/dist/eval/eval-runner.js.map +0 -1
  87. package/dist/eval/index.d.ts.map +0 -1
  88. package/dist/eval/index.js.map +0 -1
  89. package/dist/eval/types.d.ts.map +0 -1
  90. package/dist/eval/types.js.map +0 -1
  91. package/dist/index.d.ts.map +0 -1
  92. package/dist/index.js.map +0 -1
  93. package/dist/orchestration/index.d.ts.map +0 -1
  94. package/dist/orchestration/index.js.map +0 -1
  95. package/dist/orchestration/plan-executor.d.ts.map +0 -1
  96. package/dist/orchestration/plan-executor.js.map +0 -1
  97. package/dist/orchestration/types.d.ts.map +0 -1
  98. package/dist/orchestration/types.js.map +0 -1
  99. package/dist/orchestration/utils.d.ts.map +0 -1
  100. package/dist/orchestration/utils.js.map +0 -1
  101. package/dist/orquesta/connection.d.ts.map +0 -1
  102. package/dist/orquesta/connection.js.map +0 -1
  103. package/dist/prompts/agents/docs-search-decision.d.ts.map +0 -1
  104. package/dist/prompts/agents/docs-search-decision.js.map +0 -1
  105. package/dist/prompts/agents/docs-search.d.ts.map +0 -1
  106. package/dist/prompts/agents/docs-search.js.map +0 -1
  107. package/dist/prompts/agents/planning.d.ts.map +0 -1
  108. package/dist/prompts/agents/planning.js.map +0 -1
  109. package/dist/prompts/index.d.ts.map +0 -1
  110. package/dist/prompts/index.js.map +0 -1
  111. package/dist/prompts/shared/codebase-rules.d.ts.map +0 -1
  112. package/dist/prompts/shared/codebase-rules.js.map +0 -1
  113. package/dist/prompts/shared/git-rules.d.ts.map +0 -1
  114. package/dist/prompts/shared/git-rules.js.map +0 -1
  115. package/dist/prompts/shared/language-rules.d.ts.map +0 -1
  116. package/dist/prompts/shared/language-rules.js.map +0 -1
  117. package/dist/prompts/shared/tool-usage.d.ts.map +0 -1
  118. package/dist/prompts/shared/tool-usage.js.map +0 -1
  119. package/dist/prompts/system/compact.d.ts.map +0 -1
  120. package/dist/prompts/system/compact.js.map +0 -1
  121. package/dist/prompts/system/plan-execute.d.ts.map +0 -1
  122. package/dist/prompts/system/plan-execute.js.map +0 -1
  123. package/dist/tools/browser/browser-client.d.ts.map +0 -1
  124. package/dist/tools/browser/browser-client.js.map +0 -1
  125. package/dist/tools/browser/browser-tools.d.ts.map +0 -1
  126. package/dist/tools/browser/browser-tools.js.map +0 -1
  127. package/dist/tools/browser/index.d.ts.map +0 -1
  128. package/dist/tools/browser/index.js.map +0 -1
  129. package/dist/tools/index.d.ts.map +0 -1
  130. package/dist/tools/index.js.map +0 -1
  131. package/dist/tools/llm/agents/docs-search-tools.d.ts.map +0 -1
  132. package/dist/tools/llm/agents/docs-search-tools.js.map +0 -1
  133. package/dist/tools/llm/agents/index.d.ts.map +0 -1
  134. package/dist/tools/llm/agents/index.js.map +0 -1
  135. package/dist/tools/llm/index.d.ts.map +0 -1
  136. package/dist/tools/llm/index.js.map +0 -1
  137. package/dist/tools/llm/simple/ask-user-tool.d.ts.map +0 -1
  138. package/dist/tools/llm/simple/ask-user-tool.js.map +0 -1
  139. package/dist/tools/llm/simple/background-bash-tool.d.ts.map +0 -1
  140. package/dist/tools/llm/simple/background-bash-tool.js.map +0 -1
  141. package/dist/tools/llm/simple/background-powershell-tool.d.ts.map +0 -1
  142. package/dist/tools/llm/simple/background-powershell-tool.js.map +0 -1
  143. package/dist/tools/llm/simple/bash-tool.d.ts.map +0 -1
  144. package/dist/tools/llm/simple/bash-tool.js.map +0 -1
  145. package/dist/tools/llm/simple/docs-search-agent-tool.d.ts.map +0 -1
  146. package/dist/tools/llm/simple/docs-search-agent-tool.js.map +0 -1
  147. package/dist/tools/llm/simple/file-tools.d.ts.map +0 -1
  148. package/dist/tools/llm/simple/file-tools.js.map +0 -1
  149. package/dist/tools/llm/simple/final-response-tool.d.ts.map +0 -1
  150. package/dist/tools/llm/simple/final-response-tool.js.map +0 -1
  151. package/dist/tools/llm/simple/index.d.ts.map +0 -1
  152. package/dist/tools/llm/simple/index.js.map +0 -1
  153. package/dist/tools/llm/simple/planning-tools.d.ts.map +0 -1
  154. package/dist/tools/llm/simple/planning-tools.js.map +0 -1
  155. package/dist/tools/llm/simple/powershell-tool.d.ts.map +0 -1
  156. package/dist/tools/llm/simple/powershell-tool.js.map +0 -1
  157. package/dist/tools/llm/simple/simple-tool-executor.d.ts.map +0 -1
  158. package/dist/tools/llm/simple/simple-tool-executor.js.map +0 -1
  159. package/dist/tools/llm/simple/todo-tools.d.ts.map +0 -1
  160. package/dist/tools/llm/simple/todo-tools.js.map +0 -1
  161. package/dist/tools/llm/simple/user-interaction-tools.d.ts.map +0 -1
  162. package/dist/tools/llm/simple/user-interaction-tools.js.map +0 -1
  163. package/dist/tools/office/common/constants.d.ts.map +0 -1
  164. package/dist/tools/office/common/constants.js.map +0 -1
  165. package/dist/tools/office/common/index.d.ts.map +0 -1
  166. package/dist/tools/office/common/index.js.map +0 -1
  167. package/dist/tools/office/common/types.d.ts.map +0 -1
  168. package/dist/tools/office/common/types.js.map +0 -1
  169. package/dist/tools/office/common/utils.d.ts.map +0 -1
  170. package/dist/tools/office/common/utils.js.map +0 -1
  171. package/dist/tools/office/excel-client.d.ts.map +0 -1
  172. package/dist/tools/office/excel-client.js.map +0 -1
  173. package/dist/tools/office/excel-tools/cells.d.ts.map +0 -1
  174. package/dist/tools/office/excel-tools/cells.js.map +0 -1
  175. package/dist/tools/office/excel-tools/charts.d.ts.map +0 -1
  176. package/dist/tools/office/excel-tools/charts.js.map +0 -1
  177. package/dist/tools/office/excel-tools/comments.d.ts.map +0 -1
  178. package/dist/tools/office/excel-tools/comments.js.map +0 -1
  179. package/dist/tools/office/excel-tools/data-ops.d.ts.map +0 -1
  180. package/dist/tools/office/excel-tools/data-ops.js.map +0 -1
  181. package/dist/tools/office/excel-tools/export.d.ts.map +0 -1
  182. package/dist/tools/office/excel-tools/export.js.map +0 -1
  183. package/dist/tools/office/excel-tools/formatting.d.ts.map +0 -1
  184. package/dist/tools/office/excel-tools/formatting.js.map +0 -1
  185. package/dist/tools/office/excel-tools/index.d.ts.map +0 -1
  186. package/dist/tools/office/excel-tools/index.js.map +0 -1
  187. package/dist/tools/office/excel-tools/launch.d.ts.map +0 -1
  188. package/dist/tools/office/excel-tools/launch.js.map +0 -1
  189. package/dist/tools/office/excel-tools/media.d.ts.map +0 -1
  190. package/dist/tools/office/excel-tools/media.js.map +0 -1
  191. package/dist/tools/office/excel-tools/named-ranges.d.ts.map +0 -1
  192. package/dist/tools/office/excel-tools/named-ranges.js.map +0 -1
  193. package/dist/tools/office/excel-tools/protection.d.ts.map +0 -1
  194. package/dist/tools/office/excel-tools/protection.js.map +0 -1
  195. package/dist/tools/office/excel-tools/rows-columns.d.ts.map +0 -1
  196. package/dist/tools/office/excel-tools/rows-columns.js.map +0 -1
  197. package/dist/tools/office/excel-tools/sheets.d.ts.map +0 -1
  198. package/dist/tools/office/excel-tools/sheets.js.map +0 -1
  199. package/dist/tools/office/excel-tools/validation.d.ts.map +0 -1
  200. package/dist/tools/office/excel-tools/validation.js.map +0 -1
  201. package/dist/tools/office/excel-tools.d.ts.map +0 -1
  202. package/dist/tools/office/excel-tools.js.map +0 -1
  203. package/dist/tools/office/index.d.ts.map +0 -1
  204. package/dist/tools/office/index.js.map +0 -1
  205. package/dist/tools/office/office-client-base.d.ts.map +0 -1
  206. package/dist/tools/office/office-client-base.js.map +0 -1
  207. package/dist/tools/office/office-client.d.ts.map +0 -1
  208. package/dist/tools/office/office-client.js.map +0 -1
  209. package/dist/tools/office/powerpoint-client.d.ts.map +0 -1
  210. package/dist/tools/office/powerpoint-client.js.map +0 -1
  211. package/dist/tools/office/powerpoint-tools/effects.d.ts.map +0 -1
  212. package/dist/tools/office/powerpoint-tools/effects.js.map +0 -1
  213. package/dist/tools/office/powerpoint-tools/export.d.ts.map +0 -1
  214. package/dist/tools/office/powerpoint-tools/export.js.map +0 -1
  215. package/dist/tools/office/powerpoint-tools/index.d.ts.map +0 -1
  216. package/dist/tools/office/powerpoint-tools/index.js.map +0 -1
  217. package/dist/tools/office/powerpoint-tools/launch.d.ts.map +0 -1
  218. package/dist/tools/office/powerpoint-tools/launch.js.map +0 -1
  219. package/dist/tools/office/powerpoint-tools/media.d.ts.map +0 -1
  220. package/dist/tools/office/powerpoint-tools/media.js.map +0 -1
  221. package/dist/tools/office/powerpoint-tools/notes.d.ts.map +0 -1
  222. package/dist/tools/office/powerpoint-tools/notes.js.map +0 -1
  223. package/dist/tools/office/powerpoint-tools/sections.d.ts.map +0 -1
  224. package/dist/tools/office/powerpoint-tools/sections.js.map +0 -1
  225. package/dist/tools/office/powerpoint-tools/shapes.d.ts.map +0 -1
  226. package/dist/tools/office/powerpoint-tools/shapes.js.map +0 -1
  227. package/dist/tools/office/powerpoint-tools/slides.d.ts.map +0 -1
  228. package/dist/tools/office/powerpoint-tools/slides.js.map +0 -1
  229. package/dist/tools/office/powerpoint-tools/tables.d.ts.map +0 -1
  230. package/dist/tools/office/powerpoint-tools/tables.js.map +0 -1
  231. package/dist/tools/office/powerpoint-tools/text.d.ts.map +0 -1
  232. package/dist/tools/office/powerpoint-tools/text.js.map +0 -1
  233. package/dist/tools/office/powerpoint-tools.d.ts.map +0 -1
  234. package/dist/tools/office/powerpoint-tools.js.map +0 -1
  235. package/dist/tools/office/word-client.d.ts.map +0 -1
  236. package/dist/tools/office/word-client.js.map +0 -1
  237. package/dist/tools/office/word-tools/bookmarks.d.ts.map +0 -1
  238. package/dist/tools/office/word-tools/bookmarks.js.map +0 -1
  239. package/dist/tools/office/word-tools/comments.d.ts.map +0 -1
  240. package/dist/tools/office/word-tools/comments.js.map +0 -1
  241. package/dist/tools/office/word-tools/content.d.ts.map +0 -1
  242. package/dist/tools/office/word-tools/content.js.map +0 -1
  243. package/dist/tools/office/word-tools/export.d.ts.map +0 -1
  244. package/dist/tools/office/word-tools/export.js.map +0 -1
  245. package/dist/tools/office/word-tools/formatting.d.ts.map +0 -1
  246. package/dist/tools/office/word-tools/formatting.js.map +0 -1
  247. package/dist/tools/office/word-tools/headers-footers.d.ts.map +0 -1
  248. package/dist/tools/office/word-tools/headers-footers.js.map +0 -1
  249. package/dist/tools/office/word-tools/index.d.ts.map +0 -1
  250. package/dist/tools/office/word-tools/index.js.map +0 -1
  251. package/dist/tools/office/word-tools/launch.d.ts.map +0 -1
  252. package/dist/tools/office/word-tools/launch.js.map +0 -1
  253. package/dist/tools/office/word-tools/lists.d.ts.map +0 -1
  254. package/dist/tools/office/word-tools/lists.js.map +0 -1
  255. package/dist/tools/office/word-tools/navigation.d.ts.map +0 -1
  256. package/dist/tools/office/word-tools/navigation.js.map +0 -1
  257. package/dist/tools/office/word-tools/page-setup.d.ts.map +0 -1
  258. package/dist/tools/office/word-tools/page-setup.js.map +0 -1
  259. package/dist/tools/office/word-tools/tables.d.ts.map +0 -1
  260. package/dist/tools/office/word-tools/tables.js.map +0 -1
  261. package/dist/tools/office/word-tools/text.d.ts.map +0 -1
  262. package/dist/tools/office/word-tools/text.js.map +0 -1
  263. package/dist/tools/office/word-tools/undo-redo.d.ts.map +0 -1
  264. package/dist/tools/office/word-tools/undo-redo.js.map +0 -1
  265. package/dist/tools/office/word-tools/watermarks.d.ts.map +0 -1
  266. package/dist/tools/office/word-tools/watermarks.js.map +0 -1
  267. package/dist/tools/office/word-tools.d.ts.map +0 -1
  268. package/dist/tools/office/word-tools.js.map +0 -1
  269. package/dist/tools/registry.d.ts.map +0 -1
  270. package/dist/tools/registry.js.map +0 -1
  271. package/dist/tools/types.d.ts.map +0 -1
  272. package/dist/tools/types.js.map +0 -1
  273. package/dist/types/index.d.ts.map +0 -1
  274. package/dist/types/index.js.map +0 -1
  275. package/dist/ui/PlanExecuteView.d.ts.map +0 -1
  276. package/dist/ui/PlanExecuteView.js.map +0 -1
  277. package/dist/ui/TodoPanel.d.ts.map +0 -1
  278. package/dist/ui/TodoPanel.js.map +0 -1
  279. package/dist/ui/UpdateNotification.d.ts.map +0 -1
  280. package/dist/ui/UpdateNotification.js.map +0 -1
  281. package/dist/ui/components/ActivityIndicator.d.ts.map +0 -1
  282. package/dist/ui/components/ActivityIndicator.js.map +0 -1
  283. package/dist/ui/components/CommandBrowser.d.ts.map +0 -1
  284. package/dist/ui/components/CommandBrowser.js.map +0 -1
  285. package/dist/ui/components/CustomTextInput.d.ts.map +0 -1
  286. package/dist/ui/components/CustomTextInput.js.map +0 -1
  287. package/dist/ui/components/DocsSearchProgress.d.ts.map +0 -1
  288. package/dist/ui/components/DocsSearchProgress.js.map +0 -1
  289. package/dist/ui/components/FileBrowser.d.ts.map +0 -1
  290. package/dist/ui/components/FileBrowser.js.map +0 -1
  291. package/dist/ui/components/LLMSetupWizard.d.ts.map +0 -1
  292. package/dist/ui/components/LLMSetupWizard.js.map +0 -1
  293. package/dist/ui/components/Logo.d.ts.map +0 -1
  294. package/dist/ui/components/Logo.js.map +0 -1
  295. package/dist/ui/components/MarkdownRenderer.d.ts.map +0 -1
  296. package/dist/ui/components/MarkdownRenderer.js.map +0 -1
  297. package/dist/ui/components/ModelSelector.d.ts.map +0 -1
  298. package/dist/ui/components/ModelSelector.js.map +0 -1
  299. package/dist/ui/components/PlanExecuteApp.d.ts.map +0 -1
  300. package/dist/ui/components/PlanExecuteApp.js.map +0 -1
  301. package/dist/ui/components/ProgressBar.d.ts.map +0 -1
  302. package/dist/ui/components/ProgressBar.js.map +0 -1
  303. package/dist/ui/components/StatusBar.d.ts.map +0 -1
  304. package/dist/ui/components/StatusBar.js.map +0 -1
  305. package/dist/ui/components/ThinkingIndicator.d.ts.map +0 -1
  306. package/dist/ui/components/ThinkingIndicator.js.map +0 -1
  307. package/dist/ui/components/TodoListView.d.ts.map +0 -1
  308. package/dist/ui/components/TodoListView.js.map +0 -1
  309. package/dist/ui/components/ToolSelector.d.ts.map +0 -1
  310. package/dist/ui/components/ToolSelector.js.map +0 -1
  311. package/dist/ui/components/dialogs/ApprovalDialog.d.ts.map +0 -1
  312. package/dist/ui/components/dialogs/ApprovalDialog.js.map +0 -1
  313. package/dist/ui/components/dialogs/AskUserDialog.d.ts.map +0 -1
  314. package/dist/ui/components/dialogs/AskUserDialog.js.map +0 -1
  315. package/dist/ui/components/dialogs/DocsBrowser.d.ts.map +0 -1
  316. package/dist/ui/components/dialogs/DocsBrowser.js.map +0 -1
  317. package/dist/ui/components/dialogs/SettingsDialog.d.ts.map +0 -1
  318. package/dist/ui/components/dialogs/SettingsDialog.js.map +0 -1
  319. package/dist/ui/components/dialogs/index.d.ts.map +0 -1
  320. package/dist/ui/components/dialogs/index.js.map +0 -1
  321. package/dist/ui/components/index.d.ts.map +0 -1
  322. package/dist/ui/components/index.js.map +0 -1
  323. package/dist/ui/components/panels/LogPanel.d.ts.map +0 -1
  324. package/dist/ui/components/panels/LogPanel.js.map +0 -1
  325. package/dist/ui/components/panels/SessionPanel.d.ts.map +0 -1
  326. package/dist/ui/components/panels/SessionPanel.js.map +0 -1
  327. package/dist/ui/components/panels/index.d.ts.map +0 -1
  328. package/dist/ui/components/panels/index.js.map +0 -1
  329. package/dist/ui/components/views/ChatView.d.ts.map +0 -1
  330. package/dist/ui/components/views/ChatView.js.map +0 -1
  331. package/dist/ui/components/views/index.d.ts.map +0 -1
  332. package/dist/ui/components/views/index.js.map +0 -1
  333. package/dist/ui/contexts/TokenContext.d.ts.map +0 -1
  334. package/dist/ui/contexts/TokenContext.js.map +0 -1
  335. package/dist/ui/hooks/atFileProcessor.d.ts.map +0 -1
  336. package/dist/ui/hooks/atFileProcessor.js.map +0 -1
  337. package/dist/ui/hooks/index.d.ts.map +0 -1
  338. package/dist/ui/hooks/index.js.map +0 -1
  339. package/dist/ui/hooks/slashCommandProcessor.d.ts.map +0 -1
  340. package/dist/ui/hooks/slashCommandProcessor.js.map +0 -1
  341. package/dist/ui/hooks/useCommandBrowserState.d.ts.map +0 -1
  342. package/dist/ui/hooks/useCommandBrowserState.js.map +0 -1
  343. package/dist/ui/hooks/useFileBrowserState.d.ts.map +0 -1
  344. package/dist/ui/hooks/useFileBrowserState.js.map +0 -1
  345. package/dist/ui/hooks/useFileList.d.ts.map +0 -1
  346. package/dist/ui/hooks/useFileList.js.map +0 -1
  347. package/dist/ui/hooks/useInputHistory.d.ts.map +0 -1
  348. package/dist/ui/hooks/useInputHistory.js.map +0 -1
  349. package/dist/ui/hooks/usePlanExecution.d.ts.map +0 -1
  350. package/dist/ui/hooks/usePlanExecution.js.map +0 -1
  351. package/dist/ui/index.d.ts.map +0 -1
  352. package/dist/ui/index.js.map +0 -1
  353. package/dist/ui/ink-entry.d.ts.map +0 -1
  354. package/dist/ui/ink-entry.js.map +0 -1
  355. package/dist/utils/env-filter.d.ts.map +0 -1
  356. package/dist/utils/env-filter.js.map +0 -1
  357. package/dist/utils/file-system.d.ts.map +0 -1
  358. package/dist/utils/file-system.js.map +0 -1
  359. package/dist/utils/git-utils.d.ts.map +0 -1
  360. package/dist/utils/git-utils.js.map +0 -1
  361. package/dist/utils/json-stream-logger.d.ts.map +0 -1
  362. package/dist/utils/json-stream-logger.js.map +0 -1
  363. package/dist/utils/logger.d.ts.map +0 -1
  364. package/dist/utils/logger.js.map +0 -1
  365. package/dist/utils/platform-utils.d.ts.map +0 -1
  366. package/dist/utils/platform-utils.js.map +0 -1
  367. package/dist/utils/wsl-utils.d.ts.map +0 -1
  368. package/dist/utils/wsl-utils.js.map +0 -1
  369. package/electron.vite.config.ts +0 -63
  370. package/google374b9eba0c52b043.html +0 -1
  371. package/src/agents/base/base-agent.ts +0 -159
  372. package/src/agents/docs-search/index.ts +0 -365
  373. package/src/agents/index.ts +0 -34
  374. package/src/agents/planner/index.ts +0 -544
  375. package/src/cli.ts +0 -201
  376. package/src/constants.ts +0 -47
  377. package/src/core/compact/compact-manager.ts +0 -160
  378. package/src/core/compact/compact-prompts.ts +0 -150
  379. package/src/core/compact/context-tracker.ts +0 -164
  380. package/src/core/compact/index.ts +0 -25
  381. package/src/core/config/config-manager.ts +0 -460
  382. package/src/core/config/index.ts +0 -5
  383. package/src/core/docs-manager.ts +0 -678
  384. package/src/core/llm/index.ts +0 -7
  385. package/src/core/llm/llm-client.ts +0 -1550
  386. package/src/core/session/index.ts +0 -5
  387. package/src/core/session/session-manager.ts +0 -464
  388. package/src/core/slash-command-handler.ts +0 -410
  389. package/src/core/usage-tracker.ts +0 -438
  390. package/src/errors/base.ts +0 -81
  391. package/src/errors/file.ts +0 -183
  392. package/src/errors/index.ts +0 -95
  393. package/src/errors/llm.ts +0 -151
  394. package/src/errors/network.ts +0 -124
  395. package/src/errors/validation.ts +0 -111
  396. package/src/eval/eval-runner.ts +0 -456
  397. package/src/eval/index.ts +0 -8
  398. package/src/eval/types.ts +0 -139
  399. package/src/index.ts +0 -22
  400. package/src/orchestration/index.ts +0 -30
  401. package/src/orchestration/plan-executor.ts +0 -652
  402. package/src/orchestration/types.ts +0 -127
  403. package/src/orchestration/utils.ts +0 -119
  404. package/src/orquesta/connection.ts +0 -291
  405. package/src/prompts/agents/docs-search-decision.ts +0 -74
  406. package/src/prompts/agents/docs-search.ts +0 -84
  407. package/src/prompts/agents/planning.ts +0 -143
  408. package/src/prompts/index.ts +0 -31
  409. package/src/prompts/shared/codebase-rules.ts +0 -29
  410. package/src/prompts/shared/git-rules.ts +0 -94
  411. package/src/prompts/shared/language-rules.ts +0 -36
  412. package/src/prompts/shared/tool-usage.ts +0 -72
  413. package/src/prompts/system/compact.ts +0 -80
  414. package/src/prompts/system/plan-execute.ts +0 -89
  415. package/src/tools/browser/browser-client.ts +0 -1363
  416. package/src/tools/browser/browser-tools.ts +0 -1139
  417. package/src/tools/browser/index.ts +0 -65
  418. package/src/tools/index.ts +0 -23
  419. package/src/tools/llm/agents/docs-search-tools.ts +0 -368
  420. package/src/tools/llm/agents/index.ts +0 -22
  421. package/src/tools/llm/index.ts +0 -11
  422. package/src/tools/llm/simple/ask-user-tool.ts +0 -25
  423. package/src/tools/llm/simple/background-bash-tool.ts +0 -443
  424. package/src/tools/llm/simple/background-powershell-tool.ts +0 -421
  425. package/src/tools/llm/simple/bash-tool.ts +0 -238
  426. package/src/tools/llm/simple/docs-search-agent-tool.ts +0 -146
  427. package/src/tools/llm/simple/file-tools.ts +0 -1051
  428. package/src/tools/llm/simple/final-response-tool.ts +0 -180
  429. package/src/tools/llm/simple/index.ts +0 -42
  430. package/src/tools/llm/simple/planning-tools.ts +0 -143
  431. package/src/tools/llm/simple/powershell-tool.ts +0 -241
  432. package/src/tools/llm/simple/simple-tool-executor.ts +0 -279
  433. package/src/tools/llm/simple/todo-tools.ts +0 -207
  434. package/src/tools/llm/simple/user-interaction-tools.ts +0 -277
  435. package/src/tools/office/common/constants.ts +0 -335
  436. package/src/tools/office/common/index.ts +0 -133
  437. package/src/tools/office/common/types.ts +0 -286
  438. package/src/tools/office/common/utils.ts +0 -116
  439. package/src/tools/office/excel-client.ts +0 -1336
  440. package/src/tools/office/excel-tools/cells.ts +0 -359
  441. package/src/tools/office/excel-tools/charts.ts +0 -166
  442. package/src/tools/office/excel-tools/comments.ts +0 -155
  443. package/src/tools/office/excel-tools/data-ops.ts +0 -349
  444. package/src/tools/office/excel-tools/export.ts +0 -105
  445. package/src/tools/office/excel-tools/formatting.ts +0 -357
  446. package/src/tools/office/excel-tools/index.ts +0 -55
  447. package/src/tools/office/excel-tools/launch.ts +0 -303
  448. package/src/tools/office/excel-tools/media.ts +0 -117
  449. package/src/tools/office/excel-tools/named-ranges.ts +0 -148
  450. package/src/tools/office/excel-tools/protection.ts +0 -105
  451. package/src/tools/office/excel-tools/rows-columns.ts +0 -386
  452. package/src/tools/office/excel-tools/sheets.ts +0 -228
  453. package/src/tools/office/excel-tools/validation.ts +0 -226
  454. package/src/tools/office/excel-tools.ts +0 -9
  455. package/src/tools/office/index.ts +0 -259
  456. package/src/tools/office/office-client-base.ts +0 -242
  457. package/src/tools/office/office-client.ts +0 -377
  458. package/src/tools/office/powerpoint-client.ts +0 -1498
  459. package/src/tools/office/powerpoint-tools/effects.ts +0 -315
  460. package/src/tools/office/powerpoint-tools/export.ts +0 -138
  461. package/src/tools/office/powerpoint-tools/index.ts +0 -45
  462. package/src/tools/office/powerpoint-tools/launch.ts +0 -263
  463. package/src/tools/office/powerpoint-tools/media.ts +0 -291
  464. package/src/tools/office/powerpoint-tools/notes.ts +0 -220
  465. package/src/tools/office/powerpoint-tools/sections.ts +0 -140
  466. package/src/tools/office/powerpoint-tools/shapes.ts +0 -870
  467. package/src/tools/office/powerpoint-tools/slides.ts +0 -350
  468. package/src/tools/office/powerpoint-tools/tables.ts +0 -182
  469. package/src/tools/office/powerpoint-tools/text.ts +0 -473
  470. package/src/tools/office/powerpoint-tools.ts +0 -9
  471. package/src/tools/office/word-client.ts +0 -1697
  472. package/src/tools/office/word-tools/bookmarks.ts +0 -186
  473. package/src/tools/office/word-tools/comments.ts +0 -185
  474. package/src/tools/office/word-tools/content.ts +0 -229
  475. package/src/tools/office/word-tools/export.ts +0 -97
  476. package/src/tools/office/word-tools/formatting.ts +0 -161
  477. package/src/tools/office/word-tools/headers-footers.ts +0 -155
  478. package/src/tools/office/word-tools/index.ts +0 -57
  479. package/src/tools/office/word-tools/launch.ts +0 -312
  480. package/src/tools/office/word-tools/lists.ts +0 -97
  481. package/src/tools/office/word-tools/navigation.ts +0 -114
  482. package/src/tools/office/word-tools/page-setup.ts +0 -195
  483. package/src/tools/office/word-tools/tables.ts +0 -262
  484. package/src/tools/office/word-tools/text.ts +0 -294
  485. package/src/tools/office/word-tools/undo-redo.ts +0 -97
  486. package/src/tools/office/word-tools/watermarks.ts +0 -105
  487. package/src/tools/office/word-tools.ts +0 -9
  488. package/src/tools/registry.ts +0 -527
  489. package/src/tools/types.ts +0 -231
  490. package/src/types/index.ts +0 -181
  491. package/src/ui/PlanExecuteView.tsx +0 -119
  492. package/src/ui/TodoPanel.tsx +0 -240
  493. package/src/ui/UpdateNotification.tsx +0 -105
  494. package/src/ui/components/ActivityIndicator.tsx +0 -234
  495. package/src/ui/components/CommandBrowser.tsx +0 -114
  496. package/src/ui/components/CustomTextInput.tsx +0 -389
  497. package/src/ui/components/DocsSearchProgress.tsx +0 -85
  498. package/src/ui/components/FileBrowser.tsx +0 -93
  499. package/src/ui/components/LLMSetupWizard.tsx +0 -333
  500. package/src/ui/components/Logo.tsx +0 -125
  501. package/src/ui/components/MarkdownRenderer.tsx +0 -358
  502. package/src/ui/components/ModelSelector.tsx +0 -203
  503. package/src/ui/components/PlanExecuteApp.tsx +0 -2007
  504. package/src/ui/components/ProgressBar.tsx +0 -51
  505. package/src/ui/components/StatusBar.tsx +0 -302
  506. package/src/ui/components/ThinkingIndicator.tsx +0 -120
  507. package/src/ui/components/TodoListView.tsx +0 -140
  508. package/src/ui/components/ToolSelector.tsx +0 -215
  509. package/src/ui/components/dialogs/ApprovalDialog.tsx +0 -259
  510. package/src/ui/components/dialogs/AskUserDialog.tsx +0 -159
  511. package/src/ui/components/dialogs/DocsBrowser.tsx +0 -222
  512. package/src/ui/components/dialogs/SettingsDialog.tsx +0 -939
  513. package/src/ui/components/dialogs/index.ts +0 -13
  514. package/src/ui/components/index.ts +0 -27
  515. package/src/ui/components/panels/LogPanel.tsx +0 -385
  516. package/src/ui/components/panels/SessionPanel.tsx +0 -146
  517. package/src/ui/components/panels/index.ts +0 -13
  518. package/src/ui/components/views/ChatView.tsx +0 -447
  519. package/src/ui/components/views/index.ts +0 -5
  520. package/src/ui/contexts/TokenContext.tsx +0 -139
  521. package/src/ui/hooks/atFileProcessor.ts +0 -167
  522. package/src/ui/hooks/index.ts +0 -11
  523. package/src/ui/hooks/slashCommandProcessor.ts +0 -174
  524. package/src/ui/hooks/useCommandBrowserState.ts +0 -97
  525. package/src/ui/hooks/useFileBrowserState.ts +0 -116
  526. package/src/ui/hooks/useFileList.ts +0 -132
  527. package/src/ui/hooks/useInputHistory.ts +0 -89
  528. package/src/ui/hooks/usePlanExecution.ts +0 -339
  529. package/src/ui/index.ts +0 -10
  530. package/src/ui/ink-entry.tsx +0 -36
  531. package/src/utils/env-filter.ts +0 -164
  532. package/src/utils/file-system.ts +0 -133
  533. package/src/utils/git-utils.ts +0 -30
  534. package/src/utils/json-stream-logger.ts +0 -1259
  535. package/src/utils/logger.ts +0 -2767
  536. package/src/utils/platform-utils.ts +0 -256
  537. package/src/utils/wsl-utils.ts +0 -113
  538. package/tsconfig.electron.json +0 -39
  539. package/tsconfig.json +0 -64
@@ -1,359 +0,0 @@
1
- /**
2
- * Excel Cells Tools
3
- *
4
- * Cell read/write and range operations for Excel.
5
- * Tools: writeCell, readCell, writeRange, readRange, copyRange, pasteRange, clearRange
6
- */
7
-
8
- import { ToolDefinition } from '../../../types/index.js';
9
- import { LLMSimpleTool, ToolResult } from '../../types.js';
10
- import { excelClient } from '../excel-client.js';
11
- import { OFFICE_CATEGORIES } from '../common/index.js';
12
-
13
- // =============================================================================
14
- // Excel Write Cell
15
- // =============================================================================
16
-
17
- const EXCEL_WRITE_CELL_DEFINITION: ToolDefinition = {
18
- type: 'function',
19
- function: {
20
- name: 'excel_write_cell',
21
- description: `Write a value to a specific cell in Excel with optional font settings.
22
- Use cell references like "A1", "B2", "C10", etc.
23
- - Numbers are automatically recognized (e.g., "123", "45.67")
24
- - Dates in YYYY-MM-DD format are converted to Excel dates (e.g., "2024-01-19")
25
- - Use as_text=true to force text format (prevents auto-conversion)`,
26
- parameters: {
27
- type: 'object',
28
- properties: {
29
- reason: { type: 'string', description: 'Explanation of why you are writing to this cell' },
30
- cell: { type: 'string', description: 'Cell reference (e.g., "A1", "B2")' },
31
- value: { type: 'string', description: 'Value to write to the cell' },
32
- sheet: { type: 'string', description: 'Sheet name (optional, uses active sheet if not specified)' },
33
- font_name: { type: 'string', description: 'Font name (e.g., "Arial", "Malgun Gothic")' },
34
- font_size: { type: 'number', description: 'Font size in points' },
35
- bold: { type: 'boolean', description: 'Whether to make the text bold' },
36
- as_text: { type: 'boolean', description: 'Force text format (prevents number/date conversion)' },
37
- },
38
- required: ['reason', 'cell', 'value'],
39
- },
40
- },
41
- };
42
-
43
- async function executeExcelWriteCell(args: Record<string, unknown>): Promise<ToolResult> {
44
- try {
45
- const response = await excelClient.excelWriteCell(
46
- args['cell'] as string,
47
- args['value'],
48
- args['sheet'] as string | undefined,
49
- {
50
- fontName: args['font_name'] as string | undefined,
51
- fontSize: args['font_size'] as number | undefined,
52
- bold: args['bold'] as boolean | undefined,
53
- asText: args['as_text'] as boolean | undefined,
54
- }
55
- );
56
- if (response.success) {
57
- return { success: true, result: `Value written to cell ${args['cell']}` };
58
- }
59
- return { success: false, error: response.error || 'Failed to write cell' };
60
- } catch (error) {
61
- return { success: false, error: `Failed to write cell: ${error instanceof Error ? error.message : String(error)}` };
62
- }
63
- }
64
-
65
- export const excelWriteCellTool: LLMSimpleTool = {
66
- definition: EXCEL_WRITE_CELL_DEFINITION,
67
- execute: executeExcelWriteCell,
68
- categories: OFFICE_CATEGORIES,
69
- description: 'Write value to Excel cell',
70
- };
71
-
72
- // =============================================================================
73
- // Excel Read Cell
74
- // =============================================================================
75
-
76
- const EXCEL_READ_CELL_DEFINITION: ToolDefinition = {
77
- type: 'function',
78
- function: {
79
- name: 'excel_read_cell',
80
- description: `Read a value from a specific cell in Excel.`,
81
- parameters: {
82
- type: 'object',
83
- properties: {
84
- reason: { type: 'string', description: 'Explanation of why you are reading this cell' },
85
- cell: { type: 'string', description: 'Cell reference (e.g., "A1", "B2")' },
86
- sheet: { type: 'string', description: 'Sheet name (optional)' },
87
- },
88
- required: ['reason', 'cell'],
89
- },
90
- },
91
- };
92
-
93
- async function executeExcelReadCell(args: Record<string, unknown>): Promise<ToolResult> {
94
- try {
95
- const response = await excelClient.excelReadCell(
96
- args['cell'] as string,
97
- args['sheet'] as string | undefined
98
- );
99
- if (response.success) {
100
- const value = response['value'];
101
- return { success: true, result: `Cell ${args['cell']}: ${value ?? '(empty)'}` };
102
- }
103
- return { success: false, error: response.error || 'Failed to read cell' };
104
- } catch (error) {
105
- return { success: false, error: `Failed to read cell: ${error instanceof Error ? error.message : String(error)}` };
106
- }
107
- }
108
-
109
- export const excelReadCellTool: LLMSimpleTool = {
110
- definition: EXCEL_READ_CELL_DEFINITION,
111
- execute: executeExcelReadCell,
112
- categories: OFFICE_CATEGORIES,
113
- description: 'Read value from Excel cell',
114
- };
115
-
116
- // =============================================================================
117
- // Excel Write Range
118
- // =============================================================================
119
-
120
- const EXCEL_WRITE_RANGE_DEFINITION: ToolDefinition = {
121
- type: 'function',
122
- function: {
123
- name: 'excel_write_range',
124
- description: `Write multiple values to a range of cells in Excel.
125
- Provide a 2D array of values starting from the specified cell.
126
- Example: start_cell="A1", values=[["Name", "Age"], ["John", 25]]`,
127
- parameters: {
128
- type: 'object',
129
- properties: {
130
- reason: { type: 'string', description: 'Explanation of why you are writing this range' },
131
- start_cell: { type: 'string', description: 'Starting cell reference (e.g., "A1")' },
132
- values: { type: 'array', items: { type: 'array', items: {} }, description: '2D array of values to write' },
133
- sheet: { type: 'string', description: 'Sheet name (optional)' },
134
- },
135
- required: ['reason', 'start_cell', 'values'],
136
- },
137
- },
138
- };
139
-
140
- async function executeExcelWriteRange(args: Record<string, unknown>): Promise<ToolResult> {
141
- const values = args['values'] as unknown[][];
142
- try {
143
- const response = await excelClient.excelWriteRange(
144
- args['start_cell'] as string,
145
- values,
146
- args['sheet'] as string | undefined
147
- );
148
- if (response.success) {
149
- const rows = values.length;
150
- const cols = values[0]?.length || 0;
151
- return { success: true, result: `Written ${rows}x${cols} values starting at ${args['start_cell']}` };
152
- }
153
- return { success: false, error: response.error || 'Failed to write range' };
154
- } catch (error) {
155
- return { success: false, error: `Failed to write range: ${error instanceof Error ? error.message : String(error)}` };
156
- }
157
- }
158
-
159
- export const excelWriteRangeTool: LLMSimpleTool = {
160
- definition: EXCEL_WRITE_RANGE_DEFINITION,
161
- execute: executeExcelWriteRange,
162
- categories: OFFICE_CATEGORIES,
163
- description: 'Write values to Excel range',
164
- };
165
-
166
- // =============================================================================
167
- // Excel Read Range
168
- // =============================================================================
169
-
170
- const EXCEL_READ_RANGE_DEFINITION: ToolDefinition = {
171
- type: 'function',
172
- function: {
173
- name: 'excel_read_range',
174
- description: `Read values from a range of cells in Excel.
175
- Returns a 2D array of values.`,
176
- parameters: {
177
- type: 'object',
178
- properties: {
179
- reason: { type: 'string', description: 'Explanation of why you are reading this range' },
180
- range: { type: 'string', description: 'Range reference (e.g., "A1:C10")' },
181
- sheet: { type: 'string', description: 'Sheet name (optional)' },
182
- },
183
- required: ['reason', 'range'],
184
- },
185
- },
186
- };
187
-
188
- async function executeExcelReadRange(args: Record<string, unknown>): Promise<ToolResult> {
189
- try {
190
- const response = await excelClient.excelReadRange(
191
- args['range'] as string,
192
- args['sheet'] as string | undefined
193
- );
194
- if (response.success) {
195
- const values = response['values'];
196
- const rows = response['rows'] as number || 0;
197
- const cols = response['columns'] as number || 0;
198
- return {
199
- success: true,
200
- result: `Range ${args['range']} (${rows}x${cols}):\n${JSON.stringify(values, null, 2)}`,
201
- };
202
- }
203
- return { success: false, error: response.error || 'Failed to read range' };
204
- } catch (error) {
205
- return { success: false, error: `Failed to read range: ${error instanceof Error ? error.message : String(error)}` };
206
- }
207
- }
208
-
209
- export const excelReadRangeTool: LLMSimpleTool = {
210
- definition: EXCEL_READ_RANGE_DEFINITION,
211
- execute: executeExcelReadRange,
212
- categories: OFFICE_CATEGORIES,
213
- description: 'Read values from Excel range',
214
- };
215
-
216
- // =============================================================================
217
- // Excel Copy Range
218
- // =============================================================================
219
-
220
- const EXCEL_COPY_RANGE_DEFINITION: ToolDefinition = {
221
- type: 'function',
222
- function: {
223
- name: 'excel_copy_range',
224
- description: `Copy a range to clipboard.`,
225
- parameters: {
226
- type: 'object',
227
- properties: {
228
- reason: { type: 'string', description: 'Why you are copying' },
229
- range: { type: 'string', description: 'Range to copy (e.g., "A1:B10")' },
230
- sheet: { type: 'string', description: 'Sheet name (optional)' },
231
- },
232
- required: ['reason', 'range'],
233
- },
234
- },
235
- };
236
-
237
- async function executeExcelCopyRange(args: Record<string, unknown>): Promise<ToolResult> {
238
- try {
239
- const response = await excelClient.excelCopyRange(
240
- args['range'] as string,
241
- args['sheet'] as string | undefined
242
- );
243
- if (response.success) {
244
- return { success: true, result: `Range ${args['range']} copied to clipboard` };
245
- }
246
- return { success: false, error: response.error || 'Failed to copy range' };
247
- } catch (error) {
248
- return { success: false, error: `Failed to copy range: ${error instanceof Error ? error.message : String(error)}` };
249
- }
250
- }
251
-
252
- export const excelCopyRangeTool: LLMSimpleTool = {
253
- definition: EXCEL_COPY_RANGE_DEFINITION,
254
- execute: executeExcelCopyRange,
255
- categories: OFFICE_CATEGORIES,
256
- description: 'Copy Excel range',
257
- };
258
-
259
- // =============================================================================
260
- // Excel Paste Range
261
- // =============================================================================
262
-
263
- const EXCEL_PASTE_RANGE_DEFINITION: ToolDefinition = {
264
- type: 'function',
265
- function: {
266
- name: 'excel_paste_range',
267
- description: `Paste clipboard content to a destination cell.`,
268
- parameters: {
269
- type: 'object',
270
- properties: {
271
- reason: { type: 'string', description: 'Why you are pasting' },
272
- destination: { type: 'string', description: 'Destination cell (e.g., "A1")' },
273
- sheet: { type: 'string', description: 'Sheet name (optional)' },
274
- },
275
- required: ['reason', 'destination'],
276
- },
277
- },
278
- };
279
-
280
- async function executeExcelPasteRange(args: Record<string, unknown>): Promise<ToolResult> {
281
- try {
282
- const response = await excelClient.excelPasteRange(
283
- args['destination'] as string,
284
- args['sheet'] as string | undefined
285
- );
286
- if (response.success) {
287
- return { success: true, result: `Pasted to ${args['destination']}` };
288
- }
289
- return { success: false, error: response.error || 'Failed to paste' };
290
- } catch (error) {
291
- return { success: false, error: `Failed to paste: ${error instanceof Error ? error.message : String(error)}` };
292
- }
293
- }
294
-
295
- export const excelPasteRangeTool: LLMSimpleTool = {
296
- definition: EXCEL_PASTE_RANGE_DEFINITION,
297
- execute: executeExcelPasteRange,
298
- categories: OFFICE_CATEGORIES,
299
- description: 'Paste to Excel range',
300
- };
301
-
302
- // =============================================================================
303
- // Excel Clear Range
304
- // =============================================================================
305
-
306
- const EXCEL_CLEAR_RANGE_DEFINITION: ToolDefinition = {
307
- type: 'function',
308
- function: {
309
- name: 'excel_clear_range',
310
- description: `Clear a range (all content, values only, formats only, or comments only).`,
311
- parameters: {
312
- type: 'object',
313
- properties: {
314
- reason: { type: 'string', description: 'Why you are clearing' },
315
- range: { type: 'string', description: 'Range to clear (e.g., "A1:B10")' },
316
- clear_type: { type: 'string', enum: ['all', 'contents', 'formats', 'comments'], description: 'What to clear (default: all)' },
317
- sheet: { type: 'string', description: 'Sheet name (optional)' },
318
- },
319
- required: ['reason', 'range'],
320
- },
321
- },
322
- };
323
-
324
- async function executeExcelClearRange(args: Record<string, unknown>): Promise<ToolResult> {
325
- try {
326
- const response = await excelClient.excelClearRange(
327
- args['range'] as string,
328
- args['clear_type'] as 'all' | 'contents' | 'formats' | 'comments' ?? 'all',
329
- args['sheet'] as string | undefined
330
- );
331
- if (response.success) {
332
- return { success: true, result: response.message || `Range ${args['range']} cleared` };
333
- }
334
- return { success: false, error: response.error || 'Failed to clear range' };
335
- } catch (error) {
336
- return { success: false, error: `Failed to clear range: ${error instanceof Error ? error.message : String(error)}` };
337
- }
338
- }
339
-
340
- export const excelClearRangeTool: LLMSimpleTool = {
341
- definition: EXCEL_CLEAR_RANGE_DEFINITION,
342
- execute: executeExcelClearRange,
343
- categories: OFFICE_CATEGORIES,
344
- description: 'Clear Excel range',
345
- };
346
-
347
- // =============================================================================
348
- // Export: Cells Tools Array
349
- // =============================================================================
350
-
351
- export const cellsTools: LLMSimpleTool[] = [
352
- excelWriteCellTool,
353
- excelReadCellTool,
354
- excelWriteRangeTool,
355
- excelReadRangeTool,
356
- excelCopyRangeTool,
357
- excelPasteRangeTool,
358
- excelClearRangeTool,
359
- ];
@@ -1,166 +0,0 @@
1
- /**
2
- * Excel Chart Tools
3
- *
4
- * Chart management tools for Excel.
5
- * Tools: addChart, setChartTitle, deleteChart
6
- */
7
-
8
- import { ToolDefinition } from '../../../types/index.js';
9
- import { LLMSimpleTool, ToolResult } from '../../types.js';
10
- import { excelClient } from '../excel-client.js';
11
- import { OFFICE_CATEGORIES } from '../common/index.js';
12
-
13
- // =============================================================================
14
- // Excel Add Chart
15
- // =============================================================================
16
-
17
- const EXCEL_ADD_CHART_DEFINITION: ToolDefinition = {
18
- type: 'function',
19
- function: {
20
- name: 'excel_add_chart',
21
- description: `Add a chart based on data range.`,
22
- parameters: {
23
- type: 'object',
24
- properties: {
25
- reason: { type: 'string', description: 'Why you are adding a chart' },
26
- data_range: { type: 'string', description: 'Data range (e.g., "A1:B10")' },
27
- chart_type: { type: 'string', enum: ['column', 'bar', 'line', 'pie', 'area', 'scatter', 'doughnut'], description: 'Chart type' },
28
- title: { type: 'string', description: 'Chart title (optional)' },
29
- left: { type: 'number', description: 'Left position in points (optional)' },
30
- top: { type: 'number', description: 'Top position in points (optional)' },
31
- width: { type: 'number', description: 'Width in points (optional)' },
32
- height: { type: 'number', description: 'Height in points (optional)' },
33
- sheet: { type: 'string', description: 'Sheet name (optional)' },
34
- },
35
- required: ['reason', 'data_range', 'chart_type'],
36
- },
37
- },
38
- };
39
-
40
- async function executeExcelAddChart(args: Record<string, unknown>): Promise<ToolResult> {
41
- try {
42
- const response = await excelClient.excelAddChart(
43
- args['data_range'] as string,
44
- args['chart_type'] as 'column' | 'bar' | 'line' | 'pie' | 'area' | 'scatter' | 'doughnut',
45
- {
46
- title: args['title'] as string | undefined,
47
- left: args['left'] as number | undefined,
48
- top: args['top'] as number | undefined,
49
- width: args['width'] as number | undefined,
50
- height: args['height'] as number | undefined,
51
- sheet: args['sheet'] as string | undefined,
52
- }
53
- );
54
- if (response.success) {
55
- return { success: true, result: `Chart added: ${response['chart_name']}` };
56
- }
57
- return { success: false, error: response.error || 'Failed to add chart' };
58
- } catch (error) {
59
- return { success: false, error: `Failed to add chart: ${error instanceof Error ? error.message : String(error)}` };
60
- }
61
- }
62
-
63
- export const excelAddChartTool: LLMSimpleTool = {
64
- definition: EXCEL_ADD_CHART_DEFINITION,
65
- execute: executeExcelAddChart,
66
- categories: OFFICE_CATEGORIES,
67
- description: 'Add Excel chart',
68
- };
69
-
70
- // =============================================================================
71
- // Excel Set Chart Title
72
- // =============================================================================
73
-
74
- const EXCEL_SET_CHART_TITLE_DEFINITION: ToolDefinition = {
75
- type: 'function',
76
- function: {
77
- name: 'excel_set_chart_title',
78
- description: `Set or change the title of a chart.`,
79
- parameters: {
80
- type: 'object',
81
- properties: {
82
- reason: { type: 'string', description: 'Why you are setting chart title' },
83
- chart_index: { type: 'number', description: 'Chart index (1-based)' },
84
- title: { type: 'string', description: 'New chart title' },
85
- sheet: { type: 'string', description: 'Sheet name (optional)' },
86
- },
87
- required: ['reason', 'chart_index', 'title'],
88
- },
89
- },
90
- };
91
-
92
- async function executeExcelSetChartTitle(args: Record<string, unknown>): Promise<ToolResult> {
93
- try {
94
- const response = await excelClient.excelSetChartTitle(
95
- args['chart_index'] as number,
96
- args['title'] as string,
97
- args['sheet'] as string | undefined
98
- );
99
- if (response.success) {
100
- return { success: true, result: 'Chart title set' };
101
- }
102
- return { success: false, error: response.error || 'Failed to set chart title' };
103
- } catch (error) {
104
- return { success: false, error: `Failed to set chart title: ${error instanceof Error ? error.message : String(error)}` };
105
- }
106
- }
107
-
108
- export const excelSetChartTitleTool: LLMSimpleTool = {
109
- definition: EXCEL_SET_CHART_TITLE_DEFINITION,
110
- execute: executeExcelSetChartTitle,
111
- categories: OFFICE_CATEGORIES,
112
- description: 'Set Excel chart title',
113
- };
114
-
115
- // =============================================================================
116
- // Excel Delete Chart
117
- // =============================================================================
118
-
119
- const EXCEL_DELETE_CHART_DEFINITION: ToolDefinition = {
120
- type: 'function',
121
- function: {
122
- name: 'excel_delete_chart',
123
- description: `Delete a chart from the worksheet.`,
124
- parameters: {
125
- type: 'object',
126
- properties: {
127
- reason: { type: 'string', description: 'Why you are deleting the chart' },
128
- chart_index: { type: 'number', description: 'Chart index (1-based)' },
129
- sheet: { type: 'string', description: 'Sheet name (optional)' },
130
- },
131
- required: ['reason', 'chart_index'],
132
- },
133
- },
134
- };
135
-
136
- async function executeExcelDeleteChart(args: Record<string, unknown>): Promise<ToolResult> {
137
- try {
138
- const response = await excelClient.excelDeleteChart(
139
- args['chart_index'] as number,
140
- args['sheet'] as string | undefined
141
- );
142
- if (response.success) {
143
- return { success: true, result: 'Chart deleted' };
144
- }
145
- return { success: false, error: response.error || 'Failed to delete chart' };
146
- } catch (error) {
147
- return { success: false, error: `Failed to delete chart: ${error instanceof Error ? error.message : String(error)}` };
148
- }
149
- }
150
-
151
- export const excelDeleteChartTool: LLMSimpleTool = {
152
- definition: EXCEL_DELETE_CHART_DEFINITION,
153
- execute: executeExcelDeleteChart,
154
- categories: OFFICE_CATEGORIES,
155
- description: 'Delete Excel chart',
156
- };
157
-
158
- // =============================================================================
159
- // Export: Chart Tools Array
160
- // =============================================================================
161
-
162
- export const chartsTools: LLMSimpleTool[] = [
163
- excelAddChartTool,
164
- excelSetChartTitleTool,
165
- excelDeleteChartTool,
166
- ];
@@ -1,155 +0,0 @@
1
- /**
2
- * Excel Comments Tools
3
- *
4
- * Tools for managing cell comments in Excel
5
- */
6
-
7
- import { ToolDefinition } from '../../../types/index.js';
8
- import { LLMSimpleTool, ToolResult } from '../../types.js';
9
- import { excelClient } from '../excel-client.js';
10
- import { OFFICE_CATEGORIES } from '../common/constants.js';
11
-
12
- // =============================================================================
13
- // Excel Add Comment
14
- // =============================================================================
15
-
16
- const EXCEL_ADD_COMMENT_DEFINITION: ToolDefinition = {
17
- type: 'function',
18
- function: {
19
- name: 'excel_add_comment',
20
- description: `Add a comment to a cell.`,
21
- parameters: {
22
- type: 'object',
23
- properties: {
24
- reason: { type: 'string', description: 'Why you are adding comment' },
25
- cell: { type: 'string', description: 'Cell address (e.g., "A1")' },
26
- text: { type: 'string', description: 'Comment text' },
27
- sheet: { type: 'string', description: 'Sheet name (optional)' },
28
- },
29
- required: ['reason', 'cell', 'text'],
30
- },
31
- },
32
- };
33
-
34
- async function executeExcelAddComment(args: Record<string, unknown>): Promise<ToolResult> {
35
- try {
36
- const response = await excelClient.excelAddComment(
37
- args['cell'] as string,
38
- args['text'] as string,
39
- undefined,
40
- args['sheet'] as string | undefined
41
- );
42
- if (response.success) {
43
- return { success: true, result: `Comment added to ${args['cell']}` };
44
- }
45
- return { success: false, error: response.error || 'Failed to add comment' };
46
- } catch (error) {
47
- return { success: false, error: `Failed to add comment: ${error instanceof Error ? error.message : String(error)}` };
48
- }
49
- }
50
-
51
- export const excelAddCommentTool: LLMSimpleTool = {
52
- definition: EXCEL_ADD_COMMENT_DEFINITION,
53
- execute: executeExcelAddComment,
54
- categories: OFFICE_CATEGORIES,
55
- description: 'Add Excel comment',
56
- };
57
-
58
- // =============================================================================
59
- // Excel Get Comment
60
- // =============================================================================
61
-
62
- const EXCEL_GET_COMMENT_DEFINITION: ToolDefinition = {
63
- type: 'function',
64
- function: {
65
- name: 'excel_get_comment',
66
- description: `Get comment from a cell.`,
67
- parameters: {
68
- type: 'object',
69
- properties: {
70
- reason: { type: 'string', description: 'Why you need the comment' },
71
- cell: { type: 'string', description: 'Cell address (e.g., "A1")' },
72
- sheet: { type: 'string', description: 'Sheet name (optional)' },
73
- },
74
- required: ['reason', 'cell'],
75
- },
76
- },
77
- };
78
-
79
- async function executeExcelGetComment(args: Record<string, unknown>): Promise<ToolResult> {
80
- try {
81
- const response = await excelClient.excelGetComment(
82
- args['cell'] as string,
83
- args['sheet'] as string | undefined
84
- );
85
- if (response.success) {
86
- if (response['has_comment']) {
87
- return { success: true, result: `Comment at ${args['cell']}: "${response['text']}"` };
88
- }
89
- return { success: true, result: `No comment at ${args['cell']}` };
90
- }
91
- return { success: false, error: response.error || 'Failed to get comment' };
92
- } catch (error) {
93
- return { success: false, error: `Failed to get comment: ${error instanceof Error ? error.message : String(error)}` };
94
- }
95
- }
96
-
97
- export const excelGetCommentTool: LLMSimpleTool = {
98
- definition: EXCEL_GET_COMMENT_DEFINITION,
99
- execute: executeExcelGetComment,
100
- categories: OFFICE_CATEGORIES,
101
- description: 'Get Excel comment',
102
- };
103
-
104
- // =============================================================================
105
- // Excel Delete Comment
106
- // =============================================================================
107
-
108
- const EXCEL_DELETE_COMMENT_DEFINITION: ToolDefinition = {
109
- type: 'function',
110
- function: {
111
- name: 'excel_delete_comment',
112
- description: `Delete comment from a cell.`,
113
- parameters: {
114
- type: 'object',
115
- properties: {
116
- reason: { type: 'string', description: 'Why you are deleting comment' },
117
- cell: { type: 'string', description: 'Cell address (e.g., "A1")' },
118
- sheet: { type: 'string', description: 'Sheet name (optional)' },
119
- },
120
- required: ['reason', 'cell'],
121
- },
122
- },
123
- };
124
-
125
- async function executeExcelDeleteComment(args: Record<string, unknown>): Promise<ToolResult> {
126
- try {
127
- const response = await excelClient.excelDeleteComment(
128
- args['cell'] as string,
129
- args['sheet'] as string | undefined
130
- );
131
- if (response.success) {
132
- return { success: true, result: `Comment deleted from ${args['cell']}` };
133
- }
134
- return { success: false, error: response.error || 'Failed to delete comment' };
135
- } catch (error) {
136
- return { success: false, error: `Failed to delete comment: ${error instanceof Error ? error.message : String(error)}` };
137
- }
138
- }
139
-
140
- export const excelDeleteCommentTool: LLMSimpleTool = {
141
- definition: EXCEL_DELETE_COMMENT_DEFINITION,
142
- execute: executeExcelDeleteComment,
143
- categories: OFFICE_CATEGORIES,
144
- description: 'Delete Excel comment',
145
- };
146
-
147
- // =============================================================================
148
- // Export all comment tools
149
- // =============================================================================
150
-
151
- export const commentsTools: LLMSimpleTool[] = [
152
- excelAddCommentTool,
153
- excelGetCommentTool,
154
- excelDeleteCommentTool,
155
- ];