@mhome/core-protocol 1.30.1 → 1.32.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,20 @@ 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 **19** adds `metadataOnly` to `AuthorizeArtifactRead` for HEAD
33
+ and other metadata probes. Such responses contain metadata without a path or
34
+ inline content and do not renew temporary retention. Attachment upload clients
35
+ must concurrently receive an early error response while sending the body, so
36
+ an expired grant is preserved as a domain error instead of a broken connection.
37
+
38
+ External protocol **18** adds bounded, connection-scoped attachments for large
39
+ memory-backed Artifact content. Artifact commit requests and open/read responses
40
+ use an empty `dataBase64` marker followed by a big-endian u32 length and that many
41
+ base64 bytes. The body is bounded by the existing 50 MiB per-file limit before base64 encoding;
42
+ ordinary JSON frames retain the 16 MiB limit. No upload session or disk spill is
43
+ created for this transfer.
44
+
45
+ The protocol returns `HttpPayloadResponse { statusCode, body }` from
33
46
  all HTTP handler RPCs. A completed HTTP response (including 4xx/5xx) is an RPC
34
47
  success; RPC errors describe failures to execute the call, not HTTP status.
35
48
  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.32.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": 19,
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.32.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.32.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"]