@deepseek-ai/dsh-experimental-client-ui-forge 0.2.2-rc.1 → 0.2.2-rc.2

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 (272) hide show
  1. package/README.i18n.yaml +8 -8
  2. package/README.md +41 -14
  3. package/README.zh.md +40 -13
  4. package/lib/client.js +13 -11800
  5. package/lib/client.js.map +1 -0
  6. package/lib/index.js +1340 -115
  7. package/lib/typert.host.js +1715 -212
  8. package/lib/typert.remote-client.d.ts +42 -5
  9. package/lib/typert.remote-client.d.ts.map +1 -0
  10. package/lib/typert.remote-client.js +1523 -244
  11. package/lib/types/client/ActionToast.d.ts.map +1 -0
  12. package/lib/types/client/ActionToast.js.map +1 -0
  13. package/lib/types/client/BaseMenu.d.ts +30 -0
  14. package/lib/types/client/BaseMenu.d.ts.map +1 -0
  15. package/lib/types/client/BaseMenu.js.map +1 -0
  16. package/lib/types/client/ChangeRequestCard.d.ts +9 -5
  17. package/lib/types/client/ChangeRequestCard.d.ts.map +1 -0
  18. package/lib/types/client/ChangeRequestCard.js.map +1 -0
  19. package/lib/types/client/ChangeRequestOverview.d.ts +124 -0
  20. package/lib/types/client/ChangeRequestOverview.d.ts.map +1 -0
  21. package/lib/types/client/ChangeRequestOverview.js.map +1 -0
  22. package/lib/types/client/ChangedFiles.d.ts +2 -0
  23. package/lib/types/client/ChangedFiles.d.ts.map +1 -0
  24. package/lib/types/client/ChangedFiles.js.map +1 -0
  25. package/lib/types/client/ChangesTab.d.ts +30 -5
  26. package/lib/types/client/ChangesTab.d.ts.map +1 -0
  27. package/lib/types/client/ChangesTab.js.map +1 -0
  28. package/lib/types/client/ChangesTabTitle.d.ts.map +1 -0
  29. package/lib/types/client/ChangesTabTitle.js.map +1 -0
  30. package/lib/types/client/CommitMenu.d.ts +41 -0
  31. package/lib/types/client/CommitMenu.d.ts.map +1 -0
  32. package/lib/types/client/CommitMenu.js.map +1 -0
  33. package/lib/types/client/DiffFile.d.ts +47 -15
  34. package/lib/types/client/DiffFile.d.ts.map +1 -0
  35. package/lib/types/client/DiffFile.js.map +1 -0
  36. package/lib/types/client/FileLabel.d.ts.map +1 -0
  37. package/lib/types/client/FileLabel.js.map +1 -0
  38. package/lib/types/client/FileTreePane.d.ts +4 -2
  39. package/lib/types/client/FileTreePane.d.ts.map +1 -0
  40. package/lib/types/client/FileTreePane.js.map +1 -0
  41. package/lib/types/client/ForgeTab.d.ts +9 -1
  42. package/lib/types/client/ForgeTab.d.ts.map +1 -0
  43. package/lib/types/client/ForgeTab.js.map +1 -0
  44. package/lib/types/client/ForgeTabTitle.d.ts.map +1 -0
  45. package/lib/types/client/ForgeTabTitle.js.map +1 -0
  46. package/lib/types/client/HeaderButton.d.ts.map +1 -0
  47. package/lib/types/client/HeaderButton.js.map +1 -0
  48. package/lib/types/client/LocalChangesCard.d.ts.map +1 -0
  49. package/lib/types/client/LocalChangesCard.js.map +1 -0
  50. package/lib/types/client/RefreshGlyph.d.ts.map +1 -0
  51. package/lib/types/client/RefreshGlyph.js.map +1 -0
  52. package/lib/types/client/ReviewComposer.d.ts +20 -6
  53. package/lib/types/client/ReviewComposer.d.ts.map +1 -0
  54. package/lib/types/client/ReviewComposer.js.map +1 -0
  55. package/lib/types/client/ReviewControls.d.ts +79 -0
  56. package/lib/types/client/ReviewControls.d.ts.map +1 -0
  57. package/lib/types/client/ReviewControls.js.map +1 -0
  58. package/lib/types/client/ReviewThread.d.ts +4 -4
  59. package/lib/types/client/ReviewThread.d.ts.map +1 -0
  60. package/lib/types/client/ReviewThread.js.map +1 -0
  61. package/lib/types/client/ReviewThreads.d.ts +108 -0
  62. package/lib/types/client/ReviewThreads.d.ts.map +1 -0
  63. package/lib/types/client/ReviewThreads.js.map +1 -0
  64. package/lib/types/client/SessionHoverForge.d.ts.map +1 -0
  65. package/lib/types/client/SessionHoverForge.js.map +1 -0
  66. package/lib/types/client/SessionRowForge.d.ts +1 -1
  67. package/lib/types/client/SessionRowForge.d.ts.map +1 -0
  68. package/lib/types/client/SessionRowForge.js.map +1 -0
  69. package/lib/types/client/SubmitReview.d.ts +12 -4
  70. package/lib/types/client/SubmitReview.d.ts.map +1 -0
  71. package/lib/types/client/SubmitReview.js.map +1 -0
  72. package/lib/types/client/ThreadList.d.ts +43 -0
  73. package/lib/types/client/ThreadList.d.ts.map +1 -0
  74. package/lib/types/client/ThreadList.js.map +1 -0
  75. package/lib/types/client/ViewOptionsMenu.d.ts +31 -0
  76. package/lib/types/client/ViewOptionsMenu.d.ts.map +1 -0
  77. package/lib/types/client/ViewOptionsMenu.js.map +1 -0
  78. package/lib/types/client/WorktreeProgress.d.ts.map +1 -0
  79. package/lib/types/client/WorktreeProgress.js.map +1 -0
  80. package/lib/types/client/WorktreeSettings.d.ts +12 -0
  81. package/lib/types/client/WorktreeSettings.d.ts.map +1 -0
  82. package/lib/types/client/WorktreeSettings.js.map +1 -0
  83. package/lib/types/client/WorktreeToggle.d.ts.map +1 -0
  84. package/lib/types/client/WorktreeToggle.js.map +1 -0
  85. package/lib/types/client/changes-address.d.ts.map +1 -0
  86. package/lib/types/client/changes-address.js.map +1 -0
  87. package/lib/types/client/changes-store.d.ts +20 -5
  88. package/lib/types/client/changes-store.d.ts.map +1 -0
  89. package/lib/types/client/changes-store.js.map +1 -0
  90. package/lib/types/client/checkout.d.ts.map +1 -0
  91. package/lib/types/client/checkout.js.map +1 -0
  92. package/lib/types/client/code-selection.d.ts.map +1 -0
  93. package/lib/types/client/code-selection.js.map +1 -0
  94. package/lib/types/client/diff-rows.d.ts.map +1 -0
  95. package/lib/types/client/diff-rows.js.map +1 -0
  96. package/lib/types/client/file-tree.d.ts.map +1 -0
  97. package/lib/types/client/file-tree.js.map +1 -0
  98. package/lib/types/client/format.d.ts.map +1 -0
  99. package/lib/types/client/format.js.map +1 -0
  100. package/lib/types/client/glyphs.d.ts +4 -2
  101. package/lib/types/client/glyphs.d.ts.map +1 -0
  102. package/lib/types/client/glyphs.js.map +1 -0
  103. package/lib/types/client/host-viewed.d.ts +84 -0
  104. package/lib/types/client/host-viewed.d.ts.map +1 -0
  105. package/lib/types/client/host-viewed.js.map +1 -0
  106. package/lib/types/client/index.d.ts.map +1 -0
  107. package/lib/types/client/index.js.map +1 -0
  108. package/lib/types/client/locales.d.ts +175 -3
  109. package/lib/types/client/locales.d.ts.map +1 -0
  110. package/lib/types/client/locales.js.map +1 -0
  111. package/lib/types/client/menu-search.d.ts +10 -0
  112. package/lib/types/client/menu-search.d.ts.map +1 -0
  113. package/lib/types/client/menu-search.js.map +1 -0
  114. package/lib/types/client/mount.d.ts +4 -0
  115. package/lib/types/client/mount.d.ts.map +1 -0
  116. package/lib/types/client/mount.js.map +1 -0
  117. package/lib/types/client/review-queue.d.ts +5 -8
  118. package/lib/types/client/review-queue.d.ts.map +1 -0
  119. package/lib/types/client/review-queue.js.map +1 -0
  120. package/lib/types/client/review-threads.d.ts +108 -0
  121. package/lib/types/client/review-threads.d.ts.map +1 -0
  122. package/lib/types/client/review-threads.js.map +1 -0
  123. package/lib/types/client/review.d.ts +31 -4
  124. package/lib/types/client/review.d.ts.map +1 -0
  125. package/lib/types/client/review.js.map +1 -0
  126. package/lib/types/client/section-reach.d.ts +26 -0
  127. package/lib/types/client/section-reach.d.ts.map +1 -0
  128. package/lib/types/client/section-reach.js.map +1 -0
  129. package/lib/types/client/session-list.d.ts.map +1 -0
  130. package/lib/types/client/session-list.js.map +1 -0
  131. package/lib/types/client/source.d.ts.map +1 -0
  132. package/lib/types/client/source.js.map +1 -0
  133. package/lib/types/client/status.d.ts.map +1 -0
  134. package/lib/types/client/status.js.map +1 -0
  135. package/lib/types/client/thread-state.d.ts +68 -0
  136. package/lib/types/client/thread-state.d.ts.map +1 -0
  137. package/lib/types/client/thread-state.js.map +1 -0
  138. package/lib/types/client/toolbar-fold.d.ts +19 -0
  139. package/lib/types/client/toolbar-fold.d.ts.map +1 -0
  140. package/lib/types/client/toolbar-fold.js.map +1 -0
  141. package/lib/types/client/viewed-files.d.ts +70 -0
  142. package/lib/types/client/viewed-files.d.ts.map +1 -0
  143. package/lib/types/client/viewed-files.js.map +1 -0
  144. package/lib/types/client/worktree-settings-form.d.ts +32 -0
  145. package/lib/types/client/worktree-settings-form.d.ts.map +1 -0
  146. package/lib/types/client/worktree-settings-form.js.map +1 -0
  147. package/lib/types/commit-range.d.ts +17 -0
  148. package/lib/types/commit-range.d.ts.map +1 -0
  149. package/lib/types/commit-range.js.map +1 -0
  150. package/lib/types/diff.d.ts +10 -2
  151. package/lib/types/diff.d.ts.map +1 -0
  152. package/lib/types/diff.js.map +1 -0
  153. package/lib/types/git.d.ts.map +1 -0
  154. package/lib/types/git.js.map +1 -0
  155. package/lib/types/index.d.ts +194 -14
  156. package/lib/types/index.d.ts.map +1 -0
  157. package/lib/types/index.js.map +1 -0
  158. package/lib/types/layers.d.ts +66 -0
  159. package/lib/types/layers.d.ts.map +1 -0
  160. package/lib/types/layers.js.map +1 -0
  161. package/lib/types/local-diff.d.ts +54 -6
  162. package/lib/types/local-diff.d.ts.map +1 -0
  163. package/lib/types/local-diff.js.map +1 -0
  164. package/lib/types/panel.d.ts.map +1 -0
  165. package/lib/types/panel.js.map +1 -0
  166. package/lib/types/parse.d.ts +16 -0
  167. package/lib/types/parse.d.ts.map +1 -0
  168. package/lib/types/parse.js.map +1 -0
  169. package/lib/types/patch-cache.d.ts +12 -7
  170. package/lib/types/patch-cache.d.ts.map +1 -0
  171. package/lib/types/patch-cache.js.map +1 -0
  172. package/lib/types/review-cache.d.ts +54 -0
  173. package/lib/types/review-cache.d.ts.map +1 -0
  174. package/lib/types/review-cache.js.map +1 -0
  175. package/lib/types/states.d.ts.map +1 -0
  176. package/lib/types/states.js.map +1 -0
  177. package/lib/types/types.d.ts +113 -11
  178. package/lib/types/types.d.ts.map +1 -0
  179. package/lib/types/types.js.map +1 -0
  180. package/lib/types/wildmatch.d.ts +14 -0
  181. package/lib/types/wildmatch.d.ts.map +1 -0
  182. package/lib/types/wildmatch.js.map +1 -0
  183. package/lib/types/worktree.d.ts +8 -6
  184. package/lib/types/worktree.d.ts.map +1 -0
  185. package/lib/types/worktree.js.map +1 -0
  186. package/package.json +56 -46
  187. package/src/client/ActionToast.tsx +38 -0
  188. package/src/client/BaseMenu.module.css +153 -0
  189. package/src/client/BaseMenu.tsx +180 -0
  190. package/src/client/ChangeRequestCard.tsx +439 -0
  191. package/src/client/ChangeRequestOverview.module.css +196 -0
  192. package/src/client/ChangeRequestOverview.tsx +620 -0
  193. package/src/client/ChangedFiles.module.css +26 -0
  194. package/src/client/ChangedFiles.tsx +144 -0
  195. package/src/client/ChangesTab.module.css +984 -0
  196. package/src/client/ChangesTab.tsx +1288 -0
  197. package/src/client/ChangesTabTitle.tsx +28 -0
  198. package/src/client/CommitMenu.module.css +139 -0
  199. package/src/client/CommitMenu.tsx +186 -0
  200. package/src/client/DiffFile.tsx +621 -0
  201. package/src/client/FileLabel.module.css +53 -0
  202. package/src/client/FileLabel.tsx +66 -0
  203. package/src/client/FileTreePane.module.css +10 -0
  204. package/src/client/FileTreePane.tsx +79 -0
  205. package/src/client/ForgeTab.module.css +627 -0
  206. package/src/client/ForgeTab.tsx +263 -0
  207. package/src/client/ForgeTabTitle.tsx +21 -0
  208. package/src/client/HeaderButton.module.css +29 -0
  209. package/src/client/HeaderButton.tsx +68 -0
  210. package/src/client/LocalChangesCard.tsx +83 -0
  211. package/src/client/RefreshGlyph.module.css +22 -0
  212. package/src/client/RefreshGlyph.tsx +35 -0
  213. package/src/client/ReviewComposer.module.css +37 -0
  214. package/src/client/ReviewComposer.tsx +128 -0
  215. package/src/client/ReviewControls.module.css +162 -0
  216. package/src/client/ReviewControls.tsx +191 -0
  217. package/src/client/ReviewThread.tsx +96 -0
  218. package/src/client/ReviewThreads.module.css +326 -0
  219. package/src/client/ReviewThreads.tsx +443 -0
  220. package/src/client/SessionHoverForge.tsx +72 -0
  221. package/src/client/SessionList.module.css +85 -0
  222. package/src/client/SessionRowForge.tsx +86 -0
  223. package/src/client/SubmitReview.module.css +26 -0
  224. package/src/client/SubmitReview.tsx +95 -0
  225. package/src/client/ThreadList.module.css +218 -0
  226. package/src/client/ThreadList.tsx +165 -0
  227. package/src/client/ViewOptionsMenu.tsx +79 -0
  228. package/src/client/WorktreeProgress.module.css +226 -0
  229. package/src/client/WorktreeProgress.tsx +280 -0
  230. package/src/client/WorktreeSettings.module.css +29 -0
  231. package/src/client/WorktreeSettings.tsx +42 -0
  232. package/src/client/WorktreeToggle.module.css +132 -0
  233. package/src/client/WorktreeToggle.tsx +165 -0
  234. package/src/client/changes-address.ts +110 -0
  235. package/src/client/changes-store.ts +155 -0
  236. package/src/client/checkout.ts +75 -0
  237. package/src/client/code-selection.ts +53 -0
  238. package/src/client/diff-rows.ts +199 -0
  239. package/src/client/file-tree.ts +86 -0
  240. package/src/client/format.ts +37 -0
  241. package/src/client/glyphs.tsx +151 -0
  242. package/src/client/host-viewed.ts +195 -0
  243. package/src/client/index.ts +31 -0
  244. package/src/client/locales.ts +3446 -0
  245. package/src/client/menu-search.ts +16 -0
  246. package/src/client/mount.ts +439 -0
  247. package/src/client/review-queue.ts +256 -0
  248. package/src/client/review-threads.ts +204 -0
  249. package/src/client/review.ts +120 -0
  250. package/src/client/section-reach.ts +61 -0
  251. package/src/client/session-list.ts +79 -0
  252. package/src/client/source.ts +274 -0
  253. package/src/client/status.ts +171 -0
  254. package/src/client/thread-state.ts +127 -0
  255. package/src/client/toolbar-fold.ts +70 -0
  256. package/src/client/viewed-files.ts +178 -0
  257. package/src/client/worktree-settings-form.ts +43 -0
  258. package/src/commit-range.ts +27 -0
  259. package/src/css-modules.d.ts +5 -0
  260. package/src/diff.ts +162 -0
  261. package/src/git.ts +293 -0
  262. package/src/index.ts +1162 -0
  263. package/src/layers.ts +163 -0
  264. package/src/local-diff.ts +438 -0
  265. package/src/panel.ts +422 -0
  266. package/src/parse.ts +137 -0
  267. package/src/patch-cache.ts +73 -0
  268. package/src/review-cache.ts +98 -0
  269. package/src/states.ts +350 -0
  270. package/src/types.ts +504 -0
  271. package/src/wildmatch.ts +121 -0
  272. package/src/worktree.ts +576 -0
@@ -39,33 +39,83 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChec
39
39
  'headBranch': z.string().readonly().describe('Branch that carries the proposed commits.'),
40
40
  'headSha': z.string().readonly().describe('Commit object name at the head of the change request.'),
41
41
  'baseBranch': z.string().readonly().describe('Branch the change request merges into.'),
42
+ 'baseSha': z.string().readonly().optional().describe('Base commit the host recorded with `headSha`, whose merge base with the head starts the change request\'s diff; omitted when the provider does not report it.'),
42
43
  'additions': z.number().readonly().describe('Lines the change request adds.'),
43
44
  'deletions': z.number().readonly().describe('Lines the change request deletes.'),
44
45
  'mergeability': z.union([z.literal("unknown"), z.literal("mergeable"), z.literal("conflicting")]).readonly().describe('Merge conflict status; `unknown` while the host computes it.'),
45
46
  'mergeReady': z.boolean().readonly().describe('Whether the host would merge the change request now for the signed-in user: open, not a draft, and meeting the base branch\'s merge rules.'),
46
47
  'mergeMethods': z.array(z.union([z.literal("merge"), z.literal("squash"), z.literal("rebase")])).readonly().describe('Merge methods the repository accepts, the signed-in user\'s usual one first.'),
48
+ 'branchUpdates': z.array(z.union([z.literal("merge"), z.literal("rebase")])).readonly().describe('Ways the signed-in user can bring the base branch\'s new commits into the head branch now; empty while the head is up to date, while the branches conflict, when the user cannot update the head branch, or when the provider cannot, so a head behind its base cannot be told apart from a current one for a user without the right to update it.'),
47
49
  'reviewDecision': z.union([z.literal("none"), z.literal("approved"), z.literal("changes-requested"), z.literal("review-required")]).readonly().describe('Aggregate review outcome.'),
50
+ 'reviewers': z.array(z.object({
51
+ 'kind': z.union([z.literal("user"), z.literal("bot"), z.literal("team")]).readonly().describe('Whether the reviewer is a person\'s account, an app or bot account, or a team.'),
52
+ 'login': z.string().readonly().describe('Login, or `organization/slug` for a team.'),
53
+ 'avatarUrl': z.union([z.literal(null), z.string()]).readonly().describe('Avatar image URL, or null when the host reports none.'),
54
+ 'requested': z.boolean().readonly().describe('Whether a review from the reviewer is requested now.'),
55
+ 'codeOwner': z.boolean().readonly().describe('Whether the host requested the review because the reviewer owns changed paths.'),
56
+ 'verdict': z.union([z.literal(null), z.literal("dismissed"), z.literal("approved"), z.literal("changes-requested"), z.literal("commented")]).readonly().describe('Outcome of the reviewer\'s latest submitted review, or null before the first.'),
57
+ 'reviewedSha': z.union([z.literal(null), z.string()]).readonly().describe('Commit the latest submitted review was on, or null before the first or when the host reports none.'),
58
+ })).readonly().describe('Reviewers whose review is requested, in host order, then other accounts that reviewed, each once; the author is never listed.'),
59
+ 'reviewersTruncated': z.boolean().readonly().describe('Whether the host reported more review requests or reviews than the provider read, so `reviewers` may be incomplete.'),
60
+ 'canRequestReviews': z.boolean().readonly().describe('Whether the signed-in user may request reviews of the change request through its provider.'),
48
61
  'checks': z.array(z.object({
49
62
  'name': z.string().readonly().describe('Check name as the host displays it.'),
50
- 'state': z.union([z.literal("cancelled"), z.literal("pending"), z.literal("neutral"), z.literal("success"), z.literal("failure"), z.literal("skipped")]).readonly().describe('Normalized check outcome.'),
63
+ 'state': z.union([z.literal("pending"), z.literal("neutral"), z.literal("success"), z.literal("cancelled"), z.literal("failure"), z.literal("skipped")]).readonly().describe('Normalized check outcome.'),
51
64
  'url': z.union([z.literal(null), z.string()]).readonly().describe('Web page for the check, or null when the host reports none.'),
52
65
  'workflow': z.union([z.literal(null), z.string()]).readonly().describe('Workflow that produced the check, or null when the host reports none.'),
53
66
  'startedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the check started, or null before it starts and when the host reports none.'),
54
67
  'completedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the check completed, or null while it runs and when the host reports none.'),
68
+ 'rerun': z.union([z.literal(null), z.string()]).readonly().describe('Identity a rerun of this check names, or null when the provider cannot rerun it, as for a commit status. Checks that name one identity rerun together, and their failed checks can be rerun once none of them is pending.'),
55
69
  })).readonly().describe('Checks on the head commit in host order.'),
56
70
  'checksRollup': z.union([z.literal("pending"), z.literal("success"), z.literal("none"), z.literal("failure")]).readonly().describe('Combined check outcome.'),
57
71
  'checksTruncated': z.boolean().readonly().describe('Whether the host reported more checks than `checks` contains.'),
58
- 'unresolvedThreads': z.number().readonly().describe('Number of review threads that are not resolved.'),
72
+ 'canRerunChecks': z.boolean().readonly().describe('Whether the signed-in user may rerun the failed checks that name a `rerun`.'),
73
+ 'unresolvedThreads': z.number().readonly().describe('Number of counted review threads that are not resolved.'),
74
+ 'threadsTruncated': z.boolean().readonly().describe('Whether the change request has more review threads than the provider counted, so `unresolvedThreads` is a lower bound.'),
75
+ 'closingIssues': z.array(z.object({
76
+ 'repository': z.object({
77
+ 'forge': z.string().readonly().describe('Provider family that serves the repository, such as `github`.'),
78
+ 'host': z.string().readonly().describe('Lowercase host name, such as `github.com`.'),
79
+ 'owner': z.string().readonly().describe('Owner or namespace path as the host spells it.'),
80
+ 'name': z.string().readonly().describe('Repository name as the host spells it.'),
81
+ }).readonly().describe('Repository that holds the issue.'),
82
+ 'number': z.number().readonly().describe('Host-assigned issue number.'),
83
+ 'title': z.string().readonly().describe('Title as the author wrote it.'),
84
+ 'state': z.union([z.literal("open"), z.literal("closed")]).readonly().describe('Whether the issue is still open.'),
85
+ 'url': z.string().readonly().describe('Web page of the issue.'),
86
+ })).readonly().describe('Issues linked to the change request, which the host closes once it merges, in host order.'),
87
+ 'closingIssuesTruncated': z.boolean().readonly().describe('Whether the host reported more closing issues than `closingIssues` holds.'),
59
88
  'updatedAt': z.string().readonly().describe('ISO 8601 time of the host\'s last update to the change request.'),
60
89
  'closedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the change request was merged or closed, or null while it is open.'),
61
90
  }))
