@agentvault/claude-bridge 0.1.1 → 0.2.0
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/dist/bridge.d.ts +27 -0
- package/dist/index.js +22025 -6220
- package/dist/session.d.ts +17 -1
- package/package.json +3 -2
package/dist/session.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The one tool the room session exposes: `room_say`. Speaking to the room is an
|
|
4
|
+
* explicit choice — Claude calls this only when it has something to add, and
|
|
5
|
+
* stays silent otherwise. The handler hands the text to the bridge, which sends
|
|
6
|
+
* it to the active room. This is the ONLY capability the (otherwise locked-down)
|
|
7
|
+
* session has; it cannot touch the filesystem, network, or device keys.
|
|
8
|
+
*/
|
|
9
|
+
export declare function makeRoomSayTool(onSay: (text: string) => void | Promise<void>): import("@anthropic-ai/claude-agent-sdk").SdkMcpToolDefinition<{
|
|
10
|
+
message: z.ZodString;
|
|
11
|
+
}>;
|
|
12
|
+
/** Tool name as Claude sees it: mcp__<server>__<tool>. */
|
|
13
|
+
export declare const ROOM_SAY_TOOL_NAME = "mcp__room__say";
|
|
1
14
|
/**
|
|
2
15
|
* Minimal local mirror of the SDK's SDKUserMessage shape.
|
|
3
16
|
*
|
|
@@ -33,7 +46,10 @@ export type QueryFn = (args: {
|
|
|
33
46
|
[k: string]: unknown;
|
|
34
47
|
}>;
|
|
35
48
|
export interface SessionOpts {
|
|
36
|
-
|
|
49
|
+
/** Called when Claude chooses to speak (via the room_say tool). */
|
|
50
|
+
onSay: (text: string) => void | Promise<void>;
|
|
51
|
+
/** Called with assistant text that is NOT sent to the room (for logging). */
|
|
52
|
+
onObserve?: (text: string) => void;
|
|
37
53
|
model?: string;
|
|
38
54
|
systemPrompt?: string;
|
|
39
55
|
queryImpl?: QueryFn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentvault/claude-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgentVault Claude Room Bridge — daemon for bridging AI agents into secure E2E-encrypted AgentVault rooms.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@anthropic-ai/claude-agent-sdk": "^0.2.114",
|
|
30
|
-
"ws": "^8.16.0"
|
|
30
|
+
"ws": "^8.16.0",
|
|
31
|
+
"zod": "^4.3.6"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@agentvault/agentvault": "file:../plugin",
|