@deepseek-ai/dsh-experimental-client-ui-forge 0.2.3-alpha.3 → 0.2.3-alpha.4

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 (178) hide show
  1. package/README.i18n.yaml +10 -10
  2. package/README.md +16 -15
  3. package/README.zh.md +16 -15
  4. package/lib/client.js +18 -18
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +67 -18
  7. package/lib/typert.host.js +89 -45
  8. package/lib/typert.remote-client.d.ts +7 -7
  9. package/lib/typert.remote-client.d.ts.map +1 -1
  10. package/lib/typert.remote-client.js +48 -36
  11. package/lib/types/client/BranchPicker.d.ts.map +1 -1
  12. package/lib/types/client/BranchPicker.js.map +1 -1
  13. package/lib/types/client/ChangeRequestCard.d.ts +10 -1
  14. package/lib/types/client/ChangeRequestCard.d.ts.map +1 -1
  15. package/lib/types/client/ChangeRequestCard.js.map +1 -1
  16. package/lib/types/client/ChangeRequestOverview.d.ts +16 -0
  17. package/lib/types/client/ChangeRequestOverview.d.ts.map +1 -1
  18. package/lib/types/client/ChangeRequestOverview.js.map +1 -1
  19. package/lib/types/client/ChangeRequestsSection.d.ts.map +1 -1
  20. package/lib/types/client/ChangeRequestsSection.js.map +1 -1
  21. package/lib/types/client/ChangeStatus.d.ts +41 -0
  22. package/lib/types/client/ChangeStatus.d.ts.map +1 -0
  23. package/lib/types/client/ChangeStatus.js.map +1 -0
  24. package/lib/types/client/ChangedFiles.d.ts.map +1 -1
  25. package/lib/types/client/ChangedFiles.js.map +1 -1
  26. package/lib/types/client/ChangesTab.d.ts +23 -8
  27. package/lib/types/client/ChangesTab.d.ts.map +1 -1
  28. package/lib/types/client/ChangesTab.js.map +1 -1
  29. package/lib/types/client/CommitMenu.d.ts +8 -5
  30. package/lib/types/client/CommitMenu.d.ts.map +1 -1
  31. package/lib/types/client/CommitMenu.js.map +1 -1
  32. package/lib/types/client/CopyCommandButton.d.ts +19 -0
  33. package/lib/types/client/CopyCommandButton.d.ts.map +1 -0
  34. package/lib/types/client/CopyCommandButton.js.map +1 -0
  35. package/lib/types/client/DiffFile.d.ts +20 -3
  36. package/lib/types/client/DiffFile.d.ts.map +1 -1
  37. package/lib/types/client/DiffFile.js.map +1 -1
  38. package/lib/types/client/EnvironmentRows.d.ts.map +1 -1
  39. package/lib/types/client/EnvironmentRows.js.map +1 -1
  40. package/lib/types/client/FileLabel.d.ts +5 -5
  41. package/lib/types/client/FileLabel.d.ts.map +1 -1
  42. package/lib/types/client/FileLabel.js.map +1 -1
  43. package/lib/types/client/HostSettings.d.ts.map +1 -1
  44. package/lib/types/client/HostSettings.js.map +1 -1
  45. package/lib/types/client/LensFilter.d.ts.map +1 -1
  46. package/lib/types/client/LensFilter.js.map +1 -1
  47. package/lib/types/client/ReviewComposer.d.ts.map +1 -1
  48. package/lib/types/client/ReviewComposer.js.map +1 -1
  49. package/lib/types/client/ReviewControls.d.ts.map +1 -1
  50. package/lib/types/client/ReviewControls.js.map +1 -1
  51. package/lib/types/client/ReviewThread.d.ts.map +1 -1
  52. package/lib/types/client/ReviewThread.js.map +1 -1
  53. package/lib/types/client/ReviewThreads.d.ts +17 -2
  54. package/lib/types/client/ReviewThreads.d.ts.map +1 -1
  55. package/lib/types/client/ReviewThreads.js.map +1 -1
  56. package/lib/types/client/SubmitReview.d.ts.map +1 -1
  57. package/lib/types/client/SubmitReview.js.map +1 -1
  58. package/lib/types/client/ThreadList.d.ts.map +1 -1
  59. package/lib/types/client/ThreadList.js.map +1 -1
  60. package/lib/types/client/ViewOptionsMenu.d.ts.map +1 -1
  61. package/lib/types/client/ViewOptionsMenu.js.map +1 -1
  62. package/lib/types/client/WorktreeNameDialog.d.ts.map +1 -1
  63. package/lib/types/client/WorktreeNameDialog.js.map +1 -1
  64. package/lib/types/client/WorktreeProgress.d.ts.map +1 -1
  65. package/lib/types/client/WorktreeProgress.js.map +1 -1
  66. package/lib/types/client/WorktreeSettings.d.ts.map +1 -1
  67. package/lib/types/client/WorktreeSettings.js.map +1 -1
  68. package/lib/types/client/WorktreeToggle.d.ts.map +1 -1
  69. package/lib/types/client/WorktreeToggle.js.map +1 -1
  70. package/lib/types/client/changes-store.d.ts +7 -4
  71. package/lib/types/client/changes-store.d.ts.map +1 -1
  72. package/lib/types/client/changes-store.js.map +1 -1
  73. package/lib/types/client/glyphs.d.ts +14 -1
  74. package/lib/types/client/glyphs.d.ts.map +1 -1
  75. package/lib/types/client/glyphs.js.map +1 -1
  76. package/lib/types/client/index.d.ts +1 -2
  77. package/lib/types/client/index.d.ts.map +1 -1
  78. package/lib/types/client/index.js.map +1 -1
  79. package/lib/types/client/locales.d.ts +5 -4
  80. package/lib/types/client/locales.d.ts.map +1 -1
  81. package/lib/types/client/locales.js.map +1 -1
  82. package/lib/types/client/minute-clock.d.ts +7 -0
  83. package/lib/types/client/minute-clock.d.ts.map +1 -0
  84. package/lib/types/client/minute-clock.js.map +1 -0
  85. package/lib/types/client/mount.d.ts.map +1 -1
  86. package/lib/types/client/mount.js.map +1 -1
  87. package/lib/types/client/review-page/ReviewActivity.d.ts.map +1 -1
  88. package/lib/types/client/review-page/ReviewActivity.js.map +1 -1
  89. package/lib/types/client/review-page/ReviewChat.d.ts.map +1 -1
  90. package/lib/types/client/review-page/ReviewChat.js.map +1 -1
  91. package/lib/types/client/review-page/ReviewDetail.d.ts +4 -1
  92. package/lib/types/client/review-page/ReviewDetail.d.ts.map +1 -1
  93. package/lib/types/client/review-page/ReviewDetail.js.map +1 -1
  94. package/lib/types/client/review-page/ReviewList.d.ts.map +1 -1
  95. package/lib/types/client/review-page/ReviewList.js.map +1 -1
  96. package/lib/types/client/review-page/ReviewPage.d.ts +2 -2
  97. package/lib/types/client/review-page/ReviewPage.d.ts.map +1 -1
  98. package/lib/types/client/review-page/ReviewPage.js.map +1 -1
  99. package/lib/types/client/review-page/ReviewStatus.d.ts +17 -13
  100. package/lib/types/client/review-page/ReviewStatus.d.ts.map +1 -1
  101. package/lib/types/client/review-page/ReviewStatus.js.map +1 -1
  102. package/lib/types/client/review-page/review-store.d.ts +1 -1
  103. package/lib/types/client/review-threads.d.ts +14 -7
  104. package/lib/types/client/review-threads.d.ts.map +1 -1
  105. package/lib/types/client/review-threads.js.map +1 -1
  106. package/lib/types/client/status.d.ts +0 -6
  107. package/lib/types/client/status.d.ts.map +1 -1
  108. package/lib/types/client/status.js.map +1 -1
  109. package/lib/types/client/thread-state.d.ts +2 -2
  110. package/lib/types/client/thread-state.d.ts.map +1 -1
  111. package/lib/types/client/thread-state.js.map +1 -1
  112. package/lib/types/client/toolbar-fold.d.ts +16 -6
  113. package/lib/types/client/toolbar-fold.d.ts.map +1 -1
  114. package/lib/types/client/toolbar-fold.js.map +1 -1
  115. package/lib/types/index.d.ts +25 -12
  116. package/lib/types/index.d.ts.map +1 -1
  117. package/lib/types/index.js.map +1 -1
  118. package/lib/types/panel.js.map +1 -1
  119. package/lib/types/types.d.ts +22 -5
  120. package/lib/types/types.d.ts.map +1 -1
  121. package/lib/types/worktree.js.map +1 -1
  122. package/package.json +60 -58
  123. package/src/client/BaseMenu.module.css +6 -3
  124. package/src/client/BranchPicker.tsx +28 -19
  125. package/src/client/ChangeRequestCard.tsx +71 -41
  126. package/src/client/ChangeRequestOverview.tsx +174 -74
  127. package/src/client/ChangeRequestsSection.tsx +33 -8
  128. package/src/client/ChangeStatus.module.css +70 -0
  129. package/src/client/ChangeStatus.tsx +104 -0
  130. package/src/client/ChangedFiles.tsx +20 -7
  131. package/src/client/ChangesTab.module.css +89 -20
  132. package/src/client/ChangesTab.tsx +332 -134
  133. package/src/client/CommitMenu.tsx +77 -38
  134. package/src/client/CopyCommandButton.tsx +25 -0
  135. package/src/client/DiffFile.tsx +83 -21
  136. package/src/client/EnvironmentRows.tsx +13 -11
  137. package/src/client/FileLabel.module.css +16 -18
  138. package/src/client/FileLabel.tsx +15 -31
  139. package/src/client/Forge.module.css +3 -10
  140. package/src/client/HostSettings.tsx +10 -8
  141. package/src/client/LensFilter.tsx +11 -9
  142. package/src/client/ReviewComposer.tsx +29 -17
  143. package/src/client/ReviewControls.tsx +8 -6
  144. package/src/client/ReviewThread.tsx +63 -21
  145. package/src/client/ReviewThreads.tsx +126 -34
  146. package/src/client/SubmitReview.tsx +5 -3
  147. package/src/client/ThreadList.module.css +4 -3
  148. package/src/client/ThreadList.tsx +5 -5
  149. package/src/client/ViewOptionsMenu.tsx +10 -8
  150. package/src/client/WorktreeNameDialog.tsx +15 -11
  151. package/src/client/WorktreeProgress.tsx +11 -9
  152. package/src/client/WorktreeSettings.tsx +4 -3
  153. package/src/client/WorktreeToggle.tsx +65 -35
  154. package/src/client/changes-store.ts +8 -5
  155. package/src/client/glyphs.tsx +23 -1
  156. package/src/client/index.ts +1 -2
  157. package/src/client/locales.ts +40 -32
  158. package/src/client/minute-clock.ts +19 -0
  159. package/src/client/mount.ts +66 -51
  160. package/src/client/review-page/ReviewActivity.tsx +5 -4
  161. package/src/client/review-page/ReviewChat.tsx +46 -17
  162. package/src/client/review-page/ReviewDetail.tsx +62 -31
  163. package/src/client/review-page/ReviewList.tsx +23 -18
  164. package/src/client/review-page/ReviewPage.module.css +81 -10
  165. package/src/client/review-page/ReviewPage.tsx +43 -35
  166. package/src/client/review-page/ReviewStatus.tsx +64 -39
  167. package/src/client/review-threads.ts +23 -11
  168. package/src/client/status.ts +0 -9
  169. package/src/client/thread-state.ts +8 -7
  170. package/src/client/toolbar-fold.ts +59 -14
  171. package/src/index.ts +78 -20
  172. package/src/panel.ts +1 -1
  173. package/src/types.ts +24 -5
  174. package/src/worktree.ts +1 -1
  175. package/lib/types/client/AttentionIndicator.d.ts +0 -22
  176. package/lib/types/client/AttentionIndicator.d.ts.map +0 -1
  177. package/lib/types/client/AttentionIndicator.js.map +0 -1
  178. package/src/client/AttentionIndicator.tsx +0 -37
