@mhome/app-facade-protocol 1.128.0 → 1.129.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.
@@ -1813,7 +1813,7 @@
1813
1813
  "version": "1.0.0",
1814
1814
  "name": "Example Skin",
1815
1815
  "description": "Demo",
1816
- "apiVersion": 1,
1816
+ "apiVersion": 2,
1817
1817
  "entry": "main.mjs",
1818
1818
  "files": [
1819
1819
  {
@@ -1861,7 +1861,7 @@
1861
1861
  "version": "1.0.0",
1862
1862
  "name": "Example Skin",
1863
1863
  "description": "Demo",
1864
- "apiVersion": 1,
1864
+ "apiVersion": 2,
1865
1865
  "renderers": [
1866
1866
  {
1867
1867
  "id": "switch",
@@ -1906,7 +1906,7 @@
1906
1906
  "version": "1.0.0",
1907
1907
  "name": "Example Skin",
1908
1908
  "description": "Demo",
1909
- "apiVersion": 1,
1909
+ "apiVersion": 2,
1910
1910
  "entry": "main.mjs",
1911
1911
  "files": [
1912
1912
  {
@@ -1958,7 +1958,7 @@
1958
1958
  "version": "1.0.0",
1959
1959
  "name": "Example Skin",
1960
1960
  "description": "Demo",
1961
- "apiVersion": 1,
1961
+ "apiVersion": 2,
1962
1962
  "renderers": [
1963
1963
  {
1964
1964
  "id": "switch",
@@ -2018,7 +2018,7 @@
2018
2018
  "version": "1.0.0",
2019
2019
  "name": "Example Skin",
2020
2020
  "description": "Demo",
2021
- "apiVersion": 1,
2021
+ "apiVersion": 2,
2022
2022
  "entry": "main.mjs",
2023
2023
  "files": [
2024
2024
  {
@@ -2093,7 +2093,7 @@
2093
2093
  "version": "1.0.0",
2094
2094
  "name": "Example Skin",
2095
2095
  "description": "Demo",
2096
- "apiVersion": 1,
2096
+ "apiVersion": 2,
2097
2097
  "renderers": [
2098
2098
  {
2099
2099
  "id": "switch",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.128.0",
3
+ "contractVersion": "1.129.1",
4
4
  "callSchema": "schema/facade-call.v1.schema.json",
5
5
  "routing": "manifest/routing.v1.json",
6
6
  "routingSchema": "schema/routing.v1.schema.json",
@@ -491,6 +491,16 @@
491
491
  "/app/wave/list",
492
492
  "/app/wave/refresh"
493
493
  ]
494
+ },
495
+ "dashboardComposition": {
496
+ "layoutSchema": "schema/canvas-layout.v1.schema.json",
497
+ "commandSchema": "schema/dashboard-composition.v1.schema.json",
498
+ "contract": "contract/dashboard-composition-v1.md",
499
+ "requestTargets": [
500
+ "/app/dashboard/canvas/composition/create",
501
+ "/app/dashboard/canvas/composition/ungroup",
502
+ "/app/dashboard/canvas/composition/layout/update"
503
+ ]
494
504
  }
495
505
  },
496
506
  "authorization": "manifest/authorization.v1.json",
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.128.0",
2
+ "contractVersion": "1.129.1",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/credit/usage": "spaceRead",
@@ -62,6 +62,9 @@
62
62
  "/app/client/page/report": "spaceRead",
63
63
  "/app/client/screenshot/report": "spaceRead",
64
64
  "/app/client/space/focus": "clientConnection",
65
+ "/app/dashboard/canvas/composition/create": "spaceWrite",
66
+ "/app/dashboard/canvas/composition/layout/update": "spaceWrite",
67
+ "/app/dashboard/canvas/composition/ungroup": "spaceWrite",
65
68
  "/app/dashboard/canvas/content/get": "spaceRead",
66
69
  "/app/dashboard/canvas/create": "spaceWrite",
67
70
  "/app/dashboard/canvas/delete": "spaceWrite",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.128.0",
3
+ "contractVersion": "1.129.1",
4
4
  "contract": "contract/host-provisioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/host/provision/start",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.hub.targets.v1",
3
- "contractVersion": "1.128.0",
3
+ "contractVersion": "1.129.1",
4
4
  "appTargets": [
5
5
  "/app/hub/get",
6
6
  "/app/hub/remove"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.pod.targets.v1",
3
- "contractVersion": "1.128.0",
3
+ "contractVersion": "1.129.1",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.128.0",
3
+ "contractVersion": "1.129.1",
4
4
  "targetPrefix": "/app/",
5
5
  "default": {
6
6
  "execution": "spaceMode"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.messaging.targets.v1",
3
- "contractVersion": "1.128.0",
3
+ "contractVersion": "1.129.1",
4
4
  "requestTargets": [
5
5
  "/app/messaging/provider/list",
6
6
  "/app/messaging/provider-account/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/app-facade-protocol",
3
- "version": "1.128.0",
3
+ "version": "1.129.1",
4
4
  "description": "Build-time protocol artifacts for mhome.app-facade",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.app-facade",
3
- "contractVersion": "1.128.0",
3
+ "contractVersion": "1.129.1",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "storage": "schema/storage.v1.schema.json",
@@ -16,6 +16,8 @@
16
16
  "entityPresentation": "schema/entity-presentation.v1.schema.json",
17
17
  "integrationPresentation": "schema/integration-presentation.v1.schema.json",
18
18
  "capabilityDescriptor": "schema/capability-descriptor.v1.schema.json",
19
+ "canvasLayout": "schema/canvas-layout.v1.schema.json",
20
+ "dashboardComposition": "schema/dashboard-composition.v1.schema.json",
19
21
  "cardSkinPackage": "schema/card-skin-package.v1.schema.json",
20
22
  "cardSkins": "schema/card-skins.v1.schema.json",
21
23
  "call": "schema/facade-call.v1.schema.json",
@@ -37,6 +39,7 @@
37
39
  "person": "schema/person.v1.schema.json"
38
40
  },
39
41
  "fixtures": {
42
+ "dashboardPacking": "fixtures/dashboard/composition-packing.json",
40
43
  "attention": "fixtures/attention/conformance.json",
41
44
  "agentLlm": "fixtures/agent-llm.conformance.json",
42
45
  "billing": "fixtures/billing.conformance.json",
@@ -0,0 +1,155 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://schemas.meowlink.app/canvas-layout.v1.json",
4
+ "title": "Canvas layout document",
5
+ "description": "Canonical saved placement. Root coordinates are global; member coordinates are local. Runtime additionally validates uniqueness, bounds, overlap and UTF-8 document size <= 256 KiB.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schemaVersion",
10
+ "items"
11
+ ],
12
+ "properties": {
13
+ "schemaVersion": {
14
+ "const": 1
15
+ },
16
+ "items": {
17
+ "type": "array",
18
+ "items": {
19
+ "oneOf": [
20
+ {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": [
24
+ "kind",
25
+ "cardId",
26
+ "layouts"
27
+ ],
28
+ "properties": {
29
+ "kind": {
30
+ "const": "card"
31
+ },
32
+ "cardId": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 512,
36
+ "pattern": "^\\S(?:.*\\S)?$"
37
+ },
38
+ "layouts": {
39
+ "$ref": "#/definitions/profiles"
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": [
47
+ "kind",
48
+ "id",
49
+ "layouts",
50
+ "members"
51
+ ],
52
+ "properties": {
53
+ "kind": {
54
+ "const": "composition"
55
+ },
56
+ "id": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 512,
60
+ "pattern": "^\\S(?:.*\\S)?$"
61
+ },
62
+ "title": {
63
+ "type": "string",
64
+ "maxLength": 512
65
+ },
66
+ "layouts": {
67
+ "$ref": "#/definitions/profiles"
68
+ },
69
+ "members": {
70
+ "type": "array",
71
+ "minItems": 2,
72
+ "items": {
73
+ "$ref": "#/definitions/member"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ ]
79
+ }
80
+ }
81
+ },
82
+ "definitions": {
83
+ "rect": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "x",
88
+ "y",
89
+ "w",
90
+ "h"
91
+ ],
92
+ "properties": {
93
+ "x": {
94
+ "type": "integer",
95
+ "minimum": 0,
96
+ "maximum": 2147483647
97
+ },
98
+ "y": {
99
+ "type": "integer",
100
+ "minimum": 0,
101
+ "maximum": 2147483647
102
+ },
103
+ "w": {
104
+ "type": "integer",
105
+ "minimum": 1,
106
+ "maximum": 6
107
+ },
108
+ "h": {
109
+ "type": "integer",
110
+ "minimum": 1,
111
+ "maximum": 2147483647
112
+ }
113
+ }
114
+ },
115
+ "profiles": {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": [
119
+ "sm",
120
+ "md",
121
+ "lg"
122
+ ],
123
+ "properties": {
124
+ "sm": {
125
+ "$ref": "#/definitions/rect"
126
+ },
127
+ "md": {
128
+ "$ref": "#/definitions/rect"
129
+ },
130
+ "lg": {
131
+ "$ref": "#/definitions/rect"
132
+ }
133
+ }
134
+ },
135
+ "member": {
136
+ "type": "object",
137
+ "additionalProperties": false,
138
+ "required": [
139
+ "cardId",
140
+ "layouts"
141
+ ],
142
+ "properties": {
143
+ "cardId": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "maxLength": 512,
147
+ "pattern": "^\\S(?:.*\\S)?$"
148
+ },
149
+ "layouts": {
150
+ "$ref": "#/definitions/profiles"
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
@@ -40,7 +40,7 @@
40
40
  "maxLength": 2000
41
41
  },
42
42
  "apiVersion": {
43
- "const": 1
43
+ "const": 2
44
44
  },
45
45
  "renderers": {
46
46
  "type": "array",
@@ -225,7 +225,7 @@
225
225
  "maxLength": 2000
226
226
  },
227
227
  "apiVersion": {
228
- "const": 1
228
+ "const": 2
229
229
  },
230
230
  "renderers": {
231
231
  "type": "array",