91
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0$schema$value
92
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0$schema$value ??= z.string())
93
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1$schema$value
94
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1$schema$value ??= z.string())
95
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_result$schema$value
96
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_result$schema$value ??= z.union([z.literal(null), z.object({
97
+ 'headSha': z.string().readonly().describe('Head commit the list was read at.'),
98
+ 'commits': z.array(z.object({
99
+ 'sha': z.string().readonly().describe('Full commit object name.'),
100
+ 'parent': z.union([z.literal(null), z.string()]).readonly().describe('Full object name of the first parent, or null for a root commit.'),
101
+ 'title': z.string().readonly().describe('First line of the commit message.'),
102
+ 'author': z.union([z.literal(null), z.string()]).readonly().describe('Author name or login as the host reports it, or null when it reports none.'),
103
+ 'authoredAt': z.string().readonly().describe('ISO 8601 time the commit was authored.'),
104
+ })).readonly().describe('Commits oldest first, ending with the head commit unless `truncated`.'),
105
+ 'truncated': z.boolean().readonly().describe('Whether the change request has more commits than the provider lists; the listed ones are the oldest.'),
106
+ })]))
62
107
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0$schema$value
63
108
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0$schema$value ??= z.string())
64
109
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1$schema$value
65
110
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1$schema$value ??= z.string())
111
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2$schema$value
112
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2$schema$value ??= z.union([z.literal(null), z.object({
113
+ 'from': z.string().readonly().describe('First, oldest commit shown.'),
114
+ 'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
115
+ })]))
66
116
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_result$schema$value
67
117
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_result$schema$value ??= z.object({
68
- 'headSha': z.string().readonly().describe('Head commit the diff describes.'),
118
+ 'headSha': z.string().readonly().describe('Commit whose new side the diff describes: the head, or the last chosen commit.'),
69
119
  'files': z.array(z.object({
70
120
  'path': z.string().readonly().describe('Path relative to the repository root after the change, or before it for a deleted file.'),
71
121
  'previousPath': z.union([z.literal(null), z.string()]).readonly().describe('Path before a rename, else null.'),
@@ -82,10 +132,119 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff
82
132
  'newLines': z.number().readonly().describe('New lines the hunk covers.'),
83
133
  'lines': z.array(z.string()).readonly().describe('Lines in patch form: a leading space for context, `+` for added, `-` for deleted, and `\\` for a missing final newline.'),
84
134
  })).readonly().describe('Hunks in file order; none for a binary file or a change of mode or name only.'),
135
+ 'layer': z.union([z.literal("interface"), z.literal("implementation"), z.literal("test")]).readonly().describe('Review layer the path falls in.'),
136
+ 'digest': z.string().readonly().describe('Digest of the file\'s change: its paths, status, and hunks, plus the blob names of a binary change, or the content of an untracked binary file. Equal digests describe the same change; reading the same comparison again keeps it.'),
85
137
  })).readonly().describe('Changed files in the host\'s order.'),
86
- 'localAhead': z.union([z.literal(null), z.number()]).readonly().describe('Commits the checkout\'s branch has beyond the head when that branch is the change request\'s head branch and the head commit is present locally; null otherwise.'),
87
- 'fileUrls': z.record(z.string(), z.string()).readonly().readonly().describe('Web page of each changed file at the head commit, by path.'),
138
+ 'localAhead': z.union([z.literal(null), z.number()]).readonly().describe('Commits the checkout\'s branch has beyond the head when that branch is the change request\'s head branch and the head commit is present locally; null otherwise and for chosen commits.'),
139
+ 'fileUrls': z.record(z.string(), z.string()).readonly().readonly().describe('Web page of each changed file at `headSha`, by path.'),
88
140
  }))
141
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0$schema$value
142
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0$schema$value ??= z.string())
143
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1$schema$value
144
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1$schema$value ??= z.string())
145
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2$schema$value
146
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2$schema$value ??= z.string())
147
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3$schema$value
148
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3$schema$value ??= z.boolean())
149
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_result$schema$value
150
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_result$schema$value ??= z.object({
151
+ 'headSha': z.string().readonly().describe('Head commit the threads were read at; `current` positions number its files.'),
152
+ 'viewer': z.union([z.literal(null), z.string()]).readonly().describe('Login of the signed-in user the provider read as, or null when the host does not name one.'),
153
+ 'threads': z.array(z.object({
154
+ 'id': z.string().readonly().describe('Host identity of the thread.'),
155
+ 'path': z.string().readonly().describe('Repository-relative path the thread is on.'),
156
+ 'side': z.union([z.literal("L"), z.literal("R")]).readonly().describe('Old (`L`) or new (`R`) side of the diff the lines number.'),
157
+ 'subject': z.union([z.literal("file"), z.literal("line")]).readonly().describe('Whether the thread is on lines or on the whole file.'),
158
+ 'current': z.union([z.literal(null), z.object({
159
+ 'commit': z.string().readonly().describe('Full object name of the commit the diff\'s new side shows: new-side (`R`) lines number this commit\'s file, and old-side (`L`) lines number the file at the diff\'s base.'),
160
+ 'startLine': z.number().readonly().describe('First line, inclusive.'),
161
+ 'endLine': z.number().readonly().describe('Last line, inclusive.'),
162
+ })]).readonly().describe('Lines in the diff that ends at the head commit of the read, whose `commit` is that head; null for an outdated or file thread.'),
163
+ 'original': z.union([z.literal(null), z.object({
164
+ 'commit': z.string().readonly().describe('Full object name of the commit the diff\'s new side shows: new-side (`R`) lines number this commit\'s file, and old-side (`L`) lines number the file at the diff\'s base.'),
165
+ 'startLine': z.number().readonly().describe('First line, inclusive.'),
166
+ 'endLine': z.number().readonly().describe('Last line, inclusive.'),
167
+ })]).readonly().describe('Lines in the diff that ended at the commit the thread was written on; null for a file thread.'),
168
+ 'diffHunk': z.union([z.literal(null), z.string()]).readonly().describe('Diff hunk the host recorded when the thread was written, ending at its last line; null when it recorded none.'),
169
+ 'resolved': z.boolean().readonly().describe('Whether the thread is marked resolved.'),
170
+ 'viewerCanReply': z.boolean().readonly().describe('Whether the signed-in user can reply to the thread through `writeReview`; false for a provider without it.'),
171
+ 'viewerCanResolve': z.boolean().readonly().describe('Whether the signed-in user can mark the thread resolved, or unresolved when `resolved`, through `writeReview`; false for a provider without it.'),
172
+ 'comments': z.array(z.object({
173
+ 'id': z.string().readonly().describe('Host identity of the comment.'),
174
+ 'author': z.union([z.literal(null), z.object({
175
+ 'login': z.string().readonly().describe('Login as the host spells it.'),
176
+ 'avatarUrl': z.union([z.literal(null), z.string()]).readonly().describe('Avatar image URL, or null when the host reports none.'),
177
+ 'bot': z.boolean().readonly().describe('Whether the account is an app or bot rather than a person.'),
178
+ })]).readonly().describe('Author, or null when the account no longer exists.'),
179
+ 'body': z.string().readonly().describe('Markdown source as the author wrote it; it may contain raw HTML, which readers must not render as HTML.'),
180
+ 'createdAt': z.string().readonly().describe('ISO 8601 time the comment was created.'),
181
+ 'pending': z.boolean().readonly().describe('Whether the comment belongs to the signed-in user\'s review that is not submitted yet, which only that user sees.'),
182
+ 'url': z.union([z.literal(null), z.string()]).readonly().describe('Web page of the comment, or null when the host reports none.'),
183
+ 'viewerCanEdit': z.boolean().readonly().describe('Whether the signed-in user can replace the comment\'s text through `writeReview`; false for a provider without it.'),
184
+ 'viewerCanDelete': z.boolean().readonly().describe('Whether the signed-in user can delete the comment through `writeReview`; false for a provider without it.'),
185
+ })).readonly().describe('Comments oldest first; the first starts the thread.'),
186
+ })).readonly().describe('Threads in host order, at most the provider\'s limit.'),
187
+ 'truncated': z.boolean().readonly().describe('Whether the change request has more threads than `threads` holds.'),
188
+ 'pendingReview': z.union([z.literal(null), z.object({
189
+ 'id': z.string().readonly().describe('Host identity of the review.'),
190
+ 'comments': z.number().readonly().describe('Comments the review holds.'),
191
+ })]).readonly().describe('The signed-in user\'s pending review, or null without one.'),
192
+ 'viewerCanReview': z.boolean().readonly().describe('Whether the signed-in user can add comments to a pending review and submit or discard it through `writeReview`; false for a provider without it.'),
193
+ }))
194
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0$schema$value
195
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0$schema$value ??= z.string())
196
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1$schema$value
197
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1$schema$value ??= z.string())
198
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2$schema$value
199
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2$schema$value ??= z.union([z.object({
200
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
201
+ 'kind': z.literal("reply").readonly(),
202
+ 'thread': z.string().readonly(),
203
+ 'body': z.string().readonly(),
204
+ 'pending': z.boolean().readonly(),
205
+ }), z.object({
206
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
207
+ 'kind': z.literal("resolve").readonly(),
208
+ 'thread': z.string().readonly(),
209
+ 'resolved': z.boolean().readonly(),
210
+ }), z.object({
211
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
212
+ 'kind': z.literal("edit-comment").readonly(),
213
+ 'comment': z.string().readonly(),
214
+ 'body': z.string().readonly(),
215
+ }), z.object({
216
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
217
+ 'kind': z.literal("delete-comment").readonly(),
218
+ 'comment': z.string().readonly(),
219
+ }), z.object({
220
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
221
+ 'kind': z.literal("add-pending").readonly(),
222
+ 'comment': z.object({
223
+ 'path': z.string().readonly(),
224
+ 'side': z.union([z.literal("L"), z.literal("R")]).readonly(),
225
+ 'startLine': z.number().readonly(),
226
+ 'endLine': z.number().readonly(),
227
+ 'body': z.string().readonly(),
228
+ }).readonly(),
229
+ }), z.object({
230
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
231
+ 'kind': z.literal("submit-pending").readonly(),
232
+ 'review': z.string().readonly(),
233
+ 'event': z.union([z.literal("comment"), z.literal("approve"), z.literal("request-changes")]).readonly(),
234
+ 'body': z.string().readonly(),
235
+ }), z.object({
236
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
237
+ 'kind': z.literal("discard-pending").readonly(),
238
+ 'review': z.string().readonly(),
239
+ })]))
240
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_result$schema$value
241
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_result$schema$value ??= z.union([z.object({
242
+ 'ok': z.literal(true).readonly(),
243
+ }), z.object({
244
+ 'ok': z.literal(false).readonly(),
245
+ 'code': z.union([z.literal("failed"), z.literal("unknown"), z.literal("stale"), z.literal("unsupported")]).readonly(),
246
+ 'message': z.string().readonly(),
247
+ })]))
89
248
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestStates_result$schema$value
90
249
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestStates_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestStates_result$schema$value ??= z.union([z.object({
91
250
  'type': z.literal("baseline").readonly(),
@@ -122,10 +281,41 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_p
122
281
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3$schema$value ??= z.string())
123
282
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_result$schema$value
124
283
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_result$schema$value ??= z.string())
284
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0$schema$value
285
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0$schema$value ??= z.string())
286
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1$schema$value
287
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1$schema$value ??= z.string())
288
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2$schema$value
289
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2$schema$value ??= z.string())
290
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_result$schema$value
291
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_result$schema$value ??= z.union([z.literal(null), z.object({
292
+ 'headSha': z.string().readonly().describe('Head commit the marks were read at.'),
293
+ 'files': z.record(z.string(), z.union([z.literal("dismissed"), z.literal("viewed"), z.literal("unviewed")])).readonly().readonly().describe('State of each changed file the host listed, by repository-relative path.'),
294
+ 'truncated': z.boolean().readonly().describe('Whether the change request has more files than `files` lists.'),
295
+ })]))
125
296
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0$schema$value
126
297
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0$schema$value ??= z.string())
127
298
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_result$schema$value
128
299
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_result$schema$value ??= z.void())
300
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0$schema$value
301
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0$schema$value ??= z.string())
302
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1$schema$value
303
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1$schema$value ??= z.string())
304
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_result$schema$value
305
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_result$schema$value ??= z.object({
306
+ 'automatic': z.union([z.literal(null), z.object({
307
+ 'name': z.string().readonly().describe('The created worktree\'s base branch or abbreviated base commit, or the default branch of the code host remote.'),
308
+ 'worktree': z.boolean().readonly().describe('Whether the fork point is the base commit of the worktree the Session created rather than a merge base.'),
309
+ })]).readonly().describe('The fork point used while no base branch is chosen, whatever the query; null without one.'),
310
+ 'remote': z.array(z.object({
311
+ 'ref': z.string().readonly().describe('Full ref name: `refs/heads/<branch>` or `refs/remotes/<remote>/<branch>`.'),
312
+ 'name': z.string().readonly().describe('The ref without `refs/heads/` or `refs/remotes/`, such as `master` or `origin/master`.'),
313
+ })).readonly().describe('Remote-tracking branches without symbolic refs such as `origin/HEAD`, most recently committed first, at most `maxBranches`.'),
314
+ 'local': z.array(z.object({
315
+ 'ref': z.string().readonly().describe('Full ref name: `refs/heads/<branch>` or `refs/remotes/<remote>/<branch>`.'),
316
+ 'name': z.string().readonly().describe('The ref without `refs/heads/` or `refs/remotes/`, such as `master` or `origin/master`.'),
317
+ })).readonly().describe('Local branches other than the checked-out one, most recently committed first, at most `maxBranches`.'),
318
+ }))
129
319
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0$schema$value
130
320
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0$schema$value ??= z.string())
131
321
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1$schema$value
@@ -182,23 +372,52 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_result$sch
182
372
  'headBranch': z.string().readonly().describe('Branch that carries the proposed commits.'),
183
373
  'headSha': z.string().readonly().describe('Commit object name at the head of the change request.'),
184
374
  'baseBranch': z.string().readonly().describe('Branch the change request merges into.'),
375
+ 'baseSha': z.string().readonly().optional().describe('Base commit the host recorded with `headSha`, whose merge base with the head starts the change request\'s diff; omitted when the provider does not report it.'),
185
376
  'additions': z.number().readonly().describe('Lines the change request adds.'),
186
377
  'deletions': z.number().readonly().describe('Lines the change request deletes.'),
187
378
  'mergeability': z.union([z.literal("unknown"), z.literal("mergeable"), z.literal("conflicting")]).readonly().describe('Merge conflict status; `unknown` while the host computes it.'),
188
379
  'mergeReady': z.boolean().readonly().describe('Whether the host would merge the change request now for the signed-in user: open, not a draft, and meeting the base branch\'s merge rules.'),
189
380
  'mergeMethods': z.array(z.union([z.literal("merge"), z.literal("squash"), z.literal("rebase")])).readonly().describe('Merge methods the repository accepts, the signed-in user\'s usual one first.'),
381
+ 'branchUpdates': z.array(z.union([z.literal("merge"), z.literal("rebase")])).readonly().describe('Ways the signed-in user can bring the base branch\'s new commits into the head branch now; empty while the head is up to date, while the branches conflict, when the user cannot update the head branch, or when the provider cannot, so a head behind its base cannot be told apart from a current one for a user without the right to update it.'),
190
382
  'reviewDecision': z.union([z.literal("none"), z.literal("approved"), z.literal("changes-requested"), z.literal("review-required")]).readonly().describe('Aggregate review outcome.'),
383
+ 'reviewers': z.array(z.object({
384
+ 'kind': z.union([z.literal("user"), z.literal("bot"), z.literal("team")]).readonly().describe('Whether the reviewer is a person\'s account, an app or bot account, or a team.'),
385
+ 'login': z.string().readonly().describe('Login, or `organization/slug` for a team.'),
386
+ 'avatarUrl': z.union([z.literal(null), z.string()]).readonly().describe('Avatar image URL, or null when the host reports none.'),
387
+ 'requested': z.boolean().readonly().describe('Whether a review from the reviewer is requested now.'),
388
+ 'codeOwner': z.boolean().readonly().describe('Whether the host requested the review because the reviewer owns changed paths.'),
389
+ 'verdict': z.union([z.literal(null), z.literal("dismissed"), z.literal("approved"), z.literal("changes-requested"), z.literal("commented")]).readonly().describe('Outcome of the reviewer\'s latest submitted review, or null before the first.'),
390
+ 'reviewedSha': z.union([z.literal(null), z.string()]).readonly().describe('Commit the latest submitted review was on, or null before the first or when the host reports none.'),
391
+ })).readonly().describe('Reviewers whose review is requested, in host order, then other accounts that reviewed, each once; the author is never listed.'),
392
+ 'reviewersTruncated': z.boolean().readonly().describe('Whether the host reported more review requests or reviews than the provider read, so `reviewers` may be incomplete.'),
393
+ 'canRequestReviews': z.boolean().readonly().describe('Whether the signed-in user may request reviews of the change request through its provider.'),
191
394
  'checks': z.array(z.object({
192
395
  'name': z.string().readonly().describe('Check name as the host displays it.'),
193
- 'state': z.union([z.literal("cancelled"), z.literal("pending"), z.literal("neutral"), z.literal("success"), z.literal("failure"), z.literal("skipped")]).readonly().describe('Normalized check outcome.'),
396
+ 'state': z.union([z.literal("pending"), z.literal("neutral"), z.literal("success"), z.literal("cancelled"), z.literal("failure"), z.literal("skipped")]).readonly().describe('Normalized check outcome.'),
194
397
  'url': z.union([z.literal(null), z.string()]).readonly().describe('Web page for the check, or null when the host reports none.'),
195
398
  'workflow': z.union([z.literal(null), z.string()]).readonly().describe('Workflow that produced the check, or null when the host reports none.'),
196
399
  'startedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the check started, or null before it starts and when the host reports none.'),
197
400
  'completedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the check completed, or null while it runs and when the host reports none.'),
401
+ 'rerun': z.union([z.literal(null), z.string()]).readonly().describe('Identity a rerun of this check names, or null when the provider cannot rerun it, as for a commit status. Checks that name one identity rerun together, and their failed checks can be rerun once none of them is pending.'),
198
402
  })).readonly().describe('Checks on the head commit in host order.'),
199
403
  'checksRollup': z.union([z.literal("pending"), z.literal("success"), z.literal("none"), z.literal("failure")]).readonly().describe('Combined check outcome.'),
200
404
  'checksTruncated': z.boolean().readonly().describe('Whether the host reported more checks than `checks` contains.'),
201
- 'unresolvedThreads': z.number().readonly().describe('Number of review threads that are not resolved.'),
405
+ 'canRerunChecks': z.boolean().readonly().describe('Whether the signed-in user may rerun the failed checks that name a `rerun`.'),
406
+ 'unresolvedThreads': z.number().readonly().describe('Number of counted review threads that are not resolved.'),
407
+ 'threadsTruncated': z.boolean().readonly().describe('Whether the change request has more review threads than the provider counted, so `unresolvedThreads` is a lower bound.'),
408
+ 'closingIssues': z.array(z.object({
409
+ 'repository': z.object({
410
+ 'forge': z.string().readonly().describe('Provider family that serves the repository, such as `github`.'),
411
+ 'host': z.string().readonly().describe('Lowercase host name, such as `github.com`.'),
412
+ 'owner': z.string().readonly().describe('Owner or namespace path as the host spells it.'),
413
+ 'name': z.string().readonly().describe('Repository name as the host spells it.'),
414
+ }).readonly().describe('Repository that holds the issue.'),
415
+ 'number': z.number().readonly().describe('Host-assigned issue number.'),
416
+ 'title': z.string().readonly().describe('Title as the author wrote it.'),
417
+ 'state': z.union([z.literal("open"), z.literal("closed")]).readonly().describe('Whether the issue is still open.'),
418
+ 'url': z.string().readonly().describe('Web page of the issue.'),
419
+ })).readonly().describe('Issues linked to the change request, which the host closes once it merges, in host order.'),
420
+ 'closingIssuesTruncated': z.boolean().readonly().describe('Whether the host reported more closing issues than `closingIssues` holds.'),
202
421
  'updatedAt': z.string().readonly().describe('ISO 8601 time of the host\'s last update to the change request.'),
203
422
  'closedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the change request was merged or closed, or null while it is open.'),
204
423
  })]).readonly().describe('Latest snapshot a poll returned, kept while later polls fail, or null before the first successful poll.'),
@@ -234,23 +453,52 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_result$sch
234
453
  'headBranch': z.string().readonly().describe('Branch that carries the proposed commits.'),
235
454
  'headSha': z.string().readonly().describe('Commit object name at the head of the change request.'),
236
455
  'baseBranch': z.string().readonly().describe('Branch the change request merges into.'),
456
+ 'baseSha': z.string().readonly().optional().describe('Base commit the host recorded with `headSha`, whose merge base with the head starts the change request\'s diff; omitted when the provider does not report it.'),
237
457
  'additions': z.number().readonly().describe('Lines the change request adds.'),
238
458
  'deletions': z.number().readonly().describe('Lines the change request deletes.'),
239
459
  'mergeability': z.union([z.literal("unknown"), z.literal("mergeable"), z.literal("conflicting")]).readonly().describe('Merge conflict status; `unknown` while the host computes it.'),
240
460
  'mergeReady': z.boolean().readonly().describe('Whether the host would merge the change request now for the signed-in user: open, not a draft, and meeting the base branch\'s merge rules.'),
241
461
  'mergeMethods': z.array(z.union([z.literal("merge"), z.literal("squash"), z.literal("rebase")])).readonly().describe('Merge methods the repository accepts, the signed-in user\'s usual one first.'),
462
+ 'branchUpdates': z.array(z.union([z.literal("merge"), z.literal("rebase")])).readonly().describe('Ways the signed-in user can bring the base branch\'s new commits into the head branch now; empty while the head is up to date, while the branches conflict, when the user cannot update the head branch, or when the provider cannot, so a head behind its base cannot be told apart from a current one for a user without the right to update it.'),
242
463
  'reviewDecision': z.union([z.literal("none"), z.literal("approved"), z.literal("changes-requested"), z.literal("review-required")]).readonly().describe('Aggregate review outcome.'),
464
+ 'reviewers': z.array(z.object({
465
+ 'kind': z.union([z.literal("user"), z.literal("bot"), z.literal("team")]).readonly().describe('Whether the reviewer is a person\'s account, an app or bot account, or a team.'),
466
+ 'login': z.string().readonly().describe('Login, or `organization/slug` for a team.'),
467
+ 'avatarUrl': z.union([z.literal(null), z.string()]).readonly().describe('Avatar image URL, or null when the host reports none.'),
468
+ 'requested': z.boolean().readonly().describe('Whether a review from the reviewer is requested now.'),
469
+ 'codeOwner': z.boolean().readonly().describe('Whether the host requested the review because the reviewer owns changed paths.'),
470
+ 'verdict': z.union([z.literal(null), z.literal("dismissed"), z.literal("approved"), z.literal("changes-requested"), z.literal("commented")]).readonly().describe('Outcome of the reviewer\'s latest submitted review, or null before the first.'),
471
+ 'reviewedSha': z.union([z.literal(null), z.string()]).readonly().describe('Commit the latest submitted review was on, or null before the first or when the host reports none.'),
472
+ })).readonly().describe('Reviewers whose review is requested, in host order, then other accounts that reviewed, each once; the author is never listed.'),
473
+ 'reviewersTruncated': z.boolean().readonly().describe('Whether the host reported more review requests or reviews than the provider read, so `reviewers` may be incomplete.'),
474
+ 'canRequestReviews': z.boolean().readonly().describe('Whether the signed-in user may request reviews of the change request through its provider.'),
243
475
  'checks': z.array(z.object({
244
476
  'name': z.string().readonly().describe('Check name as the host displays it.'),
245
- 'state': z.union([z.literal("cancelled"), z.literal("pending"), z.literal("neutral"), z.literal("success"), z.literal("failure"), z.literal("skipped")]).readonly().describe('Normalized check outcome.'),
477
+ 'state': z.union([z.literal("pending"), z.literal("neutral"), z.literal("success"), z.literal("cancelled"), z.literal("failure"), z.literal("skipped")]).readonly().describe('Normalized check outcome.'),
246
478
  'url': z.union([z.literal(null), z.string()]).readonly().describe('Web page for the check, or null when the host reports none.'),
247
479
  'workflow': z.union([z.literal(null), z.string()]).readonly().describe('Workflow that produced the check, or null when the host reports none.'),
248
480
  'startedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the check started, or null before it starts and when the host reports none.'),
249
481
  'completedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the check completed, or null while it runs and when the host reports none.'),
482
+ 'rerun': z.union([z.literal(null), z.string()]).readonly().describe('Identity a rerun of this check names, or null when the provider cannot rerun it, as for a commit status. Checks that name one identity rerun together, and their failed checks can be rerun once none of them is pending.'),
250
483
  })).readonly().describe('Checks on the head commit in host order.'),
251
484
  'checksRollup': z.union([z.literal("pending"), z.literal("success"), z.literal("none"), z.literal("failure")]).readonly().describe('Combined check outcome.'),
252
485
  'checksTruncated': z.boolean().readonly().describe('Whether the host reported more checks than `checks` contains.'),
253
- 'unresolvedThreads': z.number().readonly().describe('Number of review threads that are not resolved.'),
486
+ 'canRerunChecks': z.boolean().readonly().describe('Whether the signed-in user may rerun the failed checks that name a `rerun`.'),
487
+ 'unresolvedThreads': z.number().readonly().describe('Number of counted review threads that are not resolved.'),
488
+ 'threadsTruncated': z.boolean().readonly().describe('Whether the change request has more review threads than the provider counted, so `unresolvedThreads` is a lower bound.'),
489
+ 'closingIssues': z.array(z.object({
490
+ 'repository': z.object({
491
+ 'forge': z.string().readonly().describe('Provider family that serves the repository, such as `github`.'),
492
+ 'host': z.string().readonly().describe('Lowercase host name, such as `github.com`.'),
493
+ 'owner': z.string().readonly().describe('Owner or namespace path as the host spells it.'),
494
+ 'name': z.string().readonly().describe('Repository name as the host spells it.'),
495
+ }).readonly().describe('Repository that holds the issue.'),
496
+ 'number': z.number().readonly().describe('Host-assigned issue number.'),
497
+ 'title': z.string().readonly().describe('Title as the author wrote it.'),
498
+ 'state': z.union([z.literal("open"), z.literal("closed")]).readonly().describe('Whether the issue is still open.'),
499
+ 'url': z.string().readonly().describe('Web page of the issue.'),
500
+ })).readonly().describe('Issues linked to the change request, which the host closes once it merges, in host order.'),
501
+ 'closingIssuesTruncated': z.boolean().readonly().describe('Whether the host reported more closing issues than `closingIssues` holds.'),
254
502
  'updatedAt': z.string().readonly().describe('ISO 8601 time of the host\'s last update to the change request.'),
