@mhome/app-facade-protocol 1.181.0 → 1.183.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.
@@ -0,0 +1,35 @@
1
+ # Entity extension management
2
+
3
+ These App Facades operate on the existing standalone entity. They create no
4
+ second inventory and do not transfer Provider Connection data. Requests use the
5
+ ordinary Facade call envelope and current Space authority.
6
+
7
+ - `/app/entity/extension/get`: `{ "entityUid": "device-1" }`; Space read access.
8
+ Returns `entityUid`, `revision`, `extensionBindings`, full `capabilities`, and
9
+ `visibleCapabilities`. The revision is an optimistic concurrency token.
10
+ - `/app/entity/extension/change`: `{ "entityUid": "device-1", "serviceId": "camera",
11
+ "expectedRevision": 4, "action": "add", "nodeId": "camera-A" }`; Space management
12
+ access. Actions are `add`, `disable`, `enable`, and `remove`. Only `add` accepts
13
+ `nodeId`; it requires an explicitly selected compatible instance. Existing
14
+ owned associations must be removed before adding elsewhere. Stale revisions
15
+ fail without changing the association.
16
+ - `/app/entity/extension/default/set`: `{ "serviceId": "camera", "nodeId": "camera-A" }`;
17
+ Space management access. Omit `nodeId` to clear the default. The selected default
18
+ affects only unassigned eligible entities, never existing or disabled bindings.
19
+
20
+ Changes return the current entity extension view. Removal clears extension-owned
21
+ settings, recordings and cached data, while preserving the source entity and its
22
+ Provider Connection. An unavailable owner or unknown acknowledgement leaves the
23
+ association `removing`; the response fails and subsequent reads expose that state.
24
+ Retry the exact association. Reassignment is remove followed by add, never an
25
+ implicit overwrite or data migration. Disable retains data and the same binding ID.
26
+
27
+ Bindings are keyed by service ID. `enabled` and `removing` require both `nodeId`
28
+ and `bindingId`. `disabled` has either both (paused) or neither (sticky opt-out).
29
+ Group projections are not standalone extension targets. Full support remains the
30
+ invocation contract; visible support applies authored shadow solely to presentation.
31
+
32
+ These are backend interfaces. UI, Agent, CLI and Plugin SDK adapters are delivered
33
+ with their invocation/synchronization integration; a manifest does not establish
34
+ that those adapters exist. Cloud Spaces currently have no native Plugin instances;
35
+ they preserve association metadata and expose only eligible pure composites.
@@ -58,3 +58,9 @@ identity fail the request. Only installed, visible Provider-owned Devices match.
58
58
  The operation never synchronizes sources or returns metadata, state or cards.
59
59
  Source synchronization remains `/app/integration/entity/refresh`; onboarding reads
60
60
  standard Device metadata only after an explicitly successful synchronization.
61
+
62
+ General Entity list/detail and reference candidates retain Group definitions when
63
+ optional projection fails. `capabilities`, `tags`, `active` and `issue` are omitted
64
+ when unknown, with `problem`; confirmed empty/false values remain valid. Selected
65
+ definition failures are unavailable items. Selected reference-name reads preserve
66
+ the same ID order and diagnostics. See [independent reads](resource-read-failures-v1.md).
@@ -44,3 +44,7 @@ The cloud Group record gains one optional boolean attribute. Primary keys and
44
44
  indexes do not change. Core SQLite includes `presentation_pending` in its complete
45
45
  baseline; an existing database requires an explicit rebuild under the workspace
46
46
  baseline policy. No startup conversion or automatic deletion is performed.
47
+
48
+ Selected definition failures carry `reason: unavailable` and an ID-scoped `problem`.
49
+ Member projection failures retain the definition, omit unknown derived fields and
50
+ carry `problem`. Outcomes follow [independent resource reads](resource-read-failures-v1.md).
@@ -51,3 +51,26 @@ retry is introduced. Required evidence for a dependent mutation remains required
51
51
  All-unavailable diagnostics live in error.details.items; shared cache/online reads
52
52
  and strict visibility consumers still fail the request. Location aliases retain
53
53
  the caller's requestedId in diagnostics.
54
+
55
+ - Group detail, general Entity list/detail and reference candidates retain known
56
+ definitions when member/runtime projection fails; unknown capabilities, tags,
57
+ active and issue are omitted. Selected Group definition/name failures use
58
+ unavailable items, never not_found.
59
+ - Integration batch detail completes mandatory shared context reads before
60
+ selected-ID lookups. Per-ID detail failures are isolated; shared failures remain
61
+ request errors.
62
+ - Widget selected values strictly decode only value/next, preserving legal null.
63
+ Configuration reads never decode runtime value/next. Detail and presentation
64
+ rows retain known definitions and omit failed configuration/value projections.
65
+
66
+ - Dashboard management list/detail project Widget identity summaries, without decoding
67
+ unrelated configuration or observations. Weather type is defined by its source;
68
+ an unreadable detail location retains the Card and its `status: found`, with
69
+ an item-scoped problem. Confirmed missing Cards remain `status: not_found`.
70
+ - Canvas static content and Automation overview retain each Widget definition when
71
+ a configuration/value projection fails. Unknown fields are omitted and the Widget
72
+ carries a problem. Canvas entity metadata is similarly scoped after mandatory
73
+ shared context reads. Even if every optional Widget projection fails, known
74
+ Card/Automation definitions remain useful and the outcome is partial, not empty.
75
+
76
+ The Device static view uses the same Card/Widget projection boundary and diagnostics.
@@ -35,3 +35,8 @@ Controllers, including reads and writes, are removed. Writes use the shared
35
35
  `/app/widget/*` Facades described in `widget-writes-v1.md`.
36
36
  `/widget/reportUpdate` remains a push protocol; internal Automation dispatch
37
37
  remains separate from public request routing.
38
+
39
+ Presentation rows retain Widget identity and known configuration when optional
40
+ value/curve/next decoding fails, with `problem` and omitted unknown fields.
41
+ Configuration and runtime values decode independently; invalid bytes never become
42
+ a successful null. See [independent reads](resource-read-failures-v1.md).