@proofoftech/flowsafe 0.11.0 → 0.12.0
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/CHANGELOG.md +36 -0
- package/README.md +65 -43
- package/deployment-identity-protocol.d.mts +52 -0
- package/deployment-identity-protocol.mjs +231 -0
- package/dist/agent-host/approval-resumer.d.ts +3 -3
- package/dist/agent-host/approval-resumer.d.ts.map +1 -1
- package/dist/agent-host/approval-resumer.js +6 -7
- package/dist/agent-host/approval-resumer.js.map +1 -1
- package/dist/agent-host/catalog.js +2 -2
- package/dist/agent-host/catalog.js.map +1 -1
- package/dist/agent-host/index.d.ts +2 -2
- package/dist/agent-host/index.d.ts.map +1 -1
- package/dist/agent-host/index.js.map +1 -1
- package/dist/agent-host/router.d.ts +2 -2
- package/dist/agent-host/router.d.ts.map +1 -1
- package/dist/agent-host/router.js +22 -54
- package/dist/agent-host/router.js.map +1 -1
- package/dist/agent-host/thread-host.d.ts +42 -8
- package/dist/agent-host/thread-host.d.ts.map +1 -1
- package/dist/agent-host/thread-host.js +533 -106
- package/dist/agent-host/thread-host.js.map +1 -1
- package/dist/agent-host/thread-topology.d.ts +28 -7
- package/dist/agent-host/thread-topology.d.ts.map +1 -1
- package/dist/agent-host/thread-topology.js +97 -39
- package/dist/agent-host/thread-topology.js.map +1 -1
- package/dist/agent-host/trusted-context.d.ts.map +1 -1
- package/dist/agent-host/trusted-context.js +3 -1
- package/dist/agent-host/trusted-context.js.map +1 -1
- package/dist/agent-host/types.d.ts +2 -0
- package/dist/agent-host/types.d.ts.map +1 -1
- package/dist/agent-runner/agent-run-state.d.ts +9 -8
- package/dist/agent-runner/agent-run-state.d.ts.map +1 -1
- package/dist/agent-runner/agent-run-state.js +78 -40
- package/dist/agent-runner/agent-run-state.js.map +1 -1
- package/dist/agent-runner/durable-agent-runner.d.ts +18 -16
- package/dist/agent-runner/durable-agent-runner.d.ts.map +1 -1
- package/dist/agent-runner/durable-agent-runner.js +120 -43
- package/dist/agent-runner/durable-agent-runner.js.map +1 -1
- package/dist/agent-runner/index.d.ts +1 -1
- package/dist/agent-runner/index.d.ts.map +1 -1
- package/dist/agent-runner/index.js +1 -1
- package/dist/agent-runner/index.js.map +1 -1
- package/dist/approval-api/actor-context.d.ts +67 -0
- package/dist/approval-api/actor-context.d.ts.map +1 -0
- package/dist/approval-api/actor-context.js +120 -0
- package/dist/approval-api/actor-context.js.map +1 -0
- package/dist/approval-api/contract.d.ts +12 -23
- package/dist/approval-api/contract.d.ts.map +1 -1
- package/dist/approval-api/d1-store.d.ts +7 -15
- package/dist/approval-api/d1-store.d.ts.map +1 -1
- package/dist/approval-api/d1-store.js +83 -159
- package/dist/approval-api/d1-store.js.map +1 -1
- package/dist/approval-api/grants.d.ts +3 -17
- package/dist/approval-api/grants.d.ts.map +1 -1
- package/dist/approval-api/grants.js +19 -39
- package/dist/approval-api/grants.js.map +1 -1
- package/dist/approval-api/index.d.ts +8 -8
- package/dist/approval-api/index.d.ts.map +1 -1
- package/dist/approval-api/index.js +5 -5
- package/dist/approval-api/index.js.map +1 -1
- package/dist/approval-api/principal.d.ts +29 -30
- package/dist/approval-api/principal.d.ts.map +1 -1
- package/dist/approval-api/principal.js +73 -54
- package/dist/approval-api/principal.js.map +1 -1
- package/dist/approval-api/resource-ownership.d.ts +64 -0
- package/dist/approval-api/resource-ownership.d.ts.map +1 -0
- package/dist/approval-api/resource-ownership.js +329 -0
- package/dist/approval-api/resource-ownership.js.map +1 -0
- package/dist/approval-api/retention.d.ts +6 -11
- package/dist/approval-api/retention.d.ts.map +1 -1
- package/dist/approval-api/retention.js +7 -12
- package/dist/approval-api/retention.js.map +1 -1
- package/dist/approval-api/router.d.ts +9 -8
- package/dist/approval-api/router.d.ts.map +1 -1
- package/dist/approval-api/router.js +50 -18
- package/dist/approval-api/router.js.map +1 -1
- package/dist/approval-api/service.d.ts +26 -36
- package/dist/approval-api/service.d.ts.map +1 -1
- package/dist/approval-api/service.js +104 -166
- package/dist/approval-api/service.js.map +1 -1
- package/dist/approval-api/store-factory.d.ts +19 -0
- package/dist/approval-api/store-factory.d.ts.map +1 -0
- package/dist/approval-api/store-factory.js +49 -0
- package/dist/approval-api/store-factory.js.map +1 -0
- package/dist/approval-api/store.d.ts +22 -36
- package/dist/approval-api/store.d.ts.map +1 -1
- package/dist/approval-api/store.js +48 -66
- package/dist/approval-api/store.js.map +1 -1
- package/dist/approval-api/types.d.ts +28 -22
- package/dist/approval-api/types.d.ts.map +1 -1
- package/dist/approval-api/types.js +51 -3
- package/dist/approval-api/types.js.map +1 -1
- package/dist/approval-ui/client.js +3 -3
- package/dist/approval-ui/client.js.map +1 -1
- package/dist/approval-ui/stream.d.ts +4 -4
- package/dist/approval-ui/stream.d.ts.map +1 -1
- package/dist/approval-ui/stream.js +2 -2
- package/dist/approval-ui/tips.d.ts +1 -1
- package/dist/approval-ui/tips.js +1 -1
- package/dist/approval-ui/tips.js.map +1 -1
- package/dist/approval-ui/use-approval-dashboard.d.ts +3 -3
- package/dist/approval-ui/use-approval-dashboard.js +1 -1
- package/dist/artifacts/index.d.ts +2 -3
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +9 -8
- package/dist/artifacts/index.js.map +1 -1
- package/dist/audit-export/audit-proxy.d.ts +71 -0
- package/dist/audit-export/audit-proxy.d.ts.map +1 -0
- package/dist/audit-export/audit-proxy.js +142 -0
- package/dist/audit-export/audit-proxy.js.map +1 -0
- package/dist/audit-export/index.d.ts +4 -7
- package/dist/audit-export/index.d.ts.map +1 -1
- package/dist/audit-export/index.js +1 -4
- package/dist/audit-export/index.js.map +1 -1
- package/dist/audit-export/queue-types.d.ts +5 -0
- package/dist/audit-export/queue-types.d.ts.map +1 -0
- package/dist/audit-export/queue-types.js +3 -0
- package/dist/audit-export/queue-types.js.map +1 -0
- package/dist/background-tasks/d1-storage.d.ts +9 -19
- package/dist/background-tasks/d1-storage.d.ts.map +1 -1
- package/dist/background-tasks/d1-storage.js +22 -52
- package/dist/background-tasks/d1-storage.js.map +1 -1
- package/dist/background-tasks/host.d.ts +4 -6
- package/dist/background-tasks/host.d.ts.map +1 -1
- package/dist/background-tasks/host.js +14 -17
- package/dist/background-tasks/host.js.map +1 -1
- package/dist/background-tasks/index.d.ts +1 -1
- package/dist/background-tasks/index.d.ts.map +1 -1
- package/dist/background-tasks/index.js +3 -3
- package/dist/background-tasks/index.js.map +1 -1
- package/dist/background-tasks/routes.d.ts +8 -4
- package/dist/background-tasks/routes.d.ts.map +1 -1
- package/dist/background-tasks/routes.js +33 -31
- package/dist/background-tasks/routes.js.map +1 -1
- package/dist/deployment-identity-protocol.d.ts +3 -0
- package/dist/deployment-identity-protocol.d.ts.map +1 -0
- package/dist/deployment-identity-protocol.js +3 -0
- package/dist/deployment-identity-protocol.js.map +1 -0
- package/dist/do-runner/breakwater-keys.d.ts +7 -5
- package/dist/do-runner/breakwater-keys.d.ts.map +1 -1
- package/dist/do-runner/breakwater-keys.js +7 -5
- package/dist/do-runner/breakwater-keys.js.map +1 -1
- package/dist/do-runner/cf-types.d.ts +18 -12
- package/dist/do-runner/cf-types.d.ts.map +1 -1
- package/dist/do-runner/cf-types.js.map +1 -1
- package/dist/do-runner/d1-storage.d.ts +44 -182
- package/dist/do-runner/d1-storage.d.ts.map +1 -1
- package/dist/do-runner/d1-storage.js +102 -353
- package/dist/do-runner/d1-storage.js.map +1 -1
- package/dist/do-runner/deployment-identity.d.ts +121 -0
- package/dist/do-runner/deployment-identity.d.ts.map +1 -0
- package/dist/do-runner/deployment-identity.js +272 -0
- package/dist/do-runner/deployment-identity.js.map +1 -0
- package/dist/do-runner/do-error-response.d.ts +1 -1
- package/dist/do-runner/do-error-response.d.ts.map +1 -1
- package/dist/do-runner/do-error-response.js +7 -1
- package/dist/do-runner/do-error-response.js.map +1 -1
- package/dist/do-runner/durable-object.d.ts +23 -16
- package/dist/do-runner/durable-object.d.ts.map +1 -1
- package/dist/do-runner/durable-object.js +303 -70
- package/dist/do-runner/durable-object.js.map +1 -1
- package/dist/do-runner/execution-context.d.ts +1 -0
- package/dist/do-runner/execution-context.d.ts.map +1 -1
- package/dist/do-runner/execution-context.js +4 -7
- package/dist/do-runner/execution-context.js.map +1 -1
- package/dist/do-runner/execution-principal-header.d.ts +16 -0
- package/dist/do-runner/execution-principal-header.d.ts.map +1 -0
- package/dist/do-runner/execution-principal-header.js +20 -0
- package/dist/do-runner/execution-principal-header.js.map +1 -0
- package/dist/do-runner/hub-do.d.ts +17 -25
- package/dist/do-runner/hub-do.d.ts.map +1 -1
- package/dist/do-runner/hub-do.js +63 -59
- package/dist/do-runner/hub-do.js.map +1 -1
- package/dist/do-runner/index.d.ts +12 -10
- package/dist/do-runner/index.d.ts.map +1 -1
- package/dist/do-runner/index.js +10 -9
- package/dist/do-runner/index.js.map +1 -1
- package/dist/do-runner/init.d.ts +0 -7
- package/dist/do-runner/init.d.ts.map +1 -1
- package/dist/do-runner/init.js +1 -2
- package/dist/do-runner/init.js.map +1 -1
- package/dist/do-runner/memory-id.d.ts +8 -25
- package/dist/do-runner/memory-id.d.ts.map +1 -1
- package/dist/do-runner/memory-id.js +25 -52
- package/dist/do-runner/memory-id.js.map +1 -1
- package/dist/do-runner/path-safe-id.d.ts +2 -48
- package/dist/do-runner/path-safe-id.d.ts.map +1 -1
- package/dist/do-runner/path-safe-id.js +3 -93
- package/dist/do-runner/path-safe-id.js.map +1 -1
- package/dist/do-runner/pubsub.d.ts +1 -1
- package/dist/do-runner/pubsub.js +1 -1
- package/dist/do-runner/runtime.d.ts +47 -34
- package/dist/do-runner/runtime.d.ts.map +1 -1
- package/dist/do-runner/runtime.js +281 -143
- package/dist/do-runner/runtime.js.map +1 -1
- package/dist/do-runner/schedule-source.d.ts +81 -0
- package/dist/do-runner/schedule-source.d.ts.map +1 -0
- package/dist/do-runner/schedule-source.js +64 -0
- package/dist/do-runner/schedule-source.js.map +1 -0
- package/dist/do-runner/thread-do.d.ts +18 -32
- package/dist/do-runner/thread-do.d.ts.map +1 -1
- package/dist/do-runner/thread-do.js +52 -74
- package/dist/do-runner/thread-do.js.map +1 -1
- package/dist/goals/objective-routes.d.ts +7 -4
- package/dist/goals/objective-routes.d.ts.map +1 -1
- package/dist/goals/objective-routes.js +58 -43
- package/dist/goals/objective-routes.js.map +1 -1
- package/dist/host-kit/approval-bridge.d.ts +18 -21
- package/dist/host-kit/approval-bridge.d.ts.map +1 -1
- package/dist/host-kit/approval-bridge.js +37 -37
- package/dist/host-kit/approval-bridge.js.map +1 -1
- package/dist/host-kit/bearer-auth.d.ts +3 -4
- package/dist/host-kit/bearer-auth.d.ts.map +1 -1
- package/dist/host-kit/bearer-auth.js +7 -11
- package/dist/host-kit/bearer-auth.js.map +1 -1
- package/dist/host-kit/do-run-topology.d.ts +14 -5
- package/dist/host-kit/do-run-topology.d.ts.map +1 -1
- package/dist/host-kit/do-run-topology.js +47 -15
- package/dist/host-kit/do-run-topology.js.map +1 -1
- package/dist/host-kit/env-vars.d.ts +1 -1
- package/dist/host-kit/env-vars.js +1 -1
- package/dist/host-kit/flowsafe-worker.d.ts +149 -73
- package/dist/host-kit/flowsafe-worker.d.ts.map +1 -1
- package/dist/host-kit/flowsafe-worker.js +619 -141
- package/dist/host-kit/flowsafe-worker.js.map +1 -1
- package/dist/host-kit/host-approval-service.d.ts +62 -54
- package/dist/host-kit/host-approval-service.d.ts.map +1 -1
- package/dist/host-kit/host-approval-service.js +90 -61
- package/dist/host-kit/host-approval-service.js.map +1 -1
- package/dist/host-kit/hub-topology.d.ts +6 -7
- package/dist/host-kit/hub-topology.d.ts.map +1 -1
- package/dist/host-kit/hub-topology.js +16 -12
- package/dist/host-kit/hub-topology.js.map +1 -1
- package/dist/host-kit/index.d.ts +13 -11
- package/dist/host-kit/index.d.ts.map +1 -1
- package/dist/host-kit/index.js +9 -12
- package/dist/host-kit/index.js.map +1 -1
- package/dist/host-kit/maintenance-capability.d.ts +58 -0
- package/dist/host-kit/maintenance-capability.d.ts.map +1 -0
- package/dist/host-kit/maintenance-capability.js +268 -0
- package/dist/host-kit/maintenance-capability.js.map +1 -0
- package/dist/host-kit/memory-boundary.d.ts +4 -19
- package/dist/host-kit/memory-boundary.d.ts.map +1 -1
- package/dist/host-kit/memory-boundary.js +12 -27
- package/dist/host-kit/memory-boundary.js.map +1 -1
- package/dist/host-kit/resource-access.d.ts +4 -0
- package/dist/host-kit/resource-access.d.ts.map +1 -0
- package/dist/host-kit/resource-access.js +12 -0
- package/dist/host-kit/resource-access.js.map +1 -0
- package/dist/host-kit/run-router.d.ts +25 -15
- package/dist/host-kit/run-router.d.ts.map +1 -1
- package/dist/host-kit/run-router.js +61 -46
- package/dist/host-kit/run-router.js.map +1 -1
- package/dist/host-kit/state-egress.d.ts +51 -0
- package/dist/host-kit/state-egress.d.ts.map +1 -0
- package/dist/host-kit/state-egress.js +120 -0
- package/dist/host-kit/state-egress.js.map +1 -0
- package/dist/host-kit/stream-router.d.ts +9 -4
- package/dist/host-kit/stream-router.d.ts.map +1 -1
- package/dist/host-kit/stream-router.js +45 -38
- package/dist/host-kit/stream-router.js.map +1 -1
- package/dist/host-kit/stream-ticket.d.ts +10 -10
- package/dist/host-kit/stream-ticket.d.ts.map +1 -1
- package/dist/host-kit/stream-ticket.js +60 -90
- package/dist/host-kit/stream-ticket.js.map +1 -1
- package/dist/host-kit/thread-topology.d.ts +17 -11
- package/dist/host-kit/thread-topology.d.ts.map +1 -1
- package/dist/host-kit/thread-topology.js +33 -59
- package/dist/host-kit/thread-topology.js.map +1 -1
- package/dist/host-kit/verifier.d.ts +6 -6
- package/dist/host-kit/verifier.d.ts.map +1 -1
- package/dist/host-kit/verifier.js +51 -119
- package/dist/host-kit/verifier.js.map +1 -1
- package/dist/http-body.d.ts +20 -0
- package/dist/http-body.d.ts.map +1 -0
- package/dist/http-body.js +67 -0
- package/dist/http-body.js.map +1 -0
- package/dist/schedules/index.d.ts +3 -2
- package/dist/schedules/index.d.ts.map +1 -1
- package/dist/schedules/index.js +5 -4
- package/dist/schedules/index.js.map +1 -1
- package/dist/schedules/router.d.ts +16 -10
- package/dist/schedules/router.d.ts.map +1 -1
- package/dist/schedules/router.js +153 -91
- package/dist/schedules/router.js.map +1 -1
- package/dist/schedules/schedules-d1.d.ts +88 -0
- package/dist/schedules/schedules-d1.d.ts.map +1 -1
- package/dist/schedules/schedules-d1.js +411 -50
- package/dist/schedules/schedules-d1.js.map +1 -1
- package/dist/schedules/target-policy.d.ts +29 -0
- package/dist/schedules/target-policy.d.ts.map +1 -0
- package/dist/schedules/target-policy.js +70 -0
- package/dist/schedules/target-policy.js.map +1 -0
- package/dist/schedules/tick.d.ts +125 -21
- package/dist/schedules/tick.d.ts.map +1 -1
- package/dist/schedules/tick.js +637 -160
- package/dist/schedules/tick.js.map +1 -1
- package/dist/signal-providers/delivery.d.ts +0 -19
- package/dist/signal-providers/delivery.d.ts.map +1 -1
- package/dist/signal-providers/delivery.js +5 -54
- package/dist/signal-providers/delivery.js.map +1 -1
- package/dist/signal-providers/github-provider.d.ts.map +1 -1
- package/dist/signal-providers/github-provider.js +9 -16
- package/dist/signal-providers/github-provider.js.map +1 -1
- package/dist/signal-providers/host-do.d.ts +3 -45
- package/dist/signal-providers/host-do.d.ts.map +1 -1
- package/dist/signal-providers/host-do.js +86 -106
- package/dist/signal-providers/host-do.js.map +1 -1
- package/dist/signal-providers/host-topology.d.ts +5 -14
- package/dist/signal-providers/host-topology.d.ts.map +1 -1
- package/dist/signal-providers/host-topology.js +11 -25
- package/dist/signal-providers/host-topology.js.map +1 -1
- package/dist/signal-providers/index.d.ts +3 -3
- package/dist/signal-providers/index.d.ts.map +1 -1
- package/dist/signal-providers/index.js +3 -3
- package/dist/signal-providers/index.js.map +1 -1
- package/dist/signal-providers/provider.d.ts +4 -5
- package/dist/signal-providers/provider.d.ts.map +1 -1
- package/dist/signal-providers/provider.js +5 -6
- package/dist/signal-providers/provider.js.map +1 -1
- package/dist/signal-providers/subscription-d1.d.ts +10 -57
- package/dist/signal-providers/subscription-d1.d.ts.map +1 -1
- package/dist/signal-providers/subscription-d1.js +208 -155
- package/dist/signal-providers/subscription-d1.js.map +1 -1
- package/dist/signal-providers/webhook-route.d.ts +28 -14
- package/dist/signal-providers/webhook-route.d.ts.map +1 -1
- package/dist/signal-providers/webhook-route.js +117 -88
- package/dist/signal-providers/webhook-route.js.map +1 -1
- package/dist/signals/client.js +8 -8
- package/dist/signals/client.js.map +1 -1
- package/dist/signals/d1-shared.js +1 -1
- package/dist/signals/d1-shared.js.map +1 -1
- package/dist/signals/index.d.ts +1 -1
- package/dist/signals/index.d.ts.map +1 -1
- package/dist/signals/index.js.map +1 -1
- package/dist/signals/notification-dispatch.d.ts +12 -6
- package/dist/signals/notification-dispatch.d.ts.map +1 -1
- package/dist/signals/notification-dispatch.js +37 -21
- package/dist/signals/notification-dispatch.js.map +1 -1
- package/dist/signals/notifications-d1.d.ts +5 -8
- package/dist/signals/notifications-d1.d.ts.map +1 -1
- package/dist/signals/notifications-d1.js +8 -13
- package/dist/signals/notifications-d1.js.map +1 -1
- package/dist/signals/router.d.ts +10 -10
- package/dist/signals/router.d.ts.map +1 -1
- package/dist/signals/router.js +49 -51
- package/dist/signals/router.js.map +1 -1
- package/dist/signals/thread-do-routes.d.ts +74 -15
- package/dist/signals/thread-do-routes.d.ts.map +1 -1
- package/dist/signals/thread-do-routes.js +484 -41
- package/dist/signals/thread-do-routes.js.map +1 -1
- package/dist/signals/thread-state-d1.d.ts.map +1 -1
- package/dist/signals/thread-state-d1.js +2 -3
- package/dist/signals/thread-state-d1.js.map +1 -1
- package/package.json +29 -6
- package/scripts/seed-deployment-identity.mjs +252 -0
- package/dist/approval-api/tenant-brand.d.ts +0 -35
- package/dist/approval-api/tenant-brand.d.ts.map +0 -1
- package/dist/approval-api/tenant-brand.js +0 -19
- package/dist/approval-api/tenant-brand.js.map +0 -1
- package/dist/approval-api/tenant-context.d.ts +0 -84
- package/dist/approval-api/tenant-context.d.ts.map +0 -1
- package/dist/approval-api/tenant-context.js +0 -112
- package/dist/approval-api/tenant-context.js.map +0 -1
- package/dist/approval-api/tenant-store.d.ts +0 -36
- package/dist/approval-api/tenant-store.d.ts.map +0 -1
- package/dist/approval-api/tenant-store.js +0 -129
- package/dist/approval-api/tenant-store.js.map +0 -1
- package/dist/do-runner/resume-ledger.d.ts +0 -48
- package/dist/do-runner/resume-ledger.d.ts.map +0 -1
- package/dist/do-runner/resume-ledger.js +0 -60
- package/dist/do-runner/resume-ledger.js.map +0 -1
- package/dist/do-runner/thread-header.d.ts +0 -31
- package/dist/do-runner/thread-header.d.ts.map +0 -1
- package/dist/do-runner/thread-header.js +0 -39
- package/dist/do-runner/thread-header.js.map +0 -1
- package/dist/host-kit/subdomain-check.d.ts +0 -23
- package/dist/host-kit/subdomain-check.d.ts.map +0 -1
- package/dist/host-kit/subdomain-check.js +0 -61
- package/dist/host-kit/subdomain-check.js.map +0 -1
- package/dist/host-kit/tenant-registry.d.ts +0 -51
- package/dist/host-kit/tenant-registry.d.ts.map +0 -1
- package/dist/host-kit/tenant-registry.js +0 -88
- package/dist/host-kit/tenant-registry.js.map +0 -1
|
@@ -1,50 +1,4 @@
|
|
|
1
1
|
export declare const PATH_SAFE_ID_PATTERN: RegExp;
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
/**
|
|
5
|
-
* The single place the `${tenantId}_${uuid}` carrier is decoded. Returns the
|
|
6
|
-
* validated tenant prefix, or undefined when the runId carries none.
|
|
7
|
-
*
|
|
8
|
-
* Centralized for the same reason RunnerRuntime composes `#runKey` in one
|
|
9
|
-
* place: this parse IS the tenant boundary, so four hand-rolled
|
|
10
|
-
* `indexOf('_')` decodes would drift (and did — one skipped the pattern
|
|
11
|
-
* check). Callers apply their own policy on undefined: the DO throws (an
|
|
12
|
-
* unscoped grant store is a cross-tenant mint), the grant provider mints an
|
|
13
|
-
* empty list, the runtime mints no isolation scope.
|
|
14
|
-
*
|
|
15
|
-
* Safe: the tenant-ID pattern excludes '_' from tenantId, so the first underscore is always
|
|
16
|
-
* the boundary regardless of what the uuid half contains.
|
|
17
|
-
*/
|
|
18
|
-
export declare function tenantOfRunId(runId: string): string | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Exact tenant-salted ownership: `id.startsWith(`${tenantId}_`)`. Exact because
|
|
21
|
-
* TENANT_ID_PATTERN excludes '_' (0x5F) and backtick (0x60), so the
|
|
22
|
-
* FIRST '_' delimiter can never occur inside a tenantId — 'acme' can never own
|
|
23
|
-
* 'acmecorp_...'. The trailing '_' is load-bearing: it is the same delimiter the
|
|
24
|
-
* `[tid_, tid\x60)` range purge keys on, so dropping it would make 'acme' match
|
|
25
|
-
* 'acmecorp'. The ONE ownership predicate for runIds and memory ids.
|
|
26
|
-
*/
|
|
27
|
-
export declare function tenantOwnsSaltedId(tenantId: string, id: string): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The MINT-path precondition: throws a GENERIC Error — the programmer-error
|
|
30
|
-
* contract, since a client never reaches a mint with a bad tenant — when
|
|
31
|
-
* `tenantId` fails TENANT_ID_PATTERN or names a RESERVED_TENANT_IDS
|
|
32
|
-
* identity. Deliberately NOT a TenantResolutionError: createTenantResolver owns
|
|
33
|
-
* that request-facing 403 contract; the mints are internal. Shared by every
|
|
34
|
-
* salted-id mint (runIds and memory ids).
|
|
35
|
-
*/
|
|
36
|
-
export declare function assertMintableTenantId(tenantId: string, caller: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* Mint a tenant-salted id `${tenantId}_${suffix}` after asserting the tenant is
|
|
39
|
-
* mintable. The single salted-id constructor shared by runIds and memory ids; a
|
|
40
|
-
* caller with its own suffix precondition (memory-id's PATH_SAFE resourceKey
|
|
41
|
-
* check) validates that BEFORE delegating here.
|
|
42
|
-
*
|
|
43
|
-
* The suffix may be a thunk (a uuid generator): it is evaluated ONLY after the
|
|
44
|
-
* tenant passes assertMintableTenantId, so a caller-supplied producer can never
|
|
45
|
-
* run its side effects — or throw and mask tenant validation — for an
|
|
46
|
-
* invalid tenant. Callers with a callback MUST pass the function, not its call,
|
|
47
|
-
* or JS argument evaluation would defeat this ordering.
|
|
48
|
-
*/
|
|
49
|
-
export declare function mintSaltedId(tenantId: string, suffix: string | (() => string), caller: string): string;
|
|
2
|
+
/** RegExp.test coerces values; public boundaries must first prove a string. */
|
|
3
|
+
export declare function isPathSafeId(value: unknown): value is string;
|
|
50
4
|
//# sourceMappingURL=path-safe-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-safe-id.d.ts","sourceRoot":"","sources":["../../src/do-runner/path-safe-id.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,oBAAoB,QAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"path-safe-id.d.ts","sourceRoot":"","sources":["../../src/do-runner/path-safe-id.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,oBAAoB,QAAuC,CAAC;AAEzE,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE5D"}
|
|
@@ -17,98 +17,8 @@
|
|
|
17
17
|
// status/resume path — a run created under one would never be addressable
|
|
18
18
|
// again. Generated UUIDs, ULIDs, nanoids, and slugs all satisfy it.
|
|
19
19
|
export const PATH_SAFE_ID_PATTERN = /^(?!\.\.?$)[A-Za-z0-9._~-]{1,200}$/;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// prefix EXACT. It is `0x30–0x39 ∪ 0x61–0x7A`, which contains no character in
|
|
24
|
-
// `[0x5F, 0x60]` — neither `_` (0x5F) nor backtick (0x60). Two consequences,
|
|
25
|
-
// both load-bearing:
|
|
26
|
-
//
|
|
27
|
-
// 1. Ownership is exact: `runId.startsWith(tenantId + '_')` cannot match
|
|
28
|
-
// another tenant ('acme' vs 'acmecorp': at index 4 one has '_' 0x5F, the
|
|
29
|
-
// other 'c' 0x63 — the delimiter cannot occur inside a tenantId).
|
|
30
|
-
// 2. The range purge is exact: `run_id >= '<tid>_' AND run_id < '<tid>' ||
|
|
31
|
-
// CHAR(0x60)` selects exactly one tenant's rows under BINARY collation
|
|
32
|
-
// (any other tenant's character at the delimiter position is < 0x5F or
|
|
33
|
-
// > 0x60, falling outside the range).
|
|
34
|
-
//
|
|
35
|
-
// Loosening this charset silently breaks BOTH properties —
|
|
36
|
-
// path-safe-id.test.ts pins it character-by-character.
|
|
37
|
-
export const TENANT_ID_PATTERN = /^[a-z0-9]{3,32}$/;
|
|
38
|
-
// Ids that collide with the TCB's own audit identity: the cron maintenance
|
|
39
|
-
// actor attributes sweeps and purges as tenantId 'system'. Never a valid
|
|
40
|
-
// tenantId ANYWHERE, enforced twice: toApprovalActor drops it at token
|
|
41
|
-
// verification, and createTenantResolver re-refuses it before any store binds
|
|
42
|
-
// or runId mints — a custom TokenVerifier (a supported seam) or a hand-built
|
|
43
|
-
// actor map handed to staticTokenVerifier never crosses toApprovalActor.
|
|
44
|
-
// (Audit-attribution collision, not privilege escalation: a
|
|
45
|
-
// SystemApprovalStore comes only from `.system()`, never from naming a
|
|
46
|
-
// tenant.) Lives in this leaf, not host-kit/tenant-registry, so approval-api
|
|
47
|
-
// can enforce it without importing host-kit against the layering; host-kit
|
|
48
|
-
// re-exports it for the public surface.
|
|
49
|
-
export const RESERVED_TENANT_IDS = ['system'];
|
|
50
|
-
/**
|
|
51
|
-
* The single place the `${tenantId}_${uuid}` carrier is decoded. Returns the
|
|
52
|
-
* validated tenant prefix, or undefined when the runId carries none.
|
|
53
|
-
*
|
|
54
|
-
* Centralized for the same reason RunnerRuntime composes `#runKey` in one
|
|
55
|
-
* place: this parse IS the tenant boundary, so four hand-rolled
|
|
56
|
-
* `indexOf('_')` decodes would drift (and did — one skipped the pattern
|
|
57
|
-
* check). Callers apply their own policy on undefined: the DO throws (an
|
|
58
|
-
* unscoped grant store is a cross-tenant mint), the grant provider mints an
|
|
59
|
-
* empty list, the runtime mints no isolation scope.
|
|
60
|
-
*
|
|
61
|
-
* Safe: the tenant-ID pattern excludes '_' from tenantId, so the first underscore is always
|
|
62
|
-
* the boundary regardless of what the uuid half contains.
|
|
63
|
-
*/
|
|
64
|
-
export function tenantOfRunId(runId) {
|
|
65
|
-
const separator = runId.indexOf('_');
|
|
66
|
-
if (separator <= 0)
|
|
67
|
-
return undefined;
|
|
68
|
-
const tenantId = runId.slice(0, separator);
|
|
69
|
-
return TENANT_ID_PATTERN.test(tenantId) ? tenantId : undefined;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Exact tenant-salted ownership: `id.startsWith(`${tenantId}_`)`. Exact because
|
|
73
|
-
* TENANT_ID_PATTERN excludes '_' (0x5F) and backtick (0x60), so the
|
|
74
|
-
* FIRST '_' delimiter can never occur inside a tenantId — 'acme' can never own
|
|
75
|
-
* 'acmecorp_...'. The trailing '_' is load-bearing: it is the same delimiter the
|
|
76
|
-
* `[tid_, tid\x60)` range purge keys on, so dropping it would make 'acme' match
|
|
77
|
-
* 'acmecorp'. The ONE ownership predicate for runIds and memory ids.
|
|
78
|
-
*/
|
|
79
|
-
export function tenantOwnsSaltedId(tenantId, id) {
|
|
80
|
-
return id.startsWith(`${tenantId}_`);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* The MINT-path precondition: throws a GENERIC Error — the programmer-error
|
|
84
|
-
* contract, since a client never reaches a mint with a bad tenant — when
|
|
85
|
-
* `tenantId` fails TENANT_ID_PATTERN or names a RESERVED_TENANT_IDS
|
|
86
|
-
* identity. Deliberately NOT a TenantResolutionError: createTenantResolver owns
|
|
87
|
-
* that request-facing 403 contract; the mints are internal. Shared by every
|
|
88
|
-
* salted-id mint (runIds and memory ids).
|
|
89
|
-
*/
|
|
90
|
-
export function assertMintableTenantId(tenantId, caller) {
|
|
91
|
-
if (typeof tenantId !== 'string' || !TENANT_ID_PATTERN.test(tenantId)) {
|
|
92
|
-
throw new Error(`${caller}: tenantId '${tenantId}' violates INV-3 (^[a-z0-9]{3,32}$) — the prefix decode and range purge are only exact over that charset`);
|
|
93
|
-
}
|
|
94
|
-
if (RESERVED_TENANT_IDS.includes(tenantId)) {
|
|
95
|
-
throw new Error(`${caller}: tenantId '${tenantId}' is reserved (the TCB's own audit identity) — refusing to mint a tenant-salted id for it`);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Mint a tenant-salted id `${tenantId}_${suffix}` after asserting the tenant is
|
|
100
|
-
* mintable. The single salted-id constructor shared by runIds and memory ids; a
|
|
101
|
-
* caller with its own suffix precondition (memory-id's PATH_SAFE resourceKey
|
|
102
|
-
* check) validates that BEFORE delegating here.
|
|
103
|
-
*
|
|
104
|
-
* The suffix may be a thunk (a uuid generator): it is evaluated ONLY after the
|
|
105
|
-
* tenant passes assertMintableTenantId, so a caller-supplied producer can never
|
|
106
|
-
* run its side effects — or throw and mask tenant validation — for an
|
|
107
|
-
* invalid tenant. Callers with a callback MUST pass the function, not its call,
|
|
108
|
-
* or JS argument evaluation would defeat this ordering.
|
|
109
|
-
*/
|
|
110
|
-
export function mintSaltedId(tenantId, suffix, caller) {
|
|
111
|
-
assertMintableTenantId(tenantId, caller);
|
|
112
|
-
return `${tenantId}_${typeof suffix === 'function' ? suffix() : suffix}`;
|
|
20
|
+
/** RegExp.test coerces values; public boundaries must first prove a string. */
|
|
21
|
+
export function isPathSafeId(value) {
|
|
22
|
+
return typeof value === 'string' && PATH_SAFE_ID_PATTERN.test(value);
|
|
113
23
|
}
|
|
114
24
|
//# sourceMappingURL=path-safe-id.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-safe-id.js","sourceRoot":"","sources":["../../src/do-runner/path-safe-id.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,0EAA0E;AAC1E,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,6EAA6E;AAC7E,8EAA8E;AAC9E,gEAAgE;AAChE,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,6EAA6E;AAC7E,8EAA8E;AAC9E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,0EAA0E;AAC1E,oEAAoE;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,oCAAoC,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"path-safe-id.js","sourceRoot":"","sources":["../../src/do-runner/path-safe-id.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,0EAA0E;AAC1E,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,6EAA6E;AAC7E,8EAA8E;AAC9E,gEAAgE;AAChE,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,6EAA6E;AAC7E,8EAA8E;AAC9E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,0EAA0E;AAC1E,oEAAoE;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,oCAAoC,CAAC;AAEzE,+EAA+E;AAC/E,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -12,7 +12,7 @@ export type HostPubSub = PubSub;
|
|
|
12
12
|
*
|
|
13
13
|
* A host opts in with `init(env, { pubsub: createHostPubSub() })`, the same
|
|
14
14
|
* instance-or-absent shape every other InitOptions seam takes (`storage`,
|
|
15
|
-
* `
|
|
15
|
+
* `requestContextForRun`).
|
|
16
16
|
*/
|
|
17
17
|
export declare function createHostPubSub(): HostPubSub;
|
|
18
18
|
//# sourceMappingURL=pubsub.d.ts.map
|
package/dist/do-runner/pubsub.js
CHANGED
|
@@ -34,7 +34,7 @@ import { EventEmitterPubSub } from '@mastra/core/events';
|
|
|
34
34
|
*
|
|
35
35
|
* A host opts in with `init(env, { pubsub: createHostPubSub() })`, the same
|
|
36
36
|
* instance-or-absent shape every other InitOptions seam takes (`storage`,
|
|
37
|
-
* `
|
|
37
|
+
* `requestContextForRun`).
|
|
38
38
|
*/
|
|
39
39
|
export function createHostPubSub() {
|
|
40
40
|
return new EventEmitterPubSub();
|
|
@@ -3,8 +3,8 @@ import type { IMastraLogger } from '@mastra/core/logger';
|
|
|
3
3
|
import { RequestContext } from '@mastra/core/request-context';
|
|
4
4
|
import type { MastraCompositeStore } from '@mastra/core/storage';
|
|
5
5
|
import type { AnyWorkflow, WorkflowRunStatus } from '@mastra/core/workflows';
|
|
6
|
+
import { type ExecutionPrincipalKind } from '../approval-api/principal.js';
|
|
6
7
|
import type { HostPubSub } from './pubsub.js';
|
|
7
|
-
import { type ResumeLedger } from './resume-ledger.js';
|
|
8
8
|
export declare class UnknownWorkflowError extends Error {
|
|
9
9
|
constructor(workflowId: string);
|
|
10
10
|
}
|
|
@@ -25,6 +25,10 @@ export declare class InvalidRunRequestError extends Error {
|
|
|
25
25
|
export interface RunSummary {
|
|
26
26
|
runId: string;
|
|
27
27
|
status: WorkflowRunStatus;
|
|
28
|
+
/** Durable execution provenance used by approval reconciliation. */
|
|
29
|
+
requestedBy?: string;
|
|
30
|
+
/** Principal kind paired with `requestedBy`; absent on legacy snapshots. */
|
|
31
|
+
requestedByKind?: ExecutionPrincipalKind;
|
|
28
32
|
result?: unknown;
|
|
29
33
|
error?: string;
|
|
30
34
|
/** Suspended step paths, e.g. [['approval']]. Present when status is 'suspended'. */
|
|
@@ -100,7 +104,7 @@ export type RunLeg = {
|
|
|
100
104
|
* flowsafe approval store), never from client input, model output, or tool
|
|
101
105
|
* results.
|
|
102
106
|
*
|
|
103
|
-
* Merge semantics
|
|
107
|
+
* Merge semantics are pinned by tests against the installed Mastra core: the context provided
|
|
104
108
|
* at resume merges OVER the run's persisted context — provided keys win,
|
|
105
109
|
* persisted start-time keys survive. Omitting a key therefore does not
|
|
106
110
|
* revoke it; a provider that scopes a capability per leg must return the key
|
|
@@ -113,16 +117,9 @@ export interface RunnerRuntimeOptions {
|
|
|
113
117
|
logger?: IMastraLogger | false;
|
|
114
118
|
/** Consulted on every start/resume — see RequestContextProvider. */
|
|
115
119
|
requestContextForRun?: RequestContextProvider;
|
|
116
|
-
/**
|
|
117
|
-
* Per-run resume ledger backing RunSummary.resumeCount / RunLeg.resumeCount.
|
|
118
|
-
* Default: in-memory. The DO shell adopts a ctx.storage-backed ledger via
|
|
119
|
-
* adoptDefaultResumeLedger() so the ordinal survives eviction — an explicit
|
|
120
|
-
* ledger here wins over that adoption.
|
|
121
|
-
*/
|
|
122
|
-
resumeLedger?: ResumeLedger;
|
|
123
120
|
/**
|
|
124
121
|
* The host Durable Object's single pubsub identity from do-runner/pubsub.ts, threaded
|
|
125
|
-
* here by init() alongside storage
|
|
122
|
+
* here by init() alongside storage so a host that configures it
|
|
126
123
|
* reaches the runtime with no host change: every DO subclass already returns
|
|
127
124
|
* init()'s runtime from build(), and nothing else in the isolate can hand this
|
|
128
125
|
* object a pubsub.
|
|
@@ -136,23 +133,47 @@ export interface RunnerRuntimeOptions {
|
|
|
136
133
|
*/
|
|
137
134
|
pubsub?: HostPubSub;
|
|
138
135
|
}
|
|
139
|
-
|
|
136
|
+
/** @inline */
|
|
137
|
+
type OptionalRunRequester = {
|
|
138
|
+
/** Trusted requester id persisted with the authoritative run snapshot. */
|
|
139
|
+
requestedBy: string;
|
|
140
|
+
/** Trusted requester kind persisted alongside `requestedBy`. */
|
|
141
|
+
requestedByKind: ExecutionPrincipalKind;
|
|
142
|
+
} | {
|
|
143
|
+
requestedBy?: never;
|
|
144
|
+
requestedByKind?: never;
|
|
145
|
+
};
|
|
146
|
+
export type StartRunOptions = {
|
|
140
147
|
/**
|
|
141
|
-
* Required: the runtime never generates a runId.
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* run — unreachable by tenant purge and un-ownable by every actor.
|
|
148
|
+
* Required: the runtime never generates a runId. Hosts mint it server-side
|
|
149
|
+
* (createRunRouter) so a client can never choose the identity a run is
|
|
150
|
+
* keyed by everywhere it lands (D1 snapshot row, DO name, R2 segment,
|
|
151
|
+
* grant-list predicate). A generation fallback here would let any caller
|
|
152
|
+
* that forgets to mint create a run under an id the host never issued.
|
|
147
153
|
*/
|
|
148
154
|
runId: string;
|
|
149
155
|
inputData?: unknown;
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
/** Initial workflow state from an infrastructure-verified schedule target. */
|
|
157
|
+
initialState?: unknown;
|
|
158
|
+
/**
|
|
159
|
+
* Non-reserved application context from an infrastructure-verified schedule
|
|
160
|
+
* target. Runtime-owned keys are stripped again before execution.
|
|
161
|
+
*/
|
|
162
|
+
storedRequestContext?: Record<string, unknown>;
|
|
163
|
+
/** Host recovery token persisted with the first executed snapshot. */
|
|
164
|
+
attemptToken?: string;
|
|
165
|
+
} & OptionalRunRequester;
|
|
166
|
+
export type ResumeRunOptions = {
|
|
152
167
|
/** Suspended step id (or nested path). Optional when only one step is suspended. */
|
|
153
168
|
step?: string | string[];
|
|
154
169
|
resumeData?: unknown;
|
|
155
|
-
|
|
170
|
+
/**
|
|
171
|
+
* Host preparation that must consume the exact trusted context this resume
|
|
172
|
+
* will execute with. Runs once, inside the per-run lock, before createRun.
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
prepareExecution?: (requestContext: RequestContext) => Promise<void>;
|
|
176
|
+
} & OptionalRunRequester;
|
|
156
177
|
export declare class RunnerRuntime {
|
|
157
178
|
#private;
|
|
158
179
|
constructor(options: RunnerRuntimeOptions);
|
|
@@ -163,15 +184,6 @@ export declare class RunnerRuntime {
|
|
|
163
184
|
* than building a second feed.
|
|
164
185
|
*/
|
|
165
186
|
get pubsub(): HostPubSub | undefined;
|
|
166
|
-
/**
|
|
167
|
-
* Host-shell seam: replace the DEFAULT in-memory ledger with a durable one.
|
|
168
|
-
* The DO shell calls this with a ctx.storage-backed ledger right after
|
|
169
|
-
* build(), so every DO host gets eviction-proof ordinals without threading
|
|
170
|
-
* a parameter (a forgettable thread is how the durability guarantee rots).
|
|
171
|
-
* A ledger explicitly injected via options wins; adoption is rejected once
|
|
172
|
-
* runs may have consulted the ledger.
|
|
173
|
-
*/
|
|
174
|
-
adoptDefaultResumeLedger(ledger: ResumeLedger): void;
|
|
175
187
|
/**
|
|
176
188
|
* Register an agent that a runtime-owned workflow resolves by id.
|
|
177
189
|
*
|
|
@@ -191,11 +203,12 @@ export declare class RunnerRuntime {
|
|
|
191
203
|
resume(workflowId: string, runId: string, options?: ResumeRunOptions): Promise<RunSummary>;
|
|
192
204
|
status(workflowId: string, runId: string): Promise<RunSummary | null>;
|
|
193
205
|
/**
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
206
|
+
* Reconcile an interrupted start against the token stored in the
|
|
207
|
+
* authoritative workflow snapshot. Mastra's `createRun()` first persists a
|
|
208
|
+
* tokenless pending shell; if no executed snapshot replaced it, the shell is
|
|
209
|
+
* abandoned and must not become a successful FlowSafe run.
|
|
198
210
|
*/
|
|
199
|
-
|
|
211
|
+
recoverStartAttempt(workflowId: string, runId: string, attemptToken: string): Promise<RunSummary | null>;
|
|
200
212
|
}
|
|
213
|
+
export {};
|
|
201
214
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/do-runner/runtime.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/do-runner/runtime.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,KAAK,EAAE,U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