@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 @@
|
|
|
1
|
+
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../src/client/namespace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAA2B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared schema primitives for the client contracts package.
|
|
3
|
+
*
|
|
4
|
+
* These building blocks are internal implementation details — they are NOT
|
|
5
|
+
* part of the public package API. Consumers outside this package must derive
|
|
6
|
+
* their constraints from the exported domain schemas, not from these
|
|
7
|
+
* primitives directly.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
/** Non-empty normalized string used for stable client identifiers. */
|
|
11
|
+
export declare const NonEmptyStringSchema: z.ZodString;
|
|
12
|
+
/** Epoch timestamp in milliseconds. */
|
|
13
|
+
export declare const EpochMillisecondsSchema: z.ZodNumber;
|
|
14
|
+
/**
|
|
15
|
+
* Return `true` for POSIX, Windows drive-letter, or UNC absolute paths
|
|
16
|
+
* regardless of the host OS running schema validation.
|
|
17
|
+
* @param value - Candidate path from a portable framework contract.
|
|
18
|
+
* @returns `true` when the value is absolute on a supported host path syntax.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isPortableAbsolutePath(value: string): boolean;
|
|
21
|
+
/** Non-empty absolute filesystem path. */
|
|
22
|
+
export declare const AbsolutePathSchema: z.ZodString;
|
|
23
|
+
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/client/primitives.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,aAA2B,CAAC;AAE7D,uCAAuC;AACvC,eAAO,MAAM,uBAAuB,aAKe,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,0CAA0C;AAC1C,eAAO,MAAM,kBAAkB,aAIwC,CAAC"}
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile and session-config schemas for the client domain.
|
|
3
|
+
*
|
|
4
|
+
* Covers the `ClientProfile` entity, the `profile.*` command–response pairs
|
|
5
|
+
* for CRUD and default-selection, the `sessionConfig.*` lifecycle subjects
|
|
6
|
+
* for per-session configuration isolation, the setup-delegation request
|
|
7
|
+
* schema passed to client-owned setup handlers, and the `config.prime`
|
|
8
|
+
* generic lifecycle hook fired at managed-install, profile-create, and
|
|
9
|
+
* session-create phases.
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import { z } from 'zod';
|
|
13
|
+
/**
|
|
14
|
+
* Filesystem-safe profile name.
|
|
15
|
+
*
|
|
16
|
+
* Profile names are used as directory names under the client profile root, so
|
|
17
|
+
* they must be a single path component. The character set intentionally stays
|
|
18
|
+
* conservative until a concrete UX need requires broader display names.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ClientProfileNameSchema: z.ZodString;
|
|
21
|
+
/**
|
|
22
|
+
* Filesystem-safe session config directory name.
|
|
23
|
+
*
|
|
24
|
+
* Session IDs flow into ephemeral config directory paths. They are restricted
|
|
25
|
+
* to the same single-component form as profile names to prevent path escape.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SessionConfigIdSchema: z.ZodString;
|
|
28
|
+
/**
|
|
29
|
+
* A named, persistent configuration profile for a client.
|
|
30
|
+
*
|
|
31
|
+
* Profiles allow multiple configuration environments (e.g., work vs. personal)
|
|
32
|
+
* to coexist under the same `clientId`. One profile per client is marked as
|
|
33
|
+
* the default and is selected when no explicit profile name is provided. When
|
|
34
|
+
* no default exists, session setup falls back to the client's immutable native
|
|
35
|
+
* config source and copies/materializes it into the session directory.
|
|
36
|
+
*/
|
|
37
|
+
export declare const ClientProfileSchema: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
clientId: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
description: z.ZodNullable<z.ZodString>;
|
|
42
|
+
configDir: z.ZodString;
|
|
43
|
+
isDefault: z.ZodBoolean;
|
|
44
|
+
createdAt: z.ZodNumber;
|
|
45
|
+
updatedAt: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type ClientProfile = z.infer<typeof ClientProfileSchema>;
|
|
48
|
+
/**
|
|
49
|
+
* Environment variables map for a session's isolated config environment.
|
|
50
|
+
*/
|
|
51
|
+
export declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
52
|
+
/**
|
|
53
|
+
* Policy for materializing a session config directory from a base client config.
|
|
54
|
+
*/
|
|
55
|
+
export declare const SessionConfigInheritanceSchema: z.ZodEnum<{
|
|
56
|
+
"auth-only": "auth-only";
|
|
57
|
+
empty: "empty";
|
|
58
|
+
full: "full";
|
|
59
|
+
}>;
|
|
60
|
+
export type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
|
|
61
|
+
/**
|
|
62
|
+
* Request and response schemas for `client.profile.*` operations.
|
|
63
|
+
*
|
|
64
|
+
* Provides typed bus subjects for creating, listing, retrieving, updating,
|
|
65
|
+
* deleting, and setting the default profile for a given client.
|
|
66
|
+
*/
|
|
67
|
+
export declare const ClientProfileSchemas: {
|
|
68
|
+
/**
|
|
69
|
+
* Create a new profile for a client.
|
|
70
|
+
*/
|
|
71
|
+
'profile.create': {
|
|
72
|
+
request: z.ZodObject<{
|
|
73
|
+
clientId: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
description: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
response: z.ZodObject<{
|
|
78
|
+
profile: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
clientId: z.ZodString;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
description: z.ZodNullable<z.ZodString>;
|
|
83
|
+
configDir: z.ZodString;
|
|
84
|
+
isDefault: z.ZodBoolean;
|
|
85
|
+
createdAt: z.ZodNumber;
|
|
86
|
+
updatedAt: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* List all profiles for a client.
|
|
92
|
+
*/
|
|
93
|
+
'profile.list': {
|
|
94
|
+
request: z.ZodObject<{
|
|
95
|
+
clientId: z.ZodString;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
response: z.ZodObject<{
|
|
98
|
+
profiles: z.ZodArray<z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
clientId: z.ZodString;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
description: z.ZodNullable<z.ZodString>;
|
|
103
|
+
configDir: z.ZodString;
|
|
104
|
+
isDefault: z.ZodBoolean;
|
|
105
|
+
createdAt: z.ZodNumber;
|
|
106
|
+
updatedAt: z.ZodNumber;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Get a profile by client ID and name.
|
|
112
|
+
*
|
|
113
|
+
* Returns `null` in the response when no matching profile exists rather
|
|
114
|
+
* than throwing, so callers can handle the absent-profile case inline.
|
|
115
|
+
*/
|
|
116
|
+
'profile.get': {
|
|
117
|
+
request: z.ZodObject<{
|
|
118
|
+
clientId: z.ZodString;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
response: z.ZodObject<{
|
|
122
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
clientId: z.ZodString;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
description: z.ZodNullable<z.ZodString>;
|
|
127
|
+
configDir: z.ZodString;
|
|
128
|
+
isDefault: z.ZodBoolean;
|
|
129
|
+
createdAt: z.ZodNumber;
|
|
130
|
+
updatedAt: z.ZodNumber;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Update an existing profile's mutable fields.
|
|
136
|
+
*/
|
|
137
|
+
'profile.update': {
|
|
138
|
+
request: z.ZodObject<{
|
|
139
|
+
clientId: z.ZodString;
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
description: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
response: z.ZodObject<{
|
|
144
|
+
profile: z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
clientId: z.ZodString;
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
description: z.ZodNullable<z.ZodString>;
|
|
149
|
+
configDir: z.ZodString;
|
|
150
|
+
isDefault: z.ZodBoolean;
|
|
151
|
+
createdAt: z.ZodNumber;
|
|
152
|
+
updatedAt: z.ZodNumber;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Delete a profile by client ID and name.
|
|
158
|
+
*/
|
|
159
|
+
'profile.delete': {
|
|
160
|
+
request: z.ZodObject<{
|
|
161
|
+
clientId: z.ZodString;
|
|
162
|
+
name: z.ZodString;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
response: z.ZodObject<{
|
|
165
|
+
success: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Mark a profile as the default for its client.
|
|
170
|
+
*/
|
|
171
|
+
'profile.setDefault': {
|
|
172
|
+
request: z.ZodObject<{
|
|
173
|
+
clientId: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
response: z.ZodObject<{
|
|
177
|
+
profile: z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
clientId: z.ZodString;
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
description: z.ZodNullable<z.ZodString>;
|
|
182
|
+
configDir: z.ZodString;
|
|
183
|
+
isDefault: z.ZodBoolean;
|
|
184
|
+
createdAt: z.ZodNumber;
|
|
185
|
+
updatedAt: z.ZodNumber;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Request and response schemas for `client.sessionConfig.*` operations.
|
|
192
|
+
*
|
|
193
|
+
* Manages per-session configuration isolation: creating a temporary working
|
|
194
|
+
* directory seeded from a named profile, tearing it down after a session ends,
|
|
195
|
+
* and bulk-cleaning stale session directories.
|
|
196
|
+
*/
|
|
197
|
+
export declare const ClientSessionConfigSchemas: {
|
|
198
|
+
/**
|
|
199
|
+
* Create an isolated configuration directory for a session.
|
|
200
|
+
*
|
|
201
|
+
* The service seeds the directory from the named profile (or the client
|
|
202
|
+
* default when `profileName` is omitted) and returns the path together
|
|
203
|
+
* with any environment variables the client process should inherit.
|
|
204
|
+
*/
|
|
205
|
+
'sessionConfig.create': {
|
|
206
|
+
request: z.ZodObject<{
|
|
207
|
+
clientId: z.ZodString;
|
|
208
|
+
sessionId: z.ZodString;
|
|
209
|
+
profileName: z.ZodOptional<z.ZodString>;
|
|
210
|
+
baseConfigDir: z.ZodOptional<z.ZodString>;
|
|
211
|
+
projectDir: z.ZodOptional<z.ZodString>;
|
|
212
|
+
configInheritance: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
"auth-only": "auth-only";
|
|
214
|
+
empty: "empty";
|
|
215
|
+
full: "full";
|
|
216
|
+
}>>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
response: z.ZodObject<{
|
|
219
|
+
sessionDir: z.ZodString;
|
|
220
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Destroy the isolated configuration directory for a session.
|
|
225
|
+
*/
|
|
226
|
+
'sessionConfig.destroy': {
|
|
227
|
+
request: z.ZodObject<{
|
|
228
|
+
clientId: z.ZodString;
|
|
229
|
+
sessionId: z.ZodString;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
response: z.ZodObject<{
|
|
232
|
+
success: z.ZodBoolean;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Clean up stale session config directories.
|
|
237
|
+
*
|
|
238
|
+
* When `clientId` is supplied only that client's orphaned directories are
|
|
239
|
+
* removed; omit it to clean across all clients.
|
|
240
|
+
*/
|
|
241
|
+
'sessionConfig.cleanup': {
|
|
242
|
+
request: z.ZodObject<{
|
|
243
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
response: z.ZodObject<{
|
|
246
|
+
removed: z.ZodArray<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Schema for the setup-delegation request passed to client-owned session
|
|
252
|
+
* config setup handlers.
|
|
253
|
+
*
|
|
254
|
+
* Each client's setup handler receives this payload and is responsible for
|
|
255
|
+
* populating `sessionDir` with the correct config files for the given
|
|
256
|
+
* `baseConfigDir` on the target platform.
|
|
257
|
+
*/
|
|
258
|
+
export declare const SessionConfigSetupRequestSchema: z.ZodObject<{
|
|
259
|
+
sessionDir: z.ZodString;
|
|
260
|
+
baseConfigDir: z.ZodString;
|
|
261
|
+
projectDir: z.ZodOptional<z.ZodString>;
|
|
262
|
+
platform: z.ZodEnum<{
|
|
263
|
+
darwin: "darwin";
|
|
264
|
+
linux: "linux";
|
|
265
|
+
win32: "win32";
|
|
266
|
+
}>;
|
|
267
|
+
configInheritance: z.ZodEnum<{
|
|
268
|
+
"auth-only": "auth-only";
|
|
269
|
+
empty: "empty";
|
|
270
|
+
full: "full";
|
|
271
|
+
}>;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
export type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;
|
|
274
|
+
/**
|
|
275
|
+
* Schema for the teardown-delegation request passed to client-owned session
|
|
276
|
+
* config destroy handlers.
|
|
277
|
+
*
|
|
278
|
+
* Each client's destroy handler receives the concrete session directory before
|
|
279
|
+
* `clients-core` removes it and is responsible for cleaning any native
|
|
280
|
+
* credential material associated with that directory.
|
|
281
|
+
*/
|
|
282
|
+
export declare const SessionConfigTeardownRequestSchema: z.ZodObject<{
|
|
283
|
+
sessionDir: z.ZodString;
|
|
284
|
+
platform: z.ZodEnum<{
|
|
285
|
+
darwin: "darwin";
|
|
286
|
+
linux: "linux";
|
|
287
|
+
win32: "win32";
|
|
288
|
+
}>;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
export type SessionConfigTeardownRequest = z.infer<typeof SessionConfigTeardownRequestSchema>;
|
|
291
|
+
/** Response schema for the teardown-delegation request. */
|
|
292
|
+
export declare const SessionConfigTeardownResponseSchema: z.ZodObject<{
|
|
293
|
+
success: z.ZodBoolean;
|
|
294
|
+
}, z.core.$strip>;
|
|
295
|
+
export type SessionConfigTeardownResponse = z.infer<typeof SessionConfigTeardownResponseSchema>;
|
|
296
|
+
/**
|
|
297
|
+
* Response schema for the setup-delegation request.
|
|
298
|
+
*
|
|
299
|
+
* The setup handler may return environment variables that the client process
|
|
300
|
+
* should inherit for the isolated session directory. When absent, no extra
|
|
301
|
+
* environment variables are added beyond those already in the spawn environment.
|
|
302
|
+
*/
|
|
303
|
+
export declare const SessionConfigSetupResponseSchema: z.ZodObject<{
|
|
304
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
export type SessionConfigSetupResponse = z.infer<typeof SessionConfigSetupResponseSchema>;
|
|
307
|
+
/**
|
|
308
|
+
* Lifecycle phases at which the config-prime hook fires.
|
|
309
|
+
*
|
|
310
|
+
* - `'managed-install'` — after a managed binary is verified and before the
|
|
311
|
+
* version record is persisted and the binary is activated.
|
|
312
|
+
* - `'profile-create'` — after a named profile directory is created and
|
|
313
|
+
* before the profile record is written to storage.
|
|
314
|
+
* - `'session-create'` — after a session config directory is created and the
|
|
315
|
+
* client-owned setup handler has run, before the session config response is
|
|
316
|
+
* returned.
|
|
317
|
+
*/
|
|
318
|
+
export declare const ClientConfigPrimePhaseSchema: z.ZodEnum<{
|
|
319
|
+
"managed-install": "managed-install";
|
|
320
|
+
"profile-create": "profile-create";
|
|
321
|
+
"session-create": "session-create";
|
|
322
|
+
}>;
|
|
323
|
+
export type ClientConfigPrimePhase = z.infer<typeof ClientConfigPrimePhaseSchema>;
|
|
324
|
+
/**
|
|
325
|
+
* Request and response schemas for `client.config.prime`.
|
|
326
|
+
*
|
|
327
|
+
* The generic `client.config.prime` handler delegates to the per-client
|
|
328
|
+
* `client:<clientId>.config.prime` subject via `requestOptional`. If no
|
|
329
|
+
* client-specific handler is registered the call is a no-op.
|
|
330
|
+
*
|
|
331
|
+
* This allows client packages to perform one-time or per-session config
|
|
332
|
+
* initialisation (e.g. writing settings templates, injecting MCP server
|
|
333
|
+
* entries) at well-defined lifecycle points without the framework needing to
|
|
334
|
+
* know the client's config file format.
|
|
335
|
+
*/
|
|
336
|
+
export declare const ClientConfigPrimeSchema: {
|
|
337
|
+
/**
|
|
338
|
+
* Initiate a config prime for the given client directory and phase.
|
|
339
|
+
*/
|
|
340
|
+
request: z.ZodObject<{
|
|
341
|
+
clientId: z.ZodString;
|
|
342
|
+
configDir: z.ZodString;
|
|
343
|
+
phase: z.ZodEnum<{
|
|
344
|
+
"managed-install": "managed-install";
|
|
345
|
+
"profile-create": "profile-create";
|
|
346
|
+
"session-create": "session-create";
|
|
347
|
+
}>;
|
|
348
|
+
binaryVersion: z.ZodOptional<z.ZodString>;
|
|
349
|
+
adapterName: z.ZodOptional<z.ZodString>;
|
|
350
|
+
projectDir: z.ZodOptional<z.ZodString>;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
/** Outcome of the config-prime operation. */
|
|
353
|
+
response: z.ZodObject<{
|
|
354
|
+
primed: z.ZodBoolean;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
};
|
|
357
|
+
export type ClientConfigPrimeRequest = z.infer<typeof ClientConfigPrimeSchema.request>;
|
|
358
|
+
export type ClientConfigPrimeResponse = z.infer<typeof ClientConfigPrimeSchema.response>;
|
|
359
|
+
export type ProfileCreateRequest = z.infer<(typeof ClientProfileSchemas)['profile.create']['request']>;
|
|
360
|
+
export type ProfileCreateResponse = z.infer<(typeof ClientProfileSchemas)['profile.create']['response']>;
|
|
361
|
+
export type ProfileListRequest = z.infer<(typeof ClientProfileSchemas)['profile.list']['request']>;
|
|
362
|
+
export type ProfileListResponse = z.infer<(typeof ClientProfileSchemas)['profile.list']['response']>;
|
|
363
|
+
export type ProfileGetRequest = z.infer<(typeof ClientProfileSchemas)['profile.get']['request']>;
|
|
364
|
+
export type ProfileGetResponse = z.infer<(typeof ClientProfileSchemas)['profile.get']['response']>;
|
|
365
|
+
export type ProfileUpdateRequest = z.infer<(typeof ClientProfileSchemas)['profile.update']['request']>;
|
|
366
|
+
export type ProfileUpdateResponse = z.infer<(typeof ClientProfileSchemas)['profile.update']['response']>;
|
|
367
|
+
export type ProfileDeleteRequest = z.infer<(typeof ClientProfileSchemas)['profile.delete']['request']>;
|
|
368
|
+
export type ProfileDeleteResponse = z.infer<(typeof ClientProfileSchemas)['profile.delete']['response']>;
|
|
369
|
+
export type ProfileSetDefaultRequest = z.infer<(typeof ClientProfileSchemas)['profile.setDefault']['request']>;
|
|
370
|
+
export type ProfileSetDefaultResponse = z.infer<(typeof ClientProfileSchemas)['profile.setDefault']['response']>;
|
|
371
|
+
export type SessionConfigCreateRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.create']['request']>;
|
|
372
|
+
export type SessionConfigCreateResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.create']['response']>;
|
|
373
|
+
export type SessionConfigDestroyRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.destroy']['request']>;
|
|
374
|
+
export type SessionConfigDestroyResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.destroy']['response']>;
|
|
375
|
+
export type SessionConfigCleanupRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['request']>;
|
|
376
|
+
export type SessionConfigCleanupResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['response']>;
|
|
377
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/client/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,aAGkD,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAA0B,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;iBAiB9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,sBAAsB,uCAAmC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;EAAyC,CAAC;AAErF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;;;;;;;;;;;;;;;;;;;;IAgBH;;OAEG;;;;;;;;;;;;;;;;;;IAYH;;;;;OAKG;;;;;;;;;;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,CACzE,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime observation schemas for the client domain.
|
|
3
|
+
*
|
|
4
|
+
* Covers source-layer classification, source descriptors, shared evidence
|
|
5
|
+
* fields, the `client.runtime.observe` request–response pair, and the
|
|
6
|
+
* `client.runtime.started` event payload.
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
/**
|
|
11
|
+
* Source layer classification for a runtime observation.
|
|
12
|
+
*
|
|
13
|
+
* Identifies the component that produced the observation signal:
|
|
14
|
+
* - `'supervisor'` — the Makaio supervisor process directly detected the runtime
|
|
15
|
+
* - `'adapter'` — a client adapter emitted the signal from the adapter layer
|
|
16
|
+
* - `'client-hook'` — a native client hook (e.g. PostToolUse) produced the signal
|
|
17
|
+
* - `'statusline'` — a statusline / process-watcher scraper detected the runtime
|
|
18
|
+
* - `'cli-wrapper'` — a thin CLI shim wrapping the client binary reported the signal
|
|
19
|
+
*/
|
|
20
|
+
export declare const ClientRuntimeSourceLayerSchema: z.ZodEnum<{
|
|
21
|
+
adapter: "adapter";
|
|
22
|
+
"cli-wrapper": "cli-wrapper";
|
|
23
|
+
"client-hook": "client-hook";
|
|
24
|
+
statusline: "statusline";
|
|
25
|
+
supervisor: "supervisor";
|
|
26
|
+
}>;
|
|
27
|
+
export type ClientRuntimeSourceLayer = z.infer<typeof ClientRuntimeSourceLayerSchema>;
|
|
28
|
+
/**
|
|
29
|
+
* Source descriptor identifying what produced a runtime observation.
|
|
30
|
+
*
|
|
31
|
+
* - `layer` — high-level component classification (see {@link ClientRuntimeSourceLayerSchema}).
|
|
32
|
+
* - `producer` — stable producer identifier within that layer (e.g. `'claude-code-adapter'`).
|
|
33
|
+
*/
|
|
34
|
+
export declare const ClientRuntimeSourceSchema: z.ZodObject<{
|
|
35
|
+
layer: z.ZodEnum<{
|
|
36
|
+
adapter: "adapter";
|
|
37
|
+
"cli-wrapper": "cli-wrapper";
|
|
38
|
+
"client-hook": "client-hook";
|
|
39
|
+
statusline: "statusline";
|
|
40
|
+
supervisor: "supervisor";
|
|
41
|
+
}>;
|
|
42
|
+
producer: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type ClientRuntimeSource = z.infer<typeof ClientRuntimeSourceSchema>;
|
|
45
|
+
/**
|
|
46
|
+
* Shared runtime evidence fields that appear in both the `client.runtime.observe`
|
|
47
|
+
* request and the `client.runtime.started` event.
|
|
48
|
+
*
|
|
49
|
+
* At least one of `supervisorSessionId`, `pid`, or `adapterSessionId` must be
|
|
50
|
+
* present ("hard evidence" invariant). This constraint is enforced via `.refine()`
|
|
51
|
+
* on the terminal request schema, not on this base, so the base stays composable.
|
|
52
|
+
*
|
|
53
|
+
* Fields:
|
|
54
|
+
* - `supervisorSessionId` — supervisor-assigned session ID, when available.
|
|
55
|
+
* - `pid` — OS process ID of the client binary.
|
|
56
|
+
* - `parentPid` — OS process ID of the parent process.
|
|
57
|
+
* - `adapterSessionId` — raw session ID from the client runtime.
|
|
58
|
+
* - `sessionId` — framework session ID, if already resolved.
|
|
59
|
+
* - `cwd` — working directory of the client process.
|
|
60
|
+
* - `argv` — argv of the client process.
|
|
61
|
+
* - `metadata` — arbitrary pass-through data from the producer.
|
|
62
|
+
*/
|
|
63
|
+
export declare const ClientRuntimeEvidenceBaseSchema: z.ZodObject<{
|
|
64
|
+
supervisorSessionId: z.ZodOptional<z.ZodString>;
|
|
65
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
parentPid: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
70
|
+
argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type ClientRuntimeEvidenceBase = z.infer<typeof ClientRuntimeEvidenceBaseSchema>;
|
|
74
|
+
/**
|
|
75
|
+
* Request and response schemas for `client.runtime.observe`.
|
|
76
|
+
*
|
|
77
|
+
* Callers send this request when they detect that a client runtime has started.
|
|
78
|
+
* The handler upserts a `ClientRuntime` record and returns a stable
|
|
79
|
+
* `clientRuntimeId` together with flags indicating whether the record was
|
|
80
|
+
* created or promoted to a richer state.
|
|
81
|
+
*
|
|
82
|
+
* Hard-evidence invariant: at least one of `supervisorSessionId`, `pid`, or
|
|
83
|
+
* `adapterSessionId` must be present. Enforced via `.refine()` on the request
|
|
84
|
+
* schema (not on the shared evidence base, which stays composable).
|
|
85
|
+
*/
|
|
86
|
+
export declare const ClientRuntimeObserveSchema: {
|
|
87
|
+
request: z.ZodObject<{
|
|
88
|
+
supervisorSessionId: z.ZodOptional<z.ZodString>;
|
|
89
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
parentPid: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
92
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
94
|
+
argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
96
|
+
clientId: z.ZodString;
|
|
97
|
+
source: z.ZodObject<{
|
|
98
|
+
layer: z.ZodEnum<{
|
|
99
|
+
adapter: "adapter";
|
|
100
|
+
"cli-wrapper": "cli-wrapper";
|
|
101
|
+
"client-hook": "client-hook";
|
|
102
|
+
statusline: "statusline";
|
|
103
|
+
supervisor: "supervisor";
|
|
104
|
+
}>;
|
|
105
|
+
producer: z.ZodString;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
observedAt: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
response: z.ZodObject<{
|
|
110
|
+
clientRuntimeId: z.ZodString;
|
|
111
|
+
created: z.ZodBoolean;
|
|
112
|
+
promoted: z.ZodBoolean;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
};
|
|
115
|
+
export type ClientRuntimeObserveRequest = z.infer<typeof ClientRuntimeObserveSchema.request>;
|
|
116
|
+
export type ClientRuntimeObserveResponse = z.infer<typeof ClientRuntimeObserveSchema.response>;
|
|
117
|
+
/**
|
|
118
|
+
* Payload for `client.runtime.started`.
|
|
119
|
+
*
|
|
120
|
+
* Emitted by the runtime-observe service after a `client.runtime.observe` request
|
|
121
|
+
* has been handled and a runtime record has been created or confirmed. Listeners
|
|
122
|
+
* can react to this event without coupling to the observe handler.
|
|
123
|
+
*
|
|
124
|
+
* Hard-evidence invariant: at least one of `supervisorSessionId`, `pid`, or
|
|
125
|
+
* `adapterSessionId` is present (guaranteed by the observe handler before emit).
|
|
126
|
+
*/
|
|
127
|
+
export declare const ClientRuntimeStartedSchema: z.ZodObject<{
|
|
128
|
+
supervisorSessionId: z.ZodOptional<z.ZodString>;
|
|
129
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
parentPid: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
132
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
134
|
+
argv: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
136
|
+
clientRuntimeId: z.ZodString;
|
|
137
|
+
clientId: z.ZodString;
|
|
138
|
+
status: z.ZodEnum<{
|
|
139
|
+
observed: "observed";
|
|
140
|
+
started: "started";
|
|
141
|
+
}>;
|
|
142
|
+
source: z.ZodObject<{
|
|
143
|
+
layer: z.ZodEnum<{
|
|
144
|
+
adapter: "adapter";
|
|
145
|
+
"cli-wrapper": "cli-wrapper";
|
|
146
|
+
"client-hook": "client-hook";
|
|
147
|
+
statusline: "statusline";
|
|
148
|
+
supervisor: "supervisor";
|
|
149
|
+
}>;
|
|
150
|
+
producer: z.ZodString;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
observedAt: z.ZodNumber;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export type ClientRuntimeStarted = z.infer<typeof ClientRuntimeStartedSchema>;
|
|
155
|
+
//# sourceMappingURL=runtime-observation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-observation.d.ts","sourceRoot":"","sources":["../../src/client/runtime-observation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B;;;;;;EAMzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;iBAiB1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBtC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,OAAO,CAAC,CAAC;AAC7F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,QAAQ,CAAC,CAAC;AAE/F;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;iBAerC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|