catalyst-os 2.0.0 → 2.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.
@@ -0,0 +1,21 @@
1
+ #!/bin/bash
2
+ # Rename session to spec slug when /forge-spec or /forge-spec-worktree is invoked.
3
+ # Triggered by UserPromptSubmit hook.
4
+
5
+ PROMPT="$USER_PROMPT"
6
+
7
+ # Match /forge-spec or /forge-spec-worktree followed by a spec argument
8
+ if echo "$PROMPT" | grep -qE '^/forge-spec(-worktree)?\s+'; then
9
+ SLUG=$(echo "$PROMPT" | sed -E 's|^/forge-spec(-worktree)?\s+||' | sed 's/^@//' | xargs)
10
+
11
+ if [ -n "$SLUG" ]; then
12
+ cat <<EOF
13
+ {
14
+ "hookSpecificOutput": {
15
+ "hookEventName": "UserPromptSubmit",
16
+ "sessionTitle": "$SLUG"
17
+ }
18
+ }
19
+ EOF
20
+ fi
21
+ fi
@@ -1,14 +1,36 @@
1
1
  {
2
2
  "hooks": {
3
+ "UserPromptSubmit": [
4
+ {
5
+ "matcher": "^/forge-spec",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": ".claude/hooks/forge-session-rename.sh"
10
+ }
11
+ ]
12
+ }
13
+ ],
3
14
  "PostToolUse": [
4
15
  {
5
16
  "matcher": "Edit|Write",
6
- "command": ".claude/hooks/post-edit-format.sh $FILE_PATH"
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": ".claude/hooks/post-edit-format.sh $FILE_PATH"
21
+ }
22
+ ]
7
23
  }
8
24
  ],
9
25
  "PreCompact": [
10
26
  {
11
- "command": ".claude/hooks/pre-compact-save.sh"
27
+ "matcher": "",
28
+ "hooks": [
29
+ {
30
+ "type": "command",
31
+ "command": ".claude/hooks/pre-compact-save.sh"
32
+ }
33
+ ]
12
34
  }
13
35
  ]
14
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catalyst-os",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "scripts": {
5
5
  "postinstall": "node .catalyst/bin/install.js",
6
6
  "validate": "node .catalyst/bin/validate-artifacts.js"