@camunda/copilot-chat 0.8.0 → 0.8.1-alpha.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/README.md +38 -0
- package/dist/{highlighted-body-OFNGDK62-D0jnB6Wf.js → highlighted-body-OFNGDK62-C6KwCOBH.js} +1 -1
- package/dist/{index-D9bYzhnE.js → index-CKZtePyt.js} +5565 -5219
- package/dist/index.d.ts +31 -3
- package/dist/index.js +1 -1
- package/dist/mermaid-GHXKKRXX-B8719kZP.js +4 -0
- package/package.json +2 -6
- package/dist/mermaid-GHXKKRXX-ixv1ipvh.js +0 -4
package/README.md
CHANGED
|
@@ -70,6 +70,12 @@ If the project name cannot be loaded, pass `projectNameUnavailable` rather
|
|
|
70
70
|
than displaying a project ID as its name. The host must still provide editor
|
|
71
71
|
context in `postMessage`; these props only describe the project.
|
|
72
72
|
|
|
73
|
+
Pass `readOnlyReason` when the selected conversation can no longer accept
|
|
74
|
+
messages, for example because its project was deleted. The composer is
|
|
75
|
+
disabled and shows the reason, and stale proposals can no longer be reapplied;
|
|
76
|
+
stopping a running turn and reviewing proposals
|
|
77
|
+
stay available, as do the chat list and new chats.
|
|
78
|
+
|
|
73
79
|
## Selection context
|
|
74
80
|
|
|
75
81
|
Pass `selectionContext={{ projectId, count }}` to `CopilotConversationPanel`
|
|
@@ -111,6 +117,32 @@ after each connection or reconnection. The panel refreshes its snapshot at that
|
|
|
111
117
|
point to recover events missed while connecting. The HTTP adapter does this on
|
|
112
118
|
SSE open; two-argument synchronous adapters remain supported.
|
|
113
119
|
|
|
120
|
+
An open conversation refreshes its snapshot every five seconds while running,
|
|
121
|
+
until a terminal snapshot has been fetched. Missing realtime completion events
|
|
122
|
+
therefore do not require a page reload. Online and visibility-resume events also
|
|
123
|
+
refresh the snapshot. Requests are serialized and reconnect/lifecycle refreshes
|
|
124
|
+
are coalesced. Failed requests retry with backoff, capped at 30 seconds; the panel
|
|
125
|
+
shows a synchronization warning and disables submissions until recovery. It does
|
|
126
|
+
not infer success or cancel provider work when synchronization fails.
|
|
127
|
+
|
|
128
|
+
Adapters may use the optional fourth `observe` argument to report an `Error` after
|
|
129
|
+
a transport or parsing failure. The observer then refreshes the snapshot. The HTTP
|
|
130
|
+
adapter reports SSE errors and malformed JSON this way.
|
|
131
|
+
|
|
132
|
+
Snapshots, summaries, and events optionally carry a monotonically increasing
|
|
133
|
+
numeric `revision` per conversation. Once a revision is present, older or
|
|
134
|
+
unversioned updates are ignored. Events at the same revision may carry different
|
|
135
|
+
parts of one change; revisions are not event IDs. Hosts must supply consistent
|
|
136
|
+
revisions across all three surfaces to enable this protection. Existing unversioned
|
|
137
|
+
adapters remain supported: events arriving during a snapshot request invalidate
|
|
138
|
+
that response and cause a later refresh. Without server revisions, the library
|
|
139
|
+
cannot identify stale server responses or all delayed events.
|
|
140
|
+
|
|
141
|
+
Polling only repairs browser state from the backend's snapshot. It cannot repair
|
|
142
|
+
a backend that has not persisted completion, and a suspended/offline browser or
|
|
143
|
+
a request that never settles has no bounded convergence guarantee. Unmounting
|
|
144
|
+
stops observation, timers, and browser listeners; it never cancels a turn.
|
|
145
|
+
|
|
114
146
|
`CandidateReview.onReviewReady` reports true only when every artifact is ready.
|
|
115
147
|
Fixture scripts must supply `before` for modifications to support restore;
|
|
116
148
|
otherwise approval has no checkpoint. Only created files restore to absence.
|
|
@@ -125,6 +157,12 @@ and becomes the assistant reply in `content`. Optional `groupId` metadata in
|
|
|
125
157
|
older snapshots does not nest rows. Message rows show text directly beside a
|
|
126
158
|
neutral dot, without a generic "Progress" label.
|
|
127
159
|
|
|
160
|
+
An assistant reply in `content` is visible while the message is still streaming.
|
|
161
|
+
The turn remains busy and the composer stays disabled until completion; rendering
|
|
162
|
+
the reply does not indicate that output verification or proposal creation succeeded.
|
|
163
|
+
Empty reasoning markers are not shown or counted. Actual thinking blocks with
|
|
164
|
+
non-blank description text remain visible, and failed steps are never hidden.
|
|
165
|
+
|
|
128
166
|
Shell-tool lint steps, including combined layout/lint steps, use a neutral wrench
|
|
129
167
|
and their original activity label even when the check returns an error. They do
|
|
130
168
|
not show red failure styling, a "(failed)" suffix, or a warning badge. The stored
|
package/dist/{highlighted-body-OFNGDK62-D0jnB6Wf.js → highlighted-body-OFNGDK62-C6KwCOBH.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as c, L as f, A as d } from "./index-
|
|
1
|
+
import { R as c, L as f, A as d } from "./index-CKZtePyt.js";
|
|
2
2
|
import { useContext as p, useState as L, useEffect as N } from "react";
|
|
3
3
|
import { jsx as x } from "react/jsx-runtime";
|
|
4
4
|
var A = ({ code: s, language: e, raw: a, className: o, startLine: m, lineNumbers: u, ...g }) => {
|