@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.
@@ -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
- export interface WSChatMessage {
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;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hono/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,CAAC;AAGjF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;CAChC"}
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.36.0-dev.7ebf7748-dev.7ebf7748",
4
- "description": "HTTP server wrapping the Claude Agent SDK with SSE streaming, WebSocket, and async endpoints",
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
- "sse",
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"