@@ -112,10 +112,12 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_p
112
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
113
  'from': z.string().readonly().describe('First, oldest commit shown.'),
114
114
  'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
115
+ }), z.object({
116
+ 'upTo': z.string().readonly().describe('Full object name of the commit the changes end at.'),
115
117
  })]))
116
118
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_result$schema$value
117
119
  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({
118
- 'headSha': z.string().readonly().describe('Commit whose new side the diff describes: the head, or the last chosen commit.'),
120
+ 'headSha': z.string().readonly().describe('Commit whose new side the diff describes: the head, the last chosen commit, or the commit the changes go up to.'),
119
121
  'files': z.array(z.object({
120
122
  'path': z.string().readonly().describe('Path relative to the repository root after the change, or before it for a deleted file.'),
121
123
  'previousPath': z.union([z.literal(null), z.string()]).readonly().describe('Path before a rename, else null.'),
@@ -327,8 +329,10 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changesLens_param
327
329
  'commits': z.union([z.literal(null), z.object({
328
330
  'from': z.string().readonly().describe('First, oldest commit shown.'),
329
331
  'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
332
+ }), z.object({
333
+ 'upTo': z.string().readonly().describe('Full object name of the commit the changes end at.'),
330
334
  })]).readonly(),
331
- })]).readonly().describe('The view\'s source: local changes in a scope, or a binding URL with its chosen commits.'),
335
+ })]).readonly().describe('The view\'s source: local changes in a scope, or a binding URL with its chosen commits or the commit its changes go up to.'),
332
336
  'version': z.string().readonly().describe('`lensVersion` of the files the view shows; files read since with another version refuse the request.'),
