gsd-pi 2.34.0-dev.bbb5216 → 2.34.0-dev.e6d9bed
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/dist/resources/extensions/gsd/changelog.js +162 -0
- package/dist/resources/extensions/gsd/commands-bootstrap.js +1 -0
- package/dist/resources/extensions/gsd/commands-prefs-wizard.js +5 -1
- package/dist/resources/extensions/gsd/commands.js +8 -1
- package/dist/resources/extensions/gsd/docs/preferences-reference.md +10 -0
- package/dist/resources/extensions/gsd/doctor-checks.js +113 -5
- package/dist/resources/extensions/gsd/doctor-proactive.js +22 -0
- package/dist/resources/extensions/gsd/doctor.js +36 -0
- package/dist/resources/extensions/gsd/guided-flow.js +4 -2
- package/dist/resources/extensions/gsd/preferences-validation.js +38 -0
- package/dist/resources/extensions/gsd/preferences.js +2 -0
- package/dist/resources/extensions/mcp-client/index.js +2 -1
- package/dist/resources/skills/create-gsd-extension/references/events-reference.md +4 -4
- package/package.json +1 -1
- package/packages/native/dist/native.d.ts +0 -2
- package/packages/native/dist/native.js +0 -2
- package/packages/native/src/native.ts +0 -3
- package/packages/pi-agent-core/dist/agent-loop.d.ts +14 -0
- package/packages/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/agent-loop.js +24 -27
- package/packages/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/packages/pi-agent-core/dist/agent.d.ts +1 -0
- package/packages/pi-agent-core/dist/agent.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/agent.js +11 -22
- package/packages/pi-agent-core/dist/agent.js.map +1 -1
- package/packages/pi-agent-core/dist/proxy.d.ts +1 -25
- package/packages/pi-agent-core/dist/proxy.d.ts.map +1 -1
- package/packages/pi-agent-core/dist/proxy.js +3 -9
- package/packages/pi-agent-core/dist/proxy.js.map +1 -1
- package/packages/pi-agent-core/src/agent-loop.ts +30 -27
- package/packages/pi-agent-core/src/agent.ts +12 -23
- package/packages/pi-agent-core/src/proxy.ts +3 -9
- package/packages/pi-ai/dist/api-registry.d.ts +0 -2
- package/packages/pi-ai/dist/api-registry.d.ts.map +1 -1
- package/packages/pi-ai/dist/api-registry.js +0 -10
- package/packages/pi-ai/dist/api-registry.js.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.d.ts +0 -8
- package/packages/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/anthropic.js +1 -1
- package/packages/pi-ai/dist/providers/anthropic.js.map +1 -1
- package/packages/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/azure-openai-responses.js +5 -41
- package/packages/pi-ai/dist/providers/azure-openai-responses.js.map +1 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.d.ts +0 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.js +1 -1
- package/packages/pi-ai/dist/providers/github-copilot-headers.js.map +1 -1
- package/packages/pi-ai/dist/providers/google-gemini-cli.d.ts +1 -43
- package/packages/pi-ai/dist/providers/google-gemini-cli.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/google-gemini-cli.js +2 -2
- package/packages/pi-ai/dist/providers/google-gemini-cli.js.map +1 -1
- package/packages/pi-ai/dist/providers/google-shared.d.ts +0 -4
- package/packages/pi-ai/dist/providers/google-shared.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/google-shared.js +1 -1
- package/packages/pi-ai/dist/providers/google-shared.js.map +1 -1
- package/packages/pi-ai/dist/providers/openai-completions.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/openai-completions.js +10 -73
- package/packages/pi-ai/dist/providers/openai-completions.js.map +1 -1
- package/packages/pi-ai/dist/providers/openai-responses.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/openai-responses.js +8 -79
- package/packages/pi-ai/dist/providers/openai-responses.js.map +1 -1
- package/packages/pi-ai/dist/providers/openai-shared.d.ts +65 -0
- package/packages/pi-ai/dist/providers/openai-shared.d.ts.map +1 -0
- package/packages/pi-ai/dist/providers/openai-shared.js +146 -0
- package/packages/pi-ai/dist/providers/openai-shared.js.map +1 -0
- package/packages/pi-ai/dist/providers/register-builtins.d.ts +0 -1
- package/packages/pi-ai/dist/providers/register-builtins.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/register-builtins.js +1 -1
- package/packages/pi-ai/dist/providers/register-builtins.js.map +1 -1
- package/packages/pi-ai/dist/utils/event-stream.d.ts +0 -2
- package/packages/pi-ai/dist/utils/event-stream.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/event-stream.js +0 -4
- package/packages/pi-ai/dist/utils/event-stream.js.map +1 -1
- package/packages/pi-ai/dist/utils/oauth/google-antigravity.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/oauth/google-antigravity.js +7 -135
- package/packages/pi-ai/dist/utils/oauth/google-antigravity.js.map +1 -1
- package/packages/pi-ai/dist/utils/oauth/google-gemini-cli.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/oauth/google-gemini-cli.js +7 -135
- package/packages/pi-ai/dist/utils/oauth/google-gemini-cli.js.map +1 -1
- package/packages/pi-ai/dist/utils/oauth/google-oauth-utils.d.ts +46 -0
- package/packages/pi-ai/dist/utils/oauth/google-oauth-utils.d.ts.map +1 -0
- package/packages/pi-ai/dist/utils/oauth/google-oauth-utils.js +160 -0
- package/packages/pi-ai/dist/utils/oauth/google-oauth-utils.js.map +1 -0
- package/packages/pi-ai/dist/utils/overflow.d.ts +0 -4
- package/packages/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/overflow.js +0 -6
- package/packages/pi-ai/dist/utils/overflow.js.map +1 -1
- package/packages/pi-ai/dist/utils/validation.d.ts +0 -8
- package/packages/pi-ai/dist/utils/validation.d.ts.map +1 -1
- package/packages/pi-ai/dist/utils/validation.js +0 -14
- package/packages/pi-ai/dist/utils/validation.js.map +1 -1
- package/packages/pi-ai/src/api-registry.ts +0 -12
- package/packages/pi-ai/src/providers/anthropic.ts +1 -1
- package/packages/pi-ai/src/providers/azure-openai-responses.ts +11 -45
- package/packages/pi-ai/src/providers/github-copilot-headers.ts +1 -1
- package/packages/pi-ai/src/providers/google-gemini-cli.ts +2 -2
- package/packages/pi-ai/src/providers/google-shared.ts +1 -1
- package/packages/pi-ai/src/providers/openai-completions.ts +16 -86
- package/packages/pi-ai/src/providers/openai-responses.ts +15 -95
- package/packages/pi-ai/src/providers/openai-shared.ts +193 -0
- package/packages/pi-ai/src/providers/register-builtins.ts +1 -1
- package/packages/pi-ai/src/utils/event-stream.ts +0 -5
- package/packages/pi-ai/src/utils/oauth/google-antigravity.ts +14 -162
- package/packages/pi-ai/src/utils/oauth/google-gemini-cli.ts +13 -161
- package/packages/pi-ai/src/utils/oauth/google-oauth-utils.ts +201 -0
- package/packages/pi-ai/src/utils/overflow.ts +1 -8
- package/packages/pi-ai/src/utils/validation.ts +0 -15
- package/packages/pi-coding-agent/dist/config.d.ts +0 -9
- package/packages/pi-coding-agent/dist/config.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/config.js +4 -8
- package/packages/pi-coding-agent/dist/config.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/agent-session.d.ts +16 -63
- package/packages/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/agent-session.js +104 -641
- package/packages/pi-coding-agent/dist/core/agent-session.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/auth-storage.d.ts +0 -1
- package/packages/pi-coding-agent/dist/core/auth-storage.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/auth-storage.js +4 -35
- package/packages/pi-coding-agent/dist/core/auth-storage.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/compaction/branch-summarization.js +5 -43
- package/packages/pi-coding-agent/dist/core/compaction/branch-summarization.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/compaction/compaction.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/compaction/compaction.js +11 -69
- package/packages/pi-coding-agent/dist/core/compaction/compaction.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/compaction/utils.d.ts +40 -0
- package/packages/pi-coding-agent/dist/core/compaction/utils.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/compaction/utils.js +78 -0
- package/packages/pi-coding-agent/dist/core/compaction/utils.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/compaction-orchestrator.d.ts +77 -0
- package/packages/pi-coding-agent/dist/core/compaction-orchestrator.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/compaction-orchestrator.js +331 -0
- package/packages/pi-coding-agent/dist/core/compaction-orchestrator.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts +0 -4
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.js +1 -1
- package/packages/pi-coding-agent/dist/core/export-html/ansi-to-html.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.d.ts +2 -2
- package/packages/pi-coding-agent/dist/core/extensions/index.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.js +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.d.ts +15 -5
- package/packages/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/runner.js +129 -256
- package/packages/pi-coding-agent/dist/core/extensions/runner.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/types.d.ts +49 -42
- package/packages/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/types.js +2 -21
- package/packages/pi-coding-agent/dist/core/extensions/types.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/keybindings.d.ts +0 -8
- package/packages/pi-coding-agent/dist/core/keybindings.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/keybindings.js +2 -2
- package/packages/pi-coding-agent/dist/core/keybindings.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lock-utils.d.ts +39 -0
- package/packages/pi-coding-agent/dist/core/lock-utils.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lock-utils.js +89 -0
- package/packages/pi-coding-agent/dist/core/lock-utils.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/client.d.ts +0 -17
- package/packages/pi-coding-agent/dist/core/lsp/client.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/client.js +3 -62
- package/packages/pi-coding-agent/dist/core/lsp/client.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/config.d.ts +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/config.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/config.js +2 -6
- package/packages/pi-coding-agent/dist/core/lsp/config.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/edits.d.ts +0 -5
- package/packages/pi-coding-agent/dist/core/lsp/edits.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/edits.js +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/edits.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/index.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/index.js +52 -107
- package/packages/pi-coding-agent/dist/core/lsp/index.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.d.ts +0 -1
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.js +3 -22
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/types.d.ts +0 -1
- package/packages/pi-coding-agent/dist/core/lsp/types.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/types.js +0 -28
- package/packages/pi-coding-agent/dist/core/lsp/types.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/utils.d.ts +1 -6
- package/packages/pi-coding-agent/dist/core/lsp/utils.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/lsp/utils.js +1 -28
- package/packages/pi-coding-agent/dist/core/lsp/utils.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/messages.d.ts +0 -8
- package/packages/pi-coding-agent/dist/core/messages.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/messages.js +5 -5
- package/packages/pi-coding-agent/dist/core/messages.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-registry.d.ts +0 -3
- package/packages/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-registry.js +1 -3
- package/packages/pi-coding-agent/dist/core/model-registry.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-resolver.d.ts +1 -26
- package/packages/pi-coding-agent/dist/core/model-resolver.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/model-resolver.js +3 -59
- package/packages/pi-coding-agent/dist/core/model-resolver.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/package-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/package-manager.js +2 -4
- package/packages/pi-coding-agent/dist/core/package-manager.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/prompt-templates.d.ts +0 -17
- package/packages/pi-coding-agent/dist/core/prompt-templates.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/prompt-templates.js +2 -2
- package/packages/pi-coding-agent/dist/core/prompt-templates.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/resource-loader.d.ts +2 -4
- package/packages/pi-coding-agent/dist/core/resource-loader.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/resource-loader.js +33 -58
- package/packages/pi-coding-agent/dist/core/resource-loader.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/retry-handler.d.ts +87 -0
- package/packages/pi-coding-agent/dist/core/retry-handler.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/retry-handler.js +295 -0
- package/packages/pi-coding-agent/dist/core/retry-handler.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/session-manager.d.ts +0 -5
- package/packages/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/session-manager.js +5 -32
- package/packages/pi-coding-agent/dist/core/session-manager.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/settings-manager.d.ts +8 -12
- package/packages/pi-coding-agent/dist/core/settings-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/settings-manager.js +78 -168
- package/packages/pi-coding-agent/dist/core/settings-manager.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/skills.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/skills.js +1 -3
- package/packages/pi-coding-agent/dist/core/skills.js.map +1 -1
- package/packages/pi-coding-agent/dist/index.d.ts +1 -1
- package/packages/pi-coding-agent/dist/index.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/index.js +1 -1
- package/packages/pi-coding-agent/dist/index.js.map +1 -1
- package/packages/pi-coding-agent/dist/migrations.d.ts +0 -16
- package/packages/pi-coding-agent/dist/migrations.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/migrations.js +2 -2
- package/packages/pi-coding-agent/dist/migrations.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +0 -2
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +2 -2
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector.js +9 -26
- package/packages/pi-coding-agent/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +1 -13
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tree-render-utils.d.ts +44 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tree-render-utils.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tree-render-utils.js +61 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tree-render-utils.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +6 -9
- package/packages/pi-coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +1 -24
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js +50 -512
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.d.ts +71 -0
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.js +514 -0
- package/packages/pi-coding-agent/dist/modes/interactive/slash-command-handlers.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts +65 -4
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js +6 -23
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.d.ts +12 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.js +175 -0
- package/packages/pi-coding-agent/dist/modes/interactive/theme/themes.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/utils/shorten-path.d.ts +6 -0
- package/packages/pi-coding-agent/dist/modes/interactive/utils/shorten-path.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/utils/shorten-path.js +15 -0
- package/packages/pi-coding-agent/dist/modes/interactive/utils/shorten-path.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/print-mode.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/print-mode.js +2 -30
- package/packages/pi-coding-agent/dist/modes/print-mode.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/rpc/rpc-mode.js +2 -28
- package/packages/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/shared/command-context-actions.d.ts +19 -0
- package/packages/pi-coding-agent/dist/modes/shared/command-context-actions.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/modes/shared/command-context-actions.js +45 -0
- package/packages/pi-coding-agent/dist/modes/shared/command-context-actions.js.map +1 -0
- package/packages/pi-coding-agent/dist/utils/changelog.d.ts +0 -4
- package/packages/pi-coding-agent/dist/utils/changelog.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/changelog.js +1 -1
- package/packages/pi-coding-agent/dist/utils/changelog.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.d.ts +0 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.js +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/error.d.ts +5 -0
- package/packages/pi-coding-agent/dist/utils/error.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/utils/error.js +7 -0
- package/packages/pi-coding-agent/dist/utils/error.js.map +1 -0
- package/packages/pi-coding-agent/dist/utils/photon.d.ts +0 -19
- package/packages/pi-coding-agent/dist/utils/photon.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/photon.js +1 -120
- package/packages/pi-coding-agent/dist/utils/photon.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.d.ts +0 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.js +1 -1
- package/packages/pi-coding-agent/dist/utils/tools-manager.js.map +1 -1
- package/packages/pi-coding-agent/src/config.ts +5 -10
- package/packages/pi-coding-agent/src/core/agent-session.ts +117 -745
- package/packages/pi-coding-agent/src/core/auth-storage.ts +4 -38
- package/packages/pi-coding-agent/src/core/compaction/branch-summarization.ts +7 -53
- package/packages/pi-coding-agent/src/core/compaction/compaction.ts +14 -74
- package/packages/pi-coding-agent/src/core/compaction/utils.ts +100 -0
- package/packages/pi-coding-agent/src/core/compaction-orchestrator.ts +424 -0
- package/packages/pi-coding-agent/src/core/export-html/ansi-to-html.ts +1 -1
- package/packages/pi-coding-agent/src/core/extensions/index.ts +1 -21
- package/packages/pi-coding-agent/src/core/extensions/runner.ts +119 -256
- package/packages/pi-coding-agent/src/core/extensions/types.ts +50 -69
- package/packages/pi-coding-agent/src/core/keybindings.ts +2 -2
- package/packages/pi-coding-agent/src/core/lock-utils.ts +113 -0
- package/packages/pi-coding-agent/src/core/lsp/client.ts +3 -73
- package/packages/pi-coding-agent/src/core/lsp/config.ts +2 -10
- package/packages/pi-coding-agent/src/core/lsp/edits.ts +1 -1
- package/packages/pi-coding-agent/src/core/lsp/index.ts +83 -152
- package/packages/pi-coding-agent/src/core/lsp/lspmux.ts +3 -23
- package/packages/pi-coding-agent/src/core/lsp/types.ts +0 -29
- package/packages/pi-coding-agent/src/core/lsp/utils.ts +1 -33
- package/packages/pi-coding-agent/src/core/messages.ts +5 -5
- package/packages/pi-coding-agent/src/core/model-registry.ts +0 -2
- package/packages/pi-coding-agent/src/core/model-resolver.ts +3 -77
- package/packages/pi-coding-agent/src/core/package-manager.ts +1 -4
- package/packages/pi-coding-agent/src/core/prompt-templates.ts +2 -2
- package/packages/pi-coding-agent/src/core/resource-loader.ts +43 -67
- package/packages/pi-coding-agent/src/core/retry-handler.ts +359 -0
- package/packages/pi-coding-agent/src/core/session-manager.ts +5 -34
- package/packages/pi-coding-agent/src/core/settings-manager.ts +87 -166
- package/packages/pi-coding-agent/src/core/skills.ts +1 -4
- package/packages/pi-coding-agent/src/index.ts +1 -7
- package/packages/pi-coding-agent/src/migrations.ts +2 -2
- package/packages/pi-coding-agent/src/modes/interactive/components/session-selector-search.ts +2 -2
- package/packages/pi-coding-agent/src/modes/interactive/components/session-selector.ts +17 -29
- package/packages/pi-coding-agent/src/modes/interactive/components/tool-execution.ts +1 -13
- package/packages/pi-coding-agent/src/modes/interactive/components/tree-render-utils.ts +81 -0
- package/packages/pi-coding-agent/src/modes/interactive/components/tree-selector.ts +14 -19
- package/packages/pi-coding-agent/src/modes/interactive/interactive-mode.ts +50 -561
- package/packages/pi-coding-agent/src/modes/interactive/slash-command-handlers.ts +653 -0
- package/packages/pi-coding-agent/src/modes/interactive/theme/theme.ts +7 -26
- package/packages/pi-coding-agent/src/modes/interactive/theme/themes.ts +196 -0
- package/packages/pi-coding-agent/src/modes/interactive/utils/shorten-path.ts +14 -0
- package/packages/pi-coding-agent/src/modes/print-mode.ts +2 -30
- package/packages/pi-coding-agent/src/modes/rpc/rpc-mode.ts +2 -28
- package/packages/pi-coding-agent/src/modes/shared/command-context-actions.ts +53 -0
- package/packages/pi-coding-agent/src/utils/changelog.ts +1 -1
- package/packages/pi-coding-agent/src/utils/clipboard-image.ts +1 -1
- package/packages/pi-coding-agent/src/utils/error.ts +6 -0
- package/packages/pi-coding-agent/src/utils/photon.ts +0 -137
- package/packages/pi-coding-agent/src/utils/tools-manager.ts +1 -1
- package/packages/pi-tui/dist/components/editor.d.ts +0 -10
- package/packages/pi-tui/dist/components/editor.d.ts.map +1 -1
- package/packages/pi-tui/dist/components/editor.js +1 -1
- package/packages/pi-tui/dist/components/editor.js.map +1 -1
- package/packages/pi-tui/dist/components/markdown.d.ts +5 -0
- package/packages/pi-tui/dist/components/markdown.d.ts.map +1 -1
- package/packages/pi-tui/dist/components/markdown.js +25 -31
- package/packages/pi-tui/dist/components/markdown.js.map +1 -1
- package/packages/pi-tui/dist/keys.d.ts +0 -4
- package/packages/pi-tui/dist/keys.d.ts.map +1 -1
- package/packages/pi-tui/dist/keys.js +94 -162
- package/packages/pi-tui/dist/keys.js.map +1 -1
- package/packages/pi-tui/dist/overlay-layout.d.ts +55 -0
- package/packages/pi-tui/dist/overlay-layout.d.ts.map +1 -0
- package/packages/pi-tui/dist/overlay-layout.js +288 -0
- package/packages/pi-tui/dist/overlay-layout.js.map +1 -0
- package/packages/pi-tui/dist/tui.d.ts +0 -22
- package/packages/pi-tui/dist/tui.d.ts.map +1 -1
- package/packages/pi-tui/dist/tui.js +6 -272
- package/packages/pi-tui/dist/tui.js.map +1 -1
- package/packages/pi-tui/dist/utils.d.ts +0 -7
- package/packages/pi-tui/dist/utils.d.ts.map +1 -1
- package/packages/pi-tui/dist/utils.js +0 -44
- package/packages/pi-tui/dist/utils.js.map +1 -1
- package/packages/pi-tui/src/components/editor.ts +1 -1
- package/packages/pi-tui/src/components/markdown.ts +25 -29
- package/packages/pi-tui/src/keys.ts +94 -173
- package/packages/pi-tui/src/overlay-layout.ts +372 -0
- package/packages/pi-tui/src/tui.ts +11 -312
- package/packages/pi-tui/src/utils.ts +0 -43
- package/pkg/dist/core/export-html/ansi-to-html.d.ts +0 -4
- package/pkg/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
- package/pkg/dist/core/export-html/ansi-to-html.js +1 -1
- package/pkg/dist/core/export-html/ansi-to-html.js.map +1 -1
- package/pkg/dist/modes/interactive/theme/theme.d.ts +65 -4
- package/pkg/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/pkg/dist/modes/interactive/theme/theme.js +6 -23
- package/pkg/dist/modes/interactive/theme/theme.js.map +1 -1
- package/pkg/dist/modes/interactive/theme/themes.d.ts +12 -0
- package/pkg/dist/modes/interactive/theme/themes.d.ts.map +1 -0
- package/pkg/dist/modes/interactive/theme/themes.js +175 -0
- package/pkg/dist/modes/interactive/theme/themes.js.map +1 -0
- package/src/resources/extensions/gsd/changelog.ts +213 -0
- package/src/resources/extensions/gsd/commands-bootstrap.ts +1 -0
- package/src/resources/extensions/gsd/commands-prefs-wizard.ts +5 -1
- package/src/resources/extensions/gsd/commands.ts +9 -1
- package/src/resources/extensions/gsd/docs/preferences-reference.md +10 -0
- package/src/resources/extensions/gsd/doctor-checks.ts +107 -5
- package/src/resources/extensions/gsd/doctor-proactive.ts +24 -0
- package/src/resources/extensions/gsd/doctor-types.ts +9 -1
- package/src/resources/extensions/gsd/doctor.ts +35 -0
- package/src/resources/extensions/gsd/guided-flow.ts +4 -2
- package/src/resources/extensions/gsd/preferences-validation.ts +38 -0
- package/src/resources/extensions/gsd/preferences.ts +2 -0
- package/src/resources/extensions/gsd/tests/doctor-git.test.ts +98 -2
- package/src/resources/extensions/gsd/tests/doctor-runtime.test.ts +59 -3
- package/src/resources/extensions/gsd/tests/preferences.test.ts +28 -0
- package/src/resources/extensions/mcp-client/index.ts +2 -1
- package/src/resources/skills/create-gsd-extension/references/events-reference.md +4 -4
- package/packages/pi-coding-agent/dist/modes/interactive/theme/dark.json +0 -85
- package/packages/pi-coding-agent/dist/modes/interactive/theme/light.json +0 -84
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +0 -335
- package/packages/pi-coding-agent/src/modes/interactive/theme/dark.json +0 -85
- package/packages/pi-coding-agent/src/modes/interactive/theme/light.json +0 -84
- package/packages/pi-coding-agent/src/modes/interactive/theme/theme-schema.json +0 -335
- package/pkg/dist/modes/interactive/theme/dark.json +0 -85
- package/pkg/dist/modes/interactive/theme/light.json +0 -84
- package/pkg/dist/modes/interactive/theme/theme-schema.json +0 -335
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/core/extensions/runner.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAS,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EACX,qBAAqB,EACrB,2BAA2B,EAC3B,0BAA0B,EAE1B,YAAY,EAGZ,SAAS,EACT,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EAEtB,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,MAAM,YAAY,CAAC;AA0CpB,2DAA2D;AAC3D,UAAU,8BAA8B;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAC,2BAA2B,CAAC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,EAAE,MAAM,GAClB,OAAO,CAAC,8BAA8B,GAAG,SAAS,CAAC;IA+BhD,qBAAqB,CAC1B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GACtC,OAAO,CAAC;QACV,UAAU,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,aAAa,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC3D,WAAW,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,aAAa,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC5D,UAAU,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,aAAa,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC3D,CAAC;IAoBF,oEAAoE;IAC9D,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CA4BjH"}
|
|
@@ -38,19 +38,6 @@ const buildBuiltinKeybindings = (effectiveKeybindings) => {
|
|
|
38
38
|
}
|
|
39
39
|
return builtinKeybindings;
|
|
40
40
|
};
|
|
41
|
-
/**
|
|
42
|
-
* Helper function to emit session_shutdown event to extensions.
|
|
43
|
-
* Returns true if the event was emitted, false if there were no handlers.
|
|
44
|
-
*/
|
|
45
|
-
export async function emitSessionShutdownEvent(extensionRunner) {
|
|
46
|
-
if (extensionRunner?.hasHandlers("session_shutdown")) {
|
|
47
|
-
await extensionRunner.emit({
|
|
48
|
-
type: "session_shutdown",
|
|
49
|
-
});
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
41
|
const noOpUIContext = {
|
|
55
42
|
select: async () => undefined,
|
|
56
43
|
confirm: async () => false,
|
|
@@ -376,245 +363,152 @@ export class ExtensionRunner {
|
|
|
376
363
|
event.type === "session_before_compact" ||
|
|
377
364
|
event.type === "session_before_tree");
|
|
378
365
|
}
|
|
379
|
-
|
|
366
|
+
/**
|
|
367
|
+
* Shared handler invocation loop.
|
|
368
|
+
*
|
|
369
|
+
* Iterates every handler registered for `eventType` across all extensions,
|
|
370
|
+
* calling each inside a try/catch that emits an ExtensionError on failure.
|
|
371
|
+
*
|
|
372
|
+
* `getEvent` builds the event object for each handler call — callers that
|
|
373
|
+
* mutate state between calls (e.g. context, before_provider_request) supply
|
|
374
|
+
* a function; callers with a fixed event can pass a constant.
|
|
375
|
+
*
|
|
376
|
+
* `processResult` receives each handler's return value and the owning
|
|
377
|
+
* extension's path. It returns `{ done: true }` to short-circuit
|
|
378
|
+
* or `{ done: false }` to keep iterating.
|
|
379
|
+
*/
|
|
380
|
+
async invokeHandlers(eventType, getEvent, processResult) {
|
|
380
381
|
const ctx = this.createContext();
|
|
381
|
-
let result;
|
|
382
382
|
for (const ext of this.extensions) {
|
|
383
|
-
const handlers = ext.handlers.get(
|
|
383
|
+
const handlers = ext.handlers.get(eventType);
|
|
384
384
|
if (!handlers || handlers.length === 0)
|
|
385
385
|
continue;
|
|
386
386
|
for (const handler of handlers) {
|
|
387
387
|
try {
|
|
388
|
+
const event = getEvent();
|
|
388
389
|
const handlerResult = await handler(event, ctx);
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
return result;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
390
|
+
const action = processResult(handlerResult, ext.path);
|
|
391
|
+
if (action.done)
|
|
392
|
+
return;
|
|
395
393
|
}
|
|
396
394
|
catch (err) {
|
|
397
395
|
const message = err instanceof Error ? err.message : String(err);
|
|
398
396
|
const stack = err instanceof Error ? err.stack : undefined;
|
|
399
397
|
this.emitError({
|
|
400
398
|
extensionPath: ext.path,
|
|
401
|
-
event:
|
|
399
|
+
event: eventType,
|
|
402
400
|
error: message,
|
|
403
401
|
stack,
|
|
404
402
|
});
|
|
405
403
|
}
|
|
406
404
|
}
|
|
407
405
|
}
|
|
406
|
+
}
|
|
407
|
+
async emit(event) {
|
|
408
|
+
let result;
|
|
409
|
+
const isSessionBefore = this.isSessionBeforeEvent(event);
|
|
410
|
+
await this.invokeHandlers(event.type, () => event, (handlerResult) => {
|
|
411
|
+
if (isSessionBefore && handlerResult) {
|
|
412
|
+
result = handlerResult;
|
|
413
|
+
if (result.cancel)
|
|
414
|
+
return { done: true };
|
|
415
|
+
}
|
|
416
|
+
return { done: false };
|
|
417
|
+
});
|
|
408
418
|
return result;
|
|
409
419
|
}
|
|
410
420
|
async emitToolResult(event) {
|
|
411
|
-
const ctx = this.createContext();
|
|
412
421
|
const currentEvent = { ...event };
|
|
413
422
|
let modified = false;
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
-
if (!
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
if (!handlerResult)
|
|
422
|
-
continue;
|
|
423
|
-
if (handlerResult.content !== undefined) {
|
|
424
|
-
currentEvent.content = handlerResult.content;
|
|
425
|
-
modified = true;
|
|
426
|
-
}
|
|
427
|
-
if (handlerResult.details !== undefined) {
|
|
428
|
-
currentEvent.details = handlerResult.details;
|
|
429
|
-
modified = true;
|
|
430
|
-
}
|
|
431
|
-
if (handlerResult.isError !== undefined) {
|
|
432
|
-
currentEvent.isError = handlerResult.isError;
|
|
433
|
-
modified = true;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
catch (err) {
|
|
437
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
438
|
-
const stack = err instanceof Error ? err.stack : undefined;
|
|
439
|
-
this.emitError({
|
|
440
|
-
extensionPath: ext.path,
|
|
441
|
-
event: "tool_result",
|
|
442
|
-
error: message,
|
|
443
|
-
stack,
|
|
444
|
-
});
|
|
445
|
-
}
|
|
423
|
+
await this.invokeHandlers("tool_result", () => currentEvent, (handlerResult) => {
|
|
424
|
+
const r = handlerResult;
|
|
425
|
+
if (!r)
|
|
426
|
+
return { done: false };
|
|
427
|
+
if (r.content !== undefined) {
|
|
428
|
+
currentEvent.content = r.content;
|
|
429
|
+
modified = true;
|
|
446
430
|
}
|
|
447
|
-
|
|
448
|
-
|
|
431
|
+
if (r.details !== undefined) {
|
|
432
|
+
currentEvent.details = r.details;
|
|
433
|
+
modified = true;
|
|
434
|
+
}
|
|
435
|
+
if (r.isError !== undefined) {
|
|
436
|
+
currentEvent.isError = r.isError;
|
|
437
|
+
modified = true;
|
|
438
|
+
}
|
|
439
|
+
return { done: false };
|
|
440
|
+
});
|
|
441
|
+
if (!modified)
|
|
449
442
|
return undefined;
|
|
450
|
-
}
|
|
451
|
-
return {
|
|
452
|
-
content: currentEvent.content,
|
|
453
|
-
details: currentEvent.details,
|
|
454
|
-
isError: currentEvent.isError,
|
|
455
|
-
};
|
|
443
|
+
return { content: currentEvent.content, details: currentEvent.details, isError: currentEvent.isError };
|
|
456
444
|
}
|
|
457
445
|
async emitToolCall(event) {
|
|
458
|
-
const ctx = this.createContext();
|
|
459
446
|
let result;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
try {
|
|
466
|
-
const handlerResult = await handler(event, ctx);
|
|
467
|
-
if (handlerResult) {
|
|
468
|
-
result = handlerResult;
|
|
469
|
-
if (result.block) {
|
|
470
|
-
return result;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
catch (err) {
|
|
475
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
476
|
-
const stack = err instanceof Error ? err.stack : undefined;
|
|
477
|
-
this.emitError({
|
|
478
|
-
extensionPath: ext.path,
|
|
479
|
-
event: "tool_call",
|
|
480
|
-
error: message,
|
|
481
|
-
stack,
|
|
482
|
-
});
|
|
483
|
-
}
|
|
447
|
+
await this.invokeHandlers("tool_call", () => event, (handlerResult) => {
|
|
448
|
+
if (handlerResult) {
|
|
449
|
+
result = handlerResult;
|
|
450
|
+
if (result.block)
|
|
451
|
+
return { done: true };
|
|
484
452
|
}
|
|
485
|
-
|
|
453
|
+
return { done: false };
|
|
454
|
+
});
|
|
486
455
|
return result;
|
|
487
456
|
}
|
|
488
457
|
async emitUserBash(event) {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
for (const handler of handlers) {
|
|
495
|
-
try {
|
|
496
|
-
const handlerResult = await handler(event, ctx);
|
|
497
|
-
if (handlerResult) {
|
|
498
|
-
return handlerResult;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
catch (err) {
|
|
502
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
503
|
-
const stack = err instanceof Error ? err.stack : undefined;
|
|
504
|
-
this.emitError({
|
|
505
|
-
extensionPath: ext.path,
|
|
506
|
-
event: "user_bash",
|
|
507
|
-
error: message,
|
|
508
|
-
stack,
|
|
509
|
-
});
|
|
510
|
-
}
|
|
458
|
+
let result;
|
|
459
|
+
await this.invokeHandlers("user_bash", () => event, (handlerResult) => {
|
|
460
|
+
if (handlerResult) {
|
|
461
|
+
result = handlerResult;
|
|
462
|
+
return { done: true };
|
|
511
463
|
}
|
|
512
|
-
|
|
513
|
-
|
|
464
|
+
return { done: false };
|
|
465
|
+
});
|
|
466
|
+
return result;
|
|
514
467
|
}
|
|
515
468
|
async emitContext(messages) {
|
|
516
|
-
const ctx = this.createContext();
|
|
517
469
|
let currentMessages = structuredClone(messages);
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
continue;
|
|
522
|
-
for (const handler of handlers) {
|
|
523
|
-
try {
|
|
524
|
-
const event = { type: "context", messages: currentMessages };
|
|
525
|
-
const handlerResult = await handler(event, ctx);
|
|
526
|
-
if (handlerResult && handlerResult.messages) {
|
|
527
|
-
currentMessages = handlerResult.messages;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
catch (err) {
|
|
531
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
532
|
-
const stack = err instanceof Error ? err.stack : undefined;
|
|
533
|
-
this.emitError({
|
|
534
|
-
extensionPath: ext.path,
|
|
535
|
-
event: "context",
|
|
536
|
-
error: message,
|
|
537
|
-
stack,
|
|
538
|
-
});
|
|
539
|
-
}
|
|
470
|
+
await this.invokeHandlers("context", () => ({ type: "context", messages: currentMessages }), (handlerResult) => {
|
|
471
|
+
if (handlerResult && handlerResult.messages) {
|
|
472
|
+
currentMessages = handlerResult.messages;
|
|
540
473
|
}
|
|
541
|
-
|
|
474
|
+
return { done: false };
|
|
475
|
+
});
|
|
542
476
|
return currentMessages;
|
|
543
477
|
}
|
|
544
478
|
async emitBeforeProviderRequest(payload, model) {
|
|
545
|
-
const ctx = this.createContext();
|
|
546
479
|
let currentPayload = payload;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
model,
|
|
557
|
-
};
|
|
558
|
-
const handlerResult = await handler(event, ctx);
|
|
559
|
-
if (handlerResult !== undefined) {
|
|
560
|
-
currentPayload = handlerResult;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
catch (err) {
|
|
564
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
565
|
-
const stack = err instanceof Error ? err.stack : undefined;
|
|
566
|
-
this.emitError({
|
|
567
|
-
extensionPath: ext.path,
|
|
568
|
-
event: "before_provider_request",
|
|
569
|
-
error: message,
|
|
570
|
-
stack,
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
480
|
+
await this.invokeHandlers("before_provider_request", () => ({
|
|
481
|
+
type: "before_provider_request",
|
|
482
|
+
payload: currentPayload,
|
|
483
|
+
model,
|
|
484
|
+
}), (handlerResult) => {
|
|
485
|
+
if (handlerResult !== undefined)
|
|
486
|
+
currentPayload = handlerResult;
|
|
487
|
+
return { done: false };
|
|
488
|
+
});
|
|
575
489
|
return currentPayload;
|
|
576
490
|
}
|
|
577
491
|
async emitBeforeAgentStart(prompt, images, systemPrompt) {
|
|
578
|
-
const ctx = this.createContext();
|
|
579
492
|
const messages = [];
|
|
580
493
|
let currentSystemPrompt = systemPrompt;
|
|
581
494
|
let systemPromptModified = false;
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if (handlerResult) {
|
|
596
|
-
const result = handlerResult;
|
|
597
|
-
if (result.message) {
|
|
598
|
-
messages.push(result.message);
|
|
599
|
-
}
|
|
600
|
-
if (result.systemPrompt !== undefined) {
|
|
601
|
-
currentSystemPrompt = result.systemPrompt;
|
|
602
|
-
systemPromptModified = true;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
catch (err) {
|
|
607
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
608
|
-
const stack = err instanceof Error ? err.stack : undefined;
|
|
609
|
-
this.emitError({
|
|
610
|
-
extensionPath: ext.path,
|
|
611
|
-
event: "before_agent_start",
|
|
612
|
-
error: message,
|
|
613
|
-
stack,
|
|
614
|
-
});
|
|
495
|
+
await this.invokeHandlers("before_agent_start", () => ({
|
|
496
|
+
type: "before_agent_start",
|
|
497
|
+
prompt,
|
|
498
|
+
images,
|
|
499
|
+
systemPrompt: currentSystemPrompt,
|
|
500
|
+
}), (handlerResult) => {
|
|
501
|
+
if (handlerResult) {
|
|
502
|
+
const r = handlerResult;
|
|
503
|
+
if (r.message)
|
|
504
|
+
messages.push(r.message);
|
|
505
|
+
if (r.systemPrompt !== undefined) {
|
|
506
|
+
currentSystemPrompt = r.systemPrompt;
|
|
507
|
+
systemPromptModified = true;
|
|
615
508
|
}
|
|
616
509
|
}
|
|
617
|
-
|
|
510
|
+
return { done: false };
|
|
511
|
+
});
|
|
618
512
|
if (messages.length > 0 || systemPromptModified) {
|
|
619
513
|
return {
|
|
620
514
|
messages: messages.length > 0 ? messages : undefined,
|
|
@@ -624,70 +518,49 @@ export class ExtensionRunner {
|
|
|
624
518
|
return undefined;
|
|
625
519
|
}
|
|
626
520
|
async emitResourcesDiscover(cwd, reason) {
|
|
627
|
-
const ctx = this.createContext();
|
|
628
521
|
const skillPaths = [];
|
|
629
522
|
const promptPaths = [];
|
|
630
523
|
const themePaths = [];
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
if (result?.themePaths?.length) {
|
|
647
|
-
themePaths.push(...result.themePaths.map((path) => ({ path, extensionPath: ext.path })));
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
catch (err) {
|
|
651
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
652
|
-
const stack = err instanceof Error ? err.stack : undefined;
|
|
653
|
-
this.emitError({
|
|
654
|
-
extensionPath: ext.path,
|
|
655
|
-
event: "resources_discover",
|
|
656
|
-
error: message,
|
|
657
|
-
stack,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
}
|
|
524
|
+
await this.invokeHandlers("resources_discover", () => ({
|
|
525
|
+
type: "resources_discover",
|
|
526
|
+
cwd,
|
|
527
|
+
reason,
|
|
528
|
+
}), (handlerResult, extensionPath) => {
|
|
529
|
+
const r = handlerResult;
|
|
530
|
+
if (r?.skillPaths?.length)
|
|
531
|
+
skillPaths.push(...r.skillPaths.map((path) => ({ path, extensionPath })));
|
|
532
|
+
if (r?.promptPaths?.length)
|
|
533
|
+
promptPaths.push(...r.promptPaths.map((path) => ({ path, extensionPath })));
|
|
534
|
+
if (r?.themePaths?.length)
|
|
535
|
+
themePaths.push(...r.themePaths.map((path) => ({ path, extensionPath })));
|
|
536
|
+
return { done: false };
|
|
537
|
+
});
|
|
662
538
|
return { skillPaths, promptPaths, themePaths };
|
|
663
539
|
}
|
|
664
540
|
/** Emit input event. Transforms chain, "handled" short-circuits. */
|
|
665
541
|
async emitInput(text, images, source) {
|
|
666
|
-
const ctx = this.createContext();
|
|
667
542
|
let currentText = text;
|
|
668
543
|
let currentImages = images;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
}
|
|
681
|
-
catch (err) {
|
|
682
|
-
this.emitError({
|
|
683
|
-
extensionPath: ext.path,
|
|
684
|
-
event: "input",
|
|
685
|
-
error: err instanceof Error ? err.message : String(err),
|
|
686
|
-
stack: err instanceof Error ? err.stack : undefined,
|
|
687
|
-
});
|
|
688
|
-
}
|
|
544
|
+
let handled;
|
|
545
|
+
await this.invokeHandlers("input", () => ({
|
|
546
|
+
type: "input",
|
|
547
|
+
text: currentText,
|
|
548
|
+
images: currentImages,
|
|
549
|
+
source,
|
|
550
|
+
}), (handlerResult) => {
|
|
551
|
+
const r = handlerResult;
|
|
552
|
+
if (r?.action === "handled") {
|
|
553
|
+
handled = r;
|
|
554
|
+
return { done: true };
|
|
689
555
|
}
|
|
690
|
-
|
|
556
|
+
if (r?.action === "transform") {
|
|
557
|
+
currentText = r.text;
|
|
558
|
+
currentImages = r.images ?? currentImages;
|
|
559
|
+
}
|
|
560
|
+
return { done: false };
|
|
561
|
+
});
|
|
562
|
+
if (handled)
|
|
563
|
+
return handled;
|
|
691
564
|
return currentText !== text || currentImages !== images
|
|
692
565
|
? { action: "transform", text: currentText, images: currentImages }
|
|
693
566
|
: { action: "continue" };
|