local-cli-agent 5.0.4
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/LICENSE +21 -0
- package/README.md +306 -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/browser/browser-profile-manager.d.ts +16 -0
- package/dist/agents/browser/browser-profile-manager.d.ts.map +1 -0
- package/dist/agents/browser/browser-profile-manager.js +149 -0
- package/dist/agents/browser/browser-profile-manager.js.map +1 -0
- package/dist/agents/browser/browser-sub-agent.d.ts +22 -0
- package/dist/agents/browser/browser-sub-agent.d.ts.map +1 -0
- package/dist/agents/browser/browser-sub-agent.js +162 -0
- package/dist/agents/browser/browser-sub-agent.js.map +1 -0
- package/dist/agents/browser/confluence-agent.d.ts +3 -0
- package/dist/agents/browser/confluence-agent.d.ts.map +1 -0
- package/dist/agents/browser/confluence-agent.js +35 -0
- package/dist/agents/browser/confluence-agent.js.map +1 -0
- package/dist/agents/browser/index.d.ts +4 -0
- package/dist/agents/browser/index.d.ts.map +1 -0
- package/dist/agents/browser/index.js +4 -0
- package/dist/agents/browser/index.js.map +1 -0
- package/dist/agents/browser/jira-agent.d.ts +3 -0
- package/dist/agents/browser/jira-agent.d.ts.map +1 -0
- package/dist/agents/browser/jira-agent.js +35 -0
- package/dist/agents/browser/jira-agent.js.map +1 -0
- package/dist/agents/browser/prompts.d.ts +4 -0
- package/dist/agents/browser/prompts.d.ts.map +1 -0
- package/dist/agents/browser/prompts.js +241 -0
- package/dist/agents/browser/prompts.js.map +1 -0
- package/dist/agents/browser/search-agent.d.ts +3 -0
- package/dist/agents/browser/search-agent.d.ts.map +1 -0
- package/dist/agents/browser/search-agent.js +31 -0
- package/dist/agents/browser/search-agent.js.map +1 -0
- package/dist/agents/common/complete-tool.d.ts +3 -0
- package/dist/agents/common/complete-tool.d.ts.map +1 -0
- package/dist/agents/common/complete-tool.js +18 -0
- package/dist/agents/common/complete-tool.js.map +1 -0
- package/dist/agents/common/index.d.ts +3 -0
- package/dist/agents/common/index.d.ts.map +1 -0
- package/dist/agents/common/index.js +3 -0
- package/dist/agents/common/index.js.map +1 -0
- package/dist/agents/common/sub-agent.d.ts +40 -0
- package/dist/agents/common/sub-agent.d.ts.map +1 -0
- package/dist/agents/common/sub-agent.js +313 -0
- package/dist/agents/common/sub-agent.js.map +1 -0
- package/dist/agents/index.d.ts +5 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +5 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/office/complete-tool.d.ts +3 -0
- package/dist/agents/office/complete-tool.d.ts.map +1 -0
- package/dist/agents/office/complete-tool.js +18 -0
- package/dist/agents/office/complete-tool.js.map +1 -0
- package/dist/agents/office/excel-agent.d.ts +3 -0
- package/dist/agents/office/excel-agent.d.ts.map +1 -0
- package/dist/agents/office/excel-agent.js +31 -0
- package/dist/agents/office/excel-agent.js.map +1 -0
- package/dist/agents/office/excel-create-agent.d.ts +3 -0
- package/dist/agents/office/excel-create-agent.d.ts.map +1 -0
- package/dist/agents/office/excel-create-agent.js +58 -0
- package/dist/agents/office/excel-create-agent.js.map +1 -0
- package/dist/agents/office/excel-create-prompts.d.ts +4 -0
- package/dist/agents/office/excel-create-prompts.d.ts.map +1 -0
- package/dist/agents/office/excel-create-prompts.js +217 -0
- package/dist/agents/office/excel-create-prompts.js.map +1 -0
- package/dist/agents/office/index.d.ts +10 -0
- package/dist/agents/office/index.d.ts.map +1 -0
- package/dist/agents/office/index.js +10 -0
- package/dist/agents/office/index.js.map +1 -0
- package/dist/agents/office/office-sub-agent.d.ts +21 -0
- package/dist/agents/office/office-sub-agent.d.ts.map +1 -0
- package/dist/agents/office/office-sub-agent.js +127 -0
- package/dist/agents/office/office-sub-agent.js.map +1 -0
- package/dist/agents/office/powerpoint-agent.d.ts +3 -0
- package/dist/agents/office/powerpoint-agent.d.ts.map +1 -0
- package/dist/agents/office/powerpoint-agent.js +37 -0
- package/dist/agents/office/powerpoint-agent.js.map +1 -0
- package/dist/agents/office/powerpoint-create-agent.d.ts +3 -0
- package/dist/agents/office/powerpoint-create-agent.d.ts.map +1 -0
- package/dist/agents/office/powerpoint-create-agent.js +1124 -0
- package/dist/agents/office/powerpoint-create-agent.js.map +1 -0
- package/dist/agents/office/powerpoint-create-prompts.d.ts +116 -0
- package/dist/agents/office/powerpoint-create-prompts.d.ts.map +1 -0
- package/dist/agents/office/powerpoint-create-prompts.js +1354 -0
- package/dist/agents/office/powerpoint-create-prompts.js.map +1 -0
- package/dist/agents/office/prompts.d.ts +11 -0
- package/dist/agents/office/prompts.d.ts.map +1 -0
- package/dist/agents/office/prompts.js +852 -0
- package/dist/agents/office/prompts.js.map +1 -0
- package/dist/agents/office/word-agent.d.ts +3 -0
- package/dist/agents/office/word-agent.d.ts.map +1 -0
- package/dist/agents/office/word-agent.js +31 -0
- package/dist/agents/office/word-agent.js.map +1 -0
- package/dist/agents/office/word-create-agent.d.ts +3 -0
- package/dist/agents/office/word-create-agent.d.ts.map +1 -0
- package/dist/agents/office/word-create-agent.js +36 -0
- package/dist/agents/office/word-create-agent.js.map +1 -0
- package/dist/agents/office/word-create-prompts.d.ts +4 -0
- package/dist/agents/office/word-create-prompts.d.ts.map +1 -0
- package/dist/agents/office/word-create-prompts.js +288 -0
- package/dist/agents/office/word-create-prompts.js.map +1 -0
- package/dist/agents/planner/index.d.ts +14 -0
- package/dist/agents/planner/index.d.ts.map +1 -0
- package/dist/agents/planner/index.js +334 -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 +166 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/chat-command.d.ts +2 -0
- package/dist/commands/chat-command.d.ts.map +1 -0
- package/dist/commands/chat-command.js +90 -0
- package/dist/commands/chat-command.js.map +1 -0
- package/dist/commands/electron-client.d.ts +17 -0
- package/dist/commands/electron-client.d.ts.map +1 -0
- package/dist/commands/electron-client.js +180 -0
- package/dist/commands/electron-client.js.map +1 -0
- package/dist/commands/jarvis-command.d.ts +2 -0
- package/dist/commands/jarvis-command.d.ts.map +1 -0
- package/dist/commands/jarvis-command.js +66 -0
- package/dist/commands/jarvis-command.js.map +1 -0
- package/dist/constants.d.ts +11 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +13 -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 +77 -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 +43 -0
- package/dist/core/config/config-manager.d.ts.map +1 -0
- package/dist/core/config/config-manager.js +254 -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 +110 -0
- package/dist/core/llm/llm-client.d.ts.map +1 -0
- package/dist/core/llm/llm-client.js +1272 -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 +73 -0
- package/dist/core/session/session-manager.d.ts.map +1 -0
- package/dist/core/session/session-manager.js +260 -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 +304 -0
- package/dist/core/slash-command-handler.js.map +1 -0
- package/dist/core/telemetry/error-reporter.d.ts +2 -0
- package/dist/core/telemetry/error-reporter.d.ts.map +1 -0
- package/dist/core/telemetry/error-reporter.js +3 -0
- package/dist/core/telemetry/error-reporter.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 +30 -0
- package/dist/errors/llm.d.ts.map +1 -0
- package/dist/errors/llm.js +97 -0
- package/dist/errors/llm.js.map +1 -0
- package/dist/errors/network.d.ts +19 -0
- package/dist/errors/network.d.ts.map +1 -0
- package/dist/errors/network.js +82 -0
- package/dist/errors/network.js.map +1 -0
- package/dist/errors/validation.d.ts +19 -0
- package/dist/errors/validation.d.ts.map +1 -0
- package/dist/errors/validation.js +62 -0
- package/dist/errors/validation.js.map +1 -0
- package/dist/eval/eval-runner.d.ts +24 -0
- package/dist/eval/eval-runner.d.ts.map +1 -0
- package/dist/eval/eval-runner.js +291 -0
- package/dist/eval/eval-runner.js.map +1 -0
- package/dist/eval/index.d.ts +3 -0
- package/dist/eval/index.d.ts.map +1 -0
- package/dist/eval/index.js +3 -0
- package/dist/eval/index.js.map +1 -0
- package/dist/eval/types.d.ts +77 -0
- package/dist/eval/types.d.ts.map +1 -0
- package/dist/eval/types.js +2 -0
- package/dist/eval/types.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestration/index.d.ts +4 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/index.js +3 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/plan-executor.d.ts +27 -0
- package/dist/orchestration/plan-executor.d.ts.map +1 -0
- package/dist/orchestration/plan-executor.js +536 -0
- package/dist/orchestration/plan-executor.js.map +1 -0
- package/dist/orchestration/types.d.ts +69 -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 +14 -0
- package/dist/orchestration/utils.d.ts.map +1 -0
- package/dist/orchestration/utils.js +105 -0
- package/dist/orchestration/utils.js.map +1 -0
- package/dist/pipe/index.d.ts +2 -0
- package/dist/pipe/index.d.ts.map +1 -0
- package/dist/pipe/index.js +2 -0
- package/dist/pipe/index.js.map +1 -0
- package/dist/pipe/pipe-runner.d.ts +15 -0
- package/dist/pipe/pipe-runner.d.ts.map +1 -0
- package/dist/pipe/pipe-runner.js +207 -0
- package/dist/pipe/pipe-runner.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 +318 -0
- package/dist/prompts/agents/planning.js.map +1 -0
- package/dist/prompts/index.d.ts +8 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +8 -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 +14 -0
- package/dist/prompts/shared/tool-usage.d.ts.map +1 -0
- package/dist/prompts/shared/tool-usage.js +92 -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 +6 -0
- package/dist/prompts/system/plan-execute.d.ts.map +1 -0
- package/dist/prompts/system/plan-execute.js +178 -0
- package/dist/prompts/system/plan-execute.js.map +1 -0
- package/dist/tools/browser/browser-client.d.ts +108 -0
- package/dist/tools/browser/browser-client.d.ts.map +1 -0
- package/dist/tools/browser/browser-client.js +965 -0
- package/dist/tools/browser/browser-client.js.map +1 -0
- package/dist/tools/browser/browser-tools.d.ts +18 -0
- package/dist/tools/browser/browser-tools.d.ts.map +1 -0
- package/dist/tools/browser/browser-tools.js +983 -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/index.d.ts +2 -0
- package/dist/tools/llm/index.d.ts.map +1 -0
- package/dist/tools/llm/index.js +2 -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 +320 -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 +302 -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 +167 -0
- package/dist/tools/llm/simple/bash-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 +814 -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 +121 -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 +163 -0
- package/dist/tools/llm/simple/powershell-tool.js.map +1 -0
- package/dist/tools/llm/simple/read-image-tool.d.ts +8 -0
- package/dist/tools/llm/simple/read-image-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/read-image-tool.js +170 -0
- package/dist/tools/llm/simple/read-image-tool.js.map +1 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts +40 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts.map +1 -0
- package/dist/tools/llm/simple/simple-tool-executor.js +159 -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 +192 -0
- package/dist/tools/office/common/constants.d.ts.map +1 -0
- package/dist/tools/office/common/constants.js +165 -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 +16 -0
- package/dist/tools/office/common/utils.d.ts.map +1 -0
- package/dist/tools/office/common/utils.js +60 -0
- package/dist/tools/office/common/utils.js.map +1 -0
- package/dist/tools/office/excel-client.d.ts +219 -0
- package/dist/tools/office/excel-client.d.ts.map +1 -0
- package/dist/tools/office/excel-client.js +2346 -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 +283 -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 +18 -0
- package/dist/tools/office/excel-tools/index.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/index.js +54 -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 +250 -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/sheet-builders.d.ts +9 -0
- package/dist/tools/office/excel-tools/sheet-builders.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/sheet-builders.js +483 -0
- package/dist/tools/office/excel-tools/sheet-builders.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 +182 -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 +33 -0
- package/dist/tools/office/office-client-base.d.ts.map +1 -0
- package/dist/tools/office/office-client-base.js +166 -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 +148 -0
- package/dist/tools/office/powerpoint-client.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-client.js +1310 -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 +123 -0
- package/dist/tools/office/powerpoint-tools/export.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts +15 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/index.js +40 -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 +218 -0
- package/dist/tools/office/powerpoint-tools/launch.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/layout-builders.d.ts +12 -0
- package/dist/tools/office/powerpoint-tools/layout-builders.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/layout-builders.js +785 -0
- package/dist/tools/office/powerpoint-tools/layout-builders.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 +379 -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 +169 -0
- package/dist/tools/office/word-client.d.ts.map +1 -0
- package/dist/tools/office/word-client.js +1636 -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 +19 -0
- package/dist/tools/office/word-tools/index.d.ts.map +1 -0
- package/dist/tools/office/word-tools/index.js +60 -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 +257 -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/section-builders.d.ts +12 -0
- package/dist/tools/office/word-tools/section-builders.d.ts.map +1 -0
- package/dist/tools/office/word-tools/section-builders.js +601 -0
- package/dist/tools/office/word-tools/section-builders.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 +245 -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 +55 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +296 -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 +132 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/ui/PlanExecuteView.d.ts +11 -0
- package/dist/ui/PlanExecuteView.d.ts.map +1 -0
- package/dist/ui/PlanExecuteView.js +27 -0
- package/dist/ui/PlanExecuteView.js.map +1 -0
- package/dist/ui/TodoPanel.d.ts +13 -0
- package/dist/ui/TodoPanel.d.ts.map +1 -0
- package/dist/ui/TodoPanel.js +138 -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 +116 -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 +57 -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 +246 -0
- package/dist/ui/components/CustomTextInput.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 +197 -0
- package/dist/ui/components/LLMSetupWizard.js.map +1 -0
- package/dist/ui/components/Logo.d.ts +20 -0
- package/dist/ui/components/Logo.d.ts.map +1 -0
- package/dist/ui/components/Logo.js +100 -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 +1377 -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 +112 -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 +175 -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 +586 -0
- package/dist/ui/components/dialogs/SettingsDialog.js.map +1 -0
- package/dist/ui/components/dialogs/index.d.ts +3 -0
- package/dist/ui/components/dialogs/index.d.ts.map +1 -0
- package/dist/ui/components/dialogs/index.js +3 -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 +9 -0
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +9 -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 +96 -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 +218 -0
- package/dist/ui/hooks/usePlanExecution.js.map +1 -0
- package/dist/ui/hooks/useTerminalWidth.d.ts +4 -0
- package/dist/ui/hooks/useTerminalWidth.d.ts.map +1 -0
- package/dist/ui/hooks/useTerminalWidth.js +26 -0
- package/dist/ui/hooks/useTerminalWidth.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/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/package.json +132 -0
- package/scripts/patch-yoga.js +48 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const COMPACT_SYSTEM_PROMPT = `# Role
|
|
2
|
+
|
|
3
|
+
You are a "Technical Context Compressor" for Local CLI, an AI coding assistant. Your task is to compress a conversation into a minimal, high-density state representation that preserves ALL critical context for seamless continuation.
|
|
4
|
+
|
|
5
|
+
# Objective
|
|
6
|
+
|
|
7
|
+
Reduce token usage by 70-90% while preserving 100% of:
|
|
8
|
+
- What the user is building and why
|
|
9
|
+
- All technical decisions made
|
|
10
|
+
- Current progress and blockers
|
|
11
|
+
- Files modified or created
|
|
12
|
+
- Constraints discovered (what failed and why)
|
|
13
|
+
|
|
14
|
+
# CRITICAL: Preserve These Exactly
|
|
15
|
+
|
|
16
|
+
1. **Active TODO Items**: Tasks in progress or pending - these MUST appear in output
|
|
17
|
+
2. **File Paths**: All file paths mentioned (created, modified, discussed)
|
|
18
|
+
3. **Error Patterns**: Errors encountered and their solutions
|
|
19
|
+
4. **User Preferences**: Coding style, language preferences, specific requirements
|
|
20
|
+
|
|
21
|
+
# DISCARD
|
|
22
|
+
|
|
23
|
+
- Greetings, thanks, confirmations ("Sure!", "Great!", "I'll help you")
|
|
24
|
+
- Redundant explanations of the same concept
|
|
25
|
+
- Failed code attempts (UNLESS they reveal constraints)
|
|
26
|
+
- Tool call details (keep only results)
|
|
27
|
+
- Intermediate reasoning steps
|
|
28
|
+
|
|
29
|
+
# Output Format
|
|
30
|
+
|
|
31
|
+
You MUST output valid markdown following this exact structure:
|
|
32
|
+
|
|
33
|
+
## Session Context
|
|
34
|
+
|
|
35
|
+
### Goal
|
|
36
|
+
[One sentence: What is the user building?]
|
|
37
|
+
|
|
38
|
+
### Status
|
|
39
|
+
[Current state: e.g., "Implementing compact feature, 3/5 tasks complete"]
|
|
40
|
+
|
|
41
|
+
### Key Decisions
|
|
42
|
+
- [Decision 1]: [Reason]
|
|
43
|
+
- [Decision 2]: [Reason]
|
|
44
|
+
|
|
45
|
+
### Constraints Learned
|
|
46
|
+
- [What failed] -> [Why] -> [Solution chosen]
|
|
47
|
+
|
|
48
|
+
### Files Modified
|
|
49
|
+
- \`path/to/file.ts\`: [What was done]
|
|
50
|
+
|
|
51
|
+
### Active Tasks
|
|
52
|
+
- [ ] [Task 1 - specific details]
|
|
53
|
+
- [x] [Task 2 - completed]
|
|
54
|
+
- [ ] [Task 3 - in progress]
|
|
55
|
+
|
|
56
|
+
### Technical Notes
|
|
57
|
+
[Critical code patterns, API details, or implementation notes to remember]
|
|
58
|
+
|
|
59
|
+
### Next Steps
|
|
60
|
+
1. [Immediate next action]
|
|
61
|
+
2. [Following action]
|
|
62
|
+
|
|
63
|
+
# Rules
|
|
64
|
+
|
|
65
|
+
- Maximum 2000 tokens output
|
|
66
|
+
- Use bullet points, not paragraphs
|
|
67
|
+
- Include specific file paths, function names, variable names
|
|
68
|
+
- If code is critical, include it; otherwise summarize intent
|
|
69
|
+
- NEVER use generic phrases like "discussed various options"
|
|
70
|
+
- Output in the same language as the conversation (Korean if Korean, English if English)
|
|
71
|
+
`;
|
|
72
|
+
export default COMPACT_SYSTEM_PROMPT;
|
|
73
|
+
//# sourceMappingURL=compact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact.js","sourceRoot":"","sources":["../../../src/prompts/system/compact.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEpC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PLAN_EXECUTE_SYSTEM_PROMPT: string;
|
|
2
|
+
export declare const VISION_VERIFICATION_RULE = "## CRITICAL: Screenshot Verification\n\n**When the result is visually verifiable (UI, web page, chart, document, etc.), you MUST take a screenshot of the final result and verify it visually.**\n- Use the appropriate screenshot tool (e.g., `excel_screenshot`, `word_screenshot`, `browser_screenshot`)\n- The screenshot tool returns the saved file path \u2014 use that EXACT path as `file_path` in `read_image`\n- Do NOT search for or guess the screenshot path \u2014 always use the path returned by the screenshot tool\n- Do NOT assume the visual output is correct \u2014 always confirm with your own eyes\n- This applies to: web pages, generated images, UI components, documents, charts, diagrams";
|
|
3
|
+
export declare function getCriticalReminders(hasVision: boolean): string;
|
|
4
|
+
export declare const CRITICAL_REMINDERS: string;
|
|
5
|
+
export default PLAN_EXECUTE_SYSTEM_PROMPT;
|
|
6
|
+
//# sourceMappingURL=plan-execute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-execute.d.ts","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,0BAA0B,QAgJtC,CAAC;AAMF,eAAO,MAAM,wBAAwB,6rBAOsD,CAAC;AAS5F,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAoB/D;AAGD,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAE9D,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { LANGUAGE_PRIORITY_RULE } from '../shared/language-rules.js';
|
|
2
|
+
import { AVAILABLE_TOOLS_WITH_TODO, TOOL_REASON_GUIDE, TOOL_CALL_FORMAT_GUIDE } from '../shared/tool-usage.js';
|
|
3
|
+
import { CODEBASE_FIRST_RULE } from '../shared/codebase-rules.js';
|
|
4
|
+
export const PLAN_EXECUTE_SYSTEM_PROMPT = `You are an AI assistant executing a TODO-based plan.
|
|
5
|
+
|
|
6
|
+
${LANGUAGE_PRIORITY_RULE}
|
|
7
|
+
|
|
8
|
+
**Additional language rule**: Default to Korean. Switch to the user's language only when the user inputs in a different language.
|
|
9
|
+
Write all tool reasons, status messages, and responses in the user's language.
|
|
10
|
+
|
|
11
|
+
## TODO Workflow
|
|
12
|
+
|
|
13
|
+
1. Work through TODOs systematically
|
|
14
|
+
2. Update status using \`write_todos\` (include ALL todos with current status)
|
|
15
|
+
3. **DONE when ALL TODOs are "completed"**
|
|
16
|
+
|
|
17
|
+
**CRITICAL: Keep TODO status in sync with your actual progress!**
|
|
18
|
+
- When starting a task → mark it "in_progress" IMMEDIATELY
|
|
19
|
+
- When finishing a task → mark it "completed" IMMEDIATELY
|
|
20
|
+
- The user sees the TODO list in real-time - mismatched status is confusing
|
|
21
|
+
- Call \`write_todos\` FREQUENTLY, not just at the end
|
|
22
|
+
|
|
23
|
+
${AVAILABLE_TOOLS_WITH_TODO}
|
|
24
|
+
|
|
25
|
+
${TOOL_REASON_GUIDE}
|
|
26
|
+
|
|
27
|
+
${TOOL_CALL_FORMAT_GUIDE}
|
|
28
|
+
|
|
29
|
+
## Execution Rules
|
|
30
|
+
|
|
31
|
+
1. **Read before modify** — Always read existing code first
|
|
32
|
+
2. **Use tools** — Perform actual work, don't just describe
|
|
33
|
+
3. **Stay focused** — Only work on TODOs, no unrelated features
|
|
34
|
+
|
|
35
|
+
### SURGICAL CHANGES — Touch only what the TODO requires
|
|
36
|
+
|
|
37
|
+
- Do NOT "improve" adjacent code, comments, or formatting
|
|
38
|
+
- Do NOT refactor code that isn't part of the TODO
|
|
39
|
+
- Match existing code style exactly, even if you'd do it differently
|
|
40
|
+
- If YOUR changes make something unused, remove it. But do NOT touch pre-existing dead code.
|
|
41
|
+
|
|
42
|
+
**Test: Every changed line must trace directly to a TODO item.**
|
|
43
|
+
|
|
44
|
+
### SIMPLICITY — Minimum code that solves the problem
|
|
45
|
+
|
|
46
|
+
- No abstractions for single-use code
|
|
47
|
+
- No speculative "flexibility" or "configurability" that wasn't requested
|
|
48
|
+
- If 200 lines could be 50, write 50
|
|
49
|
+
|
|
50
|
+
This does NOT conflict with Enterprise Quality:
|
|
51
|
+
- Error handling for features you're building → YES ✅
|
|
52
|
+
- Error handling for impossible scenarios → NO ❌
|
|
53
|
+
|
|
54
|
+
${CODEBASE_FIRST_RULE}
|
|
55
|
+
|
|
56
|
+
## CRITICAL: Sub-Agent Delegation
|
|
57
|
+
|
|
58
|
+
When delegating to specialist agents (word_create_agent, word_modify_agent, excel_create_agent, excel_modify_agent, powerpoint_create_agent, powerpoint_modify_agent):
|
|
59
|
+
|
|
60
|
+
**Write DETAILED instructions:**
|
|
61
|
+
- Include the full topic, desired sections, specific data/content, formatting preferences, and save path
|
|
62
|
+
- The more detail you provide, the better the result
|
|
63
|
+
- If the user gave vague instructions, YOU must fill in the gaps with professional judgment before delegating
|
|
64
|
+
- Example: User says "매출 보고서 만들어줘" → You should instruct: "2024년 분기별 매출 실적 보고서를 만들어주세요. 포함 항목: 1분기~4분기 국내/해외 매출, 전분기 대비 증감률, 합계. 현실적인 데이터를 생성하고 차트도 포함해주세요. 저장 경로: C:\\Users\\{user}\\Desktop\\매출보고서.xlsx"
|
|
65
|
+
|
|
66
|
+
**Verify agent results:**
|
|
67
|
+
- After the agent completes, check if the result is satisfactory
|
|
68
|
+
- If a screenshot tool is available, take a screenshot and verify visually
|
|
69
|
+
- If the result is unsatisfactory, call the agent again with MORE SPECIFIC instructions addressing what was wrong
|
|
70
|
+
|
|
71
|
+
**CRITICAL — Do NOT re-call an agent unnecessarily:**
|
|
72
|
+
- When an agent returns a successful completion, TRUST its result. The file has been created/modified.
|
|
73
|
+
- Do NOT call the same agent again just because you cannot independently verify the file exists — the agent has its own file system tools and confirms completion itself.
|
|
74
|
+
- Only re-call an agent if the CONTENT is wrong (e.g., wrong topic, poor quality, missing sections), not because of file path uncertainty.
|
|
75
|
+
- Each agent call is expensive (spawns a full LLM session). Calling the same agent 2-3 times wastes resources and creates duplicate files.
|
|
76
|
+
|
|
77
|
+
## CRITICAL: Tool Error Handling
|
|
78
|
+
|
|
79
|
+
**On tool error:** Read the error, investigate the cause, then retry with corrected parameters.
|
|
80
|
+
|
|
81
|
+
**NEVER call the same tool with the same arguments twice.** If a tool succeeded, move on. If a tool failed, change your approach or parameters before retrying.
|
|
82
|
+
|
|
83
|
+
## CRITICAL: When to Respond
|
|
84
|
+
|
|
85
|
+
**ONLY respond when ALL TODOs are "completed" or "failed".**
|
|
86
|
+
|
|
87
|
+
- Responding early = execution ends prematurely
|
|
88
|
+
- Use \`tell_to_user\` to communicate progress during execution
|
|
89
|
+
- \`write_todos\` only updates internal state
|
|
90
|
+
|
|
91
|
+
**Before final response, verify:**
|
|
92
|
+
- All TODOs completed?
|
|
93
|
+
- All tool calls successful?
|
|
94
|
+
- User's request fulfilled?
|
|
95
|
+
|
|
96
|
+
## CRITICAL: Final Response
|
|
97
|
+
|
|
98
|
+
Your final response MUST contain the **actual answer or result**:
|
|
99
|
+
- Question → Answer with information found
|
|
100
|
+
- Task → Summarize what was done
|
|
101
|
+
|
|
102
|
+
**DO NOT** just say "작업 완료" or give task statistics.
|
|
103
|
+
|
|
104
|
+
Example:
|
|
105
|
+
- User: "프로젝트 이름이 뭐야?" → "이 프로젝트는 **LOCAL-CLI**입니다."
|
|
106
|
+
- User: "debug 함수 추가해줘" → "logger.ts에 debug 함수를 추가했습니다."
|
|
107
|
+
|
|
108
|
+
## MESSAGE STRUCTURE
|
|
109
|
+
|
|
110
|
+
Messages use XML tags to separate context:
|
|
111
|
+
- \`<CONVERSATION_HISTORY>\`: Previous conversation (user messages, assistant responses, tool calls/results in chronological order). This is READ-ONLY context.
|
|
112
|
+
- \`<CURRENT_TASK>\`: Current TODO list and execution instructions. This is what you must work on.
|
|
113
|
+
- \`<CURRENT_REQUEST>\`: The current user message to act on.
|
|
114
|
+
|
|
115
|
+
**Focus on \`<CURRENT_REQUEST>\` and \`<CURRENT_TASK>\`.** Use \`<CONVERSATION_HISTORY>\` for reference only.
|
|
116
|
+
Do NOT re-execute tools from history. Do NOT confuse tools used in history with your current task.
|
|
117
|
+
|
|
118
|
+
## CRITICAL: Verification
|
|
119
|
+
|
|
120
|
+
**Every request MUST be verified before completion.**
|
|
121
|
+
- Before marking a TODO as "completed", check if there is ANY way to verify the result
|
|
122
|
+
- Run the code, check the output, read the modified file, test the function — do whatever it takes
|
|
123
|
+
- If the result is verifiable, you MUST verify it. Never assume correctness without evidence.
|
|
124
|
+
- Unverified work is unfinished work. Bugs in delivered work are unacceptable.
|
|
125
|
+
|
|
126
|
+
## CRITICAL: Enterprise Quality
|
|
127
|
+
|
|
128
|
+
Work with the mindset of building an enterprise-grade service.
|
|
129
|
+
- Always consider error handling and edge cases
|
|
130
|
+
- Always read and understand existing code before modifying
|
|
131
|
+
- Always verify after modification (build, test, screenshot)
|
|
132
|
+
- Always check if the same fix is needed in related files
|
|
133
|
+
- Maintain the tension that nothing must be missed
|
|
134
|
+
|
|
135
|
+
## Loop Detection & Stop Conditions
|
|
136
|
+
|
|
137
|
+
**STOP immediately when ANY of these conditions are met:**
|
|
138
|
+
1. ✅ All TODOs are "completed" or "failed" → deliver final response
|
|
139
|
+
2. ✅ User explicitly says "stop", "cancel", or "enough"
|
|
140
|
+
3. ✅ Same tool call with same arguments returns same error 2+ times → change approach or mark TODO "failed"
|
|
141
|
+
4. ✅ TODO context keeps repeating but no progress → mark remaining as "completed"
|
|
142
|
+
|
|
143
|
+
**NEVER do these:**
|
|
144
|
+
1. ❌ Do NOT stop after completing just ONE TODO — continue to the next
|
|
145
|
+
2. ❌ Do NOT call the same tool with identical arguments expecting different results
|
|
146
|
+
3. ❌ Do NOT retry a failed approach with the same parameters — try an alternative or mark "failed"
|
|
147
|
+
4. ❌ Do NOT leave TODOs as "in_progress" when moving to the next — update status first
|
|
148
|
+
`;
|
|
149
|
+
export const VISION_VERIFICATION_RULE = `## CRITICAL: Screenshot Verification
|
|
150
|
+
|
|
151
|
+
**When the result is visually verifiable (UI, web page, chart, document, etc.), you MUST take a screenshot of the final result and verify it visually.**
|
|
152
|
+
- Use the appropriate screenshot tool (e.g., \`excel_screenshot\`, \`word_screenshot\`, \`browser_screenshot\`)
|
|
153
|
+
- The screenshot tool returns the saved file path — use that EXACT path as \`file_path\` in \`read_image\`
|
|
154
|
+
- Do NOT search for or guess the screenshot path — always use the path returned by the screenshot tool
|
|
155
|
+
- Do NOT assume the visual output is correct — always confirm with your own eyes
|
|
156
|
+
- This applies to: web pages, generated images, UI components, documents, charts, diagrams`;
|
|
157
|
+
export function getCriticalReminders(hasVision) {
|
|
158
|
+
const items = [
|
|
159
|
+
'1. Tool arguments = valid JSON. All required parameters must be included.',
|
|
160
|
+
'2. Use exact tool names only: read_file, create_file, edit_file, bash, write_todos, final_response, etc.',
|
|
161
|
+
'3. Update TODO status IMMEDIATELY when starting or finishing a task.',
|
|
162
|
+
'4. DO NOT explain — USE the tool. Action, not description.',
|
|
163
|
+
'5. Use tell_to_user to report progress between tasks — the user should know what you\'re doing.',
|
|
164
|
+
'6. Call final_response ONLY when ALL TODOs are completed or failed.',
|
|
165
|
+
'7. VERIFY every result before marking complete. Run, test, read — never assume correctness.',
|
|
166
|
+
'8. Enterprise quality — always check error handling, edge cases, and related files.',
|
|
167
|
+
'9. Default to Korean — switch language only when the user inputs in another language.',
|
|
168
|
+
'10. SURGICAL — do NOT modify code outside the TODO scope. No "improving" adjacent code.',
|
|
169
|
+
'11. SIMPLICITY — minimum code to solve the problem. No single-use abstractions. No unrequested features.',
|
|
170
|
+
];
|
|
171
|
+
if (hasVision) {
|
|
172
|
+
items.push('12. If the result is visually verifiable, TAKE A SCREENSHOT and confirm it with your eyes.');
|
|
173
|
+
}
|
|
174
|
+
return `## REMEMBER\n${items.join('\n')}`;
|
|
175
|
+
}
|
|
176
|
+
export const CRITICAL_REMINDERS = getCriticalReminders(false);
|
|
177
|
+
export default PLAN_EXECUTE_SYSTEM_PROMPT;
|
|
178
|
+
//# sourceMappingURL=plan-execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-execute.js","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,0BAA0B,GAAG;;EAExC,sBAAsB;;;;;;;;;;;;;;;;;EAiBtB,yBAAyB;;EAEzB,iBAAiB;;EAEjB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BtB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FpB,CAAC;AAMF,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;2FAOmD,CAAC;AAS5F,MAAM,UAAU,oBAAoB,CAAC,SAAkB;IACrD,MAAM,KAAK,GAAG;QACZ,2EAA2E;QAC3E,0GAA0G;QAC1G,sEAAsE;QACtE,4DAA4D;QAC5D,iGAAiG;QACjG,qEAAqE;QACrE,6FAA6F;QAC7F,qFAAqF;QACrF,uFAAuF;QACvF,yFAAyF;QACzF,0GAA0G;KAC3G,CAAC;IAEF,IAAI,SAAS,EAAE,CAAC;QACd,KAAK,CAAC,IAAI,CAAC,4FAA4F,CAAC,CAAC;IAC3G,CAAC;IAED,OAAO,gBAAgB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC5C,CAAC;AAGD,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAE9D,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
interface BrowserResponse {
|
|
2
|
+
success: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
details?: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
interface HealthResponse extends BrowserResponse {
|
|
9
|
+
status: string;
|
|
10
|
+
version: string;
|
|
11
|
+
browser: {
|
|
12
|
+
active: boolean;
|
|
13
|
+
type: string | null;
|
|
14
|
+
chrome_available: boolean;
|
|
15
|
+
edge_available: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
interface ScreenshotResponse extends BrowserResponse {
|
|
19
|
+
image?: string;
|
|
20
|
+
format?: string;
|
|
21
|
+
encoding?: string;
|
|
22
|
+
url?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
interface NavigateResponse extends BrowserResponse {
|
|
26
|
+
url?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
}
|
|
29
|
+
interface PageInfoResponse extends BrowserResponse {
|
|
30
|
+
url?: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
html?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ConsoleLogEntry {
|
|
35
|
+
level: string;
|
|
36
|
+
message: string;
|
|
37
|
+
timestamp: number;
|
|
38
|
+
}
|
|
39
|
+
interface ConsoleResponse extends BrowserResponse {
|
|
40
|
+
logs?: ConsoleLogEntry[];
|
|
41
|
+
count?: number;
|
|
42
|
+
}
|
|
43
|
+
interface NetworkLogEntry {
|
|
44
|
+
type: 'request' | 'response';
|
|
45
|
+
url: string;
|
|
46
|
+
method?: string;
|
|
47
|
+
status?: number;
|
|
48
|
+
statusText?: string;
|
|
49
|
+
mimeType?: string;
|
|
50
|
+
timestamp: number;
|
|
51
|
+
requestId: string;
|
|
52
|
+
}
|
|
53
|
+
interface NetworkResponse extends BrowserResponse {
|
|
54
|
+
logs?: NetworkLogEntry[];
|
|
55
|
+
count?: number;
|
|
56
|
+
}
|
|
57
|
+
declare class BrowserClient {
|
|
58
|
+
private cdp;
|
|
59
|
+
private browserProcess;
|
|
60
|
+
private platform;
|
|
61
|
+
private cdpPort;
|
|
62
|
+
private browserType;
|
|
63
|
+
private consoleLogs;
|
|
64
|
+
private networkLogs;
|
|
65
|
+
constructor();
|
|
66
|
+
private getCDPUrl;
|
|
67
|
+
private findBrowserPath;
|
|
68
|
+
private findChromePath;
|
|
69
|
+
private findEdgePath;
|
|
70
|
+
private killExistingBrowser;
|
|
71
|
+
private isCDPAvailable;
|
|
72
|
+
private getTargets;
|
|
73
|
+
isRunning(): Promise<boolean>;
|
|
74
|
+
getHealth(): Promise<HealthResponse | null>;
|
|
75
|
+
startServer(): Promise<boolean>;
|
|
76
|
+
stopServer(): Promise<boolean>;
|
|
77
|
+
private setupLogging;
|
|
78
|
+
private getCurrentPageInfo;
|
|
79
|
+
launch(options?: {
|
|
80
|
+
headless?: boolean;
|
|
81
|
+
browser?: 'chrome' | 'edge';
|
|
82
|
+
userDataDir?: string;
|
|
83
|
+
cdpPort?: number;
|
|
84
|
+
}): Promise<BrowserResponse>;
|
|
85
|
+
close(): Promise<BrowserResponse>;
|
|
86
|
+
navigate(url: string): Promise<NavigateResponse>;
|
|
87
|
+
screenshot(fullPage?: boolean): Promise<ScreenshotResponse>;
|
|
88
|
+
click(selector: string): Promise<BrowserResponse>;
|
|
89
|
+
fill(selector: string, value: string): Promise<BrowserResponse>;
|
|
90
|
+
getText(selector: string): Promise<BrowserResponse>;
|
|
91
|
+
getPageInfo(): Promise<PageInfoResponse>;
|
|
92
|
+
getHtml(): Promise<PageInfoResponse>;
|
|
93
|
+
executeScript(script: string): Promise<BrowserResponse>;
|
|
94
|
+
getConsole(): Promise<ConsoleResponse>;
|
|
95
|
+
waitFor(selector: string, timeout?: number): Promise<BrowserResponse>;
|
|
96
|
+
getNetwork(): Promise<NetworkResponse>;
|
|
97
|
+
focus(): Promise<BrowserResponse>;
|
|
98
|
+
pressKey(key: string, selector?: string): Promise<BrowserResponse>;
|
|
99
|
+
type(text: string, selector?: string): Promise<BrowserResponse>;
|
|
100
|
+
isBrowserActive(): Promise<boolean>;
|
|
101
|
+
saveScreenshot(base64Image: string, prefix?: string): string;
|
|
102
|
+
getServerExePath(): string | null;
|
|
103
|
+
getServerUrl(): string;
|
|
104
|
+
}
|
|
105
|
+
export declare const browserClient: BrowserClient;
|
|
106
|
+
export { BrowserClient };
|
|
107
|
+
export type { BrowserResponse, HealthResponse, ScreenshotResponse, NavigateResponse, PageInfoResponse, ConsoleResponse, NetworkResponse };
|
|
108
|
+
//# sourceMappingURL=browser-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-client.d.ts","sourceRoot":"","sources":["../../../src/tools/browser/browser-client.ts"],"names":[],"mappings":"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"}
|