LEM/pkg/lem
Snider 56eda1a081 refactor: migrate all 25 commands from passthrough to cobra framework
Replace passthrough() + stdlib flag.FlagSet anti-pattern with proper
cobra integration. Every Run* function now takes a typed *Opts struct
and returns error. Flags registered via cli.StringFlag/IntFlag/etc.
Commands participate in Core lifecycle with full cobra flag parsing.

- 6 command groups: gen, score, data, export, infra, mon
- 25 commands converted, 0 passthrough() calls remain
- Delete passthrough() helper from lem.go
- Update export_test.go to use ExportOpts struct

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 03:32:53 +00:00
..
agent.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
agent_test.go feat: add scoring agent + 23 capability probes (replaces scoring_agent.py) 2026-02-15 17:22:40 +00:00
analytics.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
analytics_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
approve.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
attention.go fix: raise GQA threshold to ≤4 KV heads for position-wise analysis 2026-02-23 01:02:13 +00:00
attention_test.go fix: raise GQA threshold to ≤4 KV heads for position-wise analysis 2026-02-23 01:02:13 +00:00
backend_metal.go feat: native Metal distillation command + .core/ai config 2026-02-21 23:42:55 +00:00
client.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
client_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
cluster.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
cluster_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
cmd_attention.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
compare.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
compare_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
config.go feat: GQA position-wise analysis + integer composite (0-10000) 2026-02-23 00:52:47 +00:00
consolidate.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
conv.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
conv_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
conversations.go refactor: remove Vi identity from calm conversations 2026-02-15 16:48:23 +00:00
convert.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
convert_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
coverage.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
coverage_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
db.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
db_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
distill.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
engine.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
engine_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
exact.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
exact_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
expand.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
expand_status.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
expand_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
export.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
export_test.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
features.go feat: add 19D full feature vector (grammar + heuristic + attention) 2026-02-23 00:34:22 +00:00
features_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
grammar.go feat: native Metal distillation command + .core/ai config 2026-02-21 23:42:55 +00:00
heuristic.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
heuristic_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
import.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
influx.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
influx_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
ingest.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
ingest_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
inventory.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
io.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
io_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
judge.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
judge_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
metrics.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
normalize.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
parquet.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
parquet_test.go feat: add parquet, publish, metrics, convert commands 2026-02-15 17:05:08 +00:00
probe.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
probe_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
probes.go feat: add scoring agent + 23 capability probes (replaces scoring_agent.py) 2026-02-15 17:22:40 +00:00
probes_test.go feat: add scoring agent + 23 capability probes (replaces scoring_agent.py) 2026-02-15 17:22:40 +00:00
prompts.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
publish.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
query.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
score_cmd.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
seed_influx.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
status.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
status_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
tier_score.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
types.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
worker.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
worker_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00