|
|
55670030c3
|
feat: MVP — move files, rewrite imports, atomically
- core: gitignore-aware index (ignore crate), forward/reverse import graph,
relative-specifier math, pure-data move plans
- apply: rewrite-first + rename-last with fsync, temp+rename, full rollback
(incl. stale-plan detection before any write); unified diff for dry-run
- cli: mv + check commands, human output, --json envelope with stable error
codes (SOURCE_NOT_FOUND, TARGET_EXISTS, ...) and hints; exit codes 0/1/2
- parser/core split into submodules to keep files <=250 lines
- tests: 37 unit + 10 e2e + 2 doctests; fixtures tests/typescript/{basic,normal,complex}
- docs: SKILL.md synced (no --force in Phase 1), EXAMPLES.md
- plan: AI/agent support done; Phase 1.5 = Java niche
|
2026-09-10 11:41:03 +02:00 |
|
|
|
9d8f1e0bba
|
feat(parser): tree-sitter TS/JS import extraction + module specifier resolver
- 6 import forms: static/type/side-effect export-from, require, dynamic import()
- specifier-only rewrites: byte spans exclude quotes, statements never reformatted
- resolver: exact path > extension guessing (.ts/.tsx/.js/.jsx/.mjs/.cjs) > .d.ts > index.*
- 22 unit tests (11 parser + 11 resolver)
|
2026-09-09 22:02:09 +02:00 |
|