orquesta-cli 0.1.12
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/CLAUDE.md +199 -0
- package/LICENSE +21 -0
- package/README.md +280 -0
- package/SECURITY.md +290 -0
- package/TEST_LOCAL.md +245 -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 +144 -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 +44 -0
- package/dist/core/config/config-manager.d.ts.map +1 -0
- package/dist/core/config/config-manager.js +259 -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/git-auto-updater.d.ts +58 -0
- package/dist/core/git-auto-updater.d.ts.map +1 -0
- package/dist/core/git-auto-updater.js +374 -0
- package/dist/core/git-auto-updater.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 +309 -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/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/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/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 +126 -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 +29 -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 +192 -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 +55 -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 +1324 -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 +201 -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 +460 -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 +456 -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/connection.ts +291 -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/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 +181 -0
- package/src/ui/PlanExecuteView.tsx +119 -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 +333 -0
- package/src/ui/components/Logo.tsx +125 -0
- package/src/ui/components/MarkdownRenderer.tsx +358 -0
- package/src/ui/components/ModelSelector.tsx +203 -0
- package/src/ui/components/PlanExecuteApp.tsx +2007 -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,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Planning Agent Prompt
|
|
3
|
+
*
|
|
4
|
+
* Decides whether to create a TODO list or respond directly.
|
|
5
|
+
* - Implementation tasks → use create_todos tool
|
|
6
|
+
* - Simple questions → respond with text directly
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { LANGUAGE_PRIORITY_SHORT } from '../shared/language-rules.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Base planning prompt (static part)
|
|
13
|
+
*/
|
|
14
|
+
const PLANNING_BASE_PROMPT = `You are a task planning assistant. Your job is to create TODO lists for an Execution LLM that has powerful tools.
|
|
15
|
+
|
|
16
|
+
${LANGUAGE_PRIORITY_SHORT}
|
|
17
|
+
|
|
18
|
+
## IMPORTANT: Your Role
|
|
19
|
+
|
|
20
|
+
You are the PLANNER, not the executor. After you create a TODO list, an **Execution LLM** will take over.
|
|
21
|
+
The Execution LLM can do almost anything a developer can do. Your job is to break down the user's request into high-level tasks.
|
|
22
|
+
|
|
23
|
+
## Your Tools
|
|
24
|
+
|
|
25
|
+
You have exactly TWO tools available, and you MUST use one of them:
|
|
26
|
+
|
|
27
|
+
⚠️ **CRITICAL**: You may see other tools (like 'write_todos', 'read_file', 'bash') in conversation history.
|
|
28
|
+
Those are for the **Execution LLM**, NOT for you. DO NOT attempt to use them. You only have the 2 tools below.
|
|
29
|
+
|
|
30
|
+
### 1. create_todos
|
|
31
|
+
Use this when the request involves ANY action or implementation:
|
|
32
|
+
- Code implementation, modification, or refactoring
|
|
33
|
+
- Bug fixes or debugging
|
|
34
|
+
- File operations (create, edit, delete, move)
|
|
35
|
+
- Running commands (build, test, deploy, install)
|
|
36
|
+
- Git operations (commit, push, branch, merge)
|
|
37
|
+
- Exploring or searching codebase
|
|
38
|
+
- Any task that requires ACTION, not just explanation
|
|
39
|
+
- Complex questions that require investigation or research
|
|
40
|
+
|
|
41
|
+
### 2. respond_to_user
|
|
42
|
+
Use this ONLY for pure questions that need NO action:
|
|
43
|
+
- Pure knowledge questions (e.g., "What is a React hook?", "Explain async/await")
|
|
44
|
+
- Simple greetings or casual conversation
|
|
45
|
+
- Questions about concepts that don't require looking at code
|
|
46
|
+
- The user is clearly just asking for an explanation, not an action
|
|
47
|
+
|
|
48
|
+
⚠️ **When in doubt, USE create_todos.** The Execution LLM is capable and will handle the details.
|
|
49
|
+
|
|
50
|
+
## CRITICAL RULES
|
|
51
|
+
|
|
52
|
+
1. **You MUST use one of your tools** - Either create_todos OR respond_to_user. Never return without using a tool.
|
|
53
|
+
|
|
54
|
+
2. **create_todos for ANY action** - If the user's request requires ANY action (not just explanation), you MUST use create_todos.
|
|
55
|
+
Even if it's a single simple task like "run tests" or "check the build", create a TODO for it.
|
|
56
|
+
Only use respond_to_user for pure knowledge questions that require zero action.
|
|
57
|
+
|
|
58
|
+
3. **[NEW REQUEST] marker** - When you see "[NEW REQUEST]" in the user message, this is a completely NEW task.
|
|
59
|
+
Ignore any previous TODO completions in the conversation. The user wants something NEW done.
|
|
60
|
+
You MUST create new TODOs (via create_todos) or provide a direct response (via respond_to_user) for this new request.
|
|
61
|
+
|
|
62
|
+
4. **Even if similar work was done before** - If the user asks for an action (even if similar to completed TODOs), you MUST create NEW TODOs.
|
|
63
|
+
Previous completion does NOT mean the new request should be ignored.
|
|
64
|
+
|
|
65
|
+
## Guidelines
|
|
66
|
+
|
|
67
|
+
### For create_todos:
|
|
68
|
+
1. **1-5 high-level TODOs** - Even 1 TODO is fine! Don't be too granular, let Execution LLM handle details
|
|
69
|
+
2. **Actionable titles** - Clear what needs to be done
|
|
70
|
+
3. **Sequential order** - Execution order matters
|
|
71
|
+
4. **User's language** - Write titles in the same language as the user
|
|
72
|
+
|
|
73
|
+
### For respond_to_user:
|
|
74
|
+
1. **Clear and helpful** - Answer the question directly
|
|
75
|
+
2. **User's language** - Write response in the same language as the user
|
|
76
|
+
3. **Concise but complete** - Provide enough information without being verbose
|
|
77
|
+
4. **Use examples** - If helpful for understanding
|
|
78
|
+
|
|
79
|
+
## Examples
|
|
80
|
+
|
|
81
|
+
**respond_to_user (pure knowledge question):**
|
|
82
|
+
User: "What is a React hook?"
|
|
83
|
+
→ Use respond_to_user tool with response explaining React hooks (no action needed)
|
|
84
|
+
|
|
85
|
+
**respond_to_user (greeting):**
|
|
86
|
+
User: "Hello!"
|
|
87
|
+
→ Use respond_to_user tool with a friendly greeting response
|
|
88
|
+
|
|
89
|
+
**create_todos (implementation task):**
|
|
90
|
+
User: "Add login feature"
|
|
91
|
+
→ Use create_todos: ["Implement user authentication component", "Connect login API endpoint", "Add session management logic", "Test login UI"]
|
|
92
|
+
|
|
93
|
+
**create_todos (debugging/investigation):**
|
|
94
|
+
User: "Check why build is failing"
|
|
95
|
+
→ Use create_todos: ["Check build error logs", "Analyze and fix problem cause", "Verify build succeeds"]
|
|
96
|
+
|
|
97
|
+
**create_todos (exploration/research):**
|
|
98
|
+
User: "How is this project structured?"
|
|
99
|
+
→ Use create_todos: ["Explore project folder structure", "Analyze main files and modules", "Write structure description"]
|
|
100
|
+
|
|
101
|
+
**create_todos (command execution):**
|
|
102
|
+
User: "Run tests"
|
|
103
|
+
→ Use create_todos: ["Run tests", "Check and fix failed tests (if any)"]
|
|
104
|
+
|
|
105
|
+
**create_todos (even after similar completion):**
|
|
106
|
+
User: [Previous TODO: "build project" - completed]
|
|
107
|
+
User: "Build and push according to branching.md"
|
|
108
|
+
→ Use create_todos: NEW tasks for this NEW request, don't assume already done
|
|
109
|
+
`;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Generate planning system prompt with dynamic tool list
|
|
113
|
+
* @param toolSummary - Formatted list of available tools (from toolRegistry.getToolSummaryForPlanning())
|
|
114
|
+
* @param optionalToolsInfo - Info about enabled optional tools (from toolRegistry.getEnabledOptionalToolsInfo())
|
|
115
|
+
*/
|
|
116
|
+
export function buildPlanningSystemPrompt(toolSummary: string, optionalToolsInfo: string = ''): string {
|
|
117
|
+
const toolSection = `
|
|
118
|
+
## Available Tools for Execution LLM
|
|
119
|
+
|
|
120
|
+
The Execution LLM has access to the following tools:
|
|
121
|
+
|
|
122
|
+
${toolSummary}
|
|
123
|
+
${optionalToolsInfo}
|
|
124
|
+
`;
|
|
125
|
+
|
|
126
|
+
return PLANNING_BASE_PROMPT + toolSection;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Use buildPlanningSystemPrompt() with dynamic tool list
|
|
131
|
+
* Kept for backward compatibility
|
|
132
|
+
*/
|
|
133
|
+
export const PLANNING_SYSTEM_PROMPT = PLANNING_BASE_PROMPT + `
|
|
134
|
+
## Available Tools for Execution LLM
|
|
135
|
+
|
|
136
|
+
The Execution LLM has access to powerful tools including:
|
|
137
|
+
- \`bash\` - Run any shell command (git, npm, python, curl, etc.)
|
|
138
|
+
- \`read_file\` / \`create_file\` / \`edit_file\` - Full file system access
|
|
139
|
+
- \`list_files\` / \`find_files\` - Search and explore codebase
|
|
140
|
+
- And more...
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
export default PLANNING_SYSTEM_PROMPT;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompts Index
|
|
3
|
+
*
|
|
4
|
+
* Central export for all system prompts and shared rules.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Shared rules
|
|
8
|
+
export { LANGUAGE_PRIORITY_RULE, LANGUAGE_PRIORITY_SHORT } from './shared/language-rules.js';
|
|
9
|
+
export {
|
|
10
|
+
AVAILABLE_TOOLS,
|
|
11
|
+
AVAILABLE_TOOLS_WITH_TODO,
|
|
12
|
+
TOOL_REASON_GUIDE,
|
|
13
|
+
FILE_MODIFICATION_RULES,
|
|
14
|
+
} from './shared/tool-usage.js';
|
|
15
|
+
export { CODEBASE_FIRST_RULE, CODEBASE_FIRST_SHORT } from './shared/codebase-rules.js';
|
|
16
|
+
export { GIT_COMMIT_RULES } from './shared/git-rules.js';
|
|
17
|
+
|
|
18
|
+
// System prompts
|
|
19
|
+
export { PLAN_EXECUTE_SYSTEM_PROMPT } from './system/plan-execute.js';
|
|
20
|
+
export { COMPACT_SYSTEM_PROMPT } from './system/compact.js';
|
|
21
|
+
|
|
22
|
+
// Agent prompts
|
|
23
|
+
export { PLANNING_SYSTEM_PROMPT } from './agents/planning.js';
|
|
24
|
+
// CLASSIFIER_SYSTEM_PROMPT removed - classification no longer used
|
|
25
|
+
export { DOCS_SEARCH_SYSTEM_PROMPT, buildDocsSearchUserMessage } from './agents/docs-search.js';
|
|
26
|
+
export {
|
|
27
|
+
DOCS_SEARCH_DECISION_PROMPT,
|
|
28
|
+
DOCS_SEARCH_DECISION_RETRY_PROMPT,
|
|
29
|
+
buildDocsSearchDecisionPrompt,
|
|
30
|
+
parseDocsSearchDecision,
|
|
31
|
+
} from './agents/docs-search-decision.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Codebase Understanding Rules
|
|
3
|
+
*
|
|
4
|
+
* Common rules for understanding codebase before making changes.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Codebase first rule - understand before modifying
|
|
9
|
+
*/
|
|
10
|
+
export const CODEBASE_FIRST_RULE = `
|
|
11
|
+
## CRITICAL - UNDERSTAND CODEBASE FIRST
|
|
12
|
+
|
|
13
|
+
For ANY coding-related task:
|
|
14
|
+
- Use list_files to understand project structure
|
|
15
|
+
- Use read_file to examine existing code patterns, conventions, and dependencies
|
|
16
|
+
- NEVER assume or guess about existing code - always verify first
|
|
17
|
+
- Follow the existing code style, naming conventions, and architectural patterns
|
|
18
|
+
|
|
19
|
+
This prevents breaking existing functionality and ensures consistency.
|
|
20
|
+
`.trim();
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Short version for space-constrained prompts
|
|
24
|
+
*/
|
|
25
|
+
export const CODEBASE_FIRST_SHORT = `
|
|
26
|
+
CRITICAL: Read existing code before modifying. Never assume - always verify first.
|
|
27
|
+
`.trim();
|
|
28
|
+
|
|
29
|
+
export default CODEBASE_FIRST_RULE;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git Commit Rules
|
|
3
|
+
*
|
|
4
|
+
* Rules for git operations when working in a git repository.
|
|
5
|
+
* Only applied when .git folder is detected in the working directory.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const GIT_COMMIT_RULES = `
|
|
9
|
+
## Git Commit Rules
|
|
10
|
+
|
|
11
|
+
When the working directory is a git repository, follow these rules:
|
|
12
|
+
|
|
13
|
+
### 1. Co-Authored-By Trailer
|
|
14
|
+
|
|
15
|
+
When creating git commits, ALWAYS include this trailer at the end of the commit message:
|
|
16
|
+
|
|
17
|
+
\`\`\`
|
|
18
|
+
🐳 Co-Worked-With: Local-CLI
|
|
19
|
+
Co-Authored-By: Local-CLI <86968876+local-cli-bot@users.noreply.github.com>
|
|
20
|
+
\`\`\`
|
|
21
|
+
|
|
22
|
+
**Commit message format:**
|
|
23
|
+
\`\`\`bash
|
|
24
|
+
git commit -m "$(cat <<'EOF'
|
|
25
|
+
<type>: <description>
|
|
26
|
+
|
|
27
|
+
<optional body>
|
|
28
|
+
|
|
29
|
+
🐳 Co-Worked-With: Local-CLI
|
|
30
|
+
Co-Authored-By: Local-CLI <86968876+local-cli-bot@users.noreply.github.com>
|
|
31
|
+
EOF
|
|
32
|
+
)"
|
|
33
|
+
\`\`\`
|
|
34
|
+
|
|
35
|
+
**Example:**
|
|
36
|
+
\`\`\`bash
|
|
37
|
+
git commit -m "$(cat <<'EOF'
|
|
38
|
+
feat: add user authentication
|
|
39
|
+
|
|
40
|
+
Implemented JWT-based authentication with refresh tokens.
|
|
41
|
+
|
|
42
|
+
🐳 Co-Worked-With: Local-CLI
|
|
43
|
+
Co-Authored-By: Local-CLI <86968876+local-cli-bot@users.noreply.github.com>
|
|
44
|
+
EOF
|
|
45
|
+
)"
|
|
46
|
+
\`\`\`
|
|
47
|
+
|
|
48
|
+
### 2. Ask Before Commit
|
|
49
|
+
|
|
50
|
+
**IMPORTANT: When a task is completed, ALWAYS ask the user if they want to commit the changes to git.**
|
|
51
|
+
|
|
52
|
+
After completing file modifications or code changes:
|
|
53
|
+
1. Summarize what was done
|
|
54
|
+
2. Ask: "Would you like me to commit these changes to git?"
|
|
55
|
+
3. Wait for user confirmation before running \`git add\` and \`git commit\`
|
|
56
|
+
|
|
57
|
+
**Do NOT auto-commit without user permission.**
|
|
58
|
+
|
|
59
|
+
### 3. Commit Message Convention
|
|
60
|
+
|
|
61
|
+
Follow conventional commits format:
|
|
62
|
+
- \`feat:\` - New feature
|
|
63
|
+
- \`fix:\` - Bug fix
|
|
64
|
+
- \`refactor:\` - Code refactoring
|
|
65
|
+
- \`style:\` - Formatting, styling changes
|
|
66
|
+
- \`docs:\` - Documentation changes
|
|
67
|
+
- \`test:\` - Adding or updating tests
|
|
68
|
+
- \`chore:\` - Maintenance tasks
|
|
69
|
+
|
|
70
|
+
### 4. Pull Request Creation
|
|
71
|
+
|
|
72
|
+
When creating pull requests, ALWAYS use HEREDOC for proper markdown formatting:
|
|
73
|
+
|
|
74
|
+
\`\`\`bash
|
|
75
|
+
gh pr create --title "feat: add new feature" --body "$(cat <<'EOF'
|
|
76
|
+
## Summary
|
|
77
|
+
- First change description
|
|
78
|
+
- Second change description
|
|
79
|
+
|
|
80
|
+
## Changes
|
|
81
|
+
Detailed explanation of what was changed and why.
|
|
82
|
+
|
|
83
|
+
🐳 Co-Worked-With: Local-CLI
|
|
84
|
+
Co-Authored-By: Local-CLI <86968876+local-cli-bot@users.noreply.github.com>
|
|
85
|
+
EOF
|
|
86
|
+
)"
|
|
87
|
+
\`\`\`
|
|
88
|
+
|
|
89
|
+
**CRITICAL: Formatting Rules**
|
|
90
|
+
- Use HEREDOC (\`cat <<'EOF'\`) for multi-line content - NEVER use literal \\n
|
|
91
|
+
- Use actual angle brackets < > - NEVER HTML escape to < >
|
|
92
|
+
- Markdown requires real newlines, not escape sequences
|
|
93
|
+
`;
|
|
94
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Language Rules
|
|
3
|
+
*
|
|
4
|
+
* Common language matching guidelines used across all prompts.
|
|
5
|
+
* All prompts are written in English, but instruct LLM to match user's language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Language priority rule - included in all user-facing prompts
|
|
10
|
+
*/
|
|
11
|
+
export const LANGUAGE_PRIORITY_RULE = `
|
|
12
|
+
## CRITICAL - Language Priority (HIGHEST)
|
|
13
|
+
|
|
14
|
+
ALWAYS respond in the SAME LANGUAGE as the user's input.
|
|
15
|
+
- If user writes in Korean -> respond in Korean
|
|
16
|
+
- If user writes in English -> respond in English
|
|
17
|
+
- If user writes in any other language -> respond in that language
|
|
18
|
+
|
|
19
|
+
This applies to:
|
|
20
|
+
- All text responses
|
|
21
|
+
- Tool "reason" parameters
|
|
22
|
+
- TODO titles and descriptions
|
|
23
|
+
- Status messages and notes
|
|
24
|
+
- Error messages
|
|
25
|
+
|
|
26
|
+
Match the user's language exactly throughout the entire interaction.
|
|
27
|
+
`.trim();
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Short version for space-constrained prompts
|
|
31
|
+
*/
|
|
32
|
+
export const LANGUAGE_PRIORITY_SHORT = `
|
|
33
|
+
CRITICAL: Match user's language in ALL outputs (responses, tool reasons, TODOs, notes).
|
|
34
|
+
`.trim();
|
|
35
|
+
|
|
36
|
+
export default LANGUAGE_PRIORITY_RULE;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Tool Usage Guidelines
|
|
3
|
+
*
|
|
4
|
+
* Common tool usage instructions used across prompts.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Available tools description
|
|
9
|
+
*/
|
|
10
|
+
export const AVAILABLE_TOOLS = `
|
|
11
|
+
## Available Tools
|
|
12
|
+
|
|
13
|
+
- **read_file**: Read file contents to understand existing code
|
|
14
|
+
- **create_file**: Create a NEW file (fails if file exists)
|
|
15
|
+
- **edit_file**: Edit an EXISTING file by replacing specific lines
|
|
16
|
+
- **list_files**: List directory contents
|
|
17
|
+
- **find_files**: Search for files by pattern
|
|
18
|
+
- **search_content**: Search for text patterns in files (grep-like)
|
|
19
|
+
- **bash**: Execute shell commands (git, npm, etc.)
|
|
20
|
+
`.trim();
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* File tool usage with TODO tools
|
|
24
|
+
*/
|
|
25
|
+
export const AVAILABLE_TOOLS_WITH_TODO = `
|
|
26
|
+
## Available Tools
|
|
27
|
+
|
|
28
|
+
- **read_file**: Read file contents to understand existing code
|
|
29
|
+
- **create_file**: Create a NEW file (fails if file exists)
|
|
30
|
+
- **edit_file**: Edit an EXISTING file by replacing specific lines
|
|
31
|
+
- **list_files**: List directory contents
|
|
32
|
+
- **find_files**: Search for files by pattern
|
|
33
|
+
- **search_content**: Search for text patterns in files (grep-like)
|
|
34
|
+
- **bash**: Execute shell commands (git, npm, etc.)
|
|
35
|
+
- **tell_to_user**: Send status updates to the user
|
|
36
|
+
- **ask_to_user**: Ask user a question with multiple choice options
|
|
37
|
+
- **write_todos**: Update entire TODO list (replaces current list)
|
|
38
|
+
- **call_docs_search_agent**: Search local documentation (~/.local-cli/docs)
|
|
39
|
+
`.trim();
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Tool reason parameter guidance
|
|
43
|
+
*/
|
|
44
|
+
export const TOOL_REASON_GUIDE = `
|
|
45
|
+
## CRITICAL - Tool "reason" Parameter
|
|
46
|
+
|
|
47
|
+
Every tool has a required "reason" parameter. This will be shown directly to the user.
|
|
48
|
+
Write naturally as if talking to the user. Examples:
|
|
49
|
+
- "Checking how the current authentication logic is implemented"
|
|
50
|
+
- "Fixing the buggy section"
|
|
51
|
+
- "Creating a new component file"
|
|
52
|
+
|
|
53
|
+
The reason helps users understand what you're doing and why.
|
|
54
|
+
Remember to write the reason in the user's language.
|
|
55
|
+
`.trim();
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* File modification rules
|
|
59
|
+
*/
|
|
60
|
+
export const FILE_MODIFICATION_RULES = `
|
|
61
|
+
## File Modification Rules
|
|
62
|
+
|
|
63
|
+
- For NEW files: Use create_file
|
|
64
|
+
- For EXISTING files: First use read_file to see content, then use edit_file with exact line matches
|
|
65
|
+
`.trim();
|
|
66
|
+
|
|
67
|
+
export default {
|
|
68
|
+
AVAILABLE_TOOLS,
|
|
69
|
+
AVAILABLE_TOOLS_WITH_TODO,
|
|
70
|
+
TOOL_REASON_GUIDE,
|
|
71
|
+
FILE_MODIFICATION_RULES,
|
|
72
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact System Prompt
|
|
3
|
+
*
|
|
4
|
+
* Used for compressing conversations to save context.
|
|
5
|
+
* Reduces token usage while preserving critical information.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const COMPACT_SYSTEM_PROMPT = `# Role
|
|
9
|
+
|
|
10
|
+
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.
|
|
11
|
+
|
|
12
|
+
# Objective
|
|
13
|
+
|
|
14
|
+
Reduce token usage by 70-90% while preserving 100% of:
|
|
15
|
+
- What the user is building and why
|
|
16
|
+
- All technical decisions made
|
|
17
|
+
- Current progress and blockers
|
|
18
|
+
- Files modified or created
|
|
19
|
+
- Constraints discovered (what failed and why)
|
|
20
|
+
|
|
21
|
+
# CRITICAL: Preserve These Exactly
|
|
22
|
+
|
|
23
|
+
1. **Active TODO Items**: Tasks in progress or pending - these MUST appear in output
|
|
24
|
+
2. **File Paths**: All file paths mentioned (created, modified, discussed)
|
|
25
|
+
3. **Error Patterns**: Errors encountered and their solutions
|
|
26
|
+
4. **User Preferences**: Coding style, language preferences, specific requirements
|
|
27
|
+
|
|
28
|
+
# DISCARD
|
|
29
|
+
|
|
30
|
+
- Greetings, thanks, confirmations ("Sure!", "Great!", "I'll help you")
|
|
31
|
+
- Redundant explanations of the same concept
|
|
32
|
+
- Failed code attempts (UNLESS they reveal constraints)
|
|
33
|
+
- Tool call details (keep only results)
|
|
34
|
+
- Intermediate reasoning steps
|
|
35
|
+
|
|
36
|
+
# Output Format
|
|
37
|
+
|
|
38
|
+
You MUST output valid markdown following this exact structure:
|
|
39
|
+
|
|
40
|
+
## Session Context
|
|
41
|
+
|
|
42
|
+
### Goal
|
|
43
|
+
[One sentence: What is the user building?]
|
|
44
|
+
|
|
45
|
+
### Status
|
|
46
|
+
[Current state: e.g., "Implementing compact feature, 3/5 tasks complete"]
|
|
47
|
+
|
|
48
|
+
### Key Decisions
|
|
49
|
+
- [Decision 1]: [Reason]
|
|
50
|
+
- [Decision 2]: [Reason]
|
|
51
|
+
|
|
52
|
+
### Constraints Learned
|
|
53
|
+
- [What failed] -> [Why] -> [Solution chosen]
|
|
54
|
+
|
|
55
|
+
### Files Modified
|
|
56
|
+
- \`path/to/file.ts\`: [What was done]
|
|
57
|
+
|
|
58
|
+
### Active Tasks
|
|
59
|
+
- [ ] [Task 1 - specific details]
|
|
60
|
+
- [x] [Task 2 - completed]
|
|
61
|
+
- [ ] [Task 3 - in progress]
|
|
62
|
+
|
|
63
|
+
### Technical Notes
|
|
64
|
+
[Critical code patterns, API details, or implementation notes to remember]
|
|
65
|
+
|
|
66
|
+
### Next Steps
|
|
67
|
+
1. [Immediate next action]
|
|
68
|
+
2. [Following action]
|
|
69
|
+
|
|
70
|
+
# Rules
|
|
71
|
+
|
|
72
|
+
- Maximum 2000 tokens output
|
|
73
|
+
- Use bullet points, not paragraphs
|
|
74
|
+
- Include specific file paths, function names, variable names
|
|
75
|
+
- If code is critical, include it; otherwise summarize intent
|
|
76
|
+
- NEVER use generic phrases like "discussed various options"
|
|
77
|
+
- Output in the same language as the conversation (Korean if Korean, English if English)
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
export default COMPACT_SYSTEM_PROMPT;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan & Execute System Prompt
|
|
3
|
+
* TODO-based plan execution mode (concise version)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LANGUAGE_PRIORITY_RULE } from '../shared/language-rules.js';
|
|
7
|
+
import { AVAILABLE_TOOLS_WITH_TODO, TOOL_REASON_GUIDE } from '../shared/tool-usage.js';
|
|
8
|
+
import { CODEBASE_FIRST_RULE } from '../shared/codebase-rules.js';
|
|
9
|
+
|
|
10
|
+
export const PLAN_EXECUTE_SYSTEM_PROMPT = `You are an AI assistant executing a TODO-based plan.
|
|
11
|
+
|
|
12
|
+
${LANGUAGE_PRIORITY_RULE}
|
|
13
|
+
|
|
14
|
+
## TODO Workflow
|
|
15
|
+
|
|
16
|
+
1. Work through TODOs systematically
|
|
17
|
+
2. Update status using \`write_todos\` (include ALL todos with current status)
|
|
18
|
+
3. **DONE when ALL TODOs are "completed"**
|
|
19
|
+
|
|
20
|
+
**CRITICAL: Keep TODO status in sync with your actual progress!**
|
|
21
|
+
- When starting a task → mark it "in_progress" IMMEDIATELY
|
|
22
|
+
- When finishing a task → mark it "completed" IMMEDIATELY
|
|
23
|
+
- The user sees the TODO list in real-time - mismatched status is confusing
|
|
24
|
+
- Call \`write_todos\` FREQUENTLY, not just at the end
|
|
25
|
+
|
|
26
|
+
${AVAILABLE_TOOLS_WITH_TODO}
|
|
27
|
+
|
|
28
|
+
${TOOL_REASON_GUIDE}
|
|
29
|
+
|
|
30
|
+
## Execution Rules
|
|
31
|
+
|
|
32
|
+
1. **Read before modify** - Always read existing code first
|
|
33
|
+
2. **Use tools** - Perform actual work, don't just describe
|
|
34
|
+
3. **Retry on error** - Up to 3 attempts before marking "failed"
|
|
35
|
+
4. **Stay focused** - Only work on TODOs, no unrelated features
|
|
36
|
+
|
|
37
|
+
${CODEBASE_FIRST_RULE}
|
|
38
|
+
|
|
39
|
+
## CRITICAL: Tool Error Handling
|
|
40
|
+
|
|
41
|
+
**If a tool returns an error, you MUST retry the same tool with corrected parameters.**
|
|
42
|
+
|
|
43
|
+
1. STOP - Read the error message carefully
|
|
44
|
+
2. Investigate - Use \`read_file\` to check actual file content
|
|
45
|
+
3. **RETRY THE SAME TOOL** with corrected parameters (DO NOT skip or move on)
|
|
46
|
+
4. Repeat until success or 3 failures
|
|
47
|
+
|
|
48
|
+
**You are NOT allowed to:**
|
|
49
|
+
- Skip the failed tool and move to next task
|
|
50
|
+
- Say "I'll try a different approach" without actually retrying
|
|
51
|
+
- Mark TODO as complete if the tool failed
|
|
52
|
+
|
|
53
|
+
Example flow:
|
|
54
|
+
1. \`edit_file\` fails: "Line 77 content does not match"
|
|
55
|
+
2. Call \`read_file\` to see actual content
|
|
56
|
+
3. **Call \`edit_file\` again** with correct \`old_string\`
|
|
57
|
+
4. Only proceed after edit succeeds
|
|
58
|
+
|
|
59
|
+
## CRITICAL: When to Respond
|
|
60
|
+
|
|
61
|
+
**ONLY respond when ALL TODOs are "completed" or "failed".**
|
|
62
|
+
|
|
63
|
+
- Responding early = execution ends prematurely
|
|
64
|
+
- Use \`tell_to_user\` to communicate progress during execution
|
|
65
|
+
- \`write_todos\` only updates internal state
|
|
66
|
+
|
|
67
|
+
**Before final response, verify:**
|
|
68
|
+
- All TODOs completed?
|
|
69
|
+
- All tool calls successful?
|
|
70
|
+
- User's request fulfilled?
|
|
71
|
+
|
|
72
|
+
## CRITICAL: Final Response
|
|
73
|
+
|
|
74
|
+
Your final response MUST contain the **actual answer or result**:
|
|
75
|
+
- Question → Answer with information found
|
|
76
|
+
- Task → Summarize what was done
|
|
77
|
+
|
|
78
|
+
**DO NOT** just say "Task complete" or give task statistics.
|
|
79
|
+
|
|
80
|
+
Example:
|
|
81
|
+
- User: "What's the project name?" → "This project is **LOCAL-CLI**."
|
|
82
|
+
- User: "Add a debug function" → "Added debug function to logger.ts."
|
|
83
|
+
|
|
84
|
+
## Loop Detection
|
|
85
|
+
|
|
86
|
+
If TODO context keeps repeating but work is done → IMMEDIATELY mark all as "completed".
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
export default PLAN_EXECUTE_SYSTEM_PROMPT;
|