Commit 2ce043e
committed
refactor: standardize system keys with underscore prefix
Breaking changes:
- Rename `args:` frontmatter key to `_inputs:`
- Rename `env:` (object form) to `_env:` for process.env
- Template variables now require underscore prefix (e.g., {{ _name }})
to prevent namespace collision with CLI flags like --model
New features:
- Add shell_escape filter (also aliased as `q`) for safe shell quoting
- All underscore-prefixed keys are now consistently treated as system keys
Template collision prevention:
- extractTemplateVars() now only returns underscore-prefixed variables
- {{ model }} no longer consumes --model CLI flag
- {{ _model }} is the new convention for template variables
Updated:
- schema.ts: _inputs and _env validation
- command.ts: expanded SYSTEM_KEYS set
- command-builder.ts: _env extraction, skip object values
- template.ts: shell_escape filter, underscore-only extraction
- All test files updated for new conventions
- CLAUDE.md and README.md documentation updated1 parent d6e5cbd commit 2ce043e
File tree
28 files changed
+10891
-618
lines changed- .beads
- .packx_cache
- src
28 files changed
+10891
-618
lines changedBinary file not shown.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
404 | 406 | | |
405 | 407 | | |
406 | 408 | | |
407 | | - | |
| 409 | + | |
408 | 410 | | |
409 | 411 | | |
410 | 412 | | |
| |||
0 commit comments