Commit graph

11 commits

Author SHA1 Message Date
d5d34afb00
feat: global --source-root — index/mv/check/fix one subtree; deterministic Java FQN resolution in monorepos with duplicate packages (guava vs android/guava); move mv_reject to output.rs 2026-09-15 16:48:57 +02:00
7f568fd0c9
ci: set core.autocrlf=false before checkout; windows images ship autocrlf=true in system gitconfig, which rewrote LF fixtures to CRLF and broke byte-span assertions 2026-09-15 16:18:23 +02:00
4f91cf4387
test: force-track the node_modules fixture file the fixture .gitignore hid from git; run all test binaries with --no-fail-fast 2026-09-15 16:14:42 +02:00
8a9a384365
chore: crates.io publish metadata + CI matrix (fmt/clippy on linux, cargo test on linux+windows) 2026-09-15 16:10:17 +02:00
81d442b5b1
docs: fix rules, git-aware mv, install-as-library; agent workflow for mv+fix+check loop 2026-09-15 16:10:17 +02:00
9dda5f4562
feat: fix engine (Phase 1.6) + git-aware mv + windows-safe path output
- Edit engine: generic span edits (replace/insert/delete) with stale-index
  guard; mv and fix share one atomic apply/rollback/diff/--json pipeline
- jmove mv|check|fix commands; java rules: unused-import, missing-import
  (unique-FQN insert, ambiguous -> candidates for agents), import-order
  (google style; cross-rule byte conflicts prune by severity and converge)
- mv of tracked files goes through git mv (staged rename, --no-git opt-out,
  moved_via/would_move_via in --json, GIT_ERROR code)
- fix java extract_package losing single-segment packages (bare identifier,
  not scoped_identifier) — broke the FQN index for 'package p;' projects
- core::rel_str: project-relative paths rendered with '/' on every platform
  (human/JSON/diff headers/git pathspecs), Path::display() no longer used
  for output; e2e fixtures: java/fix, java/fix_missing, java/order
2026-09-15 16:10:04 +02:00
0216fd6523
docs: Phase 1.6 fix-engine plan + guava real-world Java smoke test results 2026-09-13 17:55:55 +02:00
603f916ee9
feat(java): Phase 1.5 — tree-sitter Java frontend, package-aware mv, e2e fixtures 2026-09-13 17:29:07 +02:00
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
a33ed2eb30
chore: project skeleton — module contracts, docs plan, GPLv3 2026-09-09 21:43:42 +02:00