orquesta-cli 0.1.4 → 0.1.5
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 +0 -0
- package/.prettierrc.json +0 -0
- package/CLAUDE.md +199 -0
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/SECURITY.md +0 -0
- package/TEST_LOCAL.md +245 -0
- package/dist/agents/base/base-agent.d.ts +0 -0
- package/dist/agents/base/base-agent.d.ts.map +0 -0
- package/dist/agents/base/base-agent.js +0 -0
- package/dist/agents/base/base-agent.js.map +0 -0
- package/dist/agents/docs-search/index.d.ts +0 -0
- package/dist/agents/docs-search/index.d.ts.map +0 -0
- package/dist/agents/docs-search/index.js +0 -0
- package/dist/agents/docs-search/index.js.map +0 -0
- package/dist/agents/index.d.ts +0 -0
- package/dist/agents/index.d.ts.map +0 -0
- package/dist/agents/index.js +0 -0
- package/dist/agents/index.js.map +0 -0
- package/dist/agents/planner/index.d.ts +0 -0
- package/dist/agents/planner/index.d.ts.map +0 -0
- package/dist/agents/planner/index.js +0 -0
- package/dist/agents/planner/index.js.map +0 -0
- package/dist/cli.d.ts +0 -0
- package/dist/cli.d.ts.map +0 -0
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/constants.d.ts +0 -0
- package/dist/constants.d.ts.map +0 -0
- package/dist/constants.js +0 -0
- package/dist/constants.js.map +0 -0
- package/dist/core/compact/compact-manager.d.ts +0 -0
- package/dist/core/compact/compact-manager.d.ts.map +0 -0
- package/dist/core/compact/compact-manager.js +0 -0
- package/dist/core/compact/compact-manager.js.map +0 -0
- package/dist/core/compact/compact-prompts.d.ts +0 -0
- package/dist/core/compact/compact-prompts.d.ts.map +0 -0
- package/dist/core/compact/compact-prompts.js +0 -0
- package/dist/core/compact/compact-prompts.js.map +0 -0
- package/dist/core/compact/context-tracker.d.ts +0 -0
- package/dist/core/compact/context-tracker.d.ts.map +0 -0
- package/dist/core/compact/context-tracker.js +0 -0
- package/dist/core/compact/context-tracker.js.map +0 -0
- package/dist/core/compact/index.d.ts +0 -0
- package/dist/core/compact/index.d.ts.map +0 -0
- package/dist/core/compact/index.js +0 -0
- package/dist/core/compact/index.js.map +0 -0
- package/dist/core/config/config-manager.d.ts +0 -0
- package/dist/core/config/config-manager.d.ts.map +0 -0
- package/dist/core/config/config-manager.js +0 -0
- package/dist/core/config/config-manager.js.map +0 -0
- package/dist/core/config/index.d.ts +0 -0
- package/dist/core/config/index.d.ts.map +0 -0
- package/dist/core/config/index.js +0 -0
- package/dist/core/config/index.js.map +0 -0
- package/dist/core/docs-manager.d.ts +0 -0
- package/dist/core/docs-manager.d.ts.map +0 -0
- package/dist/core/docs-manager.js +0 -0
- package/dist/core/docs-manager.js.map +0 -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 +0 -0
- package/dist/core/llm/index.d.ts.map +0 -0
- package/dist/core/llm/index.js +0 -0
- package/dist/core/llm/index.js.map +0 -0
- package/dist/core/llm/llm-client.d.ts +0 -0
- package/dist/core/llm/llm-client.d.ts.map +0 -0
- package/dist/core/llm/llm-client.js +0 -0
- package/dist/core/llm/llm-client.js.map +0 -0
- package/dist/core/session/index.d.ts +0 -0
- package/dist/core/session/index.d.ts.map +0 -0
- package/dist/core/session/index.js +0 -0
- package/dist/core/session/index.js.map +0 -0
- package/dist/core/session/session-manager.d.ts +0 -0
- package/dist/core/session/session-manager.d.ts.map +0 -0
- package/dist/core/session/session-manager.js +0 -0
- package/dist/core/session/session-manager.js.map +0 -0
- package/dist/core/slash-command-handler.d.ts +0 -0
- package/dist/core/slash-command-handler.d.ts.map +0 -0
- package/dist/core/slash-command-handler.js +0 -0
- package/dist/core/slash-command-handler.js.map +0 -0
- package/dist/core/usage-tracker.d.ts +0 -0
- package/dist/core/usage-tracker.d.ts.map +0 -0
- package/dist/core/usage-tracker.js +0 -0
- package/dist/core/usage-tracker.js.map +0 -0
- package/dist/errors/base.d.ts +0 -0
- package/dist/errors/base.d.ts.map +0 -0
- package/dist/errors/base.js +0 -0
- package/dist/errors/base.js.map +0 -0
- package/dist/errors/file.d.ts +0 -0
- package/dist/errors/file.d.ts.map +0 -0
- package/dist/errors/file.js +0 -0
- package/dist/errors/file.js.map +0 -0
- package/dist/errors/index.d.ts +0 -0
- package/dist/errors/index.d.ts.map +0 -0
- package/dist/errors/index.js +0 -0
- package/dist/errors/index.js.map +0 -0
- package/dist/errors/llm.d.ts +0 -0
- package/dist/errors/llm.d.ts.map +0 -0
- package/dist/errors/llm.js +0 -0
- package/dist/errors/llm.js.map +0 -0
- package/dist/errors/network.d.ts +0 -0
- package/dist/errors/network.d.ts.map +0 -0
- package/dist/errors/network.js +0 -0
- package/dist/errors/network.js.map +0 -0
- package/dist/errors/validation.d.ts +0 -0
- package/dist/errors/validation.d.ts.map +0 -0
- package/dist/errors/validation.js +0 -0
- package/dist/errors/validation.js.map +0 -0
- package/dist/eval/eval-runner.d.ts +0 -0
- package/dist/eval/eval-runner.d.ts.map +1 -1
- package/dist/eval/eval-runner.js +21 -3
- package/dist/eval/eval-runner.js.map +1 -1
- package/dist/eval/index.d.ts +0 -0
- package/dist/eval/index.d.ts.map +0 -0
- package/dist/eval/index.js +0 -0
- package/dist/eval/index.js.map +0 -0
- package/dist/eval/types.d.ts +0 -0
- package/dist/eval/types.d.ts.map +0 -0
- package/dist/eval/types.js +0 -0
- package/dist/eval/types.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/orchestration/index.d.ts +0 -0
- package/dist/orchestration/index.d.ts.map +0 -0
- package/dist/orchestration/index.js +0 -0
- package/dist/orchestration/index.js.map +0 -0
- package/dist/orchestration/plan-executor.d.ts +0 -0
- package/dist/orchestration/plan-executor.d.ts.map +0 -0
- package/dist/orchestration/plan-executor.js +0 -0
- package/dist/orchestration/plan-executor.js.map +0 -0
- package/dist/orchestration/types.d.ts +0 -0
- package/dist/orchestration/types.d.ts.map +0 -0
- package/dist/orchestration/types.js +0 -0
- package/dist/orchestration/types.js.map +0 -0
- package/dist/orchestration/utils.d.ts +0 -0
- package/dist/orchestration/utils.d.ts.map +0 -0
- package/dist/orchestration/utils.js +0 -0
- package/dist/orchestration/utils.js.map +0 -0
- package/dist/orquesta/config-sync.d.ts +0 -0
- package/dist/orquesta/config-sync.d.ts.map +0 -0
- package/dist/orquesta/config-sync.js +0 -0
- package/dist/orquesta/config-sync.js.map +0 -0
- package/dist/orquesta/connection.d.ts +0 -0
- package/dist/orquesta/connection.d.ts.map +0 -0
- package/dist/orquesta/connection.js +0 -0
- package/dist/orquesta/connection.js.map +0 -0
- package/dist/orquesta/prompt-reporter.d.ts +0 -0
- package/dist/orquesta/prompt-reporter.d.ts.map +0 -0
- package/dist/orquesta/prompt-reporter.js +0 -0
- package/dist/orquesta/prompt-reporter.js.map +0 -0
- package/dist/prompts/agents/docs-search-decision.d.ts +0 -0
- package/dist/prompts/agents/docs-search-decision.d.ts.map +0 -0
- package/dist/prompts/agents/docs-search-decision.js +0 -0
- package/dist/prompts/agents/docs-search-decision.js.map +0 -0
- package/dist/prompts/agents/docs-search.d.ts +0 -0
- package/dist/prompts/agents/docs-search.d.ts.map +0 -0
- package/dist/prompts/agents/docs-search.js +0 -0
- package/dist/prompts/agents/docs-search.js.map +0 -0
- package/dist/prompts/agents/planning.d.ts +0 -0
- package/dist/prompts/agents/planning.d.ts.map +0 -0
- package/dist/prompts/agents/planning.js +0 -0
- package/dist/prompts/agents/planning.js.map +0 -0
- package/dist/prompts/index.d.ts +0 -0
- package/dist/prompts/index.d.ts.map +0 -0
- package/dist/prompts/index.js +0 -0
- package/dist/prompts/index.js.map +0 -0
- package/dist/prompts/shared/codebase-rules.d.ts +0 -0
- package/dist/prompts/shared/codebase-rules.d.ts.map +0 -0
- package/dist/prompts/shared/codebase-rules.js +0 -0
- package/dist/prompts/shared/codebase-rules.js.map +0 -0
- package/dist/prompts/shared/git-rules.d.ts +0 -0
- package/dist/prompts/shared/git-rules.d.ts.map +0 -0
- package/dist/prompts/shared/git-rules.js +0 -0
- package/dist/prompts/shared/git-rules.js.map +0 -0
- package/dist/prompts/shared/language-rules.d.ts +0 -0
- package/dist/prompts/shared/language-rules.d.ts.map +0 -0
- package/dist/prompts/shared/language-rules.js +0 -0
- package/dist/prompts/shared/language-rules.js.map +0 -0
- package/dist/prompts/shared/tool-usage.d.ts +0 -0
- package/dist/prompts/shared/tool-usage.d.ts.map +0 -0
- package/dist/prompts/shared/tool-usage.js +0 -0
- package/dist/prompts/shared/tool-usage.js.map +0 -0
- package/dist/prompts/system/compact.d.ts +0 -0
- package/dist/prompts/system/compact.d.ts.map +0 -0
- package/dist/prompts/system/compact.js +0 -0
- package/dist/prompts/system/compact.js.map +0 -0
- package/dist/prompts/system/plan-execute.d.ts +0 -0
- package/dist/prompts/system/plan-execute.d.ts.map +0 -0
- package/dist/prompts/system/plan-execute.js +0 -0
- package/dist/prompts/system/plan-execute.js.map +0 -0
- package/dist/setup/first-run-setup.d.ts +0 -0
- package/dist/setup/first-run-setup.d.ts.map +0 -0
- package/dist/setup/first-run-setup.js +0 -0
- package/dist/setup/first-run-setup.js.map +0 -0
- package/dist/tools/browser/browser-client.d.ts +0 -0
- package/dist/tools/browser/browser-client.d.ts.map +0 -0
- package/dist/tools/browser/browser-client.js +0 -0
- package/dist/tools/browser/browser-client.js.map +0 -0
- package/dist/tools/browser/browser-tools.d.ts +0 -0
- package/dist/tools/browser/browser-tools.d.ts.map +0 -0
- package/dist/tools/browser/browser-tools.js +0 -0
- package/dist/tools/browser/browser-tools.js.map +0 -0
- package/dist/tools/browser/index.d.ts +0 -0
- package/dist/tools/browser/index.d.ts.map +0 -0
- package/dist/tools/browser/index.js +0 -0
- package/dist/tools/browser/index.js.map +0 -0
- package/dist/tools/index.d.ts +0 -0
- package/dist/tools/index.d.ts.map +0 -0
- package/dist/tools/index.js +0 -0
- package/dist/tools/index.js.map +0 -0
- package/dist/tools/llm/agents/docs-search-tools.d.ts +0 -0
- package/dist/tools/llm/agents/docs-search-tools.d.ts.map +0 -0
- package/dist/tools/llm/agents/docs-search-tools.js +0 -0
- package/dist/tools/llm/agents/docs-search-tools.js.map +0 -0
- package/dist/tools/llm/agents/index.d.ts +0 -0
- package/dist/tools/llm/agents/index.d.ts.map +0 -0
- package/dist/tools/llm/agents/index.js +0 -0
- package/dist/tools/llm/agents/index.js.map +0 -0
- package/dist/tools/llm/index.d.ts +0 -0
- package/dist/tools/llm/index.d.ts.map +0 -0
- package/dist/tools/llm/index.js +0 -0
- package/dist/tools/llm/index.js.map +0 -0
- package/dist/tools/llm/simple/ask-user-tool.d.ts +0 -0
- package/dist/tools/llm/simple/ask-user-tool.d.ts.map +0 -0
- package/dist/tools/llm/simple/ask-user-tool.js +0 -0
- package/dist/tools/llm/simple/ask-user-tool.js.map +0 -0
- package/dist/tools/llm/simple/background-bash-tool.d.ts +0 -0
- package/dist/tools/llm/simple/background-bash-tool.d.ts.map +0 -0
- package/dist/tools/llm/simple/background-bash-tool.js +0 -0
- package/dist/tools/llm/simple/background-bash-tool.js.map +0 -0
- package/dist/tools/llm/simple/background-powershell-tool.d.ts +0 -0
- package/dist/tools/llm/simple/background-powershell-tool.d.ts.map +0 -0
- package/dist/tools/llm/simple/background-powershell-tool.js +0 -0
- package/dist/tools/llm/simple/background-powershell-tool.js.map +0 -0
- package/dist/tools/llm/simple/bash-tool.d.ts +0 -0
- package/dist/tools/llm/simple/bash-tool.d.ts.map +0 -0
- package/dist/tools/llm/simple/bash-tool.js +0 -0
- package/dist/tools/llm/simple/bash-tool.js.map +0 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.d.ts +0 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.d.ts.map +0 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.js +0 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.js.map +0 -0
- package/dist/tools/llm/simple/file-tools.d.ts +0 -0
- package/dist/tools/llm/simple/file-tools.d.ts.map +0 -0
- package/dist/tools/llm/simple/file-tools.js +0 -0
- package/dist/tools/llm/simple/file-tools.js.map +0 -0
- package/dist/tools/llm/simple/final-response-tool.d.ts +0 -0
- package/dist/tools/llm/simple/final-response-tool.d.ts.map +0 -0
- package/dist/tools/llm/simple/final-response-tool.js +0 -0
- package/dist/tools/llm/simple/final-response-tool.js.map +0 -0
- package/dist/tools/llm/simple/index.d.ts +0 -0
- package/dist/tools/llm/simple/index.d.ts.map +0 -0
- package/dist/tools/llm/simple/index.js +0 -0
- package/dist/tools/llm/simple/index.js.map +0 -0
- package/dist/tools/llm/simple/planning-tools.d.ts +0 -0
- package/dist/tools/llm/simple/planning-tools.d.ts.map +0 -0
- package/dist/tools/llm/simple/planning-tools.js +0 -0
- package/dist/tools/llm/simple/planning-tools.js.map +0 -0
- package/dist/tools/llm/simple/powershell-tool.d.ts +0 -0
- package/dist/tools/llm/simple/powershell-tool.d.ts.map +0 -0
- package/dist/tools/llm/simple/powershell-tool.js +0 -0
- package/dist/tools/llm/simple/powershell-tool.js.map +0 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts +0 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts.map +0 -0
- package/dist/tools/llm/simple/simple-tool-executor.js +0 -0
- package/dist/tools/llm/simple/simple-tool-executor.js.map +0 -0
- package/dist/tools/llm/simple/todo-tools.d.ts +0 -0
- package/dist/tools/llm/simple/todo-tools.d.ts.map +0 -0
- package/dist/tools/llm/simple/todo-tools.js +0 -0
- package/dist/tools/llm/simple/todo-tools.js.map +0 -0
- package/dist/tools/llm/simple/user-interaction-tools.d.ts +0 -0
- package/dist/tools/llm/simple/user-interaction-tools.d.ts.map +0 -0
- package/dist/tools/llm/simple/user-interaction-tools.js +0 -0
- package/dist/tools/llm/simple/user-interaction-tools.js.map +0 -0
- package/dist/tools/office/common/constants.d.ts +0 -0
- package/dist/tools/office/common/constants.d.ts.map +0 -0
- package/dist/tools/office/common/constants.js +0 -0
- package/dist/tools/office/common/constants.js.map +0 -0
- package/dist/tools/office/common/index.d.ts +0 -0
- package/dist/tools/office/common/index.d.ts.map +0 -0
- package/dist/tools/office/common/index.js +0 -0
- package/dist/tools/office/common/index.js.map +0 -0
- package/dist/tools/office/common/types.d.ts +0 -0
- package/dist/tools/office/common/types.d.ts.map +0 -0
- package/dist/tools/office/common/types.js +0 -0
- package/dist/tools/office/common/types.js.map +0 -0
- package/dist/tools/office/common/utils.d.ts +0 -0
- package/dist/tools/office/common/utils.d.ts.map +0 -0
- package/dist/tools/office/common/utils.js +0 -0
- package/dist/tools/office/common/utils.js.map +0 -0
- package/dist/tools/office/excel-client.d.ts +0 -0
- package/dist/tools/office/excel-client.d.ts.map +0 -0
- package/dist/tools/office/excel-client.js +0 -0
- package/dist/tools/office/excel-client.js.map +0 -0
- package/dist/tools/office/excel-tools/cells.d.ts +0 -0
- package/dist/tools/office/excel-tools/cells.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/cells.js +0 -0
- package/dist/tools/office/excel-tools/cells.js.map +0 -0
- package/dist/tools/office/excel-tools/charts.d.ts +0 -0
- package/dist/tools/office/excel-tools/charts.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/charts.js +0 -0
- package/dist/tools/office/excel-tools/charts.js.map +0 -0
- package/dist/tools/office/excel-tools/comments.d.ts +0 -0
- package/dist/tools/office/excel-tools/comments.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/comments.js +0 -0
- package/dist/tools/office/excel-tools/comments.js.map +0 -0
- package/dist/tools/office/excel-tools/data-ops.d.ts +0 -0
- package/dist/tools/office/excel-tools/data-ops.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/data-ops.js +0 -0
- package/dist/tools/office/excel-tools/data-ops.js.map +0 -0
- package/dist/tools/office/excel-tools/export.d.ts +0 -0
- package/dist/tools/office/excel-tools/export.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/export.js +0 -0
- package/dist/tools/office/excel-tools/export.js.map +0 -0
- package/dist/tools/office/excel-tools/formatting.d.ts +0 -0
- package/dist/tools/office/excel-tools/formatting.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/formatting.js +0 -0
- package/dist/tools/office/excel-tools/formatting.js.map +0 -0
- package/dist/tools/office/excel-tools/index.d.ts +0 -0
- package/dist/tools/office/excel-tools/index.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/index.js +0 -0
- package/dist/tools/office/excel-tools/index.js.map +0 -0
- package/dist/tools/office/excel-tools/launch.d.ts +0 -0
- package/dist/tools/office/excel-tools/launch.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/launch.js +0 -0
- package/dist/tools/office/excel-tools/launch.js.map +0 -0
- package/dist/tools/office/excel-tools/media.d.ts +0 -0
- package/dist/tools/office/excel-tools/media.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/media.js +0 -0
- package/dist/tools/office/excel-tools/media.js.map +0 -0
- package/dist/tools/office/excel-tools/named-ranges.d.ts +0 -0
- package/dist/tools/office/excel-tools/named-ranges.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/named-ranges.js +0 -0
- package/dist/tools/office/excel-tools/named-ranges.js.map +0 -0
- package/dist/tools/office/excel-tools/protection.d.ts +0 -0
- package/dist/tools/office/excel-tools/protection.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/protection.js +0 -0
- package/dist/tools/office/excel-tools/protection.js.map +0 -0
- package/dist/tools/office/excel-tools/rows-columns.d.ts +0 -0
- package/dist/tools/office/excel-tools/rows-columns.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/rows-columns.js +0 -0
- package/dist/tools/office/excel-tools/rows-columns.js.map +0 -0
- package/dist/tools/office/excel-tools/sheets.d.ts +0 -0
- package/dist/tools/office/excel-tools/sheets.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/sheets.js +0 -0
- package/dist/tools/office/excel-tools/sheets.js.map +0 -0
- package/dist/tools/office/excel-tools/validation.d.ts +0 -0
- package/dist/tools/office/excel-tools/validation.d.ts.map +0 -0
- package/dist/tools/office/excel-tools/validation.js +0 -0
- package/dist/tools/office/excel-tools/validation.js.map +0 -0
- package/dist/tools/office/excel-tools.d.ts +0 -0
- package/dist/tools/office/excel-tools.d.ts.map +0 -0
- package/dist/tools/office/excel-tools.js +0 -0
- package/dist/tools/office/excel-tools.js.map +0 -0
- package/dist/tools/office/index.d.ts +0 -0
- package/dist/tools/office/index.d.ts.map +0 -0
- package/dist/tools/office/index.js +0 -0
- package/dist/tools/office/index.js.map +0 -0
- package/dist/tools/office/office-client-base.d.ts +0 -0
- package/dist/tools/office/office-client-base.d.ts.map +0 -0
- package/dist/tools/office/office-client-base.js +0 -0
- package/dist/tools/office/office-client-base.js.map +0 -0
- package/dist/tools/office/office-client.d.ts +0 -0
- package/dist/tools/office/office-client.d.ts.map +0 -0
- package/dist/tools/office/office-client.js +0 -0
- package/dist/tools/office/office-client.js.map +0 -0
- package/dist/tools/office/powerpoint-client.d.ts +0 -0
- package/dist/tools/office/powerpoint-client.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-client.js +0 -0
- package/dist/tools/office/powerpoint-client.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/effects.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/effects.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/effects.js +0 -0
- package/dist/tools/office/powerpoint-tools/effects.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/export.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/export.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/export.js +0 -0
- package/dist/tools/office/powerpoint-tools/export.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/index.js +0 -0
- package/dist/tools/office/powerpoint-tools/index.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/launch.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/launch.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/launch.js +0 -0
- package/dist/tools/office/powerpoint-tools/launch.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/media.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/media.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/media.js +0 -0
- package/dist/tools/office/powerpoint-tools/media.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/notes.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/notes.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/notes.js +0 -0
- package/dist/tools/office/powerpoint-tools/notes.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/sections.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/sections.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/sections.js +0 -0
- package/dist/tools/office/powerpoint-tools/sections.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/shapes.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/shapes.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/shapes.js +0 -0
- package/dist/tools/office/powerpoint-tools/shapes.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/slides.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/slides.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/slides.js +0 -0
- package/dist/tools/office/powerpoint-tools/slides.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/tables.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/tables.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/tables.js +0 -0
- package/dist/tools/office/powerpoint-tools/tables.js.map +0 -0
- package/dist/tools/office/powerpoint-tools/text.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools/text.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools/text.js +0 -0
- package/dist/tools/office/powerpoint-tools/text.js.map +0 -0
- package/dist/tools/office/powerpoint-tools.d.ts +0 -0
- package/dist/tools/office/powerpoint-tools.d.ts.map +0 -0
- package/dist/tools/office/powerpoint-tools.js +0 -0
- package/dist/tools/office/powerpoint-tools.js.map +0 -0
- package/dist/tools/office/word-client.d.ts +0 -0
- package/dist/tools/office/word-client.d.ts.map +0 -0
- package/dist/tools/office/word-client.js +0 -0
- package/dist/tools/office/word-client.js.map +0 -0
- package/dist/tools/office/word-tools/bookmarks.d.ts +0 -0
- package/dist/tools/office/word-tools/bookmarks.d.ts.map +0 -0
- package/dist/tools/office/word-tools/bookmarks.js +0 -0
- package/dist/tools/office/word-tools/bookmarks.js.map +0 -0
- package/dist/tools/office/word-tools/comments.d.ts +0 -0
- package/dist/tools/office/word-tools/comments.d.ts.map +0 -0
- package/dist/tools/office/word-tools/comments.js +0 -0
- package/dist/tools/office/word-tools/comments.js.map +0 -0
- package/dist/tools/office/word-tools/content.d.ts +0 -0
- package/dist/tools/office/word-tools/content.d.ts.map +0 -0
- package/dist/tools/office/word-tools/content.js +0 -0
- package/dist/tools/office/word-tools/content.js.map +0 -0
- package/dist/tools/office/word-tools/export.d.ts +0 -0
- package/dist/tools/office/word-tools/export.d.ts.map +0 -0
- package/dist/tools/office/word-tools/export.js +0 -0
- package/dist/tools/office/word-tools/export.js.map +0 -0
- package/dist/tools/office/word-tools/formatting.d.ts +0 -0
- package/dist/tools/office/word-tools/formatting.d.ts.map +0 -0
- package/dist/tools/office/word-tools/formatting.js +0 -0
- package/dist/tools/office/word-tools/formatting.js.map +0 -0
- package/dist/tools/office/word-tools/headers-footers.d.ts +0 -0
- package/dist/tools/office/word-tools/headers-footers.d.ts.map +0 -0
- package/dist/tools/office/word-tools/headers-footers.js +0 -0
- package/dist/tools/office/word-tools/headers-footers.js.map +0 -0
- package/dist/tools/office/word-tools/index.d.ts +0 -0
- package/dist/tools/office/word-tools/index.d.ts.map +0 -0
- package/dist/tools/office/word-tools/index.js +0 -0
- package/dist/tools/office/word-tools/index.js.map +0 -0
- package/dist/tools/office/word-tools/launch.d.ts +0 -0
- package/dist/tools/office/word-tools/launch.d.ts.map +0 -0
- package/dist/tools/office/word-tools/launch.js +0 -0
- package/dist/tools/office/word-tools/launch.js.map +0 -0
- package/dist/tools/office/word-tools/lists.d.ts +0 -0
- package/dist/tools/office/word-tools/lists.d.ts.map +0 -0
- package/dist/tools/office/word-tools/lists.js +0 -0
- package/dist/tools/office/word-tools/lists.js.map +0 -0
- package/dist/tools/office/word-tools/navigation.d.ts +0 -0
- package/dist/tools/office/word-tools/navigation.d.ts.map +0 -0
- package/dist/tools/office/word-tools/navigation.js +0 -0
- package/dist/tools/office/word-tools/navigation.js.map +0 -0
- package/dist/tools/office/word-tools/page-setup.d.ts +0 -0
- package/dist/tools/office/word-tools/page-setup.d.ts.map +0 -0
- package/dist/tools/office/word-tools/page-setup.js +0 -0
- package/dist/tools/office/word-tools/page-setup.js.map +0 -0
- package/dist/tools/office/word-tools/tables.d.ts +0 -0
- package/dist/tools/office/word-tools/tables.d.ts.map +0 -0
- package/dist/tools/office/word-tools/tables.js +0 -0
- package/dist/tools/office/word-tools/tables.js.map +0 -0
- package/dist/tools/office/word-tools/text.d.ts +0 -0
- package/dist/tools/office/word-tools/text.d.ts.map +0 -0
- package/dist/tools/office/word-tools/text.js +0 -0
- package/dist/tools/office/word-tools/text.js.map +0 -0
- package/dist/tools/office/word-tools/undo-redo.d.ts +0 -0
- package/dist/tools/office/word-tools/undo-redo.d.ts.map +0 -0
- package/dist/tools/office/word-tools/undo-redo.js +0 -0
- package/dist/tools/office/word-tools/undo-redo.js.map +0 -0
- package/dist/tools/office/word-tools/watermarks.d.ts +0 -0
- package/dist/tools/office/word-tools/watermarks.d.ts.map +0 -0
- package/dist/tools/office/word-tools/watermarks.js +0 -0
- package/dist/tools/office/word-tools/watermarks.js.map +0 -0
- package/dist/tools/office/word-tools.d.ts +0 -0
- package/dist/tools/office/word-tools.d.ts.map +0 -0
- package/dist/tools/office/word-tools.js +0 -0
- package/dist/tools/office/word-tools.js.map +0 -0
- package/dist/tools/registry.d.ts +0 -0
- package/dist/tools/registry.d.ts.map +0 -0
- package/dist/tools/registry.js +0 -0
- package/dist/tools/registry.js.map +0 -0
- package/dist/tools/types.d.ts +0 -0
- package/dist/tools/types.d.ts.map +0 -0
- package/dist/tools/types.js +0 -0
- package/dist/tools/types.js.map +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/index.d.ts.map +0 -0
- package/dist/types/index.js +0 -0
- package/dist/types/index.js.map +0 -0
- package/dist/ui/PlanExecuteView.d.ts +0 -0
- package/dist/ui/PlanExecuteView.d.ts.map +1 -1
- package/dist/ui/PlanExecuteView.js +7 -5
- package/dist/ui/PlanExecuteView.js.map +1 -1
- package/dist/ui/TodoPanel.d.ts +0 -0
- package/dist/ui/TodoPanel.d.ts.map +0 -0
- package/dist/ui/TodoPanel.js +0 -0
- package/dist/ui/TodoPanel.js.map +0 -0
- package/dist/ui/UpdateNotification.d.ts +0 -0
- package/dist/ui/UpdateNotification.d.ts.map +0 -0
- package/dist/ui/UpdateNotification.js +0 -0
- package/dist/ui/UpdateNotification.js.map +0 -0
- package/dist/ui/components/ActivityIndicator.d.ts +0 -0
- package/dist/ui/components/ActivityIndicator.d.ts.map +0 -0
- package/dist/ui/components/ActivityIndicator.js +0 -0
- package/dist/ui/components/ActivityIndicator.js.map +0 -0
- package/dist/ui/components/CommandBrowser.d.ts +0 -0
- package/dist/ui/components/CommandBrowser.d.ts.map +0 -0
- package/dist/ui/components/CommandBrowser.js +0 -0
- package/dist/ui/components/CommandBrowser.js.map +0 -0
- package/dist/ui/components/CustomTextInput.d.ts +0 -0
- package/dist/ui/components/CustomTextInput.d.ts.map +0 -0
- package/dist/ui/components/CustomTextInput.js +0 -0
- package/dist/ui/components/CustomTextInput.js.map +0 -0
- package/dist/ui/components/DocsSearchProgress.d.ts +0 -0
- package/dist/ui/components/DocsSearchProgress.d.ts.map +0 -0
- package/dist/ui/components/DocsSearchProgress.js +0 -0
- package/dist/ui/components/DocsSearchProgress.js.map +0 -0
- package/dist/ui/components/FileBrowser.d.ts +0 -0
- package/dist/ui/components/FileBrowser.d.ts.map +0 -0
- package/dist/ui/components/FileBrowser.js +0 -0
- package/dist/ui/components/FileBrowser.js.map +0 -0
- package/dist/ui/components/LLMSetupWizard.d.ts +0 -0
- package/dist/ui/components/LLMSetupWizard.d.ts.map +1 -1
- package/dist/ui/components/LLMSetupWizard.js +41 -32
- package/dist/ui/components/LLMSetupWizard.js.map +1 -1
- package/dist/ui/components/Logo.d.ts +0 -0
- package/dist/ui/components/Logo.d.ts.map +1 -1
- package/dist/ui/components/Logo.js +49 -95
- package/dist/ui/components/Logo.js.map +1 -1
- package/dist/ui/components/MarkdownRenderer.d.ts +0 -0
- package/dist/ui/components/MarkdownRenderer.d.ts.map +0 -0
- package/dist/ui/components/MarkdownRenderer.js +0 -0
- package/dist/ui/components/MarkdownRenderer.js.map +0 -0
- package/dist/ui/components/ModelSelector.d.ts +0 -0
- package/dist/ui/components/ModelSelector.d.ts.map +0 -0
- package/dist/ui/components/ModelSelector.js +0 -0
- package/dist/ui/components/ModelSelector.js.map +0 -0
- package/dist/ui/components/OpenRouterModelBrowser.d.ts +0 -0
- package/dist/ui/components/OpenRouterModelBrowser.d.ts.map +0 -0
- package/dist/ui/components/OpenRouterModelBrowser.js +0 -0
- package/dist/ui/components/OpenRouterModelBrowser.js.map +0 -0
- package/dist/ui/components/PlanExecuteApp.d.ts +0 -0
- package/dist/ui/components/PlanExecuteApp.d.ts.map +1 -1
- package/dist/ui/components/PlanExecuteApp.js +12 -59
- package/dist/ui/components/PlanExecuteApp.js.map +1 -1
- package/dist/ui/components/ProgressBar.d.ts +0 -0
- package/dist/ui/components/ProgressBar.d.ts.map +0 -0
- package/dist/ui/components/ProgressBar.js +0 -0
- package/dist/ui/components/ProgressBar.js.map +0 -0
- package/dist/ui/components/StatusBar.d.ts +0 -0
- package/dist/ui/components/StatusBar.d.ts.map +0 -0
- package/dist/ui/components/StatusBar.js +0 -0
- package/dist/ui/components/StatusBar.js.map +0 -0
- package/dist/ui/components/ThinkingIndicator.d.ts +0 -0
- package/dist/ui/components/ThinkingIndicator.d.ts.map +0 -0
- package/dist/ui/components/ThinkingIndicator.js +0 -0
- package/dist/ui/components/ThinkingIndicator.js.map +0 -0
- package/dist/ui/components/TodoListView.d.ts +0 -0
- package/dist/ui/components/TodoListView.d.ts.map +0 -0
- package/dist/ui/components/TodoListView.js +0 -0
- package/dist/ui/components/TodoListView.js.map +0 -0
- package/dist/ui/components/ToolSelector.d.ts +0 -0
- package/dist/ui/components/ToolSelector.d.ts.map +0 -0
- package/dist/ui/components/ToolSelector.js +0 -0
- package/dist/ui/components/ToolSelector.js.map +0 -0
- package/dist/ui/components/dialogs/ApprovalDialog.d.ts +0 -0
- package/dist/ui/components/dialogs/ApprovalDialog.d.ts.map +0 -0
- package/dist/ui/components/dialogs/ApprovalDialog.js +0 -0
- package/dist/ui/components/dialogs/ApprovalDialog.js.map +0 -0
- package/dist/ui/components/dialogs/AskUserDialog.d.ts +0 -0
- package/dist/ui/components/dialogs/AskUserDialog.d.ts.map +0 -0
- package/dist/ui/components/dialogs/AskUserDialog.js +0 -0
- package/dist/ui/components/dialogs/AskUserDialog.js.map +0 -0
- package/dist/ui/components/dialogs/DocsBrowser.d.ts +0 -0
- package/dist/ui/components/dialogs/DocsBrowser.d.ts.map +0 -0
- package/dist/ui/components/dialogs/DocsBrowser.js +0 -0
- package/dist/ui/components/dialogs/DocsBrowser.js.map +0 -0
- package/dist/ui/components/dialogs/SettingsDialog.d.ts +0 -0
- package/dist/ui/components/dialogs/SettingsDialog.d.ts.map +0 -0
- package/dist/ui/components/dialogs/SettingsDialog.js +0 -0
- package/dist/ui/components/dialogs/SettingsDialog.js.map +0 -0
- package/dist/ui/components/dialogs/index.d.ts +0 -0
- package/dist/ui/components/dialogs/index.d.ts.map +0 -0
- package/dist/ui/components/dialogs/index.js +0 -0
- package/dist/ui/components/dialogs/index.js.map +0 -0
- package/dist/ui/components/index.d.ts +0 -0
- package/dist/ui/components/index.d.ts.map +0 -0
- package/dist/ui/components/index.js +0 -0
- package/dist/ui/components/index.js.map +0 -0
- package/dist/ui/components/panels/LogPanel.d.ts +0 -0
- package/dist/ui/components/panels/LogPanel.d.ts.map +0 -0
- package/dist/ui/components/panels/LogPanel.js +0 -0
- package/dist/ui/components/panels/LogPanel.js.map +0 -0
- package/dist/ui/components/panels/SessionPanel.d.ts +0 -0
- package/dist/ui/components/panels/SessionPanel.d.ts.map +0 -0
- package/dist/ui/components/panels/SessionPanel.js +0 -0
- package/dist/ui/components/panels/SessionPanel.js.map +0 -0
- package/dist/ui/components/panels/index.d.ts +0 -0
- package/dist/ui/components/panels/index.d.ts.map +0 -0
- package/dist/ui/components/panels/index.js +0 -0
- package/dist/ui/components/panels/index.js.map +0 -0
- package/dist/ui/components/views/ChatView.d.ts +0 -0
- package/dist/ui/components/views/ChatView.d.ts.map +0 -0
- package/dist/ui/components/views/ChatView.js +0 -0
- package/dist/ui/components/views/ChatView.js.map +0 -0
- package/dist/ui/components/views/index.d.ts +0 -0
- package/dist/ui/components/views/index.d.ts.map +0 -0
- package/dist/ui/components/views/index.js +0 -0
- package/dist/ui/components/views/index.js.map +0 -0
- package/dist/ui/contexts/TokenContext.d.ts +0 -0
- package/dist/ui/contexts/TokenContext.d.ts.map +0 -0
- package/dist/ui/contexts/TokenContext.js +0 -0
- package/dist/ui/contexts/TokenContext.js.map +0 -0
- package/dist/ui/hooks/atFileProcessor.d.ts +0 -0
- package/dist/ui/hooks/atFileProcessor.d.ts.map +0 -0
- package/dist/ui/hooks/atFileProcessor.js +0 -0
- package/dist/ui/hooks/atFileProcessor.js.map +0 -0
- package/dist/ui/hooks/index.d.ts +0 -0
- package/dist/ui/hooks/index.d.ts.map +0 -0
- package/dist/ui/hooks/index.js +0 -0
- package/dist/ui/hooks/index.js.map +0 -0
- package/dist/ui/hooks/slashCommandProcessor.d.ts +0 -0
- package/dist/ui/hooks/slashCommandProcessor.d.ts.map +0 -0
- package/dist/ui/hooks/slashCommandProcessor.js +0 -0
- package/dist/ui/hooks/slashCommandProcessor.js.map +0 -0
- package/dist/ui/hooks/useCommandBrowserState.d.ts +0 -0
- package/dist/ui/hooks/useCommandBrowserState.d.ts.map +0 -0
- package/dist/ui/hooks/useCommandBrowserState.js +0 -0
- package/dist/ui/hooks/useCommandBrowserState.js.map +0 -0
- package/dist/ui/hooks/useFileBrowserState.d.ts +0 -0
- package/dist/ui/hooks/useFileBrowserState.d.ts.map +0 -0
- package/dist/ui/hooks/useFileBrowserState.js +0 -0
- package/dist/ui/hooks/useFileBrowserState.js.map +0 -0
- package/dist/ui/hooks/useFileList.d.ts +0 -0
- package/dist/ui/hooks/useFileList.d.ts.map +0 -0
- package/dist/ui/hooks/useFileList.js +0 -0
- package/dist/ui/hooks/useFileList.js.map +0 -0
- package/dist/ui/hooks/useInputHistory.d.ts +0 -0
- package/dist/ui/hooks/useInputHistory.d.ts.map +0 -0
- package/dist/ui/hooks/useInputHistory.js +0 -0
- package/dist/ui/hooks/useInputHistory.js.map +0 -0
- package/dist/ui/hooks/usePlanExecution.d.ts +0 -0
- package/dist/ui/hooks/usePlanExecution.d.ts.map +0 -0
- package/dist/ui/hooks/usePlanExecution.js +0 -0
- package/dist/ui/hooks/usePlanExecution.js.map +0 -0
- package/dist/ui/index.d.ts +0 -0
- package/dist/ui/index.d.ts.map +0 -0
- package/dist/ui/index.js +0 -0
- package/dist/ui/index.js.map +0 -0
- package/dist/ui/ink-entry.d.ts +0 -0
- package/dist/ui/ink-entry.d.ts.map +0 -0
- package/dist/ui/ink-entry.js +0 -0
- package/dist/ui/ink-entry.js.map +0 -0
- package/dist/utils/env-filter.d.ts +0 -0
- package/dist/utils/env-filter.d.ts.map +0 -0
- package/dist/utils/env-filter.js +0 -0
- package/dist/utils/env-filter.js.map +0 -0
- package/dist/utils/file-system.d.ts +0 -0
- package/dist/utils/file-system.d.ts.map +0 -0
- package/dist/utils/file-system.js +0 -0
- package/dist/utils/file-system.js.map +0 -0
- package/dist/utils/git-utils.d.ts +0 -0
- package/dist/utils/git-utils.d.ts.map +0 -0
- package/dist/utils/git-utils.js +0 -0
- package/dist/utils/git-utils.js.map +0 -0
- package/dist/utils/json-stream-logger.d.ts +0 -0
- package/dist/utils/json-stream-logger.d.ts.map +0 -0
- package/dist/utils/json-stream-logger.js +0 -0
- package/dist/utils/json-stream-logger.js.map +0 -0
- package/dist/utils/logger.d.ts +0 -0
- package/dist/utils/logger.d.ts.map +0 -0
- package/dist/utils/logger.js +0 -0
- package/dist/utils/logger.js.map +0 -0
- package/dist/utils/platform-utils.d.ts +0 -0
- package/dist/utils/platform-utils.d.ts.map +0 -0
- package/dist/utils/platform-utils.js +0 -0
- package/dist/utils/platform-utils.js.map +0 -0
- package/dist/utils/wsl-utils.d.ts +0 -0
- package/dist/utils/wsl-utils.d.ts.map +0 -0
- package/dist/utils/wsl-utils.js +0 -0
- package/dist/utils/wsl-utils.js.map +0 -0
- package/electron.vite.config.ts +0 -0
- package/google374b9eba0c52b043.html +0 -0
- package/package.json +1 -1
- package/src/agents/base/base-agent.ts +0 -0
- package/src/agents/docs-search/index.ts +0 -0
- package/src/agents/index.ts +0 -0
- package/src/agents/planner/index.ts +0 -0
- package/src/cli.ts +3 -3
- package/src/constants.ts +0 -0
- package/src/core/compact/compact-manager.ts +0 -0
- package/src/core/compact/compact-prompts.ts +0 -0
- package/src/core/compact/context-tracker.ts +0 -0
- package/src/core/compact/index.ts +0 -0
- package/src/core/config/config-manager.ts +0 -0
- package/src/core/config/index.ts +0 -0
- package/src/core/docs-manager.ts +0 -0
- package/src/core/llm/index.ts +0 -0
- package/src/core/llm/llm-client.ts +0 -0
- package/src/core/session/index.ts +0 -0
- package/src/core/session/session-manager.ts +0 -0
- package/src/core/slash-command-handler.ts +0 -0
- package/src/core/usage-tracker.ts +0 -0
- package/src/errors/base.ts +0 -0
- package/src/errors/file.ts +0 -0
- package/src/errors/index.ts +0 -0
- package/src/errors/llm.ts +0 -0
- package/src/errors/network.ts +0 -0
- package/src/errors/validation.ts +0 -0
- package/src/eval/eval-runner.ts +26 -3
- package/src/eval/index.ts +0 -0
- package/src/eval/types.ts +0 -0
- package/src/index.ts +0 -0
- package/src/orchestration/index.ts +0 -0
- package/src/orchestration/plan-executor.ts +0 -0
- package/src/orchestration/types.ts +0 -0
- package/src/orchestration/utils.ts +0 -0
- package/src/orquesta/config-sync.ts +0 -0
- package/src/orquesta/connection.ts +0 -0
- package/src/orquesta/prompt-reporter.ts +0 -0
- package/src/prompts/agents/docs-search-decision.ts +0 -0
- package/src/prompts/agents/docs-search.ts +0 -0
- package/src/prompts/agents/planning.ts +0 -0
- package/src/prompts/index.ts +0 -0
- package/src/prompts/shared/codebase-rules.ts +0 -0
- package/src/prompts/shared/git-rules.ts +0 -0
- package/src/prompts/shared/language-rules.ts +0 -0
- package/src/prompts/shared/tool-usage.ts +0 -0
- package/src/prompts/system/compact.ts +0 -0
- package/src/prompts/system/plan-execute.ts +0 -0
- package/src/setup/first-run-setup.ts +0 -0
- package/src/tools/browser/browser-client.ts +0 -0
- package/src/tools/browser/browser-tools.ts +0 -0
- package/src/tools/browser/index.ts +0 -0
- package/src/tools/index.ts +0 -0
- package/src/tools/llm/agents/docs-search-tools.ts +0 -0
- package/src/tools/llm/agents/index.ts +0 -0
- package/src/tools/llm/index.ts +0 -0
- package/src/tools/llm/simple/ask-user-tool.ts +0 -0
- package/src/tools/llm/simple/background-bash-tool.ts +0 -0
- package/src/tools/llm/simple/background-powershell-tool.ts +0 -0
- package/src/tools/llm/simple/bash-tool.ts +0 -0
- package/src/tools/llm/simple/docs-search-agent-tool.ts +0 -0
- package/src/tools/llm/simple/file-tools.ts +0 -0
- package/src/tools/llm/simple/final-response-tool.ts +0 -0
- package/src/tools/llm/simple/index.ts +0 -0
- package/src/tools/llm/simple/planning-tools.ts +0 -0
- package/src/tools/llm/simple/powershell-tool.ts +0 -0
- package/src/tools/llm/simple/simple-tool-executor.ts +0 -0
- package/src/tools/llm/simple/todo-tools.ts +0 -0
- package/src/tools/llm/simple/user-interaction-tools.ts +0 -0
- package/src/tools/office/common/constants.ts +0 -0
- package/src/tools/office/common/index.ts +0 -0
- package/src/tools/office/common/types.ts +0 -0
- package/src/tools/office/common/utils.ts +0 -0
- package/src/tools/office/excel-client.ts +0 -0
- package/src/tools/office/excel-tools/cells.ts +0 -0
- package/src/tools/office/excel-tools/charts.ts +0 -0
- package/src/tools/office/excel-tools/comments.ts +0 -0
- package/src/tools/office/excel-tools/data-ops.ts +0 -0
- package/src/tools/office/excel-tools/export.ts +0 -0
- package/src/tools/office/excel-tools/formatting.ts +0 -0
- package/src/tools/office/excel-tools/index.ts +0 -0
- package/src/tools/office/excel-tools/launch.ts +0 -0
- package/src/tools/office/excel-tools/media.ts +0 -0
- package/src/tools/office/excel-tools/named-ranges.ts +0 -0
- package/src/tools/office/excel-tools/protection.ts +0 -0
- package/src/tools/office/excel-tools/rows-columns.ts +0 -0
- package/src/tools/office/excel-tools/sheets.ts +0 -0
- package/src/tools/office/excel-tools/validation.ts +0 -0
- package/src/tools/office/excel-tools.ts +0 -0
- package/src/tools/office/index.ts +0 -0
- package/src/tools/office/office-client-base.ts +0 -0
- package/src/tools/office/office-client.ts +0 -0
- package/src/tools/office/powerpoint-client.ts +0 -0
- package/src/tools/office/powerpoint-tools/effects.ts +0 -0
- package/src/tools/office/powerpoint-tools/export.ts +0 -0
- package/src/tools/office/powerpoint-tools/index.ts +0 -0
- package/src/tools/office/powerpoint-tools/launch.ts +0 -0
- package/src/tools/office/powerpoint-tools/media.ts +0 -0
- package/src/tools/office/powerpoint-tools/notes.ts +0 -0
- package/src/tools/office/powerpoint-tools/sections.ts +0 -0
- package/src/tools/office/powerpoint-tools/shapes.ts +0 -0
- package/src/tools/office/powerpoint-tools/slides.ts +0 -0
- package/src/tools/office/powerpoint-tools/tables.ts +0 -0
- package/src/tools/office/powerpoint-tools/text.ts +0 -0
- package/src/tools/office/powerpoint-tools.ts +0 -0
- package/src/tools/office/word-client.ts +0 -0
- package/src/tools/office/word-tools/bookmarks.ts +0 -0
- package/src/tools/office/word-tools/comments.ts +0 -0
- package/src/tools/office/word-tools/content.ts +0 -0
- package/src/tools/office/word-tools/export.ts +0 -0
- package/src/tools/office/word-tools/formatting.ts +0 -0
- package/src/tools/office/word-tools/headers-footers.ts +0 -0
- package/src/tools/office/word-tools/index.ts +0 -0
- package/src/tools/office/word-tools/launch.ts +0 -0
- package/src/tools/office/word-tools/lists.ts +0 -0
- package/src/tools/office/word-tools/navigation.ts +0 -0
- package/src/tools/office/word-tools/page-setup.ts +0 -0
- package/src/tools/office/word-tools/tables.ts +0 -0
- package/src/tools/office/word-tools/text.ts +0 -0
- package/src/tools/office/word-tools/undo-redo.ts +0 -0
- package/src/tools/office/word-tools/watermarks.ts +0 -0
- package/src/tools/office/word-tools.ts +0 -0
- package/src/tools/registry.ts +0 -0
- package/src/tools/types.ts +0 -0
- package/src/types/index.ts +0 -0
- package/src/ui/PlanExecuteView.tsx +11 -6
- package/src/ui/TodoPanel.tsx +0 -0
- package/src/ui/UpdateNotification.tsx +0 -0
- package/src/ui/components/ActivityIndicator.tsx +0 -0
- package/src/ui/components/CommandBrowser.tsx +0 -0
- package/src/ui/components/CustomTextInput.tsx +0 -0
- package/src/ui/components/DocsSearchProgress.tsx +0 -0
- package/src/ui/components/FileBrowser.tsx +0 -0
- package/src/ui/components/LLMSetupWizard.tsx +45 -33
- package/src/ui/components/Logo.tsx +67 -145
- package/src/ui/components/MarkdownRenderer.tsx +0 -0
- package/src/ui/components/ModelSelector.tsx +0 -0
- package/src/ui/components/OpenRouterModelBrowser.tsx +0 -0
- package/src/ui/components/PlanExecuteApp.tsx +12 -80
- package/src/ui/components/ProgressBar.tsx +0 -0
- package/src/ui/components/StatusBar.tsx +0 -0
- package/src/ui/components/ThinkingIndicator.tsx +0 -0
- package/src/ui/components/TodoListView.tsx +0 -0
- package/src/ui/components/ToolSelector.tsx +0 -0
- package/src/ui/components/dialogs/ApprovalDialog.tsx +0 -0
- package/src/ui/components/dialogs/AskUserDialog.tsx +0 -0
- package/src/ui/components/dialogs/DocsBrowser.tsx +0 -0
- package/src/ui/components/dialogs/SettingsDialog.tsx +0 -0
- package/src/ui/components/dialogs/index.ts +0 -0
- package/src/ui/components/index.ts +0 -0
- package/src/ui/components/panels/LogPanel.tsx +0 -0
- package/src/ui/components/panels/SessionPanel.tsx +0 -0
- package/src/ui/components/panels/index.ts +0 -0
- package/src/ui/components/views/ChatView.tsx +0 -0
- package/src/ui/components/views/index.ts +0 -0
- package/src/ui/contexts/TokenContext.tsx +0 -0
- package/src/ui/hooks/atFileProcessor.ts +0 -0
- package/src/ui/hooks/index.ts +0 -0
- package/src/ui/hooks/slashCommandProcessor.ts +0 -0
- package/src/ui/hooks/useCommandBrowserState.ts +0 -0
- package/src/ui/hooks/useFileBrowserState.ts +0 -0
- package/src/ui/hooks/useFileList.ts +0 -0
- package/src/ui/hooks/useInputHistory.ts +0 -0
- package/src/ui/hooks/usePlanExecution.ts +0 -0
- package/src/ui/index.ts +0 -0
- package/src/ui/ink-entry.tsx +0 -0
- package/src/utils/env-filter.ts +0 -0
- package/src/utils/file-system.ts +0 -0
- package/src/utils/git-utils.ts +0 -0
- package/src/utils/json-stream-logger.ts +0 -0
- package/src/utils/logger.ts +0 -0
- package/src/utils/platform-utils.ts +0 -0
- package/src/utils/wsl-utils.ts +0 -0
- package/tsconfig.electron.json +0 -0
- package/tsconfig.json +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export type UpdateStatus = {
|
|
2
|
+
type: 'checking';
|
|
3
|
+
} | {
|
|
4
|
+
type: 'no_update';
|
|
5
|
+
} | {
|
|
6
|
+
type: 'first_run';
|
|
7
|
+
step: number;
|
|
8
|
+
totalSteps: number;
|
|
9
|
+
message: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'updating';
|
|
12
|
+
step: number;
|
|
13
|
+
totalSteps: number;
|
|
14
|
+
message: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: 'complete';
|
|
17
|
+
needsRestart: boolean;
|
|
18
|
+
message: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: 'error';
|
|
21
|
+
message: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: 'skipped';
|
|
24
|
+
reason: string;
|
|
25
|
+
};
|
|
26
|
+
export type StatusCallback = (status: UpdateStatus) => void;
|
|
27
|
+
export declare class GitAutoUpdater {
|
|
28
|
+
private repoUrl;
|
|
29
|
+
private repoDir;
|
|
30
|
+
private commitFile;
|
|
31
|
+
private enabled;
|
|
32
|
+
private onStatus;
|
|
33
|
+
constructor(options?: {
|
|
34
|
+
repoUrl?: string;
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
onStatus?: StatusCallback;
|
|
37
|
+
});
|
|
38
|
+
setStatusCallback(callback: StatusCallback): void;
|
|
39
|
+
private emitStatus;
|
|
40
|
+
run(options?: {
|
|
41
|
+
noUpdate?: boolean;
|
|
42
|
+
}): Promise<boolean>;
|
|
43
|
+
private runBinaryMode;
|
|
44
|
+
private getRemoteCommit;
|
|
45
|
+
private getSavedCommit;
|
|
46
|
+
private saveCommit;
|
|
47
|
+
private updateBinary;
|
|
48
|
+
private initialSetup;
|
|
49
|
+
private pullAndUpdate;
|
|
50
|
+
private freshClone;
|
|
51
|
+
private rebuildAndLink;
|
|
52
|
+
private copyBinariesInternal;
|
|
53
|
+
private ensurePathConfigured;
|
|
54
|
+
private unlinkNpm;
|
|
55
|
+
private cleanupRepo;
|
|
56
|
+
}
|
|
57
|
+
export default GitAutoUpdater;
|
|
58
|
+
//# sourceMappingURL=git-auto-updater.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-auto-updater.d.ts","sourceRoot":"","sources":["../../src/core/git-auto-updater.ts"],"names":[],"mappings":"AAiCA,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,UAAU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BJ,YAAY;YAmDZ,YAAY;YA8CZ,aAAa;YAsCb,UAAU;YAuBV,cAAc;YA+Bd,oBAAoB;YAoDpB,oBAAoB;YAgDpB,SAAS;YAWT,WAAW;CAY1B;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import { spawn } from 'child_process';
|
|
2
|
+
import fs, { createReadStream, createWriteStream } from 'fs';
|
|
3
|
+
import { rm, copyFile, chmod } from 'fs/promises';
|
|
4
|
+
import { pipeline } from 'stream/promises';
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import os from 'os';
|
|
7
|
+
import zlib from 'zlib';
|
|
8
|
+
import { logger } from '../utils/logger.js';
|
|
9
|
+
function isRunningAsBinary() {
|
|
10
|
+
const execPath = process.execPath;
|
|
11
|
+
const isNodeRuntime = execPath.includes('node') || execPath.includes('nodejs');
|
|
12
|
+
return !isNodeRuntime;
|
|
13
|
+
}
|
|
14
|
+
function execAsync(command, options = {}) {
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
const [cmd, ...args] = command.split(' ');
|
|
17
|
+
const child = spawn(cmd, args, {
|
|
18
|
+
cwd: options.cwd,
|
|
19
|
+
shell: true,
|
|
20
|
+
stdio: 'pipe',
|
|
21
|
+
});
|
|
22
|
+
let stdout = '';
|
|
23
|
+
let stderr = '';
|
|
24
|
+
child.stdout?.on('data', (data) => {
|
|
25
|
+
stdout += data.toString();
|
|
26
|
+
});
|
|
27
|
+
child.stderr?.on('data', (data) => {
|
|
28
|
+
stderr += data.toString();
|
|
29
|
+
});
|
|
30
|
+
child.on('close', (code) => {
|
|
31
|
+
if (code === 0) {
|
|
32
|
+
resolve({ stdout, stderr });
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
const error = new Error(`Command failed: ${command}`);
|
|
36
|
+
error.stdout = stdout;
|
|
37
|
+
error.stderr = stderr;
|
|
38
|
+
error.code = code;
|
|
39
|
+
reject(error);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
child.on('error', (err) => {
|
|
43
|
+
reject(err);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export class GitAutoUpdater {
|
|
48
|
+
repoUrl = 'https://github.com/A2G-Dev-Space/Local-CLI.git';
|
|
49
|
+
repoDir;
|
|
50
|
+
commitFile;
|
|
51
|
+
enabled = true;
|
|
52
|
+
onStatus = null;
|
|
53
|
+
constructor(options) {
|
|
54
|
+
this.repoDir = path.join(os.homedir(), '.local-cli', 'repo');
|
|
55
|
+
this.commitFile = path.join(os.homedir(), '.local-cli', 'current-commit');
|
|
56
|
+
if (options?.repoUrl) {
|
|
57
|
+
this.repoUrl = options.repoUrl;
|
|
58
|
+
}
|
|
59
|
+
if (options?.enabled !== undefined) {
|
|
60
|
+
this.enabled = options.enabled;
|
|
61
|
+
}
|
|
62
|
+
if (options?.onStatus) {
|
|
63
|
+
this.onStatus = options.onStatus;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
setStatusCallback(callback) {
|
|
67
|
+
this.onStatus = callback;
|
|
68
|
+
}
|
|
69
|
+
emitStatus(status) {
|
|
70
|
+
if (this.onStatus) {
|
|
71
|
+
this.onStatus(status);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async run(options = {}) {
|
|
75
|
+
logger.enter('GitAutoUpdater.run', {
|
|
76
|
+
noUpdate: options.noUpdate,
|
|
77
|
+
enabled: this.enabled,
|
|
78
|
+
repoDir: this.repoDir
|
|
79
|
+
});
|
|
80
|
+
if (options.noUpdate || !this.enabled) {
|
|
81
|
+
logger.flow('Git auto-update disabled - skipping');
|
|
82
|
+
this.emitStatus({ type: 'skipped', reason: 'disabled' });
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
this.emitStatus({ type: 'checking' });
|
|
86
|
+
try {
|
|
87
|
+
if (isRunningAsBinary() && fs.existsSync(this.repoDir)) {
|
|
88
|
+
logger.flow('Cleaning up leftover repo from previous version');
|
|
89
|
+
await this.cleanupRepo();
|
|
90
|
+
}
|
|
91
|
+
if (isRunningAsBinary()) {
|
|
92
|
+
return await this.runBinaryMode();
|
|
93
|
+
}
|
|
94
|
+
logger.flow('Checking repository directory');
|
|
95
|
+
if (!fs.existsSync(this.repoDir)) {
|
|
96
|
+
logger.flow('First run detected - need initial setup');
|
|
97
|
+
return await this.initialSetup();
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
return await this.pullAndUpdate();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
logger.error('Git auto-update failed', error);
|
|
105
|
+
this.emitStatus({ type: 'error', message: 'Auto-update failed, continuing with current version' });
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
async runBinaryMode() {
|
|
110
|
+
logger.flow('Running in binary mode - using ls-remote for update check');
|
|
111
|
+
try {
|
|
112
|
+
const remoteCommit = await this.getRemoteCommit();
|
|
113
|
+
if (!remoteCommit) {
|
|
114
|
+
logger.error('Failed to get remote commit');
|
|
115
|
+
this.emitStatus({ type: 'error', message: 'Failed to check for updates' });
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
const savedCommit = this.getSavedCommit();
|
|
119
|
+
logger.debug('Version check', { remote: remoteCommit.slice(0, 7), saved: savedCommit?.slice(0, 7) || 'none' });
|
|
120
|
+
if (savedCommit === remoteCommit) {
|
|
121
|
+
logger.flow('Already up to date');
|
|
122
|
+
this.emitStatus({ type: 'no_update' });
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
logger.flow('Update available, starting update process');
|
|
126
|
+
return await this.updateBinary(remoteCommit);
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
logger.error('Binary mode update failed', error);
|
|
130
|
+
this.emitStatus({ type: 'error', message: 'Update check failed' });
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
async getRemoteCommit() {
|
|
135
|
+
try {
|
|
136
|
+
const result = await execAsync(`git ls-remote ${this.repoUrl} refs/heads/main`);
|
|
137
|
+
const match = result.stdout.match(/^([a-f0-9]+)/);
|
|
138
|
+
return match && match[1] ? match[1] : null;
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
logger.error('Failed to get remote commit via ls-remote', error);
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
getSavedCommit() {
|
|
146
|
+
try {
|
|
147
|
+
if (fs.existsSync(this.commitFile)) {
|
|
148
|
+
return fs.readFileSync(this.commitFile, 'utf-8').trim();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
logger.debug('Failed to read saved commit: ' + (error instanceof Error ? error.message : String(error)));
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
saveCommit(commit) {
|
|
157
|
+
try {
|
|
158
|
+
const dir = path.dirname(this.commitFile);
|
|
159
|
+
if (!fs.existsSync(dir)) {
|
|
160
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
161
|
+
}
|
|
162
|
+
fs.writeFileSync(this.commitFile, commit);
|
|
163
|
+
logger.debug('Saved commit hash: ' + commit.slice(0, 7));
|
|
164
|
+
}
|
|
165
|
+
catch (error) {
|
|
166
|
+
logger.debug('Failed to save commit: ' + (error instanceof Error ? error.message : String(error)));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
async updateBinary(remoteCommit) {
|
|
170
|
+
const totalSteps = 3;
|
|
171
|
+
const isFirstRun = !this.getSavedCommit();
|
|
172
|
+
try {
|
|
173
|
+
const statusType = isFirstRun ? 'first_run' : 'updating';
|
|
174
|
+
this.emitStatus({ type: statusType, step: 1, totalSteps, message: 'Downloading update...' });
|
|
175
|
+
const parentDir = path.dirname(this.repoDir);
|
|
176
|
+
if (!fs.existsSync(parentDir)) {
|
|
177
|
+
fs.mkdirSync(parentDir, { recursive: true });
|
|
178
|
+
}
|
|
179
|
+
await execAsync(`git clone --depth 1 ${this.repoUrl} ${this.repoDir}`);
|
|
180
|
+
this.emitStatus({ type: statusType, step: 2, totalSteps, message: 'Installing update...' });
|
|
181
|
+
const success = await this.copyBinariesInternal();
|
|
182
|
+
if (!success) {
|
|
183
|
+
return false;
|
|
184
|
+
}
|
|
185
|
+
this.emitStatus({ type: statusType, step: 3, totalSteps, message: 'Finalizing...' });
|
|
186
|
+
await this.cleanupRepo();
|
|
187
|
+
this.saveCommit(remoteCommit);
|
|
188
|
+
const shell = process.env['SHELL'] || '/bin/bash';
|
|
189
|
+
const rcFile = shell.includes('zsh') ? '~/.zshrc' : '~/.bashrc';
|
|
190
|
+
const restartMsg = isFirstRun
|
|
191
|
+
? `Setup complete! Run: source ${rcFile} && lcli`
|
|
192
|
+
: 'Update complete! Please restart.';
|
|
193
|
+
this.emitStatus({ type: 'complete', needsRestart: true, message: restartMsg });
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
logger.error('Binary update failed', error);
|
|
198
|
+
await this.cleanupRepo();
|
|
199
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
200
|
+
this.emitStatus({ type: 'error', message: `Update failed: ${message}` });
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async initialSetup() {
|
|
205
|
+
logger.enter('initialSetup', {
|
|
206
|
+
repoDir: this.repoDir,
|
|
207
|
+
repoUrl: this.repoUrl
|
|
208
|
+
});
|
|
209
|
+
const totalSteps = 4;
|
|
210
|
+
try {
|
|
211
|
+
this.emitStatus({ type: 'first_run', step: 1, totalSteps, message: 'Cloning repository...' });
|
|
212
|
+
const parentDir = path.dirname(this.repoDir);
|
|
213
|
+
if (!fs.existsSync(parentDir)) {
|
|
214
|
+
fs.mkdirSync(parentDir, { recursive: true });
|
|
215
|
+
}
|
|
216
|
+
await execAsync(`git clone ${this.repoUrl} ${this.repoDir}`);
|
|
217
|
+
this.emitStatus({ type: 'first_run', step: 2, totalSteps, message: 'Installing dependencies...' });
|
|
218
|
+
await execAsync('npm install', { cwd: this.repoDir });
|
|
219
|
+
this.emitStatus({ type: 'first_run', step: 3, totalSteps, message: 'Building project...' });
|
|
220
|
+
await execAsync('npm run build', { cwd: this.repoDir });
|
|
221
|
+
this.emitStatus({ type: 'first_run', step: 4, totalSteps, message: 'Creating global link...' });
|
|
222
|
+
await execAsync('npm link', { cwd: this.repoDir });
|
|
223
|
+
this.emitStatus({ type: 'complete', needsRestart: true, message: 'Setup complete! Please restart.' });
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
catch (error) {
|
|
227
|
+
logger.error('Initial setup failed', error);
|
|
228
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
229
|
+
this.emitStatus({ type: 'error', message: `Setup failed: ${message}` });
|
|
230
|
+
return false;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
async pullAndUpdate() {
|
|
234
|
+
logger.debug('Checking for updates', { repoDir: this.repoDir });
|
|
235
|
+
try {
|
|
236
|
+
await execAsync('git fetch origin main', { cwd: this.repoDir });
|
|
237
|
+
const currentResult = await execAsync('git rev-parse HEAD', { cwd: this.repoDir });
|
|
238
|
+
const latestResult = await execAsync('git rev-parse origin/main', { cwd: this.repoDir });
|
|
239
|
+
const currentCommit = currentResult.stdout.trim();
|
|
240
|
+
const latestCommit = latestResult.stdout.trim();
|
|
241
|
+
if (currentCommit === latestCommit) {
|
|
242
|
+
logger.debug('Already up to date, no rebuild needed');
|
|
243
|
+
this.emitStatus({ type: 'no_update' });
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
logger.debug('Resetting to latest commit...', { from: currentCommit.slice(0, 7), to: latestCommit.slice(0, 7) });
|
|
247
|
+
await execAsync('git reset --hard origin/main', { cwd: this.repoDir });
|
|
248
|
+
return await this.rebuildAndLink();
|
|
249
|
+
}
|
|
250
|
+
catch (error) {
|
|
251
|
+
logger.error('Pull/reset failed, attempting fresh clone', error);
|
|
252
|
+
return await this.freshClone();
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
async freshClone() {
|
|
256
|
+
logger.flow('Performing fresh clone');
|
|
257
|
+
try {
|
|
258
|
+
this.emitStatus({ type: 'updating', step: 1, totalSteps: 4, message: 'Removing old repository...' });
|
|
259
|
+
await rm(this.repoDir, { recursive: true, force: true });
|
|
260
|
+
return await this.initialSetup();
|
|
261
|
+
}
|
|
262
|
+
catch (error) {
|
|
263
|
+
logger.error('Fresh clone failed', error);
|
|
264
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
265
|
+
this.emitStatus({ type: 'error', message: `Fresh clone failed: ${message}` });
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
async rebuildAndLink() {
|
|
270
|
+
const totalSteps = 3;
|
|
271
|
+
try {
|
|
272
|
+
this.emitStatus({ type: 'updating', step: 1, totalSteps, message: 'Updating dependencies...' });
|
|
273
|
+
await execAsync('npm install', { cwd: this.repoDir });
|
|
274
|
+
this.emitStatus({ type: 'updating', step: 2, totalSteps, message: 'Building project...' });
|
|
275
|
+
await execAsync('npm run build', { cwd: this.repoDir });
|
|
276
|
+
this.emitStatus({ type: 'updating', step: 3, totalSteps, message: 'Updating global link...' });
|
|
277
|
+
await execAsync('npm link', { cwd: this.repoDir });
|
|
278
|
+
this.emitStatus({ type: 'complete', needsRestart: true, message: 'Update complete! Please restart.' });
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
281
|
+
catch (buildError) {
|
|
282
|
+
logger.error('Build/link failed', buildError);
|
|
283
|
+
const message = buildError instanceof Error ? buildError.message : 'Unknown error';
|
|
284
|
+
this.emitStatus({ type: 'error', message: `Build failed: ${message}` });
|
|
285
|
+
return false;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
async copyBinariesInternal() {
|
|
289
|
+
try {
|
|
290
|
+
const repoBinDir = path.join(this.repoDir, 'bin');
|
|
291
|
+
const installDir = path.join(os.homedir(), '.local', 'bin');
|
|
292
|
+
const lcliGzSrc = path.join(repoBinDir, 'lcli.gz');
|
|
293
|
+
const yogaSrc = path.join(repoBinDir, 'yoga.wasm');
|
|
294
|
+
const lcliDest = path.join(installDir, 'lcli');
|
|
295
|
+
const yogaDest = path.join(installDir, 'yoga.wasm');
|
|
296
|
+
if (!fs.existsSync(lcliGzSrc)) {
|
|
297
|
+
this.emitStatus({ type: 'error', message: 'Binary not found in repository (bin/lcli.gz)' });
|
|
298
|
+
return false;
|
|
299
|
+
}
|
|
300
|
+
if (!fs.existsSync(installDir)) {
|
|
301
|
+
fs.mkdirSync(installDir, { recursive: true });
|
|
302
|
+
}
|
|
303
|
+
await rm(lcliDest, { force: true });
|
|
304
|
+
await pipeline(createReadStream(lcliGzSrc), zlib.createGunzip(), createWriteStream(lcliDest));
|
|
305
|
+
await chmod(lcliDest, 0o755);
|
|
306
|
+
if (fs.existsSync(yogaSrc)) {
|
|
307
|
+
await copyFile(yogaSrc, yogaDest);
|
|
308
|
+
}
|
|
309
|
+
await this.ensurePathConfigured(installDir);
|
|
310
|
+
await this.unlinkNpm();
|
|
311
|
+
logger.debug('Binaries copied successfully');
|
|
312
|
+
return true;
|
|
313
|
+
}
|
|
314
|
+
catch (error) {
|
|
315
|
+
logger.error('Copy binaries internal failed', error);
|
|
316
|
+
return false;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
async ensurePathConfigured(binDir) {
|
|
320
|
+
const pathExport = `export PATH="${binDir}:$PATH"`;
|
|
321
|
+
const marker = '# local-cli binary';
|
|
322
|
+
const shell = process.env['SHELL'] || '/bin/bash';
|
|
323
|
+
let rcFile;
|
|
324
|
+
if (shell.includes('zsh')) {
|
|
325
|
+
rcFile = path.join(os.homedir(), '.zshrc');
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
rcFile = path.join(os.homedir(), '.bashrc');
|
|
329
|
+
}
|
|
330
|
+
try {
|
|
331
|
+
let content = '';
|
|
332
|
+
if (fs.existsSync(rcFile)) {
|
|
333
|
+
content = fs.readFileSync(rcFile, 'utf-8');
|
|
334
|
+
}
|
|
335
|
+
if (content.includes(marker)) {
|
|
336
|
+
logger.debug('PATH already configured (marker found)');
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
const currentPath = process.env['PATH'] || '';
|
|
340
|
+
if (currentPath.split(':').includes(binDir)) {
|
|
341
|
+
logger.debug('PATH already contains binDir, adding marker for future reference');
|
|
342
|
+
fs.appendFileSync(rcFile, `\n${marker}\n# PATH already configured elsewhere\n`);
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
const addition = `\n${marker}\n${pathExport}\n`;
|
|
346
|
+
fs.appendFileSync(rcFile, addition);
|
|
347
|
+
logger.debug('PATH configuration added to ' + rcFile);
|
|
348
|
+
}
|
|
349
|
+
catch (error) {
|
|
350
|
+
logger.debug('Failed to configure PATH: ' + (error instanceof Error ? error.message : String(error)));
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
async unlinkNpm() {
|
|
354
|
+
try {
|
|
355
|
+
await execAsync('npm unlink -g local-cli');
|
|
356
|
+
}
|
|
357
|
+
catch (error) {
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
async cleanupRepo() {
|
|
361
|
+
try {
|
|
362
|
+
if (fs.existsSync(this.repoDir)) {
|
|
363
|
+
logger.debug('Cleaning up repo directory to prevent source code exposure');
|
|
364
|
+
await rm(this.repoDir, { recursive: true, force: true });
|
|
365
|
+
logger.debug('Repo directory removed successfully');
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
catch (error) {
|
|
369
|
+
logger.debug('Failed to cleanup repo: ' + (error instanceof Error ? error.message : String(error)));
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
export default GitAutoUpdater;
|
|
374
|
+
//# sourceMappingURL=git-auto-updater.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-auto-updater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AC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACtG,CAAC;IACH,CAAC;CACF;AAED,eAAe,cAAc,CAAC"}
|
package/dist/core/llm/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/llm/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/errors/base.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/errors/base.js
CHANGED
|
File without changes
|
package/dist/errors/base.js.map
CHANGED
|
File without changes
|
package/dist/errors/file.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/errors/file.js
CHANGED
|
File without changes
|
package/dist/errors/file.js.map
CHANGED
|
File without changes
|
package/dist/errors/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/errors/index.js
CHANGED
|
File without changes
|
package/dist/errors/index.js.map
CHANGED
|
File without changes
|
package/dist/errors/llm.d.ts
CHANGED
|
File without changes
|
package/dist/errors/llm.d.ts.map
CHANGED
|
File without changes
|
package/dist/errors/llm.js
CHANGED
|
File without changes
|
package/dist/errors/llm.js.map
CHANGED
|
File without changes
|
package/dist/errors/network.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/errors/network.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval-runner.d.ts","sourceRoot":"","sources":["../../src/eval/eval-runner.ts"],"names":[],"mappings":"AAYA,O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116,7 +116,10 @@ export class EvalRunner {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
if (msg.role === 'assistant' && !msg.tool_calls && msg.content) {
|
|
119
|
-
|
|
119
|
+
const isIntermediateMessage = msg.content.includes('Created') && msg.content.includes('tasks') && msg.content.includes('Starting execution');
|
|
120
|
+
if (!isIntermediateMessage) {
|
|
121
|
+
this.lastResponse = msg.content;
|
|
122
|
+
}
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
previousMessages = newMessages;
|
|
@@ -185,12 +188,27 @@ export class EvalRunner {
|
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
190
|
emitResponse() {
|
|
188
|
-
|
|
191
|
+
let responseContent = this.lastResponse;
|
|
192
|
+
if (!responseContent && this.todos.length > 0) {
|
|
193
|
+
const completedCount = this.todos.filter(t => t.status === 'completed').length;
|
|
194
|
+
const failedCount = this.todos.filter(t => t.status === 'failed').length;
|
|
195
|
+
responseContent = `✅ Task execution completed.\n\n`;
|
|
196
|
+
responseContent += `Completed: ${completedCount}/${this.todos.length} tasks\n`;
|
|
197
|
+
if (failedCount > 0) {
|
|
198
|
+
responseContent += `Failed: ${failedCount} tasks\n`;
|
|
199
|
+
}
|
|
200
|
+
responseContent += `\nTasks:\n`;
|
|
201
|
+
this.todos.forEach(todo => {
|
|
202
|
+
const icon = todo.status === 'completed' ? '✅' : todo.status === 'failed' ? '❌' : '⏸️';
|
|
203
|
+
responseContent += `${icon} ${todo.title}\n`;
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
if (responseContent) {
|
|
189
207
|
const event = {
|
|
190
208
|
event: 'response',
|
|
191
209
|
timestamp: now(),
|
|
192
210
|
data: {
|
|
193
|
-
content:
|
|
211
|
+
content: responseContent,
|
|
194
212
|
},
|
|
195
213
|
};
|
|
196
214
|
emitEvent(event);
|