@mhome/app-facade-protocol 1.131.0 → 1.133.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.
@@ -8,7 +8,7 @@ Full and Essential use the same business read scope; UI requests Full.
8
8
  | --- | --- | --- |
9
9
  | `/app/presentation/automation/names/get` | `{ids}`: 1–100 selected, trimmed/deduplicated IDs | `{automations: {id: label}}`. Missing IDs omitted. Selected definition metadata only; no source downloads, parsing, state, history or graph reads. |
10
10
  | `/app/presentation/automation/list` | `{type: "RECURRING" \| "TASK_FLOW"}` | `{automations}`: current-type regular user programs, with labels, runnable/health/expiry metadata, enabled/running/blocked, last-run `timestamp`, status timestamps and tags. No temporary-program, Group, Widget, snapshot, graph or authored-source expansion. |
11
- | `/app/presentation/automation/overview/get` | `{automationId}`: nonblank, trimmed | `{id,name,type,enabled,runnable,corrupted,blocked,widgets}`. Selected metadata, status, cloud quota display state and owned Widget configuration/current values. No source, graph traversal, running history or snapshots. Missing definition is not-found. |
11
+ | `/app/presentation/automation/overview/get` | `{automationId}`: nonblank, trimmed | `{id,name,type,enabled,runnable,corrupted,blocked,saveIncomplete?,widgets}`. Selected metadata, status, cloud quota display state and owned Widget configuration/current values. No source, graph traversal, running history or snapshots. Missing definition is not-found. |
12
12
  | `/app/presentation/automation/placements/get` | `{automationId}`: nonblank, trimmed | `{canvases:[{id,name,containsAutomation}]}`. Matches both owned Widget-to-Card relations and dedicated Automation Cards by `meta.automationId`, against Canvas leaf IDs including composition members. Backends read current-Space Card records to resolve these business references; responses contain only Canvas labels and membership flags. Retains existing default-canvas initialization when the Space has none. |
13
13
 
14
14
  Labels use saved preferredName, then the script-derived saved name, then the
@@ -24,6 +24,11 @@ hydrate source bodies or read the temporary/Group stores. This is not a promise
24
24
  of a type-specific physical index. Billing display and lifecycle state retain
25
25
  their existing authorities; enabled, runnable and running are independent.
26
26
 
27
+ List items, selected summaries and overview may include `saveIncomplete`.
28
+ It reflects the existing persisted marker for an unfinished definition save,
29
+ independently of execution health, run capability and cloud quota. A completed
30
+ save clears the marker. Readers may treat an absent field as false.
31
+
27
32
  List Full timestamps are milliseconds. Essential renders explicit timestamp
28
33
  fields in the Space's Home timezone. Widget values retain their existing Widget
29
34
  DTO semantics; their numbers are not interpreted as timestamps.
@@ -26,3 +26,15 @@ Generated Twin and Group programs remain internal resources.
26
26
  rename. The script's authored root name remains available in the script itself.
27
27
 
28
28
  Inputs are closed objects. The schema is `schema/automation.v1.schema.json`.
29
+
30
+ For `/app/automation/save` and `/app/automation/snapshot/rollback`, the definition
31
+ is committed before the optional attempt to restore the enabled state. If that
32
+ attempt is rejected or unconfirmed, the Facade returns `partial` with the
33
+ Automation ID and `restoreIssue` (`failed` or `unconfirmed`). Rollback also
34
+ includes the snapshot ID. Its `enabled` field is omitted when the post-write
35
+ observation is unavailable. Read current state before deciding whether to enable.
36
+
37
+ `/app/automation/delete` returns `success` when all targets complete and `partial`
38
+ when `deletedIds` and `failedIds` both contain IDs. A batch with no completed
39
+ targets returns `error` with its per-target details. These outcomes apply to direct
40
+ calls and prepared commits, in Full and Essential presentation.
@@ -33,8 +33,9 @@ Only activation changes pending to active and sets createdAt. Repeating activati
33
33
  preserves createdAt and lastUsedAt. Cancelled/failed physical writes explicitly
34
34
  delete pending; read/list/sync do not clean it up. No TTL or background cleanup.
35
35
  Update patches configuration without activating or resetting metadata.
36
- Delete missing IDs is idempotent, has no deleted-count guarantee, does not erase
37
- physical tags, and does not promise cross-record atomicity on cloud storage.
36
+ Delete treats missing IDs as complete and returns an acknowledgement. SQLite and
37
+ DynamoDB delete a request atomically. Tablestore batch deletion can partially
38
+ apply before returning an error. Physical tags retain their written content.
38
39
  Prepared preview includes requested IDs, found state, name and creation state;
39
40
  last-use observations do not invalidate a preview.
40
41
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.131.0",
3
+ "contractVersion": "1.133.0",
4
4
  "callSchema": "schema/facade-call.v1.schema.json",
5
5
  "routing": "manifest/routing.v1.json",
6
6
  "routingSchema": "schema/routing.v1.schema.json",
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.131.0",
2
+ "contractVersion": "1.133.0",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/credit/usage": "spaceRead",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.131.0",
3
+ "contractVersion": "1.133.0",
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.131.0",
3
+ "contractVersion": "1.133.0",
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.131.0",
3
+ "contractVersion": "1.133.0",
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.131.0",
3
+ "contractVersion": "1.133.0",
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.131.0",
3
+ "contractVersion": "1.133.0",
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.131.0",
3
+ "version": "1.133.0",
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.131.0",
3
+ "contractVersion": "1.133.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "storage": "schema/storage.v1.schema.json",
@@ -98,6 +98,9 @@
98
98
  "corrupted": {
99
99
  "type": "boolean"
100
100
  },
101
+ "saveIncomplete": {
102
+ "type": "boolean"
103
+ },
101
104
  "runnable": {
102
105
  "type": "boolean"
103
106
  },
@@ -177,6 +180,9 @@
177
180
  "corrupted": {
178
181
  "type": "boolean"
179
182
  },
183
+ "saveIncomplete": {
184
+ "type": "boolean"
185
+ },
180
186
  "blocked": {
181
187
  "type": "boolean"
182
188
  },
@@ -265,6 +271,9 @@
265
271
  "corrupted": {
266
272
  "type": "boolean"
267
273
  },
274
+ "saveIncomplete": {
275
+ "type": "boolean"
276
+ },
268
277
  "runnable": {
269
278
  "type": "boolean"
270
279
  },