@deepseek-harness-tui/dsh-tui 0.8.8 → 0.9.1

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 (467) hide show
  1. package/README.md +60 -238
  2. package/bin/dsh-tui.js +172 -5
  3. package/cordis.patch.yml +16 -4
  4. package/dsh-ecosystem-spec/protocols/profile-definitions.d.ts +13 -13
  5. package/dsh-ecosystem-spec/protocols/profile-definitions.js +59 -59
  6. package/dsh-ecosystem-spec/protocols/tui-channel-http.d.ts +15 -15
  7. package/dsh-ecosystem-spec/protocols/tui-channel-http.js +32 -32
  8. package/dsh-ecosystem-spec/protocols/tui-channel.d.ts +59 -59
  9. package/dsh-ecosystem-spec/protocols/tui-channel.js +166 -166
  10. package/dsh-ecosystem-spec/protocols/tui-contributions.d.ts +42 -42
  11. package/dsh-ecosystem-spec/protocols/tui-contributions.js +143 -143
  12. package/dsh-ecosystem-spec/registry/README.md +14 -14
  13. package/dsh-ecosystem-spec/registry/host-descriptor.tui.example.json +56 -56
  14. package/dsh-ecosystem-spec/registry/permissions-0.1.json +13 -13
  15. package/dsh-ecosystem-spec/registry/registry-0.15.json +149 -149
  16. package/lib/types/cc/hyperlink.d.ts +7 -1
  17. package/lib/types/cc/hyperlink.d.ts.map +1 -1
  18. package/lib/types/cc/hyperlink.js +3 -2
  19. package/lib/types/cc/markdown.d.ts.map +1 -1
  20. package/lib/types/cc/markdown.js +33 -3
  21. package/lib/types/cc/sessionColors.d.ts +27 -0
  22. package/lib/types/cc/sessionColors.d.ts.map +1 -0
  23. package/lib/types/cc/sessionColors.js +39 -0
  24. package/lib/types/commands.d.ts.map +1 -1
  25. package/lib/types/commands.js +10 -2
  26. package/lib/types/components/ActivityPicker.d.ts +4 -1
  27. package/lib/types/components/ActivityPicker.d.ts.map +1 -1
  28. package/lib/types/components/ActivityPicker.js +2 -2
  29. package/lib/types/components/AutoRecapRow.d.ts +23 -0
  30. package/lib/types/components/AutoRecapRow.d.ts.map +1 -0
  31. package/lib/types/components/AutoRecapRow.js +23 -0
  32. package/lib/types/components/BtwPanel.d.ts.map +1 -1
  33. package/lib/types/components/BtwPanel.js +1 -1
  34. package/lib/types/components/Chat/SubagentMessage.d.ts +2 -1
  35. package/lib/types/components/Chat/SubagentMessage.d.ts.map +1 -1
  36. package/lib/types/components/Chat/SubagentMessage.js +11 -3
  37. package/lib/types/components/ColorPicker.d.ts +17 -0
  38. package/lib/types/components/ColorPicker.d.ts.map +1 -0
  39. package/lib/types/components/ColorPicker.js +20 -0
  40. package/lib/types/components/CommandSuggestions.d.ts +23 -4
  41. package/lib/types/components/CommandSuggestions.d.ts.map +1 -1
  42. package/lib/types/components/CommandSuggestions.js +41 -14
  43. package/lib/types/components/ContextBarView.d.ts +33 -0
  44. package/lib/types/components/ContextBarView.d.ts.map +1 -0
  45. package/lib/types/components/ContextBarView.js +46 -0
  46. package/lib/types/components/EffortInputBorder.d.ts +12 -1
  47. package/lib/types/components/EffortInputBorder.d.ts.map +1 -1
  48. package/lib/types/components/EffortInputBorder.js +22 -5
  49. package/lib/types/components/EffortSlider.d.ts +4 -1
  50. package/lib/types/components/EffortSlider.d.ts.map +1 -1
  51. package/lib/types/components/EffortSlider.js +4 -2
  52. package/lib/types/components/ExtensionDialog.js +6 -2
  53. package/lib/types/components/FileActionsPanel.d.ts +22 -0
  54. package/lib/types/components/FileActionsPanel.d.ts.map +1 -0
  55. package/lib/types/components/FileActionsPanel.js +28 -0
  56. package/lib/types/components/FileSuggestions.d.ts +26 -7
  57. package/lib/types/components/FileSuggestions.d.ts.map +1 -1
  58. package/lib/types/components/FileSuggestions.js +39 -12
  59. package/lib/types/components/GoalTodoPanel.d.ts +26 -2
  60. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  61. package/lib/types/components/GoalTodoPanel.js +86 -17
  62. package/lib/types/components/HelpMenu.d.ts +7 -1
  63. package/lib/types/components/HelpMenu.d.ts.map +1 -1
  64. package/lib/types/components/HelpMenu.js +12 -4
  65. package/lib/types/components/HistorySearchDialog.d.ts +4 -1
  66. package/lib/types/components/HistorySearchDialog.d.ts.map +1 -1
  67. package/lib/types/components/HistorySearchDialog.js +2 -2
  68. package/lib/types/components/LangPicker.d.ts +14 -0
  69. package/lib/types/components/LangPicker.d.ts.map +1 -0
  70. package/lib/types/components/LangPicker.js +17 -0
  71. package/lib/types/components/LoadedContextPanel.d.ts.map +1 -1
  72. package/lib/types/components/LoadedContextPanel.js +3 -1
  73. package/lib/types/components/Markdown.d.ts.map +1 -1
  74. package/lib/types/components/Markdown.js +12 -3
  75. package/lib/types/components/MessageList.d.ts +45 -2
  76. package/lib/types/components/MessageList.d.ts.map +1 -1
  77. package/lib/types/components/MessageList.js +560 -41
  78. package/lib/types/components/ModelPicker.d.ts +27 -2
  79. package/lib/types/components/ModelPicker.d.ts.map +1 -1
  80. package/lib/types/components/ModelPicker.js +26 -6
  81. package/lib/types/components/PermissionsPicker.d.ts +21 -0
  82. package/lib/types/components/PermissionsPicker.d.ts.map +1 -0
  83. package/lib/types/components/PermissionsPicker.js +27 -0
  84. package/lib/types/components/PlanPicker.d.ts +15 -0
  85. package/lib/types/components/PlanPicker.d.ts.map +1 -0
  86. package/lib/types/components/PlanPicker.js +18 -0
  87. package/lib/types/components/PresetPicker.d.ts +4 -1
  88. package/lib/types/components/PresetPicker.d.ts.map +1 -1
  89. package/lib/types/components/PresetPicker.js +2 -2
  90. package/lib/types/components/PromptInput.d.ts +4 -3
  91. package/lib/types/components/PromptInput.d.ts.map +1 -1
  92. package/lib/types/components/PromptInput.js +602 -75
  93. package/lib/types/components/RecapPanel.d.ts +25 -0
  94. package/lib/types/components/RecapPanel.d.ts.map +1 -0
  95. package/lib/types/components/RecapPanel.js +55 -0
  96. package/lib/types/components/RewindPicker.d.ts +12 -1
  97. package/lib/types/components/RewindPicker.d.ts.map +1 -1
  98. package/lib/types/components/RewindPicker.js +6 -4
  99. package/lib/types/components/ScrollbarGutter.d.ts +28 -0
  100. package/lib/types/components/ScrollbarGutter.d.ts.map +1 -0
  101. package/lib/types/components/ScrollbarGutter.js +119 -0
  102. package/lib/types/components/Select.d.ts +8 -1
  103. package/lib/types/components/Select.d.ts.map +1 -1
  104. package/lib/types/components/Select.js +4 -2
  105. package/lib/types/components/SkillsPicker.d.ts +4 -1
  106. package/lib/types/components/SkillsPicker.d.ts.map +1 -1
  107. package/lib/types/components/SkillsPicker.js +2 -2
  108. package/lib/types/components/SubagentCard.d.ts +2 -1
  109. package/lib/types/components/SubagentCard.d.ts.map +1 -1
  110. package/lib/types/components/SubagentCard.js +9 -2
  111. package/lib/types/components/SubagentDashboard.d.ts +4 -0
  112. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  113. package/lib/types/components/SubagentDashboard.js +9 -1
  114. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  115. package/lib/types/components/SubagentDetailScene.js +5 -4
  116. package/lib/types/components/SuggestionCard.d.ts +65 -0
  117. package/lib/types/components/SuggestionCard.d.ts.map +1 -0
  118. package/lib/types/components/SuggestionCard.js +77 -0
  119. package/lib/types/components/ThemePicker.d.ts +4 -1
  120. package/lib/types/components/ThemePicker.d.ts.map +1 -1
  121. package/lib/types/components/ThemePicker.js +2 -2
  122. package/lib/types/components/ThinkingToggle.d.ts +4 -1
  123. package/lib/types/components/ThinkingToggle.d.ts.map +1 -1
  124. package/lib/types/components/ThinkingToggle.js +2 -2
  125. package/lib/types/components/TimelineRail.d.ts +53 -0
  126. package/lib/types/components/TimelineRail.d.ts.map +1 -0
  127. package/lib/types/components/TimelineRail.js +197 -0
  128. package/lib/types/components/WorkspaceFlowPicker.d.ts +6 -1
  129. package/lib/types/components/WorkspaceFlowPicker.d.ts.map +1 -1
  130. package/lib/types/components/WorkspaceFlowPicker.js +4 -2
  131. package/lib/types/components/WorkspaceMenuPicker.d.ts +19 -0
  132. package/lib/types/components/WorkspaceMenuPicker.d.ts.map +1 -0
  133. package/lib/types/components/WorkspaceMenuPicker.js +19 -0
  134. package/lib/types/components/WorkspacePicker.d.ts +4 -1
  135. package/lib/types/components/WorkspacePicker.d.ts.map +1 -1
  136. package/lib/types/components/WorkspacePicker.js +2 -2
  137. package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
  138. package/lib/types/components/approvals/ApprovalPanel.js +5 -1
  139. package/lib/types/components/design-system/ListItem.d.ts +8 -1
  140. package/lib/types/components/design-system/ListItem.d.ts.map +1 -1
  141. package/lib/types/components/design-system/ListItem.js +8 -3
  142. package/lib/types/components/design-system/ThemeProvider.d.ts +7 -0
  143. package/lib/types/components/design-system/ThemeProvider.d.ts.map +1 -1
  144. package/lib/types/components/design-system/ThemeProvider.js +2 -1
  145. package/lib/types/components/messages/AssistantTextMessage.d.ts +5 -2
  146. package/lib/types/components/messages/AssistantTextMessage.d.ts.map +1 -1
  147. package/lib/types/components/messages/AssistantTextMessage.js +6 -2
  148. package/lib/types/components/messages/AssistantThinkingMessage.d.ts +2 -1
  149. package/lib/types/components/messages/AssistantThinkingMessage.d.ts.map +1 -1
  150. package/lib/types/components/messages/AssistantThinkingMessage.js +10 -4
  151. package/lib/types/components/messages/AssistantToolUseMessage.d.ts +15 -1
  152. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  153. package/lib/types/components/messages/AssistantToolUseMessage.js +37 -7
  154. package/lib/types/components/messages/UserPromptMessage.d.ts +2 -1
  155. package/lib/types/components/messages/UserPromptMessage.d.ts.map +1 -1
  156. package/lib/types/components/questions/AskUserQuestionPanel.d.ts +7 -3
  157. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  158. package/lib/types/components/questions/AskUserQuestionPanel.js +75 -11
  159. package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
  160. package/lib/types/components/questions/PlanReviewPanel.js +13 -2
  161. package/lib/types/components/sessions/SessionListRow.d.ts +4 -1
  162. package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
  163. package/lib/types/components/sessions/SessionListRow.js +4 -2
  164. package/lib/types/components/trajectory/HotspotView.d.ts +7 -1
  165. package/lib/types/components/trajectory/HotspotView.d.ts.map +1 -1
  166. package/lib/types/components/trajectory/HotspotView.js +8 -2
  167. package/lib/types/components/trajectory/Ledger.d.ts +9 -1
  168. package/lib/types/components/trajectory/Ledger.d.ts.map +1 -1
  169. package/lib/types/components/trajectory/Ledger.js +23 -5
  170. package/lib/types/components/trajectory/WaveBand.d.ts +10 -1
  171. package/lib/types/components/trajectory/WaveBand.d.ts.map +1 -1
  172. package/lib/types/components/trajectory/WaveBand.js +7 -2
  173. package/lib/types/dsh-adapter/channel.d.ts +117 -7
  174. package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
  175. package/lib/types/dsh-adapter/channel.js +1301 -122
  176. package/lib/types/dsh-adapter/compat/index.d.ts +8 -6
  177. package/lib/types/dsh-adapter/compat/index.d.ts.map +1 -1
  178. package/lib/types/dsh-adapter/compat/index.js +8 -6
  179. package/lib/types/dsh-adapter/compat/sessionLog.d.ts +150 -0
  180. package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
  181. package/lib/types/dsh-adapter/compat/sessionLog.js +518 -41
  182. package/lib/types/dsh-adapter/contract.d.ts +1 -1
  183. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  184. package/lib/types/dsh-adapter/contract.js +1 -0
  185. package/lib/types/dsh-adapter/extension-events.d.ts +1 -1
  186. package/lib/types/dsh-adapter/extension-events.d.ts.map +1 -1
  187. package/lib/types/dsh-adapter/index.d.ts +20 -2
  188. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  189. package/lib/types/dsh-adapter/index.js +9 -1
  190. package/lib/types/dsh-adapter/plugin.d.ts +0 -9
  191. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  192. package/lib/types/dsh-adapter/plugin.js +453 -14
  193. package/lib/types/dsh-adapter/presets.d.ts +18 -0
  194. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  195. package/lib/types/dsh-adapter/presets.js +31 -0
  196. package/lib/types/dsh-adapter/providerWizard.d.ts +29 -1
  197. package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
  198. package/lib/types/dsh-adapter/providerWizard.js +89 -5
  199. package/lib/types/dsh-adapter/questions.d.ts +19 -2
  200. package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
  201. package/lib/types/dsh-adapter/questions.js +53 -10
  202. package/lib/types/dsh-adapter/recap.d.ts +49 -0
  203. package/lib/types/dsh-adapter/recap.d.ts.map +1 -0
  204. package/lib/types/dsh-adapter/recap.js +121 -0
  205. package/lib/types/dsh-adapter/sessionTree.d.ts +314 -0
  206. package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -0
  207. package/lib/types/dsh-adapter/sessionTree.js +954 -0
  208. package/lib/types/dsh-adapter/shortcuts.d.ts +15 -44
  209. package/lib/types/dsh-adapter/shortcuts.d.ts.map +1 -1
  210. package/lib/types/dsh-adapter/shortcuts.js +28 -165
  211. package/lib/types/dsh-adapter/types.d.ts +1 -1
  212. package/lib/types/dsh-adapter/types.d.ts.map +1 -1
  213. package/lib/types/herdr.js +1 -1
  214. package/lib/types/i18n.d.ts +770 -181
  215. package/lib/types/i18n.d.ts.map +1 -1
  216. package/lib/types/i18n.js +257 -80
  217. package/lib/types/ink/components/AlternateScreen.d.ts.map +1 -1
  218. package/lib/types/ink/components/AlternateScreen.js +13 -1
  219. package/lib/types/ink/components/App.d.ts +12 -1
  220. package/lib/types/ink/components/App.d.ts.map +1 -1
  221. package/lib/types/ink/components/App.js +101 -4
  222. package/lib/types/ink/components/ClockContext.d.ts.map +1 -1
  223. package/lib/types/ink/components/ClockContext.js +2 -0
  224. package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
  225. package/lib/types/ink/components/ScrollBox.js +170 -91
  226. package/lib/types/ink/constants.d.ts +9 -0
  227. package/lib/types/ink/constants.d.ts.map +1 -1
  228. package/lib/types/ink/constants.js +9 -0
  229. package/lib/types/ink/events/click-event.d.ts +7 -16
  230. package/lib/types/ink/events/click-event.d.ts.map +1 -1
  231. package/lib/types/ink/events/click-event.js +16 -19
  232. package/lib/types/ink/events/event-handlers.d.ts +11 -1
  233. package/lib/types/ink/events/event-handlers.d.ts.map +1 -1
  234. package/lib/types/ink/events/event-handlers.js +2 -0
  235. package/lib/types/ink/events/input-event.d.ts +9 -0
  236. package/lib/types/ink/events/input-event.d.ts.map +1 -1
  237. package/lib/types/ink/events/input-event.js +4 -0
  238. package/lib/types/ink/events/pointer-event.d.ts +61 -0
  239. package/lib/types/ink/events/pointer-event.d.ts.map +1 -0
  240. package/lib/types/ink/events/pointer-event.js +61 -0
  241. package/lib/types/ink/events/wheel-event.d.ts +17 -0
  242. package/lib/types/ink/events/wheel-event.d.ts.map +1 -0
  243. package/lib/types/ink/events/wheel-event.js +20 -0
  244. package/lib/types/ink/geometry-trace.d.ts +51 -0
  245. package/lib/types/ink/geometry-trace.d.ts.map +1 -0
  246. package/lib/types/ink/geometry-trace.js +83 -0
  247. package/lib/types/ink/hit-test.d.ts +56 -1
  248. package/lib/types/ink/hit-test.d.ts.map +1 -1
  249. package/lib/types/ink/hit-test.js +146 -8
  250. package/lib/types/ink/ink.d.ts +58 -1
  251. package/lib/types/ink/ink.d.ts.map +1 -1
  252. package/lib/types/ink/ink.js +230 -29
  253. package/lib/types/ink/log-update.d.ts.map +1 -1
  254. package/lib/types/ink/log-update.js +21 -0
  255. package/lib/types/ink/node-cache.d.ts +5 -0
  256. package/lib/types/ink/node-cache.d.ts.map +1 -1
  257. package/lib/types/ink/parse-keypress.d.ts +8 -0
  258. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  259. package/lib/types/ink/parse-keypress.js +101 -12
  260. package/lib/types/ink/render-node-to-output.d.ts +10 -0
  261. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  262. package/lib/types/ink/render-node-to-output.js +111 -18
  263. package/lib/types/ink/timeline-rail.d.ts +138 -0
  264. package/lib/types/ink/timeline-rail.d.ts.map +1 -0
  265. package/lib/types/ink/timeline-rail.js +179 -0
  266. package/lib/types/ink/wrap-text.d.ts.map +1 -1
  267. package/lib/types/ink/wrap-text.js +47 -5
  268. package/lib/types/migrationPrefs.d.ts +60 -0
  269. package/lib/types/migrationPrefs.d.ts.map +1 -0
  270. package/lib/types/migrationPrefs.js +97 -0
  271. package/lib/types/modelGroups.d.ts +72 -0
  272. package/lib/types/modelGroups.d.ts.map +1 -0
  273. package/lib/types/modelGroups.js +97 -0
  274. package/lib/types/modelRecents.d.ts +39 -0
  275. package/lib/types/modelRecents.d.ts.map +1 -0
  276. package/lib/types/modelRecents.js +97 -0
  277. package/lib/types/native-ts/yoga-layout/index.d.ts +11 -0
  278. package/lib/types/native-ts/yoga-layout/index.d.ts.map +1 -1
  279. package/lib/types/native-ts/yoga-layout/index.js +31 -1
  280. package/lib/types/oauth.d.ts +15 -0
  281. package/lib/types/oauth.d.ts.map +1 -0
  282. package/lib/types/oauth.js +14 -0
  283. package/lib/types/reload.d.ts +109 -0
  284. package/lib/types/reload.d.ts.map +1 -0
  285. package/lib/types/reload.js +118 -0
  286. package/lib/types/screens/Chat.d.ts +3 -1
  287. package/lib/types/screens/Chat.d.ts.map +1 -1
  288. package/lib/types/screens/Chat.js +1377 -371
  289. package/lib/types/screens/SessionBrowser.d.ts.map +1 -1
  290. package/lib/types/screens/SessionBrowser.js +56 -29
  291. package/lib/types/screens/SessionTree.d.ts +27 -0
  292. package/lib/types/screens/SessionTree.d.ts.map +1 -0
  293. package/lib/types/screens/SessionTree.js +555 -0
  294. package/lib/types/screens/Settings.d.ts.map +1 -1
  295. package/lib/types/screens/Settings.js +64 -22
  296. package/lib/types/screens/StatusLine.d.ts +0 -8
  297. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  298. package/lib/types/screens/StatusLine.js +224 -45
  299. package/lib/types/screens/StatusMetrics.d.ts +35 -3
  300. package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
  301. package/lib/types/screens/StatusMetrics.js +63 -8
  302. package/lib/types/screens/TrajectoryScene.d.ts.map +1 -1
  303. package/lib/types/screens/TrajectoryScene.js +81 -14
  304. package/lib/types/screens/chatOverlay.d.ts +237 -0
  305. package/lib/types/screens/chatOverlay.d.ts.map +1 -0
  306. package/lib/types/screens/chatOverlay.js +116 -0
  307. package/lib/types/tips.d.ts.map +1 -1
  308. package/lib/types/tips.js +64 -10
  309. package/lib/types/tuiDisplayPrefs.d.ts +15 -0
  310. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  311. package/lib/types/tuiDisplayPrefs.js +9 -0
  312. package/lib/types/update.d.ts +139 -0
  313. package/lib/types/update.d.ts.map +1 -1
  314. package/lib/types/update.js +382 -30
  315. package/lib/types/utils/debug.d.ts +10 -0
  316. package/lib/types/utils/debug.d.ts.map +1 -1
  317. package/lib/types/utils/debug.js +24 -0
  318. package/lib/types/utils/fileTarget.d.ts +46 -0
  319. package/lib/types/utils/fileTarget.d.ts.map +1 -0
  320. package/lib/types/utils/fileTarget.js +178 -0
  321. package/lib/types/utils/keymap.d.ts +134 -0
  322. package/lib/types/utils/keymap.d.ts.map +1 -0
  323. package/lib/types/utils/keymap.js +311 -0
  324. package/lib/types/utils/mentions.d.ts +25 -2
  325. package/lib/types/utils/mentions.d.ts.map +1 -1
  326. package/lib/types/utils/mentions.js +69 -10
  327. package/lib/types/utils/openExternal.d.ts +50 -0
  328. package/lib/types/utils/openExternal.d.ts.map +1 -0
  329. package/lib/types/utils/openExternal.js +170 -0
  330. package/lib/types/utils/paths.d.ts.map +1 -1
  331. package/lib/types/utils/paths.js +1 -0
  332. package/node_modules/@deepseek-harness-tui/dsh-auth/LICENSE +21 -0
  333. package/node_modules/@deepseek-harness-tui/dsh-auth/README.md +140 -0
  334. package/node_modules/@deepseek-harness-tui/dsh-auth/cordis.patch.yml +11 -0
  335. package/node_modules/@deepseek-harness-tui/dsh-auth/dsh-plugin.json +44 -0
  336. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/command.d.ts +14 -0
  337. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/command.js +67 -0
  338. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/credentials.d.ts +64 -0
  339. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/credentials.js +170 -0
  340. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/index.d.ts +79 -0
  341. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/index.js +196 -0
  342. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/interaction.d.ts +68 -0
  343. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/interaction.js +193 -0
  344. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/opener.d.ts +32 -0
  345. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/opener.js +101 -0
  346. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/profiles.d.ts +31 -0
  347. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/profiles.js +68 -0
  348. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/service.d.ts +69 -0
  349. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/service.js +129 -0
  350. package/node_modules/@deepseek-harness-tui/dsh-auth/package.json +70 -0
  351. package/node_modules/@dsh-std/command/CHANGELOG.md +8 -8
  352. package/node_modules/@dsh-std/command/LICENSE +21 -21
  353. package/node_modules/@dsh-std/command/README.md +26 -26
  354. package/node_modules/@dsh-std/command/README.zh.md +28 -28
  355. package/node_modules/@dsh-std/command/lib/index.js.map +1 -1
  356. package/node_modules/@dsh-std/command/package.json +22 -22
  357. package/node_modules/@dsh-std/connection/CHANGELOG.md +8 -8
  358. package/node_modules/@dsh-std/connection/LICENSE +21 -21
  359. package/node_modules/@dsh-std/connection/README.md +42 -42
  360. package/node_modules/@dsh-std/connection/README.zh.md +42 -42
  361. package/node_modules/@dsh-std/connection/lib/index.js.map +1 -1
  362. package/node_modules/@dsh-std/connection/lib/memory.js.map +1 -1
  363. package/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js.map +1 -1
  364. package/node_modules/@dsh-std/connection/package.json +20 -20
  365. package/node_modules/@dsh-std/core/CHANGELOG.md +8 -8
  366. package/node_modules/@dsh-std/core/LICENSE +21 -21
  367. package/node_modules/@dsh-std/core/README.md +13 -13
  368. package/node_modules/@dsh-std/core/README.zh.md +13 -13
  369. package/node_modules/@dsh-std/core/lib/index.js.map +1 -1
  370. package/node_modules/@dsh-std/core/package.json +21 -21
  371. package/node_modules/@dsh-std/manifest/CHANGELOG.md +9 -9
  372. package/node_modules/@dsh-std/manifest/LICENSE +21 -21
  373. package/node_modules/@dsh-std/manifest/README.md +5 -5
  374. package/node_modules/@dsh-std/manifest/README.zh.md +5 -5
  375. package/node_modules/@dsh-std/manifest/lib/index.js.map +1 -1
  376. package/node_modules/@dsh-std/manifest/package.json +20 -20
  377. package/node_modules/@dsh-std/manifest/schema/dsh-plugin-0.15.schema.json +144 -144
  378. package/node_modules/@dsh-std/messages/CHANGELOG.md +8 -8
  379. package/node_modules/@dsh-std/messages/LICENSE +21 -21
  380. package/node_modules/@dsh-std/messages/README.md +5 -5
  381. package/node_modules/@dsh-std/messages/README.zh.md +7 -7
  382. package/node_modules/@dsh-std/messages/lib/index.js.map +1 -1
  383. package/node_modules/@dsh-std/messages/package.json +20 -20
  384. package/node_modules/@dsh-std/messages/schema/message-observer-envelope-0.15.schema.json +54 -54
  385. package/node_modules/@dsh-std/presentation/CHANGELOG.md +9 -9
  386. package/node_modules/@dsh-std/presentation/LICENSE +21 -21
  387. package/node_modules/@dsh-std/presentation/README.md +27 -27
  388. package/node_modules/@dsh-std/presentation/README.zh.md +29 -29
  389. package/node_modules/@dsh-std/presentation/lib/callback.js.map +1 -1
  390. package/node_modules/@dsh-std/presentation/lib/index.js.map +1 -1
  391. package/node_modules/@dsh-std/presentation/package.json +25 -25
  392. package/node_modules/@dsh-std/storage/CHANGELOG.md +8 -8
  393. package/node_modules/@dsh-std/storage/LICENSE +21 -21
  394. package/node_modules/@dsh-std/storage/README.md +5 -5
  395. package/node_modules/@dsh-std/storage/README.zh.md +7 -7
  396. package/node_modules/@dsh-std/storage/lib/index.js.map +1 -1
  397. package/node_modules/@dsh-std/storage/package.json +20 -20
  398. package/node_modules/@dsh-std/storage/schema/local-storage-0.15.schema.json +56 -56
  399. package/package.json +19 -5
  400. package/presets/liangshen/.dsh-tui-managed.json +1 -1
  401. package/presets/liangshen/instruction-hint.mjs +8 -0
  402. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/CHANGELOG.md +8 -8
  403. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/LICENSE +21 -21
  404. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/README.md +42 -42
  405. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/README.zh.md +42 -42
  406. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/index.js.map +1 -1
  407. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/memory.js.map +1 -1
  408. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js.map +1 -1
  409. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/package.json +20 -20
  410. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/CHANGELOG.md +8 -8
  411. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/LICENSE +21 -21
  412. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/README.md +13 -13
  413. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/README.zh.md +13 -13
  414. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/lib/index.js.map +1 -1
  415. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/package.json +21 -21
  416. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/CHANGELOG.md +9 -9
  417. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/LICENSE +21 -21
  418. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/README.md +5 -5
  419. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/README.zh.md +5 -5
  420. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/lib/index.js.map +1 -1
  421. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/package.json +20 -20
  422. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/schema/dsh-plugin-0.15.schema.json +144 -144
  423. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/CHANGELOG.md +9 -9
  424. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/LICENSE +21 -21
  425. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/README.md +27 -27
  426. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/README.zh.md +29 -29
  427. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/callback.js.map +1 -1
  428. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/index.js.map +1 -1
  429. package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/package.json +25 -25
  430. package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/CHANGELOG.md +8 -8
  431. package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/LICENSE +21 -21
  432. package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/README.md +13 -13
  433. package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/README.zh.md +13 -13
  434. package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/lib/index.js.map +1 -1
  435. package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/package.json +21 -21
  436. package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/CHANGELOG.md +8 -8
  437. package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/LICENSE +21 -21
  438. package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/README.md +13 -13
  439. package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/README.zh.md +13 -13
  440. package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/lib/index.js.map +1 -1
  441. package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/package.json +21 -21
  442. package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/CHANGELOG.md +8 -8
  443. package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/LICENSE +21 -21
  444. package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/README.md +13 -13
  445. package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/README.zh.md +13 -13
  446. package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/lib/index.js.map +1 -1
  447. package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/package.json +21 -21
  448. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/CHANGELOG.md +8 -8
  449. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/LICENSE +21 -21
  450. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/README.md +42 -42
  451. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/README.zh.md +42 -42
  452. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/index.js.map +1 -1
  453. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/memory.js.map +1 -1
  454. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js.map +1 -1
  455. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/package.json +20 -20
  456. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/CHANGELOG.md +8 -8
  457. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/LICENSE +21 -21
  458. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/README.md +13 -13
  459. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/README.zh.md +13 -13
  460. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/lib/index.js.map +1 -1
  461. package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/package.json +21 -21
  462. package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/CHANGELOG.md +8 -8
  463. package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/LICENSE +21 -21
  464. package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/README.md +13 -13
  465. package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/README.zh.md +13 -13
  466. package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/lib/index.js.map +1 -1
  467. package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/package.json +21 -21