255
503
  'closedAt': z.union([z.literal(null), z.string()]).readonly().describe('ISO 8601 time the change request was merged or closed, or null while it is open.'),
256
504
  }).readonly().describe('Status read from the host.'),
@@ -258,7 +506,7 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_result$sch
258
506
  'key': z.string().readonly().describe('Canonical identity of the watched change request.'),
259
507
  'fetchedAt': z.number().readonly().describe('Epoch milliseconds when the result settled.'),
260
508
  'failure': z.object({
261
- 'code': z.union([z.literal("unauthenticated"), z.literal("unavailable"), z.literal("not-found"), z.literal("too-large")]).readonly().describe('`not-found`: the host does not expose it; `unauthenticated`: credentials are missing or rejected; `too-large`: the host or the provider refuses an answer over its size limit, so reading again fails the same way; `unavailable`: any other failure.'),
509
+ 'code': z.union([z.literal("unauthenticated"), z.literal("unavailable"), z.literal("not-found"), z.literal("too-large"), z.literal("stale"), z.literal("unsupported")]).readonly().describe('`not-found`: the host does not expose it; `unauthenticated`: credentials are missing or rejected; `too-large`: the host or the provider refuses an answer over its size limit, so reading again fails the same way; `stale`: the head is no longer the commit the read named, so reading again at the head of a later status can succeed; `unsupported`: the provider does not offer the read; `unavailable`: any other failure.'),
262
510
  'message': z.string().readonly().describe('Human-readable cause.'),
263
511
  }).readonly().describe('Reason the status could not be read.'),
264
512
  })]).readonly().describe('Latest polling result, or null before the first poll and without a provider.'),
@@ -306,11 +554,32 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_result$sch
306
554
  })).readonly().describe('Changed files in Git\'s path order, untracked files last, at most `maxUntrackedFiles` of those.'),
307
555
  })]).readonly().describe('Files the `branch` scope changes, or null before the first inspection, outside a checkout, and without a fork point.'),
308
556
  }))
557
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0$schema$value
558
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0$schema$value ??= z.string())
559
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1$schema$value
560
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1$schema$value ??= z.union([z.literal(null), z.string()]))
561
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_result$schema$value
562
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_result$schema$value ??= z.object({
563
+ 'headSha': z.string().readonly().describe('HEAD commit the list was read at.'),
564
+ 'commits': z.array(z.object({
565
+ 'sha': z.string().readonly().describe('Full commit object name.'),
566
+ 'parent': z.union([z.literal(null), z.string()]).readonly().describe('Full object name of the first parent, or null for a root commit.'),
567
+ 'title': z.string().readonly().describe('First line of the commit message.'),
568
+ 'author': z.union([z.literal(null), z.string()]).readonly().describe('Author name or login as the host reports it, or null when it reports none.'),
569
+ 'authoredAt': z.string().readonly().describe('ISO 8601 time the commit was authored.'),
570
+ })).readonly().describe('Commits oldest first, ending with HEAD\'s commit.'),
571
+ 'truncated': z.boolean().readonly().describe('Whether the branch has more commits than `maxCommits`; the listed ones are the newest.'),
572
+ }))
309
573
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0$schema$value
310
574
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0$schema$value ??= z.string())
311
575
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1$schema$value
312
576
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1$schema$value ??= z.union([z.object({
313
577
  'kind': z.literal("branch").readonly(),
578
+ 'base': z.union([z.literal(null), z.string()]).readonly(),
579
+ 'commits': z.union([z.literal(null), z.object({
580
+ 'from': z.string().readonly().describe('First, oldest commit shown.'),
581
+ 'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
582
+ })]).readonly(),
314
583
  }), z.object({
315
584
  'kind': z.literal("uncommitted").readonly(),
316
585
  }), z.object({
@@ -337,6 +606,8 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_result$
337
606
  'newLines': z.number().readonly().describe('New lines the hunk covers.'),
338
607
  'lines': z.array(z.string()).readonly().describe('Lines in patch form: a leading space for context, `+` for added, `-` for deleted, and `\\` for a missing final newline.'),
339
608
  })).readonly().describe('Hunks in file order; none for a binary file or a change of mode or name only.'),
609
+ 'layer': z.union([z.literal("interface"), z.literal("implementation"), z.literal("test")]).readonly().describe('Review layer the path falls in.'),
610
+ 'digest': z.string().readonly().describe('Digest of the file\'s change: its paths, status, and hunks, plus the blob names of a binary change, or the content of an untracked binary file. Equal digests describe the same change; reading the same comparison again keeps it.'),
340
611
  })).readonly().describe('Changed files in Git\'s path order, untracked files last.'),
341
612
  'omitted': z.number().readonly().describe('Untracked files left out beyond `maxUntrackedFiles`.'),
342
613
  }))
@@ -345,6 +616,11 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_paramet
345
616
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1$schema$value
346
617
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1$schema$value ??= z.union([z.object({
347
618
  'kind': z.literal("branch").readonly(),
619
+ 'base': z.union([z.literal(null), z.string()]).readonly(),
620
+ 'commits': z.union([z.literal(null), z.object({
621
+ 'from': z.string().readonly().describe('First, oldest commit shown.'),
622
+ 'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
623
+ })]).readonly(),
348
624
  }), z.object({
349
625
  'kind': z.literal("uncommitted").readonly(),
350
626
  }), z.object({
@@ -376,12 +652,33 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_parameter_0
376
652
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_parameter_0$schema$value ??= z.string())
377
653
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_result$schema$value
378
654
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_result$schema$value ??= z.void())
655
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0$schema$value
656
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0$schema$value ??= z.string())
657
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1$schema$value
658
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1$schema$value ??= z.string())
659
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2$schema$value
660
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2$schema$value ??= z.array(z.object({
661
+ 'kind': z.union([z.literal("user"), z.literal("bot"), z.literal("team")]).readonly().describe('Whether the reviewer is a person\'s account, an app or bot account, or a team.'),
662
+ 'login': z.string().readonly().describe('Login, or `organization/slug` for a team.'),
663
+ })))
664
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_result$schema$value
665
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_result$schema$value ??= z.void())
379
666
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_0$schema$value
380
667
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_0$schema$value ??= z.string())
381
668
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1$schema$value
382
669
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1$schema$value ??= z.union([z.literal(null), z.string()]))
383
670
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_result$schema$value
384
671
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_result$schema$value ??= z.void())
672
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0$schema$value
673
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0$schema$value ??= z.string())
674
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1$schema$value
675
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1$schema$value ??= z.string())
676
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2$schema$value
677
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2$schema$value ??= z.object({
678
+ 'headSha': z.string().readonly().describe('Head commit whose checks the user saw; the provider refuses with `stale` once the head is another commit.'),
679
+ }))
680
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_result$schema$value
681
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_result$schema$value ??= z.void())
385
682
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0$schema$value
386
683
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0$schema$value ??= z.string())
387
684
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_result$schema$value
@@ -390,6 +687,31 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_param
390
687
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0$schema$value ??= z.string())
391
688
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_result$schema$value
392
689
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_result$schema$value ??= z.void())
690
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0$schema$value
691
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0$schema$value ??= z.string())
692
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1$schema$value
693
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1$schema$value ??= z.string())
694
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2$schema$value
695
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2$schema$value ??= z.string())
696
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_result$schema$value
697
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_result$schema$value ??= z.array(z.object({
698
+ 'login': z.string().readonly().describe('Login as the host spells it.'),
699
+ 'name': z.union([z.literal(null), z.string()]).readonly().describe('Display name, or null when the account shows none.'),
700
+ 'avatarUrl': z.union([z.literal(null), z.string()]).readonly().describe('Avatar image URL, or null when the host reports none.'),
701
+ 'suggested': z.boolean().readonly().describe('Whether the host suggests the account for this change request, as from the history of its changed files.'),
702
+ })))
703
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0$schema$value
704
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0$schema$value ??= z.string())
705
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1$schema$value
706
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1$schema$value ??= z.string())
707
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2$schema$value
708
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2$schema$value ??= z.object({
709
+ 'path': z.string().readonly().describe('Repository-relative path of the changed file.'),
710
+ 'viewed': z.boolean().readonly().describe('Whether the file is viewed.'),
711
+ 'headSha': z.string().readonly().describe('Head commit whose changes the user saw; the provider refuses with `stale` once the head is another commit.'),
712
+ }))
713
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_result$schema$value
714
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_result$schema$value ??= z.void())
393
715
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0$schema$value
394
716
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0$schema$value ??= z.string())
395
717
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_result$schema$value
@@ -428,7 +750,7 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_resu
428
750
  'url': z.string().readonly(),
429
751
  }), z.object({
430
752
  'ok': z.literal(false).readonly(),
431
- 'code': z.union([z.literal("failed"), z.literal("unknown"), z.literal("unsupported"), z.literal("stale")]).readonly(),
753
+ 'code': z.union([z.literal("failed"), z.literal("unknown"), z.literal("stale"), z.literal("unsupported")]).readonly(),
432
754
  'message': z.string().readonly(),
433
755
  })]))
434
756
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0$schema$value
@@ -437,6 +759,25 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1$s
437
759
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1$schema$value ??= z.string())
438
760
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_result$schema$value
439
761
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_result$schema$value ??= z.void())
762
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0$schema$value
763
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0$schema$value ??= z.string())
764
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1$schema$value
765
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1$schema$value ??= z.string())
766
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2$schema$value
767
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2$schema$value ??= z.union([z.literal("merge"), z.literal("rebase")]))
768
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3$schema$value
769
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3$schema$value ??= z.string())
770
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_result$schema$value
771
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_result$schema$value ??= z.void())
772
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0$schema$value
773
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0$schema$value ??= z.string())
774
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1$schema$value
775
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1$schema$value ??= z.union([z.literal(null), z.number()]))
776
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_result$schema$value
777
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_result$schema$value ??= z.union([z.literal(null), z.object({
778
+ 'revision': z.number().readonly().describe('Monotonic attempt number within this Host lifetime; a Remote waits on a specific one.'),
779
+ 'status': z.union([z.literal("failed"), z.literal("retained"), z.literal("scheduled"), z.literal("removed")]).readonly().describe('`scheduled` until the background inspection ends; `retained` when a use, policy, or Git state keeps the checkout; `removed` after `git worktree remove`; `failed` when removal threw and may have left a partial directory.'),
780
+ })]))
440
781
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_branches_parameter_0_strict$schema$value
441
782
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_branches_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_branches_parameter_0_strict$schema$value ??= z.string())
442
783
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_parameter_0_strict$schema$value
@@ -447,10 +788,73 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks
447
788
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1_strict$schema$value ??= z.string())
448
789
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2_strict$schema$value
449
790
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2_strict$schema$value ??= z.string())
791
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0_strict$schema$value
792
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0_strict$schema$value ??= z.string())
793
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1_strict$schema$value
794
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1_strict$schema$value ??= z.string())
450
795
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0_strict$schema$value
451
796
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0_strict$schema$value ??= z.string())
452
797
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1_strict$schema$value
453
798
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1_strict$schema$value ??= z.string())
799
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2_strict$schema$value
800
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2_strict$schema$value ??= z.union([z.literal(null), z.strictObject({
801
+ 'from': z.string().readonly().describe('First, oldest commit shown.'),
802
+ 'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
803
+ })]))
804
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0_strict$schema$value
805
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0_strict$schema$value ??= z.string())
806
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1_strict$schema$value
807
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1_strict$schema$value ??= z.string())
808
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2_strict$schema$value
809
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2_strict$schema$value ??= z.string())
810
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3_strict$schema$value
811
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3_strict$schema$value ??= z.boolean())
812
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0_strict$schema$value
813
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0_strict$schema$value ??= z.string())
814
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1_strict$schema$value
815
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1_strict$schema$value ??= z.string())
816
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2_strict$schema$value
817
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2_strict$schema$value ??= z.union([z.strictObject({
818
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
819
+ 'kind': z.literal("reply").readonly(),
820
+ 'thread': z.string().readonly(),
821
+ 'body': z.string().readonly(),
822
+ 'pending': z.boolean().readonly(),
823
+ }), z.strictObject({
824
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
825
+ 'kind': z.literal("resolve").readonly(),
826
+ 'thread': z.string().readonly(),
827
+ 'resolved': z.boolean().readonly(),
828
+ }), z.strictObject({
829
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
830
+ 'kind': z.literal("edit-comment").readonly(),
831
+ 'comment': z.string().readonly(),
832
+ 'body': z.string().readonly(),
833
+ }), z.strictObject({
834
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
835
+ 'kind': z.literal("delete-comment").readonly(),
836
+ 'comment': z.string().readonly(),
837
+ }), z.strictObject({
838
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
839
+ 'kind': z.literal("add-pending").readonly(),
840
+ 'comment': z.strictObject({
841
+ 'path': z.string().readonly(),
842
+ 'side': z.union([z.literal("L"), z.literal("R")]).readonly(),
843
+ 'startLine': z.number().readonly(),
844
+ 'endLine': z.number().readonly(),
845
+ 'body': z.string().readonly(),
846
+ }).readonly(),
847
+ }), z.strictObject({
848
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
849
+ 'kind': z.literal("submit-pending").readonly(),
850
+ 'review': z.string().readonly(),
851
+ 'event': z.union([z.literal("comment"), z.literal("approve"), z.literal("request-changes")]).readonly(),
852
+ 'body': z.string().readonly(),
853
+ }), z.strictObject({
854
+ 'headSha': z.string().readonly().describe('Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit.'),
855
+ 'kind': z.literal("discard-pending").readonly(),
856
+ 'review': z.string().readonly(),
857
+ })]))
454
858
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_0_strict$schema$value
455
859
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_0_strict$schema$value ??= z.string())
456
860
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_1_strict$schema$value
@@ -459,19 +863,38 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_p
459
863
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_2_strict$schema$value ??= z.string())
460
864
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3_strict$schema$value
461
865
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3_strict$schema$value ??= z.string())
866
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0_strict$schema$value
867
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0_strict$schema$value ??= z.string())
868
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1_strict$schema$value
869
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1_strict$schema$value ??= z.string())
870
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2_strict$schema$value
871
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2_strict$schema$value ??= z.string())
462
872
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0_strict$schema$value
463
873
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0_strict$schema$value ??= z.string())
874
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0_strict$schema$value
875
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0_strict$schema$value ??= z.string())
876
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1_strict$schema$value
877
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1_strict$schema$value ??= z.string())
464
878
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0_strict$schema$value
465
879
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0_strict$schema$value ??= z.string())
466
880
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1_strict$schema$value
467
881
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1_strict$schema$value ??= z.string())
468
882
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_parameter_0_strict$schema$value
469
883
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_parameter_0_strict$schema$value ??= z.string())
884
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0_strict$schema$value
885
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0_strict$schema$value ??= z.string())
886
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1_strict$schema$value
887
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1_strict$schema$value ??= z.union([z.literal(null), z.string()]))
470
888
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0_strict$schema$value
471
889
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0_strict$schema$value ??= z.string())
472
890
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1_strict$schema$value
473
891
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1_strict$schema$value ??= z.union([z.strictObject({
474
892
  'kind': z.literal("branch").readonly(),
893
+ 'base': z.union([z.literal(null), z.string()]).readonly(),
894
+ 'commits': z.union([z.literal(null), z.strictObject({
895
+ 'from': z.string().readonly().describe('First, oldest commit shown.'),
896
+ 'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
897
+ })]).readonly(),
475
898
  }), z.strictObject({
476
899
  'kind': z.literal("uncommitted").readonly(),
477
900
  }), z.strictObject({
@@ -484,6 +907,11 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_paramet
484
907
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1_strict$schema$value
485
908
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1_strict$schema$value ??= z.union([z.strictObject({
486
909
  'kind': z.literal("branch").readonly(),
910
+ 'base': z.union([z.literal(null), z.string()]).readonly(),
911
+ 'commits': z.union([z.literal(null), z.strictObject({
912
+ 'from': z.string().readonly().describe('First, oldest commit shown.'),
913
+ 'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
914
+ })]).readonly(),
487
915
  }), z.strictObject({
488
916
  'kind': z.literal("uncommitted").readonly(),
489
917
  }), z.strictObject({
@@ -507,14 +935,47 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_merge_parameter_3_s
507
935
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_merge_parameter_3_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_merge_parameter_3_strict$schema$value ??= z.string())
508
936
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_parameter_0_strict$schema$value
509
937
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_refresh_parameter_0_strict$schema$value ??= z.string())
938
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0_strict$schema$value
939
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0_strict$schema$value ??= z.string())
940
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1_strict$schema$value
941
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1_strict$schema$value ??= z.string())
942
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2_strict$schema$value
943
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2_strict$schema$value ??= z.array(z.strictObject({
944
+ 'kind': z.union([z.literal("user"), z.literal("bot"), z.literal("team")]).readonly().describe('Whether the reviewer is a person\'s account, an app or bot account, or a team.'),
945
+ 'login': z.string().readonly().describe('Login, or `organization/slug` for a team.'),
946
+ })))
510
947
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_0_strict$schema$value
511
948
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_0_strict$schema$value ??= z.string())
512
949
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1_strict$schema$value
513
950
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1_strict$schema$value ??= z.union([z.literal(null), z.string()]))
951
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0_strict$schema$value
952
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0_strict$schema$value ??= z.string())
953
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1_strict$schema$value
954
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1_strict$schema$value ??= z.string())
955
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2_strict$schema$value
956
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2_strict$schema$value ??= z.strictObject({
957
+ 'headSha': z.string().readonly().describe('Head commit whose checks the user saw; the provider refuses with `stale` once the head is another commit.'),
958
+ }))
514
959
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0_strict$schema$value
515
960
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0_strict$schema$value ??= z.string())
516
961
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0_strict$schema$value
517
962
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0_strict$schema$value ??= z.string())
963
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0_strict$schema$value
964
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0_strict$schema$value ??= z.string())
965
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1_strict$schema$value
966
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1_strict$schema$value ??= z.string())
967
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2_strict$schema$value
968
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2_strict$schema$value ??= z.string())
969
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0_strict$schema$value
970
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0_strict$schema$value ??= z.string())
971
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1_strict$schema$value
972
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1_strict$schema$value ??= z.string())
973
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2_strict$schema$value
974
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2_strict$schema$value ??= z.strictObject({
975
+ 'path': z.string().readonly().describe('Repository-relative path of the changed file.'),
976
+ 'viewed': z.boolean().readonly().describe('Whether the file is viewed.'),
977
+ 'headSha': z.string().readonly().describe('Head commit whose changes the user saw; the provider refuses with `stale` once the head is another commit.'),
978
+ }))
518
979
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0_strict$schema$value
519
980
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0_strict$schema$value ??= z.string())
520
981
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0_strict$schema$value
@@ -549,6 +1010,18 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0_s
549
1010
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0_strict$schema$value ??= z.string())
550
1011
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1_strict$schema$value
551
1012
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1_strict$schema$value ??= z.string())
1013
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0_strict$schema$value
1014
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0_strict$schema$value ??= z.string())
1015
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1_strict$schema$value
1016
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1_strict$schema$value ??= z.string())
1017
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2_strict$schema$value
1018
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2_strict$schema$value ??= z.union([z.literal("merge"), z.literal("rebase")]))
1019
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3_strict$schema$value
1020
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3_strict$schema$value ??= z.string())
1021
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0_strict$schema$value
1022
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0_strict$schema$value ??= z.string())
1023
+ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1_strict$schema$value
1024
+ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1_strict$schema$value ??= z.union([z.literal(null), z.number()]))
552
1025
 
