@koda-sl/baker-bridge 0.36.0-dev.7ebf7748-dev.7ebf7748 → 0.37.0-dev.c223fbd9
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 +72 -87
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/hono/agent.d.ts +21 -18
- package/dist/hono/agent.d.ts.map +1 -1
- package/dist/hono/agent.js +233 -114
- package/dist/hono/agent.js.map +1 -1
- package/dist/hono/callback.d.ts +5 -0
- package/dist/hono/callback.d.ts.map +1 -1
- package/dist/hono/callback.js +6 -49
- package/dist/hono/callback.js.map +1 -1
- package/dist/hono/convex.d.ts +28 -5
- package/dist/hono/convex.d.ts.map +1 -1
- package/dist/hono/convex.js +212 -53
- package/dist/hono/convex.js.map +1 -1
- package/dist/hono/convex.test.d.ts +2 -0
- package/dist/hono/convex.test.d.ts.map +1 -0
- package/dist/hono/convex.test.js +90 -0
- package/dist/hono/convex.test.js.map +1 -0
- package/dist/hono/server.d.ts.map +1 -1
- package/dist/hono/server.js +7 -109
- package/dist/hono/server.js.map +1 -1
- package/dist/hono/types.d.ts +2 -17
- package/dist/hono/types.d.ts.map +1 -1
- package/package.json +3 -5
package/dist/hono/types.d.ts
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
|
+
/** Attachment shape — used by the chat dispatch endpoint and downstream. */
|
|
1
2
|
export interface ChatAttachment {
|
|
2
3
|
url: string;
|
|
3
4
|
contentType: string;
|
|
4
5
|
filename: string;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
type: "chat";
|
|
8
|
-
threadId: string;
|
|
9
|
-
content: string;
|
|
10
|
-
attachments?: ChatAttachment[];
|
|
11
|
-
}
|
|
12
|
-
export interface WSAnswerMessage {
|
|
13
|
-
type: "answer";
|
|
14
|
-
threadId: string;
|
|
15
|
-
toolUseId: string;
|
|
16
|
-
answers: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export interface WSAbortMessage {
|
|
19
|
-
type: "abort";
|
|
20
|
-
threadId: string;
|
|
21
|
-
}
|
|
22
|
-
export type IncomingWSMessage = WSChatMessage | WSAnswerMessage | WSAbortMessage;
|
|
7
|
+
/** Request body for POST /message/async (Convex → bridge dispatch). */
|
|
23
8
|
export interface AsyncMessageRequest {
|
|
24
9
|
prompt: string;
|
|
25
10
|
threadId: string;
|
package/dist/hono/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hono/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hono/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;CAChC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koda-sl/baker-bridge",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "HTTP server wrapping the Claude Agent SDK
|
|
3
|
+
"version": "0.37.0-dev.c223fbd9",
|
|
4
|
+
"description": "HTTP server wrapping the Claude Agent SDK. Persists chat events to Convex; the dashboard subscribes via Convex realtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
"claude",
|
|
24
24
|
"agent-sdk",
|
|
25
25
|
"hono",
|
|
26
|
-
"
|
|
27
|
-
"websocket",
|
|
26
|
+
"convex",
|
|
28
27
|
"ai-agent",
|
|
29
28
|
"baker"
|
|
30
29
|
],
|
|
@@ -41,7 +40,6 @@
|
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"@anthropic-ai/claude-agent-sdk": "^0.2.50",
|
|
43
42
|
"@hono/node-server": "^1.0.0",
|
|
44
|
-
"@hono/node-ws": "^1.3.0",
|
|
45
43
|
"@t3-oss/env-core": "^0.13.10",
|
|
46
44
|
"hono": "^4.0.0",
|
|
47
45
|
"zod": "^4.3.6"
|