All files / core/blong-realm server.ts

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

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 17 18 19 20 21 22 23 241x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 4x 4x  
import {realm} from '@feasibleone/blong';
 
/**
 * server.ts — the `blong` realm entry point (server platform).
 *
 * The realm is intentionally minimal: layer folders (`adapter`, `orchestrator`,
 * `meta`, `server/test`) are auto-discovered. It owns no tables and no CRUD: its
 * six methods are reads of the semantic-log cluster service, reached through the
 * `semlog` HTTP port, and the `blong` namespace is declared by
 * `orchestrator/blong.ts`.
 *
 * The config slice below exists for that orchestrator: a port is handed the
 * config its own name resolves to, so a namespace-owning orchestrator needs an
 * entry even when it has nothing to configure.
 */
export default realm(() => ({
    url: import.meta.url,
    config: {
        default: {
            blong: {},
        },
    },
}));