@wasabeef/agentnote 0.1.2 → 0.1.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/dist/cli.js +4 -12
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -66,7 +66,7 @@ import { readFile, writeFile, mkdir } from "node:fs/promises";
|
|
|
66
66
|
import { existsSync, readdirSync } from "node:fs";
|
|
67
67
|
import { join as join2 } from "node:path";
|
|
68
68
|
import { homedir } from "node:os";
|
|
69
|
-
var HOOK_COMMAND = "
|
|
69
|
+
var HOOK_COMMAND = "npx --yes @wasabeef/agentnote hook";
|
|
70
70
|
var HOOKS_CONFIG = {
|
|
71
71
|
SessionStart: [
|
|
72
72
|
{ hooks: [{ type: "command", command: HOOK_COMMAND, async: true }] }
|
|
@@ -80,7 +80,7 @@ var HOOKS_CONFIG = {
|
|
|
80
80
|
PreToolUse: [
|
|
81
81
|
{
|
|
82
82
|
matcher: "Bash",
|
|
83
|
-
hooks: [{ type: "command", if: "Bash(git commit
|
|
83
|
+
hooks: [{ type: "command", if: "Bash(*git commit*)", command: HOOK_COMMAND }]
|
|
84
84
|
}
|
|
85
85
|
],
|
|
86
86
|
PostToolUse: [
|
|
@@ -268,7 +268,7 @@ jobs:
|
|
|
268
268
|
- uses: actions/checkout@v4
|
|
269
269
|
with:
|
|
270
270
|
fetch-depth: 0
|
|
271
|
-
- uses: wasabeef/agentnote@
|
|
271
|
+
- uses: wasabeef/agentnote@v0
|
|
272
272
|
`;
|
|
273
273
|
async function init(args2) {
|
|
274
274
|
const skipHooks = args2.includes("--no-hooks");
|
|
@@ -1099,18 +1099,10 @@ var HELP = `
|
|
|
1099
1099
|
agentnote \u2014 remember why your code changed
|
|
1100
1100
|
|
|
1101
1101
|
usage:
|
|
1102
|
-
agentnote init
|
|
1103
|
-
--hooks hooks only
|
|
1104
|
-
--action workflow only
|
|
1105
|
-
--no-action skip workflow
|
|
1102
|
+
agentnote init set up hooks, workflow, and notes auto-fetch
|
|
1106
1103
|
agentnote show [commit] show session details for a commit
|
|
1107
1104
|
agentnote log [n] list recent commits with session info
|
|
1108
|
-
agentnote pr [base] [options] generate report for a PR
|
|
1109
|
-
--json structured JSON
|
|
1110
|
-
--format chat chat-style transcript
|
|
1111
|
-
--update <pr#> insert into PR description
|
|
1112
1105
|
agentnote status show current tracking state
|
|
1113
|
-
agentnote commit [args] git commit with session context (optional)
|
|
1114
1106
|
agentnote version print version
|
|
1115
1107
|
agentnote help show this help
|
|
1116
1108
|
`.trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wasabeef/agentnote",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Remember why your code changed. Link AI agent sessions to git commits.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"build": "esbuild src/cli.ts --bundle --platform=node --format=esm --outfile=dist/cli.js --banner:js='#!/usr/bin/env node'",
|
|
11
11
|
"dev": "tsx src/cli.ts",
|
|
12
12
|
"lint": "tsc --noEmit",
|
|
13
|
-
"test": "node --import tsx/esm --test
|
|
14
|
-
"test:coverage": "node --import tsx/esm --test --experimental-test-coverage
|
|
13
|
+
"test": "find src -name '*.test.ts' | xargs node --import tsx/esm --test",
|
|
14
|
+
"test:coverage": "find src -name '*.test.ts' | xargs node --import tsx/esm --test --experimental-test-coverage",
|
|
15
15
|
"prepublishOnly": "npm run build"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|