@fbincon/claude-code-statusline 3.12.0 → 3.13.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.
Files changed (108) hide show
  1. package/README.md +82 -79
  2. package/candidate.json +216 -165
  3. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.d.ts +1 -0
  4. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js +9 -0
  5. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js.map +1 -1
  6. package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js +23 -0
  7. package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js.map +1 -1
  8. package/node_modules/@fbincon/statusline-cli/dist/src/config/profile-command.js +7 -3
  9. package/node_modules/@fbincon/statusline-cli/dist/src/config/profile-command.js.map +1 -1
  10. package/node_modules/@fbincon/statusline-cli/dist/src/config/reuse.d.ts +3 -0
  11. package/node_modules/@fbincon/statusline-cli/dist/src/config/reuse.js +62 -0
  12. package/node_modules/@fbincon/statusline-cli/dist/src/config/reuse.js.map +1 -0
  13. package/node_modules/@fbincon/statusline-cli/dist/src/config/structural-review.d.ts +5 -0
  14. package/node_modules/@fbincon/statusline-cli/dist/src/config/structural-review.js +45 -0
  15. package/node_modules/@fbincon/statusline-cli/dist/src/config/structural-review.js.map +1 -0
  16. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +3 -3
  17. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +14 -0
  18. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -1
  19. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +1 -1
  20. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/register.ts +7 -3
  21. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +4 -0
  22. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +10 -1
  23. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +8 -5
  24. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/alignment-manager.ts +2 -2
  25. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/change-review.ts +109 -0
  26. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/color-manager.ts +1 -1
  27. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +70 -21
  28. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +2 -9
  29. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/group-manager.ts +2 -3
  30. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/groups.ts +2 -2
  31. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/history.ts +33 -0
  32. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/reuse-manager.ts +150 -0
  33. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/reuse.ts +96 -0
  34. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-compatibility.ts +7 -0
  35. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-manager.ts +12 -5
  36. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/structure.ts +30 -0
  37. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +10 -3
  38. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/en.ts +72 -1
  39. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ja.ts +72 -1
  40. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ko.ts +72 -1
  41. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-CN.ts +72 -1
  42. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-HK.ts +72 -1
  43. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-TW.ts +72 -1
  44. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +30 -24
  45. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +4 -1
  46. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +3 -2
  47. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +1 -1
  48. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +3 -3
  49. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +32 -3
  50. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +2 -2
  51. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
  52. package/node_modules/@fbincon/statusline-core/dist/src/editor/alignment-manager.js +2 -2
  53. package/node_modules/@fbincon/statusline-core/dist/src/editor/alignment-manager.js.map +1 -1
  54. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +6 -0
  55. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
  56. package/node_modules/@fbincon/statusline-core/dist/src/editor/change-review.d.ts +32 -0
  57. package/node_modules/@fbincon/statusline-core/dist/src/editor/change-review.js +155 -0
  58. package/node_modules/@fbincon/statusline-core/dist/src/editor/change-review.js.map +1 -0
  59. package/node_modules/@fbincon/statusline-core/dist/src/editor/color-manager.js +1 -1
  60. package/node_modules/@fbincon/statusline-core/dist/src/editor/color-manager.js.map +1 -1
  61. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +17 -3
  62. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +114 -23
  63. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -1
  64. package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js +2 -10
  65. package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -1
  66. package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js +2 -5
  67. package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js.map +1 -1
  68. package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.d.ts +1 -1
  69. package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.js +2 -2
  70. package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.js.map +1 -1
  71. package/node_modules/@fbincon/statusline-core/dist/src/editor/history.d.ts +22 -0
  72. package/node_modules/@fbincon/statusline-core/dist/src/editor/history.js +37 -0
  73. package/node_modules/@fbincon/statusline-core/dist/src/editor/history.js.map +1 -0
  74. package/node_modules/@fbincon/statusline-core/dist/src/editor/reuse-manager.d.ts +39 -0
  75. package/node_modules/@fbincon/statusline-core/dist/src/editor/reuse-manager.js +271 -0
  76. package/node_modules/@fbincon/statusline-core/dist/src/editor/reuse-manager.js.map +1 -0
  77. package/node_modules/@fbincon/statusline-core/dist/src/editor/reuse.d.ts +6 -0
  78. package/node_modules/@fbincon/statusline-core/dist/src/editor/reuse.js +135 -0
  79. package/node_modules/@fbincon/statusline-core/dist/src/editor/reuse.js.map +1 -0
  80. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-compatibility.d.ts +3 -0
  81. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-compatibility.js +7 -0
  82. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-compatibility.js.map +1 -0
  83. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js +12 -5
  84. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js.map +1 -1
  85. package/node_modules/@fbincon/statusline-core/dist/src/editor/structure.d.ts +16 -0
  86. package/node_modules/@fbincon/statusline-core/dist/src/editor/structure.js +28 -0
  87. package/node_modules/@fbincon/statusline-core/dist/src/editor/structure.js.map +1 -0
  88. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +426 -0
  89. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +432 -6
  90. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -1
  91. package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +1 -1
  92. package/node_modules/@fbincon/statusline-core/dist/src/release.js +1 -1
  93. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +72 -1
  94. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +72 -1
  95. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +72 -1
  96. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +72 -1
  97. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +72 -1
  98. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +72 -1
  99. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +6 -0
  100. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js.map +1 -1
  101. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js +3 -0
  102. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js.map +1 -1
  103. package/node_modules/@fbincon/statusline-tui/dist/src/session.js +16 -1
  104. package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -1
  105. package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +1 -1
  106. package/node_modules/@fbincon/statusline-tui/dist/src/state.js +35 -9
  107. package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
  108. package/package.json +2 -2
