All files / core/blong-kukum server.ts

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

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 161x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import {realm} from '@feasibleone/blong';
 
/**
 * kukum realm entry point (server platform).
 *
 * Serves the primitive scaffolding / introspection API under the `kukum`
 * namespace (`/rpc/kukum/{primitive}/{predicate}`). Layers are auto-discovered.
 * There is deliberately no browser entry — kukum is server-side tooling and
 * needs filesystem access, which the browser platform stubs out.
 *
 * It does NOT reuse blong-server's db adapter: kukum operates on source files
 * and the live registry, never on tables. The `srv` realm is still loaded by
 * `index.ts` because the gateway/rpc infrastructure lives there.
 */
export default realm(() => ({url: import.meta.url}));