@camunda/copilot-chat 0.8.1-alpha.3 → 0.8.1-alpha.4

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
@@ -191,7 +191,8 @@ the inline approve/reject controls for pending candidates. Hosts should present
191
191
  the candidate's changes (including their `before` and `content` snapshots)
192
192
  before calling `approve`; the exported `CandidateReview` renders BPMN diagrams
193
193
  and text diffs. Both actions return promises, so the host can display progress
194
- and keep the review open if an action fails.
194
+ and keep the review open if an action fails. Failed actions reject their promises;
195
+ the host owns error presentation in its review flow.
195
196
  While a proposal awaits approval or rejection, the composer is disabled for
196
197
  that conversation. Other conversations remain available. The backend also
197
198
  rejects new turns until the proposal is resolved.
@@ -202,6 +203,10 @@ the turn finishes or is stopped, provided no proposal awaits review. Rejected su
202
203
  error and preserve the draft for retry. Messages are not queued or automatically
203
204
  used to interrupt a running turn.
204
205
 
206
+ Pending or unconfirmed remote stops block Send, but not Stop. Snapshot polling
207
+ continues even when the transcript is idle so a missed stop-confirmation event
208
+ can recover; polling stops once no turn or unresolved stop remains.
209
+
205
210
  Failed chat-list reads (including initial load, reconnect, visibility resume and
206
211
  Back navigation) retain cached rows and display a retryable error in the Chats
207
212
  view rather than an empty success state. A successful reload clears that error;
@@ -217,8 +222,9 @@ after each connection or reconnection. The panel refreshes its snapshot at that
217
222
  point to recover events missed while connecting. The HTTP adapter does this on
218
223
  SSE open; two-argument synchronous adapters remain supported.
219
224
 
220
- An open conversation refreshes its snapshot every five seconds while running,
221
- until a terminal snapshot has been fetched. Missing realtime completion events
225
+ An open conversation refreshes its snapshot every five seconds while running
226
+ or while a remote stop remains pending or unconfirmed, until an idle snapshot
227
+ with no unresolved stop has been fetched. Missing realtime completion events
222
228
  therefore do not require a page reload. Online and visibility-resume events also
223
229
  refresh the snapshot. Requests are serialized and reconnect/lifecycle refreshes
224
230
  are coalesced. Failed requests retry with backoff, capped at 30 seconds; the panel
@@ -247,6 +253,21 @@ stops observation, timers, and browser listeners; it never cancels a turn.
247
253
  Fixture scripts must supply `before` for modifications to support restore;
248
254
  otherwise approval has no checkpoint. Only created files restore to absence.
249
255
 
256
+ ## Organization availability
257
+
258
+ Adapters can implement `getAvailability()` and include snapshot `availability`
259
+ as `{ state: 'enabled' | 'organization_disabled', policyVersion: string }`.
260
+ The panel reconciles both sources by local request order: a response from an
261
+ older request cannot replace a result accepted from a newer request.
262
+ `policyVersion` is opaque and is never sorted. Snapshots omitting availability
263
+ do not replace a known endpoint result.
264
+
265
+ The endpoint is checked before protected actions and on online/visible resume,
266
+ including on the conversation list. Failed lookups block changes and offer
267
+ retry. Disabled availability preserves the transcript, Stop, and local proposal
268
+ dismissal, but blocks new prompts, answers, approval, reapply, and Restore.
269
+ Denied actions are not automatically replayed.
270
+
250
271
  ## Questions from Copilot
251
272
 
252
273
  Copilot can pause an active turn to ask a question in a nonmodal card above
@@ -1,4 +1,4 @@
1
- import { R as c, L as f, A as d } from "./index-DevZv06y.js";
1
+ import { R as c, L as f, A as d } from "./index-DAyxug2G.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 }) => {