@braingrid/cli 0.2.31 → 0.2.33
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/CHANGELOG.md +19 -0
- package/README.md +3 -0
- package/dist/cli.js +17 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.33] - 2026-02-03
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **README documentation update**
|
|
15
|
+
- Updated "What gets installed" section to document all Claude Code setup files
|
|
16
|
+
- Added status line script (`.claude/statusline.sh`)
|
|
17
|
+
- Added hook script (`.claude/hooks/sync-braingrid-task.sh`)
|
|
18
|
+
- Added settings configuration (`.claude/settings.json`)
|
|
19
|
+
|
|
20
|
+
## [0.2.32] - 2026-02-03
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **Hooks configuration in settings.json**
|
|
25
|
+
- `braingrid setup claude-code` now configures PostToolUse hooks in `.claude/settings.json`
|
|
26
|
+
- Hooks trigger sync-braingrid-task.sh on TaskUpdate events with 10s timeout
|
|
27
|
+
- Enables automatic task status synchronization between Claude Code and BrainGrid
|
|
28
|
+
|
|
10
29
|
## [0.2.31] - 2026-02-03
|
|
11
30
|
|
|
12
31
|
### Added
|
package/README.md
CHANGED
|
@@ -146,6 +146,9 @@ braingrid setup cursor --dry-run
|
|
|
146
146
|
- **Claude Code integration:**
|
|
147
147
|
- Commands in `.claude/commands/` (specify, breakdown, build, save-requirement)
|
|
148
148
|
- Skills in `.claude/skills/braingrid-cli/`
|
|
149
|
+
- Status line script at `.claude/statusline.sh`
|
|
150
|
+
- Hook script at `.claude/hooks/sync-braingrid-task.sh` for task status sync
|
|
151
|
+
- Settings in `.claude/settings.json` (configures status line and hooks)
|
|
149
152
|
- Content injected into `CLAUDE.md` (or creates it if it doesn't exist)
|
|
150
153
|
|
|
151
154
|
- **Cursor integration:**
|
package/dist/cli.js
CHANGED
|
@@ -222,7 +222,7 @@ async function axiosWithRetry(config2, options) {
|
|
|
222
222
|
|
|
223
223
|
// src/build-config.ts
|
|
224
224
|
var BUILD_ENV = true ? "production" : process.env.NODE_ENV === "test" ? "development" : "production";
|
|
225
|
-
var CLI_VERSION = true ? "0.2.
|
|
225
|
+
var CLI_VERSION = true ? "0.2.33" : "0.0.0-test";
|
|
226
226
|
var PRODUCTION_CONFIG = {
|
|
227
227
|
apiUrl: "https://app.braingrid.ai",
|
|
228
228
|
workosAuthUrl: "https://auth.braingrid.ai",
|
|
@@ -2679,7 +2679,7 @@ async function copyBraingridReadme(targetPath = ".braingrid/README.md") {
|
|
|
2679
2679
|
return false;
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
2682
|
-
async function updateClaudeSettings(settingsPath = ".claude/settings.json", scriptPath2 = ".claude/statusline.sh") {
|
|
2682
|
+
async function updateClaudeSettings(settingsPath = ".claude/settings.json", scriptPath2 = ".claude/statusline.sh", hookScriptPath = ".claude/hooks/sync-braingrid-task.sh") {
|
|
2683
2683
|
try {
|
|
2684
2684
|
let settings = {};
|
|
2685
2685
|
try {
|
|
@@ -2692,9 +2692,23 @@ async function updateClaudeSettings(settingsPath = ".claude/settings.json", scri
|
|
|
2692
2692
|
command: scriptPath2,
|
|
2693
2693
|
padding: 0
|
|
2694
2694
|
};
|
|
2695
|
+
settings.hooks = {
|
|
2696
|
+
PostToolUse: [
|
|
2697
|
+
{
|
|
2698
|
+
matcher: "TaskUpdate",
|
|
2699
|
+
hooks: [
|
|
2700
|
+
{
|
|
2701
|
+
type: "command",
|
|
2702
|
+
command: hookScriptPath,
|
|
2703
|
+
timeout: 1e4
|
|
2704
|
+
}
|
|
2705
|
+
]
|
|
2706
|
+
}
|
|
2707
|
+
]
|
|
2708
|
+
};
|
|
2695
2709
|
const parentDir = path2.dirname(settingsPath);
|
|
2696
2710
|
await fs2.mkdir(parentDir, { recursive: true });
|
|
2697
|
-
const content = JSON.stringify(settings, null,
|
|
2711
|
+
const content = JSON.stringify(settings, null, " ");
|
|
2698
2712
|
await fs2.writeFile(settingsPath, content, { encoding: "utf8" });
|
|
2699
2713
|
} catch (error) {
|
|
2700
2714
|
const errorMessage = error instanceof Error ? error.message : String(error);
|