@mesadev/agentblame 3.0.1 → 3.0.3
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.
- package/README.md +39 -21
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Track AI-generated vs human-written code. Know what the AI wrote and focus your
|
|
|
6
6
|
|
|
7
7
|
- [Bun](https://bun.sh/) runtime (required for hooks)
|
|
8
8
|
- Git 2.25+
|
|
9
|
-
- Cursor
|
|
9
|
+
- Cursor, Claude Code, or OpenCode
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
# Install Bun if you haven't already
|
|
@@ -27,16 +27,36 @@ agentblame init
|
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
This sets up:
|
|
30
|
-
- Editor hooks for Cursor
|
|
30
|
+
- Editor hooks for Cursor, Claude Code, and OpenCode
|
|
31
31
|
- Git post-commit hook for attribution capture
|
|
32
32
|
- GitHub Actions workflow for squash/merge support
|
|
33
33
|
|
|
34
|
-
**Note:** Restart
|
|
34
|
+
**Note:** Restart your editor after running this.
|
|
35
35
|
|
|
36
36
|
## Usage
|
|
37
37
|
|
|
38
|
-
1. Make AI edits in Cursor
|
|
38
|
+
1. Make AI edits in Cursor, Claude Code, or OpenCode
|
|
39
39
|
2. Commit your changes (attribution attached automatically)
|
|
40
|
+
```bash
|
|
41
|
+
git commit -m "new python file"
|
|
42
|
+
```
|
|
43
|
+
```
|
|
44
|
+
┌──────────────────────────────────────────────────────────────────────┐
|
|
45
|
+
│ Agent Blame v3 │
|
|
46
|
+
├──────────────────────────────────────────────────────────────────────┤
|
|
47
|
+
│ Commit: 7bdf773b │
|
|
48
|
+
│ Files: 1 │
|
|
49
|
+
├──────────────────────────────────────────────────────────────────────┤
|
|
50
|
+
│ Sessions: │
|
|
51
|
+
│ b4deb96e [cursor - gpt-5.2-codex] │
|
|
52
|
+
│ [P13] "Add a new file hello_world.py in python and a..." │
|
|
53
|
+
├──────────────────────────────────────────────────────────────────────┤
|
|
54
|
+
│ Summary: │
|
|
55
|
+
│ ██████████████████████████████████████████████████ │
|
|
56
|
+
│ AI: 2 lines (100%) Human: 0 lines ( 0%) │
|
|
57
|
+
└──────────────────────────────────────────────────────────────────────┘
|
|
58
|
+
```
|
|
59
|
+
|
|
40
60
|
3. View attribution:
|
|
41
61
|
|
|
42
62
|
```bash
|
|
@@ -46,31 +66,29 @@ agentblame blame <file>
|
|
|
46
66
|
### Example Output
|
|
47
67
|
|
|
48
68
|
```
|
|
49
|
-
|
|
69
|
+
python/hello_world.py
|
|
50
70
|
──────────────────────────────────────────────────────────────────────
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
71
|
+
Prompts:
|
|
72
|
+
[P1] Cursor (gpt-5.2-codex)
|
|
73
|
+
"Add a new file hello_world.py in python and add two print st..."
|
|
74
|
+
Tools: edit: 1
|
|
75
|
+
──────────────────────────────────────────────────────────────────────
|
|
76
|
+
7bdf773 Murali Varad 2026-02-03 │ P1 │ 1 │ print("Hello, World1")
|
|
77
|
+
7bdf773 Murali Varad 2026-02-03 │ P1 │ 2 │ print("Hello, World2")
|
|
78
|
+
──────────────────────────────────────────────────────────────────────
|
|
79
|
+
████████████████████████████████████████
|
|
80
|
+
AI: 2 lines (100%) │ Human: 0 lines (0%)
|
|
59
81
|
```
|
|
60
82
|
|
|
61
83
|
## CLI Commands
|
|
62
84
|
|
|
63
85
|
```bash
|
|
64
86
|
agentblame init # Set up hooks for current repo
|
|
65
|
-
agentblame init --force # Set up hooks and clean up old global install
|
|
66
87
|
agentblame clean # Remove hooks from current repo
|
|
67
|
-
agentblame clean --force # Also clean up old global install
|
|
68
88
|
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
89
|
agentblame sync # Transfer notes after squash/rebase
|
|
73
|
-
agentblame
|
|
90
|
+
agentblame config # Show/set configuration
|
|
91
|
+
agentblame debug # Show detailed debug info
|
|
74
92
|
```
|
|
75
93
|
|
|
76
94
|
## Chrome Extension
|
|
@@ -83,9 +101,9 @@ Get it from the [Chrome Web Store](https://chromewebstore.google.com/detail/agen
|
|
|
83
101
|
|
|
84
102
|
| Problem | Solution |
|
|
85
103
|
|---------|----------|
|
|
86
|
-
| Hooks not capturing | Restart
|
|
104
|
+
| Hooks not capturing | Restart your editor; run `agentblame debug` to check status |
|
|
87
105
|
| Notes not on GitHub | Run `git push origin refs/notes/agentblame` |
|
|
88
|
-
|
|
|
106
|
+
| Squash merge lost attribution | Ensure workflow is committed; run `agentblame sync` locally |
|
|
89
107
|
| Bun not found | Install Bun: `curl -fsSL https://bun.sh/install \| bash` |
|
|
90
108
|
|
|
91
109
|
## More Information
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mesadev/agentblame",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "CLI to track AI-generated vs human-written code",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"agentblame": "./dist/index.js"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
|
-
"dist"
|
|
33
|
+
"dist",
|
|
34
|
+
"README.md"
|
|
34
35
|
],
|
|
35
36
|
"scripts": {
|
|
36
37
|
"build": "tsc",
|