@@ -2,6 +2,48 @@ import sliceAnsi from '../utils/sliceAnsi.js';
2
2
  import { stringWidth } from './stringWidth.js';
3
3
  import { wrapAnsi } from './wrapAnsi.js';
4
4
  const ELLIPSIS = '…';
5
+ // --- cross-mount wrap cache ------------------------------------------------
6
+ // wrapText is pure: (text, maxWidth, wrapType) deterministically maps to one
7
+ // output string. Yet before this cache every consumer re-wrapped from
8
+ // scratch:
9
+ //
10
+ // - dom.ts measureTextNode seeds its per-NODE incremental cache on first
11
+ // measure; virtualization unmounts scrolled-away rows, so scrolling back
12
+ // re-mounts the row's Text nodes and re-runs the FULL wrap (wrap-ansi
13
+ // tokenizes + string-width-measures every word — 100-300ms single-frame
14
+ // yoga spikes when a row of large settled text scrolls in, the dominant
15
+ // long-session scroll stall);
16
+ // - render-node-to-output.ts wraps every VISIBLE text node on every full
17
+ // paint pass (no per-node cache at all there).
18
+ //
19
+ // A content-addressed LRU here makes both paths O(1) for immutable settled
20
+ // text (Markdown memo keeps content identity stable for the whole session).
21
+ // The key embeds the raw text, so V8's content-hash Map lookup matches even
22
+ // a rebuilt string. Budget mirrors line-width-cache: whole-cache clear on
23
+ // overflow (repopulates within a frame or two).
24
+ const WRAP_CACHE_MAX_ENTRIES = 2048;
25
+ const WRAP_CACHE_MAX_CHARS = 2_000_000;
26
+ const wrapCache = new Map();
27
+ let wrapCacheChars = 0;
28
+ /** Values below this are not worth a cache entry (key building costs about
29
+ * as much as the wrap itself for trivial single-word strings). */
30
+ const WRAP_CACHE_MIN_LENGTH = 24;
31
+ function cachedWrap(text, maxWidth, wrapType, compute) {
32
+ if (text.length < WRAP_CACHE_MIN_LENGTH)
33
+ return compute();
34
+ const key = `${maxWidth}\u0000${wrapType}\u0000${text}`;
35
+ const hit = wrapCache.get(key);
36
+ if (hit !== undefined)
37
+ return hit;
38
+ const result = compute();
39
+ if (wrapCache.size >= WRAP_CACHE_MAX_ENTRIES || wrapCacheChars + text.length > WRAP_CACHE_MAX_CHARS) {
40
+ wrapCache.clear();
41
+ wrapCacheChars = 0;
42
+ }
43
+ wrapCache.set(key, result);
44
+ wrapCacheChars += text.length;
45
+ return result;
46
+ }
5
47
  // sliceAnsi may include a boundary-spanning wide char (e.g. CJK at position
