@ai-agent-forge/agent-forge 0.88.0 → 0.88.1
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/CHANGELOG.md +29 -0
- package/bundled-plugins/agent-loop-policy/agent-forge.json +19 -0
- package/bundled-plugins/agent-loop-policy/dist/entry.d.ts +28 -0
- package/bundled-plugins/agent-loop-policy/dist/entry.d.ts.map +1 -0
- package/bundled-plugins/agent-loop-policy/dist/entry.js +69 -0
- package/bundled-plugins/agent-loop-policy/dist/entry.js.map +1 -0
- package/bundled-plugins/agent-loop-policy/dist/loop-guard.d.ts +199 -0
- package/bundled-plugins/agent-loop-policy/dist/loop-guard.d.ts.map +1 -0
- package/bundled-plugins/agent-loop-policy/dist/loop-guard.js +208 -0
- package/bundled-plugins/agent-loop-policy/dist/loop-guard.js.map +1 -0
- package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.d.ts +17 -0
- package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.d.ts.map +1 -0
- package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.js +18 -0
- package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.js.map +1 -0
- package/bundled-plugins/agent-loop-policy/plugin.json +7 -0
- package/bundled-plugins/coding-tools/agent-forge.json +19 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/bash.d.ts +5 -44
- package/bundled-plugins/coding-tools/dist/bash.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/bash.js +15 -119
- package/bundled-plugins/coding-tools/dist/bash.js.map +1 -0
- package/bundled-plugins/coding-tools/dist/capability.d.ts +25 -0
- package/bundled-plugins/coding-tools/dist/capability.d.ts.map +1 -0
- package/bundled-plugins/coding-tools/dist/capability.js +98 -0
- package/bundled-plugins/coding-tools/dist/capability.js.map +1 -0
- package/bundled-plugins/coding-tools/dist/config.d.ts +8 -0
- package/bundled-plugins/coding-tools/dist/config.d.ts.map +1 -0
- package/bundled-plugins/coding-tools/dist/config.js +8 -0
- package/bundled-plugins/coding-tools/dist/config.js.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/edit.d.ts +3 -3
- package/bundled-plugins/coding-tools/dist/edit.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/edit.js +12 -10
- package/bundled-plugins/coding-tools/dist/edit.js.map +1 -0
- package/bundled-plugins/coding-tools/dist/entry.d.ts +14 -0
- package/bundled-plugins/coding-tools/dist/entry.d.ts.map +1 -0
- package/bundled-plugins/coding-tools/dist/entry.js +23 -0
- package/bundled-plugins/coding-tools/dist/entry.js.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/find.d.ts +4 -4
- package/bundled-plugins/coding-tools/dist/find.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/find.js +10 -8
- package/bundled-plugins/coding-tools/dist/find.js.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/grep.d.ts +3 -3
- package/bundled-plugins/coding-tools/dist/grep.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/grep.js +10 -8
- package/bundled-plugins/coding-tools/dist/grep.js.map +1 -0
- package/bundled-plugins/coding-tools/dist/index.d.ts +17 -0
- package/bundled-plugins/coding-tools/dist/index.d.ts.map +1 -0
- package/bundled-plugins/coding-tools/dist/index.js +17 -0
- package/bundled-plugins/coding-tools/dist/index.js.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/ls.d.ts +3 -3
- package/bundled-plugins/coding-tools/dist/ls.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/ls.js +8 -6
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/ls.js.map +1 -1
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/powershell.d.ts +2 -1
- package/bundled-plugins/coding-tools/dist/powershell.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/powershell.js +6 -3
- package/bundled-plugins/coding-tools/dist/powershell.js.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/read.d.ts +3 -3
- package/bundled-plugins/coding-tools/dist/read.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/read.js +15 -13
- package/bundled-plugins/coding-tools/dist/read.js.map +1 -0
- package/bundled-plugins/coding-tools/dist/types.d.ts +74 -0
- package/bundled-plugins/coding-tools/dist/types.d.ts.map +1 -0
- package/bundled-plugins/coding-tools/dist/types.js +28 -0
- package/bundled-plugins/coding-tools/dist/types.js.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/write.d.ts +2 -2
- package/bundled-plugins/coding-tools/dist/write.d.ts.map +1 -0
- package/{dist/core/tools → bundled-plugins/coding-tools/dist}/write.js +11 -9
- package/bundled-plugins/coding-tools/dist/write.js.map +1 -0
- package/bundled-plugins/coding-tools/plugin.json +10 -0
- package/bundled-plugins/compaction-policy/agent-forge.json +19 -0
- package/bundled-plugins/compaction-policy/dist/branch-summary-policy.d.ts +6 -0
- package/bundled-plugins/compaction-policy/dist/branch-summary-policy.d.ts.map +1 -0
- package/bundled-plugins/compaction-policy/dist/branch-summary-policy.js +19 -0
- package/bundled-plugins/compaction-policy/dist/branch-summary-policy.js.map +1 -0
- package/bundled-plugins/compaction-policy/dist/compaction-policy.d.ts +6 -0
- package/bundled-plugins/compaction-policy/dist/compaction-policy.d.ts.map +1 -0
- package/bundled-plugins/compaction-policy/dist/compaction-policy.js +38 -0
- package/bundled-plugins/compaction-policy/dist/compaction-policy.js.map +1 -0
- package/bundled-plugins/compaction-policy/dist/entry.d.ts +13 -0
- package/bundled-plugins/compaction-policy/dist/entry.d.ts.map +1 -0
- package/bundled-plugins/compaction-policy/dist/entry.js +23 -0
- package/bundled-plugins/compaction-policy/dist/entry.js.map +1 -0
- package/bundled-plugins/compaction-policy/plugin.json +10 -0
- package/bundled-plugins/mcp-http/dist/index.d.ts +8 -0
- package/bundled-plugins/mcp-http/dist/index.d.ts.map +1 -0
- package/bundled-plugins/mcp-http/dist/index.js +8 -0
- package/bundled-plugins/mcp-http/dist/index.js.map +1 -0
- package/bundled-plugins/mcp-http/dist/mcp-http.d.ts.map +1 -0
- package/{dist/plugins → bundled-plugins/mcp-http/dist}/mcp-http.js +1 -1
- package/bundled-plugins/mcp-http/dist/mcp-http.js.map +1 -0
- package/bundled-plugins/overflow-policy/agent-forge.json +19 -0
- package/bundled-plugins/overflow-policy/dist/entry.d.ts +16 -0
- package/bundled-plugins/overflow-policy/dist/entry.d.ts.map +1 -0
- package/bundled-plugins/overflow-policy/dist/entry.js +35 -0
- package/bundled-plugins/overflow-policy/dist/entry.js.map +1 -0
- package/bundled-plugins/overflow-policy/plugin.json +10 -0
- package/bundled-plugins/provider-failover/agent-forge.json +19 -0
- package/bundled-plugins/provider-failover/dist/entry.d.ts +8 -0
- package/bundled-plugins/provider-failover/dist/entry.d.ts.map +1 -0
- package/bundled-plugins/provider-failover/dist/entry.js +8 -0
- package/bundled-plugins/provider-failover/dist/entry.js.map +1 -0
- package/bundled-plugins/provider-failover/dist/provider-failover.d.ts +122 -0
- package/bundled-plugins/provider-failover/dist/provider-failover.d.ts.map +1 -0
- package/{dist/core/extensions → bundled-plugins/provider-failover/dist}/provider-failover.js +143 -56
- package/bundled-plugins/provider-failover/dist/provider-failover.js.map +1 -0
- package/bundled-plugins/provider-failover/plugin.json +7 -0
- package/bundled-plugins/retry-policy/agent-forge.json +19 -0
- package/bundled-plugins/retry-policy/dist/entry.d.ts +16 -0
- package/bundled-plugins/retry-policy/dist/entry.d.ts.map +1 -0
- package/bundled-plugins/retry-policy/dist/entry.js +34 -0
- package/bundled-plugins/retry-policy/dist/entry.js.map +1 -0
- package/bundled-plugins/retry-policy/plugin.json +10 -0
- package/dist/bundle/.build-manifest.json +61 -117
- package/dist/bundle/chunks/{anthropic-messages-ALDZBUKI.js → anthropic-messages-PLAKXR73.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-A2WJWZFB.js → azure-openai-responses-OUWQ2AZD.js} +1 -1
- package/dist/bundle/chunks/{chunk-CIX3FSBK.js → chunk-A3JYRWB6.js} +1 -1
- package/dist/bundle/chunks/{chunk-SQFG22WN.js → chunk-AC2FIS4G.js} +1 -1
- package/dist/bundle/chunks/chunk-AQLNTW2B.js +664 -0
- package/dist/bundle/chunks/chunk-D3ARGZFR.js +13 -0
- package/dist/bundle/chunks/{chunk-YJCQVXW5.js → chunk-HTEVUY7F.js} +1 -1
- package/dist/bundle/chunks/{chunk-Y7HXTASS.js → chunk-HV64ASMT.js} +1 -1
- package/dist/bundle/chunks/chunk-LZOEQITZ.js +855 -0
- package/dist/bundle/chunks/{chunk-7ZY7IXZD.js → chunk-TRDNDS6A.js} +1 -1
- package/dist/bundle/chunks/chunk-Z72JWUZ4.js +4 -0
- package/dist/bundle/chunks/{google-generative-ai-NIB4WONV.js → google-generative-ai-DLII6DAT.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-DCPYUEUO.js → google-vertex-G7BZL7GM.js} +1 -1
- package/dist/bundle/chunks/image-resize-worker.js +2 -2
- package/dist/bundle/chunks/{mistral-conversations-OC6LA5XL.js → mistral-conversations-JXUK24ID.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-IO2X4Y7L.js → openai-codex-responses-5GSGFIPG.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-XYQQHETU.js → openai-completions-EI2I6DTG.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-DLIRN3CI.js → openai-responses-AUJQ3NWT.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-E6RRYBO7.js → pi-messages-PWU2VJMR.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-WF6WRHP7.js +5 -0
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/client.js +1 -1
- package/dist/bundle/index.js +3 -3
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/capabilities/builtin.d.ts +1 -1
- package/dist/capabilities/builtin.d.ts.map +1 -1
- package/dist/capabilities/builtin.js +5 -0
- package/dist/capabilities/builtin.js.map +1 -1
- package/dist/cli/plugin-command.d.ts.map +1 -1
- package/dist/cli/plugin-command.js +17 -1
- package/dist/cli/plugin-command.js.map +1 -1
- package/dist/config.d.ts +2 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -4
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts +1 -1
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +1 -1
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-compaction.js +14 -1
- package/dist/core/agent-session-compaction.js.map +1 -1
- package/dist/core/agent-session-internal.d.ts +1 -1
- package/dist/core/agent-session-internal.d.ts.map +1 -1
- package/dist/core/agent-session-internal.js.map +1 -1
- package/dist/core/agent-session-loop.d.ts +4 -3
- package/dist/core/agent-session-loop.d.ts.map +1 -1
- package/dist/core/agent-session-loop.js +9 -6
- package/dist/core/agent-session-loop.js.map +1 -1
- package/dist/core/agent-session-retry.d.ts +1 -1
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +32 -3
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +30 -9
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session-tools.d.ts.map +1 -1
- package/dist/core/agent-session-tools.js +5 -1
- package/dist/core/agent-session-tools.js.map +1 -1
- package/dist/core/agent-session.d.ts +12 -13
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +56 -34
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/bash-executor.d.ts +1 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/extensions/bootstrap-agent-loop.d.ts +23 -151
- package/dist/core/extensions/bootstrap-agent-loop.d.ts.map +1 -1
- package/dist/core/extensions/bootstrap-agent-loop.js +28 -290
- package/dist/core/extensions/bootstrap-agent-loop.js.map +1 -1
- package/dist/core/extensions/capability-runtime-types.d.ts +5 -3
- package/dist/core/extensions/capability-runtime-types.d.ts.map +1 -1
- package/dist/core/extensions/capability-runtime-types.js.map +1 -1
- package/dist/core/extensions/capability-runtime.d.ts.map +1 -1
- package/dist/core/extensions/capability-runtime.js +42 -6
- package/dist/core/extensions/capability-runtime.js.map +1 -1
- package/dist/core/extensions/index.d.ts +12 -5
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js +12 -5
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/virtual-modules.js +65 -0
- package/dist/core/extensions/virtual-modules.js.map +1 -1
- package/dist/core/facade/coding-agent-facade.d.ts +1 -1
- package/dist/core/facade/coding-agent-facade.d.ts.map +1 -1
- package/dist/core/facade/coding-agent-facade.js.map +1 -1
- package/dist/core/i18n/locales/zh-cn/core-contract-core.d.ts +1 -1
- package/dist/core/i18n/locales/zh-cn/core-contract-core.d.ts.map +1 -1
- package/dist/core/i18n/locales/zh-cn/core-contract-core.js +1 -1
- package/dist/core/i18n/locales/zh-cn/core-contract-core.js.map +1 -1
- package/dist/core/i18n/locales/zh-cn/core-contract-extensions.d.ts.map +1 -1
- package/dist/core/i18n/locales/zh-cn/core-contract-extensions.js +2 -4
- package/dist/core/i18n/locales/zh-cn/core-contract-extensions.js.map +1 -1
- package/dist/core/i18n/locales/zh-cn/core-errors.d.ts.map +1 -1
- package/dist/core/i18n/locales/zh-cn/core-errors.js +3 -1
- package/dist/core/i18n/locales/zh-cn/core-errors.js.map +1 -1
- package/dist/core/sdk.d.ts +10 -3
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +263 -77
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/tools/bash-operations.d.ts +41 -0
- package/dist/core/tools/bash-operations.d.ts.map +1 -0
- package/dist/core/tools/bash-operations.js +113 -0
- package/dist/core/tools/bash-operations.js.map +1 -0
- package/dist/core/tools/index.d.ts +12 -36
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +1 -117
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/readme-path.d.ts +3 -0
- package/dist/core/tools/readme-path.d.ts.map +1 -0
- package/dist/core/tools/readme-path.js +15 -0
- package/dist/core/tools/readme-path.js.map +1 -0
- package/dist/index.d.ts +3 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -39
- package/dist/index.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +0 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +9 -25
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/plugins/ecosystem/cli.d.ts.map +1 -1
- package/dist/plugins/ecosystem/cli.js +14 -2
- package/dist/plugins/ecosystem/cli.js.map +1 -1
- package/dist/plugins/ecosystem/node-npm-registry-source.d.ts +7 -2
- package/dist/plugins/ecosystem/node-npm-registry-source.d.ts.map +1 -1
- package/dist/plugins/ecosystem/node-npm-registry-source.js +64 -9
- package/dist/plugins/ecosystem/node-npm-registry-source.js.map +1 -1
- package/dist/plugins/ecosystem/node-plugin-acquisition-host.d.ts.map +1 -1
- package/dist/plugins/ecosystem/node-plugin-acquisition-host.js +6 -0
- package/dist/plugins/ecosystem/node-plugin-acquisition-host.js.map +1 -1
- package/dist/profiles/builtin-suites.d.ts +5 -1
- package/dist/profiles/builtin-suites.d.ts.map +1 -1
- package/dist/profiles/builtin-suites.js +6 -1
- package/dist/profiles/builtin-suites.js.map +1 -1
- package/examples/extensions/bash-spawn-hook/index.ts +7 -2
- package/examples/extensions/built-in-tool-renderer/index.ts +4 -2
- package/examples/extensions/minimal-mode/index.ts +2 -2
- package/examples/extensions/truncated-tool/index.ts +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/extensions/with-deps/plugin.json +1 -1
- package/package.json +3 -2
- package/dist/bundle/chunks/chunk-6ZKDNZHA.js +0 -145
- package/dist/bundle/chunks/chunk-HLJEVRWP.js +0 -13
- package/dist/bundle/chunks/chunk-YGHQME4V.js +0 -1456
- package/dist/bundle/chunks/virtual-modules-KZ5DRH7Q.js +0 -2
- package/dist/core/extensions/bootstrap-branch-summary-policy.d.ts +0 -7
- package/dist/core/extensions/bootstrap-branch-summary-policy.d.ts.map +0 -1
- package/dist/core/extensions/bootstrap-branch-summary-policy.js +0 -28
- package/dist/core/extensions/bootstrap-branch-summary-policy.js.map +0 -1
- package/dist/core/extensions/bootstrap-compaction-policy.d.ts +0 -7
- package/dist/core/extensions/bootstrap-compaction-policy.d.ts.map +0 -1
- package/dist/core/extensions/bootstrap-compaction-policy.js +0 -48
- package/dist/core/extensions/bootstrap-compaction-policy.js.map +0 -1
- package/dist/core/extensions/bootstrap-overflow-policy.d.ts +0 -7
- package/dist/core/extensions/bootstrap-overflow-policy.d.ts.map +0 -1
- package/dist/core/extensions/bootstrap-overflow-policy.js +0 -30
- package/dist/core/extensions/bootstrap-overflow-policy.js.map +0 -1
- package/dist/core/extensions/bootstrap-retry-policy.d.ts +0 -7
- package/dist/core/extensions/bootstrap-retry-policy.d.ts.map +0 -1
- package/dist/core/extensions/bootstrap-retry-policy.js +0 -29
- package/dist/core/extensions/bootstrap-retry-policy.js.map +0 -1
- package/dist/core/extensions/bootstrap-tools.d.ts +0 -20
- package/dist/core/extensions/bootstrap-tools.d.ts.map +0 -1
- package/dist/core/extensions/bootstrap-tools.js +0 -36
- package/dist/core/extensions/bootstrap-tools.js.map +0 -1
- package/dist/core/extensions/provider-failover.d.ts +0 -110
- package/dist/core/extensions/provider-failover.d.ts.map +0 -1
- package/dist/core/extensions/provider-failover.js.map +0 -1
- package/dist/core/tools/bash.d.ts.map +0 -1
- package/dist/core/tools/bash.js.map +0 -1
- package/dist/core/tools/edit.d.ts.map +0 -1
- package/dist/core/tools/edit.js.map +0 -1
- package/dist/core/tools/find.d.ts.map +0 -1
- package/dist/core/tools/find.js.map +0 -1
- package/dist/core/tools/grep.d.ts.map +0 -1
- package/dist/core/tools/grep.js.map +0 -1
- package/dist/core/tools/ls.d.ts.map +0 -1
- package/dist/core/tools/powershell.d.ts.map +0 -1
- package/dist/core/tools/powershell.js.map +0 -1
- package/dist/core/tools/read.d.ts.map +0 -1
- package/dist/core/tools/read.js.map +0 -1
- package/dist/core/tools/write.d.ts.map +0 -1
- package/dist/core/tools/write.js.map +0 -1
- package/dist/plugins/mcp-http.d.ts.map +0 -1
- package/dist/plugins/mcp-http.js.map +0 -1
- package/dist/profile/child-facade.d.ts +0 -44
- package/dist/profile/child-facade.d.ts.map +0 -1
- package/dist/profile/child-facade.js +0 -56
- package/dist/profile/child-facade.js.map +0 -1
- package/dist/profile/dependency-wiring.d.ts +0 -48
- package/dist/profile/dependency-wiring.d.ts.map +0 -1
- package/dist/profile/dependency-wiring.js +0 -56
- package/dist/profile/dependency-wiring.js.map +0 -1
- package/dist/profile/domain-recovery.d.ts +0 -60
- package/dist/profile/domain-recovery.d.ts.map +0 -1
- package/dist/profile/domain-recovery.js +0 -94
- package/dist/profile/domain-recovery.js.map +0 -1
- package/dist/profile/first-roles.d.ts +0 -30
- package/dist/profile/first-roles.d.ts.map +0 -1
- package/dist/profile/first-roles.js +0 -83
- package/dist/profile/first-roles.js.map +0 -1
- package/dist/profile/goal-plugin.d.ts +0 -38
- package/dist/profile/goal-plugin.d.ts.map +0 -1
- package/dist/profile/goal-plugin.js +0 -132
- package/dist/profile/goal-plugin.js.map +0 -1
- package/dist/profile/plan-plugin.d.ts +0 -44
- package/dist/profile/plan-plugin.d.ts.map +0 -1
- package/dist/profile/plan-plugin.js +0 -157
- package/dist/profile/plan-plugin.js.map +0 -1
- package/dist/profile/policy-manifest.d.ts +0 -53
- package/dist/profile/policy-manifest.d.ts.map +0 -1
- package/dist/profile/policy-manifest.js +0 -53
- package/dist/profile/policy-manifest.js.map +0 -1
- package/dist/profile/role-assembly.d.ts +0 -47
- package/dist/profile/role-assembly.d.ts.map +0 -1
- package/dist/profile/role-assembly.js +0 -31
- package/dist/profile/role-assembly.js.map +0 -1
- package/dist/profile/role-catalog.d.ts +0 -43
- package/dist/profile/role-catalog.d.ts.map +0 -1
- package/dist/profile/role-catalog.js +0 -132
- package/dist/profile/role-catalog.js.map +0 -1
- package/dist/profile/role-orchestrator.d.ts +0 -123
- package/dist/profile/role-orchestrator.d.ts.map +0 -1
- package/dist/profile/role-orchestrator.js +0 -195
- package/dist/profile/role-orchestrator.js.map +0 -1
- package/dist/profile/role-runner.d.ts +0 -99
- package/dist/profile/role-runner.d.ts.map +0 -1
- package/dist/profile/role-runner.js +0 -79
- package/dist/profile/role-runner.js.map +0 -1
- package/dist/profile/root-facade.d.ts +0 -36
- package/dist/profile/root-facade.d.ts.map +0 -1
- package/dist/profile/root-facade.js +0 -49
- package/dist/profile/root-facade.js.map +0 -1
- package/dist/profile/skill-discovery-wiring.d.ts +0 -58
- package/dist/profile/skill-discovery-wiring.d.ts.map +0 -1
- package/dist/profile/skill-discovery-wiring.js +0 -80
- package/dist/profile/skill-discovery-wiring.js.map +0 -1
- package/dist/profile/state-store.d.ts +0 -62
- package/dist/profile/state-store.d.ts.map +0 -1
- package/dist/profile/state-store.js +0 -144
- package/dist/profile/state-store.js.map +0 -1
- package/dist/profile/todo-plugin.d.ts +0 -37
- package/dist/profile/todo-plugin.d.ts.map +0 -1
- package/dist/profile/todo-plugin.js +0 -137
- package/dist/profile/todo-plugin.js.map +0 -1
- /package/{dist/plugins → bundled-plugins/mcp-http/dist}/mcp-http.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-errors.js","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/core-errors.ts"],"names":[],"mappings":"AAAA;;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6BAAW;IAChD,yCAAyC,EAAE,mCAAa;IACxD,uCAAuC,EAAE,6BAAW;IACpD,6CAA6C,EAAE,yCAAqB;IACpE,yCAAyC,EAAE,gCAAY;IAEvD,kDAA0C;IAC1C,8BAA8B,EAAE,oBAAQ;CACxC,CAAC","sourcesContent":["/**\n * core-errors 域词典(批次⑥):core/plugins 层终端用户可见的 throw 错误消息。\n * 覆盖范围见 docs/design/国际化与本地化.md 与批次⑥登记:配置错误、认证与 API key\n * 失败、网络/超时/HTTP 失败、文件 IO、会话文件损坏、资源缺失、环境限制,以及\n * 插件生态的安装/下载失败。插件开发者契约校验(D 类)不在此域,归批次⑨。\n * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。\n */\nexport const coreErrors: Record<string, string> = {\n\t// ---- 认证与模型引导(auth-guidance.ts 及其 throw 调用点)----\n\t\"Use /login to log into a provider via OAuth or API key. See:\":\n\t\t\"使用 /login 通过 OAuth 或 API key 登录提供商。参见:\",\n\t\"No models available. {help}\": \"没有可用模型。{help}\",\n\t\"No model selected.\\n\\n{help}\\n\\nThen use /model to select a model.\":\n\t\t\"未选择模型。\\n\\n{help}\\n\\n然后使用 /model 选择模型。\",\n\t\"No API key found for {provider}.\\n\\n{help}\": \"未找到 {provider} 的 API key。\\n\\n{help}\",\n\t\"the selected model\": \"所选模型\",\n\n\t// ---- 会话管理(session-manager.ts / session-storage.ts)----\n\t\"Session id must be non-empty, contain only alphanumeric characters, '-', '_', and '.', and start and end with an alphanumeric character\":\n\t\t\"会话 id 不能为空,只能包含字母数字字符、'-'、'_' 和 '.',且首尾必须是字母数字字符\",\n\t\"Session file is not a valid {appName} session: {path}\": \"会话文件不是有效的 {appName} 会话:{path}\",\n\t\"Invalid compaction operationId in session entry: {operationId}\": \"会话条目中的压缩 operationId 无效:{operationId}\",\n\t\"Duplicate compaction operationId in session: {operationId}\": \"会话中存在重复的压缩 operationId:{operationId}\",\n\t\"Session append failed and rollback failed\": \"会话追加失败且回滚失败\",\n\t\"Cannot fork: source session file is empty or invalid: {path}\": \"无法分叉:源会话文件为空或无效:{path}\",\n\t\"Cannot fork: source session has no header: {path}\": \"无法分叉:源会话缺少头信息:{path}\",\n\t\"session guard lock timeout after {timeoutMs} ms: {lockPath}\": \"会话守护锁在 {timeoutMs} 毫秒后超时:{lockPath}\",\n\t\"Session file is owned by another live process (pid {pid}): {sessionFile}. Close that process first; concurrent writers would silently fork the session history.\":\n\t\t\"会话文件被另一个存活进程占用(pid {pid}):{sessionFile}。请先关闭该进程;并发写入会导致会话历史静默分叉。\",\n\t\"Session file: {sessionFile}\": \"会话文件:{sessionFile}\",\n\t\"Stored session working directory does not exist: {sessionCwd}{sessionFile}\\nCurrent working directory: {fallbackCwd}\":\n\t\t\"会话中记录的工作目录不存在:{sessionCwd}{sessionFile}\\n当前工作目录:{fallbackCwd}\",\n\n\t// ---- 会话运行时状态与操作守卫(agent-session*.ts)----\n\t\"Input rejected by an input gate\": \"输入被输入门拒绝\",\n\t\"Input rejected by an input gate: {reason}\": \"输入被输入门拒绝:{reason}\",\n\t\"Session reload in progress; prompts are unavailable\": \"会话重载进行中;暂无法提交提示\",\n\t\"Session reload in progress; compaction is unavailable\": \"会话重载进行中;暂无法压缩\",\n\t\"Session reload in progress; compaction was not started\": \"会话重载进行中;压缩未启动\",\n\t\"Session reload in progress; tree navigation is unavailable\": \"会话重载进行中;暂无法导航会话树\",\n\t\"Session reload in progress; bash execution is unavailable\": \"会话重载进行中;暂无法执行 bash\",\n\t\"Session reload in progress; bash results cannot be recorded\": \"会话重载进行中;无法记录 bash 结果\",\n\t\"Cannot submit a prompt while compaction is in progress. Wait for compaction to finish and retry.\":\n\t\t\"压缩进行中无法提交提示。请等待压缩完成后再重试。\",\n\t\"Authentication failed for \\\"{provider}\\\". Credentials may have expired or network is unavailable. Run '/login {provider}' to re-authenticate.\":\n\t\t\"“{provider}”认证失败。凭证可能已过期或网络不可用。请运行 '/login {provider}' 重新认证。\",\n\t\"No model is set on this session's agent\": \"本会话的 agent 未设置模型\",\n\t\"No API key for {provider}/{model}\": \"没有 {provider}/{model} 的 API key\",\n\t\"Already compacted\": \"已压缩过\",\n\t\"Nothing to compact (session too small)\": \"没有可压缩的内容(会话太小)\",\n\t\"Wait for the current response to finish before navigating the session tree.\": \"请等待当前响应结束再导航会话树。\",\n\t\"Wait for the current compaction or tree navigation to finish before navigating the session tree.\":\n\t\t\"请等待当前压缩或树导航结束再导航会话树。\",\n\t\"No model available for summarization\": \"没有可用于生成摘要的模型\",\n\t\"Branch navigation is already in progress\": \"分支导航已在进行中\",\n\t\"Branch summary policy is not registered: {name}\": \"分支摘要策略未注册:{name}\",\n\t\"Configured context strategy is not registered: {name}\": \"已配置的上下文策略未注册:{name}\",\n\t\"Configured context strategy is not registered after reload: {name}\": \"重载后已配置的上下文策略未注册:{name}\",\n\t\"This session has not been saved yet. Send a message before cloning or forking it.\":\n\t\t\"本会话尚未保存。请先发送消息再克隆或分叉。\",\n\t\"Failed to create forked session\": \"创建分叉会话失败\",\n\t\"File not found: {path}\": \"文件不存在:{path}\",\n\t\"Skill is duplicated in resources: {name}\": \"技能在资源中重复:{name}\",\n\t\"Skill conflicts with a resource skill: {name}\": \"技能与资源技能冲突:{name}\",\n\n\t// ---- 模型与提供商配置(model-runtime.ts / provider-composer.ts)----\n\t\"Credential {operation} committed for {providerId}, but local synchronization failed\":\n\t\t\"提供商 {providerId} 的凭证 {operation} 已提交,但本地同步失败\",\n\t\"Unknown provider: {provider}\": \"未知提供商:{provider}\",\n\t\"Provider is not configured: {provider}\": \"提供商未配置:{provider}\",\n\t'Provider {providerId}, model {modelId}: no \"api\" specified. Set at provider or model level.':\n\t\t'提供商 {providerId},模型 {modelId}:未指定 \"api\"。请在提供商或模型级别设置。',\n\t'Provider {providerId}: \"baseUrl\" is required when defining custom models.':\n\t\t'提供商 {providerId}:定义自定义模型时必须提供 \"baseUrl\"。',\n\t\"Provider {providerId}, model {modelId}: invalid contextWindow\":\n\t\t\"提供商 {providerId},模型 {modelId}:contextWindow 无效\",\n\t\"Provider {providerId}, model {modelId}: invalid maxTokens\": \"提供商 {providerId},模型 {modelId}:maxTokens 无效\",\n\t'Provider {providerId}: \"baseUrl\" is required when \"oauth\" is set.':\n\t\t'提供商 {providerId}:设置 \"oauth\" 时必须提供 \"baseUrl\"。',\n\t'Provider {providerId}: must specify \"baseUrl\", \"headers\", \"compat\", \"modelOverrides\", or \"models\".':\n\t\t'提供商 {providerId}:必须指定 \"baseUrl\"、\"headers\"、\"compat\"、\"modelOverrides\" 或 \"models\" 之一。',\n\t\"Provider {providerId}: no authentication method configured.\": \"提供商 {providerId}:未配置任何认证方式。\",\n\t'API key for provider \"{providerId}\"': '提供商 \"{providerId}\" 的 API key',\n\n\t// ---- 配置值解析(resolve-config-value.ts)----\n\t\"Failed to resolve {description} from shell command: {command}\": \"无法从 shell 命令解析{description}:{command}\",\n\t\"Failed to resolve {description} from environment variable: {envVar}\": \"无法从环境变量解析{description}:{envVar}\",\n\t\"Failed to resolve {description} from environment variables: {envVars}\":\n\t\t\"无法从环境变量解析{description}:{envVars}\",\n\t\"Failed to resolve {description}\": \"无法解析{description}\",\n\t'{description} header \"{key}\"': '{description}的 header \"{key}\"',\n\n\t// ---- settings 校验(settings-manager.ts / http-dispatcher.ts)----\n\t\"Invalid {settingName} setting: {value}\": \"无效的 {settingName} 设置:{value}\",\n\t\"Invalid compaction.{field} setting: {value}. Expected a non-negative safe integer.\":\n\t\t\"无效的 compaction.{field} 设置:{value}。应为非负安全整数。\",\n\t'Invalid compaction.modelOverrides[\"{modelKey}\"] setting: {value}. Expected an object.':\n\t\t'无效的 compaction.modelOverrides[\"{modelKey}\"] 设置:{value}。应为对象。',\n\t'Invalid compaction.modelOverrides[\"{modelKey}\"].{field} setting: {value}. Expected a non-negative safe integer.':\n\t\t'无效的 compaction.modelOverrides[\"{modelKey}\"].{field} 设置:{value}。应为非负安全整数。',\n\t\"Invalid httpIdleTimeoutMs setting: {value}\": \"无效的 httpIdleTimeoutMs 设置:{value}\",\n\t\"Invalid HTTP idle timeout: {value}\": \"无效的 HTTP 空闲超时:{value}\",\n\n\t// ---- 凭证存储(auth-storage.ts)----\n\t\"Failed to read auth.json: {reason}\": \"读取 auth.json 失败:{reason}\",\n\t\"Invalid auth.json: expected an object\": \"auth.json 无效:应为对象\",\n\t'Invalid auth.json credential for provider \"{providerId}\"': '提供商 \"{providerId}\" 的 auth.json 凭证无效',\n\t\"Read-only credential storage cannot modify auth.json\": \"只读凭证存储无法修改 auth.json\",\n\n\t// ---- 模型目录与压缩(remote-catalog-provider.ts / compaction.ts)----\n\t'Invalid model catalog for provider \"{providerId}\"': '提供商 \"{providerId}\" 的模型目录无效',\n\t\"Model catalog request failed for {providerId}: {status}\": \"提供商 {providerId} 的模型目录请求失败:{status}\",\n\t\"First kept entry has no UUID - session may need migration\": \"首个保留条目没有 UUID——会话可能需要迁移\",\n\n\t// ---- 导出(export-html/index.ts)----\n\t\"Cannot export in-memory session to HTML\": \"无法将内存中的会话导出为 HTML\",\n\t\"Nothing to export yet - start a conversation first\": \"暂无可导出内容——请先开始对话\",\n\n\t// ---- SDK 会话创建与插件装载(sdk.ts / capability-plugin.ts / capability-runtime.ts)----\n\t\"Failed to read capability plugin manifest {path}: {reason}\": \"读取能力插件 manifest 失败 {path}:{reason}\",\n\t\"Failed to inspect capability plugin directory {directory}: {reason}\": \"检查能力插件目录失败 {directory}:{reason}\",\n\t\"Capability plugin path must be a directory: {directory}\": \"能力插件路径必须是目录:{directory}\",\n\t\"Failed to resolve capability plugin directory {directory}: {reason}\": \"解析能力插件目录失败 {directory}:{reason}\",\n\t\"Failed to read capability plugin directory {directory}: {reason}\": \"读取能力插件目录失败 {directory}:{reason}\",\n\t\"Failed to resolve capability plugin manifest {path}: {reason}\": \"解析能力插件 manifest 失败 {path}:{reason}\",\n\t\"Failed to import capability plugin entry {path}: {reason}\": \"导入能力插件入口失败 {path}:{reason}\",\n\t\"Plugin capability is required but unavailable: {capabilityId}@{version} ({pluginId})\":\n\t\t\"必需的插件能力不可用:{capabilityId}@{version}({pluginId})\",\n\t'Session is bound to suite \"{boundSuiteId}\" and cannot resume with \"{suiteId}\"; rerun with --rebind-suite to adopt the new suite, or create a new session':\n\t\t'会话已绑定 suite \"{boundSuiteId}\",无法以 \"{suiteId}\" 恢复;请加 --rebind-suite 重新运行以切换到新 suite,或创建新会话',\n\t\"Session Profile identity drift detected (the active plugin set changed since the conversation started); rerun with --rebind-suite to adopt the new plugin set, or create a new session\":\n\t\t\"检测到会话 Profile 身份漂移(对话开始后生效的插件集发生了变化);请加 --rebind-suite 重新运行以采用新插件集,或创建新会话\",\n\n\t// ---- 包管理与命令执行(package-manager.ts / package-source.ts / package-install-host.ts / config.ts)----\n\t\"Path does not exist: {path}\": \"路径不存在:{path}\",\n\t\"Unsupported install source: {source}\": \"不支持的安装源:{source}\",\n\t\"Unsupported remove source: {source}\": \"不支持的移除源:{source}\",\n\t\"Missing source: {source}\": \"源缺失:{source}\",\n\t\"Empty response from npm view\": \"npm view 返回空响应\",\n\t\"Unexpected response from npm view\": \"npm view 返回意外响应\",\n\t\"Failed to determine remote HEAD\": \"无法确定远端 HEAD\",\n\t\"Unsupported upstream remote: {upstream}\": \"不支持的 upstream 远端:{upstream}\",\n\t\"Missing upstream branch name\": \"缺少 upstream 分支名\",\n\t\"Failed to run {command} {args}: {reason}\": \"执行 {command} {args} 失败:{reason}\",\n\t\"Failed to run {command}: {reason}\": \"执行 {command} 失败:{reason}\",\n\t\"No matching package found for {source}\": \"未找到与 {source} 匹配的包\",\n\t\"No matching package found for {source}. Did you mean {suggestion}?\":\n\t\t\"未找到与 {source} 匹配的包。你是想找 {suggestion} 吗?\",\n\t\"Invalid npmCommand: first array entry must be a non-empty command\": \"无效的 npmCommand:数组第一项必须是非空命令\",\n\n\t// ---- MCP(mcp-http.ts / agent-session-services.ts)----\n\t\"MCP HTTP transport error: {reason}\": \"MCP HTTP 传输错误:{reason}\",\n\t\"MCP HTTP transport is closed\": \"MCP HTTP 传输已关闭\",\n\t\"MCP HTTP transport returned HTTP {status}\": \"MCP HTTP 传输返回 HTTP {status}\",\n\t\"MCP HTTP transport returned non-JSON body: {reason}\": \"MCP HTTP 传输返回了非 JSON 响应体:{reason}\",\n\t\"MCP error {code}: {message}\": \"MCP 错误 {code}:{message}\",\n\t\"unknown error\": \"未知错误\",\n\t\"MCP tools/list result must contain tools[]\": \"MCP tools/list 结果必须包含 tools[]\",\n\t\"MCP tool requires a non-empty name\": \"MCP 工具必须具有非空名称\",\n\n\t// ---- 插件生态:获取与分发失败表(plugin-acquisition.ts / distribution.ts)----\n\t\"Plugin ref is invalid\": \"插件 ref 无效\",\n\t\"Local plugin ref exists but is neither a directory nor a .zip/.tgz file\":\n\t\t\"本地插件 ref 存在,但既不是目录也不是 .zip/.tgz 文件\",\n\t\"Plugin ref URL scheme is not supported\": \"不支持插件 ref 的 URL 协议\",\n\t\"Plugin ref #sha256 digest fragment is invalid\": \"插件 ref 的 #sha256 摘要片段无效\",\n\t\"Plugin npm package ref is invalid\": \"插件 npm 包 ref 无效\",\n\t\"Plugin package acquisition was cancelled\": \"插件包获取已取消\",\n\t\"Plugin package download failed\": \"插件包下载失败\",\n\t\"Plugin npm package was not found on the registry\": \"注册表中未找到该插件 npm 包\",\n\t\"No npm package version matches the requested range\": \"没有匹配所请求范围的 npm 包版本\",\n\t\"Plugin package bytes do not match the expected digest\": \"插件包字节与预期摘要不匹配\",\n\t\"Plugin package bytes are neither a zip nor a tgz\": \"插件包字节既不是 zip 也不是 tgz\",\n\t\"Plugin package contents are invalid\": \"插件包内容无效\",\n\t\"Plugin package exceeds the configured size budget\": \"插件包超出配置的大小预算\",\n\t\"Plugin release was not found\": \"未找到插件 release\",\n\t\"Plugin release has no .zip/.tgz asset\": \"插件 release 没有 .zip/.tgz 资产\",\n\t\"Plugin release has multiple .zip/.tgz assets\": \"插件 release 有多个 .zip/.tgz 资产\",\n\t\"Plugin release API rate limit was exceeded\": \"插件 release API 超出速率限制\",\n\t\"Plugin distribution is unsupported on this host\": \"此宿主不支持插件分发\",\n\t\"Plugin distribution operation was cancelled\": \"插件分发操作已取消\",\n\t\"Plugin distribution descriptor is invalid\": \"插件分发描述符无效\",\n\t\"Plugin distribution metadata is invalid\": \"插件分发元数据无效\",\n\t\"Plugin distribution artifact handle is invalid\": \"插件分发产物句柄无效\",\n\t\"Plugin distribution source does not match the descriptor\": \"插件分发来源与描述符不匹配\",\n\t\"Plugin distribution plugin identity does not match the descriptor\": \"插件分发的插件身份与描述符不匹配\",\n\t\"Plugin distribution digest does not match the descriptor\": \"插件分发摘要与描述符不匹配\",\n\t\"Plugin distribution signature was rejected\": \"插件分发签名被拒绝\",\n\t\"Plugin distribution descriptor has expired\": \"插件分发描述符已过期\",\n\t\"Plugin distribution size does not match the descriptor\": \"插件分发大小与描述符不匹配\",\n\t\"Plugin distribution media type does not match the descriptor\": \"插件分发媒体类型与描述符不匹配\",\n\t\"Plugin distribution host operation failed\": \"插件分发宿主操作失败\",\n\t\"Plugin distribution artifact release failed\": \"插件分发产物释放失败\",\n\n\t// ---- 插件生态:网络下载与安装店 IO(node-*-source.ts / registry.ts)----\n\t\"npm registry request timed out\": \"npm registry 请求超时\",\n\t\"npm registry request was cancelled\": \"npm registry 请求已取消\",\n\t\"npm registry request failed\": \"npm registry 请求失败\",\n\t\"npm registry redirect limit exceeded\": \"超出 npm registry 重定向次数上限\",\n\t\"npm package was not found on the registry\": \"注册表中未找到该 npm 包\",\n\t\"npm registry request did not succeed\": \"npm registry 请求未成功\",\n\t\"npm tarball download was cancelled\": \"npm tarball 下载已取消\",\n\t\"npm tarball download did not succeed\": \"npm tarball 下载未成功\",\n\t\"plugin package download was cancelled\": \"插件包下载已取消\",\n\t\"plugin package download timed out\": \"插件包下载超时\",\n\t\"plugin package download failed\": \"插件包下载失败\",\n\t\"plugin package redirect limit exceeded\": \"超出插件包重定向次数上限\",\n\t\"plugin package download did not succeed\": \"插件包下载未成功\",\n\t\"plugin package response has no body\": \"插件包响应没有响应体\",\n\t\"release API request timed out\": \"release API 请求超时\",\n\t\"release API request was cancelled\": \"release API 请求已取消\",\n\t\"release API request failed\": \"release API 请求失败\",\n\t\"repo or release was not found\": \"未找到仓库或 release\",\n\t\"release API request did not succeed\": \"release API 请求未成功\",\n\t\"release API redirect limit exceeded\": \"超出 release API 重定向次数上限\",\n\t\"release asset download was cancelled\": \"release 资产下载已取消\",\n\t\"repo has no published release\": \"仓库没有已发布的 release\",\n\t\"Plugin registry request failed\": \"插件注册表请求失败\",\n\t\"Plugin registry request was cancelled\": \"插件注册表请求已取消\",\n\t\"Plugin registry request timed out\": \"插件注册表请求超时\",\n\t\"Disk registry source read was cancelled\": \"磁盘注册表源读取已取消\",\n\t\"Install store index could not be read\": \"无法读取安装店索引\",\n\t\"Installed plugin manifest could not be read\": \"无法读取已安装插件的 manifest\",\n\t\"Plugin registry operation was cancelled\": \"插件注册表操作已取消\",\n\n\t// --- provider-composer.ts OAuth 手动输码 ---\n\t\"Paste the authorization code\": \"请粘贴授权码\",\n};\n"]}
|
|
1
|
+
{"version":3,"file":"core-errors.js","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/core-errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAA2B;IACjD,8EAAkD;IAClD,8DAA8D,EAC7D,oEAAwC;IACzC,6BAA6B,EAAE,6BAAe;IAC9C,oEAAoE,EACnE,qEAAuC;IACxC,4CAA4C,EAAE,+CAAqC;IACnF,oBAAoB,EAAE,cAAM;IAE5B,qEAAyD;IACzD,yIAAyI,EACxI,oHAAkD;IACnD,uDAAuD,EAAE,uDAA+B;IACxF,gEAAgE,EAAE,6DAAuC;IACzG,4DAA4D,EAAE,4DAAsC;IACpG,2CAA2C,EAAE,mCAAa;IAC1D,8DAA8D,EAAE,wDAAwB;IACxF,mDAAmD,EAAE,kDAAsB;IAC3E,6DAA6D,EAAE,6DAAqC;IACpG,iKAAiK,EAChK,sJAAk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,6CAA6C,EAAE,gCAAY;IAE3D,0FAA4D;IAC5D,gCAAgC,EAAE,2BAAmB;IACrD,oCAAoC,EAAE,8BAAoB;IAC1D,6BAA6B,EAAE,2BAAmB;IAClD,sCAAsC,EAAE,oCAAsB;IAC9D,sCAAsC,EAAE,2CAAyB;IACjE,2CAA2C,EAAE,kCAAgB;IAC7D,sCAAsC,EAAE,8BAAoB;IAC5D,oCAAoC,EAAE,6BAAmB;IACzD,sCAAsC,EAAE,6BAAmB;IAC3D,uCAAuC,EAAE,0BAAU;IACnD,mCAAmC,EAAE,uBAAS;IAC9C,gCAAgC,EAAE,uBAAS;IAC3C,wCAAwC,EAAE,sCAAc;IACxD,yCAAyC,EAAE,0BAAU;IACrD,qCAAqC,EAAE,gCAAY;IACnD,+BAA+B,EAAE,0BAAkB;IACnD,mCAAmC,EAAE,6BAAmB;IACxD,4BAA4B,EAAE,0BAAkB;IAChD,+BAA+B,EAAE,4BAAgB;IACjD,qCAAqC,EAAE,6BAAmB;IAC1D,qCAAqC,EAAE,0CAAwB;IAC/D,sCAAsC,EAAE,+BAAiB;IACzD,+BAA+B,EAAE,kCAAkB;IACnD,gCAAgC,EAAE,6BAAW;IAC7C,uCAAuC,EAAE,gCAAY;IACrD,mCAAmC,EAAE,6BAAW;IAChD,yCAAyC,EAAE,mCAAa;IACxD,uCAAuC,EAAE,6BAAW;IACpD,6CAA6C,EAAE,yCAAqB;IACpE,yCAAyC,EAAE,gCAAY;IACvD,qGAAqG,EACpG,wFAAoD;IAErD,kDAA0C;IAC1C,8BAA8B,EAAE,oBAAQ;CACxC,CAAC","sourcesContent":["/**\n * core-errors 域词典(批次⑥):core/plugins 层终端用户可见的 throw 错误消息。\n * 覆盖范围见 docs/design/国际化与本地化.md 与批次⑥登记:配置错误、认证与 API key\n * 失败、网络/超时/HTTP 失败、文件 IO、会话文件损坏、资源缺失、环境限制,以及\n * 插件生态的安装/下载失败。插件开发者契约校验(D 类)不在此域,归批次⑨。\n * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。\n */\nexport const coreErrors: Record<string, string> = {\n\t// ---- 认证与模型引导(auth-guidance.ts 及其 throw 调用点)----\n\t\"Use /login to log into a provider via OAuth or API key. See:\":\n\t\t\"使用 /login 通过 OAuth 或 API key 登录提供商。参见:\",\n\t\"No models available. {help}\": \"没有可用模型。{help}\",\n\t\"No model selected.\\n\\n{help}\\n\\nThen use /model to select a model.\":\n\t\t\"未选择模型。\\n\\n{help}\\n\\n然后使用 /model 选择模型。\",\n\t\"No API key found for {provider}.\\n\\n{help}\": \"未找到 {provider} 的 API key。\\n\\n{help}\",\n\t\"the selected model\": \"所选模型\",\n\n\t// ---- 会话管理(session-manager.ts / session-storage.ts)----\n\t\"Session id must be non-empty, contain only alphanumeric characters, '-', '_', and '.', and start and end with an alphanumeric character\":\n\t\t\"会话 id 不能为空,只能包含字母数字字符、'-'、'_' 和 '.',且首尾必须是字母数字字符\",\n\t\"Session file is not a valid {appName} session: {path}\": \"会话文件不是有效的 {appName} 会话:{path}\",\n\t\"Invalid compaction operationId in session entry: {operationId}\": \"会话条目中的压缩 operationId 无效:{operationId}\",\n\t\"Duplicate compaction operationId in session: {operationId}\": \"会话中存在重复的压缩 operationId:{operationId}\",\n\t\"Session append failed and rollback failed\": \"会话追加失败且回滚失败\",\n\t\"Cannot fork: source session file is empty or invalid: {path}\": \"无法分叉:源会话文件为空或无效:{path}\",\n\t\"Cannot fork: source session has no header: {path}\": \"无法分叉:源会话缺少头信息:{path}\",\n\t\"session guard lock timeout after {timeoutMs} ms: {lockPath}\": \"会话守护锁在 {timeoutMs} 毫秒后超时:{lockPath}\",\n\t\"Session file is owned by another live process (pid {pid}): {sessionFile}. Close that process first; concurrent writers would silently fork the session history.\":\n\t\t\"会话文件被另一个存活进程占用(pid {pid}):{sessionFile}。请先关闭该进程;并发写入会导致会话历史静默分叉。\",\n\t\"Session file: {sessionFile}\": \"会话文件:{sessionFile}\",\n\t\"Stored session working directory does not exist: {sessionCwd}{sessionFile}\\nCurrent working directory: {fallbackCwd}\":\n\t\t\"会话中记录的工作目录不存在:{sessionCwd}{sessionFile}\\n当前工作目录:{fallbackCwd}\",\n\n\t// ---- 会话运行时状态与操作守卫(agent-session*.ts)----\n\t\"Input rejected by an input gate\": \"输入被输入门拒绝\",\n\t\"Input rejected by an input gate: {reason}\": \"输入被输入门拒绝:{reason}\",\n\t\"Session reload in progress; prompts are unavailable\": \"会话重载进行中;暂无法提交提示\",\n\t\"Session reload in progress; compaction is unavailable\": \"会话重载进行中;暂无法压缩\",\n\t\"Session reload in progress; compaction was not started\": \"会话重载进行中;压缩未启动\",\n\t\"Session reload in progress; tree navigation is unavailable\": \"会话重载进行中;暂无法导航会话树\",\n\t\"Session reload in progress; bash execution is unavailable\": \"会话重载进行中;暂无法执行 bash\",\n\t\"Session reload in progress; bash results cannot be recorded\": \"会话重载进行中;无法记录 bash 结果\",\n\t\"Cannot submit a prompt while compaction is in progress. Wait for compaction to finish and retry.\":\n\t\t\"压缩进行中无法提交提示。请等待压缩完成后再重试。\",\n\t\"Authentication failed for \\\"{provider}\\\". Credentials may have expired or network is unavailable. Run '/login {provider}' to re-authenticate.\":\n\t\t\"“{provider}”认证失败。凭证可能已过期或网络不可用。请运行 '/login {provider}' 重新认证。\",\n\t\"No model is set on this session's agent\": \"本会话的 agent 未设置模型\",\n\t\"No API key for {provider}/{model}\": \"没有 {provider}/{model} 的 API key\",\n\t\"Already compacted\": \"已压缩过\",\n\t\"Nothing to compact (session too small)\": \"没有可压缩的内容(会话太小)\",\n\t\"Wait for the current response to finish before navigating the session tree.\": \"请等待当前响应结束再导航会话树。\",\n\t\"Wait for the current compaction or tree navigation to finish before navigating the session tree.\":\n\t\t\"请等待当前压缩或树导航结束再导航会话树。\",\n\t\"No model available for summarization\": \"没有可用于生成摘要的模型\",\n\t\"Branch navigation is already in progress\": \"分支导航已在进行中\",\n\t\"Branch summary policy is not registered: {name}\": \"分支摘要策略未注册:{name}\",\n\t\"Configured context strategy is not registered: {name}\": \"已配置的上下文策略未注册:{name}\",\n\t\"Configured context strategy is not registered after reload: {name}\": \"重载后已配置的上下文策略未注册:{name}\",\n\t\"This session has not been saved yet. Send a message before cloning or forking it.\":\n\t\t\"本会话尚未保存。请先发送消息再克隆或分叉。\",\n\t\"Failed to create forked session\": \"创建分叉会话失败\",\n\t\"File not found: {path}\": \"文件不存在:{path}\",\n\t\"Skill is duplicated in resources: {name}\": \"技能在资源中重复:{name}\",\n\t\"Skill conflicts with a resource skill: {name}\": \"技能与资源技能冲突:{name}\",\n\n\t// ---- 模型与提供商配置(model-runtime.ts / provider-composer.ts)----\n\t\"Credential {operation} committed for {providerId}, but local synchronization failed\":\n\t\t\"提供商 {providerId} 的凭证 {operation} 已提交,但本地同步失败\",\n\t\"Unknown provider: {provider}\": \"未知提供商:{provider}\",\n\t\"Provider is not configured: {provider}\": \"提供商未配置:{provider}\",\n\t'Provider {providerId}, model {modelId}: no \"api\" specified. Set at provider or model level.':\n\t\t'提供商 {providerId},模型 {modelId}:未指定 \"api\"。请在提供商或模型级别设置。',\n\t'Provider {providerId}: \"baseUrl\" is required when defining custom models.':\n\t\t'提供商 {providerId}:定义自定义模型时必须提供 \"baseUrl\"。',\n\t\"Provider {providerId}, model {modelId}: invalid contextWindow\":\n\t\t\"提供商 {providerId},模型 {modelId}:contextWindow 无效\",\n\t\"Provider {providerId}, model {modelId}: invalid maxTokens\": \"提供商 {providerId},模型 {modelId}:maxTokens 无效\",\n\t'Provider {providerId}: \"baseUrl\" is required when \"oauth\" is set.':\n\t\t'提供商 {providerId}:设置 \"oauth\" 时必须提供 \"baseUrl\"。',\n\t'Provider {providerId}: must specify \"baseUrl\", \"headers\", \"compat\", \"modelOverrides\", or \"models\".':\n\t\t'提供商 {providerId}:必须指定 \"baseUrl\"、\"headers\"、\"compat\"、\"modelOverrides\" 或 \"models\" 之一。',\n\t\"Provider {providerId}: no authentication method configured.\": \"提供商 {providerId}:未配置任何认证方式。\",\n\t'API key for provider \"{providerId}\"': '提供商 \"{providerId}\" 的 API key',\n\n\t// ---- 配置值解析(resolve-config-value.ts)----\n\t\"Failed to resolve {description} from shell command: {command}\": \"无法从 shell 命令解析{description}:{command}\",\n\t\"Failed to resolve {description} from environment variable: {envVar}\": \"无法从环境变量解析{description}:{envVar}\",\n\t\"Failed to resolve {description} from environment variables: {envVars}\":\n\t\t\"无法从环境变量解析{description}:{envVars}\",\n\t\"Failed to resolve {description}\": \"无法解析{description}\",\n\t'{description} header \"{key}\"': '{description}的 header \"{key}\"',\n\n\t// ---- settings 校验(settings-manager.ts / http-dispatcher.ts)----\n\t\"Invalid {settingName} setting: {value}\": \"无效的 {settingName} 设置:{value}\",\n\t\"Invalid compaction.{field} setting: {value}. Expected a non-negative safe integer.\":\n\t\t\"无效的 compaction.{field} 设置:{value}。应为非负安全整数。\",\n\t'Invalid compaction.modelOverrides[\"{modelKey}\"] setting: {value}. Expected an object.':\n\t\t'无效的 compaction.modelOverrides[\"{modelKey}\"] 设置:{value}。应为对象。',\n\t'Invalid compaction.modelOverrides[\"{modelKey}\"].{field} setting: {value}. Expected a non-negative safe integer.':\n\t\t'无效的 compaction.modelOverrides[\"{modelKey}\"].{field} 设置:{value}。应为非负安全整数。',\n\t\"Invalid httpIdleTimeoutMs setting: {value}\": \"无效的 httpIdleTimeoutMs 设置:{value}\",\n\t\"Invalid HTTP idle timeout: {value}\": \"无效的 HTTP 空闲超时:{value}\",\n\n\t// ---- 凭证存储(auth-storage.ts)----\n\t\"Failed to read auth.json: {reason}\": \"读取 auth.json 失败:{reason}\",\n\t\"Invalid auth.json: expected an object\": \"auth.json 无效:应为对象\",\n\t'Invalid auth.json credential for provider \"{providerId}\"': '提供商 \"{providerId}\" 的 auth.json 凭证无效',\n\t\"Read-only credential storage cannot modify auth.json\": \"只读凭证存储无法修改 auth.json\",\n\n\t// ---- 模型目录与压缩(remote-catalog-provider.ts / compaction.ts)----\n\t'Invalid model catalog for provider \"{providerId}\"': '提供商 \"{providerId}\" 的模型目录无效',\n\t\"Model catalog request failed for {providerId}: {status}\": \"提供商 {providerId} 的模型目录请求失败:{status}\",\n\t\"First kept entry has no UUID - session may need migration\": \"首个保留条目没有 UUID——会话可能需要迁移\",\n\n\t// ---- 导出(export-html/index.ts)----\n\t\"Cannot export in-memory session to HTML\": \"无法将内存中的会话导出为 HTML\",\n\t\"Nothing to export yet - start a conversation first\": \"暂无可导出内容——请先开始对话\",\n\n\t// ---- SDK 会话创建与插件装载(sdk.ts / capability-plugin.ts / capability-runtime.ts)----\n\t\"Failed to read capability plugin manifest {path}: {reason}\": \"读取能力插件 manifest 失败 {path}:{reason}\",\n\t\"Failed to inspect capability plugin directory {directory}: {reason}\": \"检查能力插件目录失败 {directory}:{reason}\",\n\t\"Capability plugin path must be a directory: {directory}\": \"能力插件路径必须是目录:{directory}\",\n\t\"Failed to resolve capability plugin directory {directory}: {reason}\": \"解析能力插件目录失败 {directory}:{reason}\",\n\t\"Failed to read capability plugin directory {directory}: {reason}\": \"读取能力插件目录失败 {directory}:{reason}\",\n\t\"Failed to resolve capability plugin manifest {path}: {reason}\": \"解析能力插件 manifest 失败 {path}:{reason}\",\n\t\"Failed to import capability plugin entry {path}: {reason}\": \"导入能力插件入口失败 {path}:{reason}\",\n\t\"Plugin capability is required but unavailable: {capabilityId}@{version} ({pluginId})\":\n\t\t\"必需的插件能力不可用:{capabilityId}@{version}({pluginId})\",\n\t'Session is bound to suite \"{boundSuiteId}\" and cannot resume with \"{suiteId}\"; rerun with --rebind-suite to adopt the new suite, or create a new session':\n\t\t'会话已绑定 suite \"{boundSuiteId}\",无法以 \"{suiteId}\" 恢复;请加 --rebind-suite 重新运行以切换到新 suite,或创建新会话',\n\t\"Session Profile identity drift detected (the active plugin set changed since the conversation started); rerun with --rebind-suite to adopt the new plugin set, or create a new session\":\n\t\t\"检测到会话 Profile 身份漂移(对话开始后生效的插件集发生了变化);请加 --rebind-suite 重新运行以采用新插件集,或创建新会话\",\n\n\t// ---- 包管理与命令执行(package-manager.ts / package-source.ts / package-install-host.ts / config.ts)----\n\t\"Path does not exist: {path}\": \"路径不存在:{path}\",\n\t\"Unsupported install source: {source}\": \"不支持的安装源:{source}\",\n\t\"Unsupported remove source: {source}\": \"不支持的移除源:{source}\",\n\t\"Missing source: {source}\": \"源缺失:{source}\",\n\t\"Empty response from npm view\": \"npm view 返回空响应\",\n\t\"Unexpected response from npm view\": \"npm view 返回意外响应\",\n\t\"Failed to determine remote HEAD\": \"无法确定远端 HEAD\",\n\t\"Unsupported upstream remote: {upstream}\": \"不支持的 upstream 远端:{upstream}\",\n\t\"Missing upstream branch name\": \"缺少 upstream 分支名\",\n\t\"Failed to run {command} {args}: {reason}\": \"执行 {command} {args} 失败:{reason}\",\n\t\"Failed to run {command}: {reason}\": \"执行 {command} 失败:{reason}\",\n\t\"No matching package found for {source}\": \"未找到与 {source} 匹配的包\",\n\t\"No matching package found for {source}. Did you mean {suggestion}?\":\n\t\t\"未找到与 {source} 匹配的包。你是想找 {suggestion} 吗?\",\n\t\"Invalid npmCommand: first array entry must be a non-empty command\": \"无效的 npmCommand:数组第一项必须是非空命令\",\n\n\t// ---- MCP(plugins/mcp-http / agent-session-services.ts)----\n\t\"MCP HTTP transport error: {reason}\": \"MCP HTTP 传输错误:{reason}\",\n\t\"MCP HTTP transport is closed\": \"MCP HTTP 传输已关闭\",\n\t\"MCP HTTP transport returned HTTP {status}\": \"MCP HTTP 传输返回 HTTP {status}\",\n\t\"MCP HTTP transport returned non-JSON body: {reason}\": \"MCP HTTP 传输返回了非 JSON 响应体:{reason}\",\n\t\"MCP error {code}: {message}\": \"MCP 错误 {code}:{message}\",\n\t\"unknown error\": \"未知错误\",\n\t\"MCP tools/list result must contain tools[]\": \"MCP tools/list 结果必须包含 tools[]\",\n\t\"MCP tool requires a non-empty name\": \"MCP 工具必须具有非空名称\",\n\n\t// ---- 插件生态:获取与分发失败表(plugin-acquisition.ts / distribution.ts)----\n\t\"Plugin ref is invalid\": \"插件 ref 无效\",\n\t\"Local plugin ref exists but is neither a directory nor a .zip/.tgz file\":\n\t\t\"本地插件 ref 存在,但既不是目录也不是 .zip/.tgz 文件\",\n\t\"Plugin ref URL scheme is not supported\": \"不支持插件 ref 的 URL 协议\",\n\t\"Plugin ref #sha256 digest fragment is invalid\": \"插件 ref 的 #sha256 摘要片段无效\",\n\t\"Plugin npm package ref is invalid\": \"插件 npm 包 ref 无效\",\n\t\"Plugin package acquisition was cancelled\": \"插件包获取已取消\",\n\t\"Plugin package download failed\": \"插件包下载失败\",\n\t\"Plugin npm package was not found on the registry\": \"注册表中未找到该插件 npm 包\",\n\t\"No npm package version matches the requested range\": \"没有匹配所请求范围的 npm 包版本\",\n\t\"Plugin package bytes do not match the expected digest\": \"插件包字节与预期摘要不匹配\",\n\t\"Plugin package bytes are neither a zip nor a tgz\": \"插件包字节既不是 zip 也不是 tgz\",\n\t\"Plugin package contents are invalid\": \"插件包内容无效\",\n\t\"Plugin package exceeds the configured size budget\": \"插件包超出配置的大小预算\",\n\t\"Plugin release was not found\": \"未找到插件 release\",\n\t\"Plugin release has no .zip/.tgz asset\": \"插件 release 没有 .zip/.tgz 资产\",\n\t\"Plugin release has multiple .zip/.tgz assets\": \"插件 release 有多个 .zip/.tgz 资产\",\n\t\"Plugin release API rate limit was exceeded\": \"插件 release API 超出速率限制\",\n\t\"Plugin distribution is unsupported on this host\": \"此宿主不支持插件分发\",\n\t\"Plugin distribution operation was cancelled\": \"插件分发操作已取消\",\n\t\"Plugin distribution descriptor is invalid\": \"插件分发描述符无效\",\n\t\"Plugin distribution metadata is invalid\": \"插件分发元数据无效\",\n\t\"Plugin distribution artifact handle is invalid\": \"插件分发产物句柄无效\",\n\t\"Plugin distribution source does not match the descriptor\": \"插件分发来源与描述符不匹配\",\n\t\"Plugin distribution plugin identity does not match the descriptor\": \"插件分发的插件身份与描述符不匹配\",\n\t\"Plugin distribution digest does not match the descriptor\": \"插件分发摘要与描述符不匹配\",\n\t\"Plugin distribution signature was rejected\": \"插件分发签名被拒绝\",\n\t\"Plugin distribution descriptor has expired\": \"插件分发描述符已过期\",\n\t\"Plugin distribution size does not match the descriptor\": \"插件分发大小与描述符不匹配\",\n\t\"Plugin distribution media type does not match the descriptor\": \"插件分发媒体类型与描述符不匹配\",\n\t\"Plugin distribution host operation failed\": \"插件分发宿主操作失败\",\n\t\"Plugin distribution artifact release failed\": \"插件分发产物释放失败\",\n\n\t// ---- 插件生态:网络下载与安装店 IO(node-*-source.ts / registry.ts)----\n\t\"npm registry request timed out\": \"npm registry 请求超时\",\n\t\"npm registry request was cancelled\": \"npm registry 请求已取消\",\n\t\"npm registry request failed\": \"npm registry 请求失败\",\n\t\"npm registry rate limit was exceeded\": \"npm registry 速率限制已触发\",\n\t\"npm registry redirect limit exceeded\": \"超出 npm registry 重定向次数上限\",\n\t\"npm package was not found on the registry\": \"注册表中未找到该 npm 包\",\n\t\"npm registry request did not succeed\": \"npm registry 请求未成功\",\n\t\"npm tarball download was cancelled\": \"npm tarball 下载已取消\",\n\t\"npm tarball download did not succeed\": \"npm tarball 下载未成功\",\n\t\"plugin package download was cancelled\": \"插件包下载已取消\",\n\t\"plugin package download timed out\": \"插件包下载超时\",\n\t\"plugin package download failed\": \"插件包下载失败\",\n\t\"plugin package redirect limit exceeded\": \"超出插件包重定向次数上限\",\n\t\"plugin package download did not succeed\": \"插件包下载未成功\",\n\t\"plugin package response has no body\": \"插件包响应没有响应体\",\n\t\"release API request timed out\": \"release API 请求超时\",\n\t\"release API request was cancelled\": \"release API 请求已取消\",\n\t\"release API request failed\": \"release API 请求失败\",\n\t\"repo or release was not found\": \"未找到仓库或 release\",\n\t\"release API request did not succeed\": \"release API 请求未成功\",\n\t\"release API redirect limit exceeded\": \"超出 release API 重定向次数上限\",\n\t\"release asset download was cancelled\": \"release 资产下载已取消\",\n\t\"repo has no published release\": \"仓库没有已发布的 release\",\n\t\"Plugin registry request failed\": \"插件注册表请求失败\",\n\t\"Plugin registry request was cancelled\": \"插件注册表请求已取消\",\n\t\"Plugin registry request timed out\": \"插件注册表请求超时\",\n\t\"Disk registry source read was cancelled\": \"磁盘注册表源读取已取消\",\n\t\"Install store index could not be read\": \"无法读取安装店索引\",\n\t\"Installed plugin manifest could not be read\": \"无法读取已安装插件的 manifest\",\n\t\"Plugin registry operation was cancelled\": \"插件注册表操作已取消\",\n\t\"only toggles the enabled flag; the record lifecycle is {lifecycle} and the runtime will not load it\":\n\t\t\"仅切换 enabled 标志;该记录 lifecycle 为 {lifecycle},运行时不会加载\",\n\n\t// --- provider-composer.ts OAuth 手动输码 ---\n\t\"Paste the authorization code\": \"请粘贴授权码\",\n};\n"]}
|
package/dist/core/sdk.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { type ResolvedAgentProfileV1 } from "../profiles/resolved-agent-profile.
|
|
|
11
11
|
import { AgentSession } from "./agent-session.ts";
|
|
12
12
|
import { type CreateAgentSessionRuntimeFactory } from "./agent-session-runtime.ts";
|
|
13
13
|
import type { AgentTaskSettledEventDataV1 } from "./extensions/bootstrap-lifecycle.ts";
|
|
14
|
-
import type { AgentCompositionAPI, AgentTaskAdapter, InteractionHostV1, PluginRejection, SessionAPI } from "./extensions/index.ts";
|
|
14
|
+
import type { AgentCompositionAPI, AgentTaskAdapter, InteractionHostV1, PluginConfig, PluginRejection, SessionAPI } from "./extensions/index.ts";
|
|
15
15
|
import type { SubagentCommunicationWiringV1 } from "./extensions/public-api.ts";
|
|
16
16
|
import { type CodingAgentFacadeV1 } from "./facade/coding-agent-facade.ts";
|
|
17
17
|
import { type CodingAgentRuntimeFacadeV1 } from "./facade/coding-agent-runtime-facade.ts";
|
|
@@ -21,7 +21,6 @@ import type { ResourceLoader } from "./resource-loader.ts";
|
|
|
21
21
|
import { SessionManager } from "./session-manager.ts";
|
|
22
22
|
import type { SessionStartMetadata } from "./session-start.ts";
|
|
23
23
|
import { SettingsManager } from "./settings-manager.ts";
|
|
24
|
-
import { createBashTool, createCodingTools, createEditTool, createFindTool, createGrepTool, createLsTool, createPowerShellTool, createReadOnlyTools, createReadTool, createWriteTool, withFileMutationQueue } from "./tools/index.ts";
|
|
25
24
|
import type { ToolDefinition } from "./tools/tool-definition.ts";
|
|
26
25
|
/**
|
|
27
26
|
* One background-delegation settlement line as written by the delegate's
|
|
@@ -143,6 +142,14 @@ export interface CreateAgentSessionOptions {
|
|
|
143
142
|
* one suite diagnostic.
|
|
144
143
|
*/
|
|
145
144
|
installedCapabilityPlugins?: readonly InstalledCapabilityPluginV1[];
|
|
145
|
+
/**
|
|
146
|
+
* Per-plugin manifest config overrides keyed by plugin id (D-082 批 1):
|
|
147
|
+
* when the assembler loads a manifest whose id has an entry here, the value
|
|
148
|
+
* merges into that plugin's `configOverride` — host-injected assembly facts
|
|
149
|
+
* first, these values win per top-level key, and the plugin-side agent-dir
|
|
150
|
+
* config file still merges above everything inside the plugin entry.
|
|
151
|
+
*/
|
|
152
|
+
capabilityPluginConfigs?: Record<string, PluginConfig>;
|
|
146
153
|
/** Optional host-owned AgentDefinition/AgentInstance composition facade. */
|
|
147
154
|
agentComposition?: AgentCompositionAPI;
|
|
148
155
|
/** Optional host adapter for cancellable interaction tasks (interaction capability). */
|
|
@@ -306,8 +313,8 @@ export type { PromptTemplate } from "./prompt-templates.ts";
|
|
|
306
313
|
export type { Skill } from "./skills.ts";
|
|
307
314
|
export type { SlashCommandInfo, SlashCommandSource } from "./slash-commands.ts";
|
|
308
315
|
export type { Tool } from "./tools/index.ts";
|
|
316
|
+
export { withFileMutationQueue } from "./tools/index.ts";
|
|
309
317
|
export type { ToolDefinition, ToolInfo, ToolRenderContext, ToolRenderResultOptions } from "./tools/tool-definition.ts";
|
|
310
|
-
export { withFileMutationQueue, createCodingTools, createReadOnlyTools, createReadTool, createBashTool, createEditTool, createWriteTool, createGrepTool, createFindTool, createLsTool, createPowerShellTool, };
|
|
311
318
|
/**
|
|
312
319
|
* Create an AgentSession with the specified options.
|
|
313
320
|
*
|