@cerbur/clutch-dsh-worktree 0.1.18 → 0.1.19

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 (169) hide show
  1. package/README.md +103 -10
  2. package/README.zh.md +83 -10
  3. package/assets/screenshots/screenshots-agent-steer.jpg +0 -0
  4. package/assets/screenshots/screenshots-baseline-sync.png +0 -0
  5. package/lib/client/WorktreeSurface.d.ts.map +1 -1
  6. package/lib/client/WorktreeSurface.js +18 -2
  7. package/lib/client/WorktreeSurface.js.map +1 -1
  8. package/lib/client/context/worktree-context-store.d.ts +3 -1
  9. package/lib/client/context/worktree-context-store.d.ts.map +1 -1
  10. package/lib/client/context/worktree-context-store.js +3 -2
  11. package/lib/client/context/worktree-context-store.js.map +1 -1
  12. package/lib/client/dashboard/WorktreeDashboard.d.ts +8 -3
  13. package/lib/client/dashboard/WorktreeDashboard.d.ts.map +1 -1
  14. package/lib/client/dashboard/WorktreeDashboard.js +120 -12
  15. package/lib/client/dashboard/WorktreeDashboard.js.map +1 -1
  16. package/lib/client/dashboard/dashboard-selection.d.ts +4 -0
  17. package/lib/client/dashboard/dashboard-selection.d.ts.map +1 -1
  18. package/lib/client/dashboard/dashboard-selection.js +23 -0
  19. package/lib/client/dashboard/dashboard-selection.js.map +1 -1
  20. package/lib/client/dsh-slot-contract.d.ts +8 -1
  21. package/lib/client/dsh-slot-contract.d.ts.map +1 -1
  22. package/lib/client/entry.d.ts.map +1 -1
  23. package/lib/client/entry.js +22 -4
  24. package/lib/client/entry.js.map +1 -1
  25. package/lib/client/locales.d.ts +46 -0
  26. package/lib/client/locales.d.ts.map +1 -1
  27. package/lib/client/locales.js +54 -8
  28. package/lib/client/locales.js.map +1 -1
  29. package/lib/client/permission/worktree-permission.d.ts.map +1 -1
  30. package/lib/client/permission/worktree-permission.js +14 -6
  31. package/lib/client/permission/worktree-permission.js.map +1 -1
  32. package/lib/client/settings/diagnostics.d.ts +4 -0
  33. package/lib/client/settings/diagnostics.d.ts.map +1 -1
  34. package/lib/client/settings/diagnostics.js +12 -0
  35. package/lib/client/settings/diagnostics.js.map +1 -1
  36. package/lib/client/steer/SteerDock.d.ts +8 -0
  37. package/lib/client/steer/SteerDock.d.ts.map +1 -0
  38. package/lib/client/steer/SteerDock.js +12 -0
  39. package/lib/client/steer/SteerDock.js.map +1 -0
  40. package/lib/client/steer/steer-activity.d.ts +18 -0
  41. package/lib/client/steer/steer-activity.d.ts.map +1 -0
  42. package/lib/client/steer/steer-activity.js +37 -0
  43. package/lib/client/steer/steer-activity.js.map +1 -0
  44. package/lib/client/steer/steer-state.d.ts +24 -0
  45. package/lib/client/steer/steer-state.d.ts.map +1 -0
  46. package/lib/client/steer/steer-state.js +102 -0
  47. package/lib/client/steer/steer-state.js.map +1 -0
  48. package/lib/client/surface/state/useSurfaceRefresh.d.ts.map +1 -1
  49. package/lib/client/surface/state/useSurfaceRefresh.js +6 -3
  50. package/lib/client/surface/state/useSurfaceRefresh.js.map +1 -1
  51. package/lib/client/surface/types.d.ts +5 -1
  52. package/lib/client/surface/types.d.ts.map +1 -1
  53. package/lib/client/view/worktree-view-read.d.ts +3 -0
  54. package/lib/client/view/worktree-view-read.d.ts.map +1 -1
  55. package/lib/client/view/worktree-view-read.js +23 -1
  56. package/lib/client/view/worktree-view-read.js.map +1 -1
  57. package/lib/client/worktree-connection.d.ts +1 -0
  58. package/lib/client/worktree-connection.d.ts.map +1 -1
  59. package/lib/client/worktree-connection.js +2 -0
  60. package/lib/client/worktree-connection.js.map +1 -1
  61. package/lib/client.js +1031 -456
  62. package/lib/client.js.map +1 -1
  63. package/lib/contract/baseline-sync.d.ts +27 -0
  64. package/lib/contract/baseline-sync.d.ts.map +1 -0
  65. package/lib/contract/baseline-sync.js +2 -0
  66. package/lib/contract/baseline-sync.js.map +1 -0
  67. package/lib/contract/index.contract.js +1 -0
  68. package/lib/contract/index.contract.js.map +1 -1
  69. package/lib/contract/index.d.ts +5 -1
  70. package/lib/contract/index.d.ts.map +1 -1
  71. package/lib/contract/index.js +1 -0
  72. package/lib/contract/index.js.map +1 -1
  73. package/lib/contract/worktree-permission.d.ts +2 -0
  74. package/lib/contract/worktree-permission.d.ts.map +1 -1
  75. package/lib/contract/worktree-permission.js +1 -1
  76. package/lib/contract/worktree-permission.js.map +1 -1
  77. package/lib/contract/worktree-tool-changes.d.ts +2 -0
  78. package/lib/contract/worktree-tool-changes.d.ts.map +1 -1
  79. package/lib/host/baseline-sync.d.ts +15 -0
  80. package/lib/host/baseline-sync.d.ts.map +1 -0
  81. package/lib/host/baseline-sync.js +93 -0
  82. package/lib/host/baseline-sync.js.map +1 -0
  83. package/lib/host/remote.d.ts +2 -1
  84. package/lib/host/remote.d.ts.map +1 -1
  85. package/lib/host/remote.js +1 -1
  86. package/lib/host/remote.js.map +1 -1
  87. package/lib/host/service.d.ts +5 -0
  88. package/lib/host/service.d.ts.map +1 -1
  89. package/lib/host/service.js +27 -2
  90. package/lib/host/service.js.map +1 -1
  91. package/lib/host/worktree-permission.d.ts +12 -0
  92. package/lib/host/worktree-permission.d.ts.map +1 -1
  93. package/lib/host/worktree-permission.js +87 -16
  94. package/lib/host/worktree-permission.js.map +1 -1
  95. package/lib/host/worktree-tool-changes.d.ts +1 -1
  96. package/lib/host/worktree-tool-changes.d.ts.map +1 -1
  97. package/lib/host/worktree-tool-changes.js +5 -2
  98. package/lib/host/worktree-tool-changes.js.map +1 -1
  99. package/lib/index.d.ts +1 -1
  100. package/lib/index.d.ts.map +1 -1
  101. package/lib/index.js.map +1 -1
  102. package/lib/manage/manager.d.ts +5 -0
  103. package/lib/manage/manager.d.ts.map +1 -1
  104. package/lib/manage/manager.js +17 -1
  105. package/lib/manage/manager.js.map +1 -1
  106. package/lib/manage/types.d.ts +5 -0
  107. package/lib/manage/types.d.ts.map +1 -1
  108. package/lib/tool/agent-relay.d.ts +55 -0
  109. package/lib/tool/agent-relay.d.ts.map +1 -0
  110. package/lib/tool/agent-relay.js +159 -0
  111. package/lib/tool/agent-relay.js.map +1 -0
  112. package/lib/tool/delegation.d.ts +1 -0
  113. package/lib/tool/delegation.d.ts.map +1 -1
  114. package/lib/tool/delegation.js +32 -6
  115. package/lib/tool/delegation.js.map +1 -1
  116. package/lib/tool/dispatch-session.d.ts +18 -0
  117. package/lib/tool/dispatch-session.d.ts.map +1 -0
  118. package/lib/tool/dispatch-session.js +41 -0
  119. package/lib/tool/dispatch-session.js.map +1 -0
  120. package/lib/tool/errors.d.ts +6 -0
  121. package/lib/tool/errors.d.ts.map +1 -1
  122. package/lib/tool/errors.js +16 -2
  123. package/lib/tool/errors.js.map +1 -1
  124. package/lib/tool/guidance.d.ts +1 -0
  125. package/lib/tool/guidance.d.ts.map +1 -1
  126. package/lib/tool/guidance.js +2 -0
  127. package/lib/tool/guidance.js.map +1 -1
  128. package/lib/tool/index.d.ts.map +1 -1
  129. package/lib/tool/index.js +38 -4
  130. package/lib/tool/index.js.map +1 -1
  131. package/lib/tool/inputs.d.ts.map +1 -1
  132. package/lib/tool/inputs.js +6 -6
  133. package/lib/tool/inputs.js.map +1 -1
  134. package/lib/tool/list-models.js +2 -2
  135. package/lib/tool/list-models.js.map +1 -1
  136. package/lib/tool/list-sessions.js +2 -2
  137. package/lib/tool/list-sessions.js.map +1 -1
  138. package/lib/tool/list-worktrees.js +1 -1
  139. package/lib/tool/list-worktrees.js.map +1 -1
  140. package/lib/tool/native-session.d.ts +4 -0
  141. package/lib/tool/native-session.d.ts.map +1 -1
  142. package/lib/tool/native-session.js +17 -0
  143. package/lib/tool/native-session.js.map +1 -1
  144. package/lib/tool/new-worktree.js +4 -4
  145. package/lib/tool/new-worktree.js.map +1 -1
  146. package/lib/tool/report-result.d.ts.map +1 -1
  147. package/lib/tool/report-result.js +9 -7
  148. package/lib/tool/report-result.js.map +1 -1
  149. package/lib/tool/schema.d.ts +8 -0
  150. package/lib/tool/schema.d.ts.map +1 -1
  151. package/lib/tool/schema.js +31 -2
  152. package/lib/tool/schema.js.map +1 -1
  153. package/lib/tool/send-message.d.ts.map +1 -1
  154. package/lib/tool/send-message.js +8 -7
  155. package/lib/tool/send-message.js.map +1 -1
  156. package/lib/tool/span-worktree.d.ts.map +1 -1
  157. package/lib/tool/span-worktree.js +33 -59
  158. package/lib/tool/span-worktree.js.map +1 -1
  159. package/lib/tool/types.d.ts +2 -0
  160. package/lib/tool/types.d.ts.map +1 -1
  161. package/lib/tool/wire-schema.d.ts +4 -0
  162. package/lib/tool/wire-schema.d.ts.map +1 -0
  163. package/lib/tool/wire-schema.js +24 -0
  164. package/lib/tool/wire-schema.js.map +1 -0
  165. package/lib/typert.host.js +117 -56
  166. package/lib/typert.remote-client.d.ts +3 -1
  167. package/lib/typert.remote-client.d.ts.map +1 -1
  168. package/lib/typert.remote-client.js +117 -56
  169. package/package.json +4 -1
