@pellux/goodvibes-sdk 0.18.13 → 0.18.15
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/dist/_internal/platform/acp/connection.d.ts +59 -0
- package/dist/_internal/platform/acp/connection.d.ts.map +1 -0
- package/dist/_internal/platform/acp/connection.js +377 -0
- package/dist/_internal/platform/acp/index.d.ts +3 -0
- package/dist/_internal/platform/acp/index.d.ts.map +1 -0
- package/dist/_internal/platform/acp/index.js +1 -0
- package/dist/_internal/platform/acp/manager.d.ts +49 -0
- package/dist/_internal/platform/acp/manager.d.ts.map +1 -0
- package/dist/_internal/platform/acp/manager.js +105 -0
- package/dist/_internal/platform/adapters/bluebubbles/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/bluebubbles/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/bluebubbles/index.js +119 -0
- package/dist/_internal/platform/adapters/discord/index.d.ts +9 -0
- package/dist/_internal/platform/adapters/discord/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/discord/index.js +255 -0
- package/dist/_internal/platform/adapters/github/index.d.ts +8 -0
- package/dist/_internal/platform/adapters/github/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/github/index.js +58 -0
- package/dist/_internal/platform/adapters/google-chat/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/google-chat/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/google-chat/index.js +105 -0
- package/dist/_internal/platform/adapters/imessage/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/imessage/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/imessage/index.js +84 -0
- package/dist/_internal/platform/adapters/index.d.ts +16 -0
- package/dist/_internal/platform/adapters/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/index.js +15 -0
- package/dist/_internal/platform/adapters/matrix/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/matrix/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/matrix/index.js +106 -0
- package/dist/_internal/platform/adapters/mattermost/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/mattermost/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/mattermost/index.js +139 -0
- package/dist/_internal/platform/adapters/msteams/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/msteams/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/msteams/index.js +169 -0
- package/dist/_internal/platform/adapters/ntfy/index.d.ts +4 -0
- package/dist/_internal/platform/adapters/ntfy/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/ntfy/index.js +105 -0
- package/dist/_internal/platform/adapters/signal/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/signal/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/signal/index.js +84 -0
- package/dist/_internal/platform/adapters/slack/index.d.ts +5 -0
- package/dist/_internal/platform/adapters/slack/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/slack/index.js +287 -0
- package/dist/_internal/platform/adapters/telegram/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/telegram/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/telegram/index.js +147 -0
- package/dist/_internal/platform/adapters/types.d.ts +81 -0
- package/dist/_internal/platform/adapters/types.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/types.js +1 -0
- package/dist/_internal/platform/adapters/webhook/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/webhook/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/webhook/index.js +167 -0
- package/dist/_internal/platform/adapters/whatsapp/index.d.ts +3 -0
- package/dist/_internal/platform/adapters/whatsapp/index.d.ts.map +1 -0
- package/dist/_internal/platform/adapters/whatsapp/index.js +125 -0
- package/dist/_internal/platform/agents/message-bus-core.d.ts +55 -0
- package/dist/_internal/platform/agents/message-bus-core.d.ts.map +1 -0
- package/dist/_internal/platform/agents/message-bus-core.js +244 -0
- package/dist/_internal/platform/agents/message-bus.d.ts +3 -0
- package/dist/_internal/platform/agents/message-bus.d.ts.map +1 -0
- package/dist/_internal/platform/agents/message-bus.js +1 -0
- package/dist/_internal/platform/agents/orchestrator-prompts.d.ts +33 -0
- package/dist/_internal/platform/agents/orchestrator-prompts.d.ts.map +1 -0
- package/dist/_internal/platform/agents/orchestrator-prompts.js +320 -0
- package/dist/_internal/platform/agents/orchestrator-runner.d.ts +56 -0
- package/dist/_internal/platform/agents/orchestrator-runner.d.ts.map +1 -0
- package/dist/_internal/platform/agents/orchestrator-runner.js +492 -0
- package/dist/_internal/platform/agents/orchestrator.d.ts +92 -0
- package/dist/_internal/platform/agents/orchestrator.d.ts.map +1 -0
- package/dist/_internal/platform/agents/orchestrator.js +318 -0
- package/dist/_internal/platform/agents/session.d.ts +37 -0
- package/dist/_internal/platform/agents/session.d.ts.map +1 -0
- package/dist/_internal/platform/agents/session.js +89 -0
- package/dist/_internal/platform/agents/worktree.d.ts +45 -0
- package/dist/_internal/platform/agents/worktree.d.ts.map +1 -0
- package/dist/_internal/platform/agents/worktree.js +134 -0
- package/dist/_internal/platform/agents/wrfc-config.d.ts +20 -0
- package/dist/_internal/platform/agents/wrfc-config.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-config.js +27 -0
- package/dist/_internal/platform/agents/wrfc-controller.d.ts +67 -0
- package/dist/_internal/platform/agents/wrfc-controller.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-controller.js +562 -0
- package/dist/_internal/platform/agents/wrfc-gate-runtime.d.ts +12 -0
- package/dist/_internal/platform/agents/wrfc-gate-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-gate-runtime.js +55 -0
- package/dist/_internal/platform/agents/wrfc-reporting.d.ts +11 -0
- package/dist/_internal/platform/agents/wrfc-reporting.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-reporting.js +244 -0
- package/dist/_internal/platform/agents/wrfc-runtime-events.d.ts +21 -0
- package/dist/_internal/platform/agents/wrfc-runtime-events.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-runtime-events.js +80 -0
- package/dist/_internal/platform/agents/wrfc-types.d.ts +57 -0
- package/dist/_internal/platform/agents/wrfc-types.d.ts.map +1 -0
- package/dist/_internal/platform/agents/wrfc-types.js +1 -0
- package/dist/_internal/platform/agents/wrfc-workmap.js +1 -1
- package/dist/_internal/platform/automation/delivery-manager.d.ts +35 -0
- package/dist/_internal/platform/automation/delivery-manager.d.ts.map +1 -0
- package/dist/_internal/platform/automation/delivery-manager.js +306 -0
- package/dist/_internal/platform/automation/index.d.ts +21 -0
- package/dist/_internal/platform/automation/index.d.ts.map +1 -0
- package/dist/_internal/platform/automation/index.js +9 -0
- package/dist/_internal/platform/automation/manager-runtime-delivery.d.ts +25 -0
- package/dist/_internal/platform/automation/manager-runtime-delivery.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-delivery.js +109 -0
- package/dist/_internal/platform/automation/manager-runtime-events.d.ts +11 -0
- package/dist/_internal/platform/automation/manager-runtime-events.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-events.js +90 -0
- package/dist/_internal/platform/automation/manager-runtime-execution.d.ts +67 -0
- package/dist/_internal/platform/automation/manager-runtime-execution.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-execution.js +402 -0
- package/dist/_internal/platform/automation/manager-runtime-helpers.d.ts +103 -0
- package/dist/_internal/platform/automation/manager-runtime-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-helpers.js +313 -0
- package/dist/_internal/platform/automation/manager-runtime-job-mutations.d.ts +17 -0
- package/dist/_internal/platform/automation/manager-runtime-job-mutations.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-job-mutations.js +139 -0
- package/dist/_internal/platform/automation/manager-runtime-reconcile.d.ts +28 -0
- package/dist/_internal/platform/automation/manager-runtime-reconcile.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-reconcile.js +127 -0
- package/dist/_internal/platform/automation/manager-runtime-scheduling.d.ts +31 -0
- package/dist/_internal/platform/automation/manager-runtime-scheduling.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-scheduling.js +142 -0
- package/dist/_internal/platform/automation/manager-runtime-sync.d.ts +9 -0
- package/dist/_internal/platform/automation/manager-runtime-sync.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime-sync.js +33 -0
- package/dist/_internal/platform/automation/manager-runtime.d.ts +127 -0
- package/dist/_internal/platform/automation/manager-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager-runtime.js +573 -0
- package/dist/_internal/platform/automation/manager.d.ts +3 -0
- package/dist/_internal/platform/automation/manager.d.ts.map +1 -0
- package/dist/_internal/platform/automation/manager.js +1 -0
- package/dist/_internal/platform/automation/schedules.js +1 -1
- package/dist/_internal/platform/automation/service.d.ts +61 -0
- package/dist/_internal/platform/automation/service.d.ts.map +1 -0
- package/dist/_internal/platform/automation/service.js +205 -0
- package/dist/_internal/platform/bookmarks/manager.d.ts +1 -1
- package/dist/_internal/platform/bookmarks/manager.js +1 -1
- package/dist/_internal/platform/channels/builtin/account-actions.d.ts +12 -0
- package/dist/_internal/platform/channels/builtin/account-actions.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/account-actions.js +437 -0
- package/dist/_internal/platform/channels/builtin/accounts.d.ts +11 -0
- package/dist/_internal/platform/channels/builtin/accounts.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/accounts.js +390 -0
- package/dist/_internal/platform/channels/builtin/contracts.d.ts +20 -0
- package/dist/_internal/platform/channels/builtin/contracts.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/contracts.js +299 -0
- package/dist/_internal/platform/channels/builtin/plugins.d.ts +25 -0
- package/dist/_internal/platform/channels/builtin/plugins.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/plugins.js +225 -0
- package/dist/_internal/platform/channels/builtin/rendering.d.ts +15 -0
- package/dist/_internal/platform/channels/builtin/rendering.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/rendering.js +135 -0
- package/dist/_internal/platform/channels/builtin/setup-schema.d.ts +3 -0
- package/dist/_internal/platform/channels/builtin/setup-schema.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/setup-schema.js +479 -0
- package/dist/_internal/platform/channels/builtin/shared.d.ts +41 -0
- package/dist/_internal/platform/channels/builtin/shared.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/shared.js +42 -0
- package/dist/_internal/platform/channels/builtin/surfaces.d.ts +11 -0
- package/dist/_internal/platform/channels/builtin/surfaces.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/surfaces.js +49 -0
- package/dist/_internal/platform/channels/builtin/targets.d.ts +14 -0
- package/dist/_internal/platform/channels/builtin/targets.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin/targets.js +665 -0
- package/dist/_internal/platform/channels/builtin-runtime.d.ts +40 -0
- package/dist/_internal/platform/channels/builtin-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/channels/builtin-runtime.js +293 -0
- package/dist/_internal/platform/channels/delivery/shared.d.ts +20 -0
- package/dist/_internal/platform/channels/delivery/shared.d.ts.map +1 -0
- package/dist/_internal/platform/channels/delivery/shared.js +165 -0
- package/dist/_internal/platform/channels/delivery/strategies-bridge.d.ts +9 -0
- package/dist/_internal/platform/channels/delivery/strategies-bridge.d.ts.map +1 -0
- package/dist/_internal/platform/channels/delivery/strategies-bridge.js +165 -0
- package/dist/_internal/platform/channels/delivery/strategies-core.d.ts +13 -0
- package/dist/_internal/platform/channels/delivery/strategies-core.d.ts.map +1 -0
- package/dist/_internal/platform/channels/delivery/strategies-core.js +238 -0
- package/dist/_internal/platform/channels/delivery/strategies-enterprise.d.ts +8 -0
- package/dist/_internal/platform/channels/delivery/strategies-enterprise.d.ts.map +1 -0
- package/dist/_internal/platform/channels/delivery/strategies-enterprise.js +120 -0
- package/dist/_internal/platform/channels/delivery/types.d.ts +53 -0
- package/dist/_internal/platform/channels/delivery/types.d.ts.map +1 -0
- package/dist/_internal/platform/channels/delivery/types.js +1 -0
- package/dist/_internal/platform/channels/delivery-router.d.ts +21 -0
- package/dist/_internal/platform/channels/delivery-router.d.ts.map +1 -0
- package/dist/_internal/platform/channels/delivery-router.js +74 -0
- package/dist/_internal/platform/channels/index.d.ts +15 -0
- package/dist/_internal/platform/channels/index.d.ts.map +1 -0
- package/dist/_internal/platform/channels/index.js +8 -0
- package/dist/_internal/platform/channels/plugin-registry.d.ts +96 -0
- package/dist/_internal/platform/channels/plugin-registry.d.ts.map +1 -0
- package/dist/_internal/platform/channels/plugin-registry.js +437 -0
- package/dist/_internal/platform/channels/provider-runtime.d.ts +56 -0
- package/dist/_internal/platform/channels/provider-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/channels/provider-runtime.js +257 -0
- package/dist/_internal/platform/channels/reply-pipeline.d.ts +42 -0
- package/dist/_internal/platform/channels/reply-pipeline.d.ts.map +1 -0
- package/dist/_internal/platform/channels/reply-pipeline.js +444 -0
- package/dist/_internal/platform/channels/route-manager.d.ts +60 -0
- package/dist/_internal/platform/channels/route-manager.d.ts.map +1 -0
- package/dist/_internal/platform/channels/route-manager.js +280 -0
- package/dist/_internal/platform/channels/surface-registry.d.ts +16 -0
- package/dist/_internal/platform/channels/surface-registry.d.ts.map +1 -0
- package/dist/_internal/platform/channels/surface-registry.js +197 -0
- package/dist/_internal/platform/config/helper-model.d.ts +92 -0
- package/dist/_internal/platform/config/helper-model.d.ts.map +1 -0
- package/dist/_internal/platform/config/helper-model.js +187 -0
- package/dist/_internal/platform/config/index.d.ts +35 -0
- package/dist/_internal/platform/config/index.d.ts.map +1 -0
- package/dist/_internal/platform/config/index.js +182 -0
- package/dist/_internal/platform/config/manager.d.ts +91 -0
- package/dist/_internal/platform/config/manager.d.ts.map +1 -0
- package/dist/_internal/platform/config/manager.js +332 -0
- package/dist/_internal/platform/config/schema-domain-core.js +1 -1
- package/dist/_internal/platform/config/schema-domain-runtime.js +1 -1
- package/dist/_internal/platform/config/secrets.d.ts +89 -0
- package/dist/_internal/platform/config/secrets.d.ts.map +1 -0
- package/dist/_internal/platform/config/secrets.js +444 -0
- package/dist/_internal/platform/config/service-registry.d.ts +98 -0
- package/dist/_internal/platform/config/service-registry.d.ts.map +1 -0
- package/dist/_internal/platform/config/service-registry.js +221 -0
- package/dist/_internal/platform/config/subscription-auth.d.ts +3 -0
- package/dist/_internal/platform/config/subscription-auth.d.ts.map +1 -0
- package/dist/_internal/platform/config/subscription-auth.js +29 -0
- package/dist/_internal/platform/config/subscription-providers.d.ts +30 -0
- package/dist/_internal/platform/config/subscription-providers.d.ts.map +1 -0
- package/dist/_internal/platform/config/subscription-providers.js +92 -0
- package/dist/_internal/platform/config/tool-llm.d.ts +63 -0
- package/dist/_internal/platform/config/tool-llm.d.ts.map +1 -0
- package/dist/_internal/platform/config/tool-llm.js +87 -0
- package/dist/_internal/platform/control-plane/approval-broker.d.ts +83 -0
- package/dist/_internal/platform/control-plane/approval-broker.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/approval-broker.js +270 -0
- package/dist/_internal/platform/control-plane/gateway.d.ts +94 -0
- package/dist/_internal/platform/control-plane/gateway.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/gateway.js +582 -0
- package/dist/_internal/platform/control-plane/index.d.ts +12 -0
- package/dist/_internal/platform/control-plane/index.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/index.js +4 -0
- package/dist/_internal/platform/control-plane/media-contract-schemas.d.ts +16 -0
- package/dist/_internal/platform/control-plane/media-contract-schemas.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/media-contract-schemas.js +182 -0
- package/dist/_internal/platform/control-plane/method-catalog-admin.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-admin.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-admin.js +123 -0
- package/dist/_internal/platform/control-plane/method-catalog-channels.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-channels.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-channels.js +559 -0
- package/dist/_internal/platform/control-plane/method-catalog-control-automation.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-control-automation.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-control-automation.js +440 -0
- package/dist/_internal/platform/control-plane/method-catalog-control-core.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-control-core.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-control-core.js +541 -0
- package/dist/_internal/platform/control-plane/method-catalog-control.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-control.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-control.js +6 -0
- package/dist/_internal/platform/control-plane/method-catalog-events.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-events.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-events.js +71 -0
- package/dist/_internal/platform/control-plane/method-catalog-knowledge.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-knowledge.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-knowledge.js +487 -0
- package/dist/_internal/platform/control-plane/method-catalog-media.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-media.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-media.js +248 -0
- package/dist/_internal/platform/control-plane/method-catalog-runtime.d.ts +3 -0
- package/dist/_internal/platform/control-plane/method-catalog-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-runtime.js +265 -0
- package/dist/_internal/platform/control-plane/method-catalog-shared.d.ts +100 -0
- package/dist/_internal/platform/control-plane/method-catalog-shared.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog-shared.js +117 -0
- package/dist/_internal/platform/control-plane/method-catalog.d.ts +29 -0
- package/dist/_internal/platform/control-plane/method-catalog.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/method-catalog.js +180 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-admin.d.ts +41 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-admin.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-admin.js +569 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-channels.d.ts +26 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-channels.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-channels.js +324 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-control.d.ts +10 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-control.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-control.js +189 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-domains.d.ts +5 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-domains.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-domains.js +4 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge.d.ts +92 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge.js +512 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-media.d.ts +24 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-media.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-media.js +232 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-permissions.d.ts +15 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-permissions.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-permissions.js +85 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-remote.d.ts +2 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-remote.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-remote.js +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-runtime.d.ts +30 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-runtime.js +501 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-shared.d.ts +19 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-shared.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-shared.js +59 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-telemetry.d.ts +18 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-telemetry.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-telemetry.js +309 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas.d.ts +7 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas.js +6 -0
- package/dist/_internal/platform/control-plane/operator-contract.d.ts +6 -0
- package/dist/_internal/platform/control-plane/operator-contract.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract.js +128 -0
- package/dist/_internal/platform/control-plane/session-broker.d.ts +73 -0
- package/dist/_internal/platform/control-plane/session-broker.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/session-broker.js +668 -0
- package/dist/_internal/platform/core/compaction-sections.d.ts +98 -0
- package/dist/_internal/platform/core/compaction-sections.d.ts.map +1 -0
- package/dist/_internal/platform/core/compaction-sections.js +394 -0
- package/dist/_internal/platform/core/compaction-types.d.ts +99 -0
- package/dist/_internal/platform/core/compaction-types.d.ts.map +1 -0
- package/dist/_internal/platform/core/compaction-types.js +21 -0
- package/dist/_internal/platform/core/context-compaction.d.ts +82 -0
- package/dist/_internal/platform/core/context-compaction.d.ts.map +1 -0
- package/dist/_internal/platform/core/context-compaction.js +419 -0
- package/dist/_internal/platform/core/conversation-compaction.d.ts +14 -0
- package/dist/_internal/platform/core/conversation-compaction.d.ts.map +1 -0
- package/dist/_internal/platform/core/conversation-compaction.js +43 -0
- package/dist/_internal/platform/core/conversation-diff.d.ts +10 -0
- package/dist/_internal/platform/core/conversation-diff.d.ts.map +1 -0
- package/dist/_internal/platform/core/conversation-diff.js +48 -0
- package/dist/_internal/platform/core/conversation-utils.d.ts +11 -0
- package/dist/_internal/platform/core/conversation-utils.d.ts.map +1 -0
- package/dist/_internal/platform/core/conversation-utils.js +66 -0
- package/dist/_internal/platform/core/conversation.d.ts +114 -0
- package/dist/_internal/platform/core/conversation.d.ts.map +1 -0
- package/dist/_internal/platform/core/conversation.js +246 -0
- package/dist/_internal/platform/core/event-replay.d.ts +83 -0
- package/dist/_internal/platform/core/event-replay.d.ts.map +1 -0
- package/dist/_internal/platform/core/event-replay.js +224 -0
- package/dist/_internal/platform/core/orchestrator-context-runtime.d.ts +58 -0
- package/dist/_internal/platform/core/orchestrator-context-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/core/orchestrator-context-runtime.js +281 -0
- package/dist/_internal/platform/core/orchestrator-follow-up-runtime.d.ts +34 -0
- package/dist/_internal/platform/core/orchestrator-follow-up-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/core/orchestrator-follow-up-runtime.js +110 -0
- package/dist/_internal/platform/core/orchestrator-runtime.d.ts +30 -0
- package/dist/_internal/platform/core/orchestrator-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/core/orchestrator-runtime.js +62 -0
- package/dist/_internal/platform/core/orchestrator-tool-runtime.d.ts +41 -0
- package/dist/_internal/platform/core/orchestrator-tool-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/core/orchestrator-tool-runtime.js +373 -0
- package/dist/_internal/platform/core/orchestrator-turn-helpers.d.ts +62 -0
- package/dist/_internal/platform/core/orchestrator-turn-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/core/orchestrator-turn-helpers.js +226 -0
- package/dist/_internal/platform/core/orchestrator-turn-loop.d.ts +64 -0
- package/dist/_internal/platform/core/orchestrator-turn-loop.d.ts.map +1 -0
- package/dist/_internal/platform/core/orchestrator-turn-loop.js +319 -0
- package/dist/_internal/platform/core/orchestrator.d.ts +191 -0
- package/dist/_internal/platform/core/orchestrator.d.ts.map +1 -0
- package/dist/_internal/platform/core/orchestrator.js +612 -0
- package/dist/_internal/platform/core/plan-command-handler.d.ts +31 -0
- package/dist/_internal/platform/core/plan-command-handler.d.ts.map +1 -0
- package/dist/_internal/platform/core/plan-command-handler.js +133 -0
- package/dist/_internal/platform/core/transcript-events/classify.d.ts +4 -0
- package/dist/_internal/platform/core/transcript-events/classify.d.ts.map +1 -0
- package/dist/_internal/platform/core/transcript-events/classify.js +94 -0
- package/dist/_internal/platform/core/transcript-events/index.d.ts +10 -0
- package/dist/_internal/platform/core/transcript-events/index.d.ts.map +1 -0
- package/dist/_internal/platform/core/transcript-events/index.js +9 -0
- package/dist/_internal/platform/daemon/cli.d.ts +2 -0
- package/dist/_internal/platform/daemon/cli.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/cli.js +68 -0
- package/dist/_internal/platform/daemon/control-plane.d.ts +113 -0
- package/dist/_internal/platform/daemon/control-plane.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/control-plane.js +402 -0
- package/dist/_internal/platform/daemon/facade-composition.d.ts +127 -0
- package/dist/_internal/platform/daemon/facade-composition.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/facade-composition.js +274 -0
- package/dist/_internal/platform/daemon/facade.d.ts +111 -0
- package/dist/_internal/platform/daemon/facade.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/facade.js +483 -0
- package/dist/_internal/platform/daemon/helpers.d.ts +13 -0
- package/dist/_internal/platform/daemon/helpers.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/helpers.js +48 -0
- package/dist/_internal/platform/daemon/http/router-route-contexts.d.ts +71 -0
- package/dist/_internal/platform/daemon/http/router-route-contexts.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/router-route-contexts.js +162 -0
- package/dist/_internal/platform/daemon/http/router.d.ts +120 -0
- package/dist/_internal/platform/daemon/http/router.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/router.js +360 -0
- package/dist/_internal/platform/daemon/http-listener.d.ts +68 -0
- package/dist/_internal/platform/daemon/http-listener.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http-listener.js +246 -0
- package/dist/_internal/platform/daemon/index.d.ts +4 -0
- package/dist/_internal/platform/daemon/index.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/index.js +3 -0
- package/dist/_internal/platform/daemon/server.d.ts +2 -0
- package/dist/_internal/platform/daemon/server.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/server.js +1 -0
- package/dist/_internal/platform/daemon/service-manager.d.ts +61 -0
- package/dist/_internal/platform/daemon/service-manager.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/service-manager.js +351 -0
- package/dist/_internal/platform/daemon/surface-actions.d.ts +54 -0
- package/dist/_internal/platform/daemon/surface-actions.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/surface-actions.js +124 -0
- package/dist/_internal/platform/daemon/surface-delivery.d.ts +57 -0
- package/dist/_internal/platform/daemon/surface-delivery.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/surface-delivery.js +459 -0
- package/dist/_internal/platform/daemon/surface-policy.d.ts +5 -0
- package/dist/_internal/platform/daemon/surface-policy.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/surface-policy.js +40 -0
- package/dist/_internal/platform/daemon/transport-events.d.ts +26 -0
- package/dist/_internal/platform/daemon/transport-events.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/transport-events.js +91 -0
- package/dist/_internal/platform/daemon/types.d.ts +213 -0
- package/dist/_internal/platform/daemon/types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/types.js +1 -0
- package/dist/_internal/platform/discovery/mcp-scanner.js +5 -5
- package/dist/_internal/platform/discovery/scanner.js +1 -1
- package/dist/_internal/platform/export/markdown.d.ts +43 -0
- package/dist/_internal/platform/export/markdown.d.ts.map +1 -0
- package/dist/_internal/platform/export/markdown.js +171 -0
- package/dist/_internal/platform/export/session-export.d.ts +56 -0
- package/dist/_internal/platform/export/session-export.d.ts.map +1 -0
- package/dist/_internal/platform/export/session-export.js +568 -0
- package/dist/_internal/platform/git/index.d.ts +2 -0
- package/dist/_internal/platform/git/index.d.ts.map +1 -0
- package/dist/_internal/platform/git/index.js +1 -0
- package/dist/_internal/platform/git/service.d.ts +101 -0
- package/dist/_internal/platform/git/service.d.ts.map +1 -0
- package/dist/_internal/platform/git/service.js +355 -0
- package/dist/_internal/platform/hooks/chain-engine.d.ts +44 -0
- package/dist/_internal/platform/hooks/chain-engine.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/chain-engine.js +459 -0
- package/dist/_internal/platform/hooks/dispatcher.d.ts +68 -0
- package/dist/_internal/platform/hooks/dispatcher.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/dispatcher.js +376 -0
- package/dist/_internal/platform/hooks/hook-api.d.ts +72 -0
- package/dist/_internal/platform/hooks/hook-api.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/hook-api.js +98 -0
- package/dist/_internal/platform/hooks/index.d.ts +19 -0
- package/dist/_internal/platform/hooks/index.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/index.js +11 -0
- package/dist/_internal/platform/hooks/runners/agent.d.ts +16 -0
- package/dist/_internal/platform/hooks/runners/agent.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/runners/agent.js +76 -0
- package/dist/_internal/platform/hooks/runners/prompt.d.ts +13 -0
- package/dist/_internal/platform/hooks/runners/prompt.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/runners/prompt.js +58 -0
- package/dist/_internal/platform/hooks/workbench.d.ts +67 -0
- package/dist/_internal/platform/hooks/workbench.d.ts.map +1 -0
- package/dist/_internal/platform/hooks/workbench.js +301 -0
- package/dist/_internal/platform/input/command-registry.d.ts +17 -0
- package/dist/_internal/platform/input/command-registry.d.ts.map +1 -0
- package/dist/_internal/platform/input/command-registry.js +25 -0
- package/dist/_internal/platform/input/keybindings.d.ts +86 -0
- package/dist/_internal/platform/input/keybindings.d.ts.map +1 -0
- package/dist/_internal/platform/input/keybindings.js +202 -0
- package/dist/_internal/platform/integrations/index.d.ts +13 -0
- package/dist/_internal/platform/integrations/index.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/index.js +7 -0
- package/dist/_internal/platform/integrations/notifier.d.ts +56 -0
- package/dist/_internal/platform/integrations/notifier.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/notifier.js +166 -0
- package/dist/_internal/platform/integrations/webhooks.d.ts +52 -0
- package/dist/_internal/platform/integrations/webhooks.d.ts.map +1 -0
- package/dist/_internal/platform/integrations/webhooks.js +141 -0
- package/dist/_internal/platform/intelligence/config.js +4 -4
- package/dist/_internal/platform/intelligence/facade.d.ts +1 -1
- package/dist/_internal/platform/intelligence/facade.js +2 -2
- package/dist/_internal/platform/knowledge/consolidation.d.ts +23 -0
- package/dist/_internal/platform/knowledge/consolidation.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/consolidation.js +274 -0
- package/dist/_internal/platform/knowledge/graphql.d.ts +25 -0
- package/dist/_internal/platform/knowledge/graphql.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/graphql.js +232 -0
- package/dist/_internal/platform/knowledge/index.d.ts +13 -0
- package/dist/_internal/platform/knowledge/index.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/index.js +8 -0
- package/dist/_internal/platform/knowledge/ingest-compile.d.ts +21 -0
- package/dist/_internal/platform/knowledge/ingest-compile.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/ingest-compile.js +311 -0
- package/dist/_internal/platform/knowledge/ingest-context.d.ts +19 -0
- package/dist/_internal/platform/knowledge/ingest-context.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/ingest-context.js +1 -0
- package/dist/_internal/platform/knowledge/ingest-inputs.d.ts +65 -0
- package/dist/_internal/platform/knowledge/ingest-inputs.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/ingest-inputs.js +304 -0
- package/dist/_internal/platform/knowledge/ingest.d.ts +4 -0
- package/dist/_internal/platform/knowledge/ingest.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/ingest.js +2 -0
- package/dist/_internal/platform/knowledge/internal.d.ts +55 -0
- package/dist/_internal/platform/knowledge/internal.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/internal.js +231 -0
- package/dist/_internal/platform/knowledge/knowledge-api.d.ts +160 -0
- package/dist/_internal/platform/knowledge/knowledge-api.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/knowledge-api.js +145 -0
- package/dist/_internal/platform/knowledge/lint.d.ts +13 -0
- package/dist/_internal/platform/knowledge/lint.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/lint.js +94 -0
- package/dist/_internal/platform/knowledge/memory-sync.d.ts +4 -0
- package/dist/_internal/platform/knowledge/memory-sync.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/memory-sync.js +54 -0
- package/dist/_internal/platform/knowledge/packet.d.ts +38 -0
- package/dist/_internal/platform/knowledge/packet.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/packet.js +278 -0
- package/dist/_internal/platform/knowledge/scheduling.d.ts +48 -0
- package/dist/_internal/platform/knowledge/scheduling.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/scheduling.js +246 -0
- package/dist/_internal/platform/knowledge/service.d.ts +230 -0
- package/dist/_internal/platform/knowledge/service.d.ts.map +1 -0
- package/dist/_internal/platform/knowledge/service.js +420 -0
- package/dist/_internal/platform/mcp/client.d.ts +78 -0
- package/dist/_internal/platform/mcp/client.d.ts.map +1 -0
- package/dist/_internal/platform/mcp/client.js +331 -0
- package/dist/_internal/platform/mcp/index.d.ts +7 -0
- package/dist/_internal/platform/mcp/index.d.ts.map +1 -0
- package/dist/_internal/platform/mcp/index.js +3 -0
- package/dist/_internal/platform/mcp/mcp-api.d.ts +52 -0
- package/dist/_internal/platform/mcp/mcp-api.d.ts.map +1 -0
- package/dist/_internal/platform/mcp/mcp-api.js +34 -0
- package/dist/_internal/platform/mcp/registry.d.ts +110 -0
- package/dist/_internal/platform/mcp/registry.d.ts.map +1 -0
- package/dist/_internal/platform/mcp/registry.js +427 -0
- package/dist/_internal/platform/media/builtin-image-understanding.d.ts +11 -0
- package/dist/_internal/platform/media/builtin-image-understanding.d.ts.map +1 -0
- package/dist/_internal/platform/media/builtin-image-understanding.js +226 -0
- package/dist/_internal/platform/media/builtin-providers.d.ts +5 -0
- package/dist/_internal/platform/media/builtin-providers.d.ts.map +1 -0
- package/dist/_internal/platform/media/builtin-providers.js +13 -0
- package/dist/_internal/platform/media/index.d.ts +4 -0
- package/dist/_internal/platform/media/index.d.ts.map +1 -0
- package/dist/_internal/platform/media/index.js +2 -0
- package/dist/_internal/platform/multimodal/index.d.ts +3 -0
- package/dist/_internal/platform/multimodal/index.d.ts.map +1 -0
- package/dist/_internal/platform/multimodal/index.js +1 -0
- package/dist/_internal/platform/multimodal/service.d.ts +30 -0
- package/dist/_internal/platform/multimodal/service.d.ts.map +1 -0
- package/dist/_internal/platform/multimodal/service.js +443 -0
- package/dist/_internal/platform/panels/panel-manager.d.ts +89 -0
- package/dist/_internal/platform/panels/panel-manager.d.ts.map +1 -0
- package/dist/_internal/platform/panels/panel-manager.js +481 -0
- package/dist/_internal/platform/panels/types.d.ts +30 -0
- package/dist/_internal/platform/panels/types.d.ts.map +1 -0
- package/dist/_internal/platform/panels/types.js +1 -0
- package/dist/_internal/platform/permissions/briefs/build.d.ts +5 -0
- package/dist/_internal/platform/permissions/briefs/build.d.ts.map +1 -0
- package/dist/_internal/platform/permissions/briefs/build.js +82 -0
- package/dist/_internal/platform/permissions/manager.d.ts +52 -0
- package/dist/_internal/platform/permissions/manager.d.ts.map +1 -0
- package/dist/_internal/platform/permissions/manager.js +269 -0
- package/dist/_internal/platform/permissions/prompt.d.ts +18 -0
- package/dist/_internal/platform/permissions/prompt.d.ts.map +1 -0
- package/dist/_internal/platform/permissions/prompt.js +1 -0
- package/dist/_internal/platform/plugins/api.d.ts +155 -0
- package/dist/_internal/platform/plugins/api.d.ts.map +1 -0
- package/dist/_internal/platform/plugins/api.js +197 -0
- package/dist/_internal/platform/plugins/loader.d.ts +101 -0
- package/dist/_internal/platform/plugins/loader.d.ts.map +1 -0
- package/dist/_internal/platform/plugins/loader.js +201 -0
- package/dist/_internal/platform/plugins/manager.d.ts +148 -0
- package/dist/_internal/platform/plugins/manager.d.ts.map +1 -0
- package/dist/_internal/platform/plugins/manager.js +338 -0
- package/dist/_internal/platform/profiles/manager.d.ts +1 -1
- package/dist/_internal/platform/profiles/manager.js +1 -1
- package/dist/_internal/platform/profiles/shape.d.ts +5 -0
- package/dist/_internal/platform/profiles/shape.d.ts.map +1 -0
- package/dist/_internal/platform/profiles/shape.js +51 -0
- package/dist/_internal/platform/providers/amazon-bedrock-mantle.d.ts +5 -0
- package/dist/_internal/platform/providers/amazon-bedrock-mantle.d.ts.map +1 -0
- package/dist/_internal/platform/providers/amazon-bedrock-mantle.js +45 -0
- package/dist/_internal/platform/providers/amazon-bedrock.d.ts +5 -0
- package/dist/_internal/platform/providers/amazon-bedrock.d.ts.map +1 -0
- package/dist/_internal/platform/providers/amazon-bedrock.js +56 -0
- package/dist/_internal/platform/providers/anthropic-compat.d.ts +61 -0
- package/dist/_internal/platform/providers/anthropic-compat.d.ts.map +1 -0
- package/dist/_internal/platform/providers/anthropic-compat.js +291 -0
- package/dist/_internal/platform/providers/anthropic-sdk-provider.d.ts +37 -0
- package/dist/_internal/platform/providers/anthropic-sdk-provider.d.ts.map +1 -0
- package/dist/_internal/platform/providers/anthropic-sdk-provider.js +173 -0
- package/dist/_internal/platform/providers/anthropic-vertex.d.ts +5 -0
- package/dist/_internal/platform/providers/anthropic-vertex.d.ts.map +1 -0
- package/dist/_internal/platform/providers/anthropic-vertex.js +53 -0
- package/dist/_internal/platform/providers/anthropic.d.ts +18 -0
- package/dist/_internal/platform/providers/anthropic.d.ts.map +1 -0
- package/dist/_internal/platform/providers/anthropic.js +417 -0
- package/dist/_internal/platform/providers/auto-register.d.ts +91 -0
- package/dist/_internal/platform/providers/auto-register.d.ts.map +1 -0
- package/dist/_internal/platform/providers/auto-register.js +359 -0
- package/dist/_internal/platform/providers/builtin-catalog.d.ts +41 -0
- package/dist/_internal/platform/providers/builtin-catalog.d.ts.map +1 -0
- package/dist/_internal/platform/providers/builtin-catalog.js +280 -0
- package/dist/_internal/platform/providers/builtin-registry.d.ts +27 -0
- package/dist/_internal/platform/providers/builtin-registry.d.ts.map +1 -0
- package/dist/_internal/platform/providers/builtin-registry.js +510 -0
- package/dist/_internal/platform/providers/cache-planner.d.ts +58 -0
- package/dist/_internal/platform/providers/cache-planner.d.ts.map +1 -0
- package/dist/_internal/platform/providers/cache-planner.js +203 -0
- package/dist/_internal/platform/providers/capabilities.d.ts +154 -0
- package/dist/_internal/platform/providers/capabilities.d.ts.map +1 -0
- package/dist/_internal/platform/providers/capabilities.js +463 -0
- package/dist/_internal/platform/providers/custom-loader.d.ts +89 -0
- package/dist/_internal/platform/providers/custom-loader.d.ts.map +1 -0
- package/dist/_internal/platform/providers/custom-loader.js +300 -0
- package/dist/_internal/platform/providers/discovered-compat.d.ts +17 -0
- package/dist/_internal/platform/providers/discovered-compat.d.ts.map +1 -0
- package/dist/_internal/platform/providers/discovered-compat.js +14 -0
- package/dist/_internal/platform/providers/discovered-factory.d.ts +5 -0
- package/dist/_internal/platform/providers/discovered-factory.d.ts.map +1 -0
- package/dist/_internal/platform/providers/discovered-factory.js +54 -0
- package/dist/_internal/platform/providers/discovered-traits.d.ts +16 -0
- package/dist/_internal/platform/providers/discovered-traits.d.ts.map +1 -0
- package/dist/_internal/platform/providers/discovered-traits.js +113 -0
- package/dist/_internal/platform/providers/gemini.d.ts +32 -0
- package/dist/_internal/platform/providers/gemini.d.ts.map +1 -0
- package/dist/_internal/platform/providers/gemini.js +391 -0
- package/dist/_internal/platform/providers/github-copilot.d.ts +16 -0
- package/dist/_internal/platform/providers/github-copilot.d.ts.map +1 -0
- package/dist/_internal/platform/providers/github-copilot.js +234 -0
- package/dist/_internal/platform/providers/index.d.ts +6 -0
- package/dist/_internal/platform/providers/index.d.ts.map +1 -0
- package/dist/_internal/platform/providers/index.js +1 -0
- package/dist/_internal/platform/providers/interface.d.ts +174 -0
- package/dist/_internal/platform/providers/interface.d.ts.map +1 -0
- package/dist/_internal/platform/providers/interface.js +7 -0
- package/dist/_internal/platform/providers/llama-cpp.d.ts +27 -0
- package/dist/_internal/platform/providers/llama-cpp.d.ts.map +1 -0
- package/dist/_internal/platform/providers/llama-cpp.js +313 -0
- package/dist/_internal/platform/providers/lm-studio-helpers.d.ts +88 -0
- package/dist/_internal/platform/providers/lm-studio-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/providers/lm-studio-helpers.js +281 -0
- package/dist/_internal/platform/providers/lm-studio.d.ts +30 -0
- package/dist/_internal/platform/providers/lm-studio.d.ts.map +1 -0
- package/dist/_internal/platform/providers/lm-studio.js +405 -0
- package/dist/_internal/platform/providers/model-catalog-cache.d.ts +19 -0
- package/dist/_internal/platform/providers/model-catalog-cache.d.ts.map +1 -0
- package/dist/_internal/platform/providers/model-catalog-cache.js +160 -0
- package/dist/_internal/platform/providers/model-catalog-notifications.d.ts +7 -0
- package/dist/_internal/platform/providers/model-catalog-notifications.d.ts.map +1 -0
- package/dist/_internal/platform/providers/model-catalog-notifications.js +78 -0
- package/dist/_internal/platform/providers/model-catalog-synthetic.d.ts +33 -0
- package/dist/_internal/platform/providers/model-catalog-synthetic.d.ts.map +1 -0
- package/dist/_internal/platform/providers/model-catalog-synthetic.js +153 -0
- package/dist/_internal/platform/providers/model-catalog.d.ts +73 -0
- package/dist/_internal/platform/providers/model-catalog.d.ts.map +1 -0
- package/dist/_internal/platform/providers/model-catalog.js +116 -0
- package/dist/_internal/platform/providers/model-limits.d.ts +23 -0
- package/dist/_internal/platform/providers/model-limits.d.ts.map +1 -0
- package/dist/_internal/platform/providers/model-limits.js +236 -0
- package/dist/_internal/platform/providers/ollama.d.ts +27 -0
- package/dist/_internal/platform/providers/ollama.d.ts.map +1 -0
- package/dist/_internal/platform/providers/ollama.js +376 -0
- package/dist/_internal/platform/providers/openai-codex.d.ts +12 -0
- package/dist/_internal/platform/providers/openai-codex.d.ts.map +1 -0
- package/dist/_internal/platform/providers/openai-codex.js +448 -0
- package/dist/_internal/platform/providers/openai-compat.d.ts +69 -0
- package/dist/_internal/platform/providers/openai-compat.d.ts.map +1 -0
- package/dist/_internal/platform/providers/openai-compat.js +493 -0
- package/dist/_internal/platform/providers/openai.d.ts +18 -0
- package/dist/_internal/platform/providers/openai.d.ts.map +1 -0
- package/dist/_internal/platform/providers/openai.js +199 -0
- package/dist/_internal/platform/providers/optimizer.d.ts +157 -0
- package/dist/_internal/platform/providers/optimizer.d.ts.map +1 -0
- package/dist/_internal/platform/providers/optimizer.js +265 -0
- package/dist/_internal/platform/providers/provider-api.d.ts +163 -0
- package/dist/_internal/platform/providers/provider-api.d.ts.map +1 -0
- package/dist/_internal/platform/providers/provider-api.js +291 -0
- package/dist/_internal/platform/providers/registry-helpers.d.ts +14 -0
- package/dist/_internal/platform/providers/registry-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/providers/registry-helpers.js +28 -0
- package/dist/_internal/platform/providers/registry-models.d.ts +13 -0
- package/dist/_internal/platform/providers/registry-models.d.ts.map +1 -0
- package/dist/_internal/platform/providers/registry-models.js +47 -0
- package/dist/_internal/platform/providers/registry-types.d.ts +62 -0
- package/dist/_internal/platform/providers/registry-types.d.ts.map +1 -0
- package/dist/_internal/platform/providers/registry-types.js +1 -0
- package/dist/_internal/platform/providers/registry.d.ts +173 -0
- package/dist/_internal/platform/providers/registry.d.ts.map +1 -0
- package/dist/_internal/platform/providers/registry.js +603 -0
- package/dist/_internal/platform/providers/runtime-metadata.d.ts +13 -0
- package/dist/_internal/platform/providers/runtime-metadata.d.ts.map +1 -0
- package/dist/_internal/platform/providers/runtime-metadata.js +129 -0
- package/dist/_internal/platform/providers/runtime-snapshot.d.ts +34 -0
- package/dist/_internal/platform/providers/runtime-snapshot.d.ts.map +1 -0
- package/dist/_internal/platform/providers/runtime-snapshot.js +79 -0
- package/dist/_internal/platform/providers/synthetic.d.ts +78 -0
- package/dist/_internal/platform/providers/synthetic.d.ts.map +1 -0
- package/dist/_internal/platform/providers/synthetic.js +418 -0
- package/dist/_internal/platform/providers/tier-prompts.d.ts +32 -0
- package/dist/_internal/platform/providers/tier-prompts.d.ts.map +1 -0
- package/dist/_internal/platform/providers/tier-prompts.js +78 -0
- package/dist/_internal/platform/providers/tool-formats.d.ts +137 -0
- package/dist/_internal/platform/providers/tool-formats.d.ts.map +1 -0
- package/dist/_internal/platform/providers/tool-formats.js +306 -0
- package/dist/_internal/platform/runtime/auth/inspection.d.ts +35 -0
- package/dist/_internal/platform/runtime/auth/inspection.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/auth/inspection.js +87 -0
- package/dist/_internal/platform/runtime/bootstrap-background.d.ts +32 -0
- package/dist/_internal/platform/runtime/bootstrap-background.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/bootstrap-background.js +96 -0
- package/dist/_internal/platform/runtime/bootstrap-helpers.d.ts +15 -0
- package/dist/_internal/platform/runtime/bootstrap-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/bootstrap-helpers.js +74 -0
- package/dist/_internal/platform/runtime/bootstrap-runtime-events.d.ts +30 -0
- package/dist/_internal/platform/runtime/bootstrap-runtime-events.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/bootstrap-runtime-events.js +199 -0
- package/dist/_internal/platform/runtime/bootstrap-services.d.ts +40 -0
- package/dist/_internal/platform/runtime/bootstrap-services.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/bootstrap-services.js +136 -0
- package/dist/_internal/platform/runtime/compaction/index.d.ts +43 -0
- package/dist/_internal/platform/runtime/compaction/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/index.js +37 -0
- package/dist/_internal/platform/runtime/compaction/lifecycle.d.ts +63 -0
- package/dist/_internal/platform/runtime/compaction/lifecycle.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/lifecycle.js +113 -0
- package/dist/_internal/platform/runtime/compaction/manager.d.ts +100 -0
- package/dist/_internal/platform/runtime/compaction/manager.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/manager.js +371 -0
- package/dist/_internal/platform/runtime/compaction/quality-score.d.ts +70 -0
- package/dist/_internal/platform/runtime/compaction/quality-score.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/quality-score.js +205 -0
- package/dist/_internal/platform/runtime/compaction/resume-repair.d.ts +40 -0
- package/dist/_internal/platform/runtime/compaction/resume-repair.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/resume-repair.js +155 -0
- package/dist/_internal/platform/runtime/compaction/strategies/autocompact.d.ts +22 -0
- package/dist/_internal/platform/runtime/compaction/strategies/autocompact.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/strategies/autocompact.js +56 -0
- package/dist/_internal/platform/runtime/compaction/strategies/boundary-commit.d.ts +52 -0
- package/dist/_internal/platform/runtime/compaction/strategies/boundary-commit.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/strategies/boundary-commit.js +79 -0
- package/dist/_internal/platform/runtime/compaction/strategies/collapse.d.ts +22 -0
- package/dist/_internal/platform/runtime/compaction/strategies/collapse.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/strategies/collapse.js +81 -0
- package/dist/_internal/platform/runtime/compaction/strategies/index.d.ts +14 -0
- package/dist/_internal/platform/runtime/compaction/strategies/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/strategies/index.js +11 -0
- package/dist/_internal/platform/runtime/compaction/strategies/microcompact.d.ts +20 -0
- package/dist/_internal/platform/runtime/compaction/strategies/microcompact.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/strategies/microcompact.js +63 -0
- package/dist/_internal/platform/runtime/compaction/strategies/reactive.d.ts +25 -0
- package/dist/_internal/platform/runtime/compaction/strategies/reactive.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/strategies/reactive.js +71 -0
- package/dist/_internal/platform/runtime/compaction/types.d.ts +169 -0
- package/dist/_internal/platform/runtime/compaction/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/compaction/types.js +10 -0
- package/dist/_internal/platform/runtime/diagnostics/actions.d.ts +329 -0
- package/dist/_internal/platform/runtime/diagnostics/actions.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/actions.js +413 -0
- package/dist/_internal/platform/runtime/diagnostics/index.d.ts +40 -0
- package/dist/_internal/platform/runtime/diagnostics/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/index.js +40 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/agents.d.ts +51 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/agents.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/agents.js +204 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/events.d.ts +53 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/events.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/events.js +161 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/health.d.ts +66 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/health.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/health.js +202 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/index.d.ts +25 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/index.js +19 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/ops.d.ts +56 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/ops.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/ops.js +71 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/policy.d.ts +103 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/policy.js +123 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tasks.d.ts +51 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tasks.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tasks.js +199 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tool-calls.d.ts +64 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tool-calls.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/panels/tool-calls.js +216 -0
- package/dist/_internal/platform/runtime/diagnostics/provider.d.ts +159 -0
- package/dist/_internal/platform/runtime/diagnostics/provider.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/diagnostics/provider.js +178 -0
- package/dist/_internal/platform/runtime/ecosystem/catalog.d.ts +164 -0
- package/dist/_internal/platform/runtime/ecosystem/catalog.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ecosystem/catalog.js +445 -0
- package/dist/_internal/platform/runtime/ecosystem/recommendations.d.ts +12 -0
- package/dist/_internal/platform/runtime/ecosystem/recommendations.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ecosystem/recommendations.js +51 -0
- package/dist/_internal/platform/runtime/emitters/agents.d.ts +65 -0
- package/dist/_internal/platform/runtime/emitters/agents.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/agents.js +44 -0
- package/dist/_internal/platform/runtime/emitters/automation.d.ts +67 -0
- package/dist/_internal/platform/runtime/emitters/automation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/automation.js +40 -0
- package/dist/_internal/platform/runtime/emitters/communication.d.ts +29 -0
- package/dist/_internal/platform/runtime/emitters/communication.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/communication.js +13 -0
- package/dist/_internal/platform/runtime/emitters/compaction.d.ts +89 -0
- package/dist/_internal/platform/runtime/emitters/compaction.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/compaction.js +53 -0
- package/dist/_internal/platform/runtime/emitters/control-plane.d.ts +37 -0
- package/dist/_internal/platform/runtime/emitters/control-plane.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/control-plane.js +25 -0
- package/dist/_internal/platform/runtime/emitters/deliveries.d.ts +53 -0
- package/dist/_internal/platform/runtime/emitters/deliveries.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/deliveries.js +22 -0
- package/dist/_internal/platform/runtime/emitters/forensics.d.ts +10 -0
- package/dist/_internal/platform/runtime/emitters/forensics.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/forensics.js +4 -0
- package/dist/_internal/platform/runtime/emitters/index.d.ts +58 -0
- package/dist/_internal/platform/runtime/emitters/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/index.js +26 -0
- package/dist/_internal/platform/runtime/emitters/knowledge.d.ts +76 -0
- package/dist/_internal/platform/runtime/emitters/knowledge.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/knowledge.js +49 -0
- package/dist/_internal/platform/runtime/emitters/mcp.d.ts +64 -0
- package/dist/_internal/platform/runtime/emitters/mcp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/mcp.js +42 -0
- package/dist/_internal/platform/runtime/emitters/ops.d.ts +63 -0
- package/dist/_internal/platform/runtime/emitters/ops.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/ops.js +93 -0
- package/dist/_internal/platform/runtime/emitters/orchestration.d.ts +62 -0
- package/dist/_internal/platform/runtime/emitters/orchestration.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/orchestration.js +34 -0
- package/dist/_internal/platform/runtime/emitters/permissions.d.ts +64 -0
- package/dist/_internal/platform/runtime/emitters/permissions.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/permissions.js +36 -0
- package/dist/_internal/platform/runtime/emitters/planner.d.ts +9 -0
- package/dist/_internal/platform/runtime/emitters/planner.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/planner.js +10 -0
- package/dist/_internal/platform/runtime/emitters/plugins.d.ts +46 -0
- package/dist/_internal/platform/runtime/emitters/plugins.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/plugins.js +36 -0
- package/dist/_internal/platform/runtime/emitters/providers.d.ts +16 -0
- package/dist/_internal/platform/runtime/emitters/providers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/providers.js +13 -0
- package/dist/_internal/platform/runtime/emitters/routes.d.ts +37 -0
- package/dist/_internal/platform/runtime/emitters/routes.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/routes.js +22 -0
- package/dist/_internal/platform/runtime/emitters/security.d.ts +31 -0
- package/dist/_internal/platform/runtime/emitters/security.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/security.js +19 -0
- package/dist/_internal/platform/runtime/emitters/session.d.ts +38 -0
- package/dist/_internal/platform/runtime/emitters/session.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/session.js +47 -0
- package/dist/_internal/platform/runtime/emitters/surfaces.d.ts +35 -0
- package/dist/_internal/platform/runtime/emitters/surfaces.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/surfaces.js +22 -0
- package/dist/_internal/platform/runtime/emitters/tasks.d.ts +47 -0
- package/dist/_internal/platform/runtime/emitters/tasks.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/tasks.js +32 -0
- package/dist/_internal/platform/runtime/emitters/tools.d.ts +109 -0
- package/dist/_internal/platform/runtime/emitters/tools.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/tools.js +60 -0
- package/dist/_internal/platform/runtime/emitters/transport.d.ts +43 -0
- package/dist/_internal/platform/runtime/emitters/transport.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/transport.js +36 -0
- package/dist/_internal/platform/runtime/emitters/turn.d.ts +78 -0
- package/dist/_internal/platform/runtime/emitters/turn.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/turn.js +58 -0
- package/dist/_internal/platform/runtime/emitters/ui.d.ts +34 -0
- package/dist/_internal/platform/runtime/emitters/ui.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/ui.js +37 -0
- package/dist/_internal/platform/runtime/emitters/watchers.d.ts +34 -0
- package/dist/_internal/platform/runtime/emitters/watchers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/watchers.js +22 -0
- package/dist/_internal/platform/runtime/emitters/workflows.d.ts +43 -0
- package/dist/_internal/platform/runtime/emitters/workflows.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/emitters/workflows.js +31 -0
- package/dist/_internal/platform/runtime/eval/index.d.ts +24 -0
- package/dist/_internal/platform/runtime/eval/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/eval/index.js +21 -0
- package/dist/_internal/platform/runtime/eval/runner.d.ts +60 -0
- package/dist/_internal/platform/runtime/eval/runner.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/eval/runner.js +135 -0
- package/dist/_internal/platform/runtime/eval/suites.d.ts +19 -0
- package/dist/_internal/platform/runtime/eval/suites.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/eval/suites.js +231 -0
- package/dist/_internal/platform/runtime/events/domain-map.d.ts +87 -0
- package/dist/_internal/platform/runtime/events/domain-map.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/domain-map.js +36 -0
- package/dist/_internal/platform/runtime/events/index.d.ts +91 -0
- package/dist/_internal/platform/runtime/events/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/index.js +148 -0
- package/dist/_internal/platform/runtime/events/turn.d.ts +98 -0
- package/dist/_internal/platform/runtime/events/turn.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/turn.js +1 -0
- package/dist/_internal/platform/runtime/events/workflows.d.ts +46 -0
- package/dist/_internal/platform/runtime/events/workflows.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/events/workflows.js +1 -0
- package/dist/_internal/platform/runtime/forensics/collector.d.ts +30 -0
- package/dist/_internal/platform/runtime/forensics/collector.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/forensics/collector.js +525 -0
- package/dist/_internal/platform/runtime/forensics/index.d.ts +15 -0
- package/dist/_internal/platform/runtime/forensics/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/forensics/index.js +3 -0
- package/dist/_internal/platform/runtime/foundation-clients.d.ts +30 -0
- package/dist/_internal/platform/runtime/foundation-clients.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/foundation-clients.js +35 -0
- package/dist/_internal/platform/runtime/foundation-services.d.ts +41 -0
- package/dist/_internal/platform/runtime/foundation-services.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/foundation-services.js +40 -0
- package/dist/_internal/platform/runtime/guidance.d.ts +30 -0
- package/dist/_internal/platform/runtime/guidance.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/guidance.js +133 -0
- package/dist/_internal/platform/runtime/health/effect-handlers.d.ts +42 -0
- package/dist/_internal/platform/runtime/health/effect-handlers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/effect-handlers.js +148 -0
- package/dist/_internal/platform/runtime/health/index.d.ts +46 -0
- package/dist/_internal/platform/runtime/health/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/index.js +45 -0
- package/dist/_internal/platform/runtime/health/wiring.d.ts +69 -0
- package/dist/_internal/platform/runtime/health/wiring.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/health/wiring.js +100 -0
- package/dist/_internal/platform/runtime/index.d.ts +82 -0
- package/dist/_internal/platform/runtime/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/index.js +49 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector.d.ts +2 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/inspection/state-inspector.js +1 -0
- package/dist/_internal/platform/runtime/integration/helpers.d.ts +110 -0
- package/dist/_internal/platform/runtime/integration/helpers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/integration/helpers.js +540 -0
- package/dist/_internal/platform/runtime/lifecycle.d.ts +37 -0
- package/dist/_internal/platform/runtime/lifecycle.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/lifecycle.js +94 -0
- package/dist/_internal/platform/runtime/mcp/index.d.ts +31 -0
- package/dist/_internal/platform/runtime/mcp/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/mcp/index.js +30 -0
- package/dist/_internal/platform/runtime/mcp/manager.d.ts +158 -0
- package/dist/_internal/platform/runtime/mcp/manager.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/mcp/manager.js +422 -0
- package/dist/_internal/platform/runtime/network/inbound.d.ts +27 -0
- package/dist/_internal/platform/runtime/network/inbound.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/network/inbound.js +90 -0
- package/dist/_internal/platform/runtime/network/index.d.ts +6 -0
- package/dist/_internal/platform/runtime/network/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/network/index.js +3 -0
- package/dist/_internal/platform/runtime/network/outbound.d.ts +28 -0
- package/dist/_internal/platform/runtime/network/outbound.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/network/outbound.js +222 -0
- package/dist/_internal/platform/runtime/network/shared.d.ts +19 -0
- package/dist/_internal/platform/runtime/network/shared.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/network/shared.js +64 -0
- package/dist/_internal/platform/runtime/operator-client.d.ts +87 -0
- package/dist/_internal/platform/runtime/operator-client.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/operator-client.js +110 -0
- package/dist/_internal/platform/runtime/ops/control-plane.d.ts +96 -0
- package/dist/_internal/platform/runtime/ops/control-plane.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/control-plane.js +298 -0
- package/dist/_internal/platform/runtime/ops/index.d.ts +54 -0
- package/dist/_internal/platform/runtime/ops/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/index.js +85 -0
- package/dist/_internal/platform/runtime/ops/playbooks/index.d.ts +11 -0
- package/dist/_internal/platform/runtime/ops/playbooks/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/index.js +10 -0
- package/dist/_internal/platform/runtime/ops/playbooks/session-unrecoverable.d.ts +12 -0
- package/dist/_internal/platform/runtime/ops/playbooks/session-unrecoverable.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/session-unrecoverable.js +175 -0
- package/dist/_internal/platform/runtime/ops/playbooks/stuck-turn.d.ts +12 -0
- package/dist/_internal/platform/runtime/ops/playbooks/stuck-turn.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/playbooks/stuck-turn.js +176 -0
- package/dist/_internal/platform/runtime/ops/runtime-context.d.ts +26 -0
- package/dist/_internal/platform/runtime/ops/runtime-context.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops/runtime-context.js +71 -0
- package/dist/_internal/platform/runtime/ops-api.d.ts +25 -0
- package/dist/_internal/platform/runtime/ops-api.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ops-api.js +1 -0
- package/dist/_internal/platform/runtime/orchestration/spawn-policy.d.ts +24 -0
- package/dist/_internal/platform/runtime/orchestration/spawn-policy.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/orchestration/spawn-policy.js +54 -0
- package/dist/_internal/platform/runtime/peer-client.d.ts +108 -0
- package/dist/_internal/platform/runtime/peer-client.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/peer-client.js +232 -0
- package/dist/_internal/platform/runtime/perf/index.d.ts +34 -0
- package/dist/_internal/platform/runtime/perf/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/index.js +32 -0
- package/dist/_internal/platform/runtime/perf/slo-collector.d.ts +95 -0
- package/dist/_internal/platform/runtime/perf/slo-collector.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/perf/slo-collector.js +324 -0
- package/dist/_internal/platform/runtime/permissions/index.d.ts +89 -0
- package/dist/_internal/platform/runtime/permissions/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/index.js +85 -0
- package/dist/_internal/platform/runtime/permissions/policy-runtime.d.ts +58 -0
- package/dist/_internal/platform/runtime/permissions/policy-runtime.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/policy-runtime.js +121 -0
- package/dist/_internal/platform/runtime/permissions/preflight.d.ts +31 -0
- package/dist/_internal/platform/runtime/permissions/preflight.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/preflight.js +62 -0
- package/dist/_internal/platform/runtime/permissions/rule-suggestions.d.ts +10 -0
- package/dist/_internal/platform/runtime/permissions/rule-suggestions.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/permissions/rule-suggestions.js +24 -0
- package/dist/_internal/platform/runtime/plugins/hot-reload.d.ts +75 -0
- package/dist/_internal/platform/runtime/plugins/hot-reload.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/hot-reload.js +146 -0
- package/dist/_internal/platform/runtime/plugins/index.d.ts +40 -0
- package/dist/_internal/platform/runtime/plugins/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/index.js +37 -0
- package/dist/_internal/platform/runtime/plugins/lifecycle.d.ts +56 -0
- package/dist/_internal/platform/runtime/plugins/lifecycle.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/lifecycle.js +78 -0
- package/dist/_internal/platform/runtime/plugins/manager.d.ts +108 -0
- package/dist/_internal/platform/runtime/plugins/manager.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/manager.js +387 -0
- package/dist/_internal/platform/runtime/plugins/manifest.d.ts +44 -0
- package/dist/_internal/platform/runtime/plugins/manifest.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/manifest.js +133 -0
- package/dist/_internal/platform/runtime/plugins/quarantine.d.ts +87 -0
- package/dist/_internal/platform/runtime/plugins/quarantine.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/quarantine.js +140 -0
- package/dist/_internal/platform/runtime/plugins/trust.d.ts +155 -0
- package/dist/_internal/platform/runtime/plugins/trust.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/trust.js +198 -0
- package/dist/_internal/platform/runtime/plugins/types.d.ts +164 -0
- package/dist/_internal/platform/runtime/plugins/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/plugins/types.js +28 -0
- package/dist/_internal/platform/runtime/provider-accounts/registry.d.ts +53 -0
- package/dist/_internal/platform/runtime/provider-accounts/registry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/provider-accounts/registry.js +269 -0
- package/dist/_internal/platform/runtime/provider-health/data-provider.d.ts +1 -72
- package/dist/_internal/platform/runtime/provider-health/data-provider.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/provider-health/data-provider.js +7 -194
- package/dist/_internal/platform/runtime/provider-health/fallback-visualizer.d.ts +1 -14
- package/dist/_internal/platform/runtime/provider-health/fallback-visualizer.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/provider-health/fallback-visualizer.js +5 -45
- package/dist/_internal/platform/runtime/provider-health/index.d.ts +1 -23
- package/dist/_internal/platform/runtime/provider-health/index.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/provider-health/index.js +1 -21
- package/dist/_internal/platform/runtime/provider-health/types.d.ts +1 -121
- package/dist/_internal/platform/runtime/provider-health/types.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/provider-health/types.js +7 -1
- package/dist/_internal/platform/runtime/remote/distributed-runtime-contract-schemas.d.ts +38 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-contract-schemas.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-contract-schemas.js +338 -0
- package/dist/_internal/platform/runtime/remote/distributed-runtime-manager.js +1 -1
- package/dist/_internal/platform/runtime/remote/index.d.ts +159 -0
- package/dist/_internal/platform/runtime/remote/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/index.js +305 -0
- package/dist/_internal/platform/runtime/remote/runner-registry.d.ts +51 -0
- package/dist/_internal/platform/runtime/remote/runner-registry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/runner-registry.js +377 -0
- package/dist/_internal/platform/runtime/remote/supervisor.d.ts +19 -0
- package/dist/_internal/platform/runtime/remote/supervisor.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/remote/supervisor.js +53 -0
- package/dist/_internal/platform/runtime/runtime-hook-api.d.ts +3 -0
- package/dist/_internal/platform/runtime/runtime-hook-api.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/runtime-hook-api.js +4 -0
- package/dist/_internal/platform/runtime/runtime-knowledge-api.d.ts +6 -0
- package/dist/_internal/platform/runtime/runtime-knowledge-api.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/runtime-knowledge-api.js +7 -0
- package/dist/_internal/platform/runtime/runtime-mcp-api.d.ts +3 -0
- package/dist/_internal/platform/runtime/runtime-mcp-api.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/runtime-mcp-api.js +4 -0
- package/dist/_internal/platform/runtime/runtime-ops-api.d.ts +13 -0
- package/dist/_internal/platform/runtime/runtime-ops-api.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/runtime-ops-api.js +64 -0
- package/dist/_internal/platform/runtime/runtime-provider-api.d.ts +6 -0
- package/dist/_internal/platform/runtime/runtime-provider-api.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/runtime-provider-api.js +8 -0
- package/dist/_internal/platform/runtime/sandbox/backend.d.ts +29 -0
- package/dist/_internal/platform/runtime/sandbox/backend.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/sandbox/backend.js +202 -0
- package/dist/_internal/platform/runtime/sandbox/manager.d.ts +20 -0
- package/dist/_internal/platform/runtime/sandbox/manager.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/sandbox/manager.js +307 -0
- package/dist/_internal/platform/runtime/sandbox/provisioning.d.ts +73 -0
- package/dist/_internal/platform/runtime/sandbox/provisioning.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/sandbox/provisioning.js +319 -0
- package/dist/_internal/platform/runtime/sandbox/session-registry.d.ts +22 -0
- package/dist/_internal/platform/runtime/sandbox/session-registry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/sandbox/session-registry.js +257 -0
- package/dist/_internal/platform/runtime/services.d.ts +160 -0
- package/dist/_internal/platform/runtime/services.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/services.js +439 -0
- package/dist/_internal/platform/runtime/session-maintenance.d.ts +31 -0
- package/dist/_internal/platform/runtime/session-maintenance.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/session-maintenance.js +148 -0
- package/dist/_internal/platform/runtime/session-persistence.d.ts +39 -0
- package/dist/_internal/platform/runtime/session-persistence.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/session-persistence.js +226 -0
- package/dist/_internal/platform/runtime/session-return-context.d.ts +47 -0
- package/dist/_internal/platform/runtime/session-return-context.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/session-return-context.js +139 -0
- package/dist/_internal/platform/runtime/settings/control-plane-store.d.ts +131 -0
- package/dist/_internal/platform/runtime/settings/control-plane-store.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/settings/control-plane-store.js +107 -0
- package/dist/_internal/platform/runtime/settings/control-plane.d.ts +32 -0
- package/dist/_internal/platform/runtime/settings/control-plane.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/settings/control-plane.js +509 -0
- package/dist/_internal/platform/runtime/shell-command-extensions.d.ts +29 -0
- package/dist/_internal/platform/runtime/shell-command-extensions.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/shell-command-extensions.js +13 -0
- package/dist/_internal/platform/runtime/shell-command-ops.d.ts +136 -0
- package/dist/_internal/platform/runtime/shell-command-ops.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/shell-command-ops.js +54 -0
- package/dist/_internal/platform/runtime/shell-command-platform.d.ts +22 -0
- package/dist/_internal/platform/runtime/shell-command-platform.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/shell-command-platform.js +13 -0
- package/dist/_internal/platform/runtime/shell-command-services.d.ts +59 -0
- package/dist/_internal/platform/runtime/shell-command-services.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/shell-command-services.js +46 -0
- package/dist/_internal/platform/runtime/shell-command-workspace.d.ts +14 -0
- package/dist/_internal/platform/runtime/shell-command-workspace.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/shell-command-workspace.js +9 -0
- package/dist/_internal/platform/runtime/store/domains/conversation.d.ts +109 -0
- package/dist/_internal/platform/runtime/store/domains/conversation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/conversation.js +42 -0
- package/dist/_internal/platform/runtime/store/domains/index.d.ts +58 -0
- package/dist/_internal/platform/runtime/store/domains/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/index.js +30 -0
- package/dist/_internal/platform/runtime/store/domains/panels.d.ts +59 -0
- package/dist/_internal/platform/runtime/store/domains/panels.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/panels.js +44 -0
- package/dist/_internal/platform/runtime/store/domains/permissions.d.ts +80 -0
- package/dist/_internal/platform/runtime/store/domains/permissions.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/permissions.js +23 -0
- package/dist/_internal/platform/runtime/store/domains/ui-perf.d.ts +72 -0
- package/dist/_internal/platform/runtime/store/domains/ui-perf.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/domains/ui-perf.js +28 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/conversation.d.ts +5 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/conversation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/conversation.js +232 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/lifecycle.d.ts +20 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/lifecycle.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/lifecycle.js +393 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/shared.d.ts +15 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/shared.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/shared.js +48 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/sync.d.ts +40 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/sync.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers/sync.js +480 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers.d.ts +5 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/helpers/reducers.js +4 -0
- package/dist/_internal/platform/runtime/store/index.d.ts +62 -0
- package/dist/_internal/platform/runtime/store/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/index.js +178 -0
- package/dist/_internal/platform/runtime/store/selectors/index.d.ts +151 -0
- package/dist/_internal/platform/runtime/store/selectors/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/selectors/index.js +270 -0
- package/dist/_internal/platform/runtime/store/state.d.ts +77 -0
- package/dist/_internal/platform/runtime/store/state.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/store/state.js +71 -0
- package/dist/_internal/platform/runtime/tasks/adapters/acp-adapter.d.ts +65 -0
- package/dist/_internal/platform/runtime/tasks/adapters/acp-adapter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/adapters/acp-adapter.js +176 -0
- package/dist/_internal/platform/runtime/tasks/adapters/agent-adapter.d.ts +68 -0
- package/dist/_internal/platform/runtime/tasks/adapters/agent-adapter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/adapters/agent-adapter.js +174 -0
- package/dist/_internal/platform/runtime/tasks/adapters/index.d.ts +13 -0
- package/dist/_internal/platform/runtime/tasks/adapters/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/adapters/index.js +10 -0
- package/dist/_internal/platform/runtime/tasks/adapters/process-adapter.d.ts +82 -0
- package/dist/_internal/platform/runtime/tasks/adapters/process-adapter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/adapters/process-adapter.js +171 -0
- package/dist/_internal/platform/runtime/tasks/adapters/scheduler-adapter.d.ts +76 -0
- package/dist/_internal/platform/runtime/tasks/adapters/scheduler-adapter.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/adapters/scheduler-adapter.js +160 -0
- package/dist/_internal/platform/runtime/tasks/index.d.ts +36 -0
- package/dist/_internal/platform/runtime/tasks/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/index.js +37 -0
- package/dist/_internal/platform/runtime/tasks/manager.d.ts +96 -0
- package/dist/_internal/platform/runtime/tasks/manager.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tasks/manager.js +316 -0
- package/dist/_internal/platform/runtime/telemetry/api-helpers.d.ts +39 -0
- package/dist/_internal/platform/runtime/telemetry/api-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/api-helpers.js +481 -0
- package/dist/_internal/platform/runtime/telemetry/api.d.ts +179 -0
- package/dist/_internal/platform/runtime/telemetry/api.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/api.js +535 -0
- package/dist/_internal/platform/runtime/telemetry/index.d.ts +53 -0
- package/dist/_internal/platform/runtime/telemetry/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/index.js +52 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-agent-session.d.ts +6 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-agent-session.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-agent-session.js +325 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-plugin-mcp.d.ts +4 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-plugin-mcp.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-plugin-mcp.js +142 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-shared.d.ts +18 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-shared.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-shared.js +1 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-transport-task.d.ts +4 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-transport-task.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge-transport-task.js +146 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge.d.ts +67 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/domain-bridge.js +101 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/index.d.ts +51 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/instrumentation/index.js +21 -0
- package/dist/_internal/platform/runtime/tools/context.d.ts +100 -0
- package/dist/_internal/platform/runtime/tools/context.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/context.js +1 -0
- package/dist/_internal/platform/runtime/tools/index.d.ts +32 -0
- package/dist/_internal/platform/runtime/tools/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/index.js +21 -0
- package/dist/_internal/platform/runtime/tools/phased-executor.d.ts +40 -0
- package/dist/_internal/platform/runtime/tools/phased-executor.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phased-executor.js +338 -0
- package/dist/_internal/platform/runtime/tools/phases/budget.d.ts +21 -0
- package/dist/_internal/platform/runtime/tools/phases/budget.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/budget.js +87 -0
- package/dist/_internal/platform/runtime/tools/phases/execute.d.ts +18 -0
- package/dist/_internal/platform/runtime/tools/phases/execute.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/execute.js +49 -0
- package/dist/_internal/platform/runtime/tools/phases/index.d.ts +14 -0
- package/dist/_internal/platform/runtime/tools/phases/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/index.js +13 -0
- package/dist/_internal/platform/runtime/tools/phases/map-output.d.ts +5 -0
- package/dist/_internal/platform/runtime/tools/phases/map-output.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/map-output.js +83 -0
- package/dist/_internal/platform/runtime/tools/phases/permission.d.ts +14 -0
- package/dist/_internal/platform/runtime/tools/phases/permission.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/permission.js +109 -0
- package/dist/_internal/platform/runtime/tools/phases/posthook.d.ts +15 -0
- package/dist/_internal/platform/runtime/tools/phases/posthook.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/posthook.js +47 -0
- package/dist/_internal/platform/runtime/tools/phases/prehook.d.ts +16 -0
- package/dist/_internal/platform/runtime/tools/phases/prehook.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/prehook.js +56 -0
- package/dist/_internal/platform/runtime/tools/phases/validate.d.ts +18 -0
- package/dist/_internal/platform/runtime/tools/phases/validate.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/tools/phases/validate.js +38 -0
- package/dist/_internal/platform/runtime/transports/direct.d.ts +34 -0
- package/dist/_internal/platform/runtime/transports/direct.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/direct.js +37 -0
- package/dist/_internal/platform/runtime/transports/http-helpers.d.ts +18 -0
- package/dist/_internal/platform/runtime/transports/http-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/http-helpers.js +182 -0
- package/dist/_internal/platform/runtime/transports/http-types.d.ts +307 -0
- package/dist/_internal/platform/runtime/transports/http-types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/http-types.js +1 -0
- package/dist/_internal/platform/runtime/transports/http.d.ts +3 -0
- package/dist/_internal/platform/runtime/transports/http.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/http.js +406 -0
- package/dist/_internal/platform/runtime/transports/realtime.d.ts +17 -0
- package/dist/_internal/platform/runtime/transports/realtime.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/realtime.js +28 -0
- package/dist/_internal/platform/runtime/transports/remote-events.d.ts +4 -0
- package/dist/_internal/platform/runtime/transports/remote-events.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/remote-events.js +2 -0
- package/dist/_internal/platform/runtime/transports/shared.d.ts +17 -0
- package/dist/_internal/platform/runtime/transports/shared.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/shared.js +8 -0
- package/dist/_internal/platform/runtime/transports/ui-runtime-events.d.ts +9 -0
- package/dist/_internal/platform/runtime/transports/ui-runtime-events.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/transports/ui-runtime-events.js +16 -0
- package/dist/_internal/platform/runtime/ui/index.d.ts +17 -0
- package/dist/_internal/platform/runtime/ui/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/index.js +11 -0
- package/dist/_internal/platform/runtime/ui/model-picker/data-provider.d.ts +94 -0
- package/dist/_internal/platform/runtime/ui/model-picker/data-provider.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/model-picker/data-provider.js +129 -0
- package/dist/_internal/platform/runtime/ui/model-picker/health-enrichment.d.ts +32 -0
- package/dist/_internal/platform/runtime/ui/model-picker/health-enrichment.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/model-picker/health-enrichment.js +208 -0
- package/dist/_internal/platform/runtime/ui/model-picker/index.d.ts +30 -0
- package/dist/_internal/platform/runtime/ui/model-picker/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/model-picker/index.js +26 -0
- package/dist/_internal/platform/runtime/ui/model-picker/types.d.ts +127 -0
- package/dist/_internal/platform/runtime/ui/model-picker/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/model-picker/types.js +1 -0
- package/dist/_internal/platform/runtime/ui/provider-health/data-provider.d.ts +30 -0
- package/dist/_internal/platform/runtime/ui/provider-health/data-provider.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/provider-health/data-provider.js +137 -0
- package/dist/_internal/platform/runtime/ui/provider-health/fallback-visualizer.d.ts +5 -0
- package/dist/_internal/platform/runtime/ui/provider-health/fallback-visualizer.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/provider-health/fallback-visualizer.js +35 -0
- package/dist/_internal/platform/runtime/ui/provider-health/index.d.ts +14 -0
- package/dist/_internal/platform/runtime/ui/provider-health/index.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/provider-health/index.js +9 -0
- package/dist/_internal/platform/runtime/ui/provider-health/types.d.ts +59 -0
- package/dist/_internal/platform/runtime/ui/provider-health/types.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui/provider-health/types.js +1 -0
- package/dist/_internal/platform/runtime/ui-events.d.ts +15 -0
- package/dist/_internal/platform/runtime/ui-events.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-events.js +16 -0
- package/dist/_internal/platform/runtime/ui-read-model-helpers.d.ts +6 -0
- package/dist/_internal/platform/runtime/ui-read-model-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-model-helpers.js +22 -0
- package/dist/_internal/platform/runtime/ui-read-models-core.d.ts +38 -0
- package/dist/_internal/platform/runtime/ui-read-models-core.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-core.js +52 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-maintenance.d.ts +37 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-maintenance.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-maintenance.js +36 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-options.d.ts +5 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-options.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-options.js +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-remote.d.ts +32 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-remote.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-remote.js +35 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-security.d.ts +54 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-security.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-security.js +111 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-system.d.ts +69 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-system.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability-system.js +137 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability.d.ts +15 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-observability.js +12 -0
- package/dist/_internal/platform/runtime/ui-read-models-operations.d.ts +78 -0
- package/dist/_internal/platform/runtime/ui-read-models-operations.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models-operations.js +113 -0
- package/dist/_internal/platform/runtime/ui-read-models.d.ts +13 -0
- package/dist/_internal/platform/runtime/ui-read-models.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-read-models.js +10 -0
- package/dist/_internal/platform/runtime/ui-service-queries.d.ts +69 -0
- package/dist/_internal/platform/runtime/ui-service-queries.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-service-queries.js +22 -0
- package/dist/_internal/platform/runtime/ui-services.d.ts +92 -0
- package/dist/_internal/platform/runtime/ui-services.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/ui-services.js +60 -0
- package/dist/_internal/platform/runtime/worktree/registry.d.ts +59 -0
- package/dist/_internal/platform/runtime/worktree/registry.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/worktree/registry.js +179 -0
- package/dist/_internal/platform/scheduler/scheduler.d.ts +1 -1
- package/dist/_internal/platform/scheduler/scheduler.js +1 -1
- package/dist/_internal/platform/sessions/manager.d.ts +95 -0
- package/dist/_internal/platform/sessions/manager.d.ts.map +1 -0
- package/dist/_internal/platform/sessions/manager.js +344 -0
- package/dist/_internal/platform/sessions/orchestration/registry.d.ts +2 -2
- package/dist/_internal/platform/sessions/orchestration/registry.js +3 -3
- package/dist/_internal/platform/state/file-watcher.d.ts +60 -0
- package/dist/_internal/platform/state/file-watcher.d.ts.map +1 -0
- package/dist/_internal/platform/state/file-watcher.js +268 -0
- package/dist/_internal/platform/state/index.d.ts +26 -0
- package/dist/_internal/platform/state/index.d.ts.map +1 -0
- package/dist/_internal/platform/state/index.js +15 -0
- package/dist/_internal/platform/state/knowledge-injection.d.ts +24 -0
- package/dist/_internal/platform/state/knowledge-injection.d.ts.map +1 -0
- package/dist/_internal/platform/state/knowledge-injection.js +147 -0
- package/dist/_internal/platform/state/memory-embedding-http.d.ts +10 -0
- package/dist/_internal/platform/state/memory-embedding-http.d.ts.map +1 -0
- package/dist/_internal/platform/state/memory-embedding-http.js +586 -0
- package/dist/_internal/platform/state/memory-embeddings.d.ts +70 -0
- package/dist/_internal/platform/state/memory-embeddings.d.ts.map +1 -0
- package/dist/_internal/platform/state/memory-embeddings.js +247 -0
- package/dist/_internal/platform/state/memory-ingest.d.ts +21 -0
- package/dist/_internal/platform/state/memory-ingest.d.ts.map +1 -0
- package/dist/_internal/platform/state/memory-ingest.js +108 -0
- package/dist/_internal/platform/state/memory-registry.d.ts +38 -0
- package/dist/_internal/platform/state/memory-registry.d.ts.map +1 -0
- package/dist/_internal/platform/state/memory-registry.js +91 -0
- package/dist/_internal/platform/state/memory-store-helpers.d.ts +28 -0
- package/dist/_internal/platform/state/memory-store-helpers.d.ts.map +1 -0
- package/dist/_internal/platform/state/memory-store-helpers.js +149 -0
- package/dist/_internal/platform/state/memory-store.d.ts +176 -0
- package/dist/_internal/platform/state/memory-store.d.ts.map +1 -0
- package/dist/_internal/platform/state/memory-store.js +474 -0
- package/dist/_internal/platform/state/memory-vector-store.d.ts +61 -0
- package/dist/_internal/platform/state/memory-vector-store.d.ts.map +1 -0
- package/dist/_internal/platform/state/memory-vector-store.js +324 -0
- package/dist/_internal/platform/tools/agent/index.d.ts +16 -0
- package/dist/_internal/platform/tools/agent/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/agent/index.js +550 -0
- package/dist/_internal/platform/tools/agent/manager.d.ts +102 -0
- package/dist/_internal/platform/tools/agent/manager.d.ts.map +1 -0
- package/dist/_internal/platform/tools/agent/manager.js +369 -0
- package/dist/_internal/platform/tools/analyze/git-modes.d.ts +7 -0
- package/dist/_internal/platform/tools/analyze/git-modes.d.ts.map +1 -0
- package/dist/_internal/platform/tools/analyze/git-modes.js +316 -0
- package/dist/_internal/platform/tools/analyze/index.d.ts +6 -0
- package/dist/_internal/platform/tools/analyze/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/analyze/index.js +92 -0
- package/dist/_internal/platform/tools/channel/agent-tools.d.ts +4 -0
- package/dist/_internal/platform/tools/channel/agent-tools.d.ts.map +1 -0
- package/dist/_internal/platform/tools/channel/agent-tools.js +13 -0
- package/dist/_internal/platform/tools/channel/index.d.ts +4 -0
- package/dist/_internal/platform/tools/channel/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/channel/index.js +254 -0
- package/dist/_internal/platform/tools/control/index.d.ts +3 -0
- package/dist/_internal/platform/tools/control/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/control/index.js +83 -0
- package/dist/_internal/platform/tools/edit/core.d.ts +15 -0
- package/dist/_internal/platform/tools/edit/core.d.ts.map +1 -0
- package/dist/_internal/platform/tools/edit/core.js +503 -0
- package/dist/_internal/platform/tools/edit/index.d.ts +4 -0
- package/dist/_internal/platform/tools/edit/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/edit/index.js +2 -0
- package/dist/_internal/platform/tools/edit/phased.d.ts +15 -0
- package/dist/_internal/platform/tools/edit/phased.d.ts.map +1 -0
- package/dist/_internal/platform/tools/edit/phased.js +26 -0
- package/dist/_internal/platform/tools/fetch/index.d.ts +4 -0
- package/dist/_internal/platform/tools/fetch/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/index.js +1 -0
- package/dist/_internal/platform/tools/fetch/phased.d.ts +13 -0
- package/dist/_internal/platform/tools/fetch/phased.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/phased.js +30 -0
- package/dist/_internal/platform/tools/fetch/runtime.d.ts +25 -0
- package/dist/_internal/platform/tools/fetch/runtime.d.ts.map +1 -0
- package/dist/_internal/platform/tools/fetch/runtime.js +395 -0
- package/dist/_internal/platform/tools/fetch/schema.d.ts +1 -1
- package/dist/_internal/platform/tools/fetch/schema.js +1 -1
- package/dist/_internal/platform/tools/index.d.ts +58 -0
- package/dist/_internal/platform/tools/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/index.js +143 -0
- package/dist/_internal/platform/tools/mcp/index.d.ts +4 -0
- package/dist/_internal/platform/tools/mcp/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/mcp/index.js +177 -0
- package/dist/_internal/platform/tools/packet/index.js +1 -1
- package/dist/_internal/platform/tools/query/index.js +1 -1
- package/dist/_internal/platform/tools/registry-tool/index.js +4 -4
- package/dist/_internal/platform/tools/registry-tool/skill-loader.js +2 -2
- package/dist/_internal/platform/tools/remote-trigger/index.d.ts +4 -0
- package/dist/_internal/platform/tools/remote-trigger/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/remote-trigger/index.js +123 -0
- package/dist/_internal/platform/tools/repl/index.d.ts +5 -0
- package/dist/_internal/platform/tools/repl/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/repl/index.js +252 -0
- package/dist/_internal/platform/tools/shared/auto-heal.d.ts +63 -0
- package/dist/_internal/platform/tools/shared/auto-heal.d.ts.map +1 -0
- package/dist/_internal/platform/tools/shared/auto-heal.js +252 -0
- package/dist/_internal/platform/tools/state/index.d.ts +20 -0
- package/dist/_internal/platform/tools/state/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/state/index.js +618 -0
- package/dist/_internal/platform/tools/team/index.js +1 -1
- package/dist/_internal/platform/tools/web-search/index.d.ts +4 -0
- package/dist/_internal/platform/tools/web-search/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/web-search/index.js +34 -0
- package/dist/_internal/platform/tools/worklist/index.js +1 -1
- package/dist/_internal/platform/tools/write/index.d.ts +17 -0
- package/dist/_internal/platform/tools/write/index.d.ts.map +1 -0
- package/dist/_internal/platform/tools/write/index.js +513 -0
- package/dist/_internal/platform/tools/write/phased.d.ts +21 -0
- package/dist/_internal/platform/tools/write/phased.d.ts.map +1 -0
- package/dist/_internal/platform/tools/write/phased.js +25 -0
- package/dist/_internal/platform/utils/splash-lines.d.ts +8 -0
- package/dist/_internal/platform/utils/splash-lines.d.ts.map +1 -0
- package/dist/_internal/platform/utils/splash-lines.js +32 -0
- package/dist/_internal/platform/version.d.ts +2 -0
- package/dist/_internal/platform/version.d.ts.map +1 -0
- package/dist/_internal/platform/version.js +11 -0
- package/dist/_internal/platform/watchers/index.d.ts +5 -0
- package/dist/_internal/platform/watchers/index.d.ts.map +1 -0
- package/dist/_internal/platform/watchers/index.js +2 -0
- package/dist/_internal/platform/watchers/registry.d.ts +51 -0
- package/dist/_internal/platform/watchers/registry.d.ts.map +1 -0
- package/dist/_internal/platform/watchers/registry.js +447 -0
- package/dist/_internal/platform/watchers/store.js +1 -1
- package/dist/_internal/platform/web-search/index.d.ts +12 -0
- package/dist/_internal/platform/web-search/index.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/index.js +9 -0
- package/dist/_internal/platform/web-search/provider-registry.d.ts +14 -0
- package/dist/_internal/platform/web-search/provider-registry.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/provider-registry.js +55 -0
- package/dist/_internal/platform/web-search/providers/brave.d.ts +4 -0
- package/dist/_internal/platform/web-search/providers/brave.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/brave.js +89 -0
- package/dist/_internal/platform/web-search/providers/duckduckgo.d.ts +13 -0
- package/dist/_internal/platform/web-search/providers/duckduckgo.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/duckduckgo.js +243 -0
- package/dist/_internal/platform/web-search/providers/exa.d.ts +4 -0
- package/dist/_internal/platform/web-search/providers/exa.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/exa.js +68 -0
- package/dist/_internal/platform/web-search/providers/firecrawl.d.ts +4 -0
- package/dist/_internal/platform/web-search/providers/firecrawl.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/firecrawl.js +80 -0
- package/dist/_internal/platform/web-search/providers/perplexity.d.ts +4 -0
- package/dist/_internal/platform/web-search/providers/perplexity.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/perplexity.js +77 -0
- package/dist/_internal/platform/web-search/providers/searxng.d.ts +4 -0
- package/dist/_internal/platform/web-search/providers/searxng.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/searxng.js +79 -0
- package/dist/_internal/platform/web-search/providers/shared.d.ts +56 -0
- package/dist/_internal/platform/web-search/providers/shared.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/shared.js +169 -0
- package/dist/_internal/platform/web-search/providers/tavily.d.ts +4 -0
- package/dist/_internal/platform/web-search/providers/tavily.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/providers/tavily.js +81 -0
- package/dist/_internal/platform/web-search/service.d.ts +19 -0
- package/dist/_internal/platform/web-search/service.d.ts.map +1 -0
- package/dist/_internal/platform/web-search/service.js +120 -0
- package/package.json +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { combineSubscriptions, createStoreBackedReadModel } from './ui-read-model-helpers.js';
|
|
2
|
+
export function createOperationsReadModels(runtimeServices, options = {}) {
|
|
3
|
+
const { runtimeStore } = runtimeServices;
|
|
4
|
+
return {
|
|
5
|
+
automation: createStoreBackedReadModel(runtimeServices, () => {
|
|
6
|
+
const state = runtimeStore.getState();
|
|
7
|
+
const jobs = state.automation.jobIds
|
|
8
|
+
.map((id) => state.automation.jobs.get(id))
|
|
9
|
+
.filter((job) => job !== undefined)
|
|
10
|
+
.sort((a, b) => (b.nextRunAt ?? 0) - (a.nextRunAt ?? 0) || a.name.localeCompare(b.name));
|
|
11
|
+
const runs = state.automation.runIds
|
|
12
|
+
.map((id) => state.automation.runs.get(id))
|
|
13
|
+
.filter((run) => run !== undefined)
|
|
14
|
+
.sort((a, b) => b.queuedAt - a.queuedAt || a.id.localeCompare(b.id));
|
|
15
|
+
return {
|
|
16
|
+
jobs,
|
|
17
|
+
runs,
|
|
18
|
+
totalJobs: state.automation.totalJobs,
|
|
19
|
+
totalRuns: state.automation.totalRuns,
|
|
20
|
+
activeRunIds: state.automation.activeRunIds,
|
|
21
|
+
totalFailed: state.automation.totalFailed,
|
|
22
|
+
sourceCount: state.automation.sourceIds.length,
|
|
23
|
+
deliveryTotals: {
|
|
24
|
+
succeeded: state.deliveries.totalSucceeded,
|
|
25
|
+
failed: state.deliveries.totalFailed,
|
|
26
|
+
deadLettered: state.deliveries.totalDeadLettered,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
}),
|
|
30
|
+
routes: createStoreBackedReadModel(runtimeServices, () => {
|
|
31
|
+
const state = runtimeStore.getState().routes;
|
|
32
|
+
const bindings = state.bindingIds
|
|
33
|
+
.map((id) => state.bindings.get(id))
|
|
34
|
+
.filter((binding) => binding !== undefined)
|
|
35
|
+
.sort((a, b) => b.lastSeenAt - a.lastSeenAt || a.id.localeCompare(b.id));
|
|
36
|
+
return {
|
|
37
|
+
bindings,
|
|
38
|
+
bindingIdsBySurface: state.bindingIdsBySurface,
|
|
39
|
+
totalBindings: state.totalBindings,
|
|
40
|
+
activeBindingIds: state.activeBindingIds,
|
|
41
|
+
totalResolved: state.totalResolved,
|
|
42
|
+
totalFailures: state.totalFailures,
|
|
43
|
+
};
|
|
44
|
+
}),
|
|
45
|
+
watchers: createStoreBackedReadModel(runtimeServices, () => {
|
|
46
|
+
const state = runtimeStore.getState().watchers;
|
|
47
|
+
const watchers = state.watcherIds
|
|
48
|
+
.map((id) => state.watchers.get(id))
|
|
49
|
+
.filter((watcher) => watcher !== undefined)
|
|
50
|
+
.sort((a, b) => (b.lastHeartbeatAt ?? 0) - (a.lastHeartbeatAt ?? 0) || a.id.localeCompare(b.id));
|
|
51
|
+
return {
|
|
52
|
+
watchers,
|
|
53
|
+
totalWatchers: state.watcherIds.length,
|
|
54
|
+
activeWatcherIds: state.activeWatcherIds,
|
|
55
|
+
totalDegraded: state.totalDegraded,
|
|
56
|
+
totalLagged: state.totalLagged,
|
|
57
|
+
};
|
|
58
|
+
}),
|
|
59
|
+
orchestration: createStoreBackedReadModel(runtimeServices, () => {
|
|
60
|
+
const state = runtimeStore.getState().orchestration;
|
|
61
|
+
const graphs = [...state.graphs.values()].sort((a, b) => b.createdAt - a.createdAt);
|
|
62
|
+
return {
|
|
63
|
+
graphs,
|
|
64
|
+
totalGraphs: state.totalGraphs,
|
|
65
|
+
activeGraphIds: state.activeGraphIds,
|
|
66
|
+
totalCompletedGraphs: state.totalCompletedGraphs,
|
|
67
|
+
totalFailedGraphs: state.totalFailedGraphs,
|
|
68
|
+
recursionGuardTrips: state.recursionGuardTrips,
|
|
69
|
+
};
|
|
70
|
+
}),
|
|
71
|
+
communication: createStoreBackedReadModel(runtimeServices, () => {
|
|
72
|
+
const state = runtimeStore.getState().communication;
|
|
73
|
+
const records = state.recentRecordIds
|
|
74
|
+
.map((id) => state.records.get(id))
|
|
75
|
+
.filter((record) => record !== undefined)
|
|
76
|
+
.sort((a, b) => b.timestamp - a.timestamp);
|
|
77
|
+
return {
|
|
78
|
+
records,
|
|
79
|
+
totalSent: state.totalSent,
|
|
80
|
+
totalDelivered: state.totalDelivered,
|
|
81
|
+
totalBlocked: state.totalBlocked,
|
|
82
|
+
};
|
|
83
|
+
}),
|
|
84
|
+
controlPlane: {
|
|
85
|
+
getSnapshot() {
|
|
86
|
+
const state = runtimeStore.getState().controlPlane;
|
|
87
|
+
const clients = state.clientIds
|
|
88
|
+
.map((id) => state.clients.get(id))
|
|
89
|
+
.filter((client) => client !== undefined)
|
|
90
|
+
.sort((a, b) => (b.lastSeenAt ?? 0) - (a.lastSeenAt ?? 0) || a.id.localeCompare(b.id));
|
|
91
|
+
return {
|
|
92
|
+
connectionState: state.connectionState,
|
|
93
|
+
activeClientIds: state.activeClientIds,
|
|
94
|
+
requestCount: state.requestCount,
|
|
95
|
+
errorCount: state.errorCount,
|
|
96
|
+
host: state.host,
|
|
97
|
+
port: state.port,
|
|
98
|
+
clients,
|
|
99
|
+
approvals: runtimeServices.approvalBroker.listApprovals(6),
|
|
100
|
+
sessions: runtimeServices.sessionBroker.listSessions(6),
|
|
101
|
+
recentEvents: options.getControlPlaneRecentEvents?.(6) ?? [],
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
subscribe(listener) {
|
|
105
|
+
const unsubs = [
|
|
106
|
+
runtimeStore.subscribe(listener),
|
|
107
|
+
runtimeServices.approvalBroker.subscribe(listener),
|
|
108
|
+
];
|
|
109
|
+
return combineSubscriptions(...unsubs);
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type { UiReadModel } from '@pellux/goodvibes-sdk/platform/runtime/ui-read-models-base';
|
|
2
|
+
export type { UiCoreReadModels, UiProvidersSnapshot, UiSessionSnapshot, UiAgentsSnapshot, UiTasksSnapshot, } from './ui-read-models-core.js';
|
|
3
|
+
export type { UiOperationsReadModels, UiAutomationSnapshot, UiRoutesSnapshot, UiWatchersSnapshot, UiOrchestrationSnapshot, UiCommunicationSnapshot, UiControlPlaneSnapshot, } from './ui-read-models-operations.js';
|
|
4
|
+
export type { UiObservabilityReadModels, UiRemoteSnapshot, UiIntelligenceSnapshot, UiMarketplaceSnapshot, UiCockpitSnapshot, UiSecuritySnapshot, UiHealthSnapshot, UiMcpServerSnapshot, UiMcpSnapshot, UiLocalAuthSnapshot, UiSettingsSnapshot, UiContinuitySnapshot, UiWorktreeSnapshot, } from './ui-read-models-observability.js';
|
|
5
|
+
export type { UiObservabilityReadModelOptions } from './ui-read-models-observability-options.js';
|
|
6
|
+
import type { RuntimeServices } from './services.js';
|
|
7
|
+
import { type UiCoreReadModels } from './ui-read-models-core.js';
|
|
8
|
+
import { type UiOperationsReadModels, type UiOperationsReadModelOptions } from './ui-read-models-operations.js';
|
|
9
|
+
import { type UiObservabilityReadModels, type UiObservabilityReadModelOptions } from './ui-read-models-observability.js';
|
|
10
|
+
export type UiReadModelOptions = UiOperationsReadModelOptions & UiObservabilityReadModelOptions;
|
|
11
|
+
export type UiReadModels = UiCoreReadModels & UiOperationsReadModels & UiObservabilityReadModels;
|
|
12
|
+
export declare function createUiReadModels(runtimeServices: RuntimeServices, options?: UiReadModelOptions): UiReadModels;
|
|
13
|
+
//# sourceMappingURL=ui-read-models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-read-models.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/runtime/ui-read-models.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,4DAA4D,CAAC;AAC9F,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAEjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAwB,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EAClC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACrC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAAG,4BAA4B,GAAG,+BAA+B,CAAC;AAEhG,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,yBAAyB,CAAC;AAEjG,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,eAAe,EAChC,OAAO,GAAE,kBAAuB,GAC/B,YAAY,CAMd"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createCoreReadModels } from './ui-read-models-core.js';
|
|
2
|
+
import { createOperationsReadModels, } from './ui-read-models-operations.js';
|
|
3
|
+
import { createObservabilityReadModels, } from './ui-read-models-observability.js';
|
|
4
|
+
export function createUiReadModels(runtimeServices, options = {}) {
|
|
5
|
+
return {
|
|
6
|
+
...createCoreReadModels(runtimeServices),
|
|
7
|
+
...createOperationsReadModels(runtimeServices, options),
|
|
8
|
+
...createObservabilityReadModels(runtimeServices, options),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ServiceConfig, ServiceConnectionTestResult, ServiceInspection } from '../config/service-registry.js';
|
|
2
|
+
import type { PendingSubscriptionLogin, ProviderSubscription } from '@pellux/goodvibes-sdk/platform/config/subscriptions';
|
|
3
|
+
import type { LocalAuthSnapshot } from '@pellux/goodvibes-sdk/platform/security/user-auth';
|
|
4
|
+
import type { SessionInfo } from '../sessions/manager.js';
|
|
5
|
+
import type { Tool } from '@pellux/goodvibes-sdk/platform/types/tools';
|
|
6
|
+
import type { ModelDefinition } from '../providers/registry.js';
|
|
7
|
+
import type { ProviderApi, ProviderRuntimeSnapshot } from '../providers/provider-api.js';
|
|
8
|
+
import type { ExecutionPlan } from '@pellux/goodvibes-sdk/platform/core/execution-plan';
|
|
9
|
+
import type { PlannerDecision, ExecutionStrategy } from '@pellux/goodvibes-sdk/platform/core/adaptive-planner';
|
|
10
|
+
export interface EnvironmentVariableQuery {
|
|
11
|
+
hasEnvironmentVariable(name: string): boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ServiceInspectionQuery {
|
|
14
|
+
getAll(): Record<string, ServiceConfig>;
|
|
15
|
+
inspect(name: string): Promise<ServiceInspection | null>;
|
|
16
|
+
testConnection(name: string): Promise<ServiceConnectionTestResult>;
|
|
17
|
+
}
|
|
18
|
+
export interface SubscriptionAccessQuery {
|
|
19
|
+
list(): ProviderSubscription[];
|
|
20
|
+
listPending(): PendingSubscriptionLogin[];
|
|
21
|
+
get(provider: string): ProviderSubscription | null;
|
|
22
|
+
getPending(provider: string): PendingSubscriptionLogin | null;
|
|
23
|
+
getAccessToken(provider: string): string | null;
|
|
24
|
+
logout(provider: string): void;
|
|
25
|
+
}
|
|
26
|
+
export interface LocalAuthInspectionQuery {
|
|
27
|
+
inspect(): LocalAuthSnapshot;
|
|
28
|
+
}
|
|
29
|
+
export interface SessionBrowserQuery {
|
|
30
|
+
list(): SessionInfo[];
|
|
31
|
+
search(query: string): Array<{
|
|
32
|
+
session: SessionInfo;
|
|
33
|
+
matchCount: number;
|
|
34
|
+
snippets: string[];
|
|
35
|
+
}>;
|
|
36
|
+
delete(name: string): void;
|
|
37
|
+
}
|
|
38
|
+
export interface SessionMemoryQuery {
|
|
39
|
+
list(): readonly unknown[];
|
|
40
|
+
}
|
|
41
|
+
export interface ToolCatalogQuery {
|
|
42
|
+
list(): Tool[];
|
|
43
|
+
}
|
|
44
|
+
export interface ProviderModelCatalogQuery {
|
|
45
|
+
listModels(): ModelDefinition[];
|
|
46
|
+
}
|
|
47
|
+
export interface ProviderAccountInspectionQuery {
|
|
48
|
+
readonly providerModels: ProviderModelCatalogQuery;
|
|
49
|
+
readonly services: Pick<ServiceInspectionQuery, 'getAll' | 'inspect'>;
|
|
50
|
+
readonly subscriptions: Pick<SubscriptionAccessQuery, 'list' | 'listPending' | 'get' | 'getPending'>;
|
|
51
|
+
readonly environment: EnvironmentVariableQuery;
|
|
52
|
+
}
|
|
53
|
+
export interface ProviderRuntimeInspectionQuery {
|
|
54
|
+
listProviderIds(): readonly string[];
|
|
55
|
+
inspectAll(): Promise<readonly ProviderRuntimeSnapshot[]>;
|
|
56
|
+
inspect(providerId: string): Promise<ProviderRuntimeSnapshot | null>;
|
|
57
|
+
}
|
|
58
|
+
export interface PlanDashboardQuery {
|
|
59
|
+
getActive(): ExecutionPlan | null;
|
|
60
|
+
}
|
|
61
|
+
export interface OpsStrategyQuery {
|
|
62
|
+
getLatest(): PlannerDecision | null;
|
|
63
|
+
getMode(): ExecutionStrategy;
|
|
64
|
+
getOverride(): ExecutionStrategy | null;
|
|
65
|
+
getHistory(limit?: number): PlannerDecision[];
|
|
66
|
+
}
|
|
67
|
+
export declare function createEnvironmentVariableQuery(environment: Readonly<Record<string, string | undefined>>): EnvironmentVariableQuery;
|
|
68
|
+
export declare function createProviderRuntimeInspectionQuery(providers: Pick<ProviderApi, 'listProviderIds' | 'queryRuntimeMetadata'>): ProviderRuntimeInspectionQuery;
|
|
69
|
+
//# sourceMappingURL=ui-service-queries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-service-queries.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/runtime/ui-service-queries.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function createEnvironmentVariableQuery(environment) {
|
|
2
|
+
return {
|
|
3
|
+
hasEnvironmentVariable(name) {
|
|
4
|
+
return Boolean(environment[name]);
|
|
5
|
+
},
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export function createProviderRuntimeInspectionQuery(providers) {
|
|
9
|
+
return {
|
|
10
|
+
listProviderIds() {
|
|
11
|
+
return providers.listProviderIds();
|
|
12
|
+
},
|
|
13
|
+
async inspectAll() {
|
|
14
|
+
const result = await providers.queryRuntimeMetadata({ scope: 'all' });
|
|
15
|
+
return result.scope === 'all' ? result.snapshots : [];
|
|
16
|
+
},
|
|
17
|
+
async inspect(providerId) {
|
|
18
|
+
const result = await providers.queryRuntimeMetadata({ scope: 'provider', providerId });
|
|
19
|
+
return result.scope === 'provider' ? result.snapshot : null;
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { RuntimeServices } from './services.js';
|
|
2
|
+
import type { RemoteRunnerRegistry } from './remote/runner-registry.js';
|
|
3
|
+
import type { RemoteSupervisor } from './remote/supervisor.js';
|
|
4
|
+
import { type UiRuntimeEvents } from './ui-events.js';
|
|
5
|
+
import { type UiReadModels, type UiReadModelOptions } from './ui-read-models.js';
|
|
6
|
+
import type { ForensicsRegistry } from './forensics/index.js';
|
|
7
|
+
import type { ControlPlaneRecentEvent } from '../control-plane/index.js';
|
|
8
|
+
import type { ApprovalBroker } from '../control-plane/approval-broker.js';
|
|
9
|
+
import type { SharedSessionBroker } from '../control-plane/session-broker.js';
|
|
10
|
+
import type { ShellPathService } from '@pellux/goodvibes-sdk/platform/runtime/shell-paths';
|
|
11
|
+
import type { SecretsManager } from '../config/secrets.js';
|
|
12
|
+
export interface UiEnvironmentServices {
|
|
13
|
+
readonly workingDirectory: string;
|
|
14
|
+
readonly homeDirectory: string;
|
|
15
|
+
readonly shellPaths: ShellPathService;
|
|
16
|
+
}
|
|
17
|
+
export interface UiShellServices {
|
|
18
|
+
readonly keybindingsManager: RuntimeServices['keybindingsManager'];
|
|
19
|
+
readonly panelManager: RuntimeServices['panelManager'];
|
|
20
|
+
readonly processManager: RuntimeServices['processManager'];
|
|
21
|
+
readonly profileManager: RuntimeServices['profileManager'];
|
|
22
|
+
readonly bookmarkManager: RuntimeServices['bookmarkManager'];
|
|
23
|
+
}
|
|
24
|
+
export interface UiAgentServices {
|
|
25
|
+
readonly agentManager: RuntimeServices['agentManager'];
|
|
26
|
+
readonly agentMessageBus: RuntimeServices['agentMessageBus'];
|
|
27
|
+
readonly wrfcController: RuntimeServices['wrfcController'];
|
|
28
|
+
}
|
|
29
|
+
export interface UiProviderServices {
|
|
30
|
+
readonly providerRegistry: RuntimeServices['providerRegistry'];
|
|
31
|
+
readonly favoritesStore: RuntimeServices['favoritesStore'];
|
|
32
|
+
readonly benchmarkStore: RuntimeServices['benchmarkStore'];
|
|
33
|
+
}
|
|
34
|
+
export interface UiSessionServices {
|
|
35
|
+
readonly sessionManager: RuntimeServices['sessionManager'];
|
|
36
|
+
readonly sessionBroker: SharedSessionBroker;
|
|
37
|
+
readonly sessionOrchestration: RuntimeServices['sessionOrchestration'];
|
|
38
|
+
readonly sessionMemoryStore: RuntimeServices['sessionMemoryStore'];
|
|
39
|
+
}
|
|
40
|
+
export interface UiPlatformServices {
|
|
41
|
+
readonly configManager: RuntimeServices['configManager'];
|
|
42
|
+
readonly localUserAuthManager: RuntimeServices['localUserAuthManager'];
|
|
43
|
+
readonly mcpRegistry: RuntimeServices['mcpRegistry'];
|
|
44
|
+
readonly serviceRegistry: RuntimeServices['serviceRegistry'];
|
|
45
|
+
readonly subscriptionManager: RuntimeServices['subscriptionManager'];
|
|
46
|
+
readonly secretsManager: SecretsManager;
|
|
47
|
+
readonly tokenAuditor: RuntimeServices['tokenAuditor'];
|
|
48
|
+
readonly replayEngine: RuntimeServices['replayEngine'];
|
|
49
|
+
readonly webhookNotifier: RuntimeServices['webhookNotifier'];
|
|
50
|
+
readonly policyRuntimeState: RuntimeServices['policyRuntimeState'];
|
|
51
|
+
}
|
|
52
|
+
export interface UiPlanningServices {
|
|
53
|
+
readonly planManager: RuntimeServices['planManager'];
|
|
54
|
+
readonly adaptivePlanner: RuntimeServices['adaptivePlanner'];
|
|
55
|
+
}
|
|
56
|
+
export interface UiCoordinationServices {
|
|
57
|
+
readonly approvalBroker: ApprovalBroker;
|
|
58
|
+
}
|
|
59
|
+
export interface UiRuntimeSharedServices {
|
|
60
|
+
readonly environment: UiEnvironmentServices;
|
|
61
|
+
readonly shell: UiShellServices;
|
|
62
|
+
readonly agents: UiAgentServices;
|
|
63
|
+
readonly providers: UiProviderServices;
|
|
64
|
+
readonly sessions: UiSessionServices;
|
|
65
|
+
readonly platform: UiPlatformServices;
|
|
66
|
+
readonly planning: UiPlanningServices;
|
|
67
|
+
readonly coordination: UiCoordinationServices;
|
|
68
|
+
readonly runtime: {
|
|
69
|
+
readonly distributedRuntime: RuntimeServices['distributedRuntime'];
|
|
70
|
+
readonly remoteRunnerRegistry: RuntimeServices['remoteRunnerRegistry'] & RemoteRunnerRegistry;
|
|
71
|
+
readonly remoteSupervisor: RuntimeServices['remoteSupervisor'] & RemoteSupervisor;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export interface UiRuntimeServices {
|
|
75
|
+
readonly environment: UiEnvironmentServices;
|
|
76
|
+
readonly shell: UiShellServices;
|
|
77
|
+
readonly agents: UiAgentServices;
|
|
78
|
+
readonly providers: UiProviderServices;
|
|
79
|
+
readonly sessions: UiSessionServices;
|
|
80
|
+
readonly platform: UiPlatformServices;
|
|
81
|
+
readonly planning: UiPlanningServices;
|
|
82
|
+
readonly coordination: UiCoordinationServices;
|
|
83
|
+
readonly runtime: UiRuntimeSharedServices['runtime'];
|
|
84
|
+
readonly events: UiRuntimeEvents;
|
|
85
|
+
readonly readModels: UiReadModels;
|
|
86
|
+
}
|
|
87
|
+
export interface UiRuntimeServicesOptions extends UiReadModelOptions {
|
|
88
|
+
readonly forensicsRegistry?: ForensicsRegistry;
|
|
89
|
+
readonly getControlPlaneRecentEvents?: (limit: number) => readonly ControlPlaneRecentEvent[];
|
|
90
|
+
}
|
|
91
|
+
export declare function createUiRuntimeServices(runtimeServices: RuntimeServices, options?: UiRuntimeServicesOptions): UiRuntimeServices;
|
|
92
|
+
//# sourceMappingURL=ui-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-services.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/runtime/ui-services.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createUiRuntimeEvents } from './ui-events.js';
|
|
2
|
+
import { createUiReadModels } from './ui-read-models.js';
|
|
3
|
+
export function createUiRuntimeServices(runtimeServices, options = {}) {
|
|
4
|
+
return {
|
|
5
|
+
environment: {
|
|
6
|
+
workingDirectory: runtimeServices.workingDirectory,
|
|
7
|
+
homeDirectory: runtimeServices.homeDirectory,
|
|
8
|
+
shellPaths: runtimeServices.shellPaths,
|
|
9
|
+
},
|
|
10
|
+
shell: {
|
|
11
|
+
keybindingsManager: runtimeServices.keybindingsManager,
|
|
12
|
+
panelManager: runtimeServices.panelManager,
|
|
13
|
+
processManager: runtimeServices.processManager,
|
|
14
|
+
profileManager: runtimeServices.profileManager,
|
|
15
|
+
bookmarkManager: runtimeServices.bookmarkManager,
|
|
16
|
+
},
|
|
17
|
+
agents: {
|
|
18
|
+
agentManager: runtimeServices.agentManager,
|
|
19
|
+
agentMessageBus: runtimeServices.agentMessageBus,
|
|
20
|
+
wrfcController: runtimeServices.wrfcController,
|
|
21
|
+
},
|
|
22
|
+
providers: {
|
|
23
|
+
providerRegistry: runtimeServices.providerRegistry,
|
|
24
|
+
favoritesStore: runtimeServices.favoritesStore,
|
|
25
|
+
benchmarkStore: runtimeServices.benchmarkStore,
|
|
26
|
+
},
|
|
27
|
+
sessions: {
|
|
28
|
+
sessionManager: runtimeServices.sessionManager,
|
|
29
|
+
sessionBroker: runtimeServices.sessionBroker,
|
|
30
|
+
sessionOrchestration: runtimeServices.sessionOrchestration,
|
|
31
|
+
sessionMemoryStore: runtimeServices.sessionMemoryStore,
|
|
32
|
+
},
|
|
33
|
+
platform: {
|
|
34
|
+
configManager: runtimeServices.configManager,
|
|
35
|
+
localUserAuthManager: runtimeServices.localUserAuthManager,
|
|
36
|
+
mcpRegistry: runtimeServices.mcpRegistry,
|
|
37
|
+
serviceRegistry: runtimeServices.serviceRegistry,
|
|
38
|
+
subscriptionManager: runtimeServices.subscriptionManager,
|
|
39
|
+
secretsManager: runtimeServices.secretsManager,
|
|
40
|
+
tokenAuditor: runtimeServices.tokenAuditor,
|
|
41
|
+
replayEngine: runtimeServices.replayEngine,
|
|
42
|
+
webhookNotifier: runtimeServices.webhookNotifier,
|
|
43
|
+
policyRuntimeState: runtimeServices.policyRuntimeState,
|
|
44
|
+
},
|
|
45
|
+
planning: {
|
|
46
|
+
planManager: runtimeServices.planManager,
|
|
47
|
+
adaptivePlanner: runtimeServices.adaptivePlanner,
|
|
48
|
+
},
|
|
49
|
+
coordination: {
|
|
50
|
+
approvalBroker: runtimeServices.approvalBroker,
|
|
51
|
+
},
|
|
52
|
+
runtime: {
|
|
53
|
+
distributedRuntime: runtimeServices.distributedRuntime,
|
|
54
|
+
remoteRunnerRegistry: runtimeServices.remoteRunnerRegistry,
|
|
55
|
+
remoteSupervisor: runtimeServices.remoteSupervisor,
|
|
56
|
+
},
|
|
57
|
+
events: createUiRuntimeEvents(runtimeServices.runtimeBus),
|
|
58
|
+
readModels: createUiReadModels(runtimeServices, options),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export type ManagedWorktreeState = 'active' | 'paused' | 'kept' | 'discard' | 'cleanup-pending';
|
|
2
|
+
export type ManagedWorktreeKind = 'agent' | 'orchestrator' | 'manual';
|
|
3
|
+
export interface ManagedWorktreeMeta {
|
|
4
|
+
readonly path: string;
|
|
5
|
+
readonly kind: ManagedWorktreeKind;
|
|
6
|
+
readonly state: ManagedWorktreeState;
|
|
7
|
+
readonly ownerId?: string;
|
|
8
|
+
readonly sessionId?: string;
|
|
9
|
+
readonly taskId?: string;
|
|
10
|
+
readonly updatedAt: number;
|
|
11
|
+
}
|
|
12
|
+
export interface WorktreeStatusRecord extends ManagedWorktreeMeta {
|
|
13
|
+
readonly branch: string;
|
|
14
|
+
readonly head: string;
|
|
15
|
+
}
|
|
16
|
+
export interface WorktreeOwnershipSummary {
|
|
17
|
+
readonly total: number;
|
|
18
|
+
readonly active: number;
|
|
19
|
+
readonly paused: number;
|
|
20
|
+
readonly kept: number;
|
|
21
|
+
readonly discard: number;
|
|
22
|
+
readonly cleanupPending: number;
|
|
23
|
+
readonly sessionAttached: number;
|
|
24
|
+
readonly taskAttached: number;
|
|
25
|
+
readonly agentOwned: number;
|
|
26
|
+
readonly orchestratorOwned: number;
|
|
27
|
+
readonly manualOwned: number;
|
|
28
|
+
}
|
|
29
|
+
export interface WorktreeAttachmentReview {
|
|
30
|
+
readonly targetKind: 'session' | 'task';
|
|
31
|
+
readonly targetId: string;
|
|
32
|
+
readonly total: number;
|
|
33
|
+
readonly active: number;
|
|
34
|
+
readonly paused: number;
|
|
35
|
+
readonly kept: number;
|
|
36
|
+
readonly discard: number;
|
|
37
|
+
readonly cleanupPending: number;
|
|
38
|
+
readonly records: readonly ManagedWorktreeMeta[];
|
|
39
|
+
}
|
|
40
|
+
export interface WorktreeRegistryPaths {
|
|
41
|
+
readonly workingDirectory: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function listPersistedWorktreeMeta(options: WorktreeRegistryPaths): ManagedWorktreeMeta[];
|
|
44
|
+
export declare function getPersistedWorktreeMeta(path: string, options: WorktreeRegistryPaths): ManagedWorktreeMeta | null;
|
|
45
|
+
export declare function reviewWorktreeAttachments(targetKind: 'session' | 'task', targetId: string, options: WorktreeRegistryPaths): WorktreeAttachmentReview;
|
|
46
|
+
export declare function summarizeWorktreeOwnership(records: readonly ManagedWorktreeMeta[]): WorktreeOwnershipSummary;
|
|
47
|
+
export declare class WorktreeRegistry {
|
|
48
|
+
private readonly git;
|
|
49
|
+
private readonly workingDirectory;
|
|
50
|
+
constructor(workingDirectory: string);
|
|
51
|
+
list(): Promise<WorktreeStatusRecord[]>;
|
|
52
|
+
attach(path: string, target: {
|
|
53
|
+
sessionId?: string;
|
|
54
|
+
taskId?: string;
|
|
55
|
+
}): void;
|
|
56
|
+
setState(path: string, state: ManagedWorktreeState): void;
|
|
57
|
+
cleanup(path: string): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/worktree/registry.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, isAbsolute, join, resolve } from 'node:path';
|
|
3
|
+
import { GitService } from '../../git/service.js';
|
|
4
|
+
function getStorePath(workingDirectory) {
|
|
5
|
+
return join(workingDirectory, '.goodvibes', 'goodvibes', 'worktrees.json');
|
|
6
|
+
}
|
|
7
|
+
function defaultStore() {
|
|
8
|
+
return { version: 1, records: {} };
|
|
9
|
+
}
|
|
10
|
+
function normalizePath(path, workingDirectory) {
|
|
11
|
+
return resolve(workingDirectory, path);
|
|
12
|
+
}
|
|
13
|
+
function readStore(workingDirectory) {
|
|
14
|
+
try {
|
|
15
|
+
return JSON.parse(readFileSync(getStorePath(workingDirectory), 'utf-8'));
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return defaultStore();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export function listPersistedWorktreeMeta(options) {
|
|
22
|
+
return Object.values(readStore(options.workingDirectory).records).sort((a, b) => a.path.localeCompare(b.path));
|
|
23
|
+
}
|
|
24
|
+
export function getPersistedWorktreeMeta(path, options) {
|
|
25
|
+
const normalized = normalizePath(path, options.workingDirectory);
|
|
26
|
+
return readStore(options.workingDirectory).records[normalized] ?? null;
|
|
27
|
+
}
|
|
28
|
+
export function reviewWorktreeAttachments(targetKind, targetId, options) {
|
|
29
|
+
const records = listPersistedWorktreeMeta(options).filter((record) => (targetKind === 'session' ? record.sessionId === targetId : record.taskId === targetId));
|
|
30
|
+
return records.reduce((summary, record) => ({
|
|
31
|
+
...summary,
|
|
32
|
+
total: summary.total + 1,
|
|
33
|
+
active: summary.active + (record.state === 'active' ? 1 : 0),
|
|
34
|
+
paused: summary.paused + (record.state === 'paused' ? 1 : 0),
|
|
35
|
+
kept: summary.kept + (record.state === 'kept' ? 1 : 0),
|
|
36
|
+
discard: summary.discard + (record.state === 'discard' ? 1 : 0),
|
|
37
|
+
cleanupPending: summary.cleanupPending + (record.state === 'cleanup-pending' ? 1 : 0),
|
|
38
|
+
records: [...summary.records, record],
|
|
39
|
+
}), {
|
|
40
|
+
targetKind,
|
|
41
|
+
targetId,
|
|
42
|
+
total: 0,
|
|
43
|
+
active: 0,
|
|
44
|
+
paused: 0,
|
|
45
|
+
kept: 0,
|
|
46
|
+
discard: 0,
|
|
47
|
+
cleanupPending: 0,
|
|
48
|
+
records: [],
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
export function summarizeWorktreeOwnership(records) {
|
|
52
|
+
return records.reduce((summary, record) => ({
|
|
53
|
+
total: summary.total + 1,
|
|
54
|
+
active: summary.active + (record.state === 'active' ? 1 : 0),
|
|
55
|
+
paused: summary.paused + (record.state === 'paused' ? 1 : 0),
|
|
56
|
+
kept: summary.kept + (record.state === 'kept' ? 1 : 0),
|
|
57
|
+
discard: summary.discard + (record.state === 'discard' ? 1 : 0),
|
|
58
|
+
cleanupPending: summary.cleanupPending + (record.state === 'cleanup-pending' ? 1 : 0),
|
|
59
|
+
sessionAttached: summary.sessionAttached + (record.sessionId ? 1 : 0),
|
|
60
|
+
taskAttached: summary.taskAttached + (record.taskId ? 1 : 0),
|
|
61
|
+
agentOwned: summary.agentOwned + (record.kind === 'agent' ? 1 : 0),
|
|
62
|
+
orchestratorOwned: summary.orchestratorOwned + (record.kind === 'orchestrator' ? 1 : 0),
|
|
63
|
+
manualOwned: summary.manualOwned + (record.kind === 'manual' ? 1 : 0),
|
|
64
|
+
}), {
|
|
65
|
+
total: 0,
|
|
66
|
+
active: 0,
|
|
67
|
+
paused: 0,
|
|
68
|
+
kept: 0,
|
|
69
|
+
discard: 0,
|
|
70
|
+
cleanupPending: 0,
|
|
71
|
+
sessionAttached: 0,
|
|
72
|
+
taskAttached: 0,
|
|
73
|
+
agentOwned: 0,
|
|
74
|
+
orchestratorOwned: 0,
|
|
75
|
+
manualOwned: 0,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function writeStore(store, workingDirectory) {
|
|
79
|
+
const storePath = getStorePath(workingDirectory);
|
|
80
|
+
mkdirSync(dirname(storePath), { recursive: true });
|
|
81
|
+
writeFileSync(storePath, `${JSON.stringify(store, null, 2)}\n`, 'utf-8');
|
|
82
|
+
}
|
|
83
|
+
function classifyWorktreePath(path, workingDirectory) {
|
|
84
|
+
const normalized = normalizePath(path, workingDirectory);
|
|
85
|
+
const agentMatch = normalized.match(/[/\\]\.goodvibes[/\\]\.worktrees[/\\]agent-([^/\\]+)$/);
|
|
86
|
+
if (agentMatch) {
|
|
87
|
+
return { kind: 'agent', ownerId: agentMatch[1] };
|
|
88
|
+
}
|
|
89
|
+
if (normalized.includes(`${join('.goodvibes', '.worktrees')}`)) {
|
|
90
|
+
return { kind: 'orchestrator' };
|
|
91
|
+
}
|
|
92
|
+
return { kind: 'manual' };
|
|
93
|
+
}
|
|
94
|
+
export class WorktreeRegistry {
|
|
95
|
+
git;
|
|
96
|
+
workingDirectory;
|
|
97
|
+
constructor(workingDirectory) {
|
|
98
|
+
this.workingDirectory = workingDirectory;
|
|
99
|
+
this.git = new GitService(workingDirectory);
|
|
100
|
+
}
|
|
101
|
+
async list() {
|
|
102
|
+
const store = readStore(this.workingDirectory);
|
|
103
|
+
const listed = await this.git.worktreeList();
|
|
104
|
+
const present = new Set(listed.map((entry) => normalizePath(entry.path, this.workingDirectory)));
|
|
105
|
+
const records = listed.map((entry) => {
|
|
106
|
+
const path = normalizePath(entry.path, this.workingDirectory);
|
|
107
|
+
const meta = store.records[path];
|
|
108
|
+
const classified = classifyWorktreePath(path, this.workingDirectory);
|
|
109
|
+
return {
|
|
110
|
+
path,
|
|
111
|
+
branch: entry.branch,
|
|
112
|
+
head: entry.head,
|
|
113
|
+
kind: meta?.kind ?? classified.kind,
|
|
114
|
+
state: meta?.state ?? 'active',
|
|
115
|
+
...(meta?.ownerId ?? classified.ownerId ? { ownerId: meta?.ownerId ?? classified.ownerId } : {}),
|
|
116
|
+
...(meta?.sessionId ? { sessionId: meta.sessionId } : {}),
|
|
117
|
+
...(meta?.taskId ? { taskId: meta.taskId } : {}),
|
|
118
|
+
updatedAt: meta?.updatedAt ?? Date.now(),
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
const nextRecords = {};
|
|
122
|
+
for (const record of records) {
|
|
123
|
+
nextRecords[record.path] = {
|
|
124
|
+
path: record.path,
|
|
125
|
+
kind: record.kind,
|
|
126
|
+
state: record.state,
|
|
127
|
+
...(record.ownerId ? { ownerId: record.ownerId } : {}),
|
|
128
|
+
...(record.sessionId ? { sessionId: record.sessionId } : {}),
|
|
129
|
+
...(record.taskId ? { taskId: record.taskId } : {}),
|
|
130
|
+
updatedAt: record.updatedAt,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
for (const [path, meta] of Object.entries(store.records)) {
|
|
134
|
+
if (!present.has(path) && meta.state === 'kept')
|
|
135
|
+
nextRecords[path] = meta;
|
|
136
|
+
}
|
|
137
|
+
writeStore({ version: 1, records: nextRecords }, this.workingDirectory);
|
|
138
|
+
return records.sort((a, b) => a.path.localeCompare(b.path));
|
|
139
|
+
}
|
|
140
|
+
attach(path, target) {
|
|
141
|
+
const store = readStore(this.workingDirectory);
|
|
142
|
+
const normalized = normalizePath(path, this.workingDirectory);
|
|
143
|
+
const existing = store.records[normalized];
|
|
144
|
+
const classified = classifyWorktreePath(normalized, this.workingDirectory);
|
|
145
|
+
store.records[normalized] = {
|
|
146
|
+
path: normalized,
|
|
147
|
+
kind: existing?.kind ?? classified.kind,
|
|
148
|
+
state: existing?.state ?? 'active',
|
|
149
|
+
...(existing?.ownerId ?? classified.ownerId ? { ownerId: existing?.ownerId ?? classified.ownerId } : {}),
|
|
150
|
+
...(target.sessionId ? { sessionId: target.sessionId } : {}),
|
|
151
|
+
...(target.taskId ? { taskId: target.taskId } : {}),
|
|
152
|
+
updatedAt: Date.now(),
|
|
153
|
+
};
|
|
154
|
+
writeStore(store, this.workingDirectory);
|
|
155
|
+
}
|
|
156
|
+
setState(path, state) {
|
|
157
|
+
const store = readStore(this.workingDirectory);
|
|
158
|
+
const normalized = normalizePath(path, this.workingDirectory);
|
|
159
|
+
const existing = store.records[normalized];
|
|
160
|
+
const classified = classifyWorktreePath(normalized, this.workingDirectory);
|
|
161
|
+
store.records[normalized] = {
|
|
162
|
+
path: normalized,
|
|
163
|
+
kind: existing?.kind ?? classified.kind,
|
|
164
|
+
state,
|
|
165
|
+
...(existing?.ownerId ?? classified.ownerId ? { ownerId: existing?.ownerId ?? classified.ownerId } : {}),
|
|
166
|
+
...(existing?.sessionId ? { sessionId: existing.sessionId } : {}),
|
|
167
|
+
...(existing?.taskId ? { taskId: existing.taskId } : {}),
|
|
168
|
+
updatedAt: Date.now(),
|
|
169
|
+
};
|
|
170
|
+
writeStore(store, this.workingDirectory);
|
|
171
|
+
}
|
|
172
|
+
async cleanup(path) {
|
|
173
|
+
const normalized = isAbsolute(path) ? path : normalizePath(path, this.workingDirectory);
|
|
174
|
+
await this.git.worktreeRemove(normalized);
|
|
175
|
+
const store = readStore(this.workingDirectory);
|
|
176
|
+
delete store.records[normalized];
|
|
177
|
+
writeStore(store, this.workingDirectory);
|
|
178
|
+
}
|
|
179
|
+
}
|