@cerbur/clutch-dsh-worktree 0.1.16 → 0.1.18

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 (429) hide show
  1. package/README.md +314 -43
  2. package/README.zh.md +263 -37
  3. package/assets/screenshots/screenshots-dashboard.png +0 -0
  4. package/assets/screenshots/screenshots-en.png +0 -0
  5. package/assets/screenshots/screenshots-git-reviewer.png +0 -0
  6. package/assets/screenshots/screenshots-import.png +0 -0
  7. package/assets/screenshots/screenshots-worktree-tool.png +0 -0
  8. package/assets/screenshots/screenshots-zh.png +0 -0
  9. package/cordis.patch.yml +6 -19
  10. package/lib/client/WorktreeSurface.d.ts.map +1 -1
  11. package/lib/client/WorktreeSurface.js +41 -13
  12. package/lib/client/WorktreeSurface.js.map +1 -1
  13. package/lib/client/branch/GitBranchSelector.d.ts +23 -0
  14. package/lib/client/branch/GitBranchSelector.d.ts.map +1 -0
  15. package/lib/client/branch/GitBranchSelector.js +142 -0
  16. package/lib/client/branch/GitBranchSelector.js.map +1 -0
  17. package/lib/client/command-activity.d.ts +11 -0
  18. package/lib/client/command-activity.d.ts.map +1 -0
  19. package/lib/client/command-activity.js +71 -0
  20. package/lib/client/command-activity.js.map +1 -0
  21. package/lib/client/context/worktree-context-store.d.ts.map +1 -1
  22. package/lib/client/context/worktree-context-store.js +1 -0
  23. package/lib/client/context/worktree-context-store.js.map +1 -1
  24. package/lib/client/context/worktree-context.d.ts +3 -2
  25. package/lib/client/context/worktree-context.d.ts.map +1 -1
  26. package/lib/client/context/worktree-context.js +5 -3
  27. package/lib/client/context/worktree-context.js.map +1 -1
  28. package/lib/client/dashboard/DashboardRequest.d.ts +2 -1
  29. package/lib/client/dashboard/DashboardRequest.d.ts.map +1 -1
  30. package/lib/client/dashboard/DashboardRequest.js +3 -3
  31. package/lib/client/dashboard/DashboardRequest.js.map +1 -1
  32. package/lib/client/dashboard/WorktreeDashboard.d.ts +6 -2
  33. package/lib/client/dashboard/WorktreeDashboard.d.ts.map +1 -1
  34. package/lib/client/dashboard/WorktreeDashboard.js +111 -89
  35. package/lib/client/dashboard/WorktreeDashboard.js.map +1 -1
  36. package/lib/client/dashboard/WorktreeInstructions.d.ts +2 -1
  37. package/lib/client/dashboard/WorktreeInstructions.d.ts.map +1 -1
  38. package/lib/client/dashboard/WorktreeInstructions.js +27 -8
  39. package/lib/client/dashboard/WorktreeInstructions.js.map +1 -1
  40. package/lib/client/dashboard/dashboard-overlay.d.ts.map +1 -1
  41. package/lib/client/dashboard/dashboard-overlay.js +38 -52
  42. package/lib/client/dashboard/dashboard-overlay.js.map +1 -1
  43. package/lib/client/dashboard/dashboard-selection.d.ts +4 -2
  44. package/lib/client/dashboard/dashboard-selection.d.ts.map +1 -1
  45. package/lib/client/dashboard/dashboard-selection.js +6 -4
  46. package/lib/client/dashboard/dashboard-selection.js.map +1 -1
  47. package/lib/client/dashboard/git/GitChangedFiles.d.ts +2 -1
  48. package/lib/client/dashboard/git/GitChangedFiles.d.ts.map +1 -1
  49. package/lib/client/dashboard/git/GitChangedFiles.js +8 -6
  50. package/lib/client/dashboard/git/GitChangedFiles.js.map +1 -1
  51. package/lib/client/dashboard/git/GitCommitList.d.ts +6 -1
  52. package/lib/client/dashboard/git/GitCommitList.d.ts.map +1 -1
  53. package/lib/client/dashboard/git/GitCommitList.js +34 -29
  54. package/lib/client/dashboard/git/GitCommitList.js.map +1 -1
  55. package/lib/client/dashboard/git/GitCommitStats.d.ts +8 -0
  56. package/lib/client/dashboard/git/GitCommitStats.d.ts.map +1 -0
  57. package/lib/client/dashboard/git/GitCommitStats.js +7 -0
  58. package/lib/client/dashboard/git/GitCommitStats.js.map +1 -0
  59. package/lib/client/dashboard/git/WorktreeGitOverview.d.ts.map +1 -1
  60. package/lib/client/dashboard/git/WorktreeGitOverview.js +2 -1
  61. package/lib/client/dashboard/git/WorktreeGitOverview.js.map +1 -1
  62. package/lib/client/dashboard/git/WorktreeGitPanel.d.ts +3 -2
  63. package/lib/client/dashboard/git/WorktreeGitPanel.d.ts.map +1 -1
  64. package/lib/client/dashboard/git/WorktreeGitPanel.js +79 -14
  65. package/lib/client/dashboard/git/WorktreeGitPanel.js.map +1 -1
  66. package/lib/client/dashboard/git/file-address.d.ts +5 -1
  67. package/lib/client/dashboard/git/file-address.d.ts.map +1 -1
  68. package/lib/client/dashboard/git/file-address.js +49 -11
  69. package/lib/client/dashboard/git/file-address.js.map +1 -1
  70. package/lib/client/dashboard/git/git-facts.js +1 -1
  71. package/lib/client/dashboard/git/git-facts.js.map +1 -1
  72. package/lib/client/dashboard/git/useWorktreeGitState.d.ts +7 -2
  73. package/lib/client/dashboard/git/useWorktreeGitState.d.ts.map +1 -1
  74. package/lib/client/dashboard/git/useWorktreeGitState.js +88 -22
  75. package/lib/client/dashboard/git/useWorktreeGitState.js.map +1 -1
  76. package/lib/client/dsh-icons.d.ts +4 -0
  77. package/lib/client/dsh-icons.d.ts.map +1 -1
  78. package/lib/client/dsh-icons.js +5 -1
  79. package/lib/client/dsh-icons.js.map +1 -1
  80. package/lib/client/dsh-slot-contract.d.ts +9 -1
  81. package/lib/client/dsh-slot-contract.d.ts.map +1 -1
  82. package/lib/client/entry.d.ts.map +1 -1
  83. package/lib/client/entry.js +39 -2
  84. package/lib/client/entry.js.map +1 -1
  85. package/lib/client/layout/app-frame.d.ts +12 -0
  86. package/lib/client/layout/app-frame.d.ts.map +1 -0
  87. package/lib/client/layout/app-frame.js +82 -0
  88. package/lib/client/layout/app-frame.js.map +1 -0
  89. package/lib/client/locales.d.ts +184 -2
  90. package/lib/client/locales.d.ts.map +1 -1
  91. package/lib/client/locales.js +250 -68
  92. package/lib/client/locales.js.map +1 -1
  93. package/lib/client/overlay/overlay-bounds.d.ts.map +1 -1
  94. package/lib/client/overlay/overlay-bounds.js +8 -3
  95. package/lib/client/overlay/overlay-bounds.js.map +1 -1
  96. package/lib/client/overlay/sidebar-overlay-geometry.d.ts +3 -1
  97. package/lib/client/overlay/sidebar-overlay-geometry.d.ts.map +1 -1
  98. package/lib/client/overlay/sidebar-overlay-geometry.js +94 -34
  99. package/lib/client/overlay/sidebar-overlay-geometry.js.map +1 -1
  100. package/lib/client/restart-notice.d.ts +10 -3
  101. package/lib/client/restart-notice.d.ts.map +1 -1
  102. package/lib/client/restart-notice.js +44 -11
  103. package/lib/client/restart-notice.js.map +1 -1
  104. package/lib/client/select/SearchableSingleSelect.d.ts +44 -0
  105. package/lib/client/select/SearchableSingleSelect.d.ts.map +1 -0
  106. package/lib/client/select/SearchableSingleSelect.js +180 -0
  107. package/lib/client/select/SearchableSingleSelect.js.map +1 -0
  108. package/lib/client/select/WorktreeSelector.d.ts +14 -0
  109. package/lib/client/select/WorktreeSelector.d.ts.map +1 -0
  110. package/lib/client/select/WorktreeSelector.js +11 -0
  111. package/lib/client/select/WorktreeSelector.js.map +1 -0
  112. package/lib/client/session/session-view.d.ts +16 -2
  113. package/lib/client/session/session-view.d.ts.map +1 -1
  114. package/lib/client/session/session-view.js +24 -10
  115. package/lib/client/session/session-view.js.map +1 -1
  116. package/lib/client/session/worktree-session.d.ts +1 -0
  117. package/lib/client/session/worktree-session.d.ts.map +1 -1
  118. package/lib/client/session/worktree-session.js +3 -1
  119. package/lib/client/session/worktree-session.js.map +1 -1
  120. package/lib/client/settings/ToolSettings.d.ts +9 -0
  121. package/lib/client/settings/ToolSettings.d.ts.map +1 -0
  122. package/lib/client/settings/ToolSettings.js +77 -0
  123. package/lib/client/settings/ToolSettings.js.map +1 -0
  124. package/lib/client/settings/WorktreeSettings.d.ts +8 -0
  125. package/lib/client/settings/WorktreeSettings.d.ts.map +1 -0
  126. package/lib/client/settings/WorktreeSettings.js +46 -0
  127. package/lib/client/settings/WorktreeSettings.js.map +1 -0
  128. package/lib/client/settings/WorktreeSettingsNavIcon.d.ts +6 -0
  129. package/lib/client/settings/WorktreeSettingsNavIcon.d.ts.map +1 -0
  130. package/lib/client/settings/WorktreeSettingsNavIcon.js +51 -0
  131. package/lib/client/settings/WorktreeSettingsNavIcon.js.map +1 -0
  132. package/lib/client/settings/diagnostics.d.ts +24 -0
  133. package/lib/client/settings/diagnostics.d.ts.map +1 -0
  134. package/lib/client/settings/diagnostics.js +63 -0
  135. package/lib/client/settings/diagnostics.js.map +1 -0
  136. package/lib/client/settings/settings-navigation.d.ts +7 -0
  137. package/lib/client/settings/settings-navigation.d.ts.map +1 -0
  138. package/lib/client/settings/settings-navigation.js +12 -0
  139. package/lib/client/settings/settings-navigation.js.map +1 -0
  140. package/lib/client/surface/actions/useLifecycleActions.d.ts +2 -1
  141. package/lib/client/surface/actions/useLifecycleActions.d.ts.map +1 -1
  142. package/lib/client/surface/actions/useLifecycleActions.js +15 -6
  143. package/lib/client/surface/actions/useLifecycleActions.js.map +1 -1
  144. package/lib/client/surface/actions/useSessionActions.d.ts.map +1 -1
  145. package/lib/client/surface/actions/useSessionActions.js +6 -6
  146. package/lib/client/surface/actions/useSessionActions.js.map +1 -1
  147. package/lib/client/surface/actions/useWorktreeRegistration.d.ts +1 -1
  148. package/lib/client/surface/actions/useWorktreeRegistration.d.ts.map +1 -1
  149. package/lib/client/surface/actions/useWorktreeRegistration.js +36 -13
  150. package/lib/client/surface/actions/useWorktreeRegistration.js.map +1 -1
  151. package/lib/client/surface/components/NotificationToasts.d.ts +19 -3
  152. package/lib/client/surface/components/NotificationToasts.d.ts.map +1 -1
  153. package/lib/client/surface/components/NotificationToasts.js +73 -7
  154. package/lib/client/surface/components/NotificationToasts.js.map +1 -1
  155. package/lib/client/surface/components/OverlayScrollbar.d.ts +6 -0
  156. package/lib/client/surface/components/OverlayScrollbar.d.ts.map +1 -0
  157. package/lib/client/surface/components/OverlayScrollbar.js +84 -0
  158. package/lib/client/surface/components/OverlayScrollbar.js.map +1 -0
  159. package/lib/client/surface/components/RegistrationDialog.d.ts +3 -3
  160. package/lib/client/surface/components/RegistrationDialog.d.ts.map +1 -1
  161. package/lib/client/surface/components/RegistrationDialog.js +70 -5
  162. package/lib/client/surface/components/RegistrationDialog.js.map +1 -1
  163. package/lib/client/surface/components/RestartToast.d.ts.map +1 -1
  164. package/lib/client/surface/components/RestartToast.js +4 -3
  165. package/lib/client/surface/components/RestartToast.js.map +1 -1
  166. package/lib/client/surface/components/SurfaceContent.d.ts.map +1 -1
  167. package/lib/client/surface/components/SurfaceContent.js +110 -39
  168. package/lib/client/surface/components/SurfaceContent.js.map +1 -1
  169. package/lib/client/surface/components/WorkspaceTree.d.ts.map +1 -1
  170. package/lib/client/surface/components/WorkspaceTree.js +13 -9
  171. package/lib/client/surface/components/WorkspaceTree.js.map +1 -1
  172. package/lib/client/surface/components/dialogs.d.ts +1 -1
  173. package/lib/client/surface/components/dialogs.d.ts.map +1 -1
  174. package/lib/client/surface/components/dialogs.js +34 -21
  175. package/lib/client/surface/components/dialogs.js.map +1 -1
  176. package/lib/client/surface/components/rows.d.ts +1 -1
  177. package/lib/client/surface/components/rows.d.ts.map +1 -1
  178. package/lib/client/surface/components/rows.js +15 -97
  179. package/lib/client/surface/components/rows.js.map +1 -1
  180. package/lib/client/surface/notification-queue.d.ts +15 -0
  181. package/lib/client/surface/notification-queue.d.ts.map +1 -1
  182. package/lib/client/surface/notification-queue.js +13 -2
  183. package/lib/client/surface/notification-queue.js.map +1 -1
  184. package/lib/client/surface/state/useRegistrationState.d.ts +6 -1
  185. package/lib/client/surface/state/useRegistrationState.d.ts.map +1 -1
  186. package/lib/client/surface/state/useRegistrationState.js +7 -0
  187. package/lib/client/surface/state/useRegistrationState.js.map +1 -1
  188. package/lib/client/surface/state/useSurfaceRefresh.d.ts +1 -1
  189. package/lib/client/surface/state/useSurfaceRefresh.d.ts.map +1 -1
  190. package/lib/client/surface/state/useSurfaceRefresh.js +13 -1
  191. package/lib/client/surface/state/useSurfaceRefresh.js.map +1 -1
  192. package/lib/client/surface/state/useSurfaceSources.d.ts +1 -1
  193. package/lib/client/surface/state/useSurfaceSources.d.ts.map +1 -1
  194. package/lib/client/surface/state/useSurfaceSources.js +4 -2
  195. package/lib/client/surface/state/useSurfaceSources.js.map +1 -1
  196. package/lib/client/surface/state/useTitleMarquee.d.ts +7 -0
  197. package/lib/client/surface/state/useTitleMarquee.d.ts.map +1 -0
  198. package/lib/client/surface/state/useTitleMarquee.js +60 -0
  199. package/lib/client/surface/state/useTitleMarquee.js.map +1 -0
  200. package/lib/client/surface/types.d.ts +12 -1
  201. package/lib/client/surface/types.d.ts.map +1 -1
  202. package/lib/client/view/worktree-error-copy.d.ts.map +1 -1
  203. package/lib/client/view/worktree-error-copy.js +73 -14
  204. package/lib/client/view/worktree-error-copy.js.map +1 -1
  205. package/lib/client/view/worktree-view-errors.d.ts.map +1 -1
  206. package/lib/client/view/worktree-view-errors.js +13 -5
  207. package/lib/client/view/worktree-view-errors.js.map +1 -1
  208. package/lib/client/view/worktree-view-read.d.ts +4 -2
  209. package/lib/client/view/worktree-view-read.d.ts.map +1 -1
  210. package/lib/client/view/worktree-view-read.js +34 -17
  211. package/lib/client/view/worktree-view-read.js.map +1 -1
  212. package/lib/client/worktree-connection.d.ts +9 -2
  213. package/lib/client/worktree-connection.d.ts.map +1 -1
  214. package/lib/client/worktree-connection.js +24 -1
  215. package/lib/client/worktree-connection.js.map +1 -1
  216. package/lib/client/worktree-tool-changes.d.ts +13 -0
  217. package/lib/client/worktree-tool-changes.d.ts.map +1 -0
  218. package/lib/client/worktree-tool-changes.js +64 -0
  219. package/lib/client/worktree-tool-changes.js.map +1 -0
  220. package/lib/client.js +3503 -1310
  221. package/lib/client.js.map +1 -1
  222. package/lib/contract/index.contract.js +15 -0
  223. package/lib/contract/index.contract.js.map +1 -1
  224. package/lib/contract/index.d.ts +79 -12
  225. package/lib/contract/index.d.ts.map +1 -1
  226. package/lib/contract/index.js +12 -0
  227. package/lib/contract/index.js.map +1 -1
  228. package/lib/contract/tool-settings.d.ts +28 -0
  229. package/lib/contract/tool-settings.d.ts.map +1 -0
  230. package/lib/contract/tool-settings.js +10 -0
  231. package/lib/contract/tool-settings.js.map +1 -0
  232. package/lib/contract/worktree-tool-changes.d.ts +10 -0
  233. package/lib/contract/worktree-tool-changes.d.ts.map +1 -0
  234. package/lib/contract/worktree-tool-changes.js +2 -0
  235. package/lib/contract/worktree-tool-changes.js.map +1 -0
  236. package/lib/host/permission-preset-append.d.ts +15 -0
  237. package/lib/host/permission-preset-append.d.ts.map +1 -0
  238. package/lib/host/permission-preset-append.js +63 -0
  239. package/lib/host/permission-preset-append.js.map +1 -0
  240. package/lib/host/remote.d.ts.map +1 -1
  241. package/lib/host/remote.js +7 -0
  242. package/lib/host/remote.js.map +1 -1
  243. package/lib/host/service.d.ts +30 -6
  244. package/lib/host/service.d.ts.map +1 -1
  245. package/lib/host/service.js +85 -11
  246. package/lib/host/service.js.map +1 -1
  247. package/lib/host/tool-settings.d.ts +14 -0
  248. package/lib/host/tool-settings.d.ts.map +1 -0
  249. package/lib/host/tool-settings.js +98 -0
  250. package/lib/host/tool-settings.js.map +1 -0
  251. package/lib/host/worktree-permission-manager.d.ts.map +1 -1
  252. package/lib/host/worktree-permission-manager.js +2 -4
  253. package/lib/host/worktree-permission-manager.js.map +1 -1
  254. package/lib/host/worktree-tool-changes.d.ts +12 -0
  255. package/lib/host/worktree-tool-changes.d.ts.map +1 -0
  256. package/lib/host/worktree-tool-changes.js +60 -0
  257. package/lib/host/worktree-tool-changes.js.map +1 -0
  258. package/lib/manage/manager-git-history.d.ts +5 -7
  259. package/lib/manage/manager-git-history.d.ts.map +1 -1
  260. package/lib/manage/manager-git-history.js +185 -91
  261. package/lib/manage/manager-git-history.js.map +1 -1
  262. package/lib/manage/manager-git-paths.d.ts +7 -0
  263. package/lib/manage/manager-git-paths.d.ts.map +1 -0
  264. package/lib/manage/manager-git-paths.js +62 -0
  265. package/lib/manage/manager-git-paths.js.map +1 -0
  266. package/lib/manage/manager-sessions.d.ts +5 -0
  267. package/lib/manage/manager-sessions.d.ts.map +1 -1
  268. package/lib/manage/manager-sessions.js +34 -11
  269. package/lib/manage/manager-sessions.js.map +1 -1
  270. package/lib/manage/manager-support.d.ts +3 -1
  271. package/lib/manage/manager-support.d.ts.map +1 -1
  272. package/lib/manage/manager-support.js +17 -0
  273. package/lib/manage/manager-support.js.map +1 -1
  274. package/lib/manage/manager-worktree-lifecycle.d.ts.map +1 -1
  275. package/lib/manage/manager-worktree-lifecycle.js +5 -4
  276. package/lib/manage/manager-worktree-lifecycle.js.map +1 -1
  277. package/lib/manage/manager-worktrees.d.ts +10 -1
  278. package/lib/manage/manager-worktrees.d.ts.map +1 -1
  279. package/lib/manage/manager-worktrees.js +141 -34
  280. package/lib/manage/manager-worktrees.js.map +1 -1
  281. package/lib/manage/manager.d.ts +22 -5
  282. package/lib/manage/manager.d.ts.map +1 -1
  283. package/lib/manage/manager.js +76 -4
  284. package/lib/manage/manager.js.map +1 -1
  285. package/lib/manage/types.d.ts +10 -1
  286. package/lib/manage/types.d.ts.map +1 -1
  287. package/lib/provider/generated-name.d.ts.map +1 -1
  288. package/lib/provider/generated-name.js +5 -4
  289. package/lib/provider/generated-name.js.map +1 -1
  290. package/lib/provider/git/adapter.d.ts +13 -12
  291. package/lib/provider/git/adapter.d.ts.map +1 -1
  292. package/lib/provider/git/adapter.js +157 -31
  293. package/lib/provider/git/adapter.js.map +1 -1
  294. package/lib/provider/git/branch-name.d.ts +5 -0
  295. package/lib/provider/git/branch-name.d.ts.map +1 -0
  296. package/lib/provider/git/branch-name.js +16 -0
  297. package/lib/provider/git/branch-name.js.map +1 -0
  298. package/lib/provider/git/branches.d.ts +11 -0
  299. package/lib/provider/git/branches.d.ts.map +1 -0
  300. package/lib/provider/git/branches.js +37 -0
  301. package/lib/provider/git/branches.js.map +1 -0
  302. package/lib/provider/mutation-token.d.ts +1 -1
  303. package/lib/provider/mutation-token.d.ts.map +1 -1
  304. package/lib/provider/mutation-token.js +1 -0
  305. package/lib/provider/mutation-token.js.map +1 -1
  306. package/lib/provider/sidecar/repository.d.ts.map +1 -1
  307. package/lib/provider/sidecar/repository.js +3 -1
  308. package/lib/provider/sidecar/repository.js.map +1 -1
  309. package/lib/provider/sidecar/sidecar-schema.d.ts.map +1 -1
  310. package/lib/provider/sidecar/sidecar-schema.js +26 -4
  311. package/lib/provider/sidecar/sidecar-schema.js.map +1 -1
  312. package/lib/provider/transaction/operations/adopt-branch.d.ts.map +1 -1
  313. package/lib/provider/transaction/operations/adopt-branch.js +6 -5
  314. package/lib/provider/transaction/operations/adopt-branch.js.map +1 -1
  315. package/lib/provider/transaction/operations/clean.d.ts.map +1 -1
  316. package/lib/provider/transaction/operations/clean.js +20 -19
  317. package/lib/provider/transaction/operations/clean.js.map +1 -1
  318. package/lib/provider/transaction/operations/create.d.ts +1 -1
  319. package/lib/provider/transaction/operations/create.d.ts.map +1 -1
  320. package/lib/provider/transaction/operations/create.js +39 -17
  321. package/lib/provider/transaction/operations/create.js.map +1 -1
  322. package/lib/provider/transaction/operations/import.d.ts.map +1 -1
  323. package/lib/provider/transaction/operations/import.js +7 -1
  324. package/lib/provider/transaction/operations/import.js.map +1 -1
  325. package/lib/provider/transaction/operations/remove.d.ts.map +1 -1
  326. package/lib/provider/transaction/operations/remove.js +20 -19
  327. package/lib/provider/transaction/operations/remove.js.map +1 -1
  328. package/lib/provider/transaction/recovery/failure-recovery.d.ts.map +1 -1
  329. package/lib/provider/transaction/recovery/failure-recovery.js +22 -20
  330. package/lib/provider/transaction/recovery/failure-recovery.js.map +1 -1
  331. package/lib/provider/transaction/recovery/recover.d.ts.map +1 -1
  332. package/lib/provider/transaction/recovery/recover.js +11 -4
  333. package/lib/provider/transaction/recovery/recover.js.map +1 -1
  334. package/lib/provider/transaction/support/inspection.d.ts.map +1 -1
  335. package/lib/provider/transaction/support/inspection.js +3 -2
  336. package/lib/provider/transaction/support/inspection.js.map +1 -1
  337. package/lib/provider/transaction/support/journal.d.ts.map +1 -1
  338. package/lib/provider/transaction/support/journal.js +9 -5
  339. package/lib/provider/transaction/support/journal.js.map +1 -1
  340. package/lib/provider/transaction/support/path-safety.d.ts.map +1 -1
  341. package/lib/provider/transaction/support/path-safety.js +4 -3
  342. package/lib/provider/transaction/support/path-safety.js.map +1 -1
  343. package/lib/provider/transaction/types.d.ts +2 -1
  344. package/lib/provider/transaction/types.d.ts.map +1 -1
  345. package/lib/provider/types.d.ts +27 -5
  346. package/lib/provider/types.d.ts.map +1 -1
  347. package/lib/provider/types.js +1 -1
  348. package/lib/provider/types.js.map +1 -1
  349. package/lib/provider/worktree-path.d.ts +10 -0
  350. package/lib/provider/worktree-path.d.ts.map +1 -0
  351. package/lib/provider/worktree-path.js +47 -0
  352. package/lib/provider/worktree-path.js.map +1 -0
  353. package/lib/tool/context.d.ts +14 -0
  354. package/lib/tool/context.d.ts.map +1 -0
  355. package/lib/tool/context.js +95 -0
  356. package/lib/tool/context.js.map +1 -0
  357. package/lib/tool/delegation.d.ts +41 -0
  358. package/lib/tool/delegation.d.ts.map +1 -0
  359. package/lib/tool/delegation.js +196 -0
  360. package/lib/tool/delegation.js.map +1 -0
  361. package/lib/tool/errors.d.ts +3 -0
  362. package/lib/tool/errors.d.ts.map +1 -0
  363. package/lib/tool/errors.js +63 -0
  364. package/lib/tool/errors.js.map +1 -0
  365. package/lib/tool/guidance.d.ts +5 -0
  366. package/lib/tool/guidance.d.ts.map +1 -0
  367. package/lib/tool/guidance.js +48 -0
  368. package/lib/tool/guidance.js.map +1 -0
  369. package/lib/tool/history.d.ts +27 -0
  370. package/lib/tool/history.d.ts.map +1 -0
  371. package/lib/tool/history.js +157 -0
  372. package/lib/tool/history.js.map +1 -0
  373. package/lib/tool/index.d.ts +8 -0
  374. package/lib/tool/index.d.ts.map +1 -0
  375. package/lib/tool/index.js +296 -0
  376. package/lib/tool/index.js.map +1 -0
  377. package/lib/tool/inputs.d.ts +12 -0
  378. package/lib/tool/inputs.d.ts.map +1 -0
  379. package/lib/tool/inputs.js +24 -0
  380. package/lib/tool/inputs.js.map +1 -0
  381. package/lib/tool/list-models.d.ts +3 -0
  382. package/lib/tool/list-models.d.ts.map +1 -0
  383. package/lib/tool/list-models.js +38 -0
  384. package/lib/tool/list-models.js.map +1 -0
  385. package/lib/tool/list-sessions.d.ts +3 -0
  386. package/lib/tool/list-sessions.d.ts.map +1 -0
  387. package/lib/tool/list-sessions.js +70 -0
  388. package/lib/tool/list-sessions.js.map +1 -0
  389. package/lib/tool/list-worktrees.d.ts +3 -0
  390. package/lib/tool/list-worktrees.d.ts.map +1 -0
  391. package/lib/tool/list-worktrees.js +46 -0
  392. package/lib/tool/list-worktrees.js.map +1 -0
  393. package/lib/tool/native-session.d.ts +74 -0
  394. package/lib/tool/native-session.d.ts.map +1 -0
  395. package/lib/tool/native-session.js +248 -0
  396. package/lib/tool/native-session.js.map +1 -0
  397. package/lib/tool/new-worktree.d.ts +3 -0
  398. package/lib/tool/new-worktree.d.ts.map +1 -0
  399. package/lib/tool/new-worktree.js +81 -0
  400. package/lib/tool/new-worktree.js.map +1 -0
  401. package/lib/tool/outputs.d.ts +50 -0
  402. package/lib/tool/outputs.d.ts.map +1 -0
  403. package/lib/tool/outputs.js +65 -0
  404. package/lib/tool/outputs.js.map +1 -0
  405. package/lib/tool/report-result.d.ts +3 -0
  406. package/lib/tool/report-result.d.ts.map +1 -0
  407. package/lib/tool/report-result.js +83 -0
  408. package/lib/tool/report-result.js.map +1 -0
  409. package/lib/tool/schema.d.ts +7 -0
  410. package/lib/tool/schema.d.ts.map +1 -0
  411. package/lib/tool/schema.js +92 -0
  412. package/lib/tool/schema.js.map +1 -0
  413. package/lib/tool/send-message.d.ts +3 -0
  414. package/lib/tool/send-message.d.ts.map +1 -0
  415. package/lib/tool/send-message.js +64 -0
  416. package/lib/tool/send-message.js.map +1 -0
  417. package/lib/tool/span-worktree.d.ts +3 -0
  418. package/lib/tool/span-worktree.d.ts.map +1 -0
  419. package/lib/tool/span-worktree.js +114 -0
  420. package/lib/tool/span-worktree.js.map +1 -0
  421. package/lib/tool/types.d.ts +54 -0
  422. package/lib/tool/types.d.ts.map +1 -0
  423. package/lib/tool/types.js +2 -0
  424. package/lib/tool/types.js.map +1 -0
  425. package/lib/typert.host.js +387 -46
  426. package/lib/typert.remote-client.d.ts +17 -5
  427. package/lib/typert.remote-client.d.ts.map +1 -1
  428. package/lib/typert.remote-client.js +387 -46
  429. package/package.json +17 -3
