orquesta-cli 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -4
- package/dist/cli.js +65 -4
- package/dist/core/config/config-manager.d.ts +13 -1
- package/dist/core/config/config-manager.js +83 -0
- package/dist/core/slash-command-handler.d.ts +1 -0
- package/dist/core/slash-command-handler.js +129 -0
- package/dist/orquesta/config-sync.d.ts +73 -0
- package/dist/orquesta/config-sync.js +230 -0
- package/dist/orquesta/prompt-reporter.d.ts +16 -0
- package/dist/orquesta/prompt-reporter.js +85 -0
- package/dist/setup/first-run-setup.d.ts +15 -0
- package/dist/setup/first-run-setup.js +238 -0
- package/dist/types/index.d.ts +11 -2
- package/dist/ui/TodoPanel.d.ts +1 -0
- package/dist/ui/TodoPanel.js +6 -1
- package/dist/ui/components/LLMSetupWizard.js +381 -7
- package/dist/ui/components/Logo.d.ts +2 -0
- package/dist/ui/components/Logo.js +10 -3
- package/dist/ui/components/OpenRouterModelBrowser.d.ts +13 -0
- package/dist/ui/components/OpenRouterModelBrowser.js +221 -0
- package/dist/ui/components/PlanExecuteApp.js +30 -4
- package/dist/ui/components/ProjectSelector.d.ts +8 -0
- package/dist/ui/components/ProjectSelector.js +119 -0
- package/dist/ui/components/StatusBar.d.ts +2 -0
- package/dist/ui/components/StatusBar.js +6 -1
- package/dist/ui/hooks/slashCommandProcessor.js +8 -4
- package/package.json +11 -5
- package/.eslintrc.json +0 -26
- package/.prettierrc.json +0 -10
- package/CLAUDE.md +0 -199
- package/SECURITY.md +0 -290
- package/TEST_LOCAL.md +0 -245
- package/dist/agents/base/base-agent.d.ts.map +0 -1
- package/dist/agents/base/base-agent.js.map +0 -1
- package/dist/agents/docs-search/index.d.ts.map +0 -1
- package/dist/agents/docs-search/index.js.map +0 -1
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/planner/index.d.ts.map +0 -1
- package/dist/agents/planner/index.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/core/compact/compact-manager.d.ts.map +0 -1
- package/dist/core/compact/compact-manager.js.map +0 -1
- package/dist/core/compact/compact-prompts.d.ts.map +0 -1
- package/dist/core/compact/compact-prompts.js.map +0 -1
- package/dist/core/compact/context-tracker.d.ts.map +0 -1
- package/dist/core/compact/context-tracker.js.map +0 -1
- package/dist/core/compact/index.d.ts.map +0 -1
- package/dist/core/compact/index.js.map +0 -1
- package/dist/core/config/config-manager.d.ts.map +0 -1
- package/dist/core/config/config-manager.js.map +0 -1
- package/dist/core/config/index.d.ts.map +0 -1
- package/dist/core/config/index.js.map +0 -1
- package/dist/core/docs-manager.d.ts.map +0 -1
- package/dist/core/docs-manager.js.map +0 -1
- package/dist/core/git-auto-updater.d.ts +0 -58
- package/dist/core/git-auto-updater.d.ts.map +0 -1
- package/dist/core/git-auto-updater.js +0 -374
- package/dist/core/git-auto-updater.js.map +0 -1
- package/dist/core/llm/index.d.ts.map +0 -1
- package/dist/core/llm/index.js.map +0 -1
- package/dist/core/llm/llm-client.d.ts.map +0 -1
- package/dist/core/llm/llm-client.js.map +0 -1
- package/dist/core/session/index.d.ts.map +0 -1
- package/dist/core/session/index.js.map +0 -1
- package/dist/core/session/session-manager.d.ts.map +0 -1
- package/dist/core/session/session-manager.js.map +0 -1
- package/dist/core/slash-command-handler.d.ts.map +0 -1
- package/dist/core/slash-command-handler.js.map +0 -1
- package/dist/core/usage-tracker.d.ts.map +0 -1
- package/dist/core/usage-tracker.js.map +0 -1
- package/dist/errors/base.d.ts.map +0 -1
- package/dist/errors/base.js.map +0 -1
- package/dist/errors/file.d.ts.map +0 -1
- package/dist/errors/file.js.map +0 -1
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/errors/llm.d.ts.map +0 -1
- package/dist/errors/llm.js.map +0 -1
- package/dist/errors/network.d.ts.map +0 -1
- package/dist/errors/network.js.map +0 -1
- package/dist/errors/validation.d.ts.map +0 -1
- package/dist/errors/validation.js.map +0 -1
- package/dist/eval/eval-runner.d.ts.map +0 -1
- package/dist/eval/eval-runner.js.map +0 -1
- package/dist/eval/index.d.ts.map +0 -1
- package/dist/eval/index.js.map +0 -1
- package/dist/eval/types.d.ts.map +0 -1
- package/dist/eval/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/orchestration/index.d.ts.map +0 -1
- package/dist/orchestration/index.js.map +0 -1
- package/dist/orchestration/plan-executor.d.ts.map +0 -1
- package/dist/orchestration/plan-executor.js.map +0 -1
- package/dist/orchestration/types.d.ts.map +0 -1
- package/dist/orchestration/types.js.map +0 -1
- package/dist/orchestration/utils.d.ts.map +0 -1
- package/dist/orchestration/utils.js.map +0 -1
- package/dist/orquesta/connection.d.ts.map +0 -1
- package/dist/orquesta/connection.js.map +0 -1
- package/dist/prompts/agents/docs-search-decision.d.ts.map +0 -1
- package/dist/prompts/agents/docs-search-decision.js.map +0 -1
- package/dist/prompts/agents/docs-search.d.ts.map +0 -1
- package/dist/prompts/agents/docs-search.js.map +0 -1
- package/dist/prompts/agents/planning.d.ts.map +0 -1
- package/dist/prompts/agents/planning.js.map +0 -1
- package/dist/prompts/index.d.ts.map +0 -1
- package/dist/prompts/index.js.map +0 -1
- package/dist/prompts/shared/codebase-rules.d.ts.map +0 -1
- package/dist/prompts/shared/codebase-rules.js.map +0 -1
- package/dist/prompts/shared/git-rules.d.ts.map +0 -1
- package/dist/prompts/shared/git-rules.js.map +0 -1
- package/dist/prompts/shared/language-rules.d.ts.map +0 -1
- package/dist/prompts/shared/language-rules.js.map +0 -1
- package/dist/prompts/shared/tool-usage.d.ts.map +0 -1
- package/dist/prompts/shared/tool-usage.js.map +0 -1
- package/dist/prompts/system/compact.d.ts.map +0 -1
- package/dist/prompts/system/compact.js.map +0 -1
- package/dist/prompts/system/plan-execute.d.ts.map +0 -1
- package/dist/prompts/system/plan-execute.js.map +0 -1
- package/dist/tools/browser/browser-client.d.ts.map +0 -1
- package/dist/tools/browser/browser-client.js.map +0 -1
- package/dist/tools/browser/browser-tools.d.ts.map +0 -1
- package/dist/tools/browser/browser-tools.js.map +0 -1
- package/dist/tools/browser/index.d.ts.map +0 -1
- package/dist/tools/browser/index.js.map +0 -1
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/llm/agents/docs-search-tools.d.ts.map +0 -1
- package/dist/tools/llm/agents/docs-search-tools.js.map +0 -1
- package/dist/tools/llm/agents/index.d.ts.map +0 -1
- package/dist/tools/llm/agents/index.js.map +0 -1
- package/dist/tools/llm/index.d.ts.map +0 -1
- package/dist/tools/llm/index.js.map +0 -1
- package/dist/tools/llm/simple/ask-user-tool.d.ts.map +0 -1
- package/dist/tools/llm/simple/ask-user-tool.js.map +0 -1
- package/dist/tools/llm/simple/background-bash-tool.d.ts.map +0 -1
- package/dist/tools/llm/simple/background-bash-tool.js.map +0 -1
- package/dist/tools/llm/simple/background-powershell-tool.d.ts.map +0 -1
- package/dist/tools/llm/simple/background-powershell-tool.js.map +0 -1
- package/dist/tools/llm/simple/bash-tool.d.ts.map +0 -1
- package/dist/tools/llm/simple/bash-tool.js.map +0 -1
- package/dist/tools/llm/simple/docs-search-agent-tool.d.ts.map +0 -1
- package/dist/tools/llm/simple/docs-search-agent-tool.js.map +0 -1
- package/dist/tools/llm/simple/file-tools.d.ts.map +0 -1
- package/dist/tools/llm/simple/file-tools.js.map +0 -1
- package/dist/tools/llm/simple/final-response-tool.d.ts.map +0 -1
- package/dist/tools/llm/simple/final-response-tool.js.map +0 -1
- package/dist/tools/llm/simple/index.d.ts.map +0 -1
- package/dist/tools/llm/simple/index.js.map +0 -1
- package/dist/tools/llm/simple/planning-tools.d.ts.map +0 -1
- package/dist/tools/llm/simple/planning-tools.js.map +0 -1
- package/dist/tools/llm/simple/powershell-tool.d.ts.map +0 -1
- package/dist/tools/llm/simple/powershell-tool.js.map +0 -1
- package/dist/tools/llm/simple/simple-tool-executor.d.ts.map +0 -1
- package/dist/tools/llm/simple/simple-tool-executor.js.map +0 -1
- package/dist/tools/llm/simple/todo-tools.d.ts.map +0 -1
- package/dist/tools/llm/simple/todo-tools.js.map +0 -1
- package/dist/tools/llm/simple/user-interaction-tools.d.ts.map +0 -1
- package/dist/tools/llm/simple/user-interaction-tools.js.map +0 -1
- package/dist/tools/office/common/constants.d.ts.map +0 -1
- package/dist/tools/office/common/constants.js.map +0 -1
- package/dist/tools/office/common/index.d.ts.map +0 -1
- package/dist/tools/office/common/index.js.map +0 -1
- package/dist/tools/office/common/types.d.ts.map +0 -1
- package/dist/tools/office/common/types.js.map +0 -1
- package/dist/tools/office/common/utils.d.ts.map +0 -1
- package/dist/tools/office/common/utils.js.map +0 -1
- package/dist/tools/office/excel-client.d.ts.map +0 -1
- package/dist/tools/office/excel-client.js.map +0 -1
- package/dist/tools/office/excel-tools/cells.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/cells.js.map +0 -1
- package/dist/tools/office/excel-tools/charts.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/charts.js.map +0 -1
- package/dist/tools/office/excel-tools/comments.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/comments.js.map +0 -1
- package/dist/tools/office/excel-tools/data-ops.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/data-ops.js.map +0 -1
- package/dist/tools/office/excel-tools/export.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/export.js.map +0 -1
- package/dist/tools/office/excel-tools/formatting.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/formatting.js.map +0 -1
- package/dist/tools/office/excel-tools/index.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/index.js.map +0 -1
- package/dist/tools/office/excel-tools/launch.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/launch.js.map +0 -1
- package/dist/tools/office/excel-tools/media.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/media.js.map +0 -1
- package/dist/tools/office/excel-tools/named-ranges.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/named-ranges.js.map +0 -1
- package/dist/tools/office/excel-tools/protection.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/protection.js.map +0 -1
- package/dist/tools/office/excel-tools/rows-columns.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/rows-columns.js.map +0 -1
- package/dist/tools/office/excel-tools/sheets.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/sheets.js.map +0 -1
- package/dist/tools/office/excel-tools/validation.d.ts.map +0 -1
- package/dist/tools/office/excel-tools/validation.js.map +0 -1
- package/dist/tools/office/excel-tools.d.ts.map +0 -1
- package/dist/tools/office/excel-tools.js.map +0 -1
- package/dist/tools/office/index.d.ts.map +0 -1
- package/dist/tools/office/index.js.map +0 -1
- package/dist/tools/office/office-client-base.d.ts.map +0 -1
- package/dist/tools/office/office-client-base.js.map +0 -1
- package/dist/tools/office/office-client.d.ts.map +0 -1
- package/dist/tools/office/office-client.js.map +0 -1
- package/dist/tools/office/powerpoint-client.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-client.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/effects.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/effects.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/export.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/export.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/index.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/index.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/launch.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/launch.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/media.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/media.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/notes.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/notes.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/sections.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/sections.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/shapes.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/shapes.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/slides.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/slides.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/tables.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/tables.js.map +0 -1
- package/dist/tools/office/powerpoint-tools/text.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools/text.js.map +0 -1
- package/dist/tools/office/powerpoint-tools.d.ts.map +0 -1
- package/dist/tools/office/powerpoint-tools.js.map +0 -1
- package/dist/tools/office/word-client.d.ts.map +0 -1
- package/dist/tools/office/word-client.js.map +0 -1
- package/dist/tools/office/word-tools/bookmarks.d.ts.map +0 -1
- package/dist/tools/office/word-tools/bookmarks.js.map +0 -1
- package/dist/tools/office/word-tools/comments.d.ts.map +0 -1
- package/dist/tools/office/word-tools/comments.js.map +0 -1
- package/dist/tools/office/word-tools/content.d.ts.map +0 -1
- package/dist/tools/office/word-tools/content.js.map +0 -1
- package/dist/tools/office/word-tools/export.d.ts.map +0 -1
- package/dist/tools/office/word-tools/export.js.map +0 -1
- package/dist/tools/office/word-tools/formatting.d.ts.map +0 -1
- package/dist/tools/office/word-tools/formatting.js.map +0 -1
- package/dist/tools/office/word-tools/headers-footers.d.ts.map +0 -1
- package/dist/tools/office/word-tools/headers-footers.js.map +0 -1
- package/dist/tools/office/word-tools/index.d.ts.map +0 -1
- package/dist/tools/office/word-tools/index.js.map +0 -1
- package/dist/tools/office/word-tools/launch.d.ts.map +0 -1
- package/dist/tools/office/word-tools/launch.js.map +0 -1
- package/dist/tools/office/word-tools/lists.d.ts.map +0 -1
- package/dist/tools/office/word-tools/lists.js.map +0 -1
- package/dist/tools/office/word-tools/navigation.d.ts.map +0 -1
- package/dist/tools/office/word-tools/navigation.js.map +0 -1
- package/dist/tools/office/word-tools/page-setup.d.ts.map +0 -1
- package/dist/tools/office/word-tools/page-setup.js.map +0 -1
- package/dist/tools/office/word-tools/tables.d.ts.map +0 -1
- package/dist/tools/office/word-tools/tables.js.map +0 -1
- package/dist/tools/office/word-tools/text.d.ts.map +0 -1
- package/dist/tools/office/word-tools/text.js.map +0 -1
- package/dist/tools/office/word-tools/undo-redo.d.ts.map +0 -1
- package/dist/tools/office/word-tools/undo-redo.js.map +0 -1
- package/dist/tools/office/word-tools/watermarks.d.ts.map +0 -1
- package/dist/tools/office/word-tools/watermarks.js.map +0 -1
- package/dist/tools/office/word-tools.d.ts.map +0 -1
- package/dist/tools/office/word-tools.js.map +0 -1
- package/dist/tools/registry.d.ts.map +0 -1
- package/dist/tools/registry.js.map +0 -1
- package/dist/tools/types.d.ts.map +0 -1
- package/dist/tools/types.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/ui/PlanExecuteView.d.ts.map +0 -1
- package/dist/ui/PlanExecuteView.js.map +0 -1
- package/dist/ui/TodoPanel.d.ts.map +0 -1
- package/dist/ui/TodoPanel.js.map +0 -1
- package/dist/ui/UpdateNotification.d.ts.map +0 -1
- package/dist/ui/UpdateNotification.js.map +0 -1
- package/dist/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/dist/ui/components/ActivityIndicator.js.map +0 -1
- package/dist/ui/components/CommandBrowser.d.ts.map +0 -1
- package/dist/ui/components/CommandBrowser.js.map +0 -1
- package/dist/ui/components/CustomTextInput.d.ts.map +0 -1
- package/dist/ui/components/CustomTextInput.js.map +0 -1
- package/dist/ui/components/DocsSearchProgress.d.ts.map +0 -1
- package/dist/ui/components/DocsSearchProgress.js.map +0 -1
- package/dist/ui/components/FileBrowser.d.ts.map +0 -1
- package/dist/ui/components/FileBrowser.js.map +0 -1
- package/dist/ui/components/LLMSetupWizard.d.ts.map +0 -1
- package/dist/ui/components/LLMSetupWizard.js.map +0 -1
- package/dist/ui/components/Logo.d.ts.map +0 -1
- package/dist/ui/components/Logo.js.map +0 -1
- package/dist/ui/components/MarkdownRenderer.d.ts.map +0 -1
- package/dist/ui/components/MarkdownRenderer.js.map +0 -1
- package/dist/ui/components/ModelSelector.d.ts.map +0 -1
- package/dist/ui/components/ModelSelector.js.map +0 -1
- package/dist/ui/components/PlanExecuteApp.d.ts.map +0 -1
- package/dist/ui/components/PlanExecuteApp.js.map +0 -1
- package/dist/ui/components/ProgressBar.d.ts.map +0 -1
- package/dist/ui/components/ProgressBar.js.map +0 -1
- package/dist/ui/components/StatusBar.d.ts.map +0 -1
- package/dist/ui/components/StatusBar.js.map +0 -1
- package/dist/ui/components/ThinkingIndicator.d.ts.map +0 -1
- package/dist/ui/components/ThinkingIndicator.js.map +0 -1
- package/dist/ui/components/TodoListView.d.ts.map +0 -1
- package/dist/ui/components/TodoListView.js.map +0 -1
- package/dist/ui/components/ToolSelector.d.ts.map +0 -1
- package/dist/ui/components/ToolSelector.js.map +0 -1
- package/dist/ui/components/dialogs/ApprovalDialog.d.ts.map +0 -1
- package/dist/ui/components/dialogs/ApprovalDialog.js.map +0 -1
- package/dist/ui/components/dialogs/AskUserDialog.d.ts.map +0 -1
- package/dist/ui/components/dialogs/AskUserDialog.js.map +0 -1
- package/dist/ui/components/dialogs/DocsBrowser.d.ts.map +0 -1
- package/dist/ui/components/dialogs/DocsBrowser.js.map +0 -1
- package/dist/ui/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/ui/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/ui/components/dialogs/index.d.ts.map +0 -1
- package/dist/ui/components/dialogs/index.js.map +0 -1
- package/dist/ui/components/index.d.ts.map +0 -1
- package/dist/ui/components/index.js.map +0 -1
- package/dist/ui/components/panels/LogPanel.d.ts.map +0 -1
- package/dist/ui/components/panels/LogPanel.js.map +0 -1
- package/dist/ui/components/panels/SessionPanel.d.ts.map +0 -1
- package/dist/ui/components/panels/SessionPanel.js.map +0 -1
- package/dist/ui/components/panels/index.d.ts.map +0 -1
- package/dist/ui/components/panels/index.js.map +0 -1
- package/dist/ui/components/views/ChatView.d.ts.map +0 -1
- package/dist/ui/components/views/ChatView.js.map +0 -1
- package/dist/ui/components/views/index.d.ts.map +0 -1
- package/dist/ui/components/views/index.js.map +0 -1
- package/dist/ui/contexts/TokenContext.d.ts.map +0 -1
- package/dist/ui/contexts/TokenContext.js.map +0 -1
- package/dist/ui/hooks/atFileProcessor.d.ts.map +0 -1
- package/dist/ui/hooks/atFileProcessor.js.map +0 -1
- package/dist/ui/hooks/index.d.ts.map +0 -1
- package/dist/ui/hooks/index.js.map +0 -1
- package/dist/ui/hooks/slashCommandProcessor.d.ts.map +0 -1
- package/dist/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/ui/hooks/useCommandBrowserState.d.ts.map +0 -1
- package/dist/ui/hooks/useCommandBrowserState.js.map +0 -1
- package/dist/ui/hooks/useFileBrowserState.d.ts.map +0 -1
- package/dist/ui/hooks/useFileBrowserState.js.map +0 -1
- package/dist/ui/hooks/useFileList.d.ts.map +0 -1
- package/dist/ui/hooks/useFileList.js.map +0 -1
- package/dist/ui/hooks/useInputHistory.d.ts.map +0 -1
- package/dist/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/ui/hooks/usePlanExecution.d.ts.map +0 -1
- package/dist/ui/hooks/usePlanExecution.js.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/ink-entry.d.ts.map +0 -1
- package/dist/ui/ink-entry.js.map +0 -1
- package/dist/utils/env-filter.d.ts.map +0 -1
- package/dist/utils/env-filter.js.map +0 -1
- package/dist/utils/file-system.d.ts.map +0 -1
- package/dist/utils/file-system.js.map +0 -1
- package/dist/utils/git-utils.d.ts.map +0 -1
- package/dist/utils/git-utils.js.map +0 -1
- package/dist/utils/json-stream-logger.d.ts.map +0 -1
- package/dist/utils/json-stream-logger.js.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/platform-utils.d.ts.map +0 -1
- package/dist/utils/platform-utils.js.map +0 -1
- package/dist/utils/wsl-utils.d.ts.map +0 -1
- package/dist/utils/wsl-utils.js.map +0 -1
- package/electron.vite.config.ts +0 -63
- package/google374b9eba0c52b043.html +0 -1
- package/src/agents/base/base-agent.ts +0 -159
- package/src/agents/docs-search/index.ts +0 -365
- package/src/agents/index.ts +0 -34
- package/src/agents/planner/index.ts +0 -544
- package/src/cli.ts +0 -201
- package/src/constants.ts +0 -47
- package/src/core/compact/compact-manager.ts +0 -160
- package/src/core/compact/compact-prompts.ts +0 -150
- package/src/core/compact/context-tracker.ts +0 -164
- package/src/core/compact/index.ts +0 -25
- package/src/core/config/config-manager.ts +0 -460
- package/src/core/config/index.ts +0 -5
- package/src/core/docs-manager.ts +0 -678
- package/src/core/llm/index.ts +0 -7
- package/src/core/llm/llm-client.ts +0 -1550
- package/src/core/session/index.ts +0 -5
- package/src/core/session/session-manager.ts +0 -464
- package/src/core/slash-command-handler.ts +0 -410
- package/src/core/usage-tracker.ts +0 -438
- package/src/errors/base.ts +0 -81
- package/src/errors/file.ts +0 -183
- package/src/errors/index.ts +0 -95
- package/src/errors/llm.ts +0 -151
- package/src/errors/network.ts +0 -124
- package/src/errors/validation.ts +0 -111
- package/src/eval/eval-runner.ts +0 -456
- package/src/eval/index.ts +0 -8
- package/src/eval/types.ts +0 -139
- package/src/index.ts +0 -22
- package/src/orchestration/index.ts +0 -30
- package/src/orchestration/plan-executor.ts +0 -652
- package/src/orchestration/types.ts +0 -127
- package/src/orchestration/utils.ts +0 -119
- package/src/orquesta/connection.ts +0 -291
- package/src/prompts/agents/docs-search-decision.ts +0 -74
- package/src/prompts/agents/docs-search.ts +0 -84
- package/src/prompts/agents/planning.ts +0 -143
- package/src/prompts/index.ts +0 -31
- package/src/prompts/shared/codebase-rules.ts +0 -29
- package/src/prompts/shared/git-rules.ts +0 -94
- package/src/prompts/shared/language-rules.ts +0 -36
- package/src/prompts/shared/tool-usage.ts +0 -72
- package/src/prompts/system/compact.ts +0 -80
- package/src/prompts/system/plan-execute.ts +0 -89
- package/src/tools/browser/browser-client.ts +0 -1363
- package/src/tools/browser/browser-tools.ts +0 -1139
- package/src/tools/browser/index.ts +0 -65
- package/src/tools/index.ts +0 -23
- package/src/tools/llm/agents/docs-search-tools.ts +0 -368
- package/src/tools/llm/agents/index.ts +0 -22
- package/src/tools/llm/index.ts +0 -11
- package/src/tools/llm/simple/ask-user-tool.ts +0 -25
- package/src/tools/llm/simple/background-bash-tool.ts +0 -443
- package/src/tools/llm/simple/background-powershell-tool.ts +0 -421
- package/src/tools/llm/simple/bash-tool.ts +0 -238
- package/src/tools/llm/simple/docs-search-agent-tool.ts +0 -146
- package/src/tools/llm/simple/file-tools.ts +0 -1051
- package/src/tools/llm/simple/final-response-tool.ts +0 -180
- package/src/tools/llm/simple/index.ts +0 -42
- package/src/tools/llm/simple/planning-tools.ts +0 -143
- package/src/tools/llm/simple/powershell-tool.ts +0 -241
- package/src/tools/llm/simple/simple-tool-executor.ts +0 -279
- package/src/tools/llm/simple/todo-tools.ts +0 -207
- package/src/tools/llm/simple/user-interaction-tools.ts +0 -277
- package/src/tools/office/common/constants.ts +0 -335
- package/src/tools/office/common/index.ts +0 -133
- package/src/tools/office/common/types.ts +0 -286
- package/src/tools/office/common/utils.ts +0 -116
- package/src/tools/office/excel-client.ts +0 -1336
- package/src/tools/office/excel-tools/cells.ts +0 -359
- package/src/tools/office/excel-tools/charts.ts +0 -166
- package/src/tools/office/excel-tools/comments.ts +0 -155
- package/src/tools/office/excel-tools/data-ops.ts +0 -349
- package/src/tools/office/excel-tools/export.ts +0 -105
- package/src/tools/office/excel-tools/formatting.ts +0 -357
- package/src/tools/office/excel-tools/index.ts +0 -55
- package/src/tools/office/excel-tools/launch.ts +0 -303
- package/src/tools/office/excel-tools/media.ts +0 -117
- package/src/tools/office/excel-tools/named-ranges.ts +0 -148
- package/src/tools/office/excel-tools/protection.ts +0 -105
- package/src/tools/office/excel-tools/rows-columns.ts +0 -386
- package/src/tools/office/excel-tools/sheets.ts +0 -228
- package/src/tools/office/excel-tools/validation.ts +0 -226
- package/src/tools/office/excel-tools.ts +0 -9
- package/src/tools/office/index.ts +0 -259
- package/src/tools/office/office-client-base.ts +0 -242
- package/src/tools/office/office-client.ts +0 -377
- package/src/tools/office/powerpoint-client.ts +0 -1498
- package/src/tools/office/powerpoint-tools/effects.ts +0 -315
- package/src/tools/office/powerpoint-tools/export.ts +0 -138
- package/src/tools/office/powerpoint-tools/index.ts +0 -45
- package/src/tools/office/powerpoint-tools/launch.ts +0 -263
- package/src/tools/office/powerpoint-tools/media.ts +0 -291
- package/src/tools/office/powerpoint-tools/notes.ts +0 -220
- package/src/tools/office/powerpoint-tools/sections.ts +0 -140
- package/src/tools/office/powerpoint-tools/shapes.ts +0 -870
- package/src/tools/office/powerpoint-tools/slides.ts +0 -350
- package/src/tools/office/powerpoint-tools/tables.ts +0 -182
- package/src/tools/office/powerpoint-tools/text.ts +0 -473
- package/src/tools/office/powerpoint-tools.ts +0 -9
- package/src/tools/office/word-client.ts +0 -1697
- package/src/tools/office/word-tools/bookmarks.ts +0 -186
- package/src/tools/office/word-tools/comments.ts +0 -185
- package/src/tools/office/word-tools/content.ts +0 -229
- package/src/tools/office/word-tools/export.ts +0 -97
- package/src/tools/office/word-tools/formatting.ts +0 -161
- package/src/tools/office/word-tools/headers-footers.ts +0 -155
- package/src/tools/office/word-tools/index.ts +0 -57
- package/src/tools/office/word-tools/launch.ts +0 -312
- package/src/tools/office/word-tools/lists.ts +0 -97
- package/src/tools/office/word-tools/navigation.ts +0 -114
- package/src/tools/office/word-tools/page-setup.ts +0 -195
- package/src/tools/office/word-tools/tables.ts +0 -262
- package/src/tools/office/word-tools/text.ts +0 -294
- package/src/tools/office/word-tools/undo-redo.ts +0 -97
- package/src/tools/office/word-tools/watermarks.ts +0 -105
- package/src/tools/office/word-tools.ts +0 -9
- package/src/tools/registry.ts +0 -527
- package/src/tools/types.ts +0 -231
- package/src/types/index.ts +0 -181
- package/src/ui/PlanExecuteView.tsx +0 -119
- package/src/ui/TodoPanel.tsx +0 -240
- package/src/ui/UpdateNotification.tsx +0 -105
- package/src/ui/components/ActivityIndicator.tsx +0 -234
- package/src/ui/components/CommandBrowser.tsx +0 -114
- package/src/ui/components/CustomTextInput.tsx +0 -389
- package/src/ui/components/DocsSearchProgress.tsx +0 -85
- package/src/ui/components/FileBrowser.tsx +0 -93
- package/src/ui/components/LLMSetupWizard.tsx +0 -333
- package/src/ui/components/Logo.tsx +0 -125
- package/src/ui/components/MarkdownRenderer.tsx +0 -358
- package/src/ui/components/ModelSelector.tsx +0 -203
- package/src/ui/components/PlanExecuteApp.tsx +0 -2007
- package/src/ui/components/ProgressBar.tsx +0 -51
- package/src/ui/components/StatusBar.tsx +0 -302
- package/src/ui/components/ThinkingIndicator.tsx +0 -120
- package/src/ui/components/TodoListView.tsx +0 -140
- package/src/ui/components/ToolSelector.tsx +0 -215
- package/src/ui/components/dialogs/ApprovalDialog.tsx +0 -259
- package/src/ui/components/dialogs/AskUserDialog.tsx +0 -159
- package/src/ui/components/dialogs/DocsBrowser.tsx +0 -222
- package/src/ui/components/dialogs/SettingsDialog.tsx +0 -939
- package/src/ui/components/dialogs/index.ts +0 -13
- package/src/ui/components/index.ts +0 -27
- package/src/ui/components/panels/LogPanel.tsx +0 -385
- package/src/ui/components/panels/SessionPanel.tsx +0 -146
- package/src/ui/components/panels/index.ts +0 -13
- package/src/ui/components/views/ChatView.tsx +0 -447
- package/src/ui/components/views/index.ts +0 -5
- package/src/ui/contexts/TokenContext.tsx +0 -139
- package/src/ui/hooks/atFileProcessor.ts +0 -167
- package/src/ui/hooks/index.ts +0 -11
- package/src/ui/hooks/slashCommandProcessor.ts +0 -174
- package/src/ui/hooks/useCommandBrowserState.ts +0 -97
- package/src/ui/hooks/useFileBrowserState.ts +0 -116
- package/src/ui/hooks/useFileList.ts +0 -132
- package/src/ui/hooks/useInputHistory.ts +0 -89
- package/src/ui/hooks/usePlanExecution.ts +0 -339
- package/src/ui/index.ts +0 -10
- package/src/ui/ink-entry.tsx +0 -36
- package/src/utils/env-filter.ts +0 -164
- package/src/utils/file-system.ts +0 -133
- package/src/utils/git-utils.ts +0 -30
- package/src/utils/json-stream-logger.ts +0 -1259
- package/src/utils/logger.ts +0 -2767
- package/src/utils/platform-utils.ts +0 -256
- package/src/utils/wsl-utils.ts +0 -113
- package/tsconfig.electron.json +0 -39
- package/tsconfig.json +0 -64
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Excel Launch Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for launching, creating, opening, closing, and quitting Excel
|
|
5
|
-
* Also includes screenshot functionality
|
|
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 { saveScreenshot } from '../common/utils.js';
|
|
12
|
-
import { OFFICE_SCREENSHOT_PATH_DESC, OFFICE_CATEGORIES } from '../common/constants.js';
|
|
13
|
-
|
|
14
|
-
// =============================================================================
|
|
15
|
-
// Excel Launch
|
|
16
|
-
// =============================================================================
|
|
17
|
-
|
|
18
|
-
const EXCEL_LAUNCH_DEFINITION: ToolDefinition = {
|
|
19
|
-
type: 'function',
|
|
20
|
-
function: {
|
|
21
|
-
name: 'excel_launch',
|
|
22
|
-
description: `Launch Microsoft Excel for spreadsheet editing.
|
|
23
|
-
Use this tool to start Excel before working with spreadsheets.
|
|
24
|
-
The Excel window will be visible so you can see the changes in real-time.`,
|
|
25
|
-
parameters: {
|
|
26
|
-
type: 'object',
|
|
27
|
-
properties: {
|
|
28
|
-
reason: { type: 'string', description: 'Explanation of why you are launching Excel' },
|
|
29
|
-
},
|
|
30
|
-
required: ['reason'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
async function executeExcelLaunch(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
36
|
-
try {
|
|
37
|
-
const response = await excelClient.excelLaunch();
|
|
38
|
-
if (response.success) {
|
|
39
|
-
return { success: true, result: response.message || 'Excel launched successfully' };
|
|
40
|
-
}
|
|
41
|
-
return { success: false, error: response.error || 'Failed to launch Excel' };
|
|
42
|
-
} catch (error) {
|
|
43
|
-
return { success: false, error: `Failed to launch Excel: ${error instanceof Error ? error.message : String(error)}` };
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export const excelLaunchTool: LLMSimpleTool = {
|
|
48
|
-
definition: EXCEL_LAUNCH_DEFINITION,
|
|
49
|
-
execute: executeExcelLaunch,
|
|
50
|
-
categories: OFFICE_CATEGORIES,
|
|
51
|
-
description: 'Launch Microsoft Excel',
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
// =============================================================================
|
|
55
|
-
// Excel Create
|
|
56
|
-
// =============================================================================
|
|
57
|
-
|
|
58
|
-
const EXCEL_CREATE_DEFINITION: ToolDefinition = {
|
|
59
|
-
type: 'function',
|
|
60
|
-
function: {
|
|
61
|
-
name: 'excel_create',
|
|
62
|
-
description: `Create a new Excel workbook.`,
|
|
63
|
-
parameters: {
|
|
64
|
-
type: 'object',
|
|
65
|
-
properties: {
|
|
66
|
-
reason: { type: 'string', description: 'Why you are creating a workbook' },
|
|
67
|
-
},
|
|
68
|
-
required: ['reason'],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
async function executeExcelCreate(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
74
|
-
try {
|
|
75
|
-
const response = await excelClient.excelCreate();
|
|
76
|
-
if (response.success) {
|
|
77
|
-
return { success: true, result: response.message || 'New workbook created' };
|
|
78
|
-
}
|
|
79
|
-
return { success: false, error: response.error || 'Failed to create workbook' };
|
|
80
|
-
} catch (error) {
|
|
81
|
-
return { success: false, error: `Failed to create workbook: ${error instanceof Error ? error.message : String(error)}` };
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export const excelCreateTool: LLMSimpleTool = {
|
|
86
|
-
definition: EXCEL_CREATE_DEFINITION,
|
|
87
|
-
execute: executeExcelCreate,
|
|
88
|
-
categories: OFFICE_CATEGORIES,
|
|
89
|
-
description: 'Create new Excel workbook',
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
// =============================================================================
|
|
93
|
-
// Excel Open
|
|
94
|
-
// =============================================================================
|
|
95
|
-
|
|
96
|
-
const EXCEL_OPEN_DEFINITION: ToolDefinition = {
|
|
97
|
-
type: 'function',
|
|
98
|
-
function: {
|
|
99
|
-
name: 'excel_open',
|
|
100
|
-
description: `Open an existing Excel workbook. WSL paths are automatically converted to Windows paths.`,
|
|
101
|
-
parameters: {
|
|
102
|
-
type: 'object',
|
|
103
|
-
properties: {
|
|
104
|
-
reason: { type: 'string', description: 'Why you are opening this workbook' },
|
|
105
|
-
path: { type: 'string', description: 'File path to open. Can use Linux/WSL paths or Windows paths.' },
|
|
106
|
-
},
|
|
107
|
-
required: ['reason', 'path'],
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
async function executeExcelOpen(args: Record<string, unknown>): Promise<ToolResult> {
|
|
113
|
-
try {
|
|
114
|
-
const response = await excelClient.excelOpen(args['path'] as string);
|
|
115
|
-
if (response.success) {
|
|
116
|
-
return { success: true, result: `Workbook opened: ${response['workbook_name'] || args['path']}` };
|
|
117
|
-
}
|
|
118
|
-
return { success: false, error: response.error || 'Failed to open workbook' };
|
|
119
|
-
} catch (error) {
|
|
120
|
-
return { success: false, error: `Failed to open workbook: ${error instanceof Error ? error.message : String(error)}` };
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export const excelOpenTool: LLMSimpleTool = {
|
|
125
|
-
definition: EXCEL_OPEN_DEFINITION,
|
|
126
|
-
execute: executeExcelOpen,
|
|
127
|
-
categories: OFFICE_CATEGORIES,
|
|
128
|
-
description: 'Open existing Excel workbook',
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// =============================================================================
|
|
132
|
-
// Excel Save
|
|
133
|
-
// =============================================================================
|
|
134
|
-
|
|
135
|
-
const EXCEL_SAVE_DEFINITION: ToolDefinition = {
|
|
136
|
-
type: 'function',
|
|
137
|
-
function: {
|
|
138
|
-
name: 'excel_save',
|
|
139
|
-
description: `Save the active Excel workbook. WSL paths are automatically converted to Windows paths.`,
|
|
140
|
-
parameters: {
|
|
141
|
-
type: 'object',
|
|
142
|
-
properties: {
|
|
143
|
-
reason: { type: 'string', description: 'Explanation of why you are saving' },
|
|
144
|
-
path: { type: 'string', description: 'File path to save to (optional)' },
|
|
145
|
-
},
|
|
146
|
-
required: ['reason'],
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
async function executeExcelSave(args: Record<string, unknown>): Promise<ToolResult> {
|
|
152
|
-
try {
|
|
153
|
-
const response = await excelClient.excelSave(args['path'] as string | undefined);
|
|
154
|
-
if (response.success) {
|
|
155
|
-
return { success: true, result: `Workbook saved: ${response['path'] || 'current location'}` };
|
|
156
|
-
}
|
|
157
|
-
return { success: false, error: response.error || 'Failed to save workbook' };
|
|
158
|
-
} catch (error) {
|
|
159
|
-
return { success: false, error: `Failed to save workbook: ${error instanceof Error ? error.message : String(error)}` };
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export const excelSaveTool: LLMSimpleTool = {
|
|
164
|
-
definition: EXCEL_SAVE_DEFINITION,
|
|
165
|
-
execute: executeExcelSave,
|
|
166
|
-
categories: OFFICE_CATEGORIES,
|
|
167
|
-
description: 'Save Excel workbook',
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
// =============================================================================
|
|
171
|
-
// Excel Screenshot
|
|
172
|
-
// =============================================================================
|
|
173
|
-
|
|
174
|
-
const EXCEL_SCREENSHOT_DEFINITION: ToolDefinition = {
|
|
175
|
-
type: 'function',
|
|
176
|
-
function: {
|
|
177
|
-
name: 'excel_screenshot',
|
|
178
|
-
description: `Take a screenshot of the current Excel worksheet.
|
|
179
|
-
Captures the used range and saves to ${OFFICE_SCREENSHOT_PATH_DESC}.`,
|
|
180
|
-
parameters: {
|
|
181
|
-
type: 'object',
|
|
182
|
-
properties: {
|
|
183
|
-
reason: { type: 'string', description: 'Explanation of why you are taking a screenshot' },
|
|
184
|
-
},
|
|
185
|
-
required: ['reason'],
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
async function executeExcelScreenshot(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
191
|
-
try {
|
|
192
|
-
const response = await excelClient.excelScreenshot();
|
|
193
|
-
if (response.success && response.image) {
|
|
194
|
-
const filePath = await saveScreenshot(response.image, 'excel');
|
|
195
|
-
return {
|
|
196
|
-
success: true,
|
|
197
|
-
result: `Excel screenshot saved to: ${filePath}`,
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
return { success: false, error: response.error || 'Failed to capture screenshot' };
|
|
201
|
-
} catch (error) {
|
|
202
|
-
return { success: false, error: `Failed to capture screenshot: ${error instanceof Error ? error.message : String(error)}` };
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export const excelScreenshotTool: LLMSimpleTool = {
|
|
207
|
-
definition: EXCEL_SCREENSHOT_DEFINITION,
|
|
208
|
-
execute: executeExcelScreenshot,
|
|
209
|
-
categories: OFFICE_CATEGORIES,
|
|
210
|
-
description: 'Take Excel window screenshot',
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
// =============================================================================
|
|
214
|
-
// Excel Close
|
|
215
|
-
// =============================================================================
|
|
216
|
-
|
|
217
|
-
const EXCEL_CLOSE_DEFINITION: ToolDefinition = {
|
|
218
|
-
type: 'function',
|
|
219
|
-
function: {
|
|
220
|
-
name: 'excel_close',
|
|
221
|
-
description: `Close the active Excel workbook.`,
|
|
222
|
-
parameters: {
|
|
223
|
-
type: 'object',
|
|
224
|
-
properties: {
|
|
225
|
-
reason: { type: 'string', description: 'Explanation of why you are closing' },
|
|
226
|
-
save: { type: 'boolean', description: 'Whether to save before closing (default: false)' },
|
|
227
|
-
},
|
|
228
|
-
required: ['reason'],
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
async function executeExcelClose(args: Record<string, unknown>): Promise<ToolResult> {
|
|
234
|
-
try {
|
|
235
|
-
const response = await excelClient.excelClose(args['save'] === true);
|
|
236
|
-
if (response.success) {
|
|
237
|
-
return { success: true, result: `Workbook closed${args['save'] ? ' (saved)' : ''}` };
|
|
238
|
-
}
|
|
239
|
-
return { success: false, error: response.error || 'Failed to close workbook' };
|
|
240
|
-
} catch (error) {
|
|
241
|
-
return { success: false, error: `Failed to close workbook: ${error instanceof Error ? error.message : String(error)}` };
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export const excelCloseTool: LLMSimpleTool = {
|
|
246
|
-
definition: EXCEL_CLOSE_DEFINITION,
|
|
247
|
-
execute: executeExcelClose,
|
|
248
|
-
categories: OFFICE_CATEGORIES,
|
|
249
|
-
description: 'Close Excel workbook',
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
// =============================================================================
|
|
253
|
-
// Excel Quit
|
|
254
|
-
// =============================================================================
|
|
255
|
-
|
|
256
|
-
const EXCEL_QUIT_DEFINITION: ToolDefinition = {
|
|
257
|
-
type: 'function',
|
|
258
|
-
function: {
|
|
259
|
-
name: 'excel_quit',
|
|
260
|
-
description: `Quit Microsoft Excel application entirely.`,
|
|
261
|
-
parameters: {
|
|
262
|
-
type: 'object',
|
|
263
|
-
properties: {
|
|
264
|
-
reason: { type: 'string', description: 'Explanation of why you are quitting Excel' },
|
|
265
|
-
save: { type: 'boolean', description: 'Whether to save all workbooks before quitting (default: false)' },
|
|
266
|
-
},
|
|
267
|
-
required: ['reason'],
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
async function executeExcelQuit(args: Record<string, unknown>): Promise<ToolResult> {
|
|
273
|
-
try {
|
|
274
|
-
const response = await excelClient.excelQuit(args['save'] === true);
|
|
275
|
-
if (response.success) {
|
|
276
|
-
return { success: true, result: `Excel closed${args['save'] ? ' (all workbooks saved)' : ''}` };
|
|
277
|
-
}
|
|
278
|
-
return { success: false, error: response.error || 'Failed to quit Excel' };
|
|
279
|
-
} catch (error) {
|
|
280
|
-
return { success: false, error: `Failed to quit Excel: ${error instanceof Error ? error.message : String(error)}` };
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export const excelQuitTool: LLMSimpleTool = {
|
|
285
|
-
definition: EXCEL_QUIT_DEFINITION,
|
|
286
|
-
execute: executeExcelQuit,
|
|
287
|
-
categories: OFFICE_CATEGORIES,
|
|
288
|
-
description: 'Quit Microsoft Excel',
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
// =============================================================================
|
|
292
|
-
// Export All Launch Tools
|
|
293
|
-
// =============================================================================
|
|
294
|
-
|
|
295
|
-
export const launchTools: LLMSimpleTool[] = [
|
|
296
|
-
excelLaunchTool,
|
|
297
|
-
excelCreateTool,
|
|
298
|
-
excelOpenTool,
|
|
299
|
-
excelSaveTool,
|
|
300
|
-
excelScreenshotTool,
|
|
301
|
-
excelCloseTool,
|
|
302
|
-
excelQuitTool,
|
|
303
|
-
];
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Excel Media Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for adding images and hyperlinks to Excel worksheets
|
|
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 Image
|
|
14
|
-
// =============================================================================
|
|
15
|
-
|
|
16
|
-
const EXCEL_ADD_IMAGE_DEFINITION: ToolDefinition = {
|
|
17
|
-
type: 'function',
|
|
18
|
-
function: {
|
|
19
|
-
name: 'excel_add_image',
|
|
20
|
-
description: `Add an image to the worksheet. WSL paths are automatically converted.`,
|
|
21
|
-
parameters: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
reason: { type: 'string', description: 'Why you are adding image' },
|
|
25
|
-
image_path: { type: 'string', description: 'Image file path' },
|
|
26
|
-
cell: { type: 'string', description: 'Cell to position image (e.g., "A1")' },
|
|
27
|
-
width: { type: 'number', description: 'Image width (optional)' },
|
|
28
|
-
height: { type: 'number', description: 'Image height (optional)' },
|
|
29
|
-
sheet: { type: 'string', description: 'Sheet name (optional)' },
|
|
30
|
-
},
|
|
31
|
-
required: ['reason', 'image_path', 'cell'],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
async function executeExcelAddImage(args: Record<string, unknown>): Promise<ToolResult> {
|
|
37
|
-
try {
|
|
38
|
-
const response = await excelClient.excelAddImage(
|
|
39
|
-
args['image_path'] as string,
|
|
40
|
-
args['cell'] as string,
|
|
41
|
-
{
|
|
42
|
-
width: args['width'] as number | undefined,
|
|
43
|
-
height: args['height'] as number | undefined,
|
|
44
|
-
sheet: args['sheet'] as string | undefined,
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
if (response.success) {
|
|
48
|
-
return { success: true, result: `Image added at ${args['cell']}` };
|
|
49
|
-
}
|
|
50
|
-
return { success: false, error: response.error || 'Failed to add image' };
|
|
51
|
-
} catch (error) {
|
|
52
|
-
return { success: false, error: `Failed to add image: ${error instanceof Error ? error.message : String(error)}` };
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const excelAddImageTool: LLMSimpleTool = {
|
|
57
|
-
definition: EXCEL_ADD_IMAGE_DEFINITION,
|
|
58
|
-
execute: executeExcelAddImage,
|
|
59
|
-
categories: OFFICE_CATEGORIES,
|
|
60
|
-
description: 'Add Excel image',
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
// =============================================================================
|
|
64
|
-
// Excel Add Hyperlink
|
|
65
|
-
// =============================================================================
|
|
66
|
-
|
|
67
|
-
const EXCEL_ADD_HYPERLINK_DEFINITION: ToolDefinition = {
|
|
68
|
-
type: 'function',
|
|
69
|
-
function: {
|
|
70
|
-
name: 'excel_add_hyperlink',
|
|
71
|
-
description: `Add a hyperlink to a cell.`,
|
|
72
|
-
parameters: {
|
|
73
|
-
type: 'object',
|
|
74
|
-
properties: {
|
|
75
|
-
reason: { type: 'string', description: 'Why you are adding hyperlink' },
|
|
76
|
-
cell: { type: 'string', description: 'Cell address (e.g., "A1")' },
|
|
77
|
-
url: { type: 'string', description: 'URL to link to' },
|
|
78
|
-
display_text: { type: 'string', description: 'Display text (optional, defaults to URL)' },
|
|
79
|
-
sheet: { type: 'string', description: 'Sheet name (optional)' },
|
|
80
|
-
},
|
|
81
|
-
required: ['reason', 'cell', 'url'],
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
async function executeExcelAddHyperlink(args: Record<string, unknown>): Promise<ToolResult> {
|
|
87
|
-
try {
|
|
88
|
-
const response = await excelClient.excelAddHyperlink(
|
|
89
|
-
args['cell'] as string,
|
|
90
|
-
args['url'] as string,
|
|
91
|
-
args['display_text'] as string | undefined,
|
|
92
|
-
args['sheet'] as string | undefined
|
|
93
|
-
);
|
|
94
|
-
if (response.success) {
|
|
95
|
-
return { success: true, result: `Hyperlink added to ${args['cell']}` };
|
|
96
|
-
}
|
|
97
|
-
return { success: false, error: response.error || 'Failed to add hyperlink' };
|
|
98
|
-
} catch (error) {
|
|
99
|
-
return { success: false, error: `Failed to add hyperlink: ${error instanceof Error ? error.message : String(error)}` };
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export const excelAddHyperlinkTool: LLMSimpleTool = {
|
|
104
|
-
definition: EXCEL_ADD_HYPERLINK_DEFINITION,
|
|
105
|
-
execute: executeExcelAddHyperlink,
|
|
106
|
-
categories: OFFICE_CATEGORIES,
|
|
107
|
-
description: 'Add Excel hyperlink',
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
// =============================================================================
|
|
111
|
-
// Export all media tools
|
|
112
|
-
// =============================================================================
|
|
113
|
-
|
|
114
|
-
export const mediaTools: LLMSimpleTool[] = [
|
|
115
|
-
excelAddImageTool,
|
|
116
|
-
excelAddHyperlinkTool,
|
|
117
|
-
];
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Excel Named Ranges Tools
|
|
3
|
-
*
|
|
4
|
-
* Named range management tools for Excel.
|
|
5
|
-
* Tools: createNamedRange, getNamedRanges, deleteNamedRange
|
|
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 Create Named Range
|
|
15
|
-
// =============================================================================
|
|
16
|
-
|
|
17
|
-
const EXCEL_CREATE_NAMED_RANGE_DEFINITION: ToolDefinition = {
|
|
18
|
-
type: 'function',
|
|
19
|
-
function: {
|
|
20
|
-
name: 'excel_create_named_range',
|
|
21
|
-
description: `Create a named range.`,
|
|
22
|
-
parameters: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
reason: { type: 'string', description: 'Why you are creating named range' },
|
|
26
|
-
name: { type: 'string', description: 'Name for the range' },
|
|
27
|
-
range: { type: 'string', description: 'Range address (e.g., "A1:B10")' },
|
|
28
|
-
sheet: { type: 'string', description: 'Sheet name (optional)' },
|
|
29
|
-
},
|
|
30
|
-
required: ['reason', 'name', 'range'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
async function executeExcelCreateNamedRange(args: Record<string, unknown>): Promise<ToolResult> {
|
|
36
|
-
try {
|
|
37
|
-
const response = await excelClient.excelCreateNamedRange(
|
|
38
|
-
args['name'] as string,
|
|
39
|
-
args['range'] as string,
|
|
40
|
-
args['sheet'] as string | undefined
|
|
41
|
-
);
|
|
42
|
-
if (response.success) {
|
|
43
|
-
return { success: true, result: `Named range "${args['name']}" created` };
|
|
44
|
-
}
|
|
45
|
-
return { success: false, error: response.error || 'Failed to create named range' };
|
|
46
|
-
} catch (error) {
|
|
47
|
-
return { success: false, error: `Failed to create named range: ${error instanceof Error ? error.message : String(error)}` };
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const excelCreateNamedRangeTool: LLMSimpleTool = {
|
|
52
|
-
definition: EXCEL_CREATE_NAMED_RANGE_DEFINITION,
|
|
53
|
-
execute: executeExcelCreateNamedRange,
|
|
54
|
-
categories: OFFICE_CATEGORIES,
|
|
55
|
-
description: 'Create Excel named range',
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// =============================================================================
|
|
59
|
-
// Excel Get Named Ranges
|
|
60
|
-
// =============================================================================
|
|
61
|
-
|
|
62
|
-
const EXCEL_GET_NAMED_RANGES_DEFINITION: ToolDefinition = {
|
|
63
|
-
type: 'function',
|
|
64
|
-
function: {
|
|
65
|
-
name: 'excel_get_named_ranges',
|
|
66
|
-
description: `Get all named ranges in the workbook.`,
|
|
67
|
-
parameters: {
|
|
68
|
-
type: 'object',
|
|
69
|
-
properties: {
|
|
70
|
-
reason: { type: 'string', description: 'Why you need named ranges' },
|
|
71
|
-
},
|
|
72
|
-
required: ['reason'],
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
async function executeExcelGetNamedRanges(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
78
|
-
try {
|
|
79
|
-
const response = await excelClient.excelGetNamedRanges();
|
|
80
|
-
if (response.success) {
|
|
81
|
-
const ranges = response['named_ranges'] as Array<{ name: string; refersTo: string }> || [];
|
|
82
|
-
if (ranges.length === 0) {
|
|
83
|
-
return { success: true, result: 'No named ranges found' };
|
|
84
|
-
}
|
|
85
|
-
const list = ranges.map(r => `- ${r.name}: ${r.refersTo}`).join('\n');
|
|
86
|
-
return { success: true, result: `Named ranges:\n${list}` };
|
|
87
|
-
}
|
|
88
|
-
return { success: false, error: response.error || 'Failed to get named ranges' };
|
|
89
|
-
} catch (error) {
|
|
90
|
-
return { success: false, error: `Failed to get named ranges: ${error instanceof Error ? error.message : String(error)}` };
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export const excelGetNamedRangesTool: LLMSimpleTool = {
|
|
95
|
-
definition: EXCEL_GET_NAMED_RANGES_DEFINITION,
|
|
96
|
-
execute: executeExcelGetNamedRanges,
|
|
97
|
-
categories: OFFICE_CATEGORIES,
|
|
98
|
-
description: 'Get Excel named ranges',
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
// =============================================================================
|
|
102
|
-
// Excel Delete Named Range
|
|
103
|
-
// =============================================================================
|
|
104
|
-
|
|
105
|
-
const EXCEL_DELETE_NAMED_RANGE_DEFINITION: ToolDefinition = {
|
|
106
|
-
type: 'function',
|
|
107
|
-
function: {
|
|
108
|
-
name: 'excel_delete_named_range',
|
|
109
|
-
description: `Delete a named range.`,
|
|
110
|
-
parameters: {
|
|
111
|
-
type: 'object',
|
|
112
|
-
properties: {
|
|
113
|
-
reason: { type: 'string', description: 'Why you are deleting named range' },
|
|
114
|
-
name: { type: 'string', description: 'Name of the range to delete' },
|
|
115
|
-
},
|
|
116
|
-
required: ['reason', 'name'],
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
async function executeExcelDeleteNamedRange(args: Record<string, unknown>): Promise<ToolResult> {
|
|
122
|
-
try {
|
|
123
|
-
const response = await excelClient.excelDeleteNamedRange(args['name'] as string);
|
|
124
|
-
if (response.success) {
|
|
125
|
-
return { success: true, result: `Named range "${args['name']}" deleted` };
|
|
126
|
-
}
|
|
127
|
-
return { success: false, error: response.error || 'Failed to delete named range' };
|
|
128
|
-
} catch (error) {
|
|
129
|
-
return { success: false, error: `Failed to delete named range: ${error instanceof Error ? error.message : String(error)}` };
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export const excelDeleteNamedRangeTool: LLMSimpleTool = {
|
|
134
|
-
definition: EXCEL_DELETE_NAMED_RANGE_DEFINITION,
|
|
135
|
-
execute: executeExcelDeleteNamedRange,
|
|
136
|
-
categories: OFFICE_CATEGORIES,
|
|
137
|
-
description: 'Delete Excel named range',
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
// =============================================================================
|
|
141
|
-
// Export: Named Ranges Tools Array
|
|
142
|
-
// =============================================================================
|
|
143
|
-
|
|
144
|
-
export const namedRangesTools: LLMSimpleTool[] = [
|
|
145
|
-
excelCreateNamedRangeTool,
|
|
146
|
-
excelGetNamedRangesTool,
|
|
147
|
-
excelDeleteNamedRangeTool,
|
|
148
|
-
];
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Excel Protection Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for protecting and unprotecting Excel worksheets
|
|
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 Protect Sheet
|
|
14
|
-
// =============================================================================
|
|
15
|
-
|
|
16
|
-
const EXCEL_PROTECT_SHEET_DEFINITION: ToolDefinition = {
|
|
17
|
-
type: 'function',
|
|
18
|
-
function: {
|
|
19
|
-
name: 'excel_protect_sheet',
|
|
20
|
-
description: `Protect a worksheet.`,
|
|
21
|
-
parameters: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
reason: { type: 'string', description: 'Why you are protecting sheet' },
|
|
25
|
-
password: { type: 'string', description: 'Protection password (optional)' },
|
|
26
|
-
sheet: { type: 'string', description: 'Sheet name (optional, protects active sheet)' },
|
|
27
|
-
},
|
|
28
|
-
required: ['reason'],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
async function executeExcelProtectSheet(args: Record<string, unknown>): Promise<ToolResult> {
|
|
34
|
-
try {
|
|
35
|
-
const response = await excelClient.excelProtectSheet(
|
|
36
|
-
args['password'] as string | undefined,
|
|
37
|
-
args['sheet'] as string | undefined
|
|
38
|
-
);
|
|
39
|
-
if (response.success) {
|
|
40
|
-
return { success: true, result: 'Sheet protected' };
|
|
41
|
-
}
|
|
42
|
-
return { success: false, error: response.error || 'Failed to protect sheet' };
|
|
43
|
-
} catch (error) {
|
|
44
|
-
return { success: false, error: `Failed to protect sheet: ${error instanceof Error ? error.message : String(error)}` };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export const excelProtectSheetTool: LLMSimpleTool = {
|
|
49
|
-
definition: EXCEL_PROTECT_SHEET_DEFINITION,
|
|
50
|
-
execute: executeExcelProtectSheet,
|
|
51
|
-
categories: OFFICE_CATEGORIES,
|
|
52
|
-
description: 'Protect Excel sheet',
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// =============================================================================
|
|
56
|
-
// Excel Unprotect Sheet
|
|
57
|
-
// =============================================================================
|
|
58
|
-
|
|
59
|
-
const EXCEL_UNPROTECT_SHEET_DEFINITION: ToolDefinition = {
|
|
60
|
-
type: 'function',
|
|
61
|
-
function: {
|
|
62
|
-
name: 'excel_unprotect_sheet',
|
|
63
|
-
description: `Unprotect a worksheet.`,
|
|
64
|
-
parameters: {
|
|
65
|
-
type: 'object',
|
|
66
|
-
properties: {
|
|
67
|
-
reason: { type: 'string', description: 'Why you are unprotecting sheet' },
|
|
68
|
-
password: { type: 'string', description: 'Protection password (if protected)' },
|
|
69
|
-
sheet: { type: 'string', description: 'Sheet name (optional)' },
|
|
70
|
-
},
|
|
71
|
-
required: ['reason'],
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
async function executeExcelUnprotectSheet(args: Record<string, unknown>): Promise<ToolResult> {
|
|
77
|
-
try {
|
|
78
|
-
const response = await excelClient.excelUnprotectSheet(
|
|
79
|
-
args['password'] as string | undefined,
|
|
80
|
-
args['sheet'] as string | undefined
|
|
81
|
-
);
|
|
82
|
-
if (response.success) {
|
|
83
|
-
return { success: true, result: 'Sheet unprotected' };
|
|
84
|
-
}
|
|
85
|
-
return { success: false, error: response.error || 'Failed to unprotect sheet' };
|
|
86
|
-
} catch (error) {
|
|
87
|
-
return { success: false, error: `Failed to unprotect sheet: ${error instanceof Error ? error.message : String(error)}` };
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export const excelUnprotectSheetTool: LLMSimpleTool = {
|
|
92
|
-
definition: EXCEL_UNPROTECT_SHEET_DEFINITION,
|
|
93
|
-
execute: executeExcelUnprotectSheet,
|
|
94
|
-
categories: OFFICE_CATEGORIES,
|
|
95
|
-
description: 'Unprotect Excel sheet',
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// =============================================================================
|
|
99
|
-
// Export
|
|
100
|
-
// =============================================================================
|
|
101
|
-
|
|
102
|
-
export const protectionTools: LLMSimpleTool[] = [
|
|
103
|
-
excelProtectSheetTool,
|
|
104
|
-
excelUnprotectSheetTool,
|
|
105
|
-
];
|