Skip to content

Commit 26e047a

Browse files
committed
Renamed refaktor to renamify
1 parent 8530340 commit 26e047a

File tree

140 files changed

+1938
-1938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+1938
-1938
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ jobs:
6969
cargo install cargo-llvm-cov --version 0.6.15
7070
7171
- name: Generate code coverage
72-
run: cargo llvm-cov --package refaktor-core --lcov --output-path lcov.info
72+
run: cargo llvm-cov --package renamify-core --lcov --output-path lcov.info
7373

7474
- name: Check coverage threshold
7575
run: |
7676
COVERAGE_THRESHOLD=85
7777
# Run coverage and capture output
78-
COVERAGE_OUTPUT=$(cargo llvm-cov --package refaktor-core 2>&1)
78+
COVERAGE_OUTPUT=$(cargo llvm-cov --package renamify-core 2>&1)
7979
echo "$COVERAGE_OUTPUT"
8080
8181
# Extract coverage percentage from the TOTAL line
@@ -91,7 +91,7 @@ jobs:
9191
echo "Coverage meets ${COVERAGE_THRESHOLD}% threshold: ${COVERAGE}%"
9292
9393
- name: Generate HTML report
94-
run: cargo llvm-cov --package refaktor-core --html
94+
run: cargo llvm-cov --package renamify-core --html
9595

9696
- name: Upload coverage report
9797
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ jobs:
2121
# macOS builds
2222
- os: macos-latest
2323
target: x86_64-apple-darwin
24-
name: refaktor-macos-amd64
24+
name: renamify-macos-amd64
2525
- os: macos-latest
2626
target: aarch64-apple-darwin
27-
name: refaktor-macos-arm64
27+
name: renamify-macos-arm64
2828

2929
# Linux builds
3030
- os: ubuntu-latest
3131
target: x86_64-unknown-linux-gnu
32-
name: refaktor-linux-amd64
32+
name: renamify-linux-amd64
3333
- os: ubuntu-latest
3434
target: aarch64-unknown-linux-gnu
35-
name: refaktor-linux-arm64
35+
name: renamify-linux-arm64
3636
use-cross: true
3737

3838
steps:
@@ -67,15 +67,15 @@ jobs:
6767
- name: Build binary
6868
run: |
6969
if [ "${{ matrix.use-cross }}" = "true" ]; then
70-
cross build --release --target ${{ matrix.target }} --bin refaktor
70+
cross build --release --target ${{ matrix.target }} --bin renamify
7171
else
72-
cargo build --release --target ${{ matrix.target }} --bin refaktor
72+
cargo build --release --target ${{ matrix.target }} --bin renamify
7373
fi
7474
7575
- name: Create archive
7676
run: |
7777
cd target/${{ matrix.target }}/release
78-
tar czf ../../../${{ matrix.name }}.tar.gz refaktor
78+
tar czf ../../../${{ matrix.name }}.tar.gz renamify
7979
cd ../../../
8080
echo "ASSET_PATH=${{ matrix.name }}.tar.gz" >> $GITHUB_ENV
8181
@@ -125,41 +125,41 @@ jobs:
125125
git log --pretty=format:"- %s (%h)" $PREV_TAG..$TAG >> changelog.md
126126
else
127127
echo "### Initial Release" >> changelog.md
128-
echo "- First release of Refaktor" >> changelog.md
128+
echo "- First release of Renamify" >> changelog.md
129129
fi
130130
131131
echo "" >> changelog.md
132132
echo "## Installation" >> changelog.md
133133
echo "" >> changelog.md
134134
echo "### macOS (Intel)" >> changelog.md
135135
echo '```bash' >> changelog.md
136-
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/refaktor-macos-amd64.tar.gz | tar xz" >> changelog.md
137-
echo "sudo mv refaktor /usr/local/bin/" >> changelog.md
136+
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/renamify-macos-amd64.tar.gz | tar xz" >> changelog.md
137+
echo "sudo mv renamify /usr/local/bin/" >> changelog.md
138138
echo '```' >> changelog.md
139139
echo "" >> changelog.md
140140
echo "### macOS (Apple Silicon)" >> changelog.md
141141
echo '```bash' >> changelog.md
142-
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/refaktor-macos-arm64.tar.gz | tar xz" >> changelog.md
143-
echo "sudo mv refaktor /usr/local/bin/" >> changelog.md
142+
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/renamify-macos-arm64.tar.gz | tar xz" >> changelog.md
143+
echo "sudo mv renamify /usr/local/bin/" >> changelog.md
144144
echo '```' >> changelog.md
145145
echo "" >> changelog.md
146146
echo "### Linux (x86_64)" >> changelog.md
147147
echo '```bash' >> changelog.md
148-
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/refaktor-linux-amd64.tar.gz | tar xz" >> changelog.md
149-
echo "sudo mv refaktor /usr/local/bin/" >> changelog.md
148+
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/renamify-linux-amd64.tar.gz | tar xz" >> changelog.md
149+
echo "sudo mv renamify /usr/local/bin/" >> changelog.md
150150
echo '```' >> changelog.md
151151
echo "" >> changelog.md
152152
echo "### Linux (ARM64)" >> changelog.md
153153
echo '```bash' >> changelog.md
154-
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/refaktor-linux-arm64.tar.gz | tar xz" >> changelog.md
155-
echo "sudo mv refaktor /usr/local/bin/" >> changelog.md
154+
echo "curl -L https://github.com/\${{ github.repository }}/releases/download/$TAG/renamify-linux-arm64.tar.gz | tar xz" >> changelog.md
155+
echo "sudo mv renamify /usr/local/bin/" >> changelog.md
156156
echo '```' >> changelog.md
157157
158158
- name: Create Release
159159
uses: softprops/action-gh-release@v1
160160
with:
161161
tag_name: ${{ steps.tag.outputs.tag }}
162-
name: Refaktor ${{ steps.tag.outputs.tag }}
162+
name: Renamify ${{ steps.tag.outputs.tag }}
163163
body_path: changelog.md
164164
draft: false
165165
prerelease: ${{ contains(steps.tag.outputs.tag, '-') }}
@@ -187,11 +187,11 @@ jobs:
187187
run: npm install -g pnpm
188188

