@mhome/conversation-protocol 3.14.0 → 3.16.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/README.md +6 -7
- package/fixtures/execution/app-facade-user-action.v1.json +4 -3
- package/fixtures/talk/audio-upload-start.request.json +8 -0
- package/fixtures/talk/audio-upload-start.response.json +13 -0
- package/manifest/targets.v1.json +2 -2
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/conversation-frame.v2.schema.json +8 -2
- package/schema/execution/envelope.v1.schema.json +8 -2
- package/schema/pod-talk.v1.schema.json +10 -23
- package/fixtures/talk/audio-upload-prepare.request.json +0 -11
- package/fixtures/talk/audio-upload-prepare.response.json +0 -12
package/README.md
CHANGED
|
@@ -40,13 +40,12 @@ Model data is re-exported from `llm-api`; there is one model-message representat
|
|
|
40
40
|
messages intentionally use separate content types and never contain private model continuation.
|
|
41
41
|
Runtime state machines, checkpoint formats, prompts and recovery policy remain in Agent Runtime.
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
`{ "type": "
|
|
45
|
-
The
|
|
46
|
-
The
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
the prepared action verifies authoritative installation state when the user continues.
|
|
43
|
+
Connection HITL previews resume one exact lifecycle session:
|
|
44
|
+
`{ "type": "connect_integration", "integrationId": "provider.example", "sessionId": "session" }`.
|
|
45
|
+
The execution and conversation contracts use the same closed client-task shape.
|
|
46
|
+
The UI reads and resumes that session; it never starts a replacement on reopening.
|
|
47
|
+
The Agent verifies its authoritative completion result and Connection ID. Expired
|
|
48
|
+
or lost sessions fail explicitly. Direct installation confirmations have no client task.
|
|
50
49
|
|
|
51
50
|
`RunErrorCode` is the closed catalog for `runOutcome.errorCode` and Agent `Failed.code`. Host
|
|
52
51
|
terminalize and Agent failures emit the same strings. `status` and `failure.source` are properties
|
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
"proceedLabel": "Done, check installation",
|
|
35
35
|
"rejectLabel": "Cancel",
|
|
36
36
|
"clientTask": {
|
|
37
|
-
"type": "
|
|
38
|
-
"integrationId": "provider.example"
|
|
37
|
+
"type": "connect_integration",
|
|
38
|
+
"integrationId": "provider.example",
|
|
39
|
+
"sessionId": "connection-session"
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
"payload": {
|
|
42
|
-
"target": "/app/integration/
|
|
43
|
+
"target": "/app/integration/connect"
|
|
43
44
|
},
|
|
44
45
|
"revision": 8,
|
|
45
46
|
"interaction_kind": "user_action"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/pod/talk/audio/upload/start",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"uploadId": "operation",
|
|
6
|
+
"url": "https://core.example/audio/upload",
|
|
7
|
+
"headers": {
|
|
8
|
+
"Content-Type": "application/octet-stream"
|
|
9
|
+
},
|
|
10
|
+
"expiresAtUnixMs": 1800000000000,
|
|
11
|
+
"maxSizeBytes": 960000
|
|
12
|
+
}
|
|
13
|
+
}
|
package/manifest/targets.v1.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.conversation.targets.v1",
|
|
3
|
-
"contractVersion": "3.
|
|
3
|
+
"contractVersion": "3.16.0",
|
|
4
4
|
"requestTargets": [
|
|
5
5
|
"/chat/control/get",
|
|
6
6
|
"/chat/thread/list",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"/pod/talk/request/cancel",
|
|
31
31
|
"/pod/talk/reply/read",
|
|
32
32
|
"/pod/talk/interaction/answer",
|
|
33
|
-
"/pod/talk/audio/upload/
|
|
33
|
+
"/pod/talk/audio/upload/start",
|
|
34
34
|
"/pod/talk/audio/transcribe",
|
|
35
35
|
"/pod/talk/speech/prepare",
|
|
36
36
|
"/pod/talk/media/resolve"
|
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -253,16 +253,22 @@
|
|
|
253
253
|
"additionalProperties": false,
|
|
254
254
|
"required": [
|
|
255
255
|
"type",
|
|
256
|
-
"integrationId"
|
|
256
|
+
"integrationId",
|
|
257
|
+
"sessionId"
|
|
257
258
|
],
|
|
258
259
|
"properties": {
|
|
259
260
|
"type": {
|
|
260
|
-
"const": "
|
|
261
|
+
"const": "connect_integration"
|
|
261
262
|
},
|
|
262
263
|
"integrationId": {
|
|
263
264
|
"type": "string",
|
|
264
265
|
"minLength": 1,
|
|
265
266
|
"pattern": "\\S"
|
|
267
|
+
},
|
|
268
|
+
"sessionId": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"minLength": 1,
|
|
271
|
+
"pattern": "\\S"
|
|
266
272
|
}
|
|
267
273
|
}
|
|
268
274
|
}
|
|
@@ -834,16 +834,22 @@
|
|
|
834
834
|
"additionalProperties": false,
|
|
835
835
|
"required": [
|
|
836
836
|
"type",
|
|
837
|
-
"integrationId"
|
|
837
|
+
"integrationId",
|
|
838
|
+
"sessionId"
|
|
838
839
|
],
|
|
839
840
|
"properties": {
|
|
840
841
|
"type": {
|
|
841
|
-
"const": "
|
|
842
|
+
"const": "connect_integration"
|
|
842
843
|
},
|
|
843
844
|
"integrationId": {
|
|
844
845
|
"type": "string",
|
|
845
846
|
"minLength": 1,
|
|
846
847
|
"pattern": "\\S"
|
|
848
|
+
},
|
|
849
|
+
"sessionId": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"minLength": 1,
|
|
852
|
+
"pattern": "\\S"
|
|
847
853
|
}
|
|
848
854
|
}
|
|
849
855
|
}
|
|
@@ -249,13 +249,13 @@
|
|
|
249
249
|
"additionalProperties": false,
|
|
250
250
|
"properties": {
|
|
251
251
|
"target": {
|
|
252
|
-
"const": "/pod/talk/audio/upload/
|
|
252
|
+
"const": "/pod/talk/audio/upload/start"
|
|
253
253
|
},
|
|
254
254
|
"direction": {
|
|
255
255
|
"const": "request"
|
|
256
256
|
},
|
|
257
257
|
"body": {
|
|
258
|
-
"$ref": "#/$defs/
|
|
258
|
+
"$ref": "#/$defs/audio_upload_start_input"
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
"required": [
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
"additionalProperties": false,
|
|
270
270
|
"properties": {
|
|
271
271
|
"target": {
|
|
272
|
-
"const": "/pod/talk/audio/upload/
|
|
272
|
+
"const": "/pod/talk/audio/upload/start"
|
|
273
273
|
},
|
|
274
274
|
"direction": {
|
|
275
275
|
"const": "response"
|
|
@@ -1011,7 +1011,8 @@
|
|
|
1011
1011
|
"uploadId",
|
|
1012
1012
|
"url",
|
|
1013
1013
|
"headers",
|
|
1014
|
-
"expiresAtUnixMs"
|
|
1014
|
+
"expiresAtUnixMs",
|
|
1015
|
+
"maxSizeBytes"
|
|
1015
1016
|
],
|
|
1016
1017
|
"properties": {
|
|
1017
1018
|
"uploadId": {
|
|
@@ -1067,6 +1068,9 @@
|
|
|
1067
1068
|
}
|
|
1068
1069
|
}
|
|
1069
1070
|
}
|
|
1071
|
+
},
|
|
1072
|
+
"maxSizeBytes": {
|
|
1073
|
+
"const": 960000
|
|
1070
1074
|
}
|
|
1071
1075
|
}
|
|
1072
1076
|
},
|
|
@@ -1511,7 +1515,7 @@
|
|
|
1511
1515
|
"occurredAtUnixMs"
|
|
1512
1516
|
]
|
|
1513
1517
|
},
|
|
1514
|
-
"
|
|
1518
|
+
"audio_upload_start_input": {
|
|
1515
1519
|
"type": "object",
|
|
1516
1520
|
"additionalProperties": false,
|
|
1517
1521
|
"properties": {
|
|
@@ -1526,28 +1530,11 @@
|
|
|
1526
1530
|
"minLength": 1,
|
|
1527
1531
|
"maxLength": 256,
|
|
1528
1532
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
1529
|
-
},
|
|
1530
|
-
"sizeBytes": {
|
|
1531
|
-
"type": "integer",
|
|
1532
|
-
"minimum": 9644,
|
|
1533
|
-
"maximum": 960044
|
|
1534
|
-
},
|
|
1535
|
-
"durationMs": {
|
|
1536
|
-
"type": "integer",
|
|
1537
|
-
"minimum": 300,
|
|
1538
|
-
"maximum": 30000
|
|
1539
|
-
},
|
|
1540
|
-
"sha256": {
|
|
1541
|
-
"type": "string",
|
|
1542
|
-
"pattern": "^[a-f0-9]{64}$"
|
|
1543
1533
|
}
|
|
1544
1534
|
},
|
|
1545
1535
|
"required": [
|
|
1546
1536
|
"ownerId",
|
|
1547
|
-
"operationId"
|
|
1548
|
-
"sizeBytes",
|
|
1549
|
-
"durationMs",
|
|
1550
|
-
"sha256"
|
|
1537
|
+
"operationId"
|
|
1551
1538
|
]
|
|
1552
1539
|
},
|
|
1553
1540
|
"audio_transcribe_input": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"target": "/pod/talk/audio/upload/prepare",
|
|
3
|
-
"direction": "request",
|
|
4
|
-
"body": {
|
|
5
|
-
"ownerId": "core:one",
|
|
6
|
-
"operationId": "operation",
|
|
7
|
-
"sizeBytes": 32044,
|
|
8
|
-
"durationMs": 1000,
|
|
9
|
-
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
10
|
-
}
|
|
11
|
-
}
|