@mhome/conversation-protocol 3.10.0 → 3.12.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 CHANGED
@@ -40,6 +40,14 @@ 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
+ Installation HITL previews use exactly one concrete target:
44
+ `{ "type": "install_integration", "integrationId": "provider.example" }`.
45
+ The same closed client-task contract is used by execution and conversation frames.
46
+ The old plural task and array field are rejected; producers and consumers must
47
+ adopt this contract together. Direct installation uses an ordinary approval
48
+ without a client task. Connection tasks open the existing connection UI, then
49
+ the prepared action verifies authoritative installation state when the user continues.
50
+
43
51
  `RunErrorCode` is the closed catalog for `runOutcome.errorCode` and Agent `Failed.code`. Host
44
52
  terminalize and Agent failures emit the same strings. `status` and `failure.source` are properties
45
53
  of the code; `failure.code` equals `errorCode`. User-visible copy stays in `runOutcome.message`,
@@ -19,27 +19,23 @@
19
19
  "operation_id": "run-1:step:0:tool:call-2",
20
20
  "preview": {
21
21
  "actionCode": "integration.install",
22
- "title": "Integration required",
23
- "message": "Install Matter, then continue.",
22
+ "title": "Connect integration",
23
+ "message": "Complete the connection flow, then check installation.",
24
24
  "tone": "normal",
25
25
  "details": [
26
26
  {
27
- "label": "Integrations",
27
+ "label": "Integration",
28
28
  "value": {
29
- "type": "text_list",
30
- "items": [
31
- "matter"
32
- ]
29
+ "type": "text",
30
+ "text": "provider.example"
33
31
  }
34
32
  }
35
33
  ],
36
- "proceedLabel": "I've installed it",
37
- "rejectLabel": "Skip",
34
+ "proceedLabel": "Done, check installation",
35
+ "rejectLabel": "Cancel",
38
36
  "clientTask": {
39
- "type": "install_integrations",
40
- "integrationIds": [
41
- "matter"
42
- ]
37
+ "type": "install_integration",
38
+ "integrationId": "provider.example"
43
39
  }
44
40
  },
45
41
  "payload": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.conversation.targets.v1",
3
- "contractVersion": "3.10.0",
3
+ "contractVersion": "3.12.0",
4
4
  "requestTargets": [
5
5
  "/chat/control/get",
6
6
  "/chat/thread/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/conversation-protocol",
3
- "version": "3.10.0",
3
+ "version": "3.12.0",
4
4
  "description": "Build-time protocol artifacts for mhome.conversation",
5
5
  "license": "MIT",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.conversation",
3
- "contractVersion": "3.10.0",
3
+ "contractVersion": "3.12.0",
4
4
  "manifest": "manifest/targets.v1.json",
5
5
  "schemas": {
6
6
  "frame": "schema/conversation-frame.v2.schema.json",
@@ -253,18 +253,16 @@
253
253
  "additionalProperties": false,
254
254
  "required": [
255
255
  "type",
256
- "integrationIds"
256
+ "integrationId"
257
257
  ],
258
258
  "properties": {
259
259
  "type": {
260
- "const": "install_integrations"
260
+ "const": "install_integration"
261
261
  },
262
- "integrationIds": {
263
- "type": "array",
264
- "minItems": 1,
265
- "items": {
266
- "$ref": "#/$defs/id"
267
- }
262
+ "integrationId": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "pattern": "\\S"
268
266
  }
269
267
  }
270
268
  }
@@ -321,7 +321,7 @@
321
321
  },
322
322
  "uri": {
323
323
  "type": "string",
324
- "pattern": "^meow-artifact://v2/"
324
+ "pattern": "^meow-artifact://v3/"
325
325
  }
326
326
  }
327
327
  },
@@ -834,18 +834,16 @@
834
834
  "additionalProperties": false,
835
835
  "required": [
836
836
  "type",
837
- "integrationIds"
837
+ "integrationId"
838
838
  ],
839
839
  "properties": {
840
840
  "type": {
841
- "const": "install_integrations"
841
+ "const": "install_integration"
842
842
  },
843
- "integrationIds": {
844
- "type": "array",
845
- "minItems": 1,
846
- "items": {
847
- "$ref": "#/$defs/identifier"
848
- }
843
+ "integrationId": {
844
+ "type": "string",
845
+ "minLength": 1,
846
+ "pattern": "\\S"
849
847
  }
850
848
  }
851
849
  }