code wiki / _hdl_build / nx_worklog_ingest.nx
nx_worklog_ingest.nx
buildroot/runtime/_hdl_build/nx_worklog_ingest.nx
about
nx_worklog_ingest.nx -- thin work-journal capture runner over the shared wli_capture entry point.
Three trigger modes, all idempotent via the per-transcript cursor (zero duplicate lines):
1. hook stdin JSON -> reads "transcript_path" (Windows path auto-translated to WSL), ingests.
2. explicit arg -> nx_worklog_ingest <transcript_path> (manual / a cron with a path).
3. no input at all -> cron fallback: ingest the NEWEST *.jsonl in the project dir.
SILENT BY DESIGN: never writes stdout, so a hook injects nothing into the model context = zero
tokens. Degrades gracefully (no transcript yet -> exit 0, nothing logged). Sovereign.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_worklog_ingest_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const WLI_PROJDIR: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder" |
| 13 | const WLI_CURSORS: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory/worklog/cursors" |
functions
| 15 | func main(argc: i64, argv: *i64) -> i64 |