553
1026
  const $remote = createTypertRemoteInfo({
554
1027
  package: '@deepseek-ai/dsh-experimental-client-ui-forge',
@@ -586,7 +1059,7 @@ const $remote = createTypertRemoteInfo({
586
1059
  description: 'the checked-out branch and at most `maxBranches` local branches, the checked-out one first.',
587
1060
  jsonSchema: {"type":"object","properties":{"current":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Checked-out branch, or null when HEAD is detached."},"branches":{"type":"array","items":{"type":"string"},"description":"Local branch names, `current` first and then most recently committed first, at most `maxBranches`."}},"required":["current","branches"],"additionalProperties":true},
588
1061
  },
589
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":188,"column":9},
1062
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":222,"column":9},
590
1063
  },
591
1064
  'forgePanel/cancelWorktree': {
592
1065
  service: 'forgePanel',
@@ -620,7 +1093,7 @@ const $remote = createTypertRemoteInfo({
620
1093
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_result$schema,
621
1094
  jsonSchemaError: 'typert tool schema: unsupported void value',
622
1095
  },
623
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":449,"column":9},
1096
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":748,"column":9},
624
1097
  },
625
1098
  'forgePanel/changeRequestChecks': {
626
1099
  service: 'forgePanel',
@@ -687,13 +1160,65 @@ const $remote = createTypertRemoteInfo({
687
1160
  typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ChangeRequestSnapshot',
688
1161
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_result$schema,
689
1162
  description: 'the complete snapshot at the displayed head.',
690
- jsonSchema: {"type":"object","properties":{"ref":{"type":"object","properties":{"repository":{"type":"object","properties":{"forge":{"type":"string","description":"Provider family that serves the repository, such as `github`."},"host":{"type":"string","description":"Lowercase host name, such as `github.com`."},"owner":{"type":"string","description":"Owner or namespace path as the host spells it."},"name":{"type":"string","description":"Repository name as the host spells it."}},"required":["forge","host","owner","name"],"additionalProperties":true,"description":"Repository that holds the change request."},"number":{"type":"number","description":"Host-assigned change request number."}},"required":["repository","number"],"additionalProperties":true,"description":"Change request the snapshot describes."},"url":{"type":"string","description":"Web page of the change request."},"title":{"type":"string","description":"Title as the author wrote it."},"state":{"type":"string","enum":["open","closed","merged"],"description":"Lifecycle state."},"draft":{"type":"boolean","description":"Whether the author marked the change request as a draft."},"author":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Author login, or null when the host hides it."},"headBranch":{"type":"string","description":"Branch that carries the proposed commits."},"headSha":{"type":"string","description":"Commit object name at the head of the change request."},"baseBranch":{"type":"string","description":"Branch the change request merges into."},"additions":{"type":"number","description":"Lines the change request adds."},"deletions":{"type":"number","description":"Lines the change request deletes."},"mergeability":{"type":"string","enum":["unknown","mergeable","conflicting"],"description":"Merge conflict status; `unknown` while the host computes it."},"mergeReady":{"type":"boolean","description":"Whether the host would merge the change request now for the signed-in user: open, not a draft, and meeting the base branch's merge rules."},"mergeMethods":{"type":"array","items":{"type":"string","enum":["merge","squash","rebase"]},"description":"Merge methods the repository accepts, the signed-in user's usual one first."},"reviewDecision":{"type":"string","enum":["none","approved","changes-requested","review-required"],"description":"Aggregate review outcome."},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Check name as the host displays it."},"state":{"type":"string","enum":["cancelled","pending","neutral","success","failure","skipped"],"description":"Normalized check outcome."},"url":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Web page for the check, or null when the host reports none."},"workflow":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Workflow that produced the check, or null when the host reports none."},"startedAt":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"ISO 8601 time the check started, or null before it starts and when the host reports none."},"completedAt":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"ISO 8601 time the check completed, or null while it runs and when the host reports none."}},"required":["name","state","url","workflow","startedAt","completedAt"],"additionalProperties":true},"description":"Checks on the head commit in host order."},"checksRollup":{"type":"string","enum":["pending","success","none","failure"],"description":"Combined check outcome."},"checksTruncated":{"type":"boolean","description":"Whether the host reported more checks than `checks` contains."},"unresolvedThreads":{"type":"number","description":"Number of review threads that are not resolved."},"updatedAt":{"type":"string","description":"ISO 8601 time of the host's last update to the change request."},"closedAt":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"ISO 8601 time the change request was merged or closed, or null while it is open."}},"required":["ref","url","title","state","draft","author","headBranch","headSha","baseBranch","additions","deletions","mergeability","mergeReady","mergeMethods","reviewDecision","checks","checksRollup","checksTruncated","unresolvedThreads","updatedAt","closedAt"],"additionalProperties":true},
1163
+ jsonSchema: {"type":"object","properties":{"ref":{"type":"object","properties":{"repository":{"type":"object","properties":{"forge":{"type":"string","description":"Provider family that serves the repository, such as `github`."},"host":{"type":"string","description":"Lowercase host name, such as `github.com`."},"owner":{"type":"string","description":"Owner or namespace path as the host spells it."},"name":{"type":"string","description":"Repository name as the host spells it."}},"required":["forge","host","owner","name"],"additionalProperties":true,"description":"Repository that holds the change request."},"number":{"type":"number","description":"Host-assigned change request number."}},"required":["repository","number"],"additionalProperties":true,"description":"Change request the snapshot describes."},"url":{"type":"string","description":"Web page of the change request."},"title":{"type":"string","description":"Title as the author wrote it."},"state":{"type":"string","enum":["open","closed","merged"],"description":"Lifecycle state."},"draft":{"type":"boolean","description":"Whether the author marked the change request as a draft."},"author":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Author login, or null when the host hides it."},"headBranch":{"type":"string","description":"Branch that carries the proposed commits."},"headSha":{"type":"string","description":"Commit object name at the head of the change request."},"baseBranch":{"type":"string","description":"Branch the change request merges into."},"baseSha":{"type":"string","description":"Base commit the host recorded with `headSha`, whose merge base with the head starts the change request's diff; omitted when the provider does not report it."},"additions":{"type":"number","description":"Lines the change request adds."},"deletions":{"type":"number","description":"Lines the change request deletes."},"mergeability":{"type":"string","enum":["unknown","mergeable","conflicting"],"description":"Merge conflict status; `unknown` while the host computes it."},"mergeReady":{"type":"boolean","description":"Whether the host would merge the change request now for the signed-in user: open, not a draft, and meeting the base branch's merge rules."},"mergeMethods":{"type":"array","items":{"type":"string","enum":["merge","squash","rebase"]},"description":"Merge methods the repository accepts, the signed-in user's usual one first."},"branchUpdates":{"type":"array","items":{"type":"string","enum":["merge","rebase"]},"description":"Ways the signed-in user can bring the base branch's new commits into the head branch now; empty while the head is up to date, while the branches conflict, when the user cannot update the head branch, or when the provider cannot, so a head behind its base cannot be told apart from a current one for a user without the right to update it."},"reviewDecision":{"type":"string","enum":["none","approved","changes-requested","review-required"],"description":"Aggregate review outcome."},"reviewers":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["user","bot","team"],"description":"Whether the reviewer is a person's account, an app or bot account, or a team."},"login":{"type":"string","description":"Login, or `organization/slug` for a team."},"avatarUrl":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Avatar image URL, or null when the host reports none."},"requested":{"type":"boolean","description":"Whether a review from the reviewer is requested now."},"codeOwner":{"type":"boolean","description":"Whether the host requested the review because the reviewer owns changed paths."},"verdict":{"oneOf":[{"type":"null","const":null},{"type":"string","enum":["dismissed","approved","changes-requested","commented"]}],"description":"Outcome of the reviewer's latest submitted review, or null before the first."},"reviewedSha":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Commit the latest submitted review was on, or null before the first or when the host reports none."}},"required":["kind","login","avatarUrl","requested","codeOwner","verdict","reviewedSha"],"additionalProperties":true},"description":"Reviewers whose review is requested, in host order, then other accounts that reviewed, each once; the author is never listed."},"reviewersTruncated":{"type":"boolean","description":"Whether the host reported more review requests or reviews than the provider read, so `reviewers` may be incomplete."},"canRequestReviews":{"type":"boolean","description":"Whether the signed-in user may request reviews of the change request through its provider."},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Check name as the host displays it."},"state":{"type":"string","enum":["pending","neutral","success","cancelled","failure","skipped"],"description":"Normalized check outcome."},"url":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Web page for the check, or null when the host reports none."},"workflow":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Workflow that produced the check, or null when the host reports none."},"startedAt":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"ISO 8601 time the check started, or null before it starts and when the host reports none."},"completedAt":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"ISO 8601 time the check completed, or null while it runs and when the host reports none."},"rerun":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Identity a rerun of this check names, or null when the provider cannot rerun it, as for a commit status. Checks that name one identity rerun together, and their failed checks can be rerun once none of them is pending."}},"required":["name","state","url","workflow","startedAt","completedAt","rerun"],"additionalProperties":true},"description":"Checks on the head commit in host order."},"checksRollup":{"type":"string","enum":["pending","success","none","failure"],"description":"Combined check outcome."},"checksTruncated":{"type":"boolean","description":"Whether the host reported more checks than `checks` contains."},"canRerunChecks":{"type":"boolean","description":"Whether the signed-in user may rerun the failed checks that name a `rerun`."},"unresolvedThreads":{"type":"number","description":"Number of counted review threads that are not resolved."},"threadsTruncated":{"type":"boolean","description":"Whether the change request has more review threads than the provider counted, so `unresolvedThreads` is a lower bound."},"closingIssues":{"type":"array","items":{"type":"object","properties":{"repository":{"type":"object","properties":{"forge":{"type":"string","description":"Provider family that serves the repository, such as `github`."},"host":{"type":"string","description":"Lowercase host name, such as `github.com`."},"owner":{"type":"string","description":"Owner or namespace path as the host spells it."},"name":{"type":"string","description":"Repository name as the host spells it."}},"required":["forge","host","owner","name"],"additionalProperties":true,"description":"Repository that holds the issue."},"number":{"type":"number","description":"Host-assigned issue number."},"title":{"type":"string","description":"Title as the author wrote it."},"state":{"type":"string","enum":["open","closed"],"description":"Whether the issue is still open."},"url":{"type":"string","description":"Web page of the issue."}},"required":["repository","number","title","state","url"],"additionalProperties":true},"description":"Issues linked to the change request, which the host closes once it merges, in host order."},"closingIssuesTruncated":{"type":"boolean","description":"Whether the host reported more closing issues than `closingIssues` holds."},"updatedAt":{"type":"string","description":"ISO 8601 time of the host's last update to the change request."},"closedAt":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"ISO 8601 time the change request was merged or closed, or null while it is open."}},"required":["ref","url","title","state","draft","author","headBranch","headSha","baseBranch","additions","deletions","mergeability","mergeReady","mergeMethods","branchUpdates","reviewDecision","reviewers","reviewersTruncated","canRequestReviews","checks","checksRollup","checksTruncated","canRerunChecks","unresolvedThreads","threadsTruncated","closingIssues","closingIssuesTruncated","updatedAt","closedAt"],"additionalProperties":true},
1164
+ },
1165
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":364,"column":9},
1166
+ },
1167
+ 'forgePanel/changeRequestCommits': {
1168
+ service: 'forgePanel',
1169
+ description: 'List the commits of a change request of a Session at its current head, which the changes view can show one or several of instead of the whole change request.',
1170
+ invocation: { kind: 'direct' },
1171
+ parameters: [
1172
+ {
1173
+ name: 'session',
1174
+ wire: 'sessionId',
1175
+ description: 'Session the change request is bound to.',
1176
+ source: 'lookup',
1177
+ lookup: 'session',
1178
+ codec: {
1179
+ mode: 'strict',
1180
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1181
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0$schema,
1182
+ jsonSchema: {"type":"string"},
1183
+ },
1184
+ strictCodec: {
1185
+ mode: 'strict',
1186
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1187
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_0_strict$schema,
1188
+ jsonSchema: {"type":"string"},
1189
+ },
1190
+ },
1191
+ {
1192
+ name: 'url',
1193
+ description: 'binding URL of the change request.',
1194
+ source: 'json',
1195
+ codec: {
1196
+ mode: 'strict',
1197
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestCommits:url',
1198
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1$schema,
1199
+ jsonSchema: {"type":"string"},
1200
+ },
1201
+ strictCodec: {
1202
+ mode: 'strict',
1203
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestCommits:url',
1204
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_parameter_1_strict$schema,
1205
+ jsonSchema: {"type":"string"},
1206
+ },
1207
+ },
1208
+ ],
1209
+ cancellation: { parameter: 'signal' },
1210
+ result: {
1211
+ mode: 'strict',
1212
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestCommits:result',
1213
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestCommits_result$schema,
1214
+ description: 'the commits oldest first with the head they were read at, or null when the provider does not read commits.',
1215
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the list was read at."},"commits":{"type":"array","items":{"type":"object","properties":{"sha":{"type":"string","description":"Full commit object name."},"parent":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Full object name of the first parent, or null for a root commit."},"title":{"type":"string","description":"First line of the commit message."},"author":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Author name or login as the host reports it, or null when it reports none."},"authoredAt":{"type":"string","description":"ISO 8601 time the commit was authored."}},"required":["sha","parent","title","author","authoredAt"],"additionalProperties":true},"description":"Commits oldest first, ending with the head commit unless `truncated`."},"truncated":{"type":"boolean","description":"Whether the change request has more commits than the provider lists; the listed ones are the oldest."}},"required":["headSha","commits","truncated"],"additionalProperties":true}]},
691
1216
  },
692
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":285,"column":9},
1217
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":384,"column":9},
693
1218
  },
694
1219
  'forgePanel/changeRequestDiff': {
695
1220
  service: 'forgePanel',
696
- description: 'Read the changes of a change request of a Session as its code host computes them, at the head commit of its latest status. A patch already read at the same head commit and base branch is reused from memory, for any Session, until `maxCachedDiffBytes` evicts it.',
1221
+ description: 'Read the changes of a change request of a Session as its code host computes them, with each file\'s layer following the root `.gitattributes` of the commit the diff ends at. Without `commits` the diff covers the change request at the head commit of its latest status; a patch already read at the same head commit and base branch is reused from memory with its attributes, for any Session, until `maxCachedDiffBytes` evicts it. With `commits`, it covers those commits, from the first one\'s first parent to the last, and is read every time.',
697
1222
  invocation: { kind: 'direct' },
698
1223
  parameters: [
699
1224
  {
@@ -732,37 +1257,37 @@ const $remote = createTypertRemoteInfo({
732
1257
  jsonSchema: {"type":"string"},
733
1258
  },
734
1259
  },
1260
+ {
1261
+ name: 'commits',
1262
+ description: 'consecutive commits of the change request, or null for all of it.',
1263
+ source: 'json',
1264
+ codec: {
1265
+ mode: 'strict',
1266
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestDiff:commits',
1267
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2$schema,
1268
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"from":{"type":"string","description":"First, oldest commit shown."},"to":{"type":"string","description":"Last, newest commit shown; equal to `from` for one commit."}},"required":["from","to"],"additionalProperties":true}]},
1269
+ },
1270
+ strictCodec: {
1271
+ mode: 'strict',
1272
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestDiff:commits',
1273
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2_strict$schema,
1274
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"from":{"type":"string","description":"First, oldest commit shown."},"to":{"type":"string","description":"Last, newest commit shown; equal to `from` for one commit."}},"required":["from","to"],"additionalProperties":false}]},
1275
+ },
1276
+ },
735
1277
  ],
736
1278
  cancellation: { parameter: 'signal' },
737
1279
  result: {
738
1280
  mode: 'strict',
739
1281
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeChangeRequestDiff',
740
1282
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_result$schema,
741
- description: 'the files, the head commit, each file\'s web page, and the commits the checkout has beyond the head.',
1283
+ description: 'the files, the commit they end at, each file\'s web page, and the commits the checkout has beyond the head.',
742
1284
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
743
1285
  },
744
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":308,"column":9},
745
- },
746
- 'forgePanel/changeRequestStates': {
747
- service: 'forgePanel',
748
- description: 'Stream the last known state of every change request that a listed Session the caller may read binds: the stored states first, then each state a poll changes or a new binding reveals. Listing reads no Session log: loaded Sessions report their bindings, others the cached Session summary, and a Session without one shows nothing until it is opened. Closed requests are polled at the idle cadence so reopening is observed. The stream ends when `signal` aborts or the Remote stops.',
749
- mode: 'stream',
750
- invocation: { kind: 'direct' },
751
- parameters: [
752
- ],
753
- cancellation: { parameter: 'signal' },
754
- result: {
755
- mode: 'strict',
756
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeChangeRequestStatesFrame',
757
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestStates_result$schema,
758
- description: 'frames in publication order.',
759
- jsonSchema: {"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"baseline"},"states":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Title as the author wrote it."},"state":{"type":"string","enum":["open","closed","merged"],"description":"Lifecycle state."},"url":{"type":"string","description":"Web page of the change request."},"draft":{"type":"boolean","description":"Whether the author marked the change request as a draft."},"checksRollup":{"type":"string","enum":["pending","success","none","failure"],"description":"Combined check outcome."},"reviewDecision":{"type":"string","enum":["none","approved","changes-requested","review-required"],"description":"Aggregate review outcome."},"mergeability":{"type":"string","enum":["unknown","mergeable","conflicting"],"description":"Merge conflict status; `unknown` while the host computes it."},"number":{"type":"number","description":"Change request number on its code host."}},"required":["title","state","url","draft","checksRollup","reviewDecision","mergeability","number"],"additionalProperties":true}}},"required":["type","states"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"changed"},"states":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Title as the author wrote it."},"state":{"type":"string","enum":["open","closed","merged"],"description":"Lifecycle state."},"url":{"type":"string","description":"Web page of the change request."},"draft":{"type":"boolean","description":"Whether the author marked the change request as a draft."},"checksRollup":{"type":"string","enum":["pending","success","none","failure"],"description":"Combined check outcome."},"reviewDecision":{"type":"string","enum":["none","approved","changes-requested","review-required"],"description":"Aggregate review outcome."},"mergeability":{"type":"string","enum":["unknown","mergeable","conflicting"],"description":"Merge conflict status; `unknown` while the host computes it."},"number":{"type":"number","description":"Change request number on its code host."}},"required":["title","state","url","draft","checksRollup","reviewDecision","mergeability","number"],"additionalProperties":true}}},"required":["type","states"],"additionalProperties":true}]},
760
- },
761
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":175,"column":10},
1286
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":413,"column":9},
762
1287
  },
763
- 'forgePanel/changeRequestText': {
1288
+ 'forgePanel/changeRequestReview': {
764
1289
  service: 'forgePanel',
765
- description: 'Read one file of a change request\'s repository at a commit, which supplies the unchanged lines between the hunks of its diff.',
1290
+ description: 'Read the review threads of a change request of a Session at the head commit of its displayed diff. Threads read at the same head commit and update time are reused from memory, for any Session, until they are `reviewRefreshMs` old, `maxCachedReviewBytes` evicts them, or a review write through this panel drops them; a read again after that age, or a `fresh` read, shows threads resolved elsewhere since, which do not change a GitHub pull request\'s update time.',
766
1291
  invocation: { kind: 'direct' },
767
1292
  parameters: [
768
1293
  {
@@ -774,13 +1299,13 @@ const $remote = createTypertRemoteInfo({
774
1299
  codec: {
775
1300
  mode: 'strict',
776
1301
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
777
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_0$schema,
1302
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0$schema,
778
1303
  jsonSchema: {"type":"string"},
779
1304
  },
780
1305
  strictCodec: {
781
1306
  mode: 'strict',
782
1307
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
783
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_0_strict$schema,
1308
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0_strict$schema,
784
1309
  jsonSchema: {"type":"string"},
785
1310
  },
786
1311
  },
@@ -790,222 +1315,567 @@ const $remote = createTypertRemoteInfo({
790
1315
  source: 'json',
791
1316
  codec: {
792
1317
  mode: 'strict',
793
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:url',
794
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_1$schema,
1318
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReview:url',
1319
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1$schema,
795
1320
  jsonSchema: {"type":"string"},
796
1321
  },
797
1322
  strictCodec: {
798
1323
  mode: 'strict',
799
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:url',
800
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_1_strict$schema,
1324
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReview:url',
1325
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_1_strict$schema,
801
1326
  jsonSchema: {"type":"string"},
802
1327
  },
803
1328
  },
804
1329
  {
805
- name: 'commit',
806
- description: 'commit object name, the head commit of the diff.',
1330
+ name: 'headSha',
1331
+ description: 'head commit of the displayed diff.',
807
1332
  source: 'json',
808
1333
  codec: {
809
1334
  mode: 'strict',
810
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:commit',
811
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_2$schema,
1335
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReview:headSha',
1336
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2$schema,
812
1337
  jsonSchema: {"type":"string"},
813
1338
  },
814
1339
  strictCodec: {
815
1340
  mode: 'strict',
816
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:commit',
817
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_2_strict$schema,
1341
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReview:headSha',
1342
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_2_strict$schema,
818
1343
  jsonSchema: {"type":"string"},
819
1344
  },
820
1345
  },
821
1346
  {
822
- name: 'path',
823
- description: 'path relative to the repository root.',
1347
+ name: 'fresh',
1348
+ description: 'whether to read from the host even when threads at this head and update time are kept, as after the reader refreshes the view; the result replaces the kept threads.',
824
1349
  source: 'json',
825
1350
  codec: {
826
1351
  mode: 'strict',
827
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:path',
828
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3$schema,
829
- jsonSchema: {"type":"string"},
1352
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReview:fresh',
1353
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3$schema,
1354
+ jsonSchema: {"type":"boolean"},
830
1355
  },
831
1356
  strictCodec: {
832
1357
  mode: 'strict',
833
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:path',
834
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3_strict$schema,
835
- jsonSchema: {"type":"string"},
1358
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReview:fresh',
1359
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_3_strict$schema,
1360
+ jsonSchema: {"type":"boolean"},
836
1361
  },
837
1362
  },
838
1363
  ],
839
1364
  cancellation: { parameter: 'signal' },
840
1365
  result: {
841
1366
  mode: 'strict',
842
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:result',
843
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_result$schema,
844
- description: 'the text.',
845
- jsonSchema: {"type":"string"},
1367
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeReviewData',
1368
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_result$schema,
1369
+ description: 'the threads at `headSha`, with `current` positions numbering the files of that diff.',
1370
+ jsonSchema: {"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the threads were read at; `current` positions number its files."},"viewer":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Login of the signed-in user the provider read as, or null when the host does not name one."},"threads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Host identity of the thread."},"path":{"type":"string","description":"Repository-relative path the thread is on."},"side":{"type":"string","enum":["L","R"],"description":"Old (`L`) or new (`R`) side of the diff the lines number."},"subject":{"type":"string","enum":["file","line"],"description":"Whether the thread is on lines or on the whole file."},"current":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"commit":{"type":"string","description":"Full object name of the commit the diff's new side shows: new-side (`R`) lines number this commit's file, and old-side (`L`) lines number the file at the diff's base."},"startLine":{"type":"number","description":"First line, inclusive."},"endLine":{"type":"number","description":"Last line, inclusive."}},"required":["commit","startLine","endLine"],"additionalProperties":true}],"description":"Lines in the diff that ends at the head commit of the read, whose `commit` is that head; null for an outdated or file thread."},"original":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"commit":{"type":"string","description":"Full object name of the commit the diff's new side shows: new-side (`R`) lines number this commit's file, and old-side (`L`) lines number the file at the diff's base."},"startLine":{"type":"number","description":"First line, inclusive."},"endLine":{"type":"number","description":"Last line, inclusive."}},"required":["commit","startLine","endLine"],"additionalProperties":true}],"description":"Lines in the diff that ended at the commit the thread was written on; null for a file thread."},"diffHunk":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Diff hunk the host recorded when the thread was written, ending at its last line; null when it recorded none."},"resolved":{"type":"boolean","description":"Whether the thread is marked resolved."},"viewerCanReply":{"type":"boolean","description":"Whether the signed-in user can reply to the thread through `writeReview`; false for a provider without it."},"viewerCanResolve":{"type":"boolean","description":"Whether the signed-in user can mark the thread resolved, or unresolved when `resolved`, through `writeReview`; false for a provider without it."},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Host identity of the comment."},"author":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"login":{"type":"string","description":"Login as the host spells it."},"avatarUrl":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Avatar image URL, or null when the host reports none."},"bot":{"type":"boolean","description":"Whether the account is an app or bot rather than a person."}},"required":["login","avatarUrl","bot"],"additionalProperties":true}],"description":"Author, or null when the account no longer exists."},"body":{"type":"string","description":"Markdown source as the author wrote it; it may contain raw HTML, which readers must not render as HTML."},"createdAt":{"type":"string","description":"ISO 8601 time the comment was created."},"pending":{"type":"boolean","description":"Whether the comment belongs to the signed-in user's review that is not submitted yet, which only that user sees."},"url":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Web page of the comment, or null when the host reports none."},"viewerCanEdit":{"type":"boolean","description":"Whether the signed-in user can replace the comment's text through `writeReview`; false for a provider without it."},"viewerCanDelete":{"type":"boolean","description":"Whether the signed-in user can delete the comment through `writeReview`; false for a provider without it."}},"required":["id","author","body","createdAt","pending","url","viewerCanEdit","viewerCanDelete"],"additionalProperties":true},"description":"Comments oldest first; the first starts the thread."}},"required":["id","path","side","subject","current","original","diffHunk","resolved","viewerCanReply","viewerCanResolve","comments"],"additionalProperties":true},"description":"Threads in host order, at most the provider's limit."},"truncated":{"type":"boolean","description":"Whether the change request has more threads than `threads` holds."},"pendingReview":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"id":{"type":"string","description":"Host identity of the review."},"comments":{"type":"number","description":"Comments the review holds."}},"required":["id","comments"],"additionalProperties":true}],"description":"The signed-in user's pending review, or null without one."},"viewerCanReview":{"type":"boolean","description":"Whether the signed-in user can add comments to a pending review and submit or discard it through `writeReview`; false for a provider without it."}},"required":["headSha","viewer","threads","truncated","pendingReview","viewerCanReview"],"additionalProperties":true},
846
1371
  },
847
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":352,"column":9},
1372
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":527,"column":9},
848
1373
  },
849
- 'forgePanel/continueInProject': {
1374
+ 'forgePanel/changeRequestReviewWrite': {
850
1375
  service: 'forgePanel',
851
- description: 'Move a Session from its created worktree to the source checkout the worktree came from; the Session no longer works in the worktree. Runs as Agent maintenance, inside the wait of a message that waits for the removed worktree, which then goes on.',
1376
+ description: 'Write to the review threads or the pending review of a change request of a Session while its head is still the head the user saw. The threads kept for the change request are dropped once the host answers, so the next read shows the write, which a resolve does not show through a GitHub pull request\'s update time.',
852
1377
  invocation: { kind: 'direct' },
853
1378
  parameters: [
854
1379
  {
855
1380
  name: 'session',
856
1381
  wire: 'sessionId',
857
- description: 'Session with a created worktree.',
1382
+ description: 'Session the change request is bound to.',
858
1383
  source: 'lookup',
859
1384
  lookup: 'session',
860
1385
  codec: {
861
1386
  mode: 'strict',
862
1387
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
863
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0$schema,
1388
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0$schema,
864
1389
  jsonSchema: {"type":"string"},
865
1390
  },
866
1391
  strictCodec: {
867
1392
  mode: 'strict',
868
1393
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
869
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0_strict$schema,
1394
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_0_strict$schema,
870
1395
  jsonSchema: {"type":"string"},
871
1396
  },
872
1397
  },
873
- ],
874
- cancellation: { parameter: 'signal' },
875
- result: {
876
- mode: 'strict',
877
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/continueInProject:result',
878
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_result$schema,
879
- jsonSchemaError: 'typert tool schema: unsupported void value',
880
- },
881
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":530,"column":9},
882
- },
883
- 'forgePanel/dismiss': {
884
- service: 'forgePanel',
885
- description: 'Hide a visible binding of a Session; other URLs leave the Session unchanged.',
886
- invocation: { kind: 'direct' },
887
- parameters: [
888
1398
  {
889
- name: 'session',
890
- wire: 'sessionId',
891
- description: 'Session that owns the binding.',
892
- source: 'lookup',
893
- lookup: 'session',
1399
+ name: 'url',
1400
+ description: 'binding URL of the change request.',
1401
+ source: 'json',
894
1402
  codec: {
895
1403
  mode: 'strict',
896
- typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
897
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0$schema,
1404
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReviewWrite:url',
1405
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1$schema,
898
1406
  jsonSchema: {"type":"string"},
899
1407
  },
900
1408
  strictCodec: {
901
1409
  mode: 'strict',
902
- typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
903
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0_strict$schema,
1410
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestReviewWrite:url',
1411
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_1_strict$schema,
904
1412
  jsonSchema: {"type":"string"},
905
1413
  },
906
1414
  },
907
1415
  {
908
- name: 'url',
909
- description: 'web URL of the change request.',
1416
+ name: 'write',
1417
+ description: 'the write and the head commit of the threads the user saw.',
910
1418
  source: 'json',
911
1419
  codec: {
912
1420
  mode: 'strict',
913
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/dismiss:url',
914
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1$schema,
915
- jsonSchema: {"type":"string"},
1421
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeReviewWrite',
1422
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2$schema,
1423
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"reply"},"thread":{"type":"string"},"body":{"type":"string"},"pending":{"type":"boolean"}},"required":["headSha","kind","thread","body","pending"],"additionalProperties":true},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"resolve"},"thread":{"type":"string"},"resolved":{"type":"boolean"}},"required":["headSha","kind","thread","resolved"],"additionalProperties":true},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"edit-comment"},"comment":{"type":"string"},"body":{"type":"string"}},"required":["headSha","kind","comment","body"],"additionalProperties":true},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"delete-comment"},"comment":{"type":"string"}},"required":["headSha","kind","comment"],"additionalProperties":true},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"add-pending"},"comment":{"type":"object","properties":{"path":{"type":"string"},"side":{"type":"string","enum":["L","R"]},"startLine":{"type":"number"},"endLine":{"type":"number"},"body":{"type":"string"}},"required":["path","side","startLine","endLine","body"],"additionalProperties":true}},"required":["headSha","kind","comment"],"additionalProperties":true},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"submit-pending"},"review":{"type":"string"},"event":{"type":"string","enum":["comment","approve","request-changes"]},"body":{"type":"string"}},"required":["headSha","kind","review","event","body"],"additionalProperties":true},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"discard-pending"},"review":{"type":"string"}},"required":["headSha","kind","review"],"additionalProperties":true}]},
916
1424
  },
