@mhome/app-facade-protocol 1.190.0 → 1.191.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.
@@ -64,7 +64,7 @@ also uses metadata rather than downloading authored source.
64
64
  | `/app/presentation/automation/overview/init` | `{automationId?,inspireId?,inspireVersion?,snapshotId?,args?}` | Existing editor session, required installs, AutomationOverview and already-loaded metadata. Snapshot takes precedence over existing program, then Inspire. Uses the authenticated Client and existing staged-Inspire developer session. |
65
65
  | `/app/presentation/automation/overview/config/provide` | `{sessionId,var,input}` | Existing option query and editor revision. |
66
66
  | `/app/presentation/automation/overview/config/update` | `{sessionId,var,inputs?,widgetize?}` | Existing config evaluation, diagnostics and revision. |
67
- | `/app/presentation/automation/overview/save` | `{sessionId,automationId?,inspireId?,inspireVersion?,snapshotId?,preferredName?,debug?,addCard?,canvasIds?}` | `{automationId,runnable,enabled?,restoreIssue?}`. Updating an existing definition preserves its previous enabled intent; restoration runs after releasing the edit lock, is fenced by the saved revision, and cannot override a newer stop. A committed save with failed/unconfirmed restoration or an unavailable post-save enabled observation returns `partial`; unknown enabled is omitted. New saves retain existing creation semantics and saving never triggers a Task Flow. Existing single-save guard, Client ownership, prepare/save/complete revision checks and internal normalized-source persistence. Legacy snapshotId/addCard/canvasIds are accepted but do not perform placement; frontend creates placements separately. |
67
+ | `/app/presentation/automation/overview/save` | `{sessionId,automationId?,inspireId?,inspireVersion?,snapshotId?,preferredName?,debug?,addCard?,canvasIds?}` | `{automationId,runnable,enabled?,restoreIssue?}`. Updating an existing definition preserves its previous enabled intent; restoration runs after releasing the edit lock, is fenced by the saved revision, and cannot override a newer stop. A committed save with failed/unconfirmed restoration or an unavailable post-save enabled observation returns `partial`; unknown enabled is omitted. New saves retain existing creation semantics and saving never triggers a Task Flow. Existing single-save guard, Client ownership, prepare/save/complete revision checks and internal normalized-source persistence. Legacy snapshotId/addCard/canvasIds are accepted but do not perform placement. Adding a Dashboard Card is a separate user operation. |
68
68
  | `/app/presentation/automation/overview/cancel` | `{sessionId}` | Canonical acknowledgement without data. Existing Client ownership check and session cleanup. |
69
69
  | `/app/presentation/automation/copy` | `{automationId,name?}` | `{automationId,runnable,enabled}`. Copies the existing script/template metadata using the internal save operation. |
70
70
  | `/app/presentation/automation/enroll` | `{automationId,name?}` | `{automationId,runnable,enabled}`. Existing enrollment behavior. |
@@ -126,4 +126,17 @@ unclassified fatal runtime fault must not reuse a prior handled action's reason.
126
126
  Old generated Plans can remain generic until normal regeneration; no automatic
127
127
  migration is required. The summary is independent of diagnostic-log retention.
128
128
 
129
- Selected definition detail parses saved YAML only when its declared metadata is required. Failed optional parsing preserves the known definition and source/hash, attaches an ID-scoped problem, and omits unknown inputVars/descriptionTemplate. Corrupt stored JSON is not an empty source or capability list; strict dependent operations fail rather than rewriting fabricated values. No derived-metadata cache or extra database fields are required.
129
+ Selected definition detail parses only the saved YAML declarations it exposes.
130
+ Failure to decode source, capabilities or declarations makes that Automation item
131
+ `unavailable`: omit its entire `automation` object and retain its ID-scoped problem.
132
+ Other selected Automations remain readable. A confirmed absence is `not_found`;
133
+ a failed shared status read remains a request error. Tags are lightweight filters:
134
+ unreadable Core tags may degrade to an empty array, as in list. Strict dependent
135
+ reads and writes do not fabricate empty source or capability lists. No derived
136
+ metadata cache or extra database fields are required.
137
+
138
+ Editor initialization has two existing response branches: an `automationOverview`
139
+ for editing, or nonempty `requiredInstalls` without an overview. Initial selections
140
+ are applied only to an available overview. Core preserves both branches through
141
+ the Cloud bridge. Runtime observation refresh is an independent summary read and
142
+ preserves the editor session and unsaved configuration.
@@ -8,10 +8,14 @@ Generated Twin and Group programs remain internal resources.
8
8
  Recurring programs are enabled; Task Flows are activated and triggered.
