@makaio/contracts 1.0.0-dev-1779051654000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +73 -0
- package/dist/account-identity-ZrtBl3Bq.mjs +1 -0
- package/dist/adapter/index.d.ts +13 -0
- package/dist/adapter/index.d.ts.map +1 -0
- package/dist/adapter/index.mjs +1 -0
- package/dist/adapter/namespace.d.ts +3171 -0
- package/dist/adapter/namespace.d.ts.map +1 -0
- package/dist/adapter/schemas/adapter-session-status.d.ts +15 -0
- package/dist/adapter/schemas/adapter-session-status.d.ts.map +1 -0
- package/dist/adapter/schemas/agent-created.d.ts +17 -0
- package/dist/adapter/schemas/agent-created.d.ts.map +1 -0
- package/dist/adapter/schemas/agent-resolution.d.ts +387 -0
- package/dist/adapter/schemas/agent-resolution.d.ts.map +1 -0
- package/dist/adapter/schemas/base-event.d.ts +11 -0
- package/dist/adapter/schemas/base-event.d.ts.map +1 -0
- package/dist/adapter/schemas/error.d.ts +22 -0
- package/dist/adapter/schemas/error.d.ts.map +1 -0
- package/dist/adapter/schemas/get-agent.d.ts +24 -0
- package/dist/adapter/schemas/get-agent.d.ts.map +1 -0
- package/dist/adapter/schemas/get-capabilities.d.ts +31 -0
- package/dist/adapter/schemas/get-capabilities.d.ts.map +1 -0
- package/dist/adapter/schemas/get-config-schema.d.ts +32 -0
- package/dist/adapter/schemas/get-config-schema.d.ts.map +1 -0
- package/dist/adapter/schemas/index.d.ts +49 -0
- package/dist/adapter/schemas/index.d.ts.map +1 -0
- package/dist/adapter/schemas/infer.d.ts +41 -0
- package/dist/adapter/schemas/infer.d.ts.map +1 -0
- package/dist/adapter/schemas/initialized.d.ts +27 -0
- package/dist/adapter/schemas/initialized.d.ts.map +1 -0
- package/dist/adapter/schemas/list-agents.d.ts +23 -0
- package/dist/adapter/schemas/list-agents.d.ts.map +1 -0
- package/dist/adapter/schemas/log.d.ts +32 -0
- package/dist/adapter/schemas/log.d.ts.map +1 -0
- package/dist/adapter/schemas/provider-context.d.ts +24 -0
- package/dist/adapter/schemas/provider-context.d.ts.map +1 -0
- package/dist/adapter/schemas/quota.d.ts +23 -0
- package/dist/adapter/schemas/quota.d.ts.map +1 -0
- package/dist/adapter/schemas/rehydrate-agent.d.ts +37 -0
- package/dist/adapter/schemas/rehydrate-agent.d.ts.map +1 -0
- package/dist/adapter/schemas/runtime-options.d.ts +32 -0
- package/dist/adapter/schemas/runtime-options.d.ts.map +1 -0
- package/dist/adapter/schemas/session-closed.d.ts +20 -0
- package/dist/adapter/schemas/session-closed.d.ts.map +1 -0
- package/dist/adapter/schemas/session-created.d.ts +17 -0
- package/dist/adapter/schemas/session-created.d.ts.map +1 -0
- package/dist/adapter/schemas/session-discovered.d.ts +29 -0
- package/dist/adapter/schemas/session-discovered.d.ts.map +1 -0
- package/dist/adapter/schemas/session-lineage.d.ts +62 -0
- package/dist/adapter/schemas/session-lineage.d.ts.map +1 -0
- package/dist/adapter/schemas/session-lineage.mjs +1 -0
- package/dist/adapter/schemas/session-linked.d.ts +26 -0
- package/dist/adapter/schemas/session-linked.d.ts.map +1 -0
- package/dist/adapter/schemas/session-status-changed.d.ts +23 -0
- package/dist/adapter/schemas/session-status-changed.d.ts.map +1 -0
- package/dist/adapter/schemas/session-usage.d.ts +22 -0
- package/dist/adapter/schemas/session-usage.d.ts.map +1 -0
- package/dist/adapter/schemas/start-agent.d.ts +1401 -0
- package/dist/adapter/schemas/start-agent.d.ts.map +1 -0
- package/dist/adapter/schemas/stop-agent.d.ts +20 -0
- package/dist/adapter/schemas/stop-agent.d.ts.map +1 -0
- package/dist/adapter/schemas.d.ts +1608 -0
- package/dist/adapter/schemas.d.ts.map +1 -0
- package/dist/adapter-CbtjTUAe.mjs +1 -0
- package/dist/agent/index.d.ts +11 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/namespace.d.ts +2425 -0
- package/dist/agent/namespace.d.ts.map +1 -0
- package/dist/agent/schemas/base-event.d.ts +19 -0
- package/dist/agent/schemas/base-event.d.ts.map +1 -0
- package/dist/agent/schemas/complete.d.ts +43 -0
- package/dist/agent/schemas/complete.d.ts.map +1 -0
- package/dist/agent/schemas/context-window.d.ts +33 -0
- package/dist/agent/schemas/context-window.d.ts.map +1 -0
- package/dist/agent/schemas/credential-change.d.ts +36 -0
- package/dist/agent/schemas/credential-change.d.ts.map +1 -0
- package/dist/agent/schemas/cwd-change.d.ts +56 -0
- package/dist/agent/schemas/cwd-change.d.ts.map +1 -0
- package/dist/agent/schemas/get-capabilities.d.ts +21 -0
- package/dist/agent/schemas/get-capabilities.d.ts.map +1 -0
- package/dist/agent/schemas/idle.d.ts +27 -0
- package/dist/agent/schemas/idle.d.ts.map +1 -0
- package/dist/agent/schemas/index.d.ts +26 -0
- package/dist/agent/schemas/index.d.ts.map +1 -0
- package/dist/agent/schemas/interrupt.d.ts +32 -0
- package/dist/agent/schemas/interrupt.d.ts.map +1 -0
- package/dist/agent/schemas/mcp-servers-set.d.ts +118 -0
- package/dist/agent/schemas/mcp-servers-set.d.ts.map +1 -0
- package/dist/agent/schemas/message.d.ts +44 -0
- package/dist/agent/schemas/message.d.ts.map +1 -0
- package/dist/agent/schemas/model-change.d.ts +76 -0
- package/dist/agent/schemas/model-change.d.ts.map +1 -0
- package/dist/agent/schemas/model-changed.d.ts +39 -0
- package/dist/agent/schemas/model-changed.d.ts.map +1 -0
- package/dist/agent/schemas/reasoning.d.ts +44 -0
- package/dist/agent/schemas/reasoning.d.ts.map +1 -0
- package/dist/agent/schemas/send-message.d.ts +280 -0
- package/dist/agent/schemas/send-message.d.ts.map +1 -0
- package/dist/agent/schemas/session-closed.d.ts +27 -0
- package/dist/agent/schemas/session-closed.d.ts.map +1 -0
- package/dist/agent/schemas/started.d.ts +38 -0
- package/dist/agent/schemas/started.d.ts.map +1 -0
- package/dist/agent/schemas/step.d.ts +224 -0
- package/dist/agent/schemas/step.d.ts.map +1 -0
- package/dist/agent/schemas/tool-approve.d.ts +46 -0
- package/dist/agent/schemas/tool-approve.d.ts.map +1 -0
- package/dist/agent/schemas/tool.d.ts +96 -0
- package/dist/agent/schemas/tool.d.ts.map +1 -0
- package/dist/agent/schemas/turn.d.ts +126 -0
- package/dist/agent/schemas/turn.d.ts.map +1 -0
- package/dist/agent/schemas/usage.d.ts +52 -0
- package/dist/agent/schemas/usage.d.ts.map +1 -0
- package/dist/agent/schemas/user-message-acknowledged.d.ts +27 -0
- package/dist/agent/schemas/user-message-acknowledged.d.ts.map +1 -0
- package/dist/agent/schemas/user-message-completed.d.ts +43 -0
- package/dist/agent/schemas/user-message-completed.d.ts.map +1 -0
- package/dist/agent/schemas/user-message-sent.d.ts +96 -0
- package/dist/agent/schemas/user-message-sent.d.ts.map +1 -0
- package/dist/agent/schemas/validate-model-change.d.ts +27 -0
- package/dist/agent/schemas/validate-model-change.d.ts.map +1 -0
- package/dist/agent/schemas.d.ts +1238 -0
- package/dist/agent/schemas.d.ts.map +1 -0
- package/dist/agent-resolution/index.d.ts +3 -0
- package/dist/agent-resolution/index.d.ts.map +1 -0
- package/dist/agent-resolution/namespace.d.ts +324 -0
- package/dist/agent-resolution/namespace.d.ts.map +1 -0
- package/dist/agent-resolution/schemas.d.ts +263 -0
- package/dist/agent-resolution/schemas.d.ts.map +1 -0
- package/dist/approval/enriched-policy.d.ts +52 -0
- package/dist/approval/enriched-policy.d.ts.map +1 -0
- package/dist/approval/index.d.ts +6 -0
- package/dist/approval/index.d.ts.map +1 -0
- package/dist/approval/namespace.d.ts +127 -0
- package/dist/approval/namespace.d.ts.map +1 -0
- package/dist/approval/schemas.d.ts +80 -0
- package/dist/approval/schemas.d.ts.map +1 -0
- package/dist/approval/types.d.ts +49 -0
- package/dist/approval/types.d.ts.map +1 -0
- package/dist/canonical-model/index.d.ts +7 -0
- package/dist/canonical-model/index.d.ts.map +1 -0
- package/dist/canonical-model/namespace.d.ts +253 -0
- package/dist/canonical-model/namespace.d.ts.map +1 -0
- package/dist/canonical-model/parser.d.ts +47 -0
- package/dist/canonical-model/parser.d.ts.map +1 -0
- package/dist/canonical-model/schemas.d.ts +244 -0
- package/dist/canonical-model/schemas.d.ts.map +1 -0
- package/dist/canonical-model/selection.d.ts +117 -0
- package/dist/canonical-model/selection.d.ts.map +1 -0
- package/dist/canonical-model/types.d.ts +186 -0
- package/dist/canonical-model/types.d.ts.map +1 -0
- package/dist/capabilities/auto-launch/index.d.ts +3 -0
- package/dist/capabilities/auto-launch/index.d.ts.map +1 -0
- package/dist/capabilities/auto-launch/register.d.ts +11 -0
- package/dist/capabilities/auto-launch/register.d.ts.map +1 -0
- package/dist/capabilities/auto-launch/types.d.ts +38 -0
- package/dist/capabilities/auto-launch/types.d.ts.map +1 -0
- package/dist/capabilities/index.d.ts +15 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/review/index.d.ts +6 -0
- package/dist/capabilities/review/index.d.ts.map +1 -0
- package/dist/capabilities/review/namespace.d.ts +912 -0
- package/dist/capabilities/review/namespace.d.ts.map +1 -0
- package/dist/capabilities/review/register.d.ts +39 -0
- package/dist/capabilities/review/register.d.ts.map +1 -0
- package/dist/capabilities/review/schemas.d.ts +636 -0
- package/dist/capabilities/review/schemas.d.ts.map +1 -0
- package/dist/capabilities/review/types.d.ts +199 -0
- package/dist/capabilities/review/types.d.ts.map +1 -0
- package/dist/capabilities/server/index.d.ts +3 -0
- package/dist/capabilities/server/index.d.ts.map +1 -0
- package/dist/capabilities/server/register.d.ts +18 -0
- package/dist/capabilities/server/register.d.ts.map +1 -0
- package/dist/capabilities/server/types.d.ts +97 -0
- package/dist/capabilities/server/types.d.ts.map +1 -0
- package/dist/capabilities/vcs/events.d.ts +70 -0
- package/dist/capabilities/vcs/events.d.ts.map +1 -0
- package/dist/capabilities/vcs/index.d.ts +7 -0
- package/dist/capabilities/vcs/index.d.ts.map +1 -0
- package/dist/capabilities/vcs/namespace.d.ts +603 -0
- package/dist/capabilities/vcs/namespace.d.ts.map +1 -0
- package/dist/capabilities/vcs/register.d.ts +21 -0
- package/dist/capabilities/vcs/register.d.ts.map +1 -0
- package/dist/capabilities/vcs/schemas/checks.d.ts +34 -0
- package/dist/capabilities/vcs/schemas/checks.d.ts.map +1 -0
- package/dist/capabilities/vcs/schemas/index.d.ts +372 -0
- package/dist/capabilities/vcs/schemas/index.d.ts.map +1 -0
- package/dist/capabilities/vcs/schemas/pr.d.ts +107 -0
- package/dist/capabilities/vcs/schemas/pr.d.ts.map +1 -0
- package/dist/capabilities/vcs/schemas/repository.d.ts +18 -0
- package/dist/capabilities/vcs/schemas/repository.d.ts.map +1 -0
- package/dist/capabilities/vcs/schemas/review.d.ts +24 -0
- package/dist/capabilities/vcs/schemas/review.d.ts.map +1 -0
- package/dist/capabilities/vcs/schemas/statuses.d.ts +27 -0
- package/dist/capabilities/vcs/schemas/statuses.d.ts.map +1 -0
- package/dist/capabilities/vcs/types.d.ts +216 -0
- package/dist/capabilities/vcs/types.d.ts.map +1 -0
- package/dist/capabilities/vcs-pr/index.d.ts +4 -0
- package/dist/capabilities/vcs-pr/index.d.ts.map +1 -0
- package/dist/capabilities/vcs-pr/namespace.d.ts +1080 -0
- package/dist/capabilities/vcs-pr/namespace.d.ts.map +1 -0
- package/dist/capabilities/vcs-pr/schemas.d.ts +816 -0
- package/dist/capabilities/vcs-pr/schemas.d.ts.map +1 -0
- package/dist/capabilities/vision/index.d.ts +5 -0
- package/dist/capabilities/vision/index.d.ts.map +1 -0
- package/dist/capabilities/vision/namespace.d.ts +25 -0
- package/dist/capabilities/vision/namespace.d.ts.map +1 -0
- package/dist/capabilities/vision/schemas.d.ts +36 -0
- package/dist/capabilities/vision/schemas.d.ts.map +1 -0
- package/dist/capabilities/vision/types.d.ts +19 -0
- package/dist/capabilities/vision/types.d.ts.map +1 -0
- package/dist/capabilities/voice/index.d.ts +7 -0
- package/dist/capabilities/voice/index.d.ts.map +1 -0
- package/dist/capabilities/voice/modes.d.ts +13 -0
- package/dist/capabilities/voice/modes.d.ts.map +1 -0
- package/dist/capabilities/voice/namespace.d.ts +174 -0
- package/dist/capabilities/voice/namespace.d.ts.map +1 -0
- package/dist/capabilities/voice/schemas.d.ts +221 -0
- package/dist/capabilities/voice/schemas.d.ts.map +1 -0
- package/dist/capabilities/voice/types.d.ts +188 -0
- package/dist/capabilities/voice/types.d.ts.map +1 -0
- package/dist/capability/index.d.ts +5 -0
- package/dist/capability/index.d.ts.map +1 -0
- package/dist/capability/namespace.d.ts +69 -0
- package/dist/capability/namespace.d.ts.map +1 -0
- package/dist/capability/schemas.d.ts +135 -0
- package/dist/capability/schemas.d.ts.map +1 -0
- package/dist/capability/types.d.ts +41 -0
- package/dist/capability/types.d.ts.map +1 -0
- package/dist/client/account-identity.d.ts +238 -0
- package/dist/client/account-identity.d.ts.map +1 -0
- package/dist/client/binary-management.d.ts +257 -0
- package/dist/client/binary-management.d.ts.map +1 -0
- package/dist/client/binary-resolution.d.ts +62 -0
- package/dist/client/binary-resolution.d.ts.map +1 -0
- package/dist/client/create-definition.d.ts +16 -0
- package/dist/client/create-definition.d.ts.map +1 -0
- package/dist/client/definition.d.ts +338 -0
- package/dist/client/definition.d.ts.map +1 -0
- package/dist/client/index.d.ts +25 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.mjs +1 -0
- package/dist/client/namespace.d.ts +1188 -0
- package/dist/client/namespace.d.ts.map +1 -0
- package/dist/client/primitives.d.ts +23 -0
- package/dist/client/primitives.d.ts.map +1 -0
- package/dist/client/profile.d.ts +377 -0
- package/dist/client/profile.d.ts.map +1 -0
- package/dist/client/runtime-observation.d.ts +155 -0
- package/dist/client/runtime-observation.d.ts.map +1 -0
- package/dist/client/schemas.d.ts +611 -0
- package/dist/client/schemas.d.ts.map +1 -0
- package/dist/client/session-observed.d.ts +152 -0
- package/dist/client/session-observed.d.ts.map +1 -0
- package/dist/client-DBA09LFd.mjs +1 -0
- package/dist/common/action-intent.d.ts +112 -0
- package/dist/common/action-intent.d.ts.map +1 -0
- package/dist/common/focus-context.d.ts +17 -0
- package/dist/common/focus-context.d.ts.map +1 -0
- package/dist/common/index.d.ts +12 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.mjs +1 -0
- package/dist/common/surface.d.ts +48 -0
- package/dist/common/surface.d.ts.map +1 -0
- package/dist/config/adapter-file.d.ts +41 -0
- package/dist/config/adapter-file.d.ts.map +1 -0
- package/dist/config/adapters-file.d.ts +72 -0
- package/dist/config/adapters-file.d.ts.map +1 -0
- package/dist/config/config-namespace.d.ts +189 -0
- package/dist/config/config-namespace.d.ts.map +1 -0
- package/dist/config/config-schema.d.ts +62 -0
- package/dist/config/config-schema.d.ts.map +1 -0
- package/dist/config/config-subjects.d.ts +126 -0
- package/dist/config/config-subjects.d.ts.map +1 -0
- package/dist/config/credential-ref.d.ts +64 -0
- package/dist/config/credential-ref.d.ts.map +1 -0
- package/dist/config/index.d.ts +10 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.mjs +1 -0
- package/dist/config/provider-config-file.d.ts +40 -0
- package/dist/config/provider-config-file.d.ts.map +1 -0
- package/dist/config/provider-config-name.d.ts +41 -0
- package/dist/config/provider-config-name.d.ts.map +1 -0
- package/dist/config/provider-defaults.d.ts +207 -0
- package/dist/config/provider-defaults.d.ts.map +1 -0
- package/dist/config-namespace-B-nWOYn1.mjs +1 -0
- package/dist/credential/change-sequence.d.ts +13 -0
- package/dist/credential/change-sequence.d.ts.map +1 -0
- package/dist/credential/index.d.ts +8 -0
- package/dist/credential/index.d.ts.map +1 -0
- package/dist/credential/namespace.d.ts +242 -0
- package/dist/credential/namespace.d.ts.map +1 -0
- package/dist/credential-ref-DAVeyQ2h.mjs +1 -0
- package/dist/definition-7C4TvfXk.mjs +1 -0
- package/dist/extension/adapter-definition.d.ts +195 -0
- package/dist/extension/adapter-definition.d.ts.map +1 -0
- package/dist/extension/browser-entrypoint.d.ts +12 -0
- package/dist/extension/browser-entrypoint.d.ts.map +1 -0
- package/dist/extension/capability-token.d.ts +27 -0
- package/dist/extension/capability-token.d.ts.map +1 -0
- package/dist/extension/contribution-manifest.d.ts +568 -0
- package/dist/extension/contribution-manifest.d.ts.map +1 -0
- package/dist/extension/contributions/bootstrap-types.d.ts +118 -0
- package/dist/extension/contributions/bootstrap-types.d.ts.map +1 -0
- package/dist/extension/contributions/hash-trigger-types.d.ts +106 -0
- package/dist/extension/contributions/hash-trigger-types.d.ts.map +1 -0
- package/dist/extension/contributions/index.d.ts +11 -0
- package/dist/extension/contributions/index.d.ts.map +1 -0
- package/dist/extension/contributions/page-types.d.ts +168 -0
- package/dist/extension/contributions/page-types.d.ts.map +1 -0
- package/dist/extension/contributions/session-event-action-types.d.ts +275 -0
- package/dist/extension/contributions/session-event-action-types.d.ts.map +1 -0
- package/dist/extension/contributions/tile-types.d.ts +143 -0
- package/dist/extension/contributions/tile-types.d.ts.map +1 -0
- package/dist/extension/contributions/tool-formatter-types.d.ts +76 -0
- package/dist/extension/contributions/tool-formatter-types.d.ts.map +1 -0
- package/dist/extension/contributions/ui-context-types.d.ts +57 -0
- package/dist/extension/contributions/ui-context-types.d.ts.map +1 -0
- package/dist/extension/contributions/web-ui-types.d.ts +145 -0
- package/dist/extension/contributions/web-ui-types.d.ts.map +1 -0
- package/dist/extension/contributions/widget-types.d.ts +168 -0
- package/dist/extension/contributions/widget-types.d.ts.map +1 -0
- package/dist/extension/extension-cli.d.ts +110 -0
- package/dist/extension/extension-cli.d.ts.map +1 -0
- package/dist/extension/extension-config-provider.d.ts +27 -0
- package/dist/extension/extension-config-provider.d.ts.map +1 -0
- package/dist/extension/extension-context.d.ts +100 -0
- package/dist/extension/extension-context.d.ts.map +1 -0
- package/dist/extension/extension-contributions.d.ts +156 -0
- package/dist/extension/extension-contributions.d.ts.map +1 -0
- package/dist/extension/extension-descriptor.d.ts +413 -0
- package/dist/extension/extension-descriptor.d.ts.map +1 -0
- package/dist/extension/extension-lifecycle.d.ts +46 -0
- package/dist/extension/extension-lifecycle.d.ts.map +1 -0
- package/dist/extension/extension-runtime-boot.d.ts +13 -0
- package/dist/extension/extension-runtime-boot.d.ts.map +1 -0
- package/dist/extension/extension-token.d.ts +27 -0
- package/dist/extension/extension-token.d.ts.map +1 -0
- package/dist/extension/extension-warning.d.ts +128 -0
- package/dist/extension/extension-warning.d.ts.map +1 -0
- package/dist/extension/index.d.ts +27 -0
- package/dist/extension/index.d.ts.map +1 -0
- package/dist/extension/index.mjs +1 -0
- package/dist/extension/makaio-extension.d.ts +324 -0
- package/dist/extension/makaio-extension.d.ts.map +1 -0
- package/dist/extension/manifest.d.ts +624 -0
- package/dist/extension/manifest.d.ts.map +1 -0
- package/dist/extension/parse-extension-config.d.ts +21 -0
- package/dist/extension/parse-extension-config.d.ts.map +1 -0
- package/dist/extension-CfIRUup2.mjs +1 -0
- package/dist/harness/codex-capability-map.d.ts +11 -0
- package/dist/harness/codex-capability-map.d.ts.map +1 -0
- package/dist/harness/defaults.d.ts +12 -0
- package/dist/harness/defaults.d.ts.map +1 -0
- package/dist/harness/expand-capabilities.d.ts +93 -0
- package/dist/harness/expand-capabilities.d.ts.map +1 -0
- package/dist/harness/index.d.ts +8 -0
- package/dist/harness/index.d.ts.map +1 -0
- package/dist/harness/index.mjs +1 -0
- package/dist/harness/namespace.d.ts +1340 -0
- package/dist/harness/namespace.d.ts.map +1 -0
- package/dist/harness/schemas.d.ts +186 -0
- package/dist/harness/schemas.d.ts.map +1 -0
- package/dist/harness-BMzrOThN.mjs +1 -0
- package/dist/host/index.d.ts +4 -0
- package/dist/host/index.d.ts.map +1 -0
- package/dist/host/namespace.d.ts +139 -0
- package/dist/host/namespace.d.ts.map +1 -0
- package/dist/host/schemas.d.ts +199 -0
- package/dist/host/schemas.d.ts.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/mcp/constants.d.ts +8 -0
- package/dist/mcp/constants.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +5 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/namespace.d.ts +323 -0
- package/dist/mcp/namespace.d.ts.map +1 -0
- package/dist/mcp/schemas.d.ts +714 -0
- package/dist/mcp/schemas.d.ts.map +1 -0
- package/dist/model/index.d.ts +2 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/schemas.d.ts +348 -0
- package/dist/model/schemas.d.ts.map +1 -0
- package/dist/model-registry/index.d.ts +4 -0
- package/dist/model-registry/index.d.ts.map +1 -0
- package/dist/model-registry/namespace.d.ts +29 -0
- package/dist/model-registry/namespace.d.ts.map +1 -0
- package/dist/model-registry/schemas.d.ts +36 -0
- package/dist/model-registry/schemas.d.ts.map +1 -0
- package/dist/namespace-DDYu5H_m.mjs +1 -0
- package/dist/namespace-catalog.d.ts +23 -0
- package/dist/namespace-catalog.d.ts.map +1 -0
- package/dist/native-session-supervisor/index.d.ts +4 -0
- package/dist/native-session-supervisor/index.d.ts.map +1 -0
- package/dist/native-session-supervisor/index.mjs +1 -0
- package/dist/native-session-supervisor/namespace.d.ts +171 -0
- package/dist/native-session-supervisor/namespace.d.ts.map +1 -0
- package/dist/native-session-supervisor/schemas.d.ts +245 -0
- package/dist/native-session-supervisor/schemas.d.ts.map +1 -0
- package/dist/native-session-supervisor-1VBkkmcf.mjs +1 -0
- package/dist/platform/index.d.ts +4 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/namespace.d.ts +60 -0
- package/dist/platform/namespace.d.ts.map +1 -0
- package/dist/platform/schemas.d.ts +67 -0
- package/dist/platform/schemas.d.ts.map +1 -0
- package/dist/profile-Bcegl5D9.mjs +1 -0
- package/dist/protocol/catalog.d.ts +4849 -0
- package/dist/protocol/catalog.d.ts.map +1 -0
- package/dist/protocol/export-manifest-audit-utils.d.ts +38 -0
- package/dist/protocol/export-manifest-audit-utils.d.ts.map +1 -0
- package/dist/protocol/export-manifest-json-utils.d.ts +23 -0
- package/dist/protocol/export-manifest-json-utils.d.ts.map +1 -0
- package/dist/protocol/export-manifest-rust-checker.d.ts +11 -0
- package/dist/protocol/export-manifest-rust-checker.d.ts.map +1 -0
- package/dist/protocol/export-manifest-string-utils.d.ts +18 -0
- package/dist/protocol/export-manifest-string-utils.d.ts.map +1 -0
- package/dist/protocol/index.d.ts +5 -0
- package/dist/protocol/index.d.ts.map +1 -0
- package/dist/protocol/types.d.ts +107 -0
- package/dist/protocol/types.d.ts.map +1 -0
- package/dist/provider/definition.d.ts +155 -0
- package/dist/provider/definition.d.ts.map +1 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.mjs +1 -0
- package/dist/provider/visibility.d.ts +37 -0
- package/dist/provider/visibility.d.ts.map +1 -0
- package/dist/schemas-BJb5W0VZ.mjs +1 -0
- package/dist/schemas-BkyMBNp4.mjs +1 -0
- package/dist/session/connector-swap-cancelled-error.d.ts +18 -0
- package/dist/session/connector-swap-cancelled-error.d.ts.map +1 -0
- package/dist/session/connector-swap-warning.d.ts +25 -0
- package/dist/session/connector-swap-warning.d.ts.map +1 -0
- package/dist/session/index.d.ts +36 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.mjs +1 -0
- package/dist/session/message-cursor.d.ts +29 -0
- package/dist/session/message-cursor.d.ts.map +1 -0
- package/dist/session/message-storage-namespace.d.ts +1719 -0
- package/dist/session/message-storage-namespace.d.ts.map +1 -0
- package/dist/session/namespace.d.ts +6921 -0
- package/dist/session/namespace.d.ts.map +1 -0
- package/dist/session/schemas/agent.d.ts +54 -0
- package/dist/session/schemas/agent.d.ts.map +1 -0
- package/dist/session/schemas/compression.d.ts +14 -0
- package/dist/session/schemas/compression.d.ts.map +1 -0
- package/dist/session/schemas/crud.d.ts +743 -0
- package/dist/session/schemas/crud.d.ts.map +1 -0
- package/dist/session/schemas/enrichment.d.ts +47 -0
- package/dist/session/schemas/enrichment.d.ts.map +1 -0
- package/dist/session/schemas/event.d.ts +475 -0
- package/dist/session/schemas/event.d.ts.map +1 -0
- package/dist/session/schemas/events.d.ts +525 -0
- package/dist/session/schemas/events.d.ts.map +1 -0
- package/dist/session/schemas/extension-context.d.ts +79 -0
- package/dist/session/schemas/extension-context.d.ts.map +1 -0
- package/dist/session/schemas/fork-child-info.d.ts +24 -0
- package/dist/session/schemas/fork-child-info.d.ts.map +1 -0
- package/dist/session/schemas/lifecycle-events.d.ts +519 -0
- package/dist/session/schemas/lifecycle-events.d.ts.map +1 -0
- package/dist/session/schemas/message.d.ts +266 -0
- package/dist/session/schemas/message.d.ts.map +1 -0
- package/dist/session/schemas/orchestrator.d.ts +1271 -0
- package/dist/session/schemas/orchestrator.d.ts.map +1 -0
- package/dist/session/schemas/primitives.d.ts +33 -0
- package/dist/session/schemas/primitives.d.ts.map +1 -0
- package/dist/session/schemas/resolve-agent-config.d.ts +171 -0
- package/dist/session/schemas/resolve-agent-config.d.ts.map +1 -0
- package/dist/session/schemas/resolve-system-prompt.d.ts +47 -0
- package/dist/session/schemas/resolve-system-prompt.d.ts.map +1 -0
- package/dist/session/schemas/session.d.ts +226 -0
- package/dist/session/schemas/session.d.ts.map +1 -0
- package/dist/session/schemas/snapshot.d.ts +1852 -0
- package/dist/session/schemas/snapshot.d.ts.map +1 -0
- package/dist/session/schemas.d.ts +3499 -0
- package/dist/session/schemas.d.ts.map +1 -0
- package/dist/session/session-context.d.ts +137 -0
- package/dist/session/session-context.d.ts.map +1 -0
- package/dist/session/session-event-storage-namespace.d.ts +2578 -0
- package/dist/session/session-event-storage-namespace.d.ts.map +1 -0
- package/dist/session/session-storage-namespace.d.ts +1702 -0
- package/dist/session/session-storage-namespace.d.ts.map +1 -0
- package/dist/session/types.d.ts +108 -0
- package/dist/session/types.d.ts.map +1 -0
- package/dist/session/utils/branch-kind.d.ts +89 -0
- package/dist/session/utils/branch-kind.d.ts.map +1 -0
- package/dist/session/utils/index.d.ts +3 -0
- package/dist/session/utils/index.d.ts.map +1 -0
- package/dist/session-dXeBGwBr.mjs +1 -0
- package/dist/shared/index.d.ts +495 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.mjs +1 -0
- package/dist/shared/json-value.d.ts +38 -0
- package/dist/shared/json-value.d.ts.map +1 -0
- package/dist/shared/ui-config.d.ts +197 -0
- package/dist/shared/ui-config.d.ts.map +1 -0
- package/dist/shared-CE23KND3.mjs +1 -0
- package/dist/skill/index.d.ts +5 -0
- package/dist/skill/index.d.ts.map +1 -0
- package/dist/skill/index.mjs +1 -0
- package/dist/skill/namespace.d.ts +279 -0
- package/dist/skill/namespace.d.ts.map +1 -0
- package/dist/skill/schemas.d.ts +372 -0
- package/dist/skill/schemas.d.ts.map +1 -0
- package/dist/skill/storage-namespace.d.ts +391 -0
- package/dist/skill/storage-namespace.d.ts.map +1 -0
- package/dist/skill/types.d.ts +27 -0
- package/dist/skill/types.d.ts.map +1 -0
- package/dist/skill-DWpt3u5u.mjs +1 -0
- package/dist/storage-namespace-definition-ce8s152w.mjs +1 -0
- package/dist/storage-namespace-definition.d.ts +24 -0
- package/dist/storage-namespace-definition.d.ts.map +1 -0
- package/dist/subagent/errors.d.ts +24 -0
- package/dist/subagent/errors.d.ts.map +1 -0
- package/dist/subagent/index.d.ts +5 -0
- package/dist/subagent/index.d.ts.map +1 -0
- package/dist/subagent/namespace.d.ts +886 -0
- package/dist/subagent/namespace.d.ts.map +1 -0
- package/dist/subagent/schemas.d.ts +308 -0
- package/dist/subagent/schemas.d.ts.map +1 -0
- package/dist/timeout/index.d.ts +3 -0
- package/dist/timeout/index.d.ts.map +1 -0
- package/dist/timeout/schemas.d.ts +25 -0
- package/dist/timeout/schemas.d.ts.map +1 -0
- package/dist/toast/index.d.ts +4 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toast/index.mjs +1 -0
- package/dist/toast/namespace.d.ts +79 -0
- package/dist/toast/namespace.d.ts.map +1 -0
- package/dist/toast/schemas.d.ts +121 -0
- package/dist/toast/schemas.d.ts.map +1 -0
- package/dist/tool/adapter-identity.d.ts +44 -0
- package/dist/tool/adapter-identity.d.ts.map +1 -0
- package/dist/tool/index.d.ts +6 -0
- package/dist/tool/index.d.ts.map +1 -0
- package/dist/tool/namespace.d.ts +203 -0
- package/dist/tool/namespace.d.ts.map +1 -0
- package/dist/tool/schemas.d.ts +260 -0
- package/dist/tool/schemas.d.ts.map +1 -0
- package/dist/tool-capability/capabilities.d.ts +83 -0
- package/dist/tool-capability/capabilities.d.ts.map +1 -0
- package/dist/tool-capability/index.d.ts +8 -0
- package/dist/tool-capability/index.d.ts.map +1 -0
- package/dist/tool-capability/picker-types.d.ts +55 -0
- package/dist/tool-capability/picker-types.d.ts.map +1 -0
- package/dist/ui-config-C1F4oDus.mjs +1 -0
- package/dist/variant/index.d.ts +4 -0
- package/dist/variant/index.d.ts.map +1 -0
- package/dist/variant/namespace.d.ts +95 -0
- package/dist/variant/namespace.d.ts.map +1 -0
- package/dist/variant/schemas.d.ts +129 -0
- package/dist/variant/schemas.d.ts.map +1 -0
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.d.ts.map +1 -0
- package/dist/version/primitives.d.ts +37 -0
- package/dist/version/primitives.d.ts.map +1 -0
- package/dist/version-u2rO7guD.mjs +1 -0
- package/dist/visibility-D4i0fywT.mjs +1 -0
- package/dist/workflow/index.d.ts +4 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/schemas.d.ts +444 -0
- package/dist/workflow/schemas.d.ts.map +1 -0
- package/dist/workflow/trigger-type-registry.d.ts +53 -0
- package/dist/workflow/trigger-type-registry.d.ts.map +1 -0
- package/package.json +134 -0
|
@@ -0,0 +1,1271 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Identifies the origin of a turn for loop prevention and audit.
|
|
4
|
+
*
|
|
5
|
+
* Used by extensions (e.g., Routine) to distinguish user-initiated turns from
|
|
6
|
+
* extension-initiated turns, preventing recursive execution loops.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TurnInitiatorSchema: z.ZodObject<{
|
|
9
|
+
source: z.ZodEnum<{
|
|
10
|
+
extension: "extension";
|
|
11
|
+
system: "system";
|
|
12
|
+
user: "user";
|
|
13
|
+
}>;
|
|
14
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
/** Parsed type for {@link TurnInitiatorSchema}. */
|
|
17
|
+
export type TurnInitiator = z.infer<typeof TurnInitiatorSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* Orchestrator schemas for turn lifecycle and user message routing.
|
|
20
|
+
*
|
|
21
|
+
* These schemas are owned by SessionOrchestrator, not SessionService.
|
|
22
|
+
* SessionService handles lifecycle (CRUD); orchestrator handles routing/turns.
|
|
23
|
+
*/
|
|
24
|
+
export declare const OrchestratorSchemas: {
|
|
25
|
+
/**
|
|
26
|
+
* Send a message to a session's agents.
|
|
27
|
+
*
|
|
28
|
+
* Subject: `session.sendMessage`
|
|
29
|
+
* Type: Request (RPC)
|
|
30
|
+
*
|
|
31
|
+
* Single entry point for all user messages. Handles:
|
|
32
|
+
* - Creating session if sessionId does not exist
|
|
33
|
+
* - Auto-attaching agent via adapter.startAgent if session has no agents
|
|
34
|
+
* - Turn lifecycle (creates turn if none active)
|
|
35
|
+
* - Routing to targeted agents
|
|
36
|
+
*
|
|
37
|
+
* Default targets lead agent; use `agentIds: 'all'` for broadcast.
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* // Start new conversation (client generates sessionId)
|
|
41
|
+
* const { sessionId, messageId, turnId } = await bus.request(SessionSubjects.sendMessage, {
|
|
42
|
+
* sessionId: crypto.randomUUID(),
|
|
43
|
+
* agent: { kind: 'adapter', adapterName: 'anthropic-sdk', model: 'sonnet' },
|
|
44
|
+
* message: 'Hello!',
|
|
45
|
+
* });
|
|
46
|
+
*
|
|
47
|
+
* // Continue conversation (agent already attached)
|
|
48
|
+
* await bus.request(SessionSubjects.sendMessage, {
|
|
49
|
+
* sessionId,
|
|
50
|
+
* message: 'Follow-up question',
|
|
51
|
+
* });
|
|
52
|
+
*
|
|
53
|
+
* // Broadcast to all agents
|
|
54
|
+
* await bus.request(SessionSubjects.sendMessage, {
|
|
55
|
+
* sessionId,
|
|
56
|
+
* message: 'What do you all think?',
|
|
57
|
+
* agentIds: 'all',
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
sendMessage: {
|
|
62
|
+
request: z.ZodObject<{
|
|
63
|
+
sessionId: z.ZodString;
|
|
64
|
+
message: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
65
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
assistant: "assistant";
|
|
67
|
+
system: "system";
|
|
68
|
+
user: "user";
|
|
69
|
+
}>>;
|
|
70
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"text">;
|
|
72
|
+
content: z.ZodString;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"image">;
|
|
75
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"base64">;
|
|
77
|
+
data: z.ZodString;
|
|
78
|
+
mimeType: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"url">;
|
|
81
|
+
url: z.ZodString;
|
|
82
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>], "type">;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"document">;
|
|
86
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"base64">;
|
|
88
|
+
data: z.ZodString;
|
|
89
|
+
mimeType: z.ZodString;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"url">;
|
|
92
|
+
url: z.ZodString;
|
|
93
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>], "type">;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<"attachment">;
|
|
97
|
+
fileName: z.ZodString;
|
|
98
|
+
filePath: z.ZodString;
|
|
99
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
100
|
+
type: z.ZodLiteral<"base64">;
|
|
101
|
+
data: z.ZodString;
|
|
102
|
+
mimeType: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"url">;
|
|
105
|
+
url: z.ZodString;
|
|
106
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>], "type">;
|
|
108
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
109
|
+
attachmentType: z.ZodEnum<{
|
|
110
|
+
directory: "directory";
|
|
111
|
+
file: "file";
|
|
112
|
+
}>;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
+
type: z.ZodLiteral<"reasoning">;
|
|
115
|
+
content: z.ZodString;
|
|
116
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
+
type: z.ZodLiteral<"tool_call">;
|
|
119
|
+
toolCallId: z.ZodString;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
type: z.ZodLiteral<"tool_output">;
|
|
124
|
+
toolCallId: z.ZodString;
|
|
125
|
+
output: z.ZodString;
|
|
126
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
128
|
+
type: z.ZodLiteral<"text">;
|
|
129
|
+
content: z.ZodString;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"image">;
|
|
132
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"base64">;
|
|
134
|
+
data: z.ZodString;
|
|
135
|
+
mimeType: z.ZodString;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<"url">;
|
|
138
|
+
url: z.ZodString;
|
|
139
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>], "type">;
|
|
141
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
142
|
+
type: z.ZodLiteral<"document">;
|
|
143
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<"base64">;
|
|
145
|
+
data: z.ZodString;
|
|
146
|
+
mimeType: z.ZodString;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
type: z.ZodLiteral<"url">;
|
|
149
|
+
url: z.ZodString;
|
|
150
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, z.core.$strip>], "type">;
|
|
152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
+
type: z.ZodLiteral<"attachment">;
|
|
154
|
+
fileName: z.ZodString;
|
|
155
|
+
filePath: z.ZodString;
|
|
156
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
157
|
+
type: z.ZodLiteral<"base64">;
|
|
158
|
+
data: z.ZodString;
|
|
159
|
+
mimeType: z.ZodString;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"url">;
|
|
162
|
+
url: z.ZodString;
|
|
163
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strip>], "type">;
|
|
165
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
166
|
+
attachmentType: z.ZodEnum<{
|
|
167
|
+
directory: "directory";
|
|
168
|
+
file: "file";
|
|
169
|
+
}>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<"reasoning">;
|
|
172
|
+
content: z.ZodString;
|
|
173
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
+
type: z.ZodLiteral<"tool_call">;
|
|
176
|
+
toolCallId: z.ZodString;
|
|
177
|
+
name: z.ZodString;
|
|
178
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
type: z.ZodLiteral<"tool_output">;
|
|
181
|
+
toolCallId: z.ZodString;
|
|
182
|
+
output: z.ZodString;
|
|
183
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
}, z.core.$strip>], "type">>]>;
|
|
185
|
+
}, z.core.$strip>]>;
|
|
186
|
+
agent: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
187
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
188
|
+
model: z.ZodOptional<z.ZodString>;
|
|
189
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
"extra-high": "extra-high";
|
|
191
|
+
high: "high";
|
|
192
|
+
low: "low";
|
|
193
|
+
medium: "medium";
|
|
194
|
+
none: "none";
|
|
195
|
+
}>>;
|
|
196
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
197
|
+
systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
198
|
+
mode: z.ZodLiteral<"append">;
|
|
199
|
+
content: z.ZodString;
|
|
200
|
+
}, z.core.$strip>]>>;
|
|
201
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
|
+
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
203
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
204
|
+
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
sessionId: z.ZodString;
|
|
206
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
207
|
+
name: z.ZodString;
|
|
208
|
+
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
209
|
+
type: z.ZodLiteral<"stdio">;
|
|
210
|
+
command: z.ZodString;
|
|
211
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
213
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
url: z.ZodString;
|
|
216
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
217
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
permission_policy: z.ZodEnum<{
|
|
220
|
+
always_allow: "always_allow";
|
|
221
|
+
always_ask: "always_ask";
|
|
222
|
+
always_deny: "always_deny";
|
|
223
|
+
}>;
|
|
224
|
+
}, z.core.$strip>>>;
|
|
225
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
type: z.ZodLiteral<"sse">;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
url: z.ZodString;
|
|
229
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
230
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
231
|
+
name: z.ZodString;
|
|
232
|
+
permission_policy: z.ZodEnum<{
|
|
233
|
+
always_allow: "always_allow";
|
|
234
|
+
always_ask: "always_ask";
|
|
235
|
+
always_deny: "always_deny";
|
|
236
|
+
}>;
|
|
237
|
+
}, z.core.$strip>>>;
|
|
238
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
type: z.ZodLiteral<"http">;
|
|
240
|
+
}, z.core.$strip>], "type">;
|
|
241
|
+
exposureMode: z.ZodEnum<{
|
|
242
|
+
direct: "direct";
|
|
243
|
+
discovery: "discovery";
|
|
244
|
+
}>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
247
|
+
fullName: z.ZodString;
|
|
248
|
+
originalName: z.ZodString;
|
|
249
|
+
serverName: z.ZodString;
|
|
250
|
+
description: z.ZodOptional<z.ZodString>;
|
|
251
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
252
|
+
exposureMode: z.ZodEnum<{
|
|
253
|
+
direct: "direct";
|
|
254
|
+
discovery: "discovery";
|
|
255
|
+
hidden: "hidden";
|
|
256
|
+
}>;
|
|
257
|
+
enabled: z.ZodBoolean;
|
|
258
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
discovery: "discovery";
|
|
260
|
+
toolset: "toolset";
|
|
261
|
+
}>>;
|
|
262
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
exposed: z.ZodBoolean;
|
|
264
|
+
}, z.core.$strip>>;
|
|
265
|
+
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
266
|
+
fullName: z.ZodString;
|
|
267
|
+
originalName: z.ZodString;
|
|
268
|
+
serverName: z.ZodString;
|
|
269
|
+
description: z.ZodOptional<z.ZodString>;
|
|
270
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
271
|
+
exposureMode: z.ZodEnum<{
|
|
272
|
+
direct: "direct";
|
|
273
|
+
discovery: "discovery";
|
|
274
|
+
hidden: "hidden";
|
|
275
|
+
}>;
|
|
276
|
+
enabled: z.ZodBoolean;
|
|
277
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
discovery: "discovery";
|
|
279
|
+
toolset: "toolset";
|
|
280
|
+
}>>;
|
|
281
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
exposed: z.ZodBoolean;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
}, z.core.$strip>>;
|
|
285
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
|
+
kind: z.ZodLiteral<"adapter">;
|
|
287
|
+
adapterName: z.ZodOptional<z.ZodString>;
|
|
288
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
290
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
291
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
"extra-high": "extra-high";
|
|
293
|
+
high: "high";
|
|
294
|
+
low: "low";
|
|
295
|
+
medium: "medium";
|
|
296
|
+
none: "none";
|
|
297
|
+
}>>;
|
|
298
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
299
|
+
systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
300
|
+
mode: z.ZodLiteral<"append">;
|
|
301
|
+
content: z.ZodString;
|
|
302
|
+
}, z.core.$strip>]>>;
|
|
303
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
304
|
+
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
306
|
+
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
sessionId: z.ZodString;
|
|
308
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
309
|
+
name: z.ZodString;
|
|
310
|
+
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
|
+
type: z.ZodLiteral<"stdio">;
|
|
312
|
+
command: z.ZodString;
|
|
313
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
314
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
315
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
317
|
+
url: z.ZodString;
|
|
318
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
319
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
320
|
+
name: z.ZodString;
|
|
321
|
+
permission_policy: z.ZodEnum<{
|
|
322
|
+
always_allow: "always_allow";
|
|
323
|
+
always_ask: "always_ask";
|
|
324
|
+
always_deny: "always_deny";
|
|
325
|
+
}>;
|
|
326
|
+
}, z.core.$strip>>>;
|
|
327
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
328
|
+
type: z.ZodLiteral<"sse">;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
url: z.ZodString;
|
|
331
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
332
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
|
+
name: z.ZodString;
|
|
334
|
+
permission_policy: z.ZodEnum<{
|
|
335
|
+
always_allow: "always_allow";
|
|
336
|
+
always_ask: "always_ask";
|
|
337
|
+
always_deny: "always_deny";
|
|
338
|
+
}>;
|
|
339
|
+
}, z.core.$strip>>>;
|
|
340
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
type: z.ZodLiteral<"http">;
|
|
342
|
+
}, z.core.$strip>], "type">;
|
|
343
|
+
exposureMode: z.ZodEnum<{
|
|
344
|
+
direct: "direct";
|
|
345
|
+
discovery: "discovery";
|
|
346
|
+
}>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
348
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
349
|
+
fullName: z.ZodString;
|
|
350
|
+
originalName: z.ZodString;
|
|
351
|
+
serverName: z.ZodString;
|
|
352
|
+
description: z.ZodOptional<z.ZodString>;
|
|
353
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
354
|
+
exposureMode: z.ZodEnum<{
|
|
355
|
+
direct: "direct";
|
|
356
|
+
discovery: "discovery";
|
|
357
|
+
hidden: "hidden";
|
|
358
|
+
}>;
|
|
359
|
+
enabled: z.ZodBoolean;
|
|
360
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
discovery: "discovery";
|
|
362
|
+
toolset: "toolset";
|
|
363
|
+
}>>;
|
|
364
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
exposed: z.ZodBoolean;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
368
|
+
fullName: z.ZodString;
|
|
369
|
+
originalName: z.ZodString;
|
|
370
|
+
serverName: z.ZodString;
|
|
371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
372
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
373
|
+
exposureMode: z.ZodEnum<{
|
|
374
|
+
direct: "direct";
|
|
375
|
+
discovery: "discovery";
|
|
376
|
+
hidden: "hidden";
|
|
377
|
+
}>;
|
|
378
|
+
enabled: z.ZodBoolean;
|
|
379
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
380
|
+
discovery: "discovery";
|
|
381
|
+
toolset: "toolset";
|
|
382
|
+
}>>;
|
|
383
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
exposed: z.ZodBoolean;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
388
|
+
kind: z.ZodLiteral<"canonical-model">;
|
|
389
|
+
model: z.ZodString;
|
|
390
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
391
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
392
|
+
model: z.ZodOptional<z.ZodString>;
|
|
393
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
394
|
+
"extra-high": "extra-high";
|
|
395
|
+
high: "high";
|
|
396
|
+
low: "low";
|
|
397
|
+
medium: "medium";
|
|
398
|
+
none: "none";
|
|
399
|
+
}>>;
|
|
400
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
401
|
+
systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
402
|
+
mode: z.ZodLiteral<"append">;
|
|
403
|
+
content: z.ZodString;
|
|
404
|
+
}, z.core.$strip>]>>;
|
|
405
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
406
|
+
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
407
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
408
|
+
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
sessionId: z.ZodString;
|
|
410
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
413
|
+
type: z.ZodLiteral<"stdio">;
|
|
414
|
+
command: z.ZodString;
|
|
415
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
416
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
417
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
419
|
+
url: z.ZodString;
|
|
420
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
421
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
|
+
name: z.ZodString;
|
|
423
|
+
permission_policy: z.ZodEnum<{
|
|
424
|
+
always_allow: "always_allow";
|
|
425
|
+
always_ask: "always_ask";
|
|
426
|
+
always_deny: "always_deny";
|
|
427
|
+
}>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
type: z.ZodLiteral<"sse">;
|
|
431
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
432
|
+
url: z.ZodString;
|
|
433
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
434
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
435
|
+
name: z.ZodString;
|
|
436
|
+
permission_policy: z.ZodEnum<{
|
|
437
|
+
always_allow: "always_allow";
|
|
438
|
+
always_ask: "always_ask";
|
|
439
|
+
always_deny: "always_deny";
|
|
440
|
+
}>;
|
|
441
|
+
}, z.core.$strip>>>;
|
|
442
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
type: z.ZodLiteral<"http">;
|
|
444
|
+
}, z.core.$strip>], "type">;
|
|
445
|
+
exposureMode: z.ZodEnum<{
|
|
446
|
+
direct: "direct";
|
|
447
|
+
discovery: "discovery";
|
|
448
|
+
}>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
451
|
+
fullName: z.ZodString;
|
|
452
|
+
originalName: z.ZodString;
|
|
453
|
+
serverName: z.ZodString;
|
|
454
|
+
description: z.ZodOptional<z.ZodString>;
|
|
455
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
456
|
+
exposureMode: z.ZodEnum<{
|
|
457
|
+
direct: "direct";
|
|
458
|
+
discovery: "discovery";
|
|
459
|
+
hidden: "hidden";
|
|
460
|
+
}>;
|
|
461
|
+
enabled: z.ZodBoolean;
|
|
462
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
463
|
+
discovery: "discovery";
|
|
464
|
+
toolset: "toolset";
|
|
465
|
+
}>>;
|
|
466
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
467
|
+
exposed: z.ZodBoolean;
|
|
468
|
+
}, z.core.$strip>>;
|
|
469
|
+
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
470
|
+
fullName: z.ZodString;
|
|
471
|
+
originalName: z.ZodString;
|
|
472
|
+
serverName: z.ZodString;
|
|
473
|
+
description: z.ZodOptional<z.ZodString>;
|
|
474
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
475
|
+
exposureMode: z.ZodEnum<{
|
|
476
|
+
direct: "direct";
|
|
477
|
+
discovery: "discovery";
|
|
478
|
+
hidden: "hidden";
|
|
479
|
+
}>;
|
|
480
|
+
enabled: z.ZodBoolean;
|
|
481
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
482
|
+
discovery: "discovery";
|
|
483
|
+
toolset: "toolset";
|
|
484
|
+
}>>;
|
|
485
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
486
|
+
exposed: z.ZodBoolean;
|
|
487
|
+
}, z.core.$strip>>;
|
|
488
|
+
}, z.core.$strip>>;
|
|
489
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
490
|
+
kind: z.ZodString;
|
|
491
|
+
}, z.core.$loose>]>>;
|
|
492
|
+
agentIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
|
|
493
|
+
deliveryMode: z.ZodOptional<z.ZodEnum<{
|
|
494
|
+
enqueue: "enqueue";
|
|
495
|
+
}>>;
|
|
496
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
497
|
+
sessionContext: z.ZodOptional<z.ZodObject<{
|
|
498
|
+
messageHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
499
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
500
|
+
assistant: "assistant";
|
|
501
|
+
system: "system";
|
|
502
|
+
user: "user";
|
|
503
|
+
}>>;
|
|
504
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
505
|
+
type: z.ZodLiteral<"text">;
|
|
506
|
+
content: z.ZodString;
|
|
507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
508
|
+
type: z.ZodLiteral<"image">;
|
|
509
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
510
|
+
type: z.ZodLiteral<"base64">;
|
|
511
|
+
data: z.ZodString;
|
|
512
|
+
mimeType: z.ZodString;
|
|
513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
type: z.ZodLiteral<"url">;
|
|
515
|
+
url: z.ZodString;
|
|
516
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
517
|
+
}, z.core.$strip>], "type">;
|
|
518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
519
|
+
type: z.ZodLiteral<"document">;
|
|
520
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
521
|
+
type: z.ZodLiteral<"base64">;
|
|
522
|
+
data: z.ZodString;
|
|
523
|
+
mimeType: z.ZodString;
|
|
524
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
525
|
+
type: z.ZodLiteral<"url">;
|
|
526
|
+
url: z.ZodString;
|
|
527
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.core.$strip>], "type">;
|
|
529
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
530
|
+
type: z.ZodLiteral<"attachment">;
|
|
531
|
+
fileName: z.ZodString;
|
|
532
|
+
filePath: z.ZodString;
|
|
533
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
534
|
+
type: z.ZodLiteral<"base64">;
|
|
535
|
+
data: z.ZodString;
|
|
536
|
+
mimeType: z.ZodString;
|
|
537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
|
+
type: z.ZodLiteral<"url">;
|
|
539
|
+
url: z.ZodString;
|
|
540
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
541
|
+
}, z.core.$strip>], "type">;
|
|
542
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
543
|
+
attachmentType: z.ZodEnum<{
|
|
544
|
+
directory: "directory";
|
|
545
|
+
file: "file";
|
|
546
|
+
}>;
|
|
547
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
+
type: z.ZodLiteral<"reasoning">;
|
|
549
|
+
content: z.ZodString;
|
|
550
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
551
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
552
|
+
type: z.ZodLiteral<"tool_call">;
|
|
553
|
+
toolCallId: z.ZodString;
|
|
554
|
+
name: z.ZodString;
|
|
555
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
+
type: z.ZodLiteral<"tool_output">;
|
|
558
|
+
toolCallId: z.ZodString;
|
|
559
|
+
output: z.ZodString;
|
|
560
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
561
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
562
|
+
type: z.ZodLiteral<"text">;
|
|
563
|
+
content: z.ZodString;
|
|
564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"image">;
|
|
566
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
567
|
+
type: z.ZodLiteral<"base64">;
|
|
568
|
+
data: z.ZodString;
|
|
569
|
+
mimeType: z.ZodString;
|
|
570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
571
|
+
type: z.ZodLiteral<"url">;
|
|
572
|
+
url: z.ZodString;
|
|
573
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
574
|
+
}, z.core.$strip>], "type">;
|
|
575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
576
|
+
type: z.ZodLiteral<"document">;
|
|
577
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
|
+
type: z.ZodLiteral<"base64">;
|
|
579
|
+
data: z.ZodString;
|
|
580
|
+
mimeType: z.ZodString;
|
|
581
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
582
|
+
type: z.ZodLiteral<"url">;
|
|
583
|
+
url: z.ZodString;
|
|
584
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.core.$strip>], "type">;
|
|
586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
587
|
+
type: z.ZodLiteral<"attachment">;
|
|
588
|
+
fileName: z.ZodString;
|
|
589
|
+
filePath: z.ZodString;
|
|
590
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
591
|
+
type: z.ZodLiteral<"base64">;
|
|
592
|
+
data: z.ZodString;
|
|
593
|
+
mimeType: z.ZodString;
|
|
594
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
+
type: z.ZodLiteral<"url">;
|
|
596
|
+
url: z.ZodString;
|
|
597
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, z.core.$strip>], "type">;
|
|
599
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
600
|
+
attachmentType: z.ZodEnum<{
|
|
601
|
+
directory: "directory";
|
|
602
|
+
file: "file";
|
|
603
|
+
}>;
|
|
604
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
605
|
+
type: z.ZodLiteral<"reasoning">;
|
|
606
|
+
content: z.ZodString;
|
|
607
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
608
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
609
|
+
type: z.ZodLiteral<"tool_call">;
|
|
610
|
+
toolCallId: z.ZodString;
|
|
611
|
+
name: z.ZodString;
|
|
612
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
614
|
+
type: z.ZodLiteral<"tool_output">;
|
|
615
|
+
toolCallId: z.ZodString;
|
|
616
|
+
output: z.ZodString;
|
|
617
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
618
|
+
}, z.core.$strip>], "type">>]>;
|
|
619
|
+
}, z.core.$strip>>>;
|
|
620
|
+
hasNewTransforms: z.ZodOptional<z.ZodBoolean>;
|
|
621
|
+
hasCompression: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
+
extractedContext: z.ZodOptional<z.ZodUnknown>;
|
|
623
|
+
isFirstTurn: z.ZodOptional<z.ZodBoolean>;
|
|
624
|
+
hasConnectorSwap: z.ZodOptional<z.ZodBoolean>;
|
|
625
|
+
turnContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@makaio/framework/contracts").JsonValue, unknown, z.core.$ZodTypeInternals<import("@makaio/framework/contracts").JsonValue, unknown>>>>;
|
|
626
|
+
}, z.core.$strip>>;
|
|
627
|
+
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
628
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
629
|
+
extension: "extension";
|
|
630
|
+
system: "system";
|
|
631
|
+
user: "user";
|
|
632
|
+
}>>;
|
|
633
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
634
|
+
originWindowId: z.ZodOptional<z.ZodString>;
|
|
635
|
+
skipConnectorSwapWarning: z.ZodOptional<z.ZodBoolean>;
|
|
636
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
637
|
+
compact: "compact";
|
|
638
|
+
text: "text";
|
|
639
|
+
voice: "voice";
|
|
640
|
+
}>>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
response: z.ZodObject<{
|
|
643
|
+
messageId: z.ZodString;
|
|
644
|
+
turnId: z.ZodString;
|
|
645
|
+
sessionId: z.ZodString;
|
|
646
|
+
}, z.core.$strip>;
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* Explicitly attach an agent to a session.
|
|
650
|
+
*
|
|
651
|
+
* Subject: `session.agent.attach`
|
|
652
|
+
* Type: Request (RPC)
|
|
653
|
+
*
|
|
654
|
+
* Unlike auto-attach via sendMessage, this RPC provides explicit control over:
|
|
655
|
+
* - Agent role (lead vs member)
|
|
656
|
+
* - Attaching without sending a message
|
|
657
|
+
*
|
|
658
|
+
* For branching conversations (fork), use `session.fork` to create a new session
|
|
659
|
+
* with copied history, then attach agents to the new session.
|
|
660
|
+
*
|
|
661
|
+
* Use this for multi-agent scenarios or when you need to pre-attach agents
|
|
662
|
+
* before sending messages.
|
|
663
|
+
* @example
|
|
664
|
+
* ```typescript
|
|
665
|
+
* // Attach a second agent as a member
|
|
666
|
+
* const { agentId } = await bus.request(SessionSubjects.agent.attach, {
|
|
667
|
+
* sessionId: 'session-123',
|
|
668
|
+
* agent: { kind: 'adapter', adapterName: 'openai-node', model: 'gpt-4o' },
|
|
669
|
+
* role: 'member',
|
|
670
|
+
* });
|
|
671
|
+
*
|
|
672
|
+
* // Attach with initial message using a persona
|
|
673
|
+
* const { agentId, messageId } = await bus.request(SessionSubjects.agent.attach, {
|
|
674
|
+
* sessionId: 'session-123',
|
|
675
|
+
* agent: { kind: 'persona', personaId: 'p-456' },
|
|
676
|
+
* role: 'lead',
|
|
677
|
+
* initialMessage: 'Take over as lead',
|
|
678
|
+
* });
|
|
679
|
+
* ```
|
|
680
|
+
*/
|
|
681
|
+
'agent.attach': {
|
|
682
|
+
request: z.ZodObject<{
|
|
683
|
+
sessionId: z.ZodString;
|
|
684
|
+
agent: z.ZodObject<{
|
|
685
|
+
kind: z.ZodString;
|
|
686
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
687
|
+
model: z.ZodOptional<z.ZodString>;
|
|
688
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
689
|
+
"extra-high": "extra-high";
|
|
690
|
+
high: "high";
|
|
691
|
+
low: "low";
|
|
692
|
+
medium: "medium";
|
|
693
|
+
none: "none";
|
|
694
|
+
}>>;
|
|
695
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
696
|
+
systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
697
|
+
mode: z.ZodLiteral<"append">;
|
|
698
|
+
content: z.ZodString;
|
|
699
|
+
}, z.core.$strip>]>>;
|
|
700
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
701
|
+
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
702
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
703
|
+
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
704
|
+
sessionId: z.ZodString;
|
|
705
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
706
|
+
name: z.ZodString;
|
|
707
|
+
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
708
|
+
type: z.ZodLiteral<"stdio">;
|
|
709
|
+
command: z.ZodString;
|
|
710
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
711
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
712
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
714
|
+
url: z.ZodString;
|
|
715
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
716
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
717
|
+
name: z.ZodString;
|
|
718
|
+
permission_policy: z.ZodEnum<{
|
|
719
|
+
always_allow: "always_allow";
|
|
720
|
+
always_ask: "always_ask";
|
|
721
|
+
always_deny: "always_deny";
|
|
722
|
+
}>;
|
|
723
|
+
}, z.core.$strip>>>;
|
|
724
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
725
|
+
type: z.ZodLiteral<"sse">;
|
|
726
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
727
|
+
url: z.ZodString;
|
|
728
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
729
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
730
|
+
name: z.ZodString;
|
|
731
|
+
permission_policy: z.ZodEnum<{
|
|
732
|
+
always_allow: "always_allow";
|
|
733
|
+
always_ask: "always_ask";
|
|
734
|
+
always_deny: "always_deny";
|
|
735
|
+
}>;
|
|
736
|
+
}, z.core.$strip>>>;
|
|
737
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
738
|
+
type: z.ZodLiteral<"http">;
|
|
739
|
+
}, z.core.$strip>], "type">;
|
|
740
|
+
exposureMode: z.ZodEnum<{
|
|
741
|
+
direct: "direct";
|
|
742
|
+
discovery: "discovery";
|
|
743
|
+
}>;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
746
|
+
fullName: z.ZodString;
|
|
747
|
+
originalName: z.ZodString;
|
|
748
|
+
serverName: z.ZodString;
|
|
749
|
+
description: z.ZodOptional<z.ZodString>;
|
|
750
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
751
|
+
exposureMode: z.ZodEnum<{
|
|
752
|
+
direct: "direct";
|
|
753
|
+
discovery: "discovery";
|
|
754
|
+
hidden: "hidden";
|
|
755
|
+
}>;
|
|
756
|
+
enabled: z.ZodBoolean;
|
|
757
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
758
|
+
discovery: "discovery";
|
|
759
|
+
toolset: "toolset";
|
|
760
|
+
}>>;
|
|
761
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
exposed: z.ZodBoolean;
|
|
763
|
+
}, z.core.$strip>>;
|
|
764
|
+
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
765
|
+
fullName: z.ZodString;
|
|
766
|
+
originalName: z.ZodString;
|
|
767
|
+
serverName: z.ZodString;
|
|
768
|
+
description: z.ZodOptional<z.ZodString>;
|
|
769
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
770
|
+
exposureMode: z.ZodEnum<{
|
|
771
|
+
direct: "direct";
|
|
772
|
+
discovery: "discovery";
|
|
773
|
+
hidden: "hidden";
|
|
774
|
+
}>;
|
|
775
|
+
enabled: z.ZodBoolean;
|
|
776
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
777
|
+
discovery: "discovery";
|
|
778
|
+
toolset: "toolset";
|
|
779
|
+
}>>;
|
|
780
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
781
|
+
exposed: z.ZodBoolean;
|
|
782
|
+
}, z.core.$strip>>;
|
|
783
|
+
}, z.core.$strip>>;
|
|
784
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
785
|
+
}, z.core.$loose>;
|
|
786
|
+
initialMessage: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
787
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
788
|
+
assistant: "assistant";
|
|
789
|
+
system: "system";
|
|
790
|
+
user: "user";
|
|
791
|
+
}>>;
|
|
792
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
793
|
+
type: z.ZodLiteral<"text">;
|
|
794
|
+
content: z.ZodString;
|
|
795
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
796
|
+
type: z.ZodLiteral<"image">;
|
|
797
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
798
|
+
type: z.ZodLiteral<"base64">;
|
|
799
|
+
data: z.ZodString;
|
|
800
|
+
mimeType: z.ZodString;
|
|
801
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
802
|
+
type: z.ZodLiteral<"url">;
|
|
803
|
+
url: z.ZodString;
|
|
804
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
805
|
+
}, z.core.$strip>], "type">;
|
|
806
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
807
|
+
type: z.ZodLiteral<"document">;
|
|
808
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
809
|
+
type: z.ZodLiteral<"base64">;
|
|
810
|
+
data: z.ZodString;
|
|
811
|
+
mimeType: z.ZodString;
|
|
812
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
813
|
+
type: z.ZodLiteral<"url">;
|
|
814
|
+
url: z.ZodString;
|
|
815
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
816
|
+
}, z.core.$strip>], "type">;
|
|
817
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
818
|
+
type: z.ZodLiteral<"attachment">;
|
|
819
|
+
fileName: z.ZodString;
|
|
820
|
+
filePath: z.ZodString;
|
|
821
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
822
|
+
type: z.ZodLiteral<"base64">;
|
|
823
|
+
data: z.ZodString;
|
|
824
|
+
mimeType: z.ZodString;
|
|
825
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
826
|
+
type: z.ZodLiteral<"url">;
|
|
827
|
+
url: z.ZodString;
|
|
828
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
829
|
+
}, z.core.$strip>], "type">;
|
|
830
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
831
|
+
attachmentType: z.ZodEnum<{
|
|
832
|
+
directory: "directory";
|
|
833
|
+
file: "file";
|
|
834
|
+
}>;
|
|
835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
836
|
+
type: z.ZodLiteral<"reasoning">;
|
|
837
|
+
content: z.ZodString;
|
|
838
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
839
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
840
|
+
type: z.ZodLiteral<"tool_call">;
|
|
841
|
+
toolCallId: z.ZodString;
|
|
842
|
+
name: z.ZodString;
|
|
843
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
844
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
845
|
+
type: z.ZodLiteral<"tool_output">;
|
|
846
|
+
toolCallId: z.ZodString;
|
|
847
|
+
output: z.ZodString;
|
|
848
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
849
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
850
|
+
type: z.ZodLiteral<"text">;
|
|
851
|
+
content: z.ZodString;
|
|
852
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
853
|
+
type: z.ZodLiteral<"image">;
|
|
854
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
855
|
+
type: z.ZodLiteral<"base64">;
|
|
856
|
+
data: z.ZodString;
|
|
857
|
+
mimeType: z.ZodString;
|
|
858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
859
|
+
type: z.ZodLiteral<"url">;
|
|
860
|
+
url: z.ZodString;
|
|
861
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
862
|
+
}, z.core.$strip>], "type">;
|
|
863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
864
|
+
type: z.ZodLiteral<"document">;
|
|
865
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
866
|
+
type: z.ZodLiteral<"base64">;
|
|
867
|
+
data: z.ZodString;
|
|
868
|
+
mimeType: z.ZodString;
|
|
869
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
870
|
+
type: z.ZodLiteral<"url">;
|
|
871
|
+
url: z.ZodString;
|
|
872
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
873
|
+
}, z.core.$strip>], "type">;
|
|
874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
875
|
+
type: z.ZodLiteral<"attachment">;
|
|
876
|
+
fileName: z.ZodString;
|
|
877
|
+
filePath: z.ZodString;
|
|
878
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
879
|
+
type: z.ZodLiteral<"base64">;
|
|
880
|
+
data: z.ZodString;
|
|
881
|
+
mimeType: z.ZodString;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
type: z.ZodLiteral<"url">;
|
|
884
|
+
url: z.ZodString;
|
|
885
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
886
|
+
}, z.core.$strip>], "type">;
|
|
887
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
888
|
+
attachmentType: z.ZodEnum<{
|
|
889
|
+
directory: "directory";
|
|
890
|
+
file: "file";
|
|
891
|
+
}>;
|
|
892
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
893
|
+
type: z.ZodLiteral<"reasoning">;
|
|
894
|
+
content: z.ZodString;
|
|
895
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
896
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
897
|
+
type: z.ZodLiteral<"tool_call">;
|
|
898
|
+
toolCallId: z.ZodString;
|
|
899
|
+
name: z.ZodString;
|
|
900
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
901
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
902
|
+
type: z.ZodLiteral<"tool_output">;
|
|
903
|
+
toolCallId: z.ZodString;
|
|
904
|
+
output: z.ZodString;
|
|
905
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
906
|
+
}, z.core.$strip>], "type">>]>;
|
|
907
|
+
}, z.core.$strip>]>>;
|
|
908
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
909
|
+
lead: "lead";
|
|
910
|
+
member: "member";
|
|
911
|
+
}>>;
|
|
912
|
+
}, z.core.$strip>;
|
|
913
|
+
response: z.ZodObject<{
|
|
914
|
+
agentId: z.ZodString;
|
|
915
|
+
adapterSessionId: z.ZodString;
|
|
916
|
+
role: z.ZodEnum<{
|
|
917
|
+
lead: "lead";
|
|
918
|
+
member: "member";
|
|
919
|
+
}>;
|
|
920
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
921
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
922
|
+
}, z.core.$strip>;
|
|
923
|
+
};
|
|
924
|
+
/**
|
|
925
|
+
* Turn started.
|
|
926
|
+
*
|
|
927
|
+
* Subject: `session.turn.started`
|
|
928
|
+
* Type: Event (fire-and-forget)
|
|
929
|
+
* Emitted when: First user message of a turn is received
|
|
930
|
+
*/
|
|
931
|
+
'turn.started': z.ZodObject<{
|
|
932
|
+
sessionId: z.ZodString;
|
|
933
|
+
turnId: z.ZodString;
|
|
934
|
+
turnNumber: z.ZodNumber;
|
|
935
|
+
messageId: z.ZodString;
|
|
936
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
937
|
+
initiator: z.ZodOptional<z.ZodObject<{
|
|
938
|
+
source: z.ZodEnum<{
|
|
939
|
+
extension: "extension";
|
|
940
|
+
system: "system";
|
|
941
|
+
user: "user";
|
|
942
|
+
}>;
|
|
943
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
944
|
+
}, z.core.$strip>>;
|
|
945
|
+
}, z.core.$strip>;
|
|
946
|
+
/**
|
|
947
|
+
* Turn completed.
|
|
948
|
+
*
|
|
949
|
+
* Subject: `session.turn.completed`
|
|
950
|
+
* Type: Event (fire-and-forget)
|
|
951
|
+
* Emitted when: All targeted agents have completed processing
|
|
952
|
+
*
|
|
953
|
+
* Semantics:
|
|
954
|
+
* - success=true: all agents completed with outcome='completed'
|
|
955
|
+
* - success=false: any agent had outcome='error'
|
|
956
|
+
* - cancelled/superseded/merged outcomes are neutral (not errors)
|
|
957
|
+
*/
|
|
958
|
+
'turn.completed': z.ZodObject<{
|
|
959
|
+
sessionId: z.ZodString;
|
|
960
|
+
turnId: z.ZodString;
|
|
961
|
+
turnNumber: z.ZodNumber;
|
|
962
|
+
success: z.ZodBoolean;
|
|
963
|
+
error: z.ZodOptional<z.ZodString>;
|
|
964
|
+
initiator: z.ZodOptional<z.ZodObject<{
|
|
965
|
+
source: z.ZodEnum<{
|
|
966
|
+
extension: "extension";
|
|
967
|
+
system: "system";
|
|
968
|
+
user: "user";
|
|
969
|
+
}>;
|
|
970
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
971
|
+
}, z.core.$strip>>;
|
|
972
|
+
}, z.core.$strip>;
|
|
973
|
+
/**
|
|
974
|
+
* User message sent to session.
|
|
975
|
+
*
|
|
976
|
+
* Subject: `session.user_message.sent`
|
|
977
|
+
* Type: Event (fire-and-forget)
|
|
978
|
+
* Emitted when: User sends a message (before routing to agents)
|
|
979
|
+
*/
|
|
980
|
+
'user_message.sent': z.ZodObject<{
|
|
981
|
+
sessionId: z.ZodString;
|
|
982
|
+
turnId: z.ZodString;
|
|
983
|
+
turnNumber: z.ZodNumber;
|
|
984
|
+
messageId: z.ZodString;
|
|
985
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
986
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
987
|
+
assistant: "assistant";
|
|
988
|
+
system: "system";
|
|
989
|
+
user: "user";
|
|
990
|
+
}>>;
|
|
991
|
+
blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
992
|
+
type: z.ZodLiteral<"text">;
|
|
993
|
+
content: z.ZodString;
|
|
994
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
995
|
+
type: z.ZodLiteral<"image">;
|
|
996
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
997
|
+
type: z.ZodLiteral<"base64">;
|
|
998
|
+
data: z.ZodString;
|
|
999
|
+
mimeType: z.ZodString;
|
|
1000
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1001
|
+
type: z.ZodLiteral<"url">;
|
|
1002
|
+
url: z.ZodString;
|
|
1003
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
}, z.core.$strip>], "type">;
|
|
1005
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1006
|
+
type: z.ZodLiteral<"document">;
|
|
1007
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1008
|
+
type: z.ZodLiteral<"base64">;
|
|
1009
|
+
data: z.ZodString;
|
|
1010
|
+
mimeType: z.ZodString;
|
|
1011
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1012
|
+
type: z.ZodLiteral<"url">;
|
|
1013
|
+
url: z.ZodString;
|
|
1014
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
}, z.core.$strip>], "type">;
|
|
1016
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1017
|
+
type: z.ZodLiteral<"attachment">;
|
|
1018
|
+
fileName: z.ZodString;
|
|
1019
|
+
filePath: z.ZodString;
|
|
1020
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1021
|
+
type: z.ZodLiteral<"base64">;
|
|
1022
|
+
data: z.ZodString;
|
|
1023
|
+
mimeType: z.ZodString;
|
|
1024
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1025
|
+
type: z.ZodLiteral<"url">;
|
|
1026
|
+
url: z.ZodString;
|
|
1027
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
}, z.core.$strip>], "type">;
|
|
1029
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
attachmentType: z.ZodEnum<{
|
|
1031
|
+
directory: "directory";
|
|
1032
|
+
file: "file";
|
|
1033
|
+
}>;
|
|
1034
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1035
|
+
type: z.ZodLiteral<"reasoning">;
|
|
1036
|
+
content: z.ZodString;
|
|
1037
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1039
|
+
type: z.ZodLiteral<"tool_call">;
|
|
1040
|
+
toolCallId: z.ZodString;
|
|
1041
|
+
name: z.ZodString;
|
|
1042
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1043
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1044
|
+
type: z.ZodLiteral<"tool_output">;
|
|
1045
|
+
toolCallId: z.ZodString;
|
|
1046
|
+
output: z.ZodString;
|
|
1047
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
+
}, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1049
|
+
type: z.ZodLiteral<"text">;
|
|
1050
|
+
content: z.ZodString;
|
|
1051
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1052
|
+
type: z.ZodLiteral<"image">;
|
|
1053
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1054
|
+
type: z.ZodLiteral<"base64">;
|
|
1055
|
+
data: z.ZodString;
|
|
1056
|
+
mimeType: z.ZodString;
|
|
1057
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1058
|
+
type: z.ZodLiteral<"url">;
|
|
1059
|
+
url: z.ZodString;
|
|
1060
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
}, z.core.$strip>], "type">;
|
|
1062
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1063
|
+
type: z.ZodLiteral<"document">;
|
|
1064
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1065
|
+
type: z.ZodLiteral<"base64">;
|
|
1066
|
+
data: z.ZodString;
|
|
1067
|
+
mimeType: z.ZodString;
|
|
1068
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1069
|
+
type: z.ZodLiteral<"url">;
|
|
1070
|
+
url: z.ZodString;
|
|
1071
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
}, z.core.$strip>], "type">;
|
|
1073
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1074
|
+
type: z.ZodLiteral<"attachment">;
|
|
1075
|
+
fileName: z.ZodString;
|
|
1076
|
+
filePath: z.ZodString;
|
|
1077
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1078
|
+
type: z.ZodLiteral<"base64">;
|
|
1079
|
+
data: z.ZodString;
|
|
1080
|
+
mimeType: z.ZodString;
|
|
1081
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1082
|
+
type: z.ZodLiteral<"url">;
|
|
1083
|
+
url: z.ZodString;
|
|
1084
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
}, z.core.$strip>], "type">;
|
|
1086
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
attachmentType: z.ZodEnum<{
|
|
1088
|
+
directory: "directory";
|
|
1089
|
+
file: "file";
|
|
1090
|
+
}>;
|
|
1091
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1092
|
+
type: z.ZodLiteral<"reasoning">;
|
|
1093
|
+
content: z.ZodString;
|
|
1094
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1096
|
+
type: z.ZodLiteral<"tool_call">;
|
|
1097
|
+
toolCallId: z.ZodString;
|
|
1098
|
+
name: z.ZodString;
|
|
1099
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1101
|
+
type: z.ZodLiteral<"tool_output">;
|
|
1102
|
+
toolCallId: z.ZodString;
|
|
1103
|
+
output: z.ZodString;
|
|
1104
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1105
|
+
}, z.core.$strip>], "type">>]>;
|
|
1106
|
+
}, z.core.$strip>]>;
|
|
1107
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
1108
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1109
|
+
extension: "extension";
|
|
1110
|
+
system: "system";
|
|
1111
|
+
user: "user";
|
|
1112
|
+
}>>;
|
|
1113
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
1114
|
+
compact: "compact";
|
|
1115
|
+
text: "text";
|
|
1116
|
+
voice: "voice";
|
|
1117
|
+
}>>;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
/**
|
|
1120
|
+
* User message acknowledged by agent.
|
|
1121
|
+
*
|
|
1122
|
+
* Subject: `session.user_message.acknowledged`
|
|
1123
|
+
* Type: Event (fire-and-forget)
|
|
1124
|
+
* Emitted when: An agent receives and begins processing the message
|
|
1125
|
+
*/
|
|
1126
|
+
'user_message.acknowledged': z.ZodObject<{
|
|
1127
|
+
sessionId: z.ZodString;
|
|
1128
|
+
turnId: z.ZodString;
|
|
1129
|
+
turnNumber: z.ZodNumber;
|
|
1130
|
+
messageId: z.ZodString;
|
|
1131
|
+
agentId: z.ZodString;
|
|
1132
|
+
}, z.core.$strip>;
|
|
1133
|
+
/**
|
|
1134
|
+
* User message processing completed by agent.
|
|
1135
|
+
*
|
|
1136
|
+
* Subject: `session.user_message.completed`
|
|
1137
|
+
* Type: Event (fire-and-forget)
|
|
1138
|
+
* Emitted when: An agent finishes processing the message
|
|
1139
|
+
*/
|
|
1140
|
+
'user_message.completed': z.ZodObject<{
|
|
1141
|
+
sessionId: z.ZodString;
|
|
1142
|
+
turnId: z.ZodString;
|
|
1143
|
+
turnNumber: z.ZodNumber;
|
|
1144
|
+
messageId: z.ZodString;
|
|
1145
|
+
agentId: z.ZodString;
|
|
1146
|
+
outcome: z.ZodEnum<{
|
|
1147
|
+
cancelled: "cancelled";
|
|
1148
|
+
completed: "completed";
|
|
1149
|
+
error: "error";
|
|
1150
|
+
merged: "merged";
|
|
1151
|
+
rejected: "rejected";
|
|
1152
|
+
superseded: "superseded";
|
|
1153
|
+
}>;
|
|
1154
|
+
supersededBy: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
mergedInto: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1157
|
+
}, z.core.$strip>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Fork a session to create a branch point in conversation history.
|
|
1160
|
+
*
|
|
1161
|
+
* Subject: `session.fork`
|
|
1162
|
+
* Type: Request (RPC)
|
|
1163
|
+
*
|
|
1164
|
+
* Creates a new session that references the parent via parentSessionId
|
|
1165
|
+
* and forkPointMessageId. NO message copying occurs - full conversation
|
|
1166
|
+
* is assembled via getFullConversation() which traverses the parent chain.
|
|
1167
|
+
*
|
|
1168
|
+
* The forked session starts with no agents - use agent.attach to add agents.
|
|
1169
|
+
* @example
|
|
1170
|
+
* ```typescript
|
|
1171
|
+
* // Fork entire session history
|
|
1172
|
+
* const { sessionId } = await bus.request(SessionSubjects.fork, {
|
|
1173
|
+
* sourceSessionId: 'session-123',
|
|
1174
|
+
* });
|
|
1175
|
+
*
|
|
1176
|
+
* // Fork from a specific message (branch point)
|
|
1177
|
+
* const { sessionId } = await bus.request(SessionSubjects.fork, {
|
|
1178
|
+
* sourceSessionId: 'session-123',
|
|
1179
|
+
* fromMessageId: 'msg-abc',
|
|
1180
|
+
* name: 'Alternative approach',
|
|
1181
|
+
* });
|
|
1182
|
+
* ```
|
|
1183
|
+
*/
|
|
1184
|
+
fork: {
|
|
1185
|
+
request: z.ZodObject<{
|
|
1186
|
+
sourceSessionId: z.ZodString;
|
|
1187
|
+
fromMessageId: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
branchKind: z.ZodOptional<z.ZodEnum<{
|
|
1190
|
+
aside: "aside";
|
|
1191
|
+
branch: "branch";
|
|
1192
|
+
fork: "fork";
|
|
1193
|
+
}>>;
|
|
1194
|
+
transforms: z.ZodOptional<z.ZodObject<{
|
|
1195
|
+
removedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1196
|
+
appliedPipeline: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1197
|
+
actionId: z.ZodString;
|
|
1198
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1199
|
+
}, z.core.$strip>>>;
|
|
1200
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1201
|
+
fromMessageId: z.ZodString;
|
|
1202
|
+
toMessageId: z.ZodString;
|
|
1203
|
+
policy: z.ZodEnum<{
|
|
1204
|
+
exclude: "exclude";
|
|
1205
|
+
summarize: "summarize";
|
|
1206
|
+
verbatim: "verbatim";
|
|
1207
|
+
}>;
|
|
1208
|
+
stripReasoning: z.ZodOptional<z.ZodBoolean>;
|
|
1209
|
+
stripToolOutputs: z.ZodOptional<z.ZodBoolean>;
|
|
1210
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<"exclude">>>;
|
|
1211
|
+
summaryText: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
}, z.core.$strip>>>;
|
|
1213
|
+
}, z.core.$strip>>;
|
|
1214
|
+
targetWorkingDirectory: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
existingSessionId: z.ZodOptional<z.ZodString>;
|
|
1216
|
+
}, z.core.$strip>;
|
|
1217
|
+
response: z.ZodObject<{
|
|
1218
|
+
sessionId: z.ZodString;
|
|
1219
|
+
}, z.core.$strip>;
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* Aggregated session-level token usage.
|
|
1223
|
+
*
|
|
1224
|
+
* Subject: `session.usage`
|
|
1225
|
+
* Type: Event (fire-and-forget)
|
|
1226
|
+
* Emitted when: UsageAggregator receives adapter.session.usage events
|
|
1227
|
+
*
|
|
1228
|
+
* Aggregates token usage across all adapters in a session.
|
|
1229
|
+
* UsageAggregator listens to adapter.session.usage events, aggregates them
|
|
1230
|
+
* per-session (keyed by adapterSessionId to avoid collisions), and emits
|
|
1231
|
+
* this canonical session-level usage event.
|
|
1232
|
+
*
|
|
1233
|
+
* ContextTracker consumes this to track context window usage against thresholds.
|
|
1234
|
+
* @example
|
|
1235
|
+
* ```typescript
|
|
1236
|
+
* bus.on(SessionSubjects.usage, (ctx) => {
|
|
1237
|
+
* console.debug(
|
|
1238
|
+
* `Session ${ctx.payload.sessionId}: ${ctx.payload.totalTokens} tokens ` +
|
|
1239
|
+
* `(${ctx.payload.adapterCount} adapters)`
|
|
1240
|
+
* );
|
|
1241
|
+
* });
|
|
1242
|
+
* ```
|
|
1243
|
+
*/
|
|
1244
|
+
usage: {
|
|
1245
|
+
request: z.ZodObject<{
|
|
1246
|
+
sessionId: z.ZodString;
|
|
1247
|
+
totalInputTokens: z.ZodNumber;
|
|
1248
|
+
totalOutputTokens: z.ZodNumber;
|
|
1249
|
+
totalTokens: z.ZodNumber;
|
|
1250
|
+
totalCalls: z.ZodNumber;
|
|
1251
|
+
adapterCount: z.ZodNumber;
|
|
1252
|
+
}, z.core.$strip>;
|
|
1253
|
+
response: z.ZodObject<{
|
|
1254
|
+
acknowledged: z.ZodLiteral<true>;
|
|
1255
|
+
}, z.core.$strip>;
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
export type SendMessageRequest = z.infer<typeof OrchestratorSchemas.sendMessage.request>;
|
|
1259
|
+
export type SendMessageResponse = z.infer<typeof OrchestratorSchemas.sendMessage.response>;
|
|
1260
|
+
export type AgentAttachRequest = z.infer<(typeof OrchestratorSchemas)['agent.attach']['request']>;
|
|
1261
|
+
export type AgentAttachResponse = z.infer<(typeof OrchestratorSchemas)['agent.attach']['response']>;
|
|
1262
|
+
export type TurnStarted = z.infer<(typeof OrchestratorSchemas)['turn.started']>;
|
|
1263
|
+
export type TurnCompleted = z.infer<(typeof OrchestratorSchemas)['turn.completed']>;
|
|
1264
|
+
export type UserMessageSent = z.infer<(typeof OrchestratorSchemas)['user_message.sent']>;
|
|
1265
|
+
export type UserMessageAcknowledged = z.infer<(typeof OrchestratorSchemas)['user_message.acknowledged']>;
|
|
1266
|
+
export type UserMessageCompleted = z.infer<(typeof OrchestratorSchemas)['user_message.completed']>;
|
|
1267
|
+
export type SessionForkRequest = z.infer<(typeof OrchestratorSchemas)['fork']['request']>;
|
|
1268
|
+
export type SessionForkResponse = z.infer<(typeof OrchestratorSchemas)['fork']['response']>;
|
|
1269
|
+
export type SessionUsagePayload = z.infer<typeof OrchestratorSchemas.usage.request>;
|
|
1270
|
+
export type SessionUsageResponse = z.infer<typeof OrchestratorSchemas.usage.response>;
|
|
1271
|
+
//# sourceMappingURL=orchestrator.d.ts.map
|