189189
- name: Install dependencies
190-
working-directory: refaktor-mcp
190+
working-directory: renamify-mcp
191191
run: pnpm install
192192

193193
- name: Build
194-
working-directory: refaktor-mcp
194+
working-directory: renamify-mcp
195195
run: pnpm build
196196

197197
- name: Determine tag
@@ -204,14 +204,14 @@ jobs:
204204
fi
205205
206206
- name: Update package version
207-
working-directory: refaktor-mcp
207+
working-directory: renamify-mcp
208208
run: |
209209
TAG="${{ steps.tag.outputs.tag }}"
210210
VERSION="${TAG#v}" # Remove 'v' prefix
211211
npm version $VERSION --no-git-tag-version
212212
213213
- name: Publish to npm
214-
working-directory: refaktor-mcp
214+
working-directory: renamify-mcp
215215
run: npm publish --access public
216216
env:
217217
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.DS_Store
1717

1818
# Runtime directory (created at runtime, not tracked in VCS)
19-
.refaktor/
19+
.renamify/
2020

2121
# Cloned source for reference
2222
ripgrep-source/
File renamed without changes.

.taskmaster/docs/prd.txt

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
Refaktor v1.0.0 - Product Requirements Document (PRD)
1+
Renamify v1.0.0 - Product Requirements Document (PRD)
22
Owner: Nathan Broadbent
33
Date: 2025-08-11
44
Repo files referenced: INITIAL_PLANNING.md, CLAUDE.md, .taskmaster/templates/example_prd.txt
55

66
1) Summary
7-
- Refaktor is a cross-case-aware refactoring tool that performs content replacement and filesystem renames in one atomic operation with full undo and redo.
7+
- Renamify is a cross-case-aware refactoring tool that performs content replacement and filesystem renames in one atomic operation with full undo and redo.
88
- It ships as three deliverables that share one core: a Rust core library and CLI, a VS Code extension, and an MCP server wrapper that talks to the CLI.
99
- Core technologies: ripgrep crates for fast search, git for safety and rollback, JSON for change plans and history.
1010
- Project status: greenfield, unreleased. No backwards compatibility guarantees. Old code is deleted aggressively.
@@ -63,51 +63,51 @@ Non-goals for v1.0.0
6363
- Show counts by variant, by file, and grouped by content vs rename.
6464
- Provide unified diff output and a compact table view.
6565
- History
66-
- history.json in .refaktor/ with plan metadata, affected files, and content hashes for verification.
66+
- history.json in .renamify/ with plan metadata, affected files, and content hashes for verification.
6767

6868
5.2 CLI requirements
69-
- Binary name: refaktor
69+
- Binary name: renamify
7070
- Commands:
71-
- refaktor plan <old> <new> [options]
71+
- renamify plan <old> <new> [options]
7272
- --include, --exclude, --respect-gitignore (default true)
7373
- --rename-files, --rename-dirs (both default true)
7474
- --styles=<comma list> to restrict styles
7575
- --preview table|diff|json (default table)
76-
- --plan-out path (default .refaktor/plan.json)
77-
- refaktor apply [--plan path or --id <history id>] [--atomic true] [--commit]
76+
- --plan-out path (default .renamify/plan.json)
77+
- renamify apply [--plan path or --id <history id>] [--atomic true] [--commit]
7878
- --commit optionally creates a git commit with a generated message
79-
- refaktor undo <id>
80-
- refaktor redo <id>
81-
- refaktor status
82-
- refaktor history [--limit N]
83-
- refaktor dry-run alias for plan with preview only
79+
- renamify undo <id>
80+
- renamify redo <id>
81+
- renamify status
82+
- renamify history [--limit N]
83+
- renamify dry-run alias for plan with preview only
8484
- Exit codes: 0 success, 1 conflicts, 2 invalid input, 3 internal error.
8585
- Performance target: scan 100k files and generate plan within seconds on an SSD-backed repo, comparable to ripgrep speed.
8686

