hanseol-dev 4.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +267 -0
- package/dist/agents/base/base-agent.d.ts +38 -0
- package/dist/agents/base/base-agent.d.ts.map +1 -0
- package/dist/agents/base/base-agent.js +69 -0
- package/dist/agents/base/base-agent.js.map +1 -0
- package/dist/agents/docs-search/index.d.ts +33 -0
- package/dist/agents/docs-search/index.d.ts.map +1 -0
- package/dist/agents/docs-search/index.js +244 -0
- package/dist/agents/docs-search/index.js.map +1 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +4 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/planner/index.d.ts +19 -0
- package/dist/agents/planner/index.d.ts.map +1 -0
- package/dist/agents/planner/index.js +339 -0
- package/dist/agents/planner/index.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +205 -0
- package/dist/cli.js.map +1 -0
- package/dist/constants.d.ts +10 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +12 -0
- package/dist/constants.js.map +1 -0
- package/dist/core/auth/oauth-login.d.ts +19 -0
- package/dist/core/auth/oauth-login.d.ts.map +1 -0
- package/dist/core/auth/oauth-login.js +197 -0
- package/dist/core/auth/oauth-login.js.map +1 -0
- package/dist/core/compact/compact-manager.d.ts +22 -0
- package/dist/core/compact/compact-manager.d.ts.map +1 -0
- package/dist/core/compact/compact-manager.js +75 -0
- package/dist/core/compact/compact-manager.js.map +1 -0
- package/dist/core/compact/compact-prompts.d.ts +11 -0
- package/dist/core/compact/compact-prompts.d.ts.map +1 -0
- package/dist/core/compact/compact-prompts.js +90 -0
- package/dist/core/compact/compact-prompts.js.map +1 -0
- package/dist/core/compact/context-tracker.d.ts +28 -0
- package/dist/core/compact/context-tracker.d.ts.map +1 -0
- package/dist/core/compact/context-tracker.js +71 -0
- package/dist/core/compact/context-tracker.js.map +1 -0
- package/dist/core/compact/index.d.ts +4 -0
- package/dist/core/compact/index.d.ts.map +1 -0
- package/dist/core/compact/index.js +4 -0
- package/dist/core/compact/index.js.map +1 -0
- package/dist/core/config/config-manager.d.ts +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/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 +98 -0
- package/dist/core/llm/llm-client.d.ts.map +1 -0
- package/dist/core/llm/llm-client.js +1024 -0
- package/dist/core/llm/llm-client.js.map +1 -0
- package/dist/core/s3-auto-updater.d.ts +44 -0
- package/dist/core/s3-auto-updater.d.ts.map +1 -0
- package/dist/core/s3-auto-updater.js +158 -0
- package/dist/core/s3-auto-updater.js.map +1 -0
- package/dist/core/session/index.d.ts +2 -0
- package/dist/core/session/index.d.ts.map +1 -0
- package/dist/core/session/index.js +2 -0
- package/dist/core/session/index.js.map +1 -0
- package/dist/core/session/session-manager.d.ts +71 -0
- package/dist/core/session/session-manager.d.ts.map +1 -0
- package/dist/core/session/session-manager.js +250 -0
- package/dist/core/session/session-manager.js.map +1 -0
- package/dist/core/slash-command-handler.d.ts +32 -0
- package/dist/core/slash-command-handler.d.ts.map +1 -0
- package/dist/core/slash-command-handler.js +455 -0
- package/dist/core/slash-command-handler.js.map +1 -0
- package/dist/core/usage-tracker.d.ts +74 -0
- package/dist/core/usage-tracker.d.ts.map +1 -0
- package/dist/core/usage-tracker.js +279 -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 +12 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +42 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/llm.d.ts +26 -0
- package/dist/errors/llm.d.ts.map +1 -0
- package/dist/errors/llm.js +86 -0
- package/dist/errors/llm.js.map +1 -0
- package/dist/errors/network.d.ts +19 -0
- package/dist/errors/network.d.ts.map +1 -0
- package/dist/errors/network.js +82 -0
- package/dist/errors/network.js.map +1 -0
- package/dist/errors/quota.d.ts +25 -0
- package/dist/errors/quota.d.ts.map +1 -0
- package/dist/errors/quota.js +10 -0
- package/dist/errors/quota.js.map +1 -0
- package/dist/errors/validation.d.ts +19 -0
- package/dist/errors/validation.d.ts.map +1 -0
- package/dist/errors/validation.js +62 -0
- package/dist/errors/validation.js.map +1 -0
- package/dist/eval/eval-runner.d.ts +24 -0
- package/dist/eval/eval-runner.d.ts.map +1 -0
- package/dist/eval/eval-runner.js +291 -0
- package/dist/eval/eval-runner.js.map +1 -0
- package/dist/eval/index.d.ts +3 -0
- package/dist/eval/index.d.ts.map +1 -0
- package/dist/eval/index.js +3 -0
- package/dist/eval/index.js.map +1 -0
- package/dist/eval/types.d.ts +77 -0
- package/dist/eval/types.d.ts.map +1 -0
- package/dist/eval/types.js +2 -0
- package/dist/eval/types.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestration/index.d.ts +4 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/index.js +3 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/plan-executor.d.ts +28 -0
- package/dist/orchestration/plan-executor.d.ts.map +1 -0
- package/dist/orchestration/plan-executor.js +376 -0
- package/dist/orchestration/plan-executor.js.map +1 -0
- package/dist/orchestration/types.d.ts +65 -0
- package/dist/orchestration/types.d.ts.map +1 -0
- package/dist/orchestration/types.js +2 -0
- package/dist/orchestration/types.js.map +1 -0
- package/dist/orchestration/utils.d.ts +13 -0
- package/dist/orchestration/utils.d.ts.map +1 -0
- package/dist/orchestration/utils.js +81 -0
- package/dist/orchestration/utils.js.map +1 -0
- package/dist/prompts/agents/docs-search-decision.d.ts +6 -0
- package/dist/prompts/agents/docs-search-decision.d.ts.map +1 -0
- package/dist/prompts/agents/docs-search-decision.js +46 -0
- package/dist/prompts/agents/docs-search-decision.js.map +1 -0
- package/dist/prompts/agents/docs-search.d.ts +4 -0
- package/dist/prompts/agents/docs-search.d.ts.map +1 -0
- package/dist/prompts/agents/docs-search.js +70 -0
- package/dist/prompts/agents/docs-search.js.map +1 -0
- package/dist/prompts/agents/planning.d.ts +4 -0
- package/dist/prompts/agents/planning.d.ts.map +1 -0
- package/dist/prompts/agents/planning.js +179 -0
- package/dist/prompts/agents/planning.js.map +1 -0
- package/dist/prompts/index.d.ts +10 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +10 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/shared/codebase-rules.d.ts +4 -0
- package/dist/prompts/shared/codebase-rules.d.ts.map +1 -0
- package/dist/prompts/shared/codebase-rules.js +16 -0
- package/dist/prompts/shared/codebase-rules.js.map +1 -0
- package/dist/prompts/shared/git-rules.d.ts +2 -0
- package/dist/prompts/shared/git-rules.d.ts.map +1 -0
- package/dist/prompts/shared/git-rules.js +87 -0
- package/dist/prompts/shared/git-rules.js.map +1 -0
- package/dist/prompts/shared/language-rules.d.ts +4 -0
- package/dist/prompts/shared/language-rules.d.ts.map +1 -0
- package/dist/prompts/shared/language-rules.js +22 -0
- package/dist/prompts/shared/language-rules.js.map +1 -0
- package/dist/prompts/shared/tool-usage.d.ts +12 -0
- package/dist/prompts/shared/tool-usage.d.ts.map +1 -0
- package/dist/prompts/shared/tool-usage.js +51 -0
- package/dist/prompts/shared/tool-usage.js.map +1 -0
- package/dist/prompts/system/compact.d.ts +3 -0
- package/dist/prompts/system/compact.d.ts.map +1 -0
- package/dist/prompts/system/compact.js +73 -0
- package/dist/prompts/system/compact.js.map +1 -0
- package/dist/prompts/system/plan-execute.d.ts +3 -0
- package/dist/prompts/system/plan-execute.d.ts.map +1 -0
- package/dist/prompts/system/plan-execute.js +119 -0
- package/dist/prompts/system/plan-execute.js.map +1 -0
- package/dist/tools/browser/browser-client.d.ts +119 -0
- package/dist/tools/browser/browser-client.d.ts.map +1 -0
- package/dist/tools/browser/browser-client.js +1083 -0
- package/dist/tools/browser/browser-client.js.map +1 -0
- package/dist/tools/browser/browser-tools.d.ts +23 -0
- package/dist/tools/browser/browser-tools.d.ts.map +1 -0
- package/dist/tools/browser/browser-tools.js +1347 -0
- package/dist/tools/browser/browser-tools.js.map +1 -0
- package/dist/tools/browser/index.d.ts +7 -0
- package/dist/tools/browser/index.d.ts.map +1 -0
- package/dist/tools/browser/index.js +17 -0
- package/dist/tools/browser/index.js.map +1 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/llm/agents/docs-search-tools.d.ts +17 -0
- package/dist/tools/llm/agents/docs-search-tools.d.ts.map +1 -0
- package/dist/tools/llm/agents/docs-search-tools.js +265 -0
- package/dist/tools/llm/agents/docs-search-tools.js.map +1 -0
- package/dist/tools/llm/agents/index.d.ts +4 -0
- package/dist/tools/llm/agents/index.d.ts.map +1 -0
- package/dist/tools/llm/agents/index.js +3 -0
- package/dist/tools/llm/agents/index.js.map +1 -0
- package/dist/tools/llm/index.d.ts +3 -0
- package/dist/tools/llm/index.d.ts.map +1 -0
- package/dist/tools/llm/index.js +3 -0
- package/dist/tools/llm/index.js.map +1 -0
- package/dist/tools/llm/simple/ask-user-tool.d.ts +5 -0
- package/dist/tools/llm/simple/ask-user-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/ask-user-tool.js +7 -0
- package/dist/tools/llm/simple/ask-user-tool.js.map +1 -0
- package/dist/tools/llm/simple/background-bash-tool.d.ts +30 -0
- package/dist/tools/llm/simple/background-bash-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/background-bash-tool.js +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/docs-search-agent-tool.d.ts +6 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.d.ts.map +1 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.js +104 -0
- package/dist/tools/llm/simple/docs-search-agent-tool.js.map +1 -0
- package/dist/tools/llm/simple/file-tools.d.ts +13 -0
- package/dist/tools/llm/simple/file-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/file-tools.js +751 -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 +6 -0
- package/dist/tools/llm/simple/planning-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/planning-tools.js +171 -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 +150 -0
- package/dist/tools/llm/simple/powershell-tool.js.map +1 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts +38 -0
- package/dist/tools/llm/simple/simple-tool-executor.d.ts.map +1 -0
- package/dist/tools/llm/simple/simple-tool-executor.js +134 -0
- package/dist/tools/llm/simple/simple-tool-executor.js.map +1 -0
- package/dist/tools/llm/simple/todo-tools.d.ts +15 -0
- package/dist/tools/llm/simple/todo-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/todo-tools.js +145 -0
- package/dist/tools/llm/simple/todo-tools.js.map +1 -0
- package/dist/tools/llm/simple/user-interaction-tools.d.ts +22 -0
- package/dist/tools/llm/simple/user-interaction-tools.d.ts.map +1 -0
- package/dist/tools/llm/simple/user-interaction-tools.js +168 -0
- package/dist/tools/llm/simple/user-interaction-tools.js.map +1 -0
- package/dist/tools/office/common/constants.d.ts +194 -0
- package/dist/tools/office/common/constants.d.ts.map +1 -0
- package/dist/tools/office/common/constants.js +169 -0
- package/dist/tools/office/common/constants.js.map +1 -0
- package/dist/tools/office/common/index.d.ts +4 -0
- package/dist/tools/office/common/index.d.ts.map +1 -0
- package/dist/tools/office/common/index.js +3 -0
- package/dist/tools/office/common/index.js.map +1 -0
- package/dist/tools/office/common/types.d.ts +82 -0
- package/dist/tools/office/common/types.d.ts.map +1 -0
- package/dist/tools/office/common/types.js +2 -0
- package/dist/tools/office/common/types.js.map +1 -0
- package/dist/tools/office/common/utils.d.ts +14 -0
- package/dist/tools/office/common/utils.d.ts.map +1 -0
- package/dist/tools/office/common/utils.js +58 -0
- package/dist/tools/office/common/utils.js.map +1 -0
- package/dist/tools/office/excel-client.d.ts +212 -0
- package/dist/tools/office/excel-client.d.ts.map +1 -0
- package/dist/tools/office/excel-client.js +2242 -0
- package/dist/tools/office/excel-client.js.map +1 -0
- package/dist/tools/office/excel-tools/advanced.d.ts +13 -0
- package/dist/tools/office/excel-tools/advanced.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/advanced.js +364 -0
- package/dist/tools/office/excel-tools/advanced.js.map +1 -0
- package/dist/tools/office/excel-tools/cells.d.ts +10 -0
- package/dist/tools/office/excel-tools/cells.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/cells.js +279 -0
- package/dist/tools/office/excel-tools/cells.js.map +1 -0
- package/dist/tools/office/excel-tools/charts.d.ts +12 -0
- package/dist/tools/office/excel-tools/charts.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/charts.js +373 -0
- package/dist/tools/office/excel-tools/charts.js.map +1 -0
- package/dist/tools/office/excel-tools/comments.d.ts +7 -0
- package/dist/tools/office/excel-tools/comments.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/comments.js +150 -0
- package/dist/tools/office/excel-tools/comments.js.map +1 -0
- package/dist/tools/office/excel-tools/data-ops.d.ts +14 -0
- package/dist/tools/office/excel-tools/data-ops.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/data-ops.js +420 -0
- package/dist/tools/office/excel-tools/data-ops.js.map +1 -0
- package/dist/tools/office/excel-tools/export.d.ts +8 -0
- package/dist/tools/office/excel-tools/export.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/export.js +191 -0
- package/dist/tools/office/excel-tools/export.js.map +1 -0
- package/dist/tools/office/excel-tools/formatting.d.ts +12 -0
- package/dist/tools/office/excel-tools/formatting.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/formatting.js +350 -0
- package/dist/tools/office/excel-tools/formatting.js.map +1 -0
- package/dist/tools/office/excel-tools/formulas.d.ts +11 -0
- package/dist/tools/office/excel-tools/formulas.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/formulas.js +313 -0
- package/dist/tools/office/excel-tools/formulas.js.map +1 -0
- package/dist/tools/office/excel-tools/index.d.ts +21 -0
- package/dist/tools/office/excel-tools/index.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/index.js +57 -0
- package/dist/tools/office/excel-tools/index.js.map +1 -0
- package/dist/tools/office/excel-tools/launch.d.ts +10 -0
- package/dist/tools/office/excel-tools/launch.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/launch.js +248 -0
- package/dist/tools/office/excel-tools/launch.js.map +1 -0
- package/dist/tools/office/excel-tools/media.d.ts +10 -0
- package/dist/tools/office/excel-tools/media.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/media.js +260 -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/page-setup.d.ts +6 -0
- package/dist/tools/office/excel-tools/page-setup.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/page-setup.js +144 -0
- package/dist/tools/office/excel-tools/page-setup.js.map +1 -0
- package/dist/tools/office/excel-tools/pivot-table.d.ts +7 -0
- package/dist/tools/office/excel-tools/pivot-table.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/pivot-table.js +151 -0
- package/dist/tools/office/excel-tools/pivot-table.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 +15 -0
- package/dist/tools/office/excel-tools/rows-columns.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/rows-columns.js +440 -0
- package/dist/tools/office/excel-tools/rows-columns.js.map +1 -0
- package/dist/tools/office/excel-tools/sheets.d.ts +16 -0
- package/dist/tools/office/excel-tools/sheets.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/sheets.js +465 -0
- package/dist/tools/office/excel-tools/sheets.js.map +1 -0
- package/dist/tools/office/excel-tools/tables.d.ts +7 -0
- package/dist/tools/office/excel-tools/tables.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/tables.js +151 -0
- package/dist/tools/office/excel-tools/tables.js.map +1 -0
- package/dist/tools/office/excel-tools/validation.d.ts +7 -0
- package/dist/tools/office/excel-tools/validation.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/validation.js +175 -0
- package/dist/tools/office/excel-tools/validation.js.map +1 -0
- package/dist/tools/office/excel-tools.d.ts +3 -0
- package/dist/tools/office/excel-tools.d.ts.map +1 -0
- package/dist/tools/office/excel-tools.js +3 -0
- package/dist/tools/office/excel-tools.js.map +1 -0
- package/dist/tools/office/index.d.ts +6 -0
- package/dist/tools/office/index.d.ts.map +1 -0
- package/dist/tools/office/index.js +9 -0
- package/dist/tools/office/index.js.map +1 -0
- package/dist/tools/office/office-client-base.d.ts +31 -0
- package/dist/tools/office/office-client-base.d.ts.map +1 -0
- package/dist/tools/office/office-client-base.js +154 -0
- package/dist/tools/office/office-client-base.js.map +1 -0
- package/dist/tools/office/office-client.d.ts +196 -0
- package/dist/tools/office/office-client.d.ts.map +1 -0
- package/dist/tools/office/office-client.js +200 -0
- package/dist/tools/office/office-client.js.map +1 -0
- package/dist/tools/office/powerpoint-client.d.ts +155 -0
- package/dist/tools/office/powerpoint-client.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-client.js +1359 -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 +259 -0
- package/dist/tools/office/powerpoint-tools/effects.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/export.d.ts +7 -0
- package/dist/tools/office/powerpoint-tools/export.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/export.js +151 -0
- package/dist/tools/office/powerpoint-tools/export.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts +13 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/index.js +33 -0
- package/dist/tools/office/powerpoint-tools/index.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/launch.d.ts +9 -0
- package/dist/tools/office/powerpoint-tools/launch.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/launch.js +214 -0
- package/dist/tools/office/powerpoint-tools/launch.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/media.d.ts +8 -0
- package/dist/tools/office/powerpoint-tools/media.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/media.js +221 -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 +181 -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 +111 -0
- package/dist/tools/office/powerpoint-tools/sections.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/shapes.d.ts +24 -0
- package/dist/tools/office/powerpoint-tools/shapes.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/shapes.js +817 -0
- package/dist/tools/office/powerpoint-tools/shapes.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/slides.d.ts +15 -0
- package/dist/tools/office/powerpoint-tools/slides.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/slides.js +447 -0
- package/dist/tools/office/powerpoint-tools/slides.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/tables.d.ts +12 -0
- package/dist/tools/office/powerpoint-tools/tables.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/tables.js +362 -0
- package/dist/tools/office/powerpoint-tools/tables.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/text.d.ts +13 -0
- package/dist/tools/office/powerpoint-tools/text.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/text.js +428 -0
- package/dist/tools/office/powerpoint-tools/text.js.map +1 -0
- package/dist/tools/office/powerpoint-tools.d.ts +3 -0
- package/dist/tools/office/powerpoint-tools.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools.js +3 -0
- package/dist/tools/office/powerpoint-tools.js.map +1 -0
- package/dist/tools/office/word-client.d.ts +147 -0
- package/dist/tools/office/word-client.d.ts.map +1 -0
- package/dist/tools/office/word-client.js +1341 -0
- package/dist/tools/office/word-client.js.map +1 -0
- package/dist/tools/office/word-tools/bookmarks.d.ts +7 -0
- package/dist/tools/office/word-tools/bookmarks.d.ts.map +1 -0
- package/dist/tools/office/word-tools/bookmarks.js +146 -0
- package/dist/tools/office/word-tools/bookmarks.js.map +1 -0
- package/dist/tools/office/word-tools/comments.d.ts +7 -0
- package/dist/tools/office/word-tools/comments.d.ts.map +1 -0
- package/dist/tools/office/word-tools/comments.js +146 -0
- package/dist/tools/office/word-tools/comments.js.map +1 -0
- package/dist/tools/office/word-tools/content.d.ts +7 -0
- package/dist/tools/office/word-tools/content.d.ts.map +1 -0
- package/dist/tools/office/word-tools/content.js +168 -0
- package/dist/tools/office/word-tools/content.js.map +1 -0
- package/dist/tools/office/word-tools/export.d.ts +5 -0
- package/dist/tools/office/word-tools/export.d.ts.map +1 -0
- package/dist/tools/office/word-tools/export.js +73 -0
- package/dist/tools/office/word-tools/export.js.map +1 -0
- package/dist/tools/office/word-tools/find.d.ts +5 -0
- package/dist/tools/office/word-tools/find.d.ts.map +1 -0
- package/dist/tools/office/word-tools/find.js +106 -0
- package/dist/tools/office/word-tools/find.js.map +1 -0
- package/dist/tools/office/word-tools/footnotes.d.ts +9 -0
- package/dist/tools/office/word-tools/footnotes.d.ts.map +1 -0
- package/dist/tools/office/word-tools/footnotes.js +227 -0
- package/dist/tools/office/word-tools/footnotes.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 +22 -0
- package/dist/tools/office/word-tools/index.d.ts.map +1 -0
- package/dist/tools/office/word-tools/index.js +63 -0
- package/dist/tools/office/word-tools/index.js.map +1 -0
- package/dist/tools/office/word-tools/launch.d.ts +10 -0
- package/dist/tools/office/word-tools/launch.d.ts.map +1 -0
- package/dist/tools/office/word-tools/launch.js +255 -0
- package/dist/tools/office/word-tools/launch.js.map +1 -0
- package/dist/tools/office/word-tools/lists.d.ts +5 -0
- package/dist/tools/office/word-tools/lists.d.ts.map +1 -0
- package/dist/tools/office/word-tools/lists.js +73 -0
- package/dist/tools/office/word-tools/lists.js.map +1 -0
- package/dist/tools/office/word-tools/navigation.d.ts +5 -0
- package/dist/tools/office/word-tools/navigation.d.ts.map +1 -0
- package/dist/tools/office/word-tools/navigation.js +85 -0
- package/dist/tools/office/word-tools/navigation.js.map +1 -0
- package/dist/tools/office/word-tools/page-setup.d.ts +7 -0
- package/dist/tools/office/word-tools/page-setup.d.ts.map +1 -0
- package/dist/tools/office/word-tools/page-setup.js +152 -0
- package/dist/tools/office/word-tools/page-setup.js.map +1 -0
- package/dist/tools/office/word-tools/selection.d.ts +8 -0
- package/dist/tools/office/word-tools/selection.d.ts.map +1 -0
- package/dist/tools/office/word-tools/selection.js +193 -0
- package/dist/tools/office/word-tools/selection.js.map +1 -0
- package/dist/tools/office/word-tools/tables-advanced.d.ts +8 -0
- package/dist/tools/office/word-tools/tables-advanced.d.ts.map +1 -0
- package/dist/tools/office/word-tools/tables-advanced.js +190 -0
- package/dist/tools/office/word-tools/tables-advanced.js.map +1 -0
- package/dist/tools/office/word-tools/tables.d.ts +8 -0
- package/dist/tools/office/word-tools/tables.d.ts.map +1 -0
- package/dist/tools/office/word-tools/tables.js +197 -0
- package/dist/tools/office/word-tools/tables.js.map +1 -0
- package/dist/tools/office/word-tools/text.d.ts +9 -0
- package/dist/tools/office/word-tools/text.d.ts.map +1 -0
- package/dist/tools/office/word-tools/text.js +235 -0
- package/dist/tools/office/word-tools/text.js.map +1 -0
- package/dist/tools/office/word-tools/toc.d.ts +6 -0
- package/dist/tools/office/word-tools/toc.d.ts.map +1 -0
- package/dist/tools/office/word-tools/toc.js +114 -0
- package/dist/tools/office/word-tools/toc.js.map +1 -0
- package/dist/tools/office/word-tools/track-changes.d.ts +8 -0
- package/dist/tools/office/word-tools/track-changes.d.ts.map +1 -0
- package/dist/tools/office/word-tools/track-changes.js +195 -0
- package/dist/tools/office/word-tools/track-changes.js.map +1 -0
- package/dist/tools/office/word-tools/undo-redo.d.ts +5 -0
- package/dist/tools/office/word-tools/undo-redo.d.ts.map +1 -0
- package/dist/tools/office/word-tools/undo-redo.js +73 -0
- package/dist/tools/office/word-tools/undo-redo.js.map +1 -0
- package/dist/tools/office/word-tools/watermarks.d.ts +5 -0
- package/dist/tools/office/word-tools/watermarks.d.ts.map +1 -0
- package/dist/tools/office/word-tools/watermarks.js +81 -0
- package/dist/tools/office/word-tools/watermarks.js.map +1 -0
- package/dist/tools/office/word-tools.d.ts +3 -0
- package/dist/tools/office/word-tools.d.ts.map +1 -0
- package/dist/tools/office/word-tools.js +3 -0
- package/dist/tools/office/word-tools.js.map +1 -0
- package/dist/tools/registry.d.ts +53 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +282 -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 +123 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/ui/PlanExecuteView.d.ts +11 -0
- package/dist/ui/PlanExecuteView.d.ts.map +1 -0
- package/dist/ui/PlanExecuteView.js +27 -0
- package/dist/ui/PlanExecuteView.js.map +1 -0
- package/dist/ui/TodoPanel.d.ts +13 -0
- package/dist/ui/TodoPanel.d.ts.map +1 -0
- package/dist/ui/TodoPanel.js +135 -0
- package/dist/ui/TodoPanel.js.map +1 -0
- package/dist/ui/UpdateNotification.d.ts +13 -0
- package/dist/ui/UpdateNotification.d.ts.map +1 -0
- package/dist/ui/UpdateNotification.js +42 -0
- package/dist/ui/UpdateNotification.js.map +1 -0
- package/dist/ui/components/ActivityIndicator.d.ts +25 -0
- package/dist/ui/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/ui/components/ActivityIndicator.js +115 -0
- package/dist/ui/components/ActivityIndicator.js.map +1 -0
- package/dist/ui/components/CommandBrowser.d.ts +10 -0
- package/dist/ui/components/CommandBrowser.d.ts.map +1 -0
- package/dist/ui/components/CommandBrowser.js +53 -0
- package/dist/ui/components/CommandBrowser.js.map +1 -0
- package/dist/ui/components/CustomTextInput.d.ts +13 -0
- package/dist/ui/components/CustomTextInput.d.ts.map +1 -0
- package/dist/ui/components/CustomTextInput.js +245 -0
- package/dist/ui/components/CustomTextInput.js.map +1 -0
- package/dist/ui/components/DocsSearchProgress.d.ts +13 -0
- package/dist/ui/components/DocsSearchProgress.d.ts.map +1 -0
- package/dist/ui/components/DocsSearchProgress.js +37 -0
- package/dist/ui/components/DocsSearchProgress.js.map +1 -0
- package/dist/ui/components/FileBrowser.d.ts +11 -0
- package/dist/ui/components/FileBrowser.d.ts.map +1 -0
- package/dist/ui/components/FileBrowser.js +45 -0
- package/dist/ui/components/FileBrowser.js.map +1 -0
- package/dist/ui/components/LLMSetupWizard.d.ts +8 -0
- package/dist/ui/components/LLMSetupWizard.d.ts.map +1 -0
- package/dist/ui/components/LLMSetupWizard.js +183 -0
- package/dist/ui/components/LLMSetupWizard.js.map +1 -0
- package/dist/ui/components/Logo.d.ts +21 -0
- package/dist/ui/components/Logo.d.ts.map +1 -0
- package/dist/ui/components/Logo.js +110 -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 +1433 -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 +173 -0
- package/dist/ui/components/dialogs/ApprovalDialog.js.map +1 -0
- package/dist/ui/components/dialogs/AskUserDialog.d.ts +9 -0
- package/dist/ui/components/dialogs/AskUserDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/AskUserDialog.js +111 -0
- package/dist/ui/components/dialogs/AskUserDialog.js.map +1 -0
- package/dist/ui/components/dialogs/DocsBrowser.d.ts +8 -0
- package/dist/ui/components/dialogs/DocsBrowser.d.ts.map +1 -0
- package/dist/ui/components/dialogs/DocsBrowser.js +127 -0
- package/dist/ui/components/dialogs/DocsBrowser.js.map +1 -0
- package/dist/ui/components/dialogs/SettingsDialog.d.ts +10 -0
- package/dist/ui/components/dialogs/SettingsDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/SettingsDialog.js +563 -0
- package/dist/ui/components/dialogs/SettingsDialog.js.map +1 -0
- package/dist/ui/components/dialogs/index.d.ts +4 -0
- package/dist/ui/components/dialogs/index.d.ts.map +1 -0
- package/dist/ui/components/dialogs/index.js +4 -0
- package/dist/ui/components/dialogs/index.js.map +1 -0
- package/dist/ui/components/index.d.ts +12 -0
- package/dist/ui/components/index.d.ts.map +1 -0
- package/dist/ui/components/index.js +9 -0
- package/dist/ui/components/index.js.map +1 -0
- package/dist/ui/components/panels/LogPanel.d.ts +7 -0
- package/dist/ui/components/panels/LogPanel.d.ts.map +1 -0
- package/dist/ui/components/panels/LogPanel.js +280 -0
- package/dist/ui/components/panels/LogPanel.js.map +1 -0
- package/dist/ui/components/panels/SessionPanel.d.ts +8 -0
- package/dist/ui/components/panels/SessionPanel.d.ts.map +1 -0
- package/dist/ui/components/panels/SessionPanel.js +81 -0
- package/dist/ui/components/panels/SessionPanel.js.map +1 -0
- package/dist/ui/components/panels/index.d.ts +4 -0
- package/dist/ui/components/panels/index.d.ts.map +1 -0
- package/dist/ui/components/panels/index.js +4 -0
- package/dist/ui/components/panels/index.js.map +1 -0
- package/dist/ui/components/views/ChatView.d.ts +12 -0
- package/dist/ui/components/views/ChatView.d.ts.map +1 -0
- package/dist/ui/components/views/ChatView.js +289 -0
- package/dist/ui/components/views/ChatView.js.map +1 -0
- package/dist/ui/components/views/index.d.ts +2 -0
- package/dist/ui/components/views/index.d.ts.map +1 -0
- package/dist/ui/components/views/index.js +2 -0
- package/dist/ui/components/views/index.js.map +1 -0
- package/dist/ui/contexts/TokenContext.d.ts +29 -0
- package/dist/ui/contexts/TokenContext.d.ts.map +1 -0
- package/dist/ui/contexts/TokenContext.js +79 -0
- package/dist/ui/contexts/TokenContext.js.map +1 -0
- package/dist/ui/hooks/atFileProcessor.d.ts +15 -0
- package/dist/ui/hooks/atFileProcessor.d.ts.map +1 -0
- package/dist/ui/hooks/atFileProcessor.js +88 -0
- package/dist/ui/hooks/atFileProcessor.js.map +1 -0
- package/dist/ui/hooks/index.d.ts +8 -0
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +8 -0
- package/dist/ui/hooks/index.js.map +1 -0
- package/dist/ui/hooks/slashCommandProcessor.d.ts +21 -0
- package/dist/ui/hooks/slashCommandProcessor.d.ts.map +1 -0
- package/dist/ui/hooks/slashCommandProcessor.js +100 -0
- package/dist/ui/hooks/slashCommandProcessor.js.map +1 -0
- package/dist/ui/hooks/useCommandBrowserState.d.ts +12 -0
- package/dist/ui/hooks/useCommandBrowserState.d.ts.map +1 -0
- package/dist/ui/hooks/useCommandBrowserState.js +66 -0
- package/dist/ui/hooks/useCommandBrowserState.js.map +1 -0
- package/dist/ui/hooks/useFileBrowserState.d.ts +15 -0
- package/dist/ui/hooks/useFileBrowserState.d.ts.map +1 -0
- package/dist/ui/hooks/useFileBrowserState.js +80 -0
- package/dist/ui/hooks/useFileBrowserState.js.map +1 -0
- package/dist/ui/hooks/useFileList.d.ts +20 -0
- package/dist/ui/hooks/useFileList.d.ts.map +1 -0
- package/dist/ui/hooks/useFileList.js +57 -0
- package/dist/ui/hooks/useFileList.js.map +1 -0
- package/dist/ui/hooks/useInputHistory.d.ts +9 -0
- package/dist/ui/hooks/useInputHistory.d.ts.map +1 -0
- package/dist/ui/hooks/useInputHistory.js +68 -0
- package/dist/ui/hooks/useInputHistory.js.map +1 -0
- package/dist/ui/hooks/usePlanExecution.d.ts +8 -0
- package/dist/ui/hooks/usePlanExecution.d.ts.map +1 -0
- package/dist/ui/hooks/usePlanExecution.js +208 -0
- package/dist/ui/hooks/usePlanExecution.js.map +1 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +7 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/ink-entry.d.ts +3 -0
- package/dist/ui/ink-entry.d.ts.map +1 -0
- package/dist/ui/ink-entry.js +22 -0
- package/dist/ui/ink-entry.js.map +1 -0
- package/dist/utils/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 +148 -0
- package/scripts/patch-yoga.js +48 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export const GIT_COMMIT_RULES = `
|
|
2
|
+
## Git Commit Rules
|
|
3
|
+
|
|
4
|
+
When the working directory is a git repository, follow these rules:
|
|
5
|
+
|
|
6
|
+
### 1. Co-Authored-By Trailer
|
|
7
|
+
|
|
8
|
+
When creating git commits, ALWAYS include this trailer at the end of the commit message:
|
|
9
|
+
|
|
10
|
+
\`\`\`
|
|
11
|
+
🐳 Co-Worked-With: 한설
|
|
12
|
+
Co-Authored-By: 한설 <86968876+hanseol-bot@users.noreply.github.com>
|
|
13
|
+
\`\`\`
|
|
14
|
+
|
|
15
|
+
**Commit message format:**
|
|
16
|
+
\`\`\`bash
|
|
17
|
+
git commit -m "$(cat <<'EOF'
|
|
18
|
+
<type>: <description>
|
|
19
|
+
|
|
20
|
+
<optional body>
|
|
21
|
+
|
|
22
|
+
🐳 Co-Worked-With: 한설
|
|
23
|
+
Co-Authored-By: 한설 <86968876+hanseol-bot@users.noreply.github.com>
|
|
24
|
+
EOF
|
|
25
|
+
)"
|
|
26
|
+
\`\`\`
|
|
27
|
+
|
|
28
|
+
**Example:**
|
|
29
|
+
\`\`\`bash
|
|
30
|
+
git commit -m "$(cat <<'EOF'
|
|
31
|
+
feat: add user authentication
|
|
32
|
+
|
|
33
|
+
Implemented JWT-based authentication with refresh tokens.
|
|
34
|
+
|
|
35
|
+
🐳 Co-Worked-With: 한설
|
|
36
|
+
Co-Authored-By: 한설 <86968876+hanseol-bot@users.noreply.github.com>
|
|
37
|
+
EOF
|
|
38
|
+
)"
|
|
39
|
+
\`\`\`
|
|
40
|
+
|
|
41
|
+
### 2. Ask Before Commit
|
|
42
|
+
|
|
43
|
+
**IMPORTANT: When a task is completed, ALWAYS ask the user if they want to commit the changes to git.**
|
|
44
|
+
|
|
45
|
+
After completing file modifications or code changes:
|
|
46
|
+
1. Summarize what was done
|
|
47
|
+
2. Ask: "Would you like me to commit these changes to git?"
|
|
48
|
+
3. Wait for user confirmation before running \`git add\` and \`git commit\`
|
|
49
|
+
|
|
50
|
+
**Do NOT auto-commit without user permission.**
|
|
51
|
+
|
|
52
|
+
### 3. Commit Message Convention
|
|
53
|
+
|
|
54
|
+
Follow conventional commits format:
|
|
55
|
+
- \`feat:\` - New feature
|
|
56
|
+
- \`fix:\` - Bug fix
|
|
57
|
+
- \`refactor:\` - Code refactoring
|
|
58
|
+
- \`style:\` - Formatting, styling changes
|
|
59
|
+
- \`docs:\` - Documentation changes
|
|
60
|
+
- \`test:\` - Adding or updating tests
|
|
61
|
+
- \`chore:\` - Maintenance tasks
|
|
62
|
+
|
|
63
|
+
### 4. Pull Request Creation
|
|
64
|
+
|
|
65
|
+
When creating pull requests, ALWAYS use HEREDOC for proper markdown formatting:
|
|
66
|
+
|
|
67
|
+
\`\`\`bash
|
|
68
|
+
gh pr create --title "feat: add new feature" --body "$(cat <<'EOF'
|
|
69
|
+
## Summary
|
|
70
|
+
- First change description
|
|
71
|
+
- Second change description
|
|
72
|
+
|
|
73
|
+
## Changes
|
|
74
|
+
Detailed explanation of what was changed and why.
|
|
75
|
+
|
|
76
|
+
🐳 Co-Worked-With: 한설
|
|
77
|
+
Co-Authored-By: 한설 <86968876+hanseol-bot@users.noreply.github.com>
|
|
78
|
+
EOF
|
|
79
|
+
)"
|
|
80
|
+
\`\`\`
|
|
81
|
+
|
|
82
|
+
**CRITICAL: Formatting Rules**
|
|
83
|
+
- Use HEREDOC (\`cat <<'EOF'\`) for multi-line content - NEVER use literal \\n
|
|
84
|
+
- Use actual angle brackets < > - NEVER HTML escape to < >
|
|
85
|
+
- Markdown requires real newlines, not escape sequences
|
|
86
|
+
`;
|
|
87
|
+
//# sourceMappingURL=git-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-rules.js","sourceRoot":"","sources":["../../../src/prompts/shared/git-rules.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqF/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-rules.d.ts","sourceRoot":"","sources":["../../../src/prompts/shared/language-rules.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,sBAAsB,QAgB3B,CAAC;AAKT,eAAO,MAAM,uBAAuB,QAE5B,CAAC;AAET,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const LANGUAGE_PRIORITY_RULE = `
|
|
2
|
+
## CRITICAL - Language Priority (HIGHEST)
|
|
3
|
+
|
|
4
|
+
ALWAYS respond in the SAME LANGUAGE as the user's input.
|
|
5
|
+
- If user writes in Korean -> respond in Korean
|
|
6
|
+
- If user writes in English -> respond in English
|
|
7
|
+
- If user writes in any other language -> respond in that language
|
|
8
|
+
|
|
9
|
+
This applies to:
|
|
10
|
+
- All text responses
|
|
11
|
+
- Tool "reason" parameters
|
|
12
|
+
- TODO titles and descriptions
|
|
13
|
+
- Status messages and notes
|
|
14
|
+
- Error messages
|
|
15
|
+
|
|
16
|
+
Match the user's language exactly throughout the entire interaction.
|
|
17
|
+
`.trim();
|
|
18
|
+
export const LANGUAGE_PRIORITY_SHORT = `
|
|
19
|
+
CRITICAL: Match user's language in ALL outputs (responses, tool reasons, TODOs, notes).
|
|
20
|
+
`.trim();
|
|
21
|
+
export default LANGUAGE_PRIORITY_RULE;
|
|
22
|
+
//# sourceMappingURL=language-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-rules.js","sourceRoot":"","sources":["../../../src/prompts/shared/language-rules.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;CAgBrC,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,uBAAuB,GAAG;;CAEtC,CAAC,IAAI,EAAE,CAAC;AAET,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const AVAILABLE_TOOLS: string;
|
|
2
|
+
export declare const AVAILABLE_TOOLS_WITH_TODO: string;
|
|
3
|
+
export declare const TOOL_REASON_GUIDE: string;
|
|
4
|
+
export declare const FILE_MODIFICATION_RULES: string;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
AVAILABLE_TOOLS: string;
|
|
7
|
+
AVAILABLE_TOOLS_WITH_TODO: string;
|
|
8
|
+
TOOL_REASON_GUIDE: string;
|
|
9
|
+
FILE_MODIFICATION_RULES: string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=tool-usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-usage.d.ts","sourceRoot":"","sources":["../../../src/prompts/shared/tool-usage.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe,QAUpB,CAAC;AAKT,eAAO,MAAM,yBAAyB,QAc9B,CAAC;AAKT,eAAO,MAAM,iBAAiB,QAWtB,CAAC;AAKT,eAAO,MAAM,uBAAuB,QAK5B,CAAC;;;;;;;AAET,wBAKE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const AVAILABLE_TOOLS = `
|
|
2
|
+
## Available Tools
|
|
3
|
+
|
|
4
|
+
- **read_file**: Read file contents to understand existing code
|
|
5
|
+
- **create_file**: Create a NEW file (fails if file exists)
|
|
6
|
+
- **edit_file**: Edit an EXISTING file by replacing specific lines
|
|
7
|
+
- **list_files**: List directory contents
|
|
8
|
+
- **find_files**: Search for files by pattern
|
|
9
|
+
- **search_content**: Search for text patterns in files (grep-like)
|
|
10
|
+
- **bash**: Execute shell commands (git, npm, etc.)
|
|
11
|
+
`.trim();
|
|
12
|
+
export const AVAILABLE_TOOLS_WITH_TODO = `
|
|
13
|
+
## Available Tools
|
|
14
|
+
|
|
15
|
+
- **read_file**: Read file contents to understand existing code
|
|
16
|
+
- **create_file**: Create a NEW file (fails if file exists)
|
|
17
|
+
- **edit_file**: Edit an EXISTING file by replacing specific lines
|
|
18
|
+
- **list_files**: List directory contents
|
|
19
|
+
- **find_files**: Search for files by pattern
|
|
20
|
+
- **search_content**: Search for text patterns in files (grep-like)
|
|
21
|
+
- **bash**: Execute shell commands (git, npm, etc.)
|
|
22
|
+
- **tell_to_user**: Send status updates to the user
|
|
23
|
+
- **ask_to_user**: Ask user a question with multiple choice options
|
|
24
|
+
- **write_todos**: Update entire TODO list (replaces current list)
|
|
25
|
+
- **call_docs_search_agent**: Search local documentation (~/.hanseol/docs)
|
|
26
|
+
`.trim();
|
|
27
|
+
export const TOOL_REASON_GUIDE = `
|
|
28
|
+
## CRITICAL - Tool "reason" Parameter
|
|
29
|
+
|
|
30
|
+
Every tool has a required "reason" parameter. This will be shown directly to the user.
|
|
31
|
+
Write naturally as if talking to the user. Examples:
|
|
32
|
+
- "Checking how the current authentication logic is implemented"
|
|
33
|
+
- "Fixing the buggy section"
|
|
34
|
+
- "Creating a new component file"
|
|
35
|
+
|
|
36
|
+
The reason helps users understand what you're doing and why.
|
|
37
|
+
Remember to write the reason in the user's language.
|
|
38
|
+
`.trim();
|
|
39
|
+
export const FILE_MODIFICATION_RULES = `
|
|
40
|
+
## File Modification Rules
|
|
41
|
+
|
|
42
|
+
- For NEW files: Use create_file
|
|
43
|
+
- For EXISTING files: First use read_file to see content, then use edit_file with exact line matches
|
|
44
|
+
`.trim();
|
|
45
|
+
export default {
|
|
46
|
+
AVAILABLE_TOOLS,
|
|
47
|
+
AVAILABLE_TOOLS_WITH_TODO,
|
|
48
|
+
TOOL_REASON_GUIDE,
|
|
49
|
+
FILE_MODIFICATION_RULES,
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=tool-usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-usage.js","sourceRoot":"","sources":["../../../src/prompts/shared/tool-usage.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;CAU9B,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;CAcxC,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;CAWhC,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;CAKtC,CAAC,IAAI,EAAE,CAAC;AAET,eAAe;IACb,eAAe;IACf,yBAAyB;IACzB,iBAAiB;IACjB,uBAAuB;CACxB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const COMPACT_SYSTEM_PROMPT = "# Role\n\nYou are a \"Technical Context Compressor\" for Hanseol, 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.\n\n# Objective\n\nReduce token usage by 70-90% while preserving 100% of:\n- What the user is building and why\n- All technical decisions made\n- Current progress and blockers\n- Files modified or created\n- Constraints discovered (what failed and why)\n\n# CRITICAL: Preserve These Exactly\n\n1. **Active TODO Items**: Tasks in progress or pending - these MUST appear in output\n2. **File Paths**: All file paths mentioned (created, modified, discussed)\n3. **Error Patterns**: Errors encountered and their solutions\n4. **User Preferences**: Coding style, language preferences, specific requirements\n\n# DISCARD\n\n- Greetings, thanks, confirmations (\"Sure!\", \"Great!\", \"I'll help you\")\n- Redundant explanations of the same concept\n- Failed code attempts (UNLESS they reveal constraints)\n- Tool call details (keep only results)\n- Intermediate reasoning steps\n\n# Output Format\n\nYou MUST output valid markdown following this exact structure:\n\n## Session Context\n\n### Goal\n[One sentence: What is the user building?]\n\n### Status\n[Current state: e.g., \"Implementing compact feature, 3/5 tasks complete\"]\n\n### Key Decisions\n- [Decision 1]: [Reason]\n- [Decision 2]: [Reason]\n\n### Constraints Learned\n- [What failed] -> [Why] -> [Solution chosen]\n\n### Files Modified\n- `path/to/file.ts`: [What was done]\n\n### Active Tasks\n- [ ] [Task 1 - specific details]\n- [x] [Task 2 - completed]\n- [ ] [Task 3 - in progress]\n\n### Technical Notes\n[Critical code patterns, API details, or implementation notes to remember]\n\n### Next Steps\n1. [Immediate next action]\n2. [Following action]\n\n# Rules\n\n- Maximum 2000 tokens output\n- Use bullet points, not paragraphs\n- Include specific file paths, function names, variable names\n- If code is critical, include it; otherwise summarize intent\n- NEVER use generic phrases like \"discussed various options\"\n- Output in the same language as the conversation (Korean if Korean, English if English)\n";
|
|
2
|
+
export default COMPACT_SYSTEM_PROMPT;
|
|
3
|
+
//# sourceMappingURL=compact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact.d.ts","sourceRoot":"","sources":["../../../src/prompts/system/compact.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB,8qEAsEjC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const COMPACT_SYSTEM_PROMPT = `# Role
|
|
2
|
+
|
|
3
|
+
You are a "Technical Context Compressor" for Hanseol, an AI coding assistant. Your task is to compress a conversation into a minimal, high-density state representation that preserves ALL critical context for seamless continuation.
|
|
4
|
+
|
|
5
|
+
# Objective
|
|
6
|
+
|
|
7
|
+
Reduce token usage by 70-90% while preserving 100% of:
|
|
8
|
+
- What the user is building and why
|
|
9
|
+
- All technical decisions made
|
|
10
|
+
- Current progress and blockers
|
|
11
|
+
- Files modified or created
|
|
12
|
+
- Constraints discovered (what failed and why)
|
|
13
|
+
|
|
14
|
+
# CRITICAL: Preserve These Exactly
|
|
15
|
+
|
|
16
|
+
1. **Active TODO Items**: Tasks in progress or pending - these MUST appear in output
|
|
17
|
+
2. **File Paths**: All file paths mentioned (created, modified, discussed)
|
|
18
|
+
3. **Error Patterns**: Errors encountered and their solutions
|
|
19
|
+
4. **User Preferences**: Coding style, language preferences, specific requirements
|
|
20
|
+
|
|
21
|
+
# DISCARD
|
|
22
|
+
|
|
23
|
+
- Greetings, thanks, confirmations ("Sure!", "Great!", "I'll help you")
|
|
24
|
+
- Redundant explanations of the same concept
|
|
25
|
+
- Failed code attempts (UNLESS they reveal constraints)
|
|
26
|
+
- Tool call details (keep only results)
|
|
27
|
+
- Intermediate reasoning steps
|
|
28
|
+
|
|
29
|
+
# Output Format
|
|
30
|
+
|
|
31
|
+
You MUST output valid markdown following this exact structure:
|
|
32
|
+
|
|
33
|
+
## Session Context
|
|
34
|
+
|
|
35
|
+
### Goal
|
|
36
|
+
[One sentence: What is the user building?]
|
|
37
|
+
|
|
38
|
+
### Status
|
|
39
|
+
[Current state: e.g., "Implementing compact feature, 3/5 tasks complete"]
|
|
40
|
+
|
|
41
|
+
### Key Decisions
|
|
42
|
+
- [Decision 1]: [Reason]
|
|
43
|
+
- [Decision 2]: [Reason]
|
|
44
|
+
|
|
45
|
+
### Constraints Learned
|
|
46
|
+
- [What failed] -> [Why] -> [Solution chosen]
|
|
47
|
+
|
|
48
|
+
### Files Modified
|
|
49
|
+
- \`path/to/file.ts\`: [What was done]
|
|
50
|
+
|
|
51
|
+
### Active Tasks
|
|
52
|
+
- [ ] [Task 1 - specific details]
|
|
53
|
+
- [x] [Task 2 - completed]
|
|
54
|
+
- [ ] [Task 3 - in progress]
|
|
55
|
+
|
|
56
|
+
### Technical Notes
|
|
57
|
+
[Critical code patterns, API details, or implementation notes to remember]
|
|
58
|
+
|
|
59
|
+
### Next Steps
|
|
60
|
+
1. [Immediate next action]
|
|
61
|
+
2. [Following action]
|
|
62
|
+
|
|
63
|
+
# Rules
|
|
64
|
+
|
|
65
|
+
- Maximum 2000 tokens output
|
|
66
|
+
- Use bullet points, not paragraphs
|
|
67
|
+
- Include specific file paths, function names, variable names
|
|
68
|
+
- If code is critical, include it; otherwise summarize intent
|
|
69
|
+
- NEVER use generic phrases like "discussed various options"
|
|
70
|
+
- Output in the same language as the conversation (Korean if Korean, English if English)
|
|
71
|
+
`;
|
|
72
|
+
export default COMPACT_SYSTEM_PROMPT;
|
|
73
|
+
//# sourceMappingURL=compact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact.js","sourceRoot":"","sources":["../../../src/prompts/system/compact.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEpC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-execute.d.ts","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,0BAA0B,QAiHtC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { LANGUAGE_PRIORITY_RULE } from '../shared/language-rules.js';
|
|
2
|
+
import { AVAILABLE_TOOLS_WITH_TODO, TOOL_REASON_GUIDE } from '../shared/tool-usage.js';
|
|
3
|
+
import { CODEBASE_FIRST_RULE } from '../shared/codebase-rules.js';
|
|
4
|
+
export const PLAN_EXECUTE_SYSTEM_PROMPT = `You are the **Execution Agent** of a powerful system that can do almost anything a computer user can do.
|
|
5
|
+
|
|
6
|
+
${LANGUAGE_PRIORITY_RULE}
|
|
7
|
+
|
|
8
|
+
## SYSTEM CAPABILITIES
|
|
9
|
+
|
|
10
|
+
This system grants you **full access** to:
|
|
11
|
+
- **Shell**: Execute ANY bash command (git, npm, python, docker, curl, etc.)
|
|
12
|
+
- **File System**: Read, create, edit, delete ANY files
|
|
13
|
+
- **Enabled Apps**: Browser automation, office tools (if enabled)
|
|
14
|
+
|
|
15
|
+
## YOUR MISSION
|
|
16
|
+
|
|
17
|
+
**Your goal is to COMPLETE THE USER'S ENTIRE WORK - not provide guidance, POCs, or examples.**
|
|
18
|
+
|
|
19
|
+
- The user trusts this system to do REAL WORK on their behalf
|
|
20
|
+
- Deliver **professional-quality** results, not demo-level outputs
|
|
21
|
+
- Never settle for partial solutions unless explicitly requested
|
|
22
|
+
- If you would normally say "here's an example...", instead ACTUALLY DO IT
|
|
23
|
+
|
|
24
|
+
## CRITICAL: When to Ask the User
|
|
25
|
+
|
|
26
|
+
**Use \`ask_to_user\` tool when:**
|
|
27
|
+
|
|
28
|
+
1. **Ambiguous Scope** - The task is too vague to produce quality work
|
|
29
|
+
- **Always provide concrete options**, never ask vague questions
|
|
30
|
+
- ❌ Bad: "What style do you want?" (too vague)
|
|
31
|
+
- ✅ Good: "Please select a UI framework" with options: ["React + Tailwind", "Vue + Vuetify", "Vanilla JS + CSS"]
|
|
32
|
+
|
|
33
|
+
2. **Need Clarification** - Multiple valid approaches exist
|
|
34
|
+
- "How should I manage the API key?" with options: ["Environment variable (.env)", "Config file", "Secret Manager"]
|
|
35
|
+
|
|
36
|
+
3. **Installation Required** - Additional tools/packages need to be installed
|
|
37
|
+
- "This task requires puppeteer. May I install it?" with options: ["Yes, install", "Use alternative method"]
|
|
38
|
+
|
|
39
|
+
4. **Risky Operations** - Actions that could have significant impact
|
|
40
|
+
- "This will overwrite existing data. Proceed?" with options: ["Backup first, then proceed", "Proceed directly", "Cancel"]
|
|
41
|
+
|
|
42
|
+
**IMPORTANT: Always ask with 2-4 specific options. Never ask open-ended vague questions.**
|
|
43
|
+
|
|
44
|
+
## TODO Workflow
|
|
45
|
+
|
|
46
|
+
1. Work through TODOs systematically
|
|
47
|
+
2. Update status using \`write_todos\` (include ALL todos with current status)
|
|
48
|
+
3. **DONE when ALL TODOs are "completed"**
|
|
49
|
+
|
|
50
|
+
**CRITICAL: Keep TODO status in sync with your actual progress!**
|
|
51
|
+
- When starting a task → mark it "in_progress" IMMEDIATELY
|
|
52
|
+
- When finishing a task → mark it "completed" IMMEDIATELY
|
|
53
|
+
- The user sees the TODO list in real-time - mismatched status is confusing
|
|
54
|
+
- Call \`write_todos\` FREQUENTLY, not just at the end
|
|
55
|
+
|
|
56
|
+
${AVAILABLE_TOOLS_WITH_TODO}
|
|
57
|
+
|
|
58
|
+
${TOOL_REASON_GUIDE}
|
|
59
|
+
|
|
60
|
+
## Execution Rules
|
|
61
|
+
|
|
62
|
+
1. **Read before modify** - Always read existing code first
|
|
63
|
+
2. **Use tools** - Perform actual work, don't just describe
|
|
64
|
+
3. **Retry on error** - Up to 3 attempts before marking "failed"
|
|
65
|
+
4. **Stay focused** - Only work on TODOs, no unrelated features
|
|
66
|
+
|
|
67
|
+
${CODEBASE_FIRST_RULE}
|
|
68
|
+
|
|
69
|
+
## CRITICAL: Tool Error Handling
|
|
70
|
+
|
|
71
|
+
**If a tool returns an error, you MUST retry the same tool with corrected parameters.**
|
|
72
|
+
|
|
73
|
+
1. STOP - Read the error message carefully
|
|
74
|
+
2. Investigate - Use \`read_file\` to check actual file content
|
|
75
|
+
3. **RETRY THE SAME TOOL** with corrected parameters (DO NOT skip or move on)
|
|
76
|
+
4. Repeat until success or 3 failures
|
|
77
|
+
|
|
78
|
+
**You are NOT allowed to:**
|
|
79
|
+
- Skip the failed tool and move to next task
|
|
80
|
+
- Say "I'll try a different approach" without actually retrying
|
|
81
|
+
- Mark TODO as complete if the tool failed
|
|
82
|
+
|
|
83
|
+
Example flow:
|
|
84
|
+
1. \`edit_file\` fails: "Line 77 content does not match"
|
|
85
|
+
2. Call \`read_file\` to see actual content
|
|
86
|
+
3. **Call \`edit_file\` again** with correct \`old_string\`
|
|
87
|
+
4. Only proceed after edit succeeds
|
|
88
|
+
|
|
89
|
+
## CRITICAL: When to Respond
|
|
90
|
+
|
|
91
|
+
**ONLY respond when ALL TODOs are "completed" or "failed".**
|
|
92
|
+
|
|
93
|
+
- Responding early = execution ends prematurely
|
|
94
|
+
- Use \`tell_to_user\` to communicate progress during execution
|
|
95
|
+
- \`write_todos\` only updates internal state
|
|
96
|
+
|
|
97
|
+
**Before final response, verify:**
|
|
98
|
+
- All TODOs completed?
|
|
99
|
+
- All tool calls successful?
|
|
100
|
+
- User's request fulfilled?
|
|
101
|
+
|
|
102
|
+
## CRITICAL: Final Response
|
|
103
|
+
|
|
104
|
+
Your final response MUST contain the **actual answer or result**:
|
|
105
|
+
- Question → Answer with information found
|
|
106
|
+
- Task → Summarize what was done
|
|
107
|
+
|
|
108
|
+
**DO NOT** just say "Task complete" or give task statistics.
|
|
109
|
+
|
|
110
|
+
Example:
|
|
111
|
+
- User: "What's the project name?" → "This project is **한설**."
|
|
112
|
+
- User: "Add a debug function" → "Added the debug function to logger.ts."
|
|
113
|
+
|
|
114
|
+
## Loop Detection
|
|
115
|
+
|
|
116
|
+
If TODO context keeps repeating but work is done → IMMEDIATELY mark all as "completed".
|
|
117
|
+
`;
|
|
118
|
+
export default PLAN_EXECUTE_SYSTEM_PROMPT;
|
|
119
|
+
//# sourceMappingURL=plan-execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-execute.js","sourceRoot":"","sources":["../../../src/prompts/system/plan-execute.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,0BAA0B,GAAG;;EAExC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDtB,yBAAyB;;EAEzB,iBAAiB;;;;;;;;;EASjB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDpB,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
domain?: string;
|
|
34
|
+
protocol?: string;
|
|
35
|
+
pathname?: string;
|
|
36
|
+
readyState?: string;
|
|
37
|
+
bodyLength?: number;
|
|
38
|
+
linkCount?: number;
|
|
39
|
+
imageCount?: number;
|
|
40
|
+
formCount?: number;
|
|
41
|
+
inputCount?: number;
|
|
42
|
+
}
|
|
43
|
+
interface ConsoleLogEntry {
|
|
44
|
+
level: string;
|
|
45
|
+
message: string;
|
|
46
|
+
timestamp: number;
|
|
47
|
+
}
|
|
48
|
+
interface ConsoleResponse extends BrowserResponse {
|
|
49
|
+
logs?: ConsoleLogEntry[];
|
|
50
|
+
count?: number;
|
|
51
|
+
}
|
|
52
|
+
interface NetworkLogEntry {
|
|
53
|
+
type: 'request' | 'response';
|
|
54
|
+
url: string;
|
|
55
|
+
method?: string;
|
|
56
|
+
status?: number;
|
|
57
|
+
statusText?: string;
|
|
58
|
+
mimeType?: string;
|
|
59
|
+
timestamp: number;
|
|
60
|
+
requestId: string;
|
|
61
|
+
}
|
|
62
|
+
interface NetworkResponse extends BrowserResponse {
|
|
63
|
+
logs?: NetworkLogEntry[];
|
|
64
|
+
count?: number;
|
|
65
|
+
}
|
|
66
|
+
declare class BrowserClient {
|
|
67
|
+
private cdp;
|
|
68
|
+
private browserProcess;
|
|
69
|
+
private platform;
|
|
70
|
+
private cdpPort;
|
|
71
|
+
private browserType;
|
|
72
|
+
private screenshotDir;
|
|
73
|
+
private consoleLogs;
|
|
74
|
+
private networkLogs;
|
|
75
|
+
constructor();
|
|
76
|
+
private getCDPUrl;
|
|
77
|
+
getScreenshotDir(): string;
|
|
78
|
+
private findBrowserPath;
|
|
79
|
+
private findChromePath;
|
|
80
|
+
private findEdgePath;
|
|
81
|
+
private killExistingBrowser;
|
|
82
|
+
private isCDPAvailable;
|
|
83
|
+
private getTargets;
|
|
84
|
+
isRunning(): Promise<boolean>;
|
|
85
|
+
getHealth(): Promise<HealthResponse | null>;
|
|
86
|
+
startServer(): Promise<boolean>;
|
|
87
|
+
stopServer(): Promise<boolean>;
|
|
88
|
+
private setupLogging;
|
|
89
|
+
private getCurrentPageInfo;
|
|
90
|
+
launch(options?: {
|
|
91
|
+
headless?: boolean;
|
|
92
|
+
browser?: 'chrome' | 'edge';
|
|
93
|
+
}): Promise<BrowserResponse>;
|
|
94
|
+
close(): Promise<BrowserResponse>;
|
|
95
|
+
navigate(url: string): Promise<NavigateResponse>;
|
|
96
|
+
screenshot(fullPage?: boolean): Promise<ScreenshotResponse>;
|
|
97
|
+
click(selector: string): Promise<BrowserResponse>;
|
|
98
|
+
fill(selector: string, value: string): Promise<BrowserResponse>;
|
|
99
|
+
getText(selector?: string): Promise<BrowserResponse>;
|
|
100
|
+
getPageInfo(): Promise<PageInfoResponse>;
|
|
101
|
+
getHtml(): Promise<PageInfoResponse>;
|
|
102
|
+
executeScript(script: string): Promise<BrowserResponse>;
|
|
103
|
+
getConsole(): Promise<ConsoleResponse>;
|
|
104
|
+
waitFor(selector: string, timeout?: number): Promise<BrowserResponse>;
|
|
105
|
+
getNetwork(): Promise<NetworkResponse>;
|
|
106
|
+
focus(): Promise<BrowserResponse>;
|
|
107
|
+
pressKey(key: string, selector?: string): Promise<BrowserResponse>;
|
|
108
|
+
type(text: string, selector?: string): Promise<BrowserResponse>;
|
|
109
|
+
isBrowserActive(): Promise<boolean>;
|
|
110
|
+
saveScreenshot(base64Image: string, prefix?: string): string;
|
|
111
|
+
getServerExePath(): string | null;
|
|
112
|
+
getServerUrl(): string;
|
|
113
|
+
connect(port?: number): Promise<BrowserResponse>;
|
|
114
|
+
send(method: string, params?: Record<string, unknown>): Promise<BrowserResponse>;
|
|
115
|
+
focusElement(selector: string): Promise<BrowserResponse>;
|
|
116
|
+
}
|
|
117
|
+
export declare const browserClient: BrowserClient;
|
|
118
|
+
export type { BrowserResponse, HealthResponse, ScreenshotResponse, NavigateResponse, PageInfoResponse, ConsoleResponse, NetworkResponse };
|
|
119
|
+
//# 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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"}
|