feat: add compact dictionary codebook
CI / validate (push) Successful in 37s

This commit is contained in:
2026-07-21 11:25:45 -05:00
parent 084f76d3c1
commit 52c56f7fed
13 changed files with 673 additions and 53 deletions
+20
View File
@@ -9,5 +9,25 @@ cargo run -- dictionary generate
test -s dictionary/actions.jsonl
test -s dictionary/actions.index.json
test -s dictionary/model.codebook.json
test -s dictionary/model.examples.jsonl
test -s dictionary/static-base.json
python3 - <<'PY'
import json
from pathlib import Path
for path in [
"dictionary/actions.index.json",
"dictionary/model.codebook.json",
"dictionary/static-base.json",
]:
json.loads(Path(path).read_text())
for path in ["dictionary/actions.jsonl", "dictionary/model.examples.jsonl"]:
for line_number, line in enumerate(Path(path).read_text().splitlines(), start=1):
if line.strip():
json.loads(line)
PY
echo "precommit check complete"