@mesadev/agentblame 0.2.1 → 0.2.2

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 (2) hide show
  1. package/README.md +30 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  Track AI-generated vs human-written code. Know what the AI wrote and focus your code reviews where it matters.
4
4
 
5
+ ## Prerequisites
6
+
7
+ - [Bun](https://bun.sh/) runtime (required for hooks)
8
+ - Git 2.25+
9
+ - Cursor or Claude Code
10
+
11
+ ```bash
12
+ # Install Bun if you haven't already
13
+ curl -fsSL https://bun.sh/install | bash
14
+ ```
15
+
5
16
  ## Installation
6
17
 
7
18
  ```bash
@@ -10,16 +21,15 @@ npm install -g @mesadev/agentblame
10
21
 
11
22
  ## Setup
12
23
 
13
- For a specific repo:
24
+ In your git repository:
14
25
  ```bash
15
- cd your-repo
16
- agentblame install
26
+ agentblame init
17
27
  ```
18
28
 
19
- Or for all repos (run from anywhere):
20
- ```bash
21
- agentblame install --global
22
- ```
29
+ This sets up:
30
+ - Editor hooks for Cursor and Claude Code
31
+ - Git post-commit hook for attribution capture
32
+ - GitHub Actions workflow for squash/merge support
23
33
 
24
34
  **Note:** Restart Cursor/Claude Code after running this.
25
35
 
@@ -51,21 +61,23 @@ a1b2c3d alice 2024-01-15 ✨ Claude Code │ 5 │ return
51
61
  ## CLI Commands
52
62
 
53
63
  ```bash
54
- agentblame install # Set up hooks (current repo)
55
- agentblame install --global # Set up hooks (all repos)
56
- agentblame uninstall # Remove hooks
57
- agentblame blame <file> # Show AI attribution
58
- agentblame blame --summary # Summary only
59
- agentblame blame --json # JSON output
60
- agentblame status # Show pending edits
61
- agentblame sync # Transfer notes after squash/rebase
64
+ agentblame init # Set up hooks for current repo
65
+ agentblame init --force # Set up hooks and clean up old global install
66
+ agentblame clean # Remove hooks from current repo
67
+ agentblame clean --force # Also clean up old global install
68
+ agentblame blame <file> # Show AI attribution
69
+ agentblame blame --summary # Summary only
70
+ agentblame blame --json # JSON output
71
+ agentblame status # Show pending edits
72
+ agentblame sync # Transfer notes after squash/rebase
73
+ agentblame prune # Remove old database entries
62
74
  ```
63
75
 
64
76
  ## Chrome Extension
65
77
 
66
78
  See AI markers on GitHub PRs with our Chrome extension.
67
79
 
68
- Get it from the [GitHub repository](https://github.com/mesa-dot-dev/agentblame#chrome-extension-optional).
80
+ Get it from the [Chrome Web Store](https://chromewebstore.google.com/detail/agent-blame/ofldnnppeiicgpmpgkbmipbcnhnbgccp) or the [GitHub repository](https://github.com/mesa-dot-dev/agentblame#chrome-extension).
69
81
 
70
82
  ## Troubleshooting
71
83
 
@@ -74,10 +86,11 @@ Get it from the [GitHub repository](https://github.com/mesa-dot-dev/agentblame#c
74
86
  | Hooks not capturing | Restart Cursor/Claude Code |
75
87
  | Notes not on GitHub | Run `git push origin refs/notes/agentblame` |
76
88
  | After squash/rebase | Run `agentblame sync` |
89
+ | Bun not found | Install Bun: `curl -fsSL https://bun.sh/install \| bash` |
77
90
 
78
91
  ## More Information
79
92
 
80
- For developer documentation and Chrome extension installation, visit the [GitHub repository](https://github.com/mesa-dot-dev/agentblame).
93
+ For full documentation, Chrome extension installation, and contributing guidelines, visit the [GitHub repository](https://github.com/mesa-dot-dev/agentblame).
81
94
 
82
95
  ## License
83
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mesadev/agentblame",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "CLI to track AI-generated vs human-written code",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {