@mhome/conversation-protocol 5.3.2 → 5.5.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/fixtures/catalog.event.json +9 -1
- package/fixtures/execution/admission.v1.json +5 -5
- package/fixtures/execution/app-facade-prepare.v1.json +5 -5
- package/fixtures/execution/checkpoint-purge.v1.json +5 -5
- package/fixtures/execution/completed-event.v1.json +5 -5
- package/fixtures/execution/enqueue.v1.json +7 -7
- package/fixtures/execution/failed-event.v1.json +5 -5
- package/fixtures/execution/interaction-required-event.v1.json +5 -5
- package/fixtures/execution/observation.v1.json +5 -5
- package/fixtures/execution/user-action-required-event.v1.json +5 -5
- package/fixtures/queue.event.json +4 -1
- package/fixtures/session.event.json +4 -1
- package/fixtures/talk/changed.event.json +1 -1
- package/fixtures/talk/request-get.response.json +1 -1
- package/fixtures/talk/view-agent_failed.response.json +1 -1
- package/fixtures/talk/view-completed.response.json +1 -1
- package/fixtures/talk/view-get.response.json +1 -1
- package/fixtures/talk/view-interrupted.response.json +1 -1
- package/fixtures/talk/view-system_failed.response.json +1 -1
- package/fixtures/thread-list.response.json +18 -2
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/execution/envelope.v1.schema.json +37 -37
- package/schema/pod-talk.v1.schema.json +4 -4
|
@@ -9,7 +9,15 @@
|
|
|
9
9
|
"data": {
|
|
10
10
|
"activeThreadId": "thread-2",
|
|
11
11
|
"threads": [
|
|
12
|
-
{
|
|
12
|
+
{
|
|
13
|
+
"threadId": "thread-2",
|
|
14
|
+
"title": "New conversation",
|
|
15
|
+
"state": "active",
|
|
16
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
17
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
18
|
+
"archivedAt": null,
|
|
19
|
+
"purgeAfter": null
|
|
20
|
+
}
|
|
13
21
|
]
|
|
14
22
|
}
|
|
15
23
|
}
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"payload": {
|
|
16
16
|
"type": "accepted",
|
|
17
17
|
"context": {
|
|
18
|
-
"scope": {
|
|
19
|
-
"tenant_id": "tenant-1",
|
|
20
|
-
"scope_id": "scope-1"
|
|
21
|
-
},
|
|
22
18
|
"actor": {
|
|
23
19
|
"principal": {
|
|
24
20
|
"kind": "user",
|
|
@@ -32,7 +28,11 @@
|
|
|
32
28
|
"operation_id": "operation-1",
|
|
33
29
|
"deadline_unix_ms": null,
|
|
34
30
|
"traceparent": null,
|
|
35
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
31
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
32
|
+
"space": {
|
|
33
|
+
"tenant_id": "tenant-1",
|
|
34
|
+
"space_id": "scope-1"
|
|
35
|
+
}
|
|
36
36
|
},
|
|
37
37
|
"disposition": "queued",
|
|
38
38
|
"queue_revision": 1
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"payload": {
|
|
16
16
|
"phase": "prepare",
|
|
17
17
|
"context": {
|
|
18
|
-
"scope": {
|
|
19
|
-
"tenant_id": "tenant-1",
|
|
20
|
-
"scope_id": "scope-1"
|
|
21
|
-
},
|
|
22
18
|
"actor": {
|
|
23
19
|
"principal": {
|
|
24
20
|
"kind": "user",
|
|
@@ -32,7 +28,11 @@
|
|
|
32
28
|
"operation_id": "operation-1",
|
|
33
29
|
"deadline_unix_ms": null,
|
|
34
30
|
"traceparent": null,
|
|
35
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
31
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
32
|
+
"space": {
|
|
33
|
+
"tenant_id": "tenant-1",
|
|
34
|
+
"space_id": "scope-1"
|
|
35
|
+
}
|
|
36
36
|
},
|
|
37
37
|
"request": {
|
|
38
38
|
"operation_id": "run-1:step:0:tool:call-1",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"payload": {
|
|
16
16
|
"purge_id": "purge-1",
|
|
17
17
|
"conversation_key": "conversation-1",
|
|
18
|
-
"scope": {
|
|
19
|
-
"tenant_id": "tenant-1",
|
|
20
|
-
"scope_id": "scope-1"
|
|
21
|
-
},
|
|
22
18
|
"thread_id": "thread-1",
|
|
23
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
19
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
20
|
+
"space": {
|
|
21
|
+
"tenant_id": "tenant-1",
|
|
22
|
+
"space_id": "scope-1"
|
|
23
|
+
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-1",
|
|
18
18
|
"sequence": 2,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "completed",
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
"command": {
|
|
17
17
|
"type": "enqueue",
|
|
18
18
|
"context": {
|
|
19
|
-
"scope": {
|
|
20
|
-
"tenant_id": "tenant-1",
|
|
21
|
-
"scope_id": "scope-1"
|
|
22
|
-
},
|
|
23
19
|
"actor": {
|
|
24
20
|
"principal": {
|
|
25
21
|
"kind": "user",
|
|
@@ -33,7 +29,11 @@
|
|
|
33
29
|
"operation_id": "operation-1",
|
|
34
30
|
"deadline_unix_ms": null,
|
|
35
31
|
"traceparent": null,
|
|
36
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
32
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
33
|
+
"space": {
|
|
34
|
+
"tenant_id": "tenant-1",
|
|
35
|
+
"space_id": "scope-1"
|
|
36
|
+
}
|
|
37
37
|
},
|
|
38
38
|
"message": {
|
|
39
39
|
"role": "user",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"context_generation": {
|
|
57
|
-
"
|
|
57
|
+
"user_space": "scope-1",
|
|
58
58
|
"identity": "identity-1",
|
|
59
59
|
"memory": "memory-1",
|
|
60
60
|
"integration_guide": "guide-1",
|
|
61
61
|
"installed_integrations": "installed-1",
|
|
62
|
-
"
|
|
62
|
+
"space_integrations": "scope-integrations-1"
|
|
63
63
|
},
|
|
64
64
|
"llm_plan": {
|
|
65
65
|
"revision": "1700000000000",
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-2",
|
|
18
18
|
"sequence": 3,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "failed",
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-1",
|
|
18
18
|
"sequence": 2,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "interaction_required",
|
|
@@ -14,10 +14,6 @@
|
|
|
14
14
|
"family": "observation",
|
|
15
15
|
"payload": {
|
|
16
16
|
"context": {
|
|
17
|
-
"scope": {
|
|
18
|
-
"tenant_id": "tenant-1",
|
|
19
|
-
"scope_id": "scope-1"
|
|
20
|
-
},
|
|
21
17
|
"actor": {
|
|
22
18
|
"principal": {
|
|
23
19
|
"kind": "user",
|
|
@@ -31,7 +27,11 @@
|
|
|
31
27
|
"operation_id": "operation-1",
|
|
32
28
|
"deadline_unix_ms": null,
|
|
33
29
|
"traceparent": null,
|
|
34
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
30
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
31
|
+
"space": {
|
|
32
|
+
"tenant_id": "tenant-1",
|
|
33
|
+
"space_id": "scope-1"
|
|
34
|
+
}
|
|
35
35
|
},
|
|
36
36
|
"observation": {
|
|
37
37
|
"type": "companion_text",
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-1",
|
|
18
18
|
"sequence": 2,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "interaction_required",
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"version": 2,
|
|
7
7
|
"surfaceId": "cs1:mg:feishu:YWNjb3VudA:Y2hhdA",
|
|
8
8
|
"occurredAt": "2026-08-22T00:00:00Z",
|
|
9
|
-
"data": {
|
|
9
|
+
"data": {
|
|
10
|
+
"idleTimeoutMinutes": 60,
|
|
11
|
+
"updatedAtMs": 1787356800000
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
}
|
|
@@ -5,8 +5,24 @@
|
|
|
5
5
|
"catalogVersion": 2,
|
|
6
6
|
"activeThreadId": "thread-2",
|
|
7
7
|
"threads": [
|
|
8
|
-
{
|
|
9
|
-
|
|
8
|
+
{
|
|
9
|
+
"threadId": "thread-2",
|
|
10
|
+
"title": "New conversation",
|
|
11
|
+
"state": "active",
|
|
12
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
13
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
14
|
+
"archivedAt": null,
|
|
15
|
+
"purgeAfter": null
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"threadId": "thread-1",
|
|
19
|
+
"title": "Previous",
|
|
20
|
+
"state": "archived",
|
|
21
|
+
"createdAt": "2026-08-21T00:00:00Z",
|
|
22
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
23
|
+
"archivedAt": "2026-08-22T00:00:00Z",
|
|
24
|
+
"purgeAfter": "2026-08-25T00:00:00Z"
|
|
25
|
+
}
|
|
10
26
|
]
|
|
11
27
|
}
|
|
12
28
|
}
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"type": "object",
|
|
54
54
|
"additionalProperties": false,
|
|
55
55
|
"required": [
|
|
56
|
-
"
|
|
56
|
+
"user_space",
|
|
57
57
|
"identity",
|
|
58
58
|
"memory",
|
|
59
59
|
"integration_guide",
|
|
60
60
|
"installed_integrations",
|
|
61
|
-
"
|
|
61
|
+
"space_integrations"
|
|
62
62
|
],
|
|
63
63
|
"properties": {
|
|
64
|
-
"
|
|
64
|
+
"user_space": {
|
|
65
65
|
"$ref": "#/$defs/identifier"
|
|
66
66
|
},
|
|
67
67
|
"identity": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"installed_integrations": {
|
|
77
77
|
"$ref": "#/$defs/identifier"
|
|
78
78
|
},
|
|
79
|
-
"
|
|
79
|
+
"space_integrations": {
|
|
80
80
|
"$ref": "#/$defs/identifier"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -159,29 +159,6 @@
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
"scope": {
|
|
163
|
-
"type": "object",
|
|
164
|
-
"additionalProperties": false,
|
|
165
|
-
"required": [
|
|
166
|
-
"tenant_id",
|
|
167
|
-
"scope_id"
|
|
168
|
-
],
|
|
169
|
-
"properties": {
|
|
170
|
-
"tenant_id": {
|
|
171
|
-
"oneOf": [
|
|
172
|
-
{
|
|
173
|
-
"$ref": "#/$defs/identifier"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"type": "null"
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
"scope_id": {
|
|
181
|
-
"$ref": "#/$defs/identifier"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
162
|
"actor": {
|
|
186
163
|
"type": "object",
|
|
187
164
|
"additionalProperties": false,
|
|
@@ -220,7 +197,7 @@
|
|
|
220
197
|
"type": "object",
|
|
221
198
|
"additionalProperties": false,
|
|
222
199
|
"required": [
|
|
223
|
-
"
|
|
200
|
+
"space",
|
|
224
201
|
"actor",
|
|
225
202
|
"surface_id",
|
|
226
203
|
"thread_id",
|
|
@@ -230,9 +207,6 @@
|
|
|
230
207
|
"traceparent"
|
|
231
208
|
],
|
|
232
209
|
"properties": {
|
|
233
|
-
"scope": {
|
|
234
|
-
"$ref": "#/$defs/scope"
|
|
235
|
-
},
|
|
236
210
|
"actor": {
|
|
237
211
|
"$ref": "#/$defs/actor"
|
|
238
212
|
},
|
|
@@ -269,6 +243,9 @@
|
|
|
269
243
|
"type": "null"
|
|
270
244
|
}
|
|
271
245
|
]
|
|
246
|
+
},
|
|
247
|
+
"space": {
|
|
248
|
+
"$ref": "#/$defs/space_context"
|
|
272
249
|
}
|
|
273
250
|
}
|
|
274
251
|
},
|
|
@@ -1380,7 +1357,7 @@
|
|
|
1380
1357
|
"required": [
|
|
1381
1358
|
"purge_id",
|
|
1382
1359
|
"conversation_key",
|
|
1383
|
-
"
|
|
1360
|
+
"space",
|
|
1384
1361
|
"surface_id",
|
|
1385
1362
|
"thread_id"
|
|
1386
1363
|
],
|
|
@@ -1391,14 +1368,14 @@
|
|
|
1391
1368
|
"conversation_key": {
|
|
1392
1369
|
"$ref": "#/$defs/identifier"
|
|
1393
1370
|
},
|
|
1394
|
-
"scope": {
|
|
1395
|
-
"$ref": "#/$defs/scope"
|
|
1396
|
-
},
|
|
1397
1371
|
"surface_id": {
|
|
1398
1372
|
"$ref": "#/$defs/conversation_surface"
|
|
1399
1373
|
},
|
|
1400
1374
|
"thread_id": {
|
|
1401
1375
|
"$ref": "#/$defs/identifier"
|
|
1376
|
+
},
|
|
1377
|
+
"space": {
|
|
1378
|
+
"$ref": "#/$defs/space_context"
|
|
1402
1379
|
}
|
|
1403
1380
|
}
|
|
1404
1381
|
},
|
|
@@ -1798,7 +1775,7 @@
|
|
|
1798
1775
|
"required": [
|
|
1799
1776
|
"kind",
|
|
1800
1777
|
"tenantId",
|
|
1801
|
-
"
|
|
1778
|
+
"spaceId"
|
|
1802
1779
|
],
|
|
1803
1780
|
"properties": {
|
|
1804
1781
|
"kind": {
|
|
@@ -1807,7 +1784,7 @@
|
|
|
1807
1784
|
"tenantId": {
|
|
1808
1785
|
"$ref": "#/$defs/identifier"
|
|
1809
1786
|
},
|
|
1810
|
-
"
|
|
1787
|
+
"spaceId": {
|
|
1811
1788
|
"$ref": "#/$defs/identifier"
|
|
1812
1789
|
}
|
|
1813
1790
|
}
|
|
@@ -2205,6 +2182,29 @@
|
|
|
2205
2182
|
}
|
|
2206
2183
|
}
|
|
2207
2184
|
}
|
|
2185
|
+
},
|
|
2186
|
+
"space_context": {
|
|
2187
|
+
"type": "object",
|
|
2188
|
+
"additionalProperties": false,
|
|
2189
|
+
"required": [
|
|
2190
|
+
"tenant_id",
|
|
2191
|
+
"space_id"
|
|
2192
|
+
],
|
|
2193
|
+
"properties": {
|
|
2194
|
+
"tenant_id": {
|
|
2195
|
+
"oneOf": [
|
|
2196
|
+
{
|
|
2197
|
+
"$ref": "#/$defs/identifier"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"type": "null"
|
|
2201
|
+
}
|
|
2202
|
+
]
|
|
2203
|
+
},
|
|
2204
|
+
"space_id": {
|
|
2205
|
+
"$ref": "#/$defs/identifier"
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
2208
|
}
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
"maxLength": 256,
|
|
443
443
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
444
444
|
},
|
|
445
|
-
"
|
|
445
|
+
"spaceId": {
|
|
446
446
|
"type": "string",
|
|
447
447
|
"minLength": 1,
|
|
448
448
|
"maxLength": 256,
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
},
|
|
479
479
|
"required": [
|
|
480
480
|
"ownerId",
|
|
481
|
-
"
|
|
481
|
+
"spaceId",
|
|
482
482
|
"surfaceId",
|
|
483
483
|
"threadId",
|
|
484
484
|
"controlVersion",
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
"maxLength": 256,
|
|
961
961
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
962
962
|
},
|
|
963
|
-
"
|
|
963
|
+
"spaceId": {
|
|
964
964
|
"type": "string",
|
|
965
965
|
"minLength": 1,
|
|
966
966
|
"maxLength": 256,
|
|
@@ -975,7 +975,7 @@
|
|
|
975
975
|
},
|
|
976
976
|
"required": [
|
|
977
977
|
"ownerId",
|
|
978
|
-
"
|
|
978
|
+
"spaceId",
|
|
979
979
|
"surfaceId"
|
|
980
980
|
]
|
|
981
981
|
},
|