@mhome/conversation-protocol 5.8.3 → 5.9.1

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
@@ -66,6 +66,12 @@ operation derivation; it does not erase the distinct authority contracts. The
66
66
  background Facade adapter must restrict access to authorized reads and script
67
67
  validation regardless of what the prompt says.
68
68
 
69
+ Suggestion wire decoding supports both ordinary `serde_json` and its
70
+ `arbitrary_precision` feature, including decimal model parameters inside the
71
+ internally tagged payload. Closed protocol fields still reject unknown keys and
72
+ incorrect types; opaque JSON documents retain their JSON number representation.
73
+ CI runs the execution contract tests with both feature sets.
74
+
69
75
  `schema/execution/suggestion.v1.schema.json` and its shared conformance fixtures
70
76
  define this new context. Existing conversation frames and execution wire payloads
71
77
  are unchanged; declaring a context does not dispatch a task or register an RPC.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.conversation.targets.v1",
3
- "contractVersion": "5.8.3",
3
+ "contractVersion": "5.9.1",
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": "5.8.3",
3
+ "version": "5.9.1",
4
4
  "description": "Build-time protocol artifacts for mhome.conversation",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.conversation",
3
- "contractVersion": "5.8.3",
3
+ "contractVersion": "5.9.1",
4
4
  "manifest": "manifest/targets.v1.json",
5
5
  "schemas": {
6
6
  "frame": "schema/conversation-frame.v2.schema.json",
@@ -2368,6 +2368,95 @@
2368
2368
  "userId"
2369
2369
  ],
2370
2370
  "additionalProperties": false
2371
+ },
2372
+ {
2373
+ "type": "object",
2374
+ "properties": {
2375
+ "type": {
2376
+ "const": "ADOPTION"
2377
+ },
2378
+ "principal": {
2379
+ "oneOf": [
2380
+ {
2381
+ "type": "object",
2382
+ "properties": {
2383
+ "userId": {
2384
+ "type": "string",
2385
+ "minLength": 1,
2386
+ "maxLength": 256,
2387
+ "allOf": [
2388
+ {
2389
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2390
+ },
2391
+ {
2392
+ "not": {
2393
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2394
+ }
2395
+ }
2396
+ ]
2397
+ },
2398
+ "kind": {
2399
+ "const": "user"
2400
+ }
2401
+ },
2402
+ "required": [
2403
+ "kind",
2404
+ "userId"
2405
+ ],
2406
+ "additionalProperties": false
2407
+ },
2408
+ {
2409
+ "type": "object",
2410
+ "properties": {
2411
+ "tenantId": {
2412
+ "type": "string",
2413
+ "minLength": 1,
2414
+ "maxLength": 256,
2415
+ "allOf": [
2416
+ {
2417
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2418
+ },
2419
+ {
2420
+ "not": {
2421
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2422
+ }
2423
+ }
2424
+ ]
2425
+ },
2426
+ "spaceId": {
2427
+ "type": "string",
2428
+ "minLength": 1,
2429
+ "maxLength": 256,
2430
+ "allOf": [
2431
+ {
2432
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2433
+ },
2434
+ {
2435
+ "not": {
2436
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2437
+ }
2438
+ }
2439
+ ]
2440
+ },
2441
+ "kind": {
2442
+ "const": "space"
2443
+ }
2444
+ },
2445
+ "required": [
2446
+ "kind",
2447
+ "tenantId",
2448
+ "spaceId"
2449
+ ],
2450
+ "additionalProperties": false
2451
+ }
2452
+ ]
2453
+ }
2454
+ },
2455
+ "required": [
2456
+ "type",
2457
+ "principal"
2458
+ ],
2459
+ "additionalProperties": false
2371
2460
  }
2372
2461
  ]
2373
2462
  },
@@ -2567,6 +2656,30 @@
2567
2656
  }
2568
2657
  }
2569
2658
  },
2659
+ {
2660
+ "type": "object",
2661
+ "additionalProperties": false,
2662
+ "required": [
2663
+ "type",
2664
+ "input",
2665
+ "facts",
2666
+ "llm_plan"
2667
+ ],
2668
+ "properties": {
2669
+ "type": {
2670
+ "const": "adopt"
2671
+ },
2672
+ "input": {
2673
+ "type": "object"
2674
+ },
2675
+ "facts": {
2676
+ "$ref": "#/$defs/suggestion_facts"
2677
+ },
2678
+ "llm_plan": {
2679
+ "$ref": "#/$defs/llm_execution_plan"
2680
+ }
2681
+ }
2682
+ },
2570
2683
  {
2571
2684
  "type": "object",
2572
2685
  "additionalProperties": false,
@@ -84,6 +84,95 @@
84
84
  "userId"
85
85
  ],
86
86
  "additionalProperties": false
87
+ },
88
+ {
89
+ "type": "object",
90
+ "properties": {
91
+ "type": {
92
+ "const": "ADOPTION"
93
+ },
94
+ "principal": {
95
+ "oneOf": [
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "userId": {
100
+ "type": "string",
101
+ "minLength": 1,
102
+ "maxLength": 256,
103
+ "allOf": [
104
+ {
105
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
106
+ },
107
+ {
108
+ "not": {
109
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
110
+ }
111
+ }
112
+ ]
113
+ },
114
+ "kind": {
115
+ "const": "user"
116
+ }
117
+ },
118
+ "required": [
119
+ "kind",
120
+ "userId"
121
+ ],
122
+ "additionalProperties": false
123
+ },
124
+ {
125
+ "type": "object",
126
+ "properties": {
127
+ "tenantId": {
128
+ "type": "string",
129
+ "minLength": 1,
130
+ "maxLength": 256,
131
+ "allOf": [
132
+ {
133
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
134
+ },
135
+ {
136
+ "not": {
137
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
138
+ }
139
+ }
140
+ ]
141
+ },
142
+ "spaceId": {
143
+ "type": "string",
144
+ "minLength": 1,
145
+ "maxLength": 256,
146
+ "allOf": [
147
+ {
148
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
149
+ },
150
+ {
151
+ "not": {
152
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
153
+ }
154
+ }
155
+ ]
156
+ },
157
+ "kind": {
158
+ "const": "space"
159
+ }
160
+ },
161
+ "required": [
162
+ "kind",
163
+ "tenantId",
164
+ "spaceId"
165
+ ],
166
+ "additionalProperties": false
167
+ }
168
+ ]
169
+ }
170
+ },
171
+ "required": [
172
+ "type",
173
+ "principal"
174
+ ],
175
+ "additionalProperties": false
87
176
  }
88
177
  ]
89
178
  },