@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,207 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AIModelSchema } from '../model/index.js';
|
|
3
|
+
export { AIModelSchema };
|
|
4
|
+
/**
|
|
5
|
+
* Stored protocol endpoint overrides persisted in provider config files.
|
|
6
|
+
*
|
|
7
|
+
* The stored file format allows sparse endpoint overrides because a provider
|
|
8
|
+
* may only override one of the supported wire protocols.
|
|
9
|
+
*/
|
|
10
|
+
export declare const StoredProtocolEndpointsSchema: z.ZodObject<{
|
|
11
|
+
anthropic: z.ZodOptional<z.ZodString>;
|
|
12
|
+
openai: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
/**
|
|
15
|
+
* Inferred type for stored protocol endpoint overrides.
|
|
16
|
+
*/
|
|
17
|
+
export type StoredProtocolEndpoints = z.infer<typeof StoredProtocolEndpointsSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* Provider defaults configuration without display/enabled fields.
|
|
20
|
+
*
|
|
21
|
+
* This lower-layer contract is shared by adapter config parsing and settings
|
|
22
|
+
* RPC schemas, so it must remain outside adapter-core to avoid package cycles.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ProviderDefaultsSchema: z.ZodObject<{
|
|
25
|
+
model: z.ZodOptional<z.ZodString>;
|
|
26
|
+
timeouts: z.ZodOptional<z.ZodType<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown, z.core.$ZodTypeInternals<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown>>>;
|
|
27
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
28
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>>;
|
|
30
|
+
providerSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
/**
|
|
33
|
+
* Configuration for a single adapter provider.
|
|
34
|
+
*
|
|
35
|
+
* Providers allow running multiple configurations of the same adapter
|
|
36
|
+
* (e.g., different API keys, models, or runtime settings).
|
|
37
|
+
*/
|
|
38
|
+
export declare const ProviderConfigSchema: z.ZodObject<{
|
|
39
|
+
model: z.ZodOptional<z.ZodString>;
|
|
40
|
+
timeouts: z.ZodOptional<z.ZodType<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown, z.core.$ZodTypeInternals<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown>>>;
|
|
41
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
42
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
43
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>>;
|
|
44
|
+
providerSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
definitionId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
49
|
+
availableModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
friendlyName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
family: z.ZodOptional<z.ZodString>;
|
|
53
|
+
contextWindowSize: z.ZodNumber;
|
|
54
|
+
labId: z.ZodString;
|
|
55
|
+
supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
57
|
+
low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
58
|
+
medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
59
|
+
high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
60
|
+
'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
vision: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
toolCalling: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
structuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
pdfUpload: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
speechToText: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
72
|
+
batch: "batch";
|
|
73
|
+
streaming: "streaming";
|
|
74
|
+
}>>;
|
|
75
|
+
vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
textToSpeech: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
79
|
+
buffered: "buffered";
|
|
80
|
+
streaming: "streaming";
|
|
81
|
+
}>>;
|
|
82
|
+
voiceSelection: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
voiceInstructions: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
token: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
inputPerMillion: z.ZodNumber;
|
|
90
|
+
inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
outputPerMillion: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
multiplier: z.ZodNumber;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
includedInSubscription: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
description: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
102
|
+
modelFilterMode: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
allowlist: "allowlist";
|
|
104
|
+
"show-all": "show-all";
|
|
105
|
+
}>>;
|
|
106
|
+
modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
107
|
+
disabled: "disabled";
|
|
108
|
+
enabled: "enabled";
|
|
109
|
+
visible: "visible";
|
|
110
|
+
}>>>;
|
|
111
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
112
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
/**
|
|
115
|
+
* Adapter configuration file schema.
|
|
116
|
+
*
|
|
117
|
+
* This schema defines the structure of user config files stored at:
|
|
118
|
+
* `~/.makaio/adapters/<adapterName>/config.json`
|
|
119
|
+
*/
|
|
120
|
+
export declare const BaseAdapterConfigSchema: z.ZodObject<{
|
|
121
|
+
$schema: z.ZodLiteral<"makaio/adapter-config/v2">;
|
|
122
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
model: z.ZodOptional<z.ZodString>;
|
|
124
|
+
timeouts: z.ZodOptional<z.ZodType<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown, z.core.$ZodTypeInternals<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown>>>;
|
|
125
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
126
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
127
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>>;
|
|
128
|
+
providerSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
providers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
131
|
+
model: z.ZodOptional<z.ZodString>;
|
|
132
|
+
timeouts: z.ZodOptional<z.ZodType<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown, z.core.$ZodTypeInternals<Partial<import("@makaio/framework/contracts").RequiredTimeoutConfig>, unknown>>>;
|
|
133
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
134
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
135
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>>;
|
|
136
|
+
providerSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
137
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
definitionId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
141
|
+
availableModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
friendlyName: z.ZodOptional<z.ZodString>;
|
|
144
|
+
family: z.ZodOptional<z.ZodString>;
|
|
145
|
+
contextWindowSize: z.ZodNumber;
|
|
146
|
+
labId: z.ZodString;
|
|
147
|
+
supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
149
|
+
low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
150
|
+
medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
151
|
+
high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
152
|
+
'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
vision: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
toolCalling: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
structuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
pdfUpload: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
speechToText: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
164
|
+
batch: "batch";
|
|
165
|
+
streaming: "streaming";
|
|
166
|
+
}>>;
|
|
167
|
+
vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
textToSpeech: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
171
|
+
buffered: "buffered";
|
|
172
|
+
streaming: "streaming";
|
|
173
|
+
}>>;
|
|
174
|
+
voiceSelection: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
voiceInstructions: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
token: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
inputPerMillion: z.ZodNumber;
|
|
182
|
+
inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
outputPerMillion: z.ZodNumber;
|
|
185
|
+
}, z.core.$strip>>;
|
|
186
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
multiplier: z.ZodNumber;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
includedInSubscription: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
description: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
}, z.core.$strip>>>;
|
|
194
|
+
modelFilterMode: z.ZodOptional<z.ZodEnum<{
|
|
195
|
+
allowlist: "allowlist";
|
|
196
|
+
"show-all": "show-all";
|
|
197
|
+
}>>;
|
|
198
|
+
modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
199
|
+
disabled: "disabled";
|
|
200
|
+
enabled: "enabled";
|
|
201
|
+
visible: "visible";
|
|
202
|
+
}>>>;
|
|
203
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
204
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
205
|
+
}, z.core.$strip>>>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
//# sourceMappingURL=provider-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-defaults.d.ts","sourceRoot":"","sources":["../../src/config/provider-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKlD,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;kBAM/B,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;iBAkBjC,CAAC;AAEH;;;;;GAKG;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuB/B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createBusNamespace as e}from"@makaio/framework/core";import{z as t}from"zod";const n=t.object({$schema:t.literal(`makaio/config/v1`).default(`makaio/config/v1`),mode:t.enum([`local`,`remote`,`hybrid`]).default(`local`),role:t.enum([`main-dev-machine`,`server`]).default(`main-dev-machine`),bus:t.object({remote:t.object({url:t.string().url().optional(),secret:t.string().optional()}).optional()}).optional(),relay:t.object({url:t.string().url().optional(),token:t.string().optional(),autoReconnect:t.boolean().optional().default(!0),maxReconnectAttempts:t.number().int().min(0).optional().default(5),heartbeatInterval:t.number().int().positive().optional().default(3e4)}).optional(),features:t.object({voiceBridge:t.boolean().default(!1)}).optional(),fileWatcher:t.object({backend:t.enum([`auto`,`watchman`,`parcel`,`chokidar`]).default(`auto`)}).optional()}),r=t.object({initialization:t.number().optional().describe(`Time allowed for adapter/session initialization (cold starts, auth). Defaults to 30000ms.`),acknowledgement:t.number().optional().describe(`Time allowed for acknowledgement that a message was received. Defaults to 30000ms.`),completion:t.number().optional().describe(`Time allowed for completion of complex reasoning operations. Defaults to 60000ms.`),toolApproval:t.number().optional().describe(`Time allowed for tool approval responses (user is waiting). Defaults to 5000ms.`),eventWait:t.number().optional().describe(`Default time for once() calls waiting for events. Defaults to 10000ms.`)}),i={get:{request:t.object({}),response:t.object({config:n})},update:{request:t.object({config:n}),response:t.object({success:t.boolean()})}},a=e(`config`,i),o=a.subjects;export{n as a,r as i,o as n,i as r,a as t};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Shared credential-change sequence contract.
|
|
4
|
+
*
|
|
5
|
+
* Safe-integer bounds keep the bus contract aligned with the runtime
|
|
6
|
+
* sequencer, which only accepts exact JavaScript integers.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CredentialChangeSequenceSchema: z.ZodNumber;
|
|
9
|
+
/**
|
|
10
|
+
* Credential-change sequence inferred from the shared schema.
|
|
11
|
+
*/
|
|
12
|
+
export type CredentialChangeSequence = z.infer<typeof CredentialChangeSequenceSchema>;
|
|
13
|
+
//# sourceMappingURL=change-sequence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-sequence.d.ts","sourceRoot":"","sources":["../../src/credential/change-sequence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,aAAuD,CAAC;AAEnG;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API for the credential contracts.
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
*/
|
|
5
|
+
export { CredentialNamespace, CredentialSubjects } from './namespace.js';
|
|
6
|
+
export { CredentialChangeSequenceSchema } from './change-sequence.js';
|
|
7
|
+
export type { CredentialChangeSequence } from './change-sequence.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/credential/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credential namespace for the Makaio bus.
|
|
3
|
+
*
|
|
4
|
+
* Provides top-level bus subjects for credential CRUD and resolution,
|
|
5
|
+
* keyed by `configId`. Provider-config entities use their UUID as the configId;
|
|
6
|
+
* other callers (e.g., GitHub OAuth) use a well-known synthetic key such as
|
|
7
|
+
* `'github:oauth-default'`.
|
|
8
|
+
*
|
|
9
|
+
* Channel-only subjects (`store`, `get`, `resolve`) carry sensitive credential
|
|
10
|
+
* data and are rejected by the public bus. Callers must open a DirectChannel
|
|
11
|
+
* via the `getChannelToken` subject before using them. `getChannelToken` itself
|
|
12
|
+
* is local-only — it is never routed to remote transports — so only in-process
|
|
13
|
+
* bus participants can request the capability token.
|
|
14
|
+
*
|
|
15
|
+
* Prefix: `credential.`
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* // Obtain a channel token, then open a channel for sensitive operations
|
|
19
|
+
* const { token } = await bus.request(CredentialSubjects.getChannelToken, {});
|
|
20
|
+
* const channel = await openChannel(bus.getContext(), 'credentials', { token, transports: [] });
|
|
21
|
+
*
|
|
22
|
+
* // Store credentials over the encrypted channel
|
|
23
|
+
* await channel.request(CredentialSubjects.store, {
|
|
24
|
+
* configId: 'uuid-here',
|
|
25
|
+
* credentials: { apiKey: 'sk-...' },
|
|
26
|
+
* });
|
|
27
|
+
*
|
|
28
|
+
* // Resolve a credential reference over the encrypted channel
|
|
29
|
+
* const { value } = await channel.request(CredentialSubjects.resolve, { ref });
|
|
30
|
+
* ```
|
|
31
|
+
* @packageDocumentation
|
|
32
|
+
*/
|
|
33
|
+
import { z } from 'zod';
|
|
34
|
+
/** Credential service namespace registered under the `credential` prefix. */
|
|
35
|
+
export declare const CredentialNamespace: import("@makaio/framework/core").BusNamespaceDefinition<"credential", {
|
|
36
|
+
/**
|
|
37
|
+
* Store credentials for a provider config.
|
|
38
|
+
* Channel-only — carries sensitive credential data.
|
|
39
|
+
*/
|
|
40
|
+
store: import("@makaio/framework/core").ChannelSubjectSchema<{
|
|
41
|
+
request: z.ZodObject<{
|
|
42
|
+
configId: z.ZodString;
|
|
43
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieve stored credentials for a provider config.
|
|
49
|
+
* Channel-only — carries sensitive credential data.
|
|
50
|
+
*/
|
|
51
|
+
get: import("@makaio/framework/core").ChannelSubjectSchema<{
|
|
52
|
+
request: z.ZodObject<{
|
|
53
|
+
configId: z.ZodString;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
response: z.ZodObject<{
|
|
56
|
+
credentials: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}>;
|
|
59
|
+
/** Check whether credentials exist for a provider config. */
|
|
60
|
+
exists: {
|
|
61
|
+
request: z.ZodObject<{
|
|
62
|
+
configId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
response: z.ZodObject<{
|
|
65
|
+
exists: z.ZodBoolean;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
};
|
|
68
|
+
/** Delete stored credentials for a provider config. */
|
|
69
|
+
delete: {
|
|
70
|
+
request: z.ZodObject<{
|
|
71
|
+
configId: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
response: z.ZodObject<{
|
|
74
|
+
deleted: z.ZodBoolean;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Pre-resolution activation hook for credential extensions.
|
|
79
|
+
*
|
|
80
|
+
* Emitted before `resolveConnectorCredentials()` runs so extensions
|
|
81
|
+
* (e.g., account-manager) can prepare native credential stores.
|
|
82
|
+
* Awaited before credential resolution — handler failures are suppressed
|
|
83
|
+
* (errors cannot block agent start), but completion is guaranteed before
|
|
84
|
+
* `resolveConnectorCredentials()` runs.
|
|
85
|
+
*/
|
|
86
|
+
activate: {
|
|
87
|
+
request: z.ZodObject<{
|
|
88
|
+
providerConfigId: z.ZodString;
|
|
89
|
+
definitionId: z.ZodString;
|
|
90
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Mid-session credential rotation signal.
|
|
96
|
+
*
|
|
97
|
+
* Emitted when credential state changes during active sessions.
|
|
98
|
+
* The orchestrator fans this out to affected agents.
|
|
99
|
+
*/
|
|
100
|
+
changed: {
|
|
101
|
+
request: z.ZodObject<{
|
|
102
|
+
sessionId: z.ZodString;
|
|
103
|
+
providerConfigId: z.ZodString;
|
|
104
|
+
definitionId: z.ZodString;
|
|
105
|
+
changeSequence: z.ZodNumber;
|
|
106
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Resolve a credential reference to its plaintext value.
|
|
112
|
+
* Channel-only — the resolved value is sensitive.
|
|
113
|
+
*/
|
|
114
|
+
resolve: import("@makaio/framework/core").ChannelSubjectSchema<{
|
|
115
|
+
request: z.ZodObject<{
|
|
116
|
+
ref: z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
response: z.ZodObject<{
|
|
119
|
+
value: z.ZodNullable<z.ZodString>;
|
|
120
|
+
error: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* Request the credential channel capability token (local-only).
|
|
125
|
+
*
|
|
126
|
+
* The token grants access to encrypted credential operations. This subject
|
|
127
|
+
* is local-only to prevent the token from leaking to remote transports.
|
|
128
|
+
* The runtime distributes this token only to authorized services during
|
|
129
|
+
* initialization.
|
|
130
|
+
*/
|
|
131
|
+
getChannelToken: import("@makaio/framework/core").LocalSubjectSchema<{
|
|
132
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
133
|
+
response: z.ZodObject<{
|
|
134
|
+
token: z.ZodString;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
}>;
|
|
137
|
+
}>;
|
|
138
|
+
/** Pre-extracted credential bus subjects for direct import. */
|
|
139
|
+
export declare const CredentialSubjects: import("@makaio/framework/core").BusSubjects<import("@makaio/framework/core").FlatSubjectDefinitions<"credential", {
|
|
140
|
+
/**
|
|
141
|
+
* Store credentials for a provider config.
|
|
142
|
+
* Channel-only — carries sensitive credential data.
|
|
143
|
+
*/
|
|
144
|
+
store: import("@makaio/framework/core").ChannelSubjectSchema<{
|
|
145
|
+
request: z.ZodObject<{
|
|
146
|
+
configId: z.ZodString;
|
|
147
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
150
|
+
}>;
|
|
151
|
+
/**
|
|
152
|
+
* Retrieve stored credentials for a provider config.
|
|
153
|
+
* Channel-only — carries sensitive credential data.
|
|
154
|
+
*/
|
|
155
|
+
get: import("@makaio/framework/core").ChannelSubjectSchema<{
|
|
156
|
+
request: z.ZodObject<{
|
|
157
|
+
configId: z.ZodString;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
response: z.ZodObject<{
|
|
160
|
+
credentials: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
}>;
|
|
163
|
+
/** Check whether credentials exist for a provider config. */
|
|
164
|
+
exists: {
|
|
165
|
+
request: z.ZodObject<{
|
|
166
|
+
configId: z.ZodString;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
response: z.ZodObject<{
|
|
169
|
+
exists: z.ZodBoolean;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
};
|
|
172
|
+
/** Delete stored credentials for a provider config. */
|
|
173
|
+
delete: {
|
|
174
|
+
request: z.ZodObject<{
|
|
175
|
+
configId: z.ZodString;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
response: z.ZodObject<{
|
|
178
|
+
deleted: z.ZodBoolean;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Pre-resolution activation hook for credential extensions.
|
|
183
|
+
*
|
|
184
|
+
* Emitted before `resolveConnectorCredentials()` runs so extensions
|
|
185
|
+
* (e.g., account-manager) can prepare native credential stores.
|
|
186
|
+
* Awaited before credential resolution — handler failures are suppressed
|
|
187
|
+
* (errors cannot block agent start), but completion is guaranteed before
|
|
188
|
+
* `resolveConnectorCredentials()` runs.
|
|
189
|
+
*/
|
|
190
|
+
activate: {
|
|
191
|
+
request: z.ZodObject<{
|
|
192
|
+
providerConfigId: z.ZodString;
|
|
193
|
+
definitionId: z.ZodString;
|
|
194
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Mid-session credential rotation signal.
|
|
200
|
+
*
|
|
201
|
+
* Emitted when credential state changes during active sessions.
|
|
202
|
+
* The orchestrator fans this out to affected agents.
|
|
203
|
+
*/
|
|
204
|
+
changed: {
|
|
205
|
+
request: z.ZodObject<{
|
|
206
|
+
sessionId: z.ZodString;
|
|
207
|
+
providerConfigId: z.ZodString;
|
|
208
|
+
definitionId: z.ZodString;
|
|
209
|
+
changeSequence: z.ZodNumber;
|
|
210
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Resolve a credential reference to its plaintext value.
|
|
216
|
+
* Channel-only — the resolved value is sensitive.
|
|
217
|
+
*/
|
|
218
|
+
resolve: import("@makaio/framework/core").ChannelSubjectSchema<{
|
|
219
|
+
request: z.ZodObject<{
|
|
220
|
+
ref: z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
response: z.ZodObject<{
|
|
223
|
+
value: z.ZodNullable<z.ZodString>;
|
|
224
|
+
error: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* Request the credential channel capability token (local-only).
|
|
229
|
+
*
|
|
230
|
+
* The token grants access to encrypted credential operations. This subject
|
|
231
|
+
* is local-only to prevent the token from leaking to remote transports.
|
|
232
|
+
* The runtime distributes this token only to authorized services during
|
|
233
|
+
* initialization.
|
|
234
|
+
*/
|
|
235
|
+
getChannelToken: import("@makaio/framework/core").LocalSubjectSchema<{
|
|
236
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
237
|
+
response: z.ZodObject<{
|
|
238
|
+
token: z.ZodString;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
}>;
|
|
241
|
+
}>, "credential">;
|
|
242
|
+
//# sourceMappingURL=namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../src/credential/namespace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyIxB,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB;IA5H9B;;;OAGG;;;;;;;;IAUH;;;OAGG;;;;;;;;;IAWH,6DAA6D;;;;;;;;;IAW7D,uDAAuD;;;;;;;;;IAWvD;;;;;;;;OAQG;;;;;;;;;IAYH;;;;;OAKG;;;;;;;;;;;IAgBH;;;OAGG;;;;;;;;;;IAaH;;;;;;;OAOG;;;;;;;EAWiF,CAAC;AAEvF,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB;IA/H7B;;;OAGG;;;;;;;;IAUH;;;OAGG;;;;;;;;;IAWH,6DAA6D;;;;;;;;;IAW7D,uDAAuD;;;;;;;;;IAWvD;;;;;;;;OAQG;;;;;;;;;IAYH;;;;;OAKG;;;;;;;;;;;IAgBH;;;OAGG;;;;;;;;;;IAaH;;;;;;;OAOG;;;;;;;iBAcyD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./visibility-D4i0fywT.mjs";import{z as e}from"zod";const t=`stored:providerConfig:`,n=`account-manager:`;function r(e){if(!e.startsWith(t))return null;let n=e.slice(22),r=n.lastIndexOf(`:`);if(r===-1)return null;let i=n.slice(0,r),a=n.slice(r+1);return!i||!a||a.includes(`:`)?null:{configId:i,key:a}}function i(e,t){if(!e.startsWith(t))return!1;let n=e.slice(t.length),r=n.indexOf(`:`);return!(r<=0||r>=n.length-1)}function a(e){if(!e.startsWith(n))return null;try{let t=JSON.parse(e.slice(16));return!Array.isArray(t)||t.length!==2||typeof t[0]!=`string`||typeof t[1]!=`string`||t[0].length===0||t[1].length===0?null:{clientId:t[0],accountId:t[1]}}catch{return null}}function o(e){if(r(e))return!0;if(e.startsWith(`env:`)){let t=e.slice(4);return/^[A-Za-z_][A-Za-z0-9_]*$/.test(t)}return e.startsWith(`file:`)?e.length>5:!!(i(e,`keychain:`)||a(e))}function s(e){return a(e)!==null}const c=e.string().refine(o,{message:`Invalid credential reference format.`}).brand();function l(e,n){if(n.includes(`:`))throw Error(`Credential key must not contain colons: "${n}"`);return c.parse(`${t}${e}:${n}`)}function u(e,t){return c.parse(`${n}${JSON.stringify([e,t])}`)}function d(e){return r(e)}function f(e){if(!e)return;let t={};for(let[n,r]of Object.entries(e))t[n]=c.parse(r);return t}function p(e){if(e)return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t]))}export{s as a,l as i,f as n,d as o,u as r,p as s,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./visibility-D4i0fywT.mjs";import{z as n}from"zod";const r=n.enum([`anthropic`,`openai`]),i=n.object({anthropic:n.string().url(),openai:n.string().url()}).partial().refine(e=>Object.keys(e).length>0,{message:`At least one protocol endpoint must be specified`}),a=n.object({id:n.string().min(1),name:n.string().min(1),description:n.string().optional(),endpoints:i.optional(),defaultModel:n.string().optional(),fastModel:n.string().optional(),primaryTestModel:n.string().optional(),secondaryTestModel:n.string().optional(),availableModels:n.array(e).default([]),defaultModelFilterMode:t.optional(),credentialEnvVars:n.record(n.string(),n.string()).optional()});export{r as n,a as r,i as t};
|