@cerbur/clutch-dsh-worktree 0.1.15 → 0.1.17

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 (367) hide show
  1. package/README.md +243 -22
  2. package/README.zh.md +203 -20
  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 +35 -11
  12. package/lib/client/WorktreeSurface.js.map +1 -1
  13. package/lib/client/command-activity.d.ts +11 -0
  14. package/lib/client/command-activity.d.ts.map +1 -0
  15. package/lib/client/command-activity.js +71 -0
  16. package/lib/client/command-activity.js.map +1 -0
  17. package/lib/client/dashboard/DashboardRequest.d.ts +11 -0
  18. package/lib/client/dashboard/DashboardRequest.d.ts.map +1 -0
  19. package/lib/client/dashboard/DashboardRequest.js +38 -0
  20. package/lib/client/dashboard/DashboardRequest.js.map +1 -0
  21. package/lib/client/dashboard/WorktreeDashboard.d.ts +2 -1
  22. package/lib/client/dashboard/WorktreeDashboard.d.ts.map +1 -1
  23. package/lib/client/dashboard/WorktreeDashboard.js +89 -59
  24. package/lib/client/dashboard/WorktreeDashboard.js.map +1 -1
  25. package/lib/client/dashboard/WorktreeInstructions.d.ts +2 -1
  26. package/lib/client/dashboard/WorktreeInstructions.d.ts.map +1 -1
  27. package/lib/client/dashboard/WorktreeInstructions.js +27 -8
  28. package/lib/client/dashboard/WorktreeInstructions.js.map +1 -1
  29. package/lib/client/dashboard/dashboard-overlay.d.ts.map +1 -1
  30. package/lib/client/dashboard/dashboard-overlay.js +38 -42
  31. package/lib/client/dashboard/dashboard-overlay.js.map +1 -1
  32. package/lib/client/dashboard/dashboard-selection.d.ts +1 -0
  33. package/lib/client/dashboard/dashboard-selection.d.ts.map +1 -1
  34. package/lib/client/dashboard/dashboard-selection.js.map +1 -1
  35. package/lib/client/dashboard/git/WorktreeGitPanel.d.ts +2 -1
  36. package/lib/client/dashboard/git/WorktreeGitPanel.d.ts.map +1 -1
  37. package/lib/client/dashboard/git/WorktreeGitPanel.js +54 -8
  38. package/lib/client/dashboard/git/WorktreeGitPanel.js.map +1 -1
  39. package/lib/client/dashboard/git/file-address.d.ts +2 -1
  40. package/lib/client/dashboard/git/file-address.d.ts.map +1 -1
  41. package/lib/client/dashboard/git/file-address.js +8 -13
  42. package/lib/client/dashboard/git/file-address.js.map +1 -1
  43. package/lib/client/dashboard/git/useWorktreeGitState.d.ts.map +1 -1
  44. package/lib/client/dashboard/git/useWorktreeGitState.js +4 -1
  45. package/lib/client/dashboard/git/useWorktreeGitState.js.map +1 -1
  46. package/lib/client/dsh-icons.d.ts +2 -0
  47. package/lib/client/dsh-icons.d.ts.map +1 -1
  48. package/lib/client/dsh-icons.js +3 -1
  49. package/lib/client/dsh-icons.js.map +1 -1
  50. package/lib/client/dsh-slot-contract.d.ts +9 -1
  51. package/lib/client/dsh-slot-contract.d.ts.map +1 -1
  52. package/lib/client/entry.d.ts.map +1 -1
  53. package/lib/client/entry.js +57 -1
  54. package/lib/client/entry.js.map +1 -1
  55. package/lib/client/layout/app-frame.d.ts +12 -0
  56. package/lib/client/layout/app-frame.d.ts.map +1 -0
  57. package/lib/client/layout/app-frame.js +82 -0
  58. package/lib/client/layout/app-frame.js.map +1 -0
  59. package/lib/client/locales.d.ts +150 -0
  60. package/lib/client/locales.d.ts.map +1 -1
  61. package/lib/client/locales.js +208 -58
  62. package/lib/client/locales.js.map +1 -1
  63. package/lib/client/overlay/overlay-bounds.d.ts.map +1 -1
  64. package/lib/client/overlay/overlay-bounds.js +8 -3
  65. package/lib/client/overlay/overlay-bounds.js.map +1 -1
  66. package/lib/client/overlay/sidebar-overlay-geometry.d.ts +6 -0
  67. package/lib/client/overlay/sidebar-overlay-geometry.d.ts.map +1 -1
  68. package/lib/client/overlay/sidebar-overlay-geometry.js +180 -32
  69. package/lib/client/overlay/sidebar-overlay-geometry.js.map +1 -1
  70. package/lib/client/restart-notice.d.ts +25 -0
  71. package/lib/client/restart-notice.d.ts.map +1 -0
  72. package/lib/client/restart-notice.js +97 -0
  73. package/lib/client/restart-notice.js.map +1 -0
  74. package/lib/client/session/session-view.d.ts +16 -2
  75. package/lib/client/session/session-view.d.ts.map +1 -1
  76. package/lib/client/session/session-view.js +24 -10
  77. package/lib/client/session/session-view.js.map +1 -1
  78. package/lib/client/session/worktree-session.d.ts +1 -0
  79. package/lib/client/session/worktree-session.d.ts.map +1 -1
  80. package/lib/client/session/worktree-session.js +3 -1
  81. package/lib/client/session/worktree-session.js.map +1 -1
  82. package/lib/client/settings/ToolSettings.d.ts +9 -0
  83. package/lib/client/settings/ToolSettings.d.ts.map +1 -0
  84. package/lib/client/settings/ToolSettings.js +77 -0
  85. package/lib/client/settings/ToolSettings.js.map +1 -0
  86. package/lib/client/settings/WorktreeSettings.d.ts +8 -0
  87. package/lib/client/settings/WorktreeSettings.d.ts.map +1 -0
  88. package/lib/client/settings/WorktreeSettings.js +46 -0
  89. package/lib/client/settings/WorktreeSettings.js.map +1 -0
  90. package/lib/client/settings/WorktreeSettingsNavIcon.d.ts +6 -0
  91. package/lib/client/settings/WorktreeSettingsNavIcon.d.ts.map +1 -0
  92. package/lib/client/settings/WorktreeSettingsNavIcon.js +51 -0
  93. package/lib/client/settings/WorktreeSettingsNavIcon.js.map +1 -0
  94. package/lib/client/settings/diagnostics.d.ts +24 -0
  95. package/lib/client/settings/diagnostics.d.ts.map +1 -0
  96. package/lib/client/settings/diagnostics.js +63 -0
  97. package/lib/client/settings/diagnostics.js.map +1 -0
  98. package/lib/client/settings/settings-navigation.d.ts +7 -0
  99. package/lib/client/settings/settings-navigation.d.ts.map +1 -0
  100. package/lib/client/settings/settings-navigation.js +12 -0
  101. package/lib/client/settings/settings-navigation.js.map +1 -0
  102. package/lib/client/surface/actions/useLifecycleActions.d.ts +2 -1
  103. package/lib/client/surface/actions/useLifecycleActions.d.ts.map +1 -1
  104. package/lib/client/surface/actions/useLifecycleActions.js +14 -5
  105. package/lib/client/surface/actions/useLifecycleActions.js.map +1 -1
  106. package/lib/client/surface/actions/useSessionActions.d.ts.map +1 -1
  107. package/lib/client/surface/actions/useSessionActions.js +6 -6
  108. package/lib/client/surface/actions/useSessionActions.js.map +1 -1
  109. package/lib/client/surface/actions/useWorktreeRegistration.d.ts.map +1 -1
  110. package/lib/client/surface/actions/useWorktreeRegistration.js +4 -2
  111. package/lib/client/surface/actions/useWorktreeRegistration.js.map +1 -1
  112. package/lib/client/surface/components/AnimatedTree.d.ts +32 -0
  113. package/lib/client/surface/components/AnimatedTree.d.ts.map +1 -0
  114. package/lib/client/surface/components/AnimatedTree.js +139 -0
  115. package/lib/client/surface/components/AnimatedTree.js.map +1 -0
  116. package/lib/client/surface/components/NotificationToasts.d.ts +19 -3
  117. package/lib/client/surface/components/NotificationToasts.d.ts.map +1 -1
  118. package/lib/client/surface/components/NotificationToasts.js +73 -7
  119. package/lib/client/surface/components/NotificationToasts.js.map +1 -1
  120. package/lib/client/surface/components/OverlayScrollbar.d.ts +6 -0
  121. package/lib/client/surface/components/OverlayScrollbar.d.ts.map +1 -0
  122. package/lib/client/surface/components/OverlayScrollbar.js +84 -0
  123. package/lib/client/surface/components/OverlayScrollbar.js.map +1 -0
  124. package/lib/client/surface/components/RestartToast.d.ts +6 -0
  125. package/lib/client/surface/components/RestartToast.d.ts.map +1 -0
  126. package/lib/client/surface/components/RestartToast.js +11 -0
  127. package/lib/client/surface/components/RestartToast.js.map +1 -0
  128. package/lib/client/surface/components/SurfaceContent.d.ts.map +1 -1
  129. package/lib/client/surface/components/SurfaceContent.js +110 -39
  130. package/lib/client/surface/components/SurfaceContent.js.map +1 -1
  131. package/lib/client/surface/components/WorkspaceTree.d.ts.map +1 -1
  132. package/lib/client/surface/components/WorkspaceTree.js +7 -2
  133. package/lib/client/surface/components/WorkspaceTree.js.map +1 -1
  134. package/lib/client/surface/components/dialogs.d.ts.map +1 -1
  135. package/lib/client/surface/components/dialogs.js +16 -10
  136. package/lib/client/surface/components/dialogs.js.map +1 -1
  137. package/lib/client/surface/components/rows.d.ts +1 -1
  138. package/lib/client/surface/components/rows.d.ts.map +1 -1
  139. package/lib/client/surface/components/rows.js +24 -101
  140. package/lib/client/surface/components/rows.js.map +1 -1
  141. package/lib/client/surface/notification-queue.d.ts +15 -0
  142. package/lib/client/surface/notification-queue.d.ts.map +1 -1
  143. package/lib/client/surface/notification-queue.js +13 -2
  144. package/lib/client/surface/notification-queue.js.map +1 -1
  145. package/lib/client/surface/state/useSurfaceRefresh.d.ts +1 -1
  146. package/lib/client/surface/state/useSurfaceRefresh.d.ts.map +1 -1
  147. package/lib/client/surface/state/useSurfaceRefresh.js +13 -1
  148. package/lib/client/surface/state/useSurfaceRefresh.js.map +1 -1
  149. package/lib/client/surface/state/useSurfaceSources.d.ts +2 -1
  150. package/lib/client/surface/state/useSurfaceSources.d.ts.map +1 -1
  151. package/lib/client/surface/state/useSurfaceSources.js +7 -5
  152. package/lib/client/surface/state/useSurfaceSources.js.map +1 -1
  153. package/lib/client/surface/state/useTitleMarquee.d.ts +7 -0
  154. package/lib/client/surface/state/useTitleMarquee.d.ts.map +1 -0
  155. package/lib/client/surface/state/useTitleMarquee.js +60 -0
  156. package/lib/client/surface/state/useTitleMarquee.js.map +1 -0
  157. package/lib/client/surface/types.d.ts +8 -1
  158. package/lib/client/surface/types.d.ts.map +1 -1
  159. package/lib/client/view/worktree-error-copy.d.ts.map +1 -1
  160. package/lib/client/view/worktree-error-copy.js +69 -8
  161. package/lib/client/view/worktree-error-copy.js.map +1 -1
  162. package/lib/client/view/worktree-view-errors.d.ts.map +1 -1
  163. package/lib/client/view/worktree-view-errors.js +13 -5
  164. package/lib/client/view/worktree-view-errors.js.map +1 -1
  165. package/lib/client/view/worktree-view-read.d.ts +3 -0
  166. package/lib/client/view/worktree-view-read.d.ts.map +1 -1
  167. package/lib/client/view/worktree-view-read.js +9 -0
  168. package/lib/client/view/worktree-view-read.js.map +1 -1
  169. package/lib/client/worktree-connection.d.ts +14 -2
  170. package/lib/client/worktree-connection.d.ts.map +1 -1
  171. package/lib/client/worktree-connection.js +20 -2
  172. package/lib/client/worktree-connection.js.map +1 -1
  173. package/lib/client/worktree-tool-changes.d.ts +13 -0
  174. package/lib/client/worktree-tool-changes.d.ts.map +1 -0
  175. package/lib/client/worktree-tool-changes.js +64 -0
  176. package/lib/client/worktree-tool-changes.js.map +1 -0
  177. package/lib/client.js +2791 -1131
  178. package/lib/client.js.map +1 -1
  179. package/lib/contract/index.d.ts +12 -2
  180. package/lib/contract/index.d.ts.map +1 -1
  181. package/lib/contract/index.js +10 -0
  182. package/lib/contract/index.js.map +1 -1
  183. package/lib/contract/tool-settings.d.ts +28 -0
  184. package/lib/contract/tool-settings.d.ts.map +1 -0
  185. package/lib/contract/tool-settings.js +10 -0
  186. package/lib/contract/tool-settings.js.map +1 -0
  187. package/lib/contract/worktree-tool-changes.d.ts +10 -0
  188. package/lib/contract/worktree-tool-changes.d.ts.map +1 -0
  189. package/lib/contract/worktree-tool-changes.js +2 -0
  190. package/lib/contract/worktree-tool-changes.js.map +1 -0
  191. package/lib/host/permission-preset-append.d.ts +15 -0
  192. package/lib/host/permission-preset-append.d.ts.map +1 -0
  193. package/lib/host/permission-preset-append.js +63 -0
  194. package/lib/host/permission-preset-append.js.map +1 -0
  195. package/lib/host/service.d.ts +17 -0
  196. package/lib/host/service.d.ts.map +1 -1
  197. package/lib/host/service.js +67 -11
  198. package/lib/host/service.js.map +1 -1
  199. package/lib/host/tool-settings.d.ts +14 -0
  200. package/lib/host/tool-settings.d.ts.map +1 -0
  201. package/lib/host/tool-settings.js +98 -0
  202. package/lib/host/tool-settings.js.map +1 -0
  203. package/lib/host/worktree-permission-manager.d.ts.map +1 -1
  204. package/lib/host/worktree-permission-manager.js +2 -4
  205. package/lib/host/worktree-permission-manager.js.map +1 -1
  206. package/lib/host/worktree-tool-changes.d.ts +12 -0
  207. package/lib/host/worktree-tool-changes.d.ts.map +1 -0
  208. package/lib/host/worktree-tool-changes.js +60 -0
  209. package/lib/host/worktree-tool-changes.js.map +1 -0
  210. package/lib/manage/manager-git-history.d.ts.map +1 -1
  211. package/lib/manage/manager-git-history.js +43 -38
  212. package/lib/manage/manager-git-history.js.map +1 -1
  213. package/lib/manage/manager-sessions.d.ts +5 -0
  214. package/lib/manage/manager-sessions.d.ts.map +1 -1
  215. package/lib/manage/manager-sessions.js +35 -12
  216. package/lib/manage/manager-sessions.js.map +1 -1
  217. package/lib/manage/manager-support.d.ts +10 -2
  218. package/lib/manage/manager-support.d.ts.map +1 -1
  219. package/lib/manage/manager-support.js +90 -14
  220. package/lib/manage/manager-support.js.map +1 -1
  221. package/lib/manage/manager-worktree-lifecycle.d.ts.map +1 -1
  222. package/lib/manage/manager-worktree-lifecycle.js +5 -4
  223. package/lib/manage/manager-worktree-lifecycle.js.map +1 -1
  224. package/lib/manage/manager-worktrees.d.ts +1 -0
  225. package/lib/manage/manager-worktrees.d.ts.map +1 -1
  226. package/lib/manage/manager-worktrees.js +80 -26
  227. package/lib/manage/manager-worktrees.js.map +1 -1
  228. package/lib/manage/manager.d.ts +10 -0
  229. package/lib/manage/manager.d.ts.map +1 -1
  230. package/lib/manage/manager.js +14 -3
  231. package/lib/manage/manager.js.map +1 -1
  232. package/lib/manage/types.d.ts +10 -1
  233. package/lib/manage/types.d.ts.map +1 -1
  234. package/lib/provider/generated-name.d.ts.map +1 -1
  235. package/lib/provider/generated-name.js +5 -4
  236. package/lib/provider/generated-name.js.map +1 -1
  237. package/lib/provider/git/adapter.d.ts.map +1 -1
  238. package/lib/provider/git/adapter.js +5 -2
  239. package/lib/provider/git/adapter.js.map +1 -1
  240. package/lib/provider/mutation-token.d.ts +1 -1
  241. package/lib/provider/mutation-token.d.ts.map +1 -1
  242. package/lib/provider/mutation-token.js +1 -0
  243. package/lib/provider/mutation-token.js.map +1 -1
  244. package/lib/provider/sidecar/repository.d.ts.map +1 -1
  245. package/lib/provider/sidecar/repository.js +1 -0
  246. package/lib/provider/sidecar/repository.js.map +1 -1
  247. package/lib/provider/sidecar/sidecar-schema.d.ts.map +1 -1
  248. package/lib/provider/sidecar/sidecar-schema.js +24 -4
  249. package/lib/provider/sidecar/sidecar-schema.js.map +1 -1
  250. package/lib/provider/transaction/operations/adopt-branch.d.ts.map +1 -1
  251. package/lib/provider/transaction/operations/adopt-branch.js +6 -5
  252. package/lib/provider/transaction/operations/adopt-branch.js.map +1 -1
  253. package/lib/provider/transaction/operations/clean.d.ts.map +1 -1
  254. package/lib/provider/transaction/operations/clean.js +20 -19
  255. package/lib/provider/transaction/operations/clean.js.map +1 -1
  256. package/lib/provider/transaction/operations/create.d.ts +1 -1
  257. package/lib/provider/transaction/operations/create.d.ts.map +1 -1
  258. package/lib/provider/transaction/operations/create.js +23 -13
  259. package/lib/provider/transaction/operations/create.js.map +1 -1
  260. package/lib/provider/transaction/operations/import.d.ts.map +1 -1
  261. package/lib/provider/transaction/operations/import.js +7 -1
  262. package/lib/provider/transaction/operations/import.js.map +1 -1
  263. package/lib/provider/transaction/operations/remove.d.ts.map +1 -1
  264. package/lib/provider/transaction/operations/remove.js +20 -19
  265. package/lib/provider/transaction/operations/remove.js.map +1 -1
  266. package/lib/provider/transaction/recovery/failure-recovery.d.ts.map +1 -1
  267. package/lib/provider/transaction/recovery/failure-recovery.js +19 -18
  268. package/lib/provider/transaction/recovery/failure-recovery.js.map +1 -1
  269. package/lib/provider/transaction/recovery/recover.d.ts.map +1 -1
  270. package/lib/provider/transaction/recovery/recover.js +6 -2
  271. package/lib/provider/transaction/recovery/recover.js.map +1 -1
  272. package/lib/provider/transaction/support/inspection.d.ts.map +1 -1
  273. package/lib/provider/transaction/support/inspection.js +3 -2
  274. package/lib/provider/transaction/support/inspection.js.map +1 -1
  275. package/lib/provider/transaction/support/journal.d.ts.map +1 -1
  276. package/lib/provider/transaction/support/journal.js +8 -5
  277. package/lib/provider/transaction/support/journal.js.map +1 -1
  278. package/lib/provider/transaction/support/path-safety.d.ts.map +1 -1
  279. package/lib/provider/transaction/support/path-safety.js +4 -3
  280. package/lib/provider/transaction/support/path-safety.js.map +1 -1
  281. package/lib/provider/transaction/types.d.ts +2 -1
  282. package/lib/provider/transaction/types.d.ts.map +1 -1
  283. package/lib/provider/types.d.ts +3 -1
  284. package/lib/provider/types.d.ts.map +1 -1
  285. package/lib/provider/types.js +1 -1
  286. package/lib/provider/types.js.map +1 -1
  287. package/lib/provider/worktree-path.d.ts +10 -0
  288. package/lib/provider/worktree-path.d.ts.map +1 -0
  289. package/lib/provider/worktree-path.js +47 -0
  290. package/lib/provider/worktree-path.js.map +1 -0
  291. package/lib/tool/context.d.ts +14 -0
  292. package/lib/tool/context.d.ts.map +1 -0
  293. package/lib/tool/context.js +95 -0
  294. package/lib/tool/context.js.map +1 -0
  295. package/lib/tool/delegation.d.ts +41 -0
  296. package/lib/tool/delegation.d.ts.map +1 -0
  297. package/lib/tool/delegation.js +196 -0
  298. package/lib/tool/delegation.js.map +1 -0
  299. package/lib/tool/errors.d.ts +3 -0
  300. package/lib/tool/errors.d.ts.map +1 -0
  301. package/lib/tool/errors.js +63 -0
  302. package/lib/tool/errors.js.map +1 -0
  303. package/lib/tool/guidance.d.ts +5 -0
  304. package/lib/tool/guidance.d.ts.map +1 -0
  305. package/lib/tool/guidance.js +48 -0
  306. package/lib/tool/guidance.js.map +1 -0
  307. package/lib/tool/history.d.ts +27 -0
  308. package/lib/tool/history.d.ts.map +1 -0
  309. package/lib/tool/history.js +157 -0
  310. package/lib/tool/history.js.map +1 -0
  311. package/lib/tool/index.d.ts +8 -0
  312. package/lib/tool/index.d.ts.map +1 -0
  313. package/lib/tool/index.js +296 -0
  314. package/lib/tool/index.js.map +1 -0
  315. package/lib/tool/inputs.d.ts +12 -0
  316. package/lib/tool/inputs.d.ts.map +1 -0
  317. package/lib/tool/inputs.js +24 -0
  318. package/lib/tool/inputs.js.map +1 -0
  319. package/lib/tool/list-models.d.ts +3 -0
  320. package/lib/tool/list-models.d.ts.map +1 -0
  321. package/lib/tool/list-models.js +38 -0
  322. package/lib/tool/list-models.js.map +1 -0
  323. package/lib/tool/list-sessions.d.ts +3 -0
  324. package/lib/tool/list-sessions.d.ts.map +1 -0
  325. package/lib/tool/list-sessions.js +70 -0
  326. package/lib/tool/list-sessions.js.map +1 -0
  327. package/lib/tool/list-worktrees.d.ts +3 -0
  328. package/lib/tool/list-worktrees.d.ts.map +1 -0
  329. package/lib/tool/list-worktrees.js +39 -0
  330. package/lib/tool/list-worktrees.js.map +1 -0
  331. package/lib/tool/native-session.d.ts +74 -0
  332. package/lib/tool/native-session.d.ts.map +1 -0
  333. package/lib/tool/native-session.js +248 -0
  334. package/lib/tool/native-session.js.map +1 -0
  335. package/lib/tool/new-worktree.d.ts +3 -0
  336. package/lib/tool/new-worktree.d.ts.map +1 -0
  337. package/lib/tool/new-worktree.js +81 -0
  338. package/lib/tool/new-worktree.js.map +1 -0
  339. package/lib/tool/outputs.d.ts +50 -0
  340. package/lib/tool/outputs.d.ts.map +1 -0
  341. package/lib/tool/outputs.js +65 -0
  342. package/lib/tool/outputs.js.map +1 -0
  343. package/lib/tool/report-result.d.ts +3 -0
  344. package/lib/tool/report-result.d.ts.map +1 -0
  345. package/lib/tool/report-result.js +83 -0
  346. package/lib/tool/report-result.js.map +1 -0
  347. package/lib/tool/schema.d.ts +7 -0
  348. package/lib/tool/schema.d.ts.map +1 -0
  349. package/lib/tool/schema.js +92 -0
  350. package/lib/tool/schema.js.map +1 -0
  351. package/lib/tool/send-message.d.ts +3 -0
  352. package/lib/tool/send-message.d.ts.map +1 -0
  353. package/lib/tool/send-message.js +64 -0
  354. package/lib/tool/send-message.js.map +1 -0
  355. package/lib/tool/span-worktree.d.ts +3 -0
  356. package/lib/tool/span-worktree.d.ts.map +1 -0
  357. package/lib/tool/span-worktree.js +114 -0
  358. package/lib/tool/span-worktree.js.map +1 -0
  359. package/lib/tool/types.d.ts +54 -0
  360. package/lib/tool/types.d.ts.map +1 -0
  361. package/lib/tool/types.js +2 -0
  362. package/lib/tool/types.js.map +1 -0
  363. package/lib/typert.host.js +237 -66
  364. package/lib/typert.remote-client.d.ts +7 -1
  365. package/lib/typert.remote-client.d.ts.map +1 -1
  366. package/lib/typert.remote-client.js +237 -66
  367. package/package.json +55 -43
