@mulmobridge/protocol 0.1.1 → 0.1.2
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 +4 -4
- package/dist/socket.d.ts +5 -0
- package/dist/socket.js +5 -0
- package/package.json +10 -17
package/README.md
CHANGED
|
@@ -53,10 +53,10 @@ const attachment: Attachment = {
|
|
|
53
53
|
| Package | Description |
|
|
54
54
|
|---|---|
|
|
55
55
|
| **@mulmobridge/protocol** | Wire protocol types and constants (this package) |
|
|
56
|
-
| @mulmobridge/chat-service | Server-side chat service
|
|
57
|
-
| @mulmobridge/client | Bridge client library
|
|
58
|
-
| @mulmobridge/cli | CLI bridge
|
|
59
|
-
| @mulmobridge/telegram | Telegram bridge
|
|
56
|
+
| [@mulmobridge/chat-service](https://www.npmjs.com/package/@mulmobridge/chat-service) | Server-side chat service |
|
|
57
|
+
| [@mulmobridge/client](https://www.npmjs.com/package/@mulmobridge/client) | Bridge client library |
|
|
58
|
+
| [@mulmobridge/cli](https://www.npmjs.com/package/@mulmobridge/cli) | CLI bridge |
|
|
59
|
+
| [@mulmobridge/telegram](https://www.npmjs.com/package/@mulmobridge/telegram) | Telegram bridge |
|
|
60
60
|
|
|
61
61
|
## License
|
|
62
62
|
|
package/dist/socket.d.ts
CHANGED
|
@@ -2,5 +2,10 @@ export declare const CHAT_SOCKET_PATH = "/ws/chat";
|
|
|
2
2
|
export declare const CHAT_SOCKET_EVENTS: {
|
|
3
3
|
readonly message: "message";
|
|
4
4
|
readonly push: "push";
|
|
5
|
+
/** Server → bridge streaming text chunk (Phase C of #268).
|
|
6
|
+
* Emitted during a relay while the agent is generating text.
|
|
7
|
+
* Bridge accumulates chunks for display; the final ack still
|
|
8
|
+
* carries the full response for backward compatibility. */
|
|
9
|
+
readonly textChunk: "textChunk";
|
|
5
10
|
};
|
|
6
11
|
export type ChatSocketEvent = (typeof CHAT_SOCKET_EVENTS)[keyof typeof CHAT_SOCKET_EVENTS];
|
package/dist/socket.js
CHANGED
|
@@ -3,4 +3,9 @@ export const CHAT_SOCKET_PATH = "/ws/chat";
|
|
|
3
3
|
export const CHAT_SOCKET_EVENTS = {
|
|
4
4
|
message: "message",
|
|
5
5
|
push: "push",
|
|
6
|
+
/** Server → bridge streaming text chunk (Phase C of #268).
|
|
7
|
+
* Emitted during a relay while the agent is generating text.
|
|
8
|
+
* Bridge accumulates chunks for display; the final ack still
|
|
9
|
+
* carries the full response for backward compatibility. */
|
|
10
|
+
textChunk: "textChunk",
|
|
6
11
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mulmobridge/protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared types and constants for the MulmoBridge protocol",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
7
|
-
"types": "./
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
12
14
|
}
|
|
13
15
|
},
|
|
14
16
|
"files": [
|
|
@@ -19,21 +21,12 @@
|
|
|
19
21
|
"build": "tsc",
|
|
20
22
|
"prepack": "yarn build",
|
|
21
23
|
"typecheck": "tsc --noEmit",
|
|
22
|
-
"test": "tsx --test test/test_*.ts"
|
|
23
|
-
|
|
24
|
-
"publishConfig": {
|
|
25
|
-
"main": "./dist/index.js",
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"exports": {
|
|
28
|
-
".": {
|
|
29
|
-
"types": "./dist/index.d.ts",
|
|
30
|
-
"import": "./dist/index.js"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
24
|
+
"test": "tsx --test test/test_*.ts",
|
|
25
|
+
"lint": "eslint src test"
|
|
33
26
|
},
|
|
34
27
|
"license": "MIT",
|
|
35
28
|
"author": "Receptron Team",
|
|
36
29
|
"devDependencies": {
|
|
37
|
-
"typescript": "^
|
|
30
|
+
"typescript": "^6.0.3"
|
|
38
31
|
}
|
|
39
32
|
}
|