template-jj/cmd/planctl
sid b02ae7dade feat(planctl): context-window token awareness — wiring (parent 2.0)
* emit.go: emitText/emitJSON take *TokenCtx; jsonSummary extended with *jsonCtxWin (omitempty) for context_window in JSON output
* main.go: ReadTokenCtx() called once at top of run() before subcommand dispatch; threaded through runLint
* main_test.go: golden-fixture harness extended for env.txt + transcript.jsonl staging in temp HOME
* testdata/v2/context-{info,warn,error,normal,no-session,no-limit,json-warn,multi-plan}: 8 new fixtures exercising all bands + shapes

Task 2.0 from dev/plans/26174-planctl-context-tokens/prd.md
2026-04-23 18:36:35 -06:00
..
testdata feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
bench_test.go feat(planctl): CI workflow + perf benchmark 2026-04-21 20:14:06 -06:00
context.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
context_test.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
emit.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
emit_test.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
index.go fix(planctl): paren-aware tag extraction and splitting 2026-04-21 20:42:08 -06:00
index_test.go fix(planctl): paren-aware tag extraction and splitting 2026-04-21 20:42:08 -06:00
lint.go feat(planctl): lint rules — tag-syntax, cross-reference, file-presence, EARS 2026-04-21 19:11:29 -06:00
lint_test.go feat(planctl): lint rules — tag-syntax, cross-reference, file-presence, EARS 2026-04-21 19:11:29 -06:00
main.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
main_test.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
proc_darwin.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_linux.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_stat_parse.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_stat_parse_test.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_test.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
scan.go feat(planctl): scanner — goldmark-backed InCode + LineMask classification 2026-04-21 17:02:59 -06:00
scan_test.go feat(planctl): scanner — goldmark-backed InCode + LineMask classification 2026-04-21 17:02:59 -06:00