@mhome/conversation-protocol 3.13.1 → 3.15.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 +2 -2
- package/fixtures/execution/app-facade-prepared.v1.json +0 -1
- package/fixtures/execution/app-facade-user-action.v1.json +0 -1
- package/fixtures/execution/interaction-required-event.v1.json +0 -1
- 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/execution/envelope.v1.schema.json +0 -8
- 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
|
@@ -44,8 +44,8 @@ Installation HITL previews use exactly one concrete target:
|
|
|
44
44
|
`{ "type": "install_integration", "integrationId": "provider.example" }`.
|
|
45
45
|
The same closed client-task contract is used by execution and conversation frames.
|
|
46
46
|
The old plural task and array field are rejected; producers and consumers must
|
|
47
|
-
adopt this contract together.
|
|
48
|
-
|
|
47
|
+
adopt this contract together. A confirmation for direct installation has no client task; the Agent Tool decides
|
|
48
|
+
whether its trusted access mode requires that confirmation. Connection tasks open the existing connection UI, then
|
|
49
49
|
the prepared action verifies authoritative installation state when the user continues.
|
|
50
50
|
|
|
51
51
|
`RunErrorCode` is the closed catalog for `runOutcome.errorCode` and Agent `Failed.code`. Host
|
|
@@ -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.15.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
|
@@ -858,7 +858,6 @@
|
|
|
858
858
|
"preview",
|
|
859
859
|
"payload",
|
|
860
860
|
"revision",
|
|
861
|
-
"approval",
|
|
862
861
|
"interaction_kind"
|
|
863
862
|
],
|
|
864
863
|
"properties": {
|
|
@@ -876,13 +875,6 @@
|
|
|
876
875
|
"type": "integer",
|
|
877
876
|
"minimum": 0
|
|
878
877
|
},
|
|
879
|
-
"approval": {
|
|
880
|
-
"enum": [
|
|
881
|
-
"never",
|
|
882
|
-
"when_interactive",
|
|
883
|
-
"always"
|
|
884
|
-
]
|
|
885
|
-
},
|
|
886
878
|
"interaction_kind": {
|
|
887
879
|
"enum": [
|
|
888
880
|
"approval",
|
|
@@ -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
|
-
}
|