Commit Graph
8 Commits
Author SHA1 Message Date
chrnx 757b729986 fix(add): merge imports into existing brace + capability idempotency; fmt
- wire::add_import now merges a new symbol into an already-present
  `import { ... } from '<from>';` brace instead of appending a second,
  colliding import line for the same module (a duplicate ESM binding
  is a hard SyntaxError/TS2300, not a harmless dupe as previously
  assumed). Falls back to appending a new line when the module isn't
  imported yet, or if the brace-merge edit fails the parses_clean
  guard.
- cmd_add::run gains a capability-level idempotency guard, keyed on
  each capability's unique route-path literal, so `matcha add <cap>`
  run twice no longer appends a duplicate handler + route.
- cargo fmt --all across the crate; drop the stale #[allow(dead_code)]
  on wire::parses_clean now that it's demonstrably live.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:52:21 -05:00
chrnx 87d7e185d7 test(add): cover insert_method revert/not-found paths and only_controller errors
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:38:09 -05:00
chrnx 1b9990f02a feat: matcha add appends capability handler to the controller
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:33:32 -05:00
chrnx 13b77b3999 feat: matcha create controller with tree-sitter auto-wire + emit-only fallback
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:24:29 -05:00
chrnx 2972326103 feat: matcha new --template-url via shallow git clone
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:06:19 -05:00
chrnx de000cb27d fix(new): no orphan dir on error path; drop stale dead_code allow
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:03:01 -05:00
chrnx 06849ebab4 feat: matcha new scaffolds from embedded starter
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:59:38 -05:00
chrnx bbe3e299ae feat: matcha binary skeleton with clap command surface
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:41:27 -05:00