dsh-plugin-guide 0.3.41 → 0.4.0

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 (892) hide show
  1. package/LICENSE +0 -0
  2. package/NOTICE.md +8 -23
  3. package/PRIVACY.md +11 -0
  4. package/README-zh.md +45 -418
  5. package/README.md +50 -435
  6. package/SKILL.md +41 -99
  7. package/STANDARDS.md +14 -5
  8. package/cordis.patch.yml +0 -0
  9. package/docs/boost.md +75 -0
  10. package/docs/entry.md +60 -0
  11. package/docs/flow.md +57 -0
  12. package/docs/levels.md +76 -0
  13. package/icon.svg +0 -0
  14. package/index.js +7 -24
  15. package/locale/en.json +2 -2
  16. package/locale/zh.json +2 -2
  17. package/package.json +29 -78
  18. package/README-es.md +0 -453
  19. package/README-hi.md +0 -453
  20. package/README-pt.md +0 -453
  21. package/bin/dsh-plugin-dev.js +0 -6
  22. package/data/facts.json +0 -66
  23. package/data/seams/index.json +0 -397
  24. package/data/standards.json +0 -300
  25. package/dist/dsh-plugin-dev.js +0 -2261
  26. package/guide/choosing-a-plugin.md +0 -412
  27. package/guide/choosing-a-plugin.zh-CN.md +0 -414
  28. package/guide/family-toolchain.md +0 -260
  29. package/guide/links.md +0 -112
  30. package/guide/migration-0.2.md +0 -275
  31. package/guide/plugin-dev-guide.md +0 -629
  32. package/guide/quick-reference.es.md +0 -185
  33. package/guide/quick-reference.hi.md +0 -185
  34. package/guide/quick-reference.md +0 -185
  35. package/guide/quick-reference.pt.md +0 -185
  36. package/guide/quick-reference.zh-CN.md +0 -184
  37. package/guide/release-engineering.md +0 -198
  38. package/guide/release-engineering.zh-CN.md +0 -198
  39. package/guide/standards.md +0 -141
  40. package/guide/standards.zh-CN.md +0 -141
  41. package/guide/unfixed-issues.md +0 -155
  42. package/guide/version-matrix.md +0 -309
  43. package/guide/when-to-retire-a-plugin.md +0 -127
  44. package/guide/when-to-retire-a-plugin.zh-CN.md +0 -127
  45. package/index.d.ts +0 -32
  46. package/references/cli-positioning-decision.md +0 -78
  47. package/references/community-ecosystem.md +0 -202
  48. package/references/community-repo-deep-dive.md +0 -660
  49. package/references/cordis-paper-and-community.md +0 -326
  50. package/references/dev-resource-landscape.md +0 -294
  51. package/references/harness-repo.md +0 -673
  52. package/references/mirror-scope-decision.md +0 -79
  53. package/references/official-docs/AGENTS.md +0 -185
  54. package/references/official-docs/BENCHMARK.md +0 -3
  55. package/references/official-docs/CLAUDE.md +0 -1
  56. package/references/official-docs/CONTRIBUTING.i18n.yaml +0 -7
  57. package/references/official-docs/CONTRIBUTING.md +0 -23
  58. package/references/official-docs/CONTRIBUTING.zh.md +0 -23
  59. package/references/official-docs/LICENSE +0 -21
  60. package/references/official-docs/README.i18n.yaml +0 -34
  61. package/references/official-docs/README.md +0 -35
  62. package/references/official-docs/README.zh.md +0 -96
  63. package/references/official-docs/SNAPSHOT.md +0 -14
  64. package/references/official-docs/THIRD_PARTY_NOTICES.md +0 -304
  65. package/references/official-docs/docs/AGENTS.md +0 -77
  66. package/references/official-docs/docs/agent-lifecycle.i18n.yaml +0 -10
  67. package/references/official-docs/docs/agent-lifecycle.md +0 -91
  68. package/references/official-docs/docs/agent-lifecycle.zh.md +0 -93
  69. package/references/official-docs/docs/api-gateway.i18n.yaml +0 -31
  70. package/references/official-docs/docs/api-gateway.md +0 -172
  71. package/references/official-docs/docs/api-gateway.zh.md +0 -178
  72. package/references/official-docs/docs/architecture.i18n.yaml +0 -37
  73. package/references/official-docs/docs/architecture.md +0 -165
  74. package/references/official-docs/docs/architecture.zh.md +0 -169
  75. package/references/official-docs/docs/capability-seams.i18n.yaml +0 -10
  76. package/references/official-docs/docs/capability-seams.md +0 -714
  77. package/references/official-docs/docs/capability-seams.zh.md +0 -716
  78. package/references/official-docs/docs/cli-help.i18n.yaml +0 -34
  79. package/references/official-docs/docs/cli-help.md +0 -203
  80. package/references/official-docs/docs/cli-help.zh.md +0 -205
  81. package/references/official-docs/docs/config-catalog.i18n.yaml +0 -19
  82. package/references/official-docs/docs/config-catalog.md +0 -4801
  83. package/references/official-docs/docs/config-catalog.zh.md +0 -4803
  84. package/references/official-docs/docs/cookbook/adding-a-package.i18n.yaml +0 -28
  85. package/references/official-docs/docs/cookbook/adding-a-package.md +0 -170
  86. package/references/official-docs/docs/cookbook/adding-a-package.zh.md +0 -170
  87. package/references/official-docs/docs/cookbook/adding-a-plugin-preview.i18n.yaml +0 -22
  88. package/references/official-docs/docs/cookbook/adding-a-plugin-preview.md +0 -52
  89. package/references/official-docs/docs/cookbook/adding-a-plugin-preview.zh.md +0 -52
  90. package/references/official-docs/docs/cookbook/adding-a-remote-api.i18n.yaml +0 -25
  91. package/references/official-docs/docs/cookbook/adding-a-remote-api.md +0 -197
  92. package/references/official-docs/docs/cookbook/adding-a-remote-api.zh.md +0 -197
  93. package/references/official-docs/docs/cookbook/adding-a-session-format-version.i18n.yaml +0 -40
  94. package/references/official-docs/docs/cookbook/adding-a-session-format-version.md +0 -153
  95. package/references/official-docs/docs/cookbook/adding-a-session-format-version.zh.md +0 -153
  96. package/references/official-docs/docs/cookbook/adding-a-settings-card.i18n.yaml +0 -22
  97. package/references/official-docs/docs/cookbook/adding-a-settings-card.md +0 -72
  98. package/references/official-docs/docs/cookbook/adding-a-settings-card.zh.md +0 -72
  99. package/references/official-docs/docs/cookbook/adding-a-tool.i18n.yaml +0 -31
  100. package/references/official-docs/docs/cookbook/adding-a-tool.md +0 -101
  101. package/references/official-docs/docs/cookbook/adding-a-tool.zh.md +0 -103
  102. package/references/official-docs/docs/cookbook/adding-a-vendored-package.i18n.yaml +0 -19
  103. package/references/official-docs/docs/cookbook/adding-a-vendored-package.md +0 -59
  104. package/references/official-docs/docs/cookbook/adding-a-vendored-package.zh.md +0 -59
  105. package/references/official-docs/docs/cookbook/adding-an-llm-adapter.i18n.yaml +0 -19
  106. package/references/official-docs/docs/cookbook/adding-an-llm-adapter.md +0 -43
  107. package/references/official-docs/docs/cookbook/adding-an-llm-adapter.zh.md +0 -43
  108. package/references/official-docs/docs/cookbook/extension-cookbook.i18n.yaml +0 -25
  109. package/references/official-docs/docs/cookbook/extension-cookbook.md +0 -132
  110. package/references/official-docs/docs/cookbook/extension-cookbook.zh.md +0 -136
  111. package/references/official-docs/docs/cookbook/maintaining-dsh-code-review.i18n.yaml +0 -22
  112. package/references/official-docs/docs/cookbook/maintaining-dsh-code-review.md +0 -64
  113. package/references/official-docs/docs/cookbook/maintaining-dsh-code-review.zh.md +0 -64
  114. package/references/official-docs/docs/cookbook/responding-to-pr-review-on-a-stack.i18n.yaml +0 -16
  115. package/references/official-docs/docs/cookbook/responding-to-pr-review-on-a-stack.md +0 -32
  116. package/references/official-docs/docs/cookbook/responding-to-pr-review-on-a-stack.zh.md +0 -32
  117. package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.i18n.yaml +0 -31
  118. package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.md +0 -122
  119. package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.zh.md +0 -122
  120. package/references/official-docs/docs/cordis-api/context.i18n.yaml +0 -73
  121. package/references/official-docs/docs/cordis-api/context.md +0 -364
  122. package/references/official-docs/docs/cordis-api/context.zh.md +0 -366
  123. package/references/official-docs/docs/cordis-api/events.i18n.yaml +0 -37
  124. package/references/official-docs/docs/cordis-api/events.md +0 -207
  125. package/references/official-docs/docs/cordis-api/events.zh.md +0 -209
  126. package/references/official-docs/docs/cordis-api/fiber.i18n.yaml +0 -76
  127. package/references/official-docs/docs/cordis-api/fiber.md +0 -375
  128. package/references/official-docs/docs/cordis-api/fiber.zh.md +0 -377
  129. package/references/official-docs/docs/cordis-api/inherited.md +0 -38
  130. package/references/official-docs/docs/cordis-api/registry.i18n.yaml +0 -22
  131. package/references/official-docs/docs/cordis-api/registry.md +0 -152
  132. package/references/official-docs/docs/cordis-api/registry.zh.md +0 -154
  133. package/references/official-docs/docs/cordis-api/service.i18n.yaml +0 -37
  134. package/references/official-docs/docs/cordis-api/service.md +0 -102
  135. package/references/official-docs/docs/cordis-api/service.zh.md +0 -104
  136. package/references/official-docs/docs/cordis-primer.i18n.yaml +0 -22
  137. package/references/official-docs/docs/cordis-primer.md +0 -45
  138. package/references/official-docs/docs/cordis-primer.zh.md +0 -51
  139. package/references/official-docs/docs/cordis-tutorial/01-first-plugin.i18n.yaml +0 -22
  140. package/references/official-docs/docs/cordis-tutorial/01-first-plugin.md +0 -95
  141. package/references/official-docs/docs/cordis-tutorial/01-first-plugin.zh.md +0 -95
  142. package/references/official-docs/docs/cordis-tutorial/02-lifecycle-and-effects.i18n.yaml +0 -16
  143. package/references/official-docs/docs/cordis-tutorial/02-lifecycle-and-effects.md +0 -98
  144. package/references/official-docs/docs/cordis-tutorial/02-lifecycle-and-effects.zh.md +0 -98
  145. package/references/official-docs/docs/cordis-tutorial/03-services.i18n.yaml +0 -22
  146. package/references/official-docs/docs/cordis-tutorial/03-services.md +0 -98
  147. package/references/official-docs/docs/cordis-tutorial/03-services.zh.md +0 -98
  148. package/references/official-docs/docs/cordis-tutorial/04-events.i18n.yaml +0 -16
  149. package/references/official-docs/docs/cordis-tutorial/04-events.md +0 -144
  150. package/references/official-docs/docs/cordis-tutorial/04-events.zh.md +0 -144
  151. package/references/official-docs/docs/cordis-tutorial/05-config.i18n.yaml +0 -19
  152. package/references/official-docs/docs/cordis-tutorial/05-config.md +0 -111
  153. package/references/official-docs/docs/cordis-tutorial/05-config.zh.md +0 -111
  154. package/references/official-docs/docs/cordis-tutorial/06-composition-and-hmr.i18n.yaml +0 -16
  155. package/references/official-docs/docs/cordis-tutorial/06-composition-and-hmr.md +0 -113
  156. package/references/official-docs/docs/cordis-tutorial/06-composition-and-hmr.zh.md +0 -113
  157. package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.i18n.yaml +0 -19
  158. package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.md +0 -108
  159. package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.zh.md +0 -108
  160. package/references/official-docs/docs/cordis-tutorial/index.i18n.yaml +0 -16
  161. package/references/official-docs/docs/cordis-tutorial/index.md +0 -60
  162. package/references/official-docs/docs/cordis-tutorial/index.zh.md +0 -62
  163. package/references/official-docs/docs/deepseek-llm-api-wire-extensions.i18n.yaml +0 -34
  164. package/references/official-docs/docs/deepseek-llm-api-wire-extensions.md +0 -162
  165. package/references/official-docs/docs/deepseek-llm-api-wire-extensions.zh.md +0 -162
  166. package/references/official-docs/docs/defensive-patterns/README.i18n.yaml +0 -10
  167. package/references/official-docs/docs/defensive-patterns/README.md +0 -25
  168. package/references/official-docs/docs/defensive-patterns/README.zh.md +0 -27
  169. package/references/official-docs/docs/defensive-patterns/client-components.i18n.yaml +0 -46
  170. package/references/official-docs/docs/defensive-patterns/client-components.md +0 -493
  171. package/references/official-docs/docs/defensive-patterns/client-components.zh.md +0 -495
  172. package/references/official-docs/docs/defensive-patterns/conversation-and-session.i18n.yaml +0 -31
  173. package/references/official-docs/docs/defensive-patterns/conversation-and-session.md +0 -316
  174. package/references/official-docs/docs/defensive-patterns/conversation-and-session.zh.md +0 -316
  175. package/references/official-docs/docs/defensive-patterns/general.i18n.yaml +0 -52
  176. package/references/official-docs/docs/defensive-patterns/general.md +0 -222
  177. package/references/official-docs/docs/defensive-patterns/general.zh.md +0 -252
  178. package/references/official-docs/docs/defensive-patterns/package-surface.i18n.yaml +0 -28
  179. package/references/official-docs/docs/defensive-patterns/package-surface.md +0 -231
  180. package/references/official-docs/docs/defensive-patterns/package-surface.zh.md +0 -231
  181. package/references/official-docs/docs/defensive-patterns/remote-and-api.i18n.yaml +0 -16
  182. package/references/official-docs/docs/defensive-patterns/remote-and-api.md +0 -115
  183. package/references/official-docs/docs/defensive-patterns/remote-and-api.zh.md +0 -115
  184. package/references/official-docs/docs/dependency-catalog.json +0 -7312
  185. package/references/official-docs/docs/development.i18n.yaml +0 -49
  186. package/references/official-docs/docs/development.md +0 -214
  187. package/references/official-docs/docs/development.zh.md +0 -221
  188. package/references/official-docs/docs/event-producer-consumer.i18n.yaml +0 -13
  189. package/references/official-docs/docs/event-producer-consumer.md +0 -110
  190. package/references/official-docs/docs/event-producer-consumer.zh.md +0 -112
  191. package/references/official-docs/docs/experimental-persistence-catalog.i18n.yaml +0 -10
  192. package/references/official-docs/docs/experimental-persistence-catalog.md +0 -17
  193. package/references/official-docs/docs/experimental-persistence-catalog.zh.md +0 -17
  194. package/references/official-docs/docs/glossary.i18n.yaml +0 -25
  195. package/references/official-docs/docs/glossary.md +0 -46
  196. package/references/official-docs/docs/glossary.zh.md +0 -46
  197. package/references/official-docs/docs/graph-atlas.i18n.yaml +0 -10
  198. package/references/official-docs/docs/graph-atlas.md +0 -22
  199. package/references/official-docs/docs/graph-atlas.zh.md +0 -24
  200. package/references/official-docs/docs/i18n/README.i18n.yaml +0 -19
  201. package/references/official-docs/docs/i18n/README.md +0 -69
  202. package/references/official-docs/docs/i18n/README.zh.md +0 -71
  203. package/references/official-docs/docs/i18n/style-samples.md +0 -87
  204. package/references/official-docs/docs/i18n/terminology.md +0 -215
  205. package/references/official-docs/docs/i18n/translation-prompt.md +0 -263
  206. package/references/official-docs/docs/i18n/translation-rules.i18n.yaml +0 -28
  207. package/references/official-docs/docs/i18n/translation-rules.md +0 -69
  208. package/references/official-docs/docs/i18n/translation-rules.zh.md +0 -69
  209. package/references/official-docs/docs/module-graph.i18n.yaml +0 -10
  210. package/references/official-docs/docs/module-graph.md +0 -1776
  211. package/references/official-docs/docs/module-graph.zh.md +0 -1778
  212. package/references/official-docs/docs/persistence-catalog.i18n.yaml +0 -2152
  213. package/references/official-docs/docs/persistence-catalog.md +0 -9140
  214. package/references/official-docs/docs/persistence-catalog.zh.md +0 -9142
  215. package/references/official-docs/docs/persistence-changes/2026-09-11-initial.i18n.yaml +0 -28
  216. package/references/official-docs/docs/persistence-changes/2026-09-11-initial.md +0 -280
  217. package/references/official-docs/docs/persistence-changes/2026-09-11-initial.schema.json +0 -13557
  218. package/references/official-docs/docs/persistence-changes/2026-09-11-initial.zh.md +0 -280
  219. package/references/official-docs/docs/persistence-changes/2026-09-12-auto-review-error-metadata.i18n.yaml +0 -28
  220. package/references/official-docs/docs/persistence-changes/2026-09-12-auto-review-error-metadata.md +0 -52
  221. package/references/official-docs/docs/persistence-changes/2026-09-12-auto-review-error-metadata.schema.json +0 -910
  222. package/references/official-docs/docs/persistence-changes/2026-09-12-auto-review-error-metadata.zh.md +0 -52
  223. package/references/official-docs/docs/persistence-changes/2026-09-13-working-directory.i18n.yaml +0 -28
  224. package/references/official-docs/docs/persistence-changes/2026-09-13-working-directory.md +0 -48
  225. package/references/official-docs/docs/persistence-changes/2026-09-13-working-directory.schema.json +0 -76
  226. package/references/official-docs/docs/persistence-changes/2026-09-13-working-directory.zh.md +0 -48
  227. package/references/official-docs/docs/persistence-changes/2026-09-14-image-offload.i18n.yaml +0 -28
  228. package/references/official-docs/docs/persistence-changes/2026-09-14-image-offload.md +0 -96
  229. package/references/official-docs/docs/persistence-changes/2026-09-14-image-offload.schema.json +0 -8478
  230. package/references/official-docs/docs/persistence-changes/2026-09-14-image-offload.zh.md +0 -96
  231. package/references/official-docs/docs/persistence-changes/2026-09-14-workspace-changes-event.i18n.yaml +0 -28
  232. package/references/official-docs/docs/persistence-changes/2026-09-14-workspace-changes-event.md +0 -48
  233. package/references/official-docs/docs/persistence-changes/2026-09-14-workspace-changes-event.schema.json +0 -72
  234. package/references/official-docs/docs/persistence-changes/2026-09-14-workspace-changes-event.zh.md +0 -48
  235. package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.i18n.yaml +0 -28
  236. package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.md +0 -120
  237. package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.schema.json +0 -16212
  238. package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.zh.md +0 -120
  239. package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.i18n.yaml +0 -28
  240. package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.md +0 -48
  241. package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.schema.json +0 -302
  242. package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.zh.md +0 -48
  243. package/references/official-docs/docs/persistence-changes/2026-09-19-external-subagent-catalog.i18n.yaml +0 -28
  244. package/references/official-docs/docs/persistence-changes/2026-09-19-external-subagent-catalog.md +0 -48
  245. package/references/official-docs/docs/persistence-changes/2026-09-19-external-subagent-catalog.schema.json +0 -290
  246. package/references/official-docs/docs/persistence-changes/2026-09-19-external-subagent-catalog.zh.md +0 -48
  247. package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.i18n.yaml +0 -28
  248. package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.md +0 -48
  249. package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.schema.json +0 -250
  250. package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.zh.md +0 -48
  251. package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.i18n.yaml +0 -28
  252. package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.md +0 -60
  253. package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.schema.json +0 -11405
  254. package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.zh.md +0 -60
  255. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.i18n.yaml +0 -28
  256. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.md +0 -52
  257. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.schema.json +0 -297
  258. package/references/official-docs/docs/persistence-changes/2026-09-30-job-session-lifecycle.zh.md +0 -52
  259. package/references/official-docs/docs/persistence-changes/2026-10-05-ptc-operation-metadata.i18n.yaml +0 -28
  260. package/references/official-docs/docs/persistence-changes/2026-10-05-ptc-operation-metadata.md +0 -48
  261. package/references/official-docs/docs/persistence-changes/2026-10-05-ptc-operation-metadata.schema.json +0 -457
  262. package/references/official-docs/docs/persistence-changes/2026-10-05-ptc-operation-metadata.zh.md +0 -48
  263. package/references/official-docs/docs/persistence-changes/2026-10-05-working-directory-attribution.i18n.yaml +0 -28
  264. package/references/official-docs/docs/persistence-changes/2026-10-05-working-directory-attribution.md +0 -60
  265. package/references/official-docs/docs/persistence-changes/2026-10-05-working-directory-attribution.schema.json +0 -11474
  266. package/references/official-docs/docs/persistence-changes/2026-10-05-working-directory-attribution.zh.md +0 -60
  267. package/references/official-docs/docs/persistence-changes/2026-10-07-title-reasoning-effort.i18n.yaml +0 -28
  268. package/references/official-docs/docs/persistence-changes/2026-10-07-title-reasoning-effort.md +0 -48
  269. package/references/official-docs/docs/persistence-changes/2026-10-07-title-reasoning-effort.schema.json +0 -2990
  270. package/references/official-docs/docs/persistence-changes/2026-10-07-title-reasoning-effort.zh.md +0 -48
  271. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.i18n.yaml +0 -28
  272. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.md +0 -48
  273. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.schema.json +0 -231
  274. package/references/official-docs/docs/persistence-changes/2026-10-13-deepseek-search-thinking.zh.md +0 -48
  275. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.i18n.yaml +0 -28
  276. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.md +0 -60
  277. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.schema.json +0 -11559
  278. package/references/official-docs/docs/persistence-changes/2026-10-13-user-rpc-principal.zh.md +0 -60
  279. package/references/official-docs/docs/persistence-changes/README.i18n.yaml +0 -28
  280. package/references/official-docs/docs/persistence-changes/README.md +0 -90
  281. package/references/official-docs/docs/persistence-changes/README.zh.md +0 -90
  282. package/references/official-docs/docs/persistence-changes/finalized/v4.json +0 -379
  283. package/references/official-docs/docs/persistence-changes/historical-formats/README.i18n.yaml +0 -28
  284. package/references/official-docs/docs/persistence-changes/historical-formats/README.md +0 -75
  285. package/references/official-docs/docs/persistence-changes/historical-formats/README.zh.md +0 -75
  286. package/references/official-docs/docs/persistence-changes/historical-formats/v0.i18n.yaml +0 -1285
  287. package/references/official-docs/docs/persistence-changes/historical-formats/v0.md +0 -5105
  288. package/references/official-docs/docs/persistence-changes/historical-formats/v0.schema.json +0 -49308
  289. package/references/official-docs/docs/persistence-changes/historical-formats/v0.zh.md +0 -5105
  290. package/references/official-docs/docs/persistence-changes/historical-formats/v1.i18n.yaml +0 -1285
  291. package/references/official-docs/docs/persistence-changes/historical-formats/v1.md +0 -5107
  292. package/references/official-docs/docs/persistence-changes/historical-formats/v1.schema.json +0 -49411
  293. package/references/official-docs/docs/persistence-changes/historical-formats/v1.zh.md +0 -5107
  294. package/references/official-docs/docs/persistence-changes/historical-formats/v2.i18n.yaml +0 -1345
  295. package/references/official-docs/docs/persistence-changes/historical-formats/v2.md +0 -5362
  296. package/references/official-docs/docs/persistence-changes/historical-formats/v2.schema.json +0 -56466
  297. package/references/official-docs/docs/persistence-changes/historical-formats/v2.zh.md +0 -5362
  298. package/references/official-docs/docs/persistence-changes/historical-formats/v3.i18n.yaml +0 -1441
  299. package/references/official-docs/docs/persistence-changes/historical-formats/v3.md +0 -5634
  300. package/references/official-docs/docs/persistence-changes/historical-formats/v3.schema.json +0 -61307
  301. package/references/official-docs/docs/persistence-changes/historical-formats/v3.zh.md +0 -5634
  302. package/references/official-docs/docs/persistence-changes/releases/README.i18n.yaml +0 -31
  303. package/references/official-docs/docs/persistence-changes/releases/README.md +0 -103
  304. package/references/official-docs/docs/persistence-changes/releases/README.zh.md +0 -103
  305. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.1.i18n.yaml +0 -31
  306. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.1.md +0 -201
  307. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.1.schema.json +0 -39868
  308. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.1.zh.md +0 -201
  309. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.2.i18n.yaml +0 -31
  310. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.2.md +0 -261
  311. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.2.schema.json +0 -43342
  312. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.2.zh.md +0 -261
  313. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.3.i18n.yaml +0 -31
  314. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.3.md +0 -126
  315. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.3.schema.json +0 -19452
  316. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.3.zh.md +0 -126
  317. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.4.i18n.yaml +0 -31
  318. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.4.md +0 -75
  319. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.4.schema.json +0 -5
  320. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.4.zh.md +0 -75
  321. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.5.i18n.yaml +0 -31
  322. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.5.md +0 -75
  323. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.5.schema.json +0 -5
  324. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.5.zh.md +0 -75
  325. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.1.i18n.yaml +0 -31
  326. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.1.md +0 -75
  327. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.1.schema.json +0 -5
  328. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.1.zh.md +0 -75
  329. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.2.i18n.yaml +0 -31
  330. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.2.md +0 -75
  331. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.2.schema.json +0 -5
  332. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.2.zh.md +0 -75
  333. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.3.i18n.yaml +0 -31
  334. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.3.md +0 -75
  335. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.3.schema.json +0 -5
  336. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.3.zh.md +0 -75
  337. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.5.i18n.yaml +0 -31
  338. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.5.md +0 -75
  339. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.5.schema.json +0 -5
  340. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.5.zh.md +0 -75
  341. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.6.i18n.yaml +0 -31
  342. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.6.md +0 -75
  343. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.6.schema.json +0 -5
  344. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.6.zh.md +0 -75
  345. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.7.i18n.yaml +0 -31
  346. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.7.md +0 -82
  347. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.7.schema.json +0 -5320
  348. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.7.zh.md +0 -82
  349. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.8.i18n.yaml +0 -31
  350. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.8.md +0 -110
  351. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.8.schema.json +0 -21258
  352. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.8.zh.md +0 -110
  353. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.1.i18n.yaml +0 -31
  354. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.1.md +0 -82
  355. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.1.schema.json +0 -417
  356. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.1.zh.md +0 -82
  357. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.2.i18n.yaml +0 -31
  358. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.2.md +0 -119
  359. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.2.schema.json +0 -29672
  360. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.2.zh.md +0 -119
  361. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.1.i18n.yaml +0 -31
  362. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.1.md +0 -295
  363. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.1.schema.json +0 -48429
  364. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.1.zh.md +0 -295
  365. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.2.i18n.yaml +0 -31
  366. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.2.md +0 -286
  367. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.2.schema.json +0 -49347
  368. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.2.zh.md +0 -286
  369. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.3.i18n.yaml +0 -31
  370. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.3.md +0 -75
  371. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.3.schema.json +0 -5
  372. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.3.zh.md +0 -75
  373. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.4.i18n.yaml +0 -31
  374. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.4.md +0 -95
  375. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.4.schema.json +0 -17642
  376. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.4.zh.md +0 -95
  377. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.5.i18n.yaml +0 -31
  378. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.5.md +0 -75
  379. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.5.schema.json +0 -5
  380. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.5.zh.md +0 -75
  381. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-rc.1.i18n.yaml +0 -31
  382. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-rc.1.md +0 -75
  383. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-rc.1.schema.json +0 -5
  384. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-rc.1.zh.md +0 -75
  385. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.1.i18n.yaml +0 -31
  386. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.1.md +0 -154
  387. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.1.schema.json +0 -38678
  388. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.1.zh.md +0 -154
  389. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.2.i18n.yaml +0 -31
  390. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.2.md +0 -86
  391. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.2.schema.json +0 -783
  392. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.2.zh.md +0 -86
  393. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.1.i18n.yaml +0 -31
  394. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.1.md +0 -139
  395. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.1.schema.json +0 -24597
  396. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.1.zh.md +0 -139
  397. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.2.i18n.yaml +0 -31
  398. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.2.md +0 -95
  399. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.2.schema.json +0 -2132
  400. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.2.zh.md +0 -95
  401. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.1.i18n.yaml +0 -31
  402. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.1.md +0 -75
  403. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.1.schema.json +0 -5
  404. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.1.zh.md +0 -75
  405. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.2.i18n.yaml +0 -31
  406. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.2.md +0 -75
  407. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.2.schema.json +0 -5
  408. package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.2.zh.md +0 -75
  409. package/references/official-docs/docs/persistence-changes/releases/manifest.json +0 -162
  410. package/references/official-docs/docs/persistence-schema.json +0 -26177
  411. package/references/official-docs/docs/postmortem/0001-acp-default-export-drops-inject.i18n.yaml +0 -34
  412. package/references/official-docs/docs/postmortem/0001-acp-default-export-drops-inject.md +0 -113
  413. package/references/official-docs/docs/postmortem/0001-acp-default-export-drops-inject.zh.md +0 -113
  414. package/references/official-docs/docs/postmortem/0002-js-expression-disabled-filesystem-tools.i18n.yaml +0 -28
  415. package/references/official-docs/docs/postmortem/0002-js-expression-disabled-filesystem-tools.md +0 -47
  416. package/references/official-docs/docs/postmortem/0002-js-expression-disabled-filesystem-tools.zh.md +0 -47
  417. package/references/official-docs/docs/postmortem/0003-web-agent-gui-feedback-loop.i18n.yaml +0 -28
  418. package/references/official-docs/docs/postmortem/0003-web-agent-gui-feedback-loop.md +0 -53
  419. package/references/official-docs/docs/postmortem/0003-web-agent-gui-feedback-loop.zh.md +0 -53
  420. package/references/official-docs/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.i18n.yaml +0 -28
  421. package/references/official-docs/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.md +0 -55
  422. package/references/official-docs/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.zh.md +0 -55
  423. package/references/official-docs/docs/postmortem/README.i18n.yaml +0 -7
  424. package/references/official-docs/docs/postmortem/README.md +0 -18
  425. package/references/official-docs/docs/postmortem/README.zh.md +0 -18
  426. package/references/official-docs/docs/rescope.i18n.yaml +0 -19
  427. package/references/official-docs/docs/rescope.md +0 -53
  428. package/references/official-docs/docs/rescope.zh.md +0 -53
  429. package/references/official-docs/docs/session-format-status.i18n.yaml +0 -28
  430. package/references/official-docs/docs/session-format-status.md +0 -63
  431. package/references/official-docs/docs/session-format-status.zh.md +0 -63
  432. package/references/official-docs/docs/subsystems/README.i18n.yaml +0 -7
  433. package/references/official-docs/docs/subsystems/README.md +0 -76
  434. package/references/official-docs/docs/subsystems/README.zh.md +0 -76
  435. package/references/official-docs/docs/subsystems/agent-team.i18n.yaml +0 -22
  436. package/references/official-docs/docs/subsystems/agent-team.md +0 -231
  437. package/references/official-docs/docs/subsystems/agent-team.zh.md +0 -231
  438. package/references/official-docs/docs/subsystems/approval.i18n.yaml +0 -19
  439. package/references/official-docs/docs/subsystems/approval.md +0 -170
  440. package/references/official-docs/docs/subsystems/approval.zh.md +0 -170
  441. package/references/official-docs/docs/subsystems/attachment.i18n.yaml +0 -13
  442. package/references/official-docs/docs/subsystems/attachment.md +0 -361
  443. package/references/official-docs/docs/subsystems/attachment.zh.md +0 -361
  444. package/references/official-docs/docs/subsystems/boot.i18n.yaml +0 -16
  445. package/references/official-docs/docs/subsystems/boot.md +0 -447
  446. package/references/official-docs/docs/subsystems/boot.zh.md +0 -447
  447. package/references/official-docs/docs/subsystems/browser-use.i18n.yaml +0 -19
  448. package/references/official-docs/docs/subsystems/browser-use.md +0 -67
  449. package/references/official-docs/docs/subsystems/browser-use.zh.md +0 -67
  450. package/references/official-docs/docs/subsystems/claude-code-mods.i18n.yaml +0 -28
  451. package/references/official-docs/docs/subsystems/claude-code-mods.md +0 -146
  452. package/references/official-docs/docs/subsystems/claude-code-mods.zh.md +0 -146
  453. package/references/official-docs/docs/subsystems/client-modules.i18n.yaml +0 -19
  454. package/references/official-docs/docs/subsystems/client-modules.md +0 -198
  455. package/references/official-docs/docs/subsystems/client-modules.zh.md +0 -198
  456. package/references/official-docs/docs/subsystems/client-resources.i18n.yaml +0 -22
  457. package/references/official-docs/docs/subsystems/client-resources.md +0 -92
  458. package/references/official-docs/docs/subsystems/client-resources.zh.md +0 -92
  459. package/references/official-docs/docs/subsystems/commands.i18n.yaml +0 -19
  460. package/references/official-docs/docs/subsystems/commands.md +0 -223
  461. package/references/official-docs/docs/subsystems/commands.zh.md +0 -223
  462. package/references/official-docs/docs/subsystems/compaction.i18n.yaml +0 -22
  463. package/references/official-docs/docs/subsystems/compaction.md +0 -284
  464. package/references/official-docs/docs/subsystems/compaction.zh.md +0 -284
  465. package/references/official-docs/docs/subsystems/computer-use.i18n.yaml +0 -16
  466. package/references/official-docs/docs/subsystems/computer-use.md +0 -59
  467. package/references/official-docs/docs/subsystems/computer-use.zh.md +0 -59
  468. package/references/official-docs/docs/subsystems/conversation.i18n.yaml +0 -31
  469. package/references/official-docs/docs/subsystems/conversation.md +0 -301
  470. package/references/official-docs/docs/subsystems/conversation.zh.md +0 -303
  471. package/references/official-docs/docs/subsystems/core.i18n.yaml +0 -37
  472. package/references/official-docs/docs/subsystems/core.md +0 -1113
  473. package/references/official-docs/docs/subsystems/core.zh.md +0 -1125
  474. package/references/official-docs/docs/subsystems/credentials.i18n.yaml +0 -25
  475. package/references/official-docs/docs/subsystems/credentials.md +0 -493
  476. package/references/official-docs/docs/subsystems/credentials.zh.md +0 -493
  477. package/references/official-docs/docs/subsystems/deliverables.i18n.yaml +0 -28
  478. package/references/official-docs/docs/subsystems/deliverables.md +0 -178
  479. package/references/official-docs/docs/subsystems/deliverables.zh.md +0 -178
  480. package/references/official-docs/docs/subsystems/extensions.i18n.yaml +0 -7
  481. package/references/official-docs/docs/subsystems/extensions.md +0 -384
  482. package/references/official-docs/docs/subsystems/extensions.zh.md +0 -384
  483. package/references/official-docs/docs/subsystems/feedback.i18n.yaml +0 -28
  484. package/references/official-docs/docs/subsystems/feedback.md +0 -400
  485. package/references/official-docs/docs/subsystems/feedback.zh.md +0 -400
  486. package/references/official-docs/docs/subsystems/filesystem.i18n.yaml +0 -34
  487. package/references/official-docs/docs/subsystems/filesystem.md +0 -530
  488. package/references/official-docs/docs/subsystems/filesystem.zh.md +0 -530
  489. package/references/official-docs/docs/subsystems/goal.i18n.yaml +0 -19
  490. package/references/official-docs/docs/subsystems/goal.md +0 -313
  491. package/references/official-docs/docs/subsystems/goal.zh.md +0 -313
  492. package/references/official-docs/docs/subsystems/jobs.i18n.yaml +0 -28
  493. package/references/official-docs/docs/subsystems/jobs.md +0 -554
  494. package/references/official-docs/docs/subsystems/jobs.zh.md +0 -554
  495. package/references/official-docs/docs/subsystems/llm-streaming.i18n.yaml +0 -49
  496. package/references/official-docs/docs/subsystems/llm-streaming.md +0 -1196
  497. package/references/official-docs/docs/subsystems/llm-streaming.zh.md +0 -1202
  498. package/references/official-docs/docs/subsystems/lsp.i18n.yaml +0 -19
  499. package/references/official-docs/docs/subsystems/lsp.md +0 -202
  500. package/references/official-docs/docs/subsystems/lsp.zh.md +0 -202
  501. package/references/official-docs/docs/subsystems/mcp.i18n.yaml +0 -34
  502. package/references/official-docs/docs/subsystems/mcp.md +0 -139
  503. package/references/official-docs/docs/subsystems/mcp.zh.md +0 -139
  504. package/references/official-docs/docs/subsystems/office-to-pdf.i18n.yaml +0 -19
  505. package/references/official-docs/docs/subsystems/office-to-pdf.md +0 -87
  506. package/references/official-docs/docs/subsystems/office-to-pdf.zh.md +0 -87
  507. package/references/official-docs/docs/subsystems/otel.i18n.yaml +0 -7
  508. package/references/official-docs/docs/subsystems/otel.md +0 -44
  509. package/references/official-docs/docs/subsystems/otel.zh.md +0 -44
  510. package/references/official-docs/docs/subsystems/permission-presets.i18n.yaml +0 -19
  511. package/references/official-docs/docs/subsystems/permission-presets.md +0 -167
  512. package/references/official-docs/docs/subsystems/permission-presets.zh.md +0 -167
  513. package/references/official-docs/docs/subsystems/persistence.i18n.yaml +0 -37
  514. package/references/official-docs/docs/subsystems/persistence.md +0 -418
  515. package/references/official-docs/docs/subsystems/persistence.zh.md +0 -418
  516. package/references/official-docs/docs/subsystems/plan.i18n.yaml +0 -22
  517. package/references/official-docs/docs/subsystems/plan.md +0 -87
  518. package/references/official-docs/docs/subsystems/plan.zh.md +0 -87
  519. package/references/official-docs/docs/subsystems/product-telemetry.i18n.yaml +0 -10
  520. package/references/official-docs/docs/subsystems/product-telemetry.md +0 -81
  521. package/references/official-docs/docs/subsystems/product-telemetry.zh.md +0 -81
  522. package/references/official-docs/docs/subsystems/ptc-runtime.i18n.yaml +0 -19
  523. package/references/official-docs/docs/subsystems/ptc-runtime.md +0 -250
  524. package/references/official-docs/docs/subsystems/ptc-runtime.zh.md +0 -250
  525. package/references/official-docs/docs/subsystems/sandbox.i18n.yaml +0 -19
  526. package/references/official-docs/docs/subsystems/sandbox.md +0 -221
  527. package/references/official-docs/docs/subsystems/sandbox.zh.md +0 -221
  528. package/references/official-docs/docs/subsystems/schedule.i18n.yaml +0 -40
  529. package/references/official-docs/docs/subsystems/schedule.md +0 -550
  530. package/references/official-docs/docs/subsystems/schedule.zh.md +0 -550
  531. package/references/official-docs/docs/subsystems/scope.i18n.yaml +0 -16
  532. package/references/official-docs/docs/subsystems/scope.md +0 -59
  533. package/references/official-docs/docs/subsystems/scope.zh.md +0 -61
  534. package/references/official-docs/docs/subsystems/session-projection.i18n.yaml +0 -16
  535. package/references/official-docs/docs/subsystems/session-projection.md +0 -356
  536. package/references/official-docs/docs/subsystems/session-projection.zh.md +0 -356
  537. package/references/official-docs/docs/subsystems/session-query.i18n.yaml +0 -28
  538. package/references/official-docs/docs/subsystems/session-query.md +0 -511
  539. package/references/official-docs/docs/subsystems/session-query.zh.md +0 -511
  540. package/references/official-docs/docs/subsystems/session-reference.i18n.yaml +0 -19
  541. package/references/official-docs/docs/subsystems/session-reference.md +0 -224
  542. package/references/official-docs/docs/subsystems/session-reference.zh.md +0 -224
  543. package/references/official-docs/docs/subsystems/session-telemetry.i18n.yaml +0 -22
  544. package/references/official-docs/docs/subsystems/session-telemetry.md +0 -212
  545. package/references/official-docs/docs/subsystems/session-telemetry.zh.md +0 -212
  546. package/references/official-docs/docs/subsystems/session-title.i18n.yaml +0 -16
  547. package/references/official-docs/docs/subsystems/session-title.md +0 -213
  548. package/references/official-docs/docs/subsystems/session-title.zh.md +0 -213
  549. package/references/official-docs/docs/subsystems/session.i18n.yaml +0 -70
  550. package/references/official-docs/docs/subsystems/session.md +0 -1339
  551. package/references/official-docs/docs/subsystems/session.zh.md +0 -1343
  552. package/references/official-docs/docs/subsystems/settings.i18n.yaml +0 -13
  553. package/references/official-docs/docs/subsystems/settings.md +0 -155
  554. package/references/official-docs/docs/subsystems/settings.zh.md +0 -155
  555. package/references/official-docs/docs/subsystems/shell.i18n.yaml +0 -25
  556. package/references/official-docs/docs/subsystems/shell.md +0 -314
  557. package/references/official-docs/docs/subsystems/shell.zh.md +0 -314
  558. package/references/official-docs/docs/subsystems/sidebar-right.i18n.yaml +0 -37
  559. package/references/official-docs/docs/subsystems/sidebar-right.md +0 -160
  560. package/references/official-docs/docs/subsystems/sidebar-right.zh.md +0 -160
  561. package/references/official-docs/docs/subsystems/skills.i18n.yaml +0 -28
  562. package/references/official-docs/docs/subsystems/skills.md +0 -352
  563. package/references/official-docs/docs/subsystems/skills.zh.md +0 -352
  564. package/references/official-docs/docs/subsystems/slots.i18n.yaml +0 -28
  565. package/references/official-docs/docs/subsystems/slots.md +0 -200
  566. package/references/official-docs/docs/subsystems/slots.zh.md +0 -204
  567. package/references/official-docs/docs/subsystems/spill.i18n.yaml +0 -16
  568. package/references/official-docs/docs/subsystems/spill.md +0 -124
  569. package/references/official-docs/docs/subsystems/spill.zh.md +0 -124
  570. package/references/official-docs/docs/subsystems/ssh.i18n.yaml +0 -22
  571. package/references/official-docs/docs/subsystems/ssh.md +0 -146
  572. package/references/official-docs/docs/subsystems/ssh.zh.md +0 -146
  573. package/references/official-docs/docs/subsystems/storage.i18n.yaml +0 -25
  574. package/references/official-docs/docs/subsystems/storage.md +0 -259
  575. package/references/official-docs/docs/subsystems/storage.zh.md +0 -259
  576. package/references/official-docs/docs/subsystems/subagent.i18n.yaml +0 -28
  577. package/references/official-docs/docs/subsystems/subagent.md +0 -686
  578. package/references/official-docs/docs/subsystems/subagent.zh.md +0 -688
  579. package/references/official-docs/docs/subsystems/subprocess.i18n.yaml +0 -31
  580. package/references/official-docs/docs/subsystems/subprocess.md +0 -321
  581. package/references/official-docs/docs/subsystems/subprocess.zh.md +0 -321
  582. package/references/official-docs/docs/subsystems/system-prompt.i18n.yaml +0 -19
  583. package/references/official-docs/docs/subsystems/system-prompt.md +0 -254
  584. package/references/official-docs/docs/subsystems/system-prompt.zh.md +0 -254
  585. package/references/official-docs/docs/subsystems/terminal.i18n.yaml +0 -19
  586. package/references/official-docs/docs/subsystems/terminal.md +0 -184
  587. package/references/official-docs/docs/subsystems/terminal.zh.md +0 -184
  588. package/references/official-docs/docs/subsystems/todo.i18n.yaml +0 -13
  589. package/references/official-docs/docs/subsystems/todo.md +0 -32
  590. package/references/official-docs/docs/subsystems/todo.zh.md +0 -32
  591. package/references/official-docs/docs/subsystems/token-meter.i18n.yaml +0 -13
  592. package/references/official-docs/docs/subsystems/token-meter.md +0 -106
  593. package/references/official-docs/docs/subsystems/token-meter.zh.md +0 -106
  594. package/references/official-docs/docs/subsystems/tools.i18n.yaml +0 -25
  595. package/references/official-docs/docs/subsystems/tools.md +0 -747
  596. package/references/official-docs/docs/subsystems/tools.zh.md +0 -747
  597. package/references/official-docs/docs/subsystems/translation.i18n.yaml +0 -19
  598. package/references/official-docs/docs/subsystems/translation.md +0 -103
  599. package/references/official-docs/docs/subsystems/translation.zh.md +0 -103
  600. package/references/official-docs/docs/subsystems/typert.i18n.yaml +0 -25
  601. package/references/official-docs/docs/subsystems/typert.md +0 -690
  602. package/references/official-docs/docs/subsystems/typert.zh.md +0 -690
  603. package/references/official-docs/docs/subsystems/user-questions.i18n.yaml +0 -28
  604. package/references/official-docs/docs/subsystems/user-questions.md +0 -307
  605. package/references/official-docs/docs/subsystems/user-questions.zh.md +0 -307
  606. package/references/official-docs/docs/subsystems/voice-input.i18n.yaml +0 -19
  607. package/references/official-docs/docs/subsystems/voice-input.md +0 -164
  608. package/references/official-docs/docs/subsystems/voice-input.zh.md +0 -164
  609. package/references/official-docs/docs/subsystems/web-client.i18n.yaml +0 -37
  610. package/references/official-docs/docs/subsystems/web-client.md +0 -100
  611. package/references/official-docs/docs/subsystems/web-client.zh.md +0 -100
  612. package/references/official-docs/docs/subsystems/web-server.i18n.yaml +0 -16
  613. package/references/official-docs/docs/subsystems/web-server.md +0 -302
  614. package/references/official-docs/docs/subsystems/web-server.zh.md +0 -302
  615. package/references/official-docs/docs/subsystems/web.i18n.yaml +0 -28
  616. package/references/official-docs/docs/subsystems/web.md +0 -206
  617. package/references/official-docs/docs/subsystems/web.zh.md +0 -206
  618. package/references/official-docs/docs/subsystems/webhook.i18n.yaml +0 -19
  619. package/references/official-docs/docs/subsystems/webhook.md +0 -70
  620. package/references/official-docs/docs/subsystems/webhook.zh.md +0 -70
  621. package/references/official-docs/docs/subsystems/workflow.i18n.yaml +0 -28
  622. package/references/official-docs/docs/subsystems/workflow.md +0 -278
  623. package/references/official-docs/docs/subsystems/workflow.zh.md +0 -278
  624. package/references/official-docs/docs/subsystems/working-directory.i18n.yaml +0 -13
  625. package/references/official-docs/docs/subsystems/working-directory.md +0 -64
  626. package/references/official-docs/docs/subsystems/working-directory.zh.md +0 -64
  627. package/references/official-docs/docs/subsystems/workspace.i18n.yaml +0 -28
  628. package/references/official-docs/docs/subsystems/workspace.md +0 -647
  629. package/references/official-docs/docs/subsystems/workspace.zh.md +0 -647
  630. package/references/official-docs/docs/subsystems/worktrees.i18n.yaml +0 -13
  631. package/references/official-docs/docs/subsystems/worktrees.md +0 -76
  632. package/references/official-docs/docs/subsystems/worktrees.zh.md +0 -76
  633. package/references/official-docs/docs/testing.i18n.yaml +0 -34
  634. package/references/official-docs/docs/testing.md +0 -55
  635. package/references/official-docs/docs/testing.zh.md +0 -55
  636. package/references/official-docs/docs/tool-catalog.i18n.yaml +0 -331
  637. package/references/official-docs/docs/tool-catalog.md +0 -2824
  638. package/references/official-docs/docs/tool-catalog.zh.md +0 -2832
  639. package/references/official-docs/docs/tool-execution-pipeline.i18n.yaml +0 -10
  640. package/references/official-docs/docs/tool-execution-pipeline.md +0 -65
  641. package/references/official-docs/docs/tool-execution-pipeline.zh.md +0 -67
  642. package/references/official-docs/docs/ui-radius.i18n.yaml +0 -31
  643. package/references/official-docs/docs/ui-radius.md +0 -117
  644. package/references/official-docs/docs/ui-radius.zh.md +0 -117
  645. package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.i18n.yaml +0 -16
  646. package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.md +0 -22
  647. package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.zh.md +0 -22
  648. package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.i18n.yaml +0 -16
  649. package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.md +0 -25
  650. package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.zh.md +0 -25
  651. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.i18n.yaml +0 -16
  652. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.md +0 -18
  653. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.zh.md +0 -18
  654. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/bundled-python-tests/guide.i18n.yaml +0 -16
  655. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/bundled-python-tests/guide.md +0 -18
  656. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/bundled-python-tests/guide.zh.md +0 -18
  657. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.i18n.yaml +0 -16
  658. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.md +0 -18
  659. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.zh.md +0 -18
  660. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.i18n.yaml +0 -16
  661. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.md +0 -23
  662. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.zh.md +0 -23
  663. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.i18n.yaml +0 -16
  664. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.md +0 -22
  665. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.zh.md +0 -22
  666. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.i18n.yaml +0 -16
  667. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.md +0 -27
  668. package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.zh.md +0 -27
  669. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/deepseek-model-discovery/guide.i18n.yaml +0 -16
  670. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/deepseek-model-discovery/guide.md +0 -17
  671. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/deepseek-model-discovery/guide.zh.md +0 -17
  672. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/desktop-test-auth-popup/guide.i18n.yaml +0 -16
  673. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/desktop-test-auth-popup/guide.md +0 -18
  674. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/desktop-test-auth-popup/guide.zh.md +0 -18
  675. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/experimental-package-composition/guide.i18n.yaml +0 -16
  676. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/experimental-package-composition/guide.md +0 -28
  677. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/experimental-package-composition/guide.zh.md +0 -28
  678. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/instruction-home-override/guide.i18n.yaml +0 -16
  679. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/instruction-home-override/guide.md +0 -20
  680. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/instruction-home-override/guide.zh.md +0 -20
  681. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.i18n.yaml +0 -16
  682. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.md +0 -18
  683. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.zh.md +0 -18
  684. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.i18n.yaml +0 -16
  685. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.md +0 -18
  686. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.zh.md +0 -18
  687. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/mock-messages-events/guide.i18n.yaml +0 -16
  688. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/mock-messages-events/guide.md +0 -17
  689. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/mock-messages-events/guide.zh.md +0 -17
  690. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/native-subagent-bundle-tools/guide.i18n.yaml +0 -16
  691. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/native-subagent-bundle-tools/guide.md +0 -31
  692. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/native-subagent-bundle-tools/guide.zh.md +0 -31
  693. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/new-session-generations/guide.i18n.yaml +0 -16
  694. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/new-session-generations/guide.md +0 -20
  695. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/new-session-generations/guide.zh.md +0 -20
  696. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/plugin-option-placement/guide.i18n.yaml +0 -16
  697. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/plugin-option-placement/guide.md +0 -20
  698. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/plugin-option-placement/guide.zh.md +0 -20
  699. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/python-optional-resources/guide.i18n.yaml +0 -16
  700. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/python-optional-resources/guide.md +0 -18
  701. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/python-optional-resources/guide.zh.md +0 -18
  702. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/python-ptc-sandbox/guide.i18n.yaml +0 -16
  703. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/python-ptc-sandbox/guide.md +0 -21
  704. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/python-ptc-sandbox/guide.zh.md +0 -21
  705. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/session-title-adapters/guide.i18n.yaml +0 -16
  706. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/session-title-adapters/guide.md +0 -18
  707. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/session-title-adapters/guide.zh.md +0 -18
  708. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/session-title-provider-strategy/guide.i18n.yaml +0 -16
  709. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/session-title-provider-strategy/guide.md +0 -20
  710. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/session-title-provider-strategy/guide.zh.md +0 -20
  711. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/ssh-helper-launch/guide.i18n.yaml +0 -16
  712. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/ssh-helper-launch/guide.md +0 -19
  713. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/ssh-helper-launch/guide.zh.md +0 -19
  714. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-activations/guide.i18n.yaml +0 -16
  715. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-activations/guide.md +0 -59
  716. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-activations/guide.zh.md +0 -59
  717. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.i18n.yaml +0 -16
  718. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.md +0 -21
  719. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.zh.md +0 -21
  720. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.i18n.yaml +0 -16
  721. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.md +0 -21
  722. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.zh.md +0 -21
  723. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/terminal-command-labels/guide.i18n.yaml +0 -16
  724. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/terminal-command-labels/guide.md +0 -18
  725. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/terminal-command-labels/guide.zh.md +0 -18
  726. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/tool-presentation-mode/guide.i18n.yaml +0 -16
  727. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/tool-presentation-mode/guide.md +0 -21
  728. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/tool-presentation-mode/guide.zh.md +0 -21
  729. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/web-listener-trust-config/guide.i18n.yaml +0 -16
  730. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/web-listener-trust-config/guide.md +0 -36
  731. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/web-listener-trust-config/guide.zh.md +0 -36
  732. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/working-directory/guide.i18n.yaml +0 -16
  733. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/working-directory/guide.md +0 -25
  734. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.1/working-directory/guide.zh.md +0 -25
  735. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.i18n.yaml +0 -16
  736. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.md +0 -18
  737. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.zh.md +0 -18
  738. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.i18n.yaml +0 -16
  739. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.md +0 -27
  740. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.zh.md +0 -27
  741. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.i18n.yaml +0 -16
  742. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.md +0 -18
  743. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.zh.md +0 -18
  744. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.i18n.yaml +0 -16
  745. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.md +0 -20
  746. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.zh.md +0 -20
  747. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.i18n.yaml +0 -16
  748. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.md +0 -18
  749. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.zh.md +0 -18
  750. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.i18n.yaml +0 -16
  751. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.md +0 -19
  752. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.zh.md +0 -19
  753. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.i18n.yaml +0 -16
  754. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.md +0 -17
  755. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.zh.md +0 -17
  756. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.i18n.yaml +0 -16
  757. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.md +0 -20
  758. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.zh.md +0 -20
  759. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.i18n.yaml +0 -16
  760. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.md +0 -32
  761. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.zh.md +0 -32
  762. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.i18n.yaml +0 -16
  763. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.md +0 -25
  764. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.zh.md +0 -25
  765. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.i18n.yaml +0 -16
  766. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.md +0 -21
  767. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.zh.md +0 -21
  768. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.i18n.yaml +0 -16
  769. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.md +0 -18
  770. package/references/official-docs/docs/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.zh.md +0 -18
  771. package/references/official-docs/docs/user/develop/basic/config.i18n.yaml +0 -28
  772. package/references/official-docs/docs/user/develop/basic/config.md +0 -106
  773. package/references/official-docs/docs/user/develop/basic/config.zh.md +0 -106
  774. package/references/official-docs/docs/user/develop/basic/index.i18n.yaml +0 -37
  775. package/references/official-docs/docs/user/develop/basic/index.md +0 -144
  776. package/references/official-docs/docs/user/develop/basic/index.zh.md +0 -144
  777. package/references/official-docs/docs/user/develop/basic/publish.i18n.yaml +0 -31
  778. package/references/official-docs/docs/user/develop/basic/publish.md +0 -191
  779. package/references/official-docs/docs/user/develop/basic/publish.zh.md +0 -191
  780. package/references/official-docs/docs/user/develop/basic/tool.i18n.yaml +0 -16
  781. package/references/official-docs/docs/user/develop/basic/tool.md +0 -52
  782. package/references/official-docs/docs/user/develop/basic/tool.zh.md +0 -52
  783. package/references/official-docs/docs/user/develop/framework/events.i18n.yaml +0 -46
  784. package/references/official-docs/docs/user/develop/framework/events.md +0 -143
  785. package/references/official-docs/docs/user/develop/framework/events.zh.md +0 -143
  786. package/references/official-docs/docs/user/develop/framework/index.i18n.yaml +0 -31
  787. package/references/official-docs/docs/user/develop/framework/index.md +0 -137
  788. package/references/official-docs/docs/user/develop/framework/index.zh.md +0 -137
  789. package/references/official-docs/docs/user/develop/framework/service.i18n.yaml +0 -40
  790. package/references/official-docs/docs/user/develop/framework/service.md +0 -148
  791. package/references/official-docs/docs/user/develop/framework/service.zh.md +0 -150
  792. package/references/official-docs/docs/user/develop/practice/dynamic-cordis.i18n.yaml +0 -10
  793. package/references/official-docs/docs/user/develop/practice/dynamic-cordis.md +0 -15
  794. package/references/official-docs/docs/user/develop/practice/dynamic-cordis.zh.md +0 -15
  795. package/references/official-docs/docs/user/develop/practice/index.i18n.yaml +0 -46
  796. package/references/official-docs/docs/user/develop/practice/index.md +0 -155
  797. package/references/official-docs/docs/user/develop/practice/index.zh.md +0 -155
  798. package/references/official-docs/docs/user/develop/practice/llm-adapter.i18n.yaml +0 -34
  799. package/references/official-docs/docs/user/develop/practice/llm-adapter.md +0 -189
  800. package/references/official-docs/docs/user/develop/practice/llm-adapter.zh.md +0 -189
  801. package/references/official-docs/docs/user/guide/github-review.i18n.yaml +0 -25
  802. package/references/official-docs/docs/user/guide/github-review.md +0 -99
  803. package/references/official-docs/docs/user/guide/github-review.zh.md +0 -99
  804. package/references/official-docs/docs/user/guide/index.i18n.yaml +0 -19
  805. package/references/official-docs/docs/user/guide/index.md +0 -31
  806. package/references/official-docs/docs/user/guide/index.zh.md +0 -31
  807. package/references/official-docs/docs/user/guide/mcp-memory.i18n.yaml +0 -37
  808. package/references/official-docs/docs/user/guide/mcp-memory.md +0 -101
  809. package/references/official-docs/docs/user/guide/mcp-memory.zh.md +0 -101
  810. package/references/official-docs/docs/user/guide/network-proxy.i18n.yaml +0 -25
  811. package/references/official-docs/docs/user/guide/network-proxy.md +0 -85
  812. package/references/official-docs/docs/user/guide/network-proxy.zh.md +0 -85
  813. package/references/official-docs/docs/user/guide/plugin-market.i18n.yaml +0 -34
  814. package/references/official-docs/docs/user/guide/plugin-market.md +0 -148
  815. package/references/official-docs/docs/user/guide/plugin-market.zh.md +0 -148
  816. package/references/official-docs/docs/user/guide/providers-custom-form.png +0 -0
  817. package/references/official-docs/docs/user/guide/providers-custom-form.zh.png +0 -0
  818. package/references/official-docs/docs/user/guide/providers-models-page.png +0 -0
  819. package/references/official-docs/docs/user/guide/providers-models-page.zh.png +0 -0
  820. package/references/official-docs/docs/user/guide/providers.i18n.yaml +0 -40
  821. package/references/official-docs/docs/user/guide/providers.md +0 -227
  822. package/references/official-docs/docs/user/guide/providers.zh.md +0 -227
  823. package/references/official-docs/docs/user/guide/public-deployments.i18n.yaml +0 -19
  824. package/references/official-docs/docs/user/guide/public-deployments.md +0 -37
  825. package/references/official-docs/docs/user/guide/public-deployments.zh.md +0 -37
  826. package/references/official-docs/docs/user/guide/python-sdk.i18n.yaml +0 -28
  827. package/references/official-docs/docs/user/guide/python-sdk.md +0 -185
  828. package/references/official-docs/docs/user/guide/python-sdk.zh.md +0 -185
  829. package/references/official-docs/docs/user/guide/schedule.i18n.yaml +0 -31
  830. package/references/official-docs/docs/user/guide/schedule.md +0 -79
  831. package/references/official-docs/docs/user/guide/schedule.zh.md +0 -79
  832. package/references/official-docs/docs/user/index.i18n.yaml +0 -10
  833. package/references/official-docs/docs/user/index.md +0 -11
  834. package/references/official-docs/docs/user/index.zh.md +0 -11
  835. package/references/official-docs/docs/web-styling.i18n.yaml +0 -19
  836. package/references/official-docs/docs/web-styling.md +0 -39
  837. package/references/official-docs/docs/web-styling.zh.md +0 -39
  838. package/references/official-docs/packages/AGENTS.md +0 -29
  839. package/references/official-docs/packages/README.md +0 -117
  840. package/references/official-docs/vendor/README.md +0 -73
  841. package/references/official-docs/website-docs.ts +0 -591
  842. package/references/official-plugin-dev-skill.md +0 -124
  843. package/references/sources.md +0 -143
  844. package/references/upstream-cordis.md +0 -594
  845. package/references/website-pages.md +0 -673
  846. package/scripts/archive-discussions.ps1 +0 -162
  847. package/scripts/build-llms-full.mjs +0 -73
  848. package/scripts/check-docs-drift-detail.mjs +0 -145
  849. package/scripts/check-docs-drift.ps1 +0 -55
  850. package/scripts/check-facts.mjs +0 -162
  851. package/scripts/check-ps1-bom.mjs +0 -68
  852. package/scripts/check-readme-parity.mjs +0 -149
  853. package/scripts/check-readme-sync.mjs +0 -96
  854. package/scripts/download-community-articles.ps1 +0 -188
  855. package/scripts/download-community-repos.ps1 +0 -232
  856. package/scripts/download-sources.ps1 +0 -195
  857. package/scripts/gen-topic-snapshot.ps1 +0 -91
  858. package/scripts/install-skill.ps1 +0 -63
  859. package/scripts/measure-mirror-references.mjs +0 -117
  860. package/scripts/sync-official-docs.ps1 +0 -138
  861. package/scripts/verify-artifacts.mjs +0 -145
  862. package/scripts/verify-kit.ps1 +0 -197
  863. package/templates/js/LICENSE +0 -15
  864. package/templates/js/README-es.md +0 -46
  865. package/templates/js/README-hi.md +0 -46
  866. package/templates/js/README-pt.md +0 -46
  867. package/templates/js/README-zh.md +0 -46
  868. package/templates/js/README.md +0 -46
  869. package/templates/js/cordis.patch.yml +0 -10
  870. package/templates/js/icon.svg +0 -4
  871. package/templates/js/index.js +0 -38
  872. package/templates/js/locale/en.json +0 -6
  873. package/templates/js/locale/zh.json +0 -6
  874. package/templates/js/package.json +0 -49
  875. package/templates/js/tests/index.test.js +0 -12
  876. package/templates/ts/LICENSE +0 -15
  877. package/templates/ts/README-es.md +0 -48
  878. package/templates/ts/README-hi.md +0 -48
  879. package/templates/ts/README-pt.md +0 -48
  880. package/templates/ts/README-zh.md +0 -48
  881. package/templates/ts/README.md +0 -48
  882. package/templates/ts/cordis.patch.yml +0 -10
  883. package/templates/ts/icon.svg +0 -4
  884. package/templates/ts/locale/en.json +0 -6
  885. package/templates/ts/locale/zh.json +0 -6
  886. package/templates/ts/package.json +0 -58
  887. package/templates/ts/src/config.ts +0 -12
  888. package/templates/ts/src/index.ts +0 -36
  889. package/templates/ts/tests/index.test.ts +0 -12
  890. package/templates/ts/tsconfig.json +0 -17
  891. package/templates/ts/tsdown.config.mjs +0 -21
  892. package/templates/ts/vitest.config.ts +0 -8