@@ -2216,5 +2216,76 @@ export const MESSAGES = {
2216
2216
  "package.ui.result_na": "해당 없음",
2217
2217
  "sources.scope_all": "모두 / 공유",
2218
2218
  "package.ui.control": "보존할 관리 진입점: {executable} · {entry}",
2219
- "package.ui.control_help": "이 진입점을 보존하세요. 다운그레이드 후 Node로 열고 configure --config-dir {directory}를 전달하여 다시 확인할 수 있습니다."
2219
+ "package.ui.control_help": "이 진입점을 보존하세요. 다운그레이드 후 Node로 열고 configure --config-dir {directory}를 전달하여 다시 확인할 수 있습니다.",
2220
+ "history.title": "변경 및 기록",
2221
+ "history.edit": "초안 편집",
2222
+ "history.replace": "초안 교체",
2223
+ "history.structure": "구조 변경 검토",
2224
+ "history.stale": "검토가 오래되었습니다. 닫고 현재 초안을 다시 검토하세요.",
2225
+ "history.retry_ready": "검토한 리비전을 적용했습니다. 저장하여 다시 시도하세요.",
2226
+ "history.retry_blocked": "먼저 현재 설정을 비교하세요. 대상과 설치가 일치하고 저장 결과가 확인되어야 합니다.",
2227
+ "history.export_path": "초안을 새 파일로 내보내기:",
2228
+ "history.confirm_discard": "초안과 기록을 모두 버리고 최신 설정을 다시 불러올까요? Enter 확인, Esc 취소.",
2229
+ "history.repairs": "영향받는 정렬: {ids}",
2230
+ "history.counts": "실행 취소: {undo} · 다시 실행: {redo}",
2231
+ "history.comparison.0": "기준 → 초안",
2232
+ "history.comparison.1": "기준 → 현재 파일",
2233
+ "history.comparison.2": "현재 파일 → 초안",
2234
+ "history.structure_help": "A 적용 · Enter 상세 · Q 취소",
2235
+ "history.help": "U 실행 취소 · R 다시 실행 · C 비교 · Tab 전환 · E 내보내기 · L 버리고 새로 고침 · K 초안 유지/재시도 · Q 뒤로",
2236
+ "history.trimmed": "세션 기록 한도에 도달하여 가장 오래된 항목을 제거했습니다.",
2237
+ "history.exported": "초안을 내보냈습니다. 현재 설정은 변경되지 않았습니다.",
2238
+ "history.failed": "작업을 완료할 수 없습니다: {detail}",
2239
+ "history.undo_redo": "실행 취소 / 다시 실행",
2240
+ "reuse.style": "표시 스타일 복사 / 붙여넣기",
2241
+ "reuse.groups": "전체 그룹 재사용",
2242
+ "reuse.action": "설정 재사용",
2243
+ "reuse.invalid": "재사용 선택 또는 참조가 잘못되었습니다.",
2244
+ "reuse.incompatible": "선택한 필드, 원본 또는 배치가 대상과 호환되지 않습니다.",
2245
+ "reuse.references": "외부 참조를 확장하거나 제외하도록 명시적으로 선택하세요.",
2246
+ "reuse.explicit": "명시적 행 배치가 필요합니다. 배치 변환을 선택하세요.",
2247
+ "reuse.current": "현재 초안",
2248
+ "reuse.portable": "이식 가능한 설정 파일",
2249
+ "reuse.profile_file": "내보낸 프로필 파일",
2250
+ "reuse.profiles": "저장된 프로필",
2251
+ "reuse.accepted": "초안에 적용했습니다. 별도로 저장하세요.",
2252
+ "reuse.unbound": "로컬 원본에 연결되지 않음",
2253
+ "reuse.bind_help": "B 로컬 원본 연결 · Q 뒤로",
2254
+ "reuse.scope": "원본 범위",
2255
+ "reuse.review": "선택한 변경 검토",
2256
+ "reuse.unsupported": "이 대상에서 지원되지 않음",
2257
+ "reuse.path": "원본 파일 경로:",
2258
+ "reuse.path_help": "Enter 읽기 · Esc 취소",
2259
+ "reuse.draft_only": "후보 초안입니다. 설정과 권한은 변경되지 않았습니다.",
2260
+ "reuse.layout": "명시적 배치 변환 허용",
2261
+ "reuse.expand": "종속 항목 확장",
2262
+ "reuse.exclude": "외부 정렬 제외",
2263
+ "reuse.help": "원본을 선택하고 적용 전에 검토하세요.",
2264
+ "reuse.cancel_help": "Enter 선택 · Space 전환 · Esc 취소",
2265
+ "reuse.review_groups_help": "A 적용 · X 참조 · L 배치 변환 · Backspace 편집 · Q 취소 · Tab ID / 차이",
2266
+ "reuse.review_style_help": "A 적용 · Enter 상세 · Backspace 필드 · Q 취소",
2267
+ "settings.change-history": "변경 및 기록",
2268
+ "settings.reuse-style": "표시 스타일 복사 / 붙여넣기",
2269
+ "settings.reuse-groups": "전체 그룹 재사용",
2270
+ "ui.actions.change-history": "변경 및 기록",
2271
+ "ui.actions.reuse-style": "표시 스타일 복사 / 붙여넣기",
2272
+ "ui.actions.reuse-groups": "전체 그룹 재사용",
2273
+ "ui.hints.undo_redo": "실행 취소 / 다시 실행",
2274
+ "ui.hints.changes": "변경 및 기록",
2275
+ "reuse.field.foreground": "전경색 (inherit/default/ansi:N/#RRGGBB)",
2276
+ "reuse.field.background": "배경색 (inherit/default/ansi:N/#RRGGBB)",
2277
+ "reuse.field.foreground_gradient": "전경 그라데이션",
2278
+ "reuse.field.background_gradient": "Powerline 배경 그라데이션",
2279
+ "reuse.field.label": "레이블 (상속=기본값)",
2280
+ "reuse.field.icon": "아이콘 (상속=기본값)",
2281
+ "reuse.field.formatting.model_name": "모델 이름",
2282
+ "reuse.field.formatting.number_format": "숫자 형식",
2283
+ "reuse.field.formatting.labels": "레이블",
2284
+ "reuse.field.formatting.icons": "아이콘",
2285
+ "reuse.field.formatting.allowance": "사용 한도",
2286
+ "reuse.field.formatting.reset_format": "초기화 표시 형식",
2287
+ "reuse.field.formatting.reset_timezone": "초기화 시간대",
2288
+ "history.input_help": "Enter 읽기 · Esc 취소",
2289
+ "reuse.dependency": "외부 종속 항목",
2290
+ "reuse.reference_policy": "외부 참조 처리"
2220
2291
  } as const;
