sdg:CodeAtInit
sdg:CodeAtInit is the value of sdg:hookTransport for hooks whose handler is in-process code registered at service initialisation. The HookDefinition document stays the source of truth for that the hook exists and what it matches; sdg:implementation points at the code module (e.g. @packages/sparqdown-docs/src/hooks/demoLog.ts) so the wiring is auditable from the graph.
This is the only transport Phase 1 ships — fast, no delivery failures, no sandbox. The trade-off is locality: only code compiled into the host service can subscribe. Phase 4's HTTP-webhook transport addresses out-of-process consumers.
Usage
- Used as the object of
sdg:hookTransportonsdg:HookDefinitiondocuments.