@mhome/conversation-protocol 4.0.0 → 4.1.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/README.md
CHANGED
|
@@ -7,6 +7,11 @@ conversation events. `ConversationSurface` is a canonical value object whose str
|
|
|
7
7
|
wire and persistence identity of one isolated conversation endpoint. The crate deliberately
|
|
8
8
|
contains no Agent runtime, persistence, transport implementation, or messaging-provider SDK.
|
|
9
9
|
|
|
10
|
+
`ThreadSync` returns unchanged, delta, or full-snapshot state. Rust stores the
|
|
11
|
+
full snapshot in `Box<ThreadSnapshot>` so the other variants remain compact.
|
|
12
|
+
The JSON response still contains the snapshot object directly; the allocation
|
|
13
|
+
does not change its fields, synchronization behavior, or schema.
|
|
14
|
+
|
|
10
15
|
`/chat/turn/submit` is the source-neutral application operation for callers that do not manage
|
|
11
16
|
threads themselves. The Conversation implementation owns active-thread creation, idle rotation,
|
|
12
17
|
pending-interaction policy, idempotency, and enqueueing for that operation.
|
|
@@ -50,6 +55,15 @@ data. The UI operates on that exact session. A status check returns its actual r
|
|
|
50
55
|
only a new tool call can request further human interaction. Prepared approvals retain their
|
|
51
56
|
business prepare/commit contract. Card state and responses are separate from model history.
|
|
52
57
|
|
|
58
|
+
The Conversation backend accepts a nonempty subset of distinct known item answers, persists
|
|
59
|
+
partial responses privately with their responder identities, and resumes Runtime only after
|
|
60
|
+
all items are answered. Public `PendingInteraction.answeredActionIds` is required and carries
|
|
61
|
+
only progress. Clients show the first unanswered item and advance after canonical acknowledgement.
|
|
62
|
+
Identical retries by the same responder are idempotent; accepted answers cannot be edited.
|
|
63
|
+
Runtime's execution command still carries the complete batch. User actions may open a shared
|
|
64
|
+
frontend Operation that performs its business writes before returning a safe result. The
|
|
65
|
+
saved handler validates or reads that result rather than repeating the write.
|
|
66
|
+
|
|
53
67
|
`RunErrorCode` is the closed catalog for `runOutcome.errorCode` and Agent `Failed.code`. Host
|
|
54
68
|
terminalize and Agent failures emit the same strings. `status` and `failure.source` are properties
|
|
55
69
|
of the code; `failure.code` equals `errorCode`. User-visible copy stays in `runOutcome.message`,
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
"batchId",
|
|
133
133
|
"title",
|
|
134
134
|
"message",
|
|
135
|
-
"items"
|
|
135
|
+
"items",
|
|
136
|
+
"answeredActionIds"
|
|
136
137
|
],
|
|
137
138
|
"properties": {
|
|
138
139
|
"requestId": {
|
|
@@ -153,6 +154,13 @@
|
|
|
153
154
|
"items": {
|
|
154
155
|
"$ref": "#/$defs/interactionItem"
|
|
155
156
|
}
|
|
157
|
+
},
|
|
158
|
+
"answeredActionIds": {
|
|
159
|
+
"type": "array",
|
|
160
|
+
"uniqueItems": true,
|
|
161
|
+
"items": {
|
|
162
|
+
"$ref": "#/$defs/id"
|
|
163
|
+
}
|
|
156
164
|
}
|
|
157
165
|
}
|
|
158
166
|
},
|