@robota-sdk/agent-transport-ws 3.0.0-beta.56 → 3.0.0-beta.58
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 +20 -15
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -47,21 +47,22 @@ All messages are JSON-encoded objects with a `type` field.
|
|
|
47
47
|
|
|
48
48
|
### Server to Client (pushed events)
|
|
49
49
|
|
|
50
|
-
| type
|
|
51
|
-
|
|
|
52
|
-
| `text_delta`
|
|
53
|
-
| `tool_start`
|
|
54
|
-
| `tool_end`
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
50
|
+
| type | payload | source |
|
|
51
|
+
| ----------------------- | ----------------------------------- | ---------------------------------------- |
|
|
52
|
+
| `text_delta` | `{ delta: string }` | InteractiveSession event |
|
|
53
|
+
| `tool_start` | `{ state: IToolState }` | InteractiveSession event |
|
|
54
|
+
| `tool_end` | `{ state: IToolState }` | InteractiveSession event |
|
|
55
|
+
| `background_task_event` | `{ event: TBackgroundTaskEvent }` | InteractiveSession background task event |
|
|
56
|
+
| `thinking` | `{ isThinking: boolean }` | InteractiveSession event |
|
|
57
|
+
| `complete` | `{ result: IExecutionResult }` | InteractiveSession event |
|
|
58
|
+
| `interrupted` | `{ result: IExecutionResult }` | InteractiveSession event |
|
|
59
|
+
| `error` | `{ message: string }` | InteractiveSession event |
|
|
60
|
+
| `command_result` | `{ name, message, success, data? }` | command response |
|
|
61
|
+
| `messages` | `{ messages: TUniversalMessage[] }` | get-messages response |
|
|
62
|
+
| `context` | `{ state: IContextWindowState }` | get-context response |
|
|
63
|
+
| `executing` | `{ executing: boolean }` | get-executing response |
|
|
64
|
+
| `pending` | `{ pending: string\|null }` | get-pending response |
|
|
65
|
+
| `protocol_error` | `{ message: string }` | invalid client message |
|
|
65
66
|
|
|
66
67
|
## ITransportAdapter
|
|
67
68
|
|
|
@@ -87,3 +88,7 @@ ws.on('close', () => transport.stop());
|
|
|
87
88
|
|
|
88
89
|
- `@robota-sdk/agent-sdk` — `InteractiveSession`
|
|
89
90
|
- No WebSocket library dependency (framework-agnostic)
|
|
91
|
+
|
|
92
|
+
## Background Work
|
|
93
|
+
|
|
94
|
+
When the attached `InteractiveSession` emits background task updates, the WebSocket transport forwards them as protocol messages so clients can render subagent jobs, transcript references, and terminal states without polling session JSON.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-transport-ws",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.58",
|
|
4
4
|
"description": "WebSocket transport adapter for exposing InteractiveSession over real-time connections",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@robota-sdk/agent-sdk": "3.0.0-beta.
|
|
33
|
+
"@robota-sdk/agent-sdk": "3.0.0-beta.58"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"rimraf": "^5.0.5",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"build:js": "tsup src/index.ts --format esm,cjs --out-dir dist/node --clean",
|
|
48
48
|
"build:types": "tsup src/index.ts --format esm,cjs --dts-only --out-dir dist/node",
|
|
49
49
|
"test": "vitest run --passWithNoTests",
|
|
50
|
+
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
50
51
|
"typecheck": "tsc --noEmit",
|
|
51
52
|
"lint": "eslint src/ --ext .ts",
|
|
52
53
|
"clean": "rimraf dist"
|