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,161 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Formatting Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for font, paragraph, and break formatting 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 Set Font
|
|
14
|
-
// =============================================================================
|
|
15
|
-
|
|
16
|
-
const WORD_SET_FONT_DEFINITION: ToolDefinition = {
|
|
17
|
-
type: 'function',
|
|
18
|
-
function: {
|
|
19
|
-
name: 'word_set_font',
|
|
20
|
-
description: `Set font properties for the current selection in Word.`,
|
|
21
|
-
parameters: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
reason: { type: 'string', description: 'Why you are setting font' },
|
|
25
|
-
font_name: { type: 'string', description: 'Font name (e.g., "Arial", "Malgun Gothic")' },
|
|
26
|
-
font_size: { type: 'number', description: 'Font size in points' },
|
|
27
|
-
bold: { type: 'boolean', description: 'Bold text' },
|
|
28
|
-
italic: { type: 'boolean', description: 'Italic text' },
|
|
29
|
-
underline: { type: 'boolean', description: 'Underline text' },
|
|
30
|
-
color: { type: 'string', description: 'Font color as hex (e.g., "#FF0000")' },
|
|
31
|
-
},
|
|
32
|
-
required: ['reason'],
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
async function executeWordSetFont(args: Record<string, unknown>): Promise<ToolResult> {
|
|
38
|
-
try {
|
|
39
|
-
const response = await wordClient.wordSetFont({
|
|
40
|
-
fontName: args['font_name'] as string | undefined,
|
|
41
|
-
fontSize: args['font_size'] as number | undefined,
|
|
42
|
-
bold: args['bold'] as boolean | undefined,
|
|
43
|
-
italic: args['italic'] as boolean | undefined,
|
|
44
|
-
underline: args['underline'] as boolean | undefined,
|
|
45
|
-
color: args['color'] as string | undefined,
|
|
46
|
-
});
|
|
47
|
-
if (response.success) {
|
|
48
|
-
return { success: true, result: 'Font properties set' };
|
|
49
|
-
}
|
|
50
|
-
return { success: false, error: response.error || 'Failed to set font' };
|
|
51
|
-
} catch (error) {
|
|
52
|
-
return { success: false, error: `Failed to set font: ${error instanceof Error ? error.message : String(error)}` };
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const wordSetFontTool: LLMSimpleTool = {
|
|
57
|
-
definition: WORD_SET_FONT_DEFINITION,
|
|
58
|
-
execute: executeWordSetFont,
|
|
59
|
-
categories: OFFICE_CATEGORIES,
|
|
60
|
-
description: 'Set Word font properties',
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
// =============================================================================
|
|
64
|
-
// Word Set Paragraph
|
|
65
|
-
// =============================================================================
|
|
66
|
-
|
|
67
|
-
const WORD_SET_PARAGRAPH_DEFINITION: ToolDefinition = {
|
|
68
|
-
type: 'function',
|
|
69
|
-
function: {
|
|
70
|
-
name: 'word_set_paragraph',
|
|
71
|
-
description: `Set paragraph formatting for the current selection in Word.`,
|
|
72
|
-
parameters: {
|
|
73
|
-
type: 'object',
|
|
74
|
-
properties: {
|
|
75
|
-
reason: { type: 'string', description: 'Why you are setting paragraph format' },
|
|
76
|
-
alignment: { type: 'string', enum: ['left', 'center', 'right', 'justify'], description: 'Text alignment' },
|
|
77
|
-
line_spacing: { type: 'number', description: 'Line spacing multiplier' },
|
|
78
|
-
space_before: { type: 'number', description: 'Space before paragraph in points' },
|
|
79
|
-
space_after: { type: 'number', description: 'Space after paragraph in points' },
|
|
80
|
-
first_line_indent: { type: 'number', description: 'First line indent in points' },
|
|
81
|
-
},
|
|
82
|
-
required: ['reason'],
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
async function executeWordSetParagraph(args: Record<string, unknown>): Promise<ToolResult> {
|
|
88
|
-
try {
|
|
89
|
-
const response = await wordClient.wordSetParagraph({
|
|
90
|
-
alignment: args['alignment'] as 'left' | 'center' | 'right' | 'justify' | undefined,
|
|
91
|
-
lineSpacing: args['line_spacing'] as number | undefined,
|
|
92
|
-
spaceBefore: args['space_before'] as number | undefined,
|
|
93
|
-
spaceAfter: args['space_after'] as number | undefined,
|
|
94
|
-
firstLineIndent: args['first_line_indent'] as number | undefined,
|
|
95
|
-
});
|
|
96
|
-
if (response.success) {
|
|
97
|
-
return { success: true, result: 'Paragraph formatting set' };
|
|
98
|
-
}
|
|
99
|
-
return { success: false, error: response.error || 'Failed to set paragraph' };
|
|
100
|
-
} catch (error) {
|
|
101
|
-
return { success: false, error: `Failed to set paragraph: ${error instanceof Error ? error.message : String(error)}` };
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export const wordSetParagraphTool: LLMSimpleTool = {
|
|
106
|
-
definition: WORD_SET_PARAGRAPH_DEFINITION,
|
|
107
|
-
execute: executeWordSetParagraph,
|
|
108
|
-
categories: OFFICE_CATEGORIES,
|
|
109
|
-
description: 'Set Word paragraph format',
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
// =============================================================================
|
|
113
|
-
// Word Insert Break
|
|
114
|
-
// =============================================================================
|
|
115
|
-
|
|
116
|
-
const WORD_INSERT_BREAK_DEFINITION: ToolDefinition = {
|
|
117
|
-
type: 'function',
|
|
118
|
-
function: {
|
|
119
|
-
name: 'word_insert_break',
|
|
120
|
-
description: `Insert a page break, line break, or section break.`,
|
|
121
|
-
parameters: {
|
|
122
|
-
type: 'object',
|
|
123
|
-
properties: {
|
|
124
|
-
reason: { type: 'string', description: 'Why you are inserting a break' },
|
|
125
|
-
break_type: { type: 'string', enum: ['page', 'line', 'section'], description: 'Type of break (default: page)' },
|
|
126
|
-
},
|
|
127
|
-
required: ['reason'],
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
async function executeWordInsertBreak(args: Record<string, unknown>): Promise<ToolResult> {
|
|
133
|
-
try {
|
|
134
|
-
const response = await wordClient.wordInsertBreak(
|
|
135
|
-
args['break_type'] as 'page' | 'line' | 'section' ?? 'page'
|
|
136
|
-
);
|
|
137
|
-
if (response.success) {
|
|
138
|
-
return { success: true, result: `${args['break_type'] || 'page'} break inserted` };
|
|
139
|
-
}
|
|
140
|
-
return { success: false, error: response.error || 'Failed to insert break' };
|
|
141
|
-
} catch (error) {
|
|
142
|
-
return { success: false, error: `Failed to insert break: ${error instanceof Error ? error.message : String(error)}` };
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export const wordInsertBreakTool: LLMSimpleTool = {
|
|
147
|
-
definition: WORD_INSERT_BREAK_DEFINITION,
|
|
148
|
-
execute: executeWordInsertBreak,
|
|
149
|
-
categories: OFFICE_CATEGORIES,
|
|
150
|
-
description: 'Insert Word break',
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
// =============================================================================
|
|
154
|
-
// Export Formatting Tools
|
|
155
|
-
// =============================================================================
|
|
156
|
-
|
|
157
|
-
export const formattingTools: LLMSimpleTool[] = [
|
|
158
|
-
wordSetFontTool,
|
|
159
|
-
wordSetParagraphTool,
|
|
160
|
-
wordInsertBreakTool,
|
|
161
|
-
];
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Headers and Footers Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for inserting headers, footers, and page numbers 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 Insert Header
|
|
14
|
-
// =============================================================================
|
|
15
|
-
|
|
16
|
-
const WORD_INSERT_HEADER_DEFINITION: ToolDefinition = {
|
|
17
|
-
type: 'function',
|
|
18
|
-
function: {
|
|
19
|
-
name: 'word_insert_header',
|
|
20
|
-
description: `Insert header text to the document.`,
|
|
21
|
-
parameters: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
reason: { type: 'string', description: 'Why you are inserting header' },
|
|
25
|
-
text: { type: 'string', description: 'Header text' },
|
|
26
|
-
font_name: { type: 'string', description: 'Font name (optional)' },
|
|
27
|
-
font_size: { type: 'number', description: 'Font size (optional)' },
|
|
28
|
-
},
|
|
29
|
-
required: ['reason', 'text'],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
async function executeWordInsertHeader(args: Record<string, unknown>): Promise<ToolResult> {
|
|
35
|
-
try {
|
|
36
|
-
const response = await wordClient.wordInsertHeader(
|
|
37
|
-
args['text'] as string,
|
|
38
|
-
{
|
|
39
|
-
fontName: args['font_name'] as string | undefined,
|
|
40
|
-
fontSize: args['font_size'] as number | undefined,
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
if (response.success) {
|
|
44
|
-
return { success: true, result: 'Header inserted' };
|
|
45
|
-
}
|
|
46
|
-
return { success: false, error: response.error || 'Failed to insert header' };
|
|
47
|
-
} catch (error) {
|
|
48
|
-
return { success: false, error: `Failed to insert header: ${error instanceof Error ? error.message : String(error)}` };
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const wordInsertHeaderTool: LLMSimpleTool = {
|
|
53
|
-
definition: WORD_INSERT_HEADER_DEFINITION,
|
|
54
|
-
execute: executeWordInsertHeader,
|
|
55
|
-
categories: OFFICE_CATEGORIES,
|
|
56
|
-
description: 'Insert Word header',
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
// =============================================================================
|
|
60
|
-
// Word Insert Footer
|
|
61
|
-
// =============================================================================
|
|
62
|
-
|
|
63
|
-
const WORD_INSERT_FOOTER_DEFINITION: ToolDefinition = {
|
|
64
|
-
type: 'function',
|
|
65
|
-
function: {
|
|
66
|
-
name: 'word_insert_footer',
|
|
67
|
-
description: `Insert footer text to the document.`,
|
|
68
|
-
parameters: {
|
|
69
|
-
type: 'object',
|
|
70
|
-
properties: {
|
|
71
|
-
reason: { type: 'string', description: 'Why you are inserting footer' },
|
|
72
|
-
text: { type: 'string', description: 'Footer text' },
|
|
73
|
-
font_name: { type: 'string', description: 'Font name (optional)' },
|
|
74
|
-
font_size: { type: 'number', description: 'Font size (optional)' },
|
|
75
|
-
},
|
|
76
|
-
required: ['reason', 'text'],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
async function executeWordInsertFooter(args: Record<string, unknown>): Promise<ToolResult> {
|
|
82
|
-
try {
|
|
83
|
-
const response = await wordClient.wordInsertFooter(
|
|
84
|
-
args['text'] as string,
|
|
85
|
-
{
|
|
86
|
-
fontName: args['font_name'] as string | undefined,
|
|
87
|
-
fontSize: args['font_size'] as number | undefined,
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
if (response.success) {
|
|
91
|
-
return { success: true, result: 'Footer inserted' };
|
|
92
|
-
}
|
|
93
|
-
return { success: false, error: response.error || 'Failed to insert footer' };
|
|
94
|
-
} catch (error) {
|
|
95
|
-
return { success: false, error: `Failed to insert footer: ${error instanceof Error ? error.message : String(error)}` };
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export const wordInsertFooterTool: LLMSimpleTool = {
|
|
100
|
-
definition: WORD_INSERT_FOOTER_DEFINITION,
|
|
101
|
-
execute: executeWordInsertFooter,
|
|
102
|
-
categories: OFFICE_CATEGORIES,
|
|
103
|
-
description: 'Insert Word footer',
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
// =============================================================================
|
|
107
|
-
// Word Insert Page Number
|
|
108
|
-
// =============================================================================
|
|
109
|
-
|
|
110
|
-
const WORD_INSERT_PAGE_NUMBER_DEFINITION: ToolDefinition = {
|
|
111
|
-
type: 'function',
|
|
112
|
-
function: {
|
|
113
|
-
name: 'word_insert_page_number',
|
|
114
|
-
description: `Insert page numbers to the document footer.`,
|
|
115
|
-
parameters: {
|
|
116
|
-
type: 'object',
|
|
117
|
-
properties: {
|
|
118
|
-
reason: { type: 'string', description: 'Why you are inserting page numbers' },
|
|
119
|
-
alignment: { type: 'string', enum: ['left', 'center', 'right'], description: 'Page number alignment (default: center)' },
|
|
120
|
-
},
|
|
121
|
-
required: ['reason'],
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
async function executeWordInsertPageNumber(args: Record<string, unknown>): Promise<ToolResult> {
|
|
127
|
-
try {
|
|
128
|
-
const response = await wordClient.wordInsertPageNumber(
|
|
129
|
-
args['alignment'] as 'left' | 'center' | 'right' ?? 'center'
|
|
130
|
-
);
|
|
131
|
-
if (response.success) {
|
|
132
|
-
return { success: true, result: 'Page numbers inserted' };
|
|
133
|
-
}
|
|
134
|
-
return { success: false, error: response.error || 'Failed to insert page numbers' };
|
|
135
|
-
} catch (error) {
|
|
136
|
-
return { success: false, error: `Failed to insert page numbers: ${error instanceof Error ? error.message : String(error)}` };
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export const wordInsertPageNumberTool: LLMSimpleTool = {
|
|
141
|
-
definition: WORD_INSERT_PAGE_NUMBER_DEFINITION,
|
|
142
|
-
execute: executeWordInsertPageNumber,
|
|
143
|
-
categories: OFFICE_CATEGORIES,
|
|
144
|
-
description: 'Insert Word page numbers',
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
// =============================================================================
|
|
148
|
-
// Export Headers-Footers Tools
|
|
149
|
-
// =============================================================================
|
|
150
|
-
|
|
151
|
-
export const headersFootersTools: LLMSimpleTool[] = [
|
|
152
|
-
wordInsertHeaderTool,
|
|
153
|
-
wordInsertFooterTool,
|
|
154
|
-
wordInsertPageNumberTool,
|
|
155
|
-
];
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Tools - Barrel Export
|
|
3
|
-
*
|
|
4
|
-
* Re-exports all Word tool modules and provides unified WORD_TOOLS array
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Domain exports
|
|
8
|
-
export * from './launch.js';
|
|
9
|
-
export * from './text.js';
|
|
10
|
-
export * from './formatting.js';
|
|
11
|
-
export * from './tables.js';
|
|
12
|
-
export * from './content.js';
|
|
13
|
-
export * from './lists.js';
|
|
14
|
-
export * from './headers-footers.js';
|
|
15
|
-
export * from './page-setup.js';
|
|
16
|
-
export * from './bookmarks.js';
|
|
17
|
-
export * from './comments.js';
|
|
18
|
-
export * from './watermarks.js';
|
|
19
|
-
export * from './navigation.js';
|
|
20
|
-
export * from './undo-redo.js';
|
|
21
|
-
export * from './export.js';
|
|
22
|
-
|
|
23
|
-
// Import tool arrays for unified export
|
|
24
|
-
import { launchTools } from './launch.js';
|
|
25
|
-
import { textTools } from './text.js';
|
|
26
|
-
import { formattingTools } from './formatting.js';
|
|
27
|
-
import { tablesTools } from './tables.js';
|
|
28
|
-
import { contentTools } from './content.js';
|
|
29
|
-
import { listsTools } from './lists.js';
|
|
30
|
-
import { headersFootersTools } from './headers-footers.js';
|
|
31
|
-
import { pageSetupTools } from './page-setup.js';
|
|
32
|
-
import { bookmarksTools } from './bookmarks.js';
|
|
33
|
-
import { commentsTools } from './comments.js';
|
|
34
|
-
import { watermarksTools } from './watermarks.js';
|
|
35
|
-
import { navigationTools } from './navigation.js';
|
|
36
|
-
import { undoRedoTools } from './undo-redo.js';
|
|
37
|
-
import { exportTools } from './export.js';
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* All Word tools combined into a single array
|
|
41
|
-
*/
|
|
42
|
-
export const WORD_TOOLS = [
|
|
43
|
-
...launchTools,
|
|
44
|
-
...textTools,
|
|
45
|
-
...formattingTools,
|
|
46
|
-
...tablesTools,
|
|
47
|
-
...contentTools,
|
|
48
|
-
...listsTools,
|
|
49
|
-
...headersFootersTools,
|
|
50
|
-
...pageSetupTools,
|
|
51
|
-
...bookmarksTools,
|
|
52
|
-
...commentsTools,
|
|
53
|
-
...watermarksTools,
|
|
54
|
-
...navigationTools,
|
|
55
|
-
...undoRedoTools,
|
|
56
|
-
...exportTools,
|
|
57
|
-
];
|
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Word Launch Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for launching, creating, opening, saving, closing Word and taking screenshots
|
|
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 { saveScreenshot } from '../common/utils.js';
|
|
11
|
-
import { OFFICE_SCREENSHOT_PATH_DESC, OFFICE_CATEGORIES } from '../common/constants.js';
|
|
12
|
-
|
|
13
|
-
// =============================================================================
|
|
14
|
-
// Word Launch
|
|
15
|
-
// =============================================================================
|
|
16
|
-
|
|
17
|
-
const WORD_LAUNCH_DEFINITION: ToolDefinition = {
|
|
18
|
-
type: 'function',
|
|
19
|
-
function: {
|
|
20
|
-
name: 'word_launch',
|
|
21
|
-
description: `Launch Microsoft Word for document editing.
|
|
22
|
-
Use this tool to start Word before creating or editing documents.
|
|
23
|
-
The Word window will be visible so you can see the changes in real-time.`,
|
|
24
|
-
parameters: {
|
|
25
|
-
type: 'object',
|
|
26
|
-
properties: {
|
|
27
|
-
reason: { type: 'string', description: 'Explanation of why you are launching Word' },
|
|
28
|
-
},
|
|
29
|
-
required: ['reason'],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
async function executeWordLaunch(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
35
|
-
try {
|
|
36
|
-
const response = await wordClient.wordLaunch();
|
|
37
|
-
if (response.success) {
|
|
38
|
-
return { success: true, result: response.message || 'Word launched successfully' };
|
|
39
|
-
}
|
|
40
|
-
return { success: false, error: response.error || 'Failed to launch Word' };
|
|
41
|
-
} catch (error) {
|
|
42
|
-
return { success: false, error: `Failed to launch Word: ${error instanceof Error ? error.message : String(error)}` };
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const wordLaunchTool: LLMSimpleTool = {
|
|
47
|
-
definition: WORD_LAUNCH_DEFINITION,
|
|
48
|
-
execute: executeWordLaunch,
|
|
49
|
-
categories: OFFICE_CATEGORIES,
|
|
50
|
-
description: 'Launch Microsoft Word',
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
// =============================================================================
|
|
54
|
-
// Word Create
|
|
55
|
-
// =============================================================================
|
|
56
|
-
|
|
57
|
-
const WORD_CREATE_DEFINITION: ToolDefinition = {
|
|
58
|
-
type: 'function',
|
|
59
|
-
function: {
|
|
60
|
-
name: 'word_create',
|
|
61
|
-
description: `Create a new Word document.`,
|
|
62
|
-
parameters: {
|
|
63
|
-
type: 'object',
|
|
64
|
-
properties: {
|
|
65
|
-
reason: { type: 'string', description: 'Why you are creating a document' },
|
|
66
|
-
},
|
|
67
|
-
required: ['reason'],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
async function executeWordCreate(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
73
|
-
try {
|
|
74
|
-
const response = await wordClient.wordCreate();
|
|
75
|
-
if (response.success) {
|
|
76
|
-
return { success: true, result: response.message || 'New document created' };
|
|
77
|
-
}
|
|
78
|
-
return { success: false, error: response.error || 'Failed to create document' };
|
|
79
|
-
} catch (error) {
|
|
80
|
-
return { success: false, error: `Failed to create document: ${error instanceof Error ? error.message : String(error)}` };
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export const wordCreateTool: LLMSimpleTool = {
|
|
85
|
-
definition: WORD_CREATE_DEFINITION,
|
|
86
|
-
execute: executeWordCreate,
|
|
87
|
-
categories: OFFICE_CATEGORIES,
|
|
88
|
-
description: 'Create new Word document',
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
// =============================================================================
|
|
92
|
-
// Word Open
|
|
93
|
-
// =============================================================================
|
|
94
|
-
|
|
95
|
-
const WORD_OPEN_DEFINITION: ToolDefinition = {
|
|
96
|
-
type: 'function',
|
|
97
|
-
function: {
|
|
98
|
-
name: 'word_open',
|
|
99
|
-
description: `Open an existing Word document. WSL paths are automatically converted to Windows paths.`,
|
|
100
|
-
parameters: {
|
|
101
|
-
type: 'object',
|
|
102
|
-
properties: {
|
|
103
|
-
reason: { type: 'string', description: 'Why you are opening this document' },
|
|
104
|
-
path: { type: 'string', description: 'File path to open. Can use Linux/WSL paths or Windows paths.' },
|
|
105
|
-
},
|
|
106
|
-
required: ['reason', 'path'],
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
async function executeWordOpen(args: Record<string, unknown>): Promise<ToolResult> {
|
|
112
|
-
try {
|
|
113
|
-
const response = await wordClient.wordOpen(args['path'] as string);
|
|
114
|
-
if (response.success) {
|
|
115
|
-
return { success: true, result: `Document opened: ${response['document_name'] || args['path']}` };
|
|
116
|
-
}
|
|
117
|
-
return { success: false, error: response.error || 'Failed to open document' };
|
|
118
|
-
} catch (error) {
|
|
119
|
-
return { success: false, error: `Failed to open document: ${error instanceof Error ? error.message : String(error)}` };
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export const wordOpenTool: LLMSimpleTool = {
|
|
124
|
-
definition: WORD_OPEN_DEFINITION,
|
|
125
|
-
execute: executeWordOpen,
|
|
126
|
-
categories: OFFICE_CATEGORIES,
|
|
127
|
-
description: 'Open existing Word document',
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// =============================================================================
|
|
131
|
-
// Word Save
|
|
132
|
-
// =============================================================================
|
|
133
|
-
|
|
134
|
-
const WORD_SAVE_DEFINITION: ToolDefinition = {
|
|
135
|
-
type: 'function',
|
|
136
|
-
function: {
|
|
137
|
-
name: 'word_save',
|
|
138
|
-
description: `Save the active Word document. WSL paths are automatically converted to Windows paths.`,
|
|
139
|
-
parameters: {
|
|
140
|
-
type: 'object',
|
|
141
|
-
properties: {
|
|
142
|
-
reason: { type: 'string', description: 'Explanation of why you are saving' },
|
|
143
|
-
path: { type: 'string', description: 'File path to save to (optional). Can use Linux/WSL paths or Windows paths.' },
|
|
144
|
-
},
|
|
145
|
-
required: ['reason'],
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
async function executeWordSave(args: Record<string, unknown>): Promise<ToolResult> {
|
|
151
|
-
const filePath = args['path'] as string | undefined;
|
|
152
|
-
|
|
153
|
-
try {
|
|
154
|
-
const response = await wordClient.wordSave(filePath);
|
|
155
|
-
if (response.success) {
|
|
156
|
-
const savedPath = response['path'] as string || filePath || 'current location';
|
|
157
|
-
return { success: true, result: `Document saved to: ${savedPath}` };
|
|
158
|
-
}
|
|
159
|
-
return { success: false, error: response.error || 'Failed to save document' };
|
|
160
|
-
} catch (error) {
|
|
161
|
-
return { success: false, error: `Failed to save document: ${error instanceof Error ? error.message : String(error)}` };
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export const wordSaveTool: LLMSimpleTool = {
|
|
166
|
-
definition: WORD_SAVE_DEFINITION,
|
|
167
|
-
execute: executeWordSave,
|
|
168
|
-
categories: OFFICE_CATEGORIES,
|
|
169
|
-
description: 'Save Word document',
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
// =============================================================================
|
|
173
|
-
// Word Screenshot
|
|
174
|
-
// =============================================================================
|
|
175
|
-
|
|
176
|
-
const WORD_SCREENSHOT_DEFINITION: ToolDefinition = {
|
|
177
|
-
type: 'function',
|
|
178
|
-
function: {
|
|
179
|
-
name: 'word_screenshot',
|
|
180
|
-
description: `Take a screenshot of the current Word document.
|
|
181
|
-
Captures the document content and saves to ${OFFICE_SCREENSHOT_PATH_DESC}.
|
|
182
|
-
Use this to verify document formatting or show the user what the document looks like.`,
|
|
183
|
-
parameters: {
|
|
184
|
-
type: 'object',
|
|
185
|
-
properties: {
|
|
186
|
-
reason: { type: 'string', description: 'Explanation of why you are taking a screenshot' },
|
|
187
|
-
},
|
|
188
|
-
required: ['reason'],
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
async function executeWordScreenshot(_args: Record<string, unknown>): Promise<ToolResult> {
|
|
194
|
-
try {
|
|
195
|
-
const response = await wordClient.wordScreenshot();
|
|
196
|
-
if (response.success && response.image) {
|
|
197
|
-
const filePath = await saveScreenshot(response.image, 'word');
|
|
198
|
-
return {
|
|
199
|
-
success: true,
|
|
200
|
-
result: `Word screenshot saved to: ${filePath}\n\nYou can view this image using read_file tool if your LLM supports vision.`,
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
return { success: false, error: response.error || 'Failed to capture screenshot' };
|
|
204
|
-
} catch (error) {
|
|
205
|
-
return { success: false, error: `Failed to capture screenshot: ${error instanceof Error ? error.message : String(error)}` };
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export const wordScreenshotTool: LLMSimpleTool = {
|
|
210
|
-
definition: WORD_SCREENSHOT_DEFINITION,
|
|
211
|
-
execute: executeWordScreenshot,
|
|
212
|
-
categories: OFFICE_CATEGORIES,
|
|
213
|
-
description: 'Take Word window screenshot',
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
// =============================================================================
|
|
217
|
-
// Word Close
|
|
218
|
-
// =============================================================================
|
|
219
|
-
|
|
220
|
-
const WORD_CLOSE_DEFINITION: ToolDefinition = {
|
|
221
|
-
type: 'function',
|
|
222
|
-
function: {
|
|
223
|
-
name: 'word_close',
|
|
224
|
-
description: `Close the active Word document.
|
|
225
|
-
Optionally save before closing.`,
|
|
226
|
-
parameters: {
|
|
227
|
-
type: 'object',
|
|
228
|
-
properties: {
|
|
229
|
-
reason: { type: 'string', description: 'Explanation of why you are closing' },
|
|
230
|
-
save: { type: 'boolean', description: 'Whether to save before closing (default: false)' },
|
|
231
|
-
},
|
|
232
|
-
required: ['reason'],
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
async function executeWordClose(args: Record<string, unknown>): Promise<ToolResult> {
|
|
238
|
-
const save = args['save'] === true;
|
|
239
|
-
|
|
240
|
-
try {
|
|
241
|
-
const response = await wordClient.wordClose(save);
|
|
242
|
-
if (response.success) {
|
|
243
|
-
return { success: true, result: `Document closed${save ? ' (saved)' : ''}` };
|
|
244
|
-
}
|
|
245
|
-
return { success: false, error: response.error || 'Failed to close document' };
|
|
246
|
-
} catch (error) {
|
|
247
|
-
return { success: false, error: `Failed to close document: ${error instanceof Error ? error.message : String(error)}` };
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export const wordCloseTool: LLMSimpleTool = {
|
|
252
|
-
definition: WORD_CLOSE_DEFINITION,
|
|
253
|
-
execute: executeWordClose,
|
|
254
|
-
categories: OFFICE_CATEGORIES,
|
|
255
|
-
description: 'Close Word document',
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
// =============================================================================
|
|
259
|
-
// Word Quit
|
|
260
|
-
// =============================================================================
|
|
261
|
-
|
|
262
|
-
const WORD_QUIT_DEFINITION: ToolDefinition = {
|
|
263
|
-
type: 'function',
|
|
264
|
-
function: {
|
|
265
|
-
name: 'word_quit',
|
|
266
|
-
description: `Quit Microsoft Word application entirely.
|
|
267
|
-
Optionally save all documents before quitting.`,
|
|
268
|
-
parameters: {
|
|
269
|
-
type: 'object',
|
|
270
|
-
properties: {
|
|
271
|
-
reason: { type: 'string', description: 'Explanation of why you are quitting Word' },
|
|
272
|
-
save: { type: 'boolean', description: 'Whether to save all documents before quitting (default: false)' },
|
|
273
|
-
},
|
|
274
|
-
required: ['reason'],
|
|
275
|
-
},
|
|
276
|
-
},
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
async function executeWordQuit(args: Record<string, unknown>): Promise<ToolResult> {
|
|
280
|
-
const save = args['save'] === true;
|
|
281
|
-
|
|
282
|
-
try {
|
|
283
|
-
const response = await wordClient.wordQuit(save);
|
|
284
|
-
if (response.success) {
|
|
285
|
-
return { success: true, result: `Word closed${save ? ' (all documents saved)' : ''}` };
|
|
286
|
-
}
|
|
287
|
-
return { success: false, error: response.error || 'Failed to quit Word' };
|
|
288
|
-
} catch (error) {
|
|
289
|
-
return { success: false, error: `Failed to quit Word: ${error instanceof Error ? error.message : String(error)}` };
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export const wordQuitTool: LLMSimpleTool = {
|
|
294
|
-
definition: WORD_QUIT_DEFINITION,
|
|
295
|
-
execute: executeWordQuit,
|
|
296
|
-
categories: OFFICE_CATEGORIES,
|
|
297
|
-
description: 'Quit Microsoft Word',
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
// =============================================================================
|
|
301
|
-
// Export Launch Tools
|
|
302
|
-
// =============================================================================
|
|
303
|
-
|
|
304
|
-
export const launchTools: LLMSimpleTool[] = [
|
|
305
|
-
wordLaunchTool,
|
|
306
|
-
wordCreateTool,
|
|
307
|
-
wordOpenTool,
|
|
308
|
-
wordSaveTool,
|
|
309
|
-
wordScreenshotTool,
|
|
310
|
-
wordCloseTool,
|
|
311
|
-
wordQuitTool,
|
|
312
|
-
];
|