917
1425
  strictCodec: {
918
1426
  mode: 'strict',
919
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/dismiss:url',
920
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1_strict$schema,
921
- jsonSchema: {"type":"string"},
1427
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeReviewWrite',
1428
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_parameter_2_strict$schema,
1429
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"reply"},"thread":{"type":"string"},"body":{"type":"string"},"pending":{"type":"boolean"}},"required":["headSha","kind","thread","body","pending"],"additionalProperties":false},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"resolve"},"thread":{"type":"string"},"resolved":{"type":"boolean"}},"required":["headSha","kind","thread","resolved"],"additionalProperties":false},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"edit-comment"},"comment":{"type":"string"},"body":{"type":"string"}},"required":["headSha","kind","comment","body"],"additionalProperties":false},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"delete-comment"},"comment":{"type":"string"}},"required":["headSha","kind","comment"],"additionalProperties":false},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"add-pending"},"comment":{"type":"object","properties":{"path":{"type":"string"},"side":{"type":"string","enum":["L","R"]},"startLine":{"type":"number"},"endLine":{"type":"number"},"body":{"type":"string"}},"required":["path","side","startLine","endLine","body"],"additionalProperties":false}},"required":["headSha","kind","comment"],"additionalProperties":false},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"submit-pending"},"review":{"type":"string"},"event":{"type":"string","enum":["comment","approve","request-changes"]},"body":{"type":"string"}},"required":["headSha","kind","review","event","body"],"additionalProperties":false},{"type":"object","properties":{"headSha":{"type":"string","description":"Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit."},"kind":{"type":"string","const":"discard-pending"},"review":{"type":"string"}},"required":["headSha","kind","review"],"additionalProperties":false}]},
922
1430
  },
923
1431
  },
924
1432
  ],
925
1433
  cancellation: { parameter: 'signal' },
926
1434
  result: {
927
1435
  mode: 'strict',
928
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/dismiss:result',
929
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_result$schema,
930
- jsonSchemaError: 'typert tool schema: unsupported void value',
1436
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeReviewWriteResult',
1437
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReviewWrite_result$schema,
1438
+ description: 'whether the host took the write; `stale` once the head moved, which polls the change request again, and `unknown` when the outcome must be checked on the host before the write is tried again.',
1439
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"code":{"type":"string","enum":["failed","unknown","stale","unsupported"]},"message":{"type":"string"}},"required":["ok","code","message"],"additionalProperties":true}]},
931
1440
  },
932
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":216,"column":9},
1441
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":586,"column":9},
933
1442
  },
934
- 'forgePanel/follow': {
1443
+ 'forgePanel/changeRequestStates': {
935
1444
  service: 'forgePanel',
936
- description: 'Stream the panel state of a Session: the current state first, then each later state. Intermediate states may be skipped when the reader is slower than the updates. The stream ends when `signal` aborts or the Remote stops.',
1445
+ description: 'Stream the last known state of every change request that a listed Session the caller may read binds: the stored states first, then each state a poll changes or a new binding reveals. Listing reads no Session log: loaded Sessions report their bindings, others the cached Session summary, and a Session without one shows nothing until it is opened. Closed requests are polled at the idle cadence so reopening is observed. The stream ends when `signal` aborts or the Remote stops.',
937
1446
  mode: 'stream',
938
1447
  invocation: { kind: 'direct' },
939
1448
  parameters: [
940
- {
941
- name: 'session',
942
- wire: 'sessionId',
943
- description: 'Session to follow.',
944
- source: 'lookup',
945
- lookup: 'session',
946
- codec: {
947
- mode: 'strict',
948
- typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
949
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_parameter_0$schema,
950
- jsonSchema: {"type":"string"},
951
- },
952
- strictCodec: {
953
- mode: 'strict',
954
- typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
955
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_parameter_0_strict$schema,
956
- jsonSchema: {"type":"string"},
957
- },
958
- },
959
1449
  ],
960
1450
  cancellation: { parameter: 'signal' },
961
1451
  result: {
962
1452
  mode: 'strict',
963
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgePanelState',
964
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_result$schema,
965
- description: 'panel states in publication order.',
966
- jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
1453
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeChangeRequestStatesFrame',
1454
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestStates_result$schema,
1455
+ description: 'frames in publication order.',
1456
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"baseline"},"states":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Title as the author wrote it."},"state":{"type":"string","enum":["open","closed","merged"],"description":"Lifecycle state."},"url":{"type":"string","description":"Web page of the change request."},"draft":{"type":"boolean","description":"Whether the author marked the change request as a draft."},"checksRollup":{"type":"string","enum":["pending","success","none","failure"],"description":"Combined check outcome."},"reviewDecision":{"type":"string","enum":["none","approved","changes-requested","review-required"],"description":"Aggregate review outcome."},"mergeability":{"type":"string","enum":["unknown","mergeable","conflicting"],"description":"Merge conflict status; `unknown` while the host computes it."},"number":{"type":"number","description":"Change request number on its code host."}},"required":["title","state","url","draft","checksRollup","reviewDecision","mergeability","number"],"additionalProperties":true}}},"required":["type","states"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"changed"},"states":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Title as the author wrote it."},"state":{"type":"string","enum":["open","closed","merged"],"description":"Lifecycle state."},"url":{"type":"string","description":"Web page of the change request."},"draft":{"type":"boolean","description":"Whether the author marked the change request as a draft."},"checksRollup":{"type":"string","enum":["pending","success","none","failure"],"description":"Combined check outcome."},"reviewDecision":{"type":"string","enum":["none","approved","changes-requested","review-required"],"description":"Aggregate review outcome."},"mergeability":{"type":"string","enum":["unknown","mergeable","conflicting"],"description":"Merge conflict status; `unknown` while the host computes it."},"number":{"type":"number","description":"Change request number on its code host."}},"required":["title","state","url","draft","checksRollup","reviewDecision","mergeability","number"],"additionalProperties":true}}},"required":["type","states"],"additionalProperties":true}]},
967
1457
  },
968
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":158,"column":10},
1458
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":198,"column":10},
969
1459
  },
970
- 'forgePanel/localDiff': {
1460
+ 'forgePanel/changeRequestText': {
971
1461
  service: 'forgePanel',
972
- description: 'Read the changes one scope covers in the checkout of the Session\'s current directory, with Git using the Session\'s sandbox policy.',
1462
+ description: 'Read one file of a change request\'s repository at a commit, which supplies the unchanged lines between the hunks of its diff.',
973
1463
  invocation: { kind: 'direct' },
974
1464
  parameters: [
975
1465
  {
976
1466
  name: 'session',
977
1467
  wire: 'sessionId',
978
- description: 'Session whose checkout is read.',
1468
+ description: 'Session the change request is bound to.',
979
1469
  source: 'lookup',
980
1470
  lookup: 'session',
981
1471
  codec: {
982
1472
  mode: 'strict',
983
1473
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
984
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0$schema,
1474
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_0$schema,
985
1475
  jsonSchema: {"type":"string"},
986
1476
  },
987
1477
  strictCodec: {
988
1478
  mode: 'strict',
989
1479
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
990
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0_strict$schema,
1480
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_0_strict$schema,
991
1481
  jsonSchema: {"type":"string"},
992
1482
  },
993
1483
  },
994
1484
  {
995
- name: 'scope',
996
- description: 'which changes to read.',
1485
+ name: 'url',
1486
+ description: 'binding URL of the change request.',
997
1487
  source: 'json',
998
1488
  codec: {
999
1489
  mode: 'strict',
1000
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLocalScope',
1001
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1$schema,
1002
- jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":true}]},
1490
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:url',
1491
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_1$schema,
1492
+ jsonSchema: {"type":"string"},
1493
+ },
1494
+ strictCodec: {
1495
+ mode: 'strict',
1496
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:url',
1497
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_1_strict$schema,
1498
+ jsonSchema: {"type":"string"},
1499
+ },
1500
+ },
1501
+ {
1502
+ name: 'commit',
1503
+ description: 'commit object name, the head commit of the diff.',
1504
+ source: 'json',
1505
+ codec: {
1506
+ mode: 'strict',
1507
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:commit',
1508
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_2$schema,
1509
+ jsonSchema: {"type":"string"},
1510
+ },
1511
+ strictCodec: {
1512
+ mode: 'strict',
1513
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:commit',
1514
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_2_strict$schema,
1515
+ jsonSchema: {"type":"string"},
1516
+ },
1517
+ },
1518
+ {
1519
+ name: 'path',
1520
+ description: 'path relative to the repository root.',
1521
+ source: 'json',
1522
+ codec: {
1523
+ mode: 'strict',
1524
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:path',
1525
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3$schema,
1526
+ jsonSchema: {"type":"string"},
1527
+ },
1528
+ strictCodec: {
1529
+ mode: 'strict',
1530
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:path',
1531
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_parameter_3_strict$schema,
1532
+ jsonSchema: {"type":"string"},
1533
+ },
1534
+ },
1535
+ ],
1536
+ cancellation: { parameter: 'signal' },
1537
+ result: {
1538
+ mode: 'strict',
1539
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestText:result',
1540
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestText_result$schema,
1541
+ description: 'the text.',
1542
+ jsonSchema: {"type":"string"},
1543
+ },
1544
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":458,"column":9},
1545
+ },
1546
+ 'forgePanel/changeRequestViewed': {
1547
+ service: 'forgePanel',
1548
+ description: 'Read the signed-in user\'s viewed marks on the files of a change request of a Session, which the host keeps for the whole change request.',
1549
+ invocation: { kind: 'direct' },
1550
+ parameters: [
1551
+ {
1552
+ name: 'session',
1553
+ wire: 'sessionId',
1554
+ description: 'Session the change request is bound to.',
1555
+ source: 'lookup',
1556
+ lookup: 'session',
1557
+ codec: {
1558
+ mode: 'strict',
1559
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1560
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0$schema,
1561
+ jsonSchema: {"type":"string"},
1562
+ },
1563
+ strictCodec: {
1564
+ mode: 'strict',
1565
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1566
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_0_strict$schema,
1567
+ jsonSchema: {"type":"string"},
1568
+ },
1569
+ },
1570
+ {
1571
+ name: 'url',
1572
+ description: 'binding URL of the change request.',
1573
+ source: 'json',
1574
+ codec: {
1575
+ mode: 'strict',
1576
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestViewed:url',
1577
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1$schema,
1578
+ jsonSchema: {"type":"string"},
1579
+ },
1580
+ strictCodec: {
1581
+ mode: 'strict',
1582
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestViewed:url',
1583
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_1_strict$schema,
1584
+ jsonSchema: {"type":"string"},
1585
+ },
1586
+ },
1587
+ {
1588
+ name: 'headSha',
1589
+ description: 'head commit of the shown diff; marks read at another head are refused.',
1590
+ source: 'json',
1591
+ codec: {
1592
+ mode: 'strict',
1593
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestViewed:headSha',
1594
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2$schema,
1595
+ jsonSchema: {"type":"string"},
1596
+ },
1597
+ strictCodec: {
1598
+ mode: 'strict',
1599
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestViewed:headSha',
1600
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_parameter_2_strict$schema,
1601
+ jsonSchema: {"type":"string"},
1602
+ },
1603
+ },
1604
+ ],
1605
+ cancellation: { parameter: 'signal' },
1606
+ result: {
1607
+ mode: 'strict',
1608
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestViewed:result',
1609
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestViewed_result$schema,
1610
+ description: 'the marks at `headSha`, or null when the provider keeps no viewed marks.',
1611
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1612
+ },
1613
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":478,"column":9},
1614
+ },
1615
+ 'forgePanel/continueInProject': {
1616
+ service: 'forgePanel',
1617
+ description: 'Move a Session from its created worktree to the source checkout the worktree came from; the Session no longer works in the worktree. Runs as Agent maintenance, inside the wait of a message that waits for the removed worktree, which then goes on.',
1618
+ invocation: { kind: 'direct' },
1619
+ parameters: [
1620
+ {
1621
+ name: 'session',
1622
+ wire: 'sessionId',
1623
+ description: 'Session with a created worktree.',
1624
+ source: 'lookup',
1625
+ lookup: 'session',
1626
+ codec: {
1627
+ mode: 'strict',
1628
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1629
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0$schema,
1630
+ jsonSchema: {"type":"string"},
1631
+ },
1632
+ strictCodec: {
1633
+ mode: 'strict',
1634
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1635
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_parameter_0_strict$schema,
1636
+ jsonSchema: {"type":"string"},
1637
+ },
1638
+ },
1639
+ ],
1640
+ cancellation: { parameter: 'signal' },
1641
+ result: {
1642
+ mode: 'strict',
1643
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/continueInProject:result',
1644
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_result$schema,
1645
+ jsonSchemaError: 'typert tool schema: unsupported void value',
1646
+ },
1647
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":829,"column":9},
1648
+ },
1649
+ 'forgePanel/diffBases': {
1650
+ service: 'forgePanel',
1651
+ description: 'List the branches the `branch` scope of the Session\'s current checkout can compare with.',
1652
+ invocation: { kind: 'direct' },
1653
+ parameters: [
1654
+ {
1655
+ name: 'session',
1656
+ wire: 'sessionId',
1657
+ description: 'Session whose checkout is read.',
1658
+ source: 'lookup',
1659
+ lookup: 'session',
1660
+ codec: {
1661
+ mode: 'strict',
1662
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1663
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0$schema,
1664
+ jsonSchema: {"type":"string"},
1665
+ },
1666
+ strictCodec: {
1667
+ mode: 'strict',
1668
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1669
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_0_strict$schema,
1670
+ jsonSchema: {"type":"string"},
1671
+ },
1672
+ },
1673
+ {
1674
+ name: 'query',
1675
+ description: 'text the branch names must contain, ignoring case; empty for every branch.',
1676
+ source: 'json',
1677
+ codec: {
1678
+ mode: 'strict',
1679
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/diffBases:query',
1680
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1$schema,
1681
+ jsonSchema: {"type":"string"},
1682
+ },
1683
+ strictCodec: {
1684
+ mode: 'strict',
1685
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/diffBases:query',
1686
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_parameter_1_strict$schema,
1687
+ jsonSchema: {"type":"string"},
1688
+ },
1689
+ },
1690
+ ],
1691
+ cancellation: { parameter: 'signal' },
1692
+ result: {
1693
+ mode: 'strict',
1694
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeBaseBranches',
1695
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_diffBases_result$schema,
1696
+ description: 'the automatic fork point and at most `maxBranches` remote-tracking and local branches each, most recently committed first, without the checked-out branch.',
1697
+ jsonSchema: {"type":"object","properties":{"automatic":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"name":{"type":"string","description":"The created worktree's base branch or abbreviated base commit, or the default branch of the code host remote."},"worktree":{"type":"boolean","description":"Whether the fork point is the base commit of the worktree the Session created rather than a merge base."}},"required":["name","worktree"],"additionalProperties":true}],"description":"The fork point used while no base branch is chosen, whatever the query; null without one."},"remote":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"Full ref name: `refs/heads/<branch>` or `refs/remotes/<remote>/<branch>`."},"name":{"type":"string","description":"The ref without `refs/heads/` or `refs/remotes/`, such as `master` or `origin/master`."}},"required":["ref","name"],"additionalProperties":true},"description":"Remote-tracking branches without symbolic refs such as `origin/HEAD`, most recently committed first, at most `maxBranches`."},"local":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"Full ref name: `refs/heads/<branch>` or `refs/remotes/<remote>/<branch>`."},"name":{"type":"string","description":"The ref without `refs/heads/` or `refs/remotes/`, such as `master` or `origin/master`."}},"required":["ref","name"],"additionalProperties":true},"description":"Local branches other than the checked-out one, most recently committed first, at most `maxBranches`."}},"required":["automatic","remote","local"],"additionalProperties":true},
1698
+ },
1699
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":236,"column":9},
1700
+ },
1701
+ 'forgePanel/dismiss': {
1702
+ service: 'forgePanel',
1703
+ description: 'Hide a visible binding of a Session; other URLs leave the Session unchanged.',
1704
+ invocation: { kind: 'direct' },
1705
+ parameters: [
1706
+ {
1707
+ name: 'session',
1708
+ wire: 'sessionId',
1709
+ description: 'Session that owns the binding.',
1710
+ source: 'lookup',
1711
+ lookup: 'session',
1712
+ codec: {
1713
+ mode: 'strict',
1714
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1715
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0$schema,
1716
+ jsonSchema: {"type":"string"},
1717
+ },
1718
+ strictCodec: {
1719
+ mode: 'strict',
1720
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1721
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_0_strict$schema,
1722
+ jsonSchema: {"type":"string"},
1723
+ },
1724
+ },
1725
+ {
1726
+ name: 'url',
1727
+ description: 'web URL of the change request.',
1728
+ source: 'json',
1729
+ codec: {
1730
+ mode: 'strict',
1731
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/dismiss:url',
1732
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1$schema,
1733
+ jsonSchema: {"type":"string"},
1734
+ },
1735
+ strictCodec: {
1736
+ mode: 'strict',
1737
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/dismiss:url',
1738
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_parameter_1_strict$schema,
1739
+ jsonSchema: {"type":"string"},
1740
+ },
1741
+ },
1742
+ ],
1743
+ cancellation: { parameter: 'signal' },
1744
+ result: {
1745
+ mode: 'strict',
1746
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/dismiss:result',
1747
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_dismiss_result$schema,
1748
+ jsonSchemaError: 'typert tool schema: unsupported void value',
1749
+ },
1750
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":268,"column":9},
1751
+ },
1752
+ 'forgePanel/follow': {
1753
+ service: 'forgePanel',
1754
+ description: 'Stream the panel state of a Session: the current state first, then each later state. Intermediate states may be skipped when the reader is slower than the updates. The stream ends when `signal` aborts or the Remote stops.',
1755
+ mode: 'stream',
1756
+ invocation: { kind: 'direct' },
1757
+ parameters: [
1758
+ {
1759
+ name: 'session',
1760
+ wire: 'sessionId',
1761
+ description: 'Session to follow.',
1762
+ source: 'lookup',
1763
+ lookup: 'session',
1764
+ codec: {
1765
+ mode: 'strict',
1766
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1767
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_parameter_0$schema,
1768
+ jsonSchema: {"type":"string"},
1769
+ },
1770
+ strictCodec: {
1771
+ mode: 'strict',
1772
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1773
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_parameter_0_strict$schema,
1774
+ jsonSchema: {"type":"string"},
1775
+ },
1776
+ },
1777
+ ],
1778
+ cancellation: { parameter: 'signal' },
1779
+ result: {
1780
+ mode: 'strict',
1781
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgePanelState',
1782
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_follow_result$schema,
1783
+ description: 'panel states in publication order.',
1784
+ jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
1785
+ },
1786
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":181,"column":10},
1787
+ },
1788
+ 'forgePanel/localCommits': {
1789
+ service: 'forgePanel',
1790
+ description: 'List the commits of the `branch` scope of the Session\'s current checkout, which the changes view can show one or several of instead of the whole scope.',
1791
+ invocation: { kind: 'direct' },
1792
+ parameters: [
1793
+ {
1794
+ name: 'session',
1795
+ wire: 'sessionId',
1796
+ description: 'Session whose checkout is read.',
1797
+ source: 'lookup',
1798
+ lookup: 'session',
1799
+ codec: {
1800
+ mode: 'strict',
1801
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1802
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0$schema,
1803
+ jsonSchema: {"type":"string"},
1804
+ },
1805
+ strictCodec: {
1806
+ mode: 'strict',
1807
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1808
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_0_strict$schema,
1809
+ jsonSchema: {"type":"string"},
1810
+ },
1811
+ },
1812
+ {
1813
+ name: 'base',
1814
+ description: 'the base ref of the `branch` scope, or null for its automatic fork point.',
1815
+ source: 'json',
1816
+ codec: {
1817
+ mode: 'strict',
1818
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/localCommits:base',
1819
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1$schema,
1820
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
1821
+ },
1822
+ strictCodec: {
1823
+ mode: 'strict',
1824
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/localCommits:base',
1825
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_parameter_1_strict$schema,
1826
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
1827
+ },
1828
+ },
1829
+ ],
1830
+ cancellation: { parameter: 'signal' },
1831
+ result: {
1832
+ mode: 'strict',
1833
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLocalCommits',
1834
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localCommits_result$schema,
1835
+ description: 'the newest `maxCommits` commits between the fork point and HEAD, oldest first, and HEAD\'s commit.',
1836
+ jsonSchema: {"type":"object","properties":{"headSha":{"type":"string","description":"HEAD commit the list was read at."},"commits":{"type":"array","items":{"type":"object","properties":{"sha":{"type":"string","description":"Full commit object name."},"parent":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Full object name of the first parent, or null for a root commit."},"title":{"type":"string","description":"First line of the commit message."},"author":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Author name or login as the host reports it, or null when it reports none."},"authoredAt":{"type":"string","description":"ISO 8601 time the commit was authored."}},"required":["sha","parent","title","author","authoredAt"],"additionalProperties":true},"description":"Commits oldest first, ending with HEAD's commit."},"truncated":{"type":"boolean","description":"Whether the branch has more commits than `maxCommits`; the listed ones are the newest."}},"required":["headSha","commits","truncated"],"additionalProperties":true},
1837
+ },
1838
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":323,"column":9},
1839
+ },
1840
+ 'forgePanel/localDiff': {
1841
+ service: 'forgePanel',
1842
+ description: 'Read the changes one scope covers in the checkout of the Session\'s current directory, with Git using the Session\'s sandbox policy.',
1843
+ invocation: { kind: 'direct' },
1844
+ parameters: [
1845
+ {
1846
+ name: 'session',
1847
+ wire: 'sessionId',
1848
+ description: 'Session whose checkout is read.',
1849
+ source: 'lookup',
1850
+ lookup: 'session',
1851
+ codec: {
1852
+ mode: 'strict',
1853
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1854
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0$schema,
1855
+ jsonSchema: {"type":"string"},
1856
+ },
1857
+ strictCodec: {
1858
+ mode: 'strict',
1859
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1860
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_0_strict$schema,
1861
+ jsonSchema: {"type":"string"},
1862
+ },
1863
+ },
1864
+ {
1865
+ name: 'scope',
1866
+ description: 'which changes to read.',
1867
+ source: 'json',
1868
+ codec: {
1869
+ mode: 'strict',
1870
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLocalScope',
1871
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1$schema,
1872
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"},"base":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"commits":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"from":{"type":"string","description":"First, oldest commit shown."},"to":{"type":"string","description":"Last, newest commit shown; equal to `from` for one commit."}},"required":["from","to"],"additionalProperties":true}]}},"required":["kind","base","commits"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":true}]},
1003
1873
  },
1004
1874
  strictCodec: {
1005
1875
  mode: 'strict',
1006
1876
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLocalScope',
1007
1877
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_parameter_1_strict$schema,
1008
- jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":false}]},
1878
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"},"base":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"commits":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"from":{"type":"string","description":"First, oldest commit shown."},"to":{"type":"string","description":"Last, newest commit shown; equal to `from` for one commit."}},"required":["from","to"],"additionalProperties":false}]}},"required":["kind","base","commits"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":false}]},
1009
1879
  },
1010
1880
  },
1011
1881
  ],
