braintracker 1.0.0 → 1.0.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
CHANGED
|
@@ -34,7 +34,7 @@ Removes the hook files and cleans up `~/.claude/settings.json`.
|
|
|
34
34
|
Invoke any skill inside Claude Code (e.g. `/review`), then:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
cat ~/.claude/plugin/cache/
|
|
37
|
+
cat ~/.claude/plugin/cache/braintracker/<project>/<session_id>.jsonl
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
Each line is a JSON object:
|
|
@@ -57,4 +57,4 @@ Each line is a JSON object:
|
|
|
57
57
|
| `PreToolUse` (Skill) | `pre_skill.js` | Writes a timing snapshot to `<session>.pre.json` |
|
|
58
58
|
| `PostToolUse` (Skill) | `post_skill.js` | Reads the snapshot, computes duration, appends a log entry to `<session>.jsonl`, deletes the snapshot |
|
|
59
59
|
|
|
60
|
-
Logs live at `~/.claude/plugin/cache/
|
|
60
|
+
Logs live at `~/.claude/plugin/cache/braintracker/<project>/` — one JSONL file per session, grouped by project name.
|
package/bin/braintracker.js
CHANGED
|
@@ -50,7 +50,7 @@ function install() {
|
|
|
50
50
|
writeSettings(settings);
|
|
51
51
|
|
|
52
52
|
console.log('braintracker installed.');
|
|
53
|
-
console.log('Logs → ~/.claude/plugin/cache/
|
|
53
|
+
console.log('Logs → ~/.claude/plugin/cache/braintracker/<project>/<session>.jsonl');
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
function uninstall() {
|
|
@@ -17,7 +17,7 @@ process.stdin.on('end', () => {
|
|
|
17
17
|
|
|
18
18
|
const sessionId = payload.session_id;
|
|
19
19
|
const prj = path.basename(process.cwd());
|
|
20
|
-
const cacheDir = path.join(os.homedir(), '.claude', 'plugin', 'cache', '
|
|
20
|
+
const cacheDir = path.join(os.homedir(), '.claude', 'plugin', 'cache', 'braintracker', prj);
|
|
21
21
|
const preFile = path.join(cacheDir, `${sessionId}.pre.json`);
|
|
22
22
|
|
|
23
23
|
let preData;
|
|
@@ -19,7 +19,7 @@ process.stdin.on('end', () => {
|
|
|
19
19
|
const skill = (payload.tool_input && payload.tool_input.skill) || 'unknown';
|
|
20
20
|
const triggeredBy = (payload.tool_input && payload.tool_input.args) || '';
|
|
21
21
|
const prj = path.basename(process.cwd());
|
|
22
|
-
const cacheDir = path.join(os.homedir(), '.claude', 'plugin', 'cache', '
|
|
22
|
+
const cacheDir = path.join(os.homedir(), '.claude', 'plugin', 'cache', 'braintracker', prj);
|
|
23
23
|
|
|
24
24
|
fs.mkdirSync(cacheDir, { recursive: true });
|
|
25
25
|
|