@fbincon/claude-code-statusline 3.10.0 → 3.12.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/README.md +79 -78
- package/candidate.json +325 -221
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.d.ts +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js +7 -3
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor-bootstrap.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor-bootstrap.js +41 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor-bootstrap.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor-worker-entry.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor-worker-entry.js +14 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor-worker-entry.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js +14 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/management/execution-worker-entry.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/execution-worker-entry.js +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/execution-worker-entry.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/execution.d.ts +29 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/execution.js +228 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/execution.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/history.d.ts +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/history.js +150 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/history.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/inspection.d.ts +8 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/inspection.js +164 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/inspection.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/mod-transition.js +2 -2
- package/node_modules/@fbincon/statusline-cli/dist/src/management/mod-transition.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/management/restore.d.ts +14 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/management/restore.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/management/restore.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-jobs.d.ts +16 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-jobs.js +95 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-jobs.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-worker-entry.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-worker-entry.js +33 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-worker-entry.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review.d.ts +5 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review.js +44 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/service.d.ts +6 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/service.js +19 -8
- package/node_modules/@fbincon/statusline-cli/dist/src/management/service.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/management/store.js +6 -6
- package/node_modules/@fbincon/statusline-cli/dist/src/management/store.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js +6 -6
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.js +76 -28
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/bindings.d.ts +17 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/bindings.js +176 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/bindings.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js +11 -3
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.js +26 -8
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js +54 -14
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/tasks/command.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/tasks/command.js +11 -4
- package/node_modules/@fbincon/statusline-cli/dist/src/tasks/command.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/tasks/view.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/tasks/view.js +25 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/tasks/view.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +3 -3
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +59 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/register.ts +92 -59
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +6 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +6 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/package-manager.ts +187 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/package-validation.ts +52 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-manager.ts +53 -41
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-summary.ts +22 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-validation.ts +11 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/task-viewer.ts +319 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +113 -5
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +7 -12392
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/en.ts +2220 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ja.ts +2220 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ko.ts +2220 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-CN.ts +2220 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-HK.ts +2220 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-TW.ts +2220 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +25 -15
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +3 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/hooks/observe.ts +10 -3
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +4 -4
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +169 -5
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/package-manager.d.ts +49 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/package-manager.js +498 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/package-manager.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/package-validation.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/package-validation.js +53 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/package-validation.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.d.ts +9 -3
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js +74 -26
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-summary.d.ts +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-summary.js +25 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-summary.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.d.ts +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js +13 -2
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/task-viewer.d.ts +46 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/task-viewer.js +279 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/task-viewer.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js +15 -3
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +936 -12
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +942 -18
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/management/compatibility.js +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/management/compatibility.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/release.js +1 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +157 -3
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +157 -3
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +157 -3
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +157 -3
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +157 -3
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +157 -3
- package/node_modules/@fbincon/statusline-platform/dist/src/native.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/native.js +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/native.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/npm.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/npm.js +20 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/npm.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/private-state.d.ts +3 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/private-state.js +53 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/private-state.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.js +45 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/review-worker.d.ts +4 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/review-worker.js +22 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/review-worker.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.d.ts +5 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.js +8 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +10 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js +4 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js +4 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/session.d.ts +5 -3
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js +31 -8
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js +24 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/task-viewer.d.ts +6 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/task-viewer.js +34 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/task-viewer.js.map +1 -0
- package/package.json +3 -3
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
"sources.saved": "数据源已保存;更改后需重新审查才能启用。",
|
|
1729
1729
|
"sources.bound": "已绑定到显示草稿;保存显示配置后生效。",
|
|
1730
1730
|
"sources.failed": "数据源操作失败;请检查字段或重新加载当前状态。",
|
|
1731
|
-
"sources.refresh_started": "
|
|
1731
|
+
"sources.refresh_started": "刷新已开始。状态页显示进度;关闭仅释放本视图。",
|
|
1732
1732
|
"sources.form_help": "Tab/Enter:下一字段 · Ctrl+S:保存为停用状态",
|
|
1733
1733
|
"sources.no_components": "请先在主状态栏或子代理页添加外部组件。",
|
|
1734
1734
|
"sources.remove_confirm": "Enter 删除此本地数据源及其绑定:",
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
"sources.auto-off": "关闭自动刷新",
|
|
1859
1859
|
"sources.automatic_on": "自动刷新:开",
|
|
1860
1860
|
"sources.automatic_off": "自动刷新:关",
|
|
1861
|
-
"sources.automatic_review": "
|
|
1861
|
+
"sources.automatic_review": "审核适用活跃会话内的定时执行。Enter 保存当前修订和间隔;←/→ 调整秒数。执行与自动许可分别授权。",
|
|
1862
1862
|
"sources.interval": "刷新间隔",
|
|
1863
1863
|
"sources.automatic_saved": "自动策略已保存。若运行时 Mod 尚未安装或配置,请应用宿主集成并重启会话。",
|
|
1864
1864
|
"items.main.session-cost-rate.label": "会话费用速率",
|
|
@@ -2061,5 +2061,159 @@
|
|
|
2061
2061
|
"settings.preview-scenario": "样例场景(仅界面)",
|
|
2062
2062
|
"settings.preview-width": "预览宽度(仅界面)",
|
|
2063
2063
|
"settings.diagnose-file": "诊断输入文件",
|
|
2064
|
-
"groups.preview": "样例预览"
|
|
2064
|
+
"groups.preview": "样例预览",
|
|
2065
|
+
"task.viewer.read_failed": "任务刷新失败;保留上次成功报告。",
|
|
2066
|
+
"task.viewer.context": "父级上下文",
|
|
2067
|
+
"task.viewer.no_matches": "没有匹配的代理",
|
|
2068
|
+
"task.viewer.current": "当前任务(已发布指针)",
|
|
2069
|
+
"task.viewer.identity_help": "Tab:会话/任务 · Enter:读取 · Esc:取消",
|
|
2070
|
+
"task.viewer.filter": "状态:{status} · 搜索:{query}",
|
|
2071
|
+
"task.viewer.all": "全部",
|
|
2072
|
+
"task.viewer.keys": "搜索/过滤/证据/身份/折叠",
|
|
2073
|
+
"task.viewer.help": "R 刷新 · Q/Esc 关闭 · ↑↓ 选择 · PgUp/PgDn 翻页",
|
|
2074
|
+
"task.viewer.help_read": "/ 搜索 · F 状态 · E 证据 · S 身份 · ←→ 折叠",
|
|
2075
|
+
"task.viewer.terminal": "任务查看器需要交互终端。文本或 JSON 请使用 task show --session-id ID。",
|
|
2076
|
+
"settings.task-details": "任务详情",
|
|
2077
|
+
"ui.actions.task-details": "打开只读任务查看器",
|
|
2078
|
+
"package.ui.title": "版本与安装",
|
|
2079
|
+
"package.ui.readonly": "仅审核 · 使用已保存配置 · 保留草稿",
|
|
2080
|
+
"package.ui.prefix": "安装前缀:{value}",
|
|
2081
|
+
"package.ui.target": "目标版本:{value}",
|
|
2082
|
+
"package.ui.default_target": "渠道 / 前次版本",
|
|
2083
|
+
"package.ui.channel": "渠道:{value}",
|
|
2084
|
+
"package.ui.inherit": "沿用安装渠道",
|
|
2085
|
+
"package.ui.check": "检查版本元数据(联网)",
|
|
2086
|
+
"package.ui.update": "下载并验证升级审核",
|
|
2087
|
+
"package.ui.rollback": "审核软件包回退",
|
|
2088
|
+
"package.ui.recover-package": "审核未完成包事务恢复",
|
|
2089
|
+
"package.ui.current": "已装版本:{value}",
|
|
2090
|
+
"package.ui.entry": "入口:{value}",
|
|
2091
|
+
"package.ui.config": "配置目录:{value}",
|
|
2092
|
+
"package.ui.previous": "前次成功版本:{value}",
|
|
2093
|
+
"package.ui.pending": "未完成:{id} · {stage} · {running}",
|
|
2094
|
+
"package.ui.backup_verified": "备份已验证 · Enter:审核还原",
|
|
2095
|
+
"package.ui.backup_missing": "无配置备份",
|
|
2096
|
+
"package.ui.backup_invalid": "备份不可用或无效",
|
|
2097
|
+
"package.ui.previous_page": "Enter:上一页记录",
|
|
2098
|
+
"package.ui.next_page": "Enter:下一页记录",
|
|
2099
|
+
"package.ui.job": "审核 {id} · {state}",
|
|
2100
|
+
"package.ui.state_running": "运行中;R 查询进度",
|
|
2101
|
+
"package.ui.state_complete": "审核完成",
|
|
2102
|
+
"package.ui.state_failed": "审核失败",
|
|
2103
|
+
"package.ui.state_cancelled": "审核已取消",
|
|
2104
|
+
"package.ui.verified": "产物已验证 · 实际安装未改变",
|
|
2105
|
+
"package.ui.unverified": "产物未验证 · 仅元数据",
|
|
2106
|
+
"package.ui.restore_review": "仅配置还原审核;未还原任何文件。",
|
|
2107
|
+
"package.ui.changed": "安装或已保存配置已变化;请重新审核。",
|
|
2108
|
+
"package.ui.help": "Enter 审核 · R 进度 · L 重读本地 · C 取消 · Q 返回",
|
|
2109
|
+
"settings.package-management": "版本与安装",
|
|
2110
|
+
"ui.actions.package-management": "查看安装状态并审核变更",
|
|
2111
|
+
"package.ui.stage_reviewed": "已审核",
|
|
2112
|
+
"package.ui.stage_installing": "安装中",
|
|
2113
|
+
"package.ui.stage_package_verified": "软件包已验证",
|
|
2114
|
+
"package.ui.stage_integrating": "接入中",
|
|
2115
|
+
"package.ui.stage_complete": "完成",
|
|
2116
|
+
"package.ui.stage_uncertain": "结果未知",
|
|
2117
|
+
"package.ui.stage_invalid": "无效记录",
|
|
2118
|
+
"groups.inspection": "查看与审核",
|
|
2119
|
+
"package.ui.cancel_requested": "已请求取消;R 查询执行器是否已停止。",
|
|
2120
|
+
"sources.summary_state": "自动:{state} · {reason}",
|
|
2121
|
+
"sources.summary_scope": "项目 {project} · 会话 {session} · 代理 {agent}",
|
|
2122
|
+
"sources.summary_value": "值:{value} · {state} · {freshness}",
|
|
2123
|
+
"sources.summary_reason": "观测:{reason}",
|
|
2124
|
+
"sources.summary_success": "上次成功:{value}",
|
|
2125
|
+
"sources.summary_next": "下次:{value} · 间隔 {interval} 秒",
|
|
2126
|
+
"sources.summary_job": "任务 {id}:{state} · {reason}",
|
|
2127
|
+
"sources.summary_result": "结束于 {time} · {duration} 毫秒 · 退出码 {code}",
|
|
2128
|
+
"sources.checks": "已保存的 GitHub 检查",
|
|
2129
|
+
"sources.raw": "高级 JSON 详情",
|
|
2130
|
+
"sources.checks_help": "已保存检查 · ←/→ 翻页 · 不查询网络",
|
|
2131
|
+
"sources.bindings": "审核绑定使用情况与清理",
|
|
2132
|
+
"sources.bindings_help": "←/→ 翻页 · Enter 审核删除未使用绑定",
|
|
2133
|
+
"sources.bindings_uncertain": "部分引用无法核实;已阻止删除。",
|
|
2134
|
+
"sources.binding_unused": "未使用",
|
|
2135
|
+
"sources.binding_protected": "被引用/受保护",
|
|
2136
|
+
"sources.binding_duplicate": "同来源重复绑定",
|
|
2137
|
+
"sources.binding_cleanup_confirm": "Enter 仅删除此已审核的未使用绑定;Esc 保留。",
|
|
2138
|
+
"sources.error.referenced": "绑定被引用,或无法确认归属",
|
|
2139
|
+
"sources.reason.off": "关闭",
|
|
2140
|
+
"sources.reason.waiting": "等待",
|
|
2141
|
+
"sources.reason.running": "运行中",
|
|
2142
|
+
"sources.reason.backoff": "退避重试",
|
|
2143
|
+
"sources.reason.paused": "暂停",
|
|
2144
|
+
"sources.reason.valid": "有效",
|
|
2145
|
+
"sources.reason.partial": "部分",
|
|
2146
|
+
"sources.reason.error": "错误",
|
|
2147
|
+
"sources.reason.unsupported": "不支持",
|
|
2148
|
+
"sources.reason.missing": "缺失",
|
|
2149
|
+
"sources.reason.disabled": "停用",
|
|
2150
|
+
"sources.reason.unbound": "未绑定",
|
|
2151
|
+
"sources.reason.mismatch": "身份不匹配",
|
|
2152
|
+
"sources.reason.current": "当前",
|
|
2153
|
+
"sources.reason.stale": "陈旧",
|
|
2154
|
+
"sources.reason.unknown": "未知",
|
|
2155
|
+
"sources.reason.completed": "已完成",
|
|
2156
|
+
"sources.reason.failed": "失败",
|
|
2157
|
+
"sources.reason.cancelled": "已取消",
|
|
2158
|
+
"sources.reason.scheduled": "已安排",
|
|
2159
|
+
"sources.reason.no_session": "没有适用活跃会话",
|
|
2160
|
+
"sources.reason.retry": "等待重试",
|
|
2161
|
+
"sources.reason.lease_expired": "会话租约已过期",
|
|
2162
|
+
"sources.reason.no_consumers": "没有剩余使用者",
|
|
2163
|
+
"sources.reason.not_refreshed": "尚未刷新",
|
|
2164
|
+
"sources.reason.no_checks": "未观测到检查",
|
|
2165
|
+
"sources.reason.no_pr": "没有拉取请求",
|
|
2166
|
+
"sources.reason.exit": "非零退出",
|
|
2167
|
+
"sources.reason.io_error": "读写错误",
|
|
2168
|
+
"sources.reason.unknown_checks": "检查结果未知",
|
|
2169
|
+
"sources.reason.check_details_truncated": "有界检查详情不完整",
|
|
2170
|
+
"sources.check.pass": "已完成",
|
|
2171
|
+
"sources.check.fail": "失败",
|
|
2172
|
+
"sources.check.pending": "等待",
|
|
2173
|
+
"sources.check.cancel": "已取消",
|
|
2174
|
+
"sources.check.skipping": "已跳过",
|
|
2175
|
+
"sources.check.unknown": "未知",
|
|
2176
|
+
"package.ui.local_notice": "本机状态 · 联网和修改均需明确操作",
|
|
2177
|
+
"package.ui.draft_required": "执行前处理未保存草稿;保存结果未知时须先核对。",
|
|
2178
|
+
"package.ui.draft_save": "保存草稿,然后重新审核",
|
|
2179
|
+
"package.ui.draft_export": "执行前导出草稿",
|
|
2180
|
+
"package.ui.draft_discard": "放弃草稿,然后确认执行",
|
|
2181
|
+
"package.ui.draft_cancel": "取消执行并保留草稿",
|
|
2182
|
+
"package.ui.draft_reconcile": "核对未知的保存结果",
|
|
2183
|
+
"package.ui.execute_notice": "执行将替换软件包或还原已审核配置。此编辑器将变为只读;关闭仅脱离视图。",
|
|
2184
|
+
"package.ui.execute_confirm": "Enter:确认执行本次审核结果",
|
|
2185
|
+
"package.ui.execute": "执行已验证的审核结果",
|
|
2186
|
+
"package.ui.review_again": "草稿已保存。请重载本机状态并重新验证审核。",
|
|
2187
|
+
"package.ui.exported": "草稿已导出;此编辑器中的草稿仍未保存。",
|
|
2188
|
+
"package.ui.editor_locked": "已交接包事务。此编辑器只读;可查看进度或关闭。",
|
|
2189
|
+
"package.ui.export_path": "导出路径:{value}",
|
|
2190
|
+
"package.ui.cleanup_review": "审核保留历史清理",
|
|
2191
|
+
"package.ui.cleanup_notice": "只能选择已完成、无引用且归属明确的记录。",
|
|
2192
|
+
"package.ui.cleanup_uncertain": "无法确认历史归属或引用;已阻止清理。",
|
|
2193
|
+
"package.ui.cleanup_confirm": "Enter 永久删除此已审核记录及其保留材料;Esc 保留。",
|
|
2194
|
+
"package.ui.cleanup_unused": "已完成/无引用",
|
|
2195
|
+
"package.ui.cleanup_protected": "受保护",
|
|
2196
|
+
"package.ui.cleaned": "所选历史记录已删除。",
|
|
2197
|
+
"package.ui.execution": "事务 {id} · {state} · {stage}",
|
|
2198
|
+
"package.ui.execution_results": "软件包 {package} · 集成 {integration} · 配置 {configuration}",
|
|
2199
|
+
"package.ui.result_done": "已验证/完成",
|
|
2200
|
+
"package.ui.result_pending": "未确认",
|
|
2201
|
+
"package.ui.reopen": "已完成。请重新打开外部编辑器或重启 Claude,以加载匹配资源。",
|
|
2202
|
+
"package.ui.stage_queued": "等待启动",
|
|
2203
|
+
"package.ui.stage_reviewing": "重新核对审核",
|
|
2204
|
+
"package.ui.state_interrupted": "已中断;恢复前检查",
|
|
2205
|
+
"package.ui.protect_current": "当前安装恢复材料",
|
|
2206
|
+
"package.ui.protect_previous": "上一版本回退材料",
|
|
2207
|
+
"package.ui.protect_pending": "未完成事务",
|
|
2208
|
+
"package.ui.protect_running": "执行器仍运行或未确认",
|
|
2209
|
+
"package.ui.protect_attached": "编辑器仍持有恢复入口",
|
|
2210
|
+
"package.ui.protect_uncertain": "归属或引用未知",
|
|
2211
|
+
"package.ui.execution_state_running": "运行中;R 查看进度",
|
|
2212
|
+
"package.ui.execution_state_complete": "执行完成",
|
|
2213
|
+
"package.ui.execution_state_failed": "执行失败",
|
|
2214
|
+
"package.ui.execution_state_interrupted": "执行中断",
|
|
2215
|
+
"package.ui.result_na": "不适用",
|
|
2216
|
+
"sources.scope_all": "任意/共享",
|
|
2217
|
+
"package.ui.control": "保留管理入口:{executable} · {entry}",
|
|
2218
|
+
"package.ui.control_help": "保留此入口;降级后使用 Node 打开,并传入 configure --config-dir {directory},即可重新查看。"
|
|
2065
2219
|
}
|
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
"sources.saved": "資料來源已儲存;變更後須重新檢視才能啟用。",
|
|
1729
1729
|
"sources.bound": "已綁定至顯示草稿;儲存顯示設定後生效。",
|
|
1730
1730
|
"sources.failed": "資料來源操作失敗;請檢查欄位或重新載入目前狀態。",
|
|
1731
|
-
"sources.refresh_started": "
|
|
1731
|
+
"sources.refresh_started": "重新整理已開始。狀態頁顯示進度;關閉僅釋放本檢視。",
|
|
1732
1732
|
"sources.form_help": "Tab/Enter:下一欄位 · Ctrl+S:儲存為停用狀態",
|
|
1733
1733
|
"sources.no_components": "請先在主狀態列或子代理頁新增外部元件。",
|
|
1734
1734
|
"sources.remove_confirm": "Enter 刪除此本機資料來源與綁定:",
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
"sources.auto-off": "關閉自動重新整理",
|
|
1859
1859
|
"sources.automatic_on": "自動重新整理:開",
|
|
1860
1860
|
"sources.automatic_off": "自動重新整理:關",
|
|
1861
|
-
"sources.automatic_review": "
|
|
1861
|
+
"sources.automatic_review": "審核適用活躍工作階段內的定時執行。Enter 儲存目前修訂和間隔;←/→ 調整秒數。執行與自動許可分別授權。",
|
|
1862
1862
|
"sources.interval": "重新整理間隔",
|
|
1863
1863
|
"sources.automatic_saved": "自動策略已儲存。若執行時 Mod 尚未安裝或設定,請套用主機整合並重新啟動工作階段。",
|
|
1864
1864
|
"items.main.session-cost-rate.label": "會話費用速率",
|
|
@@ -2061,5 +2061,159 @@
|
|
|
2061
2061
|
"settings.preview-scenario": "範例情境(僅介面)",
|
|
2062
2062
|
"settings.preview-width": "預覽寬度(僅介面)",
|
|
2063
2063
|
"settings.diagnose-file": "診斷輸入檔案",
|
|
2064
|
-
"groups.preview": "範例預覽"
|
|
2064
|
+
"groups.preview": "範例預覽",
|
|
2065
|
+
"task.viewer.read_failed": "工作重新整理失敗;保留上次成功報告。",
|
|
2066
|
+
"task.viewer.context": "父層脈絡",
|
|
2067
|
+
"task.viewer.no_matches": "沒有符合的代理",
|
|
2068
|
+
"task.viewer.current": "目前工作(已發佈指標)",
|
|
2069
|
+
"task.viewer.identity_help": "Tab:工作階段/工作 · Enter:讀取 · Esc:取消",
|
|
2070
|
+
"task.viewer.filter": "狀態:{status} · 搜尋:{query}",
|
|
2071
|
+
"task.viewer.all": "全部",
|
|
2072
|
+
"task.viewer.keys": "搜尋/篩選/證據/身分/摺疊",
|
|
2073
|
+
"task.viewer.help": "R 重新整理 · Q/Esc 關閉 · ↑↓ 選取 · PgUp/PgDn 翻頁",
|
|
2074
|
+
"task.viewer.help_read": "/ 搜尋 · F 狀態 · E 證據 · S 身分 · ←→ 摺疊",
|
|
2075
|
+
"task.viewer.terminal": "工作檢視器需要互動終端。文字或 JSON 請使用 task show --session-id ID。",
|
|
2076
|
+
"settings.task-details": "工作詳情",
|
|
2077
|
+
"ui.actions.task-details": "開啟唯讀工作檢視器",
|
|
2078
|
+
"package.ui.title": "版本與安裝",
|
|
2079
|
+
"package.ui.readonly": "僅審核 · 使用已儲存設定 · 保留草稿",
|
|
2080
|
+
"package.ui.prefix": "安裝前綴:{value}",
|
|
2081
|
+
"package.ui.target": "目標版本:{value}",
|
|
2082
|
+
"package.ui.default_target": "渠道 / 前次版本",
|
|
2083
|
+
"package.ui.channel": "渠道:{value}",
|
|
2084
|
+
"package.ui.inherit": "沿用安裝渠道",
|
|
2085
|
+
"package.ui.check": "檢查版本中繼資料(連網)",
|
|
2086
|
+
"package.ui.update": "下載並驗證升級審核",
|
|
2087
|
+
"package.ui.rollback": "審核套件回退",
|
|
2088
|
+
"package.ui.recover-package": "審核未完成套件交易復原",
|
|
2089
|
+
"package.ui.current": "已裝版本:{value}",
|
|
2090
|
+
"package.ui.entry": "入口:{value}",
|
|
2091
|
+
"package.ui.config": "設定目錄:{value}",
|
|
2092
|
+
"package.ui.previous": "前次成功版本:{value}",
|
|
2093
|
+
"package.ui.pending": "未完成:{id} · {stage} · {running}",
|
|
2094
|
+
"package.ui.backup_verified": "備份已驗證 · Enter:審核還原",
|
|
2095
|
+
"package.ui.backup_missing": "無設定備份",
|
|
2096
|
+
"package.ui.backup_invalid": "備份無法使用或無效",
|
|
2097
|
+
"package.ui.previous_page": "Enter:上一頁記錄",
|
|
2098
|
+
"package.ui.next_page": "Enter:下一頁記錄",
|
|
2099
|
+
"package.ui.job": "審核 {id} · {state}",
|
|
2100
|
+
"package.ui.state_running": "執行中;R 查詢進度",
|
|
2101
|
+
"package.ui.state_complete": "審核完成",
|
|
2102
|
+
"package.ui.state_failed": "審核失敗",
|
|
2103
|
+
"package.ui.state_cancelled": "審核已取消",
|
|
2104
|
+
"package.ui.verified": "產物已驗證 · 實際安裝未改變",
|
|
2105
|
+
"package.ui.unverified": "產物未驗證 · 僅中繼資料",
|
|
2106
|
+
"package.ui.restore_review": "僅設定還原審核;未還原任何檔案。",
|
|
2107
|
+
"package.ui.changed": "安裝或已儲存設定已變更;請重新審核。",
|
|
2108
|
+
"package.ui.help": "Enter 審核 · R 進度 · L 重讀本機 · C 取消 · Q 返回",
|
|
2109
|
+
"settings.package-management": "版本與安裝",
|
|
2110
|
+
"ui.actions.package-management": "查看安裝狀態並審核變更",
|
|
2111
|
+
"package.ui.stage_reviewed": "已審核",
|
|
2112
|
+
"package.ui.stage_installing": "安裝中",
|
|
2113
|
+
"package.ui.stage_package_verified": "套件已驗證",
|
|
2114
|
+
"package.ui.stage_integrating": "整合中",
|
|
2115
|
+
"package.ui.stage_complete": "完成",
|
|
2116
|
+
"package.ui.stage_uncertain": "結果未知",
|
|
2117
|
+
"package.ui.stage_invalid": "無效記錄",
|
|
2118
|
+
"groups.inspection": "檢視與審核",
|
|
2119
|
+
"package.ui.cancel_requested": "已要求取消;R 查詢執行器是否已停止。",
|
|
2120
|
+
"sources.summary_state": "自動:{state} · {reason}",
|
|
2121
|
+
"sources.summary_scope": "專案 {project} · 工作階段 {session} · 代理 {agent}",
|
|
2122
|
+
"sources.summary_value": "值:{value} · {state} · {freshness}",
|
|
2123
|
+
"sources.summary_reason": "觀測:{reason}",
|
|
2124
|
+
"sources.summary_success": "上次成功:{value}",
|
|
2125
|
+
"sources.summary_next": "下次:{value} · 間隔 {interval} 秒",
|
|
2126
|
+
"sources.summary_job": "工作 {id}:{state} · {reason}",
|
|
2127
|
+
"sources.summary_result": "結束於 {time} · {duration} 毫秒 · 結束碼 {code}",
|
|
2128
|
+
"sources.checks": "已儲存的 GitHub 檢查",
|
|
2129
|
+
"sources.raw": "進階 JSON 詳細資料",
|
|
2130
|
+
"sources.checks_help": "已儲存檢查 · ←/→ 換頁 · 不查詢網絡",
|
|
2131
|
+
"sources.bindings": "審核綁定使用情況與清理",
|
|
2132
|
+
"sources.bindings_help": "←/→ 換頁 · Enter 審核刪除未使用綁定",
|
|
2133
|
+
"sources.bindings_uncertain": "部分引用無法核實;已阻止刪除。",
|
|
2134
|
+
"sources.binding_unused": "未使用",
|
|
2135
|
+
"sources.binding_protected": "被引用/受保護",
|
|
2136
|
+
"sources.binding_duplicate": "同來源重複綁定",
|
|
2137
|
+
"sources.binding_cleanup_confirm": "Enter 僅刪除此已審核的未使用綁定;Esc 保留。",
|
|
2138
|
+
"sources.error.referenced": "綁定被引用,或無法確認歸屬",
|
|
2139
|
+
"sources.reason.off": "關閉",
|
|
2140
|
+
"sources.reason.waiting": "等待",
|
|
2141
|
+
"sources.reason.running": "執行中",
|
|
2142
|
+
"sources.reason.backoff": "退避重試",
|
|
2143
|
+
"sources.reason.paused": "暫停",
|
|
2144
|
+
"sources.reason.valid": "有效",
|
|
2145
|
+
"sources.reason.partial": "部分",
|
|
2146
|
+
"sources.reason.error": "錯誤",
|
|
2147
|
+
"sources.reason.unsupported": "不支援",
|
|
2148
|
+
"sources.reason.missing": "缺少",
|
|
2149
|
+
"sources.reason.disabled": "停用",
|
|
2150
|
+
"sources.reason.unbound": "未綁定",
|
|
2151
|
+
"sources.reason.mismatch": "身分不符",
|
|
2152
|
+
"sources.reason.current": "目前",
|
|
2153
|
+
"sources.reason.stale": "過期",
|
|
2154
|
+
"sources.reason.unknown": "未知",
|
|
2155
|
+
"sources.reason.completed": "已完成",
|
|
2156
|
+
"sources.reason.failed": "失敗",
|
|
2157
|
+
"sources.reason.cancelled": "已取消",
|
|
2158
|
+
"sources.reason.scheduled": "已排程",
|
|
2159
|
+
"sources.reason.no_session": "沒有適用活躍工作階段",
|
|
2160
|
+
"sources.reason.retry": "等待重試",
|
|
2161
|
+
"sources.reason.lease_expired": "工作階段租約已過期",
|
|
2162
|
+
"sources.reason.no_consumers": "沒有剩餘使用者",
|
|
2163
|
+
"sources.reason.not_refreshed": "尚未重新整理",
|
|
2164
|
+
"sources.reason.no_checks": "未觀測到檢查",
|
|
2165
|
+
"sources.reason.no_pr": "沒有提取要求",
|
|
2166
|
+
"sources.reason.exit": "非零結束",
|
|
2167
|
+
"sources.reason.io_error": "讀寫錯誤",
|
|
2168
|
+
"sources.reason.unknown_checks": "檢查結果未知",
|
|
2169
|
+
"sources.reason.check_details_truncated": "有界檢查詳細資料不完整",
|
|
2170
|
+
"sources.check.pass": "已完成",
|
|
2171
|
+
"sources.check.fail": "失敗",
|
|
2172
|
+
"sources.check.pending": "等待",
|
|
2173
|
+
"sources.check.cancel": "已取消",
|
|
2174
|
+
"sources.check.skipping": "已略過",
|
|
2175
|
+
"sources.check.unknown": "未知",
|
|
2176
|
+
"package.ui.local_notice": "本機狀態 · 連線和修改均需明確操作",
|
|
2177
|
+
"package.ui.draft_required": "執行前處理未儲存草稿;儲存結果未知時須先核對。",
|
|
2178
|
+
"package.ui.draft_save": "儲存草稿,然後重新審核",
|
|
2179
|
+
"package.ui.draft_export": "執行前匯出草稿",
|
|
2180
|
+
"package.ui.draft_discard": "放棄草稿,然後確認執行",
|
|
2181
|
+
"package.ui.draft_cancel": "取消執行並保留草稿",
|
|
2182
|
+
"package.ui.draft_reconcile": "核對未知的儲存結果",
|
|
2183
|
+
"package.ui.execute_notice": "執行將替換套件或還原已審核設定。此編輯器將變為唯讀;關閉僅脫離檢視。",
|
|
2184
|
+
"package.ui.execute_confirm": "Enter:確認執行本次審核結果",
|
|
2185
|
+
"package.ui.execute": "執行已驗證的審核結果",
|
|
2186
|
+
"package.ui.review_again": "草稿已儲存。請重新載入本機狀態並重新驗證審核。",
|
|
2187
|
+
"package.ui.exported": "草稿已匯出;此編輯器中的草稿仍未儲存。",
|
|
2188
|
+
"package.ui.editor_locked": "已交接套件交易。此編輯器唯讀;可查看進度或關閉。",
|
|
2189
|
+
"package.ui.export_path": "匯出路徑:{value}",
|
|
2190
|
+
"package.ui.cleanup_review": "審核保留歷史清理",
|
|
2191
|
+
"package.ui.cleanup_notice": "只能選擇已完成、無引用且歸屬明確的記錄。",
|
|
2192
|
+
"package.ui.cleanup_uncertain": "無法確認歷史歸屬或引用;已阻止清理。",
|
|
2193
|
+
"package.ui.cleanup_confirm": "Enter 永久刪除此已審核記錄及其保留材料;Esc 保留。",
|
|
2194
|
+
"package.ui.cleanup_unused": "已完成/無引用",
|
|
2195
|
+
"package.ui.cleanup_protected": "受保護",
|
|
2196
|
+
"package.ui.cleaned": "所選歷史記錄已刪除。",
|
|
2197
|
+
"package.ui.execution": "交易 {id} · {state} · {stage}",
|
|
2198
|
+
"package.ui.execution_results": "套件 {package} · 整合 {integration} · 設定 {configuration}",
|
|
2199
|
+
"package.ui.result_done": "已驗證/完成",
|
|
2200
|
+
"package.ui.result_pending": "未確認",
|
|
2201
|
+
"package.ui.reopen": "已完成。請重新開啟外部編輯器或重新啟動 Claude,以載入相符資源。",
|
|
2202
|
+
"package.ui.stage_queued": "等待啟動",
|
|
2203
|
+
"package.ui.stage_reviewing": "重新核對審核",
|
|
2204
|
+
"package.ui.state_interrupted": "已中斷;復原前檢查",
|
|
2205
|
+
"package.ui.protect_current": "目前安裝復原材料",
|
|
2206
|
+
"package.ui.protect_previous": "上一版本回復材料",
|
|
2207
|
+
"package.ui.protect_pending": "未完成交易",
|
|
2208
|
+
"package.ui.protect_running": "執行器仍執行或未確認",
|
|
2209
|
+
"package.ui.protect_attached": "編輯器仍持有復原入口",
|
|
2210
|
+
"package.ui.protect_uncertain": "歸屬或引用未知",
|
|
2211
|
+
"package.ui.execution_state_running": "執行中;R 查看進度",
|
|
2212
|
+
"package.ui.execution_state_complete": "執行完成",
|
|
2213
|
+
"package.ui.execution_state_failed": "執行失敗",
|
|
2214
|
+
"package.ui.execution_state_interrupted": "執行中斷",
|
|
2215
|
+
"package.ui.result_na": "不適用",
|
|
2216
|
+
"sources.scope_all": "任意/共用",
|
|
2217
|
+
"package.ui.control": "保留管理入口:{executable} · {entry}",
|
|
2218
|
+
"package.ui.control_help": "保留此入口;降級後使用 Node 開啟,並傳入 configure --config-dir {directory},即可重新查看。"
|
|
2065
2219
|
}
|
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
"sources.saved": "資料來源已儲存;變更後須重新檢視才能啟用。",
|
|
1729
1729
|
"sources.bound": "已綁定至顯示草稿;儲存顯示設定後生效。",
|
|
1730
1730
|
"sources.failed": "資料來源操作失敗;請檢查欄位或重新載入目前狀態。",
|
|
1731
|
-
"sources.refresh_started": "
|
|
1731
|
+
"sources.refresh_started": "重新整理已開始。狀態頁顯示進度;關閉僅釋放本檢視。",
|
|
1732
1732
|
"sources.form_help": "Tab/Enter:下一欄位 · Ctrl+S:儲存為停用狀態",
|
|
1733
1733
|
"sources.no_components": "請先在主狀態列或子代理頁新增外部元件。",
|
|
1734
1734
|
"sources.remove_confirm": "Enter 刪除此本機資料來源與綁定:",
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
"sources.auto-off": "關閉自動重新整理",
|
|
1859
1859
|
"sources.automatic_on": "自動重新整理:開",
|
|
1860
1860
|
"sources.automatic_off": "自動重新整理:關",
|
|
1861
|
-
"sources.automatic_review": "
|
|
1861
|
+
"sources.automatic_review": "審核適用活躍工作階段內的定時執行。Enter 儲存目前修訂和間隔;←/→ 調整秒數。執行與自動許可分別授權。",
|
|
1862
1862
|
"sources.interval": "重新整理間隔",
|
|
1863
1863
|
"sources.automatic_saved": "自動策略已儲存。若執行時 Mod 尚未安裝或設定,請套用主機整合並重新啟動工作階段。",
|
|
1864
1864
|
"items.main.session-cost-rate.label": "會話費用速率",
|
|
@@ -2061,5 +2061,159 @@
|
|
|
2061
2061
|
"settings.preview-scenario": "範例情境(僅介面)",
|
|
2062
2062
|
"settings.preview-width": "預覽寬度(僅介面)",
|
|
2063
2063
|
"settings.diagnose-file": "診斷輸入檔案",
|
|
2064
|
-
"groups.preview": "範例預覽"
|
|
2064
|
+
"groups.preview": "範例預覽",
|
|
2065
|
+
"task.viewer.read_failed": "工作重新整理失敗;保留上次成功報告。",
|
|
2066
|
+
"task.viewer.context": "父層脈絡",
|
|
2067
|
+
"task.viewer.no_matches": "沒有符合的代理",
|
|
2068
|
+
"task.viewer.current": "目前工作(已發布指標)",
|
|
2069
|
+
"task.viewer.identity_help": "Tab:工作階段/工作 · Enter:讀取 · Esc:取消",
|
|
2070
|
+
"task.viewer.filter": "狀態:{status} · 搜尋:{query}",
|
|
2071
|
+
"task.viewer.all": "全部",
|
|
2072
|
+
"task.viewer.keys": "搜尋/篩選/證據/身分/摺疊",
|
|
2073
|
+
"task.viewer.help": "R 重新整理 · Q/Esc 關閉 · ↑↓ 選取 · PgUp/PgDn 翻頁",
|
|
2074
|
+
"task.viewer.help_read": "/ 搜尋 · F 狀態 · E 證據 · S 身分 · ←→ 摺疊",
|
|
2075
|
+
"task.viewer.terminal": "工作檢視器需要互動終端。文字或 JSON 請使用 task show --session-id ID。",
|
|
2076
|
+
"settings.task-details": "工作詳情",
|
|
2077
|
+
"ui.actions.task-details": "開啟唯讀工作檢視器",
|
|
2078
|
+
"package.ui.title": "版本與安裝",
|
|
2079
|
+
"package.ui.readonly": "僅審核 · 使用已儲存設定 · 保留草稿",
|
|
2080
|
+
"package.ui.prefix": "安裝前綴:{value}",
|
|
2081
|
+
"package.ui.target": "目標版本:{value}",
|
|
2082
|
+
"package.ui.default_target": "通道 / 前次版本",
|
|
2083
|
+
"package.ui.channel": "通道:{value}",
|
|
2084
|
+
"package.ui.inherit": "沿用安裝通道",
|
|
2085
|
+
"package.ui.check": "檢查版本中繼資料(連網)",
|
|
2086
|
+
"package.ui.update": "下載並驗證升級審核",
|
|
2087
|
+
"package.ui.rollback": "審核套件回復",
|
|
2088
|
+
"package.ui.recover-package": "審核未完成套件交易復原",
|
|
2089
|
+
"package.ui.current": "已裝版本:{value}",
|
|
2090
|
+
"package.ui.entry": "入口:{value}",
|
|
2091
|
+
"package.ui.config": "設定目錄:{value}",
|
|
2092
|
+
"package.ui.previous": "前次成功版本:{value}",
|
|
2093
|
+
"package.ui.pending": "未完成:{id} · {stage} · {running}",
|
|
2094
|
+
"package.ui.backup_verified": "備份已驗證 · Enter:審核還原",
|
|
2095
|
+
"package.ui.backup_missing": "無設定備份",
|
|
2096
|
+
"package.ui.backup_invalid": "備份無法使用或無效",
|
|
2097
|
+
"package.ui.previous_page": "Enter:上一頁記錄",
|
|
2098
|
+
"package.ui.next_page": "Enter:下一頁記錄",
|
|
2099
|
+
"package.ui.job": "審核 {id} · {state}",
|
|
2100
|
+
"package.ui.state_running": "執行中;R 查詢進度",
|
|
2101
|
+
"package.ui.state_complete": "審核完成",
|
|
2102
|
+
"package.ui.state_failed": "審核失敗",
|
|
2103
|
+
"package.ui.state_cancelled": "審核已取消",
|
|
2104
|
+
"package.ui.verified": "產物已驗證 · 實際安裝未改變",
|
|
2105
|
+
"package.ui.unverified": "產物未驗證 · 僅中繼資料",
|
|
2106
|
+
"package.ui.restore_review": "僅設定還原審核;未還原任何檔案。",
|
|
2107
|
+
"package.ui.changed": "安裝或已儲存設定已變更;請重新審核。",
|
|
2108
|
+
"package.ui.help": "Enter 審核 · R 進度 · L 重讀本機 · C 取消 · Q 返回",
|
|
2109
|
+
"settings.package-management": "版本與安裝",
|
|
2110
|
+
"ui.actions.package-management": "查看安裝狀態並審核變更",
|
|
2111
|
+
"package.ui.stage_reviewed": "已審核",
|
|
2112
|
+
"package.ui.stage_installing": "安裝中",
|
|
2113
|
+
"package.ui.stage_package_verified": "套件已驗證",
|
|
2114
|
+
"package.ui.stage_integrating": "整合中",
|
|
2115
|
+
"package.ui.stage_complete": "完成",
|
|
2116
|
+
"package.ui.stage_uncertain": "結果未知",
|
|
2117
|
+
"package.ui.stage_invalid": "無效記錄",
|
|
2118
|
+
"groups.inspection": "檢視與審核",
|
|
2119
|
+
"package.ui.cancel_requested": "已要求取消;R 查詢執行器是否已停止。",
|
|
2120
|
+
"sources.summary_state": "自動:{state} · {reason}",
|
|
2121
|
+
"sources.summary_scope": "專案 {project} · 工作階段 {session} · 代理 {agent}",
|
|
2122
|
+
"sources.summary_value": "值:{value} · {state} · {freshness}",
|
|
2123
|
+
"sources.summary_reason": "觀測:{reason}",
|
|
2124
|
+
"sources.summary_success": "上次成功:{value}",
|
|
2125
|
+
"sources.summary_next": "下次:{value} · 間隔 {interval} 秒",
|
|
2126
|
+
"sources.summary_job": "工作 {id}:{state} · {reason}",
|
|
2127
|
+
"sources.summary_result": "結束於 {time} · {duration} 毫秒 · 結束碼 {code}",
|
|
2128
|
+
"sources.checks": "已儲存的 GitHub 檢查",
|
|
2129
|
+
"sources.raw": "進階 JSON 詳細資料",
|
|
2130
|
+
"sources.checks_help": "已儲存檢查 · ←/→ 換頁 · 不查詢網路",
|
|
2131
|
+
"sources.bindings": "審核綁定使用情況與清理",
|
|
2132
|
+
"sources.bindings_help": "←/→ 換頁 · Enter 審核刪除未使用綁定",
|
|
2133
|
+
"sources.bindings_uncertain": "部分引用無法核實;已阻止刪除。",
|
|
2134
|
+
"sources.binding_unused": "未使用",
|
|
2135
|
+
"sources.binding_protected": "被引用/受保護",
|
|
2136
|
+
"sources.binding_duplicate": "同來源重複綁定",
|
|
2137
|
+
"sources.binding_cleanup_confirm": "Enter 僅刪除此已審核的未使用綁定;Esc 保留。",
|
|
2138
|
+
"sources.error.referenced": "綁定被引用,或無法確認歸屬",
|
|
2139
|
+
"sources.reason.off": "關閉",
|
|
2140
|
+
"sources.reason.waiting": "等待",
|
|
2141
|
+
"sources.reason.running": "執行中",
|
|
2142
|
+
"sources.reason.backoff": "退避重試",
|
|
2143
|
+
"sources.reason.paused": "暫停",
|
|
2144
|
+
"sources.reason.valid": "有效",
|
|
2145
|
+
"sources.reason.partial": "部分",
|
|
2146
|
+
"sources.reason.error": "錯誤",
|
|
2147
|
+
"sources.reason.unsupported": "不支援",
|
|
2148
|
+
"sources.reason.missing": "缺少",
|
|
2149
|
+
"sources.reason.disabled": "停用",
|
|
2150
|
+
"sources.reason.unbound": "未綁定",
|
|
2151
|
+
"sources.reason.mismatch": "身分不符",
|
|
2152
|
+
"sources.reason.current": "目前",
|
|
2153
|
+
"sources.reason.stale": "過期",
|
|
2154
|
+
"sources.reason.unknown": "未知",
|
|
2155
|
+
"sources.reason.completed": "已完成",
|
|
2156
|
+
"sources.reason.failed": "失敗",
|
|
2157
|
+
"sources.reason.cancelled": "已取消",
|
|
2158
|
+
"sources.reason.scheduled": "已排程",
|
|
2159
|
+
"sources.reason.no_session": "沒有適用活躍工作階段",
|
|
2160
|
+
"sources.reason.retry": "等待重試",
|
|
2161
|
+
"sources.reason.lease_expired": "工作階段租約已過期",
|
|
2162
|
+
"sources.reason.no_consumers": "沒有剩餘使用者",
|
|
2163
|
+
"sources.reason.not_refreshed": "尚未重新整理",
|
|
2164
|
+
"sources.reason.no_checks": "未觀測到檢查",
|
|
2165
|
+
"sources.reason.no_pr": "沒有提取要求",
|
|
2166
|
+
"sources.reason.exit": "非零結束",
|
|
2167
|
+
"sources.reason.io_error": "讀寫錯誤",
|
|
2168
|
+
"sources.reason.unknown_checks": "檢查結果未知",
|
|
2169
|
+
"sources.reason.check_details_truncated": "有界檢查詳細資料不完整",
|
|
2170
|
+
"sources.check.pass": "已完成",
|
|
2171
|
+
"sources.check.fail": "失敗",
|
|
2172
|
+
"sources.check.pending": "等待",
|
|
2173
|
+
"sources.check.cancel": "已取消",
|
|
2174
|
+
"sources.check.skipping": "已略過",
|
|
2175
|
+
"sources.check.unknown": "未知",
|
|
2176
|
+
"package.ui.local_notice": "本機狀態 · 連線和修改均需明確操作",
|
|
2177
|
+
"package.ui.draft_required": "執行前處理未儲存草稿;儲存結果未知時須先核對。",
|
|
2178
|
+
"package.ui.draft_save": "儲存草稿,然後重新審核",
|
|
2179
|
+
"package.ui.draft_export": "執行前匯出草稿",
|
|
2180
|
+
"package.ui.draft_discard": "放棄草稿,然後確認執行",
|
|
2181
|
+
"package.ui.draft_cancel": "取消執行並保留草稿",
|
|
2182
|
+
"package.ui.draft_reconcile": "核對未知的儲存結果",
|
|
2183
|
+
"package.ui.execute_notice": "執行將替換套件或還原已審核設定。此編輯器將變為唯讀;關閉僅脫離檢視。",
|
|
2184
|
+
"package.ui.execute_confirm": "Enter:確認執行本次審核結果",
|
|
2185
|
+
"package.ui.execute": "執行已驗證的審核結果",
|
|
2186
|
+
"package.ui.review_again": "草稿已儲存。請重新載入本機狀態並重新驗證審核。",
|
|
2187
|
+
"package.ui.exported": "草稿已匯出;此編輯器中的草稿仍未儲存。",
|
|
2188
|
+
"package.ui.editor_locked": "已交接套件交易。此編輯器唯讀;可查看進度或關閉。",
|
|
2189
|
+
"package.ui.export_path": "匯出路徑:{value}",
|
|
2190
|
+
"package.ui.cleanup_review": "審核保留歷史清理",
|
|
2191
|
+
"package.ui.cleanup_notice": "只能選擇已完成、無引用且歸屬明確的記錄。",
|
|
2192
|
+
"package.ui.cleanup_uncertain": "無法確認歷史歸屬或引用;已阻止清理。",
|
|
2193
|
+
"package.ui.cleanup_confirm": "Enter 永久刪除此已審核記錄及其保留材料;Esc 保留。",
|
|
2194
|
+
"package.ui.cleanup_unused": "已完成/無引用",
|
|
2195
|
+
"package.ui.cleanup_protected": "受保護",
|
|
2196
|
+
"package.ui.cleaned": "所選歷史記錄已刪除。",
|
|
2197
|
+
"package.ui.execution": "交易 {id} · {state} · {stage}",
|
|
2198
|
+
"package.ui.execution_results": "套件 {package} · 整合 {integration} · 設定 {configuration}",
|
|
2199
|
+
"package.ui.result_done": "已驗證/完成",
|
|
2200
|
+
"package.ui.result_pending": "未確認",
|
|
2201
|
+
"package.ui.reopen": "已完成。請重新開啟外部編輯器或重新啟動 Claude,以載入相符資源。",
|
|
2202
|
+
"package.ui.stage_queued": "等待啟動",
|
|
2203
|
+
"package.ui.stage_reviewing": "重新核對審核",
|
|
2204
|
+
"package.ui.state_interrupted": "已中斷;復原前檢查",
|
|
2205
|
+
"package.ui.protect_current": "目前安裝復原材料",
|
|
2206
|
+
"package.ui.protect_previous": "上一版本回復材料",
|
|
2207
|
+
"package.ui.protect_pending": "未完成交易",
|
|
2208
|
+
"package.ui.protect_running": "執行器仍執行或未確認",
|
|
2209
|
+
"package.ui.protect_attached": "編輯器仍持有復原入口",
|
|
2210
|
+
"package.ui.protect_uncertain": "歸屬或引用未知",
|
|
2211
|
+
"package.ui.execution_state_running": "執行中;R 查看進度",
|
|
2212
|
+
"package.ui.execution_state_complete": "執行完成",
|
|
2213
|
+
"package.ui.execution_state_failed": "執行失敗",
|
|
2214
|
+
"package.ui.execution_state_interrupted": "執行中斷",
|
|
2215
|
+
"package.ui.result_na": "不適用",
|
|
2216
|
+
"sources.scope_all": "任意/共用",
|
|
2217
|
+
"package.ui.control": "保留管理入口:{executable} · {entry}",
|
|
2218
|
+
"package.ui.control_help": "保留此入口;降級後使用 Node 開啟,並傳入 configure --config-dir {directory},即可重新查看。"
|
|
2065
2219
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type koffi from 'koffi';
|
|
2
|
+
/** Observe initialization without loading or pinning an installed native module. */
|
|
3
|
+
export declare function nativeLoaded(): boolean;
|
|
2
4
|
export declare function nativeApi(): typeof koffi;
|
|
3
5
|
export declare function library(name: string): import("koffi").LibraryHandle;
|
|
4
6
|
/** Cache bindings, never clock samples, process observations or API failures. */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
2
|
const require = createRequire(import.meta.url);
|
|
3
3
|
let api;
|
|
4
|
+
/** Observe initialization without loading or pinning an installed native module. */
|
|
5
|
+
export function nativeLoaded() { return api !== undefined; }
|
|
4
6
|
export function nativeApi() { return api ??= require('koffi'); }
|
|
5
7
|
const libraries = new Map();
|
|
6
8
|
export function library(name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.js","sourceRoot":"","sources":["../../src/native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,IAAI,GAA6B,CAAC;AAClC,MAAM,UAAU,SAAS,KAAmB,OAAO,GAAG,KAAK,OAAO,CAAC,OAAO,CAAiB,CAAC,CAAC,CAAC;AAC9F,MAAM,SAAS,GAAG,IAAI,GAAG,EAAyC,CAAC;AACnE,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,IAAI,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,CAAC,KAAK,EAAE,CAAC;QAAC,KAAK,GAAG,SAAS,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAAC,CAAC;IAC3E,OAAO,KAAK,CAAC;AACf,CAAC;AACD,MAAM,SAAS,GAAG,IAAI,GAAG,EAA6D,CAAC;AACvF,iFAAiF;AACjF,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,SAAiB;IAC5D,MAAM,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,IAAI,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,KAAK,EAAE,CAAC;QAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAAC,CAAC;IACjF,OAAO,KAAK,CAAC;AACf,CAAC;AACD,MAAM,UAAU,KAAK,CAAC,KAAc;IAClC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACnF,MAAM,IAAI,SAAS,CAAC,gCAAgC,CAAC,CAAC;AACxD,CAAC;AACD,MAAM,UAAU,QAAQ,CAAC,SAAiB;IACxC,MAAM,IAAI,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAAE,CAAC;IACvE,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,SAAS,WAAW,IAAI,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACrF,CAAC"}
|
|
1
|
+
{"version":3,"file":"native.js","sourceRoot":"","sources":["../../src/native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,IAAI,GAA6B,CAAC;AAClC,oFAAoF;AACpF,MAAM,UAAU,YAAY,KAAc,OAAO,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC;AACrE,MAAM,UAAU,SAAS,KAAmB,OAAO,GAAG,KAAK,OAAO,CAAC,OAAO,CAAiB,CAAC,CAAC,CAAC;AAC9F,MAAM,SAAS,GAAG,IAAI,GAAG,EAAyC,CAAC;AACnE,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,IAAI,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,CAAC,KAAK,EAAE,CAAC;QAAC,KAAK,GAAG,SAAS,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAAC,CAAC;IAC3E,OAAO,KAAK,CAAC;AACf,CAAC;AACD,MAAM,SAAS,GAAG,IAAI,GAAG,EAA6D,CAAC;AACvF,iFAAiF;AACjF,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,SAAiB;IAC5D,MAAM,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,IAAI,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,KAAK,EAAE,CAAC;QAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAAC,CAAC;IACjF,OAAO,KAAK,CAAC;AACf,CAAC;AACD,MAAM,UAAU,KAAK,CAAC,KAAc;IAClC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACnF,MAAM,IAAI,SAAS,CAAC,gCAAgC,CAAC,CAAC;AACxD,CAAC;AACD,MAAM,UAAU,QAAQ,CAAC,SAAiB;IACxC,MAAM,IAAI,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAAE,CAAC;IACvE,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,SAAS,WAAW,IAAI,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -19,6 +19,8 @@ export interface RegistryPackage {
|
|
|
19
19
|
}
|
|
20
20
|
export declare const globalPackageRoot: (prefix: string) => string;
|
|
21
21
|
export declare const globalPackageBin: (prefix: string) => string;
|
|
22
|
+
/** Authoritative manifest reads run in the independent worker, after bootstrap. */
|
|
23
|
+
export declare function readPackageManifest(root: string): Record<string, any>;
|
|
22
24
|
export declare function verifyArchive(path: string, target: RegistryPackage): void;
|
|
23
25
|
export declare function within(path: string, root: string): boolean;
|
|
24
26
|
export declare function productRoot(start: string): string | null;
|
|
@@ -8,8 +8,25 @@ import { equalSettings } from '@fbincon/statusline-core/json-equality';
|
|
|
8
8
|
import { which, resolvedPath, sameLaunchEntry } from './commands.js';
|
|
9
9
|
import { runSourceProcess } from './source-process.js';
|
|
10
10
|
import { phaseTimer } from './performance.js';
|
|
11
|
+
import { readSourceFile } from './source-files.js';
|
|
12
|
+
import { decodeUtf8 } from './utf8.js';
|
|
11
13
|
export const globalPackageRoot = (prefix) => join(prefix, process.platform === 'win32' ? 'node_modules' : 'lib/node_modules', PACKAGE_NAME);
|
|
12
14
|
export const globalPackageBin = (prefix) => join(prefix, process.platform === 'win32' ? 'claude-statusline.cmd' : 'bin/claude-statusline');
|
|
15
|
+
/** Authoritative manifest reads run in the independent worker, after bootstrap. */
|
|
16
|
+
export function readPackageManifest(root) {
|
|
17
|
+
try {
|
|
18
|
+
const bytes = readSourceFile(join(root, 'package.json'));
|
|
19
|
+
if (!bytes)
|
|
20
|
+
throw new Error('missing manifest');
|
|
21
|
+
const value = JSON.parse(decodeUtf8(bytes));
|
|
22
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
23
|
+
throw new Error('invalid manifest');
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
throw new PackageError('identity');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
13
30
|
export function verifyArchive(path, target) {
|
|
14
31
|
const finish = phaseTimer('package.verify-archive');
|
|
15
32
|
try {
|
|
@@ -46,6 +63,8 @@ export function productIdentity(root, prefix = '') {
|
|
|
46
63
|
try {
|
|
47
64
|
if (fs.lstatSync(root).isSymbolicLink())
|
|
48
65
|
throw new Error('linked product');
|
|
66
|
+
// Preliminary identity is also used before the bootstrap copy. Do not
|
|
67
|
+
// load the installed native adapter here; the worker verifies manifests.
|
|
49
68
|
const manifest = JSON.parse(fs.readFileSync(join(root, 'package.json'), 'utf8'));
|
|
50
69
|
if (manifest.name !== PACKAGE_NAME || !exactVersion(manifest.version) || manifest.bin?.['claude-statusline'] !== 'bin/claude-statusline.js')
|
|
51
70
|
throw new Error('identity');
|
|
@@ -237,7 +256,7 @@ export class Npm {
|
|
|
237
256
|
const root = globalPackageRoot(prefix), identity = productIdentity(root, prefix);
|
|
238
257
|
if (!identity || identity.version !== target.version)
|
|
239
258
|
throw new PackageError('identity');
|
|
240
|
-
const manifest =
|
|
259
|
+
const manifest = readPackageManifest(root);
|
|
241
260
|
if (manifest.engines?.node !== target.nodeEngine || !equalSettings(compatibility(manifest.statuslineCompatibility, target.version), target.compatibility) || (manifest.statuslineCompatibility === undefined) !== target.legacy)
|
|
242
261
|
throw new PackageError('identity');
|
|
243
262
|
await this.verify(identity, globalPackageBin(prefix));
|