dsh-primer 0.4.3 → 0.4.5

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 (795) hide show
  1. package/README.en.md +493 -0
  2. package/README.es.md +493 -0
  3. package/README.hi.md +493 -0
  4. package/README.md +281 -262
  5. package/README.pt.md +493 -0
  6. package/SKILL.md +1 -1
  7. package/data/facts.json +8 -7
  8. package/dist/dsh-plugin-dev.js +3 -2
  9. package/guide/family-toolchain.md +1 -1
  10. package/guide/migration-0.2.md +1 -1
  11. package/guide/quick-reference.es.md +1 -1
  12. package/guide/quick-reference.hi.md +1 -1
  13. package/guide/quick-reference.md +1 -1
  14. package/guide/quick-reference.pt.md +1 -1
  15. package/guide/quick-reference.zh-CN.md +1 -1
  16. package/guide/standards.md +1 -1
  17. package/guide/unfixed-issues.md +3 -3
  18. package/package.json +1 -1
  19. package/references/official-docs/AGENTS.md +9 -5
  20. package/references/official-docs/CLAUDE.md +0 -0
  21. package/references/official-docs/README.md +1 -1
  22. package/references/official-docs/SNAPSHOT.md +9 -7
  23. package/references/official-docs/THIRD_PARTY_NOTICES.md +22 -3
  24. package/references/official-docs/docs/AGENTS.md +3 -3
  25. package/references/official-docs/docs/agent-lifecycle.md +3 -1
  26. package/references/official-docs/docs/agent-lifecycle.zh.md +3 -1
  27. package/references/official-docs/docs/api-gateway.i18n.yaml +6 -6
  28. package/references/official-docs/docs/api-gateway.md +4 -4
  29. package/references/official-docs/docs/api-gateway.zh.md +4 -4
  30. package/references/official-docs/docs/architecture.i18n.yaml +10 -10
  31. package/references/official-docs/docs/architecture.md +14 -8
  32. package/references/official-docs/docs/architecture.zh.md +14 -8
  33. package/references/official-docs/docs/assets/ui-design-review/inline-metrics-comparison.png +0 -0
  34. package/references/official-docs/docs/assets/ui-design-review/modal-grouping-comparison.png +0 -0
  35. package/references/official-docs/docs/assets/ui-design-review/peer-content-comparison.png +0 -0
  36. package/references/official-docs/docs/assets/ui-design-review/principles-alignment.svg +15 -0
  37. package/references/official-docs/docs/assets/ui-design-review/principles-grouping.svg +1 -0
  38. package/references/official-docs/docs/capability-seams.i18n.yaml +2 -2
  39. package/references/official-docs/docs/capability-seams.md +80 -30
  40. package/references/official-docs/docs/capability-seams.zh.md +80 -30
  41. package/references/official-docs/docs/cli-help.md +15 -7
  42. package/references/official-docs/docs/cli-help.zh.md +15 -7
  43. package/references/official-docs/docs/config-catalog.md +790 -283
  44. package/references/official-docs/docs/config-catalog.zh.md +790 -283
  45. package/references/official-docs/docs/cookbook/adding-a-package.i18n.yaml +6 -6
  46. package/references/official-docs/docs/cookbook/adding-a-package.md +6 -4
  47. package/references/official-docs/docs/cookbook/adding-a-package.zh.md +6 -4
  48. package/references/official-docs/docs/cookbook/adding-a-plugin-preview.i18n.yaml +18 -18
  49. package/references/official-docs/docs/cookbook/adding-a-plugin-preview.md +18 -25
  50. package/references/official-docs/docs/cookbook/adding-a-plugin-preview.zh.md +18 -25
  51. package/references/official-docs/docs/cookbook/adding-a-tool.i18n.yaml +2 -2
  52. package/references/official-docs/docs/cookbook/adding-a-tool.md +4 -3
  53. package/references/official-docs/docs/cookbook/adding-a-tool.zh.md +4 -3
  54. package/references/official-docs/docs/cookbook/extension-cookbook.i18n.yaml +2 -2
  55. package/references/official-docs/docs/cookbook/extension-cookbook.md +1 -1
  56. package/references/official-docs/docs/cookbook/extension-cookbook.zh.md +1 -1
  57. package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.i18n.yaml +2 -2
  58. package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.md +1 -1
  59. package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.zh.md +1 -1
  60. package/references/official-docs/docs/cookbook/reviewing-ui-design.i18n.yaml +55 -0
  61. package/references/official-docs/docs/cookbook/reviewing-ui-design.md +166 -0
  62. package/references/official-docs/docs/cookbook/reviewing-ui-design.zh.md +166 -0
  63. package/references/official-docs/docs/cordis-api/context.md +1 -1
  64. package/references/official-docs/docs/cordis-api/context.zh.md +1 -1
  65. package/references/official-docs/docs/cordis-api/events.i18n.yaml +18 -18
  66. package/references/official-docs/docs/cordis-api/events.md +9 -9
  67. package/references/official-docs/docs/cordis-api/events.zh.md +9 -9
  68. package/references/official-docs/docs/cordis-api/fiber.i18n.yaml +39 -27
  69. package/references/official-docs/docs/cordis-api/fiber.md +85 -32
  70. package/references/official-docs/docs/cordis-api/fiber.zh.md +87 -32
  71. package/references/official-docs/docs/cordis-api/inherited.md +10 -9
  72. package/references/official-docs/docs/cordis-tutorial/04-events.i18n.yaml +2 -2
  73. package/references/official-docs/docs/cordis-tutorial/04-events.md +1 -1
  74. package/references/official-docs/docs/cordis-tutorial/04-events.zh.md +1 -1
  75. package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.md +5 -4
  76. package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.zh.md +5 -4
  77. package/references/official-docs/docs/deepseek-llm-api-wire-extensions.i18n.yaml +4 -4
  78. package/references/official-docs/docs/deepseek-llm-api-wire-extensions.md +3 -3
  79. package/references/official-docs/docs/deepseek-llm-api-wire-extensions.zh.md +3 -3
  80. package/references/official-docs/docs/defensive-patterns/README.i18n.yaml +0 -0
  81. package/references/official-docs/docs/defensive-patterns/README.md +0 -0
  82. package/references/official-docs/docs/defensive-patterns/README.zh.md +0 -0
  83. package/references/official-docs/docs/defensive-patterns/client-components.i18n.yaml +0 -0
  84. package/references/official-docs/docs/defensive-patterns/client-components.md +0 -0
  85. package/references/official-docs/docs/defensive-patterns/client-components.zh.md +0 -0
  86. package/references/official-docs/docs/defensive-patterns/conversation-and-session.i18n.yaml +2 -2
  87. package/references/official-docs/docs/defensive-patterns/conversation-and-session.md +2 -2
  88. package/references/official-docs/docs/defensive-patterns/conversation-and-session.zh.md +2 -2
  89. package/references/official-docs/docs/defensive-patterns/general.i18n.yaml +2 -2
  90. package/references/official-docs/docs/defensive-patterns/general.md +2 -0
  91. package/references/official-docs/docs/defensive-patterns/general.zh.md +2 -0
  92. package/references/official-docs/docs/defensive-patterns/package-surface.i18n.yaml +4 -4
  93. package/references/official-docs/docs/defensive-patterns/package-surface.md +4 -2
  94. package/references/official-docs/docs/defensive-patterns/package-surface.zh.md +4 -2
  95. package/references/official-docs/docs/defensive-patterns/remote-and-api.i18n.yaml +2 -2
  96. package/references/official-docs/docs/defensive-patterns/remote-and-api.md +6 -4
  97. package/references/official-docs/docs/defensive-patterns/remote-and-api.zh.md +6 -4
  98. package/references/official-docs/docs/development.i18n.yaml +12 -12
  99. package/references/official-docs/docs/development.md +17 -10
  100. package/references/official-docs/docs/development.zh.md +17 -10
  101. package/references/official-docs/docs/event-producer-consumer.i18n.yaml +2 -2
  102. package/references/official-docs/docs/event-producer-consumer.md +73 -56
  103. package/references/official-docs/docs/event-producer-consumer.zh.md +73 -56
  104. package/references/official-docs/docs/experimental-persistence-catalog.i18n.yaml +2 -2
  105. package/references/official-docs/docs/experimental-persistence-catalog.md +4 -0
  106. package/references/official-docs/docs/experimental-persistence-catalog.zh.md +4 -0
  107. package/references/official-docs/docs/glossary.i18n.yaml +0 -0
  108. package/references/official-docs/docs/glossary.md +0 -0
  109. package/references/official-docs/docs/glossary.zh.md +0 -0
  110. package/references/official-docs/docs/i18n/README.i18n.yaml +2 -2
  111. package/references/official-docs/docs/i18n/README.md +2 -0
  112. package/references/official-docs/docs/i18n/README.zh.md +2 -0
  113. package/references/official-docs/docs/i18n/style-samples.md +0 -0
  114. package/references/official-docs/docs/i18n/terminology.md +0 -0
  115. package/references/official-docs/docs/module-graph.md +316 -157
  116. package/references/official-docs/docs/module-graph.zh.md +316 -157
  117. package/references/official-docs/docs/persistence-catalog.i18n.yaml +427 -358
  118. package/references/official-docs/docs/persistence-catalog.md +536 -250
  119. package/references/official-docs/docs/persistence-catalog.zh.md +536 -250
  120. package/references/official-docs/docs/persistence-changes/2026-09-11-initial.schema.json +524 -13552
  121. package/references/official-docs/docs/persistence-changes/2026-09-12-auto-review-error-metadata.schema.json +53 -905
  122. package/references/official-docs/docs/persistence-changes/2026-09-13-working-directory.schema.json +10 -71
  123. package/references/official-docs/docs/persistence-changes/2026-09-14-image-offload.schema.json +232 -8473
  124. package/references/official-docs/docs/persistence-changes/2026-09-14-workspace-changes-event.schema.json +9 -67
  125. package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.schema.json +351 -16207
  126. package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.schema.json +25 -297
  127. package/references/official-docs/docs/persistence-changes/2026-09-19-external-subagent-catalog.schema.json +23 -285
  128. package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.schema.json +20 -245
  129. package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.schema.json +232 -11400
  130. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.i18n.yaml +0 -0
  131. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.md +0 -0
  132. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.schema.json +24 -292
  133. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.zh.md +0 -0
  134. package/references/official-docs/docs/persistence-changes/2026-10-05-ptc-operation-metadata.schema.json +42 -452
  135. package/references/official-docs/docs/persistence-changes/2026-10-05-working-directory-attribution.schema.json +234 -11469
  136. package/references/official-docs/docs/persistence-changes/2026-10-07-title-reasoning-effort.schema.json +215 -2985
  137. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.i18n.yaml +0 -0
  138. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.md +0 -0
  139. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.schema.json +23 -226
  140. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.zh.md +0 -0
  141. package/references/official-docs/docs/persistence-changes/2026-10-13-liveshare-share-viewer-principal.i18n.yaml +28 -0
  142. package/references/official-docs/docs/persistence-changes/2026-10-13-liveshare-share-viewer-principal.md +60 -0
  143. package/references/official-docs/docs/persistence-changes/2026-10-13-liveshare-share-viewer-principal.schema.json +253 -0
  144. package/references/official-docs/docs/persistence-changes/2026-10-13-liveshare-share-viewer-principal.zh.md +60 -0
  145. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.i18n.yaml +0 -0
  146. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.md +0 -0
  147. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.schema.json +236 -11554
  148. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.zh.md +0 -0
  149. package/references/official-docs/docs/persistence-changes/2026-10-19-session-team-mode.i18n.yaml +28 -0
  150. package/references/official-docs/docs/persistence-changes/2026-10-19-session-team-mode.md +48 -0
  151. package/references/official-docs/docs/persistence-changes/2026-10-19-session-team-mode.schema.json +15 -0
  152. package/references/official-docs/docs/persistence-changes/2026-10-19-session-team-mode.zh.md +48 -0
  153. package/references/official-docs/docs/persistence-changes/2026-10-22-action-card-status.i18n.yaml +28 -0
  154. package/references/official-docs/docs/persistence-changes/2026-10-22-action-card-status.md +60 -0
  155. package/references/official-docs/docs/persistence-changes/2026-10-22-action-card-status.schema.json +249 -0
  156. package/references/official-docs/docs/persistence-changes/2026-10-22-action-card-status.zh.md +60 -0
  157. package/references/official-docs/docs/persistence-changes/2026-10-25-skill-catalog-incomplete.i18n.yaml +28 -0
  158. package/references/official-docs/docs/persistence-changes/2026-10-25-skill-catalog-incomplete.md +60 -0
  159. package/references/official-docs/docs/persistence-changes/2026-10-25-skill-catalog-incomplete.schema.json +249 -0
  160. package/references/official-docs/docs/persistence-changes/2026-10-25-skill-catalog-incomplete.zh.md +60 -0
  161. package/references/official-docs/docs/persistence-changes/2026-10-27-retry-control-input.i18n.yaml +28 -0
  162. package/references/official-docs/docs/persistence-changes/2026-10-27-retry-control-input.md +60 -0
  163. package/references/official-docs/docs/persistence-changes/2026-10-27-retry-control-input.schema.json +261 -0
  164. package/references/official-docs/docs/persistence-changes/2026-10-27-retry-control-input.zh.md +60 -0
  165. package/references/official-docs/docs/persistence-changes/2026-10-27-subagent-settlement-attribution.i18n.yaml +28 -0
  166. package/references/official-docs/docs/persistence-changes/2026-10-27-subagent-settlement-attribution.md +60 -0
  167. package/references/official-docs/docs/persistence-changes/2026-10-27-subagent-settlement-attribution.schema.json +259 -0
  168. package/references/official-docs/docs/persistence-changes/2026-10-27-subagent-settlement-attribution.zh.md +60 -0
  169. package/references/official-docs/docs/persistence-changes/2026-11-02-subagent-catalog-names.i18n.yaml +28 -0
  170. package/references/official-docs/docs/persistence-changes/2026-11-02-subagent-catalog-names.md +48 -0
  171. package/references/official-docs/docs/persistence-changes/2026-11-02-subagent-catalog-names.schema.json +31 -0
  172. package/references/official-docs/docs/persistence-changes/2026-11-02-subagent-catalog-names.zh.md +48 -0
  173. package/references/official-docs/docs/persistence-changes/2026-11-02-team-task-owner-names.i18n.yaml +28 -0
  174. package/references/official-docs/docs/persistence-changes/2026-11-02-team-task-owner-names.md +48 -0
  175. package/references/official-docs/docs/persistence-changes/2026-11-02-team-task-owner-names.schema.json +23 -0
  176. package/references/official-docs/docs/persistence-changes/2026-11-02-team-task-owner-names.zh.md +48 -0
  177. package/references/official-docs/docs/persistence-changes/README.i18n.yaml +2 -2
  178. package/references/official-docs/docs/persistence-changes/README.md +3 -1
  179. package/references/official-docs/docs/persistence-changes/README.zh.md +3 -1
  180. package/references/official-docs/docs/persistence-changes/historical-formats/README.i18n.yaml +6 -6
  181. package/references/official-docs/docs/persistence-changes/historical-formats/README.md +3 -3
  182. package/references/official-docs/docs/persistence-changes/historical-formats/README.zh.md +3 -3
  183. package/references/official-docs/docs/persistence-changes/historical-formats/v0.schema.json +887 -49302
  184. package/references/official-docs/docs/persistence-changes/historical-formats/v1.schema.json +887 -49405
  185. package/references/official-docs/docs/persistence-changes/historical-formats/v2.schema.json +929 -56460
  186. package/references/official-docs/docs/persistence-changes/historical-formats/v3.schema.json +997 -61301
  187. package/references/official-docs/docs/persistence-changes/releases/README.i18n.yaml +2 -2
  188. package/references/official-docs/docs/persistence-changes/releases/README.md +1 -1
  189. package/references/official-docs/docs/persistence-changes/releases/README.zh.md +1 -1
  190. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.1.schema.json +727 -39862
  191. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.2.schema.json +788 -43336
  192. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.3.schema.json +255 -19446
  193. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.4.schema.json +2 -1
  194. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.5.schema.json +2 -1
  195. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.1.schema.json +2 -1
  196. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.2.schema.json +2 -1
  197. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.3.schema.json +2 -1
  198. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.5.schema.json +2 -1
  199. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.6.schema.json +2 -1
  200. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.7.schema.json +118 -5314
  201. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.8.schema.json +287 -21252
  202. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.1.schema.json +24 -411
  203. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.2.schema.json +351 -29666
  204. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.1.schema.json +881 -48423
  205. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.2.schema.json +881 -49341
  206. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.3.schema.json +2 -1
  207. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.4.schema.json +217 -17636
  208. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.5.schema.json +2 -1
  209. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-rc.1.schema.json +2 -1
  210. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.1.schema.json +441 -38672
  211. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.2.schema.json +31 -777
  212. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.1.schema.json +377 -24591
  213. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.2.schema.json +75 -2126
  214. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.1.schema.json +2 -1
  215. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.2.schema.json +2 -1
  216. package/references/official-docs/docs/persistence-schema.json +1341 -26171
  217. package/references/official-docs/docs/rescope.i18n.yaml +4 -4
  218. package/references/official-docs/docs/rescope.md +7 -5
  219. package/references/official-docs/docs/rescope.zh.md +7 -5
  220. package/references/official-docs/docs/subsystems/README.i18n.yaml +2 -2
  221. package/references/official-docs/docs/subsystems/README.md +4 -2
  222. package/references/official-docs/docs/subsystems/README.zh.md +4 -2
  223. package/references/official-docs/docs/subsystems/agent-team.i18n.yaml +13 -13
  224. package/references/official-docs/docs/subsystems/agent-team.md +38 -75
  225. package/references/official-docs/docs/subsystems/agent-team.zh.md +38 -75
  226. package/references/official-docs/docs/subsystems/attachment.i18n.yaml +4 -4
  227. package/references/official-docs/docs/subsystems/attachment.md +36 -13
  228. package/references/official-docs/docs/subsystems/attachment.zh.md +36 -13
  229. package/references/official-docs/docs/subsystems/boot.i18n.yaml +4 -4
  230. package/references/official-docs/docs/subsystems/boot.md +187 -7
  231. package/references/official-docs/docs/subsystems/boot.zh.md +187 -7
  232. package/references/official-docs/docs/subsystems/client-modules.i18n.yaml +6 -6
  233. package/references/official-docs/docs/subsystems/client-modules.md +19 -11
  234. package/references/official-docs/docs/subsystems/client-modules.zh.md +19 -11
  235. package/references/official-docs/docs/subsystems/compaction.i18n.yaml +2 -2
  236. package/references/official-docs/docs/subsystems/compaction.md +1 -1
  237. package/references/official-docs/docs/subsystems/compaction.zh.md +1 -1
  238. package/references/official-docs/docs/subsystems/computer-use.i18n.yaml +2 -2
  239. package/references/official-docs/docs/subsystems/computer-use.md +80 -0
  240. package/references/official-docs/docs/subsystems/computer-use.zh.md +80 -0
  241. package/references/official-docs/docs/subsystems/conversation.i18n.yaml +5 -5
  242. package/references/official-docs/docs/subsystems/conversation.md +2 -0
  243. package/references/official-docs/docs/subsystems/conversation.zh.md +4 -0
  244. package/references/official-docs/docs/subsystems/core.i18n.yaml +9 -6
  245. package/references/official-docs/docs/subsystems/core.md +120 -65
  246. package/references/official-docs/docs/subsystems/core.zh.md +120 -65
  247. package/references/official-docs/docs/subsystems/credentials.i18n.yaml +6 -6
  248. package/references/official-docs/docs/subsystems/credentials.md +79 -50
  249. package/references/official-docs/docs/subsystems/credentials.zh.md +79 -50
  250. package/references/official-docs/docs/subsystems/deliverables.i18n.yaml +2 -2
  251. package/references/official-docs/docs/subsystems/deliverables.md +2 -0
  252. package/references/official-docs/docs/subsystems/deliverables.zh.md +2 -0
  253. package/references/official-docs/docs/subsystems/filesystem.i18n.yaml +20 -14
  254. package/references/official-docs/docs/subsystems/filesystem.md +202 -28
  255. package/references/official-docs/docs/subsystems/filesystem.zh.md +202 -28
  256. package/references/official-docs/docs/subsystems/forge.i18n.yaml +28 -0
  257. package/references/official-docs/docs/subsystems/forge.md +1975 -0
  258. package/references/official-docs/docs/subsystems/forge.zh.md +1977 -0
  259. package/references/official-docs/docs/subsystems/jobs.i18n.yaml +0 -0
  260. package/references/official-docs/docs/subsystems/jobs.md +0 -0
  261. package/references/official-docs/docs/subsystems/jobs.zh.md +0 -0
  262. package/references/official-docs/docs/subsystems/liveshare.i18n.yaml +25 -0
  263. package/references/official-docs/docs/subsystems/liveshare.md +167 -0
  264. package/references/official-docs/docs/subsystems/liveshare.zh.md +167 -0
  265. package/references/official-docs/docs/subsystems/llm-streaming.i18n.yaml +9 -6
  266. package/references/official-docs/docs/subsystems/llm-streaming.md +95 -5
  267. package/references/official-docs/docs/subsystems/llm-streaming.zh.md +95 -5
  268. package/references/official-docs/docs/subsystems/lsp.i18n.yaml +5 -2
  269. package/references/official-docs/docs/subsystems/lsp.md +25 -1
  270. package/references/official-docs/docs/subsystems/lsp.zh.md +25 -1
  271. package/references/official-docs/docs/subsystems/mcp.i18n.yaml +6 -6
  272. package/references/official-docs/docs/subsystems/mcp.md +99 -2
  273. package/references/official-docs/docs/subsystems/mcp.zh.md +99 -2
  274. package/references/official-docs/docs/subsystems/office-kit.i18n.yaml +19 -0
  275. package/references/official-docs/docs/subsystems/office-kit.md +122 -0
  276. package/references/official-docs/docs/subsystems/office-kit.zh.md +122 -0
  277. package/references/official-docs/docs/subsystems/persistence.i18n.yaml +3 -3
  278. package/references/official-docs/docs/subsystems/persistence.md +17 -7
  279. package/references/official-docs/docs/subsystems/persistence.zh.md +17 -7
  280. package/references/official-docs/docs/subsystems/plan.i18n.yaml +6 -6
  281. package/references/official-docs/docs/subsystems/plan.md +4 -4
  282. package/references/official-docs/docs/subsystems/plan.zh.md +4 -4
  283. package/references/official-docs/docs/subsystems/product-telemetry.i18n.yaml +0 -0
  284. package/references/official-docs/docs/subsystems/product-telemetry.md +0 -0
  285. package/references/official-docs/docs/subsystems/product-telemetry.zh.md +0 -0
  286. package/references/official-docs/docs/subsystems/ptc-runtime.i18n.yaml +4 -4
  287. package/references/official-docs/docs/subsystems/ptc-runtime.md +57 -10
  288. package/references/official-docs/docs/subsystems/ptc-runtime.zh.md +57 -10
  289. package/references/official-docs/docs/subsystems/sandbox.i18n.yaml +6 -6
  290. package/references/official-docs/docs/subsystems/sandbox.md +32 -7
  291. package/references/official-docs/docs/subsystems/sandbox.zh.md +32 -7
  292. package/references/official-docs/docs/subsystems/schedule.i18n.yaml +39 -30
  293. package/references/official-docs/docs/subsystems/schedule.md +194 -430
  294. package/references/official-docs/docs/subsystems/schedule.zh.md +197 -433
  295. package/references/official-docs/docs/subsystems/scope.i18n.yaml +0 -0
  296. package/references/official-docs/docs/subsystems/scope.zh.md +0 -0
  297. package/references/official-docs/docs/subsystems/session-projection.i18n.yaml +14 -8
  298. package/references/official-docs/docs/subsystems/session-projection.md +186 -44
  299. package/references/official-docs/docs/subsystems/session-projection.zh.md +186 -44
  300. package/references/official-docs/docs/subsystems/session-query.md +11 -1
  301. package/references/official-docs/docs/subsystems/session-query.zh.md +11 -1
  302. package/references/official-docs/docs/subsystems/session-reference.md +4 -3
  303. package/references/official-docs/docs/subsystems/session-reference.zh.md +4 -3
  304. package/references/official-docs/docs/subsystems/session.i18n.yaml +10 -4
  305. package/references/official-docs/docs/subsystems/session.md +146 -32
  306. package/references/official-docs/docs/subsystems/session.zh.md +146 -32
  307. package/references/official-docs/docs/subsystems/sidebar-right.i18n.yaml +12 -12
  308. package/references/official-docs/docs/subsystems/sidebar-right.md +13 -12
  309. package/references/official-docs/docs/subsystems/sidebar-right.zh.md +13 -12
  310. package/references/official-docs/docs/subsystems/skills.i18n.yaml +6 -6
  311. package/references/official-docs/docs/subsystems/skills.md +4 -4
  312. package/references/official-docs/docs/subsystems/skills.zh.md +4 -4
  313. package/references/official-docs/docs/subsystems/slots.i18n.yaml +11 -8
  314. package/references/official-docs/docs/subsystems/slots.md +33 -3
  315. package/references/official-docs/docs/subsystems/slots.zh.md +33 -3
  316. package/references/official-docs/docs/subsystems/storage.i18n.yaml +9 -6
  317. package/references/official-docs/docs/subsystems/storage.md +26 -9
  318. package/references/official-docs/docs/subsystems/storage.zh.md +26 -9
  319. package/references/official-docs/docs/subsystems/subagent.i18n.yaml +14 -11
  320. package/references/official-docs/docs/subsystems/subagent.md +119 -102
  321. package/references/official-docs/docs/subsystems/subagent.zh.md +119 -102
  322. package/references/official-docs/docs/subsystems/system-prompt.i18n.yaml +2 -2
  323. package/references/official-docs/docs/subsystems/system-prompt.md +13 -11
  324. package/references/official-docs/docs/subsystems/system-prompt.zh.md +13 -11
  325. package/references/official-docs/docs/subsystems/terminal.md +1 -1
  326. package/references/official-docs/docs/subsystems/terminal.zh.md +1 -1
  327. package/references/official-docs/docs/subsystems/token-meter.i18n.yaml +3 -0
  328. package/references/official-docs/docs/subsystems/token-meter.md +45 -0
  329. package/references/official-docs/docs/subsystems/token-meter.zh.md +45 -0
  330. package/references/official-docs/docs/subsystems/tools.i18n.yaml +8 -2
  331. package/references/official-docs/docs/subsystems/tools.md +240 -89
  332. package/references/official-docs/docs/subsystems/tools.zh.md +240 -89
  333. package/references/official-docs/docs/subsystems/translation.i18n.yaml +0 -0
  334. package/references/official-docs/docs/subsystems/translation.md +0 -0
  335. package/references/official-docs/docs/subsystems/translation.zh.md +0 -0
  336. package/references/official-docs/docs/subsystems/typert.i18n.yaml +4 -4
  337. package/references/official-docs/docs/subsystems/typert.md +21 -11
  338. package/references/official-docs/docs/subsystems/typert.zh.md +21 -11
  339. package/references/official-docs/docs/subsystems/user-questions.i18n.yaml +2 -2
  340. package/references/official-docs/docs/subsystems/user-questions.md +22 -6
  341. package/references/official-docs/docs/subsystems/user-questions.zh.md +22 -6
  342. package/references/official-docs/docs/subsystems/web-client.i18n.yaml +2 -2
  343. package/references/official-docs/docs/subsystems/web-client.md +1 -1
  344. package/references/official-docs/docs/subsystems/web-client.zh.md +1 -1
  345. package/references/official-docs/docs/subsystems/web-server.i18n.yaml +6 -6
  346. package/references/official-docs/docs/subsystems/web-server.md +68 -23
  347. package/references/official-docs/docs/subsystems/web-server.zh.md +68 -23
  348. package/references/official-docs/docs/subsystems/web.i18n.yaml +10 -10
  349. package/references/official-docs/docs/subsystems/web.md +79 -21
  350. package/references/official-docs/docs/subsystems/web.zh.md +79 -21
  351. package/references/official-docs/docs/subsystems/working-directory.md +33 -2
  352. package/references/official-docs/docs/subsystems/working-directory.zh.md +33 -2
  353. package/references/official-docs/docs/subsystems/workspace.i18n.yaml +0 -0
  354. package/references/official-docs/docs/subsystems/workspace.md +93 -1
  355. package/references/official-docs/docs/subsystems/workspace.zh.md +93 -1
  356. package/references/official-docs/docs/subsystems/worktrees.i18n.yaml +4 -4
  357. package/references/official-docs/docs/subsystems/worktrees.md +112 -5
  358. package/references/official-docs/docs/subsystems/worktrees.zh.md +112 -5
  359. package/references/official-docs/docs/testing.i18n.yaml +2 -2
  360. package/references/official-docs/docs/testing.md +1 -1
  361. package/references/official-docs/docs/testing.zh.md +1 -1
  362. package/references/official-docs/docs/tool-catalog.i18n.yaml +100 -76
  363. package/references/official-docs/docs/tool-catalog.md +433 -395
  364. package/references/official-docs/docs/tool-catalog.zh.md +436 -399
  365. package/references/official-docs/docs/tool-execution-pipeline.i18n.yaml +2 -2
  366. package/references/official-docs/docs/tool-execution-pipeline.md +5 -4
  367. package/references/official-docs/docs/tool-execution-pipeline.zh.md +4 -3
  368. package/references/official-docs/docs/ui-design-review-cases.i18n.yaml +148 -0
  369. package/references/official-docs/docs/ui-design-review-cases.md +445 -0
  370. package/references/official-docs/docs/ui-design-review-cases.zh.md +445 -0
  371. package/references/official-docs/docs/ui-radius.i18n.yaml +4 -4
  372. package/references/official-docs/docs/ui-radius.md +3 -1
  373. package/references/official-docs/docs/ui-radius.zh.md +3 -1
  374. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.i18n.yaml +0 -0
  375. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.md +0 -0
  376. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.zh.md +0 -0
  377. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.i18n.yaml +0 -0
  378. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.md +0 -0
  379. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.zh.md +0 -0
  380. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.i18n.yaml +0 -0
  381. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.md +0 -0
  382. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.zh.md +0 -0
  383. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.i18n.yaml +0 -0
  384. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.md +0 -0
  385. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.zh.md +0 -0
  386. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.i18n.yaml +2 -2
  387. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.md +1 -1
  388. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.zh.md +1 -1
  389. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/cordis-timer-wrappers/guide.i18n.yaml +16 -0
  390. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/cordis-timer-wrappers/guide.md +24 -0
  391. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/cordis-timer-wrappers/guide.zh.md +24 -0
  392. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.i18n.yaml +0 -0
  393. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.md +0 -0
  394. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.zh.md +0 -0
  395. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.i18n.yaml +0 -0
  396. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.md +0 -0
  397. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.zh.md +0 -0
  398. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.i18n.yaml +0 -0
  399. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.md +0 -0
  400. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.zh.md +0 -0
  401. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.i18n.yaml +0 -0
  402. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.md +0 -0
  403. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.zh.md +0 -0
  404. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.i18n.yaml +0 -0
  405. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.md +0 -0
  406. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.zh.md +0 -0
  407. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.i18n.yaml +0 -0
  408. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.md +0 -0
  409. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.zh.md +0 -0
  410. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.i18n.yaml +0 -0
  411. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.md +0 -0
  412. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.zh.md +0 -0
  413. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.i18n.yaml +0 -0
  414. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.md +0 -0
  415. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.zh.md +0 -0
  416. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-manager-view-fields/guide.i18n.yaml +16 -0
  417. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-manager-view-fields/guide.md +25 -0
  418. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-manager-view-fields/guide.zh.md +25 -0
  419. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.i18n.yaml +0 -0
  420. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.md +0 -0
  421. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.zh.md +0 -0
  422. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.i18n.yaml +0 -0
  423. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.md +0 -0
  424. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.zh.md +0 -0
  425. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.i18n.yaml +0 -0
  426. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.md +0 -0
  427. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.zh.md +0 -0
  428. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.i18n.yaml +0 -0
  429. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.md +0 -0
  430. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.zh.md +0 -0
  431. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/model-switch-compaction/guide.i18n.yaml +16 -0
  432. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/model-switch-compaction/guide.md +30 -0
  433. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/model-switch-compaction/guide.zh.md +30 -0
  434. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/session-model-selection/guide.i18n.yaml +16 -0
  435. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/session-model-selection/guide.md +28 -0
  436. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/session-model-selection/guide.zh.md +28 -0
  437. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.1/agent-instructions-chain-budgets/guide.i18n.yaml +16 -0
  438. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.1/agent-instructions-chain-budgets/guide.md +24 -0
  439. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.1/agent-instructions-chain-budgets/guide.zh.md +24 -0
  440. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.1/subagent-control-tools/guide.i18n.yaml +16 -0
  441. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.1/subagent-control-tools/guide.md +23 -0
  442. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.1/subagent-control-tools/guide.zh.md +23 -0
  443. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/agent-runtime-owner/guide.i18n.yaml +16 -0
  444. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/agent-runtime-owner/guide.md +20 -0
  445. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/agent-runtime-owner/guide.zh.md +20 -0
  446. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/agent-team-subagents/guide.i18n.yaml +16 -0
  447. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/agent-team-subagents/guide.md +31 -0
  448. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/agent-team-subagents/guide.zh.md +31 -0
  449. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/approval-projection-dependency/guide.i18n.yaml +16 -0
  450. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/approval-projection-dependency/guide.md +34 -0
  451. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/approval-projection-dependency/guide.zh.md +34 -0
  452. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/auto-review-shutdown/guide.i18n.yaml +16 -0
  453. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/auto-review-shutdown/guide.md +20 -0
  454. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/auto-review-shutdown/guide.zh.md +20 -0
  455. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/auto-review-user-sources/guide.i18n.yaml +16 -0
  456. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/auto-review-user-sources/guide.md +18 -0
  457. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/auto-review-user-sources/guide.zh.md +18 -0
  458. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/built-in-japanese/guide.i18n.yaml +16 -0
  459. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/built-in-japanese/guide.md +18 -0
  460. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/built-in-japanese/guide.zh.md +18 -0
  461. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/conditional-tools/guide.i18n.yaml +16 -0
  462. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/conditional-tools/guide.md +25 -0
  463. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/conditional-tools/guide.zh.md +25 -0
  464. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/context-menu-services/guide.i18n.yaml +16 -0
  465. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/context-menu-services/guide.md +23 -0
  466. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/context-menu-services/guide.zh.md +23 -0
  467. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-consent-storage/guide.i18n.yaml +16 -0
  468. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-consent-storage/guide.md +22 -0
  469. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-consent-storage/guide.zh.md +22 -0
  470. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-preset-scope/guide.i18n.yaml +16 -0
  471. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-preset-scope/guide.md +18 -0
  472. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-preset-scope/guide.zh.md +18 -0
  473. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-relative-coordinates/guide.i18n.yaml +16 -0
  474. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-relative-coordinates/guide.md +17 -0
  475. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/cua-relative-coordinates/guide.zh.md +17 -0
  476. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/file-drag-callbacks/guide.i18n.yaml +16 -0
  477. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/file-drag-callbacks/guide.md +19 -0
  478. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/file-drag-callbacks/guide.zh.md +19 -0
  479. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/headless-policy-composition/guide.i18n.yaml +16 -0
  480. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/headless-policy-composition/guide.md +27 -0
  481. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/headless-policy-composition/guide.zh.md +27 -0
  482. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/model-badge-package-removal/guide.i18n.yaml +16 -0
  483. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/model-badge-package-removal/guide.md +18 -0
  484. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/model-badge-package-removal/guide.zh.md +18 -0
  485. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/new-session-blank-reuse/guide.i18n.yaml +16 -0
  486. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/new-session-blank-reuse/guide.md +22 -0
  487. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/new-session-blank-reuse/guide.zh.md +22 -0
  488. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/node-24/guide.i18n.yaml +16 -0
  489. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/node-24/guide.md +17 -0
  490. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/node-24/guide.zh.md +17 -0
  491. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/official-bundle-lists/guide.i18n.yaml +16 -0
  492. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/official-bundle-lists/guide.md +18 -0
  493. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/official-bundle-lists/guide.zh.md +18 -0
  494. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/persistent-terminal-controls/guide.i18n.yaml +16 -0
  495. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/persistent-terminal-controls/guide.md +18 -0
  496. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/persistent-terminal-controls/guide.zh.md +18 -0
  497. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-default-capacities/guide.i18n.yaml +16 -0
  498. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-default-capacities/guide.md +18 -0
  499. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-default-capacities/guide.zh.md +18 -0
  500. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-model-catalog/guide.i18n.yaml +16 -0
  501. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-model-catalog/guide.md +53 -0
  502. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-model-catalog/guide.zh.md +53 -0
  503. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-protocol-replay/guide.i18n.yaml +16 -0
  504. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-protocol-replay/guide.md +30 -0
  505. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/pi-ai-protocol-replay/guide.zh.md +30 -0
  506. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/ptc-script-format/guide.i18n.yaml +16 -0
  507. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/ptc-script-format/guide.md +20 -0
  508. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/ptc-script-format/guide.zh.md +20 -0
  509. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/sdk-desktop-context/guide.i18n.yaml +16 -0
  510. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/sdk-desktop-context/guide.md +18 -0
  511. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/sdk-desktop-context/guide.zh.md +18 -0
  512. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/sdk-minimal-checkpoints/guide.i18n.yaml +16 -0
  513. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/sdk-minimal-checkpoints/guide.md +18 -0
  514. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/sdk-minimal-checkpoints/guide.zh.md +18 -0
  515. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-projection-handles/guide.i18n.yaml +16 -0
  516. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-projection-handles/guide.md +24 -0
  517. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-projection-handles/guide.zh.md +24 -0
  518. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-store-writes/guide.i18n.yaml +16 -0
  519. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-store-writes/guide.md +25 -0
  520. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-store-writes/guide.zh.md +25 -0
  521. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-team-mode/guide.i18n.yaml +16 -0
  522. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-team-mode/guide.md +22 -0
  523. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/session-team-mode/guide.zh.md +22 -0
  524. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-activation-options/guide.i18n.yaml +16 -0
  525. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-activation-options/guide.md +18 -0
  526. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-activation-options/guide.zh.md +18 -0
  527. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-service-methods/guide.i18n.yaml +16 -0
  528. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-service-methods/guide.md +19 -0
  529. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-service-methods/guide.zh.md +19 -0
  530. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-user-controls/guide.i18n.yaml +16 -0
  531. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-user-controls/guide.md +26 -0
  532. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/subagent-user-controls/guide.zh.md +26 -0
  533. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/tool-executor-plugins/guide.i18n.yaml +16 -0
  534. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/tool-executor-plugins/guide.md +35 -0
  535. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/tool-executor-plugins/guide.zh.md +35 -0
  536. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/web-fetch-private-destinations/guide.i18n.yaml +16 -0
  537. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/web-fetch-private-destinations/guide.md +21 -0
  538. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/web-fetch-private-destinations/guide.zh.md +21 -0
  539. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/webserver-index-peer/guide.i18n.yaml +16 -0
  540. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/webserver-index-peer/guide.md +17 -0
  541. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.2/webserver-index-peer/guide.zh.md +17 -0
  542. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/attachment-read-access/guide.i18n.yaml +16 -0
  543. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/attachment-read-access/guide.md +23 -0
  544. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/attachment-read-access/guide.zh.md +23 -0
  545. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/computer-use-helper-permissions/guide.i18n.yaml +16 -0
  546. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/computer-use-helper-permissions/guide.md +21 -0
  547. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/computer-use-helper-permissions/guide.zh.md +21 -0
  548. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/cua-bundle-id-consent/guide.i18n.yaml +16 -0
  549. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/cua-bundle-id-consent/guide.md +20 -0
  550. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/cua-bundle-id-consent/guide.zh.md +20 -0
  551. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/generated-worktree-names/guide.i18n.yaml +16 -0
  552. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/generated-worktree-names/guide.md +20 -0
  553. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/generated-worktree-names/guide.zh.md +20 -0
  554. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/inbox-only-agent-wait/guide.i18n.yaml +16 -0
  555. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/inbox-only-agent-wait/guide.md +19 -0
  556. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/inbox-only-agent-wait/guide.zh.md +19 -0
  557. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/independent-session-forks/guide.i18n.yaml +16 -0
  558. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/independent-session-forks/guide.md +23 -0
  559. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/independent-session-forks/guide.zh.md +23 -0
  560. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/ptc-caller-cancellation/guide.i18n.yaml +16 -0
  561. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/ptc-caller-cancellation/guide.md +20 -0
  562. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/ptc-caller-cancellation/guide.zh.md +20 -0
  563. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/session-follow-activation/guide.i18n.yaml +16 -0
  564. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/session-follow-activation/guide.md +21 -0
  565. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/session-follow-activation/guide.zh.md +21 -0
  566. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/subagent-runtime-ownership/guide.i18n.yaml +16 -0
  567. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/subagent-runtime-ownership/guide.md +21 -0
  568. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/subagent-runtime-ownership/guide.zh.md +21 -0
  569. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/team-mode-menu/guide.i18n.yaml +16 -0
  570. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/team-mode-menu/guide.md +18 -0
  571. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/team-mode-menu/guide.zh.md +18 -0
  572. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/team-projection/guide.i18n.yaml +16 -0
  573. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/team-projection/guide.md +20 -0
  574. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/team-projection/guide.zh.md +20 -0
  575. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/web-file-downloads/guide.i18n.yaml +16 -0
  576. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/web-file-downloads/guide.md +19 -0
  577. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/web-file-downloads/guide.zh.md +19 -0
  578. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/web-search-defaults/guide.i18n.yaml +16 -0
  579. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/web-search-defaults/guide.md +18 -0
  580. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.3/web-search-defaults/guide.zh.md +18 -0
  581. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/model-listing-refresh/guide.i18n.yaml +16 -0
  582. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/model-listing-refresh/guide.md +22 -0
  583. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/model-listing-refresh/guide.zh.md +22 -0
  584. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/reasoning-body-props/guide.i18n.yaml +16 -0
  585. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/reasoning-body-props/guide.md +20 -0
  586. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/reasoning-body-props/guide.zh.md +20 -0
  587. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/sandbox-unsupported-policy-error/guide.i18n.yaml +16 -0
  588. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/sandbox-unsupported-policy-error/guide.md +18 -0
  589. package/references/official-docs/docs/upgrade-guide/v0.2.1-rc.4/sandbox-unsupported-policy-error/guide.zh.md +18 -0
  590. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/context-menu-target/guide.i18n.yaml +16 -0
  591. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/context-menu-target/guide.md +19 -0
  592. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/context-menu-target/guide.zh.md +19 -0
  593. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/cordis-loader-entry-trees/guide.i18n.yaml +16 -0
  594. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/cordis-loader-entry-trees/guide.md +24 -0
  595. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/cordis-loader-entry-trees/guide.zh.md +24 -0
  596. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/css-anchored-menus/guide.i18n.yaml +16 -0
  597. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/css-anchored-menus/guide.md +21 -0
  598. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/css-anchored-menus/guide.zh.md +21 -0
  599. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/cua-source-dev-helper/guide.i18n.yaml +16 -0
  600. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/cua-source-dev-helper/guide.md +19 -0
  601. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/cua-source-dev-helper/guide.zh.md +19 -0
  602. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/desktop-stable-channel/guide.i18n.yaml +16 -0
  603. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/desktop-stable-channel/guide.md +18 -0
  604. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/desktop-stable-channel/guide.zh.md +18 -0
  605. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/forge-git-permissions/guide.i18n.yaml +16 -0
  606. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/forge-git-permissions/guide.md +21 -0
  607. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/forge-git-permissions/guide.zh.md +21 -0
  608. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/forge-worktree-entry/guide.i18n.yaml +16 -0
  609. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/forge-worktree-entry/guide.md +29 -0
  610. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/forge-worktree-entry/guide.zh.md +29 -0
  611. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/fs-observation-policy-default-off/guide.i18n.yaml +16 -0
  612. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/fs-observation-policy-default-off/guide.md +29 -0
  613. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/fs-observation-policy-default-off/guide.zh.md +29 -0
  614. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/llm-error-builtin-codes/guide.i18n.yaml +16 -0
  615. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/llm-error-builtin-codes/guide.md +18 -0
  616. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/llm-error-builtin-codes/guide.zh.md +18 -0
  617. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/llm-request-purpose-declarations/guide.i18n.yaml +16 -0
  618. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/llm-request-purpose-declarations/guide.md +29 -0
  619. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/llm-request-purpose-declarations/guide.zh.md +29 -0
  620. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/pi-ai-request-image-count/guide.i18n.yaml +16 -0
  621. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/pi-ai-request-image-count/guide.md +18 -0
  622. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/pi-ai-request-image-count/guide.zh.md +18 -0
  623. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-event-frames/guide.i18n.yaml +16 -0
  624. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-event-frames/guide.md +32 -0
  625. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-event-frames/guide.zh.md +32 -0
  626. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-released-checkpoint/guide.i18n.yaml +16 -0
  627. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-released-checkpoint/guide.md +30 -0
  628. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-released-checkpoint/guide.zh.md +30 -0
  629. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-snapshot-scope/guide.i18n.yaml +16 -0
  630. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-snapshot-scope/guide.md +19 -0
  631. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/projection-snapshot-scope/guide.zh.md +19 -0
  632. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/retained-ptc-timeout/guide.i18n.yaml +16 -0
  633. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/retained-ptc-timeout/guide.md +21 -0
  634. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/retained-ptc-timeout/guide.zh.md +21 -0
  635. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/schedule-agent-tools/guide.i18n.yaml +16 -0
  636. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/schedule-agent-tools/guide.md +37 -0
  637. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/schedule-agent-tools/guide.zh.md +37 -0
  638. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/schedule-remote-host-tasks/guide.i18n.yaml +16 -0
  639. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/schedule-remote-host-tasks/guide.md +22 -0
  640. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/schedule-remote-host-tasks/guide.zh.md +22 -0
  641. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/sdk-run-commands/guide.i18n.yaml +16 -0
  642. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/sdk-run-commands/guide.md +24 -0
  643. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/sdk-run-commands/guide.zh.md +24 -0
  644. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/session-header-menu/guide.i18n.yaml +16 -0
  645. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/session-header-menu/guide.md +20 -0
  646. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/session-header-menu/guide.zh.md +20 -0
  647. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/subagent-explicit-reasoning/guide.i18n.yaml +16 -0
  648. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/subagent-explicit-reasoning/guide.md +20 -0
  649. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/subagent-explicit-reasoning/guide.zh.md +20 -0
  650. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/web-search-credential-modes/guide.i18n.yaml +16 -0
  651. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/web-search-credential-modes/guide.md +17 -0
  652. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/web-search-credential-modes/guide.zh.md +17 -0
  653. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/web-search-default-provider/guide.i18n.yaml +16 -0
  654. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/web-search-default-provider/guide.md +19 -0
  655. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.2/web-search-default-provider/guide.zh.md +19 -0
  656. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/chat-process-activity-context/guide.i18n.yaml +16 -0
  657. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/chat-process-activity-context/guide.md +18 -0
  658. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/chat-process-activity-context/guide.zh.md +18 -0
  659. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-kit-package/guide.i18n.yaml +16 -0
  660. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-kit-package/guide.md +34 -0
  661. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-kit-package/guide.zh.md +34 -0
  662. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-operation-tools/guide.i18n.yaml +16 -0
  663. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-operation-tools/guide.md +49 -0
  664. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-operation-tools/guide.zh.md +49 -0
  665. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-skill-resources/guide.i18n.yaml +16 -0
  666. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-skill-resources/guide.md +36 -0
  667. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/office-skill-resources/guide.zh.md +36 -0
  668. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/subagent-names/guide.i18n.yaml +16 -0
  669. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/subagent-names/guide.md +29 -0
  670. package/references/official-docs/docs/upgrade-guide/v0.2.2-alpha.3/subagent-names/guide.zh.md +29 -0
  671. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/account-notification-fields/guide.i18n.yaml +16 -0
  672. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/account-notification-fields/guide.md +26 -0
  673. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/account-notification-fields/guide.zh.md +26 -0
  674. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/account-remote-provider/guide.i18n.yaml +16 -0
  675. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/account-remote-provider/guide.md +22 -0
  676. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/account-remote-provider/guide.zh.md +22 -0
  677. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/archive-worktrees/guide.i18n.yaml +16 -0
  678. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/archive-worktrees/guide.md +21 -0
  679. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/archive-worktrees/guide.zh.md +21 -0
  680. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/attachment-error-codes/guide.i18n.yaml +16 -0
  681. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/attachment-error-codes/guide.md +23 -0
  682. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/attachment-error-codes/guide.zh.md +23 -0
  683. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-ax-read-limits/guide.i18n.yaml +16 -0
  684. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-ax-read-limits/guide.md +20 -0
  685. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-ax-read-limits/guide.zh.md +20 -0
  686. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-hover-ax-only/guide.i18n.yaml +16 -0
  687. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-hover-ax-only/guide.md +18 -0
  688. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-hover-ax-only/guide.zh.md +18 -0
  689. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-native-platform/guide.i18n.yaml +16 -0
  690. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-native-platform/guide.md +23 -0
  691. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/cua-native-platform/guide.zh.md +23 -0
  692. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/dsh-doc-skill/guide.i18n.yaml +16 -0
  693. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/dsh-doc-skill/guide.md +35 -0
  694. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/dsh-doc-skill/guide.zh.md +35 -0
  695. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-change-request-overview/guide.i18n.yaml +16 -0
  696. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-change-request-overview/guide.md +26 -0
  697. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-change-request-overview/guide.zh.md +26 -0
  698. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-pinned-diff/guide.i18n.yaml +16 -0
  699. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-pinned-diff/guide.md +26 -0
  700. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-pinned-diff/guide.zh.md +26 -0
  701. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-review-reads/guide.i18n.yaml +16 -0
  702. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-review-reads/guide.md +19 -0
  703. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/forge-review-reads/guide.zh.md +19 -0
  704. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/package-export-cleanup/guide.i18n.yaml +16 -0
  705. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/package-export-cleanup/guide.md +26 -0
  706. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/package-export-cleanup/guide.zh.md +26 -0
  707. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/plugin-update-method/guide.i18n.yaml +16 -0
  708. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/plugin-update-method/guide.md +22 -0
  709. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/plugin-update-method/guide.zh.md +22 -0
  710. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-bootstrap-protocol/guide.i18n.yaml +16 -0
  711. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-bootstrap-protocol/guide.md +25 -0
  712. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-bootstrap-protocol/guide.zh.md +25 -0
  713. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-inspect-output/guide.i18n.yaml +16 -0
  714. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-inspect-output/guide.md +48 -0
  715. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-inspect-output/guide.zh.md +48 -0
  716. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-scoped-repl-default/guide.i18n.yaml +16 -0
  717. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-scoped-repl-default/guide.md +45 -0
  718. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/ptc-scoped-repl-default/guide.zh.md +45 -0
  719. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/runtime-context-reminders/guide.i18n.yaml +16 -0
  720. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/runtime-context-reminders/guide.md +19 -0
  721. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/runtime-context-reminders/guide.zh.md +19 -0
  722. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/session-append-overloads/guide.i18n.yaml +16 -0
  723. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/session-append-overloads/guide.md +17 -0
  724. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/session-append-overloads/guide.zh.md +17 -0
  725. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/subagent-interrupt-default/guide.i18n.yaml +16 -0
  726. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/subagent-interrupt-default/guide.md +27 -0
  727. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/subagent-interrupt-default/guide.zh.md +27 -0
  728. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/terminal-backend-cleanup-error/guide.i18n.yaml +16 -0
  729. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/terminal-backend-cleanup-error/guide.md +20 -0
  730. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/terminal-backend-cleanup-error/guide.zh.md +20 -0
  731. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/terminal-bundle-sidebar-backend/guide.i18n.yaml +16 -0
  732. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/terminal-bundle-sidebar-backend/guide.md +19 -0
  733. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/terminal-bundle-sidebar-backend/guide.zh.md +19 -0
  734. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/web-search-billing/guide.i18n.yaml +16 -0
  735. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/web-search-billing/guide.md +41 -0
  736. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/web-search-billing/guide.zh.md +41 -0
  737. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/window-drag-regions/guide.i18n.yaml +16 -0
  738. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/window-drag-regions/guide.md +21 -0
  739. package/references/official-docs/docs/upgrade-guide/v0.2.2-rc.1/window-drag-regions/guide.zh.md +21 -0
  740. package/references/official-docs/docs/user/develop/basic/publish.i18n.yaml +0 -0
  741. package/references/official-docs/docs/user/develop/basic/publish.md +0 -0
  742. package/references/official-docs/docs/user/develop/basic/publish.zh.md +0 -0
  743. package/references/official-docs/docs/user/develop/framework/events.i18n.yaml +2 -2
  744. package/references/official-docs/docs/user/develop/framework/events.md +1 -1
  745. package/references/official-docs/docs/user/develop/framework/events.zh.md +1 -1
  746. package/references/official-docs/docs/user/develop/practice/dynamic-cordis.i18n.yaml +2 -2
  747. package/references/official-docs/docs/user/develop/practice/dynamic-cordis.md +1 -1
  748. package/references/official-docs/docs/user/develop/practice/dynamic-cordis.zh.md +1 -1
  749. package/references/official-docs/docs/user/develop/practice/llm-adapter.i18n.yaml +2 -2
  750. package/references/official-docs/docs/user/develop/practice/llm-adapter.md +2 -2
  751. package/references/official-docs/docs/user/develop/practice/llm-adapter.zh.md +2 -2
  752. package/references/official-docs/docs/user/guide/desktop-uninstall-cleanup.i18n.yaml +16 -0
  753. package/references/official-docs/docs/user/guide/desktop-uninstall-cleanup.md +60 -0
  754. package/references/official-docs/docs/user/guide/desktop-uninstall-cleanup.zh.md +60 -0
  755. package/references/official-docs/docs/user/guide/index.i18n.yaml +2 -2
  756. package/references/official-docs/docs/user/guide/index.md +1 -0
  757. package/references/official-docs/docs/user/guide/index.zh.md +1 -0
  758. package/references/official-docs/docs/user/guide/network-proxy.i18n.yaml +2 -2
  759. package/references/official-docs/docs/user/guide/network-proxy.md +1 -1
  760. package/references/official-docs/docs/user/guide/network-proxy.zh.md +1 -1
  761. package/references/official-docs/docs/user/guide/plugin-market.i18n.yaml +24 -24
  762. package/references/official-docs/docs/user/guide/plugin-market.md +15 -13
  763. package/references/official-docs/docs/user/guide/plugin-market.zh.md +15 -13
  764. package/references/official-docs/docs/user/guide/providers.i18n.yaml +10 -10
  765. package/references/official-docs/docs/user/guide/providers.md +8 -4
  766. package/references/official-docs/docs/user/guide/providers.zh.md +8 -4
  767. package/references/official-docs/docs/user/guide/public-deployments.i18n.yaml +0 -0
  768. package/references/official-docs/docs/user/guide/public-deployments.md +0 -0
  769. package/references/official-docs/docs/user/guide/public-deployments.zh.md +0 -0
  770. package/references/official-docs/docs/user/guide/python-sdk.i18n.yaml +9 -6
  771. package/references/official-docs/docs/user/guide/python-sdk.md +17 -2
  772. package/references/official-docs/docs/user/guide/python-sdk.zh.md +17 -2
  773. package/references/official-docs/docs/user/guide/schedule.i18n.yaml +16 -16
  774. package/references/official-docs/docs/user/guide/schedule.md +45 -26
  775. package/references/official-docs/docs/user/guide/schedule.zh.md +45 -26
  776. package/references/official-docs/docs/web-styling.i18n.yaml +8 -2
  777. package/references/official-docs/docs/web-styling.md +20 -2
  778. package/references/official-docs/docs/web-styling.zh.md +20 -2
  779. package/references/official-docs/packages/AGENTS.md +0 -0
  780. package/references/official-docs/packages/README.md +3 -2
  781. package/references/official-docs/vendor/README.md +39 -45
  782. package/references/official-docs/website-docs.ts +9 -1
  783. package/references/sources.md +1 -1
  784. package/scripts/check-facts.mjs +32 -25
  785. package/scripts/check-readme-parity.mjs +2 -2
  786. package/scripts/check-readme-sync.mjs +23 -16
  787. package/scripts/gen-readme-assets.py +528 -0
  788. package/scripts/verify-kit.ps1 +2 -2
  789. package/README-es.md +0 -456
  790. package/README-hi.md +0 -456
  791. package/README-pt.md +0 -456
  792. package/README-zh.md +0 -458
  793. package/references/official-docs/docs/subsystems/office-to-pdf.i18n.yaml +0 -19
  794. package/references/official-docs/docs/subsystems/office-to-pdf.md +0 -87
  795. package/references/official-docs/docs/subsystems/office-to-pdf.zh.md +0 -87
