dsh-rewind-plugin 0.4.1 → 0.5.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/CONTRIBUTING.md +72 -0
- package/README.en.md +174 -0
- package/README.md +105 -101
- package/SECURITY.md +154 -0
- package/docs/README.md +29 -0
- package/docs/architecture.md +128 -0
- package/docs/compat/tracking-boundary.md +103 -0
- package/docs/compat/tracking-boundary.zh.md +55 -0
- package/docs/compat/troubleshooting.md +41 -0
- package/docs/{troubleshooting.zh.md → compat/troubleshooting.zh.md} +15 -0
- package/docs/format.md +150 -0
- package/docs/harness-reference.md +7 -3
- package/docs/release/release.md +69 -0
- package/docs/{release.md → release/release.zh.md} +6 -52
- package/docs/snapshot-auto-cleanup.md +71 -0
- package/docs/snapshot-auto-cleanup.zh.md +42 -0
- package/lib/client.js +1 -1
- package/lib/index.js +982 -50
- package/lib/types/client/candidates.d.ts +5 -4
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/index.d.ts +3 -1
- package/lib/types/locales.d.ts +17 -0
- package/lib/types/rewind.d.ts +3 -2
- package/lib/types/snapshot-cleanup.d.ts +125 -0
- package/lib/types/snapshot.d.ts +374 -14
- package/package.json +6 -3
- package/README.zh.md +0 -159
- package/docs/troubleshooting.md +0 -44
- /package/docs/{compat-audit.md → compat/audit.md} +0 -0
- /package/docs/{client-contract.md → contract/client-contract.md} +0 -0
- /package/docs/{client-contract.zh.md → contract/client-contract.zh.md} +0 -0
package/docs/troubleshooting.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Troubleshooting
|
|
2
|
-
|
|
3
|
-
[简体中文](troubleshooting.zh.md)
|
|
4
|
-
|
|
5
|
-
## History load failure: `…turn-tail… received an update before its start Match`
|
|
6
|
-
|
|
7
|
-
Rewinds from `≤ 0.2.4` collided with the next real turn's `turn/start`, so reopening the session showed
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
Failed to load history: conversation Context …:turn-tail… received an update before its start Match (internal)
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
and the history vanished. Rewinds from `0.2.5` on no longer collide; already-corrupted sessions need an offline repair (the log is append-only). The repair tool (`dsh-rewind-repair`) is no longer shipped from v0.4.0 — install a pre-v0.4.0 release to get it (fully quit dsh web / host first, then):
|
|
14
|
-
|
|
15
|
-
```sh
|
|
16
|
-
npm exec --yes --package=dsh-rewind-plugin@0.3.3 -- dsh-rewind-repair
|
|
17
|
-
npm exec --yes --package=dsh-rewind-plugin@0.3.3 -- dsh-rewind-repair -- --dry-run # preview only
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
It only rewrites the marker events' `data.turn` (seqs, order, and zstd frame structure intact) and backs up the original file before writing — safe to run repeatedly. From a source checkout of a pre-v0.4.0 tag: `node scripts/repair-markers.mjs` (identical flags).
|
|
21
|
-
|
|
22
|
-
## Known compatibility boundaries
|
|
23
|
-
|
|
24
|
-
Behavioral notes verified by the compatibility probe suites
|
|
25
|
-
([compat-audit.md](compat-audit.md)) — none of these is a crash:
|
|
26
|
-
|
|
27
|
-
- **Session stats / telemetry do not roll back**: whole-log folds count the
|
|
28
|
-
withdrawn turns, and telemetry records the rewind's marker and ghost-step
|
|
29
|
-
frame under the reused turn. Expected whole-log semantics.
|
|
30
|
-
- **Withdrawn messages stay searchable and exported**: rewind cuts only the
|
|
31
|
-
model-visible surface; full-text search and `/export` still see the raw log.
|
|
32
|
-
- **Session titles may regenerate** after a rewind (title derives from the
|
|
33
|
-
current surface).
|
|
34
|
-
- **Files written by a cancelled tool call** (write happened, no result, no
|
|
35
|
-
snapshot commit) cannot be restored by "conversation and code".
|
|
36
|
-
|
|
37
|
-
**R-OPENSTEP** (harness-side, plugin does not guard): a session log carrying
|
|
38
|
-
an *unclosed* `step/start` (a crash before the agent loop's `finally` closed
|
|
39
|
-
the step) makes any later step activity break token-meter replay (and
|
|
40
|
-
`/compact`). Harness `0.1.1-rc.2` fixes the crash path on load
|
|
41
|
-
(`interruptedTurnClosers` closes leftover step/turn boundaries). A plugin-side
|
|
42
|
-
up-front rejection was implemented and **reverted** (false positives broke the
|
|
43
|
-
rewind feature on real session logs, `177ec14`); the residual runtime-produced
|
|
44
|
-
risk is accepted. Tracked in the compat-audit.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|