@mesadev/agentblame 3.1.0 → 3.1.1
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 +25 -7
- package/dist/index.js +0 -0
- package/package.json +2 -2
- package/dist/agentblame.js +0 -3500
package/README.md
CHANGED
|
@@ -15,15 +15,30 @@ curl -fsSL https://bun.sh/install | bash
|
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
|
+
Use with bunx (recommended):
|
|
19
|
+
```bash
|
|
20
|
+
bunx @mesadev/agentblame@latest <command>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or install globally:
|
|
18
24
|
```bash
|
|
19
25
|
npm install -g @mesadev/agentblame
|
|
20
26
|
```
|
|
21
27
|
|
|
22
28
|
## Setup
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
### 1. One-Time Machine Setup
|
|
31
|
+
|
|
32
|
+
Run this once on your machine to create the local database:
|
|
33
|
+
```bash
|
|
34
|
+
bunx @mesadev/agentblame@latest setup
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 2. Repository Setup
|
|
38
|
+
|
|
39
|
+
In each git repository you want to track:
|
|
25
40
|
```bash
|
|
26
|
-
agentblame init
|
|
41
|
+
bunx @mesadev/agentblame@latest init
|
|
27
42
|
```
|
|
28
43
|
|
|
29
44
|
This sets up:
|
|
@@ -31,7 +46,7 @@ This sets up:
|
|
|
31
46
|
- Git post-commit hook for attribution capture
|
|
32
47
|
- GitHub Actions workflow for squash/merge support
|
|
33
48
|
|
|
34
|
-
**Note:** Restart your editor after running
|
|
49
|
+
**Note:** Restart your editor after running init.
|
|
35
50
|
|
|
36
51
|
## Usage
|
|
37
52
|
|
|
@@ -83,7 +98,8 @@ agentblame blame <file>
|
|
|
83
98
|
## CLI Commands
|
|
84
99
|
|
|
85
100
|
```bash
|
|
86
|
-
agentblame
|
|
101
|
+
agentblame setup # One-time machine setup (creates ~/.agentblame database)
|
|
102
|
+
agentblame init # Set up hooks and workflow for current repo
|
|
87
103
|
agentblame clean # Remove hooks from current repo
|
|
88
104
|
agentblame blame <file> # Show AI attribution
|
|
89
105
|
agentblame sync # Transfer notes after squash/rebase
|
|
@@ -94,9 +110,10 @@ agentblame debug # Show detailed debug info
|
|
|
94
110
|
### Examples
|
|
95
111
|
|
|
96
112
|
```bash
|
|
97
|
-
agentblame
|
|
98
|
-
agentblame
|
|
99
|
-
agentblame
|
|
113
|
+
bunx @mesadev/agentblame@latest setup
|
|
114
|
+
bunx @mesadev/agentblame@latest init
|
|
115
|
+
bunx @mesadev/agentblame@latest blame src/index.ts
|
|
116
|
+
bunx @mesadev/agentblame@latest config set storePromptContent true
|
|
100
117
|
```
|
|
101
118
|
|
|
102
119
|
## Chrome Extension
|
|
@@ -109,6 +126,7 @@ Get it from the [Chrome Web Store](https://chromewebstore.google.com/detail/agen
|
|
|
109
126
|
|
|
110
127
|
| Problem | Solution |
|
|
111
128
|
|---------|----------|
|
|
129
|
+
| Database not found | Run `bunx @mesadev/agentblame@latest setup` once on your machine |
|
|
112
130
|
| Hooks not capturing | Restart your editor; run `agentblame debug` to check status |
|
|
113
131
|
| Notes not on GitHub | Run `git push origin refs/notes/agentblame` |
|
|
114
132
|
| Squash merge lost attribution | Ensure workflow is committed; run `agentblame sync` locally |
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mesadev/agentblame",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "CLI to track AI-generated vs human-written code",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"README.md"
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "tsc",
|
|
38
|
+
"build": "rm -rf dist && tsc",
|
|
39
39
|
"clean": "rm -rf dist",
|
|
40
40
|
"dev": "bun run build && bun run dist/index.js",
|
|
41
41
|
"dev:post-merge": "./scripts/dev-post-merge.sh",
|