@@ -1015,13 +1885,13 @@ const $remote = createTypertRemoteInfo({
1015
1885
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLocalDiff',
1016
1886
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localDiff_result$schema,
1017
1887
  description: 'the files, the base of the `branch` scope, and the untracked files left out.',
1018
- jsonSchema: {"type":"object","properties":{"base":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Ref or abbreviated commit the `branch` scope compares with, such as `origin/master`; null for other scopes."},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Path relative to the repository root after the change, or before it for a deleted file."},"previousPath":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Path before a rename, else null."},"status":{"type":"string","enum":["deleted","added","modified","renamed"],"description":"How the file changed."},"binary":{"type":"boolean","description":"Whether the content is binary, which carries no hunks."},"oversized":{"type":"boolean","description":"Whether an untracked file exceeds `maxDiffBytes`, so it carries no hunks."},"untracked":{"type":"boolean","description":"Whether Git does not track the file yet; only local diffs list such files."},"additions":{"type":"number","description":"Lines added."},"deletions":{"type":"number","description":"Lines deleted."},"hunks":{"type":"array","items":{"type":"object","properties":{"oldStart":{"type":"number","description":"First old line the hunk covers, or the old line it comes before when it covers none."},"oldLines":{"type":"number","description":"Old lines the hunk covers."},"newStart":{"type":"number","description":"First new line the hunk covers, or the new line it comes before when it covers none."},"newLines":{"type":"number","description":"New lines the hunk covers."},"lines":{"type":"array","items":{"type":"string"},"description":"Lines in patch form: a leading space for context, `+` for added, `-` for deleted, and `\\` for a missing final newline."}},"required":["oldStart","oldLines","newStart","newLines","lines"],"additionalProperties":true},"description":"Hunks in file order; none for a binary file or a change of mode or name only."}},"required":["path","previousPath","status","binary","oversized","untracked","additions","deletions","hunks"],"additionalProperties":true},"description":"Changed files in Git's path order, untracked files last."},"omitted":{"type":"number","description":"Untracked files left out beyond `maxUntrackedFiles`."}},"required":["base","files","omitted"],"additionalProperties":true},
1888
+ jsonSchema: {"type":"object","properties":{"base":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Ref or abbreviated commit the `branch` scope compares with, such as `origin/master`; null for other scopes."},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Path relative to the repository root after the change, or before it for a deleted file."},"previousPath":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Path before a rename, else null."},"status":{"type":"string","enum":["deleted","added","modified","renamed"],"description":"How the file changed."},"binary":{"type":"boolean","description":"Whether the content is binary, which carries no hunks."},"oversized":{"type":"boolean","description":"Whether an untracked file exceeds `maxDiffBytes`, so it carries no hunks."},"untracked":{"type":"boolean","description":"Whether Git does not track the file yet; only local diffs list such files."},"additions":{"type":"number","description":"Lines added."},"deletions":{"type":"number","description":"Lines deleted."},"hunks":{"type":"array","items":{"type":"object","properties":{"oldStart":{"type":"number","description":"First old line the hunk covers, or the old line it comes before when it covers none."},"oldLines":{"type":"number","description":"Old lines the hunk covers."},"newStart":{"type":"number","description":"First new line the hunk covers, or the new line it comes before when it covers none."},"newLines":{"type":"number","description":"New lines the hunk covers."},"lines":{"type":"array","items":{"type":"string"},"description":"Lines in patch form: a leading space for context, `+` for added, `-` for deleted, and `\\` for a missing final newline."}},"required":["oldStart","oldLines","newStart","newLines","lines"],"additionalProperties":true},"description":"Hunks in file order; none for a binary file or a change of mode or name only."},"layer":{"type":"string","enum":["interface","implementation","test"],"description":"Review layer the path falls in."},"digest":{"type":"string","description":"Digest of the file's change: its paths, status, and hunks, plus the blob names of a binary change, or the content of an untracked binary file. Equal digests describe the same change; reading the same comparison again keeps it."}},"required":["path","previousPath","status","binary","oversized","untracked","additions","deletions","hunks","layer","digest"],"additionalProperties":true},"description":"Changed files in Git's path order, untracked files last."},"omitted":{"type":"number","description":"Untracked files left out beyond `maxUntrackedFiles`."}},"required":["base","files","omitted"],"additionalProperties":true},
1019
1889
  },
1020
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":246,"column":9},
1890
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":301,"column":9},
1021
1891
  },
1022
1892
  'forgePanel/localText': {
1023
1893
  service: 'forgePanel',
1024
- description: 'Read the new side of one changed file in a scope, which supplies the unchanged lines between its hunks: the index for `staged`, else the working tree.',
1894
+ description: 'Read the new side of one changed file in a scope, which supplies the unchanged lines between its hunks: the index for `staged`, the last chosen commit for chosen commits of the `branch` scope, else the working tree.',
1025
1895
  invocation: { kind: 'direct' },
1026
1896
  parameters: [
1027
1897
  {
@@ -1051,13 +1921,13 @@ const $remote = createTypertRemoteInfo({
1051
1921
  mode: 'strict',
1052
1922
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLocalScope',
1053
1923
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1$schema,
1054
- jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":true}]},
1924
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"},"base":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"commits":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"from":{"type":"string","description":"First, oldest commit shown."},"to":{"type":"string","description":"Last, newest commit shown; equal to `from` for one commit."}},"required":["from","to"],"additionalProperties":true}]}},"required":["kind","base","commits"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":true}]},
1055
1925
  },
1056
1926
  strictCodec: {
1057
1927
  mode: 'strict',
1058
1928
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLocalScope',
1059
1929
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_localText_parameter_1_strict$schema,
1060
- jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":false}]},
1930
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"},"base":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"commits":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"from":{"type":"string","description":"First, oldest commit shown."},"to":{"type":"string","description":"Last, newest commit shown; equal to `from` for one commit."}},"required":["from","to"],"additionalProperties":false}]}},"required":["kind","base","commits"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"uncommitted"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"staged"}},"required":["kind"],"additionalProperties":false}]},
1061
1931
  },
1062
1932
  },
1063
1933
  {
@@ -1086,7 +1956,7 @@ const $remote = createTypertRemoteInfo({
1086
1956
  description: 'the text.',
1087
1957
  jsonSchema: {"type":"string"},
1088
1958
  },
1089
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":268,"column":9},
1959
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":347,"column":9},
1090
1960
  },
1091
1961
  'forgePanel/markReady': {
1092
1962
  service: 'forgePanel',
@@ -1137,7 +2007,7 @@ const $remote = createTypertRemoteInfo({
1137
2007
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_markReady_result$schema,
1138
2008
  jsonSchemaError: 'typert tool schema: unsupported void value',
1139
2009
  },
1140
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":390,"column":9},
2010
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":610,"column":9},
1141
2011
  },
1142
2012
  'forgePanel/merge': {
1143
2013
  service: 'forgePanel',
@@ -1222,7 +2092,7 @@ const $remote = createTypertRemoteInfo({
1222
2092
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_merge_result$schema,
1223
2093
  jsonSchemaError: 'typert tool schema: unsupported void value',
1224
2094
  },
1225
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":409,"column":9},
2095
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":629,"column":9},
1226
2096
  },
1227
2097
  'forgePanel/refresh': {
1228
2098
  service: 'forgePanel',
@@ -1257,7 +2127,75 @@ const $remote = createTypertRemoteInfo({
1257
2127
  description: 'settles once the inspection and the sign-in probe have ended; poll results reach the panel stream later.',
1258
2128
  jsonSchemaError: 'typert tool schema: unsupported void value',
1259
2129
  },
1260
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":229,"column":9},
2130
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":281,"column":9},
2131
+ },
2132
+ 'forgePanel/requestReviews': {
2133
+ service: 'forgePanel',
2134
+ description: 'Request reviews of a change request of a Session from more reviewers; the change request is polled again once the host answers.',
2135
+ invocation: { kind: 'direct' },
2136
+ parameters: [
2137
+ {
2138
+ name: 'session',
2139
+ wire: 'sessionId',
2140
+ description: 'Session the change request is bound to.',
2141
+ source: 'lookup',
2142
+ lookup: 'session',
2143
+ codec: {
2144
+ mode: 'strict',
2145
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2146
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0$schema,
2147
+ jsonSchema: {"type":"string"},
2148
+ },
2149
+ strictCodec: {
2150
+ mode: 'strict',
2151
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2152
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_0_strict$schema,
2153
+ jsonSchema: {"type":"string"},
2154
+ },
2155
+ },
2156
+ {
2157
+ name: 'url',
2158
+ description: 'binding URL of the change request.',
2159
+ source: 'json',
2160
+ codec: {
2161
+ mode: 'strict',
2162
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestReviews:url',
2163
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1$schema,
2164
+ jsonSchema: {"type":"string"},
2165
+ },
2166
+ strictCodec: {
2167
+ mode: 'strict',
2168
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestReviews:url',
2169
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_1_strict$schema,
2170
+ jsonSchema: {"type":"string"},
2171
+ },
2172
+ },
2173
+ {
2174
+ name: 'reviewers',
2175
+ description: 'the reviewers to ask, by kind and login.',
2176
+ source: 'json',
2177
+ codec: {
2178
+ mode: 'strict',
2179
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestReviews:reviewers',
2180
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2$schema,
2181
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["user","bot","team"],"description":"Whether the reviewer is a person's account, an app or bot account, or a team."},"login":{"type":"string","description":"Login, or `organization/slug` for a team."}},"required":["kind","login"],"additionalProperties":true}},
2182
+ },
2183
+ strictCodec: {
2184
+ mode: 'strict',
2185
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestReviews:reviewers',
2186
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_parameter_2_strict$schema,
2187
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["user","bot","team"],"description":"Whether the reviewer is a person's account, an app or bot account, or a team."},"login":{"type":"string","description":"Login, or `organization/slug` for a team."}},"required":["kind","login"],"additionalProperties":false}},
2188
+ },
2189
+ },
2190
+ ],
2191
+ cancellation: { parameter: 'signal' },
2192
+ result: {
2193
+ mode: 'strict',
2194
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestReviews:result',
2195
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_result$schema,
2196
+ jsonSchemaError: 'typert tool schema: unsupported void value',
2197
+ },
2198
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":666,"column":9},
1261
2199
  },
1262
2200
  'forgePanel/requestWorktree': {
1263
2201
  service: 'forgePanel',
@@ -1295,88 +2233,293 @@ const $remote = createTypertRemoteInfo({
1295
2233
  },
1296
2234
  strictCodec: {
1297
2235
  mode: 'strict',
1298
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestWorktree:from',
1299
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1_strict$schema,
1300
- jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
2236
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestWorktree:from',
2237
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_parameter_1_strict$schema,
2238
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
2239
+ },
2240
+ },
2241
+ ],
2242
+ cancellation: { parameter: 'signal' },
2243
+ result: {
2244
+ mode: 'strict',
2245
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestWorktree:result',
2246
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_result$schema,
2247
+ jsonSchemaError: 'typert tool schema: unsupported void value',
2248
+ },
2249
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":729,"column":9},
2250
+ },
2251
+ 'forgePanel/rerunChecks': {
2252
+ service: 'forgePanel',
2253
+ description: 'Rerun the failed checks of a change request of a Session while its head is still the commit whose checks the user saw; the change request is polled again once the host answers.',
2254
+ invocation: { kind: 'direct' },
2255
+ parameters: [
2256
+ {
2257
+ name: 'session',
2258
+ wire: 'sessionId',
2259
+ description: 'Session the change request is bound to.',
2260
+ source: 'lookup',
2261
+ lookup: 'session',
2262
+ codec: {
2263
+ mode: 'strict',
2264
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2265
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0$schema,
2266
+ jsonSchema: {"type":"string"},
2267
+ },
2268
+ strictCodec: {
2269
+ mode: 'strict',
2270
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2271
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_0_strict$schema,
2272
+ jsonSchema: {"type":"string"},
2273
+ },
2274
+ },
2275
+ {
2276
+ name: 'url',
2277
+ description: 'binding URL of the change request.',
2278
+ source: 'json',
2279
+ codec: {
2280
+ mode: 'strict',
2281
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/rerunChecks:url',
2282
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1$schema,
2283
+ jsonSchema: {"type":"string"},
2284
+ },
2285
+ strictCodec: {
2286
+ mode: 'strict',
2287
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/rerunChecks:url',
2288
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_1_strict$schema,
2289
+ jsonSchema: {"type":"string"},
2290
+ },
2291
+ },
2292
+ {
2293
+ name: 'request',
2294
+ description: 'the head commit whose checks the user saw.',
2295
+ source: 'json',
2296
+ codec: {
2297
+ mode: 'strict',
2298
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeRerunRequest',
2299
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2$schema,
2300
+ jsonSchema: {"type":"object","properties":{"headSha":{"type":"string","description":"Head commit whose checks the user saw; the provider refuses with `stale` once the head is another commit."}},"required":["headSha"],"additionalProperties":true},
2301
+ },
2302
+ strictCodec: {
2303
+ mode: 'strict',
2304
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeRerunRequest',
2305
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_parameter_2_strict$schema,
2306
+ jsonSchema: {"type":"object","properties":{"headSha":{"type":"string","description":"Head commit whose checks the user saw; the provider refuses with `stale` once the head is another commit."}},"required":["headSha"],"additionalProperties":false},
2307
+ },
2308
+ },
2309
+ ],
2310
+ cancellation: { parameter: 'signal' },
2311
+ result: {
2312
+ mode: 'strict',
2313
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/rerunChecks:result',
2314
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_result$schema,
2315
+ jsonSchemaError: 'typert tool schema: unsupported void value',
2316
+ },
2317
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":648,"column":9},
2318
+ },
2319
+ 'forgePanel/restoreWorktree': {
2320
+ service: 'forgePanel',
2321
+ description: 'Check out the created worktree of a Session again at its recorded directory when that directory is gone: its branch when the branch still exists, otherwise a new branch of the same name at the base commit. Changes that were never committed are not recovered. Runs as Agent maintenance, inside the wait of a message that waits for the restoration, which then goes on; without a missing directory the Session is unchanged.',
2322
+ invocation: { kind: 'direct' },
2323
+ parameters: [
2324
+ {
2325
+ name: 'session',
2326
+ wire: 'sessionId',
2327
+ description: 'Session whose worktree directory is gone.',
2328
+ source: 'lookup',
2329
+ lookup: 'session',
2330
+ codec: {
2331
+ mode: 'strict',
2332
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2333
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0$schema,
2334
+ jsonSchema: {"type":"string"},
2335
+ },
2336
+ strictCodec: {
2337
+ mode: 'strict',
2338
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2339
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0_strict$schema,
2340
+ jsonSchema: {"type":"string"},
2341
+ },
2342
+ },
2343
+ ],
2344
+ cancellation: { parameter: 'signal' },
2345
+ result: {
2346
+ mode: 'strict',
2347
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/restoreWorktree:result',
2348
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_result$schema,
2349
+ jsonSchemaError: 'typert tool schema: unsupported void value',
2350
+ },
2351
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":798,"column":9},
2352
+ },
2353
+ 'forgePanel/retryWorktree': {
2354
+ service: 'forgePanel',
2355
+ description: 'Make another attempt, with a new branch name, at the worktree a message of the Session waits for after a failed or stopped attempt.',
2356
+ invocation: { kind: 'direct' },
2357
+ parameters: [
2358
+ {
2359
+ name: 'session',
2360
+ wire: 'sessionId',
2361
+ description: 'Session whose message waits.',
2362
+ source: 'lookup',
2363
+ lookup: 'session',
2364
+ codec: {
2365
+ mode: 'strict',
2366
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2367
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0$schema,
2368
+ jsonSchema: {"type":"string"},
2369
+ },
2370
+ strictCodec: {
2371
+ mode: 'strict',
2372
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2373
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0_strict$schema,
2374
+ jsonSchema: {"type":"string"},
2375
+ },
2376
+ },
2377
+ ],
2378
+ cancellation: { parameter: 'signal' },
2379
+ result: {
2380
+ mode: 'strict',
2381
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/retryWorktree:result',
2382
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_result$schema,
2383
+ jsonSchemaError: 'typert tool schema: unsupported void value',
2384
+ },
2385
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":777,"column":9},
2386
+ },
2387
+ 'forgePanel/reviewerCandidates': {
2388
+ service: 'forgePanel',
2389
+ description: 'List accounts a review of a change request of a Session can be requested from.',
2390
+ invocation: { kind: 'direct' },
2391
+ parameters: [
2392
+ {
2393
+ name: 'session',
2394
+ wire: 'sessionId',
2395
+ description: 'Session the change request is bound to.',
2396
+ source: 'lookup',
2397
+ lookup: 'session',
2398
+ codec: {
2399
+ mode: 'strict',
2400
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2401
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0$schema,
2402
+ jsonSchema: {"type":"string"},
2403
+ },
2404
+ strictCodec: {
2405
+ mode: 'strict',
2406
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2407
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0_strict$schema,
2408
+ jsonSchema: {"type":"string"},
2409
+ },
2410
+ },
2411
+ {
2412
+ name: 'url',
2413
+ description: 'binding URL of the change request.',
2414
+ source: 'json',
2415
+ codec: {
2416
+ mode: 'strict',
2417
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/reviewerCandidates:url',
2418
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1$schema,
2419
+ jsonSchema: {"type":"string"},
2420
+ },
2421
+ strictCodec: {
2422
+ mode: 'strict',
2423
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/reviewerCandidates:url',
2424
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_1_strict$schema,
2425
+ jsonSchema: {"type":"string"},
2426
+ },
2427
+ },
2428
+ {
2429
+ name: 'query',
2430
+ description: 'text the login or name contains; empty for the host\'s suggestions and first accounts.',
2431
+ source: 'json',
2432
+ codec: {
2433
+ mode: 'strict',
2434
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/reviewerCandidates:query',
2435
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2$schema,
2436
+ jsonSchema: {"type":"string"},
2437
+ },
2438
+ strictCodec: {
2439
+ mode: 'strict',
2440
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/reviewerCandidates:query',
2441
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_2_strict$schema,
2442
+ jsonSchema: {"type":"string"},
1301
2443
  },
1302
2444
  },
1303
2445
  ],
1304
2446
  cancellation: { parameter: 'signal' },
1305
2447
  result: {
1306
2448
  mode: 'strict',
1307
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/requestWorktree:result',
1308
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_result$schema,
1309
- jsonSchemaError: 'typert tool schema: unsupported void value',
2449
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/reviewerCandidates:result',
2450
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_result$schema,
2451
+ description: 'the accounts, the host\'s suggestions first.',
2452
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"login":{"type":"string","description":"Login as the host spells it."},"name":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Display name, or null when the account shows none."},"avatarUrl":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"Avatar image URL, or null when the host reports none."},"suggested":{"type":"boolean","description":"Whether the host suggests the account for this change request, as from the history of its changed files."}},"required":["login","name","avatarUrl","suggested"],"additionalProperties":true}},
1310
2453
  },
1311
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":430,"column":9},
2454
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":687,"column":9},
1312
2455
  },
1313
- 'forgePanel/restoreWorktree': {
2456
+ 'forgePanel/setFileViewed': {
1314
2457
  service: 'forgePanel',
1315
- description: 'Check out the created worktree of a Session again at its recorded directory when that directory is gone: its branch when the branch still exists, otherwise a new branch of the same name at the base commit. Changes that were never committed are not recovered. Runs as Agent maintenance, inside the wait of a message that waits for the restoration, which then goes on; without a missing directory the Session is unchanged.',
2458
+ description: 'Set or clear the signed-in user\'s viewed mark on one file of a change request of a Session.',
1316
2459
  invocation: { kind: 'direct' },
1317
2460
  parameters: [
1318
2461
  {
1319
2462
  name: 'session',
1320
2463
  wire: 'sessionId',
1321
- description: 'Session whose worktree directory is gone.',
2464
+ description: 'Session the change request is bound to.',
1322
2465
  source: 'lookup',
1323
2466
  lookup: 'session',
1324
2467
  codec: {
1325
2468
  mode: 'strict',
1326
2469
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1327
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0$schema,
2470
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0$schema,
1328
2471
  jsonSchema: {"type":"string"},
1329
2472
  },
1330
2473
  strictCodec: {
1331
2474
  mode: 'strict',
1332
2475
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1333
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_parameter_0_strict$schema,
2476
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_0_strict$schema,
1334
2477
  jsonSchema: {"type":"string"},
1335
2478
  },
1336
2479
  },
1337
- ],
1338
- cancellation: { parameter: 'signal' },
1339
- result: {
1340
- mode: 'strict',
1341
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/restoreWorktree:result',
1342
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_result$schema,
1343
- jsonSchemaError: 'typert tool schema: unsupported void value',
1344
- },
1345
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":499,"column":9},
1346
- },
1347
- 'forgePanel/retryWorktree': {
1348
- service: 'forgePanel',
1349
- description: 'Make another attempt, with a new branch name, at the worktree a message of the Session waits for after a failed or stopped attempt.',
1350
- invocation: { kind: 'direct' },
1351
- parameters: [
1352
2480
  {
1353
- name: 'session',
1354
- wire: 'sessionId',
1355
- description: 'Session whose message waits.',
1356
- source: 'lookup',
1357
- lookup: 'session',
2481
+ name: 'url',
2482
+ description: 'binding URL of the change request.',
2483
+ source: 'json',
1358
2484
  codec: {
1359
2485
  mode: 'strict',
1360
- typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1361
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0$schema,
2486
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/setFileViewed:url',
2487
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1$schema,
1362
2488
  jsonSchema: {"type":"string"},
1363
2489
  },
1364
2490
  strictCodec: {
1365
2491
  mode: 'strict',
1366
- typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1367
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0_strict$schema,
2492
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/setFileViewed:url',
2493
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_1_strict$schema,
1368
2494
  jsonSchema: {"type":"string"},
1369
2495
  },
1370
2496
  },
2497
+ {
2498
+ name: 'request',
2499
+ description: 'the file, its mark, and the head commit of the shown diff.',
2500
+ source: 'json',
2501
+ codec: {
2502
+ mode: 'strict',
2503
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeViewedRequest',
2504
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2$schema,
2505
+ jsonSchema: {"type":"object","properties":{"path":{"type":"string","description":"Repository-relative path of the changed file."},"viewed":{"type":"boolean","description":"Whether the file is viewed."},"headSha":{"type":"string","description":"Head commit whose changes the user saw; the provider refuses with `stale` once the head is another commit."}},"required":["path","viewed","headSha"],"additionalProperties":true},
2506
+ },
2507
+ strictCodec: {
2508
+ mode: 'strict',
2509
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeViewedRequest',
2510
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_parameter_2_strict$schema,
2511
+ jsonSchema: {"type":"object","properties":{"path":{"type":"string","description":"Repository-relative path of the changed file."},"viewed":{"type":"boolean","description":"Whether the file is viewed."},"headSha":{"type":"string","description":"Head commit whose changes the user saw; the provider refuses with `stale` once the head is another commit."}},"required":["path","viewed","headSha"],"additionalProperties":false},
2512
+ },
2513
+ },
1371
2514
  ],
1372
2515
  cancellation: { parameter: 'signal' },
1373
2516
  result: {
1374
2517
  mode: 'strict',
1375
- typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/retryWorktree:result',
1376
- create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_result$schema,
2518
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/setFileViewed:result',
2519
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_result$schema,
1377
2520
  jsonSchemaError: 'typert tool schema: unsupported void value',
1378
2521
  },
1379
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":478,"column":9},
2522
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":500,"column":9},
1380
2523
  },
1381
2524
  'forgePanel/stopCreation': {
1382
2525
  service: 'forgePanel',
@@ -1410,11 +2553,11 @@ const $remote = createTypertRemoteInfo({
1410
2553
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_result$schema,
1411
2554
  jsonSchemaError: 'typert tool schema: unsupported void value',
1412
2555
  },
1413
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":465,"column":9},
2556
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":764,"column":9},
1414
2557
  },
1415
2558
  'forgePanel/submitReview': {
1416
2559
  service: 'forgePanel',
1417
- description: 'Publish a line comment or completed review for a visible Session binding.',
2560
+ description: 'Publish a line comment or completed review for a visible Session binding. The threads kept for the change request are dropped once the host answers, so the next read shows the comments.',
1418
2561
  invocation: { kind: 'direct' },
1419
2562
  parameters: [
1420
2563
  {
@@ -1477,9 +2620,9 @@ const $remote = createTypertRemoteInfo({
1477
2620
  typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#ForgeReviewResult',
1478
2621
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_result$schema,
1479
2622
  description: 'confirmed publication or a typed failure; unknown outcomes require reconciliation on the host.',
1480
- jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"url":{"type":"string"}},"required":["ok","url"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"code":{"type":"string","enum":["failed","unknown","unsupported","stale"]},"message":{"type":"string"}},"required":["ok","code","message"],"additionalProperties":true}]},
2623
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"url":{"type":"string"}},"required":["ok","url"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"code":{"type":"string","enum":["failed","unknown","stale","unsupported"]},"message":{"type":"string"}},"required":["ok","code","message"],"additionalProperties":true}]},
1481
2624
  },
1482
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":368,"column":9},
2625
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":558,"column":9},
1483
2626
  },