@@ -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, 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'
6
+ import type { BranchRecord, SessionBinding, WorkspaceCheckout, WorkspaceGitState, WorkspaceId, WorktreeBaselineSyncRequest, WorktreeGitCommitFiles, WorktreeGitCommitFilesRequest, WorktreeGitFileDiff, WorktreeGitFileDiffRequest, WorktreeGitHistory, WorktreeGitHistoryRequest, WorktreeId, WorktreeImportCandidate, WorktreePermissionNormalizationRequest, WorktreePermissionRequest, WorktreePermissionResult, WorktreeRecord, WorktreeRemoteResult, WorktreeSessionDispatchResult, 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 {
@@ -30,6 +30,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
30
30
  normalizeDetachedWorktreePermissions: (input: WorktreePermissionNormalizationRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
31
31
  recoverWorktrees: (input: { workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
32
32
  removeWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
33
+ syncWorktreeBaseline: (input: WorktreeBaselineSyncRequest, signal?: AbortSignal) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeSessionDispatchResult>>>
33
34
  unarchiveWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
34
35
  updateToolSettings: (input: { scope: WorktreeToolSettingsScope; selection: WorktreeToolSelection; expected: WorktreeToolSelection; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
35
36
  updateWorktreeBaseBranch: (input: { workspaceId: string; worktreeId: string; baseBranch: string; expectedBaseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
@@ -60,6 +61,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
60
61
  'worktreeManager/normalizeDetachedWorktreePermissions': (input: WorktreePermissionNormalizationRequest) => Promise<RemoteResult<WorktreeRemoteResult<WorktreePermissionResult>>>
61
62
  'worktreeManager/recoverWorktrees': (input: { workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
62
63
  'worktreeManager/removeWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
64
+ 'worktreeManager/syncWorktreeBaseline': (input: WorktreeBaselineSyncRequest, signal?: AbortSignal) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeSessionDispatchResult>>>
63
65
  'worktreeManager/unarchiveWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly mutationToken: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
64
66
  'worktreeManager/updateToolSettings': (input: { scope: WorktreeToolSettingsScope; selection: WorktreeToolSelection; expected: WorktreeToolSelection; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeToolSelection>>>
65
67
  'worktreeManager/updateWorktreeBaseBranch': (input: { workspaceId: string; worktreeId: string; baseBranch: string; expectedBaseBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<string>>>
@@ -1 +1 @@
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":[]}
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","syncWorktreeBaseline","unarchiveWorktree","updateToolSettings","updateWorktreeBaseBranch","updateWorktreeInstructions","watchToolChanges"],"sources":["../src/host/service.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IA+VEA,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;IArJAC,oB;IA8JAC,iB;IAhJMC,kB;IAiDNC,wB;IAVAC,0B;IAhBMC,gB;;;IAkIN5B,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;IArJAC,sC;IA8JAC,mC;IAhJMC,oC;IAiDNC,0C;IAVAC,4C;IAhBMC,kC","ignoreList":[]}