@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.
- package/contract/automation-presentation-v1.md +15 -2
- package/contract/automation-v1.md +8 -4
- package/manifest/app-facade.v1.json +1 -1
- package/manifest/authorization.v1.json +1 -1
- package/manifest/host-provision-targets.v1.json +1 -1
- package/manifest/hub-targets.v1.json +1 -1
- package/manifest/pod-targets.v1.json +1 -1
- package/manifest/routing.v1.json +1 -1
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/automation.v1.schema.json +0 -43
|
@@ -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
|
|
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
|
|
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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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.
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -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": [
|