333
337
  'lens': z.string().readonly().describe('Identity of the registered lens.'),
334
338
  }))
@@ -1228,10 +1232,12 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_paramete
1228
1232
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_parameter_1$schema$value ??= z.union([z.literal(null), z.object({
1229
1233
  'from': z.string().readonly().describe('First, oldest commit shown.'),
1230
1234
  'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
1235
+ }), z.object({
1236
+ 'upTo': z.string().readonly().describe('Full object name of the commit the changes end at.'),
1231
1237
  })]))
1232
1238
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_result$schema$value
1233
1239
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_result$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_result$schema$value ??= z.object({
1234
- 'headSha': z.string().readonly().describe('Commit whose new side the diff describes: the head, or the last chosen commit.'),
1240
+ 'headSha': z.string().readonly().describe('Commit whose new side the diff describes: the head, the last chosen commit, or the commit the changes go up to.'),
1235
1241
  'files': z.array(z.object({
1236
1242
  'path': z.string().readonly().describe('Path relative to the repository root after the change, or before it for a deleted file.'),
1237
1243
  'previousPath': z.union([z.literal(null), z.string()]).readonly().describe('Path before a rename, else null.'),
@@ -1789,6 +1795,8 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_p
1789
1795
  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({
1790
1796
  'from': z.string().readonly().describe('First, oldest commit shown.'),
1791
1797
  'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
1798
+ }), z.strictObject({
1799
+ 'upTo': z.string().readonly().describe('Full object name of the commit the changes end at.'),
1792
1800
  })]))
1793
1801
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestReview_parameter_0_strict$schema$value
1794
1802
  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())
@@ -1890,8 +1898,10 @@ const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changesLens_param
1890
1898
  'commits': z.union([z.literal(null), z.strictObject({
1891
1899
  'from': z.string().readonly().describe('First, oldest commit shown.'),
1892
1900
  'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
1901
+ }), z.strictObject({
1902
+ 'upTo': z.string().readonly().describe('Full object name of the commit the changes end at.'),
1893
1903
  })]).readonly(),
1894
- })]).readonly().describe('The view\'s source: local changes in a scope, or a binding URL with its chosen commits.'),
1904
+ })]).readonly().describe('The view\'s source: local changes in a scope, or a binding URL with its chosen commits or the commit its changes go up to.'),
1895
1905
  'version': z.string().readonly().describe('`lensVersion` of the files the view shows; files read since with another version refuse the request.'),
1896
1906
  'lens': z.string().readonly().describe('Identity of the registered lens.'),
1897
1907
  }))
@@ -2051,6 +2061,8 @@ let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_paramete
2051
2061
  const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_parameter_1_strict$schema$value ??= z.union([z.literal(null), z.strictObject({
2052
2062
  'from': z.string().readonly().describe('First, oldest commit shown.'),
2053
2063
  'to': z.string().readonly().describe('Last, newest commit shown; equal to `from` for one commit.'),
2064
+ }), z.strictObject({
2065
+ 'upTo': z.string().readonly().describe('Full object name of the commit the changes end at.'),
2054
2066
  })]))