@@ -3,7 +3,7 @@ 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, WorkspaceId, WorktreeGitCommitFiles, WorktreeGitCommitFilesRequest, WorktreeGitFileDiff, WorktreeGitFileDiffRequest, WorktreeGitHistory, 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 {
@@ -13,6 +13,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
13
13
  createWorktree: (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
14
14
  ensureWorktreePermission: (input: WorktreePermissionRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
15
15
  forgetWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
16
+ getToolSettings: (input: { scope: WorktreeToolSettingsScope; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
16
17
  getWorktreeCommitFileDiff: (input: WorktreeGitFileDiffRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitFileDiff>>>
17
18
  getWorktreeInstructions: (input: { workspaceId: string; worktreeId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
18
19
  importWorktree: (input: { readonly workspaceId: WorkspaceId; readonly absolutePath: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
@@ -27,8 +28,10 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
27
28
  recoverWorktrees: (input: { workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
28
29
  removeWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
29
30
  unarchiveWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
31
+ updateToolSettings: (input: { scope: WorktreeToolSettingsScope; selection: WorktreeToolSelection; expected: WorktreeToolSelection; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
30
32
  updateWorktreeBaseBranch: (input: { workspaceId: string; worktreeId: string; baseBranch: string; expectedBaseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
31
33
  updateWorktreeInstructions: (input: { workspaceId: string; worktreeId: string; instructions: string; expectedInstructions: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
34
+ watchToolChanges: (input: { readonly afterRevision: number; }, signal?: AbortSignal) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolChangeBatch>>>
32
35
  }
33
36
  interface TypertRemoteMap {
34
37
  'worktreeManager/adoptWorktreeBranch': (input: { workspaceId: string; worktreeId: string; mutationToken: string; expectedBranch: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
@@ -37,6 +40,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
37
40
  'worktreeManager/createWorktree': (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
38
41
  'worktreeManager/ensureWorktreePermission': (input: WorktreePermissionRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
39
42
  'worktreeManager/forgetWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
43
+ 'worktreeManager/getToolSettings': (input: { scope: WorktreeToolSettingsScope; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
40
44
  'worktreeManager/getWorktreeCommitFileDiff': (input: WorktreeGitFileDiffRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeGitFileDiff>>>
41
45
  'worktreeManager/getWorktreeInstructions': (input: { workspaceId: string; worktreeId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
42
46
  'worktreeManager/importWorktree': (input: { readonly workspaceId: WorkspaceId; readonly absolutePath: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
@@ -51,8 +55,10 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
51
55
  'worktreeManager/recoverWorktrees': (input: { workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
52
56
  'worktreeManager/removeWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
53
57
  'worktreeManager/unarchiveWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
58
+ 'worktreeManager/updateToolSettings': (input: { scope: WorktreeToolSettingsScope; selection: WorktreeToolSelection; expected: WorktreeToolSelection; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
54
59
  'worktreeManager/updateWorktreeBaseBranch': (input: { workspaceId: string; worktreeId: string; baseBranch: string; expectedBaseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
55
60
  'worktreeManager/updateWorktreeInstructions': (input: { workspaceId: string; worktreeId: string; instructions: string; expectedInstructions: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
61
+ 'worktreeManager/watchToolChanges': (input: { readonly afterRevision: number; }, signal?: AbortSignal) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolChangeBatch>>>
56
62
  }
57
63
  interface TypertRemoteNamespaceMap {
58
64
  '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","forgetWorktree","getToolSettings","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":";;;;;;;;;IAoTEA,mB;IAiDAC,W;IAlCAC,a;IAlDAC,c;IA6FAC,wB;IAlCAC,c;IAxKMC,e;IAwFNC,yB;IAnDAC,uB;IAiFAC,c;IA2DAC,oB;IASAC,Y;IApFAC,Y;IAPAC,oB;IAdAC,uB;IATAC,mB;IAPAC,a;IAgJAC,oC;IAvDAC,gB;IA5BAC,c;IASAC,iB;IAjIMC,kB;IAiDNC,wB;IAVAC,0B;IAhBMC,gB;;;IAmHNxB,qC;IAiDAC,6B;IAlCAC,+B;IAlDAC,gC;IA6FAC,0C;IAlCAC,gC;IAxKMC,iC;IAwFNC,2C;IAnDAC,yC;IAiFAC,gC;IA2DAC,sC;IASAC,8B;IApFAC,8B;IAPAC,sC;IAdAC,yC;IATAC,qC;IAPAC,+B;IAgJAC,sD;IAvDAC,kC;IA5BAC,gC;IASAC,mC;IAjIMC,oC;IAiDNC,0C;IAVAC,4C;IAhBMC,kC","ignoreList":[]}