@mhome/core-protocol 1.30.1 → 1.31.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
@@ -29,7 +29,14 @@ as a Folder.
29
29
 
30
30
  ## Lossless external boundaries (core-api 1.19.0)
31
31
 
32
- External protocol **17** returns `HttpPayloadResponse { statusCode, body }` from
32
+ External protocol **18** adds bounded, connection-scoped attachments for large
33
+ memory-backed Artifact content. Artifact commit requests and open/read responses
34
+ use an empty `dataBase64` marker followed by a big-endian u32 length and that many
35
+ base64 bytes. The body is bounded by the existing 50 MiB per-file limit before base64 encoding;
36
+ ordinary JSON frames retain the 16 MiB limit. No upload session or disk spill is
37
+ created for this transfer.
38
+
39
+ The protocol returns `HttpPayloadResponse { statusCode, body }` from
33
40
  all HTTP handler RPCs. A completed HTTP response (including 4xx/5xx) is an RPC
34
41
  success; RPC errors describe failures to execute the call, not HTTP status.
35
42
  Hosts preserve status and JSON body, never infer them from error messages.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.core.v1",
3
- "contractVersion": "1.30.1",
3
+ "contractVersion": "1.31.0",
4
4
  "protocols": {
5
5
  "agentGateway": {
6
6
  "submitTarget": "/agent/submit",
@@ -63,7 +63,7 @@
63
63
  "version": "storage.v2"
64
64
  },
65
65
  "hostDelivery": {
66
- "externalProtocolVersion": 17,
66
+ "externalProtocolVersion": 18,
67
67
  "requestKind": "deliveryRequested",
68
68
  "connectionControlKind": "connectionControlRequested",
69
69
  "acceptanceBoundaries": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/core-protocol",
3
- "version": "1.30.1",
3
+ "version": "1.31.0",
4
4
  "description": "Build-time protocol artifacts for mhome.core",
5
5
  "license": "MIT",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.core",
3
- "contractVersion": "1.30.1",
3
+ "contractVersion": "1.31.0",
4
4
  "manifest": "manifest/core.v1.json",
5
5
  "schemas": {
6
6
  "hostManagementRequest": "schema/host-management-request.v1.schema.json",
@@ -102,8 +102,8 @@
102
102
  "then": {
103
103
  "not": {
104
104
  "anyOf": [
105
- { "required": ["defaultValue"] },
106
- { "required": ["defaultValueRef"] },
105
+ { "properties": { "defaultValue": {} }, "required": ["defaultValue"] },
106
+ { "properties": { "defaultValueRef": {} }, "required": ["defaultValueRef"] },
107
107
  {
108
108
  "properties": { "readOnly": { "const": true } },
109
109
  "required": ["readOnly"]