@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/harness/namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuCxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4EzB,0DAA0D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE1D,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE/D,qDAAqD;;;;CAE/B,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAR3B,0DAA0D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE1D,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE/D,qDAAqD;;;;EAIsB,CAAC;AAC9E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT1B,0DAA0D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE1D,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE/D,qDAAqD;;;;cAKC,CAAC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Approval policy used when a tool invocation requires authorization. */
|
|
3
|
+
export declare const ApprovalPolicySchema: z.ZodEnum<{
|
|
4
|
+
"always-ask": "always-ask";
|
|
5
|
+
"full-access": "full-access";
|
|
6
|
+
reject: "reject";
|
|
7
|
+
}>;
|
|
8
|
+
export type ApprovalPolicy = z.infer<typeof ApprovalPolicySchema>;
|
|
9
|
+
/** Per-tool approval policy overrides keyed by tool name. */
|
|
10
|
+
export declare const ToolApprovalOverridesSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
11
|
+
"always-ask": "always-ask";
|
|
12
|
+
"full-access": "full-access";
|
|
13
|
+
reject: "reject";
|
|
14
|
+
}>>;
|
|
15
|
+
export type ToolApprovalOverrides = z.infer<typeof ToolApprovalOverridesSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Base object shape shared between stored and create schemas.
|
|
18
|
+
* Exported for consumers that need to call `.omit()` — refined schemas
|
|
19
|
+
* (`ZodEffects`) do not support `.omit()` in Zod v4.
|
|
20
|
+
*/
|
|
21
|
+
export declare const HarnessDefinitionBaseSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
adapterName: z.ZodOptional<z.ZodString>;
|
|
26
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
approvalPolicy: z.ZodDefault<z.ZodEnum<{
|
|
28
|
+
"always-ask": "always-ask";
|
|
29
|
+
"full-access": "full-access";
|
|
30
|
+
reject: "reject";
|
|
31
|
+
}>>;
|
|
32
|
+
nativeTools: z.ZodObject<{
|
|
33
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
34
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
registryTools: z.ZodObject<{
|
|
37
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
38
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
42
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
45
|
+
"file.delete": "file.delete";
|
|
46
|
+
"file.read": "file.read";
|
|
47
|
+
"file.write": "file.write";
|
|
48
|
+
"network.request": "network.request";
|
|
49
|
+
"process.manage": "process.manage";
|
|
50
|
+
"search.content": "search.content";
|
|
51
|
+
"search.files": "search.files";
|
|
52
|
+
"search.web": "search.web";
|
|
53
|
+
"shell.execute": "shell.execute";
|
|
54
|
+
}>>>>>;
|
|
55
|
+
capabilityOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
56
|
+
"always-ask": "always-ask";
|
|
57
|
+
"full-access": "full-access";
|
|
58
|
+
reject: "reject";
|
|
59
|
+
}>>>;
|
|
60
|
+
toolApprovalOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
61
|
+
"always-ask": "always-ask";
|
|
62
|
+
"full-access": "full-access";
|
|
63
|
+
reject: "reject";
|
|
64
|
+
}>>>;
|
|
65
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
66
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
67
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
68
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
70
|
+
createdAt: z.ZodNumber;
|
|
71
|
+
updatedAt: z.ZodNumber;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
/**
|
|
74
|
+
* Stored harness definition.
|
|
75
|
+
*
|
|
76
|
+
* A harness selects tool availability and execution policies for one adapter.
|
|
77
|
+
* Either `adapterName` (for API-only adapters) or `clientId` (for client-scoped
|
|
78
|
+
* harnesses) must be set; both may be present.
|
|
79
|
+
*/
|
|
80
|
+
export declare const HarnessDefinitionSchema: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
description: z.ZodOptional<z.ZodString>;
|
|
84
|
+
adapterName: z.ZodOptional<z.ZodString>;
|
|
85
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
approvalPolicy: z.ZodDefault<z.ZodEnum<{
|
|
87
|
+
"always-ask": "always-ask";
|
|
88
|
+
"full-access": "full-access";
|
|
89
|
+
reject: "reject";
|
|
90
|
+
}>>;
|
|
91
|
+
nativeTools: z.ZodObject<{
|
|
92
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
93
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
registryTools: z.ZodObject<{
|
|
96
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
97
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
101
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
104
|
+
"file.delete": "file.delete";
|
|
105
|
+
"file.read": "file.read";
|
|
106
|
+
"file.write": "file.write";
|
|
107
|
+
"network.request": "network.request";
|
|
108
|
+
"process.manage": "process.manage";
|
|
109
|
+
"search.content": "search.content";
|
|
110
|
+
"search.files": "search.files";
|
|
111
|
+
"search.web": "search.web";
|
|
112
|
+
"shell.execute": "shell.execute";
|
|
113
|
+
}>>>>>;
|
|
114
|
+
capabilityOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
115
|
+
"always-ask": "always-ask";
|
|
116
|
+
"full-access": "full-access";
|
|
117
|
+
reject: "reject";
|
|
118
|
+
}>>>;
|
|
119
|
+
toolApprovalOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
120
|
+
"always-ask": "always-ask";
|
|
121
|
+
"full-access": "full-access";
|
|
122
|
+
reject: "reject";
|
|
123
|
+
}>>>;
|
|
124
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
125
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
126
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
127
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
129
|
+
createdAt: z.ZodNumber;
|
|
130
|
+
updatedAt: z.ZodNumber;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
export type HarnessDefinition = z.infer<typeof HarnessDefinitionSchema>;
|
|
133
|
+
/** Input payload for create/update operations. */
|
|
134
|
+
export declare const HarnessDefinitionCreateSchema: z.ZodObject<{
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
description: z.ZodOptional<z.ZodString>;
|
|
137
|
+
adapterName: z.ZodOptional<z.ZodString>;
|
|
138
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
nativeTools: z.ZodObject<{
|
|
140
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
141
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
registryTools: z.ZodObject<{
|
|
144
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
145
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
149
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
152
|
+
"file.delete": "file.delete";
|
|
153
|
+
"file.read": "file.read";
|
|
154
|
+
"file.write": "file.write";
|
|
155
|
+
"network.request": "network.request";
|
|
156
|
+
"process.manage": "process.manage";
|
|
157
|
+
"search.content": "search.content";
|
|
158
|
+
"search.files": "search.files";
|
|
159
|
+
"search.web": "search.web";
|
|
160
|
+
"shell.execute": "shell.execute";
|
|
161
|
+
}>>>>>;
|
|
162
|
+
capabilityOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
163
|
+
"always-ask": "always-ask";
|
|
164
|
+
"full-access": "full-access";
|
|
165
|
+
reject: "reject";
|
|
166
|
+
}>>>;
|
|
167
|
+
toolApprovalOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
168
|
+
"always-ask": "always-ask";
|
|
169
|
+
"full-access": "full-access";
|
|
170
|
+
reject: "reject";
|
|
171
|
+
}>>>;
|
|
172
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
173
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
174
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
175
|
+
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
176
|
+
"always-ask": "always-ask";
|
|
177
|
+
"full-access": "full-access";
|
|
178
|
+
reject: "reject";
|
|
179
|
+
}>>;
|
|
180
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
export type HarnessDefinitionCreate = z.infer<typeof HarnessDefinitionCreateSchema>;
|
|
184
|
+
/** Shipped default harness shape (timestamps are generated at seed time). */
|
|
185
|
+
export type DefaultHarnessDefinition = Omit<HarnessDefinition, 'createdAt' | 'updatedAt'>;
|
|
186
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/harness/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB;;;;EAAkD,CAAC;AACpF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B;;;;GAA6C,CAAC;AACtF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAmBhF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6DtC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,kDAAkD;AAClD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWgC,CAAC;AAE3E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,6EAA6E;AAC7E,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ui-config-C1F4oDus.mjs";import{i as t,r as n}from"./schemas-BJb5W0VZ.mjs";import{createBusNamespace as r}from"@makaio/framework/core";import{z as i}from"zod";const a=`At least one of adapterName or clientId must be provided`,o=e=>!!(e.adapterName||e.clientId);function s(e){return!!(e.id||e.name)}function c(e){return e.id||!e.name?!0:!!e.adapterName}const l={get:{request:i.object({id:i.string().optional(),name:i.string().optional(),adapterName:i.string().optional()}).refine(s,{message:`Either id or name is required`,path:[`id`]}).refine(c,{message:`adapterName is required when looking up by name`,path:[`adapterName`]}),response:t},list:{request:i.object({adapterName:i.string().optional(),clientId:i.string().optional(),name:i.string().optional()}),response:i.object({harnesses:i.array(t)})},set:{request:n,response:i.object({id:i.string()})},delete:{request:i.object({id:i.string()}),response:i.object({success:i.boolean()})},getDefault:{request:i.object({adapterName:i.string().optional(),clientId:i.string().optional()}).refine(o,{message:a,path:[`adapterName`]}),response:t},resolve:{request:i.object({adapterName:i.string().optional(),clientId:i.string().optional(),personaHarnessId:i.string().optional(),profileHarnessId:i.string().optional()}).refine(o,{message:a,path:[`adapterName`]}),response:t},getSchema:{request:i.object({}),response:i.object({schema:i.record(i.string(),i.unknown()),uiConfig:e})},created:t,updated:t,deleted:i.object({id:i.string()})},u=r(`harness`,l),d=u.subjects;function f(e,t){return t[e]??[]}function p(e){let{registeredTools:t,allowedCapabilities:n,disallowedCapabilities:r,capabilityMap:i}=e,a=new Set(n),o=new Set(r),s=[],c=[];for(let e of t){let t=f(e,i);n.length>0&&t.length>0&&t.every(e=>a.has(e))&&s.push(e),t.some(e=>o.has(e))&&c.push(e)}return{allowedTools:s,disallowedTools:c}}function m(e,t){return t.length===0?e?[...e]:void 0:[...new Set([...e??[],...t])]}function h(e,t){return{allowedTools:m(e,[]),disallowedTools:m(t,[])}}async function g(e,t){let{allowedCapabilities:n,disallowedCapabilities:r,harnessId:i,allowedTools:a,disallowedTools:o}=t;if(!((n?.length??0)||(r?.length??0))||!i)return h(a,o);let s=await e.request(d.get,{id:i});if(!s.toolCapabilityMap)return h(a,o);let c=p({registeredTools:s.nativeTools.enabled,allowedCapabilities:n??[],disallowedCapabilities:r??[],capabilityMap:s.toolCapabilityMap});return{allowedTools:m(a,c.allowedTools),disallowedTools:m(o,c.disallowedTools)}}const _={bash:[`shell.execute`,`file.read`,`file.write`,`file.delete`,`network.request`,`process.manage`],patch:[`file.write`]};function v(e){return{id:e.id,name:e.name,description:e.description,adapterName:e.adapterName,clientId:e.clientId,approvalPolicy:`always-ask`,nativeTools:{enabled:[],disabled:[]},registryTools:{enabled:[],disabled:[]},isDefault:!0,enabled:!0}}const y={id:`harness-codex-app-server-native`,name:`Codex Native`,description:`Codex app server with built-in native tools`,adapterName:`codex-app-server`,clientId:`codex`,approvalPolicy:`always-ask`,nativeTools:{enabled:[`bash`,`patch`],disabled:[]},registryTools:{enabled:[],disabled:[]},toolCapabilityMap:_,isDefault:!0,enabled:!0},b=v({id:`harness-openai-node-registry`,name:`OpenAI Registry`,description:`OpenAI adapter with registry-managed tools`,adapterName:`openai-node`}),x=v({id:`harness-claude-code-registry`,name:`Claude Code Registry`,description:`Claude Code adapter with registry-managed tools`,adapterName:`claude-code`,clientId:`claude-code`}),S=v({id:`harness-gemini-sdk-registry`,name:`Gemini SDK Registry`,description:`Gemini SDK adapter with registry-managed tools`,adapterName:`gemini-sdk`,clientId:`gemini`}),C=[y,b,x,S];export{b as a,g as c,l as d,d as f,S as i,f as l,y as n,_ as o,C as r,p as s,x as t,u};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { HostSubjects, HostNamespace } from './namespace.js';
|
|
2
|
+
export { HostSchemas, WindowStateSchema } from './schemas.js';
|
|
3
|
+
export type { TrayActivateRequest, TrayActivateResponse, WindowClosedEvent, WindowCreateRequest, WindowCreateResponse, WindowFocusRequest, WindowFocusResponse, WindowLabelChangedEvent, WindowListRequest, WindowListResponse, WindowOpenedEvent, WindowState, } from './schemas.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,GACZ,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/** Bus namespace definition for cross-cutting host shell RPCs. */
|
|
2
|
+
export declare const HostNamespace: import("@makaio/framework/core").BusNamespaceDefinition<"host", {
|
|
3
|
+
'window.opened': import("zod").ZodObject<{
|
|
4
|
+
windowId: import("zod").ZodNumber;
|
|
5
|
+
registrationId: import("zod").ZodString;
|
|
6
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
7
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
visible: import("zod").ZodBoolean;
|
|
9
|
+
focused: import("zod").ZodBoolean;
|
|
10
|
+
}, import("zod/v4/core").$strip>;
|
|
11
|
+
'window.closed': import("zod").ZodObject<{
|
|
12
|
+
windowId: import("zod").ZodNumber;
|
|
13
|
+
registrationId: import("zod").ZodString;
|
|
14
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
15
|
+
}, import("zod/v4/core").$strip>;
|
|
16
|
+
'window.labelChanged': import("zod").ZodObject<{
|
|
17
|
+
windowId: import("zod").ZodNumber;
|
|
18
|
+
label: import("zod").ZodString;
|
|
19
|
+
}, import("zod/v4/core").$strip>;
|
|
20
|
+
'window.create': {
|
|
21
|
+
request: import("zod").ZodObject<{
|
|
22
|
+
registrationId: import("zod").ZodString;
|
|
23
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
24
|
+
}, import("zod/v4/core").$strip>;
|
|
25
|
+
response: import("zod").ZodObject<{
|
|
26
|
+
windowId: import("zod").ZodNumber;
|
|
27
|
+
}, import("zod/v4/core").$strip>;
|
|
28
|
+
};
|
|
29
|
+
'window.focus': {
|
|
30
|
+
request: import("zod").ZodObject<{
|
|
31
|
+
windowId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
32
|
+
}, import("zod/v4/core").$strip>;
|
|
33
|
+
response: import("zod").ZodObject<{
|
|
34
|
+
success: import("zod").ZodBoolean;
|
|
35
|
+
}, import("zod/v4/core").$strip>;
|
|
36
|
+
};
|
|
37
|
+
'window.list': {
|
|
38
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
39
|
+
response: import("zod").ZodObject<{
|
|
40
|
+
windows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
41
|
+
windowId: import("zod").ZodNumber;
|
|
42
|
+
registrationId: import("zod").ZodString;
|
|
43
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
44
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
visible: import("zod").ZodBoolean;
|
|
46
|
+
focused: import("zod").ZodBoolean;
|
|
47
|
+
}, import("zod/v4/core").$strip>>;
|
|
48
|
+
}, import("zod/v4/core").$strip>;
|
|
49
|
+
};
|
|
50
|
+
'window.openDashboard': {
|
|
51
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
52
|
+
response: import("zod").ZodObject<{
|
|
53
|
+
windowId: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
54
|
+
}, import("zod/v4/core").$strip>;
|
|
55
|
+
};
|
|
56
|
+
'tray.activate': {
|
|
57
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
58
|
+
response: import("zod").ZodObject<{
|
|
59
|
+
handled: import("zod").ZodBoolean;
|
|
60
|
+
}, import("zod/v4/core").$strip>;
|
|
61
|
+
};
|
|
62
|
+
'app.focus': {
|
|
63
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
64
|
+
response: import("zod").ZodObject<{
|
|
65
|
+
focused: import("zod").ZodBoolean;
|
|
66
|
+
windowId: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
67
|
+
}, import("zod/v4/core").$strip>;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
/** Typed subject tree for the host namespace. */
|
|
71
|
+
export declare const HostSubjects: import("@makaio/framework/core").BusSubjects<import("@makaio/framework/core").FlatSubjectDefinitions<"host", {
|
|
72
|
+
'window.opened': import("zod").ZodObject<{
|
|
73
|
+
windowId: import("zod").ZodNumber;
|
|
74
|
+
registrationId: import("zod").ZodString;
|
|
75
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
76
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
77
|
+
visible: import("zod").ZodBoolean;
|
|
78
|
+
focused: import("zod").ZodBoolean;
|
|
79
|
+
}, import("zod/v4/core").$strip>;
|
|
80
|
+
'window.closed': import("zod").ZodObject<{
|
|
81
|
+
windowId: import("zod").ZodNumber;
|
|
82
|
+
registrationId: import("zod").ZodString;
|
|
83
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
84
|
+
}, import("zod/v4/core").$strip>;
|
|
85
|
+
'window.labelChanged': import("zod").ZodObject<{
|
|
86
|
+
windowId: import("zod").ZodNumber;
|
|
87
|
+
label: import("zod").ZodString;
|
|
88
|
+
}, import("zod/v4/core").$strip>;
|
|
89
|
+
'window.create': {
|
|
90
|
+
request: import("zod").ZodObject<{
|
|
91
|
+
registrationId: import("zod").ZodString;
|
|
92
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
93
|
+
}, import("zod/v4/core").$strip>;
|
|
94
|
+
response: import("zod").ZodObject<{
|
|
95
|
+
windowId: import("zod").ZodNumber;
|
|
96
|
+
}, import("zod/v4/core").$strip>;
|
|
97
|
+
};
|
|
98
|
+
'window.focus': {
|
|
99
|
+
request: import("zod").ZodObject<{
|
|
100
|
+
windowId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
101
|
+
}, import("zod/v4/core").$strip>;
|
|
102
|
+
response: import("zod").ZodObject<{
|
|
103
|
+
success: import("zod").ZodBoolean;
|
|
104
|
+
}, import("zod/v4/core").$strip>;
|
|
105
|
+
};
|
|
106
|
+
'window.list': {
|
|
107
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
108
|
+
response: import("zod").ZodObject<{
|
|
109
|
+
windows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
110
|
+
windowId: import("zod").ZodNumber;
|
|
111
|
+
registrationId: import("zod").ZodString;
|
|
112
|
+
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
113
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
+
visible: import("zod").ZodBoolean;
|
|
115
|
+
focused: import("zod").ZodBoolean;
|
|
116
|
+
}, import("zod/v4/core").$strip>>;
|
|
117
|
+
}, import("zod/v4/core").$strip>;
|
|
118
|
+
};
|
|
119
|
+
'window.openDashboard': {
|
|
120
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
121
|
+
response: import("zod").ZodObject<{
|
|
122
|
+
windowId: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
123
|
+
}, import("zod/v4/core").$strip>;
|
|
124
|
+
};
|
|
125
|
+
'tray.activate': {
|
|
126
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
127
|
+
response: import("zod").ZodObject<{
|
|
128
|
+
handled: import("zod").ZodBoolean;
|
|
129
|
+
}, import("zod/v4/core").$strip>;
|
|
130
|
+
};
|
|
131
|
+
'app.focus': {
|
|
132
|
+
request: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
133
|
+
response: import("zod").ZodObject<{
|
|
134
|
+
focused: import("zod").ZodBoolean;
|
|
135
|
+
windowId: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
136
|
+
}, import("zod/v4/core").$strip>;
|
|
137
|
+
};
|
|
138
|
+
}>, "host">;
|
|
139
|
+
//# sourceMappingURL=namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../src/host/namespace.ts"],"names":[],"mappings":"AAGA,kEAAkE;AAClE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0C,CAAC;AAErE,iDAAiD;AACjD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAyB,CAAC"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Desktop host window state snapshot.
|
|
4
|
+
*
|
|
5
|
+
* `registrationId` is the qualified window ID from the package registry
|
|
6
|
+
* (`{packageName}:{windowId}`) and replaces the former static `WindowType`
|
|
7
|
+
* enum field. The numeric `windowId` remains the host-assigned instance ID.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WindowStateSchema: z.ZodObject<{
|
|
10
|
+
windowId: z.ZodNumber;
|
|
11
|
+
registrationId: z.ZodString;
|
|
12
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
+
label: z.ZodOptional<z.ZodString>;
|
|
14
|
+
visible: z.ZodBoolean;
|
|
15
|
+
focused: z.ZodBoolean;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
/**
|
|
18
|
+
* Host shell domain schemas.
|
|
19
|
+
*
|
|
20
|
+
* Cross-cutting RPCs that any host shell (Electron, Electrobun, browser)
|
|
21
|
+
* should implement. Framework UI packages import these subjects directly
|
|
22
|
+
* from `@makaio/contracts` instead of reaching into a specific host app.
|
|
23
|
+
*
|
|
24
|
+
* Covers window lifecycle events (host → bus) consumed by the tray,
|
|
25
|
+
* and window management RPCs (bus → host) issued by the tray.
|
|
26
|
+
*/
|
|
27
|
+
export declare const HostSchemas: {
|
|
28
|
+
/**
|
|
29
|
+
* Emitted when a new desktop window is opened.
|
|
30
|
+
*
|
|
31
|
+
* Subject: `host.window.opened`
|
|
32
|
+
* Type: Event
|
|
33
|
+
*/
|
|
34
|
+
'window.opened': z.ZodObject<{
|
|
35
|
+
windowId: z.ZodNumber;
|
|
36
|
+
registrationId: z.ZodString;
|
|
37
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
|
+
label: z.ZodOptional<z.ZodString>;
|
|
39
|
+
visible: z.ZodBoolean;
|
|
40
|
+
focused: z.ZodBoolean;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
/**
|
|
43
|
+
* Emitted when a desktop window is closed.
|
|
44
|
+
*
|
|
45
|
+
* Subject: `host.window.closed`
|
|
46
|
+
* Type: Event
|
|
47
|
+
*/
|
|
48
|
+
'window.closed': z.ZodObject<{
|
|
49
|
+
windowId: z.ZodNumber;
|
|
50
|
+
registrationId: z.ZodString;
|
|
51
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
/**
|
|
54
|
+
* Emitted by the web UI when a window's display label changes — for example,
|
|
55
|
+
* when a project name becomes available or when the first message of a chat
|
|
56
|
+
* session is typed.
|
|
57
|
+
*
|
|
58
|
+
* The host main process listens for this event and calls
|
|
59
|
+
* `WindowManager.updateLabel` so the internal registry stays current.
|
|
60
|
+
* Because the event is on the shared bus, the tray handler can also
|
|
61
|
+
* react to it (e.g. to update the tray menu item label) without any
|
|
62
|
+
* additional wiring.
|
|
63
|
+
*
|
|
64
|
+
* Subject: `host.window.labelChanged`
|
|
65
|
+
* Type: Event
|
|
66
|
+
*/
|
|
67
|
+
'window.labelChanged': z.ZodObject<{
|
|
68
|
+
windowId: z.ZodNumber;
|
|
69
|
+
label: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a new desktop window identified by its registry registration ID.
|
|
73
|
+
*
|
|
74
|
+
* Subject: `host.window.create`
|
|
75
|
+
* Type: Request (RPC)
|
|
76
|
+
*/
|
|
77
|
+
'window.create': {
|
|
78
|
+
request: z.ZodObject<{
|
|
79
|
+
registrationId: z.ZodString;
|
|
80
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
response: z.ZodObject<{
|
|
83
|
+
windowId: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Focus an existing window. If no `windowId` is provided, focuses the
|
|
88
|
+
* most recently active window.
|
|
89
|
+
*
|
|
90
|
+
* Subject: `host.window.focus`
|
|
91
|
+
* Type: Request (RPC)
|
|
92
|
+
*/
|
|
93
|
+
'window.focus': {
|
|
94
|
+
request: z.ZodObject<{
|
|
95
|
+
windowId: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
response: z.ZodObject<{
|
|
98
|
+
success: z.ZodBoolean;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* List all currently open desktop windows with their current state.
|
|
103
|
+
*
|
|
104
|
+
* Subject: `host.window.list`
|
|
105
|
+
* Type: Request (RPC)
|
|
106
|
+
*/
|
|
107
|
+
'window.list': {
|
|
108
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
109
|
+
response: z.ZodObject<{
|
|
110
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
111
|
+
windowId: z.ZodNumber;
|
|
112
|
+
registrationId: z.ZodString;
|
|
113
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
114
|
+
label: z.ZodOptional<z.ZodString>;
|
|
115
|
+
visible: z.ZodBoolean;
|
|
116
|
+
focused: z.ZodBoolean;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Open (or focus) the primary dashboard window managed by the host shell.
|
|
122
|
+
*
|
|
123
|
+
* Request: empty — the handler knows the dashboard registration ID.
|
|
124
|
+
* Response: `windowId` — the host-assigned window ID, or `null` when no
|
|
125
|
+
* window could be created or focused.
|
|
126
|
+
*
|
|
127
|
+
* Subject: `host.window.openDashboard`
|
|
128
|
+
* Type: Request (RPC)
|
|
129
|
+
*/
|
|
130
|
+
'window.openDashboard': {
|
|
131
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
132
|
+
response: z.ZodObject<{
|
|
133
|
+
windowId: z.ZodNullable<z.ZodNumber>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Activate the tray popover panel. Fired when the user
|
|
138
|
+
* left-clicks the tray icon.
|
|
139
|
+
*
|
|
140
|
+
* The response tells whether the host handled the click.
|
|
141
|
+
* When `handled` is `true`, suppress the native menu.
|
|
142
|
+
* This is `true` for both showing and dismissing the popover (toggle).
|
|
143
|
+
*
|
|
144
|
+
* Subject: `host.tray.activate`
|
|
145
|
+
* Type: Request (RPC)
|
|
146
|
+
*/
|
|
147
|
+
'tray.activate': {
|
|
148
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
149
|
+
response: z.ZodObject<{
|
|
150
|
+
handled: z.ZodBoolean;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Focus the application: bring an existing window to front, or open the
|
|
155
|
+
* default shell window if none are open.
|
|
156
|
+
*
|
|
157
|
+
* Used by: second-instance detection (Electrobun health-probe),
|
|
158
|
+
* `makaio open` CLI command, Electron `second-instance` event.
|
|
159
|
+
*
|
|
160
|
+
* Subject: `host.app.focus`
|
|
161
|
+
* Type: Request (RPC)
|
|
162
|
+
*/
|
|
163
|
+
'app.focus': {
|
|
164
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
165
|
+
response: z.ZodObject<{
|
|
166
|
+
focused: z.ZodBoolean;
|
|
167
|
+
windowId: z.ZodNullable<z.ZodNumber>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
/** State snapshot for a single desktop window. */
|
|
172
|
+
export type WindowState = z.infer<typeof WindowStateSchema>;
|
|
173
|
+
/** Payload of the `host.window.opened` event. */
|
|
174
|
+
export type WindowOpenedEvent = z.infer<(typeof HostSchemas)['window.opened']>;
|
|
175
|
+
/** Payload of the `host.window.closed` event. */
|
|
176
|
+
export type WindowClosedEvent = z.infer<(typeof HostSchemas)['window.closed']>;
|
|
177
|
+
/** Payload of the `host.window.labelChanged` event. */
|
|
178
|
+
export type WindowLabelChangedEvent = z.infer<(typeof HostSchemas)['window.labelChanged']>;
|
|
179
|
+
/** Request payload for `host.window.create`. */
|
|
180
|
+
export type WindowCreateRequest = z.infer<(typeof HostSchemas)['window.create']['request']>;
|
|
181
|
+
/** Response payload for `host.window.create`. */
|
|
182
|
+
export type WindowCreateResponse = z.infer<(typeof HostSchemas)['window.create']['response']>;
|
|
183
|
+
/** Request payload for `host.window.focus`. */
|
|
184
|
+
export type WindowFocusRequest = z.infer<(typeof HostSchemas)['window.focus']['request']>;
|
|
185
|
+
/** Response payload for `host.window.focus`. */
|
|
186
|
+
export type WindowFocusResponse = z.infer<(typeof HostSchemas)['window.focus']['response']>;
|
|
187
|
+
/** Request payload for `host.window.list`. */
|
|
188
|
+
export type WindowListRequest = z.infer<(typeof HostSchemas)['window.list']['request']>;
|
|
189
|
+
/** Response payload for `host.window.list`. */
|
|
190
|
+
export type WindowListResponse = z.infer<(typeof HostSchemas)['window.list']['response']>;
|
|
191
|
+
/** Request payload for `host.tray.activate`. */
|
|
192
|
+
export type TrayActivateRequest = z.infer<(typeof HostSchemas)['tray.activate']['request']>;
|
|
193
|
+
/** Response payload for `host.tray.activate`. */
|
|
194
|
+
export type TrayActivateResponse = z.infer<(typeof HostSchemas)['tray.activate']['response']>;
|
|
195
|
+
/** Request payload for `host.app.focus`. */
|
|
196
|
+
export type AppFocusRequest = z.infer<(typeof HostSchemas)['app.focus']['request']>;
|
|
197
|
+
/** Response payload for `host.app.focus`. */
|
|
198
|
+
export type AppFocusResponse = z.infer<(typeof HostSchemas)['app.focus']['response']>;
|
|
199
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/host/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;iBAiB5B,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW;IAKtB;;;;;OAKG;;;;;;;;;IAmBH;;;;;OAKG;;;;;;IAaH;;;;;;;;;;;;;OAaG;;;;;IAYH;;;;;OAKG;;;;;;;;;;IAkBH;;;;;;OAMG;;;;;;;;;IAYH;;;;;OAKG;;;;;;;;;;;;;;IASH;;;;;;;;;OASG;;;;;;;IAaH;;;;;;;;;;OAUG;;;;;;;IASH;;;;;;;;;OASG;;;;;;;;CAUmB,CAAC;AAIzB,kDAAkD;AAClD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AAE/E,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AAE/E,uDAAuD;AACvD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAE3F,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE5F,iDAAiD;AACjD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAE9F,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE1F,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAE5F,8CAA8C;AAC9C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAExF,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAE1F,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE5F,iDAAiD;AACjD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAE9F,4CAA4C;AAC5C,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEpF,6CAA6C;AAC7C,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
|