@@ -3,16 +3,20 @@ import type {
3
3
  RemoteResult,
4
4
  TypertRemoteContribution,
5
5
  } from '@deepseek-ai/dsh-typert-protocol'
6
- import type { BranchRecord, SessionBinding, WorkspaceId, WorktreeGitCommitFiles, WorktreeGitCommitFilesRequest, WorktreeGitFileDiff, WorktreeGitFileDiffRequest, WorktreeGitHistory, WorktreeId, WorktreeImportCandidate, WorktreePermissionNormalizationRequest, WorktreePermissionRequest, WorktreePermissionResult, WorktreeRecord, WorktreeRemoteResult } from '@cerbur/clutch-dsh-worktree/contract'
6
+ import type { BranchRecord, SessionBinding, WorkspaceCheckout, WorkspaceGitState, WorkspaceId, WorktreeGitCommitFiles, WorktreeGitCommitFilesRequest, WorktreeGitFileDiff, WorktreeGitFileDiffRequest, WorktreeGitHistory, WorktreeGitHistoryRequest, WorktreeId, WorktreeImportCandidate, WorktreePermissionNormalizationRequest, WorktreePermissionRequest, WorktreePermissionResult, WorktreeRecord, WorktreeRemoteResult, WorktreeToolChangeBatch, WorktreeToolSelection, WorktreeToolSettingsScope } from '@cerbur/clutch-dsh-worktree/contract'
7
7
 
