@zhin.js/agent 1.1.30 → 1.1.32
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/README.md +5 -20
- package/lib/config/deprecated-agent-binding-keys.d.ts +21 -0
- package/lib/config/deprecated-agent-binding-keys.d.ts.map +1 -0
- package/lib/config/deprecated-agent-binding-keys.js +37 -0
- package/lib/config/deprecated-agent-binding-keys.js.map +1 -0
- package/lib/config/deprecated-agent-keys.d.ts +16 -0
- package/lib/config/deprecated-agent-keys.d.ts.map +1 -0
- package/lib/config/deprecated-agent-keys.js +23 -0
- package/lib/config/deprecated-agent-keys.js.map +1 -0
- package/lib/config/fix-ai-config.d.ts.map +1 -1
- package/lib/config/fix-ai-config.js +16 -20
- package/lib/config/fix-ai-config.js.map +1 -1
- package/lib/config/index.d.ts +4 -1
- package/lib/config/index.d.ts.map +1 -1
- package/lib/config/index.js +3 -1
- package/lib/config/index.js.map +1 -1
- package/lib/config/model-harness-runtime.d.ts.map +1 -1
- package/lib/config/model-harness-runtime.js +47 -5
- package/lib/config/model-harness-runtime.js.map +1 -1
- package/lib/config/model-harness.d.ts +30 -0
- package/lib/config/model-harness.d.ts.map +1 -1
- package/lib/config/normalize-ai-config.d.ts.map +1 -1
- package/lib/config/normalize-ai-config.js +10 -2
- package/lib/config/normalize-ai-config.js.map +1 -1
- package/lib/config/perception-config.d.ts +36 -0
- package/lib/config/perception-config.d.ts.map +1 -0
- package/lib/config/perception-config.js +55 -0
- package/lib/config/perception-config.js.map +1 -0
- package/lib/config/types.d.ts +13 -1
- package/lib/config/types.d.ts.map +1 -1
- package/lib/config/types.js.map +1 -1
- package/lib/config/validate-ai-config.d.ts.map +1 -1
- package/lib/config/validate-ai-config.js +0 -19
- package/lib/config/validate-ai-config.js.map +1 -1
- package/lib/config/zhin-agent-config.d.ts +36 -1
- package/lib/config/zhin-agent-config.d.ts.map +1 -1
- package/lib/config/zhin-agent-defaults.d.ts.map +1 -1
- package/lib/config/zhin-agent-defaults.js +7 -4
- package/lib/config/zhin-agent-defaults.js.map +1 -1
- package/lib/config/zhin-agent-dependencies.d.ts +5 -0
- package/lib/config/zhin-agent-dependencies.d.ts.map +1 -1
- package/lib/context/context-system.d.ts +4 -0
- package/lib/context/context-system.d.ts.map +1 -1
- package/lib/context/context-system.js +2 -0
- package/lib/context/context-system.js.map +1 -1
- package/lib/context/model-resolver.d.ts +1 -0
- package/lib/context/model-resolver.d.ts.map +1 -1
- package/lib/context/model-resolver.js +4 -1
- package/lib/context/model-resolver.js.map +1 -1
- package/lib/context/turn-envelope.d.ts +4 -0
- package/lib/context/turn-envelope.d.ts.map +1 -1
- package/lib/context/turn-envelope.js +4 -0
- package/lib/context/turn-envelope.js.map +1 -1
- package/lib/core/agent-core-run.d.ts +22 -1
- package/lib/core/agent-core-run.d.ts.map +1 -1
- package/lib/core/agent-core-run.js +363 -51
- package/lib/core/agent-core-run.js.map +1 -1
- package/lib/core/agent-core.d.ts +5 -0
- package/lib/core/agent-core.d.ts.map +1 -1
- package/lib/core/agent-core.js +5 -0
- package/lib/core/agent-core.js.map +1 -1
- package/lib/core/agent-loop-standalone.d.ts +6 -0
- package/lib/core/agent-loop-standalone.d.ts.map +1 -1
- package/lib/core/agent-loop-standalone.js +7 -2
- package/lib/core/agent-loop-standalone.js.map +1 -1
- package/lib/core/agent-loop-turn.d.ts +5 -0
- package/lib/core/agent-loop-turn.d.ts.map +1 -1
- package/lib/core/agent-loop-turn.js +5 -0
- package/lib/core/agent-loop-turn.js.map +1 -1
- package/lib/core/contracts.d.ts +1 -1
- package/lib/core/contracts.js +1 -1
- package/lib/core/exhausted-turn-reply.d.ts +33 -0
- package/lib/core/exhausted-turn-reply.d.ts.map +1 -0
- package/lib/core/exhausted-turn-reply.js +54 -0
- package/lib/core/exhausted-turn-reply.js.map +1 -0
- package/lib/core/exploration-budget.d.ts +17 -0
- package/lib/core/exploration-budget.d.ts.map +1 -0
- package/lib/core/exploration-budget.js +41 -0
- package/lib/core/exploration-budget.js.map +1 -0
- package/lib/core/index.d.ts +3 -0
- package/lib/core/index.d.ts.map +1 -1
- package/lib/core/index.js +2 -0
- package/lib/core/index.js.map +1 -1
- package/lib/core/missing-tool-resolver.d.ts +17 -0
- package/lib/core/missing-tool-resolver.d.ts.map +1 -0
- package/lib/core/missing-tool-resolver.js +21 -0
- package/lib/core/missing-tool-resolver.js.map +1 -0
- package/lib/core/progress-reporter.d.ts +46 -0
- package/lib/core/progress-reporter.d.ts.map +1 -0
- package/lib/core/progress-reporter.js +100 -0
- package/lib/core/progress-reporter.js.map +1 -0
- package/lib/core/tool-calls-user-format.d.ts +5 -0
- package/lib/core/tool-calls-user-format.d.ts.map +1 -1
- package/lib/core/tool-calls-user-format.js +23 -3
- package/lib/core/tool-calls-user-format.js.map +1 -1
- package/lib/core/turn-event-mapper.d.ts.map +1 -1
- package/lib/core/turn-event-mapper.js +2 -0
- package/lib/core/turn-event-mapper.js.map +1 -1
- package/lib/core/turn-progress.d.ts +75 -0
- package/lib/core/turn-progress.d.ts.map +1 -0
- package/lib/core/turn-progress.js +152 -0
- package/lib/core/turn-progress.js.map +1 -0
- package/lib/deferred-worker-runner.d.ts +6 -0
- package/lib/deferred-worker-runner.d.ts.map +1 -1
- package/lib/deferred-worker-runner.js +4 -0
- package/lib/deferred-worker-runner.js.map +1 -1
- package/lib/detached-task/index.d.ts +6 -0
- package/lib/detached-task/index.d.ts.map +1 -0
- package/lib/detached-task/index.js +6 -0
- package/lib/detached-task/index.js.map +1 -0
- package/lib/detached-task/interjection.d.ts +28 -0
- package/lib/detached-task/interjection.d.ts.map +1 -0
- package/lib/detached-task/interjection.js +128 -0
- package/lib/detached-task/interjection.js.map +1 -0
- package/lib/detached-task/runner.d.ts +89 -0
- package/lib/detached-task/runner.d.ts.map +1 -0
- package/lib/detached-task/runner.js +334 -0
- package/lib/detached-task/runner.js.map +1 -0
- package/lib/detached-task/store.d.ts +21 -0
- package/lib/detached-task/store.d.ts.map +1 -0
- package/lib/detached-task/store.js +63 -0
- package/lib/detached-task/store.js.map +1 -0
- package/lib/detached-task/token.d.ts +8 -0
- package/lib/detached-task/token.d.ts.map +1 -0
- package/lib/detached-task/token.js +8 -0
- package/lib/detached-task/token.js.map +1 -0
- package/lib/detached-task/types.d.ts +104 -0
- package/lib/detached-task/types.d.ts.map +1 -0
- package/lib/detached-task/types.js +43 -0
- package/lib/detached-task/types.js.map +1 -0
- package/lib/event/turn-event.d.ts +11 -0
- package/lib/event/turn-event.d.ts.map +1 -1
- package/lib/event/turn-event.js.map +1 -1
- package/lib/index.d.ts +5 -87
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -85
- package/lib/index.js.map +1 -1
- package/lib/init/activate-ai-database-storage.d.ts +1 -3
- package/lib/init/activate-ai-database-storage.d.ts.map +1 -1
- package/lib/init/activate-ai-database-storage.js +13 -18
- package/lib/init/activate-ai-database-storage.js.map +1 -1
- package/lib/init/configure-zhin-agent.d.ts +1 -1
- package/lib/init/configure-zhin-agent.d.ts.map +1 -1
- package/lib/init/configure-zhin-agent.js +4 -0
- package/lib/init/configure-zhin-agent.js.map +1 -1
- package/lib/init/define-ai-database-models.d.ts +1 -1
- package/lib/init/define-ai-database-models.d.ts.map +1 -1
- package/lib/init/define-ai-database-models.js +1 -21
- package/lib/init/define-ai-database-models.js.map +1 -1
- package/lib/init/runtime-management-commands.d.ts +8 -0
- package/lib/init/runtime-management-commands.d.ts.map +1 -1
- package/lib/init/runtime-management-commands.js +38 -0
- package/lib/init/runtime-management-commands.js.map +1 -1
- package/lib/internal/agent-host.d.ts +11 -0
- package/lib/internal/agent-host.d.ts.map +1 -1
- package/lib/media/index.d.ts +1 -0
- package/lib/media/index.d.ts.map +1 -1
- package/lib/media/index.js +1 -0
- package/lib/media/index.js.map +1 -1
- package/lib/media/perception.d.ts +47 -0
- package/lib/media/perception.d.ts.map +1 -0
- package/lib/media/perception.js +136 -0
- package/lib/media/perception.js.map +1 -0
- package/lib/memory/compaction-runtime.d.ts +13 -0
- package/lib/memory/compaction-runtime.d.ts.map +1 -1
- package/lib/memory/compaction-runtime.js +25 -3
- package/lib/memory/compaction-runtime.js.map +1 -1
- package/lib/memory/index.d.ts +2 -0
- package/lib/memory/index.d.ts.map +1 -1
- package/lib/memory/index.js +1 -0
- package/lib/memory/index.js.map +1 -1
- package/lib/memory/memory-write-policy.d.ts +39 -0
- package/lib/memory/memory-write-policy.d.ts.map +1 -0
- package/lib/memory/memory-write-policy.js +44 -0
- package/lib/memory/memory-write-policy.js.map +1 -0
- package/lib/memory/semantic-recall.d.ts +44 -0
- package/lib/memory/semantic-recall.d.ts.map +1 -0
- package/lib/memory/semantic-recall.js +69 -0
- package/lib/memory/semantic-recall.js.map +1 -0
- package/lib/memory/told-ledger.d.ts +54 -0
- package/lib/memory/told-ledger.d.ts.map +1 -0
- package/lib/memory/told-ledger.js +119 -0
- package/lib/memory/told-ledger.js.map +1 -0
- package/lib/plugin-runtime/agent-host-port.d.ts +0 -102
- package/lib/plugin-runtime/agent-host-port.d.ts.map +1 -1
- package/lib/plugin-runtime/agent-host-port.js.map +1 -1
- package/lib/plugin-runtime/agent-runtime.d.ts +3 -0
- package/lib/plugin-runtime/agent-runtime.d.ts.map +1 -1
- package/lib/plugin-runtime/agent-runtime.js +42 -10
- package/lib/plugin-runtime/agent-runtime.js.map +1 -1
- package/lib/plugin-runtime/agent-trace-runtime.d.ts +5 -0
- package/lib/plugin-runtime/agent-trace-runtime.d.ts.map +1 -1
- package/lib/plugin-runtime/agent-trace-runtime.js +7 -0
- package/lib/plugin-runtime/agent-trace-runtime.js.map +1 -1
- package/lib/plugin-runtime/deferred-capability-plan.d.ts +27 -24
- package/lib/plugin-runtime/deferred-capability-plan.d.ts.map +1 -1
- package/lib/plugin-runtime/deferred-capability-plan.js +52 -82
- package/lib/plugin-runtime/deferred-capability-plan.js.map +1 -1
- package/lib/plugin-runtime/file-search-scope.d.ts +22 -0
- package/lib/plugin-runtime/file-search-scope.d.ts.map +1 -0
- package/lib/plugin-runtime/file-search-scope.js +129 -0
- package/lib/plugin-runtime/file-search-scope.js.map +1 -0
- package/lib/plugin-runtime/full-agent-turn-engine.d.ts.map +1 -1
- package/lib/plugin-runtime/full-agent-turn-engine.js +177 -21
- package/lib/plugin-runtime/full-agent-turn-engine.js.map +1 -1
- package/lib/plugin-runtime/index.d.ts +0 -78
- package/lib/plugin-runtime/index.d.ts.map +1 -1
- package/lib/plugin-runtime/index.js +0 -77
- package/lib/plugin-runtime/index.js.map +1 -1
- package/lib/plugin-runtime/native-bash-tool.d.ts +12 -0
- package/lib/plugin-runtime/native-bash-tool.d.ts.map +1 -1
- package/lib/plugin-runtime/native-bash-tool.js +32 -8
- package/lib/plugin-runtime/native-bash-tool.js.map +1 -1
- package/lib/plugin-runtime/native-file-tools.d.ts.map +1 -1
- package/lib/plugin-runtime/native-file-tools.js +120 -51
- package/lib/plugin-runtime/native-file-tools.js.map +1 -1
- package/lib/plugin-runtime/native-semantic-memory-tools.d.ts +27 -1
- package/lib/plugin-runtime/native-semantic-memory-tools.d.ts.map +1 -1
- package/lib/plugin-runtime/native-semantic-memory-tools.js +87 -9
- package/lib/plugin-runtime/native-semantic-memory-tools.js.map +1 -1
- package/lib/plugin-runtime/subagent-turn-capability.d.ts +32 -0
- package/lib/plugin-runtime/subagent-turn-capability.d.ts.map +1 -0
- package/lib/plugin-runtime/subagent-turn-capability.js +168 -0
- package/lib/plugin-runtime/subagent-turn-capability.js.map +1 -0
- package/lib/prompt/estimate-tokens.d.ts +7 -0
- package/lib/prompt/estimate-tokens.d.ts.map +1 -0
- package/lib/prompt/estimate-tokens.js +12 -0
- package/lib/prompt/estimate-tokens.js.map +1 -0
- package/lib/prompt/system-prompt.d.ts +2 -0
- package/lib/prompt/system-prompt.d.ts.map +1 -1
- package/lib/prompt/system-prompt.js +13 -2
- package/lib/prompt/system-prompt.js.map +1 -1
- package/lib/routing/subagent-summarize.d.ts +1 -1
- package/lib/routing/subagent-summarize.d.ts.map +1 -1
- package/lib/routing/subagent-summarize.js +2 -2
- package/lib/routing/subagent-summarize.js.map +1 -1
- package/lib/security/file-role-policy.d.ts +4 -2
- package/lib/security/file-role-policy.d.ts.map +1 -1
- package/lib/security/file-role-policy.js +21 -9
- package/lib/security/file-role-policy.js.map +1 -1
- package/lib/security/outbound-leak-guard.d.ts +61 -0
- package/lib/security/outbound-leak-guard.d.ts.map +1 -0
- package/lib/security/outbound-leak-guard.js +145 -0
- package/lib/security/outbound-leak-guard.js.map +1 -0
- package/lib/security/policy-facade.d.ts.map +1 -1
- package/lib/security/policy-facade.js +9 -0
- package/lib/security/policy-facade.js.map +1 -1
- package/lib/security/policy-narrowing.d.ts +12 -0
- package/lib/security/policy-narrowing.d.ts.map +1 -0
- package/lib/security/policy-narrowing.js +38 -0
- package/lib/security/policy-narrowing.js.map +1 -0
- package/lib/security/provenance.d.ts +65 -0
- package/lib/security/provenance.d.ts.map +1 -0
- package/lib/security/provenance.js +112 -0
- package/lib/security/provenance.js.map +1 -0
- package/lib/security/trust-level.d.ts +76 -0
- package/lib/security/trust-level.d.ts.map +1 -0
- package/lib/security/trust-level.js +87 -0
- package/lib/security/trust-level.js.map +1 -0
- package/lib/security/usage-quota.d.ts +73 -0
- package/lib/security/usage-quota.d.ts.map +1 -0
- package/lib/security/usage-quota.js +123 -0
- package/lib/security/usage-quota.js.map +1 -0
- package/lib/service.d.ts +4 -0
- package/lib/service.d.ts.map +1 -1
- package/lib/service.js +16 -1
- package/lib/service.js.map +1 -1
- package/lib/session/approval-port.d.ts +26 -0
- package/lib/session/approval-port.d.ts.map +1 -1
- package/lib/session/approval-port.js +36 -0
- package/lib/session/approval-port.js.map +1 -1
- package/lib/session/approval-review-agent.d.ts +2 -2
- package/lib/session/approval-review-agent.d.ts.map +1 -1
- package/lib/session/approval-review-agent.js +57 -39
- package/lib/session/approval-review-agent.js.map +1 -1
- package/lib/session/session-io.d.ts.map +1 -1
- package/lib/session/session-io.js +1 -0
- package/lib/session/session-io.js.map +1 -1
- package/lib/session/turn-ingress-session.d.ts.map +1 -1
- package/lib/session/turn-ingress-session.js +1 -0
- package/lib/session/turn-ingress-session.js.map +1 -1
- package/lib/skill/capability-catalog.d.ts +27 -0
- package/lib/skill/capability-catalog.d.ts.map +1 -0
- package/lib/skill/capability-catalog.js +70 -0
- package/lib/skill/capability-catalog.js.map +1 -0
- package/lib/tool/deferred-resolution.d.ts.map +1 -1
- package/lib/tool/deferred-resolution.js +2 -1
- package/lib/tool/deferred-resolution.js.map +1 -1
- package/lib/tool/turn-tool-runtime.d.ts +13 -1
- package/lib/tool/turn-tool-runtime.d.ts.map +1 -1
- package/lib/tool/turn-tool-runtime.js +81 -7
- package/lib/tool/turn-tool-runtime.js.map +1 -1
- package/lib/tool-catalog/deferred-turn-controller.d.ts +4 -0
- package/lib/tool-catalog/deferred-turn-controller.d.ts.map +1 -1
- package/lib/tool-catalog/deferred-turn-controller.js +13 -3
- package/lib/tool-catalog/deferred-turn-controller.js.map +1 -1
- package/lib/tool-catalog/resolve-config.d.ts.map +1 -1
- package/lib/tool-catalog/resolve-config.js +5 -1
- package/lib/tool-catalog/resolve-config.js.map +1 -1
- package/lib/tool-catalog/types.d.ts +14 -1
- package/lib/tool-catalog/types.d.ts.map +1 -1
- package/lib/tool-catalog/types.js +15 -0
- package/lib/tool-catalog/types.js.map +1 -1
- package/lib/trace/context-budget.d.ts +56 -0
- package/lib/trace/context-budget.d.ts.map +1 -0
- package/lib/trace/context-budget.js +102 -0
- package/lib/trace/context-budget.js.map +1 -0
- package/lib/trace/index.d.ts +12 -0
- package/lib/trace/index.d.ts.map +1 -0
- package/lib/trace/index.js +7 -0
- package/lib/trace/index.js.map +1 -0
- package/lib/trace/turn-trace-archive.d.ts +49 -0
- package/lib/trace/turn-trace-archive.d.ts.map +1 -0
- package/lib/trace/turn-trace-archive.js +208 -0
- package/lib/trace/turn-trace-archive.js.map +1 -0
- package/lib/trace/turn-trace-format.d.ts +10 -0
- package/lib/trace/turn-trace-format.d.ts.map +1 -0
- package/lib/trace/turn-trace-format.js +132 -0
- package/lib/trace/turn-trace-format.js.map +1 -0
- package/lib/trace/turn-trace-registry.d.ts +30 -0
- package/lib/trace/turn-trace-registry.d.ts.map +1 -0
- package/lib/trace/turn-trace-registry.js +62 -0
- package/lib/trace/turn-trace-registry.js.map +1 -0
- package/lib/trace/turn-trace-store.d.ts +15 -0
- package/lib/trace/turn-trace-store.d.ts.map +1 -0
- package/lib/trace/turn-trace-store.js +67 -0
- package/lib/trace/turn-trace-store.js.map +1 -0
- package/lib/trace/turn-trace.d.ts +147 -0
- package/lib/trace/turn-trace.d.ts.map +1 -0
- package/lib/trace/turn-trace.js +341 -0
- package/lib/trace/turn-trace.js.map +1 -0
- package/lib/turn/execute-agent-turn.d.ts.map +1 -1
- package/lib/turn/execute-agent-turn.js +21 -10
- package/lib/turn/execute-agent-turn.js.map +1 -1
- package/lib/turn/inbound-media.d.ts +15 -0
- package/lib/turn/inbound-media.d.ts.map +1 -1
- package/lib/turn/inbound-media.js +41 -1
- package/lib/turn/inbound-media.js.map +1 -1
- package/lib/turn/inbound-queue-config.d.ts +1 -0
- package/lib/turn/inbound-queue-config.d.ts.map +1 -1
- package/lib/turn/inbound-queue-config.js +9 -1
- package/lib/turn/inbound-queue-config.js.map +1 -1
- package/lib/turn/index.d.ts +5 -0
- package/lib/turn/index.d.ts.map +1 -1
- package/lib/turn/index.js +4 -0
- package/lib/turn/index.js.map +1 -1
- package/lib/turn/journal-feed.d.ts +31 -0
- package/lib/turn/journal-feed.d.ts.map +1 -0
- package/lib/turn/journal-feed.js +43 -0
- package/lib/turn/journal-feed.js.map +1 -0
- package/lib/turn/turn-admission-gate.d.ts +62 -0
- package/lib/turn/turn-admission-gate.d.ts.map +1 -0
- package/lib/turn/turn-admission-gate.js +194 -0
- package/lib/turn/turn-admission-gate.js.map +1 -0
- package/lib/turn/turn-ingress.d.ts +4 -0
- package/lib/turn/turn-ingress.d.ts.map +1 -1
- package/lib/turn/turn-ingress.js.map +1 -1
- package/lib/turn/turn-pipeline.js +1 -0
- package/lib/turn/turn-pipeline.js.map +1 -1
- package/lib/zhin-agent/index.d.ts +9 -0
- package/lib/zhin-agent/index.d.ts.map +1 -1
- package/lib/zhin-agent/index.js +13 -0
- package/lib/zhin-agent/index.js.map +1 -1
- package/package.json +20 -13
- package/lib/data-governance/data-governance.d.ts +0 -198
- package/lib/data-governance/data-governance.d.ts.map +0 -1
- package/lib/data-governance/data-governance.js +0 -660
- package/lib/data-governance/data-governance.js.map +0 -1
- package/lib/data-governance/database-payload-lifecycle-repository.d.ts +0 -68
- package/lib/data-governance/database-payload-lifecycle-repository.d.ts.map +0 -1
- package/lib/data-governance/database-payload-lifecycle-repository.js +0 -226
- package/lib/data-governance/database-payload-lifecycle-repository.js.map +0 -1
- package/lib/data-governance/disclosure-authority.d.ts +0 -38
- package/lib/data-governance/disclosure-authority.d.ts.map +0 -1
- package/lib/data-governance/disclosure-authority.js +0 -2
- package/lib/data-governance/disclosure-authority.js.map +0 -1
- package/lib/data-governance/disclosure-manifest.d.ts +0 -110
- package/lib/data-governance/disclosure-manifest.d.ts.map +0 -1
- package/lib/data-governance/disclosure-manifest.js +0 -264
- package/lib/data-governance/disclosure-manifest.js.map +0 -1
- package/lib/data-governance/encrypted-database-payload-vault.d.ts +0 -107
- package/lib/data-governance/encrypted-database-payload-vault.d.ts.map +0 -1
- package/lib/data-governance/encrypted-database-payload-vault.js +0 -236
- package/lib/data-governance/encrypted-database-payload-vault.js.map +0 -1
- package/lib/data-governance/encrypted-file-payload-vault.d.ts +0 -117
- package/lib/data-governance/encrypted-file-payload-vault.d.ts.map +0 -1
- package/lib/data-governance/encrypted-file-payload-vault.js +0 -507
- package/lib/data-governance/encrypted-file-payload-vault.js.map +0 -1
- package/lib/data-governance/file-payload-lifecycle-repository.d.ts +0 -19
- package/lib/data-governance/file-payload-lifecycle-repository.d.ts.map +0 -1
- package/lib/data-governance/file-payload-lifecycle-repository.js +0 -194
- package/lib/data-governance/file-payload-lifecycle-repository.js.map +0 -1
- package/lib/data-governance/governance-authority-repository.d.ts +0 -152
- package/lib/data-governance/governance-authority-repository.d.ts.map +0 -1
- package/lib/data-governance/governance-authority-repository.js +0 -455
- package/lib/data-governance/governance-authority-repository.js.map +0 -1
- package/lib/data-governance/governed-payload-write-saga.d.ts +0 -126
- package/lib/data-governance/governed-payload-write-saga.d.ts.map +0 -1
- package/lib/data-governance/governed-payload-write-saga.js +0 -471
- package/lib/data-governance/governed-payload-write-saga.js.map +0 -1
- package/lib/data-governance/payload-hold-overdue-projection.d.ts +0 -57
- package/lib/data-governance/payload-hold-overdue-projection.d.ts.map +0 -1
- package/lib/data-governance/payload-hold-overdue-projection.js +0 -80
- package/lib/data-governance/payload-hold-overdue-projection.js.map +0 -1
- package/lib/data-governance/payload-lifecycle.d.ts +0 -359
- package/lib/data-governance/payload-lifecycle.d.ts.map +0 -1
- package/lib/data-governance/payload-lifecycle.js +0 -930
- package/lib/data-governance/payload-lifecycle.js.map +0 -1
- package/lib/data-governance/payload-vault-storage-handoff.d.ts +0 -255
- package/lib/data-governance/payload-vault-storage-handoff.d.ts.map +0 -1
- package/lib/data-governance/payload-vault-storage-handoff.js +0 -471
- package/lib/data-governance/payload-vault-storage-handoff.js.map +0 -1
- package/lib/plugin-runtime/database-overlay-pack-promotion-repository.d.ts +0 -70
- package/lib/plugin-runtime/database-overlay-pack-promotion-repository.d.ts.map +0 -1
- package/lib/plugin-runtime/database-overlay-pack-promotion-repository.js +0 -203
- package/lib/plugin-runtime/database-overlay-pack-promotion-repository.js.map +0 -1
- package/lib/plugin-runtime/github-actions-delivery-provider.d.ts +0 -44
- package/lib/plugin-runtime/github-actions-delivery-provider.d.ts.map +0 -1
- package/lib/plugin-runtime/github-actions-delivery-provider.js +0 -246
- package/lib/plugin-runtime/github-actions-delivery-provider.js.map +0 -1
- package/lib/plugin-runtime/github-exact-merge-gateway.d.ts +0 -62
- package/lib/plugin-runtime/github-exact-merge-gateway.d.ts.map +0 -1
- package/lib/plugin-runtime/github-exact-merge-gateway.js +0 -79
- package/lib/plugin-runtime/github-exact-merge-gateway.js.map +0 -1
- package/lib/plugin-runtime/github-workroom-capability.d.ts +0 -15
- package/lib/plugin-runtime/github-workroom-capability.d.ts.map +0 -1
- package/lib/plugin-runtime/github-workroom-capability.js +0 -79
- package/lib/plugin-runtime/github-workroom-capability.js.map +0 -1
- package/lib/plugin-runtime/self-delivery-project-composition.d.ts +0 -25
- package/lib/plugin-runtime/self-delivery-project-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/self-delivery-project-composition.js +0 -85
- package/lib/plugin-runtime/self-delivery-project-composition.js.map +0 -1
- package/lib/plugin-runtime/self-delivery-project.d.ts +0 -65
- package/lib/plugin-runtime/self-delivery-project.d.ts.map +0 -1
- package/lib/plugin-runtime/self-delivery-project.js +0 -140
- package/lib/plugin-runtime/self-delivery-project.js.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-authority.d.ts +0 -5
- package/lib/plugin-runtime/workroom-acceptance-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-authority.js +0 -14
- package/lib/plugin-runtime/workroom-acceptance-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-fact-providers.d.ts +0 -233
- package/lib/plugin-runtime/workroom-acceptance-fact-providers.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-fact-providers.js +0 -517
- package/lib/plugin-runtime/workroom-acceptance-fact-providers.js.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-internal-providers.d.ts +0 -139
- package/lib/plugin-runtime/workroom-acceptance-internal-providers.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-internal-providers.js +0 -435
- package/lib/plugin-runtime/workroom-acceptance-internal-providers.js.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-policy.d.ts +0 -4
- package/lib/plugin-runtime/workroom-acceptance-policy.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-policy.js +0 -20
- package/lib/plugin-runtime/workroom-acceptance-policy.js.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-production-composition.d.ts +0 -177
- package/lib/plugin-runtime/workroom-acceptance-production-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-production-composition.js +0 -794
- package/lib/plugin-runtime/workroom-acceptance-production-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-provider-composition.d.ts +0 -189
- package/lib/plugin-runtime/workroom-acceptance-provider-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-acceptance-provider-composition.js +0 -590
- package/lib/plugin-runtime/workroom-acceptance-provider-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-accepted-source-runtime.d.ts +0 -75
- package/lib/plugin-runtime/workroom-accepted-source-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-accepted-source-runtime.js +0 -267
- package/lib/plugin-runtime/workroom-accepted-source-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-assignment-authority-grant-runtime.d.ts +0 -42
- package/lib/plugin-runtime/workroom-assignment-authority-grant-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-assignment-authority-grant-runtime.js +0 -90
- package/lib/plugin-runtime/workroom-assignment-authority-grant-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-assignment-authority-provider.d.ts +0 -84
- package/lib/plugin-runtime/workroom-assignment-authority-provider.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-assignment-authority-provider.js +0 -494
- package/lib/plugin-runtime/workroom-assignment-authority-provider.js.map +0 -1
- package/lib/plugin-runtime/workroom-assignment-knowledge-composition.d.ts +0 -58
- package/lib/plugin-runtime/workroom-assignment-knowledge-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-assignment-knowledge-composition.js +0 -218
- package/lib/plugin-runtime/workroom-assignment-knowledge-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-authority-writer.d.ts +0 -49
- package/lib/plugin-runtime/workroom-data-governance-authority-writer.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-authority-writer.js +0 -140
- package/lib/plugin-runtime/workroom-data-governance-authority-writer.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-bootstrap.d.ts +0 -27
- package/lib/plugin-runtime/workroom-data-governance-bootstrap.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-bootstrap.js +0 -324
- package/lib/plugin-runtime/workroom-data-governance-bootstrap.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-composition.d.ts +0 -28
- package/lib/plugin-runtime/workroom-data-governance-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-composition.js +0 -41
- package/lib/plugin-runtime/workroom-data-governance-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-root-provider.d.ts +0 -51
- package/lib/plugin-runtime/workroom-data-governance-root-provider.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-root-provider.js +0 -66
- package/lib/plugin-runtime/workroom-data-governance-root-provider.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-runtime.d.ts +0 -100
- package/lib/plugin-runtime/workroom-data-governance-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-runtime.js +0 -1356
- package/lib/plugin-runtime/workroom-data-governance-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-storage.d.ts +0 -66
- package/lib/plugin-runtime/workroom-data-governance-storage.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-governance-storage.js +0 -159
- package/lib/plugin-runtime/workroom-data-governance-storage.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-lifecycle-composition.d.ts +0 -37
- package/lib/plugin-runtime/workroom-data-lifecycle-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-lifecycle-composition.js +0 -131
- package/lib/plugin-runtime/workroom-data-lifecycle-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-lifecycle-console.d.ts +0 -238
- package/lib/plugin-runtime/workroom-data-lifecycle-console.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-lifecycle-console.js +0 -495
- package/lib/plugin-runtime/workroom-data-lifecycle-console.js.map +0 -1
- package/lib/plugin-runtime/workroom-data-lifecycle-human-ingress.d.ts +0 -15
- package/lib/plugin-runtime/workroom-data-lifecycle-human-ingress.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-data-lifecycle-human-ingress.js +0 -119
- package/lib/plugin-runtime/workroom-data-lifecycle-human-ingress.js.map +0 -1
- package/lib/plugin-runtime/workroom-delivery-gateway.d.ts +0 -96
- package/lib/plugin-runtime/workroom-delivery-gateway.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-delivery-gateway.js +0 -129
- package/lib/plugin-runtime/workroom-delivery-gateway.js.map +0 -1
- package/lib/plugin-runtime/workroom-dynamic-planning-provider.d.ts +0 -142
- package/lib/plugin-runtime/workroom-dynamic-planning-provider.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-dynamic-planning-provider.js +0 -302
- package/lib/plugin-runtime/workroom-dynamic-planning-provider.js.map +0 -1
- package/lib/plugin-runtime/workroom-dynamic-planning.d.ts +0 -4
- package/lib/plugin-runtime/workroom-dynamic-planning.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-dynamic-planning.js +0 -13
- package/lib/plugin-runtime/workroom-dynamic-planning.js.map +0 -1
- package/lib/plugin-runtime/workroom-effect-composition.d.ts +0 -37
- package/lib/plugin-runtime/workroom-effect-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-effect-composition.js +0 -80
- package/lib/plugin-runtime/workroom-effect-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-effect-production.d.ts +0 -138
- package/lib/plugin-runtime/workroom-effect-production.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-effect-production.js +0 -291
- package/lib/plugin-runtime/workroom-effect-production.js.map +0 -1
- package/lib/plugin-runtime/workroom-effect-runtime.d.ts +0 -56
- package/lib/plugin-runtime/workroom-effect-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-effect-runtime.js +0 -239
- package/lib/plugin-runtime/workroom-effect-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-governed-dispatch-composition.d.ts +0 -32
- package/lib/plugin-runtime/workroom-governed-dispatch-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-governed-dispatch-composition.js +0 -43
- package/lib/plugin-runtime/workroom-governed-dispatch-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-journal-payload-composition.d.ts +0 -16
- package/lib/plugin-runtime/workroom-journal-payload-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-journal-payload-composition.js +0 -69
- package/lib/plugin-runtime/workroom-journal-payload-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-local-agent-core-adapter.d.ts +0 -17
- package/lib/plugin-runtime/workroom-local-agent-core-adapter.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-local-agent-core-adapter.js +0 -101
- package/lib/plugin-runtime/workroom-local-agent-core-adapter.js.map +0 -1
- package/lib/plugin-runtime/workroom-local-agent-loop.d.ts +0 -91
- package/lib/plugin-runtime/workroom-local-agent-loop.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-local-agent-loop.js +0 -313
- package/lib/plugin-runtime/workroom-local-agent-loop.js.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-authority.d.ts +0 -5
- package/lib/plugin-runtime/workroom-local-assignment-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-authority.js +0 -16
- package/lib/plugin-runtime/workroom-local-assignment-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-executor.d.ts +0 -59
- package/lib/plugin-runtime/workroom-local-assignment-executor.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-executor.js +0 -197
- package/lib/plugin-runtime/workroom-local-assignment-executor.js.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-runtime.d.ts +0 -34
- package/lib/plugin-runtime/workroom-local-assignment-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-runtime.js +0 -235
- package/lib/plugin-runtime/workroom-local-assignment-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-supply.d.ts +0 -39
- package/lib/plugin-runtime/workroom-local-assignment-supply.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-local-assignment-supply.js +0 -107
- package/lib/plugin-runtime/workroom-local-assignment-supply.js.map +0 -1
- package/lib/plugin-runtime/workroom-overlay-pack-promotion.d.ts +0 -145
- package/lib/plugin-runtime/workroom-overlay-pack-promotion.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-overlay-pack-promotion.js +0 -516
- package/lib/plugin-runtime/workroom-overlay-pack-promotion.js.map +0 -1
- package/lib/plugin-runtime/workroom-payload-processor-recall.d.ts +0 -91
- package/lib/plugin-runtime/workroom-payload-processor-recall.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-payload-processor-recall.js +0 -189
- package/lib/plugin-runtime/workroom-payload-processor-recall.js.map +0 -1
- package/lib/plugin-runtime/workroom-plan-gate-authority.d.ts +0 -7
- package/lib/plugin-runtime/workroom-plan-gate-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-plan-gate-authority.js +0 -40
- package/lib/plugin-runtime/workroom-plan-gate-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-capacity.d.ts +0 -132
- package/lib/plugin-runtime/workroom-portfolio-capacity.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-capacity.js +0 -189
- package/lib/plugin-runtime/workroom-portfolio-capacity.js.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-checkpoint-ack.d.ts +0 -38
- package/lib/plugin-runtime/workroom-portfolio-checkpoint-ack.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-checkpoint-ack.js +0 -103
- package/lib/plugin-runtime/workroom-portfolio-checkpoint-ack.js.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-control-composition.d.ts +0 -30
- package/lib/plugin-runtime/workroom-portfolio-control-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-control-composition.js +0 -103
- package/lib/plugin-runtime/workroom-portfolio-control-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-control-runtime.d.ts +0 -42
- package/lib/plugin-runtime/workroom-portfolio-control-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-control-runtime.js +0 -209
- package/lib/plugin-runtime/workroom-portfolio-control-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-grant-assignment.d.ts +0 -141
- package/lib/plugin-runtime/workroom-portfolio-grant-assignment.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-grant-assignment.js +0 -334
- package/lib/plugin-runtime/workroom-portfolio-grant-assignment.js.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-kernel-authority.d.ts +0 -23
- package/lib/plugin-runtime/workroom-portfolio-kernel-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-kernel-authority.js +0 -88
- package/lib/plugin-runtime/workroom-portfolio-kernel-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-sponsor.d.ts +0 -96
- package/lib/plugin-runtime/workroom-portfolio-sponsor.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-portfolio-sponsor.js +0 -313
- package/lib/plugin-runtime/workroom-portfolio-sponsor.js.map +0 -1
- package/lib/plugin-runtime/workroom-preemption-runtime.d.ts +0 -57
- package/lib/plugin-runtime/workroom-preemption-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-preemption-runtime.js +0 -163
- package/lib/plugin-runtime/workroom-preemption-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-priority-authority.d.ts +0 -19
- package/lib/plugin-runtime/workroom-priority-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-priority-authority.js +0 -76
- package/lib/plugin-runtime/workroom-priority-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-profile-authority-composition.d.ts +0 -61
- package/lib/plugin-runtime/workroom-profile-authority-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-profile-authority-composition.js +0 -232
- package/lib/plugin-runtime/workroom-profile-authority-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-profile-authority-runtime.d.ts +0 -229
- package/lib/plugin-runtime/workroom-profile-authority-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-profile-authority-runtime.js +0 -1133
- package/lib/plugin-runtime/workroom-profile-authority-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-projection-outbound.d.ts +0 -10
- package/lib/plugin-runtime/workroom-projection-outbound.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-projection-outbound.js +0 -35
- package/lib/plugin-runtime/workroom-projection-outbound.js.map +0 -1
- package/lib/plugin-runtime/workroom-projection-runtime.d.ts +0 -93
- package/lib/plugin-runtime/workroom-projection-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-projection-runtime.js +0 -476
- package/lib/plugin-runtime/workroom-projection-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-remote-assignment-authority.d.ts +0 -9
- package/lib/plugin-runtime/workroom-remote-assignment-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-remote-assignment-authority.js +0 -20
- package/lib/plugin-runtime/workroom-remote-assignment-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-remote-callback-runtime.d.ts +0 -38
- package/lib/plugin-runtime/workroom-remote-callback-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-remote-callback-runtime.js +0 -80
- package/lib/plugin-runtime/workroom-remote-callback-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-remote-executor.d.ts +0 -9
- package/lib/plugin-runtime/workroom-remote-executor.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-remote-executor.js +0 -23
- package/lib/plugin-runtime/workroom-remote-executor.js.map +0 -1
- package/lib/plugin-runtime/workroom-reviewer-authority-runtime.d.ts +0 -72
- package/lib/plugin-runtime/workroom-reviewer-authority-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-reviewer-authority-runtime.js +0 -142
- package/lib/plugin-runtime/workroom-reviewer-authority-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-risk-acceptance-runtime.d.ts +0 -112
- package/lib/plugin-runtime/workroom-risk-acceptance-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-risk-acceptance-runtime.js +0 -376
- package/lib/plugin-runtime/workroom-risk-acceptance-runtime.js.map +0 -1
- package/lib/plugin-runtime/workroom-run-profile-pin-authority.d.ts +0 -42
- package/lib/plugin-runtime/workroom-run-profile-pin-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-run-profile-pin-authority.js +0 -125
- package/lib/plugin-runtime/workroom-run-profile-pin-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.d.ts +0 -32
- package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.js +0 -83
- package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.js.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-contract.d.ts +0 -16
- package/lib/plugin-runtime/workroom-scheduler-portfolio-contract.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-contract.js +0 -49
- package/lib/plugin-runtime/workroom-scheduler-portfolio-contract.js.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.d.ts +0 -66
- package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.js +0 -250
- package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.js.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.d.ts +0 -42
- package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.js +0 -141
- package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.js.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-route-registry.d.ts +0 -27
- package/lib/plugin-runtime/workroom-scheduler-route-registry.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-route-registry.js +0 -136
- package/lib/plugin-runtime/workroom-scheduler-route-registry.js.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-runtime.d.ts +0 -84
- package/lib/plugin-runtime/workroom-scheduler-runtime.d.ts.map +0 -1
- package/lib/plugin-runtime/workroom-scheduler-runtime.js +0 -236
- package/lib/plugin-runtime/workroom-scheduler-runtime.js.map +0 -1
- package/lib/portfolio/capacity-control-outbox.d.ts +0 -174
- package/lib/portfolio/capacity-control-outbox.d.ts.map +0 -1
- package/lib/portfolio/capacity-control-outbox.js +0 -338
- package/lib/portfolio/capacity-control-outbox.js.map +0 -1
- package/lib/portfolio/database-capacity-control-outbox.d.ts +0 -62
- package/lib/portfolio/database-capacity-control-outbox.d.ts.map +0 -1
- package/lib/portfolio/database-capacity-control-outbox.js +0 -166
- package/lib/portfolio/database-capacity-control-outbox.js.map +0 -1
- package/lib/portfolio/file-capacity-control-outbox.d.ts +0 -10
- package/lib/portfolio/file-capacity-control-outbox.d.ts.map +0 -1
- package/lib/portfolio/file-capacity-control-outbox.js +0 -113
- package/lib/portfolio/file-capacity-control-outbox.js.map +0 -1
- package/lib/portfolio/file-portfolio-journal.d.ts +0 -11
- package/lib/portfolio/file-portfolio-journal.d.ts.map +0 -1
- package/lib/portfolio/file-portfolio-journal.js +0 -196
- package/lib/portfolio/file-portfolio-journal.js.map +0 -1
- package/lib/portfolio/portfolio-admission.d.ts +0 -95
- package/lib/portfolio/portfolio-admission.d.ts.map +0 -1
- package/lib/portfolio/portfolio-admission.js +0 -1080
- package/lib/portfolio/portfolio-admission.js.map +0 -1
- package/lib/portfolio/portfolio-journal.d.ts +0 -359
- package/lib/portfolio/portfolio-journal.d.ts.map +0 -1
- package/lib/portfolio/portfolio-journal.js +0 -844
- package/lib/portfolio/portfolio-journal.js.map +0 -1
- package/lib/portfolio/resource-bundle.d.ts +0 -136
- package/lib/portfolio/resource-bundle.d.ts.map +0 -1
- package/lib/portfolio/resource-bundle.js +0 -387
- package/lib/portfolio/resource-bundle.js.map +0 -1
- package/lib/portfolio/sponsor-projection.d.ts +0 -78
- package/lib/portfolio/sponsor-projection.d.ts.map +0 -1
- package/lib/portfolio/sponsor-projection.js +0 -135
- package/lib/portfolio/sponsor-projection.js.map +0 -1
- package/lib/routing/match-rules.d.ts +0 -4
- package/lib/routing/match-rules.d.ts.map +0 -1
- package/lib/routing/match-rules.js +0 -29
- package/lib/routing/match-rules.js.map +0 -1
- package/lib/routing/route-matcher.d.ts +0 -16
- package/lib/routing/route-matcher.d.ts.map +0 -1
- package/lib/routing/route-matcher.js +0 -62
- package/lib/routing/route-matcher.js.map +0 -1
- package/lib/routing/workroom-bot-identity.d.ts +0 -22
- package/lib/routing/workroom-bot-identity.d.ts.map +0 -1
- package/lib/routing/workroom-bot-identity.js +0 -53
- package/lib/routing/workroom-bot-identity.js.map +0 -1
- package/lib/workroom/acceptance-control.d.ts +0 -77
- package/lib/workroom/acceptance-control.d.ts.map +0 -1
- package/lib/workroom/acceptance-control.js +0 -345
- package/lib/workroom/acceptance-control.js.map +0 -1
- package/lib/workroom/acceptance-policy.d.ts +0 -152
- package/lib/workroom/acceptance-policy.d.ts.map +0 -1
- package/lib/workroom/acceptance-policy.js +0 -610
- package/lib/workroom/acceptance-policy.js.map +0 -1
- package/lib/workroom/accepted-source-memory-application.d.ts +0 -113
- package/lib/workroom/accepted-source-memory-application.d.ts.map +0 -1
- package/lib/workroom/accepted-source-memory-application.js +0 -327
- package/lib/workroom/accepted-source-memory-application.js.map +0 -1
- package/lib/workroom/accepted-source-projector.d.ts +0 -89
- package/lib/workroom/accepted-source-projector.d.ts.map +0 -1
- package/lib/workroom/accepted-source-projector.js +0 -281
- package/lib/workroom/accepted-source-projector.js.map +0 -1
- package/lib/workroom/assignment-authority-grant-application.d.ts +0 -125
- package/lib/workroom/assignment-authority-grant-application.d.ts.map +0 -1
- package/lib/workroom/assignment-authority-grant-application.js +0 -318
- package/lib/workroom/assignment-authority-grant-application.js.map +0 -1
- package/lib/workroom/assignment-authority-grant-repository.d.ts +0 -152
- package/lib/workroom/assignment-authority-grant-repository.d.ts.map +0 -1
- package/lib/workroom/assignment-authority-grant-repository.js +0 -389
- package/lib/workroom/assignment-authority-grant-repository.js.map +0 -1
- package/lib/workroom/assignment-authority.d.ts +0 -75
- package/lib/workroom/assignment-authority.d.ts.map +0 -1
- package/lib/workroom/assignment-authority.js +0 -179
- package/lib/workroom/assignment-authority.js.map +0 -1
- package/lib/workroom/assignment-executor.d.ts +0 -110
- package/lib/workroom/assignment-executor.d.ts.map +0 -1
- package/lib/workroom/assignment-executor.js +0 -371
- package/lib/workroom/assignment-executor.js.map +0 -1
- package/lib/workroom/assignment-observation-ingress.d.ts +0 -21
- package/lib/workroom/assignment-observation-ingress.d.ts.map +0 -1
- package/lib/workroom/assignment-observation-ingress.js +0 -24
- package/lib/workroom/assignment-observation-ingress.js.map +0 -1
- package/lib/workroom/canonical-value.d.ts +0 -7
- package/lib/workroom/canonical-value.d.ts.map +0 -1
- package/lib/workroom/canonical-value.js +0 -32
- package/lib/workroom/canonical-value.js.map +0 -1
- package/lib/workroom/catalog-definition.d.ts +0 -52
- package/lib/workroom/catalog-definition.d.ts.map +0 -1
- package/lib/workroom/catalog-definition.js +0 -6
- package/lib/workroom/catalog-definition.js.map +0 -1
- package/lib/workroom/catalog.d.ts +0 -80
- package/lib/workroom/catalog.d.ts.map +0 -1
- package/lib/workroom/catalog.js +0 -386
- package/lib/workroom/catalog.js.map +0 -1
- package/lib/workroom/coding-assignment-executor.d.ts +0 -90
- package/lib/workroom/coding-assignment-executor.d.ts.map +0 -1
- package/lib/workroom/coding-assignment-executor.js +0 -250
- package/lib/workroom/coding-assignment-executor.js.map +0 -1
- package/lib/workroom/coding-git-objects.d.ts +0 -17
- package/lib/workroom/coding-git-objects.d.ts.map +0 -1
- package/lib/workroom/coding-git-objects.js +0 -68
- package/lib/workroom/coding-git-objects.js.map +0 -1
- package/lib/workroom/database-project-knowledge-journal.d.ts +0 -62
- package/lib/workroom/database-project-knowledge-journal.d.ts.map +0 -1
- package/lib/workroom/database-project-knowledge-journal.js +0 -161
- package/lib/workroom/database-project-knowledge-journal.js.map +0 -1
- package/lib/workroom/durable-file-store.d.ts +0 -56
- package/lib/workroom/durable-file-store.d.ts.map +0 -1
- package/lib/workroom/durable-file-store.js +0 -125
- package/lib/workroom/durable-file-store.js.map +0 -1
- package/lib/workroom/dynamic-workflow-planner.d.ts +0 -86
- package/lib/workroom/dynamic-workflow-planner.d.ts.map +0 -1
- package/lib/workroom/dynamic-workflow-planner.js +0 -260
- package/lib/workroom/dynamic-workflow-planner.js.map +0 -1
- package/lib/workroom/effect-blocker-repository.d.ts +0 -51
- package/lib/workroom/effect-blocker-repository.d.ts.map +0 -1
- package/lib/workroom/effect-blocker-repository.js +0 -174
- package/lib/workroom/effect-blocker-repository.js.map +0 -1
- package/lib/workroom/effect-ledger.d.ts +0 -211
- package/lib/workroom/effect-ledger.d.ts.map +0 -1
- package/lib/workroom/effect-ledger.js +0 -484
- package/lib/workroom/effect-ledger.js.map +0 -1
- package/lib/workroom/file-accepted-source-memory-repository.d.ts +0 -15
- package/lib/workroom/file-accepted-source-memory-repository.d.ts.map +0 -1
- package/lib/workroom/file-accepted-source-memory-repository.js +0 -136
- package/lib/workroom/file-accepted-source-memory-repository.js.map +0 -1
- package/lib/workroom/file-coding-execution-store.d.ts +0 -25
- package/lib/workroom/file-coding-execution-store.d.ts.map +0 -1
- package/lib/workroom/file-coding-execution-store.js +0 -122
- package/lib/workroom/file-coding-execution-store.js.map +0 -1
- package/lib/workroom/file-effect-ledger.d.ts +0 -10
- package/lib/workroom/file-effect-ledger.d.ts.map +0 -1
- package/lib/workroom/file-effect-ledger.js +0 -121
- package/lib/workroom/file-effect-ledger.js.map +0 -1
- package/lib/workroom/file-human-ingress-application.d.ts +0 -10
- package/lib/workroom/file-human-ingress-application.d.ts.map +0 -1
- package/lib/workroom/file-human-ingress-application.js +0 -177
- package/lib/workroom/file-human-ingress-application.js.map +0 -1
- package/lib/workroom/file-human-ingress.d.ts +0 -24
- package/lib/workroom/file-human-ingress.d.ts.map +0 -1
- package/lib/workroom/file-human-ingress.js +0 -234
- package/lib/workroom/file-human-ingress.js.map +0 -1
- package/lib/workroom/file-interaction-space-binding-repository.d.ts +0 -24
- package/lib/workroom/file-interaction-space-binding-repository.d.ts.map +0 -1
- package/lib/workroom/file-interaction-space-binding-repository.js +0 -293
- package/lib/workroom/file-interaction-space-binding-repository.js.map +0 -1
- package/lib/workroom/file-profile-journal.d.ts +0 -33
- package/lib/workroom/file-profile-journal.d.ts.map +0 -1
- package/lib/workroom/file-profile-journal.js +0 -311
- package/lib/workroom/file-profile-journal.js.map +0 -1
- package/lib/workroom/git-workspace-gateway.d.ts +0 -152
- package/lib/workroom/git-workspace-gateway.d.ts.map +0 -1
- package/lib/workroom/git-workspace-gateway.js +0 -257
- package/lib/workroom/git-workspace-gateway.js.map +0 -1
- package/lib/workroom/github-workspace-transport.d.ts +0 -30
- package/lib/workroom/github-workspace-transport.d.ts.map +0 -1
- package/lib/workroom/github-workspace-transport.js +0 -224
- package/lib/workroom/github-workspace-transport.js.map +0 -1
- package/lib/workroom/governed-dispatch-reasons.d.ts +0 -10
- package/lib/workroom/governed-dispatch-reasons.d.ts.map +0 -1
- package/lib/workroom/governed-dispatch-reasons.js +0 -20
- package/lib/workroom/governed-dispatch-reasons.js.map +0 -1
- package/lib/workroom/human-ingress-application.d.ts +0 -128
- package/lib/workroom/human-ingress-application.d.ts.map +0 -1
- package/lib/workroom/human-ingress-application.js +0 -415
- package/lib/workroom/human-ingress-application.js.map +0 -1
- package/lib/workroom/human-ingress-orchestrator.d.ts +0 -99
- package/lib/workroom/human-ingress-orchestrator.d.ts.map +0 -1
- package/lib/workroom/human-ingress-orchestrator.js +0 -262
- package/lib/workroom/human-ingress-orchestrator.js.map +0 -1
- package/lib/workroom/human-ingress-source-reader.d.ts +0 -29
- package/lib/workroom/human-ingress-source-reader.d.ts.map +0 -1
- package/lib/workroom/human-ingress-source-reader.js +0 -126
- package/lib/workroom/human-ingress-source-reader.js.map +0 -1
- package/lib/workroom/human-ingress.d.ts +0 -182
- package/lib/workroom/human-ingress.d.ts.map +0 -1
- package/lib/workroom/human-ingress.js +0 -526
- package/lib/workroom/human-ingress.js.map +0 -1
- package/lib/workroom/interaction-space-binding-service.d.ts +0 -57
- package/lib/workroom/interaction-space-binding-service.d.ts.map +0 -1
- package/lib/workroom/interaction-space-binding-service.js +0 -197
- package/lib/workroom/interaction-space-binding-service.js.map +0 -1
- package/lib/workroom/interaction-space-router.d.ts +0 -75
- package/lib/workroom/interaction-space-router.d.ts.map +0 -1
- package/lib/workroom/interaction-space-router.js +0 -243
- package/lib/workroom/interaction-space-router.js.map +0 -1
- package/lib/workroom/journal/activatable-journal.d.ts +0 -15
- package/lib/workroom/journal/activatable-journal.d.ts.map +0 -1
- package/lib/workroom/journal/activatable-journal.js +0 -39
- package/lib/workroom/journal/activatable-journal.js.map +0 -1
- package/lib/workroom/journal/contracts.d.ts +0 -141
- package/lib/workroom/journal/contracts.d.ts.map +0 -1
- package/lib/workroom/journal/contracts.js +0 -19
- package/lib/workroom/journal/contracts.js.map +0 -1
- package/lib/workroom/journal/database-journal.d.ts +0 -31
- package/lib/workroom/journal/database-journal.d.ts.map +0 -1
- package/lib/workroom/journal/database-journal.js +0 -118
- package/lib/workroom/journal/database-journal.js.map +0 -1
- package/lib/workroom/journal/event-codec.d.ts +0 -26
- package/lib/workroom/journal/event-codec.d.ts.map +0 -1
- package/lib/workroom/journal/event-codec.js +0 -243
- package/lib/workroom/journal/event-codec.js.map +0 -1
- package/lib/workroom/journal/event-validation.d.ts +0 -10
- package/lib/workroom/journal/event-validation.d.ts.map +0 -1
- package/lib/workroom/journal/event-validation.js +0 -671
- package/lib/workroom/journal/event-validation.js.map +0 -1
- package/lib/workroom/journal/file-journal.d.ts +0 -15
- package/lib/workroom/journal/file-journal.d.ts.map +0 -1
- package/lib/workroom/journal/file-journal.js +0 -272
- package/lib/workroom/journal/file-journal.js.map +0 -1
- package/lib/workroom/journal/index.d.ts +0 -9
- package/lib/workroom/journal/index.d.ts.map +0 -1
- package/lib/workroom/journal/index.js +0 -8
- package/lib/workroom/journal/index.js.map +0 -1
- package/lib/workroom/journal/memory-journal.d.ts +0 -27
- package/lib/workroom/journal/memory-journal.d.ts.map +0 -1
- package/lib/workroom/journal/memory-journal.js +0 -103
- package/lib/workroom/journal/memory-journal.js.map +0 -1
- package/lib/workroom/journal/payload-governance.d.ts +0 -29
- package/lib/workroom/journal/payload-governance.d.ts.map +0 -1
- package/lib/workroom/journal/payload-governance.js +0 -282
- package/lib/workroom/journal/payload-governance.js.map +0 -1
- package/lib/workroom/journal/payload-reference.d.ts +0 -9
- package/lib/workroom/journal/payload-reference.d.ts.map +0 -1
- package/lib/workroom/journal/payload-reference.js +0 -60
- package/lib/workroom/journal/payload-reference.js.map +0 -1
- package/lib/workroom/journal/stored-event-projection.d.ts +0 -6
- package/lib/workroom/journal/stored-event-projection.d.ts.map +0 -1
- package/lib/workroom/journal/stored-event-projection.js +0 -280
- package/lib/workroom/journal/stored-event-projection.js.map +0 -1
- package/lib/workroom/journal-model.d.ts +0 -40
- package/lib/workroom/journal-model.d.ts.map +0 -1
- package/lib/workroom/journal-model.js +0 -12
- package/lib/workroom/journal-model.js.map +0 -1
- package/lib/workroom/kernel-contracts.d.ts +0 -168
- package/lib/workroom/kernel-contracts.d.ts.map +0 -1
- package/lib/workroom/kernel-contracts.js +0 -2
- package/lib/workroom/kernel-contracts.js.map +0 -1
- package/lib/workroom/kernel-state.d.ts +0 -5
- package/lib/workroom/kernel-state.d.ts.map +0 -1
- package/lib/workroom/kernel-state.js +0 -885
- package/lib/workroom/kernel-state.js.map +0 -1
- package/lib/workroom/legacy-embedded-payload-migration.d.ts +0 -89
- package/lib/workroom/legacy-embedded-payload-migration.d.ts.map +0 -1
- package/lib/workroom/legacy-embedded-payload-migration.js +0 -312
- package/lib/workroom/legacy-embedded-payload-migration.js.map +0 -1
- package/lib/workroom/legacy-run-offline-migration.d.ts +0 -84
- package/lib/workroom/legacy-run-offline-migration.d.ts.map +0 -1
- package/lib/workroom/legacy-run-offline-migration.js +0 -470
- package/lib/workroom/legacy-run-offline-migration.js.map +0 -1
- package/lib/workroom/local-assignment-issuance.d.ts +0 -68
- package/lib/workroom/local-assignment-issuance.d.ts.map +0 -1
- package/lib/workroom/local-assignment-issuance.js +0 -128
- package/lib/workroom/local-assignment-issuance.js.map +0 -1
- package/lib/workroom/plan-approval-control.d.ts +0 -52
- package/lib/workroom/plan-approval-control.d.ts.map +0 -1
- package/lib/workroom/plan-approval-control.js +0 -9
- package/lib/workroom/plan-approval-control.js.map +0 -1
- package/lib/workroom/plan-revision.d.ts +0 -44
- package/lib/workroom/plan-revision.d.ts.map +0 -1
- package/lib/workroom/plan-revision.js +0 -133
- package/lib/workroom/plan-revision.js.map +0 -1
- package/lib/workroom/profile-compiler.d.ts +0 -130
- package/lib/workroom/profile-compiler.d.ts.map +0 -1
- package/lib/workroom/profile-compiler.js +0 -357
- package/lib/workroom/profile-compiler.js.map +0 -1
- package/lib/workroom/profile-registry.d.ts +0 -191
- package/lib/workroom/profile-registry.d.ts.map +0 -1
- package/lib/workroom/profile-registry.js +0 -698
- package/lib/workroom/profile-registry.js.map +0 -1
- package/lib/workroom/project-knowledge-registry.d.ts +0 -136
- package/lib/workroom/project-knowledge-registry.d.ts.map +0 -1
- package/lib/workroom/project-knowledge-registry.js +0 -429
- package/lib/workroom/project-knowledge-registry.js.map +0 -1
- package/lib/workroom/projection-outbox/contracts.d.ts +0 -195
- package/lib/workroom/projection-outbox/contracts.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/contracts.js +0 -11
- package/lib/workroom/projection-outbox/contracts.js.map +0 -1
- package/lib/workroom/projection-outbox/delivery-worker.d.ts +0 -22
- package/lib/workroom/projection-outbox/delivery-worker.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/delivery-worker.js +0 -96
- package/lib/workroom/projection-outbox/delivery-worker.js.map +0 -1
- package/lib/workroom/projection-outbox/file-repository.d.ts +0 -11
- package/lib/workroom/projection-outbox/file-repository.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/file-repository.js +0 -89
- package/lib/workroom/projection-outbox/file-repository.js.map +0 -1
- package/lib/workroom/projection-outbox/index.d.ts +0 -10
- package/lib/workroom/projection-outbox/index.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/index.js +0 -8
- package/lib/workroom/projection-outbox/index.js.map +0 -1
- package/lib/workroom/projection-outbox/memory-repository.d.ts +0 -11
- package/lib/workroom/projection-outbox/memory-repository.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/memory-repository.js +0 -40
- package/lib/workroom/projection-outbox/memory-repository.js.map +0 -1
- package/lib/workroom/projection-outbox/projector.d.ts +0 -36
- package/lib/workroom/projection-outbox/projector.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/projector.js +0 -517
- package/lib/workroom/projection-outbox/projector.js.map +0 -1
- package/lib/workroom/projection-outbox/repository-state.d.ts +0 -17
- package/lib/workroom/projection-outbox/repository-state.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/repository-state.js +0 -343
- package/lib/workroom/projection-outbox/repository-state.js.map +0 -1
- package/lib/workroom/projection-outbox/tracer.d.ts +0 -19
- package/lib/workroom/projection-outbox/tracer.d.ts.map +0 -1
- package/lib/workroom/projection-outbox/tracer.js +0 -201
- package/lib/workroom/projection-outbox/tracer.js.map +0 -1
- package/lib/workroom/remote-assignment-dispatch-command.d.ts +0 -31
- package/lib/workroom/remote-assignment-dispatch-command.d.ts.map +0 -1
- package/lib/workroom/remote-assignment-dispatch-command.js +0 -56
- package/lib/workroom/remote-assignment-dispatch-command.js.map +0 -1
- package/lib/workroom/remote-assignment-issuance.d.ts +0 -88
- package/lib/workroom/remote-assignment-issuance.d.ts.map +0 -1
- package/lib/workroom/remote-assignment-issuance.js +0 -201
- package/lib/workroom/remote-assignment-issuance.js.map +0 -1
- package/lib/workroom/remote-callback-application.d.ts +0 -115
- package/lib/workroom/remote-callback-application.d.ts.map +0 -1
- package/lib/workroom/remote-callback-application.js +0 -570
- package/lib/workroom/remote-callback-application.js.map +0 -1
- package/lib/workroom/remote-callback-gateway.d.ts +0 -60
- package/lib/workroom/remote-callback-gateway.d.ts.map +0 -1
- package/lib/workroom/remote-callback-gateway.js +0 -173
- package/lib/workroom/remote-callback-gateway.js.map +0 -1
- package/lib/workroom/remote-callback-inbox.d.ts +0 -278
- package/lib/workroom/remote-callback-inbox.d.ts.map +0 -1
- package/lib/workroom/remote-callback-inbox.js +0 -1088
- package/lib/workroom/remote-callback-inbox.js.map +0 -1
- package/lib/workroom/remote-callback-reconciliation-worker.d.ts +0 -60
- package/lib/workroom/remote-callback-reconciliation-worker.d.ts.map +0 -1
- package/lib/workroom/remote-callback-reconciliation-worker.js +0 -197
- package/lib/workroom/remote-callback-reconciliation-worker.js.map +0 -1
- package/lib/workroom/remote-dispatch-admission.d.ts +0 -45
- package/lib/workroom/remote-dispatch-admission.d.ts.map +0 -1
- package/lib/workroom/remote-dispatch-admission.js +0 -187
- package/lib/workroom/remote-dispatch-admission.js.map +0 -1
- package/lib/workroom/remote-dispatch-outbox.d.ts +0 -204
- package/lib/workroom/remote-dispatch-outbox.d.ts.map +0 -1
- package/lib/workroom/remote-dispatch-outbox.js +0 -768
- package/lib/workroom/remote-dispatch-outbox.js.map +0 -1
- package/lib/workroom/remote-dispatch-scheduler.d.ts +0 -36
- package/lib/workroom/remote-dispatch-scheduler.d.ts.map +0 -1
- package/lib/workroom/remote-dispatch-scheduler.js +0 -133
- package/lib/workroom/remote-dispatch-scheduler.js.map +0 -1
- package/lib/workroom/remote-dispatch-worker.d.ts +0 -22
- package/lib/workroom/remote-dispatch-worker.d.ts.map +0 -1
- package/lib/workroom/remote-dispatch-worker.js +0 -124
- package/lib/workroom/remote-dispatch-worker.js.map +0 -1
- package/lib/workroom/remote-dispatch.d.ts +0 -79
- package/lib/workroom/remote-dispatch.d.ts.map +0 -1
- package/lib/workroom/remote-dispatch.js +0 -220
- package/lib/workroom/remote-dispatch.js.map +0 -1
- package/lib/workroom/remote-executor.d.ts +0 -15
- package/lib/workroom/remote-executor.d.ts.map +0 -1
- package/lib/workroom/remote-executor.js +0 -21
- package/lib/workroom/remote-executor.js.map +0 -1
- package/lib/workroom/role-capability-snapshot.d.ts +0 -88
- package/lib/workroom/role-capability-snapshot.d.ts.map +0 -1
- package/lib/workroom/role-capability-snapshot.js +0 -456
- package/lib/workroom/role-capability-snapshot.js.map +0 -1
- package/lib/workroom/runtime.d.ts +0 -142
- package/lib/workroom/runtime.d.ts.map +0 -1
- package/lib/workroom/runtime.js +0 -543
- package/lib/workroom/runtime.js.map +0 -1
- package/lib/workroom/scheduler-priority-control.d.ts +0 -35
- package/lib/workroom/scheduler-priority-control.d.ts.map +0 -1
- package/lib/workroom/scheduler-priority-control.js +0 -9
- package/lib/workroom/scheduler-priority-control.js.map +0 -1
- package/lib/workroom/software-delivery-plan.d.ts +0 -32
- package/lib/workroom/software-delivery-plan.d.ts.map +0 -1
- package/lib/workroom/software-delivery-plan.js +0 -60
- package/lib/workroom/software-delivery-plan.js.map +0 -1
- package/lib/workroom/validate-catalog.d.ts +0 -2
- package/lib/workroom/validate-catalog.d.ts.map +0 -1
- package/lib/workroom/validate-catalog.js +0 -230
- package/lib/workroom/validate-catalog.js.map +0 -1
- package/lib/workroom/workflow-plan-builder.d.ts +0 -88
- package/lib/workroom/workflow-plan-builder.d.ts.map +0 -1
- package/lib/workroom/workflow-plan-builder.js +0 -232
- package/lib/workroom/workflow-plan-builder.js.map +0 -1
- package/lib/workroom/workroom-assignment-knowledge-context.d.ts +0 -102
- package/lib/workroom/workroom-assignment-knowledge-context.d.ts.map +0 -1
- package/lib/workroom/workroom-assignment-knowledge-context.js +0 -127
- package/lib/workroom/workroom-assignment-knowledge-context.js.map +0 -1
- package/lib/workroom/workroom-kernel.d.ts +0 -157
- package/lib/workroom/workroom-kernel.d.ts.map +0 -1
- package/lib/workroom/workroom-kernel.js +0 -1526
- package/lib/workroom/workroom-kernel.js.map +0 -1
- package/lib/workroom/workroom-preemption.d.ts +0 -65
- package/lib/workroom/workroom-preemption.d.ts.map +0 -1
- package/lib/workroom/workroom-preemption.js +0 -213
- package/lib/workroom/workroom-preemption.js.map +0 -1
- package/lib/workroom/workroom-run-control.d.ts +0 -69
- package/lib/workroom/workroom-run-control.d.ts.map +0 -1
- package/lib/workroom/workroom-run-control.js +0 -144
- package/lib/workroom/workroom-run-control.js.map +0 -1
- package/lib/workroom/workroom-scheduler-application.d.ts +0 -43
- package/lib/workroom/workroom-scheduler-application.d.ts.map +0 -1
- package/lib/workroom/workroom-scheduler-application.js +0 -71
- package/lib/workroom/workroom-scheduler-application.js.map +0 -1
- package/lib/workroom/workroom-scheduler.d.ts +0 -135
- package/lib/workroom/workroom-scheduler.d.ts.map +0 -1
- package/lib/workroom/workroom-scheduler.js +0 -660
- package/lib/workroom/workroom-scheduler.js.map +0 -1
- package/lib/workroom/workroom-task-report-store.d.ts +0 -131
- package/lib/workroom/workroom-task-report-store.d.ts.map +0 -1
- package/lib/workroom/workroom-task-report-store.js +0 -528
- package/lib/workroom/workroom-task-report-store.js.map +0 -1
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
import { compareCanonicalWorkroomText, canonicalWorkroomJson } from '../workroom/canonical-value.js';
|
|
3
|
-
import { canonicalOverlayPackPromotionRecord, preparedOverlayPackPromotionRecord, } from './workroom-overlay-pack-promotion.js';
|
|
4
|
-
export class ActivatableOverlayPackPromotionRepository {
|
|
5
|
-
#delegate;
|
|
6
|
-
async activate(delegate, promotionIds, source) {
|
|
7
|
-
if (this.#delegate)
|
|
8
|
-
throw new Error('Overlay Pack Promotion storage is already active');
|
|
9
|
-
const ids = canonicalIds(promotionIds);
|
|
10
|
-
for (const promotionId of ids) {
|
|
11
|
-
const sourceRecord = source ? await source.read(promotionId) : undefined;
|
|
12
|
-
let targetRecord = await delegate.read(promotionId);
|
|
13
|
-
if (!sourceRecord)
|
|
14
|
-
continue;
|
|
15
|
-
if (sourceRecord && targetRecord && !isPromotionPrefix(sourceRecord, targetRecord)
|
|
16
|
-
&& !(sourceRecord.status === 'published' && targetRecord.status === 'prepared'
|
|
17
|
-
&& sourceRecord.commandDigest === targetRecord.commandDigest)) {
|
|
18
|
-
throw new Error('Overlay Pack Promotion File/Database handoff diverged');
|
|
19
|
-
}
|
|
20
|
-
if (sourceRecord && !targetRecord) {
|
|
21
|
-
targetRecord = await delegate.prepare(sourceRecord.status === 'published'
|
|
22
|
-
? preparedOverlayPackPromotionRecord(sourceRecord)
|
|
23
|
-
: sourceRecord);
|
|
24
|
-
}
|
|
25
|
-
if (sourceRecord?.status === 'published' && targetRecord?.status === 'prepared') {
|
|
26
|
-
targetRecord = await delegate.markPublished(sourceRecord);
|
|
27
|
-
}
|
|
28
|
-
targetRecord = await delegate.read(promotionId);
|
|
29
|
-
if (!targetRecord || !isPromotionPrefix(sourceRecord, targetRecord)) {
|
|
30
|
-
throw new Error('Overlay Pack Promotion target did not durably replay the File source');
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (this.#delegate)
|
|
34
|
-
throw new Error('Overlay Pack Promotion storage is already active');
|
|
35
|
-
this.#delegate = delegate;
|
|
36
|
-
}
|
|
37
|
-
read(promotionId) {
|
|
38
|
-
return this.#require().read(promotionId);
|
|
39
|
-
}
|
|
40
|
-
prepare(record) {
|
|
41
|
-
return this.#require().prepare(record);
|
|
42
|
-
}
|
|
43
|
-
markPublished(record) {
|
|
44
|
-
return this.#require().markPublished(record);
|
|
45
|
-
}
|
|
46
|
-
list(projectId) {
|
|
47
|
-
return this.#require().list(projectId);
|
|
48
|
-
}
|
|
49
|
-
#require() {
|
|
50
|
-
if (!this.#delegate)
|
|
51
|
-
throw new Error('Overlay Pack Promotion storage is not active');
|
|
52
|
-
return this.#delegate;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export class DatabaseOverlayPackPromotionRepository {
|
|
56
|
-
database;
|
|
57
|
-
model;
|
|
58
|
-
constructor(database, model) {
|
|
59
|
-
this.database = database;
|
|
60
|
-
this.model = model;
|
|
61
|
-
}
|
|
62
|
-
async read(promotionId) {
|
|
63
|
-
const records = parseRows(await this.model.select().where({ promotion_id: required(promotionId, 'promotionId') }));
|
|
64
|
-
return records.at(-1);
|
|
65
|
-
}
|
|
66
|
-
async prepare(record) {
|
|
67
|
-
const canonical = canonicalOverlayPackPromotionRecord(record);
|
|
68
|
-
return await this.#insert(canonical, 0);
|
|
69
|
-
}
|
|
70
|
-
async markPublished(record) {
|
|
71
|
-
const canonical = canonicalOverlayPackPromotionRecord(record);
|
|
72
|
-
return await this.#insert(canonical, 1);
|
|
73
|
-
}
|
|
74
|
-
async list(projectId) {
|
|
75
|
-
const rows = await this.model.select().where({ project_id: required(projectId, 'projectId') });
|
|
76
|
-
const byPromotion = new Map();
|
|
77
|
-
for (const row of rows) {
|
|
78
|
-
const promotionId = required(row.promotion_id, 'promotionId');
|
|
79
|
-
byPromotion.set(promotionId, [...(byPromotion.get(promotionId) ?? []), row]);
|
|
80
|
-
}
|
|
81
|
-
return Object.freeze([...byPromotion.values()].map(group => parseRows(group).at(-1))
|
|
82
|
-
.sort((left, right) => compareCanonicalWorkroomText(left.promotionId, right.promotionId)));
|
|
83
|
-
}
|
|
84
|
-
async #insert(record, stage) {
|
|
85
|
-
try {
|
|
86
|
-
return await this.database.transaction(async (transaction) => {
|
|
87
|
-
const current = parseRows(await transaction.select('workroom_overlay_pack_promotions')
|
|
88
|
-
.where({ promotion_id: record.promotionId }));
|
|
89
|
-
const latest = current.at(-1);
|
|
90
|
-
if (latest?.status === 'published') {
|
|
91
|
-
if (latest.digest !== record.digest && latest.commandDigest !== record.commandDigest) {
|
|
92
|
-
throw new Error('Overlay Pack promotion publication drift');
|
|
93
|
-
}
|
|
94
|
-
return latest;
|
|
95
|
-
}
|
|
96
|
-
if (latest && stage === 0) {
|
|
97
|
-
if (latest.digest !== record.digest)
|
|
98
|
-
throw new Error('Overlay Pack promotion identity drift');
|
|
99
|
-
return latest;
|
|
100
|
-
}
|
|
101
|
-
if (stage === 1) {
|
|
102
|
-
if (!latest || latest.status !== 'prepared'
|
|
103
|
-
|| latest.commandDigest !== record.commandDigest) {
|
|
104
|
-
throw new Error('Overlay Pack promotion prepared record is unavailable or stale');
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
await transaction.insertMany('workroom_overlay_pack_promotions', [toRow(record, stage)]);
|
|
108
|
-
return record;
|
|
109
|
-
}, { isolationLevel: 'SERIALIZABLE' });
|
|
110
|
-
}
|
|
111
|
-
catch (error) {
|
|
112
|
-
if (isDomainError(error))
|
|
113
|
-
throw error;
|
|
114
|
-
const winner = await this.read(record.promotionId);
|
|
115
|
-
if (winner?.digest === record.digest)
|
|
116
|
-
return winner;
|
|
117
|
-
if (winner && stage === 0 && winner.commandDigest === record.commandDigest)
|
|
118
|
-
return winner;
|
|
119
|
-
throw error;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
export const WORKROOM_OVERLAY_PACK_PROMOTIONS_MODEL = {
|
|
124
|
-
id: { type: 'text', primary: true, nullable: false },
|
|
125
|
-
promotion_id: { type: 'text', nullable: false },
|
|
126
|
-
project_id: { type: 'text', nullable: false },
|
|
127
|
-
stage: { type: 'integer', nullable: false },
|
|
128
|
-
command_digest: { type: 'text', nullable: false },
|
|
129
|
-
record_digest: { type: 'text', nullable: false },
|
|
130
|
-
record_json: { type: 'text', nullable: false },
|
|
131
|
-
};
|
|
132
|
-
export function defineOverlayPackPromotionDatabaseModel(database) {
|
|
133
|
-
database.define('workroom_overlay_pack_promotions', WORKROOM_OVERLAY_PACK_PROMOTIONS_MODEL);
|
|
134
|
-
}
|
|
135
|
-
function parseRows(rows) {
|
|
136
|
-
const sorted = [...rows].sort((left, right) => integer(left.stage, 'stage') - integer(right.stage, 'stage'));
|
|
137
|
-
if (sorted.length > 2)
|
|
138
|
-
throw new Error('Overlay Pack Promotion database stage overflow');
|
|
139
|
-
const records = sorted.map((row, stage) => {
|
|
140
|
-
exactRow(row);
|
|
141
|
-
if (integer(row.stage, 'stage') !== stage || typeof row.record_json !== 'string') {
|
|
142
|
-
throw new Error('Overlay Pack Promotion database row binding drift');
|
|
143
|
-
}
|
|
144
|
-
const record = canonicalOverlayPackPromotionRecord(JSON.parse(row.record_json));
|
|
145
|
-
if (row.promotion_id !== record.promotionId || row.project_id !== record.projectId
|
|
146
|
-
|| row.command_digest !== record.commandDigest || row.record_digest !== record.digest
|
|
147
|
-
|| canonicalWorkroomJson(record) !== row.record_json
|
|
148
|
-
|| (stage === 0) !== (record.status === 'prepared')) {
|
|
149
|
-
throw new Error('Overlay Pack Promotion database record drift');
|
|
150
|
-
}
|
|
151
|
-
return record;
|
|
152
|
-
});
|
|
153
|
-
if (records.length === 2) {
|
|
154
|
-
const [prepared, published] = records;
|
|
155
|
-
if (prepared?.status !== 'prepared' || published?.status !== 'published'
|
|
156
|
-
|| prepared.commandDigest !== published.commandDigest) {
|
|
157
|
-
throw new Error('Overlay Pack Promotion database two-stage chain drift');
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return Object.freeze(records);
|
|
161
|
-
}
|
|
162
|
-
function toRow(record, stage) {
|
|
163
|
-
return {
|
|
164
|
-
id: `${createHash('sha256').update(record.promotionId).digest('hex')}:${stage}`,
|
|
165
|
-
promotion_id: record.promotionId,
|
|
166
|
-
project_id: record.projectId,
|
|
167
|
-
stage,
|
|
168
|
-
command_digest: record.commandDigest,
|
|
169
|
-
record_digest: record.digest,
|
|
170
|
-
record_json: canonicalWorkroomJson(record),
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function exactRow(row) {
|
|
174
|
-
const keys = ['id', 'promotion_id', 'project_id', 'stage', 'command_digest', 'record_digest', 'record_json'];
|
|
175
|
-
if (Object.keys(row).length !== keys.length || keys.some(key => !Object.hasOwn(row, key))) {
|
|
176
|
-
throw new Error('Overlay Pack Promotion database row exact schema drift');
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function canonicalIds(values) {
|
|
180
|
-
const ids = values.map(value => required(value, 'promotionId')).sort();
|
|
181
|
-
if (new Set(ids).size !== ids.length)
|
|
182
|
-
throw new Error('Overlay Pack Promotion activation contains duplicate ids');
|
|
183
|
-
return ids;
|
|
184
|
-
}
|
|
185
|
-
function isPromotionPrefix(source, target) {
|
|
186
|
-
return canonicalWorkroomJson(source) === canonicalWorkroomJson(target)
|
|
187
|
-
|| (source.status === 'prepared' && target.status === 'published'
|
|
188
|
-
&& source.commandDigest === target.commandDigest);
|
|
189
|
-
}
|
|
190
|
-
function required(value, label) {
|
|
191
|
-
if (typeof value !== 'string' || !value.trim() || value !== value.trim())
|
|
192
|
-
throw new Error(`${label} is invalid`);
|
|
193
|
-
return value;
|
|
194
|
-
}
|
|
195
|
-
function integer(value, label) {
|
|
196
|
-
if (!Number.isSafeInteger(value) || Number(value) < 0)
|
|
197
|
-
throw new Error(`${label} is invalid`);
|
|
198
|
-
return Number(value);
|
|
199
|
-
}
|
|
200
|
-
function isDomainError(error) {
|
|
201
|
-
return error instanceof Error && /Overlay Pack promotion/u.test(error.message);
|
|
202
|
-
}
|
|
203
|
-
//# sourceMappingURL=database-overlay-pack-promotion-repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"database-overlay-pack-promotion-repository.js","sourceRoot":"","sources":["../../src/plugin-runtime/database-overlay-pack-promotion-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,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,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,aAAa,CAAC,CAAC;IAC9F,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,KAAK,YAAY,KAAK,IAAI,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { WorkroomDeliveryDispatch, WorkroomDeliveryObservation, WorkroomDeliveryProviderPort, WorkroomDeliveryReadiness, WorkroomDeliveryRequest } from './workroom-delivery-gateway.js';
|
|
2
|
-
/** Registered by the trusted control plane after a candidate build, never supplied by an Agent tool. */
|
|
3
|
-
export interface GitHubActionsCandidateBinding {
|
|
4
|
-
readonly runId: number;
|
|
5
|
-
readonly runAttempt: number;
|
|
6
|
-
readonly artifactId: number;
|
|
7
|
-
readonly artifactName: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GitHubActionsDeliveryOptions {
|
|
10
|
-
readonly repository: string;
|
|
11
|
-
readonly repositoryId: number;
|
|
12
|
-
readonly workflowId: number;
|
|
13
|
-
readonly workflowPath: string;
|
|
14
|
-
/** A protected, immutable tag; GitHub dispatch takes a branch/tag, not an arbitrary commit. */
|
|
15
|
-
readonly workflowRef: string;
|
|
16
|
-
readonly workflowSha: string;
|
|
17
|
-
readonly actorIds: readonly number[];
|
|
18
|
-
readonly requiredBuildJobs: readonly string[];
|
|
19
|
-
readonly requiredSmokeJobs: readonly string[];
|
|
20
|
-
readonly claimDirectory: string;
|
|
21
|
-
readonly token: () => Promise<string>;
|
|
22
|
-
readonly resolveCandidate: (request: WorkroomDeliveryRequest) => Promise<GitHubActionsCandidateBinding>;
|
|
23
|
-
readonly fetch?: typeof fetch;
|
|
24
|
-
readonly now?: () => number;
|
|
25
|
-
readonly maxArtifactBytes?: number;
|
|
26
|
-
}
|
|
27
|
-
/** Single-host durable dispatch claims. A claim is never deleted or retried, including on response loss. */
|
|
28
|
-
export declare class GitHubActionsDeliveryProvider implements WorkroomDeliveryProviderPort {
|
|
29
|
-
#private;
|
|
30
|
-
readonly provider: Readonly<{
|
|
31
|
-
id: string;
|
|
32
|
-
digest: string;
|
|
33
|
-
}>;
|
|
34
|
-
constructor(options: GitHubActionsDeliveryOptions);
|
|
35
|
-
/** Read-only connectivity check. This does not prove write permissions or a real candidate smoke. */
|
|
36
|
-
verifyConfiguration(signal: AbortSignal): Promise<void>;
|
|
37
|
-
inspect(request: WorkroomDeliveryRequest, signal: AbortSignal): Promise<WorkroomDeliveryReadiness>;
|
|
38
|
-
dispatch(request: WorkroomDeliveryDispatch & {
|
|
39
|
-
evidenceRef: string;
|
|
40
|
-
evidenceDigest: string;
|
|
41
|
-
}, signal: AbortSignal): Promise<WorkroomDeliveryObservation>;
|
|
42
|
-
query(request: WorkroomDeliveryDispatch, signal: AbortSignal): Promise<WorkroomDeliveryObservation>;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=github-actions-delivery-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-actions-delivery-provider.d.ts","sourceRoot":"","sources":["../../src/plugin-runtime/github-actions-delivery-provider.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9L,wGAAwG;AACxG,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AACD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,C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,OAAO,EAAE,wBAAwB,GAAG;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAwBxJ,KAAK,CAAC,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC;CA2B1G"}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
import { mkdir, open, readFile } from 'node:fs/promises';
|
|
3
|
-
import { join } from 'node:path';
|
|
4
|
-
import { digestCanonicalWorkroomValue as digest } from '../workroom/canonical-value.js';
|
|
5
|
-
/** Single-host durable dispatch claims. A claim is never deleted or retried, including on response loss. */
|
|
6
|
-
export class GitHubActionsDeliveryProvider {
|
|
7
|
-
provider;
|
|
8
|
-
#options;
|
|
9
|
-
constructor(options) {
|
|
10
|
-
if (!/^[\w.-]+\/[\w.-]+$/.test(options.repository) || !/^[a-f0-9]{40}$/.test(options.workflowSha)
|
|
11
|
-
|| !options.workflowRef.startsWith('refs/tags/') || !options.workflowPath.startsWith('.github/workflows/')
|
|
12
|
-
|| !Number.isSafeInteger(options.repositoryId) || !Number.isSafeInteger(options.workflowId)
|
|
13
|
-
|| options.actorIds.length === 0 || options.requiredBuildJobs.length === 0 || options.requiredSmokeJobs.length === 0
|
|
14
|
-
|| new Set(options.requiredBuildJobs).size !== options.requiredBuildJobs.length
|
|
15
|
-
|| new Set(options.requiredSmokeJobs).size !== options.requiredSmokeJobs.length)
|
|
16
|
-
throw new Error('Invalid trusted Actions profile');
|
|
17
|
-
this.#options = { ...options, actorIds: [...options.actorIds], requiredBuildJobs: [...options.requiredBuildJobs], requiredSmokeJobs: [...options.requiredSmokeJobs] };
|
|
18
|
-
const { repository, repositoryId, workflowId, workflowPath, workflowRef, workflowSha, actorIds, requiredBuildJobs, requiredSmokeJobs } = this.#options;
|
|
19
|
-
this.provider = Object.freeze({ id: `github-actions:${repositoryId}:${workflowId}`, digest: digest({ repository, repositoryId, workflowId, workflowPath, workflowRef, workflowSha, actorIds, requiredBuildJobs, requiredSmokeJobs }) });
|
|
20
|
-
}
|
|
21
|
-
#now() { return (this.#options.now ?? Date.now)(); }
|
|
22
|
-
#base() { return `https://api.github.com/repos/${this.#options.repository}`; }
|
|
23
|
-
async #api(path, signal, body, beforeSend) {
|
|
24
|
-
const token = await this.#options.token();
|
|
25
|
-
signal.throwIfAborted();
|
|
26
|
-
beforeSend?.();
|
|
27
|
-
const response = await (this.#options.fetch ?? fetch)(this.#base() + path, {
|
|
28
|
-
method: body === undefined ? 'GET' : 'POST', redirect: 'error',
|
|
29
|
-
signal: AbortSignal.any([signal, AbortSignal.timeout(30_000)]),
|
|
30
|
-
headers: { Accept: 'application/vnd.github+json', Authorization: `Bearer ${token}`, 'X-GitHub-Api-Version': '2022-11-28', ...(body === undefined ? {} : { 'Content-Type': 'application/json' }) },
|
|
31
|
-
...(body === undefined ? {} : { body: JSON.stringify(body) }),
|
|
32
|
-
});
|
|
33
|
-
if (!response.ok)
|
|
34
|
-
throw new Error(`GitHub Actions API returned ${response.status}`);
|
|
35
|
-
return response.status === 204 ? undefined : await response.json();
|
|
36
|
-
}
|
|
37
|
-
/** Read-only connectivity check. This does not prove write permissions or a real candidate smoke. */
|
|
38
|
-
async verifyConfiguration(signal) {
|
|
39
|
-
const repository = await this.#api('', signal);
|
|
40
|
-
const workflow = await this.#api(`/actions/workflows/${this.#options.workflowId}`, signal);
|
|
41
|
-
const ref = await this.#api(`/commits/${encodeURIComponent(this.#options.workflowRef)}`, signal);
|
|
42
|
-
if (repository.id !== this.#options.repositoryId || workflow.id !== this.#options.workflowId
|
|
43
|
-
|| workflow.path !== this.#options.workflowPath || workflow.state !== 'active' || ref.sha !== this.#options.workflowSha)
|
|
44
|
-
throw new Error('Actions configuration not ready');
|
|
45
|
-
}
|
|
46
|
-
#target(request) {
|
|
47
|
-
if (request.target.repositoryId !== String(this.#options.repositoryId)
|
|
48
|
-
|| request.target.environment !== 'github-actions-smoke'
|
|
49
|
-
|| request.target.pipelineRef !== `${this.#options.workflowPath}@${this.#options.workflowSha}`
|
|
50
|
-
|| !/^[a-f0-9]{40}$/.test(request.target.headSha)
|
|
51
|
-
|| !/^sha256:[a-f0-9]{64}$/.test(request.target.artifactDigest))
|
|
52
|
-
throw new Error('Actions delivery target binding mismatch');
|
|
53
|
-
}
|
|
54
|
-
#run(run, title) {
|
|
55
|
-
if (run.workflow_id !== this.#options.workflowId || run.path.split('@')[0] !== this.#options.workflowPath
|
|
56
|
-
|| run.head_sha !== this.#options.workflowSha || run.event !== 'workflow_dispatch'
|
|
57
|
-
|| run.repository.id !== this.#options.repositoryId || run.head_repository.id !== this.#options.repositoryId
|
|
58
|
-
|| !this.#options.actorIds.includes(run.actor.id) || run.display_title !== title
|
|
59
|
-
|| !Number.isSafeInteger(run.run_attempt) || run.run_attempt < 1)
|
|
60
|
-
throw new Error('Untrusted Actions run provenance');
|
|
61
|
-
}
|
|
62
|
-
async #jobs(run, required, signal) {
|
|
63
|
-
const jobs = [];
|
|
64
|
-
for (let page = 1; page <= 20; page++) {
|
|
65
|
-
const result = await this.#api(`/actions/runs/${run.id}/attempts/${run.run_attempt}/jobs?per_page=100&page=${page}`, signal);
|
|
66
|
-
jobs.push(...result.jobs);
|
|
67
|
-
if (jobs.length >= result.total_count)
|
|
68
|
-
break;
|
|
69
|
-
if (page === 20 || result.jobs.length === 0)
|
|
70
|
-
throw new Error('Actions job list incomplete');
|
|
71
|
-
}
|
|
72
|
-
return required.map(name => {
|
|
73
|
-
const matches = jobs.filter(job => job.name === name);
|
|
74
|
-
if (matches.length !== 1)
|
|
75
|
-
throw new Error(`Missing or duplicate required Actions job: ${name}`);
|
|
76
|
-
const job = matches[0];
|
|
77
|
-
if (job.run_id !== run.id || job.run_attempt !== run.run_attempt || job.head_sha !== run.head_sha)
|
|
78
|
-
throw new Error('Actions job provenance mismatch');
|
|
79
|
-
return { id: `${run.id}:${run.run_attempt}:${name}`, status: job.status !== 'completed' ? 'pending' : job.conclusion === 'success' ? 'passed' : 'failed' };
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
async #artifact(binding, request, signal) {
|
|
83
|
-
const artifact = await this.#api(`/actions/artifacts/${binding.artifactId}`, signal);
|
|
84
|
-
if (artifact.id !== binding.artifactId || artifact.name !== binding.artifactName || artifact.expired
|
|
85
|
-
|| artifact.digest !== request.target.artifactDigest || artifact.workflow_run.id !== binding.runId
|
|
86
|
-
|| artifact.workflow_run.repository_id !== this.#options.repositoryId || artifact.workflow_run.head_repository_id !== this.#options.repositoryId
|
|
87
|
-
|| artifact.workflow_run.head_sha !== this.#options.workflowSha)
|
|
88
|
-
throw new Error('Candidate artifact provenance or digest mismatch');
|
|
89
|
-
const maximum = this.#options.maxArtifactBytes ?? 256 * 1024 * 1024;
|
|
90
|
-
if (!Number.isSafeInteger(artifact.size_in_bytes) || artifact.size_in_bytes < 1 || artifact.size_in_bytes > maximum)
|
|
91
|
-
throw new Error('Candidate artifact exceeds download budget');
|
|
92
|
-
const transport = this.#options.fetch ?? fetch;
|
|
93
|
-
const downloadSignal = AbortSignal.any([signal, AbortSignal.timeout(60_000)]);
|
|
94
|
-
const redirect = await transport(this.#base() + `/actions/artifacts/${artifact.id}/zip`, { redirect: 'manual', signal: downloadSignal, headers: { Authorization: `Bearer ${await this.#options.token()}`, 'X-GitHub-Api-Version': '2022-11-28' } });
|
|
95
|
-
if (redirect.status !== 302)
|
|
96
|
-
throw new Error('Expected GitHub artifact download redirect');
|
|
97
|
-
const location = new URL(redirect.headers.get('location') ?? '');
|
|
98
|
-
if (location.protocol !== 'https:' || location.username || location.password)
|
|
99
|
-
throw new Error('Invalid artifact download URL');
|
|
100
|
-
// Signed storage URL receives no GitHub credentials; never follow a second redirect.
|
|
101
|
-
const response = await transport(location, { redirect: 'error', signal: downloadSignal });
|
|
102
|
-
if (!response.ok || !response.body)
|
|
103
|
-
throw new Error('Artifact download failed');
|
|
104
|
-
const hash = createHash('sha256');
|
|
105
|
-
let size = 0;
|
|
106
|
-
const reader = response.body.getReader();
|
|
107
|
-
try {
|
|
108
|
-
for (;;) {
|
|
109
|
-
const chunk = await reader.read();
|
|
110
|
-
if (chunk.done)
|
|
111
|
-
break;
|
|
112
|
-
size += chunk.value.byteLength;
|
|
113
|
-
if (size > maximum)
|
|
114
|
-
throw new Error('Artifact stream exceeds download budget');
|
|
115
|
-
hash.update(chunk.value);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
finally {
|
|
119
|
-
await reader.cancel();
|
|
120
|
-
}
|
|
121
|
-
if (`sha256:${hash.digest('hex')}` !== artifact.digest)
|
|
122
|
-
throw new Error('Downloaded artifact digest mismatch');
|
|
123
|
-
return artifact;
|
|
124
|
-
}
|
|
125
|
-
async inspect(request, signal) {
|
|
126
|
-
this.#target(request);
|
|
127
|
-
const binding = await this.#options.resolveCandidate(request);
|
|
128
|
-
if (binding.artifactName !== `candidate-${request.target.headSha}-${binding.runAttempt}`)
|
|
129
|
-
throw new Error('Artifact name does not bind the build attempt');
|
|
130
|
-
const run = await this.#api(`/actions/runs/${binding.runId}`, signal);
|
|
131
|
-
this.#run(run, `self-delivery:build:${request.target.headSha}`);
|
|
132
|
-
if (run.id !== binding.runId || run.run_attempt !== binding.runAttempt || run.status !== 'completed' || run.conclusion !== 'success')
|
|
133
|
-
throw new Error('Candidate build attempt is stale or unsuccessful');
|
|
134
|
-
const checks = await this.#jobs(run, this.#options.requiredBuildJobs, signal);
|
|
135
|
-
const artifact = await this.#artifact(binding, request, signal);
|
|
136
|
-
const evidence = { runId: run.id, runAttempt: run.run_attempt, workflowSha: run.head_sha, candidateHash: request.candidateHash, target: request.target, checks, artifactId: artifact.id, artifactDigest: artifact.digest };
|
|
137
|
-
const now = this.#now();
|
|
138
|
-
return { target: request.target, candidateHash: request.candidateHash, targetDigest: request.targetDigest, evidenceRef: `github-actions:${run.id}:${run.run_attempt}:${artifact.id}`, evidenceDigest: digest(evidence), checks, observedAt: now, expiresAt: now + 60_000 };
|
|
139
|
-
}
|
|
140
|
-
#key(request) { return digest({ projectId: request.projectId, idempotencyKey: request.idempotencyKey }).replace(/[^a-zA-Z0-9]/g, ''); }
|
|
141
|
-
#claimValue(request) { return JSON.stringify({ provider: this.provider, projectId: request.projectId, effectId: request.effectId, intentDigest: request.intentDigest, candidateHash: request.candidateHash, target: request.target, idempotencyKey: request.idempotencyKey }); }
|
|
142
|
-
async #claim(request) {
|
|
143
|
-
await mkdir(this.#options.claimDirectory, { recursive: true, mode: 0o700 });
|
|
144
|
-
const path = join(this.#options.claimDirectory, this.#key(request) + '.json');
|
|
145
|
-
let handle;
|
|
146
|
-
try {
|
|
147
|
-
handle = await open(path, 'wx', 0o600);
|
|
148
|
-
}
|
|
149
|
-
catch (error) {
|
|
150
|
-
if (error.code !== 'EEXIST')
|
|
151
|
-
throw error;
|
|
152
|
-
if (await readFile(path, 'utf8') !== this.#claimValue(request))
|
|
153
|
-
throw new Error('Actions claim collision or incomplete durable claim', { cause: error });
|
|
154
|
-
return false;
|
|
155
|
-
}
|
|
156
|
-
try {
|
|
157
|
-
await handle.writeFile(this.#claimValue(request));
|
|
158
|
-
await handle.sync();
|
|
159
|
-
}
|
|
160
|
-
finally {
|
|
161
|
-
await handle.close();
|
|
162
|
-
}
|
|
163
|
-
if (process.platform !== 'win32') {
|
|
164
|
-
const directory = await open(this.#options.claimDirectory, 'r');
|
|
165
|
-
try {
|
|
166
|
-
await directory.sync();
|
|
167
|
-
}
|
|
168
|
-
finally {
|
|
169
|
-
await directory.close();
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
async dispatch(request, signal) {
|
|
175
|
-
this.#target(request);
|
|
176
|
-
// An existing claim always goes directly to read-only reconciliation, even after authorization expires.
|
|
177
|
-
try {
|
|
178
|
-
const existing = await readFile(join(this.#options.claimDirectory, this.#key(request) + '.json'), 'utf8');
|
|
179
|
-
if (existing !== this.#claimValue(request))
|
|
180
|
-
throw new Error('Actions claim collision');
|
|
181
|
-
return this.query(request, signal);
|
|
182
|
-
}
|
|
183
|
-
catch (error) {
|
|
184
|
-
if (error.code !== 'ENOENT')
|
|
185
|
-
throw error;
|
|
186
|
-
}
|
|
187
|
-
const evidence = await this.inspect(request, signal);
|
|
188
|
-
if (evidence.evidenceRef !== request.evidenceRef || evidence.evidenceDigest !== request.evidenceDigest || evidence.checks.some(item => item.status !== 'passed') || request.authorizationExpiresAt <= this.#now())
|
|
189
|
-
throw new Error('Actions dispatch evidence or authorization changed');
|
|
190
|
-
const ref = await this.#api(`/commits/${encodeURIComponent(this.#options.workflowRef)}`, signal);
|
|
191
|
-
if (ref.sha !== this.#options.workflowSha)
|
|
192
|
-
throw new Error('Trusted workflow ref moved');
|
|
193
|
-
if (!await this.#claim(request))
|
|
194
|
-
return this.query(request, signal);
|
|
195
|
-
const binding = await this.#options.resolveCandidate(request);
|
|
196
|
-
if (`github-actions:${binding.runId}:${binding.runAttempt}:${binding.artifactId}` !== evidence.evidenceRef
|
|
197
|
-
|| binding.artifactName !== `candidate-${request.target.headSha}-${binding.runAttempt}`)
|
|
198
|
-
throw new Error('Candidate artifact binding changed before dispatch');
|
|
199
|
-
// Any error after the durable claim is intentionally query-only. Dispatch has no native idempotency.
|
|
200
|
-
try {
|
|
201
|
-
await this.#api(`/actions/workflows/${this.#options.workflowId}/dispatches`, signal, { ref: this.#options.workflowRef, inputs: { mode: 'smoke', candidate_sha: request.target.headSha, operation_key: this.#key(request), artifact_id: String(binding.artifactId), artifact_digest: request.target.artifactDigest } }, () => {
|
|
202
|
-
if (request.authorizationExpiresAt <= this.#now())
|
|
203
|
-
throw new Error('Actions authorization expired before dispatch');
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
catch {
|
|
207
|
-
return this.#observation(request, undefined, 'unknown', 'unknown');
|
|
208
|
-
}
|
|
209
|
-
return this.query(request, signal);
|
|
210
|
-
}
|
|
211
|
-
async query(request, signal) {
|
|
212
|
-
this.#target(request);
|
|
213
|
-
const claim = await readFile(join(this.#options.claimDirectory, this.#key(request) + '.json'), 'utf8');
|
|
214
|
-
if (claim !== this.#claimValue(request))
|
|
215
|
-
throw new Error('Actions query requires the original durable claim');
|
|
216
|
-
const title = `self-delivery:smoke:${this.#key(request)}:${request.target.headSha}:${request.target.artifactDigest}`;
|
|
217
|
-
const matches = [];
|
|
218
|
-
for (let page = 1; page <= 10; page++) {
|
|
219
|
-
const result = await this.#api(`/actions/workflows/${this.#options.workflowId}/runs?event=workflow_dispatch&head_sha=${this.#options.workflowSha}&per_page=100&page=${page}`, signal);
|
|
220
|
-
matches.push(...result.workflow_runs.filter(run => run.display_title === title));
|
|
221
|
-
if (page * 100 >= result.total_count)
|
|
222
|
-
break;
|
|
223
|
-
if (page === 10)
|
|
224
|
-
throw new Error('Actions reconciliation window incomplete; operator investigation required');
|
|
225
|
-
}
|
|
226
|
-
if (matches.length > 1)
|
|
227
|
-
throw new Error('Duplicate Actions operation runs; operator investigation required');
|
|
228
|
-
const run = matches[0];
|
|
229
|
-
if (!run)
|
|
230
|
-
return this.#observation(request, undefined, 'unknown', 'unknown');
|
|
231
|
-
this.#run(run, title);
|
|
232
|
-
// A manual rerun is a separate execution and is never silently accepted under the original dispatch.
|
|
233
|
-
if (run.run_attempt !== 1)
|
|
234
|
-
throw new Error('Actions operation was rerun; fresh authorization required');
|
|
235
|
-
if (run.status !== 'completed')
|
|
236
|
-
return this.#observation(request, run, 'running', 'pending');
|
|
237
|
-
const checks = await this.#jobs(run, this.#options.requiredSmokeJobs, signal);
|
|
238
|
-
const passed = run.conclusion === 'success' && checks.every(check => check.status === 'passed');
|
|
239
|
-
return this.#observation(request, run, passed ? 'succeeded' : 'failed', passed ? 'passed' : 'failed');
|
|
240
|
-
}
|
|
241
|
-
#observation(request, run, status, health) {
|
|
242
|
-
const ref = run ? `https://github.com/${this.#options.repository}/actions/runs/${run.id}/attempts/${run.run_attempt}` : `github-actions-operation:${this.#key(request)}`;
|
|
243
|
-
return { effectId: request.effectId, intentDigest: request.intentDigest, idempotencyKey: request.idempotencyKey, target: request.target, candidateHash: request.candidateHash, deploymentRef: ref, receiptRef: ref, status, health, observedAt: this.#now(), authenticatedBy: this.provider.id };
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
//# sourceMappingURL=github-actions-delivery-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-actions-delivery-provider.js","sourceRoot":"","sources":["../../src/plugin-runtime/github-actions-delivery-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,4BAA4B,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAuCxF,4GAA4G;AAC5G,MAAM,OAAO,6BAA6B;IAC/B,QAAQ,CAA2C;IACnD,QAAQ,CAA+B;IAChD,YAAY,OAAqC;QAC/C,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;eAC5F,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC;eACvG,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC;eACxF,OAAO,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,C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CAAC,QAAQ,CAAC,UAAU,iBAAiB,GAAG,CAAC,EAAE,aAAa,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,4BAA4B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACzK,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,aAAa,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;IACnS,CAAC;CACF"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { WorkroomEffectState, WorkroomEffectGatewayReceipt, WorkroomEffectIntentInput } from '../workroom/effect-ledger.js';
|
|
2
|
-
import type { WorkroomEffectGatewayPort } from './workroom-effect-runtime.js';
|
|
3
|
-
export type GitHubExactMergeTarget = Extract<WorkroomEffectIntentInput['operation'], {
|
|
4
|
-
kind: 'git_merge_pr';
|
|
5
|
-
}>['parameters'];
|
|
6
|
-
export interface GitHubExactMergeInspection {
|
|
7
|
-
readonly target: GitHubExactMergeTarget;
|
|
8
|
-
readonly blockers: readonly string[];
|
|
9
|
-
readonly observedAt: number;
|
|
10
|
-
}
|
|
11
|
-
export interface GitHubExactMergeInspectorPort {
|
|
12
|
-
readonly provider: Readonly<{
|
|
13
|
-
id: string;
|
|
14
|
-
digest: string;
|
|
15
|
-
}>;
|
|
16
|
-
inspect(target: GitHubExactMergeTarget, signal: AbortSignal): Promise<GitHubExactMergeInspection>;
|
|
17
|
-
}
|
|
18
|
-
export declare const workroomExactMergeInspectorToken: import("@zhin.js/plugin-runtime").Token<GitHubExactMergeInspectorPort>;
|
|
19
|
-
/**
|
|
20
|
-
* GitHub REST merge accepts a head SHA CAS, but no expected base SHA.
|
|
21
|
-
* https://docs.github.com/en/rest/pulls/pulls#merge-a-pull-request
|
|
22
|
-
* A read-before-write check cannot implement our exact-base authorization contract.
|
|
23
|
-
* This adapter intentionally exposes no PUT transport and always returns a blocker.
|
|
24
|
-
*/
|
|
25
|
-
export declare class GitHubExactMergeInspector implements GitHubExactMergeInspectorPort {
|
|
26
|
-
#private;
|
|
27
|
-
readonly options: Readonly<{
|
|
28
|
-
repository: string;
|
|
29
|
-
repositoryId: number;
|
|
30
|
-
token: () => Promise<string>;
|
|
31
|
-
fetch?: typeof fetch;
|
|
32
|
-
now?: () => number;
|
|
33
|
-
}>;
|
|
34
|
-
readonly provider: Readonly<{
|
|
35
|
-
id: string;
|
|
36
|
-
digest: string;
|
|
37
|
-
}>;
|
|
38
|
-
constructor(options: Readonly<{
|
|
39
|
-
repository: string;
|
|
40
|
-
repositoryId: number;
|
|
41
|
-
token: () => Promise<string>;
|
|
42
|
-
fetch?: typeof fetch;
|
|
43
|
-
now?: () => number;
|
|
44
|
-
}>);
|
|
45
|
-
inspect(target: GitHubExactMergeTarget, signal: AbortSignal): Promise<GitHubExactMergeInspection>;
|
|
46
|
-
}
|
|
47
|
-
/** Routes through the existing Effect journal/blocker system; never silently weakens an exact-base Gate. */
|
|
48
|
-
export declare class WorkroomExactMergeGateway implements WorkroomEffectGatewayPort {
|
|
49
|
-
#private;
|
|
50
|
-
readonly options: Readonly<{
|
|
51
|
-
resolveInspector: () => GitHubExactMergeInspectorPort | undefined;
|
|
52
|
-
fallback: WorkroomEffectGatewayPort;
|
|
53
|
-
}>;
|
|
54
|
-
constructor(options: Readonly<{
|
|
55
|
-
resolveInspector: () => GitHubExactMergeInspectorPort | undefined;
|
|
56
|
-
fallback: WorkroomEffectGatewayPort;
|
|
57
|
-
}>);
|
|
58
|
-
prepare(state: WorkroomEffectState, signal: AbortSignal): Promise<void>;
|
|
59
|
-
execute(state: WorkroomEffectState, signal: AbortSignal): Promise<WorkroomEffectGatewayReceipt>;
|
|
60
|
-
reconcile(state: WorkroomEffectState, signal: AbortSignal): Promise<WorkroomEffectGatewayReceipt>;
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=github-exact-merge-gateway.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-exact-merge-gateway.d.ts","sourceRoot":"","sources":["../../src/plugin-runtime/github-exact-merge-gateway.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACjI,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,yBAAyB,CAAC,WAAW,CAAC,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC,YAAY,CAAC,CAAC;AAC7H,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AACD,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5D,OAAO,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACnG;AACD,eAAO,MAAM,gCAAgC,wEAE5C,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,yBAA0B,YAAW,6BAA6B;;IAEjE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAA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