Cotal TypeScript packages
    Preparing search index...

    Function runDelivery

    • Run the delivery daemon: the server-side Plane-3 durable backstop. A thin composition root that builds a scoped delivery endpoint, acquires the single-flight lease, and runs the existing Plane-3 loops (startPlane3) — which ALSO serve the ctl.delivery runtime durable join/leave/list ops. Runs from a PRE-MINTED scoped delivery cred and a --space; it does NOT load .cotal/auth (no signer in the daemon's trust boundary) — minting is the CLI setup helper's job (or --dev-mint for standalone dev). N=1 only — shards > 1 (or a non-zero shard) is HARD-REJECTED (the partition seam ships, operating sharded delivery is deferred to the channel-prefix grammar; see core-sub-fabric.md).

      store is the hosted-composition seam: a closed composition root calls this export directly and injects its own SecretStore (KMS/Vault…) holding the daemon cred under deliveryCredsKey(space, …) AND the membership feed's rw cred under the matching membership-rw.creds key — both PER-SPACE as of P7, so the bare kinds are the pre-P7 spelling and are not read; the registered deliver command passes none and gets the workstation FS store (or --creds). The renewal owner's write side (remintDaemonCreds) is threaded through the manager's ManagerOptions.secretStore too, so a hosted composition renews both daemon kinds end-to-end when the manager and this daemon are handed the SAME store.

      Parameters

      • args: ParsedArgs
      • Optionalstore: SecretStore
      • OptionalonStarted: (
            started: { close(): Promise<void>; status(): DeliveryStatus },
        ) => void | Promise<void>

      Returns Promise<void>