1484
2627
  'forgePanel/track': {
1485
2628
  service: 'forgePanel',
@@ -1530,7 +2673,143 @@ const $remote = createTypertRemoteInfo({
1530
2673
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_result$schema,
1531
2674
  jsonSchemaError: 'typert tool schema: unsupported void value',
1532
2675
  },
1533
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":201,"column":9},
2676
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":253,"column":9},
2677
+ },
2678
+ 'forgePanel/updateBranch': {
2679
+ service: 'forgePanel',
2680
+ description: 'Bring the base branch\'s new commits into the head branch of a change request of a Session while its head is still `headSha`; the change request is polled again once the host answers.',
2681
+ invocation: { kind: 'direct' },
2682
+ parameters: [
2683
+ {
2684
+ name: 'session',
2685
+ wire: 'sessionId',
2686
+ description: 'Session the change request is bound to.',
2687
+ source: 'lookup',
2688
+ lookup: 'session',
2689
+ codec: {
2690
+ mode: 'strict',
2691
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2692
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0$schema,
2693
+ jsonSchema: {"type":"string"},
2694
+ },
2695
+ strictCodec: {
2696
+ mode: 'strict',
2697
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2698
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_0_strict$schema,
2699
+ jsonSchema: {"type":"string"},
2700
+ },
2701
+ },
2702
+ {
2703
+ name: 'url',
2704
+ description: 'binding URL of the change request.',
2705
+ source: 'json',
2706
+ codec: {
2707
+ mode: 'strict',
2708
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/updateBranch:url',
2709
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1$schema,
2710
+ jsonSchema: {"type":"string"},
2711
+ },
2712
+ strictCodec: {
2713
+ mode: 'strict',
2714
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/updateBranch:url',
2715
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_1_strict$schema,
2716
+ jsonSchema: {"type":"string"},
2717
+ },
2718
+ },
2719
+ {
2720
+ name: 'method',
2721
+ description: 'merge commit or rebase.',
2722
+ source: 'json',
2723
+ codec: {
2724
+ mode: 'strict',
2725
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#BranchUpdateMethod',
2726
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2$schema,
2727
+ jsonSchema: {"type":"string","enum":["merge","rebase"]},
2728
+ },
2729
+ strictCodec: {
2730
+ mode: 'strict',
2731
+ typeSymbol: '@deepseek-ai/dsh-experimental-forge/types#BranchUpdateMethod',
2732
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_2_strict$schema,
2733
+ jsonSchema: {"type":"string","enum":["merge","rebase"]},
2734
+ },
2735
+ },
2736
+ {
2737
+ name: 'headSha',
2738
+ description: 'head commit the user confirmed.',
2739
+ source: 'json',
2740
+ codec: {
2741
+ mode: 'strict',
2742
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/updateBranch:headSha',
2743
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3$schema,
2744
+ jsonSchema: {"type":"string"},
2745
+ },
2746
+ strictCodec: {
2747
+ mode: 'strict',
2748
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/updateBranch:headSha',
2749
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_parameter_3_strict$schema,
2750
+ jsonSchema: {"type":"string"},
2751
+ },
2752
+ },
2753
+ ],
2754
+ cancellation: { parameter: 'signal' },
2755
+ result: {
2756
+ mode: 'strict',
2757
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/updateBranch:result',
2758
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_result$schema,
2759
+ jsonSchemaError: 'typert tool schema: unsupported void value',
2760
+ },
2761
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":708,"column":9},
2762
+ },
2763
+ 'forgePanel/worktreeCleanup': {
2764
+ service: 'forgePanel',
2765
+ description: 'Read or await the worktree service\'s archive cleanup of the Session\'s checkout.',
2766
+ invocation: { kind: 'direct' },
2767
+ parameters: [
2768
+ {
2769
+ name: 'session',
2770
+ wire: 'sessionId',
2771
+ description: 'Session whose cleanup is visible to the caller.',
2772
+ source: 'lookup',
2773
+ lookup: 'session',
2774
+ codec: {
2775
+ mode: 'strict',
2776
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2777
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0$schema,
2778
+ jsonSchema: {"type":"string"},
2779
+ },
2780
+ strictCodec: {
2781
+ mode: 'strict',
2782
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
2783
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_0_strict$schema,
2784
+ jsonSchema: {"type":"string"},
2785
+ },
2786
+ },
2787
+ {
2788
+ name: 'revision',
2789
+ description: 'null reads now; a matching revision waits for completion.',
2790
+ source: 'json',
2791
+ codec: {
2792
+ mode: 'strict',
2793
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/worktreeCleanup:revision',
2794
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1$schema,
2795
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"number"}]},
2796
+ },
2797
+ strictCodec: {
2798
+ mode: 'strict',
2799
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/worktreeCleanup:revision',
2800
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_parameter_1_strict$schema,
2801
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"number"}]},
2802
+ },
2803
+ },
2804
+ ],
2805
+ result: {
2806
+ mode: 'strict',
2807
+ typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/worktreeCleanup:result',
2808
+ create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_worktreeCleanup_result$schema,
2809
+ description: 'the cleanup state, or null without a worktree service, an attempt, or a current revision.',
2810
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"revision":{"type":"number","description":"Monotonic attempt number within this Host lifetime; a Remote waits on a specific one."},"status":{"type":"string","enum":["failed","retained","scheduled","removed"],"description":"`scheduled` until the background inspection ends; `retained` when a use, policy, or Git state keeps the checkout; `removed` after `git worktree remove`; `failed` when removal threw and may have left a partial directory."}},"required":["revision","status"],"additionalProperties":true}]},
2811
+ },
2812
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":210,"column":9},
1534
2813
  },
1535
2814
  },
1536
2815
  }, z)
@@ -1565,6 +2844,13 @@ export const TYPERT = {
1565
2844
  "summary": "Stream the last known state of every change request that a listed Session the caller may read binds: the stored states first, then each state a poll changes or a new binding reveals.",
1566
2845
  "jsDoc": "/**\n * Stream the last known state of every change request that a listed\n * Session the caller may read binds: the stored states first, then each\n * state a poll changes or a new binding reveals. Listing reads no Session\n * log: loaded Sessions report their bindings, others the cached Session\n * summary, and a Session without one shows nothing until it is opened.\n * Closed requests are polled at the idle cadence so reopening is observed. The\n * stream ends when `signal` aborts or the Remote stops.\n * @param signal - ends the stream.\n * @returns frames in publication order.\n * @throws when the Host lacks the Session query, projection cache, storage, or Session store service.\n */"
1567
2846
  },