@@ -1,1339 +0,0 @@
1
- # Sessions
2
-
3
- English | [中文](session.zh.md)
4
-
5
- The in-memory, event-sourced model of [dsh-session](../../packages/core/session). A `Session` is an **append-only log** of typed `SessionEvent`s — the single source of truth for an agent's whole interaction history. The LLM message history is *derived* from the log, never stored separately; replay is re-derivation from the same events. How the log is made **durable** (the persistence seam, backends, crash recovery) is the sibling concern on [persistence.md](persistence.md).
6
-
7
- Source: [`packages/core/session/src/types.ts`](../../packages/core/session/src/types.ts)
8
-
9
- ## `SessionEventMap` — the event vocabulary
10
-
11
- The append-only event types. Merge-extensible: a plugin declares extra event types via declaration merging — e.g. the [compaction seam](compaction.md) adds `compaction/start` / `compaction/summary` / `compaction/end`, and `@deepseek-ai/dsh-hook-protocol` adds log-only `hook/invoked` / `hook/result` records for a hook bridge. Like `compaction/*`, these are NOT `SurfaceEventType`s (no `surfaceOp`). The generated [persistence log event catalog](../persistence-catalog.md) enumerates every member — core and merged — with its payload, surface badge, and declaration site.
12
-
13
- ```ts type-equiv
14
- /** A user-role specialization of the shared message representation. */
15
- interface UserMessage extends MessageBase {
16
- readonly role: 'user'
17
- }
18
- ```
19
-
20
- ```ts type-equiv
21
- /**
22
- * The merge-extensible, append-only source of truth for an agent interaction.
23
- * Message history is derived from this log. Every event is lossless JSON and
24
- * sequence numbers stay contiguous. Assistant attempt events embed their exact
25
- * compact raw streams so persistence stores one durable settlement per attempt.
26
- */
27
- interface SessionEventMap {
28
- /**
29
- * Opens turn `turn` before the loop claims queued input or runs pre-step.
30
- * Rejection, empty input, cancellation, or failure may close it with no
31
- * step; otherwise the following identified `user/message` event or batch
32
- * records the messages entering the step.
33
- */
34
- 'turn/start': { turn: number }
35
- /**
36
- * Closes turn `turn` with the {@link TurnEndReason} that ended it. A turn
37
- * with no entered step has no `step/start` or `step/end`. The loop does not await a
38
- * flush at turn boundaries: `dsh-session-checkpoint-policy` owns the
39
- * per-request durability checkpoint, and consumers that read storage after
40
- * `whenIdle()` flush themselves. Success commits the turn; rejection is
41
- * reported live and does not prevent later work.
42
- */
43
- 'turn/end': { turn: number; reason: TurnEndReason }
44
- /** Opens step `step` of turn `turn` — one model call plus the tool executions it requested. */
45
- 'step/start': { turn: number; step: number }
46
- /** Closes step `step` of turn `turn`. */
47
- 'step/end': { turn: number; step: number }
48
- /**
49
- * A user-role message on the model-visible surface: a direct human prompt
50
- * (the queued message claimed for this turn), a synthetic `agent.inject()`
51
- * context (file-change notices, subdir AGENTS.md, skill content, cron
52
- * notifications, …), or an entered goal continuation round. All three
53
- * project their `content` verbatim; `source` tells them apart.
54
- */
55
- 'user/message': UserMessage
56
- /** An incremental agent session change admitted at the named turn and step. */
57
- 'developer/message': {
58
- turn: number
59
- step: number
60
- message: DeveloperMessage
61
- /** Earlier request/header defining every tool addition; required exactly when additions are present. */
62
- headerSeq?: SessionSeq
63
- }
64
- /**
65
- * The rendered system prompt on the model-visible surface. The loop appends
66
- * the first one as surface node 0 before the step's first `user/message`.
67
- * A prepared in-history route can append nonempty changes in a continuing
68
- * series. An incapable route or new series normalizes text to the first system
69
- * node. Normalization empties nonempty later nodes, then rewrites the head if
70
- * needed, through logged per-node replacements. An empty rendering always
71
- * clears all active system nodes, leaving no older instructions model-visible.
72
- * Empty later nodes are dormant and project to no message; an empty head with
73
- * no active later node records "no system prompt". Restored nonempty text follows
74
- * the same route and series rule; empty nodes never restore older text.
75
- */
76
- 'system/message': { turn: number; step: number; message: SystemMessage }
77
- /**
78
- * Assembled assistant message for one step (derived history uses this).
79
- * Carries the step's `usage` when the adapter reported token accounting, so
80
- * the model output and its accounting travel together (there is no separate
81
- * usage record). `usage` is absent when the adapter reported none. A turn
82
- * cancelled mid-stream finalizes its delivered text/reasoning prefix as this
83
- * event with `interrupted: true`; undispatched tool calls are absent. The
84
- * marker distinguishes that prefix without re-deriving interruption from turn
85
- * boundaries. An aborted turn with no such event streamed no visible content.
86
- */
87
- 'assistant/message': {
88
- turn: number
89
- step: number
90
- message: AssistantMessage
91
- /** Exact timed model stream, compacted without joining delta boundaries. */
92
- stream: AssistantStreamRecord[]
93
- usage?: TokenUsage
94
- interrupted?: true
95
- }
96
- /**
97
- * One model attempt that committed no surface message. The embedded stream
98
- * preserves a failed, retried, cancelled, or stream-error attempt that
99
- * reached settlement without fabricating model-visible history.
100
- */
101
- 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[] }
102
- /**
103
- * The model requested one tool invocation: `name` with the raw `arguments`
104
- * JSON string exactly as the model produced it (unparsed). `callId` pairs the
105
- * call with its `tool/result`.
106
- */
107
- 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string }
108
- /**
109
- * A completed tool call's model-facing result, optional internal failure
110
- * identity and user-facing reason, and optional tool-private `meta`
111
- * presentation payload. The reason remains outside the model-facing message.
112
- * `meta` is
113
- * opaque to the core (the producing tool owns its shape and reads it back in
114
- * `presentResult`) but MUST be JSON-serializable: `Session.append`
115
- * runtime-validates all event data with `isJsonValue`, so a non-serializable
116
- * `meta` is rejected at the source, and the durable log reproduces the
117
- * identical card on replay. Absent
118
- * unless the tool attaches one (e.g. `dsh-tool-fs` carries its result-time
119
- * contextual diff here).
120
- */
121
- 'tool/result': {
122
- turn: number
123
- step: number
124
- message: ToolResultMessage
125
- /**
126
- * Optional failure identity and raw user-facing reason, outside model content;
127
- * allowed only when the message has `isError: true`.
128
- */
129
- error?: { name: string; code: string; reason?: string }
130
- meta?: JsonValue
131
- }
132
- /**
133
- * Full header for the next request, appended inside its step before dispatch.
134
- * It is log-only; the latest snapshot reconstructs the request header.
135
- */
136
- 'request/header': {
137
- header: EpochHeader
138
- reason: RequestHeaderReason
139
- /** This request begins a distinct model-message series, independently of the header reason. */
140
- startsSeries?: true
141
- }
142
- /**
143
- * Route metadata for the next request, logged only when the route, capacity,
144
- * or system prompt update mode changes. It does not participate in request
145
- * reconstruction or header equality. Prompt admission uses the bound prepared
146
- * call's capability, not this snapshot from an earlier request.
147
- */
148
- 'request/context': RequestContext
149
- /**
150
- * Separates inherited or restored history from later lifecycle-owned work.
151
- * This log-only marker need not be at {@link Session.firstLiveSeq}: a fork
152
- * seed can already contain its tagged marker and child-owned synthetic
153
- * closers before construction.
154
- *
155
- * A fresh fork child owns one `{ inherited: true }` marker at its exact
156
- * inherited-prefix cut, even when that prefix ends in an ancestor marker.
157
- * `buildForkSeed` appends that marker before any synthetic closers; the
158
- * `Session` constructor supplies it when given only the inherited prefix.
159
- * The last tagged marker is the current Session's cut; untagged markers
160
- * keep ordinary restore and replay lifecycle boundaries.
161
- *
162
- * Only the `Session` constructor and `buildForkSeed` may create this marker.
163
- * Session append does not reject other writers, so a plugin appending one
164
- * would silently classify every live bracket before it as seed history.
165
- *
166
- * An owner of a standalone open/close bracket (`compaction/start` …
167
- * `compaction/end`) reads it because seed history and live work are otherwise
168
- * byte-identical: an unmatched opening marker before this event belongs to
169
- * an ended lifecycle, whatever ended it. NOT a liveness signal about other
170
- * writers — a concurrently live session holds its own boundary elsewhere,
171
- * so tolerating concurrent writers needs a signal beyond the log.
172
- */
173
- 'session/end-seed': { inherited?: true }
174
- }
175
- ```
176
-
177
- `UserMessage` is the identified, frozen user-role value shared by ordinary prompts, injected context, steering, and live inbox events. Event wrappers add only event-local position or outcome facts; the loop adds only driver-owned routing state while an item remains pending.
178
-
179
- <a id="the-request-header-event-requestheader"></a>
180
-
181
- ### The request header event: `request/header`
182
-
183
- The request envelope — the `EpochHeader` (call config + markers for adapter-supplied defaults + assembled tool schemas) — is logged session state, so every conversation request is a pure function of the log (the reconstructability Agent Note). The rendered system prompt is not part of the header: it is derived history, the `system/message` event at surface node 0 and any later in-history system node ([decision](../../.agents/notes/implemented/architecture/2026-09-02-system-prompt-as-surface-node.md)), so a prompt change replaces or appends a system node and leaves the header unchanged. A full `request/header` snapshot with reason `'initial'` or `'resume'` records each loop-instance boundary; a changed request appends a snapshot with reason `'change'`; and an unchanged envelope beginning an explicitly declared message series or following a surface replacement appends a snapshot with reason `'series'`. An `'initial'`, `'resume'`, or `'change'` snapshot carries `startsSeries: true` when that request also begins a series; reason `'series'` already records that fact. Ordinary append-only later Turns, further Steps, and retries in the same model-message series inherit the latest snapshot. `foldRequestHeader(events)` reconstructs the header by selecting the latest snapshot. The event is not a `SurfaceEventType`: it produces no LLM message.
184
-
185
- ```ts type-equiv
186
- /**
187
- * Logged request state outside derived history: call config and tools. The
188
- * system prompt is derived history — surface node 0, a `system/message` event.
189
- * The latest full `request/header` snapshot reconstructs the header; canonical
190
- * empty optional fields are absent.
191
- */
192
- interface EpochHeader {
193
- /** The conversation's call configuration (provider, model, reasoning effort, and sampling scalars). */
194
- config: LlmCallConfig
195
- /** Effective config fields materialized from the exact adapter rather than proposed by a caller. */
196
- adapterDefaults?: LlmCallConfigAdapterDefaults
197
- /** Assembled tool schemas; absent for a tool-less request. */
198
- tools?: ToolSchema[]
199
- /** Retired request text; system prompts belong to system/message events.
200
- * @persistenceReserved
201
- */
202
- system?: never
203
- }
204
- ```
205
-
206
- Current event acceptance requires canonical `request/header.header`: any `system` field is forbidden, and `tools: []` and `adapterDefaults: {}` must be omitted. Whitespace-only system-message content, `config.stop: []`, and nested extensions remain unchanged. Seed, append, and current persistence reads reject noncanonical headers rather than silently normalizing them; [the V3 envelope decision](../../.agents/notes/implemented/architecture/2026-09-06-v3-canonical-session-envelopes.md) owns historical conversion. Legacy v0 logs containing `request/header-delta` or its full-snapshot `fallback` reason are rejected rather than replayed incompletely.
207
-
208
- ### The route capacity event: `request/context`
209
-
210
- The context metadata of the route a request resolved to is separate logged state, appended beside `request/header` inside the same step and only when the provider, model, capacity, or `systemPromptUpdate` mode differs from the previous record. It stays outside `EpochHeader` because that type is the reconstruction contract compared field-wise by `headerEquals`: capacity and the update mode describe a route, not a request input, so folding them in would let a route change register as a request-envelope `change` and would pull adapter metadata into the loop's request reconstruction. Like `request/header`, it is not a `SurfaceEventType` and produces no LLM message. `session.requestContext()` folds the latest record incrementally; the agent loop reads that record's `systemPromptUpdate` when it decides whether a changed system prompt replaces the latest system node or is appended after the cached history ([decision rule](../../packages/core/agent-loop/README.md#understand-the-implementation)). A route whose adapter advertises no capacity is recorded with `contextWindow` absent, so the new record clears an older route's capacity; a route without a declared update mode likewise clears an older route's `systemPromptUpdate`.
211
-
212
- ```ts type-equiv
213
- /** Registration-bound metadata for one resolved model route. */
214
- interface RequestContext {
215
- /** Registered provider route the metadata belongs to. */
216
- provider: string
217
- /** Provider-owned model id the metadata belongs to. */
218
- model: string
219
- /** Maximum combined request and response context in tokens, when advertised. */
220
- contextWindow?: number
221
- /** `'in-history'` when the route reads the latest `system` message at any position as the effective system prompt. */
222
- systemPromptUpdate?: SystemPromptUpdate
223
- }
224
- ```
225
-
226
- ## `SessionEvent<T>` — one log entry
227
-
228
- A proper discriminated union over `type` (not independent `type`/`data` unions), so `switch (event.type)` narrows `event.data` without casts. `seq` is the monotonic position in the log (`seq = log.length`); `time` is epoch ms.
229
-
230
- ```ts type-equiv
231
- /** Sequence number of one existing event in a Session log. */
232
- type SessionSeq = BrandedNumber<'SessionSeq'>
233
- ```
234
-
235
- ```ts type-equiv
236
- /** A Session log gap, prefix length, or read offset, which may equal the event count. */
237
- type SessionLogOffset = BrandedNumber<'SessionLogOffset'>
238
- ```
239
-
240
- ```ts type-equiv
241
- /** Inclusive Session event watermark, or `-1` before any event exists. */
242
- type SessionSeqCursor = SessionSeq | -1
243
- ```
244
-
245
- ```ts type-equiv
246
- /** One existing Session event position, or explicit absence. */
247
- type OptionalSessionSeq = SessionSeq | null
248
- ```
249
-
250
- `SessionSeq(value)` and `SessionLogOffset(value)` admit only non-negative safe integers and reject negative zero. They add compile-time brands without changing the serialized number; arithmetic returns an ordinary `number` that callers must admit again through the constructor for its intended role.
251
-
252
- ```ts type-equiv
253
- /**
254
- * One immutable entry in the session log.
255
- *
256
- * A proper discriminated union over `type` (not independent `type`/`data`
257
- * unions), so `switch (event.type)` narrows `event.data` without casts.
258
- *
259
- * The {@link sourceEventSeqs} and {@link surfaceOp} fields are conditional:
260
- * they only exist on {@link SurfaceEventType} variants (`system/message`, `user/message`,
261
- * `assistant/message`, `tool/result`).
262
- * Non-surface events (boundary markers, attempts, errors) never carry
263
- * surface metadata — the compiler enforces this at `Session.append()`
264
- * call sites.
265
- */
266
- type SessionEvent<T extends SessionEventType = SessionEventType> = {
267
- [K in SessionEventType]: {
268
- type: K
269
- /** Monotonic sequence number within the session. */
270
- seq: SessionSeq
271
- /** Unix epoch milliseconds. */
272
- time: number
273
- data: SessionEventMap[K]
274
- /**
275
- * Marks an event a reader may safely skip when it does not recognize
276
- * `type`. Absent means required: a reader meeting an unrecognized type
277
- * without this marker MUST refuse to reconstruct the session instead of
278
- * silently dropping the event, because an unrecognized required event may
279
- * change how the rest of the log is interpreted. A writer sets `true` only
280
- * on purely informational records whose loss cannot affect reconstruction;
281
- * defaulting to required means a forgotten marker over-refuses (an
282
- * inconvenience) rather than silently resuming a gutted session.
283
- */
284
- ignorable?: true
285
- } & (K extends SurfaceEventType ? SurfaceIntent<K> : {
286
- surfaceOp?: never
287
- sourceEventSeqs?: never
288
- })
289
- }[T]
290
- ```
291
-
292
- `SessionEventType = keyof SessionEventMap`. Because `SessionEventMap` is merge-extensible, switches over `SessionEvent` must NOT use `assertNever` — a plugin-added variant is a valid unknown value; handle the known cases and fall through `default`.
293
-
294
- Every surface event requires `surfaceOp`; known log-only events forbid both surface metadata fields. Native unknown or obsolete ignorable envelopes remain opaque. `assistant/message` embeds its provider stream and forbids `sourceEventSeqs`. System, user, and tool surface events may cite a complete non-empty set of unique earlier events when source attribution or replacement coverage requires it. A `tool/result` may carry `data.error` only when its message has `isError: true`; failure identity remains optional for failed results.
295
-
296
- ## Surface types
297
-
298
- The message-producing types (`SurfaceEventType` — `system/message`, `developer/message`, `user/message`, `assistant/message`, `tool/result`) carry surface metadata declaring how they join the ordered derived surface. `system/message` holds the rendered system prompt: the loop appends the first one as surface node 0 and, when the prompt changes, replaces exactly the latest system node or appends a new one on an in-history route; the surface fold rejects any other replacement covering a `system/message` at node 0, while a later system node is ordinary history that a compaction replacement may shadow. See the [session surface Agent Note](../../.agents/notes/implemented/architecture/2026-06-18-session-surface.md).
299
-
300
- ### `SurfaceEventType` — the message-producing subset of event types
301
-
302
- ```ts type-equiv
303
- /**
304
- * The subset of {@link SessionEventType} values whose events produce LLM
305
- * messages and are eligible to appear on the ordered surface. Only these
306
- * event types may carry {@link SurfaceOp}; system, user, and tool events may also cite
307
- * earlier sources through {@link SessionEvent.sourceEventSeqs}.
308
- */
309
- type SurfaceEventType =
310
- | 'system/message'
311
- | 'developer/message'
312
- | 'user/message'
313
- | 'assistant/message'
314
- | 'tool/result'
315
- ```
316
-
317
- ### `SurfaceOp` — how an event entered the surface
318
-
319
- ```ts type-equiv
320
- /**
321
- * How a session event entered the ordered surface. Only valid on
322
- * {@link SurfaceEventType} events.
323
- *
324
- * - `'append'`: added to the tail — normal path for user/assistant/tool
325
- * messages.
326
- * - `{ op: 'replace', startSeq, endSeq }`: replaces surface nodes from `startSeq`
327
- * (inclusive) through `endSeq` (inclusive) with this node. Both must exist as
328
- * surface nodes in the current surface. `startSeq === endSeq` replaces a single
329
- * node. The node's {@link SessionEvent.sourceEventSeqs} must include every
330
- * shadowed surface node. Used by compaction; any surface-replacing producer
331
- * may use it.
332
- */
333
- type SurfaceOp =
334
- | 'append'
335
- | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq }
336
- ```
337
-
338
- `'append'` is the normal tail-append path. `replace` contains exactly `op`, `startSeq`, and `endSeq`, with no aliases or extra keys. It shadows the inclusive span between those current surface event sequences and inserts the new event in their place; equal endpoints replace one entry. Endpoints must precede the replacing event, but their relative order is surface order, not numeric sequence order.
339
-
340
- ### `SurfaceIntent` — the parameter to `session.append()`
341
-
342
- ```ts type-equiv
343
- /**
344
- * Surface placement and cited source-event seqs for {@link Session.append}. Required on
345
- * message-producing events and forbidden on log-only events.
346
- */
347
- type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = {
348
- surfaceOp: SurfaceOp
349
- } & (T extends 'assistant/message' ? {
350
- /** Assistant messages embed their provider stream instead of citing source events. */
351
- sourceEventSeqs?: never
352
- } : {
353
- /** Complete non-empty set of known earlier source-event seqs. */
354
- sourceEventSeqs?: SessionSeq[]
355
- })
356
- ```
357
-
358
- Required for `SurfaceEventType` events — every message-producing event must declare how it joins the surface, the sole source of derived model history. A human-facing transcript is the other projection and reads the log's append-origin events instead, because the surface deliberately shadows the ranges a replacement summarizes (`isAppendSurfaceEvent` in [dsh-session](../../packages/core/session/README.md)). Non-surface types reject it at compile time.
359
-
360
- `assistant/message` cannot carry `sourceEventSeqs`; its `stream` owns exact provider evidence. Other surface events omit the field when they cite no earlier event and use a complete non-empty list when they do.
361
-
362
- <a id="plugin-owned-message-projections"></a>
363
- ### Plugin-owned message projections
364
-
365
- Content-changing plugins mark their event declaration with `@messageProjection` and register a pure definition through `ctx.sessions.registerMessageProjection()`. Session validates the complete decision through that definition before commit, applies its immutable message updates, and advances `contentGeneration`. It rejects missing interpreters, including on restore and detached folding; unloading a used definition blocks cached reads. Detached readers pass explicit definitions to `foldSurface(events, projections)` and apply `projectedMessages` through `deriveEventMessage()`. The installed format catalog assembles first-party definitions for offline readers. The [image-offload plugin](compaction.md#image-offload) owns its image-specific event and interpretation.
366
-
367
- ```ts type-equiv
368
- /** Readonly history immediately before a message-projection event. */
369
- interface SessionMessageProjectionContext {
370
- /** Current message-producing event sequences in model-visible order. */
371
- nodes: readonly SessionSeq[]
372
- /** Contiguous event window; entries at or beyond the candidate seq are not committed inputs. */
373
- events: readonly SessionEvent[]
374
- /** Absolute sequence of the window's first event. */
375
- baseSeq: SessionLogOffset
376
- /** Previously projected messages keyed by their original event sequences. */
377
- messages: ReadonlyMap<SessionSeq, Message>
378
- }
379
- ```
380
-
381
- ```ts type-equiv
382
- /** Pure interpretation of one plugin-owned event that changes existing message content. */
383
- interface SessionMessageProjection<T extends SessionEventType = SessionEventType> {
384
- /** Event interpreted by this definition; declare it with `@messageProjection` in SessionEventMap. */
385
- type: T
386
- /**
387
- * Validate the complete durable decision before returning any updates. Preserve
388
- * message identities and publish immutable copies without mutating the input.
389
- * @param event - candidate event, not yet applied to the supplied history.
390
- * @param context - history preceding this decision.
391
- * @returns changed current messages keyed by their original sequences.
392
- * @throws when the durable decision cannot be applied to this history.
393
- */
394
- project(event: SessionEvent<T>, context: SessionMessageProjectionContext): ReadonlyMap<SessionSeq, Message>
395
- }
396
- ```
397
-
398
- ### `SessionSurface` — the live readonly surface projection
399
-
400
- `Session.surface` returns the session's stable `SessionSurface` view. The same incremental manager validates append candidates before commit and advances this projection from committed events; callers can observe membership and replacement generation but cannot invoke validation.
401
-
402
- `SurfaceManager(log, baseSeq?, projections?)` can instead fold a contiguous loaded window whose first event has the absolute sequence `baseSeq`. Every event remains contiguous in that absolute sequence space, and a replacement that crosses the window head fails because its declared range is absent.
403
-
404
- ```ts type-equiv
405
- /** Readonly live projection of the message-producing session events. */
406
- interface SessionSurface {
407
- /** Current surface event sequences in model-visible order. */
408
- readonly nodes: readonly SessionSeq[]
409
- /** Monotonic count of committed positional replacements. */
410
- readonly replaceGeneration: number
411
- /** Monotonic count of committed replacements and plugin-owned message changes. */
412
- readonly contentGeneration: number
413
- }
414
- ```
415
-
416
- ### `SurfaceFoldReplacement` and `SurfaceFoldResult` — a complete surface replay
417
-
418
- `foldSurface(events, projections)` returns detached current event sequences together with the actual sequences shadowed by each declared replacement range. The live manager uses the same transitions without retaining replacement history. Its `replaceGeneration` increments for each committed replacement so incremental consumers can distinguish pure tail growth from a rewrite.
419
-
420
- ```ts type-equiv
421
- /** One replacement operation observed while folding a session surface. */
422
- interface SurfaceFoldReplacement {
423
- /** Seq of the event that replaced the prior surface range. */
424
- seq: SessionSeq
425
- /** Declared inclusive start seq of the replaced surface range. */
426
- start: SessionSeq
427
- /** Declared inclusive end seq of the replaced surface range. */
428
- end: SessionSeq
429
- /** Actual surface entries removed by the operation, in surface order. */
430
- shadowedSeqs: SessionSeq[]
431
- }
432
- ```
433
-
434
- ```ts type-equiv
435
- /** Complete result of replaying the surface operations in a session log. */
436
- interface SurfaceFoldResult {
437
- /** Current surface event sequences in model-visible order. */
438
- nodes: SessionSeq[]
439
- /** Replacement operations in event order. */
440
- replacements: SurfaceFoldReplacement[]
441
- /** Immutable projected messages, keyed by their original event sequences. */
442
- projectedMessages: ReadonlyMap<SessionSeq, Message>
443
- }
444
- ```
445
-
446
- ## `Session` public API
447
-
448
- The body-stripped declaration keeps the plain class's detached factory, state accessors, append method, and history projections synchronized with source. Store operations remain in the generated [`ctx.sessions` section](#ctxsessions--sessionstore).
449
-
450
- ```ts public-api
451
- /**
452
- * An event-sourced session: an append-only log of {@link SessionEvent}s.
453
- *
454
- * Plain class (not a Service) — create live instances via
455
- * `ctx.sessions.create()` and detached instances via {@link create}.
456
- * Seeding with an existing event log replays/forks a session.
457
- * @typert object
458
- */
459
- declare class Session {
460
- /** The ordered surface over this session's event log. */
461
- get surface(): SessionSurface;
462
- /**
463
- * Detached, deep-frozen creation metadata (format version, cwd, lineage,
464
- * and whether fork history exists). Supplied by the store via `ctx.sessions.create()`. When a
465
- * `Session` is created without a store-owned header, a minimal header is
466
- * synthesized (stamped with the current {@link SESSION_FORMAT_VERSION}) so
467
- * `session.header` is always present. Kept out of the event log — it is a
468
- * storage concern, not replayable conversation state.
469
- */
470
- readonly header: SessionHeader;
471
- /** Number of leading events inherited from this Session's fork parent. */
472
- readonly inheritedEventCount: SessionLogOffset;
473
- /** The session identity, derived from its durable header's single copy. */
474
- get id(): SessionId;
475
- /**
476
- * The constructor seed length (0 without one), before any marker appended
477
- * during construction. Seed events never publish on `session/event`. A
478
- * marker appended before the store attaches occupies this seq without
479
- * publishing either; otherwise this seq is available for the next append.
480
- *
481
- * This in-process offset is not persisted. A fork seed can already contain
482
- * the child's inherited marker and synthetic closers, so its child-owned
483
- * history starts at {@link inheritedEventCount}, before this offset. A
484
- * resumed Session's seed contains its full stored log, while its inherited
485
- * count keeps the durable fork cut. Consumers needing complete canonical
486
- * history start at seq 0.
487
- */
488
- readonly firstLiveSeq: SessionLogOffset;
489
- /**
490
- * First event produced for this object lifecycle. A new fork includes its
491
- * child-owned seed marker and closers; a restored Session starts after its
492
- * complete stored prefix. This in-process capture offset is not persisted.
493
- */
494
- readonly firstLifecycleSeq: SessionLogOffset;
495
-
496
- /**
497
- * Create a detached session by validating and snapshotting borrowed seed
498
- * events and storage metadata.
499
- * @param id - session identity.
500
- * @param seed - optional borrowed replay or fork events.
501
- * @param header - optional borrowed storage metadata.
502
- * @param inheritedEventCount - exact fork-inherited prefix length for a seeded header.
503
- * @param projections - pure interpreters for plugin-owned message changes.
504
- * @returns a detached session.
505
- * @throws when a seed event requires a missing message interpreter or fails validation.
506
- */
507
- static create(
508
- id: SessionId,
509
- seed?: readonly SessionEvent[],
510
- header?: SessionHeader,
511
- inheritedEventCount?: SessionLogOffset,
512
- projections?: readonly SessionMessageProjection[],
513
- ): Session;
514
- /**
515
- * Restore a detached session by adopting an independently owned or deeply frozen seed.
516
- * Runtime-required event fields, event envelopes, sequence continuity, surface
517
- * transitions, and header fields are validated without copying or freezing events.
518
- * Embedded Assistant streams remain opaque until a stream consumer or storage
519
- * verifier reads them.
520
- * @param id - restored session identity.
521
- * @param seed - independently owned or deeply frozen events.
522
- * @param header - independently owned storage metadata.
523
- * @param inheritedEventCount - exact fork-inherited prefix length decoded from storage.
524
- * @param eventState - aliasing state carried from the operation that produced the seed.
525
- * @param projections - pure interpreters for plugin-owned message changes.
526
- * @returns a restored detached session.
527
- * @throws when a seed event requires a missing message interpreter or fails validation.
528
- */
529
- static fromRestore(
530
- id: SessionId,
531
- seed: readonly SessionEvent[],
532
- header: SessionHeader,
533
- inheritedEventCount: SessionLogOffset,
534
- eventState: SessionSeedEventState,
535
- projections?: readonly SessionMessageProjection[],
536
- ): Session;
537
- /**
538
- * Return the immutable event stored at one exact sequence number.
539
- * @deprecated Existing logic may remain unmigrated for now, but new calls are prohibited.
540
- * See the [Agent Note](../../../../.agents/notes/implemented/architecture/2026-09-09-deprecate-synchronous-session-event-reads.md).
541
- * @param seq - event sequence number.
542
- * @returns the accepted event, or undefined when the log does not contain it.
543
- */
544
- eventAt(seq: SessionSeq): SessionEvent | undefined;
545
- /**
546
- * Materialize an immutable snapshot of a half-open event sequence range.
547
- * A full current snapshot is reused until the next append; every previously
548
- * returned snapshot remains stable after later appends.
549
- * @deprecated Existing logic may remain unmigrated for now, but new calls are prohibited.
550
- * See the [Agent Note](../../../../.agents/notes/implemented/architecture/2026-09-09-deprecate-synchronous-session-event-reads.md).
551
- * @param fromSeq - non-negative inclusive sequence number; defaults to the log start.
552
- * @param toSeqExclusive - non-negative exclusive sequence number; defaults to the current end.
553
- * @returns a frozen array of the selected deeply frozen events.
554
- */
555
- snapshotEvents(
556
- fromSeq: SessionLogOffset = SessionLogOffset(0),
557
- toSeqExclusive: SessionLogOffset = this.seq,
558
- ): readonly SessionEvent[];
559
- /**
560
- * Return this Session's events after its fork-inherited prefix.
561
- * @deprecated Existing logic may remain unmigrated for now, but new calls are prohibited.
562
- * See the [Agent Note](../../../../.agents/notes/implemented/architecture/2026-09-09-deprecate-synchronous-session-event-reads.md).
563
- * @returns a fresh array containing child-owned events in log order.
564
- */
565
- ownEvents(): readonly SessionEvent[];
566
- /**
567
- * Whether one existing event position is outside the fork-inherited prefix.
568
- * @param seq - event position in this Session.
569
- * @returns true when the event belongs to this Session rather than its parent.
570
- */
571
- isOwnSeq(seq: SessionSeq): boolean;
572
- /** The next event's sequence number — always the log length (the `seq = log.length` contiguity contract). */
573
- get seq(): SessionLogOffset;
574
- /**
575
- * Append one typed event to the log and synchronously notify observers via
576
- * the store-owned, module-private publication hooks. The hot path never blocks
577
- * on I/O — persistence plugins buffer asynchronously. Once the event enters
578
- * the log, the append is committed: observer failures are logged and
579
- * contained per listener, so they do not change the return value or prevent
580
- * later listeners from observing the same accepted event.
581
- *
582
- * @param type - The event type (key of {@link SessionEventMap}).
583
- * @param data - The event payload; must be JSON-serializable.
584
- * @param opts - Surface metadata: `surfaceOp` controls how the event enters
585
- * the ordered surface; `sourceEventSeqs` lists the seq numbers of earlier
586
- * events this one derives from. REQUIRED for
587
- * {@link SurfaceEventType} events (every message-producing event must
588
- * declare how it joins the surface, the sole source of derived model
589
- * history) and
590
- * rejected by the compiler for non-surface types like `turn/start` or
591
- * `assistant/attempt`. Assistant messages embed their exact provider
592
- * stream and cannot cite top-level source events.
593
- * @returns the logged event — its assigned `seq`/`time` plus the SNAPSHOT of
594
- * `data` that entered the log, so reading `event.data` back sees the logged
595
- * value, never the caller's still-mutable input.
596
- * @throws if `data` or surface metadata is not losslessly JSON-serializable
597
- * (BigInt, function, symbol, undefined, negative zero, non-finite number,
598
- * circular reference, sparse array, or an exotic object such as
599
- * Map/Set/Date/class instance), or when the candidate violates the
600
- * request-header empty-field or tool-error consistency rules, or the
601
- * canonical surface contract (marker shape and eligibility, unique
602
- * earlier source-event references, positional replacement validity, and complete
603
- * shadowed-node coverage). One iterative pass reads, validates, and
604
- * copies each nested value once, so a stateful getter cannot supply one value
605
- * to validation and another to storage. The event log is the durable source
606
- * of truth, so a bad event fails at the append site rather than later during
607
- * a backend flush. A synchronous internal dispatch validation failure or an
608
- * append reentered while this acceptance/publication boundary is open also
609
- * rejects before the log changes.
610
- */
611
- append<T extends SessionEventType>(
612
- type: T,
613
- data: SessionEventMap[T],
614
- ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []
615
- ): SessionEvent<T>;
616
- /**
617
- * The {@link EpochHeader} in force after the log's last header event — the
618
- * header the NEXT request will be compared against — or undefined before
619
- * the first `request/header` snapshot. The live, incrementally-maintained
620
- * form of `foldRequestHeader(session.snapshotEvents())`: each header event is folded
621
- * once, when first seen, so a per-step read costs O(new events).
622
- * @returns the folded header, or undefined when no header event exists yet.
623
- */
624
- requestHeader(): EpochHeader | undefined;
625
- /**
626
- * Return the latest resolved route metadata, or `undefined` before the first
627
- * `request/context` event. Each event is folded once.
628
- * @returns the latest immutable route metadata.
629
- */
630
- requestContext(): RequestContext | undefined;
631
- /**
632
- * Fold unseen committed events into capability-independent tool history.
633
- * Initial access reconstructs inherited history; later reads consume only new events.
634
- * @returns an immutable snapshot for LLM request projection, including historical addition definitions.
635
- */
636
- toolHistory(): ToolHistory;
637
- /**
638
- * Derive the LLM message history by walking the ordered sequences of
639
- * message-producing events maintained by `surfaceOp` markers. The
640
- * surface is the single source of derived history: every message-producing
641
- * append records its `surfaceOp`, so a raw event with no marker (a chunk, a
642
- * turn boundary) is correctly absent, and a compaction `replace` deletes the
643
- * shadowed nodes from the derivation. The projection rules are
644
- * {@link deriveEventMessage}, with logged message projections applied
645
- * without changing node membership or message identity.
646
- *
647
- * CACHED: pure tail growth costs O(new nodes); a replacement or message projection
648
- * ({@link SessionSurface.contentGeneration}) rebuilds. The returned array is
649
- * a fresh snapshot per call (later appends never grow an array a caller
650
- * already holds); the `Message` objects in it are SHARED and **deep-frozen**.
651
- * Unchanged content reuses frozen event data; projected blocks are frozen
652
- * derived copies. Consumers cannot mutate the log through either form.
653
- * @returns a fresh array of the shared, frozen derived history.
654
- */
655
- deriveMessages(): Message[];
656
- /**
657
- * Project one event with all committed message projections applied.
658
- * The original durable event remains unchanged.
659
- * @param event - the event to project.
660
- * @returns the derived message, or null when the event produces none.
661
- */
662
- deriveEventMessage(event: SessionEvent): Message | null;
663
- }
664
- ```
665
-
666
- ## Derived history: `deriveMessages()` and `deriveEventMessage()`
667
-
668
- `Session.deriveMessages()` projects the event log into the `Message[]` the model sees — cached (each surface node projected once, when first seen; a surface rewrite rebuilds) and frozen (a fresh array per call over shared, deep-frozen messages, so mutating logged history through a projection is unrepresentable). `deriveEventMessage(event)` is the per-node pure function the fold applies — public so external reconstructors project a log prefix with exactly the same rules and cannot disagree with the cache. The projection rules:
669
-
670
- - `user/message` → a user message carrying exact `content`; an optional envelope remains log-only display metadata.
671
- - `assistant/message` → an assistant message with the provider and model that produced it plus optional adapter-private replay state. Its embedded compact stream is replay, usage, and UI evidence rather than a second message. An **empty-content** `assistant/message` is also skipped — a max-tokens step cut off with no content still records an `assistant/message` to hold its stream, usage, provider, and model, but a content-less assistant turn must not enter the provider transcript.
672
- - `tool/result` → a first-class tool-role message carrying its result content and tool-call identity.
673
- - `user/message` (injected context, i.e. non-`user` source) → a user-role message carrying its `content` verbatim at its chronological position; its typed source names the producer and carries any producer-specific data.
674
-
675
- Everything else (`turn/*`, `step/*`, `assistant/attempt`, plugin-owned `llm/retry`) is structural and does not project into a message. Token accounting expands the embedded stream on each `assistant/message` or `assistant/attempt`, while the message's top-level `usage` remains the committed-message authority when present. A failed model-request attempt therefore retains its provider usage without fabricating an assistant message. Current logical validation rejects request headers and assistant messages that omit provider/model instead of guessing a route; supported historical representations are normalized and validated by their adjacent format edge before a current Session exists.
676
-
677
- ## Live-session fork API
678
-
679
- `ctx.sessions.create(id, { seed, meta })` is the low-level replay/fork primitive. For ordinary live-session forks, `SessionStore` exposes one policy API:
680
-
681
- - `fork(source, boundary?, childSessionId?)` accepts a live `Session` object or live `SessionId`, selects source events through the inclusive `SessionSeq` boundary (default: current last event), requires the selected prefix to end outside an open turn, then creates a live child session with deep-cloned seed events, `parentSession`, `isSeeded: true`, the exact `inheritedEventCount`, and inherited `cwd`.
682
-
683
- An explicit `boundary` lets callers fork from any stable between-turn position, including a previous `turn/end` or a later standalone log-only event, even if the source has newer events or an open current turn. The API rejects a prefix that ends inside an open turn instead of clipping silently. `dsh-subagent-fork-in-process` keeps its completed-prefix clipping because tool-time delegation usually starts while the parent turn is open; ordinary session branching should make the requested boundary explicit.
684
-
685
- ## Why a turn ended: `TurnEndReasonMap`
686
-
687
- `turn/start` has no trigger field. The entered `user/message` batch records what entered each step, `llm/retry` records request recovery, and idle injection remains pending until a waking delivery reaches a later pre-step. Live turns retain the typed [`AgentCancelCause`](core.md#the-agent-handle) that stopped the driver; persistence uses the additional `{ kind: 'legacy' }` cause only when importing a supported coarse cancellation record that did not store its caller.
688
-
689
- ```ts type-equiv
690
- /** Durable cancellation cause, including imports whose original coarse record carried no cause. */
691
- type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy' }
692
- ```
693
-
694
- ```ts type-equiv
695
- /**
696
- * Why a turn ended. Merge-extensible sum type.
697
- */
698
- interface TurnEndReasonMap {
699
- completed: { kind: 'completed' }
700
- /** A cancellation request interrupted the live turn. */
701
- aborted: { kind: 'aborted'; reason: TurnEndCancelCause }
702
-
703
- blocked: { kind: 'blocked' }
704
- /**
705
- * The turn failed. `error` is always a structured failure: the `LlmError`
706
- * facts verbatim, or `{ message: errorChain(error), code: 'UNKNOWN' }`
707
- * flattened from any other error.
708
- */
709
- error: { kind: 'error'; error: LlmFailure }
710
- /** At least one step reached its output-token ceiling, even if a plugin continued the turn. */
711
- 'max-tokens': { kind: 'max-tokens' }
712
- /**
713
- * A crash-orphaned turn was closed after the fact: agent-loop resume appends
714
- * this closer for a stored log whose last turn never ended, and session-query
715
- * synthesizes it on cold reads. The loop never emits this marker live, and
716
- * the events recorded before the crash remain intact.
717
- */
718
- interrupted: { kind: 'interrupted' }
719
- /**
720
- * Fork-seed construction closed a turn that was still open at the fork
721
- * boundary in the source session. Only fork seeds carry this marker — the
722
- * loop never emits it — and the source events before the boundary remain
723
- * intact in the child.
724
- */
725
- forked: { kind: 'forked' }
726
- }
727
- ```
728
-
729
- `max-tokens` mirrors the model-call `FinishReason` of the same name: any `max-tokens` step in a turn makes the whole turn end `max-tokens` rather than `completed` (the cut-short fact wins over a later continuation), so a consumer can tell a clean stop from a truncated one. Cancellation and errors remain distinct outcomes. The loop emits neither `interrupted` nor `forked` live: crash recovery synthesizes `interrupted` (see [persistence.md](persistence.md)), while fork-seed construction synthesizes `forked`. The map is merge-extensible.
730
-
731
- ## Execution enclosure and standalone events
732
-
733
- A turn encloses one model-loop execution, not the whole session log. AgentLoop records injected `user/message` events only from entering pre-step batches inside a turn; plugin-owned log-only events may still appear between `turn/end` and the next `turn/start`, consuming event seqs without incrementing turn numbers. Persistence admits every contiguous accepted event into a bounded durable batch, while crash repair closes only a genuinely open trailing turn. A producer that needs an immediate durability barrier explicitly awaits `ctx.sessions.flush(session)`.
734
-
735
- Merge-extensible event relations belong to the plugin that declares them, so core does not reject an unknown event merely because no turn is open. See [the standalone-event decision](../../.agents/notes/implemented/simplification/2026-07-28-remove-synthetic-log-only-turns.md).
736
-
737
- ## The end-seed boundary: `session/end-seed`
738
-
739
- `buildForkSeed` appends `session/end-seed { inherited: true }` at the exact inherited-prefix cut before adding synthetic fork closers. The `Session` constructor retains that prepared marker or appends one when given only the inherited prefix. A restore retains the tagged marker and appends an ordinary `session/end-seed {}` only when its complete stored seed does not already end in a marker. Both forms are log-only and produce no message; only the constructor and `buildForkSeed` may create them.
740
-
741
- For fork lineage, locate the LAST marker whose payload carries `inherited: true`; current-format decoding requires it exactly when `SessionHeader.isSeeded` is true and derives `inheritedEventCount` from its seq. For lifecycle ownership, locate the last `session/end-seed` of either form. Reopening a seed that already ends in any marker does not append another ordinary marker.
742
-
743
- It exists because seed history and live work are otherwise byte-identical, which defeats any plugin owning a standalone open/close bracket: an unmatched `compaction/start` reads the same whether the writer crashed mid-compaction or is compacting right now. An opening marker before `session/end-seed` came from the constructor seed and belongs to an ended lifecycle, whatever ended it (a crash, a succeeding process, or a fork out of a still-running parent), so its owner may treat it as dead. That covers only brackets *this* session inherited: a concurrently live session holding an open bracket over the same history has its own boundary elsewhere, so tolerating concurrent writers needs a liveness signal beyond the log. Core writes the boundary and reads nothing from it — a bracket's vocabulary stays with its owning plugin, which is why crash repair closes turn/step/tool boundaries and never `compaction/*`.
744
-
745
- Consumers that order Sessions by human activity exclude this boundary: picking a Session up is not work, so ordering by the log tail would float every opened Session to the top.
746
-
747
- ## Plugin-contributed log-only events
748
-
749
- A plugin may declaration-merge extra `SessionEventMap` types. These are **log-only**: NOT `SurfaceEventType`s (they carry no `surfaceOp` and contribute nothing to derived history). Their owner decides whether they belong to an open execution turn or may stand between turns. The generated [persistence log event catalog](../persistence-catalog.md) enumerates every core and plugin-contributed event; the compaction seam's `compaction/*` semantics are discussed on [compaction.md](compaction.md).
750
-
751
- When several events in one plugin-owned family assemble into one Web Client Conversation Node, every start, update, result, resource, or interruption event in that family carries or independently derives the same stable business id. This requirement applies to correlated Node families, not to every Session event; it lets the client group each event without guessing from adjacency or scanning history. See the [Conversation subsystem](conversation.md).
752
-
753
- The hook bridges' `hook/invoked` / `hook/result` pairs (from `@deepseek-ai/dsh-hook-protocol`) correlate by `handlerId`. `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, and `Stop` fire inside the loop's open turn, so their `hook/*` records are turn-enclosed by construction. `SessionStart` gets no `hook/*` record because it runs before turn 1; its context remains pending in the inbox until a waking delivery opens a turn.
754
-
755
- ### Plugin records
756
-
757
- Experimental packages declare plugin-owned state in `PluginRecordMap`: `appendPluginRecord()` uses each declaration to type its name and payload, and appends an event marked `ignorable: true` in the `plugin:` namespace. `pluginRecordOf()` reads stored records with unknown payloads regardless of current declarations. The [experimental persistence catalog](../experimental-persistence-catalog.md) lists current declarations. The [package README](../../packages/core/session/README.md#write-experimental-plugin-records) owns the caller restriction, retention, and read path.
758
-
759
- ```ts type-equiv
760
- /**
761
- * Event type of an experimental plugin record: `plugin:` followed by
762
- * slash-separated segments of lowercase letters, digits, `.`, `_`, and `-`,
763
- * each starting with a letter or digit. A record type is never a
764
- * {@link SessionEventMap} member.
765
- */
766
- type PluginRecordType = `plugin:${string}`
767
- ```
768
-
769
- ```ts type-equiv
770
- /**
771
- * Payloads written by experimental packages, keyed by their `plugin:` record
772
- * names. Packages augment this map to type writes and enter the current plugin
773
- * record catalog; these declarations do not enter {@link SessionEventMap} or
774
- * released persistence schemas. Stored records still require owner validation.
775
- */
776
- interface PluginRecordMap {}
777
- ```
778
-
779
- ```ts type-equiv
780
- /**
781
- * One committed experimental plugin record, read from the log by
782
- * `pluginRecordOf`. The record's owner validates `data` before use, because a
783
- * restored record carries whatever JSON an earlier build of its owner wrote,
784
- * or a V3 event that a format migration renamed into the `plugin:` namespace held.
785
- */
786
- interface PluginRecord {
787
- /** The record type, chosen by the owning plugin. */
788
- readonly type: PluginRecordType
789
- /** The record's position in the Session log. */
790
- readonly seq: SessionSeq
791
- /** Unix epoch milliseconds at append. */
792
- readonly time: number
793
- /** The JSON payload as committed. */
794
- readonly data: unknown
795
- }
796
- ```
797
-
798
- ## Durability contract
799
-
800
- What a persistence backend relies on: the durable log persists every event losslessly, and every Assistant attempt is one `assistant/message` or `assistant/attempt` whose embedded compact stream preserves the original timed chunks. `seq` stays contiguous across these settlements and all interleaved events. A backend may choose its own storage framing for an event batch as long as a handle's `read()` returns the exact appended events; current JSONL writes one row per event (see [persistence.md](persistence.md)). All `event.data` must be JSON-serializable; `Session.append` enforces this at the source (throwing on non-serializable data), so a bad event never enters the log and `session.snapshotEvents()` always equals what a backend can persist. Adding an event type that carries non-serializable data, corrupts core execution nesting, or violates its owner's declared relation is a breaking change to the on-disk format.
801
-
802
- The backends that consume this contract are on [persistence.md](persistence.md).
803
-
804
- ## Remote catalog and workspace opening
805
-
806
- `ModelCatalog` is the Host-generation model directory returned by `session/modelCatalog`: it carries the deployment default, routable provider ids, successful provider groups, and isolated provider failures. It is not derived from one Session and remains separate from Session projections.
807
-
808
- `SessionOpenWorkspacePathRequest` carries an absolute or workspace-resolved `path`; optional `action: "reveal"` selects file-manager navigation instead of default-application opening. `SessionOpenWorkspacePathValue` confirms that the Host accepted the native handoff. A Session-aware Client resolves relative paths against its current Session cwd when known; the controller hands the path to the opener unchanged and reports invalid requests, cancellation, and opener failures through the Session Remote error vocabulary.
809
-
810
- The optional `application` selects a registered file handler without changing the system default; `workspacePathApplications({ path })` returns current handlers, names, icons, and default selection after Host path verification.
811
-
812
- <!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
813
-
814
- <a id="cordis-surface"></a>
815
-
816
- ## Cordis API
817
-
818
- 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).
819
-
820
- <a id="ctxsessioncontroller--sessioncontroller"></a>
821
-
822
- ### `ctx.sessionController` — `SessionController`
823
-
824
- Host service backing the generated `ctx.remote.session` namespace.
825
-
826
- ```ts cordis-catalog
827
- /**
828
- * Resolve or resume one ordinary Session for another Host API domain.
829
- * @param sessionId - Session identity whose Agent owns the operation.
830
- * @returns the live Agent or the stable Session-domain failure.
831
- */
832
- resolveAgent(sessionId: SessionId): Promise<ApiSessionAgentResult>
833
-
834
- /**
835
- * Inspect one attached or persisted Session without activating its Agent.
836
- * @param sessionId - durable Session identity.
837
- * @param signal - optional caller cancellation for persistence reads.
838
- * @returns the current attached state or persisted header and event prefix.
839
- */
840
- inspect( sessionId: SessionId, signal?: AbortSignal, ): Promise<SessionInspection>
841
-
842
- /**
843
- * Read all visible Session rows without resuming an Agent.
844
- * @param _request - reserved empty list request.
845
- * @param signal - cancellation for persistence reads and summary generation.
846
- * @returns visible Session summaries ordered by activity.
847
- */
848
- @Remote('list') async list(_request: SessionListRequest, signal: AbortSignal): Promise<SessionListValue>
849
-
850
- /**
851
- * Search visible Session content without resuming an Agent. A non-owner
852
- * receives only the hits whose Session `allows()` admits; `hasMore`
853
- * describes the bounded result before that filtering.
854
- * @param request - literal message-content query.
855
- * @param signal - cancellation for list and search reads.
856
- * @returns authorized bounded Session search results.
857
- */
858
- @Remote('search') async search(request: SessionSearchRequest, signal: AbortSignal): Promise<SessionSearchValue>
859
-
860
- /**
861
- * Create one ordinary Session for a new conversation, reusing the named blank Session while it is reusable.
862
- * @param request - optional blank Session to reuse, location, and Agent preset.
863
- * @returns the created or reused Session identity and its preset when configured.
864
- */
865
- @Remote('create') create(request: SessionCreateRequest): Promise<SessionCreateValue>
866
-
867
- /**
868
- * Select one Session-local model after explicitly resuming the Session; save the default in the background.
869
- * @param request - Session identity and requested model selection.
870
- * @returns the normalized selection installed for the Session, without waiting for default persistence.
871
- */
872
- @Remote('selectModel') selectModel(request: SessionSelectModelRequest): Promise<SessionSelectModelValue>
873
-
874
- /**
875
- * Select the first available account model after login when no provider API key is configured.
876
- * @returns after saving the first available model or retaining the existing default.
877
- */
878
- @Remote async initializeDefaultModel(): Promise<void>
879
-
880
- /**
881
- * Describe every currently routable model for Host-generation selectors.
882
- * @returns provider-grouped models, the deployment default, and isolated provider failures.
883
- */
884
- @Remote('modelCatalog') modelCatalog(): Promise<ModelCatalog>
885
-
886
- /**
887
- * Report whether this deployment can hand a Session workspace path to a native desktop.
888
- * @returns true when the matching open operation is available.
889
- */
890
- @Remote canOpenWorkspacePath(): boolean
891
-
892
- /**
893
- * Describe the serving desktop for authenticated file-action routes.
894
- * @returns Host name, configured availability, and platform-specific file-manager behavior.
895
- */
896
- workspaceDesktop(): { name: string; available: boolean; fileManager: 'finder' | 'explorer' | 'directory' | null }
897
-
898
- /**
899
- * Verify one path through the composed filesystem and open it on the Host desktop.
900
- * @param request - path after best-effort Session workspace resolution.
901
- * @param signal - caller lifetime; abort terminates the native command.
902
- * @returns confirmation after the native opener accepts the path.
903
- * @throws RemoteError when the request is invalid, has no verified Host mapping, is cancelled, or the opener fails.
904
- */
905
- @Remote('openWorkspacePath') async openWorkspacePath( request: SessionOpenWorkspacePathRequest, signal: AbortSignal, ): Promise<SessionOpenWorkspacePathValue>
906
-
907
- /**
908
- * Query current file handlers on the serving desktop without activating an Agent.
909
- * @param request - file path in Host filesystem syntax.
910
- * @param signal - caller lifetime, propagated to filesystem and desktop queries.
911
- * @returns OS application names, icons, and default selection; empty when desktop opening is unavailable.
912
- * @throws RemoteError when the path is invalid, the query is cancelled, or native discovery fails.
913
- */
914
- @Remote('workspacePathApplications') async workspacePathApplications( request: { readonly path: string }, signal: AbortSignal, ): Promise<readonly SessionWorkspacePathApplication[]>
915
-
916
- /**
917
- * Rename one Session after explicitly resuming it.
918
- * @param request - Session identity and proposed title.
919
- * @returns the accepted title and durable event sequence.
920
- */
921
- @Remote('rename') rename(request: SessionRenameRequest): Promise<SessionRenameValue>
922
-
923
- /**
924
- * Fork one cold-readable exact event prefix into a new Session. An omitted
925
- * boundary selects the latest completed-turn prefix; an open cut receives
926
- * synthetic fork closers.
927
- * @param request - source Session, optional exact inclusive event boundary, and migration preflight choice.
928
- * @returns the new Session identity.
929
- */
930
- @Remote('fork') async fork(request: SessionForkRequest): Promise<SessionForkValue>
931
-
932
- /**
933
- * Admit one prompt after explicitly resuming its Session.
934
- * @param request - Session identity, prompt content, source metadata, and delivery mode.
935
- * @param signal - caller cancellation before prompt admission begins.
936
- * @returns acknowledgement that the Agent accepted the prompt.
937
- */
938
- @Remote('prompt') async prompt(request: SessionPromptRequest, signal: AbortSignal): Promise<SessionPromptValue>
939
-
940
- /**
941
- * Read one image proven reachable from the addressed Session log.
942
- * @param request - Session and attachment identities used for authorization.
943
- * @returns the durable attachment reference and base64-encoded bytes.
944
- */
945
- @Remote('attachment') attachment(request: SessionAttachmentRequest): Promise<SessionAttachmentValue>
946
-
947
- /**
948
- * Mutate one still-pending queue occurrence, resuming a cold Agent first.
949
- * @param request - Session, queue item, and requested mutation.
950
- * @returns acknowledgement that the queue mutation was applied.
951
- */
952
- @Remote('updateQueue') updateQueue(request: SessionUpdateQueueRequest): Promise<SessionUpdateQueueValue>
953
-
954
- /**
955
- * Cancel one active Agent turn without dropping its pending inbox.
956
- * @param request - Session whose active Agent turn is cancelled.
957
- * @returns acknowledgement that cancellation was requested.
958
- */
959
- @Remote('cancel') cancel(request: SessionCancelRequest): SessionCancelValue
960
-
961
- /**
962
- * Read one cold-safe, message-aligned Session history page.
963
- * @param request - durable address, backward cursor, and page budget.
964
- * @param signal - cancellation for persistence reads.
965
- * @returns one chronological page.
966
- */
967
- @Remote({ name: 'page', resources: { session: addressedSession } }) page(request: SessionPageRequest, signal: AbortSignal): Promise<SessionPage>
968
-
969
- /**
970
- * Follow one Session log from its opening or resume cursor.
971
- * @param request - durable address and last committed sequence already held by the caller.
972
- * @param signal - cancellation owned by the Remote stream carrier.
973
- * @returns a complete opening snapshot followed by gap-free durable event
974
- * frames and optional cursorless assistant-stream frames.
975
- */
976
- @Remote({ mode: 'stream', resources: { session: addressedSession } }) follow(request: SessionFollowRequest, signal: AbortSignal): AsyncIterable<SessionFollowFrame>
977
-
978
- /**
979
- * Read exact projections, returning cached hints only when migration is required.
980
- * @param request - Session whose current values are required.
981
- * @param signal - cancellation for the Session read.
982
- * @returns a sequenced baseline, cached hints when migration is deferred, or null when absent.
983
- */
984
- @Remote('projections') async projections(request: SessionProjectionsRequest, signal: AbortSignal): Promise<SessionProjectionsValue>
985
-
986
- /**
987
- * Stream a complete live-control baseline followed by replacement frames.
988
- * @param signal - cancellation owned by the Remote stream carrier.
989
- * @returns one complete baseline followed by live replacement frames.
990
- */
991
- @Remote({ mode: 'stream' }) async *control(signal: AbortSignal): AsyncIterable<SessionControlFrame>
992
- ```
993
-
994
- Types: [SessionId](core.md) · [SessionInspection](persistence.md) · [SessionSearchRequest](session-query.md)
995
-
996
- Source: [`packages/api/session-controller/src/index.ts`](../../packages/api/session-controller/src/index.ts)
997
-
998
- <a id="ctxsessions--sessionstore"></a>
999
-
1000
- ### `ctx.sessions` — `SessionStore`
1001
-
1002
- In-memory session store (`ctx.sessions`).
1003
-
1004
- Persistence is intentionally not implemented here — the agent lifecycle attaches a session-log writer to each published session's write handle; a session published outside that lifecycle persists nothing.
1005
-
1006
- ```ts cordis-catalog
1007
- /**
1008
- * Register one event interpreter for live creation, restore, and fork.
1009
- * Disposing the contribution makes sessions that used it refuse further derivation.
1010
- * @param projection - pure definition owned by the event's plugin.
1011
- * @returns the fiber-owned disposer.
1012
- * @throws when another definition already owns this event type.
1013
- */
1014
- registerMessageProjection(projection: SessionMessageProjection): () => Promise<void>
1015
-
1016
- /**
1017
- * Create a session owned by the calling fiber: disposing that fiber stops
1018
- * event notification and removes the session from the store. `options.seed`
1019
- * populates the session with a copy of those events (replay/fork);
1020
- * `options.meta` attaches creation metadata (validated absolute `cwd`, seed
1021
- * and parent lineage, and delegation depth) as the immutable
1022
- * {@link SessionHeader} (the store fills `version`/`id`/`createdAt`).
1023
- *
1024
- * For an agent whose session must be torn down IN ORDER with its loop (so the
1025
- * loop's final events are published before the store attachment ends), do NOT use this
1026
- * — fold the session lifecycle into the agent's own effect via
1027
- * {@link prepare} + {@link enter} + {@link announce} (see
1028
- * `dsh-agent-loop`'s creation transaction).
1029
- *
1030
- * @param id - the session id; omitted, the store mints `session-<n>`.
1031
- * @param options - seed events and/or creation metadata for the header.
1032
- * @returns the live session, already entered and announced.
1033
- * @throws if a session with `id` already exists, metadata is not a plain
1034
- * lossless-JSON record with valid scalar fields, or `meta.cwd` is a
1035
- * non-absolute path (storage backends key directories off it).
1036
- */
1037
- create(id?: SessionId, options?: CreateSessionOptions): Session
1038
-
1039
- /**
1040
- * Build a session WITHOUT entering it into the store — validate the id/cwd and
1041
- * construct the {@link Session} (with its immutable {@link SessionHeader}).
1042
- * Pairs with {@link enter} + {@link announce}: a caller that owns a composite
1043
- * `ctx.effect` (the agent factory) folds the session lifecycle into that ONE
1044
- * effect so a fiber unload tears the session + agent down as a single ORDERED
1045
- * chain rather than as racing sibling effects — which would remove the publication hooks
1046
- * before the driver's closing events commit, dropping them.
1047
- *
1048
- * @param id - the session id; omitted, the store mints `session-<n>`.
1049
- * @param options - seed events and/or creation metadata for the header. With
1050
- * `eventState`, every seed event is either independently owned or any
1051
- * shared value is deeply frozen; {@link Session.fromRestore} validates and
1052
- * adopts those values without copying or freezing them.
1053
- * @returns the constructed session, NOT yet in the store.
1054
- * @throws if a session with `id` already exists, metadata is not a plain
1055
- * lossless-JSON record with valid scalar fields, or `meta.cwd` is a
1056
- * non-absolute path.
1057
- */
1058
- prepare(id?: SessionId, options?: PrepareSessionOptions): Session
1059
-
1060
- /**
1061
- * Enter a {@link prepare}d session into the store: install the module-private
1062
- * append publication hooks and add it to the store. Returns the DETACH
1063
- * disposer (hooks + store removal). Does NOT emit `session/created` —
1064
- * the caller yields this disposer inside its effect and THEN calls
1065
- * {@link announce}, so a throwing `session/created` listener rolls the attach
1066
- * back instead of leaking it.
1067
- *
1068
- * Re-checks the id for a duplicate: `prepare` and `enter` are public
1069
- * cross-package primitives and a caller may interleave arbitrary work (or
1070
- * another create) between them, so a stale prepared session must NOT overwrite
1071
- * a live store entry of the same id — its detach disposer would later delete
1072
- * the REAL session. The {@link create} convenience and the agent factory call
1073
- * the two back-to-back so they never trip this, but the public API cannot
1074
- * assume that.
1075
- *
1076
- * @param session - a {@link prepare}d session not yet in the store.
1077
- * @returns the detach disposer (publication hooks + store removal). When called from
1078
- * a synchronous `session/created` listener, removal and disposal wait until
1079
- * that creation dispatch unwinds.
1080
- * @throws if a session with this id is already in the store.
1081
- */
1082
- enter(session: Session): () => void
1083
-
1084
- /** Emit `session/created` exactly once for an {@link enter}ed session (with
1085
- * the carrier {@link enter} captured). Separate from {@link enter} so the
1086
- * caller can yield the detach disposer first (rollback safety — see
1087
- * {@link enter}).
1088
- * @param session - the entered session to announce to listeners.
1089
- * @throws if the session is not live or its announcement already began,
1090
- * including a reentrant call from a creation listener. */
1091
- announce(session: Session): void
1092
-
1093
- /**
1094
- * Dispatch the awaited `session/flush` durability checkpoint for `session`,
1095
- * with the carrier captured at {@link enter}. THE flush entry point: the
1096
- * store owns the carrier, so callers (the checkpoint policy's per-request
1097
- * barrier, goal-round-driver's idle checkpoint, teardown drains, and consumers
1098
- * that flush themselves before reading storage) must come through here
1099
- * rather than dispatch a raw `ctx.parallel('session/flush', …)` — one owner
1100
- * and one spelling.
1101
- * @param session - the session whose buffered events must reach durable storage.
1102
- * @returns whether at least one durability listener participated, after every
1103
- * listener has settled successfully.
1104
- * @throws the first registered listener failure after every listener settles.
1105
- */
1106
- async flush(session: Session): Promise<boolean>
1107
-
1108
- /**
1109
- * Look up a live session.
1110
- * @param id - the session id to look up.
1111
- * @returns the session, or undefined when no live session has that id.
1112
- */
1113
- get(id: SessionId): Session | undefined
1114
-
1115
- /**
1116
- * All live sessions, in creation order.
1117
- * @returns a fresh array; mutating it does not affect the store.
1118
- */
1119
- list(): Session[]
1120
-
1121
- /**
1122
- * Create a live child session from an exact prefix of a live source.
1123
- * `boundary` is an inclusive source event seq; omitted means the source's
1124
- * current last event. An open tail receives synthetic tool results and
1125
- * step/turn closers with the forked cause. Closed steps and turns remain
1126
- * unchanged, including any failed tool calls already missing results.
1127
- * `inheritedEventCount` counts only copied source events, excluding these closers.
1128
- *
1129
- * @param source - Live source session object or id.
1130
- * @param boundary - Inclusive source event seq to fork through; omitted means
1131
- * the source's current last event, and omitted on an empty source forks an
1132
- * empty child.
1133
- * @param childSessionId - Optional child session id; omitted delegates to
1134
- * `SessionStore`'s id policy.
1135
- * @returns The created live child session.
1136
- */
1137
- fork(source: SessionForkSource, boundary?: SessionSeq, childSessionId?: SessionId): Session
1138
- ```
1139
-
1140
- Types: [CreateSessionOptions](persistence.md) · [PrepareSessionOptions](persistence.md) · [SessionId](core.md)
1141
-
1142
- Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
1143
-
1144
- <a id="api-session-events"></a>
1145
-
1146
- ### `api-session/*` events
1147
-
1148
- <a id="api-sessionactivity--emit"></a>
1149
-
1150
- #### `api-session/activity` — emit
1151
-
1152
- One user-authored durable message advanced Session list activity.
1153
-
1154
- ```ts cordis-catalog
1155
- /**
1156
- * One user-authored durable message advanced Session list activity.
1157
- * @mode emit
1158
- * @param sessionId - addressed Session identity.
1159
- * @param updatedAt - durable message time used for list ordering.
1160
- */
1161
- 'api-session/activity'(sessionId: SessionId, updatedAt: number): void
1162
- ```
1163
-
1164
- Types: [SessionId](core.md)
1165
-
1166
- Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
1167
-
1168
- <a id="api-sessionadded--emit"></a>
1169
-
1170
- #### `api-session/added` — emit
1171
-
1172
- A Session became visible or its Agent was created or disposed. Consumers upsert the summary and replace its current running and availability state.
1173
-
1174
- ```ts cordis-catalog
1175
- /**
1176
- * A Session became visible or its Agent was created or disposed.
1177
- * Consumers upsert the summary and replace its current running and availability state.
1178
- * @mode emit
1179
- * @param summary - current list row for the Session.
1180
- */
1181
- 'api-session/added'(summary: SessionSummary): void
1182
- ```
1183
-
1184
- Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
1185
-
1186
- <a id="api-sessionerror--emit"></a>
1187
-
1188
- #### `api-session/error` — emit
1189
-
1190
- One Agent failed outside a durable turn position.
1191
-
1192
- ```ts cordis-catalog
1193
- /**
1194
- * One Agent failed outside a durable turn position.
1195
- * @mode emit
1196
- * @param sessionId - Agent and Session identity.
1197
- * @param message - user-safe failure chain.
1198
- */
1199
- 'api-session/error'(sessionId: SessionId, message: string): void
1200
- ```
1201
-
1202
- Types: [SessionId](core.md)
1203
-
1204
- Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
1205
-
1206
- <a id="api-sessionremoved--emit"></a>
1207
-
1208
- #### `api-session/removed` — emit
1209
-
1210
- A Session left the live Host registry.
1211
-
1212
- ```ts cordis-catalog
1213
- /**
1214
- * A Session left the live Host registry.
1215
- * @mode emit
1216
- * @param sessionId - removed Session identity.
1217
- */
1218
- 'api-session/removed'(sessionId: SessionId): void
1219
- ```
1220
-
1221
- Types: [SessionId](core.md)
1222
-
1223
- Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
1224
-
1225
- <a id="api-sessionstatus--emit"></a>
1226
-
1227
- #### `api-session/status` — emit
1228
-
1229
- One Agent changed running state.
1230
-
1231
- ```ts cordis-catalog
1232
- /**
1233
- * One Agent changed running state.
1234
- * @mode emit
1235
- * @param sessionId - Agent and Session identity.
1236
- * @param running - whether the Agent is running.
1237
- */
1238
- 'api-session/status'(sessionId: SessionId, running: boolean): void
1239
- ```
1240
-
1241
- Types: [SessionId](core.md)
1242
-
1243
- Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
1244
-
1245
- <a id="session-events"></a>
1246
-
1247
- ### `session/*` events
1248
-
1249
- <a id="sessioncreated--emit"></a>
1250
-
1251
- #### `session/created` — emit
1252
-
1253
- Creation announcement during session publication. A synchronous throw vetoes and rolls back with a paired disposal; detach requested during dispatch is deferred. A returned-promise rejection is logged but cannot retroactively veto this synchronous boundary. Scope-filtered dispatch (`@deepseek-ai/dsh-scope`): agent-scoped listeners receive only sessions entered through that agent's context.
1254
-
1255
- ```ts cordis-catalog
1256
- /**
1257
- * Creation announcement during session publication. A synchronous throw vetoes and rolls
1258
- * back with a paired disposal; detach requested during dispatch is deferred.
1259
- * A returned-promise rejection is logged but cannot retroactively veto this
1260
- * synchronous boundary.
1261
- * Scope-filtered dispatch (`@deepseek-ai/dsh-scope`): agent-scoped listeners
1262
- * receive only sessions entered through that agent's context.
1263
- * @param session - the session just entered and announced.
1264
- * @mode emit
1265
- */
1266
- 'session/created'(this: Scoped<Session>, session: Session): void
1267
- ```
1268
-
1269
- Types: [Scoped](scope.md)
1270
-
1271
- Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
1272
-
1273
- <a id="sessiondisposed--emit"></a>
1274
-
1275
- #### `session/disposed` — emit
1276
-
1277
- Emitted once when an announced session leaves the store, including publication rollback, but never for an entry whose creation announcement did not begin. Listener failures are logged and contained. Scope-filtered dispatch (`@deepseek-ai/dsh-scope`) reuses the owner scope.
1278
-
1279
- ```ts cordis-catalog
1280
- /**
1281
- * Emitted once when an announced session leaves the store, including
1282
- * publication rollback, but never for an entry whose creation announcement
1283
- * did not begin. Listener failures are logged and contained.
1284
- * Scope-filtered dispatch (`@deepseek-ai/dsh-scope`) reuses the owner scope.
1285
- * @param session - the session that is no longer live in the store.
1286
- * @mode emit
1287
- */
1288
- 'session/disposed'(this: Scoped<Session>, session: Session): void
1289
- ```
1290
-
1291
- Types: [Scoped](scope.md)
1292
-
1293
- Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
1294
-
1295
- <a id="sessionevent--emit"></a>
1296
-
1297
- #### `session/event` — emit
1298
-
1299
- Post-commit, fire-and-forget append feed. The listener snapshot resolves before the log push, but callbacks run after it; observer failures are logged and contained without making the committed append fail. Scope-filtered dispatch (`@deepseek-ai/dsh-scope`): agent-scoped listeners receive only events from sessions entered through that agent's context.
1300
-
1301
- ```ts cordis-catalog
1302
- /**
1303
- * Post-commit, fire-and-forget append feed. The listener snapshot resolves
1304
- * before the log push, but callbacks run after it; observer failures are
1305
- * logged and contained without making the committed append fail.
1306
- * Scope-filtered dispatch (`@deepseek-ai/dsh-scope`): agent-scoped listeners
1307
- * receive only events from sessions entered through that agent's context.
1308
- * @param session - the session whose log grew.
1309
- * @param event - the appended event, exactly as recorded.
1310
- * @mode emit
1311
- */
1312
- 'session/event'(this: Scoped<Session>, session: Session, event: SessionEvent): void
1313
- ```
1314
-
1315
- Types: [Scoped](scope.md)
1316
-
1317
- Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
1318
-
1319
- <a id="sessionflush--parallel"></a>
1320
-
1321
- #### `session/flush` — parallel
1322
-
1323
- Awaited parallel durability checkpoint: every listener runs and the caller awaits all of them, with no waterfall veto. Scope-filtered dispatch (`@deepseek-ai/dsh-scope`) reuses the session's owner scope.
1324
-
1325
- ```ts cordis-catalog
1326
- /**
1327
- * Awaited parallel durability checkpoint: every listener runs and the
1328
- * caller awaits all of them, with no waterfall veto. Scope-filtered dispatch
1329
- * (`@deepseek-ai/dsh-scope`) reuses the session's owner scope.
1330
- * @param session - the session whose buffered events must reach durable storage.
1331
- * @mode parallel
1332
- */
1333
- 'session/flush'(this: Scoped<Session>, session: Session): Promise<void> | void
1334
- ```
1335
-
1336
- Types: [Scoped](scope.md)
1337
-
1338
- Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
1339
- <!-- END GENERATED cordis-surface -->