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 24 25 26 27 28 29 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {orchestrator} from '@feasibleone/blong';
/**
* Kukum's dispatch orchestrator.
*
* `namespace: 'kukum'` registers `ports.kukum.request`, which is what the
* gateway routes `/rpc/kukum/{primitive}/{predicate}` to. `imports` attaches the
* `kukum.kukum` handler group (the generated API surface). There is no db
* destination — kukum operates on the filesystem and the live registry, not on
* tables.
*
* The live `registry` is available to handlers as `this.registry` (exposed on
* every adapter/orchestrator instance by `AdapterBase`), alongside
* `this.platform`.
*/
export default orchestrator<Record<string, unknown>>(() => ({
extends: 'orchestrator.dispatch',
activation: {
default: {
namespace: 'kukum',
imports: [/\.kukum$/],
logLevel: 'info',
},
// `cli` additionally runs this component at 'warn', so the command's
// stdout carries its result and nothing else.
cli: {logLevel: 'warn'},
},
}));
|