2055
2067
  let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewerCandidates_parameter_0_strict$schema$value
2056
2068
  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())
@@ -2317,7 +2329,7 @@ const $remote = createTypertRemoteInfo({
2317
2329
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_result$schema,
2318
2330
  jsonSchemaError: 'typert tool schema: unsupported void value',
2319
2331
  },
2320
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1398,"column":9},
2332
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1403,"column":9},
2321
2333
  },
2322
2334
  'forgePanel/changeRequestChecks': {
2323
2335
  service: 'forgePanel',
@@ -2442,7 +2454,7 @@ const $remote = createTypertRemoteInfo({
2442
2454
  },
2443
2455
  'forgePanel/changeRequestDiff': {
2444
2456
  service: 'forgePanel',
2445
- 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.',
2457
+ 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 consecutive `commits`, it covers those commits, from the first one\'s first parent to the last; with `commits` up to one commit, it covers the change request as that commit ended it, from the merge base of the status\'s base commit with that commit, which the host reads by name whether or not the change request still lists it. Either is read every time.',
2446
2458
  invocation: { kind: 'direct' },
2447
2459
  parameters: [
2448
2460
  {
@@ -2483,19 +2495,19 @@ const $remote = createTypertRemoteInfo({
2483
2495
  },
2484
2496
  {
2485
2497
  name: 'commits',
2486
- description: 'consecutive commits of the change request, or null for all of it.',
2498
+ description: 'consecutive commits of the change request, the commit its changes go up to, or null for all of it.',
2487
2499
  source: 'json',
2488
2500
  codec: {
2489
2501
  mode: 'strict',
2490
2502
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestDiff:commits',
2491
2503
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2$schema,
2492
- 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}]},
2504
+ jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
2493
2505
  },
2494
2506
  strictCodec: {
2495
2507
  mode: 'strict',
2496
2508
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestDiff:commits',
2497
2509
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_2_strict$schema,
2498
- 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}]},
2510
+ jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
2499
2511
  },
2500
2512
  },
2501
2513
  ],
@@ -2507,7 +2519,7 @@ const $remote = createTypertRemoteInfo({
2507
2519
  description: 'the files, the commit they end at, each file\'s web page, and the commits the checkout has beyond the head.',
2508
2520
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
2509
2521
  },
2510
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1011,"column":9},
2522
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1016,"column":9},
2511
2523
  },
2512
2524
  'forgePanel/changeRequestReview': {
2513
2525
  service: 'forgePanel',
@@ -2593,7 +2605,7 @@ const $remote = createTypertRemoteInfo({
2593
2605
  description: 'the threads at `headSha`, with `current` positions numbering the files of that diff.',
2594
2606
  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 a commit whose file holds the lines as the thread was written on them: the commit the thread was written on, or a later one the host carried the thread to while the lines stayed unchanged; 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."},"reviewEvents":{"type":"array","items":{"type":"string","enum":["comment","approve","request-changes"]},"description":"Decisions the host lets the signed-in user record in a submitted review of this change request, such as only `comment` on their own pull request on GitHub; empty when `viewerCanReview` is false."}},"required":["headSha","viewer","threads","truncated","pendingReview","viewerCanReview","reviewEvents"],"additionalProperties":true},
2595
2607
  },
2596
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1185,"column":9},
2608
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1190,"column":9},
2597
2609
  },
2598
2610
  'forgePanel/changeRequestReviewWrite': {
2599
2611
  service: 'forgePanel',
@@ -2662,7 +2674,7 @@ const $remote = createTypertRemoteInfo({
2662
2674
  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.',
2663
2675
  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}]},
2664
2676
  },
2665
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1219,"column":9},
2677
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1224,"column":9},
2666
2678
  },
2667
2679
  'forgePanel/changeRequestStates': {
2668
2680
  service: 'forgePanel',
@@ -2765,7 +2777,7 @@ const $remote = createTypertRemoteInfo({
2765
2777
  description: 'the text.',
2766
2778
  jsonSchema: {"type":"string"},
2767
2779
  },
2768
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1039,"column":9},
2780
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1044,"column":9},
2769
2781
  },
2770
2782
  'forgePanel/changeRequestViewed': {
2771
2783
  service: 'forgePanel',
@@ -2851,7 +2863,7 @@ const $remote = createTypertRemoteInfo({
2851
2863
  description: 'the marks at `headSha`, or null when the provider keeps no viewed marks.',
2852
2864
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
2853
2865
  },
2854
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1142,"column":9},
2866
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1147,"column":9},
2855
2867
  },
