difit 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +8 -10
  2. package/dist/cli/index.d.ts +2 -0
  3. package/dist/cli/index.test.d.ts +1 -0
  4. package/dist/cli/index.test.js +676 -0
  5. package/dist/cli/utils.d.ts +1 -0
  6. package/dist/cli/utils.js +12 -1
  7. package/dist/cli/utils.test.d.ts +1 -0
  8. package/dist/cli/utils.test.js +214 -0
  9. package/dist/client/assets/index-CGpOyJJl.js +178 -0
  10. package/dist/client/assets/index-CpclbaYk.css +1 -0
  11. package/dist/client/index.html +2 -2
  12. package/dist/server/git-diff-tui.d.ts +2 -0
  13. package/dist/server/git-diff-tui.js +95 -0
  14. package/dist/server/git-diff.d.ts +10 -0
  15. package/dist/server/git-diff.js +23 -5
  16. package/dist/server/git-diff.test.d.ts +1 -0
  17. package/dist/server/git-diff.test.js +292 -0
  18. package/dist/server/server.d.ts +12 -0
  19. package/dist/server/server.js +8 -58
  20. package/dist/server/server.test.d.ts +1 -0
  21. package/dist/server/server.test.js +382 -0
  22. package/dist/tui/App.d.ts +8 -0
  23. package/dist/tui/App.js +92 -0
  24. package/dist/tui/components/DiffViewer.d.ts +9 -0
  25. package/dist/tui/components/DiffViewer.js +88 -0
  26. package/dist/tui/components/FileList.d.ts +8 -0
  27. package/dist/tui/components/FileList.js +48 -0
  28. package/dist/tui/components/SideBySideDiffViewer.d.ts +9 -0
  29. package/dist/tui/components/SideBySideDiffViewer.js +237 -0
  30. package/dist/tui/components/StatusBar.d.ts +8 -0
  31. package/dist/tui/components/StatusBar.js +23 -0
  32. package/dist/tui/utils/parseDiff.d.ts +2 -0
  33. package/dist/tui/utils/parseDiff.js +68 -0
  34. package/dist/types/diff.d.ts +35 -0
  35. package/dist/utils/fileUtils.d.ts +12 -0
  36. package/dist/utils/fileUtils.js +21 -0
  37. package/package.json +1 -1
  38. package/dist/client/assets/index-W2UC55JC.css +0 -1
  39. package/dist/client/assets/index-hiGBtmpa.js +0 -142
package/README.md CHANGED
@@ -87,20 +87,18 @@ pnpm run typecheck
87
87
 
88
88
  ReviewIt includes an inline commenting system that integrates with Claude Code:
89
89
 
90
- 1.️ **Add Comments**: Click the 💬 icon on any diff line to add a comment
91
- 2. **Generate Prompts**: Comments include a "Copy Prompt" button that formats the context for Claude Code
92
- 3. **Persistent Storage**: Comments are saved in `.reviewit/tmp-comments-*.json` for the session
90
+ 1. **Add Comments**: Click on any diff line to add a comment
91
+ 2. **Edit Comments**: Edit existing comments with the edit button
92
+ 3. **Generate Prompts**: Comments include a "Copy Prompt" button that formats the context for Claude Code
93
+ 4. **Copy All**: Use "Copy All Prompt" to copy all comments in a structured format
94
+ 5. **Persistent Storage**: Comments are saved in browser localStorage per commit
93
95
 
94
96
  ### Comment Prompt Format
95
97
 
96
98
  ```
97
- 📄 src/components/Button.tsx L42
98
- ----
99
- + const handleClick = () => {
100
- + onClick();
101
- + };
102
- ----
103
- Comment: "This function name should probably be more specific"
99
+ File: src/components/Button.tsx
100
+ Line: 42
101
+ Comment: This function name should probably be more specific
104
102
  ```
105
103
 
106
104
  ## 🏗️ Architecture
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1 @@
1
+ export {};