8787
5.3 VS Code extension requirements
8888
- Commands:
89-
- Refaktor: Plan Rename
90-
- Refaktor: Preview Plan
91-
- Refaktor: Apply Plan
92-
- Refaktor: Undo Last Refaktor
89+
- Renamify: Plan Rename
90+
- Renamify: Preview Plan
91+
- Renamify: Apply Plan
92+
- Renamify: Undo Last Renamify
9393
- UI:
9494
- QuickPick to select old and new names, style filters, include and exclude globs.
9595
- Diff-style preview webview with files, hunks, and rename badges.
9696
- Non-blocking progress with cancel that kills the CLI process.
9797
- Implementation:
98-
- TypeScript extension that shells out to the refaktor CLI with a JSON protocol over stdio.
98+
- TypeScript extension that shells out to the renamify CLI with a JSON protocol over stdio.
9999
- Bundled platform binaries or download-on-demand. Configurable path.
100100

101101
5.4 MCP server requirements
102102
- Node TypeScript service that wraps the CLI and exposes tools:
103103
- plan, apply, undo, history, preview
104-
- Installed via npx and expects refaktor CLI to be installed on PATH.
104+
- Installed via npx and expects renamify CLI to be installed on PATH.
105105
- Returns structured JSON results for Cursor or other MCP clients.
106106

107107
5.5 Data formats
108-
- .refaktor/plan.json
108+
- .renamify/plan.json
109109
- { id, created_at, old, new, styles[], includes[], excludes[], matches[], renames[], stats, version }
110-
- .refaktor/history.json
110+
- .renamify/history.json
111111
- Append-only list of applied plans with checksums and revert info.
112112

113113
5.6 Quality and testing
@@ -130,13 +130,13 @@ Non-goals for v1.0.0
130130
6) UX flows
131131

132132
Flow A - React component rename
133-
- User runs: refaktor plan UserCard AccountCard --include "src/**"
133+
- User runs: renamify plan UserCard AccountCard --include "src/**"
134134
- Preview shows content changes in .tsx and .css, plus file and directory renames.
135-
- User runs: refaktor apply --commit
135+
- User runs: renamify apply --commit
136136
- In VS Code, the extension shows a success toast and the git commit appears.
137137

138138
Flow B - Ruby model rename
139-
- User runs: refaktor plan UserProfile CustomerAccount --include "app/**" --include "db/**"
139+
- User runs: renamify plan UserProfile CustomerAccount --include "app/**" --include "db/**"
140140
- The plan updates PascalCase classes, snake_case file paths, and related specs.
141141

142142
7) Engineering notes
@@ -182,7 +182,7 @@ Flow B - Ruby model rename
182182
13) Task list for Task Master
183183

184184
T-001 Bootstrap Rust workspace
185-
- Create refaktor-cli and refaktor-core crates.
185+
- Create renamify-cli and renamify-core crates.
186186
- Set up cargo workspace, linting, formatting, and baseline CI.
187187

188188
Acceptance criteria:
@@ -256,7 +256,7 @@ T-011 Packaging
256256
- Homebrew formula and curl installer. Windows scoop where feasible.
257257

258258
Acceptance criteria:
259-
- Fresh machine can install and run refaktor.
259+
- Fresh machine can install and run renamify.
260260

261261
T-012 Docs
262262
- README, CONTRIBUTING, CHANGELOG, example scenarios, and the CLAUDE.md note.
@@ -267,16 +267,16 @@ Acceptance criteria:
267267
Appendix A - CLI examples
268268

269269
1) Basic plan and apply
270-
refaktor plan UserCard AccountCard --include "src/**" --preview table
271-
refaktor apply --commit
270+
renamify plan UserCard AccountCard --include "src/**" --preview table
271+
renamify apply --commit
272272

273273
2) Restrict styles and dry run
274-
refaktor plan UserProfile CustomerAccount --styles=camel,Pascal,snake --dry-run
274+
renamify plan UserProfile CustomerAccount --styles=camel,Pascal,snake --dry-run
275275

276276
3) Rename files and dirs only
277-
refaktor plan User User --rename-files --rename-dirs --styles=snake,kebab --include "assets/**"
277+
renamify plan User User --rename-files --rename-dirs --styles=snake,kebab --include "assets/**"
278278

279279
4) Undo
280-
refaktor undo <id>
280+
renamify undo <id>
281281

282282
End of PRD

0 commit comments

Comments
 (0)