@@ -0,0 +1,1975 @@
1
+ # Forges
2
+
3
+ English | [中文](forge.zh.md)
4
+
5
+ The experimental forge capability seam reads change requests, meaning pull requests and merge requests, from code hosts. [`dsh-experimental-forge`](../../packages/experimental/forge/README.md) is the Service Definition and provides `ctx.forge`; [`dsh-experimental-forge-github`](../../packages/experimental/forge-github/README.md) is the Service Provider for GitHub hosts; [`dsh-experimental-forge-session`](../../packages/experimental/forge-session/README.md) is the Consumer that binds change requests to Sessions and provides `ctx.forgeSession`; [`dsh-experimental-client-ui-forge`](../../packages/experimental/client-ui-forge/README.md) is the GUI Consumer that provides `ctx.forgePanel`. The default-disabled [forge bundle](../../packages/experimental/forge-bundle/README.md) composes all four, with the [worktree model tool](../../packages/experimental/tool-worktree/README.md) and one shared [worktree service](../../packages/experimental/worktree/README.md), from the Plugins page; otherwise they load only through explicit composition.
6
+
7
+ ## Providers and change requests
8
+
9
+ A provider serves one forge family, such as `github`. It maps Git remote URLs to repositories and change request URLs to references, builds canonical change request URLs, finds open change requests by head branch, and reads status in batches. `changeRequestKey` derives one case-insensitive key from a reference, so watchers of differently spelled URLs share one polling loop.
10
+
11
+ ```ts type-equiv
12
+ /** One repository on a code host, identified the way its provider addresses it. */
13
+ interface ForgeRepository {
14
+ /** Provider family that serves the repository, such as `github`. */
15
+ readonly forge: string
16
+ /** Lowercase host name, such as `github.com`. */
17
+ readonly host: string
18
+ /** Owner or namespace path as the host spells it. */
19
+ readonly owner: string
20
+ /** Repository name as the host spells it. */
21
+ readonly name: string
22
+ }
23
+ ```
24
+
25
+ ```ts type-equiv
26
+ /** One change request (pull request or merge request) in a repository. */
27
+ interface ChangeRequestRef {
28
+ /** Repository that holds the change request. */
29
+ readonly repository: ForgeRepository
30
+ /** Host-assigned change request number. */
31
+ readonly number: number
32
+ }
33
+ ```
34
+
35
+ ```ts type-equiv
36
+ /** Canonical identity of a change request across providers; built by `changeRequestKey`. */
37
+ type ChangeRequestKey = Branded<'ChangeRequestKey'>
38
+ ```
39
+
40
+ ```ts type-equiv
41
+ /**
42
+ * Host-specific access registered with `ctx.forge`. One provider serves one
43
+ * forge family; methods that take a signal must stop work when it aborts.
44
+ */
45
+ interface ForgeProvider {
46
+ /** Forge family name stored in every repository this provider returns. */
47
+ readonly forge: string
48
+ /** Publish a comment or completed review. Omission declares that this provider cannot write reviews. */
49
+ submitReview?(ref: ChangeRequestRef, request: ForgeReviewRequest, signal: AbortSignal): Promise<ForgeReviewResult>
50
+ /**
51
+ * Read the review threads of a change request at head commit `headSha`. The threads are returned only when the
52
+ * read names `headSha` as the head; once the head is another commit, the read resolves to a `stale` failure.
53
+ * Omission declares that this provider cannot read reviews.
54
+ */
55
+ readReview?(ref: ChangeRequestRef, headSha: string, signal: AbortSignal): Promise<ForgeReviewData | ForgeFailure>
56
+ /**
57
+ * Write to the review threads or the pending review of a change request while its head is `write.headSha`; once the
58
+ * head is another commit, the write resolves to `stale` without writing. A write is never retried. Omission declares
59
+ * that this provider cannot write reviews, and its `readReview` then reports no viewer permission.
60
+ */
61
+ writeReview?(ref: ChangeRequestRef, write: ForgeReviewWrite, signal: AbortSignal): Promise<ForgeReviewWriteResult>
62
+ /** Map a Git remote URL to its repository, or undefined when this provider does not serve it. */
63
+ repositoryFromRemote(url: string): ForgeRepository | undefined
64
+ /** Map a change request web URL to its reference, or undefined when this provider does not serve it. */
65
+ changeRequestFromUrl(url: string): ChangeRequestRef | undefined
66
+ /** Build the canonical web URL of a change request this provider serves. */
67
+ changeRequestUrl(ref: ChangeRequestRef): string
68
+ /** Read the status of several change requests, returning one result per requested key. */
69
+ fetch(
70
+ refs: readonly ChangeRequestRef[],
71
+ signal: AbortSignal,
72
+ ): Promise<ReadonlyMap<ChangeRequestKey, ChangeRequestSnapshot | ForgeFailure>>
73
+ /** Read all checks for one change request on demand; omission declares that only the polling preview is available. */
74
+ fetchChecks?(ref: ChangeRequestRef, signal: AbortSignal): Promise<ChangeRequestSnapshot | ForgeFailure>
75
+ /** Find open change requests whose head is `branch` in `repository`, excluding the default branch and forks. */
76
+ findByHead(repository: ForgeRepository, branch: string, signal: AbortSignal): Promise<readonly ChangeRequestRef[]>
77
+ /** Report whether the provider can reach `host` with current credentials. */
78
+ readiness(host: string, signal: AbortSignal): Promise<ForgeReadiness>
79
+ /** Mark a draft change request ready for review, resolving to undefined once the host accepted it. */
80
+ markReady(ref: ChangeRequestRef, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
81
+ /** Merge a change request while its head is still `request.headSha`, resolving to undefined once merged. */
82
+ merge(ref: ChangeRequestRef, request: MergeRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
83
+ /**
84
+ * Read the changes of a change request at head commit `headSha` as the host computes them, as one unified
85
+ * patch with `a/` and `b/` path prefixes. A patch is returned only when it describes `headSha`; once the
86
+ * head is another commit, the read resolves to a `stale` failure. `base`, when given, is the `baseSha` the
87
+ * latest status recorded with `headSha`; a provider may start reading from it before it confirms the head.
88
+ */
89
+ diff(ref: ChangeRequestRef, headSha: string, signal: AbortSignal, base?: string): Promise<string | ForgeFailure>
90
+ /** Read the text of `path` at `commit` in the change request's repository. */
91
+ fileText(ref: ChangeRequestRef, commit: string, path: string, signal: AbortSignal): Promise<string | ForgeFailure>
92
+ /** Build the web page of `path` at `commit` in the change request's repository. */
93
+ fileUrl(ref: ChangeRequestRef, commit: string, path: string): string
94
+ /**
95
+ * List the commits of a change request at its current head. A provider implements `commits` and `compare`
96
+ * together; omitting either declares that the change request can be read only as a whole.
97
+ */
98
+ commits?(ref: ChangeRequestRef, signal: AbortSignal): Promise<ForgeCommitList | ForgeFailure>
99
+ /**
100
+ * Read the changes from commit `base` to commit `head` in the change request's repository, as one unified patch
101
+ * with `a/` and `b/` path prefixes. Both are full object names; `head` descends from `base`.
102
+ */
103
+ compare?(ref: ChangeRequestRef, base: string, head: string, signal: AbortSignal): Promise<string | ForgeFailure>
104
+ /**
105
+ * Read the signed-in user's viewed marks on the change request's files at head commit `headSha`. The marks are
106
+ * returned only when the read names `headSha` as the head; once the head is another commit, the read resolves to a
107
+ * `stale` failure. A provider implements `viewedFiles` and `setViewed` together; omitting either declares that the
108
+ * host keeps no viewed marks.
109
+ */
110
+ viewedFiles?(ref: ChangeRequestRef, headSha: string, signal: AbortSignal): Promise<ForgeViewedFiles | ForgeFailure>
111
+ /**
112
+ * Set or clear the signed-in user's viewed mark on one file while the head is still `request.headSha`, resolving to
113
+ * undefined once the host saved it.
114
+ */
115
+ setViewed?(ref: ChangeRequestRef, request: ForgeViewedRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
116
+ /**
117
+ * Rerun the failed checks of the head commit that name a `rerun` none of whose checks is pending, while the head is
118
+ * still `request.headSha`, resolving to undefined once the host accepted every rerun. Omission declares that the
119
+ * provider reruns no checks, and its snapshots then name none.
120
+ */
121
+ rerunChecks?(ref: ChangeRequestRef, request: ForgeRerunRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
122
+ /**
123
+ * Request reviews from more reviewers, resolving to undefined once the host accepted the request. A provider implements
124
+ * `requestReviews` and `reviewerCandidates` together; omitting either declares that it requests no reviews, and its
125
+ * snapshots then deny `canRequestReviews`.
126
+ */
127
+ requestReviews?(ref: ChangeRequestRef, request: ForgeReviewersRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
128
+ /** List accounts whose login or name matches `query`, the host's suggestions first, for a review request. */
129
+ reviewerCandidates?(ref: ChangeRequestRef, query: string, signal: AbortSignal): Promise<readonly ForgeReviewerCandidate[] | ForgeFailure>
130
+ /**
131
+ * Bring the base branch's new commits into the head branch while its head is still `request.headSha`, resolving to
132
+ * undefined once the host accepted the update. Omission declares that the provider updates no branches, and its
133
+ * snapshots then offer no `branchUpdates`.
134
+ */
135
+ updateBranch?(ref: ChangeRequestRef, request: BranchUpdateRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
136
+ }
137
+ ```
138
+
139
+ ```ts type-equiv
140
+ /** One commit of a change request. */
141
+ interface ForgeCommit {
142
+ /** Full commit object name. */
143
+ readonly sha: string
144
+ /** Full object name of the first parent, or null for a root commit. */
145
+ readonly parent: string | null
146
+ /** First line of the commit message. */
147
+ readonly title: string
148
+ /** Author name or login as the host reports it, or null when it reports none. */
149
+ readonly author: string | null
150
+ /** ISO 8601 time the commit was authored. */
151
+ readonly authoredAt: string
152
+ }
153
+ ```
154
+
155
+ ```ts type-equiv
156
+ /** The commits of a change request at one head commit. */
157
+ interface ForgeCommitList {
158
+ /** Head commit the list was read at. */
159
+ readonly headSha: string
160
+ /** Commits oldest first, ending with the head commit unless `truncated`. */
161
+ readonly commits: readonly ForgeCommit[]
162
+ /** Whether the change request has more commits than the provider lists; the listed ones are the oldest. */
163
+ readonly truncated: boolean
164
+ }
165
+ ```
166
+
167
+ `ctx.forge.commits` and `ctx.forge.compare` delegate to a provider that implements both; otherwise `commits` resolves to undefined and `compare` to an `unavailable` failure, so the forge panel offers its commit picker only where the provider reads commits.
168
+
169
+ ```ts type-equiv
170
+ /** Whether a provider can reach one host with the current credentials. */
171
+ interface ForgeReadiness {
172
+ /** `ready`, `unauthenticated` (sign-in needed), or `unavailable` (tool missing or host unreachable). */
173
+ readonly state: 'ready' | 'unauthenticated' | 'unavailable'
174
+ /** Human-readable detail, or null when ready. */
175
+ readonly message: string | null
176
+ }
177
+ ```
178
+
179
+ ## Status polling
180
+
181
+ `ctx.forge.watch` shares one polling loop among the watchers of a change request and delivers every result as an update. Each forge has at most one fetch in flight. The [registry README](../../packages/experimental/forge/README.md#use-this-package) owns the poll cadence, backoff, and timeout rules.
182
+
183
+ ```ts type-equiv
184
+ /** Lifecycle state of a change request. */
185
+ type ChangeRequestState = 'open' | 'closed' | 'merged'
186
+ ```
187
+
188
+ ```ts type-equiv
189
+ /** Normalized outcome of one status check. */
190
+ type CheckState = 'pending' | 'success' | 'failure' | 'neutral' | 'skipped' | 'cancelled'
191
+ ```
192
+
193
+ ```ts type-equiv
194
+ /** One status check reported for the head commit of a change request. */
195
+ interface ChangeRequestCheck {
196
+ /** Check name as the host displays it. */
197
+ readonly name: string
198
+ /** Normalized check outcome. */
199
+ readonly state: CheckState
200
+ /** Web page for the check, or null when the host reports none. */
201
+ readonly url: string | null
202
+ /** Workflow that produced the check, or null when the host reports none. */
203
+ readonly workflow: string | null
204
+ /** ISO 8601 time the check started, or null before it starts and when the host reports none. */
205
+ readonly startedAt: string | null
206
+ /** ISO 8601 time the check completed, or null while it runs and when the host reports none. */
207
+ readonly completedAt: string | null
208
+ /**
209
+ * Identity a rerun of this check names, or null when the provider cannot rerun it, as for a commit status. Checks that
210
+ * name one identity rerun together, and their failed checks can be rerun once none of them is pending.
211
+ */
212
+ readonly rerun: ForgeCheckId | null
213
+ }
214
+ ```
215
+
216
+ ```ts type-equiv
217
+ /** Combined outcome of all checks on the head commit. */
218
+ type ChecksRollup = 'none' | 'pending' | 'success' | 'failure'
219
+ ```
220
+
221
+ ```ts type-equiv
222
+ /** Whether the change request can merge into its base without conflicts. */
223
+ type Mergeability = 'mergeable' | 'conflicting' | 'unknown'
224
+ ```
225
+
226
+ ```ts type-equiv
227
+ /** Aggregate review outcome required by the host's merge rules. */
228
+ type ReviewDecision = 'approved' | 'changes-requested' | 'review-required' | 'none'
229
+ ```
230
+
231
+ ```ts type-equiv
232
+ /** Status of one change request at the time its provider read it. */
233
+ interface ChangeRequestSnapshot {
234
+ /** Change request the snapshot describes. */
235
+ readonly ref: ChangeRequestRef
236
+ /** Web page of the change request. */
237
+ readonly url: string
238
+ /** Title as the author wrote it. */
239
+ readonly title: string
240
+ /** Lifecycle state. */
241
+ readonly state: ChangeRequestState
242
+ /** Whether the author marked the change request as a draft. */
243
+ readonly draft: boolean
244
+ /** Author login, or null when the host hides it. */
245
+ readonly author: string | null
246
+ /** Branch that carries the proposed commits. */
247
+ readonly headBranch: string
248
+ /** Commit object name at the head of the change request. */
249
+ readonly headSha: string
250
+ /** Branch the change request merges into. */
251
+ readonly baseBranch: string
252
+ /**
253
+ * Base commit the host recorded with `headSha`, whose merge base with the head starts the change request's diff;
254
+ * omitted when the provider does not report it.
255
+ */
256
+ readonly baseSha?: string
257
+ /** Lines the change request adds. */
258
+ readonly additions: number
259
+ /** Lines the change request deletes. */
260
+ readonly deletions: number
261
+ /** Merge conflict status; `unknown` while the host computes it. */
262
+ readonly mergeability: Mergeability
263
+ /**
264
+ * Whether the host would merge the change request now for the signed-in
265
+ * user: open, not a draft, and meeting the base branch's merge rules.
266
+ */
267
+ readonly mergeReady: boolean
268
+ /** Merge methods the repository accepts, the signed-in user's usual one first. */
269
+ readonly mergeMethods: readonly MergeMethod[]
270
+ /**
271
+ * Ways the signed-in user can bring the base branch's new commits into the head branch now; empty while the head is
272
+ * up to date, while the branches conflict, when the user cannot update the head branch, or when the provider cannot,
273
+ * so a head behind its base cannot be told apart from a current one for a user without the right to update it.
274
+ */
275
+ readonly branchUpdates: readonly BranchUpdateMethod[]
276
+ /** Aggregate review outcome. */
277
+ readonly reviewDecision: ReviewDecision
278
+ /** Reviewers whose review is requested, in host order, then other accounts that reviewed, each once; the author is never listed. */
279
+ readonly reviewers: readonly ChangeRequestReviewer[]
280
+ /** Whether the host reported more review requests or reviews than the provider read, so `reviewers` may be incomplete. */
281
+ readonly reviewersTruncated: boolean
282
+ /** Whether the signed-in user may request reviews of the change request through its provider. */
283
+ readonly canRequestReviews: boolean
284
+ /** Checks on the head commit in host order. */
285
+ readonly checks: readonly ChangeRequestCheck[]
286
+ /** Combined check outcome. */
287
+ readonly checksRollup: ChecksRollup
288
+ /** Whether the host reported more checks than `checks` contains. */
289
+ readonly checksTruncated: boolean
290
+ /** Whether the signed-in user may rerun the failed checks that name a `rerun`. */
291
+ readonly canRerunChecks: boolean
292
+ /** Number of counted review threads that are not resolved. */
293
+ readonly unresolvedThreads: number
294
+ /** Whether the change request has more review threads than the provider counted, so `unresolvedThreads` is a lower bound. */
295
+ readonly threadsTruncated: boolean
296
+ /** Issues linked to the change request, which the host closes once it merges, in host order. */
297
+ readonly closingIssues: readonly ChangeRequestIssue[]
298
+ /** Whether the host reported more closing issues than `closingIssues` holds. */
299
+ readonly closingIssuesTruncated: boolean
300
+ /** ISO 8601 time of the host's last update to the change request. */
301
+ readonly updatedAt: string
302
+ /** ISO 8601 time the change request was merged or closed, or null while it is open. */
303
+ readonly closedAt: string | null
304
+ }
305
+ ```
306
+
307
+ ```ts type-equiv
308
+ /** Why a provider could not read a change request. */
309
+ interface ForgeFailure {
310
+ /**
311
+ * `not-found`: the host does not expose it; `unauthenticated`: credentials are missing or rejected;
312
+ * `too-large`: the host or the provider refuses an answer over its size limit, so reading again fails
313
+ * the same way; `stale`: the head is no longer the commit the read named, so reading again at the head of
314
+ * a later status can succeed; `unsupported`: the provider does not offer the read; `unavailable`: any other failure.
315
+ */
316
+ readonly code: 'not-found' | 'unauthenticated' | 'too-large' | 'stale' | 'unsupported' | 'unavailable'
317
+ /** Human-readable cause. */
318
+ readonly message: string
319
+ }
320
+ ```
321
+
322
+ ```ts type-equiv
323
+ /** Latest polling result delivered to watchers of one change request. */
324
+ type ChangeRequestUpdate = {
325
+ /** Canonical identity of the watched change request. */
326
+ readonly key: ChangeRequestKey
327
+ /** Epoch milliseconds when the result settled. */
328
+ readonly fetchedAt: number
329
+ } & ({
330
+ /** Status read from the host. */
331
+ readonly snapshot: ChangeRequestSnapshot
332
+ } | {
333
+ /** Reason the status could not be read. */
334
+ readonly failure: ForgeFailure
335
+ })
336
+ ```
337
+
338
+ ```ts type-equiv
339
+ /**
340
+ * Receives every polling result for one watched change request.
341
+ * @param update - the settled result.
342
+ */
343
+ type ChangeRequestListener = (update: ChangeRequestUpdate) => void
344
+ ```
345
+
346
+ ## Change request actions
347
+
348
+ `ctx.forge.markReady` marks a draft ready for review, and `ctx.forge.merge` merges a change request only while its head is still the commit the user confirmed. Both resolve to a `ForgeActionFailure` instead of throwing when the host refuses, and poll a watched change request at once afterwards. A snapshot's `mergeReady` and `mergeMethods` tell a consumer when to offer a merge and with which methods; the [GitHub provider README](../../packages/experimental/forge-github/README.md#use-this-package) owns how GitHub answers both.
349
+
350
+ ```ts type-equiv
351
+ /** A merge the user confirmed for the head commit they saw. */
352
+ interface MergeRequest {
353
+ /** How the commits enter the base branch. */
354
+ readonly method: MergeMethod
355
+ /** Commit object name the head must still have; the merge is refused once the head moves. */
356
+ readonly headSha: string
357
+ }
358
+ ```
359
+
360
+ ```ts type-equiv
361
+ /** Why a provider could not change a change request, or could not confirm that it did. */
362
+ interface ForgeActionFailure {
363
+ /**
364
+ * `unauthenticated`: credentials are missing or rejected; `stale`: the head
365
+ * moved past the confirmed commit; `failed`: the host refused or could not be reached, so nothing changed;
366
+ * `unknown`: the request reached the host but its answer did not confirm the outcome, so the change may have been
367
+ * applied and must be checked on the host before it is tried again.
368
+ */
369
+ readonly code: 'unauthenticated' | 'stale' | 'failed' | 'unknown'
370
+ /** Human-readable cause, usually the host's own message. */
371
+ readonly message: string
372
+ }
373
+ ```
374
+
375
+ `ctx.forge.submitReview` delegates an explicit comment or completed review to the provider. A provider that omits this capability returns unsupported. Consumers reconcile unknown write outcomes before resubmitting; comments kept for a later review go to the code host's pending review through `ctx.forge.writeReview`.
376
+
377
+ ```ts type-equiv
378
+ /** One inline comment addressed to the old or new side of a pull request diff. */
379
+ interface ForgeLineComment {
380
+ readonly path: string
381
+ readonly side: 'L' | 'R'
382
+ readonly startLine: number
383
+ readonly endLine: number
384
+ readonly body: string
385
+ }
386
+ ```
387
+
388
+ ```ts type-equiv
389
+ /** A single published comment or one completed review containing all pending comments. */
390
+ type ForgeReviewRequest = {
391
+ /** Commit the user reviewed; providers must check it before writing and address that commit explicitly. */
392
+ readonly headSha: string
393
+ } & (
394
+ | { readonly kind: 'comment'; readonly comment: ForgeLineComment }
395
+ | { readonly kind: 'review'; readonly event: ForgeReviewEvent; readonly body: string; readonly comments: readonly ForgeLineComment[] }
396
+ )
397
+ ```
398
+
399
+ ```ts type-equiv
400
+ /** Result of a review submission; unknown outcomes must be checked on the host before another submission. */
401
+ type ForgeReviewResult =
402
+ | { readonly ok: true; readonly url: string }
403
+ | { readonly ok: false; readonly code: 'unsupported' | 'stale' | 'failed' | 'unknown'; readonly message: string }
404
+ ```
405
+
406
+ ## Review threads
407
+
408
+ `ctx.forge.readReview(ref, headSha, signal)` reads the review threads of a change request at one head commit. The provider returns `ForgeReviewData` only when the read names `headSha` as the head; otherwise it returns `stale`, which polls a watched change request again at once, as a stale diff read does. For a provider without `readReview` the service returns `unsupported`, so consumers show no threads instead of a failure. A line thread has two positions: `original` on the commit it was written on, and `current` on the head of the read, which is null once the host no longer places the thread on that commit. A consumer that shows the head's diff places a thread at `current` and shows the others with their `diffHunk`; reading the file at `original.commit` through `fileText` shows the whole file the thread was written on. The [GitHub provider README](../../packages/experimental/forge-github/README.md#use-this-package) owns how GitHub's fields map onto these positions.
409
+
410
+ ```ts type-equiv
411
+ /** Opaque host identity of one review thread. */
412
+ type ForgeThreadId = Branded<'ForgeThreadId'>
413
+ ```
414
+
415
+ ```ts type-equiv
416
+ /** Opaque host identity of one review comment. */
417
+ type ForgeCommentId = Branded<'ForgeCommentId'>
418
+ ```
419
+
420
+ ```ts type-equiv
421
+ /** Consecutive lines on one side of a diff whose new side is one commit. */
422
+ interface ForgeAnchor {
423
+ /**
424
+ * Full object name of the commit the diff's new side shows: new-side (`R`) lines number this commit's file, and
425
+ * old-side (`L`) lines number the file at the diff's base.
426
+ */
427
+ readonly commit: string
428
+ /** First line, inclusive. */
429
+ readonly startLine: number
430
+ /** Last line, inclusive. */
431
+ readonly endLine: number
432
+ }
433
+ ```
434
+
435
+ ```ts type-equiv
436
+ /** Account that wrote a review comment. */
437
+ interface ForgeCommentAuthor {
438
+ /** Login as the host spells it. */
439
+ readonly login: string
440
+ /** Avatar image URL, or null when the host reports none. */
441
+ readonly avatarUrl: string | null
442
+ /** Whether the account is an app or bot rather than a person. */
443
+ readonly bot: boolean
444
+ }
445
+ ```
446
+
447
+ ```ts type-equiv
448
+ /** One comment of a review thread. */
449
+ interface ForgeReviewComment {
450
+ /** Host identity of the comment. */
451
+ readonly id: ForgeCommentId
452
+ /** Author, or null when the account no longer exists. */
453
+ readonly author: ForgeCommentAuthor | null
454
+ /** Markdown source as the author wrote it; it may contain raw HTML, which readers must not render as HTML. */
455
+ readonly body: string
456
+ /** ISO 8601 time the comment was created. */
457
+ readonly createdAt: string
458
+ /** Whether the comment belongs to the signed-in user's review that is not submitted yet, which only that user sees. */
459
+ readonly pending: boolean
460
+ /** Web page of the comment, or null when the host reports none. */
461
+ readonly url: string | null
462
+ /** Whether the signed-in user can replace the comment's text through `writeReview`; false for a provider without it. */
463
+ readonly viewerCanEdit: boolean
464
+ /** Whether the signed-in user can delete the comment through `writeReview`; false for a provider without it. */
465
+ readonly viewerCanDelete: boolean
466
+ }
467
+ ```
468
+
469
+ ```ts type-equiv
470
+ /**
471
+ * One review thread on a file of a change request. A line thread has two positions: `original` on the commit it was
472
+ * written on, and `current` on the head commit of the read. `current` is null once the host no longer places the
473
+ * thread on the head commit, as after later commits changed its lines.
474
+ */
475
+ interface ForgeReviewThread {
476
+ /** Host identity of the thread. */
477
+ readonly id: ForgeThreadId
478
+ /** Repository-relative path the thread is on. */
479
+ readonly path: string
480
+ /** Old (`L`) or new (`R`) side of the diff the lines number. */
481
+ readonly side: 'L' | 'R'
482
+ /** Whether the thread is on lines or on the whole file. */
483
+ readonly subject: 'line' | 'file'
484
+ /** 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. */
485
+ readonly current: ForgeAnchor | null
486
+ /** Lines in the diff that ended at the commit the thread was written on; null for a file thread. */
487
+ readonly original: ForgeAnchor | null
488
+ /** Diff hunk the host recorded when the thread was written, ending at its last line; null when it recorded none. */
489
+ readonly diffHunk: string | null
490
+ /** Whether the thread is marked resolved. */
491
+ readonly resolved: boolean
492
+ /** Whether the signed-in user can reply to the thread through `writeReview`; false for a provider without it. */
493
+ readonly viewerCanReply: boolean
494
+ /**
495
+ * Whether the signed-in user can mark the thread resolved, or unresolved when `resolved`, through `writeReview`; false
496
+ * for a provider without it.
497
+ */
498
+ readonly viewerCanResolve: boolean
499
+ /** Comments oldest first; the first starts the thread. */
500
+ readonly comments: readonly ForgeReviewComment[]
501
+ }
502
+ ```
503
+
504
+ ```ts type-equiv
505
+ /** Review threads of a change request read at one head commit. */
506
+ interface ForgeReviewData {
507
+ /** Head commit the threads were read at; `current` positions number its files. */
508
+ readonly headSha: string
509
+ /** Login of the signed-in user the provider read as, or null when the host does not name one. */
510
+ readonly viewer: string | null
511
+ /** Threads in host order, at most the provider's limit. */
512
+ readonly threads: readonly ForgeReviewThread[]
513
+ /** Whether the change request has more threads than `threads` holds. */
514
+ readonly truncated: boolean
515
+ /** The signed-in user's pending review, or null without one. */
516
+ readonly pendingReview: ForgePendingReview | null
517
+ /**
518
+ * Whether the signed-in user can add comments to a pending review and submit or discard it through `writeReview`;
519
+ * false for a provider without it.
520
+ */
521
+ readonly viewerCanReview: boolean
522
+ }
523
+ ```
524
+
525
+ `ctx.forge.writeReview(ref, write, signal)` writes to the review threads and the signed-in user's pending review: a reply, at once or with `pending` inside the pending review; resolving or unresolving a thread; editing or deleting a comment; a line comment at the head added to the pending review; and submitting or discarding the pending review. A pending reply or comment starts a pending review when the user has none. Every write carries the head commit the user saw; the provider checks it first and returns `stale` without writing once the head moved, which polls a watched change request as a stale read does, and the service polls a watched change request at once after any other result. Writes are never retried, and an `unknown` result must be checked on the host before the write is tried again. For a provider without `writeReview` the service returns `unsupported`. `ForgeReviewData` carries the pending review and the user's permissions for each thread, comment, and the pending review, which a provider without `writeReview` reports as absent, so consumers offer only the writes that can succeed. The [GitHub provider README](../../packages/experimental/forge-github/README.md#use-this-package) owns the GraphQL mutations and how their outcomes map onto these results.
526
+
527
+ ```ts type-equiv
528
+ /** Opaque host identity of one review. */
529
+ type ForgeReviewId = Branded<'ForgeReviewId'>
530
+ ```
531
+
532
+ ```ts type-equiv
533
+ /** The signed-in user's review of a change request that is not submitted yet, which only that user sees. */
534
+ interface ForgePendingReview {
535
+ /** Host identity of the review. */
536
+ readonly id: ForgeReviewId
537
+ /** Comments the review holds. */
538
+ readonly comments: number
539
+ }
540
+ ```
541
+
542
+ ```ts type-equiv
543
+ /** Decision a submitted review records. */
544
+ type ForgeReviewEvent = 'comment' | 'approve' | 'request-changes'
545
+ ```
546
+
547
+ ```ts type-equiv
548
+ /**
549
+ * One write to the review threads and the pending review of a change request. `pending` replies and `add-pending`
550
+ * comments join the signed-in user's pending review, which is started when the user has none. A host that adds every
551
+ * reply to an existing pending review, as GitHub does, refuses a reply with `pending: false` while one exists.
552
+ */
553
+ type ForgeReviewWrite = {
554
+ /** Head commit the user saw; providers check it before writing and refuse with `stale` once the head is another commit. */
555
+ readonly headSha: string
556
+ } & (
557
+ | { readonly kind: 'reply'; readonly thread: ForgeThreadId; readonly body: string; readonly pending: boolean }
558
+ | { readonly kind: 'resolve'; readonly thread: ForgeThreadId; readonly resolved: boolean }
559
+ | { readonly kind: 'edit-comment'; readonly comment: ForgeCommentId; readonly body: string }
560
+ /** Deleting the only comment of a thread deletes the thread. */
561
+ | { readonly kind: 'delete-comment'; readonly comment: ForgeCommentId }
562
+ /** A comment on lines of `headSha`. */
563
+ | { readonly kind: 'add-pending'; readonly comment: ForgeLineComment }
564
+ | { readonly kind: 'submit-pending'; readonly review: ForgeReviewId; readonly event: ForgeReviewEvent; readonly body: string }
565
+ /** Delete the pending review with every comment it holds. */
566
+ | { readonly kind: 'discard-pending'; readonly review: ForgeReviewId }
567
+ )
568
+ ```
569
+
570
+ ```ts type-equiv
571
+ /** Result of a review write; an `unknown` outcome must be checked on the host before the write is tried again. */
572
+ type ForgeReviewWriteResult =
573
+ | { readonly ok: true }
574
+ | { readonly ok: false; readonly code: 'unsupported' | 'stale' | 'failed' | 'unknown'; readonly message: string }
575
+ ```
576
+
577
+ ## Overview and viewed marks
578
+
579
+ A snapshot also carries the overview of a change request: its `reviewers` with each one's latest verdict, the `closingIssues` the host closes once it merges, the `branchUpdates` that would bring a head behind its base up to date, whether the signed-in user may request reviews or rerun checks, and the `rerun` each check names. `ctx.forge.rerunChecks`, `ctx.forge.requestReviews`, and `ctx.forge.updateBranch` act on it and resolve to a `ForgeActionFailure` as the actions above do, `unknown` when the host's answer did not confirm the outcome, polling a watched change request once the provider answered; a rerun and an update name the head commit the user saw and are refused with `stale` once the head moved. A provider implements `requestReviews` together with `reviewerCandidates`, which `ctx.forge.reviewerCandidates` uses to list the accounts a review can be requested from; an action the provider lacks fails with `failed`, and `reviewerCandidates` returns `unsupported`. The [GitHub provider README](../../packages/experimental/forge-github/README.md#use-this-package) owns how GitHub fills and acts on each field.
580
+
581
+ ```ts type-equiv
582
+ /** Opaque host identity of a status check that a rerun names. */
583
+ type ForgeCheckId = Branded<'ForgeCheckId'>
584
+ ```
585
+
586
+ ```ts type-equiv
587
+ /** How an update brings the base branch's new commits into the head branch: a merge commit, or a rebase of the head's commits. */
588
+ type BranchUpdateMethod = 'merge' | 'rebase'
589
+ ```
590
+
591
+ ```ts type-equiv
592
+ /** Outcome of a reviewer's latest submitted review. */
593
+ type ReviewVerdict = 'approved' | 'changes-requested' | 'commented' | 'dismissed'
594
+ ```
595
+
596
+ ```ts type-equiv
597
+ /** An account or team asked to review a change request, or an account that reviewed it. */
598
+ interface ChangeRequestReviewer {
599
+ /** Whether the reviewer is a person's account, an app or bot account, or a team. */
600
+ readonly kind: 'user' | 'bot' | 'team'
601
+ /** Login, or `organization/slug` for a team. */
602
+ readonly login: string
603
+ /** Avatar image URL, or null when the host reports none. */
604
+ readonly avatarUrl: string | null
605
+ /** Whether a review from the reviewer is requested now. */
606
+ readonly requested: boolean
607
+ /** Whether the host requested the review because the reviewer owns changed paths. */
608
+ readonly codeOwner: boolean
609
+ /** Outcome of the reviewer's latest submitted review, or null before the first. */
610
+ readonly verdict: ReviewVerdict | null
611
+ /** Commit the latest submitted review was on, or null before the first or when the host reports none. */
612
+ readonly reviewedSha: string | null
613
+ }
614
+ ```
615
+
616
+ ```ts type-equiv
617
+ /** One issue linked to a change request, which the host closes once the change request merges. */
618
+ interface ChangeRequestIssue {
619
+ /** Repository that holds the issue. */
620
+ readonly repository: ForgeRepository
621
+ /** Host-assigned issue number. */
622
+ readonly number: number
623
+ /** Title as the author wrote it. */
624
+ readonly title: string
625
+ /** Whether the issue is still open. */
626
+ readonly state: 'open' | 'closed'
627
+ /** Web page of the issue. */
628
+ readonly url: string
629
+ }
630
+ ```
631
+
632
+ ```ts type-equiv
633
+ /** A rerun of the failed checks of the head commit whose checks the user saw. */
634
+ interface ForgeRerunRequest {
635
+ /** Head commit whose checks the user saw; the provider refuses with `stale` once the head is another commit. */
636
+ readonly headSha: string
637
+ }
638
+ ```
639
+
640
+ ```ts type-equiv
641
+ /** Reviewers to ask in addition to those whose review is requested now; one who already reviewed is asked again. */
642
+ interface ForgeReviewersRequest {
643
+ /** The reviewers by kind and login, a team by `organization/slug`. */
644
+ readonly reviewers: readonly Pick<ChangeRequestReviewer, 'kind' | 'login'>[]
645
+ }
646
+ ```
647
+
648
+ ```ts type-equiv
649
+ /** An account a review of the change request can be requested from. */
650
+ interface ForgeReviewerCandidate {
651
+ /** Login as the host spells it. */
652
+ readonly login: string
653
+ /** Display name, or null when the account shows none. */
654
+ readonly name: string | null
655
+ /** Avatar image URL, or null when the host reports none. */
656
+ readonly avatarUrl: string | null
657
+ /** Whether the host suggests the account for this change request, as from the history of its changed files. */
658
+ readonly suggested: boolean
659
+ }
660
+ ```
661
+
662
+ ```ts type-equiv
663
+ /** A branch update the user confirmed for the head commit they saw. */
664
+ interface BranchUpdateRequest {
665
+ /** How the base branch's new commits enter the head branch. */
666
+ readonly method: BranchUpdateMethod
667
+ /** Commit object name the head must still have; the update is refused once the head moves. */
668
+ readonly headSha: string
669
+ }
670
+ ```
671
+
672
+ `ctx.forge.viewedFiles` and `ctx.forge.setViewed` read and change the signed-in user's viewed marks on the files of a change request at one head commit. A provider keeps viewed marks only when it implements both methods; otherwise `viewedFiles` returns undefined and `setViewed` fails, so a consumer keeps marks itself. A `stale` answer polls a watched change request as a stale diff read does.
673
+
674
+ ```ts type-equiv
675
+ /**
676
+ * The signed-in user's review progress on one changed file: `viewed`, `unviewed`, or `dismissed` once the file
677
+ * changed after the user marked it viewed.
678
+ */
679
+ type ForgeViewedState = 'viewed' | 'unviewed' | 'dismissed'
680
+ ```
681
+
682
+ ```ts type-equiv
683
+ /** The signed-in user's viewed marks on the files of a change request, read at one head commit. */
684
+ interface ForgeViewedFiles {
685
+ /** Head commit the marks were read at. */
686
+ readonly headSha: string
687
+ /** State of each changed file the host listed, by repository-relative path. */
688
+ readonly files: Readonly<Record<string, ForgeViewedState>>
689
+ /** Whether the change request has more files than `files` lists. */
690
+ readonly truncated: boolean
691
+ }
692
+ ```
693
+
694
+ ```ts type-equiv
695
+ /** A viewed mark the user set or cleared on a file of the head commit they saw. */
696
+ interface ForgeViewedRequest {
697
+ /** Repository-relative path of the changed file. */
698
+ readonly path: string
699
+ /** Whether the file is viewed. */
700
+ readonly viewed: boolean
701
+ /** Head commit whose changes the user saw; the provider refuses with `stale` once the head is another commit. */
702
+ readonly headSha: string
703
+ }
704
+ ```
705
+
706
+ ## Session bindings
707
+
708
+ `ctx.forgeSession` derives each Session's bindings from its own log: `gh pr create` results bind the URLs they print, `gh pr view`, `gh pr edit`, and `gh pr checkout` calls bind the change request they act on, and `git push` results trigger head-branch discovery through `ctx.forge`; the panel also reports the branch its checkout tracks for the same discovery. Track, dismiss, and discovery actions are `plugin:forge-session/binding` records, which stay outside the model-visible conversation. The `forgeChangeRequests` projection's client view, which the Session summary carries, lists the bindings without their status. The [Session binding README](../../packages/experimental/forge-session/README.md#use-this-package) owns the recognition and discovery rules.
709
+
710
+ ```ts type-equiv
711
+ /**
712
+ * How a change request became bound to a Session: `created` when a
713
+ * `gh pr create` result printed its URL, `referenced` when a `gh pr view`,
714
+ * `gh pr edit`, or `gh pr checkout` call named it or its result printed its
715
+ * own URL, `discovered` when a lookup found it for a branch the Session pushed
716
+ * or works on, `tracked` when a caller bound it by URL.
717
+ */
718
+ type BindingOrigin = 'created' | 'referenced' | 'discovered' | 'tracked'
719
+ ```
720
+
721
+ ```ts type-equiv
722
+ /** Payload of the `plugin:forge-session/binding` record. */
723
+ interface BindingRecord {
724
+ /**
725
+ * `track` binds or restores, `dismiss` hides, `discover` binds a branch lookup,
726
+ * and `reference` binds a CLI selector lookup without restoring dismissed entries.
727
+ */
728
+ readonly action: 'track' | 'dismiss' | 'discover' | 'reference'
729
+ /** Web URL of the change request. */
730
+ readonly url: string
731
+ }
732
+ ```
733
+
734
+ ```ts type-equiv
735
+ /** One change request bound to a Session and not dismissed, with its latest polling result. */
736
+ interface SessionChangeRequest {
737
+ /** Web URL as first recorded. */
738
+ readonly url: string
739
+ /** How the change request became bound. */
740
+ readonly origin: BindingOrigin
741
+ /** Parsed reference, or null when no registered provider serves the URL. */
742
+ readonly ref: ChangeRequestRef | null
743
+ /** Latest polling result, or null before the first poll and without a provider. */
744
+ readonly update: ChangeRequestUpdate | null
745
+ }
746
+ ```
747
+
748
+ ```ts type-equiv
749
+ /**
750
+ * Receives the complete visible list after a binding or provider change, or a polling result.
751
+ * @param changeRequests - every visible binding of the watched Session, in first-recorded order.
752
+ */
753
+ type SessionChangeRequestsListener = (changeRequests: readonly SessionChangeRequest[]) => void
754
+ ```
755
+
756
+ ## Panel
757
+
758
+ `ctx.forgePanel` is the Host Remote of the [forge panel](../../packages/experimental/client-ui-forge/README.md#use-this-package). Following a Session streams a `ForgePanelState`: a read-only Git inspection of the Session's current directory in its execution world, the code host recognized from the upstream remote or `origin`, the sign-in state of that host, the Session's bindings with their polled status and last snapshot, and its worktree request. Its actions list base branches, bind and hide URLs, refresh, mark a bound draft ready or merge a bound change request, request or withdraw a worktree, stop a running creation, and restore a removed worktree or leave it for the source checkout. A request is a `plugin:client-ui-forge/worktree` record. When a message enters a Session's inbox while its Agent is idle, the panel holds the message's turn with maintenance of the [Agent](../../packages/core/agent/README.md), started before the delivery wakes the Agent: it creates the worktree of an open request through `ctx.worktrees` and, after a failed or stopped attempt, waits for another attempt or the request's withdrawal; for a Session that works in its created worktree it checks that worktree and, when it is gone, waits until it is restored or left. The panel state names what a message waits for and the last failed attempt. The first step proposal creates the worktree for a message no hold took. Requests after the first turn starts are ignored. Changes to a Session's checkout run as maintenance of its Agent, so a message from another client waits for them.
759
+
760
+ ```ts type-equiv
761
+ /** Git facts for the checkout that contains the Session's current directory. */
762
+ interface ForgeCheckout {
763
+ /** Top-level directory of the checkout. */
764
+ readonly root: string
765
+ /** Checked-out branch, or null when HEAD is detached. */
766
+ readonly branch: string | null
767
+ /** Whether the checkout is a linked worktree of another checkout's repository. */
768
+ readonly linked: boolean
769
+ /** Abbreviated commit HEAD names, or null while the checked-out branch has no commit. */
770
+ readonly commit: string | null
771
+ }
772
+ ```
773
+
774
+ ```ts type-equiv
775
+ /** Inspection result for the Session's current directory. */
776
+ type ForgeCheckoutState =
777
+ /** The first inspection has not finished. */
778
+ | { readonly state: 'pending' }
779
+ /** The current directory is not inside a Git checkout. */
780
+ | { readonly state: 'none' }
781
+ /** Git could not run or reported an error. */
782
+ | { readonly state: 'failed'; readonly message: string }
783
+ /** The checkout facts. */
784
+ | { readonly state: 'ready'; readonly checkout: ForgeCheckout }
785
+ ```
786
+
787
+ ```ts type-equiv
788
+ /** The worktree the panel created and entered for a Session before its first step. */
789
+ interface ForgeSessionWorktree {
790
+ /** Canonical checkout directory. */
791
+ readonly path: string
792
+ /** Branch created for the checkout. */
793
+ readonly branch: string
794
+ /** Requested base branch, or null when the checkout started from HEAD of the source checkout. */
795
+ readonly from: string | null
796
+ /** Commit object name the branch started from. */
797
+ readonly baseCommit: string
798
+ /** Canonical root of the source checkout. */
799
+ readonly repositoryRoot: string
800
+ }
801
+ ```
802
+
803
+
804
+ ```ts type-equiv
805
+ /** Payload of the `plugin:client-ui-forge/worktree` record. */
806
+ type WorktreeRecord =
807
+ /** Create a worktree before the Session's first step, starting from `from`, or from HEAD when it is null. */
808
+ | { readonly action: 'request'; readonly from: string | null }
809
+ /** Withdraw the open request. */
810
+ | { readonly action: 'cancel' }
811
+ /** The requested worktree was created and became the Session's working directory. */
812
+ | { readonly action: 'created'; readonly worktree: ForgeSessionWorktree }
813
+ /** Restoration started; the checkout stays unavailable until restoration completes. */
814
+ | { readonly action: 'restoring' }
815
+ /** The recorded worktree was completely restored. */
816
+ | { readonly action: 'restored' }
817
+ ```
818
+
819
+ ```ts type-equiv
820
+ /** One open worktree request. */
821
+ interface ForgeWorktreeRequest {
822
+ /** Base branch, or null for HEAD of the source checkout. */
823
+ readonly from: string | null
824
+ }
825
+ ```
826
+
827
+ ```ts type-equiv
828
+ /** Why the Session's checkout cannot host a new worktree. */
829
+ type ForgeWorktreeBlocker =
830
+ /** The current directory is not inside a Git checkout. */
831
+ | 'not-git'
832
+ /** The Session's sandbox cannot write the checkout or its Git directory, as for a linked worktree outside the writable root. */
833
+ | 'outside-writable-root'
834
+ /** The Session runs read-only. */
835
+ | 'read-only'
836
+ ```
837
+
838
+ ```ts type-equiv
839
+ /** One running worktree creation. */
840
+ interface ForgeWorktreeCreation {
841
+ /** Running step: `prepare` validates and creates the branch, then `checkout` writes the files. */
842
+ readonly phase: 'prepare' | 'checkout'
843
+ /** Branch the attempt creates. */
844
+ readonly branch: string
845
+ /** Base branch, or null for HEAD. */
846
+ readonly from: string | null
847
+ /**
848
+ * Whether a message waits for the creation before its turn starts. Only
849
+ * such a creation can be stopped, after which the message keeps waiting; a
850
+ * creation at the first step serves a message the Session already holds.
851
+ */
852
+ readonly held: boolean
853
+ }
854
+ ```
855
+
856
+ ```ts type-equiv
857
+ /** One running restoration of the removed worktree a Session works in. */
858
+ interface ForgeWorktreeRestoration {
859
+ /** Running step: `prepare` registers the checkout again, creating a missing branch, then `checkout` writes the files. */
860
+ readonly phase: 'prepare' | 'checkout'
861
+ }
862
+ ```
863
+
864
+ ```ts type-equiv
865
+ /** The last attempt to create the requested worktree for a message, which failed. */
866
+ interface ForgeWorktreeFailure {
867
+ /** Branch the attempt created, or null when it failed before naming one. */
868
+ readonly branch: string | null
869
+ /** Base branch of the attempt, or null for HEAD. */
870
+ readonly from: string | null
871
+ /** Step that failed. */
872
+ readonly phase: 'prepare' | 'checkout'
873
+ /** Failure text. */
874
+ readonly message: string
875
+ }
876
+ ```
877
+
878
+ ```ts type-equiv
879
+ /**
880
+ * What a message waits for before its turn starts: the creation of the
881
+ * requested worktree, or the restoration or leaving of the removed worktree
882
+ * the Session works in.
883
+ */
884
+ type ForgeWorktreeWaiting = 'creation' | 'restoration'
885
+ ```
886
+
887
+ ```ts type-equiv
888
+ /** The recorded worktree whose directory is missing, invalid, or incompletely restored. */
889
+ interface ForgeMissingWorktree {
890
+ /** Whether its branch exists, or null when an incomplete restoration cannot inspect it. */
891
+ readonly branchExists: boolean | null
892
+ }
893
+ ```
894
+
895
+ ```ts type-equiv
896
+ /** Worktree facts of one Session in the panel state. */
897
+ interface ForgePanelWorktree {
898
+ /**
899
+ * Whether the Session can still request or withdraw a worktree: a worktree
900
+ * service is mounted, no turn has started, and none was created.
901
+ */
902
+ readonly editable: boolean
903
+ /** Why the checkout cannot host a worktree, or null when it can, before the first inspection, and after a failed one. */
904
+ readonly blocker: ForgeWorktreeBlocker | null
905
+ /** Open request, or null without one. */
906
+ readonly request: ForgeWorktreeRequest | null
907
+ /** Created worktree, or null before creation. */
908
+ readonly created: ForgeSessionWorktree | null
909
+ /** Running creation, or null. */
910
+ readonly creation: ForgeWorktreeCreation | null
911
+ /**
912
+ * The last failed attempt of the creation a message waits for, or null. It
913
+ * clears when another attempt starts, when the request changes or is
914
+ * withdrawn, and when the wait ends.
915
+ */
916
+ readonly failure: ForgeWorktreeFailure | null
917
+ /** The created worktree the Session works in when its directory is gone, or null. */
918
+ readonly missing: ForgeMissingWorktree | null
919
+ /** Running restoration of the removed worktree, or null. */
920
+ readonly restoration: ForgeWorktreeRestoration | null
921
+ /** What a message of the Session waits for before its turn starts, or null while none waits. */
922
+ readonly waiting: ForgeWorktreeWaiting | null
923
+ }
924
+ ```
925
+
926
+ ```ts type-equiv
927
+ /** One bound change request in the panel state. */
928
+ interface ForgePanelChangeRequest extends SessionChangeRequest {
929
+ /** Latest snapshot a poll returned, kept while later polls fail, or null before the first successful poll. */
930
+ readonly snapshot: ChangeRequestSnapshot | null
931
+ }
932
+ ```
933
+
934
+ ```ts type-equiv
935
+ /** Everything the panel shows for one Session. */
936
+ interface ForgePanelState {
937
+ /** Current working directory of the Session. */
938
+ readonly directory: string
939
+ /** Inspection result for `directory`. */
940
+ readonly checkout: ForgeCheckoutState
941
+ /** Code host repository of the checkout's upstream remote or `origin`, or null when no provider serves them. */
942
+ readonly repository: ForgeRepository | null
943
+ /** Sign-in state for the repository's host, or null before the first probe and without a repository. */
944
+ readonly readiness: ForgeReadiness | null
945
+ /** Visible change request bindings with their latest polling results, in first-recorded order. */
946
+ readonly changeRequests: readonly ForgePanelChangeRequest[]
947
+ /** Worktree request and creation state. */
948
+ readonly worktree: ForgePanelWorktree
949
+ /**
950
+ * Files the `branch` scope changes, or null before the first inspection,
951
+ * outside a checkout, and without a fork point.
952
+ */
953
+ readonly local: ForgeLocalChanges | null
954
+ }
955
+ ```
956
+
957
+ ```ts type-equiv
958
+ /** Local branches offered as the base of a new worktree. */
959
+ interface ForgeBranches {
960
+ /** Checked-out branch, or null when HEAD is detached. */
961
+ readonly current: string | null
962
+ /** Local branch names, `current` first and then most recently committed first, at most `maxBranches`. */
963
+ readonly branches: readonly string[]
964
+ }
965
+ ```
966
+
967
+ The Session list reads through the same Remote. `changeRequestStates` streams `ForgeChangeRequestStatesFrame` values: a `baseline` with the last known `ForgeChangeRequestListState` of every change request that a listed Session the caller may read binds, then the states that change. One Host run serves every stream; it takes the bindings of loaded Sessions from `ctx.forgeSession` and those of other Sessions from their cached Session summary without loading them, keeps each bound change request subscribed, including closed requests polled at the idle cadence to detect reopening, and stores every change, so a restart shows the last known states before the next poll. The Session summary also carries the `forgeWorktree` projection's client view: the created worktree while the Session's directory is that worktree or lies below it, else null.
968
+
969
+ ```ts type-equiv
970
+ /**
971
+ * The last polled state of one change request that a listed Session binds, as
972
+ * the Session list shows it.
973
+ */
974
+ type ForgeChangeRequestListState = Pick<
975
+ ChangeRequestSnapshot, 'url' | 'title' | 'state' | 'draft' | 'checksRollup' | 'reviewDecision' | 'mergeability'
976
+ > & {
977
+ /** Change request number on its code host. */
978
+ readonly number: number
979
+ }
980
+ ```
981
+
982
+ ```ts type-equiv
983
+ /**
984
+ * One frame of `forgePanel.changeRequestStates`: the known state of every
985
+ * change request the reader may see first, then the states that changed or
986
+ * became visible since the previous frame.
987
+ */
988
+ type ForgeChangeRequestStatesFrame =
989
+ | { readonly type: 'baseline'; readonly states: readonly ForgeChangeRequestListState[] }
990
+ | { readonly type: 'changed'; readonly states: readonly ForgeChangeRequestListState[] }
991
+ ```
992
+
993
+ The changes view reads through the same Remote. `localDiff` reads one `ForgeLocalScope` of the Session's checkout, and `changeRequestDiff` reads a bound change request at the head of its latest status through the provider's `diff`, which returns a patch only for that head commit, or the `ForgeCommitRange` it names through the provider's `compare`; both return files that the Host parsed into `ForgeDiffFile` hunks, each with its review layer and change digest. `localCommits` and `changeRequestCommits` list the commits a range can name, the latter as null when the provider does not read commits. `localText` and `changeRequestText` read the new side of one file, which supplies the unchanged lines between hunks. Each inspection also sizes the `branch` scope as `ForgePanelState.local` for the panel's local changes card, always against the automatic fork point. A `branch` scope whose `base` names a ref compares with the merge base of HEAD and that branch instead; `diffBases` lists the branches the view offers, with the automatic fork point. When the head moved past the latest status, the provider returns `stale` and `ctx.forge.diff` polls the change request at once, once per head commit; `changeRequestDiff` rejects with `forgePanel/stale-head` and caches nothing, and the changes view keeps loading until a later status arrives, then reads again at that status's head. Review comments therefore always address the commit whose lines the view shows.
994
+
995
+ `changeRequestReview(session, url, headSha, fresh)` reads the threads of a bound change request at the head of the diff the view shows and refuses another head with `forgePanel/stale-head`, `forgePanel/review-unsupported` for a provider without review reads, and `forgePanel/review-failed` otherwise. It keeps one read per change request in memory, keyed by head commit and the status's update time and bounded by `maxCachedReviewBytes`, and reads again once the kept read is `reviewRefreshMs` old or when `fresh` asks for it, as the first read after the reader refreshes the view does: on GitHub a new comment or reply changes a pull request's update time, but resolving a thread does not. The changes view asks again at every status it receives while visible, and overlays the threads on the files the [panel README](../../packages/experimental/client-ui-forge/README.md#use-this-package) describes.
996
+
997
+ `changeRequestViewed(session, url, headSha)` reads the viewed marks of a bound change request at the head of the diff the view shows, returns null when the provider keeps none, and refuses another head with `forgePanel/stale-head` and any other failure with `forgePanel/viewed-failed`; `setFileViewed` saves one file's mark at that head. `rerunChecks`, `requestReviews`, and `updateBranch` act on a bound change request and refuse an outcome the host did not confirm with `forgePanel/action-unknown`, and `reviewerCandidates` lists accounts for a review request, refusing with `forgePanel/reviewers-failed` when the host lists none. The changes view reads the marks of a whole change request beside its diff and keeps the marks of local changes and chosen commits in the browser; the [panel README](../../packages/experimental/client-ui-forge/README.md#use-this-package) describes both and the card rows that offer the actions.
998
+
999
+ `changeRequestReviewWrite(session, url, write)` passes one `ForgeReviewWrite` for a bound change request to `ctx.forge.writeReview` after checking its head commit, ids, text, and line range, and returns the `ForgeReviewWriteResult`. Once the provider answers, whatever the answer, it drops the kept threads of that change request and every read that started before, so the next `changeRequestReview` reads the host; `submitReview` drops them as well. The changes view sends one write at a time and reads the threads again after each write that may have changed them.
1000
+
1001
+ ```ts type-equiv
1002
+ /**
1003
+ * Consecutive commits a changes view shows instead of its whole comparison, named by full object names in the order
1004
+ * the commit list shows them, oldest first; the view shows the changes from the first commit's first parent to the last.
1005
+ */
1006
+ interface ForgeCommitRange {
1007
+ /** First, oldest commit shown. */
1008
+ readonly from: string
1009
+ /** Last, newest commit shown; equal to `from` for one commit. */
1010
+ readonly to: string
1011
+ }
1012
+ ```
1013
+
1014
+ ```ts type-equiv
1015
+ /** Which local changes a diff covers; each reads the Session's checkout through Git. */
1016
+ type ForgeLocalScope =
1017
+ /**
1018
+ * The working tree and untracked files against a fork point: the merge base of HEAD with the
1019
+ * `base` ref, or while `base` is null, the base commit of the worktree the Session created,
1020
+ * else the merge base of HEAD with the default branch of the code host remote. With `commits`, only the changes
1021
+ * of those commits between the fork point and HEAD, without uncommitted or untracked files.
1022
+ */
1023
+ | { readonly kind: 'branch'; readonly base: string | null; readonly commits: ForgeCommitRange | null }
1024
+ /** The working tree and untracked files against HEAD. */
1025
+ | { readonly kind: 'uncommitted' }
1026
+ /** The working tree and untracked files against the index. */
1027
+ | { readonly kind: 'unstaged' }
1028
+ /** The index against HEAD. */
1029
+ | { readonly kind: 'staged' }
1030
+ ```
1031
+
1032
+ ```ts type-equiv
1033
+ /** A branch the `branch` scope can compare with. */
1034
+ interface ForgeBaseBranch {
1035
+ /** Full ref name: `refs/heads/<branch>` or `refs/remotes/<remote>/<branch>`. */
1036
+ readonly ref: string
1037
+ /** The ref without `refs/heads/` or `refs/remotes/`, such as `master` or `origin/master`. */
1038
+ readonly name: string
1039
+ }
1040
+ ```
1041
+
1042
+ ```ts type-equiv
1043
+ /** What the `branch` scope compares with while no base branch is chosen. */
1044
+ interface ForgeAutomaticBase {
1045
+ /** The created worktree's base branch or abbreviated base commit, or the default branch of the code host remote. */
1046
+ readonly name: string
1047
+ /** Whether the fork point is the base commit of the worktree the Session created rather than a merge base. */
1048
+ readonly worktree: boolean
1049
+ }
1050
+ ```
1051
+
1052
+ ```ts type-equiv
1053
+ /** Branches the `branch` scope can compare with, whose names contain a query. */
1054
+ interface ForgeBaseBranches {
1055
+ /** The fork point used while no base branch is chosen, whatever the query; null without one. */
1056
+ readonly automatic: ForgeAutomaticBase | null
1057
+ /** Remote-tracking branches without symbolic refs such as `origin/HEAD`, most recently committed first, at most `maxBranches`. */
1058
+ readonly remote: readonly ForgeBaseBranch[]
1059
+ /** Local branches other than the checked-out one, most recently committed first, at most `maxBranches`. */
1060
+ readonly local: readonly ForgeBaseBranch[]
1061
+ }
1062
+ ```
1063
+
1064
+ ```ts type-equiv
1065
+ /** One hunk of a file diff. */
1066
+ interface ForgeDiffHunk {
1067
+ /** First old line the hunk covers, or the old line it comes before when it covers none. */
1068
+ readonly oldStart: number
1069
+ /** Old lines the hunk covers. */
1070
+ readonly oldLines: number
1071
+ /** First new line the hunk covers, or the new line it comes before when it covers none. */
1072
+ readonly newStart: number
1073
+ /** New lines the hunk covers. */
1074
+ readonly newLines: number
1075
+ /** Lines in patch form: a leading space for context, `+` for added, `-` for deleted, and `\` for a missing final newline. */
1076
+ readonly lines: readonly string[]
1077
+ }
1078
+ ```
1079
+
1080
+ ```ts type-equiv
1081
+ /** How one file changed. */
1082
+ type ForgeDiffStatus = 'added' | 'deleted' | 'modified' | 'renamed'
1083
+ ```
1084
+
1085
+ ```ts type-equiv
1086
+ /**
1087
+ * Review layer of a changed file: the layer the repository's root `.gitattributes` names with `dsh-review-layer`, else
1088
+ * `test` for a file it marks `linguist-generated`, else the first of `testPaths`, `interfacePaths`, and the built-in
1089
+ * test and interface rules that the path matches, else `implementation`.
1090
+ */
1091
+ type ForgeFileLayer = 'interface' | 'implementation' | 'test'
1092
+ ```
1093
+
1094
+ ```ts type-equiv
1095
+ /** One changed file of a diff. */
1096
+ interface ForgeDiffFile {
1097
+ /** Path relative to the repository root after the change, or before it for a deleted file. */
1098
+ readonly path: string
1099
+ /** Path before a rename, else null. */
1100
+ readonly previousPath: string | null
1101
+ /** How the file changed. */
1102
+ readonly status: ForgeDiffStatus
1103
+ /** Whether the content is binary, which carries no hunks. */
1104
+ readonly binary: boolean
1105
+ /** Whether an untracked file exceeds `maxDiffBytes`, so it carries no hunks. */
1106
+ readonly oversized: boolean
1107
+ /** Whether Git does not track the file yet; only local diffs list such files. */
1108
+ readonly untracked: boolean
1109
+ /** Lines added. */
1110
+ readonly additions: number
1111
+ /** Lines deleted. */
1112
+ readonly deletions: number
1113
+ /** Hunks in file order; none for a binary file or a change of mode or name only. */
1114
+ readonly hunks: readonly ForgeDiffHunk[]
1115
+ /** Review layer the path falls in. */
1116
+ readonly layer: ForgeFileLayer
1117
+ /**
1118
+ * Digest of the file's change: its paths, status, and hunks, plus the blob names of a binary change, or the content
1119
+ * of an untracked binary file. Equal digests describe the same change; reading the same comparison again keeps it.
1120
+ */
1121
+ readonly digest: string
1122
+ }
1123
+ ```
1124
+
1125
+ ```ts type-equiv
1126
+ /** Local changes of the Session's checkout in one scope. */
1127
+ interface ForgeLocalDiff {
1128
+ /** Ref or abbreviated commit the `branch` scope compares with, such as `origin/master`; null for other scopes. */
1129
+ readonly base: string | null
1130
+ /** Changed files in Git's path order, untracked files last. */
1131
+ readonly files: readonly ForgeDiffFile[]
1132
+ /** Untracked files left out beyond `maxUntrackedFiles`. */
1133
+ readonly omitted: number
1134
+ }
1135
+ ```
1136
+
1137
+ ```ts type-equiv
1138
+ /** Changes of a change request, or of consecutive commits of it, as its code host computes them. */
1139
+ interface ForgeChangeRequestDiff {
1140
+ /** Commit whose new side the diff describes: the head, or the last chosen commit. */
1141
+ readonly headSha: string
1142
+ /** Changed files in the host's order. */
1143
+ readonly files: readonly ForgeDiffFile[]
1144
+ /**
1145
+ * Commits the checkout's branch has beyond the head when that branch is the change request's head
1146
+ * branch and the head commit is present locally; null otherwise and for chosen commits.
1147
+ */
1148
+ readonly localAhead: number | null
1149
+ /** Web page of each changed file at `headSha`, by path. */
1150
+ readonly fileUrls: Readonly<Record<string, string>>
1151
+ }
1152
+ ```
1153
+
1154
+ ```ts type-equiv
1155
+ /** Commits of the `branch` scope at one HEAD commit, which the changes view can show one or several of. */
1156
+ interface ForgeLocalCommits {
1157
+ /** HEAD commit the list was read at. */
1158
+ readonly headSha: string
1159
+ /** Commits oldest first, ending with HEAD's commit. */
1160
+ readonly commits: readonly ForgeCommit[]
1161
+ /** Whether the branch has more commits than `maxCommits`; the listed ones are the newest. */
1162
+ readonly truncated: boolean
1163
+ }
1164
+ ```
1165
+
1166
+ ```ts type-equiv
1167
+ /** One file the `branch` scope changes, without its hunks. */
1168
+ interface ForgeChangedFile {
1169
+ /** Path relative to the repository root after the change. */
1170
+ readonly path: string
1171
+ /** Lines added, or 0 for a binary file. */
1172
+ readonly additions: number
1173
+ /** Lines deleted, or 0 for a binary file. */
1174
+ readonly deletions: number
1175
+ /** Whether the content is binary. */
1176
+ readonly binary: boolean
1177
+ }
1178
+ ```
1179
+
1180
+ ```ts type-equiv
1181
+ /** Size of the `branch` scope, which the panel's local changes card shows. */
1182
+ interface ForgeLocalChanges {
1183
+ /** Ref or abbreviated commit the scope compares with. */
1184
+ readonly base: string
1185
+ /** Changed files in Git's path order, untracked files last, at most `maxUntrackedFiles` of those. */
1186
+ readonly files: readonly ForgeChangedFile[]
1187
+ }
1188
+ ```
1189
+
1190
+ <!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
1191
+
1192
+ <a id="cordis-surface"></a>
1193
+
1194
+ ## Cordis API
1195
+
1196
+ Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — the language sides differ only in locale-specific paired document paths. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).
1197
+
1198
+ <a id="ctxforge--forgeservice"></a>
1199
+
1200
+ ### `ctx.forge` — `ForgeService`
1201
+
1202
+ Registry of forge providers. Watchers of one change request share a single polling loop; each forge has at most one fetch in flight, which batches every due change request of that forge.
1203
+
1204
+ ```ts cordis-catalog
1205
+ /**
1206
+ * Register the provider of one forge family as an effect on the calling
1207
+ * fiber. Watches of that forge receive an `unavailable` failure when the
1208
+ * registration ends. Unregistering cancels and awaits its in-flight calls;
1209
+ * results from the withdrawn registration are discarded.
1210
+ * @param provider - provider to serve `provider.forge`.
1211
+ * @returns the disposer that unregisters the provider and waits for its calls to finish.
1212
+ * @throws when another provider already serves the same forge.
1213
+ */
1214
+ register(provider: ForgeProvider): () => Promise<void>
1215
+
1216
+ /**
1217
+ * Map a Git remote URL to a repository through the first provider that serves it.
1218
+ * @param url - fetch or push URL as Git reports it.
1219
+ * @returns the repository, or undefined when no provider serves the URL.
1220
+ */
1221
+ repositoryFromRemote(url: string): ForgeRepository | undefined
1222
+
1223
+ /**
1224
+ * Map a change request web URL through the first provider that serves it.
1225
+ * @param url - web URL of a pull or merge request.
1226
+ * @returns the change request, or undefined when no provider serves the URL.
1227
+ */
1228
+ changeRequestFromUrl(url: string): ChangeRequestRef | undefined
1229
+
1230
+ /**
1231
+ * Build the canonical web URL of a change request.
1232
+ * @param ref - change request served by a registered provider.
1233
+ * @returns the provider's canonical URL.
1234
+ * @throws when no provider serves the change request's forge.
1235
+ */
1236
+ changeRequestUrl(ref: ChangeRequestRef): string
1237
+
1238
+ /**
1239
+ * Find open change requests whose head is `branch`, excluding the default branch and forks.
1240
+ * @param repository - repository served by a registered provider.
1241
+ * @param branch - head branch name on the host.
1242
+ * @param signal - cancellation for the lookup.
1243
+ * @returns matching change requests, newest first as the provider reports them.
1244
+ * @throws when no provider serves the repository's forge or the lookup fails.
1245
+ */
1246
+ async findByHead(repository: ForgeRepository, branch: string, signal: AbortSignal): Promise<readonly ChangeRequestRef[]>
1247
+
1248
+ /**
1249
+ * Report whether the provider can reach the repository's host with current credentials.
1250
+ * @param repository - repository served by a registered provider.
1251
+ * @param signal - cancellation for the probe.
1252
+ * @returns the provider's readiness for the host.
1253
+ * @throws when no provider serves the repository's forge.
1254
+ */
1255
+ async readiness(repository: ForgeRepository, signal: AbortSignal): Promise<ForgeReadiness>
1256
+
1257
+ /**
1258
+ * Mark a draft change request ready for review, then poll it at once when it is watched.
1259
+ * @param ref - change request served by a registered provider.
1260
+ * @param signal - cancellation of the request.
1261
+ * @returns undefined once the host accepted the change, or why it did not.
1262
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1263
+ */
1264
+ async markReady(ref: ChangeRequestRef, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
1265
+
1266
+ /**
1267
+ * Merge a change request while its head is still `request.headSha`, then
1268
+ * poll it at once when it is watched.
1269
+ * @param ref - change request served by a registered provider.
1270
+ * @param request - merge method and the head commit the user confirmed.
1271
+ * @param signal - cancellation of the request.
1272
+ * @returns undefined once the host merged it, or why it did not.
1273
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1274
+ */
1275
+ async merge(ref: ChangeRequestRef, request: MergeRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
1276
+
1277
+ /**
1278
+ * Rerun the failed checks of a change request's head commit while the head is still `request.headSha`, then poll it
1279
+ * at once when it is watched.
1280
+ * @param ref - change request served by a registered provider.
1281
+ * @param request - the head commit whose checks the user saw.
1282
+ * @param signal - cancellation of the request.
1283
+ * @returns undefined once the host accepted the rerun, or why it did not; a provider that reruns no checks fails.
1284
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1285
+ */
1286
+ async rerunChecks(ref: ChangeRequestRef, request: ForgeRerunRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
1287
+
1288
+ /**
1289
+ * Request reviews of a change request from more reviewers, then poll it at once when it is watched.
1290
+ * @param ref - change request served by a registered provider.
1291
+ * @param request - the reviewers to ask.
1292
+ * @param signal - cancellation of the request.
1293
+ * @returns undefined once the host accepted the request, or why it did not; a provider that requests no reviews fails.
1294
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1295
+ */
1296
+ async requestReviews( ref: ChangeRequestRef, request: ForgeReviewersRequest, signal: AbortSignal, ): Promise<ForgeActionFailure | undefined>
1297
+
1298
+ /**
1299
+ * List accounts a review of a change request can be requested from.
1300
+ * @param ref - change request served by a registered provider.
1301
+ * @param query - text the login or name contains; empty for the host's suggestions and first accounts.
1302
+ * @param signal - cancellation of the read.
1303
+ * @returns the accounts, the host's suggestions first, or why the host did not list them; a provider that requests no
1304
+ * reviews returns `unsupported`.
1305
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1306
+ */
1307
+ async reviewerCandidates( ref: ChangeRequestRef, query: string, signal: AbortSignal, ): Promise<readonly ForgeReviewerCandidate[] | ForgeFailure>
1308
+
1309
+ /**
1310
+ * Bring the base branch's new commits into a change request's head branch while its head is still
1311
+ * `request.headSha`, then poll it at once when it is watched.
1312
+ * @param ref - change request served by a registered provider.
1313
+ * @param request - update method and the head commit the user confirmed.
1314
+ * @param signal - cancellation of the request.
1315
+ * @returns undefined once the host accepted the update, or why it did not; a provider that updates no branches fails.
1316
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1317
+ */
1318
+ async updateBranch(ref: ChangeRequestRef, request: BranchUpdateRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
1319
+
1320
+ /**
1321
+ * Read complete check details independently of periodic polling.
1322
+ * @param ref - change request served by a registered provider.
1323
+ * @param signal - cancellation of the detail view.
1324
+ * @returns a complete snapshot or the provider's failure; unsupported providers return unavailable.
1325
+ * @throws on cancellation, provider disposal, or expiry of this read's own `fetchTimeoutMs` deadline.
1326
+ */
1327
+ async fetchChecks(ref: ChangeRequestRef, signal: AbortSignal): Promise<ChangeRequestSnapshot | ForgeFailure>
1328
+
1329
+ /**
1330
+ * Read the changes of a change request at one head commit as its host
1331
+ * computes them. The first `stale` failure at a head commit polls a watched
1332
+ * change request again at once, so its next status names the current head;
1333
+ * later stale reads at the same commit wait for the regular poll, which
1334
+ * bounds the reads while the host's answers disagree. When the latest status of a watched change request names
1335
+ * `headSha`, its `baseSha` goes to the provider, which may then read the patch while it confirms the head.
1336
+ * @param ref - change request served by a registered provider.
1337
+ * @param headSha - head commit the patch must describe, usually the head of the latest status.
1338
+ * @param signal - cancellation of the read.
1339
+ * @returns one unified patch with `a/` and `b/` path prefixes, or why the host did not provide it at `headSha`.
1340
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1341
+ */
1342
+ async diff(ref: ChangeRequestRef, headSha: string, signal: AbortSignal): Promise<string | ForgeFailure>
1343
+
1344
+ /**
1345
+ * Read the review threads of a change request at one head commit. A
1346
+ * `stale` failure polls a watched change request again as {@link ForgeService.diff} does.
1347
+ * @param ref - change request served by a registered provider.
1348
+ * @param headSha - head commit the threads must be read at, usually the head of the displayed diff.
1349
+ * @param signal - cancellation of the read.
1350
+ * @returns the threads read at `headSha`, or why the host did not provide them; `unsupported` when the provider cannot read reviews.
1351
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1352
+ */
1353
+ async readReview(ref: ChangeRequestRef, headSha: string, signal: AbortSignal): Promise<ForgeReviewData | ForgeFailure>
1354
+
1355
+ /**
1356
+ * Write to the review threads or the pending review of a change request while its head is still `write.headSha`, then
1357
+ * poll the change request at once when it is watched, unless the provider cannot write reviews. A `stale` result polls
1358
+ * it as a stale read does.
1359
+ * @param ref - change request served by a registered provider.
1360
+ * @param write - the write and the head commit the user saw.
1361
+ * @param signal - cancellation of the write.
1362
+ * @returns whether the host took the write; `unsupported` when the provider cannot write reviews, and `unknown` when the
1363
+ * outcome must be checked on the host before the write is tried again.
1364
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1365
+ */
1366
+ async writeReview(ref: ChangeRequestRef, write: ForgeReviewWrite, signal: AbortSignal): Promise<ForgeReviewWriteResult>
1367
+
1368
+ /**
1369
+ * Read the signed-in user's viewed marks on the files of a change request at one head commit. A `stale` failure
1370
+ * polls a watched change request again as {@link ForgeService.diff} does.
1371
+ * @param ref - change request served by a registered provider.
1372
+ * @param headSha - head commit the marks must be read at, usually the head of the displayed diff.
1373
+ * @param signal - cancellation of the read.
1374
+ * @returns the marks read at `headSha`, why the host did not provide them, or undefined when the provider keeps no
1375
+ * viewed marks.
1376
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1377
+ */
1378
+ async viewedFiles(ref: ChangeRequestRef, headSha: string, signal: AbortSignal): Promise<ForgeViewedFiles | ForgeFailure | undefined>
1379
+
1380
+ /**
1381
+ * Set or clear the signed-in user's viewed mark on one file of a change request while its head is still
1382
+ * `request.headSha`. A `stale` failure polls a watched change request again as {@link ForgeService.diff} does.
1383
+ * @param ref - change request served by a registered provider.
1384
+ * @param request - the file, its mark, and the head commit the user saw.
1385
+ * @param signal - cancellation of the request.
1386
+ * @returns undefined once the host saved the mark, or why it did not; a provider that keeps no viewed marks fails.
1387
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1388
+ */
1389
+ async setViewed(ref: ChangeRequestRef, request: ForgeViewedRequest, signal: AbortSignal): Promise<ForgeActionFailure | undefined>
1390
+
1391
+ /**
1392
+ * List the commits of a change request at its current head.
1393
+ * @param ref - change request served by a registered provider.
1394
+ * @param signal - cancellation of the read.
1395
+ * @returns the commits, why the host did not provide them, or undefined when the provider does not read commits.
1396
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1397
+ */
1398
+ async commits(ref: ChangeRequestRef, signal: AbortSignal): Promise<ForgeCommitList | ForgeFailure | undefined>
1399
+
1400
+ /**
1401
+ * Read the changes between two commits of a change request's repository.
1402
+ * @param ref - change request served by a registered provider.
1403
+ * @param base - full object name of the commit compared from.
1404
+ * @param head - full object name of a commit that descends from `base`.
1405
+ * @param signal - cancellation of the read.
1406
+ * @returns one unified patch with `a/` and `b/` path prefixes, or why the host did not provide it; a provider that
1407
+ * does not read commits returns `unavailable`.
1408
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1409
+ */
1410
+ async compare(ref: ChangeRequestRef, base: string, head: string, signal: AbortSignal): Promise<string | ForgeFailure>
1411
+
1412
+ /**
1413
+ * Publish one comment or a completed review, then refresh the watched status.
1414
+ * @param ref - change request served by a registered provider.
1415
+ * @param request - explicitly selected commit, comments, and review decision.
1416
+ * @param signal - request cancellation.
1417
+ * @returns a publication URL or a failure, including an unknown write outcome.
1418
+ */
1419
+ async submitReview(ref: ChangeRequestRef, request: ForgeReviewRequest, signal: AbortSignal): Promise<ForgeReviewResult>
1420
+
1421
+ /**
1422
+ * Read the text of one file at a commit of a change request's repository.
1423
+ * @param ref - change request served by a registered provider.
1424
+ * @param commit - commit object name.
1425
+ * @param path - path relative to the repository root.
1426
+ * @param signal - cancellation of the read.
1427
+ * @returns the text, or why the host did not provide it.
1428
+ * @throws when no provider serves the change request's forge, or with `signal.reason` when it aborts.
1429
+ */
1430
+ async fileText(ref: ChangeRequestRef, commit: string, path: string, signal: AbortSignal): Promise<string | ForgeFailure>
1431
+
1432
+ /**
1433
+ * Build the web page of one file at a commit of a change request's repository.
1434
+ * @param ref - change request served by a registered provider.
1435
+ * @param commit - commit object name.
1436
+ * @param path - path relative to the repository root.
1437
+ * @returns the provider's URL.
1438
+ * @throws when no provider serves the change request's forge.
1439
+ */
1440
+ fileUrl(ref: ChangeRequestRef, commit: string, path: string): string
1441
+
1442
+ /**
1443
+ * Watch one change request as an effect on the calling fiber. The first
1444
+ * watcher starts polling at once; listeners receive every later result,
1445
+ * and `latest` returns the current one. Polling stops when the last watcher
1446
+ * leaves. Listeners must not throw; a thrown error is logged and skipped.
1447
+ * @param ref - change request to poll.
1448
+ * @param listener - receives each polling result.
1449
+ * @returns the disposer that stops this watch.
1450
+ */
1451
+ watch(ref: ChangeRequestRef, listener: ChangeRequestListener): () => void
1452
+
1453
+ /**
1454
+ * Poll a watched change request at once, including after a terminal state.
1455
+ * A fetch already in flight is followed immediately by another fetch; an
1456
+ * unwatched change request is unchanged.
1457
+ * @param ref - change request to poll.
1458
+ */
1459
+ refresh(ref: ChangeRequestRef): void
1460
+
1461
+ /**
1462
+ * Read the latest polling result of a watched change request.
1463
+ * @param ref - change request to read.
1464
+ * @returns the latest result, or undefined before the first result or without a watch.
1465
+ */
1466
+ latest(ref: ChangeRequestRef): ChangeRequestUpdate | undefined
1467
+ ```
1468
+
1469
+ Source: [`packages/experimental/forge/src/index.ts`](../../packages/experimental/forge/src/index.ts)
1470
+
1471
+ <a id="ctxforgepanel--forgepanelcontroller"></a>
1472
+
1473
+ ### `ctx.forgePanel` — `ForgePanelController`
1474
+
1475
+ Serves the forge panel. Following a Session inspects the checkout of its current directory using the Session's permissions and execution world, recognizes the code host of the upstream remote or `origin`, probes sign-in for that host, and polls the Session's bound change requests through `ctx.forge` until the last follower of that Session leaves. A worktree request makes the panel create a branch and checkout through an optional `ctx.worktrees` and enter it while the Session's first message waits in the inbox, or at the first step proposal of a message no wait took. After a failed or stopped attempt the message keeps waiting for another attempt or for the request to be withdrawn. A message also waits while the worktree the Session works in is gone, until that worktree is checked out again or left for the source checkout. Changes to a Session's checkout run as Agent maintenance, so a message that arrives meanwhile waits for them.
1476
+
1477
+ ```ts cordis-catalog
1478
+ /**
1479
+ * Stream the panel state of a Session: the current state first, then each
1480
+ * later state. Intermediate states may be skipped when the reader is slower
1481
+ * than the updates. The stream ends when `signal` aborts or the Remote stops.
1482
+ * @param session - Session to follow.
1483
+ * @param signal - ends the stream.
1484
+ * @returns panel states in publication order.
1485
+ */
1486
+ @Remote({ mode: 'stream' }) async *follow(session: Session, signal: AbortSignal): AsyncIterable<ForgePanelState>
1487
+
1488
+ /**
1489
+ * Stream the last known state of every change request that a listed
1490
+ * Session the caller may read binds: the stored states first, then each
1491
+ * state a poll changes or a new binding reveals. Listing reads no Session
1492
+ * log: loaded Sessions report their bindings, others the cached Session
1493
+ * summary, and a Session without one shows nothing until it is opened.
1494
+ * Closed requests are polled at the idle cadence so reopening is observed. The
1495
+ * stream ends when `signal` aborts or the Remote stops.
1496
+ * @param signal - ends the stream.
1497
+ * @returns frames in publication order.
1498
+ * @throws when the Host lacks the Session query, projection cache, storage, or Session store service.
1499
+ */
1500
+ @Remote({ mode: 'stream' }) async *changeRequestStates(signal: AbortSignal): AsyncIterable<ForgeChangeRequestStatesFrame>
1501
+
1502
+ /**
1503
+ * Read or await the worktree service's archive cleanup of the Session's checkout.
1504
+ * @param session - Session whose cleanup is visible to the caller.
1505
+ * @param revision - null reads now; a matching revision waits for completion.
1506
+ * @returns the cleanup state, or null without a worktree service, an attempt, or a current revision.
1507
+ */
1508
+ @Remote async worktreeCleanup(session: Session, revision: number | null): Promise<WorktreeCleanup | null>
1509
+
1510
+ /**
1511
+ * List the local branches that can start a worktree of the Session's current checkout.
1512
+ * @param session - Session whose current directory is listed.
1513
+ * @param signal - request cancellation.
1514
+ * @returns the checked-out branch and at most `maxBranches` local branches, the checked-out one first.
1515
+ * @throws when the current directory is not inside a checkout or Git fails.
1516
+ */
1517
+ @Remote async branches(session: Session, signal: AbortSignal): Promise<ForgeBranches>
1518
+
1519
+ /**
1520
+ * List the branches the `branch` scope of the Session's current checkout can compare with.
1521
+ * @param session - Session whose checkout is read.
1522
+ * @param query - text the branch names must contain, ignoring case; empty for every branch.
1523
+ * @param signal - request cancellation.
1524
+ * @returns the automatic fork point and at most `maxBranches` remote-tracking and local branches each,
1525
+ * most recently committed first, without the checked-out branch.
1526
+ * @throws `forgePanel/not-a-checkout` outside a checkout; the Git error when Git fails or the listed refs exceed `maxDiffBytes`.
1527
+ */
1528
+ @Remote async diffBases(session: Session, query: string, signal: AbortSignal): Promise<ForgeBaseBranches>
1529
+
1530
+ /**
1531
+ * Bind a change request to a Session by URL, or restore a dismissed binding.
1532
+ * @param session - Session that receives the binding.
1533
+ * @param url - web URL of the change request.
1534
+ * @param signal - request cancellation.
1535
+ * @throws `forgePanel/unrecognized-url` when no registered provider serves the URL.
1536
+ */
1537
+ @Remote async track(session: Session, url: string, signal: AbortSignal): Promise<void>
1538
+
1539
+ /**
1540
+ * Hide a visible binding of a Session; other URLs leave the Session unchanged.
1541
+ * @param session - Session that owns the binding.
1542
+ * @param url - web URL of the change request.
1543
+ * @param signal - request cancellation.
1544
+ */
1545
+ @Remote async dismiss(session: Session, url: string, signal: AbortSignal): Promise<void>
1546
+
1547
+ /**
1548
+ * Reinspect a followed Session's checkout, probe sign-in again, and poll its
1549
+ * change requests at once; an unfollowed Session is unchanged.
1550
+ * @param session - Session whose panel refreshes.
1551
+ * @param signal - request cancellation.
1552
+ * @returns settles once the inspection and the sign-in probe have ended; poll results reach the panel stream later.
1553
+ */
1554
+ @Remote async refresh(session: Session, signal: AbortSignal): Promise<void>
1555
+
1556
+ /**
1557
+ * Read the changes one scope covers in the checkout of the Session's
1558
+ * current directory, with Git using the Session's sandbox policy.
1559
+ * @param session - Session whose checkout is read.
1560
+ * @param scope - which changes to read.
1561
+ * @param signal - request cancellation.
1562
+ * @returns the files, the base of the `branch` scope, and the untracked files left out.
1563
+ * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/base-missing` when the base branch
1564
+ * chosen for the `branch` scope does not exist; `forgePanel/no-fork-point` for the `branch` scope without
1565
+ * a fork point; `forgePanel/commits-missing` when chosen commits are not between the fork point and HEAD in order;
1566
+ * `forgePanel/commits-not-linear` when a chosen commit's first parent is not the commit listed before it;
1567
+ * `forgePanel/filter-config-failed` when filter configuration cannot be read completely, before
1568
+ * any comparison; `forgePanel/diff-too-large` over `maxDiffBytes`; the Git error when Git fails.
1569
+ */
1570
+ @Remote async localDiff(session: Session, scope: ForgeLocalScope, signal: AbortSignal): Promise<ForgeLocalDiff>
1571
+
1572
+ /**
1573
+ * List the commits of the `branch` scope of the Session's current checkout, which the changes view can show one or
1574
+ * several of instead of the whole scope.
1575
+ * @param session - Session whose checkout is read.
1576
+ * @param base - the base ref of the `branch` scope, or null for its automatic fork point.
1577
+ * @param signal - request cancellation.
1578
+ * @returns the newest `maxCommits` commits between the fork point and HEAD, oldest first, and HEAD's commit.
1579
+ * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/base-missing` when the base branch does not
1580
+ * exist; `forgePanel/no-fork-point` without a fork point; the Git error when Git fails or the listing exceeds `maxDiffBytes`.
1581
+ */
1582
+ @Remote async localCommits(session: Session, base: string | null, signal: AbortSignal): Promise<ForgeLocalCommits>
1583
+
1584
+ /**
1585
+ * Read the new side of one changed file in a scope, which supplies the
1586
+ * unchanged lines between its hunks: the index for `staged`, the last chosen commit for chosen commits of
1587
+ * the `branch` scope, else the working tree.
1588
+ * @param session - Session whose checkout is read.
1589
+ * @param scope - the scope the diff was read in.
1590
+ * @param path - path relative to the checkout's top-level directory, as the diff names it.
1591
+ * @param signal - request cancellation.
1592
+ * @returns the text.
1593
+ * @throws `forgePanel/not-a-checkout` outside a checkout; `forgePanel/diff-too-large` over `maxDiffBytes`;
1594
+ * `forgePanel/commits-missing` for a chosen commit that is not a full object name; an error for a path outside
1595
+ * the checkout, binary content, or a failed read.
1596
+ */
1597
+ @Remote async localText(session: Session, scope: ForgeLocalScope, path: string, signal: AbortSignal): Promise<string>
1598
+
1599
+ /**
1600
+ * Load complete checks for the change request whose list the user opened.
1601
+ * @param session - Session retaining the visible binding.
1602
+ * @param url - binding URL.
1603
+ * @param headSha - commit displayed by the card; a different head rejects the result.
1604
+ * @param signal - cancellation when the list closes.
1605
+ * @returns the complete snapshot at the displayed head.
1606
+ * @throws `forgePanel/not-bound` for an invisible binding, `forgePanel/stale-head` for a moved head,
1607
+ * or `forgePanel/checks-failed` when the provider cannot complete the read.
1608
+ */
1609
+ @Remote async changeRequestChecks(session: Session, url: string, headSha: string, signal: AbortSignal): Promise<ChangeRequestSnapshot>
1610
+
1611
+ /**
1612
+ * List the commits of a change request of a Session at its current head, which the changes view can show one or
1613
+ * several of instead of the whole change request.
1614
+ * @param session - Session the change request is bound to.
1615
+ * @param url - binding URL of the change request.
1616
+ * @param signal - request cancellation.
1617
+ * @returns the commits oldest first with the head they were read at, or null when the provider does not read commits.
1618
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1619
+ * `forgePanel/diff-failed` when the host does not list them.
1620
+ */
1621
+ @Remote async changeRequestCommits(session: Session, url: string, signal: AbortSignal): Promise<ForgeCommitList | null>
1622
+
1623
+ /**
1624
+ * Read the changes of a change request of a Session as its code host
1625
+ * computes them, with each file's layer following the root `.gitattributes`
1626
+ * of the commit the diff ends at. Without `commits` the diff covers the change
1627
+ * request at the head commit of its latest status; a patch already read at the
1628
+ * same head commit and base branch is reused from memory with its attributes, for
1629
+ * any Session, until `maxCachedDiffBytes` evicts it. With `commits`, it covers those
1630
+ * commits, from the first one's first parent to the last, and is read every time.
1631
+ * @param session - Session the change request is bound to.
1632
+ * @param url - binding URL of the change request.
1633
+ * @param commits - consecutive commits of the change request, or null for all of it.
1634
+ * @param signal - request cancellation.
1635
+ * @returns the files, the commit they end at, each file's web page, and the commits the checkout has beyond the head.
1636
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1637
+ * `forgePanel/commits-missing` when chosen commits are not among the change request's commits in order;
1638
+ * `forgePanel/commits-not-linear` when a chosen commit's first parent is not the commit listed before it;
1639
+ * `forgePanel/stale-head` without `commits` when the head moved past the latest status, which is then polled again;
1640
+ * `forgePanel/diff-too-large` when the host or its provider refuses the diff over a size limit;
1641
+ * `forgePanel/diff-failed` before its status was read, for a first chosen commit without a parent, and when the host
1642
+ * does not provide the commits, the diff, or an existing `.gitattributes` otherwise.
1643
+ */
1644
+ @Remote async changeRequestDiff( session: Session, url: string, commits: ForgeCommitRange | null, signal: AbortSignal, ): Promise<ForgeChangeRequestDiff>
1645
+
1646
+ /**
1647
+ * Read one file of a change request's repository at a commit, which
1648
+ * supplies the unchanged lines between the hunks of its diff.
1649
+ * @param session - Session the change request is bound to.
1650
+ * @param url - binding URL of the change request.
1651
+ * @param commit - commit object name, the head commit of the diff.
1652
+ * @param path - path relative to the repository root.
1653
+ * @param signal - request cancellation.
1654
+ * @returns the text.
1655
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1656
+ * `forgePanel/diff-too-large` when the host or its provider refuses the file over a size limit;
1657
+ * `forgePanel/diff-failed` when the host does not provide the file otherwise.
1658
+ */
1659
+ @Remote async changeRequestText(session: Session, url: string, commit: string, path: string, signal: AbortSignal): Promise<string>
1660
+
1661
+ /**
1662
+ * Read the signed-in user's viewed marks on the files of a change request of a Session, which the host keeps for the
1663
+ * whole change request.
1664
+ * @param session - Session the change request is bound to.
1665
+ * @param url - binding URL of the change request.
1666
+ * @param headSha - head commit of the shown diff; marks read at another head are refused.
1667
+ * @param signal - request cancellation.
1668
+ * @returns the marks at `headSha`, or null when the provider keeps no viewed marks.
1669
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1670
+ * `forgePanel/stale-head` when the head moved past `headSha`, which is then polled again; `forgePanel/viewed-failed`
1671
+ * when the host does not provide the marks otherwise.
1672
+ */
1673
+ @Remote async changeRequestViewed(session: Session, url: string, headSha: string, signal: AbortSignal): Promise<ForgeViewedFiles | null>
1674
+
1675
+ /**
1676
+ * Set or clear the signed-in user's viewed mark on one file of a change request of a Session.
1677
+ * @param session - Session the change request is bound to.
1678
+ * @param url - binding URL of the change request.
1679
+ * @param request - the file, its mark, and the head commit of the shown diff.
1680
+ * @param signal - request cancellation.
1681
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1682
+ * `forgePanel/stale-head` when the head moved past `request.headSha`; `forgePanel/action-failed` with the host's
1683
+ * reason when the host refuses, cannot be reached, or keeps no viewed marks; `forgePanel/action-unknown` when the host
1684
+ * did not confirm whether it saved the mark.
1685
+ */
1686
+ @Remote async setFileViewed(session: Session, url: string, request: ForgeViewedRequest, signal: AbortSignal): Promise<void>
1687
+
1688
+ /**
1689
+ * Read the review threads of a change request of a Session at the head commit of its displayed diff. Threads read
1690
+ * at the same head commit and update time are reused from memory, for any Session, until they are
1691
+ * `reviewRefreshMs` old, `maxCachedReviewBytes` evicts them, or a review write through this panel drops them; a read
1692
+ * again after that age, or a `fresh` read, shows threads resolved elsewhere since, which do not change a GitHub pull
1693
+ * request's update time.
1694
+ * @param session - Session the change request is bound to.
1695
+ * @param url - binding URL of the change request.
1696
+ * @param headSha - head commit of the displayed diff.
1697
+ * @param fresh - whether to read from the host even when threads at this head and update time are kept, as after the
1698
+ * reader refreshes the view; the result replaces the kept threads.
1699
+ * @param signal - request cancellation.
1700
+ * @returns the threads at `headSha`, with `current` positions numbering the files of that diff.
1701
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1702
+ * `forgePanel/stale-head` when the latest status or the host names another head, which a host answer polls again;
1703
+ * `forgePanel/review-unsupported` when the provider cannot read reviews; `forgePanel/review-failed` before the
1704
+ * status was read and when the host does not provide the threads otherwise.
1705
+ */
1706
+ @Remote async changeRequestReview(session: Session, url: string, headSha: string, fresh: boolean, signal: AbortSignal): Promise<ForgeReviewData>
1707
+
1708
+ /**
1709
+ * Publish a line comment or completed review for a visible Session binding. The threads kept for the change request
1710
+ * are dropped once the host answers, so the next read shows the comments.
1711
+ * @param session - Session retaining the change request.
1712
+ * @param url - visible binding URL.
1713
+ * @param request - reviewed head, ranges, plain text, and explicit review decision.
1714
+ * @param signal - request cancellation.
1715
+ * @returns confirmed publication or a typed failure; unknown outcomes require reconciliation on the host.
1716
+ */
1717
+ @Remote async submitReview(session: Session, url: string, request: ForgeReviewRequest, signal: AbortSignal): Promise<ForgeReviewResult>
1718
+
1719
+ /**
1720
+ * Write to the review threads or the pending review of a change request of a Session while its head is still the
1721
+ * head the user saw. The threads kept for the change request are dropped once the host answers, so the next read
1722
+ * shows the write, which a resolve does not show through a GitHub pull request's update time.
1723
+ * @param session - Session the change request is bound to.
1724
+ * @param url - binding URL of the change request.
1725
+ * @param write - the write and the head commit of the threads the user saw.
1726
+ * @param signal - request cancellation.
1727
+ * @returns whether the host took the write; `stale` once the head moved, which polls the change request again, and
1728
+ * `unknown` when the outcome must be checked on the host before the write is tried again.
1729
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves; an error
1730
+ * for a write without text, a head that is not a commit object name, or an invalid line range.
1731
+ */
1732
+ @Remote async changeRequestReviewWrite( session: Session, url: string, write: ForgeReviewWrite, signal: AbortSignal, ): Promise<ForgeReviewWriteResult>
1733
+
1734
+ /**
1735
+ * Mark a draft change request of a Session ready for review; the change
1736
+ * request is polled again once the host answers.
1737
+ * @param session - Session the change request is bound to.
1738
+ * @param url - binding URL of the change request.
1739
+ * @param signal - request cancellation.
1740
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1741
+ * `forgePanel/action-failed` with the host's reason when the host refuses or cannot be reached.
1742
+ */
1743
+ @Remote async markReady(session: Session, url: string, signal: AbortSignal): Promise<void>
1744
+
1745
+ /**
1746
+ * Merge a change request of a Session while its head is still `headSha`;
1747
+ * the change request is polled again once the host answers.
1748
+ * @param session - Session the change request is bound to.
1749
+ * @param url - binding URL of the change request.
1750
+ * @param method - how the commits enter the base branch.
1751
+ * @param headSha - head commit the user confirmed.
1752
+ * @param signal - request cancellation.
1753
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1754
+ * `forgePanel/stale-head` when the head moved past `headSha`; `forgePanel/action-failed` with the host's
1755
+ * reason when the host refuses otherwise or cannot be reached.
1756
+ */
1757
+ @Remote async merge(session: Session, url: string, method: MergeMethod, headSha: string, signal: AbortSignal): Promise<void>
1758
+
1759
+ /**
1760
+ * Rerun the failed checks of a change request of a Session while its head is still the commit whose checks the user
1761
+ * saw; the change request is polled again once the host answers.
1762
+ * @param session - Session the change request is bound to.
1763
+ * @param url - binding URL of the change request.
1764
+ * @param request - the head commit whose checks the user saw.
1765
+ * @param signal - request cancellation.
1766
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1767
+ * `forgePanel/stale-head` when the head moved past `request.headSha`; `forgePanel/action-failed` with the host's
1768
+ * reason when the host refuses, cannot be reached, or reruns no checks; `forgePanel/action-unknown` when the host did
1769
+ * not confirm whether it started the rerun.
1770
+ */
1771
+ @Remote async rerunChecks(session: Session, url: string, request: ForgeRerunRequest, signal: AbortSignal): Promise<void>
1772
+
1773
+ /**
1774
+ * Request reviews of a change request of a Session from more reviewers; the change request is polled again once the
1775
+ * host answers.
1776
+ * @param session - Session the change request is bound to.
1777
+ * @param url - binding URL of the change request.
1778
+ * @param reviewers - the reviewers to ask, by kind and login.
1779
+ * @param signal - request cancellation.
1780
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1781
+ * `forgePanel/action-failed` with the host's reason when the host refuses, cannot be reached, or requests no reviews;
1782
+ * `forgePanel/action-unknown` when the host did not confirm whether it requested the reviews.
1783
+ */
1784
+ @Remote async requestReviews( session: Session, url: string, reviewers: readonly Pick<ChangeRequestReviewer, 'kind' | 'login'>[], signal: AbortSignal, ): Promise<void>
1785
+
1786
+ /**
1787
+ * List accounts a review of a change request of a Session can be requested from.
1788
+ * @param session - Session the change request is bound to.
1789
+ * @param url - binding URL of the change request.
1790
+ * @param query - text the login or name contains; empty for the host's suggestions and first accounts.
1791
+ * @param signal - request cancellation.
1792
+ * @returns the accounts, the host's suggestions first.
1793
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1794
+ * `forgePanel/reviewers-failed` when the host does not list them.
1795
+ */
1796
+ @Remote async reviewerCandidates(session: Session, url: string, query: string, signal: AbortSignal): Promise<readonly ForgeReviewerCandidate[]>
1797
+
1798
+ /**
1799
+ * Bring the base branch's new commits into the head branch of a change request of a Session while its head is still
1800
+ * `headSha`; the change request is polled again once the host answers.
1801
+ * @param session - Session the change request is bound to.
1802
+ * @param url - binding URL of the change request.
1803
+ * @param method - merge commit or rebase.
1804
+ * @param headSha - head commit the user confirmed.
1805
+ * @param signal - request cancellation.
1806
+ * @throws `forgePanel/not-bound` unless the URL is a visible binding of the Session that a provider serves;
1807
+ * `forgePanel/stale-head` when the head moved past `headSha`; `forgePanel/action-failed` with the host's reason when
1808
+ * the host refuses, cannot be reached, or updates no branches; `forgePanel/action-unknown` when the host did not
1809
+ * confirm whether it started the update.
1810
+ */
1811
+ @Remote async updateBranch(session: Session, url: string, method: BranchUpdateMethod, headSha: string, signal: AbortSignal): Promise<void>
1812
+
1813
+ /**
1814
+ * Ask for a new worktree before the Session's first turn, replacing an open
1815
+ * request and forgetting a failed attempt. While the next message waits in
1816
+ * the inbox, or else at the first step proposal, the panel creates a branch
1817
+ * from `from`, or from HEAD of the current checkout when it is null, and
1818
+ * enters its checkout. A message that already waits after a failed or
1819
+ * stopped attempt keeps waiting for {@link ForgePanelController.retryWorktree}.
1820
+ * @param session - Session without a started turn.
1821
+ * @param from - local base branch, or null for HEAD.
1822
+ * @param signal - request cancellation.
1823
+ * @throws `forgePanel/invalid-branch` when `from` is empty; `forgePanel/worktrees-unavailable`
1824
+ * without a worktree service; `forgePanel/session-started` after a turn started or the worktree was
1825
+ * created; `forgePanel/session-busy` while the worktree is being created.
1826
+ */
1827
+ @Remote async requestWorktree(session: Session, from: string | null, signal: AbortSignal): Promise<void>
1828
+
1829
+ /**
1830
+ * Withdraw the open worktree request of a Session with its failed attempt,
1831
+ * which lets a waiting message go on in the current checkout; without a
1832
+ * request the Session is unchanged. Withdrawing needs no worktree service.
1833
+ * @param session - Session without a started turn.
1834
+ * @param signal - request cancellation.
1835
+ * @throws `forgePanel/session-started` after a turn started or the worktree was created;
1836
+ * `forgePanel/session-busy` while the worktree is being created.
1837
+ */
1838
+ @Remote async cancelWorktree(session: Session, signal: AbortSignal): Promise<void>
1839
+
1840
+ /**
1841
+ * Stop the creation a message of the Session waits for; the message keeps
1842
+ * waiting with the request still open. Without such a creation the Session
1843
+ * is unchanged.
1844
+ * @param session - Session whose creation stops.
1845
+ * @param signal - request cancellation.
1846
+ */
1847
+ @Remote async stopCreation(session: Session, signal: AbortSignal): Promise<void>
1848
+
1849
+ /**
1850
+ * Make another attempt, with a new branch name, at the worktree a message
1851
+ * of the Session waits for after a failed or stopped attempt.
1852
+ * @param session - Session whose message waits.
1853
+ * @param signal - request cancellation.
1854
+ * @throws `forgePanel/not-waiting` when no message waits or an attempt is running.
1855
+ */
1856
+ @Remote async retryWorktree(session: Session, signal: AbortSignal): Promise<void>
1857
+
1858
+ /**
1859
+ * Check out the created worktree of a Session again at its recorded
1860
+ * directory when that directory is gone: its branch when the branch still
1861
+ * exists, otherwise a new branch of the same name at the base commit. Changes
1862
+ * that were never committed are not recovered. Runs as Agent maintenance,
1863
+ * inside the wait of a message that waits for the restoration, which then
1864
+ * goes on; without a missing directory the Session is unchanged.
1865
+ * @param session - Session whose worktree directory is gone.
1866
+ * @param signal - request cancellation, which aborts the restoration.
1867
+ * @throws `forgePanel/no-worktree` without a created worktree; `forgePanel/worktrees-unavailable`
1868
+ * without a worktree service; `forgePanel/session-busy` while the Session's Agent is not loaded or
1869
+ * has other work; `forgePanel/restore-failed` when Git fails.
1870
+ */
1871
+ @Remote async restoreWorktree(session: Session, signal: AbortSignal): Promise<void>
1872
+
1873
+ /**
1874
+ * Move a Session from its created worktree to the source checkout the
1875
+ * worktree came from; the Session no longer works in the worktree. Runs as
1876
+ * Agent maintenance, inside the wait of a message that waits for the removed
1877
+ * worktree, which then goes on.
1878
+ * @param session - Session with a created worktree.
1879
+ * @param signal - request cancellation.
1880
+ * @throws `forgePanel/no-worktree` without a created worktree; `forgePanel/session-busy` while the
1881
+ * Session's Agent is not loaded or has other work; the working-directory service's error when the
1882
+ * source checkout no longer exists.
1883
+ */
1884
+ @Remote async continueInProject(session: Session, signal: AbortSignal): Promise<void>
1885
+ ```
1886
+
1887
+ Types: [Session](session.md) · [WorktreeCleanup](worktrees.md)
1888
+
1889
+ Source: [`packages/experimental/client-ui-forge/src/index.ts`](../../packages/experimental/client-ui-forge/src/index.ts)
1890
+
1891
+ <a id="ctxforgesession--forgesessionservice"></a>
1892
+
1893
+ ### `ctx.forgeSession` — `ForgeSessionService`
1894
+
1895
+ Session-scoped change request bindings. The `forgeChangeRequests` projection derives them from `gh pr create`, `gh pr view`, `gh pr edit`, `gh pr checkout`, and `git push` results and from `plugin:forge-session/binding` records. After each push result, and when a caller reports the branch a Session works on, the service looks up open change requests whose head is that branch and records the unbound ones as discovered. Watching a Session polls its visible change requests through `ctx.forge`.
1896
+
1897
+ ```ts cordis-catalog
1898
+ /**
1899
+ * List the change requests bound to a Session and not dismissed.
1900
+ * @param session - Session whose bindings are read.
1901
+ * @returns visible bindings in first-recorded order, each with its latest polling result.
1902
+ */
1903
+ changeRequests(session: Session): SessionChangeRequest[]
1904
+
1905
+ /**
1906
+ * Bind a change request to a Session by URL, or restore a dismissed binding.
1907
+ * Appends a `track` record with the provider's canonical URL unless the
1908
+ * change request is already visible.
1909
+ * @param session - Session that receives the binding.
1910
+ * @param url - web URL of the change request.
1911
+ * @throws when no registered provider recognizes the URL.
1912
+ */
1913
+ track(session: Session, url: string): void
1914
+
1915
+ /**
1916
+ * Look up open change requests whose head is a branch the Session works on,
1917
+ * and record the unbound ones as discovered, as after a push of that branch.
1918
+ * A remote that no provider recognizes changes nothing; a failed lookup is
1919
+ * logged and changes nothing.
1920
+ * @param session - Session that receives the bindings.
1921
+ * @param remote - URL of the remote that holds the branch.
1922
+ * @param branch - branch name on that remote.
1923
+ * @returns resolves once the lookup has recorded its bindings or failed.
1924
+ */
1925
+ discoverBranch(session: Session, remote: string, branch: string): Promise<void>
1926
+
1927
+ /**
1928
+ * Hide a visible binding. Appends a `dismiss` record; a URL that is not
1929
+ * visibly bound leaves the log unchanged. Discovery never restores a
1930
+ * dismissed binding; `track` does.
1931
+ * @param session - Session that owns the binding.
1932
+ * @param url - web URL of the change request.
1933
+ */
1934
+ dismiss(session: Session, url: string): void
1935
+
1936
+ /**
1937
+ * Watch a Session's visible change requests as an effect on the calling
1938
+ * fiber. Every visible change request that a provider recognizes is polled
1939
+ * through `ctx.forge` while the Session has a watcher. Listeners receive the
1940
+ * complete list after each later binding or provider change, or polling result; read the
1941
+ * current list with {@link changeRequests}. Listeners must not throw; a
1942
+ * thrown error is logged and skipped.
1943
+ * @param session - Session to watch.
1944
+ * @param listener - receives the complete visible list.
1945
+ * @returns the disposer that stops this watch.
1946
+ */
1947
+ watch(session: Session, listener: SessionChangeRequestsListener): () => void
1948
+ ```
1949
+
1950
+ Types: [Session](session.md)
1951
+
1952
+ Source: [`packages/experimental/forge-session/src/index.ts`](../../packages/experimental/forge-session/src/index.ts)
1953
+
1954
+ <a id="forge-events"></a>
1955
+
1956
+ ### `forge/*` events
1957
+
1958
+ <a id="forgeproviders-changed--parallel"></a>
1959
+
1960
+ #### `forge/providers-changed` — parallel
1961
+
1962
+ Announces a provider registration or withdrawal after the registry changes. Listener failures are logged without preventing other listeners from running.
1963
+
1964
+ ```ts cordis-catalog
1965
+ /**
1966
+ * Announces a provider registration or withdrawal after the registry changes.
1967
+ * Listener failures are logged without preventing other listeners from running.
1968
+ * @param forge - family whose provider changed.
1969
+ * @mode parallel
1970
+ */
1971
+ 'forge/providers-changed'(forge: string): void | Promise<void>
1972
+ ```
1973
+
1974
+ Source: [`packages/experimental/forge/src/index.ts`](../../packages/experimental/forge/src/index.ts)
1975
+ <!-- END GENERATED cordis-surface -->