@mhome/app-facade-protocol 1.165.0 → 1.166.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,45 @@
1
+ # Product onboarding transport preparation
2
+
3
+ `/app/onboard/lan/attach` executes on the selected Hub for a directly authenticated
4
+ User Client with Space Manage access. Service, Agent, MCP and Cloud-bridge ingress
5
+ are rejected. Payloads use `mhome-onboard-api::carrier::LanAttachment` and
6
+ `AttachmentReady`: exact public Product/root, immutable Plan and a local socket
7
+ address. The address is a location hint, never identity or authority.
8
+
9
+ The current adapter accepts only standalone already-networked Wave and join-Hub
10
+ intent. Core checks its actual tenant/Space/Hub, runtime environment and persistent
11
+ Hub key, then opens the pinned purpose-3 carrier. Its bounded volatile attachment
12
+ lease survives Client disconnect but not Hub restart; it is not an operation
13
+ journal. Duplicate identical preparation reuses the live lease; a changed target
14
+ cannot replace it. At most eight attachments run, with a 120-second deadline and
15
+ Hub lifecycle cancellation.
16
+
17
+ `prepared:true` acknowledges transport preparation, not successful authentication,
18
+ grant installation, business readiness or product completion. The common device
19
+ engine owns Start and every role transition. Only the actual device's requests,
20
+ fresh Cloud current-Owner approval and exact durable readback can create/confirm
21
+ the role candidate. Client retry prepares the same approved Plan; it never creates
22
+ a replacement credential. Device Status remains the whole-operation result.
23
+
24
+ Native Client owns the local public read, paired carrier, logged-in Cloud exchange
25
+ and defined Start/status/explicit-retry protocol. CLI/UI are thin local callers.
26
+ Integration resolution and Entity materialization occur after communication
27
+ admission and are outside this transport operation.
28
+
29
+ The current native-local control surfaces are `/local/onboard/lan/start`,
30
+ `/local/onboard/lan/retry`, `/local/onboard/lan/observe`, `/local/onboard/status`
31
+ and `/local/onboard/close`. Open accepts a local `address`, optional six-digit
32
+ `pin`, explicit `noPin`, and caller-selected `responseDetail`. Status/close take
33
+ `sessionId` and `responseDetail`; open/status return `{sessionId,status}` with the
34
+ canonical device Status. Native Client renders Full/Essential; the local control
35
+ diagnostic timestamp is rendered in UTC in Essential, retaining milliseconds in
36
+ Full. A local session is an ephemeral account-bound connection, not device state.
37
+ Observe never starts or retries work. Close only closes that local connection.
38
+
39
+ Cloud approval is recorded before device Start. If that response or Start is
40
+ lost, reuse its original Plan. Saved-mode retry is the default; a caller may
41
+ explicitly provide the original configured PIN/no-PIN mode for a device that has
42
+ not saved Start and still has its physical window open. Do not infer durable
43
+ device state from Cloud approval, automatically downgrade a saved connection, or
44
+ allocate a new Plan/candidate. A normal initial Start also reuses an already
45
+ approved identical Plan rather than replacing it.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.165.0",
3
+ "contractVersion": "1.166.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",
@@ -546,6 +546,12 @@
546
546
  "/app/suggestion/settings/get",
547
547
  "/app/suggestion/settings/save"
548
548
  ]
549
+ },
550
+ "onboard": {
551
+ "contract": "contract/onboard-v1.md",
552
+ "requestTargets": [
553
+ "/app/onboard/lan/attach"
554
+ ]
549
555
  }
550
556
  },
551
557
  "authorization": "manifest/authorization.v1.json",
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.165.0",
2
+ "contractVersion": "1.166.0",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/conversation/get": "spaceRead",
@@ -391,7 +391,8 @@
391
391
  "/app/suggestion/handle": "spaceWrite",
392
392
  "/app/suggestion/list": "spaceRead",
393
393
  "/app/suggestion/settings/get": "spaceRead",
394
- "/app/suggestion/settings/save": "spaceWrite"
394
+ "/app/suggestion/settings/save": "spaceWrite",
395
+ "/app/onboard/lan/attach": "spaceManage"
395
396
  },
396
397
  "nodePrefix": "/app/plugin/",
397
398
  "serviceOperations": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.165.0",
3
+ "contractVersion": "1.166.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.165.0",
3
+ "contractVersion": "1.166.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.165.0",
3
+ "contractVersion": "1.166.0",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",
@@ -545,5 +545,25 @@
545
545
  "updatedAt",
546
546
  "expiresAt"
547
547
  ]
548
+ },
549
+ "/local/onboard/lan/start": {
550
+ "ms": [
551
+ "status.updatedAtMs"
552
+ ]
553
+ },
554
+ "/local/onboard/lan/retry": {
555
+ "ms": [
556
+ "status.updatedAtMs"
557
+ ]
558
+ },
559
+ "/local/onboard/lan/observe": {
560
+ "ms": [
561
+ "status.updatedAtMs"
562
+ ]
563
+ },
564
+ "/local/onboard/status": {
565
+ "ms": [
566
+ "status.updatedAtMs"
567
+ ]
548
568
  }
549
569
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.165.0",
3
+ "contractVersion": "1.166.0",
4
4
  "targetPrefix": "/app/",
5
5
  "default": {
6
6
  "execution": "spaceMode"
@@ -97,7 +97,8 @@
97
97
  "/app/integration/preview/apply",
98
98
  "/app/integration/preview/status",
99
99
  "/app/developer/contracts/list",
100
- "/app/developer/contracts/export"
100
+ "/app/developer/contracts/export",
101
+ "/app/onboard/lan/attach"
101
102
  ],
102
103
  "connectionTargets": [
103
104
  "/app/client/space/focus"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.messaging.targets.v1",
3
- "contractVersion": "1.165.0",
3
+ "contractVersion": "1.166.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.165.0",
3
+ "version": "1.166.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.165.0",
3
+ "contractVersion": "1.166.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "dashboardCardAuthoring": "schema/dashboard-card-authoring.v1.schema.json",