@@ -2216,5 +2216,76 @@ export const MESSAGES = {
2216
2216
  "package.ui.result_na": "不适用",
2217
2217
  "sources.scope_all": "任意/共享",
2218
2218
  "package.ui.control": "保留管理入口:{executable} · {entry}",
2219
- "package.ui.control_help": "保留此入口;降级后使用 Node 打开,并传入 configure --config-dir {directory},即可重新查看。"
2219
+ "package.ui.control_help": "保留此入口;降级后使用 Node 打开,并传入 configure --config-dir {directory},即可重新查看。",
2220
+ "history.title": "变更与历史",
2221
+ "history.edit": "编辑草稿",
2222
+ "history.replace": "替换草稿",
2223
+ "history.structure": "审阅结构调整",
2224
+ "history.stale": "此审阅已过期,请关闭后重新审阅当前草稿。",
2225
+ "history.retry_ready": "已采用审阅过的修订,请保存以重试。",
2226
+ "history.retry_blocked": "请先比较当前配置;目标和安装归属必须一致,且保存结果必须明确。",
2227
+ "history.export_path": "将草稿导出到新文件:",
2228
+ "history.confirm_discard": "丢弃整个草稿和历史,并重新读取最新配置?Enter 确认,Esc 取消。",
2229
+ "history.repairs": "受影响的对齐:{ids}",
2230
+ "history.counts": "可撤销:{undo} · 可重做:{redo}",
2231
+ "history.comparison.0": "基线 → 草稿",
2232
+ "history.comparison.1": "基线 → 当前文件",
2233
+ "history.comparison.2": "当前文件 → 草稿",
2234
+ "history.structure_help": "A 接受 · Enter 详情 · Q 取消",
2235
+ "history.help": "U 撤销 · R 重做 · C 比较 · Tab 切换 · E 导出 · L 丢弃重载 · K 保留草稿重试 · Q 返回",
2236
+ "history.trimmed": "已达到会话历史上限,最早记录已移除。",
2237
+ "history.exported": "草稿已导出,当前配置未改写。",
2238
+ "history.failed": "无法完成操作:{detail}",
2239
+ "history.undo_redo": "撤销/重做",
2240
+ "reuse.style": "复制/粘贴视觉样式",
2241
+ "reuse.groups": "复用完整分组",
2242
+ "reuse.action": "复用配置",
2243
+ "reuse.invalid": "复用选择或引用无效。",
2244
+ "reuse.incompatible": "所选字段、来源或布局与目标不兼容。",
2245
+ "reuse.references": "组外引用需要明确选择扩选或排除。",
2246
+ "reuse.explicit": "需要显式行布局,请明确选择布局转换。",
2247
+ "reuse.current": "当前草稿",
2248
+ "reuse.portable": "便携配置文件",
2249
+ "reuse.profile_file": "导出的方案文件",
2250
+ "reuse.profiles": "已保存的方案",
2251
+ "reuse.accepted": "已应用到草稿,请另行保存。",
2252
+ "reuse.unbound": "尚未绑定本机来源",
2253
+ "reuse.bind_help": "B 绑定本机来源 · Q 返回",
2254
+ "reuse.scope": "来源范围",
2255
+ "reuse.review": "审阅所选变更",
2256
+ "reuse.unsupported": "此目标不支持",
2257
+ "reuse.path": "来源文件路径:",
2258
+ "reuse.path_help": "Enter 读取 · Esc 取消",
2259
+ "reuse.draft_only": "仅为候选草稿,配置和授权均未改写。",
2260
+ "reuse.layout": "允许转换为显式布局",
2261
+ "reuse.expand": "扩选依赖",
2262
+ "reuse.exclude": "排除组外对齐",
2263
+ "reuse.help": "选择来源后,先审阅再应用。",
2264
+ "reuse.cancel_help": "Enter 选择 · Space 勾选 · Esc 取消",
2265
+ "reuse.review_groups_help": "A 接受 · X 引用处理 · L 布局转换 · Backspace 编辑 · Q 取消 · Tab ID/差异",
2266
+ "reuse.review_style_help": "A 接受 · Enter 详情 · Backspace 字段选择 · Q 取消",
2267
+ "settings.change-history": "变更与历史",
2268
+ "settings.reuse-style": "复制/粘贴视觉样式",
2269
+ "settings.reuse-groups": "复用完整分组",
2270
+ "ui.actions.change-history": "变更与历史",
2271
+ "ui.actions.reuse-style": "复制/粘贴视觉样式",
2272
+ "ui.actions.reuse-groups": "复用完整分组",
2273
+ "ui.hints.undo_redo": "撤销/重做",
2274
+ "ui.hints.changes": "变更与历史",
2275
+ "reuse.field.foreground": "前景色(inherit/default/ansi:N/#RRGGBB)",
2276
+ "reuse.field.background": "背景色(inherit/default/ansi:N/#RRGGBB)",
2277
+ "reuse.field.foreground_gradient": "前景渐变",
2278
+ "reuse.field.background_gradient": "Powerline 背景渐变",
2279
+ "reuse.field.label": "标签(继承=默认)",
2280
+ "reuse.field.icon": "图标(继承=默认)",
2281
+ "reuse.field.formatting.model_name": "模型名称",
2282
+ "reuse.field.formatting.number_format": "数字格式",
2283
+ "reuse.field.formatting.labels": "标签",
2284
+ "reuse.field.formatting.icons": "图标",
2285
+ "reuse.field.formatting.allowance": "额度",
2286
+ "reuse.field.formatting.reset_format": "重置格式",
2287
+ "reuse.field.formatting.reset_timezone": "重置时区",
2288
+ "history.input_help": "Enter 读取 · Esc 取消",
2289
+ "reuse.dependency": "组外依赖",
2290
+ "reuse.reference_policy": "组外引用处理"
2220
2291
  } as const;
@@ -2216,5 +2216,76 @@ export const MESSAGES = {
2216
2216
  "package.ui.result_na": "不適用",
2217
2217
  "sources.scope_all": "任意/共用",
2218
2218
  "package.ui.control": "保留管理入口:{executable} · {entry}",
2219
- "package.ui.control_help": "保留此入口;降級後使用 Node 開啟,並傳入 configure --config-dir {directory},即可重新查看。"
2219
+ "package.ui.control_help": "保留此入口;降級後使用 Node 開啟,並傳入 configure --config-dir {directory},即可重新查看。",
2220
+ "history.title": "變更與歷史",
2221
+ "history.edit": "編輯草稿",
2222
+ "history.replace": "替換草稿",
2223
+ "history.structure": "檢閱結構調整",
2224
+ "history.stale": "此檢閱已過期,請關閉後重新檢閱目前草稿。",
2225
+ "history.retry_ready": "已採用檢閱過的修訂,請儲存以重試。",
2226
+ "history.retry_blocked": "請先比較目前設定;目標和安裝歸屬必須一致,且儲存結果必須明確。",
2227
+ "history.export_path": "將草稿匯出至新檔案:",
2228
+ "history.confirm_discard": "捨棄整個草稿和歷史,並重新讀取最新設定?Enter 確認,Esc 取消。",
2229
+ "history.repairs": "受影響的對齊:{ids}",
2230
+ "history.counts": "可復原:{undo} · 可重做:{redo}",
2231
+ "history.comparison.0": "基準 → 草稿",
2232
+ "history.comparison.1": "基準 → 目前檔案",
2233
+ "history.comparison.2": "目前檔案 → 草稿",
2234
+ "history.structure_help": "A 接受 · Enter 詳情 · Q 取消",
2235
+ "history.help": "U 復原 · R 重做 · C 比較 · Tab 切換 · E 匯出 · L 捨棄重載 · K 保留草稿重試 · Q 返回",
2236
+ "history.trimmed": "已達到工作階段歷史上限,最早記錄已移除。",
2237
+ "history.exported": "草稿已匯出,目前設定未改寫。",
2238
+ "history.failed": "無法完成操作:{detail}",
2239
+ "history.undo_redo": "復原/重做",
2240
+ "reuse.style": "複製/貼上視覺樣式",
2241
+ "reuse.groups": "重用完整群組",
2242
+ "reuse.action": "重用設定",
2243
+ "reuse.invalid": "重用選擇或參照無效。",
2244
+ "reuse.incompatible": "所選欄位、來源或版面配置與目標不相容。",
2245
+ "reuse.references": "群組外參照需要明確選擇擴選或排除。",
2246
+ "reuse.explicit": "需要明確列版面配置,請明確選擇版面轉換。",
2247
+ "reuse.current": "目前草稿",
2248
+ "reuse.portable": "可攜設定檔",
2249
+ "reuse.profile_file": "匯出的方案檔",
2250
+ "reuse.profiles": "已儲存的方案",
2251
+ "reuse.accepted": "已套用至草稿,請另行儲存。",
2252
+ "reuse.unbound": "尚未繫結本機來源",
2253
+ "reuse.bind_help": "B 繫結本機來源 · Q 返回",
2254
+ "reuse.scope": "來源範圍",
2255
+ "reuse.review": "檢閱所選變更",
2256
+ "reuse.unsupported": "此目標不支援",
2257
+ "reuse.path": "來源檔案路徑:",
2258
+ "reuse.path_help": "Enter 讀取 · Esc 取消",
2259
+ "reuse.draft_only": "僅為候選草稿,設定和授權均未改寫。",
2260
+ "reuse.layout": "允許轉換為明確版面配置",
2261
+ "reuse.expand": "擴選相依項目",
2262
+ "reuse.exclude": "排除群組外對齊",
2263
+ "reuse.help": "選擇來源後,先檢閱再套用。",
2264
+ "reuse.cancel_help": "Enter 選擇 · Space 勾選 · Esc 取消",
2265
+ "reuse.review_groups_help": "A 接受 · X 參照處理 · L 版面轉換 · Backspace 編輯 · Q 取消 · Tab ID/差異",
2266
+ "reuse.review_style_help": "A 接受 · Enter 詳情 · Backspace 欄位選擇 · Q 取消",
2267
+ "settings.change-history": "變更與歷史",
2268
+ "settings.reuse-style": "複製/貼上視覺樣式",
2269
+ "settings.reuse-groups": "重用完整群組",
2270
+ "ui.actions.change-history": "變更與歷史",
2271
+ "ui.actions.reuse-style": "複製/貼上視覺樣式",
2272
+ "ui.actions.reuse-groups": "重用完整群組",
2273
+ "ui.hints.undo_redo": "復原/重做",
2274
+ "ui.hints.changes": "變更與歷史",
2275
+ "reuse.field.foreground": "前景色(inherit/default/ansi:N/#RRGGBB)",
2276
+ "reuse.field.background": "背景色(inherit/default/ansi:N/#RRGGBB)",
2277
+ "reuse.field.foreground_gradient": "前景漸變",
2278
+ "reuse.field.background_gradient": "Powerline 背景漸變",
2279
+ "reuse.field.label": "標籤(繼承=預設)",
2280
+ "reuse.field.icon": "圖標(繼承=預設)",
2281
+ "reuse.field.formatting.model_name": "模型名稱",
2282
+ "reuse.field.formatting.number_format": "數字格式",
2283
+ "reuse.field.formatting.labels": "標籤",
2284
+ "reuse.field.formatting.icons": "圖標",
2285
+ "reuse.field.formatting.allowance": "額度",
2286
+ "reuse.field.formatting.reset_format": "重設格式",
2287
+ "reuse.field.formatting.reset_timezone": "重設時區",
2288
+ "history.input_help": "Enter 讀取 · Esc 取消",
2289
+ "reuse.dependency": "群組外相依項目",
2290
+ "reuse.reference_policy": "組外引用處理"
2220
2291
  } as const;
