@cursor/bdk 0.2.6 → 0.2.7

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 (335) hide show
  1. package/dist/bin/agent-serve.js +52 -57
  2. package/dist/channels/github/github-channel.d.ts.map +1 -1
  3. package/dist/channels/github/github-channel.js +34 -8
  4. package/dist/channels/github/types.d.ts +6 -0
  5. package/dist/channels/github/types.d.ts.map +1 -1
  6. package/dist/channels/slack/dispatch.d.ts.map +1 -1
  7. package/dist/channels/slack/dispatch.js +37 -29
  8. package/dist/channels/slack/external-policy.d.ts.map +1 -1
  9. package/dist/channels/slack/external-policy.js +6 -6
  10. package/dist/channels/slack/inbound.d.ts +5 -0
  11. package/dist/channels/slack/inbound.d.ts.map +1 -1
  12. package/dist/channels/slack/inbound.js +13 -0
  13. package/dist/channels/slack/index.d.ts +3 -0
  14. package/dist/channels/slack/index.d.ts.map +1 -1
  15. package/dist/channels/slack/index.js +3 -0
  16. package/dist/channels/slack/log.d.ts +1 -1
  17. package/dist/channels/slack/log.js +1 -1
  18. package/dist/channels/slack/self-identity.d.ts +15 -0
  19. package/dist/channels/slack/self-identity.d.ts.map +1 -0
  20. package/dist/channels/slack/self-identity.js +48 -0
  21. package/dist/channels/slack/sender-name.d.ts +17 -0
  22. package/dist/channels/slack/sender-name.d.ts.map +1 -0
  23. package/dist/channels/slack/sender-name.js +87 -0
  24. package/dist/channels/slack/setup.js +1 -1
  25. package/dist/channels/slack/user-info.d.ts +15 -0
  26. package/dist/channels/slack/user-info.d.ts.map +1 -0
  27. package/dist/channels/slack/user-info.js +57 -0
  28. package/dist/docs/404.html +2 -2
  29. package/dist/docs/assets/{app.CJLKDVza.js → app.oyjtOr3W.js} +4 -4
  30. package/dist/docs/assets/chunks/@localSearchIndexroot.C25zYVuc.js +1 -0
  31. package/dist/docs/assets/chunks/{VPLocalSearchBox.BW9mrQmq.js → VPLocalSearchBox.D0P6J_UJ.js} +1 -1
  32. package/dist/docs/assets/chunks/{arc.D8ZOvM1m.js → arc.B0LY1J1h.js} +1 -1
  33. package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.CXEKhLW-.js → architectureDiagram-Q4EWVU46.dPduLUxY.js} +1 -1
  34. package/dist/docs/assets/chunks/{baseUniq.BJkVKblr.js → baseUniq.B_Ohm21h.js} +1 -1
  35. package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.DQDbHxor.js → blockDiagram-DXYQGD6D.B4zcanaJ.js} +1 -1
  36. package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.ByMD6LYM.js → c4Diagram-AHTNJAMY.D9Iw21nx.js} +1 -1
  37. package/dist/docs/assets/chunks/channel.CRUyWDV-.js +1 -0
  38. package/dist/docs/assets/chunks/{chunk-4BX2VUAB.Dtq1aVI9.js → chunk-4BX2VUAB.DDVwRShI.js} +1 -1
  39. package/dist/docs/assets/chunks/{chunk-4TB4RGXK.BL_XrkoQ.js → chunk-4TB4RGXK.DsYcdn1i.js} +1 -1
  40. package/dist/docs/assets/chunks/{chunk-55IACEB6.BDPXu94_.js → chunk-55IACEB6.BzzQvcYp.js} +1 -1
  41. package/dist/docs/assets/chunks/{chunk-EDXVE4YY.DhGOQj4k.js → chunk-EDXVE4YY.BMiXZ7FX.js} +1 -1
  42. package/dist/docs/assets/chunks/{chunk-FMBD7UC4.DSF5nr8v.js → chunk-FMBD7UC4.D_mBcLoc.js} +1 -1
  43. package/dist/docs/assets/chunks/{chunk-OYMX7WX6.Day7wayw.js → chunk-OYMX7WX6.CMVjWVMx.js} +1 -1
  44. package/dist/docs/assets/chunks/{chunk-QZHKN3VN.CpBEC0zA.js → chunk-QZHKN3VN.BG-FrPv9.js} +1 -1
  45. package/dist/docs/assets/chunks/{chunk-YZCP3GAM.X_7rY1rx.js → chunk-YZCP3GAM.CkFE1ap3.js} +1 -1
  46. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.CG_UObcQ.js +1 -0
  47. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.CG_UObcQ.js +1 -0
  48. package/dist/docs/assets/chunks/clone.NYSZ9qZN.js +1 -0
  49. package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.BVRmi2ko.js → cose-bilkent-S5V4N54A.BVNnCTvY.js} +1 -1
  50. package/dist/docs/assets/chunks/{dagre-KV5264BT.Dei9oslB.js → dagre-KV5264BT.CDN5PR9l.js} +1 -1
  51. package/dist/docs/assets/chunks/{diagram-5BDNPKRD._M-efGt7.js → diagram-5BDNPKRD.DQRUlT-i.js} +1 -1
  52. package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.D1Vmhfsj.js → diagram-G4DWMVQ6.CoeblYQT.js} +1 -1
  53. package/dist/docs/assets/chunks/{diagram-MMDJMWI5.cE1bmvAC.js → diagram-MMDJMWI5.DW3ymjl0.js} +1 -1
  54. package/dist/docs/assets/chunks/{diagram-TYMM5635.DkXAfznP.js → diagram-TYMM5635.BP0uN4Jw.js} +1 -1
  55. package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.DH_pSwPg.js → erDiagram-SMLLAGMA.DVFUWEn4.js} +1 -1
  56. package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.kAWVN9j1.js → flowDiagram-DWJPFMVM.HU-eHspv.js} +1 -1
  57. package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.8r0w49-p.js → ganttDiagram-T4ZO3ILL.DHNhXijY.js} +1 -1
  58. package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.BDa7Bi1i.js → gitGraphDiagram-UUTBAWPF.DkISXcO3.js} +1 -1
  59. package/dist/docs/assets/chunks/{graph.BMPXHz_B.js → graph.CCV0fuRR.js} +1 -1
  60. package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.BmlcqewS.js → infoDiagram-42DDH7IO.bgILzOoc.js} +1 -1
  61. package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.CVSEQSul.js → ishikawaDiagram-UXIWVN3A.CuryXC0F.js} +1 -1
  62. package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.BpeWJ5n-.js → journeyDiagram-VCZTEJTY.BL1Pr-wu.js} +1 -1
  63. package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.DHbDXuxB.js → kanban-definition-6JOO6SKY.BbGjvk4l.js} +1 -1
  64. package/dist/docs/assets/chunks/{layout.CzrCDgkP.js → layout.C4PfdldS.js} +1 -1
  65. package/dist/docs/assets/chunks/{linear.HwBsflwN.js → linear.C3xD1T6X.js} +1 -1
  66. package/dist/docs/assets/chunks/{min.DqGHolT3.js → min.CzgRAQ9c.js} +1 -1
  67. package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.ZYGlOawh.js → mindmap-definition-QFDTVHPH.CA9rSWum.js} +1 -1
  68. package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.C2KRXlNR.js → pieDiagram-DEJITSTG.B8MprgJu.js} +1 -1
  69. package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.CHj3Qefp.js → quadrantDiagram-34T5L4WZ.DndDwbKT.js} +1 -1
  70. package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.B1L4Tf7k.js → requirementDiagram-MS252O5E.Zhfgwlnn.js} +1 -1
  71. package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.dNR2yi1B.js → sankeyDiagram-XADWPNL6.B6RRm6N5.js} +1 -1
  72. package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.BrvQ3C6m.js → sequenceDiagram-FGHM5R23.Bfmz-1PN.js} +1 -1
  73. package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.BtehEykA.js → stateDiagram-FHFEXIEX.gbrdNqgj.js} +1 -1
  74. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.DOOmulfQ.js +1 -0
  75. package/dist/docs/assets/chunks/{theme.BDHBZUkP.js → theme.gpWjytMh.js} +2 -2
  76. package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.Bn7nhqEN.js → timeline-definition-GMOUNBTQ.Bl1l7M1f.js} +1 -1
  77. package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.DKhc38sz.js → vennDiagram-DHZGUBPP.Dfle4U0d.js} +1 -1
  78. package/dist/docs/assets/chunks/{wardley-RL74JXVD.DOXQ0w8J.js → wardley-RL74JXVD.BJrCW6xc.js} +1 -1
  79. package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.Bbq5B2Ic.js → wardleyDiagram-NUSXRM2D.CM_4lmvZ.js} +1 -1
  80. package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.B77HE1K8.js → xychartDiagram-5P7HB3ND.CHT5X28R.js} +1 -1
  81. package/dist/docs/assets/{reference_cli.md.BsgDqYPh.js → reference_cli.md.GwugN3n-.js} +5 -5
  82. package/dist/docs/assets/reference_cli.md.GwugN3n-.lean.js +1 -0
  83. package/dist/docs/assets/{reference_skills.md.ClkMoQsV.js → reference_skills.md.C0guGcH0.js} +3 -3
  84. package/dist/docs/building-with-agents.html +35 -35
  85. package/dist/docs/deployment.html +35 -35
  86. package/dist/docs/evals.html +35 -35
  87. package/dist/docs/guides/agent-to-agent.html +35 -35
  88. package/dist/docs/guides/bitbucket.html +35 -35
  89. package/dist/docs/guides/cloud-agents.html +35 -35
  90. package/dist/docs/guides/convert-automation.html +35 -35
  91. package/dist/docs/guides/github.html +35 -35
  92. package/dist/docs/guides/gitlab.html +35 -35
  93. package/dist/docs/guides/grokbot-agents.html +35 -35
  94. package/dist/docs/guides/hooks.html +35 -35
  95. package/dist/docs/guides/improve.html +35 -35
  96. package/dist/docs/guides/jev.html +35 -35
  97. package/dist/docs/guides/mcp-oauth.html +35 -35
  98. package/dist/docs/guides/opentelemetry.html +35 -35
  99. package/dist/docs/guides/slack.html +35 -35
  100. package/dist/docs/guides/webhooks.html +35 -35
  101. package/dist/docs/hashmap.json +1 -1
  102. package/dist/docs/hillclimbing.html +35 -35
  103. package/dist/docs/index.html +35 -35
  104. package/dist/docs/llms-full.txt +20 -9
  105. package/dist/docs/quickstart.html +35 -35
  106. package/dist/docs/reference/agent-config.html +35 -35
  107. package/dist/docs/reference/artifacts.html +35 -35
  108. package/dist/docs/reference/channels.html +35 -35
  109. package/dist/docs/reference/cli.html +39 -39
  110. package/dist/docs/reference/cli.md +20 -9
  111. package/dist/docs/reference/connections.html +35 -35
  112. package/dist/docs/reference/evals.html +35 -35
  113. package/dist/docs/reference/extensions.html +35 -35
  114. package/dist/docs/reference/hooks.html +35 -35
  115. package/dist/docs/reference/http-api.html +35 -35
  116. package/dist/docs/reference/instructions.html +35 -35
  117. package/dist/docs/reference/playground.html +35 -35
  118. package/dist/docs/reference/project-layout.html +35 -35
  119. package/dist/docs/reference/prompt.html +35 -35
  120. package/dist/docs/reference/schedules.html +35 -35
  121. package/dist/docs/reference/sessions.html +35 -35
  122. package/dist/docs/reference/skills.html +38 -38
  123. package/dist/docs/reference/subagents.html +35 -35
  124. package/dist/docs/reference/tools.html +35 -35
  125. package/dist/docs/templates/agentic-owners.html +35 -35
  126. package/dist/docs/templates/grokbot-agents.html +35 -35
  127. package/dist/docs/templates/security-reviewer.html +35 -35
  128. package/dist/docs/templates/thermo-quality-review.html +35 -35
  129. package/dist/docs/templates/thermo-review.html +35 -35
  130. package/dist/docs/templates/triage.html +35 -35
  131. package/dist/docs/troubleshooting.html +35 -35
  132. package/dist/extensions/cursor-cloud-agents/extension.d.ts +14 -0
  133. package/dist/extensions/cursor-cloud-agents/extension.d.ts.map +1 -1
  134. package/dist/extensions/cursor-cloud-agents/extension.js +5 -0
  135. package/dist/extensions/cursor-cloud-agents/lib/watch.d.ts +17 -0
  136. package/dist/extensions/cursor-cloud-agents/lib/watch.d.ts.map +1 -0
  137. package/dist/extensions/cursor-cloud-agents/lib/watch.js +99 -0
  138. package/dist/extensions/cursor-cloud-agents/reminders/cloud-agent-stop-watch.d.ts +19 -0
  139. package/dist/extensions/cursor-cloud-agents/reminders/cloud-agent-stop-watch.d.ts.map +1 -0
  140. package/dist/extensions/cursor-cloud-agents/reminders/cloud-agent-stop-watch.js +71 -0
  141. package/dist/extensions/cursor-cloud-agents/skills/handoff.md +9 -5
  142. package/dist/extensions/cursor-cloud-agents/tools/cancel.d.ts.map +1 -1
  143. package/dist/extensions/cursor-cloud-agents/tools/cancel.js +3 -1
  144. package/dist/extensions/cursor-cloud-agents/tools/launch.d.ts.map +1 -1
  145. package/dist/extensions/cursor-cloud-agents/tools/launch.js +3 -2
  146. package/dist/extensions.d.ts +1 -1
  147. package/dist/extensions.js +1 -1
  148. package/dist/files-backends/cursor-hosted.d.ts +22 -83
  149. package/dist/files-backends/cursor-hosted.d.ts.map +1 -1
  150. package/dist/files-backends/cursor-hosted.js +46 -160
  151. package/dist/files.d.ts +9 -32
  152. package/dist/files.d.ts.map +1 -1
  153. package/dist/files.js +7 -32
  154. package/dist/internal/artifacts-store.d.ts +13 -25
  155. package/dist/internal/artifacts-store.d.ts.map +1 -1
  156. package/dist/internal/artifacts-store.js +25 -46
  157. package/dist/internal/cli-ax.d.ts +10 -17
  158. package/dist/internal/cli-ax.d.ts.map +1 -1
  159. package/dist/internal/cli-ax.js +87 -155
  160. package/dist/internal/cli-bitbucket.js +5 -5
  161. package/dist/internal/cli-deploy.d.ts +4 -1
  162. package/dist/internal/cli-deploy.d.ts.map +1 -1
  163. package/dist/internal/cli-deploy.js +117 -20
  164. package/dist/internal/cli-github.js +13 -13
  165. package/dist/internal/cli-gitlab.js +5 -5
  166. package/dist/internal/continuation-identity.d.ts +2 -0
  167. package/dist/internal/continuation-identity.d.ts.map +1 -1
  168. package/dist/internal/continuation-identity.js +4 -0
  169. package/dist/internal/conversation-mirror.d.ts +9 -38
  170. package/dist/internal/conversation-mirror.d.ts.map +1 -1
  171. package/dist/internal/conversation-mirror.js +62 -68
  172. package/dist/internal/cursor/account-mcp.d.ts +1 -1
  173. package/dist/internal/cursor/account-mcp.js +1 -1
  174. package/dist/internal/cursor/backend-client.js +1 -1
  175. package/dist/internal/cursor/github-credentials.js +3 -3
  176. package/dist/internal/cursor/hosted-bound-secrets.d.ts +6 -2
  177. package/dist/internal/cursor/hosted-bound-secrets.d.ts.map +1 -1
  178. package/dist/internal/cursor/hosted-bound-secrets.js +13 -2
  179. package/dist/internal/cursor/hosted-store-secrets.d.ts +13 -37
  180. package/dist/internal/cursor/hosted-store-secrets.d.ts.map +1 -1
  181. package/dist/internal/cursor/hosted-store-secrets.js +13 -37
  182. package/dist/internal/cursor/store-api-client.d.ts +17 -39
  183. package/dist/internal/cursor/store-api-client.d.ts.map +1 -1
  184. package/dist/internal/cursor/store-api-client.js +15 -37
  185. package/dist/internal/cursor-deployment-relay.js +3 -3
  186. package/dist/internal/cursor-event-relay.js +1 -1
  187. package/dist/internal/cursor-relay-core.d.ts +1 -1
  188. package/dist/internal/cursor-relay-core.d.ts.map +1 -1
  189. package/dist/internal/deploy-client.d.ts +55 -63
  190. package/dist/internal/deploy-client.d.ts.map +1 -1
  191. package/dist/internal/deploy-client.js +48 -28
  192. package/dist/internal/discovery/agent.d.ts +1 -1
  193. package/dist/internal/discovery/agent.d.ts.map +1 -1
  194. package/dist/internal/discovery/agent.js +4 -0
  195. package/dist/internal/discovery/extensions.d.ts +2 -1
  196. package/dist/internal/discovery/extensions.d.ts.map +1 -1
  197. package/dist/internal/discovery/extensions.js +11 -1
  198. package/dist/internal/discovery/project.d.ts.map +1 -1
  199. package/dist/internal/discovery/project.js +1 -0
  200. package/dist/internal/distribution.d.ts +2 -2
  201. package/dist/internal/distribution.d.ts.map +1 -1
  202. package/dist/internal/distribution.js +2 -2
  203. package/dist/internal/docs-site.js +3 -3
  204. package/dist/internal/eval-run-store.js +8 -8
  205. package/dist/internal/framework-file-storage.d.ts +10 -34
  206. package/dist/internal/framework-file-storage.d.ts.map +1 -1
  207. package/dist/internal/framework-file-storage.js +12 -39
  208. package/dist/internal/framework-storage-selection.d.ts +10 -46
  209. package/dist/internal/framework-storage-selection.d.ts.map +1 -1
  210. package/dist/internal/framework-storage-selection.js +15 -64
  211. package/dist/internal/github-fanout.js +2 -2
  212. package/dist/internal/handleAgentServeTrigger.d.ts +5 -8
  213. package/dist/internal/handleAgentServeTrigger.d.ts.map +1 -1
  214. package/dist/internal/handleAgentServeTrigger.js +5 -8
  215. package/dist/internal/host-files.js +6 -9
  216. package/dist/internal/host-platforms.js +5 -5
  217. package/dist/internal/hosted-catch.d.ts +3 -2
  218. package/dist/internal/hosted-catch.d.ts.map +1 -1
  219. package/dist/internal/hosted-catch.js +27 -9
  220. package/dist/internal/hosted-delivery-protocol.d.ts +31 -8
  221. package/dist/internal/hosted-delivery-protocol.d.ts.map +1 -1
  222. package/dist/internal/hosted-delivery-protocol.js +102 -1
  223. package/dist/internal/hosted-delivery.d.ts.map +1 -1
  224. package/dist/internal/hosted-delivery.js +32 -12
  225. package/dist/internal/hosted-execution-diag.d.ts +13 -24
  226. package/dist/internal/hosted-execution-diag.d.ts.map +1 -1
  227. package/dist/internal/hosted-execution-diag.js +11 -20
  228. package/dist/internal/hosted-execution-flush.d.ts +22 -10
  229. package/dist/internal/hosted-execution-flush.d.ts.map +1 -1
  230. package/dist/internal/hosted-execution-flush.js +45 -9
  231. package/dist/internal/hosted-managed-automation.js +5 -5
  232. package/dist/internal/hosting.d.ts +5 -10
  233. package/dist/internal/hosting.d.ts.map +1 -1
  234. package/dist/internal/hosting.js +5 -10
  235. package/dist/internal/legacy-command-guard.d.ts +1 -4
  236. package/dist/internal/legacy-command-guard.d.ts.map +1 -1
  237. package/dist/internal/legacy-command-guard.js +2 -11
  238. package/dist/internal/listen-port.js +1 -1
  239. package/dist/internal/local-control-plane.js +6 -6
  240. package/dist/internal/logs-client.d.ts +20 -1
  241. package/dist/internal/logs-client.d.ts.map +1 -1
  242. package/dist/internal/logs-client.js +89 -1
  243. package/dist/internal/mcp-endpoint.js +1 -1
  244. package/dist/internal/otel/collector.js +1 -1
  245. package/dist/internal/otel/runtime.js +13 -13
  246. package/dist/internal/platform-schedule-sync.js +2 -2
  247. package/dist/internal/playground/toolchain.js +6 -6
  248. package/dist/internal/process-memory-telemetry.js +2 -2
  249. package/dist/internal/reminder-runner.d.ts +8 -3
  250. package/dist/internal/reminder-runner.d.ts.map +1 -1
  251. package/dist/internal/reminder-runner.js +51 -52
  252. package/dist/internal/resolve-prod-target.d.ts +1 -12
  253. package/dist/internal/resolve-prod-target.d.ts.map +1 -1
  254. package/dist/internal/resolve-prod-target.js +2 -32
  255. package/dist/internal/resolved-connections.js +8 -8
  256. package/dist/internal/run-client.d.ts +4 -3
  257. package/dist/internal/run-client.d.ts.map +1 -1
  258. package/dist/internal/run-client.js +98 -61
  259. package/dist/internal/runtime-dispatch-runner.d.ts +1 -0
  260. package/dist/internal/runtime-dispatch-runner.d.ts.map +1 -1
  261. package/dist/internal/runtime-dispatch-runner.js +7 -1
  262. package/dist/internal/schedule-runner.js +1 -1
  263. package/dist/internal/sdk-runner.d.ts +4 -0
  264. package/dist/internal/sdk-runner.d.ts.map +1 -1
  265. package/dist/internal/sdk-runner.js +37 -22
  266. package/dist/internal/server.d.ts +2 -0
  267. package/dist/internal/server.d.ts.map +1 -1
  268. package/dist/internal/server.js +39 -38
  269. package/dist/internal/session-engine.d.ts +31 -44
  270. package/dist/internal/session-engine.d.ts.map +1 -1
  271. package/dist/internal/session-engine.js +67 -83
  272. package/dist/internal/session-run-log.d.ts +10 -24
  273. package/dist/internal/session-run-log.d.ts.map +1 -1
  274. package/dist/internal/session-run-log.js +13 -27
  275. package/dist/internal/sessions-client.d.ts.map +1 -1
  276. package/dist/internal/sessions-client.js +6 -3
  277. package/dist/internal/skills-sync.d.ts +3 -5
  278. package/dist/internal/skills-sync.d.ts.map +1 -1
  279. package/dist/internal/skills-sync.js +3 -5
  280. package/dist/internal/start-log-store.d.ts +7 -18
  281. package/dist/internal/start-log-store.d.ts.map +1 -1
  282. package/dist/internal/start-log-store.js +47 -24
  283. package/dist/internal/storage-coordinator.d.ts +7 -10
  284. package/dist/internal/storage-coordinator.d.ts.map +1 -1
  285. package/dist/internal/storage-coordinator.js +18 -20
  286. package/dist/internal/storage-roles.d.ts +5 -0
  287. package/dist/internal/storage-roles.d.ts.map +1 -1
  288. package/dist/internal/store-api-protocol.d.ts +12 -33
  289. package/dist/internal/store-api-protocol.d.ts.map +1 -1
  290. package/dist/internal/store-api-protocol.js +6 -22
  291. package/dist/internal/store-mirror.d.ts +4 -5
  292. package/dist/internal/store-mirror.d.ts.map +1 -1
  293. package/dist/internal/store-mirror.js +6 -8
  294. package/dist/internal/turn-lease-store.d.ts +12 -5
  295. package/dist/internal/turn-lease-store.d.ts.map +1 -1
  296. package/dist/internal/turn-lease-store.js +61 -8
  297. package/dist/internal/v2-hosting.d.ts +4 -7
  298. package/dist/internal/v2-hosting.d.ts.map +1 -1
  299. package/dist/internal/v2-hosting.js +4 -7
  300. package/dist/internal/workspace-sync.d.ts +3 -6
  301. package/dist/internal/workspace-sync.d.ts.map +1 -1
  302. package/dist/internal/workspace-sync.js +3 -6
  303. package/dist/internal/workspace.d.ts +10 -16
  304. package/dist/internal/workspace.d.ts.map +1 -1
  305. package/dist/internal/workspace.js +9 -14
  306. package/dist/memory.d.ts +17 -43
  307. package/dist/memory.d.ts.map +1 -1
  308. package/dist/memory.js +34 -80
  309. package/dist/playground/assets/index-DPKLl4C_.css +1 -0
  310. package/dist/playground/assets/index-MijLHTbB.js +71 -0
  311. package/dist/playground/index.html +2 -2
  312. package/dist/storage-backends/cursor-hosted-v2.d.ts +8 -36
  313. package/dist/storage-backends/cursor-hosted-v2.d.ts.map +1 -1
  314. package/dist/storage-backends/cursor-hosted-v2.js +9 -37
  315. package/dist/storage-backends/cursor-hosted.d.ts +17 -30
  316. package/dist/storage-backends/cursor-hosted.d.ts.map +1 -1
  317. package/dist/storage-backends/cursor-hosted.js +14 -27
  318. package/dist/storage-protocol.d.ts +13 -38
  319. package/dist/storage-protocol.d.ts.map +1 -1
  320. package/dist/storage-protocol.js +14 -39
  321. package/dist/types.d.ts +29 -30
  322. package/dist/types.d.ts.map +1 -1
  323. package/docs/reference/cli.md +20 -9
  324. package/package.json +1 -1
  325. package/templates/pr-autofixer/bot/instructions.md +3 -3
  326. package/dist/docs/assets/chunks/@localSearchIndexroot.Bq-pxRXm.js +0 -1
  327. package/dist/docs/assets/chunks/channel.DCU8W1RP.js +0 -1
  328. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.DwpXsM06.js +0 -1
  329. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.DwpXsM06.js +0 -1
  330. package/dist/docs/assets/chunks/clone.DH6Mx2zB.js +0 -1
  331. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.kzD0-U89.js +0 -1
  332. package/dist/docs/assets/reference_cli.md.BsgDqYPh.lean.js +0 -1
  333. package/dist/playground/assets/index-6BbTPnaT.css +0 -1
  334. package/dist/playground/assets/index-CI7FAmOP.js +0 -71
  335. /package/dist/docs/assets/{reference_skills.md.ClkMoQsV.lean.js → reference_skills.md.C0guGcH0.lean.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"session-engine.d.ts","sourceRoot":"","sources":["../../src/internal/session-engine.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AA0BxF,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAEtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAIxB,KAAK,cAAc,EAEnB,KAAK,WAAW,EAGhB,KAAK,qBAAqB,EAK1B,KAAK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AC9B,aAAa,CAgBf"}
@@ -48,7 +48,7 @@ import { mergeCloudOptions, resolveSessionRuntime } from "./cloud-merge.js";
48
48
  import { applyCloudUsageToEvents, cloudSdkAgentIdFromEvents, isUnpricedCompletedTurn, mapSdkTokenUsage, } from "./cloud-turn-cost.js";
49
49
  import { resolveConnectionEnvTemplates } from "./connection-env.js";
50
50
  import { applyAgentContinuationDefaults, channelContinuationIdentity, httpContinuationIdentity, } from "./continuation-channel.js";
51
- import { continuationSource, resolveV2Key, V2EngineError } from "./continuation-identity.js";
51
+ import { continuationSource, isOneShotContinuationKey, resolveV2Key, V2EngineError, } from "./continuation-identity.js";
52
52
  import { describeError, describeErrorCode } from "./describe-error.js";
53
53
  import { isDevMode } from "./dev-mode.js";
54
54
  import { EventLogStore } from "./event-log.js";
@@ -213,7 +213,7 @@ export class SessionEngine {
213
213
  var _a, _b, _c, _d, _e;
214
214
  /** In-flight lazy restores, deduped per channel + continuation key. */
215
215
  this.restoreInFlight = new Map();
216
- /** In-flight authored files → Agent Store syncs (see syncToCloudStore). */
216
+ /** In-flight authored-file syncs for cloud turns. */
217
217
  this.cloudSyncs = new Map();
218
218
  this.channelsById = new Map();
219
219
  /** Sessions with a turn being admitted (before the run promise exists). */
@@ -297,7 +297,7 @@ export class SessionEngine {
297
297
  this.askDedupe = new SlackAskDedupeStore(join(options.stateRoot, "slack-asks"));
298
298
  this.turnLeases = new TurnLeaseStore(join(options.stateRoot, "turn-leases"));
299
299
  this.outbox = new TurnOutbox(join(options.stateRoot, "outbox"));
300
- this.logs = new EventLogStore(sessionId => this.sessions.eventFilePath(sessionId), (sessionId, error) => this.logger(`[agent-sdk] failed to persist events for ${sessionId}: ${describeError(error)}`));
300
+ this.logs = new EventLogStore(sessionId => this.sessions.eventFilePath(sessionId), (sessionId, error) => this.logger(`[bdk] failed to persist events for ${sessionId}: ${describeError(error)}`));
301
301
  // Framework session state (records, event chunks, continuations) is
302
302
  // mirrored to whatever this selects; see framework-storage-selection.ts
303
303
  // for why the choice does not belong to the agent author.
@@ -335,9 +335,9 @@ export class SessionEngine {
335
335
  config: options.project.artifacts,
336
336
  sink: managedV2Files === null || managedV2Files === void 0 ? void 0 : managedV2Files(),
337
337
  // v1 and self-hosted v2 still evict oldest-updated rows past max.
338
- // Hosted v2 does not: the installation file store keeps every row,
339
- // and tag must not list the prefix. Read per tag so a generation
340
- // env bound after serve start takes effect.
338
+ // Managed v2 leaves retention to the platform, so tagging never scans
339
+ // the full artifact set. Resolve this for each tag so hosting changes
340
+ // take effect without recreating the store.
341
341
  enforceCap: () => {
342
342
  const hosting = resolveAgentV2Hosting({
343
343
  architecture: options.project.agent.architecture,
@@ -644,8 +644,7 @@ export class SessionEngine {
644
644
  if (isDuringHostedAdmission()) {
645
645
  // Only sends that bypassed the admission capture stub (typically a
646
646
  // startup-captured `onStart` send) reach the engine inside the
647
- // admission window; running one would leak an invisible local session
648
- // on a sessionless pod.
647
+ // admission window; running one would create an invisible local session.
649
648
  throw new HostedAdmissionLocalSendError();
650
649
  }
651
650
  if (options.clearCloudOverride === true && options.cloud !== undefined) {
@@ -662,7 +661,7 @@ export class SessionEngine {
662
661
  }
663
662
  const cKey = resolveV2Key(identity, options);
664
663
  sendOptions = Object.assign(Object.assign({}, options), { continuationToken: cKey });
665
- skipContinuationLookup = cKey.startsWith("evt:");
664
+ skipContinuationLookup = isOneShotContinuationKey(cKey);
666
665
  }
667
666
  const auth = (_c = sendOptions.auth) !== null && _c !== void 0 ? _c : null;
668
667
  let existing = skipContinuationLookup || sendOptions.continuationToken === undefined
@@ -678,9 +677,9 @@ export class SessionEngine {
678
677
  if (existing === undefined && sendOptions.hostedSessionId !== undefined) {
679
678
  const byId = yield this.getOrRestoreSession(sendOptions.hostedSessionId);
680
679
  if (byId !== undefined) {
681
- // evt: skips the mailbox index; same hostedSessionId is a Temporal
682
- // retry. cont:session:<id> is the explicit CP resume (keep the
683
- // original key so a PR lane stays addressable by its webhooks).
680
+ // The same hostedSessionId signals a delivery retry. An explicit
681
+ // resume keeps the original key so a PR lane remains addressable by
682
+ // its webhooks.
684
683
  if (byId.continuationKey !== sendOptions.continuationToken &&
685
684
  ((_a = sendOptions.mailboxContinuation) === null || _a === void 0 ? void 0 : _a.key) !==
686
685
  hostedSessionResumeKey(sendOptions.hostedSessionId)) {
@@ -1195,9 +1194,8 @@ export class SessionEngine {
1195
1194
  if (this.turnAborts.get(sessionId) === abort) {
1196
1195
  this.turnAborts.delete(sessionId);
1197
1196
  }
1198
- // Failed/cancelled owners must not start a coalesced successor.
1199
- // Hosted execute would then 503 and Temporal/FIFO would re-run the
1200
- // same follow-ups as full deliveries.
1197
+ // Failed or cancelled owners must not start a coalesced successor;
1198
+ // managed delivery retries the same follow-ups.
1201
1199
  if (wasCurrent && !abort.signal.aborted && outcome.status === "finished") {
1202
1200
  const drain = this.drainCoalescedFollowups(sessionId).catch(error => {
1203
1201
  this.logger(`[session] coalesce drain failed for ${sessionId}: ${describeError(error)}`);
@@ -1629,11 +1627,11 @@ export class SessionEngine {
1629
1627
  // that cannot warm resolves cleanly, and logging success there would
1630
1628
  // tell an operator the workspace is hot when nothing touched it.
1631
1629
  this.logger(outcome.warmed
1632
- ? `[agent-sdk] warmed ${workspaceDir} in ${Date.now() - startedAt}ms`
1633
- : `[agent-sdk] did not warm ${workspaceDir}: ${outcome.reason}`);
1630
+ ? `[bdk] warmed ${workspaceDir} in ${Date.now() - startedAt}ms`
1631
+ : `[bdk] did not warm ${workspaceDir}: ${outcome.reason}`);
1634
1632
  }
1635
1633
  catch (error) {
1636
- this.logger(`[agent-sdk] could not warm ${workspaceDir}: ${describeError(error)}`);
1634
+ this.logger(`[bdk] could not warm ${workspaceDir}: ${describeError(error)}`);
1637
1635
  }
1638
1636
  });
1639
1637
  }
@@ -1668,7 +1666,7 @@ export class SessionEngine {
1668
1666
  this.queueDispatch(sessionId, event, eventContext);
1669
1667
  }
1670
1668
  catch (error) {
1671
- this.logger(`[agent-sdk] failed to record event for ${sessionId}: ${describeError(error)}`);
1669
+ this.logger(`[bdk] failed to record event for ${sessionId}: ${describeError(error)}`);
1672
1670
  }
1673
1671
  };
1674
1672
  // Read by closure, so the mapper still sees it while draining after the
@@ -1878,12 +1876,8 @@ export class SessionEngine {
1878
1876
  });
1879
1877
  }
1880
1878
  /**
1881
- * Sync authored skills onto the Agent Store at `skills/<name>/…` (hosted)
1882
- * or `agent-serve/<agent>/skills/<name>/…` (personal-key local+cloud)
1883
- * before the first cloud prompt, so `--agent-store-skills-dir` and the
1884
- * first-turn S3 scan can discover them. False when the sync fails: the
1885
- * turn then runs without store skills rather than pointing discovery at
1886
- * paths that do not exist.
1879
+ * Sync authored skills to cloud-turn storage before the first prompt.
1880
+ * Returns false on failure so the turn runs without unavailable skills.
1887
1881
  */
1888
1882
  ensureCloudSkillsSynced(store) {
1889
1883
  const skills = this.project.agent.skills;
@@ -1895,10 +1889,7 @@ export class SessionEngine {
1895
1889
  }));
1896
1890
  }
1897
1891
  /**
1898
- * Sync `agent/sandbox/workspace/**` seeds onto the Agent Store at
1899
- * `workspace/…` (hosted) or `agent-serve/<agent>/workspace/…`
1900
- * (personal-key local+cloud) before the first cloud prompt, which names
1901
- * the mounted directory (see buildCloudWorkspaceSection).
1892
+ * Sync authored workspace seeds before the first cloud prompt.
1902
1893
  */
1903
1894
  ensureCloudWorkspaceSynced(store) {
1904
1895
  const seedFiles = this.project.agent.seedFiles;
@@ -1911,7 +1902,7 @@ export class SessionEngine {
1911
1902
  /**
1912
1903
  * Replace this session's store prefix with the pending `workspaceFiles`.
1913
1904
  * Undefined when the write did not land; the prompt must not name the
1914
- * mount, matching ensureCloudWorkspaceSynced.
1905
+ * directory, matching ensureCloudWorkspaceSynced.
1915
1906
  */
1916
1907
  syncCloudSessionWorkspaceFiles(store, sessionId, files) {
1917
1908
  return __awaiter(this, void 0, void 0, function* () {
@@ -1960,15 +1951,10 @@ export class SessionEngine {
1960
1951
  }
1961
1952
  /**
1962
1953
  * With files authored, every first cloud turn re-copies the authored
1963
- * bytes and the memo only dedupes concurrent first turns. The mount is
1964
- * writable from cloud sessions, so a once-per-process copy would let one
1965
- * session's edits masquerade as agent definition for every later session
1966
- * until the engine restarts; re-syncing keeps the store true to discovery
1967
- * the same way local materialization always rewrites skills. Without
1968
- * authored files the sync is best-effort stale cleanup and one attempt
1969
- * per process is enough, success or not — a deployment without the files
1970
- * surface must not fail and log on every new session for a feature it
1971
- * does not use.
1954
+ * bytes; the memo only dedupes concurrent first turns. Cloud sessions can
1955
+ * edit their view, so re-syncing keeps later sessions true to discovery.
1956
+ * Without authored files, one best-effort cleanup attempt per process is
1957
+ * enough.
1972
1958
  */
1973
1959
  syncToCloudStore(surface, store, authored, run) {
1974
1960
  const inFlight = this.cloudSyncs.get(surface);
@@ -1988,11 +1974,9 @@ export class SessionEngine {
1988
1974
  return sync;
1989
1975
  }
1990
1976
  /**
1991
- * Hosted deployments own the deployment store. Local `serve`/`run` with
1992
- * a personal API key writes into the USER store under `agent-serve/`.
1993
- * A persistent deployment's version container has no cloud store at all:
1994
- * its state directory is the durable copy, and its service-account key
1995
- * must not be mistaken for a personal one.
1977
+ * Managed ephemeral deployments use deployment-scoped storage. Local cloud
1978
+ * turns use user-scoped storage. Persistent managed deployments use their
1979
+ * durable state directory instead.
1996
1980
  */
1997
1981
  cloudStore() {
1998
1982
  const v2Hosting = resolveAgentV2Hosting({
@@ -2116,12 +2100,10 @@ export class SessionEngine {
2116
2100
  turnPrompt = `${contextBlock}\n\n${prompt}`;
2117
2101
  }
2118
2102
  if (runtime === "cloud") {
2119
- // Cloud VMs have no materialized workspace: ship the full context,
2120
- // including agent tool script bodies. Authored skills and workspace
2121
- // seeds land on the store mount (skills for native discovery, seeds
2122
- // for the model's file tools), per-turn workspaceFiles land under
2123
- // the session prefix, and on hosted deployments the shared memory
2124
- // journal is on that mount too — say where. When the turn carries
2103
+ // Cloud turns have no materialized workspace, so ship the full context,
2104
+ // including agent tool script bodies. Authored skills, workspace seeds,
2105
+ // per-turn workspaceFiles, and shared memory use managed paths that the
2106
+ // prompt names when available. When the turn carries
2125
2107
  // the session-bound server-tool MCP endpoint, the preamble catalogs
2126
2108
  // server tools under that MCP server name *before* the agent-tool
2127
2109
  // "write the script if missing" recipe, so a model told to "use
@@ -2148,7 +2130,7 @@ export class SessionEngine {
2148
2130
  this.ensureCloudSkillsSynced(store),
2149
2131
  this.ensureCloudWorkspaceSynced(store),
2150
2132
  ]);
2151
- // Only name the mount when the bytes landed; a failed sync must
2133
+ // Only name the directory when the bytes landed; a failed sync must
2152
2134
  // not send the model looking for files that are not there.
2153
2135
  if (seedsSynced && agent.seedFiles.length > 0) {
2154
2136
  sections.push(buildCloudWorkspaceSection(`${store.mountPath}/${store.workspacePrefix}`));
@@ -2174,7 +2156,7 @@ export class SessionEngine {
2174
2156
  }
2175
2157
  }
2176
2158
  else if (isFirstTurn && runtime === "local" && authoredRoot) {
2177
- // The harness reports no path for a root it never mounted.
2159
+ // The harness reports no path for a root it never materialized.
2178
2160
  turnPrompt = `<user_info>\nWorkspace Path: /\n</user_info>\n\n${turnPrompt}`;
2179
2161
  }
2180
2162
  // A virtual root has no scaffold dir either, so its catalog carries the
@@ -3197,8 +3179,7 @@ export class SessionEngine {
3197
3179
  throw error;
3198
3180
  }
3199
3181
  // A session's harness cwd can be a path the serving process cannot
3200
- // create (e.g. an absolute `local.cwd` like /repo on a hosted pod
3201
- // where the sandboxed harness would have made it). Read-effect calls
3182
+ // create in a managed runtime. Read-effect calls
3202
3183
  // fall back to a scratch workspace instead of failing: tools that
3203
3184
  // resolve their state from the session identity (VFS mounts) never
3204
3185
  // touch ctx.workspaceDir. Advertised passthroughs are relocatable by
@@ -3478,7 +3459,7 @@ export class SessionEngine {
3478
3459
  const next = chain
3479
3460
  .then(() => this.dispatchEvent(sessionId, event, context))
3480
3461
  .catch(error => {
3481
- this.logger(`[agent-sdk] event dispatch failed for ${sessionId}: ${describeError(error)}`);
3462
+ this.logger(`[bdk] event dispatch failed for ${sessionId}: ${describeError(error)}`);
3482
3463
  })
3483
3464
  .then(() => {
3484
3465
  var _a;
@@ -3528,7 +3509,7 @@ export class SessionEngine {
3528
3509
  yield handler(event, channelCtx, sessionCtx);
3529
3510
  }
3530
3511
  catch (error) {
3531
- this.logger(`[agent-sdk] channel "${record.channelId}" handler for ${event.type} threw: ${describeError(error)}`);
3512
+ this.logger(`[bdk] channel "${record.channelId}" handler for ${event.type} threw: ${describeError(error)}`);
3532
3513
  }
3533
3514
  }
3534
3515
  if (context !== undefined) {
@@ -3564,7 +3545,7 @@ export class SessionEngine {
3564
3545
  }, channelState, stateRoot: this.stateRoot }));
3565
3546
  }
3566
3547
  catch (error) {
3567
- this.logger(`[agent-sdk] hook "${hook.name}" handler for ${event.type} threw: ${describeError(error)}`);
3548
+ this.logger(`[bdk] hook "${hook.name}" handler for ${event.type} threw: ${describeError(error)}`);
3568
3549
  }
3569
3550
  }
3570
3551
  }
@@ -3583,21 +3564,24 @@ export class SessionEngine {
3583
3564
  // ==========================================================================
3584
3565
  /**
3585
3566
  * Wait until everything this session has already emitted is durably
3586
- * mirrored: its dispatch chain first (the chain's tail runs the turn-end
3587
- * storage flush, so the record carries the boundary event's handler
3588
- * mutations), then the storage delivery queue. Hosted v2 awaits this
3589
- * before the execution reply — the pod can be parked the moment the
3590
- * reply lands, and an unflushed session record would strand a
3591
- * conversation whose blobs persisted but whose record (which selects the
3592
- * conversation to hydrate) never reached the sink. No-op without a
3593
- * storage mirror.
3567
+ * mirrored: the runner's conversation mirror write, then its dispatch
3568
+ * chain (the chain's tail runs the turn-end storage flush, so the record
3569
+ * carries the boundary event's handler mutations), then the storage
3570
+ * delivery queue. Managed hosting awaits this before the execution reply
3571
+ * because the process may stop as soon as the reply lands. An unflushed
3572
+ * record would strand an otherwise persisted conversation. The storage
3573
+ * steps are no-ops without a storage mirror.
3594
3574
  *
3595
3575
  * Under a debounced event policy the turn-end flush is a timer, not the
3596
- * chain's tail, so flush explicitly before waiting on the queue; a no-op
3597
- * when the chain already flushed.
3576
+ * chain's tail, so flush explicitly before waiting on the queue. The flush
3577
+ * is exact: turn-end flushes skip records where only `turnCount` /
3578
+ * `updatedAt` moved, and close() may never run to repair them, which would
3579
+ * leave the durable turn count stale.
3598
3580
  */
3599
3581
  drainSessionDurability(sessionId) {
3600
3582
  return __awaiter(this, void 0, void 0, function* () {
3583
+ var _a, _b;
3584
+ yield (_b = (_a = this.runner).drainConversation) === null || _b === void 0 ? void 0 : _b.call(_a, sessionId);
3601
3585
  if (this.storage === undefined) {
3602
3586
  return;
3603
3587
  }
@@ -3605,7 +3589,7 @@ export class SessionEngine {
3605
3589
  if (chain !== undefined) {
3606
3590
  yield chain.catch(() => { });
3607
3591
  }
3608
- this.storage.flushSession(sessionId);
3592
+ this.storage.flushSessionExact(sessionId);
3609
3593
  yield this.storage.whenIdle();
3610
3594
  });
3611
3595
  }
@@ -3645,9 +3629,9 @@ export class SessionEngine {
3645
3629
  * schedule/task sessions, other callers). The route auth chain still
3646
3630
  * gates who may call this at all.
3647
3631
  *
3648
- * When the project uses `cursorHostedStorage`, prefers durable Bugbot rows
3649
- * (merged with any newer local records not flushed yet). Falls back to the
3650
- * local `--state-root` store when the sink is unavailable.
3632
+ * When the project uses `cursorHostedStorage`, prefers Cursor-managed
3633
+ * durable records, merged with any newer local records not flushed yet.
3634
+ * Falls back to the local `--state-root` store when the sink is unavailable.
3651
3635
  */
3652
3636
  listSessions(caller, options) {
3653
3637
  return __awaiter(this, void 0, void 0, function* () {
@@ -3711,7 +3695,7 @@ export class SessionEngine {
3711
3695
  }
3712
3696
  /**
3713
3697
  * Same as {@link listSessions}, plus which store answered
3714
- * (`cursor-hosted` = durable DB via the control-plane proxy; `local` =
3698
+ * (`cursor-hosted` = Cursor-managed durable storage; `local` =
3715
3699
  * `--state-root`).
3716
3700
  */
3717
3701
  listSessionsWithSource(caller, options) {
@@ -3728,7 +3712,7 @@ export class SessionEngine {
3728
3712
  };
3729
3713
  }
3730
3714
  catch (error) {
3731
- this.logger(`[agent-sdk] cursor-hosted session list failed; falling back to local: ${describeError(error)}`);
3715
+ this.logger(`[bdk] cursor-hosted session list failed; falling back to local: ${describeError(error)}`);
3732
3716
  }
3733
3717
  }
3734
3718
  const records = yield this.sessions.list();
@@ -3789,7 +3773,7 @@ export class SessionEngine {
3789
3773
  }
3790
3774
  }
3791
3775
  catch (error) {
3792
- this.logger(`[agent-sdk] cursor-hosted newest-session lookup failed; falling back to the full list: ${describeError(error)}`);
3776
+ this.logger(`[bdk] cursor-hosted newest-session lookup failed; falling back to the full list: ${describeError(error)}`);
3793
3777
  }
3794
3778
  }
3795
3779
  const listed = yield this.listSessionsWithSource(caller, options);
@@ -3988,7 +3972,7 @@ export class SessionEngine {
3988
3972
  }
3989
3973
  const work = this.runCloudTurnCostBackfill(sessionId)
3990
3974
  .catch(error => {
3991
- this.logger(`[agent-sdk] cloud cost backfill failed for ${sessionId}: ${describeError(error)}`);
3975
+ this.logger(`[bdk] cloud cost backfill failed for ${sessionId}: ${describeError(error)}`);
3992
3976
  })
3993
3977
  .finally(() => {
3994
3978
  this.cloudCostBackfill.delete(sessionId);
@@ -4137,7 +4121,7 @@ export class SessionEngine {
4137
4121
  yield this.runBulkRestore(storage, policy);
4138
4122
  }
4139
4123
  catch (error) {
4140
- this.logger(`[agent-sdk] session restore failed: ${describeError(error)}`);
4124
+ this.logger(`[bdk] session restore failed: ${describeError(error)}`);
4141
4125
  }
4142
4126
  });
4143
4127
  }
@@ -4178,7 +4162,7 @@ export class SessionEngine {
4178
4162
  return { record, events };
4179
4163
  }
4180
4164
  catch (error) {
4181
- this.logger(`[agent-sdk] failed to restore session ${record.sessionId}: ${describeError(error)}`);
4165
+ this.logger(`[bdk] failed to restore session ${record.sessionId}: ${describeError(error)}`);
4182
4166
  return undefined;
4183
4167
  }
4184
4168
  })));
@@ -4193,7 +4177,7 @@ export class SessionEngine {
4193
4177
  const bytes = Buffer.byteLength(JSON.stringify(item.record), "utf8") +
4194
4178
  (ndjson === undefined ? 0 : Buffer.byteLength(ndjson, "utf8"));
4195
4179
  if (bytes > budget) {
4196
- this.logger(`[agent-sdk] session restore stopped at the ${policy.maxTotalBytes}-byte budget after ${restored} session(s); remaining sessions restore lazily on resume`);
4180
+ this.logger(`[bdk] session restore stopped at the ${policy.maxTotalBytes}-byte budget after ${restored} session(s); remaining sessions restore lazily on resume`);
4197
4181
  break outer;
4198
4182
  }
4199
4183
  try {
@@ -4202,19 +4186,19 @@ export class SessionEngine {
4202
4186
  restored += 1;
4203
4187
  }
4204
4188
  catch (error) {
4205
- this.logger(`[agent-sdk] failed to restore session ${item.record.sessionId}: ${describeError(error)}`);
4189
+ this.logger(`[bdk] failed to restore session ${item.record.sessionId}: ${describeError(error)}`);
4206
4190
  }
4207
4191
  }
4208
4192
  }
4209
4193
  if (restored > 0) {
4210
- this.logger(`[agent-sdk] restored ${restored} session(s) from storage`);
4194
+ this.logger(`[bdk] restored ${restored} session(s) from storage`);
4211
4195
  }
4212
4196
  });
4213
4197
  }
4214
4198
  /**
4215
4199
  * Local session lookup with lazy restore by session id.
4216
4200
  *
4217
- * `GET /v1/sessions` (cursor-hosted) can list durable rows that were not
4201
+ * `GET /v1/sessions` (cursor-hosted) can list durable records that were not
4218
4202
  * bulk-restored into `--state-root` (restore caps, `restore: "off"`, or
4219
4203
  * eval Open-trace by id). Events/stream/follow-up must materialize that
4220
4204
  * one session before answering, or the playground shows an empty timeline
@@ -4299,11 +4283,11 @@ export class SessionEngine {
4299
4283
  // The durable record's bookkeeping may lag the event stream (the
4300
4284
  // storage coordinator skips volatile-only record rewrites, bounded).
4301
4285
  // New turnIds mint from turnCount, so clamp it to the highest turn the
4302
- // stream already used — otherwise a replaced pod re-mints turn_N ids
4286
+ // stream already used; otherwise a replacement process re-mints turn_N ids
4303
4287
  // and trajectory/cost grouping merges unrelated turns.
4304
4288
  const restored = withTurnCountClampedToEvents(record, events);
4305
4289
  yield this.materializeSession(restored, eventsNdjson(events));
4306
- this.logger(`[agent-sdk] lazily restored session ${restored.sessionId} from storage`);
4290
+ this.logger(`[bdk] lazily restored session ${restored.sessionId} from storage`);
4307
4291
  return restored;
4308
4292
  });
4309
4293
  }
@@ -1,22 +1,9 @@
1
1
  /**
2
- * Durable hosted-execution run log on the framework file store. **v2 only.**
2
+ * Durable execution history for hosted architecture-v2 sessions.
3
3
  *
4
- * One JSON document per factory session (`ses_…`), with per-execution
5
- * entries inside. The later customer UI is session-scoped ("why did this
6
- * session fail?") so a single GET is the read path; continuations are FIFO
7
- * so last-write-wins merge is safe. Guest-local `hosted-execution.json` and
8
- * factorydb `last_error` are lossy: the on-disk diag dies with the pod, and
9
- * the session row only keeps the first 1024 characters of a generic HTTP
10
- * 500.
11
- *
12
- * Process death: persist `running` at turn start so SIGKILL / OOM still
13
- * leaves a durable leftover. `uncaughtException` / SIGTERM flush the same
14
- * session key with `processDeath: true` and the real throw. Soft-fail on
15
- * persist so a store outage never changes the hosted-execution HTTP reply.
16
- *
17
- * Same flush moments as `hosted-execution.json` and the start.log tee —
18
- * see `hosted-execution-flush.ts`. Keys:
19
- * {@link agentSdkStorageKeys.sessionRun}.
4
+ * Entries are session-scoped and bounded. The host writes a running entry at
5
+ * turn start, then records completion or process failure. Persistence errors
6
+ * never change the hosted execution response.
20
7
  */
21
8
  import type { FileSink } from "../files.js";
22
9
  import type { AgentProject } from "../types.js";
@@ -64,7 +51,7 @@ export type SessionRunLastFailure = {
64
51
  error?: SessionRunLogError;
65
52
  processDeath?: boolean;
66
53
  };
67
- /** One document per factory session. The customer UI reads this object. */
54
+ /** One document per hosted session, read by the session history UI. */
68
55
  export type SessionRunLogDocument = {
69
56
  v: typeof SESSION_RUN_LOG_VERSION;
70
57
  sessionPublicId: string;
@@ -87,8 +74,8 @@ export interface SessionRunLogStore {
87
74
  flushProcessDeath(reason: Extract<SessionRunAbortReason, "process_exit" | "uncaught_exception" | "unhandled_rejection">, error?: unknown): Promise<void>;
88
75
  }
89
76
  /**
90
- * Install the crash-handler flush used by `bin/agent-serve` on
91
- * `uncaughtException`. One process, one active hosted serve.
77
+ * Install the process-level crash flush. One process has one active hosted
78
+ * server.
92
79
  */
93
80
  export declare function registerSessionRunFatalFlush(flush: (error: unknown) => Promise<void>): void;
94
81
  export declare function unregisterSessionRunFatalFlush(): void;
@@ -108,10 +95,9 @@ export declare function createSessionRunLogStore(input: {
108
95
  snapshotLogs?: () => readonly LogRingEntry[];
109
96
  }): SessionRunLogStore;
110
97
  /**
111
- * Same selection as the conversation mirror: architecture-v2 hosted
112
- * engines (generation env set). Store ids resolve lazily from env or the
113
- * task-bind files under `/run/cursor/secrets`. Self-hosted and v1 stay on
114
- * local disk / today's behavior.
98
+ * Enable durable execution history for architecture-v2 agents on
99
+ * Cursor-managed hosting. Self-hosted and architecture-v1 agents keep local
100
+ * behavior.
115
101
  */
116
102
  export declare function selectSessionRunLogStore(input: {
117
103
  project: AgentProject;
@@ -1 +1 @@
1
- {"version":3,"file":"session-run-log.d.ts","sourceRoot":"","sources":["../../src/internal/session-run-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAEjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,oDAAoD;AACpD,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,iEAAiE;AACjE,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,yEAAyE;AACzE,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAIjD,yDAAyD;AACzD,eAAO,MAAM,kCAAkC,OAAQ,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAC7B,8BAA8B,GAC9B,cAAc,GACd,oBAAoB,GACpB,qBAAqB,CA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