9
9
  - `/app/automation/stop` accepts `automationId`, disables the program and cancels
10
10
  all its instances, including durable waits. Completed actions are not undone.
11
- - Both return Full `data: {automationId, enabled, running}` with observed state.
12
- A short Task Flow may already be idle when start returns. Essential renders the
13
- same fields as YAML. Failures use the canonical error envelope, never `success:false`
14
- inside successful business data. State pushes may supersede a request result.
11
+ - Both return a control receipt with `automationId`, `accepted: true` and
12
+ `stateStatus`. Known observation includes boolean `enabled` and `running`;
13
+ unknown observation omits both and carries `AUTOMATION_STATE_UNAVAILABLE`.
14
+ Both are Facade success. A short Task Flow may already be idle when start
15
+ returns. Essential preserves the same receipt and warnings as YAML. Input,
16
+ authority, prerequisite and control failures remain canonical errors. See
17
+ [control receipts](automation-control-v1.md); never replay accepted control
18
+ to repair an observation failure.
15
19
  - `/app/automation/rename` accepts only Standard Automations (`AutomationUtil.is_std`),
16
20
  excluding Group entity IDs. Twin, Group, Temporary and other prefixed internal
17
21
  programs cannot be renamed here. Rename a Group through its Group operation.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.190.0",
3
+ "contractVersion": "1.191.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.190.0",
2
+ "contractVersion": "1.191.0",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/conversation/get": "spaceRead",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.190.0",
3
+ "contractVersion": "1.191.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.190.0",
3
+ "contractVersion": "1.191.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.190.0",
3
+ "contractVersion": "1.191.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.190.0",
3
+ "contractVersion": "1.191.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.190.0",
3
+ "contractVersion": "1.191.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.190.0",
3
+ "version": "1.191.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.190.0",
3
+ "contractVersion": "1.191.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "dashboardCardAuthoring": "schema/dashboard-card-authoring.v1.schema.json",
@@ -204,35 +204,6 @@
204
204
  "instanceId"
205
205
  ]
206
206
  },
207
- "diagnosticReadInput": {
208
- "type": "object",
209
- "additionalProperties": false,
210
- "properties": {
211
- "automationId": {
212
- "type": "string",
213
- "pattern": "\\S"
214
- },
215
- "threadId": {
216
- "type": "integer",
217
- "minimum": 0
218
- },
219
- "instanceId": {
220
- "type": "string",
221
- "pattern": "\\S"
222
- },
223
- "cursor": {
224
- "type": [
225
- "string",
226
- "null"
227
- ]
228
- }
229
- },
230
- "required": [
231
- "automationId",
232
- "threadId",
233
- "instanceId"
234
- ]
235
- },
236
207
  "instanceStopOutput": {
237
208
  "type": "object",
238
209
  "additionalProperties": false,
@@ -293,20 +264,6 @@
293
264
  "automationId": {
294
265
  "type": "string",
295
266
  "pattern": "\\S"
296
- },
297
- "cursor": {
298
- "type": [
299
- "string",
300
- "null"
301
- ]
302
- },
303
- "limit": {
304
- "type": [
305
- "integer",
306
- "null"
307
- ],
308
- "minimum": 1,
309
- "maximum": 100
310
267
  }
311
268
  },
312
269
  "required": [