2856
2868
  'forgePanel/changesLens': {
2857
2869
  service: 'forgePanel',
@@ -2886,13 +2898,13 @@ const $remote = createTypertRemoteInfo({
2886
2898
  mode: 'strict',
2887
2899
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLensRequest',
2888
2900
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changesLens_parameter_1$schema,
2889
- jsonSchema: {"type":"object","properties":{"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"local"},"scope":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"},"head":{"type":"string"},"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"},"head":{"type":"string"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"},"head":{"type":"string"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"staged"},"head":{"type":"string"}},"required":["kind"],"additionalProperties":true}]}},"required":["kind","scope"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"change"},"url":{"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","url","commits"],"additionalProperties":true}],"description":"The view's source: local changes in a scope, or a binding URL with its chosen commits."},"version":{"type":"string","description":"`lensVersion` of the files the view shows; files read since with another version refuse the request."},"lens":{"type":"string","description":"Identity of the registered lens."}},"required":["source","version","lens"],"additionalProperties":true},
2901
+ jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
2890
2902
  },
2891
2903
  strictCodec: {
2892
2904
  mode: 'strict',
2893
2905
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge/types#ForgeLensRequest',
2894
2906
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changesLens_parameter_1_strict$schema,
2895
- jsonSchema: {"type":"object","properties":{"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"local"},"scope":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"branch"},"head":{"type":"string"},"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"},"head":{"type":"string"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"unstaged"},"head":{"type":"string"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"staged"},"head":{"type":"string"}},"required":["kind"],"additionalProperties":false}]}},"required":["kind","scope"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"change"},"url":{"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","url","commits"],"additionalProperties":false}],"description":"The view's source: local changes in a scope, or a binding URL with its chosen commits."},"version":{"type":"string","description":"`lensVersion` of the files the view shows; files read since with another version refuse the request."},"lens":{"type":"string","description":"Identity of the registered lens."}},"required":["source","version","lens"],"additionalProperties":false},
2907
+ jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
2896
2908
  },
2897
2909
  },
2898
2910
  ],
@@ -2904,7 +2916,7 @@ const $remote = createTypertRemoteInfo({
2904
2916
  description: 'progress frames, then one result frame.',
2905
2917
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
2906
2918
  },
2907
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1085,"column":10},
2919
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1090,"column":10},
2908
2920
  },
2909
2921
  'forgePanel/continueInProject': {
2910
2922
  service: 'forgePanel',
@@ -2938,7 +2950,7 @@ const $remote = createTypertRemoteInfo({
2938
2950
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_continueInProject_result$schema,
2939
2951
  jsonSchemaError: 'typert tool schema: unsupported void value',
2940
2952
  },
2941
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1482,"column":9},
2953
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1487,"column":9},
2942
2954
  },
2943
2955
  'forgePanel/diffBases': {
2944
2956
  service: 'forgePanel',
@@ -3075,7 +3087,7 @@ const $remote = createTypertRemoteInfo({
3075
3087
  description: 'the registered lenses and the annotation limit, in publication order.',
3076
3088
  jsonSchema: {"type":"object","properties":{"lenses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identity of the lens."},"version":{"type":"string","description":"The lens's `version`; a view does not reuse results of another version."}},"required":["id","version"],"additionalProperties":true},"description":"The registered lenses, in registration order."},"maxAnnotationsPerFile":{"type":"number","description":"Most line annotations a changes view shows in one file, across every annotation source."}},"required":["lenses","maxAnnotationsPerFile"],"additionalProperties":true},
3077
3089
  },
3078
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1065,"column":10},
3090
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1070,"column":10},
3079
3091
  },
3080
3092
  'forgePanel/follow': {
3081
3093
  service: 'forgePanel',
@@ -3454,7 +3466,7 @@ const $remote = createTypertRemoteInfo({
3454
3466
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_markReady_result$schema,
3455
3467
  jsonSchemaError: 'typert tool schema: unsupported void value',
3456
3468
  },
3457
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1236,"column":9},
3469
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1241,"column":9},
3458
3470
  },
3459
3471
  'forgePanel/merge': {
3460
3472
  service: 'forgePanel',
@@ -3539,7 +3551,7 @@ const $remote = createTypertRemoteInfo({
3539
3551
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_merge_result$schema,
3540
3552
  jsonSchemaError: 'typert tool schema: unsupported void value',
3541
3553
  },
3542
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1255,"column":9},
3554
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1260,"column":9},
3543
3555
  },
3544
3556
  'forgePanel/refresh': {
3545
3557
  service: 'forgePanel',
@@ -3640,7 +3652,7 @@ const $remote = createTypertRemoteInfo({
3640
3652
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestReviews_result$schema,
3641
3653
  jsonSchemaError: 'typert tool schema: unsupported void value',
3642
3654
  },
3643
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1311,"column":9},
3655
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1316,"column":9},
3644
3656
  },
3645
3657
  'forgePanel/requestWorktree': {
3646
3658
  service: 'forgePanel',
@@ -3708,7 +3720,7 @@ const $remote = createTypertRemoteInfo({
3708
3720
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_requestWorktree_result$schema,
3709
3721
  jsonSchemaError: 'typert tool schema: unsupported void value',
3710
3722
  },
3711
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1374,"column":9},
3723
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1379,"column":9},
3712
3724
  },
3713
3725
  'forgePanel/rerunChecks': {
3714
3726
  service: 'forgePanel',
@@ -3776,7 +3788,7 @@ const $remote = createTypertRemoteInfo({
3776
3788
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_rerunChecks_result$schema,
3777
3789
  jsonSchemaError: 'typert tool schema: unsupported void value',
3778
3790
  },
3779
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1293,"column":9},
3791
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1298,"column":9},
3780
3792
  },
3781
3793
  'forgePanel/restoreWorktree': {
3782
3794
  service: 'forgePanel',
@@ -3810,7 +3822,7 @@ const $remote = createTypertRemoteInfo({
3810
3822
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_restoreWorktree_result$schema,
3811
3823
  jsonSchemaError: 'typert tool schema: unsupported void value',
3812
3824
  },
3813
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1451,"column":9},
3825
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1456,"column":9},
3814
3826
  },
3815
3827
  'forgePanel/retryWorktree': {
3816
3828
  service: 'forgePanel',
@@ -3861,7 +3873,7 @@ const $remote = createTypertRemoteInfo({
3861
3873
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_result$schema,
3862
3874
  jsonSchemaError: 'typert tool schema: unsupported void value',
3863
3875
  },
3864
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1430,"column":9},
3876
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1435,"column":9},
3865
3877
  },
