@mhome/app-facade-protocol 1.132.0 → 1.134.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,14 @@ 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 `pendingOperation`
28
+ (`create`, `update` or `delete`). Omission means the definition is ready for
29
+ ordinary management. An incomplete creation can only be deleted; an incomplete
30
+ update can be saved again or deleted; an incomplete deletion can be continued
31
+ by deleting the same ID. All three states block new execution. The
32
+ `saveIncomplete` field remains available to older clients and is true when a
33
+ pending operation is present.
34
+
27
35
  List Full timestamps are milliseconds. Essential renders explicit timestamp
28
36
  fields in the Space's Home timezone. Widget values retain their existing Widget
29
37
  DTO semantics; their numbers are not interpreted as timestamps.
@@ -32,9 +32,15 @@ is committed before the optional attempt to restore the enabled state. If that
32
32
  attempt is rejected or unconfirmed, the Facade returns `partial` with the
33
33
  Automation ID and `restoreIssue` (`failed` or `unconfirmed`). Rollback also
34
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.
35
+ observation is unavailable. A newer user stop or definition change supersedes a
36
+ pending restoration without changing the successful definition save. Read
37
+ current state before deciding whether to enable.
36
38
 
37
39
  `/app/automation/delete` returns `success` when all targets complete and `partial`
38
40
  when `deletedIds` and `failedIds` both contain IDs. A batch with no completed
39
41
  targets returns `error` with its per-target details. These outcomes apply to direct
40
42
  calls and prepared commits, in Full and Essential presentation.
43
+
44
+ A partially deleted definition remains available for deletion with the same ID.
45
+ Existing cleanup steps tolerate resources already removed by an earlier attempt.
46
+ An already absent and cleaned definition is a completed delete target.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.132.0",
3
+ "contractVersion": "1.134.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.132.0",
2
+ "contractVersion": "1.134.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.132.0",
3
+ "contractVersion": "1.134.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.132.0",
3
+ "contractVersion": "1.134.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.132.0",
3
+ "contractVersion": "1.134.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.132.0",
3
+ "contractVersion": "1.134.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.132.0",
3
+ "contractVersion": "1.134.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.132.0",
3
+ "version": "1.134.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.132.0",
3
+ "contractVersion": "1.134.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "storage": "schema/storage.v1.schema.json",
@@ -98,6 +98,12 @@
98
98
  "corrupted": {
99
99
  "type": "boolean"
100
100
  },
101
+ "pendingOperation": {
102
+ "enum": ["create", "update", "delete"]
103
+ },
104
+ "saveIncomplete": {
105
+ "type": "boolean"
106
+ },
101
107
  "runnable": {
102
108
  "type": "boolean"
103
109
  },
@@ -177,6 +183,12 @@
177
183
  "corrupted": {
178
184
  "type": "boolean"
179
185
  },
186
+ "pendingOperation": {
187
+ "enum": ["create", "update", "delete"]
188
+ },
189
+ "saveIncomplete": {
190
+ "type": "boolean"
191
+ },
180
192
  "blocked": {
181
193
  "type": "boolean"
182
194
  },
@@ -265,6 +277,12 @@
265
277
  "corrupted": {
266
278
  "type": "boolean"
267
279
  },
280
+ "pendingOperation": {
281
+ "enum": ["create", "update", "delete"]
282
+ },
283
+ "saveIncomplete": {
284
+ "type": "boolean"
285
+ },
268
286
  "runnable": {
269
287
  "type": "boolean"
270
288
  },