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,186 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Bookmark Tools
|
|
3
|
-
*
|
|
4
|
-
* Bookmark-related tools for Microsoft Word
|
|
5
|
-
* - addBookmark, getBookmarks, deleteBookmark, gotoBookmark
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ToolDefinition } from '../../../types/index.js';
|
|
9
|
-
import { LLMSimpleTool, ToolResult } from '../../types.js';
|
|
10
|
-
import { wordClient } from '../word-client.js';
|
|
11
|
-
import { OFFICE_CATEGORIES } from '../common/index.js';
|
|
12
|
-
|
|
13
|
-
// =============================================================================
|
|
14
|
-
// Word Add Bookmark
|
|
15
|
-
// =============================================================================
|
|
16
|
-
|
|
17
|
-
const WORD_ADD_BOOKMARK_DEFINITION: ToolDefinition = {
|
|
18
|
-
type: 'function',
|
|
19
|
-
function: {
|
|
20
|
-
name: 'word_add_bookmark',
|
|
21
|
-
description: `Add a bookmark at the current selection or with specified text.`,
|
|
22
|
-
parameters: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
reason: { type: 'string', description: 'Why you are adding a bookmark' },
|
|
26
|
-
name: { type: 'string', description: 'Bookmark name (no spaces)' },
|
|
27
|
-
text: { type: 'string', description: 'Optional text to mark (will be selected)' },
|
|
28
|
-
},
|
|
29
|
-
required: ['reason', 'name'],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
async function executeWordAddBookmark(args: Record<string, unknown>): Promise<ToolResult> {
|
|
35
|
-
try {
|
|
36
|
-
const response = await wordClient.wordAddBookmark(
|
|
37
|
-
args['name'] as string,
|
|
38
|
-
args['text'] as string | undefined
|
|
39
|
-
);
|
|
40
|
-
if (response.success) {
|
|
41
|
-
return { success: true, result: `Bookmark "${args['name']}" added` };
|
|
42
|
-
}
|
|
43
|
-
return { success: false, error: response.error || 'Failed to add bookmark' };
|
|
44
|
-
} catch (error) {
|
|
45
|
-
return { success: false, error: `Failed to add bookmark: ${error instanceof Error ? error.message : String(error)}` };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export const wordAddBookmarkTool: LLMSimpleTool = {
|
|
50
|
-
definition: WORD_ADD_BOOKMARK_DEFINITION,
|
|
51
|
-
execute: executeWordAddBookmark,
|
|
52
|
-
categories: OFFICE_CATEGORIES,
|
|
53
|
-
description: 'Add Word bookmark',
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
// =============================================================================
|
|
57
|
-
// Word Get Bookmarks
|
|
58
|
-
// =============================================================================
|
|
59
|
-
|
|
60
|
-
const WORD_GET_BOOKMARKS_DEFINITION: ToolDefinition = {
|
|
61
|
-
type: 'function',
|
|
62
|
-
function: {
|
|
63
|
-
name: 'word_get_bookmarks',
|
|
64
|
-
description: `Get all bookmarks in the document.`,
|
|
65
|
-
parameters: {
|
|
66
|
-
type: 'object',
|
|
67
|
-
properties: {
|
|
68
|
-
reason: { type: 'string', description: 'Why you need bookmark list' },
|
|
69
|
-
},
|
|
70
|
-
required: ['reason'],
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
async function executeWordGetBookmarks(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
76
|
-
try {
|
|
77
|
-
const response = await wordClient.wordGetBookmarks();
|
|
78
|
-
if (response.success) {
|
|
79
|
-
const bookmarks = response['bookmarks'] as Array<{ name: string; text: string }> || [];
|
|
80
|
-
if (bookmarks.length === 0) {
|
|
81
|
-
return { success: true, result: 'No bookmarks found' };
|
|
82
|
-
}
|
|
83
|
-
const list = bookmarks.map(b => `- ${b.name}: "${b.text}"`).join('\n');
|
|
84
|
-
return { success: true, result: `Bookmarks:\n${list}` };
|
|
85
|
-
}
|
|
86
|
-
return { success: false, error: response.error || 'Failed to get bookmarks' };
|
|
87
|
-
} catch (error) {
|
|
88
|
-
return { success: false, error: `Failed to get bookmarks: ${error instanceof Error ? error.message : String(error)}` };
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export const wordGetBookmarksTool: LLMSimpleTool = {
|
|
93
|
-
definition: WORD_GET_BOOKMARKS_DEFINITION,
|
|
94
|
-
execute: executeWordGetBookmarks,
|
|
95
|
-
categories: OFFICE_CATEGORIES,
|
|
96
|
-
description: 'Get Word bookmarks',
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
// =============================================================================
|
|
100
|
-
// Word Delete Bookmark
|
|
101
|
-
// =============================================================================
|
|
102
|
-
|
|
103
|
-
const WORD_DELETE_BOOKMARK_DEFINITION: ToolDefinition = {
|
|
104
|
-
type: 'function',
|
|
105
|
-
function: {
|
|
106
|
-
name: 'word_delete_bookmark',
|
|
107
|
-
description: `Delete a bookmark from the document.`,
|
|
108
|
-
parameters: {
|
|
109
|
-
type: 'object',
|
|
110
|
-
properties: {
|
|
111
|
-
reason: { type: 'string', description: 'Why you are deleting the bookmark' },
|
|
112
|
-
name: { type: 'string', description: 'Bookmark name to delete' },
|
|
113
|
-
},
|
|
114
|
-
required: ['reason', 'name'],
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
async function executeWordDeleteBookmark(args: Record<string, unknown>): Promise<ToolResult> {
|
|
120
|
-
try {
|
|
121
|
-
const response = await wordClient.wordDeleteBookmark(args['name'] as string);
|
|
122
|
-
if (response.success) {
|
|
123
|
-
return { success: true, result: `Bookmark "${args['name']}" deleted` };
|
|
124
|
-
}
|
|
125
|
-
return { success: false, error: response.error || 'Failed to delete bookmark' };
|
|
126
|
-
} catch (error) {
|
|
127
|
-
return { success: false, error: `Failed to delete bookmark: ${error instanceof Error ? error.message : String(error)}` };
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export const wordDeleteBookmarkTool: LLMSimpleTool = {
|
|
132
|
-
definition: WORD_DELETE_BOOKMARK_DEFINITION,
|
|
133
|
-
execute: executeWordDeleteBookmark,
|
|
134
|
-
categories: OFFICE_CATEGORIES,
|
|
135
|
-
description: 'Delete Word bookmark',
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// =============================================================================
|
|
139
|
-
// Word Goto Bookmark
|
|
140
|
-
// =============================================================================
|
|
141
|
-
|
|
142
|
-
const WORD_GOTO_BOOKMARK_DEFINITION: ToolDefinition = {
|
|
143
|
-
type: 'function',
|
|
144
|
-
function: {
|
|
145
|
-
name: 'word_goto_bookmark',
|
|
146
|
-
description: `Navigate to a bookmark in the document.`,
|
|
147
|
-
parameters: {
|
|
148
|
-
type: 'object',
|
|
149
|
-
properties: {
|
|
150
|
-
reason: { type: 'string', description: 'Why you are navigating to bookmark' },
|
|
151
|
-
name: { type: 'string', description: 'Bookmark name' },
|
|
152
|
-
},
|
|
153
|
-
required: ['reason', 'name'],
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
async function executeWordGotoBookmark(args: Record<string, unknown>): Promise<ToolResult> {
|
|
159
|
-
try {
|
|
160
|
-
const response = await wordClient.wordGotoBookmark(args['name'] as string);
|
|
161
|
-
if (response.success) {
|
|
162
|
-
return { success: true, result: `Moved to bookmark "${args['name']}"` };
|
|
163
|
-
}
|
|
164
|
-
return { success: false, error: response.error || 'Failed to goto bookmark' };
|
|
165
|
-
} catch (error) {
|
|
166
|
-
return { success: false, error: `Failed to goto bookmark: ${error instanceof Error ? error.message : String(error)}` };
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export const wordGotoBookmarkTool: LLMSimpleTool = {
|
|
171
|
-
definition: WORD_GOTO_BOOKMARK_DEFINITION,
|
|
172
|
-
execute: executeWordGotoBookmark,
|
|
173
|
-
categories: OFFICE_CATEGORIES,
|
|
174
|
-
description: 'Goto Word bookmark',
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
// =============================================================================
|
|
178
|
-
// Export All Bookmark Tools
|
|
179
|
-
// =============================================================================
|
|
180
|
-
|
|
181
|
-
export const bookmarksTools: LLMSimpleTool[] = [
|
|
182
|
-
wordAddBookmarkTool,
|
|
183
|
-
wordGetBookmarksTool,
|
|
184
|
-
wordDeleteBookmarkTool,
|
|
185
|
-
wordGotoBookmarkTool,
|
|
186
|
-
];
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Comments Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for managing comments in Word documents
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { ToolDefinition } from '../../../types/index.js';
|
|
8
|
-
import { LLMSimpleTool, ToolResult } from '../../types.js';
|
|
9
|
-
import { wordClient } from '../word-client.js';
|
|
10
|
-
import { OFFICE_CATEGORIES } from '../common/constants.js';
|
|
11
|
-
|
|
12
|
-
// =============================================================================
|
|
13
|
-
// Word Add Comment
|
|
14
|
-
// =============================================================================
|
|
15
|
-
|
|
16
|
-
const WORD_ADD_COMMENT_DEFINITION: ToolDefinition = {
|
|
17
|
-
type: 'function',
|
|
18
|
-
function: {
|
|
19
|
-
name: 'word_add_comment',
|
|
20
|
-
description: `Add a comment to the current selection.`,
|
|
21
|
-
parameters: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
reason: { type: 'string', description: 'Why you are adding a comment' },
|
|
25
|
-
text: { type: 'string', description: 'Comment text' },
|
|
26
|
-
author: { type: 'string', description: 'Author name (optional)' },
|
|
27
|
-
},
|
|
28
|
-
required: ['reason', 'text'],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
async function executeWordAddComment(args: Record<string, unknown>): Promise<ToolResult> {
|
|
34
|
-
try {
|
|
35
|
-
const response = await wordClient.wordAddComment(
|
|
36
|
-
args['text'] as string,
|
|
37
|
-
args['author'] as string | undefined
|
|
38
|
-
);
|
|
39
|
-
if (response.success) {
|
|
40
|
-
return { success: true, result: 'Comment added' };
|
|
41
|
-
}
|
|
42
|
-
return { success: false, error: response.error || 'Failed to add comment' };
|
|
43
|
-
} catch (error) {
|
|
44
|
-
return { success: false, error: `Failed to add comment: ${error instanceof Error ? error.message : String(error)}` };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export const wordAddCommentTool: LLMSimpleTool = {
|
|
49
|
-
definition: WORD_ADD_COMMENT_DEFINITION,
|
|
50
|
-
execute: executeWordAddComment,
|
|
51
|
-
categories: OFFICE_CATEGORIES,
|
|
52
|
-
description: 'Add Word comment',
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// =============================================================================
|
|
56
|
-
// Word Get Comments
|
|
57
|
-
// =============================================================================
|
|
58
|
-
|
|
59
|
-
const WORD_GET_COMMENTS_DEFINITION: ToolDefinition = {
|
|
60
|
-
type: 'function',
|
|
61
|
-
function: {
|
|
62
|
-
name: 'word_get_comments',
|
|
63
|
-
description: `Get all comments in the document.`,
|
|
64
|
-
parameters: {
|
|
65
|
-
type: 'object',
|
|
66
|
-
properties: {
|
|
67
|
-
reason: { type: 'string', description: 'Why you need comments' },
|
|
68
|
-
},
|
|
69
|
-
required: ['reason'],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
async function executeWordGetComments(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
75
|
-
try {
|
|
76
|
-
const response = await wordClient.wordGetComments();
|
|
77
|
-
if (response.success) {
|
|
78
|
-
const comments = response['comments'] as Array<{ index: number; author: string; text: string; scope: string }> || [];
|
|
79
|
-
const count = response['count'] as number || 0;
|
|
80
|
-
if (count === 0) {
|
|
81
|
-
return { success: true, result: 'No comments found' };
|
|
82
|
-
}
|
|
83
|
-
const list = comments.map(c => `[${c.index}] ${c.author}: "${c.text}" (on: "${c.scope?.slice(0, 30)}...")`).join('\n');
|
|
84
|
-
return { success: true, result: `${count} comments:\n${list}` };
|
|
85
|
-
}
|
|
86
|
-
return { success: false, error: response.error || 'Failed to get comments' };
|
|
87
|
-
} catch (error) {
|
|
88
|
-
return { success: false, error: `Failed to get comments: ${error instanceof Error ? error.message : String(error)}` };
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export const wordGetCommentsTool: LLMSimpleTool = {
|
|
93
|
-
definition: WORD_GET_COMMENTS_DEFINITION,
|
|
94
|
-
execute: executeWordGetComments,
|
|
95
|
-
categories: OFFICE_CATEGORIES,
|
|
96
|
-
description: 'Get Word comments',
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
// =============================================================================
|
|
100
|
-
// Word Delete Comment
|
|
101
|
-
// =============================================================================
|
|
102
|
-
|
|
103
|
-
const WORD_DELETE_COMMENT_DEFINITION: ToolDefinition = {
|
|
104
|
-
type: 'function',
|
|
105
|
-
function: {
|
|
106
|
-
name: 'word_delete_comment',
|
|
107
|
-
description: `Delete a comment by index.`,
|
|
108
|
-
parameters: {
|
|
109
|
-
type: 'object',
|
|
110
|
-
properties: {
|
|
111
|
-
reason: { type: 'string', description: 'Why you are deleting comment' },
|
|
112
|
-
index: { type: 'number', description: 'Comment index (1-based)' },
|
|
113
|
-
},
|
|
114
|
-
required: ['reason', 'index'],
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
async function executeWordDeleteComment(args: Record<string, unknown>): Promise<ToolResult> {
|
|
120
|
-
try {
|
|
121
|
-
const response = await wordClient.wordDeleteComment(args['index'] as number);
|
|
122
|
-
if (response.success) {
|
|
123
|
-
return { success: true, result: `Comment ${args['index']} deleted` };
|
|
124
|
-
}
|
|
125
|
-
return { success: false, error: response.error || 'Failed to delete comment' };
|
|
126
|
-
} catch (error) {
|
|
127
|
-
return { success: false, error: `Failed to delete comment: ${error instanceof Error ? error.message : String(error)}` };
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export const wordDeleteCommentTool: LLMSimpleTool = {
|
|
132
|
-
definition: WORD_DELETE_COMMENT_DEFINITION,
|
|
133
|
-
execute: executeWordDeleteComment,
|
|
134
|
-
categories: OFFICE_CATEGORIES,
|
|
135
|
-
description: 'Delete Word comment',
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// =============================================================================
|
|
139
|
-
// Word Delete All Comments
|
|
140
|
-
// =============================================================================
|
|
141
|
-
|
|
142
|
-
const WORD_DELETE_ALL_COMMENTS_DEFINITION: ToolDefinition = {
|
|
143
|
-
type: 'function',
|
|
144
|
-
function: {
|
|
145
|
-
name: 'word_delete_all_comments',
|
|
146
|
-
description: `Delete all comments in the document.`,
|
|
147
|
-
parameters: {
|
|
148
|
-
type: 'object',
|
|
149
|
-
properties: {
|
|
150
|
-
reason: { type: 'string', description: 'Why you are deleting all comments' },
|
|
151
|
-
},
|
|
152
|
-
required: ['reason'],
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
async function executeWordDeleteAllComments(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
158
|
-
try {
|
|
159
|
-
const response = await wordClient.wordDeleteAllComments();
|
|
160
|
-
if (response.success) {
|
|
161
|
-
return { success: true, result: response.message || 'All comments deleted' };
|
|
162
|
-
}
|
|
163
|
-
return { success: false, error: response.error || 'Failed to delete comments' };
|
|
164
|
-
} catch (error) {
|
|
165
|
-
return { success: false, error: `Failed to delete comments: ${error instanceof Error ? error.message : String(error)}` };
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export const wordDeleteAllCommentsTool: LLMSimpleTool = {
|
|
170
|
-
definition: WORD_DELETE_ALL_COMMENTS_DEFINITION,
|
|
171
|
-
execute: executeWordDeleteAllComments,
|
|
172
|
-
categories: OFFICE_CATEGORIES,
|
|
173
|
-
description: 'Delete all Word comments',
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
// =============================================================================
|
|
177
|
-
// Export All Comment Tools
|
|
178
|
-
// =============================================================================
|
|
179
|
-
|
|
180
|
-
export const commentsTools: LLMSimpleTool[] = [
|
|
181
|
-
wordAddCommentTool,
|
|
182
|
-
wordGetCommentsTool,
|
|
183
|
-
wordDeleteCommentTool,
|
|
184
|
-
wordDeleteAllCommentsTool,
|
|
185
|
-
];
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Content Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for adding content elements to Word documents:
|
|
5
|
-
* - Images
|
|
6
|
-
* - Hyperlinks
|
|
7
|
-
* - Textboxes
|
|
8
|
-
* - Shapes
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import { ToolDefinition } from '../../../types/index.js';
|
|
12
|
-
import { LLMSimpleTool, ToolResult } from '../../types.js';
|
|
13
|
-
import { wordClient } from '../word-client.js';
|
|
14
|
-
import { OFFICE_CATEGORIES } from '../common/constants.js';
|
|
15
|
-
|
|
16
|
-
// =============================================================================
|
|
17
|
-
// Word Add Image
|
|
18
|
-
// =============================================================================
|
|
19
|
-
|
|
20
|
-
const WORD_ADD_IMAGE_DEFINITION: ToolDefinition = {
|
|
21
|
-
type: 'function',
|
|
22
|
-
function: {
|
|
23
|
-
name: 'word_add_image',
|
|
24
|
-
description: `Add an image to the Word document. WSL paths are automatically converted to Windows paths.`,
|
|
25
|
-
parameters: {
|
|
26
|
-
type: 'object',
|
|
27
|
-
properties: {
|
|
28
|
-
reason: { type: 'string', description: 'Why you are adding an image' },
|
|
29
|
-
path: { type: 'string', description: 'Image file path. Can use Linux/WSL paths or Windows paths.' },
|
|
30
|
-
width: { type: 'number', description: 'Image width in points (optional)' },
|
|
31
|
-
height: { type: 'number', description: 'Image height in points (optional)' },
|
|
32
|
-
},
|
|
33
|
-
required: ['reason', 'path'],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
async function executeWordAddImage(args: Record<string, unknown>): Promise<ToolResult> {
|
|
39
|
-
try {
|
|
40
|
-
const response = await wordClient.wordAddImage(
|
|
41
|
-
args['path'] as string,
|
|
42
|
-
args['width'] as number | undefined,
|
|
43
|
-
args['height'] as number | undefined
|
|
44
|
-
);
|
|
45
|
-
if (response.success) {
|
|
46
|
-
return { success: true, result: 'Image added' };
|
|
47
|
-
}
|
|
48
|
-
return { success: false, error: response.error || 'Failed to add image' };
|
|
49
|
-
} catch (error) {
|
|
50
|
-
return { success: false, error: `Failed to add image: ${error instanceof Error ? error.message : String(error)}` };
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export const wordAddImageTool: LLMSimpleTool = {
|
|
55
|
-
definition: WORD_ADD_IMAGE_DEFINITION,
|
|
56
|
-
execute: executeWordAddImage,
|
|
57
|
-
categories: OFFICE_CATEGORIES,
|
|
58
|
-
description: 'Add Word image',
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
// =============================================================================
|
|
62
|
-
// Word Add Hyperlink
|
|
63
|
-
// =============================================================================
|
|
64
|
-
|
|
65
|
-
const WORD_ADD_HYPERLINK_DEFINITION: ToolDefinition = {
|
|
66
|
-
type: 'function',
|
|
67
|
-
function: {
|
|
68
|
-
name: 'word_add_hyperlink',
|
|
69
|
-
description: `Add a hyperlink to the Word document.`,
|
|
70
|
-
parameters: {
|
|
71
|
-
type: 'object',
|
|
72
|
-
properties: {
|
|
73
|
-
reason: { type: 'string', description: 'Why you are adding a hyperlink' },
|
|
74
|
-
text: { type: 'string', description: 'Display text' },
|
|
75
|
-
url: { type: 'string', description: 'URL to link to' },
|
|
76
|
-
},
|
|
77
|
-
required: ['reason', 'text', 'url'],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
async function executeWordAddHyperlink(args: Record<string, unknown>): Promise<ToolResult> {
|
|
83
|
-
try {
|
|
84
|
-
const response = await wordClient.wordAddHyperlink(
|
|
85
|
-
args['text'] as string,
|
|
86
|
-
args['url'] as string
|
|
87
|
-
);
|
|
88
|
-
if (response.success) {
|
|
89
|
-
return { success: true, result: `Hyperlink added: ${args['text']}` };
|
|
90
|
-
}
|
|
91
|
-
return { success: false, error: response.error || 'Failed to add hyperlink' };
|
|
92
|
-
} catch (error) {
|
|
93
|
-
return { success: false, error: `Failed to add hyperlink: ${error instanceof Error ? error.message : String(error)}` };
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export const wordAddHyperlinkTool: LLMSimpleTool = {
|
|
98
|
-
definition: WORD_ADD_HYPERLINK_DEFINITION,
|
|
99
|
-
execute: executeWordAddHyperlink,
|
|
100
|
-
categories: OFFICE_CATEGORIES,
|
|
101
|
-
description: 'Add Word hyperlink',
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// =============================================================================
|
|
105
|
-
// Word Add Textbox
|
|
106
|
-
// =============================================================================
|
|
107
|
-
|
|
108
|
-
const WORD_ADD_TEXTBOX_DEFINITION: ToolDefinition = {
|
|
109
|
-
type: 'function',
|
|
110
|
-
function: {
|
|
111
|
-
name: 'word_add_textbox',
|
|
112
|
-
description: `Add a textbox to the document.`,
|
|
113
|
-
parameters: {
|
|
114
|
-
type: 'object',
|
|
115
|
-
properties: {
|
|
116
|
-
reason: { type: 'string', description: 'Why you are adding textbox' },
|
|
117
|
-
text: { type: 'string', description: 'Textbox content' },
|
|
118
|
-
left: { type: 'number', description: 'Left position in points' },
|
|
119
|
-
top: { type: 'number', description: 'Top position in points' },
|
|
120
|
-
width: { type: 'number', description: 'Width in points' },
|
|
121
|
-
height: { type: 'number', description: 'Height in points' },
|
|
122
|
-
font_name: { type: 'string', description: 'Font name' },
|
|
123
|
-
font_size: { type: 'number', description: 'Font size' },
|
|
124
|
-
border_color: { type: 'string', description: 'Border color as hex' },
|
|
125
|
-
fill_color: { type: 'string', description: 'Fill color as hex' },
|
|
126
|
-
},
|
|
127
|
-
required: ['reason', 'text', 'left', 'top', 'width', 'height'],
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
async function executeWordAddTextbox(args: Record<string, unknown>): Promise<ToolResult> {
|
|
133
|
-
try {
|
|
134
|
-
const response = await wordClient.wordAddTextbox(
|
|
135
|
-
args['text'] as string,
|
|
136
|
-
args['left'] as number,
|
|
137
|
-
args['top'] as number,
|
|
138
|
-
args['width'] as number,
|
|
139
|
-
args['height'] as number,
|
|
140
|
-
{
|
|
141
|
-
fontName: args['font_name'] as string | undefined,
|
|
142
|
-
fontSize: args['font_size'] as number | undefined,
|
|
143
|
-
borderColor: args['border_color'] as string | undefined,
|
|
144
|
-
fillColor: args['fill_color'] as string | undefined,
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
if (response.success) {
|
|
148
|
-
return { success: true, result: `Textbox added: ${response['shape_name']}` };
|
|
149
|
-
}
|
|
150
|
-
return { success: false, error: response.error || 'Failed to add textbox' };
|
|
151
|
-
} catch (error) {
|
|
152
|
-
return { success: false, error: `Failed to add textbox: ${error instanceof Error ? error.message : String(error)}` };
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export const wordAddTextboxTool: LLMSimpleTool = {
|
|
157
|
-
definition: WORD_ADD_TEXTBOX_DEFINITION,
|
|
158
|
-
execute: executeWordAddTextbox,
|
|
159
|
-
categories: OFFICE_CATEGORIES,
|
|
160
|
-
description: 'Add Word textbox',
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
// =============================================================================
|
|
164
|
-
// Word Add Shape
|
|
165
|
-
// =============================================================================
|
|
166
|
-
|
|
167
|
-
const WORD_ADD_SHAPE_DEFINITION: ToolDefinition = {
|
|
168
|
-
type: 'function',
|
|
169
|
-
function: {
|
|
170
|
-
name: 'word_add_shape',
|
|
171
|
-
description: `Add a shape to the document.`,
|
|
172
|
-
parameters: {
|
|
173
|
-
type: 'object',
|
|
174
|
-
properties: {
|
|
175
|
-
reason: { type: 'string', description: 'Why you are adding shape' },
|
|
176
|
-
shape_type: { type: 'string', enum: ['rectangle', 'oval', 'roundedRectangle', 'triangle', 'diamond', 'arrow', 'line'], description: 'Shape type' },
|
|
177
|
-
left: { type: 'number', description: 'Left position in points' },
|
|
178
|
-
top: { type: 'number', description: 'Top position in points' },
|
|
179
|
-
width: { type: 'number', description: 'Width in points' },
|
|
180
|
-
height: { type: 'number', description: 'Height in points' },
|
|
181
|
-
fill_color: { type: 'string', description: 'Fill color as hex' },
|
|
182
|
-
line_color: { type: 'string', description: 'Line color as hex' },
|
|
183
|
-
line_weight: { type: 'number', description: 'Line weight in points' },
|
|
184
|
-
},
|
|
185
|
-
required: ['reason', 'shape_type', 'left', 'top', 'width', 'height'],
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
async function executeWordAddShape(args: Record<string, unknown>): Promise<ToolResult> {
|
|
191
|
-
try {
|
|
192
|
-
const response = await wordClient.wordAddShape(
|
|
193
|
-
args['shape_type'] as 'rectangle' | 'oval' | 'roundedRectangle' | 'triangle' | 'diamond' | 'arrow' | 'line',
|
|
194
|
-
args['left'] as number,
|
|
195
|
-
args['top'] as number,
|
|
196
|
-
args['width'] as number,
|
|
197
|
-
args['height'] as number,
|
|
198
|
-
{
|
|
199
|
-
fillColor: args['fill_color'] as string | undefined,
|
|
200
|
-
lineColor: args['line_color'] as string | undefined,
|
|
201
|
-
lineWeight: args['line_weight'] as number | undefined,
|
|
202
|
-
}
|
|
203
|
-
);
|
|
204
|
-
if (response.success) {
|
|
205
|
-
return { success: true, result: `Shape added: ${response['shape_name']}` };
|
|
206
|
-
}
|
|
207
|
-
return { success: false, error: response.error || 'Failed to add shape' };
|
|
208
|
-
} catch (error) {
|
|
209
|
-
return { success: false, error: `Failed to add shape: ${error instanceof Error ? error.message : String(error)}` };
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export const wordAddShapeTool: LLMSimpleTool = {
|
|
214
|
-
definition: WORD_ADD_SHAPE_DEFINITION,
|
|
215
|
-
execute: executeWordAddShape,
|
|
216
|
-
categories: OFFICE_CATEGORIES,
|
|
217
|
-
description: 'Add Word shape',
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
// =============================================================================
|
|
221
|
-
// Export Content Tools
|
|
222
|
-
// =============================================================================
|
|
223
|
-
|
|
224
|
-
export const contentTools: LLMSimpleTool[] = [
|
|
225
|
-
wordAddImageTool,
|
|
226
|
-
wordAddHyperlinkTool,
|
|
227
|
-
wordAddTextboxTool,
|
|
228
|
-
wordAddShapeTool,
|
|
229
|
-
];
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Export Tools
|
|
3
|
-
*
|
|
4
|
-
* Export-related tools for Microsoft Word (PDF export, Print)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { ToolDefinition } from '../../../types/index.js';
|
|
8
|
-
import { LLMSimpleTool, ToolResult } from '../../types.js';
|
|
9
|
-
import { wordClient } from '../word-client.js';
|
|
10
|
-
import { OFFICE_CATEGORIES } from '../common/constants.js';
|
|
11
|
-
|
|
12
|
-
// =============================================================================
|
|
13
|
-
// Word Export to PDF
|
|
14
|
-
// =============================================================================
|
|
15
|
-
|
|
16
|
-
const WORD_EXPORT_PDF_DEFINITION: ToolDefinition = {
|
|
17
|
-
type: 'function',
|
|
18
|
-
function: {
|
|
19
|
-
name: 'word_export_pdf',
|
|
20
|
-
description: `Export the document to PDF. WSL paths are automatically converted to Windows paths.`,
|
|
21
|
-
parameters: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
reason: { type: 'string', description: 'Why you are exporting to PDF' },
|
|
25
|
-
path: { type: 'string', description: 'Output PDF file path. Can use Linux/WSL paths or Windows paths.' },
|
|
26
|
-
},
|
|
27
|
-
required: ['reason', 'path'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
async function executeWordExportPDF(args: Record<string, unknown>): Promise<ToolResult> {
|
|
33
|
-
try {
|
|
34
|
-
const response = await wordClient.wordExportToPDF(args['path'] as string);
|
|
35
|
-
if (response.success) {
|
|
36
|
-
return { success: true, result: `Exported to PDF: ${response['path'] || args['path']}` };
|
|
37
|
-
}
|
|
38
|
-
return { success: false, error: response.error || 'Failed to export to PDF' };
|
|
39
|
-
} catch (error) {
|
|
40
|
-
return { success: false, error: `Failed to export to PDF: ${error instanceof Error ? error.message : String(error)}` };
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const wordExportPDFTool: LLMSimpleTool = {
|
|
45
|
-
definition: WORD_EXPORT_PDF_DEFINITION,
|
|
46
|
-
execute: executeWordExportPDF,
|
|
47
|
-
categories: OFFICE_CATEGORIES,
|
|
48
|
-
description: 'Export Word to PDF',
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
// =============================================================================
|
|
52
|
-
// Word Print
|
|
53
|
-
// =============================================================================
|
|
54
|
-
|
|
55
|
-
const WORD_PRINT_DEFINITION: ToolDefinition = {
|
|
56
|
-
type: 'function',
|
|
57
|
-
function: {
|
|
58
|
-
name: 'word_print',
|
|
59
|
-
description: `Print the document.`,
|
|
60
|
-
parameters: {
|
|
61
|
-
type: 'object',
|
|
62
|
-
properties: {
|
|
63
|
-
reason: { type: 'string', description: 'Why you are printing' },
|
|
64
|
-
copies: { type: 'number', description: 'Number of copies (default: 1)' },
|
|
65
|
-
},
|
|
66
|
-
required: ['reason'],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
async function executeWordPrint(args: Record<string, unknown>): Promise<ToolResult> {
|
|
72
|
-
try {
|
|
73
|
-
const response = await wordClient.wordPrint(args['copies'] as number ?? 1);
|
|
74
|
-
if (response.success) {
|
|
75
|
-
return { success: true, result: `Print job sent (${args['copies'] ?? 1} copies)` };
|
|
76
|
-
}
|
|
77
|
-
return { success: false, error: response.error || 'Failed to print' };
|
|
78
|
-
} catch (error) {
|
|
79
|
-
return { success: false, error: `Failed to print: ${error instanceof Error ? error.message : String(error)}` };
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export const wordPrintTool: LLMSimpleTool = {
|
|
84
|
-
definition: WORD_PRINT_DEFINITION,
|
|
85
|
-
execute: executeWordPrint,
|
|
86
|
-
categories: OFFICE_CATEGORIES,
|
|
87
|
-
description: 'Print Word document',
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// =============================================================================
|
|
91
|
-
// Export Tools Array
|
|
92
|
-
// =============================================================================
|
|
93
|
-
|
|
94
|
-
export const exportTools: LLMSimpleTool[] = [
|
|
95
|
-
wordExportPDFTool,
|
|
96
|
-
wordPrintTool,
|
|
97
|
-
];
|