dsh-retrace 0.4.148 → 0.4.151
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 +15 -14
- package/README.zh.md +18 -10
- package/bin/retrace.mjs +0 -0
- package/lib/adapter/dsh-writer.js +2 -2
- package/lib/adapter/dsh.js +8 -508
- package/lib/archaeology-cli.js +3 -3
- package/lib/boot-pin.js +1 -1
- package/lib/client-i18n.js +22 -13
- package/lib/client.bundle.js +3 -3
- package/lib/client.js +136 -205
- package/lib/close-guard-client.js +2 -2
- package/lib/dynamic-client.js +3 -3
- package/lib/dynamic-host.js +8 -257
- package/lib/host-core.js +2 -193
- package/lib/http.js +3 -132
- package/lib/index.js +365 -862
- package/lib/marker-carrier.js +4 -4
- package/lib/platform/session-paths.js +11 -43
- package/lib/prewrite-guard.js +0 -28
- package/lib/span-semantics.js +1 -1
- package/lib/versioning.js +34 -2
- package/package.json +20 -16
- package/lib/adapter/compaction-backend.js +0 -92
- package/lib/adapter/register-compaction-backend.js +0 -93
- package/lib/auto-fold-scheduler.js +0 -519
- package/lib/badge.js +0 -65
- package/lib/cache-metrics.js +0 -358
- package/lib/context-level.js +0 -139
- package/lib/core-contract.js +0 -77
- package/lib/fold-auto.js +0 -621
- package/lib/fold-boundary.js +0 -1051
- package/lib/fold-core-text.js +0 -52
- package/lib/fold-core.js +0 -191
- package/lib/fold-summary.js +0 -168
- package/lib/hw3-fallback.js +0 -262
- package/lib/identity/code-assign.js +0 -228
- package/lib/identity/dedupe.js +0 -168
- package/lib/identity/shortcode.js +0 -782
- package/lib/identity/sidebar-badge.js +0 -270
- package/lib/identity-check-cli.js +0 -379
- package/lib/ledger-guard.js +0 -491
- package/lib/token-estimate.js +0 -91
package/lib/client-i18n.js
CHANGED
|
@@ -56,12 +56,6 @@ export const zh = {
|
|
|
56
56
|
// 回档(rollback)marker 的提示:此前无此键且 op 落到兜底 'edit',界面误显示「已编辑
|
|
57
57
|
// 此消息并重新发送」。回档语义 = 面回退到该读档点(与撤回/编辑一样隐藏被替换的后续节点)。
|
|
58
58
|
'marker.restore': '已回退到该档位',
|
|
59
|
-
/* @public-strip:start */
|
|
60
|
-
'marker.fold': '已折叠此完成块({count} 个节点,日志完整,可展开)', // neutral-line
|
|
61
|
-
/* @public-strip:end */
|
|
62
|
-
/* @public-strip:start */
|
|
63
|
-
'marker.unfold': '展开此折叠块', // neutral-line
|
|
64
|
-
/* @public-strip:end */
|
|
65
59
|
'marker.originalLabel': '原输入',
|
|
66
60
|
'marker.referenceHint': '点击展开查看原提问(仅作对照,不会进入模型上下文)',
|
|
67
61
|
'marker.degradedHint': '此操作涉及大范围对话,为保护历史未隐藏内容(日志完好)。',
|
|
@@ -105,7 +99,7 @@ export const zh = {
|
|
|
105
99
|
'timeline.intro': '这里是你会话的改动记录:每次撤回 / 编辑 / 重新生成前,原来的内容都会存一档。共 {total} 次(已显示 {shown})。点任一条可展开看当时的原话。',
|
|
106
100
|
'view.retrace': '读档点',
|
|
107
101
|
'timeline.refresh': '刷新',
|
|
108
|
-
'badge.hint': '
|
|
102
|
+
'badge.hint': '会话标识由会话唯一 id 确定性导出,永不变(标题会变)。',
|
|
109
103
|
'timeline.close': '关闭',
|
|
110
104
|
'timeline.empty': '还没有读档点。撤回 / 编辑 / 重新生成会自动存一档。',
|
|
111
105
|
'timeline.loading': '加载中…',
|
|
@@ -248,6 +242,18 @@ export const zh = {
|
|
|
248
242
|
// 「现在这条」——读者先看到它,再看到被它换掉的那一份(阅读顺序 ①→②→③)
|
|
249
243
|
'what.nowLabel': '现在这条:',
|
|
250
244
|
'what.resentSame': '内容未改,重新发送;原来的内容:',
|
|
245
|
+
// issue #7:历史版本写进标题的旧前缀清理(只重命名标题,不动会话内容;幂等)
|
|
246
|
+
'title.clean': '清理标题旧前缀',
|
|
247
|
+
'title.cleanHint': '去掉历史版本写进会话标题的「[谱系标识]」前缀。插件加载时已自动清理过;这个按钮用于手动重跑(只改标题,不动会话内容;可重复执行)',
|
|
248
|
+
'title.cleanConfirm': '确认清理会话标题中的旧前缀?只重命名标题,会话内容一律不改。',
|
|
249
|
+
'title.cleaning': '清理中…',
|
|
250
|
+
'title.cleanDone': '已扫描 {scanned} 个会话,清理 {restored} 个标题,跳过 {skipped} 个(无前缀)',
|
|
251
|
+
'title.cleanFailedCount': ',失败 {failed} 个',
|
|
252
|
+
'title.cleanPending': ';另有 {pending} 个未驻留会话(打开该会话后再点一次即可清理)',
|
|
253
|
+
'title.cleanError': '清理失败:{message}',
|
|
254
|
+
// P1(2026-11-12):撤回**有**原文,只是没有"新内容";有原文时说清"撤回了多少条",
|
|
255
|
+
// 不再用「没有新的对应内容」当标题(真机 47/64 行都顶着那句话,读起来像误判)。
|
|
256
|
+
'what.recallRemoved': '撤回移除了 {count} 条(原文见下)',
|
|
251
257
|
'what.noNewRecall': '这条没有新的对应内容(撤回后由后续输入继续)',
|
|
252
258
|
'what.noNewMissing': '这条对应的新内容已不在日志里',
|
|
253
259
|
'what.role.user': '你发送的消息',
|
|
@@ -350,12 +356,6 @@ export const en = {
|
|
|
350
356
|
'marker.regenerate': 'Reply regenerated',
|
|
351
357
|
// Rollback marker (op 'restore'): the surface rewound to that checkpoint.
|
|
352
358
|
'marker.restore': 'Rolled back to this checkpoint',
|
|
353
|
-
/* @public-strip:start */
|
|
354
|
-
'marker.fold': 'Completed block folded ({count} nodes; log intact, expandable)', // neutral-line
|
|
355
|
-
/* @public-strip:end */
|
|
356
|
-
/* @public-strip:start */
|
|
357
|
-
'marker.unfold': 'Expand this folded block', // neutral-line
|
|
358
|
-
/* @public-strip:end */
|
|
359
359
|
'marker.originalLabel': 'Original input',
|
|
360
360
|
'marker.referenceHint': 'Click to expand the original input (reference only, never sent to the model)',
|
|
361
361
|
'marker.degradedHint': 'This operation spans a large part of the conversation; content stays visible to protect your history (the log is intact).',
|
|
@@ -532,6 +532,15 @@ export const en = {
|
|
|
532
532
|
'what.role2.unknown': 'original content',
|
|
533
533
|
'what.nowLabel': 'now: ',
|
|
534
534
|
'what.resentSame': 'resent unchanged; previously: ',
|
|
535
|
+
'title.clean': 'Clean old title prefixes',
|
|
536
|
+
'title.cleanHint': 'Remove the "[lineage ID]" prefix that older versions wrote into session titles. This already runs automatically when the plugin loads; use the button to re-run it (renames titles only — never touches session content)',
|
|
537
|
+
'title.cleanConfirm': 'Remove old prefixes from session titles? This only renames titles and never modifies session content.',
|
|
538
|
+
'title.cleaning': 'Cleaning…',
|
|
539
|
+
'title.cleanDone': 'Scanned {scanned} sessions, cleaned {restored} titles, skipped {skipped} (no prefix)',
|
|
540
|
+
'title.cleanFailedCount': ', {failed} failed',
|
|
541
|
+
'title.cleanPending': '; {pending} session(s) are not loaded — open them and run this again',
|
|
542
|
+
'title.cleanError': 'Clean-up failed: {message}',
|
|
543
|
+
'what.recallRemoved': 'removed {count} message(s) — originals below',
|
|
535
544
|
'what.noNewRecall': 'no new counterpart — later input follows this recall',
|
|
536
545
|
'what.noNewMissing': 'the counterpart for this entry is no longer in the log',
|
|
537
546
|
'what.role.user': 'Message you sent',
|