3866
3878
  'forgePanel/reviewActivity': {
3867
3879
  service: 'forgePanel',
@@ -4114,7 +4126,7 @@ const $remote = createTypertRemoteInfo({
4114
4126
  },
4115
4127
  'forgePanel/reviewDiff': {
4116
4128
  service: 'forgePanel',
4117
- description: 'Read the changes of a change request the review page shows, or of consecutive commits of it.',
4129
+ description: 'Read the changes of a change request the review page shows, of consecutive commits of it, or of it up to one commit.',
4118
4130
  invocation: { kind: 'direct' },
4119
4131
  parameters: [
4120
4132
  {
@@ -4136,19 +4148,19 @@ const $remote = createTypertRemoteInfo({
4136
4148
  },
4137
4149
  {
4138
4150
  name: 'commits',
4139
- description: 'consecutive commits of the change request, or null for all of it.',
4151
+ description: 'consecutive commits of the change request, the commit its changes go up to, or null for all of it.',
4140
4152
  source: 'json',
4141
4153
  codec: {
4142
4154
  mode: 'strict',
4143
4155
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/reviewDiff:commits',
4144
4156
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_parameter_1$schema,
4145
- 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}]},
4157
+ jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
4146
4158
  },
4147
4159
  strictCodec: {
4148
4160
  mode: 'strict',
4149
4161
  typeSymbol: '@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/reviewDiff:commits',
4150
4162
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_reviewDiff_parameter_1_strict$schema,
4151
- 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}]},
4163
+ jsonSchemaError: 'typert tool schema: selected union branches overlap or have no required discriminator',
4152
4164
  },
4153
4165
  },
4154
4166
  ],
@@ -4229,7 +4241,7 @@ const $remote = createTypertRemoteInfo({
4229
4241
  description: 'the accounts, the host\'s suggestions first.',
4230
4242
  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}},
4231
4243
  },
4232
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1329,"column":9},
4244
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1334,"column":9},
4233
4245
  },
4234
4246
  'forgePanel/reviewLists': {
4235
4247
  service: 'forgePanel',
@@ -5171,7 +5183,7 @@ const $remote = createTypertRemoteInfo({
5171
5183
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setAutoMerge_result$schema,
5172
5184
  jsonSchemaError: 'typert tool schema: unsupported void value',
5173
5185
  },
5174
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1274,"column":9},
5186
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1279,"column":9},
5175
5187
  },
5176
5188
  'forgePanel/setFileViewed': {
5177
5189
  service: 'forgePanel',
@@ -5239,7 +5251,7 @@ const $remote = createTypertRemoteInfo({
5239
5251
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_setFileViewed_result$schema,
5240
5252
  jsonSchemaError: 'typert tool schema: unsupported void value',
5241
5253
  },
5242
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1161,"column":9},
5254
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1166,"column":9},
5243
5255
  },
5244
5256
  'forgePanel/stopCreation': {
5245
5257
  service: 'forgePanel',
@@ -5273,7 +5285,7 @@ const $remote = createTypertRemoteInfo({
5273
5285
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_result$schema,
5274
5286
  jsonSchemaError: 'typert tool schema: unsupported void value',
5275
5287
  },
5276
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1414,"column":9},
5288
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1419,"column":9},
5277
5289
  },
5278
5290
  'forgePanel/submitReview': {
5279
5291
  service: 'forgePanel',
@@ -5342,7 +5354,7 @@ const $remote = createTypertRemoteInfo({
5342
5354
  description: 'confirmed publication or a typed failure; unknown outcomes require reconciliation on the host.',
5343
5355
  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}]},
5344
5356
  },
5345
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1200,"column":9},
5357
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1205,"column":9},
5346
5358
  },
5347
5359
  'forgePanel/track': {
5348
5360
  service: 'forgePanel',
@@ -5478,7 +5490,7 @@ const $remote = createTypertRemoteInfo({
5478
5490
  create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_updateBranch_result$schema,
5479
5491
  jsonSchemaError: 'typert tool schema: unsupported void value',
5480
5492
  },
5481
- sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1348,"column":9},
5493
+ sourceLocation: {"file":"packages/experimental/client-ui-forge/src/index.ts","line":1353,"column":9},
5482
5494
  },