@@ -2216,5 +2216,76 @@ export const MESSAGES = {
2216
2216
  "package.ui.result_na": "不適用",
2217
2217
  "sources.scope_all": "任意/共用",
2218
2218
  "package.ui.control": "保留管理入口:{executable} · {entry}",
2219
- "package.ui.control_help": "保留此入口;降級後使用 Node 開啟,並傳入 configure --config-dir {directory},即可重新查看。"
2219
+ "package.ui.control_help": "保留此入口;降級後使用 Node 開啟,並傳入 configure --config-dir {directory},即可重新查看。",
2220
+ "history.title": "變更與歷史",
2221
+ "history.edit": "編輯草稿",
2222
+ "history.replace": "替換草稿",
2223
+ "history.structure": "檢閱結構調整",
2224
+ "history.stale": "此檢閱已過期,請關閉後重新檢閱目前草稿。",
2225
+ "history.retry_ready": "已採用檢閱過的修訂,請儲存以重試。",
2226
+ "history.retry_blocked": "請先比較目前設定;目標和安裝歸屬必須一致,且儲存結果必須明確。",
2227
+ "history.export_path": "將草稿匯出至新檔案:",
2228
+ "history.confirm_discard": "捨棄整個草稿和歷史,並重新讀取最新設定?Enter 確認,Esc 取消。",
2229
+ "history.repairs": "受影響的對齊:{ids}",
2230
+ "history.counts": "可復原:{undo} · 可重做:{redo}",
2231
+ "history.comparison.0": "基準 → 草稿",
2232
+ "history.comparison.1": "基準 → 目前檔案",
2233
+ "history.comparison.2": "目前檔案 → 草稿",
2234
+ "history.structure_help": "A 接受 · Enter 詳情 · Q 取消",
2235
+ "history.help": "U 復原 · R 重做 · C 比較 · Tab 切換 · E 匯出 · L 捨棄重載 · K 保留草稿重試 · Q 返回",
2236
+ "history.trimmed": "已達到工作階段歷史上限,最早記錄已移除。",
2237
+ "history.exported": "草稿已匯出,目前設定未改寫。",
2238
+ "history.failed": "無法完成操作:{detail}",
2239
+ "history.undo_redo": "復原/重做",
2240
+ "reuse.style": "複製/貼上視覺樣式",
2241
+ "reuse.groups": "重用完整群組",
2242
+ "reuse.action": "重用設定",
2243
+ "reuse.invalid": "重用選擇或參照無效。",
2244
+ "reuse.incompatible": "所選欄位、來源或版面配置與目標不相容。",
2245
+ "reuse.references": "群組外參照需要明確選擇擴選或排除。",
2246
+ "reuse.explicit": "需要明確列版面配置,請明確選擇版面轉換。",
2247
+ "reuse.current": "目前草稿",
2248
+ "reuse.portable": "可攜設定檔",
2249
+ "reuse.profile_file": "匯出的方案檔",
2250
+ "reuse.profiles": "已儲存的方案",
2251
+ "reuse.accepted": "已套用至草稿,請另行儲存。",
2252
+ "reuse.unbound": "尚未繫結本機來源",
2253
+ "reuse.bind_help": "B 繫結本機來源 · Q 返回",
2254
+ "reuse.scope": "來源範圍",
2255
+ "reuse.review": "檢閱所選變更",
2256
+ "reuse.unsupported": "此目標不支援",
2257
+ "reuse.path": "來源檔案路徑:",
2258
+ "reuse.path_help": "Enter 讀取 · Esc 取消",
2259
+ "reuse.draft_only": "僅為候選草稿,設定和授權均未改寫。",
2260
+ "reuse.layout": "允許轉換為明確版面配置",
2261
+ "reuse.expand": "擴選相依項目",
2262
+ "reuse.exclude": "排除群組外對齊",
2263
+ "reuse.help": "選擇來源後,先檢閱再套用。",
2264
+ "reuse.cancel_help": "Enter 選擇 · Space 勾選 · Esc 取消",
2265
+ "reuse.review_groups_help": "A 接受 · X 參照處理 · L 版面轉換 · Backspace 編輯 · Q 取消 · Tab ID/差異",
2266
+ "reuse.review_style_help": "A 接受 · Enter 詳情 · Backspace 欄位選擇 · Q 取消",
2267
+ "settings.change-history": "變更與歷史",
2268
+ "settings.reuse-style": "複製/貼上視覺樣式",
2269
+ "settings.reuse-groups": "重用完整群組",
2270
+ "ui.actions.change-history": "變更與歷史",
2271
+ "ui.actions.reuse-style": "複製/貼上視覺樣式",
2272
+ "ui.actions.reuse-groups": "重用完整群組",
2273
+ "ui.hints.undo_redo": "復原/重做",
2274
+ "ui.hints.changes": "變更與歷史",
2275
+ "reuse.field.foreground": "前景色(inherit/default/ansi:N/#RRGGBB)",
2276
+ "reuse.field.background": "背景色(inherit/default/ansi:N/#RRGGBB)",
2277
+ "reuse.field.foreground_gradient": "前景漸層",
2278
+ "reuse.field.background_gradient": "Powerline 背景漸層",
2279
+ "reuse.field.label": "標籤(繼承=預設)",
2280
+ "reuse.field.icon": "圖標(繼承=預設)",
2281
+ "reuse.field.formatting.model_name": "模型名稱",
2282
+ "reuse.field.formatting.number_format": "數字格式",
2283
+ "reuse.field.formatting.labels": "標籤",
2284
+ "reuse.field.formatting.icons": "圖標",
2285
+ "reuse.field.formatting.allowance": "額度",
2286
+ "reuse.field.formatting.reset_format": "重設格式",
2287
+ "reuse.field.formatting.reset_timezone": "重設時區",
2288
+ "history.input_help": "Enter 讀取 · Esc 取消",
2289
+ "reuse.dependency": "群組外相依項目",
2290
+ "reuse.reference_policy": "組外引用處理"
2220
2291
  } as const;