6
48
  // end-1 with width 2 overshoots by 1). Retry with a tighter bound once.
7
49
  function sliceFit(text, start, end) {
@@ -36,16 +78,16 @@ function truncate(text, columns, position) {
36
78
  */
37
79
  export default function wrapText(text, maxWidth, wrapType) {
38
80
  if (wrapType === 'wrap') {
39
- return wrapAnsi(text, maxWidth, {
81
+ return cachedWrap(text, maxWidth, wrapType, () => wrapAnsi(text, maxWidth, {
40
82
  trim: false,
41
83
  hard: true,
42
- });
84
+ }));
43
85
  }
44
86
  if (wrapType === 'wrap-trim') {
45
- return wrapAnsi(text, maxWidth, {
87
+ return cachedWrap(text, maxWidth, wrapType, () => wrapAnsi(text, maxWidth, {
46
88
  trim: true,
47
89
  hard: true,
48
- });
90
+ }));
49
91
  }
50
92
  if (wrapType.startsWith('truncate')) {
51
93
  let position = 'end';
@@ -55,7 +97,7 @@ export default function wrapText(text, maxWidth, wrapType) {
55
97
  if (wrapType === 'truncate-start') {
56
98
  position = 'start';
57
99
  }
58
- return truncate(text, maxWidth, position);
100
+ return cachedWrap(text, maxWidth, wrapType, () => truncate(text, maxWidth, position));
59
101
  }
60
102
  return text;
61
103
  }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * One-time local migrations (`~/.dsh-tui/migrations.json`), keyed by stable
3
+ * migration id → ISO timestamp. Named keys (not a bare flag) so later
4
+ * migrations can append entries without a format change. Best-effort like
5
+ * every prefs file: a missing/corrupt file reads as "nothing applied yet",
6
+ * and a failed write simply leaves the migration to retry on a later boot.
7
+ */
8
+ /**
9
+ * The fullscreen factory-default flip (schema + `cordis.patch.yml`, 0.9.x):
10
+ * a `fullscreen: false` pinned in the settings user layer BEFORE the flip
11
+ * keeps overriding the new default on every boot. The first boot past this
12
+ * migration clears that stale explicit choice once — see
13
+ * {@link planFullscreenFactoryMigration} for the decision table.
14
+ */
15
+ export declare const FULLSCREEN_FACTORY_MIGRATION = "fullscreen-factory-default";
16
+ /**
17
+ * Read the applied-migration map.
18
+ * @param dir - Prefs directory (injectable for tests).
19
+ * @returns Parsed migration map; empty on any read/parse failure.
20
+ */
21
+ export declare function readAppliedMigrations(dir?: string): Readonly<Record<string, unknown>>;
22
+ /**
23
+ * Record a migration as applied (merge write — other keys are never dropped).
24
+ * @param id - Migration id.
25
+ * @param dir - Prefs directory (injectable for tests).
26
+ * @returns True when the file was written, false on failure.
27
+ */
28
+ export declare function markMigrationApplied(id: string, dir?: string): boolean;
29
+ /** What this boot should do about the fullscreen factory-default flip. */
30
+ export type FullscreenFactoryPlan = 'unset' | 'mark' | 'done';
31
+ /**
32
+ * Decide the migration step from the settings scope's RESOLVED fullscreen
33
+ * value. The dsh-tui namespace declares no schema default and no `base`
34
+ * layer for `fullscreen`, so a resolved `false` can only come from the user
35
+ * layer — the pre-flip explicit choice this migration exists to clear:
36
+ * - `done` — marker present: never touch the user layer again, so a
37
+ * `false` written AFTER the migration (a deliberate /settings choice)
38
+ * always stands;
39
+ * - `unset` — stale pre-flip explicit `false`: the caller clears it via a
40
+ * settings `unset` op and boots fullscreen regardless — the doc write
41
+ * is async and must not race the synchronous boot decision, so the
42
+ * caller shadows the stale value out of its first settings apply;
43
+ * - `mark` — nothing to clear (unset or already `true`): record the
44
+ * marker now so a `false` set later is never mistaken for a stale one.
45
+ */
46
+ export declare function planFullscreenFactoryMigration(resolvedFullscreen: unknown, migrations: Readonly<Record<string, unknown>>): FullscreenFactoryPlan;
47
+ /**
48
+ * Persist the plan's side effects. For `unset` the marker lands only after
49
+ * the doc write succeeds — a failed write stays unmarked and the next boot
50
+ * retries (that boot already ran fullscreen off the shadowed value).
51
+ * Never rejects.
52
+ * @param plan - Decision from {@link planFullscreenFactoryMigration}.
53
+ * @param options - `unset` thunk issuing the settings write; `dir` injects
54
+ * the prefs directory for tests.
55
+ */
56
+ export declare function commitFullscreenFactoryMigration(plan: FullscreenFactoryPlan, options: {
57
+ unset: () => Promise<void>;
58
+ dir?: string;
59
+ }): Promise<void>;
60
+ //# sourceMappingURL=migrationPrefs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrationPrefs.d.ts","sourceRoot":"","sources":["../../src/migrationPrefs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,+BAA+B,CAAA;AAExE;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,GAAE,MAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAQhG;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,GAAE,MAAkB,GAAG,OAAO,CASjF;AAED,0EAA0E;AAC1E,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,8BAA8B,CAC5C,kBAAkB,EAAE,OAAO,EAC3B,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC5C,qBAAqB,CAGvB;AAED;;;;;;;;GAQG;AACH,wBAAsB,gCAAgC,CACpD,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACpD,OAAO,CAAC,IAAI,CAAC,CAYf"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * One-time local migrations (`~/.dsh-tui/migrations.json`), keyed by stable
3
+ * migration id → ISO timestamp. Named keys (not a bare flag) so later
4
+ * migrations can append entries without a format change. Best-effort like
5
+ * every prefs file: a missing/corrupt file reads as "nothing applied yet",
6
+ * and a failed write simply leaves the migration to retry on a later boot.
7
+ */
8
+ import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
9
+ import { join } from 'node:path';
10
+ import { DATA_DIR } from './utils/paths.js';
11
+ const PREFS_DIR = DATA_DIR;
12
+ const MIGRATIONS_FILE = 'migrations.json';
13
+ /**
14
+ * The fullscreen factory-default flip (schema + `cordis.patch.yml`, 0.9.x):
15
+ * a `fullscreen: false` pinned in the settings user layer BEFORE the flip
16
+ * keeps overriding the new default on every boot. The first boot past this
17
+ * migration clears that stale explicit choice once — see
18
+ * {@link planFullscreenFactoryMigration} for the decision table.
19
+ */
20
+ export const FULLSCREEN_FACTORY_MIGRATION = 'fullscreen-factory-default';
21
+ /**
22
+ * Read the applied-migration map.
23
+ * @param dir - Prefs directory (injectable for tests).
24
+ * @returns Parsed migration map; empty on any read/parse failure.
25
+ */
26
+ export function readAppliedMigrations(dir = PREFS_DIR) {
27
+ try {
28
+ const parsed = JSON.parse(readFileSync(join(dir, MIGRATIONS_FILE), 'utf8'));
29
+ if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed))
30
+ return {};
31
+ return parsed;
32
+ }
33
+ catch {
34
+ return {};
35
+ }
36
+ }
37
+ /**
38
+ * Record a migration as applied (merge write — other keys are never dropped).
39
+ * @param id - Migration id.
40
+ * @param dir - Prefs directory (injectable for tests).
41
+ * @returns True when the file was written, false on failure.
42
+ */
43
+ export function markMigrationApplied(id, dir = PREFS_DIR) {
44
+ try {
45
+ const current = readAppliedMigrations(dir);
46
+ mkdirSync(dir, { recursive: true });
47
+ writeFileSync(join(dir, MIGRATIONS_FILE), JSON.stringify({ ...current, [id]: new Date().toISOString() }, null, 2));
48
+ return true;
49
+ }
50
+ catch {
51
+ return false;
52
+ }
53
+ }
54
+ /**
55
+ * Decide the migration step from the settings scope's RESOLVED fullscreen
56
+ * value. The dsh-tui namespace declares no schema default and no `base`
57
+ * layer for `fullscreen`, so a resolved `false` can only come from the user
58
+ * layer — the pre-flip explicit choice this migration exists to clear:
59
+ * - `done` — marker present: never touch the user layer again, so a
60
+ * `false` written AFTER the migration (a deliberate /settings choice)
61
+ * always stands;
62
+ * - `unset` — stale pre-flip explicit `false`: the caller clears it via a
63
+ * settings `unset` op and boots fullscreen regardless — the doc write
64
+ * is async and must not race the synchronous boot decision, so the
65
+ * caller shadows the stale value out of its first settings apply;
66
+ * - `mark` — nothing to clear (unset or already `true`): record the
67
+ * marker now so a `false` set later is never mistaken for a stale one.
68
+ */
69
+ export function planFullscreenFactoryMigration(resolvedFullscreen, migrations) {
70
+ if (migrations[FULLSCREEN_FACTORY_MIGRATION] !== undefined)
71
+ return 'done';
72
+ return resolvedFullscreen === false ? 'unset' : 'mark';
73
+ }
74
+ /**
75
+ * Persist the plan's side effects. For `unset` the marker lands only after
76
+ * the doc write succeeds — a failed write stays unmarked and the next boot
77
+ * retries (that boot already ran fullscreen off the shadowed value).
78
+ * Never rejects.
79
+ * @param plan - Decision from {@link planFullscreenFactoryMigration}.
80
+ * @param options - `unset` thunk issuing the settings write; `dir` injects
81
+ * the prefs directory for tests.
82
+ */
83
+ export async function commitFullscreenFactoryMigration(plan, options) {
84
+ if (plan === 'done')
85
+ return;
86
+ if (plan === 'mark') {
87
+ markMigrationApplied(FULLSCREEN_FACTORY_MIGRATION, options.dir);
88
+ return;
89
+ }
90
+ try {
91
+ await options.unset();
92
+ markMigrationApplied(FULLSCREEN_FACTORY_MIGRATION, options.dir);
93
+ }
94
+ catch {
95
+ // Unmarked on purpose: retried next boot.
96
+ }
97
+ }
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Pure derivation for the two-level `/model` picker: providers as top-level
3
+ * groups, their models one level down, with a pinned "recently used"
4
+ * pseudo-group first. Kept free of React/channel/i18n state so
5
+ * `scripts/verify-model-picker-groups.mjs` can drive it headless; the
6
+ * recents row's localized label is resolved at render time (its `label`
7
+ * field is the {@link RECENTS_LABEL_PLACEHOLDER} sentinel).
8
+ *
9
+ * @module dsh-tui/modelGroups
10
+ */
11
+ import type { LlmModelInfo, LlmProviderInfo } from './dsh-adapter/types.js';
12
+ /**
13
+ * The pseudo provider key of the pinned "recently used" group. Provider
14
+ * route ids cannot contain underscores (`PROVIDER_ROUTE_ID`), so this can
15
+ * never collide with a real route.
16
+ */
17
+ export declare const RECENTS_GROUP_PROVIDER = "__recents__";
18
+ /** The recents row's raw label; renderers replace it with the localized one. */
19
+ export declare const RECENTS_LABEL_PLACEHOLDER = "__recent__";
20
+ /** One recent-model reference (same shape as modelRecents' persisted ref). */
21
+ export interface ModelRef {
22
+ readonly provider: string;
23
+ readonly id: string;
24
+ }
25
+ /** One top-level row: a provider route with its picker-facing identity. */
26
+ export interface ModelGroupRow {
27
+ /** Harness route key (also the grouping key over `LlmModelInfo.provider`). */
28
+ readonly provider: string;
29
+ /** Display label — the registry's provider name, falling back to the route key. */
30
+ readonly label: string;
31
+ /** How many of the listed models belong to this provider. */
32
+ readonly count: number;
33
+ }
34
+ /**
35
+ * The recent refs that the current catalog still lists, most-recent-first —
36
+ * the second level of the recents group. Refs whose model vanished from the
37
+ * catalog (provider removed, or an OAuth provider signed out and
38
+ * credential-gated away) drop out here, so the group never offers a row the
39
+ * picker could not switch to.
40
+ */
41
+ export declare function recentCatalogModels(recents: readonly ModelRef[], models: readonly LlmModelInfo[]): readonly LlmModelInfo[];
42
+ /**
43
+ * Group a flat model catalog into provider rows, first-appearance order
44
+ * (the registry's own listing order), labels resolved through
45
+ * `providerInfos` with a route-key fallback. Recent refs (when supplied and
46
+ * still catalogued) pin one extra pseudo-group at the top.
47
+ */
48
+ export declare function deriveModelGroups(models: readonly LlmModelInfo[], providerInfos: readonly LlmProviderInfo[], recents?: readonly ModelRef[]): readonly ModelGroupRow[];
49
+ /** Where `/model` should open (or re-land after the fresh catalog arrives). */
50
+ export interface ModelPickerLanding {
51
+ /**
52
+ * The group to open *inside* — set only by the single-provider fast path,
53
+ * where a one-row top level would be pure friction (and there are no
54
+ * recents to pin). Multi-provider catalogs — and any catalog with recents
55
+ * — land at the top level (`undefined`).
56
+ */
57
+ readonly group: string | undefined;
58
+ /** Focus index within the landed level's rows. */
59
+ readonly index: number;
60
+ }
61
+ /**
62
+ * Compute the picker's landing: with a meaningful recents list pinned, focus
63
+ * the recents row itself (its first entry is the most recently used model —
64
+ * the likeliest destination); without recents, focus the current provider's
65
+ * group. The single-provider fast path applies while recents carry no
66
+ * navigation value — an empty list, or a lone entry that can only be the
67
+ * current model (the picker seeds it): drilling straight into the only
68
+ * provider's list beats a top level whose recents row duplicates it. Two or
69
+ * more recents (or any multi-provider catalog) land at the top level.
70
+ */
71
+ export declare function modelPickerLanding(models: readonly LlmModelInfo[], currentProvider: string | undefined, currentModel: string | undefined, recents?: readonly ModelRef[]): ModelPickerLanding;
72
+ //# sourceMappingURL=modelGroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modelGroups.d.ts","sourceRoot":"","sources":["../../src/modelGroups.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE3E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAA;AAEnD,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,eAAe,CAAA;AAErD,8EAA8E;AAC9E,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AAED,2EAA2E;AAC3E,MAAM,WAAW,aAAa;IAC5B,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,mFAAmF;IACnF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,SAAS,QAAQ,EAAE,EAC5B,MAAM,EAAE,SAAS,YAAY,EAAE,GAC9B,SAAS,YAAY,EAAE,CAUzB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,aAAa,EAAE,SAAS,eAAe,EAAE,EACzC,OAAO,CAAC,EAAE,SAAS,QAAQ,EAAE,GAC5B,SAAS,aAAa,EAAE,CAsB1B;AAED,+EAA+E;AAC/E,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,kDAAkD;IAClD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,SAAS,QAAQ,EAAE,GAC5B,kBAAkB,CAiBpB"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Pure derivation for the two-level `/model` picker: providers as top-level
3
+ * groups, their models one level down, with a pinned "recently used"
4
+ * pseudo-group first. Kept free of React/channel/i18n state so
5
+ * `scripts/verify-model-picker-groups.mjs` can drive it headless; the
6
+ * recents row's localized label is resolved at render time (its `label`
7
+ * field is the {@link RECENTS_LABEL_PLACEHOLDER} sentinel).
8
+ *
9
+ * @module dsh-tui/modelGroups
10
+ */
11
+ /**
12
+ * The pseudo provider key of the pinned "recently used" group. Provider
13
+ * route ids cannot contain underscores (`PROVIDER_ROUTE_ID`), so this can
14
+ * never collide with a real route.
15
+ */
16
+ export const RECENTS_GROUP_PROVIDER = '__recents__';
17
+ /** The recents row's raw label; renderers replace it with the localized one. */
18
+ export const RECENTS_LABEL_PLACEHOLDER = '__recent__';
19
+ /**
20
+ * The recent refs that the current catalog still lists, most-recent-first —
21
+ * the second level of the recents group. Refs whose model vanished from the
22
+ * catalog (provider removed, or an OAuth provider signed out and
23
+ * credential-gated away) drop out here, so the group never offers a row the
24
+ * picker could not switch to.
25
+ */
26
+ export function recentCatalogModels(recents, models) {
27
+ const listed = [];
28
+ for (const ref of recents) {
29
+ const found = models.find(model => model.provider === ref.provider && model.id === ref.id);
30
+ if (found === undefined)
31
+ continue;
32
+ if (listed.some(seen => seen.provider === found.provider && seen.id === found.id))
33
+ continue;
34
+ listed.push(found);
35
+ if (listed.length >= 10)
36
+ break;
37
+ }
38
+ return listed;
39
+ }
40
+ /**
41
+ * Group a flat model catalog into provider rows, first-appearance order
42
+ * (the registry's own listing order), labels resolved through
43
+ * `providerInfos` with a route-key fallback. Recent refs (when supplied and
44
+ * still catalogued) pin one extra pseudo-group at the top.
45
+ */
46
+ export function deriveModelGroups(models, providerInfos, recents) {
47
+ const order = [];
48
+ const counts = new Map();
49
+ for (const model of models) {
50
+ if (!counts.has(model.provider)) {
51
+ order.push(model.provider);
52
+ counts.set(model.provider, 0);
53
+ }
54
+ counts.set(model.provider, counts.get(model.provider) + 1);
55
+ }
56
+ const groups = order.map(provider => ({
57
+ provider,
58
+ label: providerInfos.find(info => info.id === provider)?.name ?? provider,
59
+ count: counts.get(provider),
60
+ }));
61
+ if (recents !== undefined) {
62
+ const recentCount = recentCatalogModels(recents, models).length;
63
+ if (recentCount > 0) {
64
+ groups.unshift({ provider: RECENTS_GROUP_PROVIDER, label: RECENTS_LABEL_PLACEHOLDER, count: recentCount });
65
+ }
66
+ }
67
+ return groups;
68
+ }
69
+ /**
70
+ * Compute the picker's landing: with a meaningful recents list pinned, focus
71
+ * the recents row itself (its first entry is the most recently used model —
72
+ * the likeliest destination); without recents, focus the current provider's
73
+ * group. The single-provider fast path applies while recents carry no
74
+ * navigation value — an empty list, or a lone entry that can only be the
75
+ * current model (the picker seeds it): drilling straight into the only
76
+ * provider's list beats a top level whose recents row duplicates it. Two or
77
+ * more recents (or any multi-provider catalog) land at the top level.
78
+ */
79
+ export function modelPickerLanding(models, currentProvider, currentModel, recents) {
80
+ const providers = [];
81
+ for (const model of models) {
82
+ if (!providers.includes(model.provider))
83
+ providers.push(model.provider);
84
+ }
85
+ if (providers.length === 0)
86
+ return { group: undefined, index: 0 };
87
+ const recentCount = recents === undefined ? 0 : recentCatalogModels(recents, models).length;
88
+ if (providers.length === 1 && recentCount <= 1) {
89
+ const only = providers[0];
90
+ const index = models.findIndex(model => model.provider === currentProvider && model.id === currentModel);
91
+ return { group: only, index: index >= 0 ? index : 0 };
92
+ }
93
+ if (recentCount > 0)
94
+ return { group: undefined, index: 0 };
95
+ const groupIndex = providers.indexOf(currentProvider ?? '');
96
+ return { group: undefined, index: groupIndex >= 0 ? groupIndex : 0 };
97
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Persisted recently-used models (`/model` picker's 最近使用 group), kept at
3
+ * `~/.dsh-tui/model-recents.json` so the list survives restarts — same
4
+ * best-effort pattern as agent-preset.json: a missing/corrupt file simply
5
+ * reads as empty, and a failed write never blocks the switch that caused it.
6
+ * Entries are `{ provider, id }` refs, most-recent-first, deduped, capped at
7
+ * {@link MODEL_RECENTS_LIMIT}.
8
+ *
9
+ * @module dsh-tui/modelRecents
10
+ */
11
+ /** How many recent entries the file and the picker group keep. */
12
+ export declare const MODEL_RECENTS_LIMIT = 10;
13
+ /** One persisted recent-model reference. */
14
+ export interface ModelRecentsRef {
15
+ readonly provider: string;
16
+ readonly id: string;
17
+ }
18
+ /**
19
+ * Parse a persisted `{ models: [...] }` document; invalid shapes yield an
20
+ * empty list (the file is rewritten on the next record).
21
+ * @param text - Raw file contents.
22
+ * @returns Valid refs in file order, deduped, capped.
23
+ */
24
+ export declare function parseModelRecents(text: string): readonly ModelRecentsRef[];
25
+ /**
26
+ * The persisted recent-model refs, most-recent-first.
27
+ * @param dir - Prefs directory (injectable for tests).
28
+ */
29
+ export declare function readModelRecents(dir?: string): readonly ModelRecentsRef[];
30
+ /**
31
+ * Record one use: move-to-front dedupe, cap at {@link MODEL_RECENTS_LIMIT},
32
+ * best-effort persist. Never throws — a failed write must not block the
33
+ * model switch that caused it.
34
+ * @param ref - The provider/model just switched to.
35
+ * @param dir - Prefs directory (injectable for tests).
36
+ * @returns The new list (also what a subsequent read returns on success).
37
+ */
38
+ export declare function recordModelUse(ref: ModelRecentsRef, dir?: string): readonly ModelRecentsRef[];
39
+ //# sourceMappingURL=modelRecents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modelRecents.d.ts","sourceRoot":"","sources":["../../src/modelRecents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,4CAA4C;AAC5C,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AAYD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,eAAe,EAAE,CAmB1E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAkB,GAAG,SAAS,eAAe,EAAE,CAMpF;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,GAAE,MAAkB,GAAG,SAAS,eAAe,EAAE,CAexG"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Persisted recently-used models (`/model` picker's 最近使用 group), kept at
3
+ * `~/.dsh-tui/model-recents.json` so the list survives restarts — same
4
+ * best-effort pattern as agent-preset.json: a missing/corrupt file simply
5
+ * reads as empty, and a failed write never blocks the switch that caused it.
6
+ * Entries are `{ provider, id }` refs, most-recent-first, deduped, capped at
7
+ * {@link MODEL_RECENTS_LIMIT}.
8
+ *
9
+ * @module dsh-tui/modelRecents
10
+ */
11
+ import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
12
+ import { join } from 'node:path';
13
+ import { DATA_DIR } from './utils/paths.js';
14
+ const PREFS_DIR = DATA_DIR;
15
+ /** How many recent entries the file and the picker group keep. */
16
+ export const MODEL_RECENTS_LIMIT = 10;
17
+ /** Narrow one parsed array element, or reject the whole file entry. */
18
+ function asRef(value) {
19
+ if (typeof value !== 'object' || value === null)
20
+ return undefined;
21
+ const record = value;
22
+ return typeof record['provider'] === 'string' && record['provider'] !== ''
23
+ && typeof record['id'] === 'string' && record['id'] !== ''
24
+ ? { provider: record['provider'], id: record['id'] }
25
+ : undefined;
26
+ }
27
+ /**
28
+ * Parse a persisted `{ models: [...] }` document; invalid shapes yield an
29
+ * empty list (the file is rewritten on the next record).
30
+ * @param text - Raw file contents.
31
+ * @returns Valid refs in file order, deduped, capped.
32
+ */
33
+ export function parseModelRecents(text) {
34
+ let parsed;
35
+ try {
36
+ parsed = JSON.parse(text);
37
+ }
38
+ catch {
39
+ return [];
40
+ }
41
+ if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed))
42
+ return [];
43
+ const models = parsed.models;
44
+ if (!Array.isArray(models))
45
+ return [];
46
+ const refs = [];
47
+ for (const entry of models) {
48
+ const ref = asRef(entry);
49
+ if (ref === undefined)
50
+ continue;
51
+ if (refs.some(seen => seen.provider === ref.provider && seen.id === ref.id))
52
+ continue;
53
+ refs.push(ref);
54
+ if (refs.length >= MODEL_RECENTS_LIMIT)
55
+ break;
56
+ }
57
+ return refs;
58
+ }
59
+ /**
60
+ * The persisted recent-model refs, most-recent-first.
61
+ * @param dir - Prefs directory (injectable for tests).
62
+ */
63
+ export function readModelRecents(dir = PREFS_DIR) {
64
+ try {
65
+ return parseModelRecents(readFileSync(join(dir, 'model-recents.json'), 'utf8'));
66
+ }
67
+ catch {
68
+ return [];
69
+ }
70
+ }
71
+ /**
72
+ * Record one use: move-to-front dedupe, cap at {@link MODEL_RECENTS_LIMIT},
73
+ * best-effort persist. Never throws — a failed write must not block the
74
+ * model switch that caused it.
75
+ * @param ref - The provider/model just switched to.
76
+ * @param dir - Prefs directory (injectable for tests).
77
+ * @returns The new list (also what a subsequent read returns on success).
78
+ */
79
+ export function recordModelUse(ref, dir = PREFS_DIR) {
80
+ const next = [ref];
81
+ for (const seen of readModelRecents(dir)) {
82
+ if (seen.provider === ref.provider && seen.id === ref.id)
83
+ continue;
84
+ next.push(seen);
85
+ if (next.length >= MODEL_RECENTS_LIMIT)
86
+ break;
87
+ }
88
+ try {
89
+ mkdirSync(dir, { recursive: true });
90
+ writeFileSync(join(dir, 'model-recents.json'), `${JSON.stringify({ models: next }, null, 2)}\n`);
91
+ }
92
+ catch {
93
+ // Best-effort like every other pref: the in-memory list still serves
94
+ // this session; the next successful write re-persists.
95
+ }
96
+ return next;
97
+ }
@@ -270,6 +270,17 @@ export declare class Node {
270
270
  _cGen: number;
271
271
  /** Number of populated cache slots. */
272
272
  _cN: number;
273
+ /**
274
+ * Generation of the last MEASURE-pass call that actually computed (cache
275
+ * miss with performLayout=false). Such a call recurses and overwrites the
276
+ * subtree's layout.* fields as scratch for whatever available size it was
277
+ * probing — which may differ from the node's final size. A subsequent
278
+ * layout-pass cache hit would restore only this node's own w/h and skip
279
+ * the child recursion, leaving descendants at the scratch geometry (the
280
+ * warm-resize 106-vs-105 wrap drift). Layout-pass early returns must
281
+ * therefore refuse to hit while _scratchGen === _generation.
282
+ */
283
+ _scratchGen: number;
273
284
  /** LRU write index into the cache arrays. */
274
285
  _cWr: number;
275
286
  constructor(config?: Config);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceR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