@ai-agent-forge/agent-forge 0.85.0
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 +5969 -0
- package/README.md +629 -0
- package/dist/artifacts/artifact-store.d.ts +51 -0
- package/dist/artifacts/artifact-store.d.ts.map +1 -0
- package/dist/artifacts/artifact-store.js +87 -0
- package/dist/artifacts/artifact-store.js.map +1 -0
- package/dist/artifacts/paged-read.d.ts +51 -0
- package/dist/artifacts/paged-read.d.ts.map +1 -0
- package/dist/artifacts/paged-read.js +55 -0
- package/dist/artifacts/paged-read.js.map +1 -0
- package/dist/bun/cli.d.ts +3 -0
- package/dist/bun/cli.d.ts.map +1 -0
- package/dist/bun/cli.js +11 -0
- package/dist/bun/cli.js.map +1 -0
- package/dist/bun/register-bedrock.d.ts +2 -0
- package/dist/bun/register-bedrock.d.ts.map +1 -0
- package/dist/bun/register-bedrock.js +4 -0
- package/dist/bun/register-bedrock.js.map +1 -0
- package/dist/bun/restore-sandbox-env.d.ts +17 -0
- package/dist/bun/restore-sandbox-env.d.ts.map +1 -0
- package/dist/bun/restore-sandbox-env.js +36 -0
- package/dist/bun/restore-sandbox-env.js.map +1 -0
- package/dist/bundle/.build-manifest.json +3566 -0
- package/dist/bundle/chunks/anthropic-messages-RJYU4TCY.js +6 -0
- package/dist/bundle/chunks/anthropic.js +75 -0
- package/dist/bundle/chunks/azure-openai-responses-LESTCUL7.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +78 -0
- package/dist/bundle/chunks/chunk-3QKHSPQL.js +8 -0
- package/dist/bundle/chunks/chunk-4L3WN2XY.js +2 -0
- package/dist/bundle/chunks/chunk-4NKZMFSZ.js +1579 -0
- package/dist/bundle/chunks/chunk-6CYCI3EJ.js +12 -0
- package/dist/bundle/chunks/chunk-6R7UI4IY.js +2 -0
- package/dist/bundle/chunks/chunk-7ZC4UXSL.js +2 -0
- package/dist/bundle/chunks/chunk-7ZY7IXZD.js +4 -0
- package/dist/bundle/chunks/chunk-DRQDKNXA.js +2 -0
- package/dist/bundle/chunks/chunk-DTD7JQ7Y.js +42 -0
- package/dist/bundle/chunks/chunk-EWXX34QG.js +2 -0
- package/dist/bundle/chunks/chunk-GMWCTUPB.js +2 -0
- package/dist/bundle/chunks/chunk-JUUC5AZY.js +2 -0
- package/dist/bundle/chunks/chunk-KQEGUM34.js +2 -0
- package/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
- package/dist/bundle/chunks/chunk-MDOTREMR.js +11 -0
- package/dist/bundle/chunks/chunk-NUHFSC37.js +25 -0
- package/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
- package/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
- package/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
- package/dist/bundle/chunks/chunk-SER2HCLE.js +38 -0
- package/dist/bundle/chunks/chunk-TEPMHNKQ.js +2 -0
- package/dist/bundle/chunks/chunk-V46XUTK3.js +2 -0
- package/dist/bundle/chunks/chunk-WGLBM2BP.js +2 -0
- package/dist/bundle/chunks/chunk-WW3LMV3F.js +2 -0
- package/dist/bundle/chunks/chunk-XDUWOHPL.js +6 -0
- package/dist/bundle/chunks/github-copilot.js +2 -0
- package/dist/bundle/chunks/google-generative-ai-NZ66X6K7.js +2 -0
- package/dist/bundle/chunks/google-vertex-2ZZOFBNQ.js +2 -0
- package/dist/bundle/chunks/https-proxy-agent-UDEHOBGS.js +13 -0
- package/dist/bundle/chunks/image-resize-worker.js +2 -0
- package/dist/bundle/chunks/kimi-coding.js +2 -0
- package/dist/bundle/chunks/lib-HGQMNYVT.js +9 -0
- package/dist/bundle/chunks/mistral-conversations-B6DZRMEK.js +5 -0
- package/dist/bundle/chunks/multipart-parser-SQ6GDJL7.js +3 -0
- package/dist/bundle/chunks/node-O3RIBJRH.js +16 -0
- package/dist/bundle/chunks/node-TWVVAGPO.js +2 -0
- package/dist/bundle/chunks/openai-codex-responses-UFH6O5K6.js +10 -0
- package/dist/bundle/chunks/openai-codex.js +75 -0
- package/dist/bundle/chunks/openai-completions-A55GHA4O.js +7 -0
- package/dist/bundle/chunks/openai-responses-TJLXRAXR.js +2 -0
- package/dist/bundle/chunks/openrouter-images-G3GT5BVT.js +2 -0
- package/dist/bundle/chunks/openrouter.js +75 -0
- package/dist/bundle/chunks/pi-messages-SLF355GF.js +8 -0
- package/dist/bundle/chunks/radius.js +75 -0
- package/dist/bundle/chunks/src-UK77SYZE.js +4 -0
- package/dist/bundle/chunks/xai.js +2 -0
- package/dist/bundle/cli.js +3 -0
- package/dist/bundle/client.js +2 -0
- package/dist/bundle/index.js +8 -0
- package/dist/bundle/rpc-entry.js +3 -0
- package/dist/capabilities/builtin.d.ts +46 -0
- package/dist/capabilities/builtin.d.ts.map +1 -0
- package/dist/capabilities/builtin.js +68 -0
- package/dist/capabilities/builtin.js.map +1 -0
- package/dist/cli/args.d.ts +102 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +712 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/auth-check.d.ts +19 -0
- package/dist/cli/auth-check.d.ts.map +1 -0
- package/dist/cli/auth-check.js +50 -0
- package/dist/cli/auth-check.js.map +1 -0
- package/dist/cli/auth-command.d.ts +24 -0
- package/dist/cli/auth-command.d.ts.map +1 -0
- package/dist/cli/auth-command.js +102 -0
- package/dist/cli/auth-command.js.map +1 -0
- package/dist/cli/config-selector.d.ts +23 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +51 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/credential-print.d.ts +13 -0
- package/dist/cli/credential-print.d.ts.map +1 -0
- package/dist/cli/credential-print.js +76 -0
- package/dist/cli/credential-print.js.map +1 -0
- package/dist/cli/experimental/auth.d.ts +16 -0
- package/dist/cli/experimental/auth.d.ts.map +1 -0
- package/dist/cli/experimental/auth.js +13 -0
- package/dist/cli/experimental/auth.js.map +1 -0
- package/dist/cli/experimental/cli.d.ts +6 -0
- package/dist/cli/experimental/cli.d.ts.map +1 -0
- package/dist/cli/experimental/cli.js +5 -0
- package/dist/cli/experimental/cli.js.map +1 -0
- package/dist/cli/experimental/command-options.d.ts +17 -0
- package/dist/cli/experimental/command-options.d.ts.map +1 -0
- package/dist/cli/experimental/command-options.js +35 -0
- package/dist/cli/experimental/command-options.js.map +1 -0
- package/dist/cli/experimental/command.d.ts +63 -0
- package/dist/cli/experimental/command.d.ts.map +1 -0
- package/dist/cli/experimental/command.js +130 -0
- package/dist/cli/experimental/command.js.map +1 -0
- package/dist/cli/experimental/commands/client.d.ts +13 -0
- package/dist/cli/experimental/commands/client.d.ts.map +1 -0
- package/dist/cli/experimental/commands/client.js +25 -0
- package/dist/cli/experimental/commands/client.js.map +1 -0
- package/dist/cli/experimental/commands/pi.d.ts +15 -0
- package/dist/cli/experimental/commands/pi.d.ts.map +1 -0
- package/dist/cli/experimental/commands/pi.js +26 -0
- package/dist/cli/experimental/commands/pi.js.map +1 -0
- package/dist/cli/experimental/commands/server.d.ts +13 -0
- package/dist/cli/experimental/commands/server.d.ts.map +1 -0
- package/dist/cli/experimental/commands/server.js +25 -0
- package/dist/cli/experimental/commands/server.js.map +1 -0
- package/dist/cli/experimental/transport-address.d.ts +10 -0
- package/dist/cli/experimental/transport-address.d.ts.map +1 -0
- package/dist/cli/experimental/transport-address.js +38 -0
- package/dist/cli/experimental/transport-address.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +71 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/initial-message.d.ts +18 -0
- package/dist/cli/initial-message.d.ts.map +1 -0
- package/dist/cli/initial-message.js +22 -0
- package/dist/cli/initial-message.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +98 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/plugin-command.d.ts +50 -0
- package/dist/cli/plugin-command.d.ts.map +1 -0
- package/dist/cli/plugin-command.js +85 -0
- package/dist/cli/plugin-command.js.map +1 -0
- package/dist/cli/plugin-manager-controller.d.ts +59 -0
- package/dist/cli/plugin-manager-controller.d.ts.map +1 -0
- package/dist/cli/plugin-manager-controller.js +183 -0
- package/dist/cli/plugin-manager-controller.js.map +1 -0
- package/dist/cli/plugin-selection-controller.d.ts +57 -0
- package/dist/cli/plugin-selection-controller.d.ts.map +1 -0
- package/dist/cli/plugin-selection-controller.js +159 -0
- package/dist/cli/plugin-selection-controller.js.map +1 -0
- package/dist/cli/serve.d.ts +39 -0
- package/dist/cli/serve.d.ts.map +1 -0
- package/dist/cli/serve.js +124 -0
- package/dist/cli/serve.js.map +1 -0
- package/dist/cli/session-picker.d.ts +30 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +62 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli/startup-ui.d.ts +20 -0
- package/dist/cli/startup-ui.d.ts.map +1 -0
- package/dist/cli/startup-ui.js +185 -0
- package/dist/cli/startup-ui.js.map +1 -0
- package/dist/cli/trace-view.d.ts +86 -0
- package/dist/cli/trace-view.d.ts.map +1 -0
- package/dist/cli/trace-view.js +263 -0
- package/dist/cli/trace-view.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +19 -0
- package/dist/cli.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/remote-session.d.ts +53 -0
- package/dist/client/remote-session.d.ts.map +1 -0
- package/dist/client/remote-session.js +340 -0
- package/dist/client/remote-session.js.map +1 -0
- package/dist/client/transcript.d.ts +12 -0
- package/dist/client/transcript.d.ts.map +1 -0
- package/dist/client/transcript.js +98 -0
- package/dist/client/transcript.js.map +1 -0
- package/dist/config.d.ts +95 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +459 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-capability-contract.d.ts +322 -0
- package/dist/core/agent-capability-contract.d.ts.map +1 -0
- package/dist/core/agent-capability-contract.js +1154 -0
- package/dist/core/agent-capability-contract.js.map +1 -0
- package/dist/core/agent-session-bash.d.ts +51 -0
- package/dist/core/agent-session-bash.d.ts.map +1 -0
- package/dist/core/agent-session-bash.js +138 -0
- package/dist/core/agent-session-bash.js.map +1 -0
- package/dist/core/agent-session-compaction.d.ts +188 -0
- package/dist/core/agent-session-compaction.d.ts.map +1 -0
- package/dist/core/agent-session-compaction.js +1071 -0
- package/dist/core/agent-session-compaction.js.map +1 -0
- package/dist/core/agent-session-context.d.ts +43 -0
- package/dist/core/agent-session-context.d.ts.map +1 -0
- package/dist/core/agent-session-context.js +170 -0
- package/dist/core/agent-session-context.js.map +1 -0
- package/dist/core/agent-session-extensions.d.ts +30 -0
- package/dist/core/agent-session-extensions.d.ts.map +1 -0
- package/dist/core/agent-session-extensions.js +74 -0
- package/dist/core/agent-session-extensions.js.map +1 -0
- package/dist/core/agent-session-internal.d.ts +290 -0
- package/dist/core/agent-session-internal.d.ts.map +1 -0
- package/dist/core/agent-session-internal.js +40 -0
- package/dist/core/agent-session-internal.js.map +1 -0
- package/dist/core/agent-session-lifecycle.d.ts +242 -0
- package/dist/core/agent-session-lifecycle.d.ts.map +1 -0
- package/dist/core/agent-session-lifecycle.js +699 -0
- package/dist/core/agent-session-lifecycle.js.map +1 -0
- package/dist/core/agent-session-loop-runner.d.ts +52 -0
- package/dist/core/agent-session-loop-runner.d.ts.map +1 -0
- package/dist/core/agent-session-loop-runner.js +168 -0
- package/dist/core/agent-session-loop-runner.js.map +1 -0
- package/dist/core/agent-session-loop.d.ts +39 -0
- package/dist/core/agent-session-loop.d.ts.map +1 -0
- package/dist/core/agent-session-loop.js +155 -0
- package/dist/core/agent-session-loop.js.map +1 -0
- package/dist/core/agent-session-model.d.ts +49 -0
- package/dist/core/agent-session-model.d.ts.map +1 -0
- package/dist/core/agent-session-model.js +155 -0
- package/dist/core/agent-session-model.js.map +1 -0
- package/dist/core/agent-session-paths.d.ts +3 -0
- package/dist/core/agent-session-paths.d.ts.map +1 -0
- package/dist/core/agent-session-paths.js +14 -0
- package/dist/core/agent-session-paths.js.map +1 -0
- package/dist/core/agent-session-projection.d.ts +53 -0
- package/dist/core/agent-session-projection.d.ts.map +1 -0
- package/dist/core/agent-session-projection.js +195 -0
- package/dist/core/agent-session-projection.js.map +1 -0
- package/dist/core/agent-session-retry.d.ts +28 -0
- package/dist/core/agent-session-retry.d.ts.map +1 -0
- package/dist/core/agent-session-retry.js +141 -0
- package/dist/core/agent-session-retry.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +181 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -0
- package/dist/core/agent-session-runtime.js +297 -0
- package/dist/core/agent-session-runtime.js.map +1 -0
- package/dist/core/agent-session-services.d.ts +281 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +680 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session-store.d.ts +47 -0
- package/dist/core/agent-session-store.d.ts.map +1 -0
- package/dist/core/agent-session-store.js +155 -0
- package/dist/core/agent-session-store.js.map +1 -0
- package/dist/core/agent-session-tools.d.ts +36 -0
- package/dist/core/agent-session-tools.d.ts.map +1 -0
- package/dist/core/agent-session-tools.js +305 -0
- package/dist/core/agent-session-tools.js.map +1 -0
- package/dist/core/agent-session.d.ts +1156 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +2550 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-guidance.d.ts +5 -0
- package/dist/core/auth-guidance.d.ts.map +1 -0
- package/dist/core/auth-guidance.js +21 -0
- package/dist/core/auth-guidance.js.map +1 -0
- package/dist/core/auth-storage.d.ts +72 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +426 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +32 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +111 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/cache-stats.d.ts +49 -0
- package/dist/core/cache-stats.d.ts.map +1 -0
- package/dist/core/cache-stats.js +101 -0
- package/dist/core/cache-stats.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +88 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +220 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +178 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +608 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +49 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +170 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/defaults.d.ts +4 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +11 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/embedded-sdk.d.ts +96 -0
- package/dist/core/embedded-sdk.d.ts.map +1 -0
- package/dist/core/embedded-sdk.js +395 -0
- package/dist/core/embedded-sdk.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +29 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +75 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/experimental.d.ts +2 -0
- package/dist/core/experimental.d.ts.map +1 -0
- package/dist/core/experimental.js +6 -0
- package/dist/core/experimental.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +226 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1066 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1864 -0
- package/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +108 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +78 -0
- package/dist/core/extensions/agent-composition.d.ts +67 -0
- package/dist/core/extensions/agent-composition.d.ts.map +1 -0
- package/dist/core/extensions/agent-composition.js +785 -0
- package/dist/core/extensions/agent-composition.js.map +1 -0
- package/dist/core/extensions/bootstrap-agent-loop.d.ts +203 -0
- package/dist/core/extensions/bootstrap-agent-loop.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-agent-loop.js +565 -0
- package/dist/core/extensions/bootstrap-agent-loop.js.map +1 -0
- package/dist/core/extensions/bootstrap-branch-summary-policy.d.ts +7 -0
- package/dist/core/extensions/bootstrap-branch-summary-policy.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-branch-summary-policy.js +28 -0
- package/dist/core/extensions/bootstrap-branch-summary-policy.js.map +1 -0
- package/dist/core/extensions/bootstrap-compaction-policy.d.ts +7 -0
- package/dist/core/extensions/bootstrap-compaction-policy.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-compaction-policy.js +81 -0
- package/dist/core/extensions/bootstrap-compaction-policy.js.map +1 -0
- package/dist/core/extensions/bootstrap-lifecycle.d.ts +26 -0
- package/dist/core/extensions/bootstrap-lifecycle.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-lifecycle.js +181 -0
- package/dist/core/extensions/bootstrap-lifecycle.js.map +1 -0
- package/dist/core/extensions/bootstrap-overflow-policy.d.ts +7 -0
- package/dist/core/extensions/bootstrap-overflow-policy.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-overflow-policy.js +29 -0
- package/dist/core/extensions/bootstrap-overflow-policy.js.map +1 -0
- package/dist/core/extensions/bootstrap-retry-policy.d.ts +7 -0
- package/dist/core/extensions/bootstrap-retry-policy.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-retry-policy.js +28 -0
- package/dist/core/extensions/bootstrap-retry-policy.js.map +1 -0
- package/dist/core/extensions/bootstrap-skills.d.ts +16 -0
- package/dist/core/extensions/bootstrap-skills.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-skills.js +119 -0
- package/dist/core/extensions/bootstrap-skills.js.map +1 -0
- package/dist/core/extensions/bootstrap-tools.d.ts +20 -0
- package/dist/core/extensions/bootstrap-tools.d.ts.map +1 -0
- package/dist/core/extensions/bootstrap-tools.js +35 -0
- package/dist/core/extensions/bootstrap-tools.js.map +1 -0
- package/dist/core/extensions/capability-exports.d.ts +5 -0
- package/dist/core/extensions/capability-exports.d.ts.map +1 -0
- package/dist/core/extensions/capability-exports.js +4 -0
- package/dist/core/extensions/capability-exports.js.map +1 -0
- package/dist/core/extensions/capability-plugin.d.ts +69 -0
- package/dist/core/extensions/capability-plugin.d.ts.map +1 -0
- package/dist/core/extensions/capability-plugin.js +485 -0
- package/dist/core/extensions/capability-plugin.js.map +1 -0
- package/dist/core/extensions/capability-runtime-events.d.ts +22 -0
- package/dist/core/extensions/capability-runtime-events.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-events.js +381 -0
- package/dist/core/extensions/capability-runtime-events.js.map +1 -0
- package/dist/core/extensions/capability-runtime-guards.d.ts +93 -0
- package/dist/core/extensions/capability-runtime-guards.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-guards.js +800 -0
- package/dist/core/extensions/capability-runtime-guards.js.map +1 -0
- package/dist/core/extensions/capability-runtime-inspect.d.ts +12 -0
- package/dist/core/extensions/capability-runtime-inspect.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-inspect.js +106 -0
- package/dist/core/extensions/capability-runtime-inspect.js.map +1 -0
- package/dist/core/extensions/capability-runtime-manifest.d.ts +19 -0
- package/dist/core/extensions/capability-runtime-manifest.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-manifest.js +218 -0
- package/dist/core/extensions/capability-runtime-manifest.js.map +1 -0
- package/dist/core/extensions/capability-runtime-operation.d.ts +26 -0
- package/dist/core/extensions/capability-runtime-operation.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-operation.js +88 -0
- package/dist/core/extensions/capability-runtime-operation.js.map +1 -0
- package/dist/core/extensions/capability-runtime-snapshot.d.ts +11 -0
- package/dist/core/extensions/capability-runtime-snapshot.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-snapshot.js +81 -0
- package/dist/core/extensions/capability-runtime-snapshot.js.map +1 -0
- package/dist/core/extensions/capability-runtime-store.d.ts +34 -0
- package/dist/core/extensions/capability-runtime-store.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-store.js +153 -0
- package/dist/core/extensions/capability-runtime-store.js.map +1 -0
- package/dist/core/extensions/capability-runtime-tool.d.ts +10 -0
- package/dist/core/extensions/capability-runtime-tool.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-tool.js +10 -0
- package/dist/core/extensions/capability-runtime-tool.js.map +1 -0
- package/dist/core/extensions/capability-runtime-types.d.ts +303 -0
- package/dist/core/extensions/capability-runtime-types.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-types.js +2 -0
- package/dist/core/extensions/capability-runtime-types.js.map +1 -0
- package/dist/core/extensions/capability-runtime-validation.d.ts +35 -0
- package/dist/core/extensions/capability-runtime-validation.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime-validation.js +380 -0
- package/dist/core/extensions/capability-runtime-validation.js.map +1 -0
- package/dist/core/extensions/capability-runtime.d.ts +7 -0
- package/dist/core/extensions/capability-runtime.d.ts.map +1 -0
- package/dist/core/extensions/capability-runtime.js +2170 -0
- package/dist/core/extensions/capability-runtime.js.map +1 -0
- package/dist/core/extensions/compaction-memory-failure-mode.d.ts +43 -0
- package/dist/core/extensions/compaction-memory-failure-mode.d.ts.map +1 -0
- package/dist/core/extensions/compaction-memory-failure-mode.js +31 -0
- package/dist/core/extensions/compaction-memory-failure-mode.js.map +1 -0
- package/dist/core/extensions/context-strategy-binding.d.ts +12 -0
- package/dist/core/extensions/context-strategy-binding.d.ts.map +1 -0
- package/dist/core/extensions/context-strategy-binding.js +54 -0
- package/dist/core/extensions/context-strategy-binding.js.map +1 -0
- package/dist/core/extensions/index.d.ts +19 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +18 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/lifecycle-catalog.d.ts +584 -0
- package/dist/core/extensions/lifecycle-catalog.d.ts.map +1 -0
- package/dist/core/extensions/lifecycle-catalog.js +1903 -0
- package/dist/core/extensions/lifecycle-catalog.js.map +1 -0
- package/dist/core/extensions/lifecycle-delivery-queue.d.ts +48 -0
- package/dist/core/extensions/lifecycle-delivery-queue.d.ts.map +1 -0
- package/dist/core/extensions/lifecycle-delivery-queue.js +164 -0
- package/dist/core/extensions/lifecycle-delivery-queue.js.map +1 -0
- package/dist/core/extensions/microcompact.d.ts +71 -0
- package/dist/core/extensions/microcompact.d.ts.map +1 -0
- package/dist/core/extensions/microcompact.js +123 -0
- package/dist/core/extensions/microcompact.js.map +1 -0
- package/dist/core/extensions/public-api.d.ts +10 -0
- package/dist/core/extensions/public-api.d.ts.map +1 -0
- package/dist/core/extensions/public-api.js +9 -0
- package/dist/core/extensions/public-api.js.map +1 -0
- package/dist/core/facade/coding-agent-facade.d.ts +338 -0
- package/dist/core/facade/coding-agent-facade.d.ts.map +1 -0
- package/dist/core/facade/coding-agent-facade.js +115 -0
- package/dist/core/facade/coding-agent-facade.js.map +1 -0
- package/dist/core/facade/coding-agent-runtime-facade.d.ts +115 -0
- package/dist/core/facade/coding-agent-runtime-facade.d.ts.map +1 -0
- package/dist/core/facade/coding-agent-runtime-facade.js +63 -0
- package/dist/core/facade/coding-agent-runtime-facade.js.map +1 -0
- package/dist/core/facade/index.d.ts +6 -0
- package/dist/core/facade/index.d.ts.map +1 -0
- package/dist/core/facade/index.js +3 -0
- package/dist/core/facade/index.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +57 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +323 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/http-dispatcher.d.ts +22 -0
- package/dist/core/http-dispatcher.d.ts.map +1 -0
- package/dist/core/http-dispatcher.js +98 -0
- package/dist/core/http-dispatcher.js.map +1 -0
- package/dist/core/index.d.ts +19 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +13 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/input-source.d.ts +9 -0
- package/dist/core/input-source.d.ts.map +1 -0
- package/dist/core/input-source.js +2 -0
- package/dist/core/input-source.js.map +1 -0
- package/dist/core/keybindings.d.ts +442 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +329 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/logger.d.ts +107 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +246 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/messages.d.ts +85 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +146 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-config.d.ts +586 -0
- package/dist/core/model-config.d.ts.map +1 -0
- package/dist/core/model-config.js +258 -0
- package/dist/core/model-config.js.map +1 -0
- package/dist/core/model-registry.d.ts +49 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +115 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +124 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +590 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/model-runtime.d.ts +100 -0
- package/dist/core/model-runtime.d.ts.map +1 -0
- package/dist/core/model-runtime.js +598 -0
- package/dist/core/model-runtime.js.map +1 -0
- package/dist/core/models-store.d.ts +22 -0
- package/dist/core/models-store.d.ts.map +1 -0
- package/dist/core/models-store.js +115 -0
- package/dist/core/models-store.js.map +1 -0
- package/dist/core/output-guard.d.ts +7 -0
- package/dist/core/output-guard.d.ts.map +1 -0
- package/dist/core/output-guard.js +90 -0
- package/dist/core/output-guard.js.map +1 -0
- package/dist/core/package-install-host.d.ts +23 -0
- package/dist/core/package-install-host.d.ts.map +1 -0
- package/dist/core/package-install-host.js +202 -0
- package/dist/core/package-install-host.js.map +1 -0
- package/dist/core/package-manager.d.ts +93 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +947 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/package-process-runner.d.ts +4 -0
- package/dist/core/package-process-runner.d.ts.map +1 -0
- package/dist/core/package-process-runner.js +47 -0
- package/dist/core/package-process-runner.js.map +1 -0
- package/dist/core/package-resource-collection.d.ts +16 -0
- package/dist/core/package-resource-collection.d.ts.map +1 -0
- package/dist/core/package-resource-collection.js +300 -0
- package/dist/core/package-resource-collection.js.map +1 -0
- package/dist/core/package-resource-discovery.d.ts +33 -0
- package/dist/core/package-resource-discovery.d.ts.map +1 -0
- package/dist/core/package-resource-discovery.js +449 -0
- package/dist/core/package-resource-discovery.js.map +1 -0
- package/dist/core/package-source.d.ts +157 -0
- package/dist/core/package-source.d.ts.map +1 -0
- package/dist/core/package-source.js +179 -0
- package/dist/core/package-source.js.map +1 -0
- package/dist/core/pi-manifest.d.ts +7 -0
- package/dist/core/pi-manifest.d.ts.map +1 -0
- package/dist/core/pi-manifest.js +26 -0
- package/dist/core/pi-manifest.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +54 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +236 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/provider-composer.d.ts +58 -0
- package/dist/core/provider-composer.d.ts.map +1 -0
- package/dist/core/provider-composer.js +403 -0
- package/dist/core/provider-composer.js.map +1 -0
- package/dist/core/radius.d.ts +2 -0
- package/dist/core/radius.d.ts.map +1 -0
- package/dist/core/radius.js +2 -0
- package/dist/core/radius.js.map +1 -0
- package/dist/core/remote-catalog-provider.d.ts +5 -0
- package/dist/core/remote-catalog-provider.d.ts.map +1 -0
- package/dist/core/remote-catalog-provider.js +121 -0
- package/dist/core/remote-catalog-provider.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +30 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +247 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +211 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +687 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/runtime-credentials.d.ts +15 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -0
- package/dist/core/runtime-credentials.js +39 -0
- package/dist/core/runtime-credentials.js.map +1 -0
- package/dist/core/sdk.d.ts +395 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +1112 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/session-cwd.d.ts +19 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +38 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-export.d.ts +7 -0
- package/dist/core/session-export.d.ts.map +1 -0
- package/dist/core/session-export.js +48 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-manager.d.ts +463 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1583 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/session-start.d.ts +12 -0
- package/dist/core/session-start.d.ts.map +1 -0
- package/dist/core/session-start.js +2 -0
- package/dist/core/session-start.js.map +1 -0
- package/dist/core/session-storage.d.ts +130 -0
- package/dist/core/session-storage.d.ts.map +1 -0
- package/dist/core/session-storage.js +386 -0
- package/dist/core/session-storage.js.map +1 -0
- package/dist/core/settings-diagnostics.d.ts +9 -0
- package/dist/core/settings-diagnostics.d.ts.map +1 -0
- package/dist/core/settings-diagnostics.js +21 -0
- package/dist/core/settings-diagnostics.js.map +1 -0
- package/dist/core/settings-manager.d.ts +352 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +987 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/skills.d.ts +60 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +382 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +15 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +33 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/source-info.d.ts +18 -0
- package/dist/core/source-info.d.ts.map +1 -0
- package/dist/core/source-info.js +19 -0
- package/dist/core/source-info.js.map +1 -0
- package/dist/core/system-prompt.d.ts +8 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +137 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/timings.d.ts +11 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +46 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +87 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +409 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +110 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +425 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +55 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +305 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-queue.js +52 -0
- package/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/core/tools/find.d.ts +42 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +303 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +41 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +309 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +44 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +129 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +41 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +173 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/output-accumulator.d.ts +52 -0
- package/dist/core/tools/output-accumulator.d.ts.map +1 -0
- package/dist/core/tools/output-accumulator.js +184 -0
- package/dist/core/tools/output-accumulator.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +10 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +99 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/powershell.d.ts +16 -0
- package/dist/core/tools/powershell.d.ts.map +1 -0
- package/dist/core/tools/powershell.js +39 -0
- package/dist/core/tools/powershell.js.map +1 -0
- package/dist/core/tools/read.d.ts +39 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +282 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/render-utils.d.ts +24 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -0
- package/dist/core/tools/render-utils.js +65 -0
- package/dist/core/tools/render-utils.js.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +15 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.js +36 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/core/tools/tool-definition.d.ts +123 -0
- package/dist/core/tools/tool-definition.d.ts.map +1 -0
- package/dist/core/tools/tool-definition.js +20 -0
- package/dist/core/tools/tool-definition.js.map +1 -0
- package/dist/core/tools/tool-search.d.ts +30 -0
- package/dist/core/tools/tool-search.d.ts.map +1 -0
- package/dist/core/tools/tool-search.js +99 -0
- package/dist/core/tools/tool-search.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +70 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +215 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/write.d.ts +30 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +202 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/core/trace-retention.d.ts +19 -0
- package/dist/core/trace-retention.d.ts.map +1 -0
- package/dist/core/trace-retention.js +91 -0
- package/dist/core/trace-retention.js.map +1 -0
- package/dist/core/usage-totals.d.ts +21 -0
- package/dist/core/usage-totals.d.ts.map +1 -0
- package/dist/core/usage-totals.js +53 -0
- package/dist/core/usage-totals.js.map +1 -0
- package/dist/durable/durable-service.d.ts +136 -0
- package/dist/durable/durable-service.d.ts.map +1 -0
- package/dist/durable/durable-service.js +710 -0
- package/dist/durable/durable-service.js.map +1 -0
- package/dist/e2e/stdio-launcher.d.ts +25 -0
- package/dist/e2e/stdio-launcher.d.ts.map +1 -0
- package/dist/e2e/stdio-launcher.js +244 -0
- package/dist/e2e/stdio-launcher.js.map +1 -0
- package/dist/host/agent-retry-scheduler.d.ts +65 -0
- package/dist/host/agent-retry-scheduler.d.ts.map +1 -0
- package/dist/host/agent-retry-scheduler.js +52 -0
- package/dist/host/agent-retry-scheduler.js.map +1 -0
- package/dist/host/auto-compaction.d.ts +56 -0
- package/dist/host/auto-compaction.d.ts.map +1 -0
- package/dist/host/auto-compaction.js +62 -0
- package/dist/host/auto-compaction.js.map +1 -0
- package/dist/host/branch-reload.d.ts +56 -0
- package/dist/host/branch-reload.d.ts.map +1 -0
- package/dist/host/branch-reload.js +39 -0
- package/dist/host/branch-reload.js.map +1 -0
- package/dist/host/channel-adapter.d.ts +25 -0
- package/dist/host/channel-adapter.d.ts.map +1 -0
- package/dist/host/channel-adapter.js +45 -0
- package/dist/host/channel-adapter.js.map +1 -0
- package/dist/host/checkpoint-commit.d.ts +74 -0
- package/dist/host/checkpoint-commit.d.ts.map +1 -0
- package/dist/host/checkpoint-commit.js +76 -0
- package/dist/host/checkpoint-commit.js.map +1 -0
- package/dist/host/manual-compaction.d.ts +43 -0
- package/dist/host/manual-compaction.d.ts.map +1 -0
- package/dist/host/manual-compaction.js +63 -0
- package/dist/host/manual-compaction.js.map +1 -0
- package/dist/host/output-projection.d.ts +61 -0
- package/dist/host/output-projection.d.ts.map +1 -0
- package/dist/host/output-projection.js +74 -0
- package/dist/host/output-projection.js.map +1 -0
- package/dist/host/output-reducer.d.ts +43 -0
- package/dist/host/output-reducer.d.ts.map +1 -0
- package/dist/host/output-reducer.js +77 -0
- package/dist/host/output-reducer.js.map +1 -0
- package/dist/host/output-serializer.d.ts +31 -0
- package/dist/host/output-serializer.d.ts.map +1 -0
- package/dist/host/output-serializer.js +120 -0
- package/dist/host/output-serializer.js.map +1 -0
- package/dist/host/overflow-recovery.d.ts +55 -0
- package/dist/host/overflow-recovery.d.ts.map +1 -0
- package/dist/host/overflow-recovery.js +89 -0
- package/dist/host/overflow-recovery.js.map +1 -0
- package/dist/host/retry-common.d.ts +29 -0
- package/dist/host/retry-common.d.ts.map +1 -0
- package/dist/host/retry-common.js +12 -0
- package/dist/host/retry-common.js.map +1 -0
- package/dist/host/session-event-translation.d.ts +26 -0
- package/dist/host/session-event-translation.d.ts.map +1 -0
- package/dist/host/session-event-translation.js +61 -0
- package/dist/host/session-event-translation.js.map +1 -0
- package/dist/host/summary-retry.d.ts +54 -0
- package/dist/host/summary-retry.d.ts.map +1 -0
- package/dist/host/summary-retry.js +66 -0
- package/dist/host/summary-retry.js.map +1 -0
- package/dist/index.d.ts +105 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +176 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +36 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +1630 -0
- package/dist/main.js.map +1 -0
- package/dist/migration/migration-tool.d.ts +56 -0
- package/dist/migration/migration-tool.d.ts.map +1 -0
- package/dist/migration/migration-tool.js +72 -0
- package/dist/migration/migration-tool.js.map +1 -0
- package/dist/migrations.d.ts +33 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +272 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/index.d.ts +10 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +336 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +25 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +151 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +34 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +176 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +56 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +44 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +113 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +857 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +19 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +71 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-entry.d.ts +19 -0
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-entry.js +52 -0
- package/dist/modes/interactive/components/custom-entry.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +22 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +87 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/modes/interactive/components/daxnuts.js +141 -0
- package/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/modes/interactive/components/dialog-editor.d.ts +21 -0
- package/dist/modes/interactive/components/dialog-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/dialog-editor.js +98 -0
- package/dist/modes/interactive/components/dialog-editor.js.map +1 -0
- package/dist/modes/interactive/components/dialog-input.d.ts +23 -0
- package/dist/modes/interactive/components/dialog-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/dialog-input.js +61 -0
- package/dist/modes/interactive/components/dialog-input.js.map +1 -0
- package/dist/modes/interactive/components/dialog-selector.d.ts +26 -0
- package/dist/modes/interactive/components/dialog-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/dialog-selector.js +83 -0
- package/dist/modes/interactive/components/dialog-selector.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.js +103 -0
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +33 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +248 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +34 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +35 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +36 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +52 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +188 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/markdown-transform.d.ts +3 -0
- package/dist/modes/interactive/components/markdown-transform.d.ts.map +1 -0
- package/dist/modes/interactive/components/markdown-transform.js +19 -0
- package/dist/modes/interactive/components/markdown-transform.js.map +1 -0
- package/dist/modes/interactive/components/mermaid.d.ts +11 -0
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -0
- package/dist/modes/interactive/components/mermaid.js +75 -0
- package/dist/modes/interactive/components/mermaid.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +67 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +381 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +33 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +165 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/plugin-manager-entry.d.ts +62 -0
- package/dist/modes/interactive/components/plugin-manager-entry.d.ts.map +1 -0
- package/dist/modes/interactive/components/plugin-manager-entry.js +294 -0
- package/dist/modes/interactive/components/plugin-manager-entry.js.map +1 -0
- package/dist/modes/interactive/components/plugin-selection-entry.d.ts +82 -0
- package/dist/modes/interactive/components/plugin-selection-entry.d.ts.map +1 -0
- package/dist/modes/interactive/components/plugin-selection-entry.js +228 -0
- package/dist/modes/interactive/components/plugin-selection-entry.js.map +1 -0
- package/dist/modes/interactive/components/render-types.d.ts +26 -0
- package/dist/modes/interactive/components/render-types.d.ts.map +1 -0
- package/dist/modes/interactive/components/render-types.js +7 -0
- package/dist/modes/interactive/components/render-types.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +46 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +328 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +158 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +143 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +1053 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +88 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +677 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-submenu.d.ts +72 -0
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-submenu.js +165 -0
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +39 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/status-indicator.d.ts +34 -0
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -0
- package/dist/modes/interactive/components/status-indicator.js +60 -0
- package/dist/modes/interactive/components/status-indicator.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +50 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +23 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +109 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +59 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +335 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-list.d.ts +67 -0
- package/dist/modes/interactive/components/tree-list.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-list.js +710 -0
- package/dist/modes/interactive/components/tree-list.js.map +1 -0
- package/dist/modes/interactive/components/tree-render.d.ts +17 -0
- package/dist/modes/interactive/components/tree-render.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-render.js +316 -0
- package/dist/modes/interactive/components/tree-render.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +25 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +235 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/tree-types.d.ts +35 -0
- package/dist/modes/interactive/components/tree-types.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-types.js +2 -0
- package/dist/modes/interactive/components/tree-types.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +114 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +16 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +49 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/external-editor.d.ts +12 -0
- package/dist/modes/interactive/external-editor.d.ts.map +1 -0
- package/dist/modes/interactive/external-editor.js +38 -0
- package/dist/modes/interactive/external-editor.js.map +1 -0
- package/dist/modes/interactive/interactive-auth.d.ts +90 -0
- package/dist/modes/interactive/interactive-auth.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-auth.js +492 -0
- package/dist/modes/interactive/interactive-auth.js.map +1 -0
- package/dist/modes/interactive/interactive-commands.d.ts +68 -0
- package/dist/modes/interactive/interactive-commands.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-commands.js +157 -0
- package/dist/modes/interactive/interactive-commands.js.map +1 -0
- package/dist/modes/interactive/interactive-dialog-ui.d.ts +73 -0
- package/dist/modes/interactive/interactive-dialog-ui.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-dialog-ui.js +189 -0
- package/dist/modes/interactive/interactive-dialog-ui.js.map +1 -0
- package/dist/modes/interactive/interactive-format.d.ts +65 -0
- package/dist/modes/interactive/interactive-format.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-format.js +268 -0
- package/dist/modes/interactive/interactive-format.js.map +1 -0
- package/dist/modes/interactive/interactive-helpers.d.ts +25 -0
- package/dist/modes/interactive/interactive-helpers.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-helpers.js +73 -0
- package/dist/modes/interactive/interactive-helpers.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +640 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +4107 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/interactive-selectors.d.ts +95 -0
- package/dist/modes/interactive/interactive-selectors.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-selectors.js +356 -0
- package/dist/modes/interactive/interactive-selectors.js.map +1 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts +11 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts.map +1 -0
- package/dist/modes/interactive/model-catalog-refresh.js +35 -0
- package/dist/modes/interactive/model-catalog-refresh.js.map +1 -0
- package/dist/modes/interactive/model-search.d.ts +12 -0
- package/dist/modes/interactive/model-search.d.ts.map +1 -0
- package/dist/modes/interactive/model-search.js +15 -0
- package/dist/modes/interactive/model-search.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +90 -0
- package/dist/modes/interactive/theme/light.json +89 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts +40 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.js +126 -0
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.json +352 -0
- package/dist/modes/interactive/theme/theme.d.ts +122 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme.js +1093 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -0
- package/dist/modes/json-event.d.ts +34 -0
- package/dist/modes/json-event.d.ts.map +1 -0
- package/dist/modes/json-event.js +29 -0
- package/dist/modes/json-event.js.map +1 -0
- package/dist/modes/print-mode.d.ts +32 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +205 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/jsonl.d.ts +17 -0
- package/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/modes/rpc/jsonl.js +49 -0
- package/dist/modes/rpc/jsonl.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +254 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +496 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +53 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +540 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +486 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/package-manager-cli.d.ts +18 -0
- package/dist/package-manager-cli.d.ts.map +1 -0
- package/dist/package-manager-cli.js +944 -0
- package/dist/package-manager-cli.js.map +1 -0
- package/dist/plugins/ecosystem/active-bindings.d.ts +92 -0
- package/dist/plugins/ecosystem/active-bindings.d.ts.map +1 -0
- package/dist/plugins/ecosystem/active-bindings.js +198 -0
- package/dist/plugins/ecosystem/active-bindings.js.map +1 -0
- package/dist/plugins/ecosystem/bootstrap-factory-manifest.d.ts +32 -0
- package/dist/plugins/ecosystem/bootstrap-factory-manifest.d.ts.map +1 -0
- package/dist/plugins/ecosystem/bootstrap-factory-manifest.js +32 -0
- package/dist/plugins/ecosystem/bootstrap-factory-manifest.js.map +1 -0
- package/dist/plugins/ecosystem/catalog.d.ts +38 -0
- package/dist/plugins/ecosystem/catalog.d.ts.map +1 -0
- package/dist/plugins/ecosystem/catalog.js +90 -0
- package/dist/plugins/ecosystem/catalog.js.map +1 -0
- package/dist/plugins/ecosystem/cli.d.ts +102 -0
- package/dist/plugins/ecosystem/cli.d.ts.map +1 -0
- package/dist/plugins/ecosystem/cli.js +970 -0
- package/dist/plugins/ecosystem/cli.js.map +1 -0
- package/dist/plugins/ecosystem/default-active-bindings.d.ts +33 -0
- package/dist/plugins/ecosystem/default-active-bindings.d.ts.map +1 -0
- package/dist/plugins/ecosystem/default-active-bindings.js +105 -0
- package/dist/plugins/ecosystem/default-active-bindings.js.map +1 -0
- package/dist/plugins/ecosystem/default-plugin-market.d.ts +68 -0
- package/dist/plugins/ecosystem/default-plugin-market.d.ts.map +1 -0
- package/dist/plugins/ecosystem/default-plugin-market.js +146 -0
- package/dist/plugins/ecosystem/default-plugin-market.js.map +1 -0
- package/dist/plugins/ecosystem/distribution.d.ts +113 -0
- package/dist/plugins/ecosystem/distribution.d.ts.map +1 -0
- package/dist/plugins/ecosystem/distribution.js +371 -0
- package/dist/plugins/ecosystem/distribution.js.map +1 -0
- package/dist/plugins/ecosystem/index.d.ts +56 -0
- package/dist/plugins/ecosystem/index.d.ts.map +1 -0
- package/dist/plugins/ecosystem/index.js +31 -0
- package/dist/plugins/ecosystem/index.js.map +1 -0
- package/dist/plugins/ecosystem/installer.d.ts +130 -0
- package/dist/plugins/ecosystem/installer.d.ts.map +1 -0
- package/dist/plugins/ecosystem/installer.js +316 -0
- package/dist/plugins/ecosystem/installer.js.map +1 -0
- package/dist/plugins/ecosystem/node-disk-registry-source.d.ts +47 -0
- package/dist/plugins/ecosystem/node-disk-registry-source.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-disk-registry-source.js +208 -0
- package/dist/plugins/ecosystem/node-disk-registry-source.js.map +1 -0
- package/dist/plugins/ecosystem/node-distribution-host.d.ts +55 -0
- package/dist/plugins/ecosystem/node-distribution-host.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-distribution-host.js +423 -0
- package/dist/plugins/ecosystem/node-distribution-host.js.map +1 -0
- package/dist/plugins/ecosystem/node-local-package-source.d.ts +10 -0
- package/dist/plugins/ecosystem/node-local-package-source.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-local-package-source.js +97 -0
- package/dist/plugins/ecosystem/node-local-package-source.js.map +1 -0
- package/dist/plugins/ecosystem/node-npm-registry-source.d.ts +58 -0
- package/dist/plugins/ecosystem/node-npm-registry-source.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-npm-registry-source.js +326 -0
- package/dist/plugins/ecosystem/node-npm-registry-source.js.map +1 -0
- package/dist/plugins/ecosystem/node-package-install-host.d.ts +91 -0
- package/dist/plugins/ecosystem/node-package-install-host.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-package-install-host.js +857 -0
- package/dist/plugins/ecosystem/node-package-install-host.js.map +1 -0
- package/dist/plugins/ecosystem/node-package-install-persistence.d.ts +34 -0
- package/dist/plugins/ecosystem/node-package-install-persistence.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-package-install-persistence.js +221 -0
- package/dist/plugins/ecosystem/node-package-install-persistence.js.map +1 -0
- package/dist/plugins/ecosystem/node-package-install-stack.d.ts +28 -0
- package/dist/plugins/ecosystem/node-package-install-stack.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-package-install-stack.js +65 -0
- package/dist/plugins/ecosystem/node-package-install-stack.js.map +1 -0
- package/dist/plugins/ecosystem/node-package-media.d.ts +14 -0
- package/dist/plugins/ecosystem/node-package-media.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-package-media.js +36 -0
- package/dist/plugins/ecosystem/node-package-media.js.map +1 -0
- package/dist/plugins/ecosystem/node-plugin-acquisition-host.d.ts +83 -0
- package/dist/plugins/ecosystem/node-plugin-acquisition-host.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-plugin-acquisition-host.js +423 -0
- package/dist/plugins/ecosystem/node-plugin-acquisition-host.js.map +1 -0
- package/dist/plugins/ecosystem/node-plugin-bootstrap.d.ts +48 -0
- package/dist/plugins/ecosystem/node-plugin-bootstrap.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-plugin-bootstrap.js +191 -0
- package/dist/plugins/ecosystem/node-plugin-bootstrap.js.map +1 -0
- package/dist/plugins/ecosystem/node-plugin-trust-root.d.ts +26 -0
- package/dist/plugins/ecosystem/node-plugin-trust-root.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-plugin-trust-root.js +120 -0
- package/dist/plugins/ecosystem/node-plugin-trust-root.js.map +1 -0
- package/dist/plugins/ecosystem/node-registry-source.d.ts +35 -0
- package/dist/plugins/ecosystem/node-registry-source.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-registry-source.js +286 -0
- package/dist/plugins/ecosystem/node-registry-source.js.map +1 -0
- package/dist/plugins/ecosystem/node-release-package-source.d.ts +47 -0
- package/dist/plugins/ecosystem/node-release-package-source.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-release-package-source.js +336 -0
- package/dist/plugins/ecosystem/node-release-package-source.js.map +1 -0
- package/dist/plugins/ecosystem/node-tar-package.d.ts +11 -0
- package/dist/plugins/ecosystem/node-tar-package.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-tar-package.js +294 -0
- package/dist/plugins/ecosystem/node-tar-package.js.map +1 -0
- package/dist/plugins/ecosystem/node-tar-writer.d.ts +16 -0
- package/dist/plugins/ecosystem/node-tar-writer.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-tar-writer.js +134 -0
- package/dist/plugins/ecosystem/node-tar-writer.js.map +1 -0
- package/dist/plugins/ecosystem/node-url-package-source.d.ts +31 -0
- package/dist/plugins/ecosystem/node-url-package-source.d.ts.map +1 -0
- package/dist/plugins/ecosystem/node-url-package-source.js +159 -0
- package/dist/plugins/ecosystem/node-url-package-source.js.map +1 -0
- package/dist/plugins/ecosystem/plugin-acquisition.d.ts +88 -0
- package/dist/plugins/ecosystem/plugin-acquisition.d.ts.map +1 -0
- package/dist/plugins/ecosystem/plugin-acquisition.js +197 -0
- package/dist/plugins/ecosystem/plugin-acquisition.js.map +1 -0
- package/dist/plugins/ecosystem/plugin-bootstrap.d.ts +87 -0
- package/dist/plugins/ecosystem/plugin-bootstrap.d.ts.map +1 -0
- package/dist/plugins/ecosystem/plugin-bootstrap.js +134 -0
- package/dist/plugins/ecosystem/plugin-bootstrap.js.map +1 -0
- package/dist/plugins/ecosystem/registry-cli-adapter.d.ts +8 -0
- package/dist/plugins/ecosystem/registry-cli-adapter.d.ts.map +1 -0
- package/dist/plugins/ecosystem/registry-cli-adapter.js +16 -0
- package/dist/plugins/ecosystem/registry-cli-adapter.js.map +1 -0
- package/dist/plugins/ecosystem/registry.d.ts +121 -0
- package/dist/plugins/ecosystem/registry.d.ts.map +1 -0
- package/dist/plugins/ecosystem/registry.js +324 -0
- package/dist/plugins/ecosystem/registry.js.map +1 -0
- package/dist/plugins/ecosystem/resolver.d.ts +32 -0
- package/dist/plugins/ecosystem/resolver.d.ts.map +1 -0
- package/dist/plugins/ecosystem/resolver.js +325 -0
- package/dist/plugins/ecosystem/resolver.js.map +1 -0
- package/dist/plugins/ecosystem/selection-store.d.ts +66 -0
- package/dist/plugins/ecosystem/selection-store.d.ts.map +1 -0
- package/dist/plugins/ecosystem/selection-store.js +241 -0
- package/dist/plugins/ecosystem/selection-store.js.map +1 -0
- package/dist/plugins/ecosystem/selection.d.ts +54 -0
- package/dist/plugins/ecosystem/selection.d.ts.map +1 -0
- package/dist/plugins/ecosystem/selection.js +116 -0
- package/dist/plugins/ecosystem/selection.js.map +1 -0
- package/dist/plugins/ecosystem/state.d.ts +96 -0
- package/dist/plugins/ecosystem/state.d.ts.map +1 -0
- package/dist/plugins/ecosystem/state.js +346 -0
- package/dist/plugins/ecosystem/state.js.map +1 -0
- package/dist/plugins/ecosystem/types.d.ts +90 -0
- package/dist/plugins/ecosystem/types.d.ts.map +1 -0
- package/dist/plugins/ecosystem/types.js +8 -0
- package/dist/plugins/ecosystem/types.js.map +1 -0
- package/dist/plugins/ecosystem/updates.d.ts +30 -0
- package/dist/plugins/ecosystem/updates.d.ts.map +1 -0
- package/dist/plugins/ecosystem/updates.js +148 -0
- package/dist/plugins/ecosystem/updates.js.map +1 -0
- package/dist/plugins/integrity-adapter.d.ts +58 -0
- package/dist/plugins/integrity-adapter.d.ts.map +1 -0
- package/dist/plugins/integrity-adapter.js +70 -0
- package/dist/plugins/integrity-adapter.js.map +1 -0
- package/dist/plugins/mcp-http.d.ts +78 -0
- package/dist/plugins/mcp-http.d.ts.map +1 -0
- package/dist/plugins/mcp-http.js +176 -0
- package/dist/plugins/mcp-http.js.map +1 -0
- package/dist/plugins/observability-types.d.ts +9 -0
- package/dist/plugins/observability-types.d.ts.map +1 -0
- package/dist/plugins/observability-types.js +9 -0
- package/dist/plugins/observability-types.js.map +1 -0
- package/dist/plugins/plugin-host.d.ts +46 -0
- package/dist/plugins/plugin-host.d.ts.map +1 -0
- package/dist/plugins/plugin-host.js +80 -0
- package/dist/plugins/plugin-host.js.map +1 -0
- package/dist/plugins/plugin-supervisor.d.ts +77 -0
- package/dist/plugins/plugin-supervisor.d.ts.map +1 -0
- package/dist/plugins/plugin-supervisor.js +82 -0
- package/dist/plugins/plugin-supervisor.js.map +1 -0
- package/dist/plugins/subagent-task/runner-entry.d.ts +35 -0
- package/dist/plugins/subagent-task/runner-entry.d.ts.map +1 -0
- package/dist/plugins/subagent-task/runner-entry.js +39 -0
- package/dist/plugins/subagent-task/runner-entry.js.map +1 -0
- package/dist/plugins/subagent-task/session-factory.d.ts +57 -0
- package/dist/plugins/subagent-task/session-factory.d.ts.map +1 -0
- package/dist/plugins/subagent-task/session-factory.js +51 -0
- package/dist/plugins/subagent-task/session-factory.js.map +1 -0
- package/dist/profile/child-facade.d.ts +44 -0
- package/dist/profile/child-facade.d.ts.map +1 -0
- package/dist/profile/child-facade.js +56 -0
- package/dist/profile/child-facade.js.map +1 -0
- package/dist/profile/dependency-wiring.d.ts +48 -0
- package/dist/profile/dependency-wiring.d.ts.map +1 -0
- package/dist/profile/dependency-wiring.js +56 -0
- package/dist/profile/dependency-wiring.js.map +1 -0
- package/dist/profile/domain-recovery.d.ts +60 -0
- package/dist/profile/domain-recovery.d.ts.map +1 -0
- package/dist/profile/domain-recovery.js +94 -0
- package/dist/profile/domain-recovery.js.map +1 -0
- package/dist/profile/first-roles.d.ts +30 -0
- package/dist/profile/first-roles.d.ts.map +1 -0
- package/dist/profile/first-roles.js +74 -0
- package/dist/profile/first-roles.js.map +1 -0
- package/dist/profile/goal-plugin.d.ts +38 -0
- package/dist/profile/goal-plugin.d.ts.map +1 -0
- package/dist/profile/goal-plugin.js +113 -0
- package/dist/profile/goal-plugin.js.map +1 -0
- package/dist/profile/identity.d.ts +58 -0
- package/dist/profile/identity.d.ts.map +1 -0
- package/dist/profile/identity.js +100 -0
- package/dist/profile/identity.js.map +1 -0
- package/dist/profile/lock.d.ts +59 -0
- package/dist/profile/lock.d.ts.map +1 -0
- package/dist/profile/lock.js +59 -0
- package/dist/profile/lock.js.map +1 -0
- package/dist/profile/plan-plugin.d.ts +44 -0
- package/dist/profile/plan-plugin.d.ts.map +1 -0
- package/dist/profile/plan-plugin.js +144 -0
- package/dist/profile/plan-plugin.js.map +1 -0
- package/dist/profile/plugin-profiles.d.ts +56 -0
- package/dist/profile/plugin-profiles.d.ts.map +1 -0
- package/dist/profile/plugin-profiles.js +192 -0
- package/dist/profile/plugin-profiles.js.map +1 -0
- package/dist/profile/policy-manifest.d.ts +53 -0
- package/dist/profile/policy-manifest.d.ts.map +1 -0
- package/dist/profile/policy-manifest.js +52 -0
- package/dist/profile/policy-manifest.js.map +1 -0
- package/dist/profile/profile-assembly.d.ts +74 -0
- package/dist/profile/profile-assembly.d.ts.map +1 -0
- package/dist/profile/profile-assembly.js +90 -0
- package/dist/profile/profile-assembly.js.map +1 -0
- package/dist/profile/profile-migration.d.ts +56 -0
- package/dist/profile/profile-migration.d.ts.map +1 -0
- package/dist/profile/profile-migration.js +60 -0
- package/dist/profile/profile-migration.js.map +1 -0
- package/dist/profile/profile-registry.d.ts +58 -0
- package/dist/profile/profile-registry.d.ts.map +1 -0
- package/dist/profile/profile-registry.js +74 -0
- package/dist/profile/profile-registry.js.map +1 -0
- package/dist/profile/role-assembly.d.ts +47 -0
- package/dist/profile/role-assembly.d.ts.map +1 -0
- package/dist/profile/role-assembly.js +31 -0
- package/dist/profile/role-assembly.js.map +1 -0
- package/dist/profile/role-catalog.d.ts +44 -0
- package/dist/profile/role-catalog.d.ts.map +1 -0
- package/dist/profile/role-catalog.js +130 -0
- package/dist/profile/role-catalog.js.map +1 -0
- package/dist/profile/role-orchestrator.d.ts +123 -0
- package/dist/profile/role-orchestrator.d.ts.map +1 -0
- package/dist/profile/role-orchestrator.js +194 -0
- package/dist/profile/role-orchestrator.js.map +1 -0
- package/dist/profile/role-runner.d.ts +99 -0
- package/dist/profile/role-runner.d.ts.map +1 -0
- package/dist/profile/role-runner.js +78 -0
- package/dist/profile/role-runner.js.map +1 -0
- package/dist/profile/root-facade.d.ts +36 -0
- package/dist/profile/root-facade.d.ts.map +1 -0
- package/dist/profile/root-facade.js +48 -0
- package/dist/profile/root-facade.js.map +1 -0
- package/dist/profile/skill-discovery-wiring.d.ts +58 -0
- package/dist/profile/skill-discovery-wiring.d.ts.map +1 -0
- package/dist/profile/skill-discovery-wiring.js +75 -0
- package/dist/profile/skill-discovery-wiring.js.map +1 -0
- package/dist/profile/state-store.d.ts +62 -0
- package/dist/profile/state-store.d.ts.map +1 -0
- package/dist/profile/state-store.js +140 -0
- package/dist/profile/state-store.js.map +1 -0
- package/dist/profile/todo-plugin.d.ts +37 -0
- package/dist/profile/todo-plugin.d.ts.map +1 -0
- package/dist/profile/todo-plugin.js +132 -0
- package/dist/profile/todo-plugin.js.map +1 -0
- package/dist/profiles/builtin-suites.d.ts +142 -0
- package/dist/profiles/builtin-suites.d.ts.map +1 -0
- package/dist/profiles/builtin-suites.js +395 -0
- package/dist/profiles/builtin-suites.js.map +1 -0
- package/dist/profiles/resolved-agent-profile.d.ts +83 -0
- package/dist/profiles/resolved-agent-profile.d.ts.map +1 -0
- package/dist/profiles/resolved-agent-profile.js +75 -0
- package/dist/profiles/resolved-agent-profile.js.map +1 -0
- package/dist/profiles/suite-lifecycle.d.ts +158 -0
- package/dist/profiles/suite-lifecycle.d.ts.map +1 -0
- package/dist/profiles/suite-lifecycle.js +447 -0
- package/dist/profiles/suite-lifecycle.js.map +1 -0
- package/dist/profiles/suite-loader.d.ts +410 -0
- package/dist/profiles/suite-loader.d.ts.map +1 -0
- package/dist/profiles/suite-loader.js +823 -0
- package/dist/profiles/suite-loader.js.map +1 -0
- package/dist/remote/server-assembly.d.ts +230 -0
- package/dist/remote/server-assembly.d.ts.map +1 -0
- package/dist/remote/server-assembly.js +1189 -0
- package/dist/remote/server-assembly.js.map +1 -0
- package/dist/remote/server-entry.d.ts +112 -0
- package/dist/remote/server-entry.d.ts.map +1 -0
- package/dist/remote/server-entry.js +239 -0
- package/dist/remote/server-entry.js.map +1 -0
- package/dist/remote/session-source.d.ts +101 -0
- package/dist/remote/session-source.d.ts.map +1 -0
- package/dist/remote/session-source.js +173 -0
- package/dist/remote/session-source.js.map +1 -0
- package/dist/rpc-entry.d.ts +3 -0
- package/dist/rpc-entry.d.ts.map +1 -0
- package/dist/rpc-entry.js +11 -0
- package/dist/rpc-entry.js.map +1 -0
- package/dist/server/create-harness.d.ts +26 -0
- package/dist/server/create-harness.d.ts.map +1 -0
- package/dist/server/create-harness.js +106 -0
- package/dist/server/create-harness.js.map +1 -0
- package/dist/share/session-share.d.ts +98 -0
- package/dist/share/session-share.d.ts.map +1 -0
- package/dist/share/session-share.js +89 -0
- package/dist/share/session-share.js.map +1 -0
- package/dist/share/share-viewer.d.ts +43 -0
- package/dist/share/share-viewer.d.ts.map +1 -0
- package/dist/share/share-viewer.js +103 -0
- package/dist/share/share-viewer.js.map +1 -0
- package/dist/testing/index.d.ts +4 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +6 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/mock-ai-server.d.ts +77 -0
- package/dist/testing/mock-ai-server.d.ts.map +1 -0
- package/dist/testing/mock-ai-server.js +69 -0
- package/dist/testing/mock-ai-server.js.map +1 -0
- package/dist/testing/plugin-testkit.d.ts +148 -0
- package/dist/testing/plugin-testkit.d.ts.map +1 -0
- package/dist/testing/plugin-testkit.js +493 -0
- package/dist/testing/plugin-testkit.js.map +1 -0
- package/dist/testing/runtime-delivery-queue.d.ts +47 -0
- package/dist/testing/runtime-delivery-queue.d.ts.map +1 -0
- package/dist/testing/runtime-delivery-queue.js +158 -0
- package/dist/testing/runtime-delivery-queue.js.map +1 -0
- package/dist/testing/session-plugin-testkit.d.ts +144 -0
- package/dist/testing/session-plugin-testkit.d.ts.map +1 -0
- package/dist/testing/session-plugin-testkit.js +444 -0
- package/dist/testing/session-plugin-testkit.js.map +1 -0
- package/dist/utils/abort.d.ts +5 -0
- package/dist/utils/abort.d.ts.map +1 -0
- package/dist/utils/abort.js +53 -0
- package/dist/utils/abort.js.map +1 -0
- package/dist/utils/agent-forge-user-agent.d.ts +2 -0
- package/dist/utils/agent-forge-user-agent.d.ts.map +1 -0
- package/dist/utils/agent-forge-user-agent.js +5 -0
- package/dist/utils/agent-forge-user-agent.js.map +1 -0
- package/dist/utils/ansi.d.ts +2 -0
- package/dist/utils/ansi.d.ts.map +1 -0
- package/dist/utils/ansi.js +53 -0
- package/dist/utils/ansi.js.map +1 -0
- package/dist/utils/changelog.d.ts +22 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +165 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/child-process.d.ts +18 -0
- package/dist/utils/child-process.d.ts.map +1 -0
- package/dist/utils/child-process.js +107 -0
- package/dist/utils/child-process.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +246 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard-native.d.ts +11 -0
- package/dist/utils/clipboard-native.d.ts.map +1 -0
- package/dist/utils/clipboard-native.js +22 -0
- package/dist/utils/clipboard-native.js.map +1 -0
- package/dist/utils/clipboard.d.ts +4 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +161 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/deprecation.d.ts +4 -0
- package/dist/utils/deprecation.d.ts.map +1 -0
- package/dist/utils/deprecation.js +13 -0
- package/dist/utils/deprecation.js.map +1 -0
- package/dist/utils/exif-orientation.d.ts +5 -0
- package/dist/utils/exif-orientation.d.ts.map +1 -0
- package/dist/utils/exif-orientation.js +158 -0
- package/dist/utils/exif-orientation.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +27 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/fs-watch.d.ts +5 -0
- package/dist/utils/fs-watch.d.ts.map +1 -0
- package/dist/utils/fs-watch.js +25 -0
- package/dist/utils/fs-watch.js.map +1 -0
- package/dist/utils/git.d.ts +26 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +201 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +40 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/image-convert.d.ts +10 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +45 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-process.d.ts +18 -0
- package/dist/utils/image-process.d.ts.map +1 -0
- package/dist/utils/image-process.js +84 -0
- package/dist/utils/image-process.js.map +1 -0
- package/dist/utils/image-resize-core.d.ts +30 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -0
- package/dist/utils/image-resize-core.js +125 -0
- package/dist/utils/image-resize-core.js.map +1 -0
- package/dist/utils/image-resize-worker.d.ts +2 -0
- package/dist/utils/image-resize-worker.d.ts.map +1 -0
- package/dist/utils/image-resize-worker.js +31 -0
- package/dist/utils/image-resize-worker.js.map +1 -0
- package/dist/utils/image-resize.d.ts +16 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +100 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/json.d.ts +3 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +8 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/management-http.d.ts +25 -0
- package/dist/utils/management-http.d.ts.map +1 -0
- package/dist/utils/management-http.js +54 -0
- package/dist/utils/management-http.js.map +1 -0
- package/dist/utils/mime.d.ts +3 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +115 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/open-browser.d.ts +9 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +22 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/paths.d.ts +34 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +114 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/photon.d.ts +21 -0
- package/dist/utils/photon.d.ts.map +1 -0
- package/dist/utils/photon.js +124 -0
- package/dist/utils/photon.js.map +1 -0
- package/dist/utils/shell.d.ts +34 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +216 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/sync-sleep.d.ts +2 -0
- package/dist/utils/sync-sleep.d.ts.map +1 -0
- package/dist/utils/sync-sleep.js +11 -0
- package/dist/utils/sync-sleep.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts +13 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -0
- package/dist/utils/syntax-highlight.js +177 -0
- package/dist/utils/syntax-highlight.js.map +1 -0
- package/dist/utils/text.d.ts +8 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +9 -0
- package/dist/utils/text.js.map +1 -0
- package/dist/utils/tool-result-images.d.ts +19 -0
- package/dist/utils/tool-result-images.d.ts.map +1 -0
- package/dist/utils/tool-result-images.js +45 -0
- package/dist/utils/tool-result-images.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +24 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +437 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/version-check.d.ts +21 -0
- package/dist/utils/version-check.d.ts.map +1 -0
- package/dist/utils/version-check.js +86 -0
- package/dist/utils/version-check.js.map +1 -0
- package/dist/utils/windows-self-update.d.ts +3 -0
- package/dist/utils/windows-self-update.d.ts.map +1 -0
- package/dist/utils/windows-self-update.js +77 -0
- package/dist/utils/windows-self-update.js.map +1 -0
- package/docs/compaction.md +348 -0
- package/docs/containerization.md +114 -0
- package/docs/development.md +71 -0
- package/docs/docs.json +148 -0
- package/docs/environment-variables.md +96 -0
- package/docs/images/exy.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/index.md +76 -0
- package/docs/json.md +98 -0
- package/docs/keybindings.md +245 -0
- package/docs/llama-cpp.md +101 -0
- package/docs/models.md +576 -0
- package/docs/packages.md +205 -0
- package/docs/prompt-templates.md +96 -0
- package/docs/providers.md +317 -0
- package/docs/quickstart.md +167 -0
- package/docs/rpc.md +1487 -0
- package/docs/sdk.md +1146 -0
- package/docs/security.md +24 -0
- package/docs/session-format.md +438 -0
- package/docs/sessions.md +145 -0
- package/docs/settings.md +355 -0
- package/docs/shell-aliases.md +13 -0
- package/docs/skills.md +231 -0
- package/docs/terminal-setup.md +192 -0
- package/docs/termux.md +127 -0
- package/docs/themes.md +320 -0
- package/docs/tmux.md +63 -0
- package/docs/tui.md +478 -0
- package/docs/usage.md +291 -0
- package/docs/windows.md +39 -0
- package/examples/README.md +21 -0
- package/examples/extensions/README.md +163 -0
- package/examples/extensions/bash-spawn-hook/index.ts +37 -0
- package/examples/extensions/bash-spawn-hook/plugin.json +10 -0
- package/examples/extensions/bookmark/index.ts +67 -0
- package/examples/extensions/bookmark/plugin.json +11 -0
- package/examples/extensions/built-in-tool-renderer/index.ts +262 -0
- package/examples/extensions/built-in-tool-renderer/plugin.json +10 -0
- package/examples/extensions/claude-rules/index.ts +119 -0
- package/examples/extensions/claude-rules/plugin.json +8 -0
- package/examples/extensions/cli-bridge/README.md +27 -0
- package/examples/extensions/cli-bridge/index.ts +320 -0
- package/examples/extensions/cli-bridge/plugin.json +10 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +53 -0
- package/examples/extensions/dynamic-resources/plugin.json +8 -0
- package/examples/extensions/dynamic-tools/index.ts +102 -0
- package/examples/extensions/dynamic-tools/plugin.json +14 -0
- package/examples/extensions/event-bus/index.ts +75 -0
- package/examples/extensions/event-bus/plugin.json +13 -0
- package/examples/extensions/file-trigger/index.ts +65 -0
- package/examples/extensions/file-trigger/plugin.json +13 -0
- package/examples/extensions/goal/README.md +16 -0
- package/examples/extensions/goal/index.ts +134 -0
- package/examples/extensions/goal/plugin.json +12 -0
- package/examples/extensions/hello/index.ts +29 -0
- package/examples/extensions/hello/plugin.json +10 -0
- package/examples/extensions/kimi-deferred-tools/index.ts +93 -0
- package/examples/extensions/kimi-deferred-tools/plugin.json +11 -0
- package/examples/extensions/mcp-stdio/README.md +19 -0
- package/examples/extensions/mcp-stdio/index.d.ts +64 -0
- package/examples/extensions/mcp-stdio/index.d.ts.map +1 -0
- package/examples/extensions/mcp-stdio/index.js +292 -0
- package/examples/extensions/mcp-stdio/index.js.map +1 -0
- package/examples/extensions/mcp-stdio/index.ts +381 -0
- package/examples/extensions/mcp-stdio/plugin.json +10 -0
- package/examples/extensions/memory-backend/index.ts +120 -0
- package/examples/extensions/memory-backend/plugin.json +10 -0
- package/examples/extensions/minimal-mode/index.ts +447 -0
- package/examples/extensions/minimal-mode/plugin.json +10 -0
- package/examples/extensions/multi-agent/README.md +7 -0
- package/examples/extensions/multi-agent/index.ts +592 -0
- package/examples/extensions/multi-agent/plugin.json +13 -0
- package/examples/extensions/notify/index.ts +70 -0
- package/examples/extensions/notify/plugin.json +8 -0
- package/examples/extensions/permission-gate/index.ts +55 -0
- package/examples/extensions/permission-gate/plugin.json +11 -0
- package/examples/extensions/pirate/index.ts +75 -0
- package/examples/extensions/pirate/plugin.json +8 -0
- package/examples/extensions/plan/README.md +16 -0
- package/examples/extensions/plan/index.ts +136 -0
- package/examples/extensions/plan/plugin.json +12 -0
- package/examples/extensions/prompt-customizer/index.ts +117 -0
- package/examples/extensions/prompt-customizer/plugin.json +8 -0
- package/examples/extensions/protected-paths/index.ts +44 -0
- package/examples/extensions/protected-paths/plugin.json +11 -0
- package/examples/extensions/provider-attribution/README.md +12 -0
- package/examples/extensions/provider-attribution/index.ts +86 -0
- package/examples/extensions/provider-attribution/plugin.json +10 -0
- package/examples/extensions/send-user-message/index.ts +118 -0
- package/examples/extensions/send-user-message/plugin.json +11 -0
- package/examples/extensions/session-name/index.ts +31 -0
- package/examples/extensions/session-name/plugin.json +11 -0
- package/examples/extensions/session-share/README.md +15 -0
- package/examples/extensions/session-share/index.ts +170 -0
- package/examples/extensions/session-share/plugin.json +15 -0
- package/examples/extensions/structured-output/index.ts +68 -0
- package/examples/extensions/structured-output/plugin.json +10 -0
- package/examples/extensions/subagent/README.md +177 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +157 -0
- package/examples/extensions/subagent/index.ts +1057 -0
- package/examples/extensions/subagent/plugin.json +13 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/suite-manager/README.md +45 -0
- package/examples/extensions/suite-manager/index.ts +182 -0
- package/examples/extensions/suite-manager/plugin.json +13 -0
- package/examples/extensions/timed-confirm/index.ts +93 -0
- package/examples/extensions/timed-confirm/plugin.json +13 -0
- package/examples/extensions/todo-set/README.md +18 -0
- package/examples/extensions/todo-set/index.ts +133 -0
- package/examples/extensions/todo-set/plugin.json +12 -0
- package/examples/extensions/tool-override/index.ts +159 -0
- package/examples/extensions/tool-override/plugin.json +11 -0
- package/examples/extensions/trigger-compact/index.ts +76 -0
- package/examples/extensions/trigger-compact/plugin.json +14 -0
- package/examples/extensions/truncated-tool/index.ts +204 -0
- package/examples/extensions/truncated-tool/plugin.json +10 -0
- package/examples/extensions/with-deps/index.ts +42 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/with-deps/plugin.json +10 -0
- package/examples/remote-client.ts +66 -0
- package/examples/rpc-extension-ui.ts +641 -0
- package/examples/sdk/01-minimal.ts +26 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +70 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/07-context-files.ts +42 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +72 -0
- package/examples/sdk/13-session-runtime.ts +71 -0
- package/examples/sdk/14-custom-session-storage.ts +132 -0
- package/examples/sdk/README.md +139 -0
- package/package.json +111 -0
|
@@ -0,0 +1,1156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentSession - Core abstraction for agent lifecycle and session management.
|
|
3
|
+
*
|
|
4
|
+
* This class is shared between all run modes (interactive, print, rpc).
|
|
5
|
+
* It encapsulates:
|
|
6
|
+
* - Agent state access
|
|
7
|
+
* - Event subscription with automatic session persistence
|
|
8
|
+
* - Model and thinking level management
|
|
9
|
+
* - Compaction (manual and auto)
|
|
10
|
+
* - Bash execution
|
|
11
|
+
* - Session switching and branching
|
|
12
|
+
*
|
|
13
|
+
* Modes use this class and add their own I/O layer on top.
|
|
14
|
+
*/
|
|
15
|
+
import type { Agent, AgentEvent, AgentMessage, AgentState, AgentTool, ThinkingLevel } from "@agent-forge/agent-core";
|
|
16
|
+
import type { Api, Transport } from "@agent-forge/ai";
|
|
17
|
+
import type { ImageContent, Model, TextContent } from "@agent-forge/ai/compat";
|
|
18
|
+
import type { MemoryStorageComponentsV1 } from "@agent-forge/plugin-sdk";
|
|
19
|
+
import type { DurableServiceV1 } from "../durable/durable-service.ts";
|
|
20
|
+
import type { SummaryAttemptRecordV1 } from "../host/summary-retry.ts";
|
|
21
|
+
import type { ObservabilityPlugin } from "../plugins/observability-types.ts";
|
|
22
|
+
import { type CompactionCancelledResult } from "./agent-session-compaction.ts";
|
|
23
|
+
import type { ReplacedSessionContext } from "./agent-session-runtime.ts";
|
|
24
|
+
import type { BashResult } from "./bash-executor.ts";
|
|
25
|
+
import type { CompactionResult } from "./compaction/index.ts";
|
|
26
|
+
import type { AgentTaskSettledEventDataV1 } from "./extensions/bootstrap-lifecycle.ts";
|
|
27
|
+
import type { TraceServiceV1 } from "./extensions/capability-runtime-types.ts";
|
|
28
|
+
import { type AgentCompositionAPI, type AgentTaskAdapter, type AgentTaskSessionSummaryV1, type AgentTaskSessionViewV1, type CapabilityCommandResult, type CapabilityPluginFactory, type CapabilityPluginHandle, type CapabilityRuntime, type HostMode, type InteractionHostV1, type LoggerRecord, type OutputArtifactRef, type PluginManifest, type PromptOutcome, type SessionAPI, type SessionRevisionV1 } from "./extensions/index.ts";
|
|
29
|
+
import type { ContextUsage, PluginConfig, SubagentCommunicationWiringV1 } from "./extensions/public-api.ts";
|
|
30
|
+
import type { InputSource } from "./input-source.ts";
|
|
31
|
+
import type { HostLogger } from "./logger.ts";
|
|
32
|
+
import type { CustomMessage } from "./messages.ts";
|
|
33
|
+
import type { ModelRuntime } from "./model-runtime.ts";
|
|
34
|
+
import { type PromptTemplate } from "./prompt-templates.ts";
|
|
35
|
+
import type { ResourceLoader } from "./resource-loader.ts";
|
|
36
|
+
import type { BranchSummaryEntry, SessionEntry, SessionManager } from "./session-manager.ts";
|
|
37
|
+
import type { SessionStartMetadata } from "./session-start.ts";
|
|
38
|
+
import type { SettingsManager } from "./settings-manager.ts";
|
|
39
|
+
import type { Skill } from "./skills.ts";
|
|
40
|
+
import type { BashOperations } from "./tools/bash.ts";
|
|
41
|
+
import type { ToolDefinition, ToolInfo } from "./tools/tool-definition.ts";
|
|
42
|
+
/** Parsed skill block from a user message */
|
|
43
|
+
export interface ParsedSkillBlock {
|
|
44
|
+
name: string;
|
|
45
|
+
location: string;
|
|
46
|
+
content: string;
|
|
47
|
+
userMessage: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Parse a skill block from message text.
|
|
51
|
+
* Returns null if the text doesn't contain a skill block.
|
|
52
|
+
*/
|
|
53
|
+
export declare function parseSkillBlock(text: string): ParsedSkillBlock | null;
|
|
54
|
+
/**
|
|
55
|
+
* Custom entry type marking a cross-suite resume (设计 §10.1 最小可用版): the
|
|
56
|
+
* session was created under one suite but its context was reassembled under
|
|
57
|
+
* another. Entry data: `{ originalSuiteId, currentSuiteId }`.
|
|
58
|
+
*/
|
|
59
|
+
export declare const SUITE_MISMATCH_SESSION_ENTRY_TYPE = "suite_mismatch";
|
|
60
|
+
/** Session-specific events that extend the core AgentEvent */
|
|
61
|
+
export type AgentSessionEvent = Exclude<AgentEvent, {
|
|
62
|
+
type: "agent_end";
|
|
63
|
+
}> | {
|
|
64
|
+
type: "agent_end";
|
|
65
|
+
messages: AgentMessage[];
|
|
66
|
+
willRetry: boolean;
|
|
67
|
+
} | {
|
|
68
|
+
type: "agent_settled";
|
|
69
|
+
} | {
|
|
70
|
+
type: "queue_update";
|
|
71
|
+
steering: readonly string[];
|
|
72
|
+
followUp: readonly string[];
|
|
73
|
+
} | {
|
|
74
|
+
type: "compaction_start";
|
|
75
|
+
reason: "manual" | "threshold" | "overflow";
|
|
76
|
+
} | {
|
|
77
|
+
type: "entry_appended";
|
|
78
|
+
entry: SessionEntry;
|
|
79
|
+
} | {
|
|
80
|
+
type: "session_info_changed";
|
|
81
|
+
name: string | undefined;
|
|
82
|
+
} | {
|
|
83
|
+
type: "thinking_level_changed";
|
|
84
|
+
level: ThinkingLevel;
|
|
85
|
+
} | {
|
|
86
|
+
type: "compaction_end";
|
|
87
|
+
reason: "manual" | "threshold" | "overflow";
|
|
88
|
+
result: CompactionResult | undefined;
|
|
89
|
+
aborted: boolean;
|
|
90
|
+
willRetry: boolean;
|
|
91
|
+
errorMessage?: string;
|
|
92
|
+
} | {
|
|
93
|
+
type: "auto_retry_start";
|
|
94
|
+
attempt: number;
|
|
95
|
+
maxAttempts: number;
|
|
96
|
+
delayMs: number;
|
|
97
|
+
errorMessage: string;
|
|
98
|
+
} | {
|
|
99
|
+
type: "auto_retry_end";
|
|
100
|
+
success: boolean;
|
|
101
|
+
attempt: number;
|
|
102
|
+
finalError?: string;
|
|
103
|
+
} | {
|
|
104
|
+
type: "summarization_retry_scheduled";
|
|
105
|
+
attempt: number;
|
|
106
|
+
maxAttempts: number;
|
|
107
|
+
delayMs: number;
|
|
108
|
+
errorMessage: string;
|
|
109
|
+
} | {
|
|
110
|
+
type: "summarization_retry_attempt_start";
|
|
111
|
+
source: "branchSummary";
|
|
112
|
+
} | {
|
|
113
|
+
type: "summarization_retry_attempt_start";
|
|
114
|
+
source: "compaction";
|
|
115
|
+
reason: "manual" | "threshold" | "overflow";
|
|
116
|
+
} | {
|
|
117
|
+
type: "summarization_retry_finished";
|
|
118
|
+
source: {
|
|
119
|
+
source: "branchSummary";
|
|
120
|
+
} | {
|
|
121
|
+
source: "compaction";
|
|
122
|
+
reason: "manual" | "threshold" | "overflow";
|
|
123
|
+
};
|
|
124
|
+
attempts: readonly SummaryAttemptRecordV1[];
|
|
125
|
+
} | {
|
|
126
|
+
type: "bash_execution_update";
|
|
127
|
+
id?: string;
|
|
128
|
+
delta: string;
|
|
129
|
+
} | CapabilityCommandResultEvent;
|
|
130
|
+
/** Result returned by a capability command, rendered by each host without TUI coupling. */
|
|
131
|
+
export type CapabilityCommandResultEvent = {
|
|
132
|
+
type: "capability_command_result";
|
|
133
|
+
command: string;
|
|
134
|
+
source: string;
|
|
135
|
+
result: CapabilityCommandResult;
|
|
136
|
+
};
|
|
137
|
+
/** Listener function for agent session events */
|
|
138
|
+
export type AgentSessionEventListener = (event: AgentSessionEvent) => void;
|
|
139
|
+
/**
|
|
140
|
+
* Listener for each output artifact committed through this session's capability
|
|
141
|
+
* runtime. Host adapters mirror the payload into durable storage; the runtime
|
|
142
|
+
* itself stays storage-agnostic. `bytes` is the live buffer shared with the
|
|
143
|
+
* in-memory artifact store: listeners must treat it as read-only.
|
|
144
|
+
*/
|
|
145
|
+
export type OutputArtifactCommitListener = (artifact: {
|
|
146
|
+
readonly ref: OutputArtifactRef;
|
|
147
|
+
readonly bytes: Uint8Array;
|
|
148
|
+
}) => void;
|
|
149
|
+
/**
|
|
150
|
+
* Why a turn was aborted (adapted from codex's TurnAbortReason,
|
|
151
|
+
* protocol.rs:4173): "interrupted" is host/user intent, "replaced" is session
|
|
152
|
+
* teardown/reload. codex's "budget_limited" is deliberately omitted — turn
|
|
153
|
+
* budgets cap what the agent can do, so Agent Forge does not carry the concept.
|
|
154
|
+
*/
|
|
155
|
+
export type TurnAbortReason = "interrupted" | "replaced";
|
|
156
|
+
export interface AgentSessionConfig {
|
|
157
|
+
agent: Agent;
|
|
158
|
+
sessionManager: SessionManager;
|
|
159
|
+
settingsManager: SettingsManager;
|
|
160
|
+
cwd: string;
|
|
161
|
+
/** Models to cycle through with Ctrl+P (from --models flag) */
|
|
162
|
+
scopedModels?: Array<{
|
|
163
|
+
model: Model<Api>;
|
|
164
|
+
thinkingLevel?: ThinkingLevel;
|
|
165
|
+
}>;
|
|
166
|
+
/** Resource loader for extensions, skills, prompts, themes, context files, and system prompt */
|
|
167
|
+
resourceLoader: ResourceLoader;
|
|
168
|
+
/** SDK custom tools registered outside extensions */
|
|
169
|
+
customTools?: ToolDefinition[];
|
|
170
|
+
/** Canonical model/auth runtime used by coding-agent internals. */
|
|
171
|
+
modelRuntime: ModelRuntime;
|
|
172
|
+
/** Initial active built-in tool names. Default: [read, bash, edit, write] */
|
|
173
|
+
initialActiveToolNames?: string[];
|
|
174
|
+
/** Optional allowlist of tool names. When provided, only these tool names are exposed. */
|
|
175
|
+
allowedToolNames?: string[];
|
|
176
|
+
/** Optional denylist of tool names. When provided, these tool names are not exposed. */
|
|
177
|
+
excludedToolNames?: string[];
|
|
178
|
+
/**
|
|
179
|
+
* Plugin ids whose tools register normally but stay out of the default
|
|
180
|
+
* active (prompt-visible) set; the built-in tool_search tool discovers and
|
|
181
|
+
* activates them on demand. Explicit activation (allowlist, SDK, or
|
|
182
|
+
* setActiveTools) overrides the deferral.
|
|
183
|
+
*/
|
|
184
|
+
deferredToolPluginIds?: readonly string[];
|
|
185
|
+
/**
|
|
186
|
+
* Override base tools (useful for custom runtimes).
|
|
187
|
+
*
|
|
188
|
+
* These are synthesized into minimal ToolDefinitions internally so AgentSession can keep
|
|
189
|
+
* a definition-first registry even when callers provide plain AgentTool instances.
|
|
190
|
+
*/
|
|
191
|
+
baseToolsOverride?: Record<string, AgentTool>;
|
|
192
|
+
/**
|
|
193
|
+
* Bootstrap plugin ids to SKIP at session construction (宪法 §1: bootstrap
|
|
194
|
+
* 插件可禁用)。Id values are the exported BOOTSTRAP_*_PLUGIN_ID constants
|
|
195
|
+
* ("agent-forge.bootstrap-tools" etc.). A disabled bootstrap plugin leaves
|
|
196
|
+
* its surface absent — visible via plugin rejections/diagnostics, never a
|
|
197
|
+
* silent kernel downgrade.
|
|
198
|
+
*/
|
|
199
|
+
disabledBootstrapPlugins?: readonly string[];
|
|
200
|
+
/** Session start metadata dispatched to the capability lifecycle on session start. */
|
|
201
|
+
sessionStartEvent?: SessionStartMetadata;
|
|
202
|
+
/** Core capability mode; defaults to full-control for compatibility. */
|
|
203
|
+
capabilityMode?: HostMode;
|
|
204
|
+
/** Optional external context strategy name. Missing registrations fail at request time. */
|
|
205
|
+
contextStrategyName?: string;
|
|
206
|
+
/** Optional retry policy supplied by a capability plugin. Missing registrations fail when a retry is evaluated. */
|
|
207
|
+
retryPolicyName?: string;
|
|
208
|
+
/** Optional automatic compaction policy supplied by a capability plugin. */
|
|
209
|
+
compactionPolicyName?: string;
|
|
210
|
+
/** Optional provider overflow policy supplied by a capability plugin. */
|
|
211
|
+
overflowPolicyName?: string;
|
|
212
|
+
/** Optional branch summary policy supplied by a capability plugin. */
|
|
213
|
+
branchSummaryPolicyName?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Optional post-run continuation strategy supplied by a capability plugin.
|
|
216
|
+
* Missing registrations fall back to the default continuation behavior.
|
|
217
|
+
*/
|
|
218
|
+
runLoopStrategyName?: string;
|
|
219
|
+
/** Host adapter for isolated child agent tasks. Omitted hosts do not expose the agents capability. */
|
|
220
|
+
agentTaskAdapter?: AgentTaskAdapter;
|
|
221
|
+
/**
|
|
222
|
+
* Durable replay channel for agent task terminal outcomes (agent-result-replay-v1).
|
|
223
|
+
* Only meaningful alongside `agentTaskAdapter` (the replay feature requires the
|
|
224
|
+
* agents capability); stored on the instance so runtime rebuilds (reload) keep
|
|
225
|
+
* the wiring. The host owns the writer claim lifecycle.
|
|
226
|
+
*/
|
|
227
|
+
agentTaskResults?: {
|
|
228
|
+
readonly store: DurableServiceV1;
|
|
229
|
+
readonly writerId: string;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Bounded read-only reader for persisted subagent session transcripts (D-060 S3).
|
|
233
|
+
* Only meaningful alongside `agentTaskAdapter`; the host enforces scoping (a
|
|
234
|
+
* session may only read transcripts whose parent is itself) by returning
|
|
235
|
+
* undefined for anything out of scope.
|
|
236
|
+
*/
|
|
237
|
+
agentSessionReader?: (sessionId: string) => Promise<AgentTaskSessionViewV1 | undefined>;
|
|
238
|
+
/**
|
|
239
|
+
* Lister for this session's own subagent session summaries, newest first
|
|
240
|
+
* (D-060 model-face inventory). Only meaningful alongside `agentTaskAdapter`;
|
|
241
|
+
* the host scopes it to this session's children.
|
|
242
|
+
*/
|
|
243
|
+
agentSessionLister?: () => Promise<AgentTaskSessionSummaryV1[]>;
|
|
244
|
+
/** Host adapter for the versioned AgentDefinition/AgentInstance facade. */
|
|
245
|
+
agentComposition?: AgentCompositionAPI;
|
|
246
|
+
/** Host adapter for cancellable interaction tasks. Omitted hosts do not expose the interaction capability. */
|
|
247
|
+
interactionHost?: InteractionHostV1;
|
|
248
|
+
/**
|
|
249
|
+
* Session-nature orientation text (suite persona, 设计 §6.2). Kept on the
|
|
250
|
+
* session so every system prompt rebuild (tool-set changes, extension
|
|
251
|
+
* resource refreshes) re-injects it.
|
|
252
|
+
*/
|
|
253
|
+
orientationPrompt?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Optional durable preference card injected right after the persona on
|
|
256
|
+
* every system prompt rebuild (kept on the session like
|
|
257
|
+
* {@link orientationPrompt}). The first-party memory plugin stopped using
|
|
258
|
+
* this channel when it moved into its own package (D-075 S4 fourth batch —
|
|
259
|
+
* its assistant card now rides the transformContext loop hook); the field
|
|
260
|
+
* stays a generic host-assembly face for embedders with their own card.
|
|
261
|
+
*/
|
|
262
|
+
preferenceCard?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Optional filter applied to the legacy capability-plugin skill surface
|
|
265
|
+
* (`runtime.listSkills()`) after duplicate-name exclusion. Default:
|
|
266
|
+
* identity (no filtering). The suite assembler wires filterSuiteSkills
|
|
267
|
+
* here; the session itself stays suite-unaware.
|
|
268
|
+
*/
|
|
269
|
+
capabilitySkillsFilter?: (skills: Skill[]) => Skill[];
|
|
270
|
+
/**
|
|
271
|
+
* 宿主进程日志器(设计 §5):注入后插件日志镜像、内建能力装载失败等会话级
|
|
272
|
+
* 事实落进程日志;缺省 = 宿主显式关闭进程日志(显式契约,非默认降级),
|
|
273
|
+
* 所有依赖它的打点为 no-op。
|
|
274
|
+
*/
|
|
275
|
+
hostLogger?: HostLogger;
|
|
276
|
+
/**
|
|
277
|
+
* 插件日志镜像共享 ref(会话轨迹 plugin.log,设计 §7.2):装配域 observability
|
|
278
|
+
* 插件工厂创建时写入镜像门面方法、插件 dispose 时置空;runtime 日志 sink 在
|
|
279
|
+
* 每条插件日志上先经它镜像进轨迹,再按级别落 hostLogger。
|
|
280
|
+
* 装配域写入、会话生命周期持有的可变共享 ref;空 = 无镜像(no-op)。
|
|
281
|
+
*/
|
|
282
|
+
logRecordMirrorRef?: {
|
|
283
|
+
current?: (record: LoggerRecord) => void;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* /metrics 命令的数据源共享 ref(observability 插件工厂创建时写入
|
|
287
|
+
* plugin.getMetrics、dispose 时置空;宿主装配完成后读取接进命令 options)。
|
|
288
|
+
* 空 = 插件未挂载(/metrics 显示未装配警告)。
|
|
289
|
+
*/
|
|
290
|
+
observabilityGetMetricsRef?: {
|
|
291
|
+
current?: ObservabilityPlugin["getMetrics"];
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Host agent directory (D-075 S4 second batch): surfaced to capability
|
|
295
|
+
* plugins as `api.host.agentDir` so disk-state plugins (e.g. the
|
|
296
|
+
* session-share config channel) can locate `<agentDir>/capabilities/`
|
|
297
|
+
* files. Absent on hosts without an agent dir.
|
|
298
|
+
*/
|
|
299
|
+
agentDir?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Subagent communication wiring (D-075 S4 third batch): surfaced to
|
|
302
|
+
* capability plugins as `api.host.communication`. The parent assembly
|
|
303
|
+
* injects `drainEscalations`; child (leaf) assemblies receive the
|
|
304
|
+
* post/drainInbox closures with the child identity bound by the parent
|
|
305
|
+
* scope. Absent = the delegation plugins stay default-off (D-060 S4).
|
|
306
|
+
*/
|
|
307
|
+
communication?: SubagentCommunicationWiringV1;
|
|
308
|
+
/**
|
|
309
|
+
* Turn-scoped host context (D-075 S4 third batch): surfaced to capability
|
|
310
|
+
* plugins as `api.host.turnContext`. `backgroundDigestSink` receives the
|
|
311
|
+
* bounded JSON digest line of each settled background delegation;
|
|
312
|
+
* `getTurnCorrelationId` returns the parent turn's correlation id at
|
|
313
|
+
* submission time. Absent = no push notification or turn-lineage
|
|
314
|
+
* attribution for background delegations.
|
|
315
|
+
*/
|
|
316
|
+
turnContext?: {
|
|
317
|
+
backgroundDigestSink?: (line: string) => void;
|
|
318
|
+
getTurnCorrelationId?: () => string | undefined;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Role ids associated with the active suite (D-075 S4 third batch):
|
|
322
|
+
* surfaced to capability plugins as `api.host.roleAssociations`. Role
|
|
323
|
+
* definitions are disk-only (`<agentDir>/roles/<id>.json`); only
|
|
324
|
+
* associated ids surface in the delegation tool menu. Absent = no roles.
|
|
325
|
+
*/
|
|
326
|
+
roleAssociations?: readonly string[];
|
|
327
|
+
/**
|
|
328
|
+
* Memory storage components (D-075 S4 fourth batch): surfaced to capability
|
|
329
|
+
* plugins as `api.host.memoryStorage`. The first-party memory plugin binds
|
|
330
|
+
* the injected store/ledger factories and vector components in place of
|
|
331
|
+
* its built-in defaults. Absent = the plugin runs its own local
|
|
332
|
+
* implementation.
|
|
333
|
+
*/
|
|
334
|
+
memoryStorage?: MemoryStorageComponentsV1;
|
|
335
|
+
/**
|
|
336
|
+
* Host trace service (D-075 S4 second batch): injected into the capability
|
|
337
|
+
* runtime as `api.trace`/`api.traceSinkOptions` so the installed
|
|
338
|
+
* observability package binds its trace sink; absent = plugins stay
|
|
339
|
+
* trace-free.
|
|
340
|
+
*/
|
|
341
|
+
traceService?: TraceServiceV1;
|
|
342
|
+
}
|
|
343
|
+
/** Options for AgentSession.prompt() */
|
|
344
|
+
export interface PromptOptions {
|
|
345
|
+
/** Whether to dispatch extension commands and expand skill commands and prompt templates (default: true) */
|
|
346
|
+
expandPromptTemplates?: boolean;
|
|
347
|
+
/** Image attachments */
|
|
348
|
+
images?: ImageContent[];
|
|
349
|
+
/** When streaming, how to queue the message: "steer" (interrupt) or "followUp" (wait). Required if streaming. */
|
|
350
|
+
streamingBehavior?: "steer" | "followUp";
|
|
351
|
+
/** Source of the input, reported in the input.received lifecycle facts. Defaults to "interactive". */
|
|
352
|
+
source?: InputSource;
|
|
353
|
+
/** Internal hook used by RPC mode to observe prompt preflight acceptance or rejection. */
|
|
354
|
+
preflightResult?: (success: boolean) => void;
|
|
355
|
+
}
|
|
356
|
+
/** Options for model/thinking mutations. */
|
|
357
|
+
export interface ModelMutationOptions {
|
|
358
|
+
/** Persist the new value to global defaults. Defaults to session-only. */
|
|
359
|
+
persist?: boolean;
|
|
360
|
+
}
|
|
361
|
+
/** Result from cycleModel() */
|
|
362
|
+
export interface ModelCycleResult {
|
|
363
|
+
model: Model<Api>;
|
|
364
|
+
thinkingLevel: ThinkingLevel;
|
|
365
|
+
/** Whether cycling through scoped models (--models flag) or all available */
|
|
366
|
+
isScoped: boolean;
|
|
367
|
+
}
|
|
368
|
+
/** Session statistics for /session command */
|
|
369
|
+
export interface SessionStats {
|
|
370
|
+
sessionFile: string | undefined;
|
|
371
|
+
sessionId: string;
|
|
372
|
+
userMessages: number;
|
|
373
|
+
assistantMessages: number;
|
|
374
|
+
toolCalls: number;
|
|
375
|
+
toolResults: number;
|
|
376
|
+
totalMessages: number;
|
|
377
|
+
tokens: {
|
|
378
|
+
input: number;
|
|
379
|
+
output: number;
|
|
380
|
+
cacheRead: number;
|
|
381
|
+
cacheWrite: number;
|
|
382
|
+
total: number;
|
|
383
|
+
};
|
|
384
|
+
cost: number;
|
|
385
|
+
contextUsage?: ContextUsage;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Core session orchestration adapter.
|
|
389
|
+
*
|
|
390
|
+
* The stable facade `CodingAgentFacadeV1` (docs/design/稳定门面统一入口设计.md)
|
|
391
|
+
* is the only supported consumption surface for product hosts. Direct
|
|
392
|
+
* consumption of this class is limited to registered carve-outs
|
|
393
|
+
* (tui-private-path-contract.test.ts allowlists and the §2.7/§2.9 deferred
|
|
394
|
+
* registrations in the design doc).
|
|
395
|
+
*
|
|
396
|
+
* @internal
|
|
397
|
+
*/
|
|
398
|
+
export declare class AgentSession {
|
|
399
|
+
readonly agent: Agent;
|
|
400
|
+
readonly sessionManager: SessionManager;
|
|
401
|
+
readonly settingsManager: SettingsManager;
|
|
402
|
+
private _scopedModels;
|
|
403
|
+
private _unsubscribeAgent?;
|
|
404
|
+
private _eventListeners;
|
|
405
|
+
private _isAgentRunActive;
|
|
406
|
+
private _idleWaitPromise;
|
|
407
|
+
private _resolveIdleWait;
|
|
408
|
+
/** Tracks pending steering messages for UI display. Removed when delivered. */
|
|
409
|
+
private _steeringMessages;
|
|
410
|
+
/** Tracks pending follow-up messages for UI display. Removed when delivered. */
|
|
411
|
+
private _followUpMessages;
|
|
412
|
+
/** Messages queued to be included with the next user prompt as context ("asides"). */
|
|
413
|
+
private _pendingNextTurnMessages;
|
|
414
|
+
/** Context-only custom messages queued during a run, flushed once the current turn's tool results are in. */
|
|
415
|
+
private _pendingCustomMessages;
|
|
416
|
+
/** Serializes manual and automatic compaction, including their projections. */
|
|
417
|
+
private _compactionQueue;
|
|
418
|
+
private _compactionAbortController;
|
|
419
|
+
private _autoCompactionAbortController;
|
|
420
|
+
private _overflowRecoveryAttempted;
|
|
421
|
+
private _branchSummaryAbortController;
|
|
422
|
+
private _branchSummaryPromise;
|
|
423
|
+
private _resolveBranchSummaryPromise;
|
|
424
|
+
private _retryAbortController;
|
|
425
|
+
/** Cancellation boundary for retry/overflow policy decisions in the active agent loop. */
|
|
426
|
+
private _policyDecisionAbortController;
|
|
427
|
+
private _retryAttempt;
|
|
428
|
+
/** Cancellation signal for the capability command currently executing through prompt(). */
|
|
429
|
+
private _commandAbortController;
|
|
430
|
+
/**
|
|
431
|
+
* Parent-session cancel fence for agent tasks (D-044 §4.2). Consumed once
|
|
432
|
+
* per task creation through the runtime's `parentSignal` getter; replaced
|
|
433
|
+
* after every abort/runtime rebuild so later tasks bind to a fresh signal.
|
|
434
|
+
*/
|
|
435
|
+
private _agentTaskScopeAbortController;
|
|
436
|
+
private _activeCapabilityCommand;
|
|
437
|
+
private _activeCompactionPromise;
|
|
438
|
+
/** Prevents new mutable work from entering while the session is being replaced. */
|
|
439
|
+
private _reloadInProgress;
|
|
440
|
+
/** Monotonic committed reload generation, distinct from disposal and bash fences. */
|
|
441
|
+
private _reloadGeneration;
|
|
442
|
+
/** Generation fence for context projections that may outlive a runtime replacement. */
|
|
443
|
+
private _contextEpoch;
|
|
444
|
+
private _contextTransitionAbortController;
|
|
445
|
+
/** Serializes context transitions and lets reload/dispose drain them before teardown. */
|
|
446
|
+
private _activeContextTransition;
|
|
447
|
+
/** Monotonic revision for the public context snapshot/commit facade. */
|
|
448
|
+
private _contextRevision;
|
|
449
|
+
/** Serializes public context commits so expectedRevision is a real CAS fence. */
|
|
450
|
+
private _contextCommitQueue;
|
|
451
|
+
private readonly _bashAbortControllers;
|
|
452
|
+
/** Whole bash operations, including their final session-history write. */
|
|
453
|
+
private readonly _activeBashPromises;
|
|
454
|
+
/** Fences mode-level bash results captured before a runtime replacement. */
|
|
455
|
+
private _bashEpoch;
|
|
456
|
+
private _pendingBashMessages;
|
|
457
|
+
private _turnIndex;
|
|
458
|
+
private _resourceLoader;
|
|
459
|
+
private _customTools;
|
|
460
|
+
private _deferredToolPluginIds;
|
|
461
|
+
/** Abort reason supplied to the in-flight abort(); consumed by the interruption marker. */
|
|
462
|
+
private _pendingAbortReason;
|
|
463
|
+
/** Set when the in-flight prompt run produced an aborted terminal assistant turn. */
|
|
464
|
+
private _currentRunAborted;
|
|
465
|
+
/** Most recent abort reason; persists after abort() returns so prompt() can report it. */
|
|
466
|
+
private _lastAbortReason;
|
|
467
|
+
private _baseToolDefinitions;
|
|
468
|
+
private _baseToolSources;
|
|
469
|
+
private _capabilityRuntime?;
|
|
470
|
+
/** Output-artifact commit listeners registered through {@link onOutputArtifactCommit}. */
|
|
471
|
+
private readonly _outputArtifactCommitListeners;
|
|
472
|
+
/**
|
|
473
|
+
* Stable commit dispatcher handed to every CapabilityRuntime this session
|
|
474
|
+
* builds; listeners registered on the session survive runtime rebuilds.
|
|
475
|
+
*/
|
|
476
|
+
private readonly _dispatchOutputArtifactCommit;
|
|
477
|
+
private _bootstrapToolsHandle?;
|
|
478
|
+
private _bootstrapSkillsHandle?;
|
|
479
|
+
private _bootstrapRetryHandle?;
|
|
480
|
+
private _bootstrapCompactionHandle?;
|
|
481
|
+
private _bootstrapBranchSummaryHandle?;
|
|
482
|
+
private _bootstrapOverflowHandle?;
|
|
483
|
+
private _bootstrapAgentLoopHandle?;
|
|
484
|
+
private _bootstrapLifecycleHandle?;
|
|
485
|
+
private _capabilityPlugins;
|
|
486
|
+
private _inlineCapabilityPlugins;
|
|
487
|
+
private _isDisposingCapabilityPlugins;
|
|
488
|
+
/**
|
|
489
|
+
* 工具表变更钩子的两道门(见 _buildRuntime 的 onToolRegistryChange):
|
|
490
|
+
* - `_toolRegistryHookReady`:构造期门。_buildRuntime 求值阶段 bootstrap 插件
|
|
491
|
+
* 注册即触发 notify,而此时内部状态未就绪(观察回调会抛),构造完成后既有
|
|
492
|
+
* 边界(_buildRuntime 尾部的显式 sync + refresh)已兜底,跳过不丢状态。
|
|
493
|
+
* - `_suspendToolRegistryHookRefresh`:插件卸载恢复链的中间态挂起位。恢复过程
|
|
494
|
+
* 会先删新注册、后恢复被替换者,中间 notify 的工具表是暂态(活跃名暂时缺
|
|
495
|
+
* 席);该窗口内刷新会把缺席名从活动集永久剔除。装卸边界在 dispose 完成后
|
|
496
|
+
* 自行兜底刷新。
|
|
497
|
+
*/
|
|
498
|
+
private _suspendToolRegistryHookRefresh;
|
|
499
|
+
private _toolRegistryHookReady;
|
|
500
|
+
private _disposePromise?;
|
|
501
|
+
private _cwd;
|
|
502
|
+
private _initialActiveToolNames?;
|
|
503
|
+
private _allowedToolNames?;
|
|
504
|
+
private _excludedToolNames?;
|
|
505
|
+
private _baseToolsOverride?;
|
|
506
|
+
private _disabledBootstrapPlugins?;
|
|
507
|
+
private _sessionStartEvent;
|
|
508
|
+
private _capabilityMode;
|
|
509
|
+
private _contextStrategyName?;
|
|
510
|
+
private _retryPolicyName;
|
|
511
|
+
private _compactionPolicyName;
|
|
512
|
+
private _branchSummaryPolicyName;
|
|
513
|
+
private _overflowPolicyName;
|
|
514
|
+
/** Post-run continuation strategy name; missing registrations fall back to the host candidate. */
|
|
515
|
+
private _runLoopStrategyName;
|
|
516
|
+
/**
|
|
517
|
+
* Internal loop-executor seam (D-043 G3); no public config, distinct from
|
|
518
|
+
* runLoopStrategyName (a per-continuation veto policy).
|
|
519
|
+
*/
|
|
520
|
+
private _loopExecutor;
|
|
521
|
+
/** The agent's construction-time prepare adapter, captured once by the loop wiring. */
|
|
522
|
+
private _initialPrepareNextTurn?;
|
|
523
|
+
private _agentTaskAdapter?;
|
|
524
|
+
private _agentTaskResults?;
|
|
525
|
+
private _agentSessionReader?;
|
|
526
|
+
private _agentSessionLister?;
|
|
527
|
+
private _agentComposition?;
|
|
528
|
+
private _interactionHost?;
|
|
529
|
+
private _modelRuntime;
|
|
530
|
+
private _modelStreamCounter;
|
|
531
|
+
private _modelStreamState;
|
|
532
|
+
/** Correlation id shared by every in-turn lifecycle dispatch of the active prompt run. */
|
|
533
|
+
private _turnCorrelationId;
|
|
534
|
+
private _turnCorrelationCounter;
|
|
535
|
+
private _toolRegistry;
|
|
536
|
+
private _toolDefinitions;
|
|
537
|
+
private _toolPromptSnippets;
|
|
538
|
+
private _toolPromptGuidelines;
|
|
539
|
+
private _baseSystemPrompt;
|
|
540
|
+
private _baseSystemPromptOptions;
|
|
541
|
+
private _systemPromptOverride?;
|
|
542
|
+
private _orientationPrompt?;
|
|
543
|
+
private _preferenceCard?;
|
|
544
|
+
private _capabilitySkillsFilter?;
|
|
545
|
+
private _hostLogger?;
|
|
546
|
+
private _logRecordMirrorRef?;
|
|
547
|
+
private _observabilityGetMetricsRef?;
|
|
548
|
+
private _agentDir?;
|
|
549
|
+
private _communication?;
|
|
550
|
+
private _turnContext?;
|
|
551
|
+
private _roleAssociations?;
|
|
552
|
+
private _memoryStorage?;
|
|
553
|
+
private _traceService?;
|
|
554
|
+
constructor(config: AgentSessionConfig);
|
|
555
|
+
/**
|
|
556
|
+
* 当前回合的 correlation id(会话轨迹设计 §4.2):活跃 prompt 回合内所有
|
|
557
|
+
* lifecycle 信封携带的同一 correlationId(与信封同源:loop-runner 在回合
|
|
558
|
+
* 开始写入 `_turnCorrelationId`、回合结束清除);空闲时为 undefined。只读
|
|
559
|
+
* 事实,供宿主适配器做回合级关联(如 observability 的 llm.request traceId)。
|
|
560
|
+
*/
|
|
561
|
+
getTurnCorrelationId(): string | undefined;
|
|
562
|
+
/**
|
|
563
|
+
* 宿主 digest sink 面(第 4 期轨迹闭合):把一条后台委派结算行投递为
|
|
564
|
+
* agent.task.settled@1(父会话 sessionId 由派发助手补)。派发是非致命
|
|
565
|
+
* fire-and-forget;dispose 后 runtime 已 revoke,助手 no-op。
|
|
566
|
+
*/
|
|
567
|
+
dispatchAgentTaskSettled(facts: {
|
|
568
|
+
taskSessionId: string;
|
|
569
|
+
taskId: string;
|
|
570
|
+
status: AgentTaskSettledEventDataV1["status"];
|
|
571
|
+
reasonCode?: string;
|
|
572
|
+
}): void;
|
|
573
|
+
get modelRuntime(): ModelRuntime;
|
|
574
|
+
/** Internal facade passed to the agent-session-* submodule functions. */
|
|
575
|
+
private get _internal();
|
|
576
|
+
/**
|
|
577
|
+
* Wire the default main loop onto the Agent instance.
|
|
578
|
+
*
|
|
579
|
+
* The four hook positions are composed from the runtime's loop-hook chains.
|
|
580
|
+
* Chains are read at execution time, so extension reload swaps in the new
|
|
581
|
+
* runtime without reinstalling the wiring. The legacy extension gate and the
|
|
582
|
+
* agent's construction-time context transform stay as chain heads (host
|
|
583
|
+
* wiring, not plugin capabilities); the default links come from the
|
|
584
|
+
* bootstrap agent-loop plugin and third-party links chain after them in
|
|
585
|
+
* registration order.
|
|
586
|
+
*/
|
|
587
|
+
private _wireDefaultLoop;
|
|
588
|
+
/** Session-bound host state the default loop links read at execution time. */
|
|
589
|
+
private _createLoopWiring;
|
|
590
|
+
private _compactBeforeNextAssistantResponse;
|
|
591
|
+
/** Emit an event to all listeners */
|
|
592
|
+
private _emit;
|
|
593
|
+
private _emitQueueUpdate;
|
|
594
|
+
private _getIdleWaitPromise;
|
|
595
|
+
private _resolveIdleWaitIfIdle;
|
|
596
|
+
private _emitAgentSettled;
|
|
597
|
+
private _lastAssistantMessage;
|
|
598
|
+
private _pendingRetryDecision;
|
|
599
|
+
/** Internal handler for agent events - shared by subscribe and reconnect */
|
|
600
|
+
private _handleAgentEvent;
|
|
601
|
+
private _dispatchModelStreamLifecycle;
|
|
602
|
+
private _willRetryAfterAgentEnd;
|
|
603
|
+
/** Find the last assistant message in agent state (including aborted ones) */
|
|
604
|
+
private _findLastAssistantMessage;
|
|
605
|
+
private _emitLifecycleEvents;
|
|
606
|
+
/**
|
|
607
|
+
* Subscribe to agent events.
|
|
608
|
+
* Session persistence is handled internally (saves messages on message_end).
|
|
609
|
+
* Multiple listeners can be added. Returns unsubscribe function for this listener.
|
|
610
|
+
*/
|
|
611
|
+
subscribe(listener: AgentSessionEventListener): () => void;
|
|
612
|
+
/** Disconnect from agent events during disposal. */
|
|
613
|
+
private _disconnectFromAgent;
|
|
614
|
+
/**
|
|
615
|
+
* Remove all listeners and disconnect from agent.
|
|
616
|
+
* Call this when completely done with the session.
|
|
617
|
+
*/
|
|
618
|
+
dispose(): Promise<void>;
|
|
619
|
+
/** Full agent state */
|
|
620
|
+
get state(): AgentState;
|
|
621
|
+
/** Current model (may be undefined if not yet selected) */
|
|
622
|
+
get model(): Model<Api> | undefined;
|
|
623
|
+
/** Current thinking level */
|
|
624
|
+
get thinkingLevel(): ThinkingLevel;
|
|
625
|
+
/** Whether the session is currently processing an agent run or post-run continuation. */
|
|
626
|
+
get isStreaming(): boolean;
|
|
627
|
+
/** Whether the session has no active agent run, retry, compaction, branch summarization, or queued continuation. */
|
|
628
|
+
get isIdle(): boolean;
|
|
629
|
+
/** Current effective system prompt (includes any per-turn extension modifications) */
|
|
630
|
+
get systemPrompt(): string;
|
|
631
|
+
/** Current retry attempt (0 if not retrying) */
|
|
632
|
+
get retryAttempt(): number;
|
|
633
|
+
/**
|
|
634
|
+
* Get the names of currently active tools.
|
|
635
|
+
* Returns the names of tools currently set on the agent.
|
|
636
|
+
*/
|
|
637
|
+
getActiveToolNames(): string[];
|
|
638
|
+
/** Public capability runtime for external orchestration and plugin composition. */
|
|
639
|
+
getCapabilityRuntime(): CapabilityRuntime;
|
|
640
|
+
/**
|
|
641
|
+
* Observes every output artifact committed through this session's capability
|
|
642
|
+
* runtime. Host adapters mirror the payload into durable storage; the runtime
|
|
643
|
+
* itself carries no durable dependency. The registration survives runtime
|
|
644
|
+
* rebuilds (reload) because the session owns the dispatcher. Returns an
|
|
645
|
+
* unsubscribe function.
|
|
646
|
+
*/
|
|
647
|
+
onOutputArtifactCommit(listener: OutputArtifactCommitListener): () => void;
|
|
648
|
+
get isDisposed(): boolean;
|
|
649
|
+
/** Public session facade for host adapters. It never exposes SessionManager internals. */
|
|
650
|
+
getSessionAPI(): SessionAPI;
|
|
651
|
+
/** Return all currently loaded capability plugins without exposing private session state. */
|
|
652
|
+
getCapabilityPlugins(): readonly CapabilityPluginHandle[];
|
|
653
|
+
/** Name of the externally selected context strategy, when configured. */
|
|
654
|
+
get contextStrategyName(): string | undefined;
|
|
655
|
+
private _requireContextStrategy;
|
|
656
|
+
private _requireIdleContextOperation;
|
|
657
|
+
private _beginContextTransitionFence;
|
|
658
|
+
private _isContextTransitionCurrent;
|
|
659
|
+
private _assertContextTransitionCurrent;
|
|
660
|
+
private _enqueueContextTransition;
|
|
661
|
+
private _copyContextMessages;
|
|
662
|
+
private _applyContextTransition;
|
|
663
|
+
private _dispatchContextReplacedLifecycle;
|
|
664
|
+
private _dispatchModelResponseLifecycle;
|
|
665
|
+
private _dispatchToolCommitLifecycle;
|
|
666
|
+
private _dispatchToolResultLifecycle;
|
|
667
|
+
private _dispatchSessionReloadLifecycle;
|
|
668
|
+
/** Snapshot the current session messages with the configured context strategy. */
|
|
669
|
+
snapshotContext(): Promise<unknown>;
|
|
670
|
+
/** Restore session messages from a strategy snapshot. */
|
|
671
|
+
restoreContext(snapshot: unknown): Promise<AgentMessage[]>;
|
|
672
|
+
/** Replace session messages through the configured context strategy. */
|
|
673
|
+
replaceContext(context: AgentMessage[]): Promise<AgentMessage[]>;
|
|
674
|
+
private _restoreContextTransition;
|
|
675
|
+
private _trackCapabilityPlugin;
|
|
676
|
+
/** Load an external capability manifest through the same runtime as first-party plugins. */
|
|
677
|
+
loadCapabilityPluginManifest(manifestPath: string, options?: {
|
|
678
|
+
readonly configOverride?: PluginConfig;
|
|
679
|
+
}): Promise<CapabilityPluginHandle>;
|
|
680
|
+
/**
|
|
681
|
+
* Load an in-memory capability plugin and attach its handle to this session.
|
|
682
|
+
* This is useful for embedders and deterministic fixtures that already own a
|
|
683
|
+
* validated manifest/factory pair; reload and dispose will release the handle.
|
|
684
|
+
*/
|
|
685
|
+
loadCapabilityPlugin(manifest: PluginManifest, factory: CapabilityPluginFactory): Promise<CapabilityPluginHandle>;
|
|
686
|
+
/**
|
|
687
|
+
* Get all configured tools with name, description, parameter schema, prompt guidelines, and source metadata.
|
|
688
|
+
*/
|
|
689
|
+
getAllTools(): ToolInfo[];
|
|
690
|
+
getToolDefinition(name: string): ToolDefinition | undefined;
|
|
691
|
+
/**
|
|
692
|
+
* Set active tools by name.
|
|
693
|
+
* Only tools in the registry can be enabled. Unknown tool names are ignored.
|
|
694
|
+
* Also rebuilds the system prompt to reflect the new tool set.
|
|
695
|
+
* Changes take effect on the next agent turn.
|
|
696
|
+
*/
|
|
697
|
+
setActiveToolsByName(toolNames: string[]): void;
|
|
698
|
+
/** Whether compaction or branch summarization is currently running */
|
|
699
|
+
get isCompacting(): boolean;
|
|
700
|
+
/** All messages including custom types like BashExecutionMessage */
|
|
701
|
+
get messages(): AgentMessage[];
|
|
702
|
+
/** Current steering mode */
|
|
703
|
+
get steeringMode(): "all" | "one-at-a-time";
|
|
704
|
+
/** Current follow-up mode */
|
|
705
|
+
get followUpMode(): "all" | "one-at-a-time";
|
|
706
|
+
/** Current session file path, or undefined if sessions are disabled */
|
|
707
|
+
get sessionFile(): string | undefined;
|
|
708
|
+
/** Current session ID */
|
|
709
|
+
get sessionId(): string;
|
|
710
|
+
/**
|
|
711
|
+
* /metrics 数据源共享 ref(config 原样透出;observability 插件工厂挂载时写入
|
|
712
|
+
* plugin.getMetrics、dispose 时置空)。宿主(TUI/RPC)经它惰性解引用接进
|
|
713
|
+
* 命令 options——空 = 插件未挂载。
|
|
714
|
+
*/
|
|
715
|
+
get observabilityGetMetricsRef(): {
|
|
716
|
+
current?: ObservabilityPlugin["getMetrics"];
|
|
717
|
+
} | undefined;
|
|
718
|
+
/** Current session display name, if set */
|
|
719
|
+
get sessionName(): string | undefined;
|
|
720
|
+
/** Durable revision host fact (SessionManager entry sequence) for session boundaries. */
|
|
721
|
+
getRevision(): SessionRevisionV1;
|
|
722
|
+
/** Scoped models for cycling (from --models flag) */
|
|
723
|
+
get scopedModels(): ReadonlyArray<{
|
|
724
|
+
model: Model<Api>;
|
|
725
|
+
thinkingLevel?: ThinkingLevel;
|
|
726
|
+
}>;
|
|
727
|
+
/** Update scoped models for cycling */
|
|
728
|
+
setScopedModels(scopedModels: Array<{
|
|
729
|
+
model: Model<Api>;
|
|
730
|
+
thinkingLevel?: ThinkingLevel;
|
|
731
|
+
}>): void;
|
|
732
|
+
/** File-based prompt templates */
|
|
733
|
+
get promptTemplates(): ReadonlyArray<PromptTemplate>;
|
|
734
|
+
private _normalizePromptSnippet;
|
|
735
|
+
private _normalizePromptGuidelines;
|
|
736
|
+
private _rebuildSystemPrompt;
|
|
737
|
+
private _runAgentPrompt;
|
|
738
|
+
private _handlePostAgentRun;
|
|
739
|
+
private _runInputHandlers;
|
|
740
|
+
/**
|
|
741
|
+
* Send a prompt to the agent.
|
|
742
|
+
* - Handles legacy and capability plugin commands immediately, even during streaming
|
|
743
|
+
* - Expands file-based prompt templates by default
|
|
744
|
+
* - During streaming, queues via steer() or followUp() based on streamingBehavior option
|
|
745
|
+
* - Validates model and API key before sending (when not streaming)
|
|
746
|
+
* @throws Error if streaming and no streamingBehavior specified
|
|
747
|
+
* @throws Error if no model selected or no API key available (when not streaming)
|
|
748
|
+
*/
|
|
749
|
+
prompt(text: string, options?: PromptOptions): Promise<PromptOutcome>;
|
|
750
|
+
private _tryExecuteExtensionCommand;
|
|
751
|
+
/**
|
|
752
|
+
* Expand skill commands (/skill:name args) to their full content.
|
|
753
|
+
* Returns the expanded text, or the original text if not a skill command or skill not found.
|
|
754
|
+
* Emits errors via extension runner if file read fails.
|
|
755
|
+
*/
|
|
756
|
+
private _expandSkillCommand;
|
|
757
|
+
private _queueUserInput;
|
|
758
|
+
/**
|
|
759
|
+
* Queue a steering message while the agent is running.
|
|
760
|
+
* Delivered after the current assistant turn finishes executing its tool calls,
|
|
761
|
+
* before the next LLM call.
|
|
762
|
+
* Expands skill commands and prompt templates. Errors on extension commands.
|
|
763
|
+
* @param images Optional image attachments to include with the message
|
|
764
|
+
* @param options Input source; defaults to interactive
|
|
765
|
+
* @throws Error if text is an extension command
|
|
766
|
+
*/
|
|
767
|
+
steer(text: string, images?: ImageContent[], options?: {
|
|
768
|
+
source?: InputSource;
|
|
769
|
+
}): Promise<void>;
|
|
770
|
+
/**
|
|
771
|
+
* Queue a follow-up message to be processed after the agent finishes.
|
|
772
|
+
* Delivered only when agent has no more tool calls or steering messages.
|
|
773
|
+
* Expands skill commands and prompt templates. Errors on extension commands.
|
|
774
|
+
* @param images Optional image attachments to include with the message
|
|
775
|
+
* @param options Input source; defaults to interactive
|
|
776
|
+
* @throws Error if text is an extension command
|
|
777
|
+
*/
|
|
778
|
+
followUp(text: string, images?: ImageContent[], options?: {
|
|
779
|
+
source?: InputSource;
|
|
780
|
+
}): Promise<void>;
|
|
781
|
+
private _queueSteer;
|
|
782
|
+
private _queueFollowUp;
|
|
783
|
+
/**
|
|
784
|
+
* Send a custom message to the session. Creates a CustomMessageEntry.
|
|
785
|
+
*
|
|
786
|
+
* Handles four cases:
|
|
787
|
+
* - Streaming: queues message, processed when loop pulls from queue
|
|
788
|
+
* - Streaming + triggerTurn false: appended to state/session once the current turn ends
|
|
789
|
+
* - Not streaming + triggerTurn: appends to state/session, starts new turn
|
|
790
|
+
* - Not streaming + no trigger: appends to state/session, no turn
|
|
791
|
+
*
|
|
792
|
+
* @param message Custom message with customType, content, display, details
|
|
793
|
+
* @param options.triggerTurn If true and not streaming, triggers a new LLM turn
|
|
794
|
+
* @param options.deliverAs Delivery mode: "steer", "followUp", or "nextTurn"
|
|
795
|
+
*/
|
|
796
|
+
sendCustomMessage<T = unknown>(message: Pick<CustomMessage<T>, "customType" | "content" | "display" | "details">, options?: {
|
|
797
|
+
triggerTurn?: boolean;
|
|
798
|
+
deliverAs?: "steer" | "followUp" | "nextTurn";
|
|
799
|
+
}): Promise<void>;
|
|
800
|
+
private _appendCustomMessage;
|
|
801
|
+
/**
|
|
802
|
+
* Append custom messages queued while the agent was running.
|
|
803
|
+
* Called once the current turn's tool results are in agent state and session history.
|
|
804
|
+
*/
|
|
805
|
+
private _flushPendingCustomMessages;
|
|
806
|
+
/**
|
|
807
|
+
* Send a user message to the agent. Always triggers a turn.
|
|
808
|
+
* When the agent is streaming, use deliverAs to specify how to queue the message.
|
|
809
|
+
*
|
|
810
|
+
* @param content User message content (string or content array)
|
|
811
|
+
* @param options.deliverAs Delivery mode when streaming: "steer" or "followUp"
|
|
812
|
+
* @param options.expandPromptTemplates Whether to dispatch extension commands and expand skill commands and prompt templates. Default: false.
|
|
813
|
+
*/
|
|
814
|
+
sendUserMessage(content: string | (TextContent | ImageContent)[], options?: {
|
|
815
|
+
deliverAs?: "steer" | "followUp";
|
|
816
|
+
expandPromptTemplates?: boolean;
|
|
817
|
+
}): Promise<void>;
|
|
818
|
+
/**
|
|
819
|
+
* Clear all queued messages and return them.
|
|
820
|
+
* Useful for restoring to editor when user aborts.
|
|
821
|
+
* @returns Object with steering and followUp arrays
|
|
822
|
+
*/
|
|
823
|
+
clearQueue(): {
|
|
824
|
+
steering: string[];
|
|
825
|
+
followUp: string[];
|
|
826
|
+
};
|
|
827
|
+
/** Number of pending messages (includes both steering and follow-up) */
|
|
828
|
+
get pendingMessageCount(): number;
|
|
829
|
+
/** Get pending steering messages (read-only) */
|
|
830
|
+
getSteeringMessages(): readonly string[];
|
|
831
|
+
/** Get pending follow-up messages (read-only) */
|
|
832
|
+
getFollowUpMessages(): readonly string[];
|
|
833
|
+
get resourceLoader(): ResourceLoader;
|
|
834
|
+
/**
|
|
835
|
+
* Why the active turn was aborted, following codex's TurnAbortReason
|
|
836
|
+
* (protocol.rs:4173). The interruption marker's visible text stays fixed;
|
|
837
|
+
* the reason rides the marker `details` for hosts and plugins.
|
|
838
|
+
*/
|
|
839
|
+
abort(reason?: TurnAbortReason): Promise<void>;
|
|
840
|
+
/**
|
|
841
|
+
* Abort without the interruption marker; used by internal flows (compaction,
|
|
842
|
+
* teardown) that abort for their own bookkeeping. Takes no reason: the abort
|
|
843
|
+
* reason only exists where the marker is written.
|
|
844
|
+
*/
|
|
845
|
+
_abortInternal(): Promise<void>;
|
|
846
|
+
/**
|
|
847
|
+
* Append a model-visible marker after an abort that actually cut a turn
|
|
848
|
+
* short. transform-messages drops the aborted assistant message on replay,
|
|
849
|
+
* so without this marker the model has no way to learn that the
|
|
850
|
+
* interruption happened. Tool calls skipped mid-batch already carry their
|
|
851
|
+
* own persisted error results; this covers the streaming-interrupt case.
|
|
852
|
+
* The text is intentionally fixed (codex keeps INTERRUPTED_GUIDANCE stable
|
|
853
|
+
* across reasons); the abort reason rides `details` for host consumers.
|
|
854
|
+
*/
|
|
855
|
+
private _appendTurnInterruptedMarker;
|
|
856
|
+
private _abortActiveCapabilityCommand;
|
|
857
|
+
private _cancelAndDrainForReload;
|
|
858
|
+
waitForIdle(): Promise<void>;
|
|
859
|
+
private _emitModelSelect;
|
|
860
|
+
/**
|
|
861
|
+
* Set model directly.
|
|
862
|
+
* Validates that auth is configured and saves to the session transcript.
|
|
863
|
+
* Persists to global defaults only when options.persist is true.
|
|
864
|
+
* @throws Error if no auth is configured for the model
|
|
865
|
+
*/
|
|
866
|
+
setModel(model: Model<Api>, options?: ModelMutationOptions): Promise<void>;
|
|
867
|
+
private _addPersistedDefaultToNonEmptyScope;
|
|
868
|
+
/**
|
|
869
|
+
* Cycle to next/previous model.
|
|
870
|
+
* Uses scoped models (from --models flag) if available, otherwise all available models.
|
|
871
|
+
* @param direction - "forward" (default) or "backward"
|
|
872
|
+
* @returns The new model info, or undefined if only one model available
|
|
873
|
+
*/
|
|
874
|
+
cycleModel(direction?: "forward" | "backward", options?: ModelMutationOptions): Promise<ModelCycleResult | undefined>;
|
|
875
|
+
private _cycleScopedModel;
|
|
876
|
+
private _cycleAvailableModel;
|
|
877
|
+
/**
|
|
878
|
+
* Set thinking level.
|
|
879
|
+
* Clamps to model capabilities based on available thinking levels.
|
|
880
|
+
* Saves the clamped level to the session transcript only if the level actually changes.
|
|
881
|
+
* Persists the requested level to global defaults only when options.persist is true.
|
|
882
|
+
*/
|
|
883
|
+
setThinkingLevel(level: ThinkingLevel, options?: ModelMutationOptions): void;
|
|
884
|
+
/**
|
|
885
|
+
* Cycle to next thinking level.
|
|
886
|
+
* @returns New level, or undefined if model doesn't support thinking
|
|
887
|
+
*/
|
|
888
|
+
cycleThinkingLevel(options?: ModelMutationOptions): ThinkingLevel | undefined;
|
|
889
|
+
/**
|
|
890
|
+
* Get available thinking levels for current model.
|
|
891
|
+
* The provider will clamp to what the specific model supports internally.
|
|
892
|
+
*/
|
|
893
|
+
getAvailableThinkingLevels(): ThinkingLevel[];
|
|
894
|
+
/**
|
|
895
|
+
* Check if current model supports thinking/reasoning.
|
|
896
|
+
*/
|
|
897
|
+
supportsThinking(): boolean;
|
|
898
|
+
private _getThinkingLevelForModelSwitch;
|
|
899
|
+
private _clampThinkingLevel;
|
|
900
|
+
private syncQueueModesFromSettings;
|
|
901
|
+
/**
|
|
902
|
+
* Set steering message mode.
|
|
903
|
+
* Saves to settings.
|
|
904
|
+
*/
|
|
905
|
+
setSteeringMode(mode: "all" | "one-at-a-time"): void;
|
|
906
|
+
/**
|
|
907
|
+
* Set follow-up message mode.
|
|
908
|
+
* Saves to settings.
|
|
909
|
+
*/
|
|
910
|
+
setFollowUpMode(mode: "all" | "one-at-a-time"): void;
|
|
911
|
+
/** Queue compaction work so canonical commit and runtime projection stay ordered. */
|
|
912
|
+
private _enqueueCompaction;
|
|
913
|
+
private _observeLifecycleDeliveryError;
|
|
914
|
+
/**
|
|
915
|
+
* Manually compact the session context.
|
|
916
|
+
*
|
|
917
|
+
* This is the manual entry point used by `/compact`, RPC, and extensions. It is
|
|
918
|
+
* separate from automatic threshold/overflow compaction, which enters through
|
|
919
|
+
* `_checkCompaction()` and `_runAutoCompaction()`. After preparation and the
|
|
920
|
+
* `session_before_compact` hook, both paths use the selected compaction policy
|
|
921
|
+
* unless the hook cancels or supplies a custom result, then commit the result
|
|
922
|
+
* against the revision captured for that branch.
|
|
923
|
+
*
|
|
924
|
+
* Aborts the current agent operation first. Manual compaction never retries or
|
|
925
|
+
* continues the interrupted agent turn.
|
|
926
|
+
*
|
|
927
|
+
* @param customInstructions Optional instructions for the compaction summary
|
|
928
|
+
*/
|
|
929
|
+
compact(customInstructions?: string): Promise<CompactionResult | CompactionCancelledResult>;
|
|
930
|
+
private _compactInternal;
|
|
931
|
+
/**
|
|
932
|
+
* Cancel in-progress compaction (manual or auto).
|
|
933
|
+
*/
|
|
934
|
+
abortCompaction(): void;
|
|
935
|
+
/**
|
|
936
|
+
* Cancel in-progress branch summarization.
|
|
937
|
+
*/
|
|
938
|
+
abortBranchSummary(): void;
|
|
939
|
+
/**
|
|
940
|
+
* Dispatch automatic compaction after `agent_end` or before prompt submission.
|
|
941
|
+
* Manual compaction does not call this method; it enters through `compact()`.
|
|
942
|
+
*
|
|
943
|
+
* Automatic cases:
|
|
944
|
+
* 1. Overflow with retry: a context-overflow error or recoverable length stop;
|
|
945
|
+
* remove the failed assistant message, compact, and retry the turn once.
|
|
946
|
+
* 2. Overflow without retry: a successful response exceeded the configured
|
|
947
|
+
* context window; compact but preserve the completed response.
|
|
948
|
+
* 3. Threshold without retry: valid or estimated context usage crossed the
|
|
949
|
+
* configured threshold; compact without retrying the completed response.
|
|
950
|
+
*
|
|
951
|
+
* Each case calls `_runAutoCompaction()`. After preparation and the
|
|
952
|
+
* `session_before_compact` hook, that method calls the lower-level `compact()`
|
|
953
|
+
* function imported from `./compaction/index.ts`, unless the hook cancels or
|
|
954
|
+
* supplies a custom result.
|
|
955
|
+
*
|
|
956
|
+
* @param assistantMessage The assistant message to check
|
|
957
|
+
* @param skipAbortedCheck If false, include aborted messages (for pre-prompt check). Default: true
|
|
958
|
+
* @returns Whether the post-run loop should call `agent.continue()` for overflow recovery or queued messages
|
|
959
|
+
*/
|
|
960
|
+
private _checkCompaction;
|
|
961
|
+
/**
|
|
962
|
+
* Execute threshold or overflow compaction. Manual compaction uses
|
|
963
|
+
* `AgentSession.compact()` instead. Both paths use the selected compaction
|
|
964
|
+
* policy after preparation and extension interception, then commit against the
|
|
965
|
+
* branch revision captured before asynchronous work.
|
|
966
|
+
*
|
|
967
|
+
* @param reason Automatic trigger selected by `_checkCompaction()`
|
|
968
|
+
* @param willRetry Whether to continue the interrupted turn after overflow compaction
|
|
969
|
+
* @returns Whether the post-run loop should call `agent.continue()`
|
|
970
|
+
*/
|
|
971
|
+
private _runAutoCompaction;
|
|
972
|
+
/**
|
|
973
|
+
* Toggle auto-compaction setting.
|
|
974
|
+
*/
|
|
975
|
+
setAutoCompactionEnabled(enabled: boolean): void;
|
|
976
|
+
/** Whether auto-compaction is enabled */
|
|
977
|
+
get autoCompactionEnabled(): boolean;
|
|
978
|
+
/**
|
|
979
|
+
* Run the session-start boundary: dispatch session.start@1 to the capability
|
|
980
|
+
* runtime and run the resource discovery pass (contributed skills/prompts/
|
|
981
|
+
* themes). Hosts await this once after constructing (or rebinding to) a
|
|
982
|
+
* session, before the first prompt.
|
|
983
|
+
*/
|
|
984
|
+
startSession(): Promise<void>;
|
|
985
|
+
private extendResourcesFromExtensions;
|
|
986
|
+
private buildExtensionResourcePaths;
|
|
987
|
+
private getExtensionSourceLabel;
|
|
988
|
+
private _refreshToolRegistry;
|
|
989
|
+
private _syncCapabilityTools;
|
|
990
|
+
private _getCapabilitySkills;
|
|
991
|
+
private _getAvailableSkills;
|
|
992
|
+
private _validateCapabilitySkillConflicts;
|
|
993
|
+
private _refreshBootstrapSkills;
|
|
994
|
+
private _disposeCapabilityPlugins;
|
|
995
|
+
/**
|
|
996
|
+
* 插件日志记录 → 宿主进程日志(会话轨迹第 2 期,设计 §7.2):HostLogger 是
|
|
997
|
+
* debug/info/warn/error 四方法(无泛用 log),按记录级别映射调用;级别门槛由
|
|
998
|
+
* logger 自身过滤("级别沿用宿主日志级别门槛")。src 用 pluginId(宿主日志的
|
|
999
|
+
* 来源标记位);sessionId 随行。LoggerRecord 当前无已填充的 correlationId
|
|
1000
|
+
* (recordLog 不写该字段),不编造 traceId。
|
|
1001
|
+
*/
|
|
1002
|
+
private _forwardLogRecordToHost;
|
|
1003
|
+
private _buildRuntime;
|
|
1004
|
+
reload(options?: {
|
|
1005
|
+
beforeSessionStart?: () => void | Promise<void>;
|
|
1006
|
+
}): Promise<void>;
|
|
1007
|
+
/**
|
|
1008
|
+
* Check if an error is retryable (overloaded, rate limit, server errors).
|
|
1009
|
+
* Context overflow errors are NOT retryable (handled by compaction instead).
|
|
1010
|
+
*/
|
|
1011
|
+
private _isRetryableError;
|
|
1012
|
+
/**
|
|
1013
|
+
* Prepare a retryable error for continuation with exponential backoff.
|
|
1014
|
+
* @returns true if the caller should continue the agent, false otherwise
|
|
1015
|
+
*/
|
|
1016
|
+
private _prepareRetry;
|
|
1017
|
+
/**
|
|
1018
|
+
* Cancel in-progress retry.
|
|
1019
|
+
*/
|
|
1020
|
+
abortRetry(): void;
|
|
1021
|
+
/** Whether auto-retry is currently in progress */
|
|
1022
|
+
get isRetrying(): boolean;
|
|
1023
|
+
/** Whether auto-retry is enabled */
|
|
1024
|
+
get autoRetryEnabled(): boolean;
|
|
1025
|
+
/**
|
|
1026
|
+
* Toggle auto-retry setting.
|
|
1027
|
+
*/
|
|
1028
|
+
setAutoRetryEnabled(enabled: boolean): void;
|
|
1029
|
+
/** Capture a mode-level bash epoch for an intercepted user_bash result. */
|
|
1030
|
+
captureBashEpoch(): number;
|
|
1031
|
+
/** Return whether a mode-level bash result still belongs to this runtime epoch. */
|
|
1032
|
+
isBashEpochCurrent(epoch: number): boolean;
|
|
1033
|
+
/** Dispatch the user.bash lifecycle facts for a `!`/`!!` user bash command. */
|
|
1034
|
+
emitUserBash(excludeFromContext: boolean): void;
|
|
1035
|
+
/**
|
|
1036
|
+
* Execute a bash command.
|
|
1037
|
+
* Adds result to agent context and session.
|
|
1038
|
+
* @param command The bash command to execute
|
|
1039
|
+
* @param onChunk Optional streaming callback for output
|
|
1040
|
+
* @param options.excludeFromContext If true, command output won't be sent to LLM (!! prefix)
|
|
1041
|
+
* @param options.id Optional identifier included in bash execution update events
|
|
1042
|
+
* @param options.operations Custom BashOperations for remote execution
|
|
1043
|
+
*/
|
|
1044
|
+
executeBash(command: string, onChunk?: (chunk: string) => void, options?: {
|
|
1045
|
+
excludeFromContext?: boolean;
|
|
1046
|
+
id?: string;
|
|
1047
|
+
operations?: BashOperations;
|
|
1048
|
+
}): Promise<BashResult>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Record a bash execution result in session history.
|
|
1051
|
+
* Used by executeBash and by extensions that handle bash execution themselves.
|
|
1052
|
+
*/
|
|
1053
|
+
recordBashResult(command: string, result: BashResult, options?: {
|
|
1054
|
+
excludeFromContext?: boolean;
|
|
1055
|
+
epoch?: number;
|
|
1056
|
+
}): void;
|
|
1057
|
+
/**
|
|
1058
|
+
* Cancel running bash command.
|
|
1059
|
+
*/
|
|
1060
|
+
abortBash(): void;
|
|
1061
|
+
/** Whether a bash command is currently running */
|
|
1062
|
+
get isBashRunning(): boolean;
|
|
1063
|
+
/** Whether there are pending bash messages waiting to be flushed */
|
|
1064
|
+
get hasPendingBashMessages(): boolean;
|
|
1065
|
+
/**
|
|
1066
|
+
* Flush pending bash messages to agent state and session.
|
|
1067
|
+
* Called after agent turn completes to maintain proper message ordering.
|
|
1068
|
+
*/
|
|
1069
|
+
private _flushPendingBashMessages;
|
|
1070
|
+
/**
|
|
1071
|
+
* Set a display name for the current session.
|
|
1072
|
+
*/
|
|
1073
|
+
setSessionName(name: string): void;
|
|
1074
|
+
/**
|
|
1075
|
+
* Record a cross-suite resume (设计 §10.1 最小可用版): the session was created
|
|
1076
|
+
* under `originalSuiteId` but its context is being reassembled under
|
|
1077
|
+
* `currentSuiteId` (assembly happens at session creation, so reassembly is
|
|
1078
|
+
* the existing behavior). Appends a `suite_mismatch` custom entry as session
|
|
1079
|
+
* protocol data so later debugging can trace the switch; context
|
|
1080
|
+
* serialization/conversion is explicitly out of scope.
|
|
1081
|
+
*/
|
|
1082
|
+
recordSuiteMismatch(originalSuiteId: string, currentSuiteId: string): void;
|
|
1083
|
+
/**
|
|
1084
|
+
* Navigate to a different node in the session tree.
|
|
1085
|
+
* Unlike fork() which creates a new session file, this stays in the same file.
|
|
1086
|
+
*
|
|
1087
|
+
* @param targetId The entry ID to navigate to
|
|
1088
|
+
* @param options.summarize Whether user wants to summarize abandoned branch
|
|
1089
|
+
* @param options.customInstructions Custom instructions for summarizer
|
|
1090
|
+
* @param options.replaceInstructions If true, customInstructions replaces the default prompt
|
|
1091
|
+
* @param options.label Label to attach to the branch summary entry
|
|
1092
|
+
* @returns Result with editorText (if user message) and cancelled status
|
|
1093
|
+
*/
|
|
1094
|
+
navigateTree(targetId: string, options?: {
|
|
1095
|
+
summarize?: boolean;
|
|
1096
|
+
customInstructions?: string;
|
|
1097
|
+
replaceInstructions?: boolean;
|
|
1098
|
+
label?: string;
|
|
1099
|
+
}): Promise<{
|
|
1100
|
+
editorText?: string;
|
|
1101
|
+
cancelled: boolean;
|
|
1102
|
+
aborted?: boolean;
|
|
1103
|
+
summaryEntry?: BranchSummaryEntry;
|
|
1104
|
+
}>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Get all user messages from session for fork selector.
|
|
1107
|
+
*/
|
|
1108
|
+
getUserMessagesForForking(): Array<{
|
|
1109
|
+
entryId: string;
|
|
1110
|
+
text: string;
|
|
1111
|
+
}>;
|
|
1112
|
+
/**
|
|
1113
|
+
* Get session statistics. Aggregates over ALL session entries (including
|
|
1114
|
+
* history that was compacted away), so token/cost totals reflect what was
|
|
1115
|
+
* actually billed across the session.
|
|
1116
|
+
*/
|
|
1117
|
+
getSessionStats(): SessionStats;
|
|
1118
|
+
getContextUsage(): ContextUsage | undefined;
|
|
1119
|
+
/**
|
|
1120
|
+
* Export session to HTML.
|
|
1121
|
+
* @param outputPath Optional output path (defaults to session directory)
|
|
1122
|
+
* @param options Optional export presentation settings
|
|
1123
|
+
* @returns Path to exported file
|
|
1124
|
+
*/
|
|
1125
|
+
exportToHtml(outputPath?: string, options?: {
|
|
1126
|
+
themeName?: string;
|
|
1127
|
+
}): Promise<string>;
|
|
1128
|
+
/**
|
|
1129
|
+
* Export the current session branch to a JSONL file.
|
|
1130
|
+
* Writes the session header followed by all entries on the current branch path.
|
|
1131
|
+
* @param outputPath Target file path. If omitted, generates a timestamped file in cwd.
|
|
1132
|
+
* @returns The resolved output file path.
|
|
1133
|
+
*/
|
|
1134
|
+
exportToJsonl(outputPath?: string): string;
|
|
1135
|
+
/**
|
|
1136
|
+
* Get text content of last assistant message.
|
|
1137
|
+
* Useful for /copy command.
|
|
1138
|
+
* @returns Text content, or undefined if no assistant message exists
|
|
1139
|
+
*/
|
|
1140
|
+
getLastAssistantText(): string | undefined;
|
|
1141
|
+
createReplacedSessionContext(): ReplacedSessionContext;
|
|
1142
|
+
/** Curated host surface (1B.7c): the only supported raw-integration point for product hosts. */
|
|
1143
|
+
get host(): AgentSessionHostSurface;
|
|
1144
|
+
}
|
|
1145
|
+
/** Curated host surface over one AgentSession (1B.7c). Product hosts consume this instead of transitional raw fields. */
|
|
1146
|
+
export interface AgentSessionHostSurface {
|
|
1147
|
+
/** Abort signal of the active agent run, when one is in flight. */
|
|
1148
|
+
readonly abortSignal: AbortSignal | undefined;
|
|
1149
|
+
readonly cwd: string;
|
|
1150
|
+
readonly sessionName: string | undefined;
|
|
1151
|
+
readonly entries: readonly SessionEntry[];
|
|
1152
|
+
setTransport(transport: Transport): void;
|
|
1153
|
+
/** Aborts the core agent loop without session-level teardown. */
|
|
1154
|
+
abortAgent(): void;
|
|
1155
|
+
}
|
|
1156
|
+
//# sourceMappingURL=agent-session.d.ts.map
|