5483
5495
  'forgePanel/worktreeBases': {
5484
5496
  service: 'forgePanel',
@@ -5708,9 +5720,9 @@ export const TYPERT = {
5708
5720
  {
5709
5721
  "kind": "method",
5710
5722
  "name": "reviewDiff",
5711
- "signature": "@Remote async reviewDiff(url: string, commits: ForgeCommitRange | null, signal: AbortSignal): Promise<ForgeChangeRequestDiff>",
5712
- "summary": "Read the changes of a change request the review page shows, or of consecutive commits of it.",
5713
- "jsDoc": "/**\n * Read the changes of a change request the review page shows, or of consecutive commits of it.\n * @param url - web 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 and the commit they end at, without a local checkout count.\n * @throws as {@link ForgePanelController.changeRequestDiff} does, with `forgePanel/unrecognized-url` in place of\n * `forgePanel/not-bound`.\n */"
5723
+ "signature": "@Remote async reviewDiff(url: string, commits: ForgeChangeCommits | null, signal: AbortSignal): Promise<ForgeChangeRequestDiff>",
5724
+ "summary": "Read the changes of a change request the review page shows, of consecutive commits of it, or of it up to one commit.",
5725
+ "jsDoc": "/**\n * Read the changes of a change request the review page shows, of consecutive commits of it, or of it up to one commit.\n * @param url - web URL of the change request.\n * @param commits - consecutive commits of the change request, the commit its changes go up to, or null for all of it.\n * @param signal - request cancellation.\n * @returns the files and the commit they end at, without a local checkout count.\n * @throws as {@link ForgePanelController.changeRequestDiff} does, with `forgePanel/unrecognized-url` in place of\n * `forgePanel/not-bound`.\n */"
5714
5726
  },
5715
5727
  {
5716
5728
  "kind": "method",
@@ -5890,9 +5902,9 @@ export const TYPERT = {
5890
5902
  {
5891
5903
  "kind": "method",
5892
5904
  "name": "changeRequestDiff",
5893
- "signature": "@Remote async changeRequestDiff( session: Session, url: string, commits: ForgeCommitRange | null, signal: AbortSignal, ): Promise<ForgeChangeRequestDiff>",
5905
+ "signature": "@Remote async changeRequestDiff( session: Session, url: string, commits: ForgeChangeCommits | null, signal: AbortSignal, ): Promise<ForgeChangeRequestDiff>",
5894
5906
  "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.",
5895
- "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 */"
5907
+ "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 consecutive `commits`, it covers those\n * commits, from the first one's first parent to the last; with `commits` up to one commit, it covers\n * the change request as that commit ended it, from the merge base of the status's base commit with\n * that commit, which the host reads by name whether or not the change request still lists it. Either\n * 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, the commit its changes go up to, 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, and for a\n * commit to go up to that is not a full object name or that the host does not have;\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, for changes up\n * to a commit while the status names no base commit, and when the host does not provide the commits, the merge\n * base, the diff, or an existing `.gitattributes` otherwise.\n */"
5896
5908
  },
5897
5909
  {
5898
5910
  "kind": "method",
@@ -6302,6 +6314,10 @@ export const TYPERT = {
6302
6314
  "name": "ForgeBaseBranches",
6303
6315
  "declaration": "export interface ForgeBaseBranches {\n readonly automatic: ForgeAutomaticBase | null;\n readonly remote: readonly ForgeBaseBranch[];\n readonly local: readonly ForgeBaseBranch[];\n}"
6304
6316
  },
6317
+ {
6318
+ "name": "ForgeChangeCommits",
6319
+ "declaration": "export type ForgeChangeCommits = ForgeCommitRange | ForgeCommitsUpTo;"
6320
+ },
6305
6321
  {
6306
6322
  "name": "ForgeChangedFile",
6307
6323
  "declaration": "export interface ForgeChangedFile {\n readonly path: string;\n readonly additions: number;\n readonly deletions: number;\n readonly binary: boolean;\n}"
@@ -6350,6 +6366,10 @@ export const TYPERT = {
6350
6366
  "name": "ForgeCommitRange",
6351
6367
  "declaration": "export interface ForgeCommitRange {\n readonly from: string;\n readonly to: string;\n}"
6352
6368
  },
6369
+ {
6370
+ "name": "ForgeCommitsUpTo",
6371
+ "declaration": "export interface ForgeCommitsUpTo {\n readonly upTo: string;\n}"
6372
+ },
6353
6373
  {
6354
6374
  "name": "ForgeDescription",
6355
6375
  "declaration": "export interface ForgeDescription {\n readonly forge: string;\n readonly label: string;\n readonly changeRequestNoun: ChangeRequestNoun;\n}"
@@ -6404,7 +6424,7 @@ export const TYPERT = {
6404
6424
  },
6405
6425
  {
6406
6426
  "name": "ForgeLensRequest",
6407
- "declaration": "export interface ForgeLensRequest {\n readonly source: { readonly kind: 'local'; readonly scope: ForgeLocalScope; } | { readonly kind: 'change'; readonly url: string; readonly commits: ForgeCommitRange | null; };\n readonly version: string;\n readonly lens: string;\n}"
6427
+ "declaration": "export interface ForgeLensRequest {\n readonly source: { readonly kind: 'local'; readonly scope: ForgeLocalScope; } | { readonly kind: 'change'; readonly url: string; readonly commits: ForgeChangeCommits | null; };\n readonly version: string;\n readonly lens: string;\n}"
6408
6428
  },
6409
6429
  {
6410
6430
  "name": "ForgeLensResult",
@@ -6792,7 +6812,7 @@ export const TYPERT = {
6792
6812
  },
6793
6813
  {
6794
6814
  "name": "MessageSourceMap",
6795
- "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 'skill-invocation': SkillInvocationSource;\n 'working-directory': { kind: 'working-directory'; };\n 'action-cards': { kind: 'action-cards'; through: SessionSeq; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'tool-registry': { kind: 'tool-registry'; };\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'team-message': TeamMessageSource;\n 'todo-reminder': { kind: 'todo-reminder'; } & 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 'plugin-reference': PluginReferenceSource;\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 'cua-held-inputs': { kind: 'cua-held-inputs'; } & Extract<ContextFormed, { form: 'notice'; }>;\n 'cua-inputs-released': { kind: 'cua-inputs-released'; } & Extract<ContextFormed, { form: 'notice'; }>;\n goal: GoalMessageSource;\n im: { kind: 'im'; } & ContextFormed;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n 'timeline-priority': { kind: 'timeline-priority'; form: 'notice'; summary: string; };\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
6815
+ "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 'skill-invocation': SkillInvocationSource;\n 'working-directory': { kind: 'working-directory'; };\n 'action-cards': { kind: 'action-cards'; through: SessionSeq; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'tool-registry': { kind: 'tool-registry'; };\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'team-message': TeamMessageSource;\n 'todo-reminder': { kind: 'todo-reminder'; } & 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 'plugin-reference': PluginReferenceSource;\n im: { kind: 'im'; } & ContextFormed;\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 'cua-held-inputs': { kind: 'cua-held-inputs'; } & Extract<ContextFormed, { form: 'notice'; }>;\n 'cua-inputs-released': { kind: 'cua-inputs-released'; } & Extract<ContextFormed, { form: 'notice'; }>;\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-auto-resume': { readonly kind: 'session-auto-resume'; };\n 'session-reference': SessionReferenceSource;\n 'timeline-priority': { kind: 'timeline-priority'; form: 'notice'; summary: string; };\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
6796
6816
  },
6797
6817
  {
6798
6818
  "name": "ModelMessageSource",
@@ -6838,6 +6858,10 @@ export const TYPERT = {
6838
6858
  "name": "PtcDispatchStartEventData",
6839
6859
  "declaration": "export interface PtcDispatchStartEventData {\n rootCallId: ToolCallId;\n parentCallId: ToolCallId;\n subCallId: ToolCallId;\n name: string;\n arguments: unknown;\n}"
6840
6860
  },
6861
+ {
6862
+ "name": "ReadonlySessionData",
6863
+ "declaration": "export interface ReadonlySessionData {\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n readonly seq: SessionLogOffset;\n readonly isEmpty: boolean;\n readonly persistedEventCount?: SessionLogOffset;\n readEvents(fromSeq?: SessionLogOffset, toSeqExclusive?: SessionLogOffset): Promise<readonly SessionEvent[]>;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq?: SessionLogOffset, toSeqExclusive?: SessionLogOffset): readonly SessionEvent[];\n evaluateState<S>(definition: SessionStateDefinition<string, S>): S;\n fork(childId: SessionId, options: SessionForkOptions): Promise<SessionData>;\n}"
6864
+ },
6841
6865
  {
6842
6866
  "name": "ReasoningBlock",
6843
6867
  "declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
@@ -6896,12 +6920,16 @@ export const TYPERT = {
6896
6920
  },
6897
6921
  {
6898
6922
  "name": "Session",
6899
- "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}"
6923
+ "declaration": "export interface Session {\n readonly surface: SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n readonly id: SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq?: SessionLogOffset, toSeqExclusive?: SessionLogOffset): readonly SessionEvent[];\n readEvents(fromSeq?: SessionLogOffset, toSeqExclusive?: SessionLogOffset): Promise<readonly SessionEvent[]>;\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n readonly seq: SessionLogOffset;\n readonly 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 readonlyView(): ReadonlySessionData;\n}"
6900
6924
  },
6901
6925
  {
6902
6926
  "name": "SessionChangeRequest",
6903
6927
  "declaration": "export interface SessionChangeRequest {\n readonly url: string;\n readonly origin: BindingOrigin;\n readonly ref: ChangeRequestRef | null;\n readonly update: ChangeRequestUpdate | null;\n}"
6904
6928
  },
6929
+ {
6930
+ "name": "SessionData",
6931
+ "declaration": "export interface SessionData extends ReadonlySessionData {\n append(events: readonly SessionEvent[]): void;\n flush(): Promise<void>;\n close(): Promise<void>;\n readonlyView(): ReadonlySessionData;\n}"
6932
+ },
6905
6933
  {
6906
6934
  "name": "SessionEvent",
6907
6935
  "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];"
@@ -6912,16 +6940,28 @@ export const TYPERT = {
6912
6940
  },
6913
6941
  {
6914
6942
  "name": "SessionEventMap",
6915
- "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 'working-directory/change': { cwd: string; };\n 'workspace-root/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'action-cards/decision': ActionCardDecision;\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 '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 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\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}"
6943
+ "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 'working-directory/change': { cwd: string; };\n 'workspace-root/change': { cwd: string; environment?: { id: string; cwd: string; }; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'action-cards/decision': ActionCardDecision;\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 '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 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\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}"
6916
6944
  },
6917
6945
  {
6918
6946
  "name": "SessionEventType",
6919
6947
  "declaration": "export type SessionEventType = keyof SessionEventMap;"
6920
6948
  },
6949
+ {
6950
+ "name": "SessionForkMeta",
6951
+ "declaration": "export type SessionForkMeta = Pick<SessionHeaderMeta, 'cwd' | 'parentSession' | 'origin' | 'delegationDepth' | 'agentPreset'>;"
6952
+ },
6953
+ {
6954
+ "name": "SessionForkOptions",
6955
+ "declaration": "export interface SessionForkOptions {\n readonly at: SessionSeq;\n readonly meta?: SessionForkMeta;\n}"
6956
+ },
6921
6957
  {
6922
6958
  "name": "SessionHeader",
6923
6959
  "declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: SessionOrigin;\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
6924
6960
  },
6961
+ {
6962
+ "name": "SessionHeaderMeta",
6963
+ "declaration": "export interface SessionHeaderMeta {\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly createdAt?: number;\n readonly isSeeded?: boolean;\n readonly origin?: SessionOrigin;\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
6964
+ },
6925
6965
  {
6926
6966
  "name": "SessionId",
6927
6967
  "declaration": "export type SessionId = Branded<'SessionId'>;"
@@ -6946,6 +6986,10 @@ export const TYPERT = {
6946
6986
  "name": "SessionSeq",
6947
6987
  "declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
6948
6988
  },
6989
+ {
6990
+ "name": "SessionStateDefinition",
6991
+ "declaration": "export interface SessionStateDefinition<K extends string, S> {\n readonly key: K;\n readonly init: (header: SessionHeader, inheritedEventCount: SessionLogOffset) => S;\n readonly apply: (state: S, event: SessionEvent) => S;\n}"
6992
+ },
6949
6993
  {
6950
6994
  "name": "SessionSurface",
6951
6995
  "declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly systemNodes: readonly SystemSurfaceNode[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"