@mhome/app-facade-protocol 1.151.1 → 1.151.2
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/manifest/app-facade.v1.json +14 -2
- package/manifest/authorization.v1.json +3 -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
|
@@ -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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.app-facade.v1",
|
|
3
|
-
"contractVersion": "1.151.
|
|
3
|
+
"contractVersion": "1.151.2",
|
|
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,16 @@
|
|
|
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
|
+
]
|
|
508
520
|
}
|
|
509
521
|
},
|
|
510
522
|
"authorization": "manifest/authorization.v1.json",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.151.
|
|
2
|
+
"contractVersion": "1.151.2",
|
|
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",
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED