Skip to content

Commit 64bbc73

Browse files
authored
feat(compile): autorewrite front matter via detection-based codemods (#476)
1 parent e54dfbf commit 64bbc73

10 files changed

Lines changed: 2019 additions & 28 deletions

File tree

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Every compiled pipeline runs as three sequential jobs:
6161
│ │ │ ├── safe_outputs.rs # Always-on SafeOutputs MCP extension
6262
│ │ │ ├── trigger_filters.rs # Trigger filter extension (gate evaluator delivery)
6363
│ │ │ └── tests.rs # Extension integration tests
64+
│ │ ├── codemods/ # Front-matter codemods (one file per transformation)
65+
│ │ │ ├── mod.rs # Codemod struct, CODEMODS registry, runner
66+
│ │ │ └── helpers.rs # take_key, insert_no_overwrite, rename_key, ConflictPolicy
67+
│ │ ├── codemod_integration_test.rs # White-box rewrite-path tests (stub registry injection)
6468
│ │ └── types.rs # Front matter grammar and types
6569
│ ├── init.rs # Repository initialization for AI-first authoring
6670
│ ├── execute.rs # Stage 3 safe output execution
@@ -195,6 +199,10 @@ index to jump to the right page.
195199
- [`docs/filter-ir.md`](docs/filter-ir.md) — filter expression IR
196200
specification: `Fact`/`Predicate` types, three-pass compilation (lower →
197201
validate → codegen), gate step generation, adding new filter types.
202+
- [`docs/codemods.md`](docs/codemods.md) — front-matter codemod
203+
framework: detection-based transformations, automatic source
204+
rewrite on breaking-change updates, contributor workflow for
205+
adding codemods.
198206
- [`docs/local-development.md`](docs/local-development.md) — local development
199207
setup notes.
200208

0 commit comments

Comments
 (0)