claude-synapse 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.
@@ -1,111 +1,111 @@
1
1
  {
2
2
  "hooks": {
3
- "PreToolUse": [
3
+ "SessionStart": [
4
4
  {
5
- "matcher": "",
6
5
  "hooks": [
7
6
  {
8
7
  "type": "command",
9
- "command": "curl -s -X POST http://localhost:4800/api/hooks/PreToolUse -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook PreToolUse --arg sid $CLAUDE_SESSION_ID --arg tn $TOOL_NAME --argjson ti \"${TOOL_INPUT:-{}}\" '. + {hook_event_name: $hook, session_id: $sid, tool_name: $tn, tool_input: $ti, tool_use_id: env.TOOL_USE_ID, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
8
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/SessionStart -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
10
9
  }
11
10
  ]
12
11
  }
13
12
  ],
14
- "PostToolUse": [
13
+ "UserPromptSubmit": [
15
14
  {
16
- "matcher": "",
17
15
  "hooks": [
18
16
  {
19
17
  "type": "command",
20
- "command": "curl -s -X POST http://localhost:4800/api/hooks/PostToolUse -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook PostToolUse --arg sid $CLAUDE_SESSION_ID --arg tn $TOOL_NAME '. + {hook_event_name: $hook, session_id: $sid, tool_name: $tn, tool_use_id: env.TOOL_USE_ID, tool_response: env.TOOL_RESPONSE, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
18
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/UserPromptSubmit -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
21
19
  }
22
20
  ]
23
21
  }
24
22
  ],
25
- "Notification": [
23
+ "SubagentStart": [
26
24
  {
27
- "matcher": "",
28
25
  "hooks": [
29
26
  {
30
27
  "type": "command",
31
- "command": "curl -s -X POST http://localhost:4800/api/hooks/Notification -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook Notification --arg sid $CLAUDE_SESSION_ID --arg msg \"$NOTIFICATION_MESSAGE\" --arg title \"$NOTIFICATION_TITLE\" '. + {hook_event_name: $hook, session_id: $sid, message: $msg, title: $title, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
28
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/SubagentStart -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
32
29
  }
33
30
  ]
34
31
  }
35
32
  ],
36
- "Stop": [
33
+ "SubagentStop": [
37
34
  {
38
- "matcher": "",
39
35
  "hooks": [
40
36
  {
41
37
  "type": "command",
42
- "command": "curl -s -X POST http://localhost:4800/api/hooks/Stop -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook Stop --arg sid $CLAUDE_SESSION_ID '. + {hook_event_name: $hook, session_id: $sid, last_assistant_message: env.LAST_ASSISTANT_MESSAGE, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
38
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/SubagentStop -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
43
39
  }
44
40
  ]
45
41
  }
46
42
  ],
47
- "SubagentStart": [
43
+ "PreToolUse": [
48
44
  {
49
- "matcher": "",
50
45
  "hooks": [
51
46
  {
52
47
  "type": "command",
53
- "command": "curl -s -X POST http://localhost:4800/api/hooks/SubagentStart -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook SubagentStart --arg sid $CLAUDE_SESSION_ID '. + {hook_event_name: $hook, session_id: $sid, agent_id: env.AGENT_ID, agent_type: env.AGENT_TYPE, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
48
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/PreToolUse -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
54
49
  }
55
50
  ]
56
51
  }
57
52
  ],
58
- "SubagentStop": [
53
+ "PostToolUse": [
59
54
  {
60
- "matcher": "",
61
55
  "hooks": [
62
56
  {
63
57
  "type": "command",
64
- "command": "curl -s -X POST http://localhost:4800/api/hooks/SubagentStop -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook SubagentStop --arg sid $CLAUDE_SESSION_ID '. + {hook_event_name: $hook, session_id: $sid, agent_id: env.AGENT_ID, agent_type: env.AGENT_TYPE, last_assistant_message: env.LAST_ASSISTANT_MESSAGE, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
58
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/PostToolUse -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
65
59
  }
66
60
  ]
67
61
  }
68
62
  ],
69
- "SessionStart": [
63
+ "PostToolUseFailure": [
70
64
  {
71
- "matcher": "",
72
65
  "hooks": [
73
66
  {
74
67
  "type": "command",
75
- "command": "curl -s -X POST http://localhost:4800/api/hooks/SessionStart -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook SessionStart --arg sid $CLAUDE_SESSION_ID '. + {hook_event_name: $hook, session_id: $sid, source: env.SESSION_SOURCE, model: env.CLAUDE_MODEL, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
68
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/PostToolUseFailure -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
76
69
  }
77
70
  ]
78
71
  }
79
72
  ],
80
- "SessionEnd": [
73
+ "PreCompact": [
81
74
  {
82
- "matcher": "",
83
75
  "hooks": [
84
76
  {
85
77
  "type": "command",
86
- "command": "curl -s -X POST http://localhost:4800/api/hooks/SessionEnd -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook SessionEnd --arg sid $CLAUDE_SESSION_ID '. + {hook_event_name: $hook, session_id: $sid, reason: env.SESSION_END_REASON, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
78
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/PreCompact -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
87
79
  }
88
80
  ]
89
81
  }
90
82
  ],
91
- "UserPromptSubmit": [
83
+ "Notification": [
92
84
  {
93
- "matcher": "",
94
85
  "hooks": [
95
86
  {
96
87
  "type": "command",
97
- "command": "curl -s -X POST http://localhost:4800/api/hooks/UserPromptSubmit -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook UserPromptSubmit --arg sid $CLAUDE_SESSION_ID --arg prompt \"$USER_PROMPT\" '. + {hook_event_name: $hook, session_id: $sid, prompt: $prompt, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
88
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/Notification -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
98
89
  }
99
90
  ]
100
91
  }
101
92
  ],
102
- "PreCompact": [
93
+ "Stop": [
94
+ {
95
+ "hooks": [
96
+ {
97
+ "type": "command",
98
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/Stop -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
99
+ }
100
+ ]
101
+ }
102
+ ],
103
+ "SessionEnd": [
103
104
  {
104
- "matcher": "",
105
105
  "hooks": [
106
106
  {
107
107
  "type": "command",
108
- "command": "curl -s -X POST http://localhost:4800/api/hooks/PreCompact -H 'Content-Type: application/json' -d \"$(echo '{}' | jq --arg hook PreCompact --arg sid $CLAUDE_SESSION_ID '. + {hook_event_name: $hook, session_id: $sid, trigger: env.COMPACT_TRIGGER, permission_mode: env.CLAUDE_PERMISSION_MODE, cwd: env.CLAUDE_CWD, transcript_path: env.CLAUDE_TRANSCRIPT_PATH}')\""
108
+ "command": "curl -s -X POST http://localhost:4800/api/hooks/SessionEnd -H 'Content-Type: application/json' --data-binary @- > /dev/null 2>&1 || true"
109
109
  }
110
110
  ]
111
111
  }
package/package.json CHANGED
@@ -1,8 +1,15 @@
1
1
  {
2
2
  "name": "claude-synapse",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Neural network visualization for Claude Code agent sessions",
5
- "keywords": ["claude", "claude-code", "agent", "visualization", "neural-network", "hooks"],
5
+ "keywords": [
6
+ "claude",
7
+ "claude-code",
8
+ "agent",
9
+ "visualization",
10
+ "neural-network",
11
+ "hooks"
12
+ ],
6
13
  "license": "MIT",
7
14
  "author": "Iulian Leon",
8
15
  "repository": {