dsh-aiterm 0.5.1 → 0.5.13
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/CONTRACTS.md +104 -22
- package/README.md +206 -26
- package/client/HistoryPanel.jsx +342 -29
- package/client/api.js +44 -3
- package/client/locale.js +40 -2
- package/cordis.patch.yml +1 -0
- package/lib/client.js +30 -30
- package/lib/host/autolog.js +107 -4
- package/lib/host/config.js +14 -0
- package/lib/host/disclosure.js +357 -0
- package/lib/host/exporter.js +447 -159
- package/lib/host/history-store.js +1735 -295
- package/lib/host/permission.js +13 -0
- package/lib/host/prompt.js +5 -2
- package/lib/host/registry.js +858 -76
- package/lib/host/routes.js +45 -2
- package/lib/host/tools.js +291 -22
- package/lib/index.js +4 -2
- package/package.json +2 -2
- package/scripts/smoke-client.mjs +193 -6
package/client/locale.js
CHANGED
|
@@ -155,6 +155,10 @@ export const zh = {
|
|
|
155
155
|
historySessionsTitle: '历史会话',
|
|
156
156
|
historyLoadingSessions: '正在读取历史会话…',
|
|
157
157
|
historySessionsEmpty: '暂无历史会话',
|
|
158
|
+
historySessionsTruncated: '已显示 {shown} 条(共 {total} 条)。',
|
|
159
|
+
historyLoadMore: '加载更多',
|
|
160
|
+
historyStaleReload: '历史在翻页期间发生变化,已重新加载首页以避免漏项。',
|
|
161
|
+
historySessionsLimitReached: '已到服务端单次来源上限({shown}/{total},历史总数可能高估);请缩小时间范围。',
|
|
158
162
|
historySessionsFailed: '读取历史会话失败:{message}',
|
|
159
163
|
historyOngoing: '进行中',
|
|
160
164
|
historySince: '起始时间',
|
|
@@ -179,15 +183,30 @@ export const zh = {
|
|
|
179
183
|
historyExportOne: '导出当前',
|
|
180
184
|
historyExportAll: '导出全部',
|
|
181
185
|
historyExportHint: '把当前会话的输出导出成文本文件(默认目录 {dir})',
|
|
182
|
-
historyExportAllHint: '
|
|
186
|
+
historyExportAllHint: '把本对话的所有终端(含已关闭)各导出一个文本文件',
|
|
183
187
|
historyExportDone: '已导出 {count} 个文件',
|
|
184
188
|
historyExportEmpty: '没有可导出的内容',
|
|
185
189
|
historyExportWhere: '已写入 {dir}',
|
|
186
190
|
historyExportLines: '{count} 行',
|
|
191
|
+
historyExportSkipped: '有 {count} 个来源缺失或不可读,未导出:{sessions}',
|
|
192
|
+
historyExportSkippedTitle: '已跳过 {count} 个来源',
|
|
193
|
+
historyExportOmitted: '{count} 个 incarnation 未处理({reason},上限 {limit})',
|
|
187
194
|
historyExportFailed: '导出失败:{message}',
|
|
195
|
+
historyLegacyEntry: '旧历史(无归属)',
|
|
196
|
+
historyLegacyBack: '返回本对话历史',
|
|
197
|
+
historyLegacyHint: '升级前的历史文件没有归属信息:只有你能查看,AI 无法访问;查看/导出不会改写或删除旧文件。',
|
|
198
|
+
historyLegacyLoading: '正在读取旧历史…',
|
|
199
|
+
historyLegacyFailed: '读取旧历史失败:{message}',
|
|
188
200
|
historyExportNeedsRestart: '当前 DSH 进程还不支持日志导出:重启 DSH 后可用(客户端已更新,宿主代码需重启加载)。',
|
|
189
201
|
historyAutoLogLabel: '自动把每个会话写进日志文件',
|
|
190
202
|
historyAutoLogOffHint: '默认关闭。开启后每个会话实时追加写入磁盘文件。',
|
|
203
|
+
|
|
204
|
+
historyAutoLogLegacyReview: '旧版本曾开启自动写日志。该开关会记录所有对话的终端输出,升级后默认保持关闭;原设置和目录未被修改。请人工确认:打开开关表示继续启用,点「保持关闭」则明确关闭。',
|
|
205
|
+
historyAutoLogLegacyKeepOff: '保持关闭',
|
|
206
|
+
historyAutoLogLoading: '正在读取自动写日志设置…',
|
|
207
|
+
historyAutoLogLoadFailed: '读取自动写日志设置失败:{message}',
|
|
208
|
+
historyAutoLogLegacyPath: '旧设置目录:{dir}',
|
|
209
|
+
historyAutoLogLegacyEnable: '确认并继续使用该目录',
|
|
191
210
|
historyAutoLogWhere: '正在写入 {dir}',
|
|
192
211
|
historyAutoLogOn: '已开启自动写日志',
|
|
193
212
|
historyAutoLogOff: '已关闭自动写日志',
|
|
@@ -558,6 +577,10 @@ export const en = {
|
|
|
558
577
|
historySessionsTitle: 'History sessions',
|
|
559
578
|
historyLoadingSessions: 'Loading history sessions…',
|
|
560
579
|
historySessionsEmpty: 'No history sessions yet',
|
|
580
|
+
historySessionsTruncated: 'Showing {shown} of {total}.',
|
|
581
|
+
historyLoadMore: 'Load more',
|
|
582
|
+
historyStaleReload: 'History changed while paging; reloaded the first page to avoid skipping entries.',
|
|
583
|
+
historySessionsLimitReached: 'Server source limit reached ({shown}/{total}; legacy total may be overestimated); narrow the time window.',
|
|
561
584
|
historySessionsFailed: 'Could not load history sessions: {message}',
|
|
562
585
|
historyOngoing: 'active',
|
|
563
586
|
historySince: 'Since',
|
|
@@ -582,15 +605,30 @@ export const en = {
|
|
|
582
605
|
historyExportOne: 'Export this',
|
|
583
606
|
historyExportAll: 'Export all',
|
|
584
607
|
historyExportHint: 'Write this session\'s output to a text file (default {dir})',
|
|
585
|
-
historyExportAllHint: 'Write one text file per
|
|
608
|
+
historyExportAllHint: 'Write one text file per terminal owned by this conversation, including closed ones',
|
|
586
609
|
historyExportDone: 'Exported {count} file(s)',
|
|
587
610
|
historyExportEmpty: 'Nothing to export',
|
|
588
611
|
historyExportWhere: 'Written to {dir}',
|
|
589
612
|
historyExportLines: '{count} lines',
|
|
613
|
+
historyExportSkipped: '{count} source(s) were missing/unreadable and not exported: {sessions}',
|
|
614
|
+
historyExportSkippedTitle: 'Skipped {count} source(s)',
|
|
615
|
+
historyExportOmitted: '{count} incarnation(s) not attempted ({reason}, limit {limit})',
|
|
590
616
|
historyExportFailed: 'Export failed: {message}',
|
|
617
|
+
historyLegacyEntry: 'Legacy history (no owner)',
|
|
618
|
+
historyLegacyBack: 'Back to this conversation',
|
|
619
|
+
historyLegacyHint: 'Pre-upgrade files carry no owner. Only you can open them; the AI cannot. Viewing or exporting never rewrites or deletes the old files.',
|
|
620
|
+
historyLegacyLoading: 'Loading legacy history…',
|
|
621
|
+
historyLegacyFailed: 'Could not load legacy history: {message}',
|
|
591
622
|
historyExportNeedsRestart: 'This DSH process cannot export logs yet: restart DSH to load the Host half.',
|
|
592
623
|
historyAutoLogLabel: 'Write every session to a log file',
|
|
593
624
|
historyAutoLogOffHint: 'Off by default. When on, each session appends to a file on disk in real time.',
|
|
625
|
+
|
|
626
|
+
historyAutoLogLegacyReview: 'An older version enabled automatic log files. This switch records every conversation\'s terminal output, so it stays off after upgrade until you confirm; the old setting and directory were not modified. Turn it on to keep using it, or choose Keep off to confirm it stays disabled.',
|
|
627
|
+
historyAutoLogLegacyKeepOff: 'Keep off',
|
|
628
|
+
historyAutoLogLoading: 'Loading automatic log settings…',
|
|
629
|
+
historyAutoLogLoadFailed: 'Could not load automatic log settings: {message}',
|
|
630
|
+
historyAutoLogLegacyPath: 'Old configured directory: {dir}',
|
|
631
|
+
historyAutoLogLegacyEnable: 'Confirm and keep using this directory',
|
|
594
632
|
historyAutoLogWhere: 'Writing to {dir}',
|
|
595
633
|
historyAutoLogOn: 'Auto-log enabled',
|
|
596
634
|
historyAutoLogOff: 'Auto-log disabled',
|