2847
+ {
2848
+ "kind": "method",
2849
+ "name": "worktreeCleanup",
2850
+ "signature": "@Remote async worktreeCleanup(session: Session, revision: number | null): Promise<WorktreeCleanup | null>",
2851
+ "summary": "Read or await the worktree service's archive cleanup of the Session's checkout.",
2852
+ "jsDoc": "/**\n * Read or await the worktree service's archive cleanup of the Session's checkout.\n * @param session - Session whose cleanup is visible to the caller.\n * @param revision - null reads now; a matching revision waits for completion.\n * @returns the cleanup state, or null without a worktree service, an attempt, or a current revision.\n */"
2853
+ },
1568
2854
  {
1569
2855
  "kind": "method",
1570
2856
  "name": "branches",
@@ -1572,6 +2858,13 @@ export const TYPERT = {
1572
2858
  "summary": "List the local branches that can start a worktree of the Session's current checkout.",
1573
2859
  "jsDoc": "/**\n * List the local branches that can start a worktree of the Session's current checkout.\n * @param session - Session whose current directory is listed.\n * @param signal - request cancellation.\n * @returns the checked-out branch and at most `maxBranches` local branches, the checked-out one first.\n * @throws when the current directory is not inside a checkout or Git fails.\n */"
1574
2860
  },
2861
+ {
2862
+ "kind": "method",
2863
+ "name": "diffBases",
2864
+ "signature": "@Remote async diffBases(session: Session, query: string, signal: AbortSignal): Promise<ForgeBaseBranches>",
2865
+ "summary": "List the branches the `branch` scope of the Session's current checkout can compare with.",
2866
+ "jsDoc": "/**\n * List the branches the `branch` scope of the Session's current checkout can compare with.\n * @param session - Session whose checkout is read.\n * @param query - text the branch names must contain, ignoring case; empty for every branch.\n * @param signal - request cancellation.\n * @returns the automatic fork point and at most `maxBranches` remote-tracking and local branches each,\n * most recently committed first, without the checked-out branch.\n * @throws `forgePanel/not-a-checkout` outside a checkout; the Git error when Git fails or the listed refs exceed `maxDiffBytes`.\n */"
2867
+ },
1575
2868
  {
1576
2869
  "kind": "method",
1577
2870
  "name": "track",
@@ -1598,14 +2891,21 @@ export const TYPERT = {
1598
2891
  "name": "localDiff",
1599
2892
  "signature": "@Remote async localDiff(session: Session, scope: ForgeLocalScope, signal: AbortSignal): Promise<ForgeLocalDiff>",
1600
2893
  "summary": "Read the changes one scope covers in the checkout of the Session's current directory, with Git using the Session's sandbox policy.",
1601
- "jsDoc": "/**\n * Read the changes one scope covers in the checkout of the Session's\n * current directory, with Git using the Session's sandbox policy.\n * @param session - Session whose checkout is read.\n * @param scope - which changes to read.\n * @param signal - request cancellation.\n * @returns the files, the base of the `branch` scope, and the untracked files left out.\n * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/no-fork-point` for the `branch`\n * scope of a checkout without one; `forgePanel/filter-config-failed` when filter configuration cannot be read\n * completely, before any comparison; `forgePanel/diff-too-large` over `maxDiffBytes`; the Git error when Git fails.\n */"
2894
+ "jsDoc": "/**\n * Read the changes one scope covers in the checkout of the Session's\n * current directory, with Git using the Session's sandbox policy.\n * @param session - Session whose checkout is read.\n * @param scope - which changes to read.\n * @param signal - request cancellation.\n * @returns the files, the base of the `branch` scope, and the untracked files left out.\n * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/base-missing` when the base branch\n * chosen for the `branch` scope does not exist; `forgePanel/no-fork-point` for the `branch` scope without\n * a fork point; `forgePanel/commits-missing` when chosen commits are not between the fork point and HEAD in order;\n * `forgePanel/commits-not-linear` when a chosen commit's first parent is not the commit listed before it;\n * `forgePanel/filter-config-failed` when filter configuration cannot be read completely, before\n * any comparison; `forgePanel/diff-too-large` over `maxDiffBytes`; the Git error when Git fails.\n */"
2895
+ },
2896
+ {
2897
+ "kind": "method",
2898
+ "name": "localCommits",
2899
+ "signature": "@Remote async localCommits(session: Session, base: string | null, signal: AbortSignal): Promise<ForgeLocalCommits>",
2900
+ "summary": "List the commits of the `branch` scope of the Session's current checkout, which the changes view can show one or several of instead of the whole scope.",
2901
+ "jsDoc": "/**\n * List the commits of the `branch` scope of the Session's current checkout, which the changes view can show one or\n * several of instead of the whole scope.\n * @param session - Session whose checkout is read.\n * @param base - the base ref of the `branch` scope, or null for its automatic fork point.\n * @param signal - request cancellation.\n * @returns the newest `maxCommits` commits between the fork point and HEAD, oldest first, and HEAD's commit.\n * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/base-missing` when the base branch does not\n * exist; `forgePanel/no-fork-point` without a fork point; the Git error when Git fails or the listing exceeds `maxDiffBytes`.\n */"
1602
2902
  },
1603
2903
  {
1604
2904
  "kind": "method",
1605
2905
  "name": "localText",
1606
2906
  "signature": "@Remote async localText(session: Session, scope: ForgeLocalScope, path: string, signal: AbortSignal): Promise<string>",
1607
- "summary": "Read the new side of one changed file in a scope, which supplies the unchanged lines between its hunks: the index for `staged`, else the working tree.",
1608
- "jsDoc": "/**\n * Read the new side of one changed file in a scope, which supplies the\n * unchanged lines between its hunks: the index for `staged`, else the working tree.\n * @param session - Session whose checkout is read.\n * @param scope - the scope the diff was read in.\n * @param path - path relative to the checkout's top-level directory, as the diff names it.\n * @param signal - request cancellation.\n * @returns the text.\n * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/diff-too-large` over `maxDiffBytes`;\n * an error for a path outside the checkout, binary content, or a failed read.\n */"
2907
+ "summary": "Read the new side of one changed file in a scope, which supplies the unchanged lines between its hunks: the index for `staged`, the last chosen commit for chosen commits of the `branch` scope, else the working tree.",
2908
+ "jsDoc": "/**\n * Read the new side of one changed file in a scope, which supplies the\n * unchanged lines between its hunks: the index for `staged`, the last chosen commit for chosen commits of\n * the `branch` scope, else the working tree.\n * @param session - Session whose checkout is read.\n * @param scope - the scope the diff was read in.\n * @param path - path relative to the checkout's top-level directory, as the diff names it.\n * @param signal - request cancellation.\n * @returns the text.\n * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/diff-too-large` over `maxDiffBytes`;\n * `forgePanel/commits-missing` for a chosen commit that is not a full object name; an error for a path outside\n * the checkout, binary content, or a failed read.\n */"
1609
2909
  },
1610
2910
  {
1611
2911
  "kind": "method",
@@ -1614,12 +2914,19 @@ export const TYPERT = {
1614
2914
  "summary": "Load complete checks for the change request whose list the user opened.",
1615
2915
  "jsDoc": "/**\n * Load complete checks for the change request whose list the user opened.\n * @param session - Session retaining the visible binding.\n * @param url - binding URL.\n * @param headSha - commit displayed by the card; a different head rejects the result.\n * @param signal - cancellation when the list closes.\n * @returns the complete snapshot at the displayed head.\n * @throws `forgePanel/not-bound` for an invisible binding, `forgePanel/stale-head` for a moved head,\n * or `forgePanel/checks-failed` when the provider cannot complete the read.\n */"
1616
2916
  },
2917
+ {
2918
+ "kind": "method",
2919
+ "name": "changeRequestCommits",
2920
+ "signature": "@Remote async changeRequestCommits(session: Session, url: string, signal: AbortSignal): Promise<ForgeCommitList | null>",
2921
+ "summary": "List the commits of a change request of a Session at its current head, which the changes view can show one or several of instead of the whole change request.",
2922
+ "jsDoc": "/**\n * List the commits of a change request of a Session at its current head, which the changes view can show one or\n * several of instead of the whole change request.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param signal - request cancellation.\n * @returns the commits oldest first with the head they were read at, or null when the provider does not read commits.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/diff-failed` when the host does not list them.\n */"
2923
+ },
1617
2924
  {
1618
2925
  "kind": "method",
1619
2926
  "name": "changeRequestDiff",
1620
- "signature": "@Remote async changeRequestDiff(session: Session, url: string, signal: AbortSignal): Promise<ForgeChangeRequestDiff>",
1621
- "summary": "Read the changes of a change request of a Session as its code host computes them, at the head commit of its latest status.",
1622
- "jsDoc": "/**\n * Read the changes of a change request of a Session as its code host\n * computes them, at the head commit of its latest status. A patch already\n * read at the same head commit and base branch is reused from memory, for\n * any Session, until `maxCachedDiffBytes` evicts it.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param signal - request cancellation.\n * @returns the files, the head commit, each file's web page, and the commits the checkout has beyond the head.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/diff-too-large` when the host or its provider refuses the diff over a size limit;\n * `forgePanel/diff-failed` before its status was read and when the host does not provide the diff otherwise.\n */"
2927
+ "signature": "@Remote async changeRequestDiff( session: Session, url: string, commits: ForgeCommitRange | null, signal: AbortSignal, ): Promise<ForgeChangeRequestDiff>",
2928
+ "summary": "Read the changes of a change request of a Session as its code host computes them, with each file's layer following the root `.gitattributes` of the commit the diff ends at.",
2929
+ "jsDoc": "/**\n * Read the changes of a change request of a Session as its code host\n * computes them, with each file's layer following the root `.gitattributes`\n * of the commit the diff ends at. Without `commits` the diff covers the change\n * request at the head commit of its latest status; a patch already read at the\n * same head commit and base branch is reused from memory with its attributes, for\n * any Session, until `maxCachedDiffBytes` evicts it. With `commits`, it covers those\n * commits, from the first one's first parent to the last, and is read every time.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param commits - consecutive commits of the change request, or null for all of it.\n * @param signal - request cancellation.\n * @returns the files, the commit they end at, each file's web page, and the commits the checkout has beyond the head.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/commits-missing` when chosen commits are not among the change request's commits in order;\n * `forgePanel/commits-not-linear` when a chosen commit's first parent is not the commit listed before it;\n * `forgePanel/stale-head` without `commits` when the head moved past the latest status, which is then polled again;\n * `forgePanel/diff-too-large` when the host or its provider refuses the diff over a size limit;\n * `forgePanel/diff-failed` before its status was read, for a first chosen commit without a parent, and when the host\n * does not provide the commits, the diff, or an existing `.gitattributes` otherwise.\n */"
1623
2930
  },
1624
2931
  {
1625
2932
  "kind": "method",
@@ -1628,12 +2935,40 @@ export const TYPERT = {
1628
2935
  "summary": "Read one file of a change request's repository at a commit, which supplies the unchanged lines between the hunks of its diff.",
1629
2936
  "jsDoc": "/**\n * Read one file of a change request's repository at a commit, which\n * supplies the unchanged lines between the hunks of its diff.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param commit - commit object name, the head commit of the diff.\n * @param path - path relative to the repository root.\n * @param signal - request cancellation.\n * @returns the text.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/diff-too-large` when the host or its provider refuses the file over a size limit;\n * `forgePanel/diff-failed` when the host does not provide the file otherwise.\n */"
1630
2937
  },
2938
+ {
2939
+ "kind": "method",
2940
+ "name": "changeRequestViewed",
2941
+ "signature": "@Remote async changeRequestViewed(session: Session, url: string, headSha: string, signal: AbortSignal): Promise<ForgeViewedFiles | null>",
2942
+ "summary": "Read the signed-in user's viewed marks on the files of a change request of a Session, which the host keeps for the whole change request.",
2943
+ "jsDoc": "/**\n * Read the signed-in user's viewed marks on the files of a change request of a Session, which the host keeps for the\n * whole change request.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param headSha - head commit of the shown diff; marks read at another head are refused.\n * @param signal - request cancellation.\n * @returns the marks at `headSha`, or null when the provider keeps no viewed marks.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/stale-head` when the head moved past `headSha`, which is then polled again; `forgePanel/viewed-failed`\n * when the host does not provide the marks otherwise.\n */"
2944
+ },
2945
+ {
2946
+ "kind": "method",
2947
+ "name": "setFileViewed",
2948
+ "signature": "@Remote async setFileViewed(session: Session, url: string, request: ForgeViewedRequest, signal: AbortSignal): Promise<void>",
2949
+ "summary": "Set or clear the signed-in user's viewed mark on one file of a change request of a Session.",
2950
+ "jsDoc": "/**\n * Set or clear the signed-in user's viewed mark on one file of a change request of a Session.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param request - the file, its mark, and the head commit of the shown diff.\n * @param signal - request cancellation.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/stale-head` when the head moved past `request.headSha`; `forgePanel/action-failed` with the host's\n * reason when the host refuses, cannot be reached, or keeps no viewed marks; `forgePanel/action-unknown` when the host\n * did not confirm whether it saved the mark.\n */"
2951
+ },
2952
+ {
2953
+ "kind": "method",
2954
+ "name": "changeRequestReview",
2955
+ "signature": "@Remote async changeRequestReview(session: Session, url: string, headSha: string, fresh: boolean, signal: AbortSignal): Promise<ForgeReviewData>",
2956
+ "summary": "Read the review threads of a change request of a Session at the head commit of its displayed diff.",
2957
+ "jsDoc": "/**\n * Read the review threads of a change request of a Session at the head commit of its displayed diff. Threads read\n * at the same head commit and update time are reused from memory, for any Session, until they are\n * `reviewRefreshMs` old, `maxCachedReviewBytes` evicts them, or a review write through this panel drops them; a read\n * again after that age, or a `fresh` read, shows threads resolved elsewhere since, which do not change a GitHub pull\n * request's update time.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param headSha - head commit of the displayed diff.\n * @param fresh - whether to read from the host even when threads at this head and update time are kept, as after the\n * reader refreshes the view; the result replaces the kept threads.\n * @param signal - request cancellation.\n * @returns the threads at `headSha`, with `current` positions numbering the files of that diff.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/stale-head` when the latest status or the host names another head, which a host answer polls again;\n * `forgePanel/review-unsupported` when the provider cannot read reviews; `forgePanel/review-failed` before the\n * status was read and when the host does not provide the threads otherwise.\n */"
2958
+ },
1631
2959
  {
1632
2960
  "kind": "method",
1633
2961
  "name": "submitReview",
1634
2962
  "signature": "@Remote async submitReview(session: Session, url: string, request: ForgeReviewRequest, signal: AbortSignal): Promise<ForgeReviewResult>",
1635
2963
  "summary": "Publish a line comment or completed review for a visible Session binding.",
1636
- "jsDoc": "/**\n * Publish a line comment or completed review for a visible Session binding.\n * @param session - Session retaining the change request.\n * @param url - visible binding URL.\n * @param request - reviewed head, ranges, plain text, and explicit review decision.\n * @param signal - request cancellation.\n * @returns confirmed publication or a typed failure; unknown outcomes require reconciliation on the host.\n */"
2964
+ "jsDoc": "/**\n * Publish a line comment or completed review for a visible Session binding. The threads kept for the change request\n * are dropped once the host answers, so the next read shows the comments.\n * @param session - Session retaining the change request.\n * @param url - visible binding URL.\n * @param request - reviewed head, ranges, plain text, and explicit review decision.\n * @param signal - request cancellation.\n * @returns confirmed publication or a typed failure; unknown outcomes require reconciliation on the host.\n */"
2965
+ },
2966
+ {
2967
+ "kind": "method",
2968
+ "name": "changeRequestReviewWrite",
2969
+ "signature": "@Remote async changeRequestReviewWrite( session: Session, url: string, write: ForgeReviewWrite, signal: AbortSignal, ): Promise<ForgeReviewWriteResult>",
2970
+ "summary": "Write to the review threads or the pending review of a change request of a Session while its head is still the head the user saw.",
2971
+ "jsDoc": "/**\n * Write to the review threads or the pending review of a change request of a Session while its head is still the\n * head the user saw. The threads kept for the change request are dropped once the host answers, so the next read\n * shows the write, which a resolve does not show through a GitHub pull request's update time.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param write - the write and the head commit of the threads the user saw.\n * @param signal - request cancellation.\n * @returns whether the host took the write; `stale` once the head moved, which polls the change request again, and\n * `unknown` when the outcome must be checked on the host before the write is tried again.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves; an error\n * for a write without text, a head that is not a commit object name, or an invalid line range.\n */"
1637
2972
  },
1638
2973
  {
1639
2974
  "kind": "method",
@@ -1649,6 +2984,34 @@ export const TYPERT = {
1649
2984
  "summary": "Merge a change request of a Session while its head is still `headSha`; the change request is polled again once the host answers.",
1650
2985
  "jsDoc": "/**\n * Merge a change request of a Session while its head is still `headSha`;\n * the change request is polled again once the host answers.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param method - how the commits enter the base branch.\n * @param headSha - head commit the user confirmed.\n * @param signal - request cancellation.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/stale-head` when the head moved past `headSha`; `forgePanel/action-failed` with the host's\n * reason when the host refuses otherwise or cannot be reached.\n */"
1651
2986
  },
2987
+ {
2988
+ "kind": "method",
2989
+ "name": "rerunChecks",
2990
+ "signature": "@Remote async rerunChecks(session: Session, url: string, request: ForgeRerunRequest, signal: AbortSignal): Promise<void>",
2991
+ "summary": "Rerun the failed checks of a change request of a Session while its head is still the commit whose checks the user saw; the change request is polled again once the host answers.",
2992
+ "jsDoc": "/**\n * Rerun the failed checks of a change request of a Session while its head is still the commit whose checks the user\n * saw; the change request is polled again once the host answers.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param request - the head commit whose checks the user saw.\n * @param signal - request cancellation.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/stale-head` when the head moved past `request.headSha`; `forgePanel/action-failed` with the host's\n * reason when the host refuses, cannot be reached, or reruns no checks; `forgePanel/action-unknown` when the host did\n * not confirm whether it started the rerun.\n */"
2993
+ },
2994
+ {
2995
+ "kind": "method",
2996
+ "name": "requestReviews",
2997
+ "signature": "@Remote async requestReviews( session: Session, url: string, reviewers: readonly Pick<ChangeRequestReviewer, 'kind' | 'login'>[], signal: AbortSignal, ): Promise<void>",
2998
+ "summary": "Request reviews of a change request of a Session from more reviewers; the change request is polled again once the host answers.",
2999
+ "jsDoc": "/**\n * Request reviews of a change request of a Session from more reviewers; the change request is polled again once the\n * host answers.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param reviewers - the reviewers to ask, by kind and login.\n * @param signal - request cancellation.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/action-failed` with the host's reason when the host refuses, cannot be reached, or requests no reviews;\n * `forgePanel/action-unknown` when the host did not confirm whether it requested the reviews.\n */"
3000
+ },
3001
+ {
3002
+ "kind": "method",
3003
+ "name": "reviewerCandidates",
3004
+ "signature": "@Remote async reviewerCandidates(session: Session, url: string, query: string, signal: AbortSignal): Promise<readonly ForgeReviewerCandidate[]>",
3005
+ "summary": "List accounts a review of a change request of a Session can be requested from.",
3006
+ "jsDoc": "/**\n * List accounts a review of a change request of a Session can be requested from.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param query - text the login or name contains; empty for the host's suggestions and first accounts.\n * @param signal - request cancellation.\n * @returns the accounts, the host's suggestions first.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/reviewers-failed` when the host does not list them.\n */"
3007
+ },
3008
+ {
3009
+ "kind": "method",
3010
+ "name": "updateBranch",
3011
+ "signature": "@Remote async updateBranch(session: Session, url: string, method: BranchUpdateMethod, headSha: string, signal: AbortSignal): Promise<void>",
3012
+ "summary": "Bring the base branch's new commits into the head branch of a change request of a Session while its head is still `headSha`; the change request is polled again once the host answers.",
3013
+ "jsDoc": "/**\n * Bring the base branch's new commits into the head branch of a change request of a Session while its head is still\n * `headSha`; the change request is polled again once the host answers.\n * @param session - Session the change request is bound to.\n * @param url - binding URL of the change request.\n * @param method - merge commit or rebase.\n * @param headSha - head commit the user confirmed.\n * @param signal - request cancellation.\n * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;\n * `forgePanel/stale-head` when the head moved past `headSha`; `forgePanel/action-failed` with the host's reason when\n * the host refuses, cannot be reached, or updates no branches; `forgePanel/action-unknown` when the host did not\n * confirm whether it started the update.\n */"
3014
+ },
1652
3015
  {
1653
3016
  "kind": "method",
1654
3017
  "name": "requestWorktree",
@@ -1745,6 +3108,10 @@ export const TYPERT = {
1745
3108
  "name": "BindingOrigin",
1746
3109
  "declaration": "export type BindingOrigin = 'created' | 'referenced' | 'discovered' | 'tracked';"
1747
3110
  },
3111
+ {
3112
+ "name": "BranchUpdateMethod",
3113
+ "declaration": "export type BranchUpdateMethod = 'merge' | 'rebase';"
3114
+ },
1748
3115
  {
1749
3116
  "name": "Branded",
1750
3117
  "declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
@@ -1755,7 +3122,11 @@ export const TYPERT = {
1755
3122
  },
1756
3123
  {
1757
3124
  "name": "ChangeRequestCheck",
1758
- "declaration": "export interface ChangeRequestCheck {\n readonly name: string;\n readonly state: CheckState;\n readonly url: string | null;\n readonly workflow: string | null;\n readonly startedAt: string | null;\n readonly completedAt: string | null;\n}"
3125
+ "declaration": "export interface ChangeRequestCheck {\n readonly name: string;\n readonly state: CheckState;\n readonly url: string | null;\n readonly workflow: string | null;\n readonly startedAt: string | null;\n readonly completedAt: string | null;\n readonly rerun: ForgeCheckId | null;\n}"
3126
+ },
3127
+ {
3128
+ "name": "ChangeRequestIssue",
3129
+ "declaration": "export interface ChangeRequestIssue {\n readonly repository: ForgeRepository;\n readonly number: number;\n readonly title: string;\n readonly state: 'open' | 'closed';\n readonly url: string;\n}"
1759
3130
  },
1760
3131
  {
1761
3132
  "name": "ChangeRequestKey",
@@ -1765,9 +3136,13 @@ export const TYPERT = {
1765
3136
  "name": "ChangeRequestRef",
1766
3137
  "declaration": "export interface ChangeRequestRef {\n readonly repository: ForgeRepository;\n readonly number: number;\n}"
1767
3138
  },
3139
+ {
3140
+ "name": "ChangeRequestReviewer",
3141
+ "declaration": "export interface ChangeRequestReviewer {\n readonly kind: 'user' | 'bot' | 'team';\n readonly login: string;\n readonly avatarUrl: string | null;\n readonly requested: boolean;\n readonly codeOwner: boolean;\n readonly verdict: ReviewVerdict | null;\n readonly reviewedSha: string | null;\n}"
3142
+ },
1768
3143
  {
1769
3144
  "name": "ChangeRequestSnapshot",
1770
- "declaration": "export interface ChangeRequestSnapshot {\n readonly ref: ChangeRequestRef;\n readonly url: string;\n readonly title: string;\n readonly state: ChangeRequestState;\n readonly draft: boolean;\n readonly author: string | null;\n readonly headBranch: string;\n readonly headSha: string;\n readonly baseBranch: string;\n readonly additions: number;\n readonly deletions: number;\n readonly mergeability: Mergeability;\n readonly mergeReady: boolean;\n readonly mergeMethods: readonly MergeMethod[];\n readonly reviewDecision: ReviewDecision;\n readonly checks: readonly ChangeRequestCheck[];\n readonly checksRollup: ChecksRollup;\n readonly checksTruncated: boolean;\n readonly unresolvedThreads: number;\n readonly updatedAt: string;\n readonly closedAt: string | null;\n}"
3145
+ "declaration": "export interface ChangeRequestSnapshot {\n readonly ref: ChangeRequestRef;\n readonly url: string;\n readonly title: string;\n readonly state: ChangeRequestState;\n readonly draft: boolean;\n readonly author: string | null;\n readonly headBranch: string;\n readonly headSha: string;\n readonly baseBranch: string;\n readonly baseSha?: string;\n readonly additions: number;\n readonly deletions: number;\n readonly mergeability: Mergeability;\n readonly mergeReady: boolean;\n readonly mergeMethods: readonly MergeMethod[];\n readonly branchUpdates: readonly BranchUpdateMethod[];\n readonly reviewDecision: ReviewDecision;\n readonly reviewers: readonly ChangeRequestReviewer[];\n readonly reviewersTruncated: boolean;\n readonly canRequestReviews: boolean;\n readonly checks: readonly ChangeRequestCheck[];\n readonly checksRollup: ChecksRollup;\n readonly checksTruncated: boolean;\n readonly canRerunChecks: boolean;\n readonly unresolvedThreads: number;\n readonly threadsTruncated: boolean;\n readonly closingIssues: readonly ChangeRequestIssue[];\n readonly closingIssuesTruncated: boolean;\n readonly updatedAt: string;\n readonly closedAt: string | null;\n}"
1771
3146
  },
1772
3147
  {
1773
3148
  "name": "ChangeRequestState",
@@ -1869,6 +3244,22 @@ export const TYPERT = {
1869
3244
  "name": "FinishReasonMap",
1870
3245
  "declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
1871
3246
  },
3247
+ {
3248
+ "name": "ForgeAnchor",
3249
+ "declaration": "export interface ForgeAnchor {\n readonly commit: string;\n readonly startLine: number;\n readonly endLine: number;\n}"
3250
+ },
3251
+ {
3252
+ "name": "ForgeAutomaticBase",
3253
+ "declaration": "export interface ForgeAutomaticBase {\n readonly name: string;\n readonly worktree: boolean;\n}"
3254
+ },
3255
+ {
3256
+ "name": "ForgeBaseBranch",
3257
+ "declaration": "export interface ForgeBaseBranch {\n readonly ref: string;\n readonly name: string;\n}"
3258
+ },
3259
+ {
3260
+ "name": "ForgeBaseBranches",
3261
+ "declaration": "export interface ForgeBaseBranches {\n readonly automatic: ForgeAutomaticBase | null;\n readonly remote: readonly ForgeBaseBranch[];\n readonly local: readonly ForgeBaseBranch[];\n}"
3262
+ },
1872
3263
  {
1873
3264
  "name": "ForgeBranches",
1874
3265
  "declaration": "export interface ForgeBranches {\n readonly current: string | null;\n readonly branches: readonly string[];\n}"
@@ -1889,6 +3280,10 @@ export const TYPERT = {
1889
3280
  "name": "ForgeChangeRequestStatesFrame",
1890
3281
  "declaration": "export type ForgeChangeRequestStatesFrame = { readonly type: 'baseline'; readonly states: readonly ForgeChangeRequestListState[]; } | { readonly type: 'changed'; readonly states: readonly ForgeChangeRequestListState[]; };"
1891
3282
  },
3283
+ {
3284
+ "name": "ForgeCheckId",
3285
+ "declaration": "export type ForgeCheckId = Branded<'ForgeCheckId'>;"
3286
+ },
1892
3287
  {
1893
3288
  "name": "ForgeCheckout",
1894
3289
  "declaration": "export interface ForgeCheckout {\n readonly root: string;\n readonly branch: string | null;\n readonly linked: boolean;\n readonly commit: string | null;\n}"
@@ -1897,9 +3292,29 @@ export const TYPERT = {
1897
3292
  "name": "ForgeCheckoutState",
1898
3293
  "declaration": "export type ForgeCheckoutState = { readonly state: 'pending'; } | { readonly state: 'none'; } | { readonly state: 'failed'; readonly message: string; } | { readonly state: 'ready'; readonly checkout: ForgeCheckout; };"
1899
3294
  },
3295
+ {
3296
+ "name": "ForgeCommentAuthor",
3297
+ "declaration": "export interface ForgeCommentAuthor {\n readonly login: string;\n readonly avatarUrl: string | null;\n readonly bot: boolean;\n}"
3298
+ },
3299
+ {
3300
+ "name": "ForgeCommentId",
3301
+ "declaration": "export type ForgeCommentId = Branded<'ForgeCommentId'>;"
3302
+ },
3303
+ {
3304
+ "name": "ForgeCommit",
3305
+ "declaration": "export interface ForgeCommit {\n readonly sha: string;\n readonly parent: string | null;\n readonly title: string;\n readonly author: string | null;\n readonly authoredAt: string;\n}"
3306
+ },
3307
+ {
3308
+ "name": "ForgeCommitList",
3309
+ "declaration": "export interface ForgeCommitList {\n readonly headSha: string;\n readonly commits: readonly ForgeCommit[];\n readonly truncated: boolean;\n}"
3310
+ },
3311
+ {
3312
+ "name": "ForgeCommitRange",
3313
+ "declaration": "export interface ForgeCommitRange {\n readonly from: string;\n readonly to: string;\n}"
3314
+ },
1900
3315
  {
1901
3316
  "name": "ForgeDiffFile",
1902
- "declaration": "export interface ForgeDiffFile {\n readonly path: string;\n readonly previousPath: string | null;\n readonly status: ForgeDiffStatus;\n readonly binary: boolean;\n readonly oversized: boolean;\n readonly untracked: boolean;\n readonly additions: number;\n readonly deletions: number;\n readonly hunks: readonly ForgeDiffHunk[];\n}"
3317
+ "declaration": "export interface ForgeDiffFile {\n readonly path: string;\n readonly previousPath: string | null;\n readonly status: ForgeDiffStatus;\n readonly binary: boolean;\n readonly oversized: boolean;\n readonly untracked: boolean;\n readonly additions: number;\n readonly deletions: number;\n readonly hunks: readonly ForgeDiffHunk[];\n readonly layer: ForgeFileLayer;\n readonly digest: string;\n}"
1903
3318
  },
1904
3319
  {
1905
3320
  "name": "ForgeDiffHunk",
@@ -1911,7 +3326,11 @@ export const TYPERT = {
1911
3326
  },
1912
3327
  {
1913
3328
  "name": "ForgeFailure",
1914
- "declaration": "export interface ForgeFailure {\n readonly code: 'not-found' | 'unauthenticated' | 'too-large' | 'unavailable';\n readonly message: string;\n}"
3329
+ "declaration": "export interface ForgeFailure {\n readonly code: 'not-found' | 'unauthenticated' | 'too-large' | 'stale' | 'unsupported' | 'unavailable';\n readonly message: string;\n}"
3330
+ },
3331
+ {
3332
+ "name": "ForgeFileLayer",
3333
+ "declaration": "export type ForgeFileLayer = 'interface' | 'implementation' | 'test';"
1915
3334
  },
1916
3335
  {
1917
3336
  "name": "ForgeLineComment",
@@ -1921,13 +3340,17 @@ export const TYPERT = {
1921
3340
  "name": "ForgeLocalChanges",
1922
3341
  "declaration": "export interface ForgeLocalChanges {\n readonly base: string;\n readonly files: readonly ForgeChangedFile[];\n}"
1923
3342
  },
3343
+ {
3344
+ "name": "ForgeLocalCommits",
3345
+ "declaration": "export interface ForgeLocalCommits {\n readonly headSha: string;\n readonly commits: readonly ForgeCommit[];\n readonly truncated: boolean;\n}"
3346
+ },
1924
3347
  {
1925
3348
  "name": "ForgeLocalDiff",
1926
3349
  "declaration": "export interface ForgeLocalDiff {\n readonly base: string | null;\n readonly files: readonly ForgeDiffFile[];\n readonly omitted: number;\n}"
1927
3350
  },
1928
3351
  {
1929
3352
  "name": "ForgeLocalScope",
1930
- "declaration": "export type ForgeLocalScope = { readonly kind: 'branch'; } | { readonly kind: 'uncommitted'; } | { readonly kind: 'unstaged'; } | { readonly kind: 'staged'; };"
3353
+ "declaration": "export type ForgeLocalScope = { readonly kind: 'branch'; readonly base: string | null; readonly commits: ForgeCommitRange | null; } | { readonly kind: 'uncommitted'; } | { readonly kind: 'unstaged'; } | { readonly kind: 'staged'; };"
1931
3354
  },
1932
3355
  {
1933
3356
  "name": "ForgeMissingWorktree",
@@ -1945,6 +3368,10 @@ export const TYPERT = {
1945
3368
  "name": "ForgePanelWorktree",
1946
3369
  "declaration": "export interface ForgePanelWorktree {\n readonly editable: boolean;\n readonly blocker: ForgeWorktreeBlocker | null;\n readonly request: ForgeWorktreeRequest | null;\n readonly created: ForgeSessionWorktree | null;\n readonly creation: ForgeWorktreeCreation | null;\n readonly failure: ForgeWorktreeFailure | null;\n readonly missing: ForgeMissingWorktree | null;\n readonly restoration: ForgeWorktreeRestoration | null;\n readonly waiting: ForgeWorktreeWaiting | null;\n}"
1947
3370
  },
3371
+ {
3372
+ "name": "ForgePendingReview",
3373
+ "declaration": "export interface ForgePendingReview {\n readonly id: ForgeReviewId;\n readonly comments: number;\n}"
3374
+ },
1948
3375
  {
1949
3376
  "name": "ForgeReadiness",
1950
3377
  "declaration": "export interface ForgeReadiness {\n readonly state: 'ready' | 'unauthenticated' | 'unavailable';\n readonly message: string | null;\n}"
@@ -1953,18 +3380,70 @@ export const TYPERT = {
1953
3380
  "name": "ForgeRepository",
1954
3381
  "declaration": "export interface ForgeRepository {\n readonly forge: string;\n readonly host: string;\n readonly owner: string;\n readonly name: string;\n}"
1955
3382
  },
3383
+ {
3384
+ "name": "ForgeRerunRequest",
3385
+ "declaration": "export interface ForgeRerunRequest {\n readonly headSha: string;\n}"
3386
+ },
3387
+ {
3388
+ "name": "ForgeReviewComment",
3389
+ "declaration": "export interface ForgeReviewComment {\n readonly id: ForgeCommentId;\n readonly author: ForgeCommentAuthor | null;\n readonly body: string;\n readonly createdAt: string;\n readonly pending: boolean;\n readonly url: string | null;\n readonly viewerCanEdit: boolean;\n readonly viewerCanDelete: boolean;\n}"
3390
+ },
3391
+ {
3392
+ "name": "ForgeReviewData",
3393
+ "declaration": "export interface ForgeReviewData {\n readonly headSha: string;\n readonly viewer: string | null;\n readonly threads: readonly ForgeReviewThread[];\n readonly truncated: boolean;\n readonly pendingReview: ForgePendingReview | null;\n readonly viewerCanReview: boolean;\n}"
3394
+ },
3395
+ {
3396
+ "name": "ForgeReviewerCandidate",
3397
+ "declaration": "export interface ForgeReviewerCandidate {\n readonly login: string;\n readonly name: string | null;\n readonly avatarUrl: string | null;\n readonly suggested: boolean;\n}"
3398
+ },
3399
+ {
3400
+ "name": "ForgeReviewEvent",
3401
+ "declaration": "export type ForgeReviewEvent = 'comment' | 'approve' | 'request-changes';"
3402
+ },
3403
+ {
3404
+ "name": "ForgeReviewId",
3405
+ "declaration": "export type ForgeReviewId = Branded<'ForgeReviewId'>;"
3406
+ },
1956
3407
  {
1957
3408
  "name": "ForgeReviewRequest",
1958
- "declaration": "export type ForgeReviewRequest = { readonly headSha: string; } & ({ readonly kind: 'comment'; readonly comment: ForgeLineComment; } | { readonly kind: 'review'; readonly event: 'comment' | 'approve' | 'request-changes'; readonly body: string; readonly comments: readonly ForgeLineComment[]; });"
3409
+ "declaration": "export type ForgeReviewRequest = { readonly headSha: string; } & ({ readonly kind: 'comment'; readonly comment: ForgeLineComment; } | { readonly kind: 'review'; readonly event: ForgeReviewEvent; readonly body: string; readonly comments: readonly ForgeLineComment[]; });"
1959
3410
  },
1960
3411
  {
1961
3412
  "name": "ForgeReviewResult",
1962
3413
  "declaration": "export type ForgeReviewResult = { readonly ok: true; readonly url: string; } | { readonly ok: false; readonly code: 'unsupported' | 'stale' | 'failed' | 'unknown'; readonly message: string; };"
1963
3414
  },
3415
+ {
3416
+ "name": "ForgeReviewThread",
3417
+ "declaration": "export interface ForgeReviewThread {\n readonly id: ForgeThreadId;\n readonly path: string;\n readonly side: 'L' | 'R';\n readonly subject: 'line' | 'file';\n readonly current: ForgeAnchor | null;\n readonly original: ForgeAnchor | null;\n readonly diffHunk: string | null;\n readonly resolved: boolean;\n readonly viewerCanReply: boolean;\n readonly viewerCanResolve: boolean;\n readonly comments: readonly ForgeReviewComment[];\n}"
3418
+ },
3419
+ {
3420
+ "name": "ForgeReviewWrite",
3421
+ "declaration": "export type ForgeReviewWrite = { readonly headSha: string; } & ({ readonly kind: 'reply'; readonly thread: ForgeThreadId; readonly body: string; readonly pending: boolean; } | { readonly kind: 'resolve'; readonly thread: ForgeThreadId; readonly resolved: boolean; } | { readonly kind: 'edit-comment'; readonly comment: ForgeCommentId; readonly body: string; } | { readonly kind: 'delete-comment'; readonly comment: ForgeCommentId; } | { readonly kind: 'add-pending'; readonly comment: ForgeLineComment; } | { readonly kind: 'submit-pending'; readonly review: ForgeReviewId; readonly event: ForgeReviewEvent; readonly body: string; } | { readonly kind: 'discard-pending'; readonly review: ForgeReviewId; });"
3422
+ },
3423
+ {
3424
+ "name": "ForgeReviewWriteResult",
3425
+ "declaration": "export type ForgeReviewWriteResult = { readonly ok: true; } | { readonly ok: false; readonly code: 'unsupported' | 'stale' | 'failed' | 'unknown'; readonly message: string; };"
3426
+ },
1964
3427
  {
1965
3428
  "name": "ForgeSessionWorktree",
1966
3429
  "declaration": "export interface ForgeSessionWorktree {\n readonly path: string;\n readonly branch: string;\n readonly from: string | null;\n readonly baseCommit: string;\n readonly repositoryRoot: string;\n}"
1967
3430
  },
3431
+ {
3432
+ "name": "ForgeThreadId",
3433
+ "declaration": "export type ForgeThreadId = Branded<'ForgeThreadId'>;"
3434
+ },
3435
+ {
3436
+ "name": "ForgeViewedFiles",
3437
+ "declaration": "export interface ForgeViewedFiles {\n readonly headSha: string;\n readonly files: Readonly<Record<string, ForgeViewedState>>;\n readonly truncated: boolean;\n}"
3438
+ },
3439
+ {
3440
+ "name": "ForgeViewedRequest",
3441
+ "declaration": "export interface ForgeViewedRequest {\n readonly path: string;\n readonly viewed: boolean;\n readonly headSha: string;\n}"
3442
+ },
3443
+ {
3444
+ "name": "ForgeViewedState",
3445
+ "declaration": "export type ForgeViewedState = 'viewed' | 'unviewed' | 'dismissed';"
3446
+ },
1968
3447
  {
1969
3448
  "name": "ForgeWorktreeBlocker",
1970
3449
  "declaration": "export type ForgeWorktreeBlocker = 'not-git' | 'outside-writable-root' | 'read-only';"
@@ -2171,7 +3650,7 @@ export const TYPERT = {
2171
3650
  },
2172
3651
  {
2173
3652
  "name": "MessageSourceMap",
2174
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'tool-registry': { kind: 'tool-registry'; };\n 'action-cards': { kind: 'action-cards'; through: SessionSeq; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n 'team-message': TeamMessageSource;\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
3653
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'tool-registry': { kind: 'tool-registry'; };\n 'action-cards': { kind: 'action-cards'; through: SessionSeq; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'team-message': TeamMessageSource;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'retry-rpc': { kind: 'retry'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'skill-invocation': SkillInvocationSource;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
2175
3654
  },
2176
3655
  {
2177
3656
  "name": "ModelMessageSource",
@@ -2241,6 +3720,10 @@ export const TYPERT = {
2241
3720
  "name": "ReviewDecision",
2242
3721
  "declaration": "export type ReviewDecision = 'approved' | 'changes-requested' | 'review-required' | 'none';"
2243
3722
  },
3723
+ {
3724
+ "name": "ReviewVerdict",
3725
+ "declaration": "export type ReviewVerdict = 'approved' | 'changes-requested' | 'commented' | 'dismissed';"
3726
+ },
2244
3727
  {
2245
3728
  "name": "SandboxMode",
2246
3729
  "declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
@@ -2267,7 +3750,7 @@ export const TYPERT = {
2267
3750
  },
2268
3751
  {
2269
3752
  "name": "Session",
2270
- "declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
3753
+ "declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n get currentBatchPublication(): SessionEvent | undefined;\n append(inputs: readonly SessionEventInput[]): readonly SessionEvent[];\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
2271
3754
  },
2272
3755
  {
2273
3756
  "name": "SessionChangeRequest",
@@ -2277,9 +3760,13 @@ export const TYPERT = {
2277
3760
  "name": "SessionEvent",
2278
3761
  "declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
2279
3762
  },
3763
+ {
3764
+ "name": "SessionEventInput",
3765
+ "declaration": "export type SessionEventInput = { [K in SessionEventType]: readonly [type: K, data: SessionEventMap[K], ...opts: K extends SurfaceEventType ? [opts: SurfaceIntent<K>] : []] }[SessionEventType];"
3766
+ },
2280
3767
  {
2281
3768
  "name": "SessionEventMap",
2282
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'model/selection': ModelSelection;\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'working-directory/change': { cwd: string; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'session-log-deepseek/delivery-accepted': { sessionId: import('@deepseek-ai/dsh-session/types').SessionId; sessionFormatVersion?: number; throughSeq: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
3769
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'model/selection': ModelSelection;\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'agent-preset/selected': { agentPreset: string; };\n 'team/mode': { enabled: boolean; };\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'working-directory/change': { cwd: string; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'session-log-deepseek/delivery-accepted': { sessionId: import('@deepseek-ai/dsh-session/types').SessionId; sessionFormatVersion?: number; throughSeq: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
2283
3770
  },
2284
3771
  {
2285
3772
  "name": "SessionEventType",
@@ -2343,7 +3830,7 @@ export const TYPERT = {
2343
3830
  },
2344
3831
  {
2345
3832
  "name": "SubagentCatalogEvent",
2346
- "declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })) | { readonly version: 2; readonly mode: 'external'; readonly label?: string; });"
3833
+ "declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })) | { readonly version: 2; readonly mode: 'external'; readonly label?: string; } | ({ readonly version: 3; readonly name: string; } & ({ readonly mode: 'continuable'; readonly label: string; } | { readonly mode: 'external'; readonly label?: string; })));"
2347
3834
  },
2348
3835
  {
2349
3836
  "name": "SubagentDescriptorBase",
@@ -2353,9 +3840,21 @@ export const TYPERT = {
2353
3840
  "name": "SubagentDescriptorData",
2354
3841
  "declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
2355
3842
  },
3843
+ {
3844
+ "name": "SubagentResult",
3845
+ "declaration": "export interface SubagentResult {\n readonly output: readonly ContentBlock[];\n readonly structured?: unknown;\n readonly diagnostic?: string;\n readonly stopReason: SubagentStopReason;\n}"
3846
+ },
2356
3847
  {
2357
3848
  "name": "SubagentSettledMessageSource",
2358
- "declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
3849
+ "declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly stopReason?: SubagentResult['stopReason'];\n readonly senderSessionId: SessionId;\n}"
3850
+ },
3851
+ {
3852
+ "name": "SubagentStopReason",
3853
+ "declaration": "export type SubagentStopReason = SubagentStopReasonMap[keyof SubagentStopReasonMap];"
3854
+ },
3855
+ {
3856
+ "name": "SubagentStopReasonMap",
3857
+ "declaration": "export interface SubagentStopReasonMap {\n completed: 'completed';\n aborted: 'aborted';\n error: 'error';\n 'max-tokens': 'max-tokens';\n refusal: 'refusal';\n}"
2359
3858
  },
2360
3859
  {
2361
3860
  "name": "SurfaceEventType",
@@ -2411,7 +3910,7 @@ export const TYPERT = {
2411
3910
  },
2412
3911
  {
2413
3912
  "name": "TeamTaskSnapshot",
2414
- "declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
3913
+ "declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly ownerName?: string;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
2415
3914
  },
2416
3915
  {
2417
3916
  "name": "TeamTaskStatus",
@@ -2492,6 +3991,10 @@ export const TYPERT = {
2492
3991
  {
2493
3992
  "name": "WebhookSourceId",
2494
3993
  "declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
3994
+ },
3995
+ {
3996
+ "name": "WorktreeCleanup",
3997
+ "declaration": "export interface WorktreeCleanup {\n readonly revision: number;\n readonly status: 'scheduled' | 'retained' | 'removed' | 'failed';\n}"
2495
3998
  }
2496
3999
  ]
2497
4000
  }