@@ -1,30 +1,32 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "backend_version": "3.12.0",
4
- "mod_version": "3.12.0",
5
- "protocol_version": 28,
3
+ "backend_version": "3.13.0",
4
+ "mod_version": "3.13.0",
5
+ "protocol_version": 29,
6
6
  "files": {
7
- ".claude-plugin/plugin.json": "37e21e3c0c5681d67f8f707d2b6ee0f8f1ca9e5c645819b54f315259b08c9906",
7
+ ".claude-plugin/plugin.json": "7483275be186e02fd0f02bb6d54e8294fc5c49066df6e65d7448f5999328d945",
8
8
  "hooks/hooks.json": "8395d73f4e9d61a02c0976385465d87a05abb2825408f8b40ae916b144c05575",
9
- "hooks/register.ts": "d1892a5a34a81145e9254aee35930b960d8b8d9a4608a002f756ea7fea185205",
10
- "lib/backend.ts": "1a2887390d8b3d59fb0baaf7761e8a913ed29099979af7de5d19bb44fa178488",
9
+ "hooks/register.ts": "967a573bb6b1136d50049268d8d2a0f56839bde4bfdaad8eeac8fc58542c7126",
10
+ "lib/backend.ts": "7750ec656b50a49009a38f6796c3ded16ca2c6efbf2631742fff2ec38a23ec5f",
11
11
  "lib/client/forms.ts": "0169bc1a009cdeb021ac21e7b33d332e7a3d9603c0ad9f5751b4936708396ea7",
12
- "lib/client/keys.ts": "f3f9680210a52ee12b305852e6adb68e1158515a2f28d5ad3c767b3f7503ee81",
12
+ "lib/client/keys.ts": "75096c1788ca8170501d48fe776f45cd9b8f74fb4eb0b86713fdb65c9fdd4068",
13
13
  "lib/client/messages.ts": "2bd3f05645ef2bed015c31f48fe0773a9949f6c27e9912ece8caa5ac51db1240",
14
- "lib/client/settings.ts": "e314032e5f686c3826f25c2215fe911c56a3ffef686fe4271b88372303ea5848",
15
- "lib/editor/alignment-manager.ts": "6c1d73a854c2bc1d3386a1c4549caea3c94c5db6e3afa248ed3a42433f2b3ef3",
14
+ "lib/client/settings.ts": "d8ff3d91c06bba3f210922606ec436fd21ebcce5a09c28d03a2ceea84f5fedbe",
15
+ "lib/editor/alignment-manager.ts": "a4f6736f4b7abcc3954f704fff7852fd89e6c4764e9a15f5885b786538e95a9c",
16
16
  "lib/editor/alignments.ts": "75d704b1a7108ac254242b493977897e076429cedd26969ef2ab82027ecfbb5a",
17
17
  "lib/editor/appearance.ts": "797b990480c74cfd0f539214c15fcfba3cbbe8b8c3463eb3208e919a72b8fd2f",
18
- "lib/editor/color-manager.ts": "0c41253bc7cdaba4d24b8a0e17f6dae80a945514a3da4f4928be26b24e9bcd40",
18
+ "lib/editor/change-review.ts": "2ff1b37223400ee2af0f38bc550f8dbae120d9c46acaf6a9a4dfff78473cc36e",
19
+ "lib/editor/color-manager.ts": "acbcc4c0e02c8672ce4e64132b18616296eb3c6588013eff3a0592bee858d923",
19
20
  "lib/editor/cost-rate.ts": "db2454d17f53b5d365c4fff83d5285d00ffd60a84ec3504ebdfe69b06bacdcf1",
20
21
  "lib/editor/diagnosis-view.ts": "90cbd706ae4562843c4ec78d371a19683d8f4f807295c103cf61601b42ca71a8",
21
- "lib/editor/draft.ts": "e7c03a7a2731370d11251cca17c74ac46351a9a9610572640607bfb2346765a2",
22
+ "lib/editor/draft.ts": "5b891ac4c1e2289911c483ee7c40b5f163d6964aed1e48d9e35f1665bcc6b970",
22
23
  "lib/editor/explanation.ts": "cb6bcf1dd3b4b4bc2056a7efb01c6964930dc55768bee78802aab91607fdee6c",
23
- "lib/editor/forms.ts": "1c923bf2ea57b835b73a71e95e056843feb790bff38518032d40fd15382fe9b9",
24
+ "lib/editor/forms.ts": "312d573b7262363f6079e4e35cc98918e611d4558ff10fe827f494b1632a2a33",
24
25
  "lib/editor/gradients.ts": "5b77621ede7983e06181fd922dd1babcfe35a7ef03727a28daddeb04af523dc6",
25
- "lib/editor/group-manager.ts": "47ae7708ee9986aeacddb22ad43b4242931296a0bd679526e70697012bc203cd",
26
- "lib/editor/groups.ts": "e7f62ffef56b0df88dc3ab581ba2b6eaf8c3ab1ef5cdc31d0673219e9661569c",
26
+ "lib/editor/group-manager.ts": "97c741e36599b272a8488876778b1388836e70230eb7aee9673c3cd75167ccc6",
27
+ "lib/editor/groups.ts": "69e64e9712685970b0b8197e487894398350e9af98b8dd38ac8c09bb24f25e2b",
27
28
  "lib/editor/guidance.ts": "0ac8d87d7162327f76db39c02fd97fa7dd80ceffa29abd08da20d6eb8b1d7574",
29
+ "lib/editor/history.ts": "83e1457a75c3bfaeb879414b54cc08cd3536fca3bc5535684916769ccdedbead",
28
30
  "lib/editor/import-differences.ts": "42381bff34430071b6e3d7d5b23335411934c093bac798473561b4bcbadc6294",
29
31
  "lib/editor/import-review.ts": "08c1e4a6bf93075c56016d5fa3cec84c3e26a8977c758d17025f113c45528143",
30
32
  "lib/editor/import-selection.ts": "fbe7ccc98306aa61a8fd06cdf1001f93d2900584239035968e07ce0e65f80ceb",
@@ -37,25 +39,29 @@
37
39
  "lib/editor/preview-settings.ts": "b2d02e1cf546cd1784d78e896227a10e51d677a08fa762cb97b5c728ca1e126c",
38
40
  "lib/editor/profile-manager.ts": "bbc6dc0956a1171f386e2f5e333cc95742b5608f7ba70a15c201925f92ed5d1f",
39
41
  "lib/editor/quick-setup.ts": "6bd103850aee098d48398ed096f075f368ef6f03ec877acb46227b6da24843bd",
42
+ "lib/editor/reuse-manager.ts": "627b8ebe57922514b7d5689cc991a92e5ebf4f5e0750c399711d61ff390a20da",
43
+ "lib/editor/reuse.ts": "3a81155521f4d44828d485a2d612d5bff99ec1319373bc42f5c1ab9ac982e9ef",
40
44
  "lib/editor/search.ts": "07e9ae365f89259bcd93957d39aaeb3cbfe09572a5f2a6f82eef2c2876021f21",
41
45
  "lib/editor/setup.ts": "6238097f62fca78d15b5c9972a3b6ba34fe50dc327bf983b1766be91264d2084",
42
- "lib/editor/source-manager.ts": "86e05fabeb348744be2cf95114a07af744ec7dd230b3616e5ed9e4e1e2652987",
46
+ "lib/editor/source-compatibility.ts": "908f7df7849cf86ee0989331f23821f3a54762b8888f253e2a9dc2cc16c6540d",
47
+ "lib/editor/source-manager.ts": "2e063dd68ebdde92c90970769ae91adf2eee117d052fd6a3d53ddcde20c9957d",
43
48
  "lib/editor/source-summary.ts": "52437296448f5c2f98d66d4066eb9d427360a4f9601834ff0cc2713606332818",
44
49
  "lib/editor/source-validation.ts": "deab59dbee8d6078b133108db7d54d1f03038467b23677062aa66e92d118b772",
50
+ "lib/editor/structure.ts": "be8934eb07537ede812c4bb2b298fd6708016c0d1db07ca9c2099cc9b9feb92a",
45
51
  "lib/editor/task-detail.ts": "7277f84ec6fc91c24156a010af0ed1324b4f28076150cc02e90c652a8eeed93a",
46
52
  "lib/editor/task-viewer.ts": "1a89388bfa85f325bdac1202d7274b54e11399aeedca2345aaf897ede108d728",
47
53
  "lib/editor/text-input.ts": "c1968edf898e9abd96da9f5326d530c581ef320721197bfb63497825198f81f0",
48
54
  "lib/editor/themes.ts": "e94e08dbb7cd06b8c7e12e6522ce99d8e98cf57e9abbe5055f3e8e4f289ce271",
49
- "lib/generated-contracts.ts": "41fc58d322bf20d31e15793eb3e063ca182a82f55d8a7bacaaad34937b3855e1",
55
+ "lib/generated-contracts.ts": "acf392dfa3ca29e6be544b662204670b42716ebf2a07924ee652f2a51700b664",
50
56
  "lib/generated-unicode.ts": "781c7db664dc6166bc2fcf878565937cd8b25b57d192ae420b3016e1ce510907",
51
57
  "lib/i18n/generated-locales.ts": "21b53fb47ca99d133d42eee160eb57078a6a1acd7066e2f2a39196161f32d3f0",
52
58
  "lib/i18n/index.ts": "e5e62b59bdd1c984c182cbf706e5d98b398b4d5e9efb233803eacde38f7e5a9a",
53
- "lib/i18n/locales/en.ts": "4aff2c975560adfe902c6fbd5de3bf458d51bd2099a35c0d9a85bb0392c0d639",
54
- "lib/i18n/locales/ja.ts": "f4b563d6a4cb78b74ae165ae53c6b600f13bfb503bc6a5345a65a4bdcfe76488",
55
- "lib/i18n/locales/ko.ts": "1816bb434851b40439b63c7a354b44f88b2d0cf9c59d19f0a0730c7fe4a9afd4",
56
- "lib/i18n/locales/zh-CN.ts": "cae82776ff3377a8ae01c09f0d2ff5acbd8722fa1d051ba948ed608487371834",
57
- "lib/i18n/locales/zh-HK.ts": "e33252e10483dc70436a61b372a642e15628a2778a70a74e382edf8bc2fc4269",
58
- "lib/i18n/locales/zh-TW.ts": "5ba7e77adb9bc3a5ca5f85cf2910973ac5975b6f1495038ccea61f43a6ed50fd",
59
+ "lib/i18n/locales/en.ts": "1914aa0be0c3b1b1df7c78e5059ee2fa12734c9cacd12b8a576937c68a17b1fc",
60
+ "lib/i18n/locales/ja.ts": "2be07f2c0009fa32f21a287f7f5f64934ad2867892adba73e39650192f5c18ee",
61
+ "lib/i18n/locales/ko.ts": "1c59eb34f59127c18b37c6741dec4e1d89030af82f2f0e1b4a7f339c8da11c8c",
62
+ "lib/i18n/locales/zh-CN.ts": "15461d40e0ba31493100d2909ae39e187396f39ddf08b9cbdf9c1df16e5e7170",
63
+ "lib/i18n/locales/zh-HK.ts": "fe20652dc97532e04e13d4b9949e67c68fed52ed3b5f3b2aca8350a704eb9866",
64
+ "lib/i18n/locales/zh-TW.ts": "17cc71a54dec74214b437fd48dc8459a8deb2fa3be2fc04ec32ea54bd049166f",
59
65
  "lib/i18n/messages.ts": "31775673f7b18efec0f131012e220c523625c77e1e34fc09ecc7732070ede5d1",
60
66
  "lib/i18n/presentation.ts": "074064cf3370b828d1813235034d6ac68aae5ad389493ec4c3a983a545f5dcc0",
61
67
  "lib/launch.ts": "08303623ef74cb1ce297b6d4ca32d872908dea513ab394ebc1210b8f92c12328",
@@ -63,8 +69,8 @@
63
69
  "lib/preview-preferences.ts": "54fee4a98d18717064ce083a76e6fee5f6ddaead98455cfd24391641cb6aff6d",
64
70
  "lib/session.ts": "5e773637be922ce97c48db9cc2e48e86bc8a55eccad2cf3e8b2e7800ae1962b6",
65
71
  "lib/unicode.ts": "f19f01c0255a3e82a227b04dec1c95457cbd6c0834387dcd857037828b1245f6",
66
- "ui/client/draw.ts": "e2e078db48bf2d778e8eb4d931503082a7b41c88a37e3d7255a5781b197bf8a8",
67
- "ui/client/help.ts": "e70b019d48999c837f97c6ad97a709a3a3296daea015b1a558c13872ff43a8f0",
72
+ "ui/client/draw.ts": "7448f06a066527619e509442d69b4e83356af7c5b42c7817ac85a5c2f4baad55",
73
+ "ui/client/help.ts": "d6488d2095f3e945b2cb5579ca43aa08e04c51ef8769b9b05de85ffbb37b01fb",
68
74
  "ui/client/surface.ts": "17aeb5eeb201c2e92a2742ac7d7d07ecc3bc555f5c1f7d8c8799500a1212a7f0",
69
75
  "ui/components/catalog.ts": "aceb7bf838514497aa8d5bcb2ca48b1fa7a2a969eb842ea8000cb1f84600a29d",
70
76
  "ui/components/preview.ts": "f7aab61c18b2f5ca77bdae302a803da602e79ed7c1f00f27297dec9d5bfbfaab",
@@ -1,3 +1,5 @@
1
+ import { changesView } from '../../lib/editor/change-review.ts';
2
+ import { reuseView } from '../../lib/editor/reuse-manager.ts';
1
3
  import { packageView } from '../../lib/editor/package-manager.ts';
2
4
  import { diagnosisLines } from '../../lib/editor/diagnosis-view.ts';
3
5
  import { previewWidth } from '../../lib/editor/preview-settings.ts';
@@ -63,7 +65,8 @@ export function draw(ui: ClientElements, view: View, columns: number, rows: numb
63
65
  : '');
64
66
  const content: RenderElement[] = [];
65
67
  let title = '';
66
- if(e.packages){title=tr('package.ui.title');content.push(...packageView({...e.packages,input:e.packages.input?{...e.packages.input}:null},view.language??'en',inner,layout.bodyRows).map(row=>line(row.text,rowStyle(row.selected===true))));
68
+ if(e.changeReview||e.reuse){title=tr(e.changeReview?'history.title':'reuse.'+e.reuse!.kind);content.push(...(e.changeReview?changesView(e,view.language??'en',inner,layout.bodyRows):reuseView(e,view.language??'en',inner,layout.bodyRows)).map(row=>line(row.text,rowStyle(row.selected===true))));
69
+ } else if(e.packages){title=tr('package.ui.title');content.push(...packageView({...e.packages,input:e.packages.input?{...e.packages.input}:null},view.language??'en',inner,layout.bodyRows).map(row=>line(row.text,rowStyle(row.selected===true))));
67
70
  } else if(e.diagnosis){title=tr('diagnosis.title');const lines=diagnosisLines(e,view.language??'en',inner),capacity=Math.max(1,layout.bodyRows-1),start=Math.min(e.diagnosis.scroll,Math.max(0,lines.length-capacity));content.push(...lines.slice(start,start+capacity).map(text=>line(text)));content.push(line(`${start+1}–${Math.min(lines.length,start+capacity)}/${lines.length}`,styles.muted));
68
71
  } else if(e.colors){title=tr('colors.title');content.push(...colorsView(e,view.language ?? 'en',inner,layout.bodyRows).map(row=>previewLine(ui,row.spans,inner,view.previewBackground ?? 'dark')));
69
72
  } else if(e.alignmentManager) {
@@ -11,6 +11,7 @@ const focus: Shortcut = { key: 'Esc', label: 'focus' };
11
11
  export function editorShortcuts(view: View): Shortcut[][] {
12
12
  const e = view.editor;
13
13
  if (!e) return [[focus]];
14
+ if(e.changeReview||e.reuse)return [[{key:'Ctrl+G',label:'back'},focus],[{key:'↑↓ PgUp/PgDn',label:'scroll'}]];
14
15
  if(e.packages)return [[{key:'Enter',label:'select'},{key:'R',label:'reload'},{key:'C',label:'cancel'},{key:'Q',label:'close'},focus],[{key:'↑↓',label:'select'},{key:'PgUp/PgDn',label:'page'},{key:'L',label:'reload'}]];
15
16
  if (view.busy) return [[focus]];
16
17
  if(e.colors)return [[{key:'Ctrl+S',label:'accept draft'},{key:'Ctrl+G',label:'back'},focus],[{key:'↑↓',label:'select'},{key:'Enter',label:'edit'}]];
@@ -73,7 +74,7 @@ export function editorShortcuts(view: View): Shortcut[][] {
73
74
  }
74
75
  }
75
76
  if (view.error && e.page !== 'settings') actions.splice(actions.length - 1, 0, { key: 'R', label: 'reload' });
76
- return [actions, contextual,[{key:'Ctrl+V/W/N',label:'preview'}]];
77
+ return [actions, contextual,[{key:'Ctrl+_/R',label:'undo / redo'},{key:'Ctrl+T',label:'changes'},{key:'Ctrl+V/W/N',label:'preview'}]];
77
78
  }
78
79
 
79
80
  /** Share footer and viewport budgets between drawing and keyboard paging. */
@@ -84,7 +85,7 @@ export function editorLayout(view: View, columns: number, rows: number) {
84
85
  const limit = Math.max(1, rows - (framed ? 10 : 8));
85
86
  let footer = shortcutRows(groups, columns);
86
87
  if (footer.length > limit) footer = shortcutRows(groups, columns, true);
87
- for (const key of ['Ctrl+V/W/N','V', 'R', 'Esc', '↑↓', '←→', '/', '←→ Home/End', 'Ctrl+U']) {
88
+ for (const key of ['Ctrl+_/R','Ctrl+T','Ctrl+V/W/N','V', 'R', 'Esc', '↑↓', '←→', '/', '←→ Home/End', 'Ctrl+U']) {
88
89
  if (footer.length <= limit) break;
89
90
  groups = groups.map((group) => group.filter((hint) => hint.key !== key));
90
91
  footer = shortcutRows(groups, columns, true);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statusline-runtime",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "Native task timing and optional advanced statusline observations",
5
5
  "author": {
6
6
  "name": "fbincon"
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "backend_version": "3.12.0",
4
- "mod_version": "3.12.0",
3
+ "backend_version": "3.13.0",
4
+ "mod_version": "3.13.0",
5
5
  "protocol_version": 3,
6
6
  "files": {
7
- ".claude-plugin/plugin.json": "06ec545815a560be85e4ab5e996805d35747c01101dbda7ad623e7cff5bbece8",
7
+ ".claude-plugin/plugin.json": "9290b947c0a98b81efaa036146269266d028b79920a9190034e8fd7ebe23d7a6",
8
8
  "hooks/hooks.json": "b57d3d1b4b71a64712aab61b6c53be6b74ab56c8c2b38deec60e343cf055955d",
9
9
  "hooks/observe.ts": "fde36b17cf40454c475db2d1b381571c7b1706c3d90937e2d8245b399b8e9dca",
10
10
  "lib/checklists.ts": "88dc407841f917527e70ed5f03c55cdabb9224b077e4765da92f2f5d9654a904",
@@ -1,5 +1,5 @@
1
1
  import type { Language } from "../i18n/registry.js";
2
- export declare const PROTOCOL_VERSION: 28;
2
+ export declare const PROTOCOL_VERSION: 29;
3
3
  export declare const ITEM_DEFAULTS: {
4
4
  label: null;
5
5
  icon: null;
@@ -544,7 +544,7 @@ export declare const SEPARATORSTYLE_VALUES: readonly ["classic", "compact", "pow
544
544
  export declare const SCOPELABELS_VALUES: readonly ["off", "when-subagents", "always"];
545
545
  export declare const STATUSLINELANGUAGE_VALUES: readonly ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"];
546
546
  export declare const UNAVAILABLEREASON_VALUES: readonly ["not_observed", "unsupported_host", "unknown_host_version", "source_unavailable", "condition_not_met", "runtime_disabled", "native_timing_disabled", "wait_coverage_missing", "stale", "incomplete", "ambiguous_owner", "observed_only", "missing_stream", "synthetic_response", "abnormal_clock", "inconsistent_request", "request_join_unavailable"];
547
- export declare const OPERATIONS: readonly ["package_execute_start", "package_execute_detach", "package_execute_status", "package_cleanup_review", "package_cleanup_apply", "source_inspect", "source_bindings_review", "source_bindings_cleanup", "source_draft", "package_status", "package_review_start", "package_review_status", "package_review_cancel", "sources_read", "sources_apply", "source_review", "source_context", "source_refresh", "source_status", "source_release", "source_cancel", "source_diagnose", "describe", "read", "preview", "apply", "import", "export", "preset", "read_ui_preferences", "set_ui_language", "review_import", "explain", "diagnose", "diagnose_file", "profiles_read", "profiles_apply", "profile_import", "profile_export", "task_details"];
547
+ export declare const OPERATIONS: readonly ["review_reuse", "package_execute_start", "package_execute_detach", "package_execute_status", "package_cleanup_review", "package_cleanup_apply", "source_inspect", "source_bindings_review", "source_bindings_cleanup", "source_draft", "package_status", "package_review_start", "package_review_status", "package_review_cancel", "sources_read", "sources_apply", "source_review", "source_context", "source_refresh", "source_status", "source_release", "source_cancel", "source_diagnose", "describe", "read", "preview", "apply", "import", "export", "preset", "read_ui_preferences", "set_ui_language", "review_import", "explain", "diagnose", "diagnose_file", "profiles_read", "profiles_apply", "profile_import", "profile_export", "task_details"];
548
548
  export type Operation = typeof OPERATIONS[number];
549
549
  export interface ItemGuidance {
550
550
  source_kinds: string[];
@@ -1244,6 +1244,34 @@ export interface ImportReviewResult {
1244
1244
  draft: Draft;
1245
1245
  changes: ImportChange[];
1246
1246
  }
1247
+ export type ReuseRequest = {
1248
+ kind: 'style';
1249
+ scope: Scope;
1250
+ from_scope: Scope;
1251
+ from_id: string;
1252
+ to_ids: string[];
1253
+ fields: string[];
1254
+ } | {
1255
+ kind: 'groups';
1256
+ scope: Scope;
1257
+ group_ids: string[];
1258
+ references: 'review' | 'expand' | 'exclude';
1259
+ explicit: boolean;
1260
+ };
1261
+ export interface ReuseReviewResult extends ImportReviewResult {
1262
+ mappings: {
1263
+ instances: Record<string, string>;
1264
+ groups: Record<string, string>;
1265
+ alignments: Record<string, string>;
1266
+ };
1267
+ dependencies: string[];
1268
+ unresolved: {
1269
+ scope: Scope;
1270
+ id: string;
1271
+ hint: string;
1272
+ }[];
1273
+ blocked: string[];
1274
+ }
1247
1275
  export interface ExportResult {
1248
1276
  path: string;
1249
1277
  }
@@ -1307,6 +1335,7 @@ export interface ResultMap {
1307
1335
  apply: ApplyResult;
1308
1336
  import: TransferResult;
1309
1337
  review_import: ImportReviewResult;
1338
+ review_reuse: ReuseReviewResult;
1310
1339
  export: ExportResult;
1311
1340
  preset: TransferResult;
1312
1341
  read_ui_preferences: UiPreferencesResult;
@@ -1323,7 +1352,7 @@ export interface Request {
1323
1352
  operation: Operation;
1324
1353
  payload: unknown;
1325
1354
  }
1326
- export type Result = PackageExecution | PackageCleanupReview | PackageStatus | PackageReviewJob | DiagnoseResult | ExplainResult | PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult | ProfilesResult | ProfileImportResult | TaskDetails;
1355
+ export type Result = ReuseReviewResult | PackageExecution | PackageCleanupReview | PackageStatus | PackageReviewJob | DiagnoseResult | ExplainResult | PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult | ProfilesResult | ProfileImportResult | TaskDetails;
1327
1356
  export type Response = {
1328
1357
  protocol_version: typeof PROTOCOL_VERSION;
1329
1358
  result: Result;
@@ -2,7 +2,7 @@
2
2
  import { THEME_IDS } from "../editor/themes.js";
3
3
  import { LANGUAGES } from "../i18n/registry.js";
4
4
  import { MAIN_ITEM_IDS as generatedMAIN_ITEM_IDS, SUBAGENT_ITEM_IDS as generatedSUBAGENT_ITEM_IDS, PRESETS as generatedPRESETS } from "./generated-catalog.js";
5
- export const PROTOCOL_VERSION = 28;
5
+ export const PROTOCOL_VERSION = 29;
6
6
  export const ITEM_DEFAULTS = { "label": null, "icon": null, "priority": 50, "max_width": null, "formatting": {}, "foreground": null, "background": null, "visibility": "always", "visibility_threshold": 70 };
7
7
  export const VISIBILITY_ITEMS = { "main": { "git": "git-dirty", "git-changes": "git-dirty", "active-agents": "nonzero", "task-progress": "nonzero", "context-used": "used-at-least", "context-remaining": "used-at-least", "five-hour-limit": "used-at-least", "weekly-limit": "used-at-least", "spend-limit": "used-at-least" }, "subagent": { "context-used": "used-at-least", "context-remaining": "used-at-least" } };
8
8
  export const GUIDANCE_KEYS = { "source_kinds": ["configuration", "official_input", "local_git", "local_system", "transcript", "local_state", "lifecycle", "native_timing", "live_metrics", "telemetry"], "scopes": ["main", "main_context", "session", "all_sessions", "task", "subagent", "subagent_context", "repository", "local", "latest_request"], "requirements": ["observed_field", "subagent_rows", "agent_context", "configured_effort", "agent_effort_optional", "git_repository", "git_upstream", "git_base", "pull_request", "worktree_session", "usage_records", "task_observation", "native_timing", "complete_waits", "live_metrics", "owned_agents", "checklist_events", "tool_events", "complete_stream", "request_coverage", "existing_telemetry", "gateway", "gateway_284", "valid_window", "warm_cache", "fast_mode", "thinking", "agent_mode", "vim_mode", "context_observation", "cost_rate"] };
@@ -495,7 +495,7 @@ export const SEPARATORSTYLE_VALUES = ["classic", "compact", "powerline"];
495
495
  export const SCOPELABELS_VALUES = ["off", "when-subagents", "always"];
496
496
  export const STATUSLINELANGUAGE_VALUES = LANGUAGES;
497
497
  export const UNAVAILABLEREASON_VALUES = ["not_observed", "unsupported_host", "unknown_host_version", "source_unavailable", "condition_not_met", "runtime_disabled", "native_timing_disabled", "wait_coverage_missing", "stale", "incomplete", "ambiguous_owner", "observed_only", "missing_stream", "synthetic_response", "abnormal_clock", "inconsistent_request", "request_join_unavailable"];
498
- export const OPERATIONS = ['package_execute_start', 'package_execute_detach', 'package_execute_status', 'package_cleanup_review', 'package_cleanup_apply', 'source_inspect', 'source_bindings_review', 'source_bindings_cleanup', 'source_draft', 'package_status', 'package_review_start', 'package_review_status', 'package_review_cancel', 'sources_read', 'sources_apply', 'source_review', 'source_context', 'source_refresh', 'source_status', 'source_release', 'source_cancel', 'source_diagnose', 'describe', 'read', 'preview', 'apply', 'import', 'export', 'preset', 'read_ui_preferences', 'set_ui_language', 'review_import', 'explain', 'diagnose', 'diagnose_file', 'profiles_read', 'profiles_apply', 'profile_import', 'profile_export', 'task_details'];
498
+ export const OPERATIONS = ['review_reuse', 'package_execute_start', 'package_execute_detach', 'package_execute_status', 'package_cleanup_review', 'package_cleanup_apply', 'source_inspect', 'source_bindings_review', 'source_bindings_cleanup', 'source_draft', 'package_status', 'package_review_start', 'package_review_status', 'package_review_cancel', 'sources_read', 'sources_apply', 'source_review', 'source_context', 'source_refresh', 'source_status', 'source_release', 'source_cancel', 'source_diagnose', 'describe', 'read', 'preview', 'apply', 'import', 'export', 'preset', 'read_ui_preferences', 'set_ui_language', 'review_import', 'explain', 'diagnose', 'diagnose_file', 'profiles_read', 'profiles_apply', 'profile_import', 'profile_export', 'task_details'];
499
499
  export const POWERLINE_OPTIONS = Object.fromEntries(POWERLINE_FIELDS.map(field => [
500
500
  field.key.replaceAll('.', '-').replaceAll('_', '-'),
501
501
  { choices: field.kind === 'boolean' ? [true, false] : [...field.choices] },