orquesta-cli 0.1.2
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/.eslintrc.json +26 -0
- package/.prettierrc.json +10 -0
- package/LICENSE +21 -0
- package/README.md +280 -0
- package/SECURITY.md +290 -0
- package/dist/agents/base/base-agent.d.ts +38 -0
- package/dist/agents/base/base-agent.d.ts.map +1 -0
- package/dist/agents/base/base-agent.js +69 -0
- package/dist/agents/base/base-agent.js.map +1 -0
- package/dist/agents/docs-search/index.d.ts +33 -0
- package/dist/agents/docs-search/index.d.ts.map +1 -0
- package/dist/agents/docs-search/index.js +244 -0
- package/dist/agents/docs-search/index.js.map +1 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +4 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/planner/index.d.ts +17 -0
- package/dist/agents/planner/index.d.ts.map +1 -0
- package/dist/agents/planner/index.js +250 -0
- package/dist/agents/planner/index.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +205 -0
- package/dist/cli.js.map +1 -0
- package/dist/constants.d.ts +8 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +10 -0
- package/dist/constants.js.map +1 -0
- package/dist/core/compact/compact-manager.d.ts +22 -0
- package/dist/core/compact/compact-manager.d.ts.map +1 -0
- package/dist/core/compact/compact-manager.js +75 -0
- package/dist/core/compact/compact-manager.js.map +1 -0
- package/dist/core/compact/compact-prompts.d.ts +11 -0
- package/dist/core/compact/compact-prompts.d.ts.map +1 -0
- package/dist/core/compact/compact-prompts.js +90 -0
- package/dist/core/compact/compact-prompts.js.map +1 -0
- package/dist/core/compact/context-tracker.d.ts +28 -0
- package/dist/core/compact/context-tracker.d.ts.map +1 -0
- package/dist/core/compact/context-tracker.js +71 -0
- package/dist/core/compact/context-tracker.js.map +1 -0
- package/dist/core/compact/index.d.ts +4 -0
- package/dist/core/compact/index.d.ts.map +1 -0
- package/dist/core/compact/index.js +4 -0
- package/dist/core/compact/index.js.map +1 -0
- package/dist/core/config/config-manager.d.ts +56 -0
- package/dist/core/config/config-manager.d.ts.map +1 -0
- package/dist/core/config/config-manager.js +342 -0
- package/dist/core/config/config-manager.js.map +1 -0
- package/dist/core/config/index.d.ts +2 -0
- package/dist/core/config/index.d.ts.map +1 -0
- package/dist/core/config/index.js +2 -0
- package/dist/core/config/index.js.map +1 -0
- package/dist/core/docs-manager.d.ts +46 -0
- package/dist/core/docs-manager.d.ts.map +1 -0
- package/dist/core/docs-manager.js +475 -0
- package/dist/core/docs-manager.js.map +1 -0
- package/dist/core/llm/index.d.ts +2 -0
- package/dist/core/llm/index.d.ts.map +1 -0
- package/dist/core/llm/index.js +2 -0
- package/dist/core/llm/index.js.map +1 -0
- package/dist/core/llm/llm-client.d.ts +97 -0
- package/dist/core/llm/llm-client.d.ts.map +1 -0
- package/dist/core/llm/llm-client.js +1000 -0
- package/dist/core/llm/llm-client.js.map +1 -0
- package/dist/core/session/index.d.ts +2 -0
- package/dist/core/session/index.d.ts.map +1 -0
- package/dist/core/session/index.js +2 -0
- package/dist/core/session/index.js.map +1 -0
- package/dist/core/session/session-manager.d.ts +71 -0
- package/dist/core/session/session-manager.d.ts.map +1 -0
- package/dist/core/session/session-manager.js +250 -0
- package/dist/core/session/session-manager.js.map +1 -0
- package/dist/core/slash-command-handler.d.ts +31 -0
- package/dist/core/slash-command-handler.d.ts.map +1 -0
- package/dist/core/slash-command-handler.js +302 -0
- package/dist/core/slash-command-handler.js.map +1 -0
- package/dist/core/usage-tracker.d.ts +70 -0
- package/dist/core/usage-tracker.d.ts.map +1 -0
- package/dist/core/usage-tracker.js +251 -0
- package/dist/core/usage-tracker.js.map +1 -0
- package/dist/errors/base.d.ts +22 -0
- package/dist/errors/base.d.ts.map +1 -0
- package/dist/errors/base.js +43 -0
- package/dist/errors/base.js.map +1 -0
- package/dist/errors/file.d.ts +31 -0
- package/dist/errors/file.d.ts.map +1 -0
- package/dist/errors/file.js +110 -0
- package/dist/errors/file.js.map +1 -0
- package/dist/errors/index.d.ts +10 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +41 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/llm.d.ts +26 -0
- package/dist/errors/llm.d.ts.map +1 -0
- package/dist/errors/llm.js +86 -0
- package/dist/errors/llm.js.map +1 -0
- package/dist/errors/network.d.ts +19 -0
- package/dist/errors/network.d.ts.map +1 -0
- package/dist/errors/network.js +82 -0
- package/dist/errors/network.js.map +1 -0
- package/dist/errors/validation.d.ts +19 -0
- package/dist/errors/validation.d.ts.map +1 -0
- package/dist/errors/validation.js +62 -0
- package/dist/errors/validation.js.map +1 -0
- package/dist/eval/eval-runner.d.ts +24 -0
- package/dist/eval/eval-runner.d.ts.map +1 -0
- package/dist/eval/eval-runner.js +291 -0
- package/dist/eval/eval-runner.js.map +1 -0
- package/dist/eval/index.d.ts +3 -0
- package/dist/eval/index.d.ts.map +1 -0
- package/dist/eval/index.js +3 -0
- package/dist/eval/index.js.map +1 -0
- package/dist/eval/types.d.ts +77 -0
- package/dist/eval/types.d.ts.map +1 -0
- package/dist/eval/types.js +2 -0
- package/dist/eval/types.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestration/index.d.ts +4 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/index.js +3 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/plan-executor.d.ts +28 -0
- package/dist/orchestration/plan-executor.d.ts.map +1 -0
- package/dist/orchestration/plan-executor.js +382 -0
- package/dist/orchestration/plan-executor.js.map +1 -0
- package/dist/orchestration/types.d.ts +66 -0
- package/dist/orchestration/types.d.ts.map +1 -0
- package/dist/orchestration/types.js +2 -0
- package/dist/orchestration/types.js.map +1 -0
- package/dist/orchestration/utils.d.ts +13 -0
- package/dist/orchestration/utils.d.ts.map +1 -0
- package/dist/orchestration/utils.js +78 -0
- package/dist/orchestration/utils.js.map +1 -0
- package/dist/orquesta/config-sync.d.ts +73 -0
- package/dist/orquesta/config-sync.d.ts.map +1 -0
- package/dist/orquesta/config-sync.js +230 -0
- package/dist/orquesta/config-sync.js.map +1 -0
- package/dist/orquesta/connection.d.ts +35 -0
- package/dist/orquesta/connection.d.ts.map +1 -0
- package/dist/orquesta/connection.js +189 -0
- package/dist/orquesta/connection.js.map +1 -0
- package/dist/orquesta/prompt-reporter.d.ts +16 -0
- package/dist/orquesta/prompt-reporter.d.ts.map +1 -0
- package/dist/orquesta/prompt-reporter.js +85 -0
- package/dist/orquesta/prompt-reporter.js.map +1 -0
- package/dist/prompts/agents/docs-search-decision.d.ts +6 -0
- package/dist/prompts/agents/docs-search-decision.d.ts.map +1 -0
- package/dist/prompts/agents/docs-search-decision.js +46 -0
- package/dist/prompts/agents/docs-search-decision.js.map +1 -0
- package/dist/prompts/agents/docs-search.d.ts +4 -0
- package/dist/prompts/agents/docs-search.d.ts.map +1 -0
- package/dist/prompts/agents/docs-search.js +70 -0
- package/dist/prompts/agents/docs-search.js.map +1 -0
- package/dist/prompts/agents/planning.d.ts +4 -0
- package/dist/prompts/agents/planning.d.ts.map +1 -0
- package/dist/prompts/agents/planning.js +119 -0
- package/dist/prompts/agents/planning.js.map +1 -0
- package/dist/prompts/index.d.ts +10 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +10 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/shared/codebase-rules.d.ts +4 -0
- package/dist/prompts/shared/codebase-rules.d.ts.map +1 -0
- package/dist/prompts/shared/codebase-rules.js +16 -0
- package/dist/prompts/shared/codebase-rules.js.map +1 -0
- package/dist/prompts/shared/git-rules.d.ts +2 -0
- package/dist/prompts/shared/git-rules.d.ts.map +1 -0
- package/dist/prompts/shared/git-rules.js +87 -0
- package/dist/prompts/shared/git-rules.js.map +1 -0
- package/dist/prompts/shared/language-rules.d.ts +4 -0
- package/dist/prompts/shared/language-rules.d.ts.map +1 -0
- package/dist/prompts/shared/language-rules.js +22 -0
- package/dist/prompts/shared/language-rules.js.map +1 -0
- package/dist/prompts/shared/tool-usage.d.ts +12 -0
- package/dist/prompts/shared/tool-usage.d.ts.map +1 -0
- package/dist/prompts/shared/tool-usage.js +51 -0
- package/dist/prompts/shared/tool-usage.js.map +1 -0
- package/dist/prompts/system/compact.d.ts +3 -0
- package/dist/prompts/system/compact.d.ts.map +1 -0
- package/dist/prompts/system/compact.js +73 -0
- package/dist/prompts/system/compact.js.map +1 -0
- package/dist/prompts/system/plan-execute.d.ts +3 -0
- package/dist/prompts/system/plan-execute.d.ts.map +1 -0
- package/dist/prompts/system/plan-execute.js +83 -0
- package/dist/prompts/system/plan-execute.js.map +1 -0
- package/dist/setup/first-run-setup.d.ts +15 -0
- package/dist/setup/first-run-setup.d.ts.map +1 -0
- package/dist/setup/first-run-setup.js +238 -0
- package/dist/setup/first-run-setup.js.map +1 -0
- package/dist/tools/browser/browser-client.d.ts +107 -0
- package/dist/tools/browser/browser-client.d.ts.map +1 -0
- package/dist/tools/browser/browser-client.js +958 -0
- package/dist/tools/browser/browser-client.js.map +1 -0
- package/dist/tools/browser/browser-tools.d.ts +17 -0
- package/dist/tools/browser/browser-tools.d.ts.map +1 -0
- package/dist/tools/browser/browser-tools.js +972 -0
- package/dist/tools/browser/browser-tools.js.map +1 -0
- package/dist/tools/browser/index.d.ts +7 -0
- package/dist/tools/browser/index.d.ts.map +1 -0
- package/dist/tools/browser/index.js +17 -0
- package/dist/tools/browser/index.js.map +1 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/llm/agents/docs-search-tools.d.ts +17 -0
- package/dist/tools/llm/agents/docs-search-tools.d.ts.map +1 -0
- package/dist/tools/llm/agents/docs-search-tools.js +265 -0
- package/dist/tools/llm/agents/docs-search-tools.js.map +1 -0
- package/dist/tools/llm/agents/index.d.ts +4 -0
- package/dist/tools/llm/agents/index.d.ts.map +1 -0
- package/dist/tools/llm/agents/index.js +3 -0
- package/dist/tools/llm/agents/index.js.map +1 -0
- package/dist/tools/llm/index.d.ts +3 -0
- package/dist/tools/llm/index.d.ts.map +1 -0
- package/dist/tools/llm/index.js +3 -0
- package/dist/tools/llm/index.js.map +1 -0
- package/dist/tools/llm/simple/ask-user-tool.d.ts +5 -0
- package/dist/tools/llm/simple/ask-user-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/ask-user-tool.js +7 -0
- package/dist/tools/llm/simple/ask-user-tool.js.map +1 -0
- package/dist/tools/llm/simple/background-bash-tool.d.ts +30 -0
- package/dist/tools/llm/simple/background-bash-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/background-bash-tool.js +323 -0
- package/dist/tools/llm/simple/background-bash-tool.js.map +1 -0
- package/dist/tools/llm/simple/background-powershell-tool.d.ts +30 -0
- package/dist/tools/llm/simple/background-powershell-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/background-powershell-tool.js +305 -0
- package/dist/tools/llm/simple/background-powershell-tool.js.map +1 -0
- package/dist/tools/llm/simple/bash-tool.d.ts +4 -0
- package/dist/tools/llm/simple/bash-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/bash-tool.js +178 -0
- package/dist/tools/llm/simple/bash-tool.js.map +1 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.d.ts +6 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.js +104 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.js.map +1 -0
- package/dist/tools/llm/simple/file-tools.d.ts +13 -0
- package/dist/tools/llm/simple/file-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/file-tools.js +785 -0
- package/dist/tools/llm/simple/file-tools.js.map +1 -0
- package/dist/tools/llm/simple/final-response-tool.d.ts +12 -0
- package/dist/tools/llm/simple/final-response-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/final-response-tool.js +107 -0
- package/dist/tools/llm/simple/final-response-tool.js.map +1 -0
- package/dist/tools/llm/simple/index.d.ts +11 -0
- package/dist/tools/llm/simple/index.d.ts.map +1 -0
- package/dist/tools/llm/simple/index.js +20 -0
- package/dist/tools/llm/simple/index.js.map +1 -0
- package/dist/tools/llm/simple/planning-tools.d.ts +5 -0
- package/dist/tools/llm/simple/planning-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/planning-tools.js +117 -0
- package/dist/tools/llm/simple/planning-tools.js.map +1 -0
- package/dist/tools/llm/simple/powershell-tool.d.ts +4 -0
- package/dist/tools/llm/simple/powershell-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/powershell-tool.js +178 -0
- package/dist/tools/llm/simple/powershell-tool.js.map +1 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts +38 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts.map +1 -0
- package/dist/tools/llm/simple/simple-tool-executor.js +134 -0
- package/dist/tools/llm/simple/simple-tool-executor.js.map +1 -0
- package/dist/tools/llm/simple/todo-tools.d.ts +15 -0
- package/dist/tools/llm/simple/todo-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/todo-tools.js +145 -0
- package/dist/tools/llm/simple/todo-tools.js.map +1 -0
- package/dist/tools/llm/simple/user-interaction-tools.d.ts +22 -0
- package/dist/tools/llm/simple/user-interaction-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/user-interaction-tools.js +168 -0
- package/dist/tools/llm/simple/user-interaction-tools.js.map +1 -0
- package/dist/tools/office/common/constants.d.ts +194 -0
- package/dist/tools/office/common/constants.d.ts.map +1 -0
- package/dist/tools/office/common/constants.js +169 -0
- package/dist/tools/office/common/constants.js.map +1 -0
- package/dist/tools/office/common/index.d.ts +4 -0
- package/dist/tools/office/common/index.d.ts.map +1 -0
- package/dist/tools/office/common/index.js +3 -0
- package/dist/tools/office/common/index.js.map +1 -0
- package/dist/tools/office/common/types.d.ts +82 -0
- package/dist/tools/office/common/types.d.ts.map +1 -0
- package/dist/tools/office/common/types.js +2 -0
- package/dist/tools/office/common/types.js.map +1 -0
- package/dist/tools/office/common/utils.d.ts +14 -0
- package/dist/tools/office/common/utils.d.ts.map +1 -0
- package/dist/tools/office/common/utils.js +58 -0
- package/dist/tools/office/common/utils.js.map +1 -0
- package/dist/tools/office/excel-client.d.ts +123 -0
- package/dist/tools/office/excel-client.d.ts.map +1 -0
- package/dist/tools/office/excel-client.js +1037 -0
- package/dist/tools/office/excel-client.js.map +1 -0
- package/dist/tools/office/excel-tools/cells.d.ts +10 -0
- package/dist/tools/office/excel-tools/cells.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/cells.js +279 -0
- package/dist/tools/office/excel-tools/cells.js.map +1 -0
- package/dist/tools/office/excel-tools/charts.d.ts +6 -0
- package/dist/tools/office/excel-tools/charts.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/charts.js +124 -0
- package/dist/tools/office/excel-tools/charts.js.map +1 -0
- package/dist/tools/office/excel-tools/comments.d.ts +6 -0
- package/dist/tools/office/excel-tools/comments.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/comments.js +114 -0
- package/dist/tools/office/excel-tools/comments.js.map +1 -0
- package/dist/tools/office/excel-tools/data-ops.d.ts +10 -0
- package/dist/tools/office/excel-tools/data-ops.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/data-ops.js +266 -0
- package/dist/tools/office/excel-tools/data-ops.js.map +1 -0
- package/dist/tools/office/excel-tools/export.d.ts +5 -0
- package/dist/tools/office/excel-tools/export.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/export.js +75 -0
- package/dist/tools/office/excel-tools/export.js.map +1 -0
- package/dist/tools/office/excel-tools/formatting.d.ts +10 -0
- package/dist/tools/office/excel-tools/formatting.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/formatting.js +276 -0
- package/dist/tools/office/excel-tools/formatting.js.map +1 -0
- package/dist/tools/office/excel-tools/index.d.ts +16 -0
- package/dist/tools/office/excel-tools/index.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/index.js +42 -0
- package/dist/tools/office/excel-tools/index.js.map +1 -0
- package/dist/tools/office/excel-tools/launch.d.ts +10 -0
- package/dist/tools/office/excel-tools/launch.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/launch.js +248 -0
- package/dist/tools/office/excel-tools/launch.js.map +1 -0
- package/dist/tools/office/excel-tools/media.d.ts +5 -0
- package/dist/tools/office/excel-tools/media.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/media.js +84 -0
- package/dist/tools/office/excel-tools/media.js.map +1 -0
- package/dist/tools/office/excel-tools/named-ranges.d.ts +6 -0
- package/dist/tools/office/excel-tools/named-ranges.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/named-ranges.js +113 -0
- package/dist/tools/office/excel-tools/named-ranges.js.map +1 -0
- package/dist/tools/office/excel-tools/protection.d.ts +5 -0
- package/dist/tools/office/excel-tools/protection.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/protection.js +75 -0
- package/dist/tools/office/excel-tools/protection.js.map +1 -0
- package/dist/tools/office/excel-tools/rows-columns.d.ts +11 -0
- package/dist/tools/office/excel-tools/rows-columns.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/rows-columns.js +293 -0
- package/dist/tools/office/excel-tools/rows-columns.js.map +1 -0
- package/dist/tools/office/excel-tools/sheets.d.ts +8 -0
- package/dist/tools/office/excel-tools/sheets.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/sheets.js +177 -0
- package/dist/tools/office/excel-tools/sheets.js.map +1 -0
- package/dist/tools/office/excel-tools/validation.d.ts +7 -0
- package/dist/tools/office/excel-tools/validation.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/validation.js +175 -0
- package/dist/tools/office/excel-tools/validation.js.map +1 -0
- package/dist/tools/office/excel-tools.d.ts +3 -0
- package/dist/tools/office/excel-tools.d.ts.map +1 -0
- package/dist/tools/office/excel-tools.js +3 -0
- package/dist/tools/office/excel-tools.js.map +1 -0
- package/dist/tools/office/index.d.ts +6 -0
- package/dist/tools/office/index.d.ts.map +1 -0
- package/dist/tools/office/index.js +9 -0
- package/dist/tools/office/index.js.map +1 -0
- package/dist/tools/office/office-client-base.d.ts +31 -0
- package/dist/tools/office/office-client-base.d.ts.map +1 -0
- package/dist/tools/office/office-client-base.js +154 -0
- package/dist/tools/office/office-client-base.js.map +1 -0
- package/dist/tools/office/office-client.d.ts +196 -0
- package/dist/tools/office/office-client.d.ts.map +1 -0
- package/dist/tools/office/office-client.js +200 -0
- package/dist/tools/office/office-client.js.map +1 -0
- package/dist/tools/office/powerpoint-client.d.ts +135 -0
- package/dist/tools/office/powerpoint-client.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-client.js +1136 -0
- package/dist/tools/office/powerpoint-client.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/effects.d.ts +9 -0
- package/dist/tools/office/powerpoint-tools/effects.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/effects.js +246 -0
- package/dist/tools/office/powerpoint-tools/effects.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/export.d.ts +6 -0
- package/dist/tools/office/powerpoint-tools/export.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/export.js +108 -0
- package/dist/tools/office/powerpoint-tools/export.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts +13 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/index.js +33 -0
- package/dist/tools/office/powerpoint-tools/index.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/launch.d.ts +9 -0
- package/dist/tools/office/powerpoint-tools/launch.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/launch.js +214 -0
- package/dist/tools/office/powerpoint-tools/launch.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/media.d.ts +8 -0
- package/dist/tools/office/powerpoint-tools/media.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/media.js +211 -0
- package/dist/tools/office/powerpoint-tools/media.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/notes.d.ts +8 -0
- package/dist/tools/office/powerpoint-tools/notes.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/notes.js +171 -0
- package/dist/tools/office/powerpoint-tools/notes.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/sections.d.ts +6 -0
- package/dist/tools/office/powerpoint-tools/sections.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/sections.js +104 -0
- package/dist/tools/office/powerpoint-tools/sections.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/shapes.d.ts +22 -0
- package/dist/tools/office/powerpoint-tools/shapes.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/shapes.js +681 -0
- package/dist/tools/office/powerpoint-tools/shapes.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/slides.d.ts +11 -0
- package/dist/tools/office/powerpoint-tools/slides.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/slides.js +283 -0
- package/dist/tools/office/powerpoint-tools/slides.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/tables.d.ts +6 -0
- package/dist/tools/office/powerpoint-tools/tables.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/tables.js +132 -0
- package/dist/tools/office/powerpoint-tools/tables.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/text.d.ts +12 -0
- package/dist/tools/office/powerpoint-tools/text.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/text.js +366 -0
- package/dist/tools/office/powerpoint-tools/text.js.map +1 -0
- package/dist/tools/office/powerpoint-tools.d.ts +3 -0
- package/dist/tools/office/powerpoint-tools.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools.js +3 -0
- package/dist/tools/office/powerpoint-tools.js.map +1 -0
- package/dist/tools/office/word-client.d.ts +147 -0
- package/dist/tools/office/word-client.d.ts.map +1 -0
- package/dist/tools/office/word-client.js +1341 -0
- package/dist/tools/office/word-client.js.map +1 -0
- package/dist/tools/office/word-tools/bookmarks.d.ts +7 -0
- package/dist/tools/office/word-tools/bookmarks.d.ts.map +1 -0
- package/dist/tools/office/word-tools/bookmarks.js +146 -0
- package/dist/tools/office/word-tools/bookmarks.js.map +1 -0
- package/dist/tools/office/word-tools/comments.d.ts +7 -0
- package/dist/tools/office/word-tools/comments.d.ts.map +1 -0
- package/dist/tools/office/word-tools/comments.js +146 -0
- package/dist/tools/office/word-tools/comments.js.map +1 -0
- package/dist/tools/office/word-tools/content.d.ts +7 -0
- package/dist/tools/office/word-tools/content.d.ts.map +1 -0
- package/dist/tools/office/word-tools/content.js +168 -0
- package/dist/tools/office/word-tools/content.js.map +1 -0
- package/dist/tools/office/word-tools/export.d.ts +5 -0
- package/dist/tools/office/word-tools/export.d.ts.map +1 -0
- package/dist/tools/office/word-tools/export.js +73 -0
- package/dist/tools/office/word-tools/export.js.map +1 -0
- package/dist/tools/office/word-tools/formatting.d.ts +6 -0
- package/dist/tools/office/word-tools/formatting.d.ts.map +1 -0
- package/dist/tools/office/word-tools/formatting.js +129 -0
- package/dist/tools/office/word-tools/formatting.js.map +1 -0
- package/dist/tools/office/word-tools/headers-footers.d.ts +6 -0
- package/dist/tools/office/word-tools/headers-footers.d.ts.map +1 -0
- package/dist/tools/office/word-tools/headers-footers.js +117 -0
- package/dist/tools/office/word-tools/headers-footers.js.map +1 -0
- package/dist/tools/office/word-tools/index.d.ts +16 -0
- package/dist/tools/office/word-tools/index.d.ts.map +1 -0
- package/dist/tools/office/word-tools/index.js +45 -0
- package/dist/tools/office/word-tools/index.js.map +1 -0
- package/dist/tools/office/word-tools/launch.d.ts +10 -0
- package/dist/tools/office/word-tools/launch.d.ts.map +1 -0
- package/dist/tools/office/word-tools/launch.js +255 -0
- package/dist/tools/office/word-tools/launch.js.map +1 -0
- package/dist/tools/office/word-tools/lists.d.ts +5 -0
- package/dist/tools/office/word-tools/lists.d.ts.map +1 -0
- package/dist/tools/office/word-tools/lists.js +73 -0
- package/dist/tools/office/word-tools/lists.js.map +1 -0
- package/dist/tools/office/word-tools/navigation.d.ts +5 -0
- package/dist/tools/office/word-tools/navigation.d.ts.map +1 -0
- package/dist/tools/office/word-tools/navigation.js +85 -0
- package/dist/tools/office/word-tools/navigation.js.map +1 -0
- package/dist/tools/office/word-tools/page-setup.d.ts +7 -0
- package/dist/tools/office/word-tools/page-setup.d.ts.map +1 -0
- package/dist/tools/office/word-tools/page-setup.js +152 -0
- package/dist/tools/office/word-tools/page-setup.js.map +1 -0
- package/dist/tools/office/word-tools/tables.d.ts +8 -0
- package/dist/tools/office/word-tools/tables.d.ts.map +1 -0
- package/dist/tools/office/word-tools/tables.js +197 -0
- package/dist/tools/office/word-tools/tables.js.map +1 -0
- package/dist/tools/office/word-tools/text.d.ts +9 -0
- package/dist/tools/office/word-tools/text.d.ts.map +1 -0
- package/dist/tools/office/word-tools/text.js +235 -0
- package/dist/tools/office/word-tools/text.js.map +1 -0
- package/dist/tools/office/word-tools/undo-redo.d.ts +5 -0
- package/dist/tools/office/word-tools/undo-redo.d.ts.map +1 -0
- package/dist/tools/office/word-tools/undo-redo.js +73 -0
- package/dist/tools/office/word-tools/undo-redo.js.map +1 -0
- package/dist/tools/office/word-tools/watermarks.d.ts +5 -0
- package/dist/tools/office/word-tools/watermarks.d.ts.map +1 -0
- package/dist/tools/office/word-tools/watermarks.js +81 -0
- package/dist/tools/office/word-tools/watermarks.js.map +1 -0
- package/dist/tools/office/word-tools.d.ts +3 -0
- package/dist/tools/office/word-tools.d.ts.map +1 -0
- package/dist/tools/office/word-tools.js +3 -0
- package/dist/tools/office/word-tools.js.map +1 -0
- package/dist/tools/registry.d.ts +53 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +278 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/types.d.ts +88 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +19 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/types/index.d.ts +135 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/ui/PlanExecuteView.d.ts +11 -0
- package/dist/ui/PlanExecuteView.d.ts.map +1 -0
- package/dist/ui/PlanExecuteView.js +27 -0
- package/dist/ui/PlanExecuteView.js.map +1 -0
- package/dist/ui/TodoPanel.d.ts +13 -0
- package/dist/ui/TodoPanel.d.ts.map +1 -0
- package/dist/ui/TodoPanel.js +135 -0
- package/dist/ui/TodoPanel.js.map +1 -0
- package/dist/ui/UpdateNotification.d.ts +13 -0
- package/dist/ui/UpdateNotification.d.ts.map +1 -0
- package/dist/ui/UpdateNotification.js +42 -0
- package/dist/ui/UpdateNotification.js.map +1 -0
- package/dist/ui/components/ActivityIndicator.d.ts +25 -0
- package/dist/ui/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/ui/components/ActivityIndicator.js +115 -0
- package/dist/ui/components/ActivityIndicator.js.map +1 -0
- package/dist/ui/components/CommandBrowser.d.ts +10 -0
- package/dist/ui/components/CommandBrowser.d.ts.map +1 -0
- package/dist/ui/components/CommandBrowser.js +53 -0
- package/dist/ui/components/CommandBrowser.js.map +1 -0
- package/dist/ui/components/CustomTextInput.d.ts +13 -0
- package/dist/ui/components/CustomTextInput.d.ts.map +1 -0
- package/dist/ui/components/CustomTextInput.js +245 -0
- package/dist/ui/components/CustomTextInput.js.map +1 -0
- package/dist/ui/components/DocsSearchProgress.d.ts +13 -0
- package/dist/ui/components/DocsSearchProgress.d.ts.map +1 -0
- package/dist/ui/components/DocsSearchProgress.js +37 -0
- package/dist/ui/components/DocsSearchProgress.js.map +1 -0
- package/dist/ui/components/FileBrowser.d.ts +11 -0
- package/dist/ui/components/FileBrowser.d.ts.map +1 -0
- package/dist/ui/components/FileBrowser.js +45 -0
- package/dist/ui/components/FileBrowser.js.map +1 -0
- package/dist/ui/components/LLMSetupWizard.d.ts +8 -0
- package/dist/ui/components/LLMSetupWizard.d.ts.map +1 -0
- package/dist/ui/components/LLMSetupWizard.js +411 -0
- package/dist/ui/components/LLMSetupWizard.js.map +1 -0
- package/dist/ui/components/Logo.d.ts +19 -0
- package/dist/ui/components/Logo.d.ts.map +1 -0
- package/dist/ui/components/Logo.js +101 -0
- package/dist/ui/components/Logo.js.map +1 -0
- package/dist/ui/components/MarkdownRenderer.d.ts +9 -0
- package/dist/ui/components/MarkdownRenderer.d.ts.map +1 -0
- package/dist/ui/components/MarkdownRenderer.js +198 -0
- package/dist/ui/components/MarkdownRenderer.js.map +1 -0
- package/dist/ui/components/ModelSelector.d.ts +8 -0
- package/dist/ui/components/ModelSelector.d.ts.map +1 -0
- package/dist/ui/components/ModelSelector.js +111 -0
- package/dist/ui/components/ModelSelector.js.map +1 -0
- package/dist/ui/components/PlanExecuteApp.d.ts +23 -0
- package/dist/ui/components/PlanExecuteApp.d.ts.map +1 -0
- package/dist/ui/components/PlanExecuteApp.js +1371 -0
- package/dist/ui/components/PlanExecuteApp.js.map +1 -0
- package/dist/ui/components/ProgressBar.d.ts +10 -0
- package/dist/ui/components/ProgressBar.d.ts.map +1 -0
- package/dist/ui/components/ProgressBar.js +26 -0
- package/dist/ui/components/ProgressBar.js.map +1 -0
- package/dist/ui/components/StatusBar.d.ts +23 -0
- package/dist/ui/components/StatusBar.d.ts.map +1 -0
- package/dist/ui/components/StatusBar.js +162 -0
- package/dist/ui/components/StatusBar.js.map +1 -0
- package/dist/ui/components/ThinkingIndicator.d.ts +14 -0
- package/dist/ui/components/ThinkingIndicator.d.ts.map +1 -0
- package/dist/ui/components/ThinkingIndicator.js +63 -0
- package/dist/ui/components/ThinkingIndicator.js.map +1 -0
- package/dist/ui/components/TodoListView.d.ts +11 -0
- package/dist/ui/components/TodoListView.d.ts.map +1 -0
- package/dist/ui/components/TodoListView.js +69 -0
- package/dist/ui/components/TodoListView.js.map +1 -0
- package/dist/ui/components/ToolSelector.d.ts +7 -0
- package/dist/ui/components/ToolSelector.d.ts.map +1 -0
- package/dist/ui/components/ToolSelector.js +111 -0
- package/dist/ui/components/ToolSelector.js.map +1 -0
- package/dist/ui/components/dialogs/ApprovalDialog.d.ts +13 -0
- package/dist/ui/components/dialogs/ApprovalDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/ApprovalDialog.js +173 -0
- package/dist/ui/components/dialogs/ApprovalDialog.js.map +1 -0
- package/dist/ui/components/dialogs/AskUserDialog.d.ts +9 -0
- package/dist/ui/components/dialogs/AskUserDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/AskUserDialog.js +111 -0
- package/dist/ui/components/dialogs/AskUserDialog.js.map +1 -0
- package/dist/ui/components/dialogs/DocsBrowser.d.ts +8 -0
- package/dist/ui/components/dialogs/DocsBrowser.d.ts.map +1 -0
- package/dist/ui/components/dialogs/DocsBrowser.js +127 -0
- package/dist/ui/components/dialogs/DocsBrowser.js.map +1 -0
- package/dist/ui/components/dialogs/SettingsDialog.d.ts +10 -0
- package/dist/ui/components/dialogs/SettingsDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/SettingsDialog.js +563 -0
- package/dist/ui/components/dialogs/SettingsDialog.js.map +1 -0
- package/dist/ui/components/dialogs/index.d.ts +4 -0
- package/dist/ui/components/dialogs/index.d.ts.map +1 -0
- package/dist/ui/components/dialogs/index.js +4 -0
- package/dist/ui/components/dialogs/index.js.map +1 -0
- package/dist/ui/components/index.d.ts +12 -0
- package/dist/ui/components/index.d.ts.map +1 -0
- package/dist/ui/components/index.js +9 -0
- package/dist/ui/components/index.js.map +1 -0
- package/dist/ui/components/panels/LogPanel.d.ts +7 -0
- package/dist/ui/components/panels/LogPanel.d.ts.map +1 -0
- package/dist/ui/components/panels/LogPanel.js +280 -0
- package/dist/ui/components/panels/LogPanel.js.map +1 -0
- package/dist/ui/components/panels/SessionPanel.d.ts +8 -0
- package/dist/ui/components/panels/SessionPanel.d.ts.map +1 -0
- package/dist/ui/components/panels/SessionPanel.js +81 -0
- package/dist/ui/components/panels/SessionPanel.js.map +1 -0
- package/dist/ui/components/panels/index.d.ts +4 -0
- package/dist/ui/components/panels/index.d.ts.map +1 -0
- package/dist/ui/components/panels/index.js +4 -0
- package/dist/ui/components/panels/index.js.map +1 -0
- package/dist/ui/components/views/ChatView.d.ts +12 -0
- package/dist/ui/components/views/ChatView.d.ts.map +1 -0
- package/dist/ui/components/views/ChatView.js +289 -0
- package/dist/ui/components/views/ChatView.js.map +1 -0
- package/dist/ui/components/views/index.d.ts +2 -0
- package/dist/ui/components/views/index.d.ts.map +1 -0
- package/dist/ui/components/views/index.js +2 -0
- package/dist/ui/components/views/index.js.map +1 -0
- package/dist/ui/contexts/TokenContext.d.ts +29 -0
- package/dist/ui/contexts/TokenContext.d.ts.map +1 -0
- package/dist/ui/contexts/TokenContext.js +79 -0
- package/dist/ui/contexts/TokenContext.js.map +1 -0
- package/dist/ui/hooks/atFileProcessor.d.ts +15 -0
- package/dist/ui/hooks/atFileProcessor.d.ts.map +1 -0
- package/dist/ui/hooks/atFileProcessor.js +88 -0
- package/dist/ui/hooks/atFileProcessor.js.map +1 -0
- package/dist/ui/hooks/index.d.ts +8 -0
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +8 -0
- package/dist/ui/hooks/index.js.map +1 -0
- package/dist/ui/hooks/slashCommandProcessor.d.ts +21 -0
- package/dist/ui/hooks/slashCommandProcessor.d.ts.map +1 -0
- package/dist/ui/hooks/slashCommandProcessor.js +100 -0
- package/dist/ui/hooks/slashCommandProcessor.js.map +1 -0
- package/dist/ui/hooks/useCommandBrowserState.d.ts +12 -0
- package/dist/ui/hooks/useCommandBrowserState.d.ts.map +1 -0
- package/dist/ui/hooks/useCommandBrowserState.js +66 -0
- package/dist/ui/hooks/useCommandBrowserState.js.map +1 -0
- package/dist/ui/hooks/useFileBrowserState.d.ts +15 -0
- package/dist/ui/hooks/useFileBrowserState.d.ts.map +1 -0
- package/dist/ui/hooks/useFileBrowserState.js +80 -0
- package/dist/ui/hooks/useFileBrowserState.js.map +1 -0
- package/dist/ui/hooks/useFileList.d.ts +20 -0
- package/dist/ui/hooks/useFileList.d.ts.map +1 -0
- package/dist/ui/hooks/useFileList.js +57 -0
- package/dist/ui/hooks/useFileList.js.map +1 -0
- package/dist/ui/hooks/useInputHistory.d.ts +9 -0
- package/dist/ui/hooks/useInputHistory.d.ts.map +1 -0
- package/dist/ui/hooks/useInputHistory.js +68 -0
- package/dist/ui/hooks/useInputHistory.js.map +1 -0
- package/dist/ui/hooks/usePlanExecution.d.ts +8 -0
- package/dist/ui/hooks/usePlanExecution.d.ts.map +1 -0
- package/dist/ui/hooks/usePlanExecution.js +214 -0
- package/dist/ui/hooks/usePlanExecution.js.map +1 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +7 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/ink-entry.d.ts +3 -0
- package/dist/ui/ink-entry.d.ts.map +1 -0
- package/dist/ui/ink-entry.js +22 -0
- package/dist/ui/ink-entry.js.map +1 -0
- package/dist/utils/env-filter.d.ts +4 -0
- package/dist/utils/env-filter.d.ts.map +1 -0
- package/dist/utils/env-filter.js +101 -0
- package/dist/utils/env-filter.js.map +1 -0
- package/dist/utils/file-system.d.ts +9 -0
- package/dist/utils/file-system.d.ts.map +1 -0
- package/dist/utils/file-system.js +99 -0
- package/dist/utils/file-system.js.map +1 -0
- package/dist/utils/git-utils.d.ts +2 -0
- package/dist/utils/git-utils.d.ts.map +1 -0
- package/dist/utils/git-utils.js +16 -0
- package/dist/utils/git-utils.js.map +1 -0
- package/dist/utils/json-stream-logger.d.ts +74 -0
- package/dist/utils/json-stream-logger.d.ts.map +1 -0
- package/dist/utils/json-stream-logger.js +808 -0
- package/dist/utils/json-stream-logger.js.map +1 -0
- package/dist/utils/logger.d.ts +152 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +1672 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/platform-utils.d.ts +19 -0
- package/dist/utils/platform-utils.d.ts.map +1 -0
- package/dist/utils/platform-utils.js +134 -0
- package/dist/utils/platform-utils.js.map +1 -0
- package/dist/utils/wsl-utils.d.ts +4 -0
- package/dist/utils/wsl-utils.d.ts.map +1 -0
- package/dist/utils/wsl-utils.js +72 -0
- package/dist/utils/wsl-utils.js.map +1 -0
- package/electron.vite.config.ts +63 -0
- package/google374b9eba0c52b043.html +1 -0
- package/package.json +122 -0
- package/src/agents/base/base-agent.ts +159 -0
- package/src/agents/docs-search/index.ts +365 -0
- package/src/agents/index.ts +34 -0
- package/src/agents/planner/index.ts +544 -0
- package/src/cli.ts +277 -0
- package/src/constants.ts +47 -0
- package/src/core/compact/compact-manager.ts +160 -0
- package/src/core/compact/compact-prompts.ts +150 -0
- package/src/core/compact/context-tracker.ts +164 -0
- package/src/core/compact/index.ts +25 -0
- package/src/core/config/config-manager.ts +600 -0
- package/src/core/config/index.ts +5 -0
- package/src/core/docs-manager.ts +678 -0
- package/src/core/llm/index.ts +7 -0
- package/src/core/llm/llm-client.ts +1550 -0
- package/src/core/session/index.ts +5 -0
- package/src/core/session/session-manager.ts +464 -0
- package/src/core/slash-command-handler.ts +410 -0
- package/src/core/usage-tracker.ts +438 -0
- package/src/errors/base.ts +81 -0
- package/src/errors/file.ts +183 -0
- package/src/errors/index.ts +95 -0
- package/src/errors/llm.ts +151 -0
- package/src/errors/network.ts +124 -0
- package/src/errors/validation.ts +111 -0
- package/src/eval/eval-runner.ts +433 -0
- package/src/eval/index.ts +8 -0
- package/src/eval/types.ts +139 -0
- package/src/index.ts +22 -0
- package/src/orchestration/index.ts +30 -0
- package/src/orchestration/plan-executor.ts +652 -0
- package/src/orchestration/types.ts +127 -0
- package/src/orchestration/utils.ts +119 -0
- package/src/orquesta/config-sync.ts +362 -0
- package/src/orquesta/connection.ts +291 -0
- package/src/orquesta/prompt-reporter.ts +147 -0
- package/src/prompts/agents/docs-search-decision.ts +74 -0
- package/src/prompts/agents/docs-search.ts +84 -0
- package/src/prompts/agents/planning.ts +143 -0
- package/src/prompts/index.ts +31 -0
- package/src/prompts/shared/codebase-rules.ts +29 -0
- package/src/prompts/shared/git-rules.ts +94 -0
- package/src/prompts/shared/language-rules.ts +36 -0
- package/src/prompts/shared/tool-usage.ts +72 -0
- package/src/prompts/system/compact.ts +80 -0
- package/src/prompts/system/plan-execute.ts +89 -0
- package/src/setup/first-run-setup.ts +337 -0
- package/src/tools/browser/browser-client.ts +1363 -0
- package/src/tools/browser/browser-tools.ts +1139 -0
- package/src/tools/browser/index.ts +65 -0
- package/src/tools/index.ts +23 -0
- package/src/tools/llm/agents/docs-search-tools.ts +368 -0
- package/src/tools/llm/agents/index.ts +22 -0
- package/src/tools/llm/index.ts +11 -0
- package/src/tools/llm/simple/ask-user-tool.ts +25 -0
- package/src/tools/llm/simple/background-bash-tool.ts +443 -0
- package/src/tools/llm/simple/background-powershell-tool.ts +421 -0
- package/src/tools/llm/simple/bash-tool.ts +238 -0
- package/src/tools/llm/simple/docs-search-agent-tool.ts +146 -0
- package/src/tools/llm/simple/file-tools.ts +1051 -0
- package/src/tools/llm/simple/final-response-tool.ts +180 -0
- package/src/tools/llm/simple/index.ts +42 -0
- package/src/tools/llm/simple/planning-tools.ts +143 -0
- package/src/tools/llm/simple/powershell-tool.ts +241 -0
- package/src/tools/llm/simple/simple-tool-executor.ts +279 -0
- package/src/tools/llm/simple/todo-tools.ts +207 -0
- package/src/tools/llm/simple/user-interaction-tools.ts +277 -0
- package/src/tools/office/common/constants.ts +335 -0
- package/src/tools/office/common/index.ts +133 -0
- package/src/tools/office/common/types.ts +286 -0
- package/src/tools/office/common/utils.ts +116 -0
- package/src/tools/office/excel-client.ts +1336 -0
- package/src/tools/office/excel-tools/cells.ts +359 -0
- package/src/tools/office/excel-tools/charts.ts +166 -0
- package/src/tools/office/excel-tools/comments.ts +155 -0
- package/src/tools/office/excel-tools/data-ops.ts +349 -0
- package/src/tools/office/excel-tools/export.ts +105 -0
- package/src/tools/office/excel-tools/formatting.ts +357 -0
- package/src/tools/office/excel-tools/index.ts +55 -0
- package/src/tools/office/excel-tools/launch.ts +303 -0
- package/src/tools/office/excel-tools/media.ts +117 -0
- package/src/tools/office/excel-tools/named-ranges.ts +148 -0
- package/src/tools/office/excel-tools/protection.ts +105 -0
- package/src/tools/office/excel-tools/rows-columns.ts +386 -0
- package/src/tools/office/excel-tools/sheets.ts +228 -0
- package/src/tools/office/excel-tools/validation.ts +226 -0
- package/src/tools/office/excel-tools.ts +9 -0
- package/src/tools/office/index.ts +259 -0
- package/src/tools/office/office-client-base.ts +242 -0
- package/src/tools/office/office-client.ts +377 -0
- package/src/tools/office/powerpoint-client.ts +1498 -0
- package/src/tools/office/powerpoint-tools/effects.ts +315 -0
- package/src/tools/office/powerpoint-tools/export.ts +138 -0
- package/src/tools/office/powerpoint-tools/index.ts +45 -0
- package/src/tools/office/powerpoint-tools/launch.ts +263 -0
- package/src/tools/office/powerpoint-tools/media.ts +291 -0
- package/src/tools/office/powerpoint-tools/notes.ts +220 -0
- package/src/tools/office/powerpoint-tools/sections.ts +140 -0
- package/src/tools/office/powerpoint-tools/shapes.ts +870 -0
- package/src/tools/office/powerpoint-tools/slides.ts +350 -0
- package/src/tools/office/powerpoint-tools/tables.ts +182 -0
- package/src/tools/office/powerpoint-tools/text.ts +473 -0
- package/src/tools/office/powerpoint-tools.ts +9 -0
- package/src/tools/office/word-client.ts +1697 -0
- package/src/tools/office/word-tools/bookmarks.ts +186 -0
- package/src/tools/office/word-tools/comments.ts +185 -0
- package/src/tools/office/word-tools/content.ts +229 -0
- package/src/tools/office/word-tools/export.ts +97 -0
- package/src/tools/office/word-tools/formatting.ts +161 -0
- package/src/tools/office/word-tools/headers-footers.ts +155 -0
- package/src/tools/office/word-tools/index.ts +57 -0
- package/src/tools/office/word-tools/launch.ts +312 -0
- package/src/tools/office/word-tools/lists.ts +97 -0
- package/src/tools/office/word-tools/navigation.ts +114 -0
- package/src/tools/office/word-tools/page-setup.ts +195 -0
- package/src/tools/office/word-tools/tables.ts +262 -0
- package/src/tools/office/word-tools/text.ts +294 -0
- package/src/tools/office/word-tools/undo-redo.ts +97 -0
- package/src/tools/office/word-tools/watermarks.ts +105 -0
- package/src/tools/office/word-tools.ts +9 -0
- package/src/tools/registry.ts +527 -0
- package/src/tools/types.ts +231 -0
- package/src/types/index.ts +201 -0
- package/src/ui/PlanExecuteView.tsx +114 -0
- package/src/ui/TodoPanel.tsx +240 -0
- package/src/ui/UpdateNotification.tsx +105 -0
- package/src/ui/components/ActivityIndicator.tsx +234 -0
- package/src/ui/components/CommandBrowser.tsx +114 -0
- package/src/ui/components/CustomTextInput.tsx +389 -0
- package/src/ui/components/DocsSearchProgress.tsx +85 -0
- package/src/ui/components/FileBrowser.tsx +93 -0
- package/src/ui/components/LLMSetupWizard.tsx +686 -0
- package/src/ui/components/Logo.tsx +203 -0
- package/src/ui/components/MarkdownRenderer.tsx +358 -0
- package/src/ui/components/ModelSelector.tsx +203 -0
- package/src/ui/components/PlanExecuteApp.tsx +2075 -0
- package/src/ui/components/ProgressBar.tsx +51 -0
- package/src/ui/components/StatusBar.tsx +302 -0
- package/src/ui/components/ThinkingIndicator.tsx +120 -0
- package/src/ui/components/TodoListView.tsx +140 -0
- package/src/ui/components/ToolSelector.tsx +215 -0
- package/src/ui/components/dialogs/ApprovalDialog.tsx +259 -0
- package/src/ui/components/dialogs/AskUserDialog.tsx +159 -0
- package/src/ui/components/dialogs/DocsBrowser.tsx +222 -0
- package/src/ui/components/dialogs/SettingsDialog.tsx +939 -0
- package/src/ui/components/dialogs/index.ts +13 -0
- package/src/ui/components/index.ts +27 -0
- package/src/ui/components/panels/LogPanel.tsx +385 -0
- package/src/ui/components/panels/SessionPanel.tsx +146 -0
- package/src/ui/components/panels/index.ts +13 -0
- package/src/ui/components/views/ChatView.tsx +447 -0
- package/src/ui/components/views/index.ts +5 -0
- package/src/ui/contexts/TokenContext.tsx +139 -0
- package/src/ui/hooks/atFileProcessor.ts +167 -0
- package/src/ui/hooks/index.ts +11 -0
- package/src/ui/hooks/slashCommandProcessor.ts +174 -0
- package/src/ui/hooks/useCommandBrowserState.ts +97 -0
- package/src/ui/hooks/useFileBrowserState.ts +116 -0
- package/src/ui/hooks/useFileList.ts +132 -0
- package/src/ui/hooks/useInputHistory.ts +89 -0
- package/src/ui/hooks/usePlanExecution.ts +339 -0
- package/src/ui/index.ts +10 -0
- package/src/ui/ink-entry.tsx +36 -0
- package/src/utils/env-filter.ts +164 -0
- package/src/utils/file-system.ts +133 -0
- package/src/utils/git-utils.ts +30 -0
- package/src/utils/json-stream-logger.ts +1259 -0
- package/src/utils/logger.ts +2767 -0
- package/src/utils/platform-utils.ts +256 -0
- package/src/utils/wsl-utils.ts +113 -0
- package/tsconfig.electron.json +39 -0
- package/tsconfig.json +64 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const COMPACT_SYSTEM_PROMPT = `# Role
|
|
2
|
+
|
|
3
|
+
You are a "Technical Context Compressor" for Local CLI, an AI coding assistant. Your task is to compress a conversation into a minimal, high-density state representation that preserves ALL critical context for seamless continuation.
|
|
4
|
+
|
|
5
|
+
# Objective
|
|
6
|
+
|
|
7
|
+
Reduce token usage by 70-90% while preserving 100% of:
|
|
8
|
+
- What the user is building and why
|
|
9
|
+
- All technical decisions made
|
|
10
|
+
- Current progress and blockers
|
|
11
|
+
- Files modified or created
|
|
12
|
+
- Constraints discovered (what failed and why)
|
|
13
|
+
|
|
14
|
+
# CRITICAL: Preserve These Exactly
|
|
15
|
+
|
|
16
|
+
1. **Active TODO Items**: Tasks in progress or pending - these MUST appear in output
|
|
17
|
+
2. **File Paths**: All file paths mentioned (created, modified, discussed)
|
|
18
|
+
3. **Error Patterns**: Errors encountered and their solutions
|
|
19
|
+
4. **User Preferences**: Coding style, language preferences, specific requirements
|
|
20
|
+
|
|
21
|
+
# DISCARD
|
|
22
|
+
|
|
23
|
+
- Greetings, thanks, confirmations ("Sure!", "Great!", "I'll help you")
|
|
24
|
+
- Redundant explanations of the same concept
|
|
25
|
+
- Failed code attempts (UNLESS they reveal constraints)
|
|
26
|
+
- Tool call details (keep only results)
|
|
27
|
+
- Intermediate reasoning steps
|
|
28
|
+
|
|
29
|
+
# Output Format
|
|
30
|
+
|
|
31
|
+
You MUST output valid markdown following this exact structure:
|
|
32
|
+
|
|
33
|
+
## Session Context
|
|
34
|
+
|
|
35
|
+
### Goal
|
|
36
|
+
[One sentence: What is the user building?]
|
|
37
|
+
|
|
38
|
+
### Status
|
|
39
|
+
[Current state: e.g., "Implementing compact feature, 3/5 tasks complete"]
|
|
40
|
+
|
|
41
|
+
### Key Decisions
|
|
42
|
+
- [Decision 1]: [Reason]
|
|
43
|
+
- [Decision 2]: [Reason]
|
|
44
|
+
|
|
45
|
+
### Constraints Learned
|
|
46
|
+
- [What failed] -> [Why] -> [Solution chosen]
|
|
47
|
+
|
|
48
|
+
### Files Modified
|
|
49
|
+
- \`path/to/file.ts\`: [What was done]
|
|
50
|
+
|
|
51
|
+
### Active Tasks
|
|
52
|
+
- [ ] [Task 1 - specific details]
|
|
53
|
+
- [x] [Task 2 - completed]
|
|
54
|
+
- [ ] [Task 3 - in progress]
|
|
55
|
+
|
|
56
|
+
### Technical Notes
|
|
57
|
+
[Critical code patterns, API details, or implementation notes to remember]
|
|
58
|
+
|
|
59
|
+
### Next Steps
|
|
60
|
+
1. [Immediate next action]
|
|
61
|
+
2. [Following action]
|
|
62
|
+
|
|
63
|
+
# Rules
|
|
64
|
+
|
|
65
|
+
- Maximum 2000 tokens output
|
|
66
|
+
- Use bullet points, not paragraphs
|
|
67
|
+
- Include specific file paths, function names, variable names
|
|
68
|
+
- If code is critical, include it; otherwise summarize intent
|
|
69
|
+
- NEVER use generic phrases like "discussed various options"
|
|
70
|
+
- Output in the same language as the conversation (Korean if Korean, English if English)
|
|
71
|
+
`;
|
|
72
|
+
export default COMPACT_SYSTEM_PROMPT;
|
|
73
|
+
//# sourceMappingURL=compact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact.js","sourceRoot":"","sources":["../../../src/prompts/system/compact.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEpC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-execute.d.ts","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,0BAA0B,QA6EtC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { LANGUAGE_PRIORITY_RULE } from '../shared/language-rules.js';
|
|
2
|
+
import { AVAILABLE_TOOLS_WITH_TODO, TOOL_REASON_GUIDE } from '../shared/tool-usage.js';
|
|
3
|
+
import { CODEBASE_FIRST_RULE } from '../shared/codebase-rules.js';
|
|
4
|
+
export const PLAN_EXECUTE_SYSTEM_PROMPT = `You are an AI assistant executing a TODO-based plan.
|
|
5
|
+
|
|
6
|
+
${LANGUAGE_PRIORITY_RULE}
|
|
7
|
+
|
|
8
|
+
## TODO Workflow
|
|
9
|
+
|
|
10
|
+
1. Work through TODOs systematically
|
|
11
|
+
2. Update status using \`write_todos\` (include ALL todos with current status)
|
|
12
|
+
3. **DONE when ALL TODOs are "completed"**
|
|
13
|
+
|
|
14
|
+
**CRITICAL: Keep TODO status in sync with your actual progress!**
|
|
15
|
+
- When starting a task → mark it "in_progress" IMMEDIATELY
|
|
16
|
+
- When finishing a task → mark it "completed" IMMEDIATELY
|
|
17
|
+
- The user sees the TODO list in real-time - mismatched status is confusing
|
|
18
|
+
- Call \`write_todos\` FREQUENTLY, not just at the end
|
|
19
|
+
|
|
20
|
+
${AVAILABLE_TOOLS_WITH_TODO}
|
|
21
|
+
|
|
22
|
+
${TOOL_REASON_GUIDE}
|
|
23
|
+
|
|
24
|
+
## Execution Rules
|
|
25
|
+
|
|
26
|
+
1. **Read before modify** - Always read existing code first
|
|
27
|
+
2. **Use tools** - Perform actual work, don't just describe
|
|
28
|
+
3. **Retry on error** - Up to 3 attempts before marking "failed"
|
|
29
|
+
4. **Stay focused** - Only work on TODOs, no unrelated features
|
|
30
|
+
|
|
31
|
+
${CODEBASE_FIRST_RULE}
|
|
32
|
+
|
|
33
|
+
## CRITICAL: Tool Error Handling
|
|
34
|
+
|
|
35
|
+
**If a tool returns an error, you MUST retry the same tool with corrected parameters.**
|
|
36
|
+
|
|
37
|
+
1. STOP - Read the error message carefully
|
|
38
|
+
2. Investigate - Use \`read_file\` to check actual file content
|
|
39
|
+
3. **RETRY THE SAME TOOL** with corrected parameters (DO NOT skip or move on)
|
|
40
|
+
4. Repeat until success or 3 failures
|
|
41
|
+
|
|
42
|
+
**You are NOT allowed to:**
|
|
43
|
+
- Skip the failed tool and move to next task
|
|
44
|
+
- Say "I'll try a different approach" without actually retrying
|
|
45
|
+
- Mark TODO as complete if the tool failed
|
|
46
|
+
|
|
47
|
+
Example flow:
|
|
48
|
+
1. \`edit_file\` fails: "Line 77 content does not match"
|
|
49
|
+
2. Call \`read_file\` to see actual content
|
|
50
|
+
3. **Call \`edit_file\` again** with correct \`old_string\`
|
|
51
|
+
4. Only proceed after edit succeeds
|
|
52
|
+
|
|
53
|
+
## CRITICAL: When to Respond
|
|
54
|
+
|
|
55
|
+
**ONLY respond when ALL TODOs are "completed" or "failed".**
|
|
56
|
+
|
|
57
|
+
- Responding early = execution ends prematurely
|
|
58
|
+
- Use \`tell_to_user\` to communicate progress during execution
|
|
59
|
+
- \`write_todos\` only updates internal state
|
|
60
|
+
|
|
61
|
+
**Before final response, verify:**
|
|
62
|
+
- All TODOs completed?
|
|
63
|
+
- All tool calls successful?
|
|
64
|
+
- User's request fulfilled?
|
|
65
|
+
|
|
66
|
+
## CRITICAL: Final Response
|
|
67
|
+
|
|
68
|
+
Your final response MUST contain the **actual answer or result**:
|
|
69
|
+
- Question → Answer with information found
|
|
70
|
+
- Task → Summarize what was done
|
|
71
|
+
|
|
72
|
+
**DO NOT** just say "Task complete" or give task statistics.
|
|
73
|
+
|
|
74
|
+
Example:
|
|
75
|
+
- User: "What's the project name?" → "This project is **LOCAL-CLI**."
|
|
76
|
+
- User: "Add a debug function" → "Added debug function to logger.ts."
|
|
77
|
+
|
|
78
|
+
## Loop Detection
|
|
79
|
+
|
|
80
|
+
If TODO context keeps repeating but work is done → IMMEDIATELY mark all as "completed".
|
|
81
|
+
`;
|
|
82
|
+
export default PLAN_EXECUTE_SYSTEM_PROMPT;
|
|
83
|
+
//# sourceMappingURL=plan-execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-execute.js","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,0BAA0B,GAAG;;EAExC,sBAAsB;;;;;;;;;;;;;;EActB,yBAAyB;;EAEzB,iBAAiB;;;;;;;;;EASjB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDpB,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface FirstRunResult {
|
|
2
|
+
connected: boolean;
|
|
3
|
+
organizationName?: string;
|
|
4
|
+
projectName?: string;
|
|
5
|
+
configsSynced?: number;
|
|
6
|
+
skipped?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function needsFirstRunSetup(): boolean;
|
|
9
|
+
export declare function runFirstRunSetup(token?: string): Promise<FirstRunResult>;
|
|
10
|
+
export declare function connectWithToken(token: string, projectId?: string): Promise<FirstRunResult>;
|
|
11
|
+
export declare function switchProject(projectId?: string): Promise<boolean>;
|
|
12
|
+
export declare function disconnectFromOrquesta(): Promise<void>;
|
|
13
|
+
export declare function showConnectionStatus(): void;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=first-run-setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"first-run-setup.d.ts","sourceRoot":"","sources":["../../src/setup/first-run-setup.ts"],"names":[],"mappings":"AAYA,UAAU,cAAc;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAaD,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAOD,wBAAsB,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAQ9E;AAMD,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAsIjG;AAKD,wBAAsB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAgGxE;AAKD,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC,CAsB5D;AAKD,wBAAgB,oBAAoB,IAAI,IAAI,CAe3C"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import ora from 'ora';
|
|
3
|
+
import { configManager } from '../core/config/config-manager.js';
|
|
4
|
+
import { syncOrquestaConfigs, fetchOrquestaProjects } from '../orquesta/config-sync.js';
|
|
5
|
+
export function needsFirstRunSetup() {
|
|
6
|
+
return !configManager.hasEndpoints() && !configManager.hasOrquestaConnection();
|
|
7
|
+
}
|
|
8
|
+
export async function runFirstRunSetup(token) {
|
|
9
|
+
if (token) {
|
|
10
|
+
return await connectWithToken(token);
|
|
11
|
+
}
|
|
12
|
+
return { connected: false, skipped: true };
|
|
13
|
+
}
|
|
14
|
+
export async function connectWithToken(token, projectId) {
|
|
15
|
+
const spinner = ora({
|
|
16
|
+
text: chalk.cyan('Validating token...'),
|
|
17
|
+
color: 'cyan',
|
|
18
|
+
}).start();
|
|
19
|
+
try {
|
|
20
|
+
const projectsData = await fetchOrquestaProjects(token);
|
|
21
|
+
if (!projectsData) {
|
|
22
|
+
spinner.fail(chalk.red('Invalid token or failed to fetch projects'));
|
|
23
|
+
return { connected: false };
|
|
24
|
+
}
|
|
25
|
+
const { organization, projects } = projectsData;
|
|
26
|
+
if (projects.length === 0) {
|
|
27
|
+
spinner.fail(chalk.red('No projects found in organization'));
|
|
28
|
+
return { connected: false };
|
|
29
|
+
}
|
|
30
|
+
spinner.succeed(chalk.green(`Connected to organization: ${organization.name}`));
|
|
31
|
+
let selectedProject;
|
|
32
|
+
if (projectId) {
|
|
33
|
+
const found = projects.find((p) => p.id === projectId);
|
|
34
|
+
if (!found) {
|
|
35
|
+
console.log(chalk.red(`Project ID ${projectId} not found in organization`));
|
|
36
|
+
return { connected: false };
|
|
37
|
+
}
|
|
38
|
+
selectedProject = found;
|
|
39
|
+
}
|
|
40
|
+
else if (projects.length === 1) {
|
|
41
|
+
selectedProject = projects[0];
|
|
42
|
+
console.log(chalk.cyan(` Auto-selected project: ${selectedProject.name}`));
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
console.log();
|
|
46
|
+
console.log(chalk.cyan(' Select a project to work with:'));
|
|
47
|
+
console.log();
|
|
48
|
+
projects.forEach((project, index) => {
|
|
49
|
+
console.log(chalk.white(` ${index + 1}. ${project.name}`));
|
|
50
|
+
if (project.description) {
|
|
51
|
+
console.log(chalk.dim(` ${project.description}`));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
console.log();
|
|
55
|
+
console.log(chalk.dim(` Enter project number (1-${projects.length}), or press Enter for ${projects[0].name}:`));
|
|
56
|
+
const readline = await import('readline');
|
|
57
|
+
const rl = readline.createInterface({
|
|
58
|
+
input: process.stdin,
|
|
59
|
+
output: process.stdout,
|
|
60
|
+
});
|
|
61
|
+
const answer = await new Promise((resolve) => {
|
|
62
|
+
rl.question(chalk.cyan(' > '), (ans) => {
|
|
63
|
+
rl.close();
|
|
64
|
+
resolve(ans.trim());
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
if (!answer) {
|
|
68
|
+
selectedProject = projects[0];
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const num = parseInt(answer, 10);
|
|
72
|
+
if (isNaN(num) || num < 1 || num > projects.length) {
|
|
73
|
+
console.log(chalk.red(`Invalid selection. Using ${projects[0].name}`));
|
|
74
|
+
selectedProject = projects[0];
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
selectedProject = projects[num - 1];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
console.log(chalk.green(` Selected project: ${selectedProject.name}`));
|
|
82
|
+
await configManager.setOrquestaConfig({
|
|
83
|
+
token,
|
|
84
|
+
organizationId: organization.id,
|
|
85
|
+
organizationName: organization.name,
|
|
86
|
+
projectId: selectedProject.id,
|
|
87
|
+
projectName: selectedProject.name,
|
|
88
|
+
autoSync: true,
|
|
89
|
+
connectedAt: new Date().toISOString(),
|
|
90
|
+
});
|
|
91
|
+
spinner.start(chalk.cyan('Syncing LLM configurations...'));
|
|
92
|
+
const syncResult = await syncOrquestaConfigs();
|
|
93
|
+
if (syncResult.success) {
|
|
94
|
+
const total = syncResult.added + syncResult.updated;
|
|
95
|
+
if (total > 0) {
|
|
96
|
+
spinner.succeed(chalk.green(`Synced ${total} LLM configuration(s) (${syncResult.added} new, ${syncResult.updated} updated)`));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
spinner.info(chalk.yellow('No LLM configurations found in dashboard. Use /config to add endpoints.'));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
spinner.warn(chalk.yellow(`Sync warning: ${syncResult.error}`));
|
|
104
|
+
}
|
|
105
|
+
console.log();
|
|
106
|
+
console.log(chalk.cyan(' You are now connected to Orquesta!'));
|
|
107
|
+
console.log(chalk.dim(` Organization: ${organization.name}`));
|
|
108
|
+
console.log(chalk.dim(` Project: ${selectedProject.name}`));
|
|
109
|
+
console.log(chalk.dim(` Your prompts and configs will sync with the dashboard.`));
|
|
110
|
+
console.log();
|
|
111
|
+
console.log(chalk.dim(` Use --switch-project to change projects`));
|
|
112
|
+
console.log();
|
|
113
|
+
return {
|
|
114
|
+
connected: true,
|
|
115
|
+
organizationName: organization.name,
|
|
116
|
+
projectName: selectedProject.name,
|
|
117
|
+
configsSynced: syncResult.added + syncResult.updated,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
spinner.fail(chalk.red('Failed to connect to Orquesta'));
|
|
122
|
+
console.error(chalk.red(error instanceof Error ? error.message : String(error)));
|
|
123
|
+
return { connected: false };
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export async function switchProject(projectId) {
|
|
127
|
+
const orquestaConfig = configManager.getOrquestaConfig();
|
|
128
|
+
if (!orquestaConfig?.token) {
|
|
129
|
+
console.log(chalk.yellow('Not connected to Orquesta.'));
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
const spinner = ora({
|
|
133
|
+
text: chalk.cyan('Fetching projects...'),
|
|
134
|
+
color: 'cyan',
|
|
135
|
+
}).start();
|
|
136
|
+
try {
|
|
137
|
+
const projectsData = await fetchOrquestaProjects(orquestaConfig.token);
|
|
138
|
+
if (!projectsData) {
|
|
139
|
+
spinner.fail(chalk.red('Failed to fetch projects'));
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
const { organization, projects } = projectsData;
|
|
143
|
+
spinner.stop();
|
|
144
|
+
if (projects.length === 0) {
|
|
145
|
+
console.log(chalk.red('No projects found in organization'));
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
let selectedProject;
|
|
149
|
+
if (projectId) {
|
|
150
|
+
const found = projects.find((p) => p.id === projectId);
|
|
151
|
+
if (!found) {
|
|
152
|
+
console.log(chalk.red(`Project ID ${projectId} not found in organization`));
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
selectedProject = found;
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
console.log();
|
|
159
|
+
console.log(chalk.cyan(` Organization: ${organization.name}`));
|
|
160
|
+
console.log(chalk.cyan(` Current project: ${orquestaConfig.projectName || 'None'}`));
|
|
161
|
+
console.log();
|
|
162
|
+
console.log(chalk.cyan(' Select a project:'));
|
|
163
|
+
console.log();
|
|
164
|
+
projects.forEach((project, index) => {
|
|
165
|
+
const current = project.id === orquestaConfig.projectId ? chalk.green(' (current)') : '';
|
|
166
|
+
console.log(chalk.white(` ${index + 1}. ${project.name}${current}`));
|
|
167
|
+
if (project.description) {
|
|
168
|
+
console.log(chalk.dim(` ${project.description}`));
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
console.log();
|
|
172
|
+
const readline = await import('readline');
|
|
173
|
+
const rl = readline.createInterface({
|
|
174
|
+
input: process.stdin,
|
|
175
|
+
output: process.stdout,
|
|
176
|
+
});
|
|
177
|
+
const answer = await new Promise((resolve) => {
|
|
178
|
+
rl.question(chalk.cyan(` Enter project number (1-${projects.length}): `), (ans) => {
|
|
179
|
+
rl.close();
|
|
180
|
+
resolve(ans.trim());
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
const num = parseInt(answer, 10);
|
|
184
|
+
if (isNaN(num) || num < 1 || num > projects.length) {
|
|
185
|
+
console.log(chalk.red('Invalid selection'));
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
188
|
+
selectedProject = projects[num - 1];
|
|
189
|
+
}
|
|
190
|
+
await configManager.setOrquestaConfig({
|
|
191
|
+
...orquestaConfig,
|
|
192
|
+
projectId: selectedProject.id,
|
|
193
|
+
projectName: selectedProject.name,
|
|
194
|
+
});
|
|
195
|
+
console.log(chalk.green(` Switched to project: ${selectedProject.name}`));
|
|
196
|
+
return true;
|
|
197
|
+
}
|
|
198
|
+
catch (error) {
|
|
199
|
+
spinner.fail(chalk.red('Failed to switch project'));
|
|
200
|
+
console.error(chalk.red(error instanceof Error ? error.message : String(error)));
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export async function disconnectFromOrquesta() {
|
|
205
|
+
const orquestaConfig = configManager.getOrquestaConfig();
|
|
206
|
+
if (!orquestaConfig?.token) {
|
|
207
|
+
console.log(chalk.yellow('Not connected to Orquesta.'));
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const spinner = ora({
|
|
211
|
+
text: chalk.cyan('Disconnecting from Orquesta...'),
|
|
212
|
+
color: 'cyan',
|
|
213
|
+
}).start();
|
|
214
|
+
try {
|
|
215
|
+
await configManager.clearOrquestaConnection();
|
|
216
|
+
spinner.succeed(chalk.green('Disconnected from Orquesta'));
|
|
217
|
+
console.log(chalk.dim('Local LLM configurations are preserved.'));
|
|
218
|
+
}
|
|
219
|
+
catch (error) {
|
|
220
|
+
spinner.fail(chalk.red('Failed to disconnect'));
|
|
221
|
+
console.error(chalk.red(error instanceof Error ? error.message : String(error)));
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
export function showConnectionStatus() {
|
|
225
|
+
const orquestaConfig = configManager.getOrquestaConfig();
|
|
226
|
+
if (!orquestaConfig?.token) {
|
|
227
|
+
console.log(chalk.yellow('Not connected to Orquesta'));
|
|
228
|
+
console.log(chalk.dim('Run: orquesta --token <token> to connect'));
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
console.log(chalk.green('Connected to Orquesta'));
|
|
232
|
+
console.log(chalk.dim(` Organization: ${orquestaConfig.organizationName || 'Unknown'}`));
|
|
233
|
+
console.log(chalk.dim(` Project: ${orquestaConfig.projectName || 'Unknown'}`));
|
|
234
|
+
console.log(chalk.dim(` Connected: ${orquestaConfig.connectedAt ? new Date(orquestaConfig.connectedAt).toLocaleString() : 'Unknown'}`));
|
|
235
|
+
console.log(chalk.dim(` Last sync: ${orquestaConfig.lastSyncAt ? new Date(orquestaConfig.lastSyncAt).toLocaleString() : 'Never'}`));
|
|
236
|
+
console.log(chalk.dim(` Auto-sync: ${orquestaConfig.autoSync !== false ? 'Enabled' : 'Disabled'}`));
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=first-run-setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"first-run-setup.js","sourceRoot":"","sources":["../../src/setup/first-run-setup.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAqBxF,MAAM,UAAU,kBAAkB;IAChC,OAAO,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;AACjF,CAAC;AAOD,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,KAAc;IAEnD,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAGD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7C,CAAC;AAMD,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,KA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AC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACrI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,cAAc,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;AACvG,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
interface BrowserResponse {
|
|
2
|
+
success: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
details?: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
interface HealthResponse extends BrowserResponse {
|
|
9
|
+
status: string;
|
|
10
|
+
version: string;
|
|
11
|
+
browser: {
|
|
12
|
+
active: boolean;
|
|
13
|
+
type: string | null;
|
|
14
|
+
chrome_available: boolean;
|
|
15
|
+
edge_available: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
interface ScreenshotResponse extends BrowserResponse {
|
|
19
|
+
image?: string;
|
|
20
|
+
format?: string;
|
|
21
|
+
encoding?: string;
|
|
22
|
+
url?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
interface NavigateResponse extends BrowserResponse {
|
|
26
|
+
url?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
}
|
|
29
|
+
interface PageInfoResponse extends BrowserResponse {
|
|
30
|
+
url?: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
html?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ConsoleLogEntry {
|
|
35
|
+
level: string;
|
|
36
|
+
message: string;
|
|
37
|
+
timestamp: number;
|
|
38
|
+
}
|
|
39
|
+
interface ConsoleResponse extends BrowserResponse {
|
|
40
|
+
logs?: ConsoleLogEntry[];
|
|
41
|
+
count?: number;
|
|
42
|
+
}
|
|
43
|
+
interface NetworkLogEntry {
|
|
44
|
+
type: 'request' | 'response';
|
|
45
|
+
url: string;
|
|
46
|
+
method?: string;
|
|
47
|
+
status?: number;
|
|
48
|
+
statusText?: string;
|
|
49
|
+
mimeType?: string;
|
|
50
|
+
timestamp: number;
|
|
51
|
+
requestId: string;
|
|
52
|
+
}
|
|
53
|
+
interface NetworkResponse extends BrowserResponse {
|
|
54
|
+
logs?: NetworkLogEntry[];
|
|
55
|
+
count?: number;
|
|
56
|
+
}
|
|
57
|
+
declare class BrowserClient {
|
|
58
|
+
private cdp;
|
|
59
|
+
private browserProcess;
|
|
60
|
+
private platform;
|
|
61
|
+
private cdpPort;
|
|
62
|
+
private browserType;
|
|
63
|
+
private screenshotDir;
|
|
64
|
+
private consoleLogs;
|
|
65
|
+
private networkLogs;
|
|
66
|
+
constructor();
|
|
67
|
+
private getCDPUrl;
|
|
68
|
+
getScreenshotDir(): string;
|
|
69
|
+
private findBrowserPath;
|
|
70
|
+
private findChromePath;
|
|
71
|
+
private findEdgePath;
|
|
72
|
+
private killExistingBrowser;
|
|
73
|
+
private isCDPAvailable;
|
|
74
|
+
private getTargets;
|
|
75
|
+
isRunning(): Promise<boolean>;
|
|
76
|
+
getHealth(): Promise<HealthResponse | null>;
|
|
77
|
+
startServer(): Promise<boolean>;
|
|
78
|
+
stopServer(): Promise<boolean>;
|
|
79
|
+
private setupLogging;
|
|
80
|
+
private getCurrentPageInfo;
|
|
81
|
+
launch(options?: {
|
|
82
|
+
headless?: boolean;
|
|
83
|
+
browser?: 'chrome' | 'edge';
|
|
84
|
+
}): Promise<BrowserResponse>;
|
|
85
|
+
close(): Promise<BrowserResponse>;
|
|
86
|
+
navigate(url: string): Promise<NavigateResponse>;
|
|
87
|
+
screenshot(fullPage?: boolean): Promise<ScreenshotResponse>;
|
|
88
|
+
click(selector: string): Promise<BrowserResponse>;
|
|
89
|
+
fill(selector: string, value: string): Promise<BrowserResponse>;
|
|
90
|
+
getText(selector: string): Promise<BrowserResponse>;
|
|
91
|
+
getPageInfo(): Promise<PageInfoResponse>;
|
|
92
|
+
getHtml(): Promise<PageInfoResponse>;
|
|
93
|
+
executeScript(script: string): Promise<BrowserResponse>;
|
|
94
|
+
getConsole(): Promise<ConsoleResponse>;
|
|
95
|
+
waitFor(selector: string, timeout?: number): Promise<BrowserResponse>;
|
|
96
|
+
getNetwork(): Promise<NetworkResponse>;
|
|
97
|
+
focus(): Promise<BrowserResponse>;
|
|
98
|
+
pressKey(key: string, selector?: string): Promise<BrowserResponse>;
|
|
99
|
+
type(text: string, selector?: string): Promise<BrowserResponse>;
|
|
100
|
+
isBrowserActive(): Promise<boolean>;
|
|
101
|
+
saveScreenshot(base64Image: string, prefix?: string): string;
|
|
102
|
+
getServerExePath(): string | null;
|
|
103
|
+
getServerUrl(): string;
|
|
104
|
+
}
|
|
105
|
+
export declare const browserClient: BrowserClient;
|
|
106
|
+
export type { BrowserResponse, HealthResponse, ScreenshotResponse, NavigateResponse, PageInfoResponse, ConsoleResponse, NetworkResponse };
|
|
107
|
+
//# sourceMappingURL=browser-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-client.d.ts","sourceRoot":"","sources":["../../../src/tools/browser/browser-client.ts"],"names":[],"mappings":"AAyBA,UAAU,eAAe;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,UAAU,cAAe,SAAQ,eAAe;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,EAAE,M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