8
8
  declare module '@deepseek-ai/dsh-typert-protocol' {
9
9
  interface TypertRemoteNamespace$776f726b747265654d616e61676572 {
10
10
  adoptWorktreeBranch: (input: { workspaceId: string; worktreeId: string; mutationToken: string; expectedBranch: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
11
11
  bindSession: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly sessionId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<SessionBinding>>>
12
12
  cleanWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
13
- createWorktree: (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
13
+ createWorktree: (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; readonly fromHead?: boolean; readonly expectedHeadCommit?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
14
14
  ensureWorktreePermission: (input: WorktreePermissionRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
15
+ fetchRemoteBranches: (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly BranchRecord[]>>>
15
16
  forgetWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
17
+ getToolSettings: (input: { scope: WorktreeToolSettingsScope; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
18
+ getWorkspaceCheckout: (input: { readonly workspaceId: WorkspaceId; }) => Promise<RemoteResult<WorktreeRemoteResult<WorkspaceCheckout>>>
19
+ getWorkspaceGitState: (input: { workspaceId: WorkspaceId; }) => Promise<RemoteResult<WorktreeRemoteResult<WorkspaceGitState>>>
16
20
  getWorktreeCommitFileDiff: (input: WorktreeGitFileDiffRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitFileDiff>>>
17
21
  getWorktreeInstructions: (input: { workspaceId: string; worktreeId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
18
22
  importWorktree: (input: { readonly workspaceId: WorkspaceId; readonly absolutePath: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
@@ -21,22 +25,28 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
21
25
  listBranches: (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly BranchRecord[]>>>
22
26
  listImportCandidates: (input: { readonly workspaceId: WorkspaceId; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly WorktreeImportCandidate[]>>>
23
27
  listWorktreeCommitFiles: (input: WorktreeGitCommitFilesRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitCommitFiles>>>
24
- listWorktreeCommits: (input: { readonly workspaceId: WorkspaceId; readonly worktreeId: WorktreeId; readonly baseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitHistory>>>
28
+ listWorktreeCommits: (input: WorktreeGitHistoryRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitHistory>>>
25
29
  listWorktrees: (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly WorktreeRecord[]>>>
26
30
  normalizeDetachedWorktreePermissions: (input: WorktreePermissionNormalizationRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
27
31
  recoverWorktrees: (input: { workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
28
32
  removeWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
29
33
  unarchiveWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
34
+ updateToolSettings: (input: { scope: WorktreeToolSettingsScope; selection: WorktreeToolSelection; expected: WorktreeToolSelection; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
30
35
  updateWorktreeBaseBranch: (input: { workspaceId: string; worktreeId: string; baseBranch: string; expectedBaseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
31
36
  updateWorktreeInstructions: (input: { workspaceId: string; worktreeId: string; instructions: string; expectedInstructions: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
37
+ watchToolChanges: (input: { readonly afterRevision: number; }, signal?: AbortSignal) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolChangeBatch>>>
32
38
  }
33
39
  interface TypertRemoteMap {
34
40
  'worktreeManager/adoptWorktreeBranch': (input: { workspaceId: string; worktreeId: string; mutationToken: string; expectedBranch: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
35
41
  'worktreeManager/bindSession': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly sessionId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<SessionBinding>>>
36
42
  'worktreeManager/cleanWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
37
- 'worktreeManager/createWorktree': (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
43
+ 'worktreeManager/createWorktree': (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; readonly fromHead?: boolean; readonly expectedHeadCommit?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
38
44
  'worktreeManager/ensureWorktreePermission': (input: WorktreePermissionRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
45
+ 'worktreeManager/fetchRemoteBranches': (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly BranchRecord[]>>>
39
46
  'worktreeManager/forgetWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
47
+ 'worktreeManager/getToolSettings': (input: { scope: WorktreeToolSettingsScope; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
48
+ 'worktreeManager/getWorkspaceCheckout': (input: { readonly workspaceId: WorkspaceId; }) => Promise<RemoteResult<WorktreeRemoteResult<WorkspaceCheckout>>>
49
+ 'worktreeManager/getWorkspaceGitState': (input: { workspaceId: WorkspaceId; }) => Promise<RemoteResult<WorktreeRemoteResult<WorkspaceGitState>>>
40
50
  'worktreeManager/getWorktreeCommitFileDiff': (input: WorktreeGitFileDiffRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitFileDiff>>>
41
51
  'worktreeManager/getWorktreeInstructions': (input: { workspaceId: string; worktreeId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
42
52
  'worktreeManager/importWorktree': (input: { readonly workspaceId: WorkspaceId; readonly absolutePath: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
@@ -45,14 +55,16 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
45
55
  'worktreeManager/listBranches': (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly BranchRecord[]>>>
46
56
  'worktreeManager/listImportCandidates': (input: { readonly workspaceId: WorkspaceId; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly WorktreeImportCandidate[]>>>
47
57
  'worktreeManager/listWorktreeCommitFiles': (input: WorktreeGitCommitFilesRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitCommitFiles>>>
48
- 'worktreeManager/listWorktreeCommits': (input: { readonly workspaceId: WorkspaceId; readonly worktreeId: WorktreeId; readonly baseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitHistory>>>
58
+ 'worktreeManager/listWorktreeCommits': (input: WorktreeGitHistoryRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitHistory>>>
49
59
  'worktreeManager/listWorktrees': (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly WorktreeRecord[]>>>
50
60
  'worktreeManager/normalizeDetachedWorktreePermissions': (input: WorktreePermissionNormalizationRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
51
61
  'worktreeManager/recoverWorktrees': (input: { workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
52
62
  'worktreeManager/removeWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
53
63
  'worktreeManager/unarchiveWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
64
+ 'worktreeManager/updateToolSettings': (input: { scope: WorktreeToolSettingsScope; selection: WorktreeToolSelection; expected: WorktreeToolSelection; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
54
65
  'worktreeManager/updateWorktreeBaseBranch': (input: { workspaceId: string; worktreeId: string; baseBranch: string; expectedBaseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
55
66
  'worktreeManager/updateWorktreeInstructions': (input: { workspaceId: string; worktreeId: string; instructions: string; expectedInstructions: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
67
+ 'worktreeManager/watchToolChanges': (input: { readonly afterRevision: number; }, signal?: AbortSignal) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolChangeBatch>>>
56
68
  }
57
69
  interface TypertRemoteNamespaceMap {
58
70
  'worktreeManager': TypertRemoteNamespace$776f726b747265654d616e61676572
@@ -1 +1 @@
1
- {"version":3,"file":"typert.remote-client.d.ts","names":["adoptWorktreeBranch","bindSession","cleanWorktree","createWorktree","ensureWorktreePermission","forgetWorktree","getWorktreeCommitFileDiff","getWorktreeInstructions","importWorktree","insertWorktreeBefore","listBindings","listBranches","listImportCandidates","listWorktreeCommitFiles","listWorktreeCommits","listWorktrees","normalizeDetachedWorktreePermissions","recoverWorktrees","removeWorktree","unarchiveWorktree","updateWorktreeBaseBranch","updateWorktreeInstructions"],"sources":["../src/host/service.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IAgPEA,mB;IAiDAC,W;IAlCAC,a;IAlDAC,c;IA6FAC,wB;IAlCAC,c;IA9EAC,yB;IAjDAC,uB;IA6EAC,c;IA2DAC,oB;IASAC,Y;IApFAC,Y;IAPAC,oB;IAVAC,uB;IATAC,mB;IAPAC,a;IA4IAC,oC;IAvDAC,gB;IA5BAC,c;IASAC,iB;IA5EAC,wB;IAVAC,0B;;;IA+FArB,qC;IAiDAC,6B;IAlCAC,+B;IAlDAC,gC;IA6FAC,0C;IAlCAC,gC;IA9EAC,2C;IAjDAC,yC;IA6EAC,gC;IA2DAC,sC;IASAC,8B;IApFAC,8B;IAPAC,sC;IAVAC,yC;IATAC,qC;IAPAC,+B;IA4IAC,sD;IAvDAC,kC;IA5BAC,gC;IASAC,mC;IA5EAC,0C;IAVAC,4C","ignoreList":[]}
1
+ {"version":3,"file":"typert.remote-client.d.ts","names":["adoptWorktreeBranch","bindSession","cleanWorktree","createWorktree","ensureWorktreePermission","fetchRemoteBranches","forgetWorktree","getToolSettings","getWorkspaceCheckout","getWorkspaceGitState","getWorktreeCommitFileDiff","getWorktreeInstructions","importWorktree","insertWorktreeBefore","listBindings","listBranches","listImportCandidates","listWorktreeCommitFiles","listWorktreeCommits","listWorktrees","normalizeDetachedWorktreePermissions","recoverWorktrees","removeWorktree","unarchiveWorktree","updateToolSettings","updateWorktreeBaseBranch","updateWorktreeInstructions","watchToolChanges"],"sources":["../src/host/service.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IAsUEA,mB;IAiDAC,W;IAlCAC,a;IApDAC,c;IA+FAC,wB;IA3GAC,mB;IAyEAC,c;IAvLMC,e;IAqHNC,oB;IApDAC,oB;IAwBAC,yB;IApDAC,uB;IAgGAC,c;IA2DAC,oB;IASAC,Y;IAlGAC,Y;IAPAC,oB;IAdAC,uB;IALAC,mB;IAPAC,a;IA0JAC,oC;IAvDAC,gB;IA5BAC,c;IASAC,iB;IAhJMC,kB;IAiDNC,wB;IAVAC,0B;IAhBMC,gB;;;IAkIN3B,qC;IAiDAC,6B;IAlCAC,+B;IApDAC,gC;IA+FAC,0C;IA3GAC,qC;IAyEAC,gC;IAvLMC,iC;IAqHNC,sC;IApDAC,sC;IAwBAC,2C;IApDAC,yC;IAgGAC,gC;IA2DAC,sC;IASAC,8B;IAlGAC,8B;IAPAC,sC;IAdAC,yC;IALAC,qC;IAPAC,+B;IA0JAC,sD;IAvDAC,kC;IA5BAC,gC;IASAC,mC;IAhJMC,oC;IAiDNC,0C;IAVAC,4C;IAhBMC,kC","ignoreList":[]}