@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,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* context-compaction.ts
|
|
3
|
+
*
|
|
4
|
+
* Context compaction engine for the GoodVibes platform runtime.
|
|
5
|
+
*
|
|
6
|
+
* Architecture:
|
|
7
|
+
* - Deterministic structure: fixed sections assembled in order
|
|
8
|
+
* - Targeted LLM calls for: substance filter, tool relevance, resolved problems,
|
|
9
|
+
* older agent summary
|
|
10
|
+
* - Rule-based sections: handoff, memories, current task, running agents,
|
|
11
|
+
* agent activity table, plan progress, session lineage
|
|
12
|
+
* - Post-compaction validation: sanity-checks required sections
|
|
13
|
+
* - Context-window-aware thresholds
|
|
14
|
+
*
|
|
15
|
+
* Public API:
|
|
16
|
+
* estimateConversationTokens(messages) — rough token count for a message array
|
|
17
|
+
* estimateTokens(text) — rough token count for a string
|
|
18
|
+
* shouldAutoCompact(opts) — check if 15k token buffer threshold is exceeded
|
|
19
|
+
* compactSmallWindow(messages, keepRecent) — simplified compaction for small context windows
|
|
20
|
+
* compactMessages(ctx, registry) — structured compaction entry point
|
|
21
|
+
* checkAndCompact(autoOpts, ctx) — check and compact if threshold exceeded
|
|
22
|
+
* getCompactionEvents() — return compaction event log
|
|
23
|
+
* getLastCompactionEvent() — return most recent compaction event
|
|
24
|
+
*/
|
|
25
|
+
import type { ProviderMessage } from '../providers/interface.js';
|
|
26
|
+
import type { ProviderRegistry } from '../providers/registry.js';
|
|
27
|
+
import type { CompactionContext, CompactionResult, CompactionEvent } from './compaction-types.js';
|
|
28
|
+
export type { CompactionEvent, CompactionResult, CompactionContext } from './compaction-types.js';
|
|
29
|
+
export interface AutoCompactOptions {
|
|
30
|
+
/** Current input token count from last LLM response. */
|
|
31
|
+
currentTokens: number;
|
|
32
|
+
/** Maximum context window for the current model. */
|
|
33
|
+
contextWindow: number;
|
|
34
|
+
/** Whether auto-compact is already in progress (prevent re-entry). */
|
|
35
|
+
isCompacting: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Tokens remaining in the context window at which auto-compaction triggers.
|
|
39
|
+
* Compact when contextWindow - currentTokens <= COMPACTION_BUFFER_TOKENS.
|
|
40
|
+
* 15k gives room for the ~6.5k compaction output + LLM extraction calls.
|
|
41
|
+
*/
|
|
42
|
+
export declare const COMPACTION_BUFFER_TOKENS = 15000;
|
|
43
|
+
/**
|
|
44
|
+
* Context windows smaller than this use simplified compaction (summarize last N messages)
|
|
45
|
+
* instead of the full structured output, since there isn't enough room for extraction calls.
|
|
46
|
+
*/
|
|
47
|
+
export declare const SMALL_WINDOW_THRESHOLD = 12000;
|
|
48
|
+
export declare function getCompactionEvents(): readonly CompactionEvent[];
|
|
49
|
+
export declare function getLastCompactionEvent(): CompactionEvent | null;
|
|
50
|
+
/** Rough token estimate: 4 chars ≈ 1 token. Used for threshold checks. */
|
|
51
|
+
export declare function estimateConversationTokens(messages: ProviderMessage[]): number;
|
|
52
|
+
export { estimateTokens } from './compaction-types.js';
|
|
53
|
+
/**
|
|
54
|
+
* Returns true if the remaining context window is within COMPACTION_BUFFER_TOKENS
|
|
55
|
+
* and compaction has not already been triggered.
|
|
56
|
+
*
|
|
57
|
+
* Triggers when: contextWindow - currentTokens <= 15000
|
|
58
|
+
* The 15k buffer gives room for the ~6.5k compaction output + LLM extraction calls
|
|
59
|
+
* + post-compaction work before the window is exhausted.
|
|
60
|
+
*/
|
|
61
|
+
export declare function shouldAutoCompact(opts: AutoCompactOptions): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Simplified compaction for context windows smaller than SMALL_WINDOW_THRESHOLD (12k).
|
|
64
|
+
* There isn't enough room for LLM extraction calls, so we just keep the last
|
|
65
|
+
* `keepRecent` messages and add a brief summary note.
|
|
66
|
+
*
|
|
67
|
+
* @param messages - Full conversation message array
|
|
68
|
+
* @param keepRecent - Number of recent messages to keep verbatim (default: 10)
|
|
69
|
+
* @returns Truncated message array with a summary pair prepended
|
|
70
|
+
*/
|
|
71
|
+
export declare function compactSmallWindow(messages: ProviderMessage[], keepRecent?: number): ProviderMessage[];
|
|
72
|
+
/**
|
|
73
|
+
* compactMessages — structured compaction entry point.
|
|
74
|
+
*/
|
|
75
|
+
export declare function compactMessages(ctx: CompactionContext, registry: ProviderRegistry): Promise<CompactionResult>;
|
|
76
|
+
/**
|
|
77
|
+
* checkAndCompact — Check if context usage exceeds threshold and compact if so.
|
|
78
|
+
* Returns the compaction result if compaction was performed, null otherwise.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
export declare function checkAndCompact(autoOpts: AutoCompactOptions, ctx: CompactionContext, registry: ProviderRegistry): Promise<CompactionResult | null>;
|
|
82
|
+
//# sourceMappingURL=context-compaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-compaction.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/core/context-compaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAA4B,MAAM,2BAA2B,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAEV,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAkB/B,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAElG,MAAM,WAAW,kBAAkB;IACjC,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,aAAa,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,YAAY,EAAE,OAAO,CAAC;CACvB;AAMD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAS,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAQ7C,wBAAgB,mBAAmB,IAAI,SAAS,eAAe,EAAE,CAEhE;AAED,wBAAgB,sBAAsB,IAAI,eAAe,GAAG,IAAI,CAI/D;AAMD,0EAA0E;AAC1E,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,MAAM,CAc9E;AAED,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMvD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAInE;AAMD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EAAE,EAC3B,UAAU,SAAK,GACd,eAAe,EAAE,CAanB;AA6GD;;GAEG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,iBAAiB,EACtB,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,gBAAgB,CAAC,CAE3B;AAkPD;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,kBAAkB,EAC5B,GAAG,EAAE,iBAAiB,EACtB,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAOlC"}
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* context-compaction.ts
|
|
3
|
+
*
|
|
4
|
+
* Context compaction engine for the GoodVibes platform runtime.
|
|
5
|
+
*
|
|
6
|
+
* Architecture:
|
|
7
|
+
* - Deterministic structure: fixed sections assembled in order
|
|
8
|
+
* - Targeted LLM calls for: substance filter, tool relevance, resolved problems,
|
|
9
|
+
* older agent summary
|
|
10
|
+
* - Rule-based sections: handoff, memories, current task, running agents,
|
|
11
|
+
* agent activity table, plan progress, session lineage
|
|
12
|
+
* - Post-compaction validation: sanity-checks required sections
|
|
13
|
+
* - Context-window-aware thresholds
|
|
14
|
+
*
|
|
15
|
+
* Public API:
|
|
16
|
+
* estimateConversationTokens(messages) — rough token count for a message array
|
|
17
|
+
* estimateTokens(text) — rough token count for a string
|
|
18
|
+
* shouldAutoCompact(opts) — check if 15k token buffer threshold is exceeded
|
|
19
|
+
* compactSmallWindow(messages, keepRecent) — simplified compaction for small context windows
|
|
20
|
+
* compactMessages(ctx, registry) — structured compaction entry point
|
|
21
|
+
* checkAndCompact(autoOpts, ctx) — check and compact if threshold exceeded
|
|
22
|
+
* getCompactionEvents() — return compaction event log
|
|
23
|
+
* getLastCompactionEvent() — return most recent compaction event
|
|
24
|
+
*/
|
|
25
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils/logger';
|
|
26
|
+
import { DEFAULT_COMPACTION_CONFIG, estimateTokens } from './compaction-types.js';
|
|
27
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils/error-display';
|
|
28
|
+
import { buildHandoffHeader, buildSessionMemories, buildCurrentTask, buildRunningAgents, gatherRecentConversation, buildConversationFilterPrompt, buildToolResultsPrompt, buildAgentActivityTable, buildOlderAgentSummaryPrompt, buildResolvedProblemsPrompt, buildPlanProgress, buildSessionLineage, } from './compaction-sections.js';
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
// Compaction trigger constants
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
/**
|
|
33
|
+
* Tokens remaining in the context window at which auto-compaction triggers.
|
|
34
|
+
* Compact when contextWindow - currentTokens <= COMPACTION_BUFFER_TOKENS.
|
|
35
|
+
* 15k gives room for the ~6.5k compaction output + LLM extraction calls.
|
|
36
|
+
*/
|
|
37
|
+
export const COMPACTION_BUFFER_TOKENS = 15_000;
|
|
38
|
+
/**
|
|
39
|
+
* Context windows smaller than this use simplified compaction (summarize last N messages)
|
|
40
|
+
* instead of the full structured output, since there isn't enough room for extraction calls.
|
|
41
|
+
*/
|
|
42
|
+
export const SMALL_WINDOW_THRESHOLD = 12_000;
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
44
|
+
// Compaction event log (in-memory, session-scoped)
|
|
45
|
+
// ---------------------------------------------------------------------------
|
|
46
|
+
const compactionEvents = [];
|
|
47
|
+
export function getCompactionEvents() {
|
|
48
|
+
return compactionEvents;
|
|
49
|
+
}
|
|
50
|
+
export function getLastCompactionEvent() {
|
|
51
|
+
return compactionEvents.length > 0
|
|
52
|
+
? compactionEvents[compactionEvents.length - 1]
|
|
53
|
+
: null;
|
|
54
|
+
}
|
|
55
|
+
// ---------------------------------------------------------------------------
|
|
56
|
+
// Token estimation
|
|
57
|
+
// ---------------------------------------------------------------------------
|
|
58
|
+
/** Rough token estimate: 4 chars ≈ 1 token. Used for threshold checks. */
|
|
59
|
+
export function estimateConversationTokens(messages) {
|
|
60
|
+
let total = 0;
|
|
61
|
+
for (const msg of messages) {
|
|
62
|
+
if (typeof msg.content === 'string') {
|
|
63
|
+
total += estimateTokens(msg.content);
|
|
64
|
+
}
|
|
65
|
+
else if (Array.isArray(msg.content)) {
|
|
66
|
+
for (const part of msg.content) {
|
|
67
|
+
if (part.type === 'text') {
|
|
68
|
+
total += estimateTokens(part.text);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return total;
|
|
74
|
+
}
|
|
75
|
+
export { estimateTokens } from './compaction-types.js';
|
|
76
|
+
// ---------------------------------------------------------------------------
|
|
77
|
+
// Should compact?
|
|
78
|
+
// ---------------------------------------------------------------------------
|
|
79
|
+
/**
|
|
80
|
+
* Returns true if the remaining context window is within COMPACTION_BUFFER_TOKENS
|
|
81
|
+
* and compaction has not already been triggered.
|
|
82
|
+
*
|
|
83
|
+
* Triggers when: contextWindow - currentTokens <= 15000
|
|
84
|
+
* The 15k buffer gives room for the ~6.5k compaction output + LLM extraction calls
|
|
85
|
+
* + post-compaction work before the window is exhausted.
|
|
86
|
+
*/
|
|
87
|
+
export function shouldAutoCompact(opts) {
|
|
88
|
+
const { currentTokens, contextWindow, isCompacting } = opts;
|
|
89
|
+
if (isCompacting || contextWindow <= 0)
|
|
90
|
+
return false;
|
|
91
|
+
return (contextWindow - currentTokens) <= COMPACTION_BUFFER_TOKENS;
|
|
92
|
+
}
|
|
93
|
+
// ---------------------------------------------------------------------------
|
|
94
|
+
// Small-window simplified compaction
|
|
95
|
+
// ---------------------------------------------------------------------------
|
|
96
|
+
/**
|
|
97
|
+
* Simplified compaction for context windows smaller than SMALL_WINDOW_THRESHOLD (12k).
|
|
98
|
+
* There isn't enough room for LLM extraction calls, so we just keep the last
|
|
99
|
+
* `keepRecent` messages and add a brief summary note.
|
|
100
|
+
*
|
|
101
|
+
* @param messages - Full conversation message array
|
|
102
|
+
* @param keepRecent - Number of recent messages to keep verbatim (default: 10)
|
|
103
|
+
* @returns Truncated message array with a summary pair prepended
|
|
104
|
+
*/
|
|
105
|
+
export function compactSmallWindow(messages, keepRecent = 10) {
|
|
106
|
+
if (messages.length <= keepRecent)
|
|
107
|
+
return messages;
|
|
108
|
+
const recentMessages = messages.slice(-keepRecent);
|
|
109
|
+
const omittedCount = messages.length - keepRecent;
|
|
110
|
+
const summaryMsg = {
|
|
111
|
+
role: 'user',
|
|
112
|
+
content: `[Context compacted — small window mode, ${omittedCount} messages summarized]`,
|
|
113
|
+
};
|
|
114
|
+
const summaryReply = {
|
|
115
|
+
role: 'assistant',
|
|
116
|
+
content: `[${omittedCount} earlier messages omitted to fit context window. Continuing from recent conversation.]`,
|
|
117
|
+
};
|
|
118
|
+
return [summaryMsg, summaryReply, ...recentMessages];
|
|
119
|
+
}
|
|
120
|
+
// ---------------------------------------------------------------------------
|
|
121
|
+
// LLM extraction helper
|
|
122
|
+
// ---------------------------------------------------------------------------
|
|
123
|
+
/**
|
|
124
|
+
* Call the LLM with a prompt and return the trimmed response text.
|
|
125
|
+
* Returns null on any failure (compaction should degrade gracefully).
|
|
126
|
+
*/
|
|
127
|
+
async function llmExtract(registry, modelId, providerName, prompt, label) {
|
|
128
|
+
if (!prompt.trim())
|
|
129
|
+
return null;
|
|
130
|
+
let provider;
|
|
131
|
+
try {
|
|
132
|
+
provider = registry.getForModel(modelId, providerName);
|
|
133
|
+
}
|
|
134
|
+
catch (err) {
|
|
135
|
+
logger.warn(`Compaction: failed to get provider for ${label}`, {
|
|
136
|
+
modelId,
|
|
137
|
+
err: summarizeError(err),
|
|
138
|
+
});
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
try {
|
|
142
|
+
const response = await provider.chat({
|
|
143
|
+
messages: [{ role: 'user', content: prompt }],
|
|
144
|
+
model: modelId,
|
|
145
|
+
});
|
|
146
|
+
const text = response.content?.trim() ?? '';
|
|
147
|
+
if (!text) {
|
|
148
|
+
logger.warn(`Compaction: LLM returned empty response for ${label}`);
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
return text;
|
|
152
|
+
}
|
|
153
|
+
catch (err) {
|
|
154
|
+
logger.warn(`Compaction: LLM extraction failed for ${label}`, {
|
|
155
|
+
err: summarizeError(err),
|
|
156
|
+
});
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
// Post-compaction validation
|
|
162
|
+
// ---------------------------------------------------------------------------
|
|
163
|
+
function validateCompaction(sections, ctx, totalTokens, config) {
|
|
164
|
+
const warnings = [];
|
|
165
|
+
const sectionIds = new Set(sections.map((s) => s.id));
|
|
166
|
+
if (!sectionIds.has('handoff-header')) {
|
|
167
|
+
warnings.push('CRITICAL: handoff-header section is missing');
|
|
168
|
+
}
|
|
169
|
+
if (!sectionIds.has('current-task')) {
|
|
170
|
+
warnings.push('WARNING: current-task section is missing');
|
|
171
|
+
}
|
|
172
|
+
const hasRunningAgents = ctx.agents.some((a) => a.status === 'running' || a.status === 'pending');
|
|
173
|
+
if (hasRunningAgents && !sectionIds.has('running-agents')) {
|
|
174
|
+
warnings.push('WARNING: running agents exist but running-agents section is missing');
|
|
175
|
+
}
|
|
176
|
+
if (ctx.sessionMemories.length > 0 && !sectionIds.has('session-memories')) {
|
|
177
|
+
warnings.push('WARNING: session memories exist but session-memories section is missing');
|
|
178
|
+
}
|
|
179
|
+
if (totalTokens > config.totalCeiling) {
|
|
180
|
+
warnings.push(`WARNING: total tokens (${totalTokens}) exceeds ceiling (${config.totalCeiling})`);
|
|
181
|
+
}
|
|
182
|
+
return warnings;
|
|
183
|
+
}
|
|
184
|
+
// ---------------------------------------------------------------------------
|
|
185
|
+
// Assemble compacted output
|
|
186
|
+
// ---------------------------------------------------------------------------
|
|
187
|
+
function assembleSections(sections) {
|
|
188
|
+
const parts = [];
|
|
189
|
+
for (const section of sections) {
|
|
190
|
+
if (section.header) {
|
|
191
|
+
parts.push(section.header);
|
|
192
|
+
}
|
|
193
|
+
parts.push(section.content);
|
|
194
|
+
parts.push(''); // blank line between sections
|
|
195
|
+
}
|
|
196
|
+
return parts.join('\n').trimEnd();
|
|
197
|
+
}
|
|
198
|
+
// ---------------------------------------------------------------------------
|
|
199
|
+
// Core compaction logic
|
|
200
|
+
// ---------------------------------------------------------------------------
|
|
201
|
+
/**
|
|
202
|
+
* compactMessages — structured compaction entry point.
|
|
203
|
+
*/
|
|
204
|
+
export async function compactMessages(ctx, registry) {
|
|
205
|
+
return runCompaction(ctx, registry);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* runCompaction — internal implementation for structured compaction.
|
|
209
|
+
*
|
|
210
|
+
* Accepts a CompactionContext containing all data sources. Makes targeted LLM
|
|
211
|
+
* calls for substance filtering and extraction (parallelized), assembles a
|
|
212
|
+
* structured handoff context, validates it, and returns a CompactionResult.
|
|
213
|
+
*/
|
|
214
|
+
async function runCompaction(ctx, registry) {
|
|
215
|
+
const config = DEFAULT_COMPACTION_CONFIG;
|
|
216
|
+
const tokensBeforeEstimate = estimateConversationTokens(ctx.messages);
|
|
217
|
+
logger.info('Context compaction: starting', {
|
|
218
|
+
trigger: ctx.trigger,
|
|
219
|
+
messageCount: ctx.messages.length,
|
|
220
|
+
tokensBeforeEstimate,
|
|
221
|
+
agentCount: ctx.agents.length,
|
|
222
|
+
chainCount: ctx.wrfcChains.length,
|
|
223
|
+
});
|
|
224
|
+
// ---------------------------------------------------------------------------
|
|
225
|
+
// Build rule-based sections (no LLM needed)
|
|
226
|
+
// ---------------------------------------------------------------------------
|
|
227
|
+
const sections = [];
|
|
228
|
+
// Handoff header (always present)
|
|
229
|
+
sections.push(buildHandoffHeader());
|
|
230
|
+
// Current task
|
|
231
|
+
const planTitle = ctx.activePlan?.title ?? null;
|
|
232
|
+
const lastUserMsg = (() => {
|
|
233
|
+
for (let i = ctx.messages.length - 1; i >= 0; i--) {
|
|
234
|
+
if (ctx.messages[i].role === 'user') {
|
|
235
|
+
const text = typeof ctx.messages[i].content === 'string'
|
|
236
|
+
? ctx.messages[i].content
|
|
237
|
+
: ctx.messages[i].content.filter((p) => p.type === 'text').map((p) => p.text).join('');
|
|
238
|
+
if (text.trim())
|
|
239
|
+
return text.trim();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return null;
|
|
243
|
+
})();
|
|
244
|
+
const currentTaskSection = buildCurrentTask(planTitle, lastUserMsg);
|
|
245
|
+
if (currentTaskSection)
|
|
246
|
+
sections.push(currentTaskSection);
|
|
247
|
+
// Session memories
|
|
248
|
+
const memoriesSection = buildSessionMemories([...ctx.sessionMemories]);
|
|
249
|
+
if (memoriesSection)
|
|
250
|
+
sections.push(memoriesSection);
|
|
251
|
+
// Running agents
|
|
252
|
+
const runningSection = buildRunningAgents(ctx.agents, ctx.wrfcChains);
|
|
253
|
+
if (runningSection)
|
|
254
|
+
sections.push(runningSection);
|
|
255
|
+
// Agent activity table (rule-based, needed before LLM calls to determine remaining)
|
|
256
|
+
const { section: activitySection, remainingChains } = buildAgentActivityTable(ctx.wrfcChains, config.agentActivityBudget);
|
|
257
|
+
if (activitySection)
|
|
258
|
+
sections.push(activitySection);
|
|
259
|
+
// ---------------------------------------------------------------------------
|
|
260
|
+
// Prepare all LLM-assisted prompts
|
|
261
|
+
// ---------------------------------------------------------------------------
|
|
262
|
+
const gatheredMessages = gatherRecentConversation(ctx.messages, config.recentConversationBudget);
|
|
263
|
+
const filterPrompt = gatheredMessages.length > 0
|
|
264
|
+
? buildConversationFilterPrompt(gatheredMessages)
|
|
265
|
+
: '';
|
|
266
|
+
const toolMessages = ctx.messages.filter((m) => m.role === 'tool');
|
|
267
|
+
const toolPrompt = toolMessages.length > 0
|
|
268
|
+
? buildToolResultsPrompt(toolMessages)
|
|
269
|
+
: '';
|
|
270
|
+
const olderPrompt = remainingChains.length > 0
|
|
271
|
+
? buildOlderAgentSummaryPrompt(remainingChains)
|
|
272
|
+
: '';
|
|
273
|
+
const allUserAssistant = ctx.messages.filter((m) => m.role === 'user' || m.role === 'assistant');
|
|
274
|
+
const problemsPrompt = allUserAssistant.length > 0
|
|
275
|
+
? buildResolvedProblemsPrompt(allUserAssistant)
|
|
276
|
+
: '';
|
|
277
|
+
// ---------------------------------------------------------------------------
|
|
278
|
+
// Parallelize all 4 independent LLM extraction calls
|
|
279
|
+
// ---------------------------------------------------------------------------
|
|
280
|
+
const [filteredText, toolSummary, olderSummary, problemsText] = await Promise.all([
|
|
281
|
+
llmExtract(registry, ctx.extractionModelId, ctx.extractionProvider, filterPrompt, 'conversation-filter'),
|
|
282
|
+
llmExtract(registry, ctx.extractionModelId, ctx.extractionProvider, toolPrompt, 'tool-results'),
|
|
283
|
+
llmExtract(registry, ctx.extractionModelId, ctx.extractionProvider, olderPrompt, 'older-agent-summary'),
|
|
284
|
+
llmExtract(registry, ctx.extractionModelId, ctx.extractionProvider, problemsPrompt, 'resolved-problems'),
|
|
285
|
+
]);
|
|
286
|
+
// ---------------------------------------------------------------------------
|
|
287
|
+
// Assemble LLM-assisted sections
|
|
288
|
+
// ---------------------------------------------------------------------------
|
|
289
|
+
// Recent conversation
|
|
290
|
+
if (gatheredMessages.length > 0) {
|
|
291
|
+
if (filteredText) {
|
|
292
|
+
sections.push({
|
|
293
|
+
id: 'recent-conversation',
|
|
294
|
+
header: '## Recent Conversation',
|
|
295
|
+
content: filteredText,
|
|
296
|
+
tokens: estimateTokens(filteredText),
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
// Fallback: include raw gathered messages if LLM filter fails
|
|
301
|
+
const fallbackLines = gatheredMessages.map((m) => {
|
|
302
|
+
const text = typeof m.content === 'string'
|
|
303
|
+
? m.content
|
|
304
|
+
: m.content
|
|
305
|
+
.filter((p) => p.type === 'text')
|
|
306
|
+
.map((p) => p.text)
|
|
307
|
+
.join('');
|
|
308
|
+
return `[${m.role}]: ${text.trim()}`;
|
|
309
|
+
});
|
|
310
|
+
const fallbackContent = fallbackLines.join('\n\n');
|
|
311
|
+
sections.push({
|
|
312
|
+
id: 'recent-conversation',
|
|
313
|
+
header: '## Recent Conversation',
|
|
314
|
+
content: fallbackContent,
|
|
315
|
+
tokens: estimateTokens(fallbackContent),
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
// Tool results
|
|
320
|
+
if (toolSummary) {
|
|
321
|
+
sections.push({
|
|
322
|
+
id: 'tool-results',
|
|
323
|
+
header: '## Tool Results & Files Modified',
|
|
324
|
+
content: toolSummary,
|
|
325
|
+
tokens: estimateTokens(toolSummary),
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
// Older agent summary
|
|
329
|
+
if (olderSummary) {
|
|
330
|
+
sections.push({
|
|
331
|
+
id: 'older-agent-summary',
|
|
332
|
+
header: '## Older Work Summary',
|
|
333
|
+
content: olderSummary,
|
|
334
|
+
tokens: estimateTokens(olderSummary),
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
// Resolved problems
|
|
338
|
+
if (problemsText && problemsText.toLowerCase().trim() !== 'empty'
|
|
339
|
+
&& !problemsText.toLowerCase().includes('no resolved problems')) {
|
|
340
|
+
sections.push({
|
|
341
|
+
id: 'resolved-problems',
|
|
342
|
+
header: '## Resolved Problems',
|
|
343
|
+
content: problemsText,
|
|
344
|
+
tokens: estimateTokens(problemsText),
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
// Plan progress (rule-based)
|
|
348
|
+
const planSection = buildPlanProgress(ctx.activePlan);
|
|
349
|
+
if (planSection)
|
|
350
|
+
sections.push(planSection);
|
|
351
|
+
// Session lineage (rule-based, append-only)
|
|
352
|
+
const lineageSection = buildSessionLineage(ctx.originalTask ?? lastUserMsg ?? undefined, ctx.lineageEntries, ctx.compactionCount);
|
|
353
|
+
if (lineageSection)
|
|
354
|
+
sections.push(lineageSection);
|
|
355
|
+
// ---------------------------------------------------------------------------
|
|
356
|
+
// Assemble and validate
|
|
357
|
+
// ---------------------------------------------------------------------------
|
|
358
|
+
const compactedText = assembleSections(sections);
|
|
359
|
+
const totalTokens = sections.reduce((sum, s) => sum + s.tokens, 0);
|
|
360
|
+
const validationWarnings = validateCompaction(sections, ctx, totalTokens, config);
|
|
361
|
+
if (validationWarnings.length > 0) {
|
|
362
|
+
logger.warn('Context compaction: validation warnings', { warnings: validationWarnings });
|
|
363
|
+
}
|
|
364
|
+
// Build the new message list: a single user message containing the compacted context
|
|
365
|
+
const newMessages = [
|
|
366
|
+
{
|
|
367
|
+
role: 'user',
|
|
368
|
+
content: compactedText,
|
|
369
|
+
},
|
|
370
|
+
];
|
|
371
|
+
const tokensAfterEstimate = estimateConversationTokens(newMessages);
|
|
372
|
+
const event = {
|
|
373
|
+
timestamp: Date.now(),
|
|
374
|
+
messagesBeforeCompaction: ctx.messages.length,
|
|
375
|
+
messagesAfterCompaction: newMessages.length,
|
|
376
|
+
tokensBeforeEstimate,
|
|
377
|
+
tokensAfterEstimate,
|
|
378
|
+
modelId: ctx.extractionModelId,
|
|
379
|
+
trigger: ctx.trigger,
|
|
380
|
+
sectionsIncluded: sections.map((s) => s.id),
|
|
381
|
+
validationPassed: validationWarnings.length === 0,
|
|
382
|
+
};
|
|
383
|
+
compactionEvents.push(event);
|
|
384
|
+
if (compactionEvents.length > 50)
|
|
385
|
+
compactionEvents.shift();
|
|
386
|
+
logger.info('Context compaction: complete', {
|
|
387
|
+
trigger: ctx.trigger,
|
|
388
|
+
modelId: ctx.extractionModelId,
|
|
389
|
+
messagesBeforeCompaction: event.messagesBeforeCompaction,
|
|
390
|
+
messagesAfterCompaction: event.messagesAfterCompaction,
|
|
391
|
+
tokensBeforeEstimate: event.tokensBeforeEstimate,
|
|
392
|
+
tokensAfterEstimate: event.tokensAfterEstimate,
|
|
393
|
+
tokensSaved: event.tokensBeforeEstimate - event.tokensAfterEstimate,
|
|
394
|
+
sectionsIncluded: event.sectionsIncluded,
|
|
395
|
+
validationWarnings: validationWarnings.length,
|
|
396
|
+
});
|
|
397
|
+
return {
|
|
398
|
+
messages: newMessages,
|
|
399
|
+
summary: compactedText,
|
|
400
|
+
tokensBeforeEstimate,
|
|
401
|
+
tokensAfterEstimate,
|
|
402
|
+
event,
|
|
403
|
+
sections,
|
|
404
|
+
validationWarnings,
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
// ---------------------------------------------------------------------------
|
|
408
|
+
// checkAndCompact
|
|
409
|
+
// ---------------------------------------------------------------------------
|
|
410
|
+
/**
|
|
411
|
+
* checkAndCompact — Check if context usage exceeds threshold and compact if so.
|
|
412
|
+
* Returns the compaction result if compaction was performed, null otherwise.
|
|
413
|
+
*
|
|
414
|
+
*/
|
|
415
|
+
export async function checkAndCompact(autoOpts, ctx, registry) {
|
|
416
|
+
if (!shouldAutoCompact(autoOpts))
|
|
417
|
+
return null;
|
|
418
|
+
return compactMessages({ ...ctx, trigger: 'auto' }, registry);
|
|
419
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProviderMessage } from '../providers/interface.js';
|
|
2
|
+
import type { ProviderRegistry } from '../providers/registry.js';
|
|
3
|
+
import type { CompactionContext } from './context-compaction.js';
|
|
4
|
+
import type { SessionMemoryStore } from '@pellux/goodvibes-sdk/platform/core/session-memory';
|
|
5
|
+
import type { SessionLineageTracker } from '@pellux/goodvibes-sdk/platform/core/session-lineage';
|
|
6
|
+
export interface ConversationCompactionHost {
|
|
7
|
+
getMessageCount(): number;
|
|
8
|
+
getMessagesForLLM(): ProviderMessage[];
|
|
9
|
+
replaceMessagesForLLM(newMessages: ProviderMessage[]): void;
|
|
10
|
+
getSessionMemoryStore(): Pick<SessionMemoryStore, 'list'> | null;
|
|
11
|
+
getSessionLineageTracker(): Pick<SessionLineageTracker, 'addCompactionEntry'>;
|
|
12
|
+
}
|
|
13
|
+
export declare function compactConversation(host: ConversationCompactionHost, registry: ProviderRegistry, modelId: string, trigger?: 'auto' | 'manual', provider?: string, context?: CompactionContext): Promise<void>;
|
|
14
|
+
//# sourceMappingURL=conversation-compaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-compaction.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/core/conversation-compaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAGjG,MAAM,WAAW,0BAA0B;IACzC,eAAe,IAAI,MAAM,CAAC;IAC1B,iBAAiB,IAAI,eAAe,EAAE,CAAC;IACvC,qBAAqB,CAAC,WAAW,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAC5D,qBAAqB,IAAI,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACjE,wBAAwB,IAAI,IAAI,CAAC,qBAAqB,EAAE,oBAAoB,CAAC,CAAC;CAC/E;AAED,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,0BAA0B,EAChC,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,MAAM,GAAG,QAAmB,EACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,IAAI,CAAC,CA2Cf"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils/logger';
|
|
2
|
+
import { compactMessages } from './context-compaction.js';
|
|
3
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils/error-display';
|
|
4
|
+
export async function compactConversation(host, registry, modelId, trigger = 'manual', provider, context) {
|
|
5
|
+
if (host.getMessageCount() === 0)
|
|
6
|
+
return;
|
|
7
|
+
try {
|
|
8
|
+
const llmMessages = host.getMessagesForLLM();
|
|
9
|
+
const compactionContext = context ?? {
|
|
10
|
+
messages: llmMessages,
|
|
11
|
+
trigger,
|
|
12
|
+
extractionModelId: modelId,
|
|
13
|
+
extractionProvider: provider,
|
|
14
|
+
sessionMemories: [],
|
|
15
|
+
agents: [],
|
|
16
|
+
wrfcChains: [],
|
|
17
|
+
activePlan: null,
|
|
18
|
+
lineageEntries: [],
|
|
19
|
+
compactionCount: 0,
|
|
20
|
+
contextWindow: 0,
|
|
21
|
+
};
|
|
22
|
+
const result = await compactMessages(compactionContext, registry);
|
|
23
|
+
host.replaceMessagesForLLM(result.messages);
|
|
24
|
+
const memoriesCount = host.getSessionMemoryStore()?.list().length ?? 0;
|
|
25
|
+
const memoriesPart = memoriesCount > 0 ? `, ${memoriesCount} pinned memories` : '';
|
|
26
|
+
const saved = result.tokensBeforeEstimate - result.tokensAfterEstimate;
|
|
27
|
+
const savedKTokens = Math.round(saved / 1000);
|
|
28
|
+
host.getSessionLineageTracker().addCompactionEntry(`${trigger} compact, saved ~${savedKTokens}K tokens${memoriesPart}.`);
|
|
29
|
+
logger.info('Conversation compacted', {
|
|
30
|
+
trigger,
|
|
31
|
+
messagesBeforeCompaction: result.event.messagesBeforeCompaction,
|
|
32
|
+
messagesAfterCompaction: result.event.messagesAfterCompaction,
|
|
33
|
+
tokensBeforeEstimate: result.tokensBeforeEstimate,
|
|
34
|
+
tokensAfterEstimate: result.tokensAfterEstimate,
|
|
35
|
+
tokensSaved: saved,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
catch (err) {
|
|
39
|
+
const msg = summarizeError(err);
|
|
40
|
+
logger.error('Compact failed', { error: msg });
|
|
41
|
+
throw err;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BlockMeta } from './conversation.js';
|
|
2
|
+
export declare function parseDiffForApply(diffText: string): Pick<BlockMeta, 'filePath' | 'diffOriginal' | 'diffUpdated'>;
|
|
3
|
+
export declare function applyDiffContent(fileContent: string, original: string, updated: string): {
|
|
4
|
+
ok: true;
|
|
5
|
+
content: string;
|
|
6
|
+
} | {
|
|
7
|
+
ok: false;
|
|
8
|
+
error: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=conversation-diff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-diff.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/core/conversation-diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC,CAkChH;AAED,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAY9D"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export function parseDiffForApply(diffText) {
|
|
2
|
+
const lines = diffText.split('\n');
|
|
3
|
+
let filePath;
|
|
4
|
+
for (const line of lines) {
|
|
5
|
+
if (line.startsWith('+++ ')) {
|
|
6
|
+
const raw = line.slice(4).trim();
|
|
7
|
+
const path = raw.startsWith('b/') ? raw.slice(2) : raw.split(' ')[0];
|
|
8
|
+
if (path && path !== '/dev/null')
|
|
9
|
+
filePath = path;
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const originalLines = [];
|
|
14
|
+
const updatedLines = [];
|
|
15
|
+
for (const line of lines) {
|
|
16
|
+
if (line.startsWith('---') || line.startsWith('+++') || line.startsWith('@@'))
|
|
17
|
+
continue;
|
|
18
|
+
if (line.startsWith('-')) {
|
|
19
|
+
originalLines.push(line.slice(1));
|
|
20
|
+
}
|
|
21
|
+
else if (line.startsWith('+')) {
|
|
22
|
+
updatedLines.push(line.slice(1));
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
const content = line.startsWith(' ') ? line.slice(1) : line;
|
|
26
|
+
originalLines.push(content);
|
|
27
|
+
updatedLines.push(content);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
filePath,
|
|
32
|
+
diffOriginal: originalLines.join('\n'),
|
|
33
|
+
diffUpdated: updatedLines.join('\n'),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function applyDiffContent(fileContent, original, updated) {
|
|
37
|
+
if (!original) {
|
|
38
|
+
return { ok: false, error: 'empty original pattern' };
|
|
39
|
+
}
|
|
40
|
+
if (!fileContent.includes(original)) {
|
|
41
|
+
return { ok: false, error: 'original text not found in file' };
|
|
42
|
+
}
|
|
43
|
+
const occurrenceCount = fileContent.split(original).length - 1;
|
|
44
|
+
if (occurrenceCount > 1) {
|
|
45
|
+
return { ok: false, error: `ambiguous: pattern found ${occurrenceCount} times` };
|
|
46
|
+
}
|
|
47
|
+
return { ok: true, content: fileContent.replace(original, updated) };
|
|
48
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ContentPart, ProviderMessage } from '../providers/interface.js';
|
|
2
|
+
import type { ConversationMessageSnapshot } from './conversation.js';
|
|
3
|
+
type Message = ConversationMessageSnapshot;
|
|
4
|
+
export declare function cloneMessages(messages: Message[]): Message[];
|
|
5
|
+
export declare function messagesToInternal(messages: ProviderMessage[]): Message[];
|
|
6
|
+
export declare function cloneBranchMap(branches: Map<string, Message[]>): Record<string, Message[]>;
|
|
7
|
+
export declare function restoreBranchMap(branches?: Record<string, Message[]>): Map<string, Message[]>;
|
|
8
|
+
export declare function deriveConversationTitle(content: string): string;
|
|
9
|
+
export declare function extractUserDisplayText(content: string | ContentPart[]): string;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=conversation-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-utils.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/core/conversation-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,KAAK,OAAO,GAAG,2BAA2B,CAAC;AAE3C,wBAAgB,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAE5D;AA8BD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,CAEzE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAM1F;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAO7F;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,EAAE,GAAG,MAAM,CAK9E"}
|