claude-ide-bridge 2.25.2 → 2.25.5
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 +6 -6
- package/dist/automation.js +10 -3
- package/dist/automation.js.map +1 -1
- package/dist/claudeDriver.d.ts +4 -0
- package/dist/claudeDriver.js +30 -0
- package/dist/claudeDriver.js.map +1 -1
- package/dist/claudeOrchestrator.d.ts +5 -1
- package/dist/claudeOrchestrator.js +18 -3
- package/dist/claudeOrchestrator.js.map +1 -1
- package/dist/index.js +28 -6
- package/dist/index.js.map +1 -1
- package/dist/tools/getClaudeTaskStatus.js +5 -3
- package/dist/tools/getClaudeTaskStatus.js.map +1 -1
- package/dist/tools/index.js +0 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/resumeClaudeTask.d.ts +4 -0
- package/dist/tools/resumeClaudeTask.js +16 -0
- package/dist/tools/resumeClaudeTask.js.map +1 -1
- package/dist/tools/runClaudeTask.d.ts +4 -0
- package/dist/tools/runClaudeTask.js +17 -0
- package/dist/tools/runClaudeTask.js.map +1 -1
- package/package.json +1 -1
- package/dist/tools/notifyCwdChanged.d.ts +0 -52
- package/dist/tools/notifyCwdChanged.js +0 -48
- package/dist/tools/notifyCwdChanged.js.map +0 -1
- package/dist/tools/notifyHooks.d.ts +0 -180
- package/dist/tools/notifyHooks.js +0 -165
- package/dist/tools/notifyHooks.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runClaudeTask.js","sourceRoot":"","sources":["../../src/tools/runClaudeTask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEvE,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,cAAc,GAAG,KAAK,CAAC;AAC7B,MAAM,cAAc,GAAG,OAAO,CAAC;AAC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K,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CACxE,CAAC;gBACJ,CAAC;YACH,CAAC;YAED,0DAA0D;YAC1D,IAAI,UAAU,GAAG,CAAC,CAAC;YACnB,IAAI,CAAC;gBACH,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,UAAU,CAAC;oBACzC,MAAM;oBACN,YAAY;oBACZ,SAAS;oBACT,SAAS;oBACT,KAAK;oBACL,MAAM;oBACN,aAAa;oBACb,YAAY;oBACZ,gBAAgB;oBAChB,OAAO,EAAE,CAAC,KAAa,EAAE,EAAE;wBACzB,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;oBACxC,CAAC;iBACF,CAAC,CAAC;gBACH,OAAO,iBAAiB,CAAC;oBACvB,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,OAAO,KAAK,CACV,0BAA0B,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CACvE,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-ide-bridge",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.5",
|
|
4
4
|
"description": "Standalone MCP bridge for Claude Code IDE integration with any editor — 136+ tools for LSP, debugging, terminals, Git, GitHub, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { AutomationHooks } from "../automation.js";
|
|
2
|
-
/**
|
|
3
|
-
* Called by a Claude Code CwdChanged hook (CC 2.1.83+) to notify the bridge
|
|
4
|
-
* that the working directory has changed. When the automation policy has an
|
|
5
|
-
* `onCwdChanged` block configured, this enqueues the policy prompt as a
|
|
6
|
-
* Claude task.
|
|
7
|
-
*
|
|
8
|
-
* Example settings.json hook:
|
|
9
|
-
* "CwdChanged": [{ "command": "claude --mcp ... notifyCwdChanged --cwd $CWD" }]
|
|
10
|
-
*
|
|
11
|
-
* The tool is only registered when --automation is active.
|
|
12
|
-
*/
|
|
13
|
-
export declare function createNotifyCwdChangedTool(automationHooks: AutomationHooks): {
|
|
14
|
-
schema: {
|
|
15
|
-
name: string;
|
|
16
|
-
description: string;
|
|
17
|
-
annotations: {
|
|
18
|
-
readOnlyHint: boolean;
|
|
19
|
-
destructiveHint: boolean;
|
|
20
|
-
};
|
|
21
|
-
inputSchema: {
|
|
22
|
-
type: "object";
|
|
23
|
-
properties: {
|
|
24
|
-
cwd: {
|
|
25
|
-
type: string;
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
required: string[];
|
|
30
|
-
additionalProperties: boolean;
|
|
31
|
-
};
|
|
32
|
-
outputSchema: {
|
|
33
|
-
type: string;
|
|
34
|
-
properties: {
|
|
35
|
-
received: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
cwd: {
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
required: string[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
handler: (args: Record<string, unknown>) => Promise<{
|
|
46
|
-
content: Array<{
|
|
47
|
-
type: string;
|
|
48
|
-
text: string;
|
|
49
|
-
}>;
|
|
50
|
-
structuredContent: unknown;
|
|
51
|
-
}>;
|
|
52
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { successStructured } from "./utils.js";
|
|
2
|
-
/**
|
|
3
|
-
* Called by a Claude Code CwdChanged hook (CC 2.1.83+) to notify the bridge
|
|
4
|
-
* that the working directory has changed. When the automation policy has an
|
|
5
|
-
* `onCwdChanged` block configured, this enqueues the policy prompt as a
|
|
6
|
-
* Claude task.
|
|
7
|
-
*
|
|
8
|
-
* Example settings.json hook:
|
|
9
|
-
* "CwdChanged": [{ "command": "claude --mcp ... notifyCwdChanged --cwd $CWD" }]
|
|
10
|
-
*
|
|
11
|
-
* The tool is only registered when --automation is active.
|
|
12
|
-
*/
|
|
13
|
-
export function createNotifyCwdChangedTool(automationHooks) {
|
|
14
|
-
return {
|
|
15
|
-
schema: {
|
|
16
|
-
name: "notifyCwdChanged",
|
|
17
|
-
description: "Notify the bridge that Claude Code's working directory changed. " +
|
|
18
|
-
"Triggers the onCwdChanged automation policy if configured. " +
|
|
19
|
-
"Call this from a Claude Code CwdChanged hook (CC 2.1.83+).",
|
|
20
|
-
annotations: { readOnlyHint: false, destructiveHint: false },
|
|
21
|
-
inputSchema: {
|
|
22
|
-
type: "object",
|
|
23
|
-
properties: {
|
|
24
|
-
cwd: {
|
|
25
|
-
type: "string",
|
|
26
|
-
description: "The new working directory path",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
required: ["cwd"],
|
|
30
|
-
additionalProperties: false,
|
|
31
|
-
},
|
|
32
|
-
outputSchema: {
|
|
33
|
-
type: "object",
|
|
34
|
-
properties: {
|
|
35
|
-
received: { type: "boolean" },
|
|
36
|
-
cwd: { type: "string" },
|
|
37
|
-
},
|
|
38
|
-
required: ["received", "cwd"],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
handler: async (args) => {
|
|
42
|
-
const cwd = args.cwd;
|
|
43
|
-
automationHooks.handleCwdChanged(cwd);
|
|
44
|
-
return successStructured({ received: true, cwd });
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=notifyCwdChanged.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifyCwdChanged.js","sourceRoot":"","sources":["../../src/tools/notifyCwdChanged.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,0BAA0B,CAAC,eAAgC;IACzE,OAAO;QACL,MAAM,EAAE;YACN,IAAI,EAAE,kBAAkB;YACxB,WAAW,EACT,kEAAkE;gBAClE,6DAA6D;gBAC7D,4DAA4D;YAC9D,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE;YAC5D,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,GAAG,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gCAAgC;qBAC9C;iBACF;gBACD,QAAQ,EAAE,CAAC,KAAK,CAAC;gBACjB,oBAAoB,EAAE,KAAK;aAC5B;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC7B,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACxB;gBACD,QAAQ,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC;aAC9B;SACF;QACD,OAAO,EAAE,KAAK,EAAE,IAA6B,EAAE,EAAE;YAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,GAAa,CAAC;YAC/B,eAAe,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACtC,OAAO,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QACpD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import type { AutomationHooks } from "../automation.js";
|
|
2
|
-
/**
|
|
3
|
-
* Called by a Claude Code PostCompact hook (CC 2.1.76+) to notify the bridge
|
|
4
|
-
* that the conversation context was just compacted. Triggers onPostCompact.
|
|
5
|
-
*
|
|
6
|
-
* Example settings.json hook:
|
|
7
|
-
* "PostCompact": [{ "command": "claude --mcp ... notifyPostCompact" }]
|
|
8
|
-
*/
|
|
9
|
-
export declare function createNotifyPostCompactTool(automationHooks: AutomationHooks): {
|
|
10
|
-
schema: {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
annotations: {
|
|
14
|
-
readOnlyHint: boolean;
|
|
15
|
-
destructiveHint: boolean;
|
|
16
|
-
};
|
|
17
|
-
inputSchema: {
|
|
18
|
-
type: "object";
|
|
19
|
-
properties: {};
|
|
20
|
-
additionalProperties: boolean;
|
|
21
|
-
};
|
|
22
|
-
outputSchema: {
|
|
23
|
-
type: string;
|
|
24
|
-
properties: {
|
|
25
|
-
received: {
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
required: string[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
handler: (_args: Record<string, unknown>) => Promise<{
|
|
33
|
-
content: Array<{
|
|
34
|
-
type: string;
|
|
35
|
-
text: string;
|
|
36
|
-
}>;
|
|
37
|
-
structuredContent: unknown;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Called by a Claude Code InstructionsLoaded hook (CC 2.1.76+) to notify the
|
|
42
|
-
* bridge that the session started or CLAUDE.md was reloaded. Triggers
|
|
43
|
-
* onInstructionsLoaded.
|
|
44
|
-
*
|
|
45
|
-
* Example settings.json hook:
|
|
46
|
-
* "InstructionsLoaded": [{ "command": "claude --mcp ... notifyInstructionsLoaded" }]
|
|
47
|
-
*/
|
|
48
|
-
export declare function createNotifyInstructionsLoadedTool(automationHooks: AutomationHooks): {
|
|
49
|
-
schema: {
|
|
50
|
-
name: string;
|
|
51
|
-
description: string;
|
|
52
|
-
annotations: {
|
|
53
|
-
readOnlyHint: boolean;
|
|
54
|
-
destructiveHint: boolean;
|
|
55
|
-
};
|
|
56
|
-
inputSchema: {
|
|
57
|
-
type: "object";
|
|
58
|
-
properties: {};
|
|
59
|
-
additionalProperties: boolean;
|
|
60
|
-
};
|
|
61
|
-
outputSchema: {
|
|
62
|
-
type: string;
|
|
63
|
-
properties: {
|
|
64
|
-
received: {
|
|
65
|
-
type: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
required: string[];
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
handler: (_args: Record<string, unknown>) => Promise<{
|
|
72
|
-
content: Array<{
|
|
73
|
-
type: string;
|
|
74
|
-
text: string;
|
|
75
|
-
}>;
|
|
76
|
-
structuredContent: unknown;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Called by a Claude Code TaskCreated hook (CC 2.1.84+) to notify the bridge
|
|
81
|
-
* that a subagent task was created. Triggers onTaskCreated.
|
|
82
|
-
*
|
|
83
|
-
* Example settings.json hook:
|
|
84
|
-
* "TaskCreated": [{ "command": "claude --mcp ... notifyTaskCreated --taskId $TASK_ID --prompt $PROMPT" }]
|
|
85
|
-
*/
|
|
86
|
-
export declare function createNotifyTaskCreatedTool(automationHooks: AutomationHooks): {
|
|
87
|
-
schema: {
|
|
88
|
-
name: string;
|
|
89
|
-
description: string;
|
|
90
|
-
annotations: {
|
|
91
|
-
readOnlyHint: boolean;
|
|
92
|
-
destructiveHint: boolean;
|
|
93
|
-
};
|
|
94
|
-
inputSchema: {
|
|
95
|
-
type: "object";
|
|
96
|
-
properties: {
|
|
97
|
-
taskId: {
|
|
98
|
-
type: string;
|
|
99
|
-
description: string;
|
|
100
|
-
};
|
|
101
|
-
prompt: {
|
|
102
|
-
type: string;
|
|
103
|
-
description: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
required: string[];
|
|
107
|
-
additionalProperties: boolean;
|
|
108
|
-
};
|
|
109
|
-
outputSchema: {
|
|
110
|
-
type: string;
|
|
111
|
-
properties: {
|
|
112
|
-
received: {
|
|
113
|
-
type: string;
|
|
114
|
-
};
|
|
115
|
-
taskId: {
|
|
116
|
-
type: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
required: string[];
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
handler: (args: Record<string, unknown>) => Promise<{
|
|
123
|
-
content: Array<{
|
|
124
|
-
type: string;
|
|
125
|
-
text: string;
|
|
126
|
-
}>;
|
|
127
|
-
structuredContent: unknown;
|
|
128
|
-
}>;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Called by a Claude Code PermissionDenied hook (CC 2.1.89+) to notify the
|
|
132
|
-
* bridge that a tool call was blocked. Triggers onPermissionDenied.
|
|
133
|
-
*
|
|
134
|
-
* Example settings.json hook:
|
|
135
|
-
* "PermissionDenied": [{ "command": "claude --mcp ... notifyPermissionDenied --tool $TOOL --reason $REASON" }]
|
|
136
|
-
*/
|
|
137
|
-
export declare function createNotifyPermissionDeniedTool(automationHooks: AutomationHooks): {
|
|
138
|
-
schema: {
|
|
139
|
-
name: string;
|
|
140
|
-
description: string;
|
|
141
|
-
annotations: {
|
|
142
|
-
readOnlyHint: boolean;
|
|
143
|
-
destructiveHint: boolean;
|
|
144
|
-
};
|
|
145
|
-
inputSchema: {
|
|
146
|
-
type: "object";
|
|
147
|
-
properties: {
|
|
148
|
-
tool: {
|
|
149
|
-
type: string;
|
|
150
|
-
description: string;
|
|
151
|
-
};
|
|
152
|
-
reason: {
|
|
153
|
-
type: string;
|
|
154
|
-
description: string;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
required: string[];
|
|
158
|
-
additionalProperties: boolean;
|
|
159
|
-
};
|
|
160
|
-
outputSchema: {
|
|
161
|
-
type: string;
|
|
162
|
-
properties: {
|
|
163
|
-
received: {
|
|
164
|
-
type: string;
|
|
165
|
-
};
|
|
166
|
-
tool: {
|
|
167
|
-
type: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
required: string[];
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
handler: (args: Record<string, unknown>) => Promise<{
|
|
174
|
-
content: Array<{
|
|
175
|
-
type: string;
|
|
176
|
-
text: string;
|
|
177
|
-
}>;
|
|
178
|
-
structuredContent: unknown;
|
|
179
|
-
}>;
|
|
180
|
-
};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { successStructured } from "./utils.js";
|
|
2
|
-
/**
|
|
3
|
-
* Called by a Claude Code PostCompact hook (CC 2.1.76+) to notify the bridge
|
|
4
|
-
* that the conversation context was just compacted. Triggers onPostCompact.
|
|
5
|
-
*
|
|
6
|
-
* Example settings.json hook:
|
|
7
|
-
* "PostCompact": [{ "command": "claude --mcp ... notifyPostCompact" }]
|
|
8
|
-
*/
|
|
9
|
-
export function createNotifyPostCompactTool(automationHooks) {
|
|
10
|
-
return {
|
|
11
|
-
schema: {
|
|
12
|
-
name: "notifyPostCompact",
|
|
13
|
-
description: "Notify the bridge that Claude Code just compacted its context. " +
|
|
14
|
-
"Triggers the onPostCompact automation policy if configured. " +
|
|
15
|
-
"Call this from a Claude Code PostCompact hook (CC 2.1.76+).",
|
|
16
|
-
annotations: { readOnlyHint: false, destructiveHint: false },
|
|
17
|
-
inputSchema: {
|
|
18
|
-
type: "object",
|
|
19
|
-
properties: {},
|
|
20
|
-
additionalProperties: false,
|
|
21
|
-
},
|
|
22
|
-
outputSchema: {
|
|
23
|
-
type: "object",
|
|
24
|
-
properties: {
|
|
25
|
-
received: { type: "boolean" },
|
|
26
|
-
},
|
|
27
|
-
required: ["received"],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
handler: async (_args) => {
|
|
31
|
-
automationHooks.handlePostCompact();
|
|
32
|
-
return successStructured({ received: true });
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Called by a Claude Code InstructionsLoaded hook (CC 2.1.76+) to notify the
|
|
38
|
-
* bridge that the session started or CLAUDE.md was reloaded. Triggers
|
|
39
|
-
* onInstructionsLoaded.
|
|
40
|
-
*
|
|
41
|
-
* Example settings.json hook:
|
|
42
|
-
* "InstructionsLoaded": [{ "command": "claude --mcp ... notifyInstructionsLoaded" }]
|
|
43
|
-
*/
|
|
44
|
-
export function createNotifyInstructionsLoadedTool(automationHooks) {
|
|
45
|
-
return {
|
|
46
|
-
schema: {
|
|
47
|
-
name: "notifyInstructionsLoaded",
|
|
48
|
-
description: "Notify the bridge that Claude Code loaded its instructions. " +
|
|
49
|
-
"Triggers the onInstructionsLoaded automation policy if configured. " +
|
|
50
|
-
"Call from a Claude Code InstructionsLoaded hook (CC 2.1.76+).",
|
|
51
|
-
annotations: { readOnlyHint: false, destructiveHint: false },
|
|
52
|
-
inputSchema: {
|
|
53
|
-
type: "object",
|
|
54
|
-
properties: {},
|
|
55
|
-
additionalProperties: false,
|
|
56
|
-
},
|
|
57
|
-
outputSchema: {
|
|
58
|
-
type: "object",
|
|
59
|
-
properties: {
|
|
60
|
-
received: { type: "boolean" },
|
|
61
|
-
},
|
|
62
|
-
required: ["received"],
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
handler: async (_args) => {
|
|
66
|
-
automationHooks.handleInstructionsLoaded();
|
|
67
|
-
return successStructured({ received: true });
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Called by a Claude Code TaskCreated hook (CC 2.1.84+) to notify the bridge
|
|
73
|
-
* that a subagent task was created. Triggers onTaskCreated.
|
|
74
|
-
*
|
|
75
|
-
* Example settings.json hook:
|
|
76
|
-
* "TaskCreated": [{ "command": "claude --mcp ... notifyTaskCreated --taskId $TASK_ID --prompt $PROMPT" }]
|
|
77
|
-
*/
|
|
78
|
-
export function createNotifyTaskCreatedTool(automationHooks) {
|
|
79
|
-
return {
|
|
80
|
-
schema: {
|
|
81
|
-
name: "notifyTaskCreated",
|
|
82
|
-
description: "Notify the bridge that Claude Code created a subagent task. " +
|
|
83
|
-
"Triggers the onTaskCreated automation policy if configured. " +
|
|
84
|
-
"Call this from a Claude Code TaskCreated hook (CC 2.1.84+).",
|
|
85
|
-
annotations: { readOnlyHint: false, destructiveHint: false },
|
|
86
|
-
inputSchema: {
|
|
87
|
-
type: "object",
|
|
88
|
-
properties: {
|
|
89
|
-
taskId: {
|
|
90
|
-
type: "string",
|
|
91
|
-
description: "The task ID assigned by Claude Code",
|
|
92
|
-
},
|
|
93
|
-
prompt: {
|
|
94
|
-
type: "string",
|
|
95
|
-
description: "The prompt given to the subagent (truncated to 500 chars)",
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
required: ["taskId", "prompt"],
|
|
99
|
-
additionalProperties: false,
|
|
100
|
-
},
|
|
101
|
-
outputSchema: {
|
|
102
|
-
type: "object",
|
|
103
|
-
properties: {
|
|
104
|
-
received: { type: "boolean" },
|
|
105
|
-
taskId: { type: "string" },
|
|
106
|
-
},
|
|
107
|
-
required: ["received", "taskId"],
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
handler: async (args) => {
|
|
111
|
-
const taskId = args.taskId;
|
|
112
|
-
const prompt = args.prompt;
|
|
113
|
-
automationHooks.handleTaskCreated({ taskId, prompt });
|
|
114
|
-
return successStructured({ received: true, taskId });
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Called by a Claude Code PermissionDenied hook (CC 2.1.89+) to notify the
|
|
120
|
-
* bridge that a tool call was blocked. Triggers onPermissionDenied.
|
|
121
|
-
*
|
|
122
|
-
* Example settings.json hook:
|
|
123
|
-
* "PermissionDenied": [{ "command": "claude --mcp ... notifyPermissionDenied --tool $TOOL --reason $REASON" }]
|
|
124
|
-
*/
|
|
125
|
-
export function createNotifyPermissionDeniedTool(automationHooks) {
|
|
126
|
-
return {
|
|
127
|
-
schema: {
|
|
128
|
-
name: "notifyPermissionDenied",
|
|
129
|
-
description: "Notify the bridge that Claude Code blocked a tool call. " +
|
|
130
|
-
"Triggers the onPermissionDenied automation policy if configured. " +
|
|
131
|
-
"Call this from a Claude Code PermissionDenied hook (CC 2.1.89+).",
|
|
132
|
-
annotations: { readOnlyHint: false, destructiveHint: false },
|
|
133
|
-
inputSchema: {
|
|
134
|
-
type: "object",
|
|
135
|
-
properties: {
|
|
136
|
-
tool: {
|
|
137
|
-
type: "string",
|
|
138
|
-
description: "The tool name that was denied",
|
|
139
|
-
},
|
|
140
|
-
reason: {
|
|
141
|
-
type: "string",
|
|
142
|
-
description: "The reason the tool call was blocked",
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
required: ["tool", "reason"],
|
|
146
|
-
additionalProperties: false,
|
|
147
|
-
},
|
|
148
|
-
outputSchema: {
|
|
149
|
-
type: "object",
|
|
150
|
-
properties: {
|
|
151
|
-
received: { type: "boolean" },
|
|
152
|
-
tool: { type: "string" },
|
|
153
|
-
},
|
|
154
|
-
required: ["received", "tool"],
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
handler: async (args) => {
|
|
158
|
-
const tool = args.tool;
|
|
159
|
-
const reason = args.reason;
|
|
160
|
-
automationHooks.handlePermissionDenied({ tool, reason });
|
|
161
|
-
return successStructured({ received: true, tool });
|
|
162
|
-
},
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
//# sourceMappingURL=notifyHooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifyHooks.js","sourceRoot":"","sources":["../../src/tools/notifyHooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CAAC,eAAgC;IAC1E,OAAO;QACL,MAAM,EAAE;YACN,IAAI,EAAE,mBAAmB;YACzB,WAAW,EACT,iEAAiE;gBACjE,8DAA8D;gBAC9D,6DAA6D;YAC/D,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,KA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