@shware/workflow 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/apns-relay.cjs +1 -2
- package/dist/apns-relay.d.cts +0 -2
- package/dist/apns-relay.d.cts.map +1 -1
- package/dist/apns-relay.d.mts +0 -2
- package/dist/apns-relay.d.mts.map +1 -1
- package/dist/apns-relay.mjs +1 -2
- package/dist/apns.cjs +1 -2
- package/dist/apns.d.cts +0 -2
- package/dist/apns.d.cts.map +1 -1
- package/dist/apns.d.mts +0 -2
- package/dist/apns.d.mts.map +1 -1
- package/dist/apns.mjs +1 -2
- package/dist/aws/engine-step.cjs +1 -2
- package/dist/aws/engine-step.d.cts +0 -2
- package/dist/aws/engine-step.d.cts.map +1 -1
- package/dist/aws/engine-step.d.mts +0 -2
- package/dist/aws/engine-step.d.mts.map +1 -1
- package/dist/aws/engine-step.mjs +1 -2
- package/dist/aws/function-url.cjs +1 -2
- package/dist/aws/function-url.d.cts +0 -2
- package/dist/aws/function-url.d.cts.map +1 -1
- package/dist/aws/function-url.d.mts +0 -2
- package/dist/aws/function-url.d.mts.map +1 -1
- package/dist/aws/function-url.mjs +1 -2
- package/dist/aws/index.cjs +1 -2
- package/dist/aws/index.d.cts +0 -2
- package/dist/aws/index.d.cts.map +1 -1
- package/dist/aws/index.d.mts +0 -2
- package/dist/aws/index.d.mts.map +1 -1
- package/dist/aws/index.mjs +1 -2
- package/dist/aws/instances.cjs +1 -2
- package/dist/aws/instances.d.cts +0 -2
- package/dist/aws/instances.d.cts.map +1 -1
- package/dist/aws/instances.d.mts +0 -2
- package/dist/aws/instances.d.mts.map +1 -1
- package/dist/aws/instances.mjs +1 -2
- package/dist/aws/lambda-api.cjs +1 -2
- package/dist/aws/lambda-api.d.cts +0 -2
- package/dist/aws/lambda-api.d.cts.map +1 -1
- package/dist/aws/lambda-api.d.mts +0 -2
- package/dist/aws/lambda-api.d.mts.map +1 -1
- package/dist/aws/lambda-api.mjs +1 -2
- package/dist/client.cjs +1 -2
- package/dist/client.d.cts +0 -2
- package/dist/client.d.cts.map +1 -1
- package/dist/client.d.mts +0 -2
- package/dist/client.d.mts.map +1 -1
- package/dist/client.mjs +1 -2
- package/dist/cloudflare/bindings.cjs +1 -2
- package/dist/cloudflare/bindings.d.cts +0 -2
- package/dist/cloudflare/bindings.d.cts.map +1 -1
- package/dist/cloudflare/bindings.d.mts +0 -2
- package/dist/cloudflare/bindings.d.mts.map +1 -1
- package/dist/cloudflare/bindings.mjs +1 -2
- package/dist/cloudflare/runner.cjs +1 -2
- package/dist/cloudflare/runner.d.cts +0 -2
- package/dist/cloudflare/runner.d.cts.map +1 -1
- package/dist/cloudflare/runner.d.mts +0 -2
- package/dist/cloudflare/runner.d.mts.map +1 -1
- package/dist/cloudflare/runner.mjs +1 -2
- package/dist/cloudflare/worker.cjs +1 -2
- package/dist/cloudflare/worker.d.cts +0 -2
- package/dist/cloudflare/worker.d.cts.map +1 -1
- package/dist/cloudflare/worker.d.mts +0 -2
- package/dist/cloudflare/worker.d.mts.map +1 -1
- package/dist/cloudflare/worker.mjs +1 -2
- package/dist/cloudflare/workers.d.cts +0 -2
- package/dist/cloudflare/workers.d.cts.map +1 -1
- package/dist/cloudflare/workers.d.mts +0 -2
- package/dist/cloudflare/workers.d.mts.map +1 -1
- package/dist/config.cjs +1 -2
- package/dist/config.d.cts +0 -2
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +0 -2
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -2
- package/dist/contract.cjs +1 -2
- package/dist/contract.d.cts +0 -2
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +0 -2
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.mjs +1 -2
- package/dist/dsl/action.cjs +1 -2
- package/dist/dsl/action.d.cts +0 -2
- package/dist/dsl/action.d.cts.map +1 -1
- package/dist/dsl/action.d.mts +0 -2
- package/dist/dsl/action.d.mts.map +1 -1
- package/dist/dsl/action.mjs +1 -2
- package/dist/dsl/base.cjs +1 -2
- package/dist/dsl/base.d.cts +0 -2
- package/dist/dsl/base.d.cts.map +1 -1
- package/dist/dsl/base.d.mts +0 -2
- package/dist/dsl/base.d.mts.map +1 -1
- package/dist/dsl/base.mjs +1 -2
- package/dist/dsl/bundle.cjs +1 -2
- package/dist/dsl/bundle.d.cts +0 -2
- package/dist/dsl/bundle.d.cts.map +1 -1
- package/dist/dsl/bundle.d.mts +0 -2
- package/dist/dsl/bundle.d.mts.map +1 -1
- package/dist/dsl/bundle.mjs +1 -2
- package/dist/dsl/condition.cjs +1 -2
- package/dist/dsl/condition.d.cts +0 -2
- package/dist/dsl/condition.d.cts.map +1 -1
- package/dist/dsl/condition.d.mts +0 -2
- package/dist/dsl/condition.d.mts.map +1 -1
- package/dist/dsl/condition.mjs +1 -2
- package/dist/dsl/flow.cjs +1 -2
- package/dist/dsl/flow.d.cts +0 -2
- package/dist/dsl/flow.d.cts.map +1 -1
- package/dist/dsl/flow.d.mts +0 -2
- package/dist/dsl/flow.d.mts.map +1 -1
- package/dist/dsl/flow.mjs +1 -2
- package/dist/dsl/refs.cjs +1 -2
- package/dist/dsl/refs.d.cts +0 -2
- package/dist/dsl/refs.d.cts.map +1 -1
- package/dist/dsl/refs.d.mts +0 -2
- package/dist/dsl/refs.d.mts.map +1 -1
- package/dist/dsl/refs.mjs +1 -2
- package/dist/dsl/template.cjs +1 -2
- package/dist/dsl/template.d.cts +0 -2
- package/dist/dsl/template.d.cts.map +1 -1
- package/dist/dsl/template.d.mts +0 -2
- package/dist/dsl/template.d.mts.map +1 -1
- package/dist/dsl/template.mjs +1 -2
- package/dist/dsl/trigger.cjs +1 -2
- package/dist/dsl/trigger.d.cts +0 -2
- package/dist/dsl/trigger.d.cts.map +1 -1
- package/dist/dsl/trigger.d.mts +0 -2
- package/dist/dsl/trigger.d.mts.map +1 -1
- package/dist/dsl/trigger.mjs +1 -2
- package/dist/dsl/workflow.cjs +1 -2
- package/dist/dsl/workflow.d.cts +0 -2
- package/dist/dsl/workflow.d.cts.map +1 -1
- package/dist/dsl/workflow.d.mts +0 -2
- package/dist/dsl/workflow.d.mts.map +1 -1
- package/dist/dsl/workflow.mjs +1 -2
- package/dist/email-context.cjs +1 -2
- package/dist/email-context.d.cts +0 -2
- package/dist/email-context.d.cts.map +1 -1
- package/dist/email-context.d.mts +0 -2
- package/dist/email-context.d.mts.map +1 -1
- package/dist/email-context.mjs +1 -2
- package/dist/email-sender.cjs +1 -2
- package/dist/email-sender.d.cts +0 -2
- package/dist/email-sender.d.cts.map +1 -1
- package/dist/email-sender.d.mts +0 -2
- package/dist/email-sender.d.mts.map +1 -1
- package/dist/email-sender.mjs +1 -2
- package/dist/email.cjs +1 -2
- package/dist/email.d.cts +0 -2
- package/dist/email.d.cts.map +1 -1
- package/dist/email.d.mts +0 -2
- package/dist/email.d.mts.map +1 -1
- package/dist/email.mjs +1 -2
- package/dist/engine/actions.cjs +1 -2
- package/dist/engine/actions.d.cts +0 -2
- package/dist/engine/actions.d.cts.map +1 -1
- package/dist/engine/actions.d.mts +0 -2
- package/dist/engine/actions.d.mts.map +1 -1
- package/dist/engine/actions.mjs +1 -2
- package/dist/engine/bucket.cjs +1 -2
- package/dist/engine/bucket.d.cts +0 -2
- package/dist/engine/bucket.d.cts.map +1 -1
- package/dist/engine/bucket.d.mts +0 -2
- package/dist/engine/bucket.d.mts.map +1 -1
- package/dist/engine/bucket.mjs +1 -2
- package/dist/engine/condition.cjs +1 -2
- package/dist/engine/condition.d.cts +0 -2
- package/dist/engine/condition.d.cts.map +1 -1
- package/dist/engine/condition.d.mts +0 -2
- package/dist/engine/condition.d.mts.map +1 -1
- package/dist/engine/condition.mjs +1 -2
- package/dist/engine/duration.cjs +1 -2
- package/dist/engine/duration.d.cts +0 -2
- package/dist/engine/duration.d.cts.map +1 -1
- package/dist/engine/duration.d.mts +0 -2
- package/dist/engine/duration.d.mts.map +1 -1
- package/dist/engine/duration.mjs +1 -2
- package/dist/engine/interpreter.cjs +1 -2
- package/dist/engine/interpreter.d.cts +0 -2
- package/dist/engine/interpreter.d.cts.map +1 -1
- package/dist/engine/interpreter.d.mts +0 -2
- package/dist/engine/interpreter.d.mts.map +1 -1
- package/dist/engine/interpreter.mjs +1 -2
- package/dist/engine/ports.d.cts +0 -2
- package/dist/engine/ports.d.cts.map +1 -1
- package/dist/engine/ports.d.mts +0 -2
- package/dist/engine/ports.d.mts.map +1 -1
- package/dist/engine/recipient.cjs +1 -2
- package/dist/engine/recipient.d.cts +0 -2
- package/dist/engine/recipient.d.cts.map +1 -1
- package/dist/engine/recipient.d.mts +0 -2
- package/dist/engine/recipient.d.mts.map +1 -1
- package/dist/engine/recipient.mjs +1 -2
- package/dist/engine/retry.cjs +1 -2
- package/dist/engine/retry.d.cts +0 -2
- package/dist/engine/retry.d.cts.map +1 -1
- package/dist/engine/retry.d.mts +0 -2
- package/dist/engine/retry.d.mts.map +1 -1
- package/dist/engine/retry.mjs +1 -2
- package/dist/engine/time-scale.cjs +1 -2
- package/dist/engine/time-scale.d.cts +0 -2
- package/dist/engine/time-scale.d.cts.map +1 -1
- package/dist/engine/time-scale.d.mts +0 -2
- package/dist/engine/time-scale.d.mts.map +1 -1
- package/dist/engine/time-scale.mjs +1 -2
- package/dist/engine/time-window.cjs +1 -2
- package/dist/engine/time-window.d.cts +0 -2
- package/dist/engine/time-window.d.cts.map +1 -1
- package/dist/engine/time-window.d.mts +0 -2
- package/dist/engine/time-window.d.mts.map +1 -1
- package/dist/engine/time-window.mjs +1 -2
- package/dist/fcm.cjs +1 -2
- package/dist/fcm.d.cts +0 -2
- package/dist/fcm.d.cts.map +1 -1
- package/dist/fcm.d.mts +0 -2
- package/dist/fcm.d.mts.map +1 -1
- package/dist/fcm.mjs +1 -2
- package/dist/hash.cjs +1 -2
- package/dist/hash.d.cts +0 -2
- package/dist/hash.d.cts.map +1 -1
- package/dist/hash.d.mts +0 -2
- package/dist/hash.d.mts.map +1 -1
- package/dist/hash.mjs +1 -2
- package/dist/host/auth.cjs +1 -2
- package/dist/host/auth.d.cts +0 -2
- package/dist/host/auth.d.cts.map +1 -1
- package/dist/host/auth.d.mts +0 -2
- package/dist/host/auth.d.mts.map +1 -1
- package/dist/host/auth.mjs +1 -2
- package/dist/host/channels.cjs +1 -2
- package/dist/host/channels.d.cts +0 -2
- package/dist/host/channels.d.cts.map +1 -1
- package/dist/host/channels.d.mts +0 -2
- package/dist/host/channels.d.mts.map +1 -1
- package/dist/host/channels.mjs +1 -2
- package/dist/host/execute.cjs +1 -2
- package/dist/host/execute.d.cts +0 -2
- package/dist/host/execute.d.cts.map +1 -1
- package/dist/host/execute.d.mts +0 -2
- package/dist/host/execute.d.mts.map +1 -1
- package/dist/host/execute.mjs +1 -2
- package/dist/host/fresh-read.cjs +1 -2
- package/dist/host/fresh-read.d.cts +0 -2
- package/dist/host/fresh-read.d.cts.map +1 -1
- package/dist/host/fresh-read.d.mts +0 -2
- package/dist/host/fresh-read.d.mts.map +1 -1
- package/dist/host/fresh-read.mjs +1 -2
- package/dist/host/http.cjs +1 -2
- package/dist/host/http.d.cts +0 -2
- package/dist/host/http.d.cts.map +1 -1
- package/dist/host/http.d.mts +0 -2
- package/dist/host/http.d.mts.map +1 -1
- package/dist/host/http.mjs +1 -2
- package/dist/host/ingest.cjs +1 -2
- package/dist/host/ingest.d.cts +0 -2
- package/dist/host/ingest.d.cts.map +1 -1
- package/dist/host/ingest.d.mts +0 -2
- package/dist/host/ingest.d.mts.map +1 -1
- package/dist/host/ingest.mjs +1 -2
- package/dist/host/journey-host.cjs +1 -2
- package/dist/host/journey-host.d.cts +0 -2
- package/dist/host/journey-host.d.cts.map +1 -1
- package/dist/host/journey-host.d.mts +0 -2
- package/dist/host/journey-host.d.mts.map +1 -1
- package/dist/host/journey-host.mjs +1 -2
- package/dist/host/platform.cjs +1 -2
- package/dist/host/platform.d.cts +0 -2
- package/dist/host/platform.d.cts.map +1 -1
- package/dist/host/platform.d.mts +0 -2
- package/dist/host/platform.d.mts.map +1 -1
- package/dist/host/platform.mjs +1 -2
- package/dist/host/senders.cjs +1 -2
- package/dist/host/senders.d.cts +0 -2
- package/dist/host/senders.d.cts.map +1 -1
- package/dist/host/senders.d.mts +0 -2
- package/dist/host/senders.d.mts.map +1 -1
- package/dist/host/senders.mjs +1 -2
- package/dist/http2-client.cjs +1 -2
- package/dist/http2-client.d.cts +0 -2
- package/dist/http2-client.d.cts.map +1 -1
- package/dist/http2-client.d.mts +0 -2
- package/dist/http2-client.d.mts.map +1 -1
- package/dist/http2-client.mjs +1 -2
- package/dist/ir.cjs +1 -2
- package/dist/ir.d.cts +0 -2
- package/dist/ir.d.cts.map +1 -1
- package/dist/ir.d.mts +0 -2
- package/dist/ir.d.mts.map +1 -1
- package/dist/ir.mjs +1 -2
- package/dist/jwt.cjs +1 -2
- package/dist/jwt.d.cts +0 -2
- package/dist/jwt.d.cts.map +1 -1
- package/dist/jwt.d.mts +0 -2
- package/dist/jwt.d.mts.map +1 -1
- package/dist/jwt.mjs +1 -2
- package/dist/plan.cjs +1 -2
- package/dist/plan.d.cts +0 -2
- package/dist/plan.d.cts.map +1 -1
- package/dist/plan.d.mts +0 -2
- package/dist/plan.d.mts.map +1 -1
- package/dist/plan.mjs +1 -2
- package/dist/postgres-js.cjs +1 -2
- package/dist/postgres-js.d.cts +0 -2
- package/dist/postgres-js.d.cts.map +1 -1
- package/dist/postgres-js.d.mts +0 -2
- package/dist/postgres-js.d.mts.map +1 -1
- package/dist/postgres-js.mjs +1 -2
- package/dist/provenance.cjs +1 -2
- package/dist/provenance.d.cts +0 -2
- package/dist/provenance.d.cts.map +1 -1
- package/dist/provenance.d.mts +0 -2
- package/dist/provenance.d.mts.map +1 -1
- package/dist/provenance.mjs +1 -2
- package/dist/push.cjs +1 -2
- package/dist/push.d.cts +0 -2
- package/dist/push.d.cts.map +1 -1
- package/dist/push.d.mts +0 -2
- package/dist/push.d.mts.map +1 -1
- package/dist/push.mjs +1 -2
- package/dist/react-email.cjs +1 -2
- package/dist/react-email.d.cts +0 -2
- package/dist/react-email.d.cts.map +1 -1
- package/dist/react-email.d.mts +0 -2
- package/dist/react-email.d.mts.map +1 -1
- package/dist/react-email.mjs +1 -2
- package/dist/reporting/classify.cjs +1 -2
- package/dist/reporting/classify.d.cts +0 -2
- package/dist/reporting/classify.d.cts.map +1 -1
- package/dist/reporting/classify.d.mts +0 -2
- package/dist/reporting/classify.d.mts.map +1 -1
- package/dist/reporting/classify.mjs +1 -2
- package/dist/reporting/observer.cjs +1 -2
- package/dist/reporting/observer.d.cts +0 -2
- package/dist/reporting/observer.d.cts.map +1 -1
- package/dist/reporting/observer.d.mts +0 -2
- package/dist/reporting/observer.d.mts.map +1 -1
- package/dist/reporting/observer.mjs +1 -2
- package/dist/reporting/tracking.cjs +1 -2
- package/dist/reporting/tracking.d.cts +0 -2
- package/dist/reporting/tracking.d.cts.map +1 -1
- package/dist/reporting/tracking.d.mts +0 -2
- package/dist/reporting/tracking.d.mts.map +1 -1
- package/dist/reporting/tracking.mjs +1 -2
- package/dist/runtime.cjs +1 -2
- package/dist/runtime.d.cts +0 -2
- package/dist/runtime.d.cts.map +1 -1
- package/dist/runtime.d.mts +0 -2
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +1 -2
- package/dist/store/erasure.cjs +1 -2
- package/dist/store/erasure.d.cts +0 -2
- package/dist/store/erasure.d.cts.map +1 -1
- package/dist/store/erasure.d.mts +0 -2
- package/dist/store/erasure.d.mts.map +1 -1
- package/dist/store/erasure.mjs +1 -2
- package/dist/store/facts.cjs +1 -2
- package/dist/store/facts.d.cts +0 -2
- package/dist/store/facts.d.cts.map +1 -1
- package/dist/store/facts.d.mts +0 -2
- package/dist/store/facts.d.mts.map +1 -1
- package/dist/store/facts.mjs +1 -2
- package/dist/store/index.cjs +1 -2
- package/dist/store/index.d.cts +0 -2
- package/dist/store/index.d.cts.map +1 -1
- package/dist/store/index.d.mts +0 -2
- package/dist/store/index.d.mts.map +1 -1
- package/dist/store/index.mjs +1 -2
- package/dist/store/postgres-reporting.cjs +1 -2
- package/dist/store/postgres-reporting.d.cts +0 -2
- package/dist/store/postgres-reporting.d.cts.map +1 -1
- package/dist/store/postgres-reporting.d.mts +0 -2
- package/dist/store/postgres-reporting.d.mts.map +1 -1
- package/dist/store/postgres-reporting.mjs +1 -2
- package/dist/store/postgres.cjs +1 -2
- package/dist/store/postgres.d.cts +0 -2
- package/dist/store/postgres.d.cts.map +1 -1
- package/dist/store/postgres.d.mts +0 -2
- package/dist/store/postgres.d.mts.map +1 -1
- package/dist/store/postgres.mjs +1 -2
- package/dist/store/sql.cjs +1 -2
- package/dist/store/sql.d.cts +0 -2
- package/dist/store/sql.d.cts.map +1 -1
- package/dist/store/sql.d.mts +0 -2
- package/dist/store/sql.d.mts.map +1 -1
- package/dist/store/sql.mjs +1 -2
- package/dist/store/tables.cjs +1 -2
- package/dist/store/tables.d.cts +0 -2
- package/dist/store/tables.d.cts.map +1 -1
- package/dist/store/tables.d.mts +0 -2
- package/dist/store/tables.d.mts.map +1 -1
- package/dist/store/tables.mjs +1 -2
- package/dist/store/user-lock.cjs +1 -2
- package/dist/store/user-lock.d.cts +0 -2
- package/dist/store/user-lock.d.cts.map +1 -1
- package/dist/store/user-lock.d.mts +0 -2
- package/dist/store/user-lock.d.mts.map +1 -1
- package/dist/store/user-lock.mjs +1 -2
- package/dist/templates.cjs +1 -2
- package/dist/templates.d.cts +0 -2
- package/dist/templates.d.cts.map +1 -1
- package/dist/templates.d.mts +0 -2
- package/dist/templates.d.mts.map +1 -1
- package/dist/templates.mjs +1 -2
- package/dist/transports/cloudflare-email.cjs +1 -2
- package/dist/transports/cloudflare-email.d.cts +0 -2
- package/dist/transports/cloudflare-email.d.cts.map +1 -1
- package/dist/transports/cloudflare-email.d.mts +0 -2
- package/dist/transports/cloudflare-email.d.mts.map +1 -1
- package/dist/transports/cloudflare-email.mjs +1 -2
- package/dist/transports/ses.cjs +1 -2
- package/dist/transports/ses.d.cts +0 -2
- package/dist/transports/ses.d.cts.map +1 -1
- package/dist/transports/ses.d.mts +0 -2
- package/dist/transports/ses.d.mts.map +1 -1
- package/dist/transports/ses.mjs +1 -2
- package/dist/transports/sigv4.cjs +1 -2
- package/dist/transports/sigv4.d.cts +0 -2
- package/dist/transports/sigv4.d.cts.map +1 -1
- package/dist/transports/sigv4.d.mts +0 -2
- package/dist/transports/sigv4.d.mts.map +1 -1
- package/dist/transports/sigv4.mjs +1 -2
- package/dist/webhooks.cjs +1 -2
- package/dist/webhooks.d.cts +0 -2
- package/dist/webhooks.d.cts.map +1 -1
- package/dist/webhooks.d.mts +0 -2
- package/dist/webhooks.d.mts.map +1 -1
- package/dist/webhooks.mjs +1 -2
- package/dist/webpush.cjs +1 -2
- package/dist/webpush.d.cts +0 -2
- package/dist/webpush.d.cts.map +1 -1
- package/dist/webpush.d.mts +0 -2
- package/dist/webpush.d.mts.map +1 -1
- package/dist/webpush.mjs +1 -2
- package/package.json +5 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EmailAddress } from "../email.cjs";
|
|
2
2
|
import { WorkflowBindingLike } from "../host/platform.cjs";
|
|
3
|
-
//#region src/cloudflare/bindings.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* A minimal structural interface over the Cloudflare bindings.
|
|
6
5
|
*
|
|
@@ -59,5 +58,4 @@ export declare const WAKE_TIMEOUT_TOLERANCE_MS = 5000;
|
|
|
59
58
|
* genuine expiry as a failure.
|
|
60
59
|
*/
|
|
61
60
|
export declare function wakeExpired(deadlineMs: number, now: number): boolean;
|
|
62
|
-
//#endregion
|
|
63
61
|
//# sourceMappingURL=bindings.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindings.d.cts","names":[],"sources":["../../src/cloudflare/bindings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bindings.d.cts","names":[],"sources":["../../src/cloudflare/bindings.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAsBiB;EACf,KAAK;IACH,MAAM;IACN,IAAI;IACJ,UAAU;IACV;IACA;;IAEA,UAAU,SAAS;;IAEnB;MACE;;;YAIM,oBAAoB,KAAK;;;;;;wBAUrB,yBAAyB,SAAS,oBAAoB;;;;;;qBAqBzD;;;;;;;;;;;;;wBAcG,YAAY,oBAAoB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EmailAddress } from "../email.mjs";
|
|
2
2
|
import { WorkflowBindingLike } from "../host/platform.mjs";
|
|
3
|
-
//#region src/cloudflare/bindings.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* A minimal structural interface over the Cloudflare bindings.
|
|
6
5
|
*
|
|
@@ -59,5 +58,4 @@ export declare const WAKE_TIMEOUT_TOLERANCE_MS = 5000;
|
|
|
59
58
|
* genuine expiry as a failure.
|
|
60
59
|
*/
|
|
61
60
|
export declare function wakeExpired(deadlineMs: number, now: number): boolean;
|
|
62
|
-
//#endregion
|
|
63
61
|
//# sourceMappingURL=bindings.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindings.d.mts","names":[],"sources":["../../src/cloudflare/bindings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bindings.d.mts","names":[],"sources":["../../src/cloudflare/bindings.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAsBiB;EACf,KAAK;IACH,MAAM;IACN,IAAI;IACJ,UAAU;IACV;IACA;;IAEA,UAAU,SAAS;;IAEnB;MACE;;;YAIM,oBAAoB,KAAK;;;;;;wBAUrB,yBAAyB,SAAS,oBAAoB;;;;;;qBAqBzD;;;;;;;;;;;;;wBAcG,YAAY,oBAAoB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InstanceNotFoundError } from "../host/platform.mjs";
|
|
2
|
-
|
|
2
|
+
// src/cloudflare/bindings.ts
|
|
3
3
|
/** How Cloudflare's `get` reports an unknown instance id. */
|
|
4
4
|
const CF_NOT_FOUND = "instance.not_found";
|
|
5
5
|
/**
|
|
@@ -41,7 +41,6 @@ const WAKE_TIMEOUT_TOLERANCE_MS = 5e3;
|
|
|
41
41
|
function wakeExpired(deadlineMs, now) {
|
|
42
42
|
return now >= deadlineMs - WAKE_TIMEOUT_TOLERANCE_MS;
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { WAKE_TIMEOUT_TOLERANCE_MS, cloudflareJourneyBinding, wakeExpired };
|
|
46
45
|
|
|
47
46
|
//# sourceMappingURL=bindings.mjs.map
|
|
@@ -8,7 +8,7 @@ const require_host_senders = require("../host/senders.cjs");
|
|
|
8
8
|
const require_cloudflare_bindings = require("./bindings.cjs");
|
|
9
9
|
let cloudflare_workers = require("cloudflare:workers");
|
|
10
10
|
let cloudflare_workflows = require("cloudflare:workflows");
|
|
11
|
-
|
|
11
|
+
// src/cloudflare/runner.ts
|
|
12
12
|
/**
|
|
13
13
|
* Adapts CF's WorkflowStep to EngineStep.
|
|
14
14
|
* subscribe/unsubscribe write the subscription table inside durable steps (the
|
|
@@ -183,7 +183,6 @@ var JourneyRunner = class extends cloudflare_workers.WorkflowEntrypoint {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
-
//#endregion
|
|
187
186
|
exports.JourneyRunner = JourneyRunner;
|
|
188
187
|
|
|
189
188
|
//# sourceMappingURL=runner.cjs.map
|
|
@@ -6,7 +6,6 @@ import { JourneyRuntimeOptions } from "../runtime.cjs";
|
|
|
6
6
|
import { JourneyEnv, JourneyParams } from "../host/platform.cjs";
|
|
7
7
|
import { JourneyRunParts } from "../host/execute.cjs";
|
|
8
8
|
import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workers";
|
|
9
|
-
//#region src/cloudflare/runner.d.ts
|
|
10
9
|
/**
|
|
11
10
|
* The generic journey executor: one class runs every workflow, because IR is
|
|
12
11
|
* data. It is loaded from the store by the contentHash pinned at entry —
|
|
@@ -81,5 +80,4 @@ export declare class JourneyRunner extends WorkflowEntrypoint<JourneyEnv, Journe
|
|
|
81
80
|
protected createRunParts(store: JourneyStore, params: JourneyParams): JourneyRunParts;
|
|
82
81
|
run(event: WorkflowEvent<JourneyParams>, step: WorkflowStep): Promise<JourneyOutcome>;
|
|
83
82
|
}
|
|
84
|
-
//#endregion
|
|
85
83
|
//# sourceMappingURL=runner.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.cts","names":[],"sources":["../../src/cloudflare/runner.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner.d.cts","names":[],"sources":["../../src/cloudflare/runner.ts"],"mappings":";;;;;;;;;;;;;;qBAuGa,sBAAsB,mBAAmB,YAAY;;;;;;;YAOtD,eAAe;;YAKT,WAAW,QAAQ,eAAe;UAE1C;;;;;;YAOE,WAAW;;;;;;;;;;;;YAeX,QAAQ,SAAS,gBAAgB;;;;;;YASjC,uBAAuB;;;;;;;;YAavB,oBAAoB;;;;;YAQpB,YAAY;;;;;;YASZ,0BAA0B;;;;;YAQ1B,eAAe,QAAQ,eAAe;;YAKtC,uBAAuB;;;;;YAQvB,eAAe,OAAO,cAAc,QAAQ,gBAAgB;EAahE,IAAI,OAAO,cAAc,gBAAgB,MAAM,eAAe,QAAQ"}
|
|
@@ -6,7 +6,6 @@ import { JourneyRuntimeOptions } from "../runtime.mjs";
|
|
|
6
6
|
import { JourneyEnv, JourneyParams } from "../host/platform.mjs";
|
|
7
7
|
import { JourneyRunParts } from "../host/execute.mjs";
|
|
8
8
|
import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workers";
|
|
9
|
-
//#region src/cloudflare/runner.d.ts
|
|
10
9
|
/**
|
|
11
10
|
* The generic journey executor: one class runs every workflow, because IR is
|
|
12
11
|
* data. It is loaded from the store by the contentHash pinned at entry —
|
|
@@ -81,5 +80,4 @@ export declare class JourneyRunner extends WorkflowEntrypoint<JourneyEnv, Journe
|
|
|
81
80
|
protected createRunParts(store: JourneyStore, params: JourneyParams): JourneyRunParts;
|
|
82
81
|
run(event: WorkflowEvent<JourneyParams>, step: WorkflowStep): Promise<JourneyOutcome>;
|
|
83
82
|
}
|
|
84
|
-
//#endregion
|
|
85
83
|
//# sourceMappingURL=runner.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.mts","names":[],"sources":["../../src/cloudflare/runner.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner.d.mts","names":[],"sources":["../../src/cloudflare/runner.ts"],"mappings":";;;;;;;;;;;;;;qBAuGa,sBAAsB,mBAAmB,YAAY;;;;;;;YAOtD,eAAe;;YAKT,WAAW,QAAQ,eAAe;UAE1C;;;;;;YAOE,WAAW;;;;;;;;;;;;YAeX,QAAQ,SAAS,gBAAgB;;;;;;YASjC,uBAAuB;;;;;;;;YAavB,oBAAoB;;;;;YAQpB,YAAY;;;;;;YASZ,0BAA0B;;;;;YAQ1B,eAAe,QAAQ,eAAe;;YAKtC,uBAAuB;;;;;YAQvB,eAAe,OAAO,cAAc,QAAQ,gBAAgB;EAahE,IAAI,OAAO,cAAc,gBAAgB,MAAM,eAAe,QAAQ"}
|
|
@@ -7,7 +7,7 @@ import { LogMessageSender, WebhookMessageSender } from "../host/senders.mjs";
|
|
|
7
7
|
import { cloudflareJourneyBinding, wakeExpired } from "./bindings.mjs";
|
|
8
8
|
import { WorkflowEntrypoint } from "cloudflare:workers";
|
|
9
9
|
import { NonRetryableError } from "cloudflare:workflows";
|
|
10
|
-
|
|
10
|
+
// src/cloudflare/runner.ts
|
|
11
11
|
/**
|
|
12
12
|
* Adapts CF's WorkflowStep to EngineStep.
|
|
13
13
|
* subscribe/unsubscribe write the subscription table inside durable steps (the
|
|
@@ -182,7 +182,6 @@ var JourneyRunner = class extends WorkflowEntrypoint {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
//#endregion
|
|
186
185
|
export { JourneyRunner };
|
|
187
186
|
|
|
188
187
|
//# sourceMappingURL=runner.mjs.map
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_host_journey_host = require("../host/journey-host.cjs");
|
|
3
3
|
const require_cloudflare_bindings = require("./bindings.cjs");
|
|
4
4
|
const require_cloudflare_runner = require("./runner.cjs");
|
|
5
|
-
|
|
5
|
+
// src/cloudflare/worker.ts
|
|
6
6
|
/**
|
|
7
7
|
* A complete journey host in one call: the runner class with the app's store,
|
|
8
8
|
* outlets and runtime plugged in, and the fetch handler that serves the ingest
|
|
@@ -89,7 +89,6 @@ function journeyWorker(options) {
|
|
|
89
89
|
scheduled
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
//#endregion
|
|
93
92
|
exports.EnvValidationError = require_host_journey_host.EnvValidationError;
|
|
94
93
|
exports.journeyWorker = journeyWorker;
|
|
95
94
|
|
|
@@ -2,7 +2,6 @@ import { JourneyEnv } from "../host/platform.cjs";
|
|
|
2
2
|
import { SweepResult } from "../host/ingest.cjs";
|
|
3
3
|
import { EnvValidationError, JourneyHostOptions } from "../host/journey-host.cjs";
|
|
4
4
|
import { JourneyRunner } from "./runner.cjs";
|
|
5
|
-
//#region src/cloudflare/worker.d.ts
|
|
6
5
|
/** The fetch handler's execution context (the subset used). */
|
|
7
6
|
export interface ExecutionContextLike {
|
|
8
7
|
waitUntil(promise: Promise<unknown>): void;
|
|
@@ -41,6 +40,5 @@ export interface JourneyWorker<Env extends JourneyEnv> {
|
|
|
41
40
|
* export default { fetch: journeys.fetch };
|
|
42
41
|
*/
|
|
43
42
|
export declare function journeyWorker<Env extends JourneyEnv>(options: JourneyWorkerOptions<Env>): JourneyWorker<Env>;
|
|
44
|
-
//#endregion
|
|
45
43
|
export { EnvValidationError };
|
|
46
44
|
//# sourceMappingURL=worker.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.cts","names":[],"sources":["../../src/cloudflare/worker.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker.d.cts","names":[],"sources":["../../src/cloudflare/worker.ts"],"mappings":";;;;;iBAeiB;EACf,UAAU,SAAS;;;;;;;YAQT,qBAAqB,YAAY,cAAc,mBAAmB;iBAE7D,cAAc,YAAY;;EAEzC,gBAAgB,kBAAkB;;EAElC,QAAQ,SAAS,SAAS,KAAK,KAAK,MAAM,yBAAyB,QAAQ;;;;;;;EAO3E,QAAQ,KAAK,QAAQ,QAAQ;;EAE7B,YAAY,qBAAqB,KAAK,KAAK,KAAK,yBAAyB;;;;;;;;;;;;;;wBAe3D,cAAc,YAAY,YACxC,SAAS,qBAAqB,OAC7B,cAAc"}
|
|
@@ -2,7 +2,6 @@ import { JourneyEnv } from "../host/platform.mjs";
|
|
|
2
2
|
import { SweepResult } from "../host/ingest.mjs";
|
|
3
3
|
import { EnvValidationError, JourneyHostOptions } from "../host/journey-host.mjs";
|
|
4
4
|
import { JourneyRunner } from "./runner.mjs";
|
|
5
|
-
//#region src/cloudflare/worker.d.ts
|
|
6
5
|
/** The fetch handler's execution context (the subset used). */
|
|
7
6
|
export interface ExecutionContextLike {
|
|
8
7
|
waitUntil(promise: Promise<unknown>): void;
|
|
@@ -41,6 +40,5 @@ export interface JourneyWorker<Env extends JourneyEnv> {
|
|
|
41
40
|
* export default { fetch: journeys.fetch };
|
|
42
41
|
*/
|
|
43
42
|
export declare function journeyWorker<Env extends JourneyEnv>(options: JourneyWorkerOptions<Env>): JourneyWorker<Env>;
|
|
44
|
-
//#endregion
|
|
45
43
|
export { EnvValidationError };
|
|
46
44
|
//# sourceMappingURL=worker.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.mts","names":[],"sources":["../../src/cloudflare/worker.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker.d.mts","names":[],"sources":["../../src/cloudflare/worker.ts"],"mappings":";;;;;iBAeiB;EACf,UAAU,SAAS;;;;;;;YAQT,qBAAqB,YAAY,cAAc,mBAAmB;iBAE7D,cAAc,YAAY;;EAEzC,gBAAgB,kBAAkB;;EAElC,QAAQ,SAAS,SAAS,KAAK,KAAK,MAAM,yBAAyB,QAAQ;;;;;;;EAO3E,QAAQ,KAAK,QAAQ,QAAQ;;EAE7B,YAAY,qBAAqB,KAAK,KAAK,KAAK,yBAAyB;;;;;;;;;;;;;;wBAe3D,cAAc,YAAY,YACxC,SAAS,qBAAqB,OAC7B,cAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnvValidationError, createJourneyHost } from "../host/journey-host.mjs";
|
|
2
2
|
import { cloudflareJourneyBinding } from "./bindings.mjs";
|
|
3
3
|
import { JourneyRunner } from "./runner.mjs";
|
|
4
|
-
|
|
4
|
+
// src/cloudflare/worker.ts
|
|
5
5
|
/**
|
|
6
6
|
* A complete journey host in one call: the runner class with the app's store,
|
|
7
7
|
* outlets and runtime plugged in, and the fetch handler that serves the ingest
|
|
@@ -88,7 +88,6 @@ function journeyWorker(options) {
|
|
|
88
88
|
scheduled
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
//#endregion
|
|
92
91
|
export { EnvValidationError, journeyWorker };
|
|
93
92
|
|
|
94
93
|
//# sourceMappingURL=worker.mjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cloudflare/workers.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Minimal ambient declaration for cloudflare:workers — only the surface
|
|
4
3
|
* JourneyRunner actually uses. @cloudflare/workers-types is avoided because its
|
|
@@ -39,6 +38,5 @@ declare module 'cloudflare:workflows' {
|
|
|
39
38
|
constructor(message: string, name?: string);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
//#endregion
|
|
43
41
|
export {};
|
|
44
42
|
//# sourceMappingURL=workers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workers.d.cts","names":[],"sources":["../../src/cloudflare/workers.d.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"workers.d.cts","names":[],"sources":["../../src/cloudflare/workers.d.ts"],"mappings":";;;;;;;mBAOmB,cAAc;IAC7B,SAAS,SAAS;IAClB,WAAW;IACX;;mBAGe,kBAAkB;IACjC,SAAS;IACT,WAAW;IACX;;mBAGe;IACf,GAAG,GAAG,cAAc,gBAAgB,QAAQ,KAAK,QAAQ;IACzD,MAAM,cAAc,8BAA8B;IAClD,WAAW,cAAc,WAAW,gBAAgB;IACpD,aAAa,mBACX,cACA;MAAW;MAAc;QACxB,QAAQ,kBAAkB;;wBAGT,mBAAmB,eAAe;;IAEtD,YAAY,cAAc,KAAK;uBACZ;uBACA,KAAK;aACf,IAAI,OAAO,cAAc,SAAS,MAAM,eAAe;;;;;eAMrD,0BAA0B;IACrC,YAAY,iBAAiB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cloudflare/workers.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Minimal ambient declaration for cloudflare:workers — only the surface
|
|
4
3
|
* JourneyRunner actually uses. @cloudflare/workers-types is avoided because its
|
|
@@ -39,6 +38,5 @@ declare module 'cloudflare:workflows' {
|
|
|
39
38
|
constructor(message: string, name?: string);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
//#endregion
|
|
43
41
|
export {};
|
|
44
42
|
//# sourceMappingURL=workers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workers.d.mts","names":[],"sources":["../../src/cloudflare/workers.d.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"workers.d.mts","names":[],"sources":["../../src/cloudflare/workers.d.ts"],"mappings":";;;;;;;mBAOmB,cAAc;IAC7B,SAAS,SAAS;IAClB,WAAW;IACX;;mBAGe,kBAAkB;IACjC,SAAS;IACT,WAAW;IACX;;mBAGe;IACf,GAAG,GAAG,cAAc,gBAAgB,QAAQ,KAAK,QAAQ;IACzD,MAAM,cAAc,8BAA8B;IAClD,WAAW,cAAc,WAAW,gBAAgB;IACpD,aAAa,mBACX,cACA;MAAW;MAAc;QACxB,QAAQ,kBAAkB;;wBAGT,mBAAmB,eAAe;;IAEtD,YAAY,cAAc,KAAK;uBACZ;uBACA,KAAK;aACf,IAAI,OAAO,cAAc,SAAS,MAAM,eAAe;;;;;eAMrD,0BAA0B;IACrC,YAAY,iBAAiB"}
|
package/dist/config.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const require_dsl_bundle = require("./dsl/bundle.cjs");
|
|
|
7
7
|
require("./dsl/index.cjs");
|
|
8
8
|
let zod_mini = require("zod/mini");
|
|
9
9
|
zod_mini = require_runtime.__toESM(zod_mini, 1);
|
|
10
|
-
|
|
10
|
+
// src/config.ts
|
|
11
11
|
function defineConfig(definition) {
|
|
12
12
|
return {
|
|
13
13
|
kind: "journey-config",
|
|
@@ -181,7 +181,6 @@ function checkEmit(workflow, node, config) {
|
|
|
181
181
|
for (const [field, fieldSchema] of Object.entries(shape)) if (!canBeOmitted(fieldSchema) && !Object.hasOwn(node.payload, field)) problems.push(`required field '${field}' is missing`);
|
|
182
182
|
if (problems.length > 0) throw new ConfigCompileError(`${where}: event '${node.event}': ${problems.join("; ")}`);
|
|
183
183
|
}
|
|
184
|
-
//#endregion
|
|
185
184
|
exports.ConfigCompileError = ConfigCompileError;
|
|
186
185
|
exports.apnsEnvironment = apnsEnvironment;
|
|
187
186
|
exports.compileConfig = compileConfig;
|
package/dist/config.d.cts
CHANGED
|
@@ -7,7 +7,6 @@ import { WorkflowBuilder } from "./dsl/workflow.cjs";
|
|
|
7
7
|
import "./dsl/index.cjs";
|
|
8
8
|
import { Contract } from "./contract.cjs";
|
|
9
9
|
import { JourneyMode, JourneyRuntimeConfig } from "./runtime.cjs";
|
|
10
|
-
//#region src/config.d.ts
|
|
11
10
|
/**
|
|
12
11
|
* `workflow.config.ts` — the project's journey configuration, typed, flat and
|
|
13
12
|
* committed with the code: what it deploys (workflows, segments, actions),
|
|
@@ -126,5 +125,4 @@ export declare class ConfigCompileError extends Error {
|
|
|
126
125
|
* and parsed before sending.
|
|
127
126
|
*/
|
|
128
127
|
export declare function compileConfig(config: JourneyConfig): BundleIR;
|
|
129
|
-
//#endregion
|
|
130
128
|
//# sourceMappingURL=config.d.cts.map
|
package/dist/config.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.cts","names":[],"sources":["../src/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.cts","names":[],"sources":["../src/config.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2CiB;;EAEf;;EAEA;;EAEA;;;;;;;EAOA,cAAc,QAAQ,OAAO;;;;;;iBAOd;;EAEf;;;;;;;EAOA;;;iBAIe;;EAEf;;;;;;;iBAQe;;EAEf;;iBAGe;;EAEf;;EAEA,WAAW;EACX,oBAAoB;EACpB,oBAAoB;EACpB,mBAAmB;;EAEnB,YAAY;;EAEZ,QAAQ;;EAER,UAAU;EACV,OAAO;EACP,MAAM;EACN,UAAU;;EAEV,WAAW;;iBAGI,sBAAsB;WAC5B;;wBAGK,aAAa,YAAY,0BAA0B;wBAInD,SAAS,iBAAiB,SAAS;;wBASnC,gBAAgB,QAAQ,YAAY,MAAM;;qBAK7C,2BAA2B;WACpB;;;;;;;;;;;;;;;;;;wBAmBJ,cAAc,QAAQ,gBAAgB"}
|
package/dist/config.d.mts
CHANGED
|
@@ -7,7 +7,6 @@ import { WorkflowBuilder } from "./dsl/workflow.mjs";
|
|
|
7
7
|
import "./dsl/index.mjs";
|
|
8
8
|
import { Contract } from "./contract.mjs";
|
|
9
9
|
import { JourneyMode, JourneyRuntimeConfig } from "./runtime.mjs";
|
|
10
|
-
//#region src/config.d.ts
|
|
11
10
|
/**
|
|
12
11
|
* `workflow.config.ts` — the project's journey configuration, typed, flat and
|
|
13
12
|
* committed with the code: what it deploys (workflows, segments, actions),
|
|
@@ -126,5 +125,4 @@ export declare class ConfigCompileError extends Error {
|
|
|
126
125
|
* and parsed before sending.
|
|
127
126
|
*/
|
|
128
127
|
export declare function compileConfig(config: JourneyConfig): BundleIR;
|
|
129
|
-
//#endregion
|
|
130
128
|
//# sourceMappingURL=config.d.mts.map
|
package/dist/config.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":[],"sources":["../src/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../src/config.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2CiB;;EAEf;;EAEA;;EAEA;;;;;;;EAOA,cAAc,QAAQ,OAAO;;;;;;iBAOd;;EAEf;;;;;;;EAOA;;;iBAIe;;EAEf;;;;;;;iBAQe;;EAEf;;iBAGe;;EAEf;;EAEA,WAAW;EACX,oBAAoB;EACpB,oBAAoB;EACpB,mBAAmB;;EAEnB,YAAY;;EAEZ,QAAQ;;EAER,UAAU;EACV,OAAO;EACP,MAAM;EACN,UAAU;;EAEV,WAAW;;iBAGI,sBAAsB;WAC5B;;wBAGK,aAAa,YAAY,0BAA0B;wBAInD,SAAS,iBAAiB,SAAS;;wBASnC,gBAAgB,QAAQ,YAAY,MAAM;;qBAK7C,2BAA2B;WACpB;;;;;;;;;;;;;;;;;;wBAmBJ,cAAc,QAAQ,gBAAgB"}
|
package/dist/config.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { templateUses } from "./dsl/flow.mjs";
|
|
|
4
4
|
import { compileBundle } from "./dsl/bundle.mjs";
|
|
5
5
|
import "./dsl/index.mjs";
|
|
6
6
|
import * as z from "zod/mini";
|
|
7
|
-
|
|
7
|
+
// src/config.ts
|
|
8
8
|
function defineConfig(definition) {
|
|
9
9
|
return {
|
|
10
10
|
kind: "journey-config",
|
|
@@ -178,7 +178,6 @@ function checkEmit(workflow, node, config) {
|
|
|
178
178
|
for (const [field, fieldSchema] of Object.entries(shape)) if (!canBeOmitted(fieldSchema) && !Object.hasOwn(node.payload, field)) problems.push(`required field '${field}' is missing`);
|
|
179
179
|
if (problems.length > 0) throw new ConfigCompileError(`${where}: event '${node.event}': ${problems.join("; ")}`);
|
|
180
180
|
}
|
|
181
|
-
//#endregion
|
|
182
181
|
export { ConfigCompileError, apnsEnvironment, compileConfig, defineConfig, isConfig };
|
|
183
182
|
|
|
184
183
|
//# sourceMappingURL=config.mjs.map
|
package/dist/contract.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_dsl_refs = require("./dsl/refs.cjs");
|
|
|
4
4
|
require("./dsl/index.cjs");
|
|
5
5
|
let zod_mini = require("zod/mini");
|
|
6
6
|
zod_mini = require_runtime.__toESM(zod_mini, 1);
|
|
7
|
-
|
|
7
|
+
// src/contract.ts
|
|
8
8
|
function defineContract(definition) {
|
|
9
9
|
for (const [name, schema] of Object.entries(definition.events)) {
|
|
10
10
|
if (name.startsWith("$")) throw new TypeError(`contract event '${name}': names starting with $ are reserved`);
|
|
@@ -203,7 +203,6 @@ function assertFlatScalar(schema, where) {
|
|
|
203
203
|
if (def.type === "optional") def = def.innerType._zod.def;
|
|
204
204
|
if (!SCALARS.has(def.type)) throw new TypeError(`contract ${where}: profile fields must be flat scalars (string, number, boolean, enum, literal), got ${def.type}`);
|
|
205
205
|
}
|
|
206
|
-
//#endregion
|
|
207
206
|
exports.ContractValidationError = ContractValidationError;
|
|
208
207
|
exports.checkEvent = checkEvent;
|
|
209
208
|
exports.defineContract = defineContract;
|
package/dist/contract.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventRefs, UserRefs } from "./dsl/refs.cjs";
|
|
2
2
|
import "./dsl/index.cjs";
|
|
3
3
|
import * as core from "zod/v4/core";
|
|
4
|
-
//#region src/contract.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* `defineContract({ events, profile })` — the producer/engine contract as Zod
|
|
7
6
|
* schemas, written once in a package both sides import. From it:
|
|
@@ -86,6 +85,5 @@ export declare class ContractValidationError extends Error {
|
|
|
86
85
|
/** The one check every event passes, from HTTP or from a journey: declared, and its payload parses. */
|
|
87
86
|
export declare function checkEvent(contract: Contract, name: string, payload: unknown): ContractResult<Record<string, unknown>>;
|
|
88
87
|
export declare function isContract(value: unknown): value is Contract;
|
|
89
|
-
//#endregion
|
|
90
88
|
export {};
|
|
91
89
|
//# sourceMappingURL=contract.d.cts.map
|
package/dist/contract.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.cts","names":[],"sources":["../src/contract.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"contract.d.cts","names":[],"sources":["../src/contract.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAyBK,eAAe,KAAK;;YAGb,eAAe,KACzB,UAAU,KAAK,iBAAiB,SAC5B,KAAK,mBAAmB,OAAO,KAAK;iBAGzB,mBACf,UAAU,eAAe,eACzB,UAAU;EAEV,QAAQ;EACR,SAAS;;;iBAIM;EACf;EACA;;YAGU,eAAe;EAAO;EAAU,MAAM;;EAAQ;EAAW,QAAQ;;iBAE5D,SACf,UAAU,eAAe,gBAAgB,eAAe,eACxD,UAAU,eAAe;WAEhB;;WAEA,QAAQ,aAAa,WAAW,IAAI,eAAe,EAAE;;WAErD,MAAM,SAAS,eAAe;IAAO;;;WAErC;aAAoB,QAAQ;aAAY,SAAS;;;WAEjD,4BAA4B;EACrC,QAAQ,eAAe,cAAc;;EAErC,WAAW,gBAAgB,YACzB,MAAM,GACN,mBACC,eAAe,KAAK,OAAO,EAAE;;;;;;;EAOhC,kBAAkB,iBAAiB,eAAe,aAAa;;;YAIrD,aAAa,QAAQ,WAAW,eAAe,MAAM,eAAe,GAAG;;YAGvE,aAAa,GAAG,oBAC1B,UAAU,eAAe,MAAM,gBAAgB,IAAI,KAAK,MAAM,EAAE;wBAElD,eAAe,UAAU,eAAe,eAAe,UAAU,cAC/E,YAAY,mBAAmB,GAAG,KACjC,SAAS,GAAG;;;;;;qBA8DF,gCAAgC;WAGhC;WACA,QAAQ;WAHD;EAClB,YACW,eACA,QAAQ;;;wBAWL,WACd,UAAU,UACV,cACA,mBACC,eAAe;wBAUF,WAAW,iBAAiB,SAAS"}
|
package/dist/contract.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventRefs, UserRefs } from "./dsl/refs.mjs";
|
|
2
2
|
import "./dsl/index.mjs";
|
|
3
3
|
import * as core from "zod/v4/core";
|
|
4
|
-
//#region src/contract.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* `defineContract({ events, profile })` — the producer/engine contract as Zod
|
|
7
6
|
* schemas, written once in a package both sides import. From it:
|
|
@@ -86,6 +85,5 @@ export declare class ContractValidationError extends Error {
|
|
|
86
85
|
/** The one check every event passes, from HTTP or from a journey: declared, and its payload parses. */
|
|
87
86
|
export declare function checkEvent(contract: Contract, name: string, payload: unknown): ContractResult<Record<string, unknown>>;
|
|
88
87
|
export declare function isContract(value: unknown): value is Contract;
|
|
89
|
-
//#endregion
|
|
90
88
|
export {};
|
|
91
89
|
//# sourceMappingURL=contract.d.mts.map
|
package/dist/contract.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.mts","names":[],"sources":["../src/contract.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"contract.d.mts","names":[],"sources":["../src/contract.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAyBK,eAAe,KAAK;;YAGb,eAAe,KACzB,UAAU,KAAK,iBAAiB,SAC5B,KAAK,mBAAmB,OAAO,KAAK;iBAGzB,mBACf,UAAU,eAAe,eACzB,UAAU;EAEV,QAAQ;EACR,SAAS;;;iBAIM;EACf;EACA;;YAGU,eAAe;EAAO;EAAU,MAAM;;EAAQ;EAAW,QAAQ;;iBAE5D,SACf,UAAU,eAAe,gBAAgB,eAAe,eACxD,UAAU,eAAe;WAEhB;;WAEA,QAAQ,aAAa,WAAW,IAAI,eAAe,EAAE;;WAErD,MAAM,SAAS,eAAe;IAAO;;;WAErC;aAAoB,QAAQ;aAAY,SAAS;;;WAEjD,4BAA4B;EACrC,QAAQ,eAAe,cAAc;;EAErC,WAAW,gBAAgB,YACzB,MAAM,GACN,mBACC,eAAe,KAAK,OAAO,EAAE;;;;;;;EAOhC,kBAAkB,iBAAiB,eAAe,aAAa;;;YAIrD,aAAa,QAAQ,WAAW,eAAe,MAAM,eAAe,GAAG;;YAGvE,aAAa,GAAG,oBAC1B,UAAU,eAAe,MAAM,gBAAgB,IAAI,KAAK,MAAM,EAAE;wBAElD,eAAe,UAAU,eAAe,eAAe,UAAU,cAC/E,YAAY,mBAAmB,GAAG,KACjC,SAAS,GAAG;;;;;;qBA8DF,gCAAgC;WAGhC;WACA,QAAQ;WAHD;EAClB,YACW,eACA,QAAQ;;;wBAWL,WACd,UAAU,UACV,cACA,mBACC,eAAe;wBAUF,WAAW,iBAAiB,SAAS"}
|
package/dist/contract.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { event, user } from "./dsl/refs.mjs";
|
|
2
2
|
import "./dsl/index.mjs";
|
|
3
3
|
import * as z from "zod/mini";
|
|
4
|
-
|
|
4
|
+
// src/contract.ts
|
|
5
5
|
function defineContract(definition) {
|
|
6
6
|
for (const [name, schema] of Object.entries(definition.events)) {
|
|
7
7
|
if (name.startsWith("$")) throw new TypeError(`contract event '${name}': names starting with $ are reserved`);
|
|
@@ -200,7 +200,6 @@ function assertFlatScalar(schema, where) {
|
|
|
200
200
|
if (def.type === "optional") def = def.innerType._zod.def;
|
|
201
201
|
if (!SCALARS.has(def.type)) throw new TypeError(`contract ${where}: profile fields must be flat scalars (string, number, boolean, enum, literal), got ${def.type}`);
|
|
202
202
|
}
|
|
203
|
-
//#endregion
|
|
204
203
|
export { ContractValidationError, checkEvent, defineContract, isContract };
|
|
205
204
|
|
|
206
205
|
//# sourceMappingURL=contract.mjs.map
|
package/dist/dsl/action.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/dsl/action.ts
|
|
3
3
|
/**
|
|
4
4
|
* Define a custom action. The generic `A` types the args `.run()` accepts —
|
|
5
5
|
* the only type injection point, mirroring `template.sms<P>()`:
|
|
@@ -20,7 +20,6 @@ function action(name, handler) {
|
|
|
20
20
|
handler
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
exports.action = action;
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=action.cjs.map
|
package/dist/dsl/action.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/dsl/action.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Custom actions — the escape hatch for side effects the built-in nodes do not
|
|
4
3
|
* cover (CRM sync, coupon issuing, outbound webhooks with custom auth, …).
|
|
@@ -61,5 +60,4 @@ export interface ActionRef<A extends object = object> {
|
|
|
61
60
|
* two definitions cannot share a name by accident.
|
|
62
61
|
*/
|
|
63
62
|
export declare function action<A extends object = Record<string, never>>(name: string, handler: ActionHandler<A>): ActionRef<A>;
|
|
64
|
-
//#endregion
|
|
65
63
|
//# sourceMappingURL=action.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.cts","names":[],"sources":["../../src/dsl/action.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"action.d.cts","names":[],"sources":["../../src/dsl/action.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBAsBiB;EACf;;;;;;;EAOA;;;;;;;;YASU,cAAc,qBAAqB,MAAM,GAAG,KAAK,kBAAkB;;;;;iBAM9D,UAAU;WAChB;;EAET,QAAQ,MAAM,GAAG,KAAK,gBAAgB;;;;;;;;;;;;;;;;wBAiBxB,OAAO,mBAAmB,uBACxC,cACA,SAAS,cAAc,KACtB,UAAU"}
|
package/dist/dsl/action.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/dsl/action.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Custom actions — the escape hatch for side effects the built-in nodes do not
|
|
4
3
|
* cover (CRM sync, coupon issuing, outbound webhooks with custom auth, …).
|
|
@@ -61,5 +60,4 @@ export interface ActionRef<A extends object = object> {
|
|
|
61
60
|
* two definitions cannot share a name by accident.
|
|
62
61
|
*/
|
|
63
62
|
export declare function action<A extends object = Record<string, never>>(name: string, handler: ActionHandler<A>): ActionRef<A>;
|
|
64
|
-
//#endregion
|
|
65
63
|
//# sourceMappingURL=action.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.mts","names":[],"sources":["../../src/dsl/action.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"action.d.mts","names":[],"sources":["../../src/dsl/action.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBAsBiB;EACf;;;;;;;EAOA;;;;;;;;YASU,cAAc,qBAAqB,MAAM,GAAG,KAAK,kBAAkB;;;;;iBAM9D,UAAU;WAChB;;EAET,QAAQ,MAAM,GAAG,KAAK,gBAAgB;;;;;;;;;;;;;;;;wBAiBxB,OAAO,mBAAmB,uBACxC,cACA,SAAS,cAAc,KACtB,UAAU"}
|
package/dist/dsl/action.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/dsl/action.ts
|
|
2
2
|
/**
|
|
3
3
|
* Define a custom action. The generic `A` types the args `.run()` accepts —
|
|
4
4
|
* the only type injection point, mirroring `template.sms<P>()`:
|
|
@@ -19,7 +19,6 @@ function action(name, handler) {
|
|
|
19
19
|
handler
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { action };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=action.mjs.map
|
package/dist/dsl/base.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let ms = require("ms");
|
|
4
4
|
ms = require_runtime.__toESM(ms, 1);
|
|
5
|
-
|
|
5
|
+
// src/dsl/base.ts
|
|
6
6
|
const TIME_OF_DAY = /^([01]\d|2[0-3]):([0-5]\d)$/;
|
|
7
7
|
/**
|
|
8
8
|
* Parse an 'HH:mm' literal to minutes since midnight, throwing on anything the
|
|
@@ -27,7 +27,6 @@ function durationIR(value) {
|
|
|
27
27
|
ms: millis
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
exports.durationIR = durationIR;
|
|
32
31
|
exports.timeOfDayMinutes = timeOfDayMinutes;
|
|
33
32
|
|
package/dist/dsl/base.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DurationIR } from "../ir.cjs";
|
|
2
|
-
//#region src/dsl/base.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Base vocabulary shared by the whole DSL: the schema constraints an app's
|
|
5
4
|
* types must satisfy, and the literal types (durations, weekdays, clock times)
|
|
@@ -41,5 +40,4 @@ export declare function timeOfDayMinutes(value: TimeOfDay): number;
|
|
|
41
40
|
* @internal shared by condition/flow/workflow, not part of the public API
|
|
42
41
|
*/
|
|
43
42
|
export declare function durationIR(value: Duration): DurationIR;
|
|
44
|
-
//#endregion
|
|
45
43
|
//# sourceMappingURL=base.d.cts.map
|
package/dist/dsl/base.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.cts","names":[],"sources":["../../src/dsl/base.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.cts","names":[],"sources":["../../src/dsl/base.ts"],"mappings":";;;;;;;;;;;;;;;YAkBY;;;;;;iBAOK;EACf;EACA;;;YAIU;YAYA;;YAGA;;;;;;wBASI,iBAAiB,OAAO;;;;;;wBAWxB,WAAW,OAAO,WAAW"}
|
package/dist/dsl/base.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DurationIR } from "../ir.mjs";
|
|
2
|
-
//#region src/dsl/base.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Base vocabulary shared by the whole DSL: the schema constraints an app's
|
|
5
4
|
* types must satisfy, and the literal types (durations, weekdays, clock times)
|
|
@@ -41,5 +40,4 @@ export declare function timeOfDayMinutes(value: TimeOfDay): number;
|
|
|
41
40
|
* @internal shared by condition/flow/workflow, not part of the public API
|
|
42
41
|
*/
|
|
43
42
|
export declare function durationIR(value: Duration): DurationIR;
|
|
44
|
-
//#endregion
|
|
45
43
|
//# sourceMappingURL=base.d.mts.map
|
package/dist/dsl/base.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.mts","names":[],"sources":["../../src/dsl/base.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.mts","names":[],"sources":["../../src/dsl/base.ts"],"mappings":";;;;;;;;;;;;;;;YAkBY;;;;;;iBAOK;EACf;EACA;;;YAIU;YAYA;;YAGA;;;;;;wBASI,iBAAiB,OAAO;;;;;;wBAWxB,WAAW,OAAO,WAAW"}
|
package/dist/dsl/base.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ms from "ms";
|
|
2
|
-
|
|
2
|
+
// src/dsl/base.ts
|
|
3
3
|
const TIME_OF_DAY = /^([01]\d|2[0-3]):([0-5]\d)$/;
|
|
4
4
|
/**
|
|
5
5
|
* Parse an 'HH:mm' literal to minutes since midnight, throwing on anything the
|
|
@@ -24,7 +24,6 @@ function durationIR(value) {
|
|
|
24
24
|
ms: millis
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { durationIR, timeOfDayMinutes };
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=base.mjs.map
|
package/dist/dsl/bundle.cjs
CHANGED
|
@@ -3,7 +3,7 @@ const require_templates = require("../templates.cjs");
|
|
|
3
3
|
const require_dsl_flow = require("./flow.cjs");
|
|
4
4
|
const require_hash = require("../hash.cjs");
|
|
5
5
|
const require_ir = require("../ir.cjs");
|
|
6
|
-
|
|
6
|
+
// src/dsl/bundle.ts
|
|
7
7
|
/**
|
|
8
8
|
* The deployment unit — compileBundle gathers workflows, segments and the
|
|
9
9
|
* template manifest into one BundleIR snapshot (terraform-apply mental model);
|
|
@@ -206,7 +206,6 @@ function assertNodeTrees(nodes, owner) {
|
|
|
206
206
|
case "cohort": for (const arm of node.arms) assertNodeTrees(arm.flow, owner);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
//#endregion
|
|
210
209
|
exports.compileBundle = compileBundle;
|
|
211
210
|
|
|
212
211
|
//# sourceMappingURL=bundle.cjs.map
|
package/dist/dsl/bundle.d.cts
CHANGED
|
@@ -3,7 +3,6 @@ import { AnyTemplate } from "../templates.cjs";
|
|
|
3
3
|
import { ActionRef } from "./action.cjs";
|
|
4
4
|
import { SegmentRef } from "./condition.cjs";
|
|
5
5
|
import { WorkflowBuilder } from "./workflow.cjs";
|
|
6
|
-
//#region src/dsl/bundle.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* The deployment unit — compileBundle gathers workflows, segments and the
|
|
9
8
|
* template manifest into one BundleIR snapshot (terraform-apply mental model);
|
|
@@ -16,5 +15,4 @@ export declare function compileBundle(input: {
|
|
|
16
15
|
templates?: readonly AnyTemplate[];
|
|
17
16
|
actions?: readonly ActionRef[];
|
|
18
17
|
}): BundleIR;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=bundle.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.cts","names":[],"sources":["../../src/dsl/bundle.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundle.d.cts","names":[],"sources":["../../src/dsl/bundle.ts"],"mappings":";;;;;;;;;;wBAqBgB,cAAc;EAC5B,oBAAoB;EACpB,oBAAoB;;EAEpB,qBAAqB;EACrB,mBAAmB;IACjB"}
|
package/dist/dsl/bundle.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { AnyTemplate } from "../templates.mjs";
|
|
|
3
3
|
import { ActionRef } from "./action.mjs";
|
|
4
4
|
import { SegmentRef } from "./condition.mjs";
|
|
5
5
|
import { WorkflowBuilder } from "./workflow.mjs";
|
|
6
|
-
//#region src/dsl/bundle.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* The deployment unit — compileBundle gathers workflows, segments and the
|
|
9
8
|
* template manifest into one BundleIR snapshot (terraform-apply mental model);
|
|
@@ -16,5 +15,4 @@ export declare function compileBundle(input: {
|
|
|
16
15
|
templates?: readonly AnyTemplate[];
|
|
17
16
|
actions?: readonly ActionRef[];
|
|
18
17
|
}): BundleIR;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=bundle.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.mts","names":[],"sources":["../../src/dsl/bundle.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundle.d.mts","names":[],"sources":["../../src/dsl/bundle.ts"],"mappings":";;;;;;;;;;wBAqBgB,cAAc;EAC5B,oBAAoB;EACpB,oBAAoB;;EAEpB,qBAAqB;EACrB,mBAAmB;IACjB"}
|
package/dist/dsl/bundle.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { CHANNEL_OF } from "../templates.mjs";
|
|
|
2
2
|
import { actionUses } from "./flow.mjs";
|
|
3
3
|
import { semanticHash } from "../hash.mjs";
|
|
4
4
|
import { BundleIR } from "../ir.mjs";
|
|
5
|
-
|
|
5
|
+
// src/dsl/bundle.ts
|
|
6
6
|
/**
|
|
7
7
|
* The deployment unit — compileBundle gathers workflows, segments and the
|
|
8
8
|
* template manifest into one BundleIR snapshot (terraform-apply mental model);
|
|
@@ -205,7 +205,6 @@ function assertNodeTrees(nodes, owner) {
|
|
|
205
205
|
case "cohort": for (const arm of node.arms) assertNodeTrees(arm.flow, owner);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
//#endregion
|
|
209
208
|
export { compileBundle };
|
|
210
209
|
|
|
211
210
|
//# sourceMappingURL=bundle.mjs.map
|