@mhome/conversation-protocol 0.11.1 → 1.2.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/admission.event.json +17 -0
- package/fixtures/request-cancel-waiting.request.json +7 -0
- package/fixtures/request-cancel-waiting.response.json +10 -0
- package/fixtures/turn-submit-waiting.response.json +13 -0
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/conversation-frame.v2.schema.json +126 -12
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/chat/event",
|
|
3
|
+
"direction": "event",
|
|
4
|
+
"body": {
|
|
5
|
+
"type": "admission.changed",
|
|
6
|
+
"surfaceId": "cs1:cp:dXNlci0x",
|
|
7
|
+
"requestId": "request-3",
|
|
8
|
+
"admissionVersion": 8,
|
|
9
|
+
"occurredAt": "2026-08-22T03:00:00Z",
|
|
10
|
+
"data": {
|
|
11
|
+
"state": "bound",
|
|
12
|
+
"reason": "accepted",
|
|
13
|
+
"threadId": "thread-3",
|
|
14
|
+
"queueVersion": 1
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -10,12 +10,83 @@
|
|
|
10
10
|
},
|
|
11
11
|
"surfaceId": {
|
|
12
12
|
"type": "string",
|
|
13
|
-
"pattern": "^cs1:(?:(?:cp|cg):[A-Za-z0-9_-]+|(?:mp|mg):[a-z][a-z0-9_]*:[A-Za-z0-9_-]+:[A-Za-z0-9_-]+(?::[A-Za-z0-9_-]+)?)$"
|
|
13
|
+
"pattern": "^cs1:(?:(?:cp|cg):[A-Za-z0-9_-]+|n:[a-z][a-z0-9_]*:[A-Za-z0-9_-]+:[A-Za-z0-9_-]+:[A-Za-z0-9_-]+|(?:mp|mg):[a-z][a-z0-9_]*:[A-Za-z0-9_-]+:[A-Za-z0-9_-]+(?::[A-Za-z0-9_-]+)?)$"
|
|
14
14
|
},
|
|
15
15
|
"time": {
|
|
16
16
|
"type": "string",
|
|
17
17
|
"format": "date-time"
|
|
18
18
|
},
|
|
19
|
+
"requestAdmission": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": [
|
|
23
|
+
"state",
|
|
24
|
+
"admissionVersion"
|
|
25
|
+
],
|
|
26
|
+
"properties": {
|
|
27
|
+
"state": {
|
|
28
|
+
"enum": [
|
|
29
|
+
"waiting_handoff",
|
|
30
|
+
"bound",
|
|
31
|
+
"cancelled",
|
|
32
|
+
"failed"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"admissionVersion": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0
|
|
38
|
+
},
|
|
39
|
+
"reason": {
|
|
40
|
+
"enum": [
|
|
41
|
+
"mode_handoff",
|
|
42
|
+
"waiting_for_prior_turn",
|
|
43
|
+
"accepted",
|
|
44
|
+
"cancelled",
|
|
45
|
+
"handoff_failed"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"threadId": {
|
|
49
|
+
"$ref": "#/$defs/id"
|
|
50
|
+
},
|
|
51
|
+
"queueVersion": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"minimum": 0
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"requestAdmissionData": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"state"
|
|
62
|
+
],
|
|
63
|
+
"properties": {
|
|
64
|
+
"state": {
|
|
65
|
+
"enum": [
|
|
66
|
+
"waiting_handoff",
|
|
67
|
+
"bound",
|
|
68
|
+
"cancelled",
|
|
69
|
+
"failed"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"reason": {
|
|
73
|
+
"enum": [
|
|
74
|
+
"mode_handoff",
|
|
75
|
+
"waiting_for_prior_turn",
|
|
76
|
+
"accepted",
|
|
77
|
+
"cancelled",
|
|
78
|
+
"handoff_failed"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"threadId": {
|
|
82
|
+
"$ref": "#/$defs/id"
|
|
83
|
+
},
|
|
84
|
+
"queueVersion": {
|
|
85
|
+
"type": "integer",
|
|
86
|
+
"minimum": 0
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
19
90
|
"previewValue": {
|
|
20
91
|
"oneOf": [
|
|
21
92
|
{
|
|
@@ -1331,6 +1402,39 @@
|
|
|
1331
1402
|
}
|
|
1332
1403
|
}
|
|
1333
1404
|
},
|
|
1405
|
+
"admissionEvent": {
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"additionalProperties": false,
|
|
1408
|
+
"required": [
|
|
1409
|
+
"type",
|
|
1410
|
+
"surfaceId",
|
|
1411
|
+
"requestId",
|
|
1412
|
+
"admissionVersion",
|
|
1413
|
+
"occurredAt",
|
|
1414
|
+
"data"
|
|
1415
|
+
],
|
|
1416
|
+
"properties": {
|
|
1417
|
+
"type": {
|
|
1418
|
+
"const": "admission.changed"
|
|
1419
|
+
},
|
|
1420
|
+
"surfaceId": {
|
|
1421
|
+
"$ref": "#/$defs/surfaceId"
|
|
1422
|
+
},
|
|
1423
|
+
"requestId": {
|
|
1424
|
+
"$ref": "#/$defs/id"
|
|
1425
|
+
},
|
|
1426
|
+
"admissionVersion": {
|
|
1427
|
+
"type": "integer",
|
|
1428
|
+
"minimum": 0
|
|
1429
|
+
},
|
|
1430
|
+
"occurredAt": {
|
|
1431
|
+
"$ref": "#/$defs/time"
|
|
1432
|
+
},
|
|
1433
|
+
"data": {
|
|
1434
|
+
"$ref": "#/$defs/requestAdmissionData"
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1334
1438
|
"debugEvent": {
|
|
1335
1439
|
"type": "object",
|
|
1336
1440
|
"additionalProperties": false,
|
|
@@ -1669,7 +1773,8 @@
|
|
|
1669
1773
|
"accessMode": {
|
|
1670
1774
|
"enum": [
|
|
1671
1775
|
"interactive",
|
|
1672
|
-
"full_access"
|
|
1776
|
+
"full_access",
|
|
1777
|
+
"no_access"
|
|
1673
1778
|
]
|
|
1674
1779
|
},
|
|
1675
1780
|
"agentModelMode": {
|
|
@@ -1734,7 +1839,8 @@
|
|
|
1734
1839
|
"accessMode": {
|
|
1735
1840
|
"enum": [
|
|
1736
1841
|
"interactive",
|
|
1737
|
-
"full_access"
|
|
1842
|
+
"full_access",
|
|
1843
|
+
"no_access"
|
|
1738
1844
|
]
|
|
1739
1845
|
},
|
|
1740
1846
|
"agentModelMode": {
|
|
@@ -1825,7 +1931,6 @@
|
|
|
1825
1931
|
"type": "object",
|
|
1826
1932
|
"additionalProperties": false,
|
|
1827
1933
|
"required": [
|
|
1828
|
-
"threadId",
|
|
1829
1934
|
"requestId"
|
|
1830
1935
|
],
|
|
1831
1936
|
"properties": {
|
|
@@ -1961,8 +2066,7 @@
|
|
|
1961
2066
|
"additionalProperties": false,
|
|
1962
2067
|
"required": [
|
|
1963
2068
|
"requestId",
|
|
1964
|
-
"disposition"
|
|
1965
|
-
"queueVersion"
|
|
2069
|
+
"disposition"
|
|
1966
2070
|
],
|
|
1967
2071
|
"properties": {
|
|
1968
2072
|
"requestId": {
|
|
@@ -1977,6 +2081,9 @@
|
|
|
1977
2081
|
"queueVersion": {
|
|
1978
2082
|
"type": "integer",
|
|
1979
2083
|
"minimum": 0
|
|
2084
|
+
},
|
|
2085
|
+
"admission": {
|
|
2086
|
+
"$ref": "#/$defs/requestAdmission"
|
|
1980
2087
|
}
|
|
1981
2088
|
}
|
|
1982
2089
|
}
|
|
@@ -2002,10 +2109,7 @@
|
|
|
2002
2109
|
"additionalProperties": false,
|
|
2003
2110
|
"required": [
|
|
2004
2111
|
"requestId",
|
|
2005
|
-
"
|
|
2006
|
-
"disposition",
|
|
2007
|
-
"sessionDisposition",
|
|
2008
|
-
"queueVersion"
|
|
2112
|
+
"disposition"
|
|
2009
2113
|
],
|
|
2010
2114
|
"properties": {
|
|
2011
2115
|
"requestId": {
|
|
@@ -2031,6 +2135,9 @@
|
|
|
2031
2135
|
"queueVersion": {
|
|
2032
2136
|
"type": "integer",
|
|
2033
2137
|
"minimum": 0
|
|
2138
|
+
},
|
|
2139
|
+
"admission": {
|
|
2140
|
+
"$ref": "#/$defs/requestAdmission"
|
|
2034
2141
|
}
|
|
2035
2142
|
}
|
|
2036
2143
|
}
|
|
@@ -2077,8 +2184,7 @@
|
|
|
2077
2184
|
"required": [
|
|
2078
2185
|
"requestId",
|
|
2079
2186
|
"phase",
|
|
2080
|
-
"outcome"
|
|
2081
|
-
"queueVersion"
|
|
2187
|
+
"outcome"
|
|
2082
2188
|
],
|
|
2083
2189
|
"properties": {
|
|
2084
2190
|
"requestId": {
|
|
@@ -2086,6 +2192,7 @@
|
|
|
2086
2192
|
},
|
|
2087
2193
|
"phase": {
|
|
2088
2194
|
"enum": [
|
|
2195
|
+
"admission_waiting",
|
|
2089
2196
|
"waiting",
|
|
2090
2197
|
"running"
|
|
2091
2198
|
]
|
|
@@ -2099,6 +2206,10 @@
|
|
|
2099
2206
|
"queueVersion": {
|
|
2100
2207
|
"type": "integer",
|
|
2101
2208
|
"minimum": 0
|
|
2209
|
+
},
|
|
2210
|
+
"admissionVersion": {
|
|
2211
|
+
"type": "integer",
|
|
2212
|
+
"minimum": 0
|
|
2102
2213
|
}
|
|
2103
2214
|
}
|
|
2104
2215
|
}
|
|
@@ -2166,6 +2277,9 @@
|
|
|
2166
2277
|
{
|
|
2167
2278
|
"$ref": "#/$defs/sessionEvent"
|
|
2168
2279
|
},
|
|
2280
|
+
{
|
|
2281
|
+
"$ref": "#/$defs/admissionEvent"
|
|
2282
|
+
},
|
|
2169
2283
|
{
|
|
2170
2284
|
"$ref": "#/$defs/liveEvent"
|
|
2171
2285
|
}
|