All files / realm/blong-gateway/orchestrator/subject init.ts

100% Statements 16/16
100% Branches 1/1
100% Functions 0/0
100% Lines 16/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import {handler} from '@feasibleone/blong';
 
/**
 * The gateway realm's contribution to the shared `subject` orchestrator port
 * (blong-server). Declaring a namespace here gives it a `ports.<ns>.request`
 * dispatch that routes `{ns}.*` calls to the `db` backend — required for any
 * gateway HTTP route (the route handler 404s "namespace not found" otherwise).
 *
 * Only `gateway` (the management routes) is declared here. The dev-only
 * demo / metering-probe namespaces (`vision`, `customer`, `meterprobe`) get
 * their own dev-only dispatch orchestrators under `orchestrator/*.dev/`, so
 * they never exist outside the `dev` intent.
 */
export default handler(() => ({
    namespace: 'gateway',
}));