@mhome/app-facade-protocol 1.151.1 → 1.152.1
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/agent-conversation-v1.md +39 -0
- package/contract/dashboard-card-authoring-v1.md +17 -0
- package/manifest/app-facade.v1.json +25 -2
- package/manifest/authorization.v1.json +4 -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 +2 -1
- package/schema/dashboard-card-authoring.v1.schema.json +97 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Space Agent conversation policy
|
|
2
|
+
|
|
3
|
+
`/app/agent/conversation/get` reads and `/app/agent/conversation/save` updates the
|
|
4
|
+
current Space's default handling of messages sent during a run. The storage
|
|
5
|
+
identity is tenant + Space, never user or conversation surface. The ordinary
|
|
6
|
+
App Facade envelope and Space authorization apply.
|
|
7
|
+
|
|
8
|
+
Save input is `{ "runningMessageBehavior": "steer" }` or `"queue"`. The system
|
|
9
|
+
default is `steer`. Full data contains `spaceId`, `runningMessageBehavior`,
|
|
10
|
+
monotonic `version`, and nullable `updatedAtMs`. Essential retains behavior and
|
|
11
|
+
version. A successful save returns the committed policy and publishes it on
|
|
12
|
+
`/app/agent/conversation/changed` to the Space's connected App clients. Consumers
|
|
13
|
+
apply only newer versions and reload after reconnecting.
|
|
14
|
+
|
|
15
|
+
Conversation reads the current policy for each new default-delivery admission.
|
|
16
|
+
Explicit `steer` or `queue` overrides it for that message. An accepted request
|
|
17
|
+
retains its resolved delivery and target run across retries and later setting
|
|
18
|
+
changes. Existing personal idle-timeout policy is independent.
|
|
19
|
+
|
|
20
|
+
Steering keeps the current run, identity, model plan and cumulative usage. It
|
|
21
|
+
adds all waiting user inputs in order after the entire model tool-call batch
|
|
22
|
+
settles, before the next model request. Pending, unexecuted interaction cards
|
|
23
|
+
are superseded; old answers are refused. Any admitted participant in a shared
|
|
24
|
+
conversation can steer. Running tools are allowed to finish.
|
|
25
|
+
|
|
26
|
+
Public queued inputs carry `runId` when they are awaiting steering into an
|
|
27
|
+
existing run. The UI renders them as separate user bubbles in that run and omits
|
|
28
|
+
queue editing controls. Applied transcript messages retain their independent
|
|
29
|
+
`requestId` and the original `runId`, author, timestamp, and public attachment
|
|
30
|
+
metadata. The backend projects that data from its durable ingress record.
|
|
31
|
+
|
|
32
|
+
Execution control sends an ordered `inputs` prefix, each with its own request ID,
|
|
33
|
+
authenticated actor and portable message. Repeated prefixes are idempotent; a
|
|
34
|
+
newer prefix includes older unconsumed inputs so concurrent delivery cannot
|
|
35
|
+
reverse them. Live steering neither reseeds thread state nor waits behind the
|
|
36
|
+
running execution lane. Resuming an interaction carries its frozen plan, context
|
|
37
|
+
generation and checkpoint. If completion closes ingress first, the durable input
|
|
38
|
+
is handled as a subsequent task instead of being lost. A retried request ID
|
|
39
|
+
returns its first admission even when the Space default has since changed.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Dashboard Card authoring read
|
|
2
|
+
|
|
3
|
+
`/app/dashboard/card/authoring/get` accepts `{cardId}` in the selected Space.
|
|
4
|
+
It requires Space read access and follows the normal Space execution mode.
|
|
5
|
+
A missing, internal, ambiguous or unplaced Card returns `NOT_FOUND`.
|
|
6
|
+
|
|
7
|
+
The Facade owns the complete response: `spaceId`, `cardId`, `canvasId`, `title`,
|
|
8
|
+
`primaryViewId` and `views: [{id, name, patternId}]`. Nullable fields are explicit.
|
|
9
|
+
Views preserve order and identity. Weather views use `default.basic.weather`;
|
|
10
|
+
automation-only Cards expose a synthetic `automation` pattern without a view ID.
|
|
11
|
+
Unknown patterns remain null; consumers must not infer them from device names.
|
|
12
|
+
Device values, resource references, layouts and renderer implementation data are
|
|
13
|
+
excluded. Full and Essential preserve the same business fields.
|
|
14
|
+
|
|
15
|
+
This read does not install a skin, change the selected view or save a Preview.
|
|
16
|
+
The public developer entrypoint is `meow make ui card preview inspect`.
|
|
17
|
+
The CLI forwards this DTO without reconstructing Card semantics.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.152.1",
|
|
4
4
|
"callSchema": "schema/facade-call.v1.schema.json",
|
|
5
5
|
"routing": "manifest/routing.v1.json",
|
|
6
6
|
"routingSchema": "schema/routing.v1.schema.json",
|
|
@@ -494,7 +494,9 @@
|
|
|
494
494
|
},
|
|
495
495
|
"dashboardWidgetCardCreate": {
|
|
496
496
|
"contract": "contract/dashboard-widget-card-create-v1.md",
|
|
497
|
-
"requestTargets": [
|
|
497
|
+
"requestTargets": [
|
|
498
|
+
"/app/dashboard/card/widget/create"
|
|
499
|
+
]
|
|
498
500
|
},
|
|
499
501
|
"dashboardComposition": {
|
|
500
502
|
"layoutSchema": "schema/canvas-layout.v1.schema.json",
|
|
@@ -505,6 +507,27 @@
|
|
|
505
507
|
"/app/dashboard/canvas/composition/ungroup",
|
|
506
508
|
"/app/dashboard/canvas/composition/layout/update"
|
|
507
509
|
]
|
|
510
|
+
},
|
|
511
|
+
"agentConversation": {
|
|
512
|
+
"contract": "contract/agent-conversation-v1.md",
|
|
513
|
+
"requestTargets": [
|
|
514
|
+
"/app/agent/conversation/get",
|
|
515
|
+
"/app/agent/conversation/save"
|
|
516
|
+
],
|
|
517
|
+
"eventTargets": [
|
|
518
|
+
"/app/agent/conversation/changed"
|
|
519
|
+
]
|
|
520
|
+
},
|
|
521
|
+
"dashboardCardAuthoring": {
|
|
522
|
+
"contract": "contract/dashboard-card-authoring-v1.md",
|
|
523
|
+
"requestSchema": "schema/dashboard-card-authoring.v1.schema.json",
|
|
524
|
+
"responseSchema": "schema/dashboard-card-authoring.v1.schema.json",
|
|
525
|
+
"requests": {
|
|
526
|
+
"/app/dashboard/card/authoring/get": "#/definitions/input"
|
|
527
|
+
},
|
|
528
|
+
"responses": {
|
|
529
|
+
"/app/dashboard/card/authoring/get": "#/definitions/output"
|
|
530
|
+
}
|
|
508
531
|
}
|
|
509
532
|
},
|
|
510
533
|
"authorization": "manifest/authorization.v1.json",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.152.1",
|
|
3
3
|
"operations": {
|
|
4
4
|
"/app/agent/context/get": "spaceRead",
|
|
5
|
+
"/app/agent/conversation/get": "spaceRead",
|
|
6
|
+
"/app/agent/conversation/save": "spaceWrite",
|
|
5
7
|
"/app/agent/credit/usage": "spaceRead",
|
|
6
8
|
"/app/agent/identity/get": "spaceRead",
|
|
7
9
|
"/app/agent/identity/save": "spaceWrite",
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
"/app/dashboard/card/copy": "spaceWrite",
|
|
78
80
|
"/app/dashboard/card/delete": "spaceWrite",
|
|
79
81
|
"/app/dashboard/card/detail/get": "spaceRead",
|
|
82
|
+
"/app/dashboard/card/authoring/get": "spaceRead",
|
|
80
83
|
"/app/dashboard/card/list": "spaceRead",
|
|
81
84
|
"/app/dashboard/card/main-view/update": "spaceWrite",
|
|
82
85
|
"/app/dashboard/card/move": "spaceWrite",
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocol": "mhome.app-facade",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.152.1",
|
|
4
4
|
"manifest": "manifest/app-facade.v1.json",
|
|
5
5
|
"schemas": {
|
|
6
|
+
"dashboardCardAuthoring": "schema/dashboard-card-authoring.v1.schema.json",
|
|
6
7
|
"storage": "schema/storage.v1.schema.json",
|
|
7
8
|
"householdRecording": "schema/household-recording.v1.schema.json",
|
|
8
9
|
"nowAttention": "schema/now-attention.v1.schema.json",
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.meowlink.app/dashboard-card-authoring.v1.json",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"cardId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 256,
|
|
13
|
+
"pattern": "\\S"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": [
|
|
17
|
+
"cardId"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"view": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"id": {
|
|
25
|
+
"type": [
|
|
26
|
+
"string",
|
|
27
|
+
"null"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"name": {
|
|
31
|
+
"type": [
|
|
32
|
+
"string",
|
|
33
|
+
"null"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"patternId": {
|
|
37
|
+
"type": [
|
|
38
|
+
"string",
|
|
39
|
+
"null"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"id",
|
|
45
|
+
"name",
|
|
46
|
+
"patternId"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"output": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"spaceId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1,
|
|
56
|
+
"maxLength": 256,
|
|
57
|
+
"pattern": "\\S"
|
|
58
|
+
},
|
|
59
|
+
"cardId": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 256,
|
|
63
|
+
"pattern": "\\S"
|
|
64
|
+
},
|
|
65
|
+
"canvasId": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1,
|
|
68
|
+
"maxLength": 256,
|
|
69
|
+
"pattern": "\\S"
|
|
70
|
+
},
|
|
71
|
+
"title": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"primaryViewId": {
|
|
75
|
+
"type": [
|
|
76
|
+
"string",
|
|
77
|
+
"null"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"views": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"$ref": "#/definitions/view"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"spaceId",
|
|
89
|
+
"cardId",
|
|
90
|
+
"canvasId",
|
|
91
|
+
"title",
|
|
92
|
+
"primaryViewId",
|
|
93
|
+
"views"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|