@camunda/copilot-chat 0.8.1-alpha.5 → 0.8.1-alpha.7
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 +26 -8
- package/dist/{highlighted-body-OFNGDK62-PP6OFj0v.js → highlighted-body-OFNGDK62-D11lpZ-A.js} +1 -1
- package/dist/{index-CNP5V04Z.js → index-BdxrWv_q.js} +5927 -5781
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1 -1
- package/dist/mermaid-GHXKKRXX-B_oHlc1J.js +4 -0
- package/package.json +1 -1
- package/dist/mermaid-GHXKKRXX-Ca3y5wFn.js +0 -4
package/README.md
CHANGED
|
@@ -200,15 +200,17 @@ divergence. When the conversation is idle, the panel shows a compact
|
|
|
200
200
|
The required `openDraftReview` host callback receives only `{ conversationId, draftId }`;
|
|
201
201
|
the host opens the all-files review and checks the current draft and
|
|
202
202
|
permissions. Opening review does not authorize writes or confirm a generation.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
Each applied change set appears as a checkpoint at its position in the
|
|
204
|
+
transcript, including in older pages. Restore calls `undoApply` with that
|
|
205
|
+
checkpoint's Apply ID, not the host's single-file version action.
|
|
206
|
+
|
|
207
|
+
Applying a draft sends its exact `draftId` and `reviewedGeneration`. Hosts
|
|
208
|
+
that require live-version confirmation can also supply `confirmedLive`; the
|
|
209
|
+
HTTP adapter forwards it when provided. The host must reject a stale generation
|
|
210
|
+
rather than apply edits the user has not reviewed. Apply results distinguish success,
|
|
209
211
|
a changed draft that must be reviewed again, and access or policy blocks.
|
|
210
212
|
Discarding selected artifacts, reverting changes from a turn, updating from
|
|
211
|
-
live, and undoing
|
|
213
|
+
live, and undoing an eligible apply are separate conversation-scoped operations.
|
|
212
214
|
An open draft does not disable sending another turn; subsequent turns update
|
|
213
215
|
the same draft.
|
|
214
216
|
|
|
@@ -230,7 +232,8 @@ list failures do not replace the composer's independent send-error message.
|
|
|
230
232
|
Applied changes offer a Restore action. It opens a confirmation dialog naming the
|
|
231
233
|
affected files before restoring their earlier state. Cancel or Escape leaves them
|
|
232
234
|
unchanged; restoring preserves chat history. Failed restores remain in the dialog
|
|
233
|
-
with an error and can be retried.
|
|
235
|
+
with an error and can be retried. When the dialog closes, focus returns to
|
|
236
|
+
Restore, or to the checkpoint label if Restore is no longer available.
|
|
234
237
|
|
|
235
238
|
`getConversation(id)` returns the newest message page and an opaque `olderCursor`
|
|
236
239
|
(`null` at the start of history). The panel requests older pages with
|
|
@@ -239,6 +242,21 @@ with an error and can be retried.
|
|
|
239
242
|
`revision`, ordered by `sequence`. Changes replace the whole draft when present:
|
|
240
243
|
omitted means unchanged; `null` means cleared.
|
|
241
244
|
|
|
245
|
+
Only explicit `true` enables Restore. Unavailable checkpoints keep a disabled
|
|
246
|
+
Restore button with their reason. Hosts can supply `undoable` on
|
|
247
|
+
`draft_applied` rows and implement
|
|
248
|
+
`getRestoreEligibility(conversationId, applyIds)` to refresh loaded checkpoints
|
|
249
|
+
in batches of at most 100 IDs and recheck the selected ID before Restore.
|
|
250
|
+
This read is independent of transcript revisions.
|
|
251
|
+
Routine refreshes keep the last confirmed eligibility visible while a request
|
|
252
|
+
is pending. A read-scope reset clears it immediately, and confirmation still
|
|
253
|
+
requires a fresh positive result.
|
|
254
|
+
With that reader, a checkpoint remains available after Restore only if the
|
|
255
|
+
host still authorizes it. An `apply_undone` row with a `recoveryApplyId` appears
|
|
256
|
+
as **Changes restored** with an **Undo restore** action. The client uses that
|
|
257
|
+
new ID to check eligibility and restore the versions saved just before that
|
|
258
|
+
restore, preserving each restore as a separate transcript row.
|
|
259
|
+
|
|
242
260
|
The header `revision` is the covered watermark for `since`, not the largest row
|
|
243
261
|
revision. A read may contain newer rows without covering all intervening changes.
|
|
244
262
|
`observe` delivers only `{ chatId, revision }` notices. Adapters call the optional
|
package/dist/{highlighted-body-OFNGDK62-PP6OFj0v.js → highlighted-body-OFNGDK62-D11lpZ-A.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-BdxrWv_q.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 }) => {
|