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,277 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User Interaction Tools (LLM Simple)
|
|
3
|
-
*
|
|
4
|
-
* Tools for LLM to interact with users
|
|
5
|
-
* - tell_to_user: Send message to user
|
|
6
|
-
* - ask_to_user: Ask user a question and receive response
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { LLMSimpleTool, ToolResult, ToolCategory } from '../../types.js';
|
|
10
|
-
import { ToolDefinition } from '../../../types/index.js';
|
|
11
|
-
import { logger } from '../../../utils/logger.js';
|
|
12
|
-
|
|
13
|
-
// ============================================
|
|
14
|
-
// tell_to_user Tool
|
|
15
|
-
// ============================================
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Callback for tell_to_user messages
|
|
19
|
-
*/
|
|
20
|
-
type TellToUserCallback = (message: string) => void;
|
|
21
|
-
let tellToUserCallback: TellToUserCallback | null = null;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Set callback for tell_to_user messages
|
|
25
|
-
*/
|
|
26
|
-
export function setTellToUserCallback(callback: TellToUserCallback | null): void {
|
|
27
|
-
tellToUserCallback = callback;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* tell_to_user Tool Definition
|
|
32
|
-
*/
|
|
33
|
-
const TELL_TO_USER_DEFINITION: ToolDefinition = {
|
|
34
|
-
type: 'function',
|
|
35
|
-
function: {
|
|
36
|
-
name: 'tell_to_user',
|
|
37
|
-
description: `Send a message directly to the user to explain what you're doing or provide status updates.
|
|
38
|
-
Use this tool to communicate with the user during task execution.
|
|
39
|
-
The message will be displayed immediately in the UI.`,
|
|
40
|
-
parameters: {
|
|
41
|
-
type: 'object',
|
|
42
|
-
properties: {
|
|
43
|
-
message: {
|
|
44
|
-
type: 'string',
|
|
45
|
-
description: `A natural, conversational message for the user (in user's language).
|
|
46
|
-
Examples:
|
|
47
|
-
- "Analyzing the files, please wait a moment"
|
|
48
|
-
- "Found the config file! Let me modify it now"
|
|
49
|
-
- "Ran the tests and 2 failed. Let me find the cause"
|
|
50
|
-
- "Almost done, wrapping up the work"`,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
required: ['message'],
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Execute tell_to_user
|
|
60
|
-
*/
|
|
61
|
-
async function executeTellToUser(args: Record<string, unknown>): Promise<ToolResult> {
|
|
62
|
-
const message = args['message'] as string;
|
|
63
|
-
|
|
64
|
-
if (tellToUserCallback) {
|
|
65
|
-
tellToUserCallback(message);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
success: true,
|
|
70
|
-
result: `Message sent to user: ${message}`,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* tell_to_user LLM Simple Tool
|
|
76
|
-
*/
|
|
77
|
-
export const tellToUserTool: LLMSimpleTool = {
|
|
78
|
-
definition: TELL_TO_USER_DEFINITION,
|
|
79
|
-
execute: executeTellToUser,
|
|
80
|
-
categories: ['llm-simple'] as ToolCategory[],
|
|
81
|
-
description: 'Send message to user',
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// ============================================
|
|
85
|
-
// ask_to_user Tool
|
|
86
|
-
// ============================================
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* User question request
|
|
90
|
-
*/
|
|
91
|
-
export interface AskUserRequest {
|
|
92
|
-
question: string;
|
|
93
|
-
options: string[];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* User response
|
|
98
|
-
*/
|
|
99
|
-
export interface AskUserResponse {
|
|
100
|
-
selectedOption: string;
|
|
101
|
-
isOther: boolean;
|
|
102
|
-
customText?: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* User question callback type
|
|
107
|
-
*/
|
|
108
|
-
export type AskUserCallback = (request: AskUserRequest) => Promise<AskUserResponse>;
|
|
109
|
-
|
|
110
|
-
let askUserCallback: AskUserCallback | null = null;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Set the ask-user callback
|
|
114
|
-
*/
|
|
115
|
-
export function setAskUserCallback(callback: AskUserCallback): void {
|
|
116
|
-
logger.flow('Setting ask-user callback');
|
|
117
|
-
askUserCallback = callback;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Clear ask-user callback
|
|
122
|
-
*/
|
|
123
|
-
export function clearAskUserCallback(): void {
|
|
124
|
-
logger.flow('Clearing ask-user callback');
|
|
125
|
-
askUserCallback = null;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Check if ask-user callback is available
|
|
130
|
-
*/
|
|
131
|
-
export function hasAskUserCallback(): boolean {
|
|
132
|
-
return askUserCallback !== null;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* ask_to_user Tool Definition
|
|
137
|
-
*/
|
|
138
|
-
const ASK_TO_USER_DEFINITION: ToolDefinition = {
|
|
139
|
-
type: 'function',
|
|
140
|
-
function: {
|
|
141
|
-
name: 'ask_to_user',
|
|
142
|
-
description: `Ask the user a question with multiple choice options.
|
|
143
|
-
|
|
144
|
-
Use this tool when you need to:
|
|
145
|
-
- Clarify ambiguous requirements
|
|
146
|
-
- Get user preferences or decisions
|
|
147
|
-
- Confirm important actions before proceeding
|
|
148
|
-
- Offer multiple implementation approaches
|
|
149
|
-
|
|
150
|
-
The user will always have an "Other (custom input)" option to provide custom input,
|
|
151
|
-
so you only need to provide the main choices.
|
|
152
|
-
|
|
153
|
-
RULES:
|
|
154
|
-
- Provide 2-4 clear, distinct options
|
|
155
|
-
- Each option should be a viable choice
|
|
156
|
-
- Keep the question concise and specific
|
|
157
|
-
- "Other" option is automatically added for custom input`,
|
|
158
|
-
parameters: {
|
|
159
|
-
type: 'object',
|
|
160
|
-
properties: {
|
|
161
|
-
question: {
|
|
162
|
-
type: 'string',
|
|
163
|
-
description: 'The question to ask the user. Should be clear and specific.',
|
|
164
|
-
},
|
|
165
|
-
options: {
|
|
166
|
-
type: 'array',
|
|
167
|
-
items: { type: 'string' },
|
|
168
|
-
description: 'List of main options for the user to choose from. Provide 2-4 options. An "Other" option for custom input is automatically added.',
|
|
169
|
-
minItems: 2,
|
|
170
|
-
maxItems: 4,
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
required: ['question', 'options'],
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Execute ask_to_user
|
|
180
|
-
*/
|
|
181
|
-
async function executeAskToUser(args: Record<string, unknown>): Promise<ToolResult> {
|
|
182
|
-
logger.enter('executeAskToUser', args);
|
|
183
|
-
|
|
184
|
-
const question = args['question'] as string;
|
|
185
|
-
const options = args['options'] as string[];
|
|
186
|
-
|
|
187
|
-
// Validate inputs
|
|
188
|
-
if (!question || typeof question !== 'string') {
|
|
189
|
-
logger.warn('Invalid question parameter');
|
|
190
|
-
return {
|
|
191
|
-
success: false,
|
|
192
|
-
error: 'Invalid question: must be a non-empty string',
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (!Array.isArray(options) || options.length < 2) {
|
|
197
|
-
logger.warn('Invalid options parameter', { optionsLength: options?.length });
|
|
198
|
-
return {
|
|
199
|
-
success: false,
|
|
200
|
-
error: 'Invalid options: must be an array with at least 2 items',
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
if (options.length > 4) {
|
|
205
|
-
logger.warn('Too many options', { optionsLength: options.length });
|
|
206
|
-
return {
|
|
207
|
-
success: false,
|
|
208
|
-
error: 'Too many options: maximum 4 options allowed',
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
if (!askUserCallback) {
|
|
213
|
-
logger.warn('Ask-user callback not set');
|
|
214
|
-
return {
|
|
215
|
-
success: false,
|
|
216
|
-
error: 'User interaction is not available in current context',
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
try {
|
|
221
|
-
logger.flow('Asking user question');
|
|
222
|
-
const response = await askUserCallback({ question, options });
|
|
223
|
-
|
|
224
|
-
logger.debug('User responded', { selectedOption: response.selectedOption, isOther: response.isOther });
|
|
225
|
-
|
|
226
|
-
const resultText = response.isOther && response.customText
|
|
227
|
-
? `User provided custom response: "${response.customText}"`
|
|
228
|
-
: `User selected: "${response.selectedOption}"`;
|
|
229
|
-
|
|
230
|
-
logger.exit('executeAskToUser', { success: true });
|
|
231
|
-
return {
|
|
232
|
-
success: true,
|
|
233
|
-
result: resultText,
|
|
234
|
-
metadata: {
|
|
235
|
-
question,
|
|
236
|
-
selectedOption: response.selectedOption,
|
|
237
|
-
isOther: response.isOther,
|
|
238
|
-
customText: response.customText,
|
|
239
|
-
},
|
|
240
|
-
};
|
|
241
|
-
} catch (error) {
|
|
242
|
-
logger.error('Error asking user', error as Error);
|
|
243
|
-
return {
|
|
244
|
-
success: false,
|
|
245
|
-
error: `Error asking user: ${error instanceof Error ? error.message : 'Unknown error'}`,
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* ask_to_user LLM Simple Tool
|
|
252
|
-
*/
|
|
253
|
-
export const askToUserTool: LLMSimpleTool = {
|
|
254
|
-
definition: ASK_TO_USER_DEFINITION,
|
|
255
|
-
execute: executeAskToUser,
|
|
256
|
-
categories: ['llm-simple'] as ToolCategory[],
|
|
257
|
-
description: 'Ask user a question with options',
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
// ============================================
|
|
261
|
-
// Exports
|
|
262
|
-
// ============================================
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* All user interaction tools
|
|
266
|
-
*/
|
|
267
|
-
export const USER_INTERACTION_TOOLS: LLMSimpleTool[] = [
|
|
268
|
-
tellToUserTool,
|
|
269
|
-
askToUserTool,
|
|
270
|
-
];
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* USER_TOOLS alias for backward compatibility (Electron parity)
|
|
274
|
-
*/
|
|
275
|
-
export const USER_TOOLS: LLMSimpleTool[] = USER_INTERACTION_TOOLS;
|
|
276
|
-
|
|
277
|
-
export default USER_INTERACTION_TOOLS;
|
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Office Common Constants
|
|
3
|
-
*
|
|
4
|
-
* Shared constants for Office tools (Word, Excel, PowerPoint)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as path from 'path';
|
|
8
|
-
import { LOCAL_HOME_DIR } from '../../../constants.js';
|
|
9
|
-
import { ToolCategory } from '../../types.js';
|
|
10
|
-
|
|
11
|
-
// =============================================================================
|
|
12
|
-
// Directory Constants
|
|
13
|
-
// =============================================================================
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Directory for storing Office screenshots
|
|
17
|
-
*/
|
|
18
|
-
export const OFFICE_SCREENSHOT_DIR = path.join(LOCAL_HOME_DIR, 'screenshots', 'office');
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* User-friendly path description for screenshots
|
|
22
|
-
*/
|
|
23
|
-
export const OFFICE_SCREENSHOT_PATH_DESC = '~/.local-cli/screenshots/office/';
|
|
24
|
-
|
|
25
|
-
// =============================================================================
|
|
26
|
-
// Tool Category Constants
|
|
27
|
-
// =============================================================================
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Default categories for Office tools
|
|
31
|
-
*/
|
|
32
|
-
export const OFFICE_CATEGORIES: ToolCategory[] = ['llm-simple'];
|
|
33
|
-
|
|
34
|
-
// =============================================================================
|
|
35
|
-
// Word Alignment Constants
|
|
36
|
-
// =============================================================================
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Word paragraph alignment values (wdParagraphAlignment)
|
|
40
|
-
*/
|
|
41
|
-
export const WORD_PARAGRAPH_ALIGNMENT = {
|
|
42
|
-
left: 0, // wdAlignParagraphLeft
|
|
43
|
-
center: 1, // wdAlignParagraphCenter
|
|
44
|
-
right: 2, // wdAlignParagraphRight
|
|
45
|
-
justify: 3, // wdAlignParagraphJustify
|
|
46
|
-
} as const;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Word page number alignment values (wdPageNumberAlignment)
|
|
50
|
-
*/
|
|
51
|
-
export const WORD_PAGE_NUMBER_ALIGNMENT = {
|
|
52
|
-
left: 0, // wdAlignPageNumberLeft
|
|
53
|
-
center: 1, // wdAlignPageNumberCenter
|
|
54
|
-
right: 2, // wdAlignPageNumberRight
|
|
55
|
-
} as const;
|
|
56
|
-
|
|
57
|
-
// =============================================================================
|
|
58
|
-
// Excel Alignment Constants
|
|
59
|
-
// =============================================================================
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Excel horizontal alignment values (xlHAlign)
|
|
63
|
-
*/
|
|
64
|
-
export const EXCEL_HORIZONTAL_ALIGNMENT = {
|
|
65
|
-
left: -4131, // xlLeft
|
|
66
|
-
center: -4108, // xlCenter
|
|
67
|
-
right: -4152, // xlRight
|
|
68
|
-
} as const;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Excel vertical alignment values (xlVAlign)
|
|
72
|
-
*/
|
|
73
|
-
export const EXCEL_VERTICAL_ALIGNMENT = {
|
|
74
|
-
top: -4160, // xlTop
|
|
75
|
-
center: -4108, // xlCenter
|
|
76
|
-
bottom: -4107, // xlBottom
|
|
77
|
-
} as const;
|
|
78
|
-
|
|
79
|
-
// =============================================================================
|
|
80
|
-
// PowerPoint Alignment Constants
|
|
81
|
-
// =============================================================================
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* PowerPoint text horizontal alignment values (ppParagraphAlignment)
|
|
85
|
-
*/
|
|
86
|
-
export const POWERPOINT_HORIZONTAL_ALIGNMENT = {
|
|
87
|
-
left: 1, // ppAlignLeft
|
|
88
|
-
center: 2, // ppAlignCenter
|
|
89
|
-
right: 3, // ppAlignRight
|
|
90
|
-
justify: 4, // ppAlignJustify
|
|
91
|
-
} as const;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* PowerPoint text vertical alignment values (msoVerticalAnchor)
|
|
95
|
-
*/
|
|
96
|
-
export const POWERPOINT_VERTICAL_ALIGNMENT = {
|
|
97
|
-
top: 1, // msoAnchorTop
|
|
98
|
-
middle: 3, // msoAnchorMiddle
|
|
99
|
-
bottom: 4, // msoAnchorBottom
|
|
100
|
-
} as const;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* PowerPoint shape alignment values (msoAlignCmd)
|
|
104
|
-
*/
|
|
105
|
-
export const POWERPOINT_SHAPE_ALIGNMENT = {
|
|
106
|
-
left: 0, // msoAlignLefts
|
|
107
|
-
center: 1, // msoAlignCenters
|
|
108
|
-
right: 2, // msoAlignRights
|
|
109
|
-
top: 3, // msoAlignTops
|
|
110
|
-
middle: 4, // msoAlignMiddles
|
|
111
|
-
bottom: 5, // msoAlignBottoms
|
|
112
|
-
} as const;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* PowerPoint shape distribution values (msoDistributeCmd)
|
|
116
|
-
*/
|
|
117
|
-
export const POWERPOINT_DISTRIBUTE = {
|
|
118
|
-
horizontal: 0, // msoDistributeHorizontally
|
|
119
|
-
vertical: 1, // msoDistributeVertically
|
|
120
|
-
} as const;
|
|
121
|
-
|
|
122
|
-
// =============================================================================
|
|
123
|
-
// Excel Chart Type Constants
|
|
124
|
-
// =============================================================================
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Excel chart types (xlChartType)
|
|
128
|
-
*/
|
|
129
|
-
export const EXCEL_CHART_TYPES = {
|
|
130
|
-
column: 51, // xlColumnClustered
|
|
131
|
-
bar: 57, // xlBarClustered
|
|
132
|
-
line: 4, // xlLine
|
|
133
|
-
pie: 5, // xlPie
|
|
134
|
-
area: 1, // xlArea
|
|
135
|
-
scatter: -4169, // xlXYScatter
|
|
136
|
-
doughnut: -4120, // xlDoughnut
|
|
137
|
-
} as const;
|
|
138
|
-
|
|
139
|
-
// =============================================================================
|
|
140
|
-
// Excel Border Constants
|
|
141
|
-
// =============================================================================
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Excel border line styles (xlLineStyle)
|
|
145
|
-
*/
|
|
146
|
-
export const EXCEL_BORDER_STYLES = {
|
|
147
|
-
thin: 1, // xlContinuous
|
|
148
|
-
medium: 1, // xlContinuous (weight differs)
|
|
149
|
-
thick: 1, // xlContinuous (weight differs)
|
|
150
|
-
double: -4119, // xlDouble
|
|
151
|
-
dotted: -4118, // xlDot
|
|
152
|
-
dashed: -4115, // xlDash
|
|
153
|
-
} as const;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Excel border weights (xlBorderWeight)
|
|
157
|
-
*/
|
|
158
|
-
export const EXCEL_BORDER_WEIGHTS = {
|
|
159
|
-
thin: 2, // xlThin
|
|
160
|
-
medium: -4138, // xlMedium
|
|
161
|
-
thick: 4, // xlThick
|
|
162
|
-
double: 2, // xlThin
|
|
163
|
-
dotted: 2, // xlThin
|
|
164
|
-
dashed: 2, // xlThin
|
|
165
|
-
} as const;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Excel border edge indices (xlBordersIndex)
|
|
169
|
-
*/
|
|
170
|
-
export const EXCEL_BORDER_EDGES = {
|
|
171
|
-
left: 7, // xlEdgeLeft
|
|
172
|
-
right: 10, // xlEdgeRight
|
|
173
|
-
top: 8, // xlEdgeTop
|
|
174
|
-
bottom: 9, // xlEdgeBottom
|
|
175
|
-
all: -1, // Special value for all borders
|
|
176
|
-
} as const;
|
|
177
|
-
|
|
178
|
-
// =============================================================================
|
|
179
|
-
// Excel Conditional Format Constants
|
|
180
|
-
// =============================================================================
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Excel conditional format types (xlFormatConditionType)
|
|
184
|
-
*/
|
|
185
|
-
export const EXCEL_CONDITION_TYPES = {
|
|
186
|
-
cellValue: 1, // xlCellValue
|
|
187
|
-
colorScale: 3, // xlColorScale
|
|
188
|
-
dataBar: 4, // xlDataBar
|
|
189
|
-
iconSet: 6, // xlIconSet
|
|
190
|
-
duplicates: 8, // xlUniqueValues
|
|
191
|
-
top10: 5, // xlTop10
|
|
192
|
-
} as const;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Excel comparison operators (xlFormatConditionOperator)
|
|
196
|
-
*/
|
|
197
|
-
export const EXCEL_COMPARISON_OPERATORS = {
|
|
198
|
-
greater: 5, // xlGreater
|
|
199
|
-
less: 6, // xlLess
|
|
200
|
-
equal: 3, // xlEqual
|
|
201
|
-
between: 1, // xlBetween
|
|
202
|
-
notBetween: 2, // xlNotBetween
|
|
203
|
-
} as const;
|
|
204
|
-
|
|
205
|
-
// =============================================================================
|
|
206
|
-
// Excel Data Validation Constants
|
|
207
|
-
// =============================================================================
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Excel data validation types (xlDVType)
|
|
211
|
-
*/
|
|
212
|
-
export const EXCEL_VALIDATION_TYPES = {
|
|
213
|
-
list: 3, // xlValidateList
|
|
214
|
-
whole: 1, // xlValidateWholeNumber
|
|
215
|
-
decimal: 2, // xlValidateDecimal
|
|
216
|
-
date: 4, // xlValidateDate
|
|
217
|
-
textLength: 6, // xlValidateTextLength
|
|
218
|
-
custom: 7, // xlValidateCustom
|
|
219
|
-
} as const;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Excel data validation operators (xlFormatConditionOperator)
|
|
223
|
-
*/
|
|
224
|
-
export const EXCEL_VALIDATION_OPERATORS = {
|
|
225
|
-
between: 1,
|
|
226
|
-
notBetween: 2,
|
|
227
|
-
equal: 3,
|
|
228
|
-
notEqual: 4,
|
|
229
|
-
greater: 5,
|
|
230
|
-
less: 6,
|
|
231
|
-
greaterEqual: 7,
|
|
232
|
-
lessEqual: 8,
|
|
233
|
-
} as const;
|
|
234
|
-
|
|
235
|
-
// =============================================================================
|
|
236
|
-
// PowerPoint Animation Constants
|
|
237
|
-
// =============================================================================
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* PowerPoint animation effect types (msoAnimEffect)
|
|
241
|
-
*/
|
|
242
|
-
export const POWERPOINT_ANIMATION_EFFECTS = {
|
|
243
|
-
appear: 1, // msoAnimEffectAppear
|
|
244
|
-
fade: 10, // msoAnimEffectFade
|
|
245
|
-
fly_in: 2, // msoAnimEffectFly
|
|
246
|
-
float_in: 42, // msoAnimEffectFloat
|
|
247
|
-
split: 21, // msoAnimEffectSplit
|
|
248
|
-
wipe: 22, // msoAnimEffectWipe
|
|
249
|
-
shape: 31, // msoAnimEffectShape (Circle)
|
|
250
|
-
wheel: 36, // msoAnimEffectWheel
|
|
251
|
-
random_bars: 15, // msoAnimEffectRandomBars
|
|
252
|
-
grow_and_turn: 26, // msoAnimEffectGrowAndTurn
|
|
253
|
-
zoom: 39, // msoAnimEffectZoom
|
|
254
|
-
swivel: 20, // msoAnimEffectSwivel
|
|
255
|
-
bounce: 25, // msoAnimEffectBounce
|
|
256
|
-
} as const;
|
|
257
|
-
|
|
258
|
-
// =============================================================================
|
|
259
|
-
// PowerPoint Transition Constants
|
|
260
|
-
// =============================================================================
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* PowerPoint slide transition types (ppEntryEffect)
|
|
264
|
-
*/
|
|
265
|
-
export const POWERPOINT_TRANSITION_TYPES = {
|
|
266
|
-
none: 0,
|
|
267
|
-
fade: 1197, // ppEffectFade
|
|
268
|
-
push: 1228, // ppEffectPush
|
|
269
|
-
wipe: 1212, // ppEffectWipe
|
|
270
|
-
split: 1217, // ppEffectSplit
|
|
271
|
-
reveal: 1204, // ppEffectReveal
|
|
272
|
-
random_bars: 1243, // ppEffectRandomBars
|
|
273
|
-
shape: 1221, // ppEffectShape (circle)
|
|
274
|
-
uncover: 1227, // ppEffectUncover
|
|
275
|
-
cover: 1218, // ppEffectCover
|
|
276
|
-
flash: 1248, // ppEffectFlash
|
|
277
|
-
} as const;
|
|
278
|
-
|
|
279
|
-
// =============================================================================
|
|
280
|
-
// PowerPoint Shape Types
|
|
281
|
-
// =============================================================================
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* PowerPoint AutoShape types (msoAutoShapeType)
|
|
285
|
-
*/
|
|
286
|
-
export const POWERPOINT_SHAPE_TYPES = {
|
|
287
|
-
rectangle: 1, // msoShapeRectangle
|
|
288
|
-
rounded_rectangle: 5, // msoShapeRoundedRectangle
|
|
289
|
-
oval: 9, // msoShapeOval
|
|
290
|
-
diamond: 4, // msoShapeDiamond
|
|
291
|
-
triangle: 7, // msoShapeIsoscelesTriangle
|
|
292
|
-
right_triangle: 6, // msoShapeRightTriangle
|
|
293
|
-
pentagon: 51, // msoShapePentagon
|
|
294
|
-
hexagon: 52, // msoShapeHexagon
|
|
295
|
-
arrow_right: 33, // msoShapeRightArrow
|
|
296
|
-
arrow_left: 34, // msoShapeLeftArrow
|
|
297
|
-
arrow_up: 35, // msoShapeUpArrow
|
|
298
|
-
arrow_down: 36, // msoShapeDownArrow
|
|
299
|
-
star_5: 12, // msoShape5pointStar
|
|
300
|
-
star_6: 58, // msoShape6pointStar
|
|
301
|
-
heart: 21, // msoShapeHeart
|
|
302
|
-
lightning: 22, // msoShapeLightningBolt
|
|
303
|
-
callout: 41, // msoShapeRectangularCallout
|
|
304
|
-
} as const;
|
|
305
|
-
|
|
306
|
-
// =============================================================================
|
|
307
|
-
// PowerPoint Chart Type Constants
|
|
308
|
-
// =============================================================================
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* PowerPoint chart types (xlChartType - same as Excel)
|
|
312
|
-
*/
|
|
313
|
-
export const POWERPOINT_CHART_TYPES = EXCEL_CHART_TYPES;
|
|
314
|
-
|
|
315
|
-
// =============================================================================
|
|
316
|
-
// Word Break Types
|
|
317
|
-
// =============================================================================
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Word break types (wdBreakType)
|
|
321
|
-
*/
|
|
322
|
-
export const WORD_BREAK_TYPES = {
|
|
323
|
-
page: 7, // wdPageBreak
|
|
324
|
-
line: 6, // wdLineBreak
|
|
325
|
-
section: 2, // wdSectionBreakNextPage
|
|
326
|
-
} as const;
|
|
327
|
-
|
|
328
|
-
// =============================================================================
|
|
329
|
-
// Word Shape Types
|
|
330
|
-
// =============================================================================
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Word AutoShape types (msoAutoShapeType) - same as PowerPoint
|
|
334
|
-
*/
|
|
335
|
-
export const WORD_SHAPE_TYPES = POWERPOINT_SHAPE_TYPES;
|