@cursor/july 0.1.97 → 0.1.100

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 (337) hide show
  1. package/AGENTS.md +5 -3
  2. package/dist/bin/agent-serve.js +6 -7
  3. package/dist/channels/github/defaults.d.ts.map +1 -1
  4. package/dist/channels/github/defaults.js +28 -3
  5. package/dist/channels/github/github-channel.d.ts.map +1 -1
  6. package/dist/channels/github/github-channel.js +16 -0
  7. package/dist/channels/github/progress.d.ts +7 -0
  8. package/dist/channels/github/progress.d.ts.map +1 -1
  9. package/dist/channels/origin/origin-channel.d.ts +2 -0
  10. package/dist/channels/origin/origin-channel.d.ts.map +1 -1
  11. package/dist/channels/origin/origin-channel.js +37 -4
  12. package/dist/channels/slack/api.d.ts +16 -7
  13. package/dist/channels/slack/api.d.ts.map +1 -1
  14. package/dist/channels/slack/api.js +29 -13
  15. package/dist/channels/slack/constants.d.ts +6 -0
  16. package/dist/channels/slack/constants.d.ts.map +1 -1
  17. package/dist/channels/slack/constants.js +6 -0
  18. package/dist/channels/slack/defaults.d.ts +9 -4
  19. package/dist/channels/slack/defaults.d.ts.map +1 -1
  20. package/dist/channels/slack/defaults.js +221 -122
  21. package/dist/channels/slack/dispatch.d.ts.map +1 -1
  22. package/dist/channels/slack/dispatch.js +3 -3
  23. package/dist/channels/slack/inbound.d.ts +9 -0
  24. package/dist/channels/slack/inbound.d.ts.map +1 -1
  25. package/dist/channels/slack/inbound.js +14 -0
  26. package/dist/channels/slack/index.d.ts +1 -0
  27. package/dist/channels/slack/index.d.ts.map +1 -1
  28. package/dist/channels/slack/index.js +1 -0
  29. package/dist/channels/slack/live-delivery.d.ts +6 -1
  30. package/dist/channels/slack/live-delivery.d.ts.map +1 -1
  31. package/dist/channels/slack/live-delivery.js +110 -20
  32. package/dist/channels/slack/progress-delivery.d.ts +28 -0
  33. package/dist/channels/slack/progress-delivery.d.ts.map +1 -0
  34. package/dist/channels/slack/progress-delivery.js +115 -0
  35. package/dist/channels/slack/reasoning-card.d.ts +38 -0
  36. package/dist/channels/slack/reasoning-card.d.ts.map +1 -0
  37. package/dist/channels/slack/reasoning-card.js +104 -0
  38. package/dist/channels/slack/redact.d.ts +2 -0
  39. package/dist/channels/slack/redact.d.ts.map +1 -0
  40. package/dist/channels/slack/redact.js +5 -0
  41. package/dist/channels/slack/reply-options.d.ts +40 -0
  42. package/dist/channels/slack/reply-options.d.ts.map +1 -0
  43. package/dist/channels/slack/reply-options.js +150 -0
  44. package/dist/channels/slack/slack-channel.d.ts.map +1 -1
  45. package/dist/channels/slack/slack-channel.js +8 -4
  46. package/dist/channels/slack/stream.d.ts +22 -10
  47. package/dist/channels/slack/stream.d.ts.map +1 -1
  48. package/dist/channels/slack/stream.js +9 -16
  49. package/dist/channels/slack/tool-cards.d.ts +22 -0
  50. package/dist/channels/slack/tool-cards.d.ts.map +1 -0
  51. package/dist/channels/slack/tool-cards.js +178 -0
  52. package/dist/channels/slack/types.d.ts +154 -7
  53. package/dist/channels/slack/types.d.ts.map +1 -1
  54. package/dist/docs/404.html +2 -2
  55. package/dist/docs/ab.html +6 -6
  56. package/dist/docs/ab.md +1 -1
  57. package/dist/docs/assets/{ab.md.DJo5r4R-.js → ab.md.mlVgqvSk.js} +1 -1
  58. package/dist/docs/assets/{app.B3rWNYE1.js → app.DZ1e0Ycq.js} +1 -1
  59. package/dist/docs/assets/{building-with-agents.md.DI4mEzlt.js → building-with-agents.md.CUSWxlP_.js} +2 -2
  60. package/dist/docs/assets/chunks/@localSearchIndexroot.j70vvPL4.js +1 -0
  61. package/dist/docs/assets/chunks/{VPLocalSearchBox.C1lhqJJR.js → VPLocalSearchBox.l8omwc6D.js} +1 -1
  62. package/dist/docs/assets/chunks/{theme.B40_SXuv.js → theme.JVcD6gel.js} +2 -2
  63. package/dist/docs/assets/{evals.md.lfJoEVc8.js → evals.md.CPzDAwoH.js} +1 -1
  64. package/dist/docs/assets/{guides_github.md.Cnh2mL4a.js → guides_github.md.BtPr9GaP.js} +1 -1
  65. package/dist/docs/assets/{guides_mcp-oauth.md.CN-6YmTJ.js → guides_mcp-oauth.md.Dp6cDP7f.js} +1 -1
  66. package/dist/docs/assets/{guides_opentelemetry.md.bmPmkvJu.js → guides_opentelemetry.md.BVTXDCRg.js} +2 -2
  67. package/dist/docs/assets/{guides_slack.md.VDXQV3ja.js → guides_slack.md.9oHPye9o.js} +19 -3
  68. package/dist/docs/assets/{guides_slack.md.VDXQV3ja.lean.js → guides_slack.md.9oHPye9o.lean.js} +1 -1
  69. package/dist/docs/assets/hillclimbing.md.CpTGTCle.js +4 -0
  70. package/dist/docs/assets/{index.md.CVeRUOeZ.js → index.md.Bb4k8kUm.js} +1 -1
  71. package/dist/docs/assets/{quickstart.md.Nj_LjW_a.js → quickstart.md.DdQOF7Y8.js} +1 -1
  72. package/dist/docs/assets/{reference_cli.md.RyZf5OTE.js → reference_cli.md.DfoeyvL0.js} +4 -4
  73. package/dist/docs/assets/{reference_cli.md.RyZf5OTE.lean.js → reference_cli.md.DfoeyvL0.lean.js} +1 -1
  74. package/dist/docs/assets/{reference_connections.md.DxldvyIB.js → reference_connections.md.BiGoBAk2.js} +1 -1
  75. package/dist/docs/assets/{reference_http-api.md.5zOAbV86.js → reference_http-api.md.BEJx9XVj.js} +1 -1
  76. package/dist/docs/assets/{reference_tools.md.B84gw9Ii.js → reference_tools.md.CvAHsdSp.js} +10 -2
  77. package/dist/docs/assets/{reference_tools.md.B84gw9Ii.lean.js → reference_tools.md.CvAHsdSp.lean.js} +1 -1
  78. package/dist/docs/assets/scaffolding-agents.md.em43xlY1.js +1 -0
  79. package/dist/docs/assets/skills_ab.md.CsFNatVx.js +26 -0
  80. package/dist/docs/assets/skills_ab.md.CsFNatVx.lean.js +1 -0
  81. package/dist/docs/assets/skills_create-agent.md.BVoWPcan.js +8 -0
  82. package/dist/docs/assets/skills_create-agent.md.BVoWPcan.lean.js +1 -0
  83. package/dist/docs/assets/skills_debug.md.CDbPhHfg.js +1 -0
  84. package/dist/docs/assets/skills_debug.md.CDbPhHfg.lean.js +1 -0
  85. package/dist/docs/assets/skills_evals.md.723kpUmA.js +25 -0
  86. package/dist/docs/assets/skills_evals.md.723kpUmA.lean.js +1 -0
  87. package/dist/docs/assets/skills_framework-map.md.BTi817yv.js +1 -0
  88. package/dist/docs/assets/skills_framework-map.md.BTi817yv.lean.js +1 -0
  89. package/dist/docs/assets/skills_github.md.D0JahM8c.js +16 -0
  90. package/dist/docs/assets/skills_github.md.D0JahM8c.lean.js +1 -0
  91. package/dist/docs/assets/skills_hillclimb.md.B_zJerxA.js +7 -0
  92. package/dist/docs/assets/skills_hillclimb.md.B_zJerxA.lean.js +1 -0
  93. package/dist/docs/assets/skills_index.md.DKwIxzGg.js +1 -0
  94. package/dist/docs/assets/skills_index.md.DKwIxzGg.lean.js +1 -0
  95. package/dist/docs/assets/skills_mcp-auth.md.DGvFP3HE.js +18 -0
  96. package/dist/docs/assets/skills_mcp-auth.md.DGvFP3HE.lean.js +1 -0
  97. package/dist/docs/assets/skills_otel.md.CgiZryR3.js +8 -0
  98. package/dist/docs/assets/skills_otel.md.CgiZryR3.lean.js +1 -0
  99. package/dist/docs/assets/skills_setup-slack.md.BBgx8lUz.js +20 -0
  100. package/dist/docs/assets/skills_setup-slack.md.BBgx8lUz.lean.js +1 -0
  101. package/dist/docs/assets/{troubleshooting.md.DCiPBhYs.js → troubleshooting.md.Cus_YZga.js} +1 -1
  102. package/dist/docs/building-with-agents.html +6 -6
  103. package/dist/docs/building-with-agents.md +14 -11
  104. package/dist/docs/concepts.html +4 -4
  105. package/dist/docs/deployment.html +4 -4
  106. package/dist/docs/design/runtime-abstraction.md +1757 -0
  107. package/dist/docs/evals.html +6 -6
  108. package/dist/docs/evals.md +1 -1
  109. package/dist/docs/guides/agent-to-agent.html +4 -4
  110. package/dist/docs/guides/cloud-runtime.html +4 -4
  111. package/dist/docs/guides/convert-automation.html +4 -4
  112. package/dist/docs/guides/github.html +5 -5
  113. package/dist/docs/guides/github.md +1 -1
  114. package/dist/docs/guides/human-in-the-loop.html +4 -4
  115. package/dist/docs/guides/mcp-oauth.html +5 -5
  116. package/dist/docs/guides/mcp-oauth.md +1 -1
  117. package/dist/docs/guides/opentelemetry.html +7 -7
  118. package/dist/docs/guides/opentelemetry.md +2 -2
  119. package/dist/docs/guides/slack.html +22 -6
  120. package/dist/docs/guides/slack.md +80 -1
  121. package/dist/docs/guides/webhooks.html +5 -5
  122. package/dist/docs/hashmap.json +1 -1
  123. package/dist/docs/hillclimbing.html +6 -6
  124. package/dist/docs/hillclimbing.md +5 -5
  125. package/dist/docs/index.html +6 -6
  126. package/dist/docs/index.md +1 -1
  127. package/dist/docs/llms-full.txt +2830 -37
  128. package/dist/docs/llms.txt +15 -0
  129. package/dist/docs/quickstart.html +5 -5
  130. package/dist/docs/quickstart.md +1 -1
  131. package/dist/docs/reference/agent-config.html +4 -4
  132. package/dist/docs/reference/artifacts.html +4 -4
  133. package/dist/docs/reference/channels.html +4 -4
  134. package/dist/docs/reference/cli.html +7 -7
  135. package/dist/docs/reference/cli.md +1 -7
  136. package/dist/docs/reference/connections.html +6 -6
  137. package/dist/docs/reference/connections.md +1 -1
  138. package/dist/docs/reference/hooks.html +4 -4
  139. package/dist/docs/reference/http-api.html +6 -6
  140. package/dist/docs/reference/http-api.md +1 -0
  141. package/dist/docs/reference/instructions.html +4 -4
  142. package/dist/docs/reference/playground.html +4 -4
  143. package/dist/docs/reference/project-layout.html +4 -4
  144. package/dist/docs/reference/prompt.html +4 -4
  145. package/dist/docs/reference/schedules.html +4 -4
  146. package/dist/docs/reference/sessions.html +4 -4
  147. package/dist/docs/reference/skills.html +4 -4
  148. package/dist/docs/reference/subagents.html +4 -4
  149. package/dist/docs/reference/tools.html +14 -6
  150. package/dist/docs/reference/tools.md +25 -0
  151. package/dist/docs/scaffolding-agents.html +5 -5
  152. package/dist/docs/scaffolding-agents.md +3 -3
  153. package/dist/docs/skills/ab.html +52 -0
  154. package/dist/docs/skills/ab.md +50 -0
  155. package/dist/docs/skills/create-agent.html +34 -0
  156. package/dist/docs/skills/create-agent.md +160 -0
  157. package/dist/docs/skills/debug.html +27 -0
  158. package/dist/docs/skills/debug.md +36 -0
  159. package/dist/docs/skills/evals.html +51 -0
  160. package/dist/docs/skills/evals.md +99 -0
  161. package/dist/docs/skills/framework-map.html +27 -0
  162. package/dist/docs/skills/framework-map.md +95 -0
  163. package/dist/docs/skills/github.html +42 -0
  164. package/dist/docs/skills/github.md +93 -0
  165. package/dist/docs/skills/hillclimb.html +33 -0
  166. package/dist/docs/skills/hillclimb.md +55 -0
  167. package/dist/docs/skills/index.html +27 -0
  168. package/dist/docs/skills/index.md +21 -0
  169. package/dist/docs/skills/mcp-auth.html +44 -0
  170. package/dist/docs/skills/mcp-auth.md +76 -0
  171. package/dist/docs/skills/otel.html +34 -0
  172. package/dist/docs/skills/otel.md +48 -0
  173. package/dist/docs/skills/setup-slack.html +46 -0
  174. package/dist/docs/skills/setup-slack.md +141 -0
  175. package/dist/docs/storage.html +4 -4
  176. package/dist/docs/templates/agentic-owners.html +4 -4
  177. package/dist/docs/templates/agents-md.html +4 -4
  178. package/dist/docs/templates/code-wiki.html +4 -4
  179. package/dist/docs/templates/demo.html +4 -4
  180. package/dist/docs/templates/pr-autofixer.html +4 -4
  181. package/dist/docs/templates/security-help.html +4 -4
  182. package/dist/docs/templates/security-reviewer.html +4 -4
  183. package/dist/docs/templates/triage.html +4 -4
  184. package/dist/docs/troubleshooting.html +5 -5
  185. package/dist/docs/troubleshooting.md +1 -1
  186. package/dist/files-backends/cursor-hosted.d.ts +9 -2
  187. package/dist/files-backends/cursor-hosted.d.ts.map +1 -1
  188. package/dist/files-backends/cursor-hosted.js +9 -11
  189. package/dist/index.d.ts +1 -0
  190. package/dist/index.d.ts.map +1 -1
  191. package/dist/index.js +1 -0
  192. package/dist/internal/as-of.d.ts +19 -0
  193. package/dist/internal/as-of.d.ts.map +1 -0
  194. package/dist/internal/as-of.js +82 -0
  195. package/dist/internal/cli-deploy.d.ts +2 -1
  196. package/dist/internal/cli-deploy.d.ts.map +1 -1
  197. package/dist/internal/cli-deploy.js +102 -7
  198. package/dist/internal/conversation-mirror.d.ts.map +1 -1
  199. package/dist/internal/conversation-mirror.js +3 -4
  200. package/dist/internal/cursor/hosted-store-secrets.d.ts +15 -0
  201. package/dist/internal/cursor/hosted-store-secrets.d.ts.map +1 -0
  202. package/dist/internal/cursor/hosted-store-secrets.js +48 -0
  203. package/dist/internal/cursor-event-relay.d.ts.map +1 -1
  204. package/dist/internal/cursor-event-relay.js +5 -6
  205. package/dist/internal/deploy-client.d.ts +6 -6
  206. package/dist/internal/deploy-client.js +7 -7
  207. package/dist/internal/discovery.d.ts.map +1 -1
  208. package/dist/internal/discovery.js +11 -1
  209. package/dist/internal/framework-file-storage.d.ts +5 -4
  210. package/dist/internal/framework-file-storage.d.ts.map +1 -1
  211. package/dist/internal/framework-file-storage.js +6 -4
  212. package/dist/internal/framework-storage-selection.d.ts +13 -11
  213. package/dist/internal/framework-storage-selection.d.ts.map +1 -1
  214. package/dist/internal/framework-storage-selection.js +28 -23
  215. package/dist/internal/hosted-admission-adapter.d.ts +28 -0
  216. package/dist/internal/hosted-admission-adapter.d.ts.map +1 -0
  217. package/dist/internal/hosted-admission-adapter.js +7 -0
  218. package/dist/internal/hosted-delivery-protocol.d.ts +6 -1
  219. package/dist/internal/hosted-delivery-protocol.d.ts.map +1 -1
  220. package/dist/internal/hosted-delivery-protocol.js +1 -1
  221. package/dist/internal/hosted-delivery.d.ts +15 -1
  222. package/dist/internal/hosted-delivery.d.ts.map +1 -1
  223. package/dist/internal/hosted-delivery.js +47 -21
  224. package/dist/internal/hosted-execution-diag.d.ts +11 -0
  225. package/dist/internal/hosted-execution-diag.d.ts.map +1 -1
  226. package/dist/internal/hosted-execution-diag.js +39 -2
  227. package/dist/internal/http-channel.d.ts.map +1 -1
  228. package/dist/internal/http-channel.js +4 -1
  229. package/dist/internal/server.d.ts +3 -0
  230. package/dist/internal/server.d.ts.map +1 -1
  231. package/dist/internal/server.js +82 -19
  232. package/dist/internal/session-engine.d.ts.map +1 -1
  233. package/dist/internal/session-engine.js +24 -4
  234. package/dist/internal/session-run-log.d.ts +120 -0
  235. package/dist/internal/session-run-log.d.ts.map +1 -0
  236. package/dist/internal/session-run-log.js +358 -0
  237. package/dist/internal/tool-policy.d.ts +20 -8
  238. package/dist/internal/tool-policy.d.ts.map +1 -1
  239. package/dist/internal/tool-policy.js +11 -0
  240. package/dist/playground/assets/index-BszoQDc6.css +1 -0
  241. package/dist/playground/assets/index-DVs98vPL.js +69 -0
  242. package/dist/playground/index.html +2 -2
  243. package/dist/storage-backends/cursor-hosted-v2.d.ts +83 -0
  244. package/dist/storage-backends/cursor-hosted-v2.d.ts.map +1 -0
  245. package/dist/storage-backends/cursor-hosted-v2.js +164 -0
  246. package/dist/storage-backends/cursor-hosted.d.ts +6 -0
  247. package/dist/storage-backends/cursor-hosted.d.ts.map +1 -1
  248. package/dist/storage-backends/cursor-hosted.js +6 -1
  249. package/dist/storage-protocol.d.ts +8 -0
  250. package/dist/storage-protocol.d.ts.map +1 -1
  251. package/dist/storage-protocol.js +8 -0
  252. package/dist/tools.d.ts +12 -2
  253. package/dist/tools.d.ts.map +1 -1
  254. package/dist/types.d.ts +30 -0
  255. package/dist/types.d.ts.map +1 -1
  256. package/docs/README.md +1 -1
  257. package/docs/ab.md +1 -1
  258. package/docs/building-with-agents.md +14 -11
  259. package/docs/design/runtime-abstraction.md +1757 -0
  260. package/docs/evals.md +1 -1
  261. package/docs/guides/github.md +1 -1
  262. package/docs/guides/mcp-oauth.md +1 -1
  263. package/docs/guides/opentelemetry.md +2 -2
  264. package/docs/guides/slack.md +80 -1
  265. package/docs/hillclimbing.md +5 -5
  266. package/docs/quickstart.md +1 -1
  267. package/docs/reference/cli.md +1 -7
  268. package/docs/reference/connections.md +1 -1
  269. package/docs/reference/http-api.md +1 -0
  270. package/docs/reference/tools.md +25 -0
  271. package/docs/scaffolding-agents.md +3 -3
  272. package/docs/skills/index.md +26 -0
  273. package/docs/troubleshooting.md +1 -1
  274. package/package.json +1 -1
  275. package/src/bin/agent-serve.ts +6 -7
  276. package/src/channels/github/defaults.ts +36 -3
  277. package/src/channels/github/github-channel.ts +17 -0
  278. package/src/channels/github/progress.ts +7 -0
  279. package/src/channels/origin/origin-channel.ts +74 -10
  280. package/src/channels/slack/api.ts +35 -17
  281. package/src/channels/slack/constants.ts +6 -0
  282. package/src/channels/slack/defaults.ts +253 -144
  283. package/src/channels/slack/dispatch.ts +10 -1
  284. package/src/channels/slack/inbound.ts +17 -0
  285. package/src/channels/slack/index.ts +1 -0
  286. package/src/channels/slack/live-delivery.ts +135 -22
  287. package/src/channels/slack/progress-delivery.ts +133 -0
  288. package/src/channels/slack/reasoning-card.ts +140 -0
  289. package/src/channels/slack/redact.ts +6 -0
  290. package/src/channels/slack/reply-options.ts +229 -0
  291. package/src/channels/slack/slack-channel.ts +7 -2
  292. package/src/channels/slack/stream.ts +31 -24
  293. package/src/channels/slack/tool-cards.ts +221 -0
  294. package/src/channels/slack/types.ts +168 -7
  295. package/src/files-backends/cursor-hosted.ts +18 -7
  296. package/src/index.ts +4 -0
  297. package/src/internal/as-of.ts +107 -0
  298. package/src/internal/cli-deploy.ts +130 -10
  299. package/src/internal/conversation-mirror.ts +3 -8
  300. package/src/internal/cursor/hosted-store-secrets.ts +72 -0
  301. package/src/internal/cursor-event-relay.ts +5 -6
  302. package/src/internal/deploy-client.ts +10 -10
  303. package/src/internal/discovery.ts +9 -1
  304. package/src/internal/framework-file-storage.ts +6 -4
  305. package/src/internal/framework-storage-selection.ts +28 -25
  306. package/src/internal/hosted-admission-adapter.ts +42 -0
  307. package/src/internal/hosted-delivery-protocol.ts +7 -2
  308. package/src/internal/hosted-delivery.ts +88 -36
  309. package/src/internal/hosted-execution-diag.ts +45 -0
  310. package/src/internal/http-channel.ts +8 -0
  311. package/src/internal/server.ts +100 -2
  312. package/src/internal/session-engine.ts +32 -1
  313. package/src/internal/session-run-log.ts +579 -0
  314. package/src/internal/tool-policy.ts +31 -9
  315. package/src/storage-backends/cursor-hosted-v2.ts +219 -0
  316. package/src/storage-backends/cursor-hosted.ts +6 -1
  317. package/src/storage-protocol.ts +10 -0
  318. package/src/tools.ts +12 -2
  319. package/src/types.ts +30 -0
  320. package/dist/docs/assets/chunks/@localSearchIndexroot.BU9nHdnQ.js +0 -1
  321. package/dist/docs/assets/hillclimbing.md.DhESf3OO.js +0 -4
  322. package/dist/docs/assets/scaffolding-agents.md.D7UUkWw0.js +0 -1
  323. package/dist/playground/assets/index-DrkI6y5O.js +0 -88
  324. package/dist/playground/assets/index-DzNGwm7q.css +0 -1
  325. /package/dist/docs/assets/{ab.md.DJo5r4R-.lean.js → ab.md.mlVgqvSk.lean.js} +0 -0
  326. /package/dist/docs/assets/{building-with-agents.md.DI4mEzlt.lean.js → building-with-agents.md.CUSWxlP_.lean.js} +0 -0
  327. /package/dist/docs/assets/{evals.md.lfJoEVc8.lean.js → evals.md.CPzDAwoH.lean.js} +0 -0
  328. /package/dist/docs/assets/{guides_github.md.Cnh2mL4a.lean.js → guides_github.md.BtPr9GaP.lean.js} +0 -0
  329. /package/dist/docs/assets/{guides_mcp-oauth.md.CN-6YmTJ.lean.js → guides_mcp-oauth.md.Dp6cDP7f.lean.js} +0 -0
  330. /package/dist/docs/assets/{guides_opentelemetry.md.bmPmkvJu.lean.js → guides_opentelemetry.md.BVTXDCRg.lean.js} +0 -0
  331. /package/dist/docs/assets/{hillclimbing.md.DhESf3OO.lean.js → hillclimbing.md.CpTGTCle.lean.js} +0 -0
  332. /package/dist/docs/assets/{index.md.CVeRUOeZ.lean.js → index.md.Bb4k8kUm.lean.js} +0 -0
  333. /package/dist/docs/assets/{quickstart.md.Nj_LjW_a.lean.js → quickstart.md.DdQOF7Y8.lean.js} +0 -0
  334. /package/dist/docs/assets/{reference_connections.md.DxldvyIB.lean.js → reference_connections.md.BiGoBAk2.lean.js} +0 -0
  335. /package/dist/docs/assets/{reference_http-api.md.5zOAbV86.lean.js → reference_http-api.md.BEJx9XVj.lean.js} +0 -0
  336. /package/dist/docs/assets/{scaffolding-agents.md.D7UUkWw0.lean.js → scaffolding-agents.md.em43xlY1.lean.js} +0 -0
  337. /package/dist/docs/assets/{troubleshooting.md.DCiPBhYs.lean.js → troubleshooting.md.Cus_YZga.lean.js} +0 -0
@@ -41,6 +41,7 @@ import { findGitHubChannelTargets } from "../channels/github/forward.js";
41
41
  import { getOriginCursorAccountRuntime, parseCursorOriginRepoScope, } from "../channels/origin/cursor-account.js";
42
42
  import { findOriginChannelTargets } from "../channels/origin/origin-channel.js";
43
43
  import { allowAll, bearerAuth, localDevStrict } from "../channels.js";
44
+ import { InvalidAsOfError, VacuousTimeArgsError } from "./as-of.js";
44
45
  import { V2EngineError } from "./continuation-identity.js";
45
46
  import { selectConversationMirror } from "./conversation-mirror.js";
46
47
  import { CursorAccountMcpBridge, collectCursorAccountConnections, cursorAccountMcpPath, } from "./cursor/account-mcp.js";
@@ -58,6 +59,7 @@ import { EvalRunConflictError, EvalRunEmptyError, EvalRunNotRunningError, EvalRu
58
59
  import { collectGitHubTriggerTargets, collectOriginTriggerTargets, handleAgentServeTrigger, } from "./handleAgentServeTrigger.js";
59
60
  import { createHostPlatforms, warmupHostGitHubAuth } from "./host-platforms.js";
60
61
  import { registerHostedDeliveryRoute } from "./hosted-delivery.js";
62
+ import { hostedErrorStackSnippet } from "./hosted-execution-diag.js";
61
63
  import { buildHttpChannelRoutes, errorResponse, jsonResponse, readJsonObject, requireSessionOwner, } from "./http-channel.js";
62
64
  import { validateToolInput } from "./json-schema.js";
63
65
  import { DEFAULT_SERVE_PORT, listenHttpServer } from "./listen-port.js";
@@ -83,6 +85,7 @@ import { RuntimeDispatchingRunner } from "./runtime-dispatch-runner.js";
83
85
  import { ScheduleRunner, UnknownScheduleError } from "./schedule-runner.js";
84
86
  import { CursorSdkRunner } from "./sdk-runner.js";
85
87
  import { InvalidContinuationTokenError, SessionAuthError, SessionBusyError, SessionEngine, ToolInputError, ToolNotDirectlyCallableError, UnknownToolError, WorkspaceUnavailableError, } from "./session-engine.js";
88
+ import { registerSessionRunFatalFlush, selectSessionRunLogStore, unregisterSessionRunFatalFlush, } from "./session-run-log.js";
86
89
  import { sessionUrlsForRequest } from "./session-urls.js";
87
90
  import { catalogDetailEntry, catalogListEntry } from "./tool-catalog.js";
88
91
  function memoryHealthFields(engines) {
@@ -117,8 +120,8 @@ function isV2Project(project) {
117
120
  export function startServer(mounts_1) {
118
121
  return __awaiter(this, arguments, void 0, function* (mounts, options = {}) {
119
122
  var _a, _b, _c, _d, _e, _f;
120
- var _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
121
- var _4;
123
+ var _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
124
+ var _5;
122
125
  if (mounts.length === 0) {
123
126
  throw new Error("startServer requires at least one agent mount");
124
127
  }
@@ -140,7 +143,7 @@ export function startServer(mounts_1) {
140
143
  // CURSOR_AGENTKIT_VERSION is still the env the SDK reads when building
141
144
  // its client-version header (wire prefix remains `agentkit-`). Setting it
142
145
  // here makes the internal-only agentkit_enabled gate apply to every turn.
143
- (_m = (_4 = process.env).CURSOR_AGENTKIT_VERSION) !== null && _m !== void 0 ? _m : (_4.CURSOR_AGENTKIT_VERSION = packageVersion());
146
+ (_m = (_5 = process.env).CURSOR_AGENTKIT_VERSION) !== null && _m !== void 0 ? _m : (_5.CURSOR_AGENTKIT_VERSION = packageVersion());
144
147
  const authoredOtel = pickAuthoredOtel(mounts.map((m) => ({
145
148
  slug: m.slug,
146
149
  name: m.project.name,
@@ -329,7 +332,17 @@ export function startServer(mounts_1) {
329
332
  const conversationMirror = mounts.length === 1 && mounts[0] !== undefined
330
333
  ? selectConversationMirror({ project: mounts[0].project, logger })
331
334
  : undefined;
332
- const sdkRunner = (_t = options.runner) !== null && _t !== void 0 ? _t : new CursorSdkRunner(Object.assign(Object.assign(Object.assign({}, (options.apiKey === undefined || options.apiKey.trim() === ""
335
+ const sessionRunLog = (_t = options.sessionRunLog) !== null && _t !== void 0 ? _t : (mounts.length === 1 && mounts[0] !== undefined
336
+ ? selectSessionRunLogStore({
337
+ project: mounts[0].project,
338
+ logger,
339
+ snapshotLogs: () => logRing.since(),
340
+ })
341
+ : undefined);
342
+ if (sessionRunLog !== undefined) {
343
+ registerSessionRunFatalFlush((error) => sessionRunLog.flushProcessDeath("uncaught_exception", error));
344
+ }
345
+ const sdkRunner = (_u = options.runner) !== null && _u !== void 0 ? _u : new CursorSdkRunner(Object.assign(Object.assign(Object.assign({}, (options.apiKey === undefined || options.apiKey.trim() === ""
333
346
  ? {}
334
347
  : { apiKey: options.apiKey })), (conversationMirror === undefined ? {} : { conversationMirror })), { logger }));
335
348
  // Grok Bot turns run on Cursor's hosted Grok Bot (Sand) harness through
@@ -394,8 +407,8 @@ export function startServer(mounts_1) {
394
407
  }
395
408
  accountBridge = new CursorAccountMcpBridge({
396
409
  client: new CursorBackendClient({
397
- backendUrl: (_u = accountKey === null || accountKey === void 0 ? void 0 : accountKey.backendUrl) !== null && _u !== void 0 ? _u : cursorBackendUrl(),
398
- apiKey: (_v = accountKey === null || accountKey === void 0 ? void 0 : accountKey.apiKey) !== null && _v !== void 0 ? _v : "",
410
+ backendUrl: (_v = accountKey === null || accountKey === void 0 ? void 0 : accountKey.backendUrl) !== null && _v !== void 0 ? _v : cursorBackendUrl(),
411
+ apiKey: (_w = accountKey === null || accountKey === void 0 ? void 0 : accountKey.apiKey) !== null && _w !== void 0 ? _w : "",
399
412
  getApiKey: () => { var _a; return (_a = liveCursorApiKey()) !== null && _a !== void 0 ? _a : ""; },
400
413
  logger,
401
414
  }),
@@ -407,7 +420,7 @@ export function startServer(mounts_1) {
407
420
  }
408
421
  for (const { slug, project } of mounts) {
409
422
  // Each agent gets an isolated state root so their sessions never mix.
410
- const baseStateRoot = (_w = options.stateRoot) !== null && _w !== void 0 ? _w : join(project.rootDir, ".agent-serve");
423
+ const baseStateRoot = (_x = options.stateRoot) !== null && _x !== void 0 ? _x : join(project.rootDir, ".agent-serve");
411
424
  const stateRoot = slug === "" ? baseStateRoot : join(baseStateRoot, slug);
412
425
  const otelCollector = otelRuntime === undefined
413
426
  ? undefined
@@ -495,7 +508,7 @@ export function startServer(mounts_1) {
495
508
  noControlPlane,
496
509
  multi,
497
510
  logger,
498
- logRing, diagStateRoot: baseStateRoot }, (options.authToken === undefined
511
+ logRing, diagStateRoot: baseStateRoot, sessionRunLog }, (options.authToken === undefined
499
512
  ? {}
500
513
  : { authToken: options.authToken })), (options.allowAnonymous === true ? { allowAnonymous: true } : {})), (accountRefs !== undefined && accountBridge !== undefined
501
514
  ? { accountBridge, accountRefs }
@@ -530,7 +543,7 @@ export function startServer(mounts_1) {
530
543
  }
531
544
  catch (error) {
532
545
  logger(`[agent-sdk] channel "${channel.id}" onStart failed: ${error instanceof Error
533
- ? ((_x = error.stack) !== null && _x !== void 0 ? _x : error.message)
546
+ ? ((_y = error.stack) !== null && _y !== void 0 ? _y : error.message)
534
547
  : String(error)}`);
535
548
  }
536
549
  }
@@ -654,8 +667,8 @@ export function startServer(mounts_1) {
654
667
  const routeContinuation = localControlPlaneRoute(runtimes);
655
668
  const cursorEventsCommon = {
656
669
  config: effectiveCursorEvents,
657
- githubRepos: (_y = (_e = cursorGithubConfig.cursorEvents) === null || _e === void 0 ? void 0 : _e.repos) !== null && _y !== void 0 ? _y : [],
658
- originRepos: (_z = cursorOriginScope === null || cursorOriginScope === void 0 ? void 0 : cursorOriginScope.repos) !== null && _z !== void 0 ? _z : [],
670
+ githubRepos: (_z = (_e = cursorGithubConfig.cursorEvents) === null || _e === void 0 ? void 0 : _e.repos) !== null && _z !== void 0 ? _z : [],
671
+ originRepos: (_0 = cursorOriginScope === null || cursorOriginScope === void 0 ? void 0 : cursorOriginScope.repos) !== null && _0 !== void 0 ? _0 : [],
659
672
  stateRoot: options.stateRoot,
660
673
  auth: cursorEventsAuth,
661
674
  logger,
@@ -684,9 +697,9 @@ export function startServer(mounts_1) {
684
697
  const server = createServer((req, res) => {
685
698
  void instrumentHttp(otelRuntime, req, res, () => handleRequest(router, req, res, logger));
686
699
  });
687
- const host = (_0 = options.host) !== null && _0 !== void 0 ? _0 : "127.0.0.1";
700
+ const host = (_1 = options.host) !== null && _1 !== void 0 ? _1 : "127.0.0.1";
688
701
  const portWasExplicit = options.port !== undefined;
689
- const requestedPort = (_1 = options.port) !== null && _1 !== void 0 ? _1 : DEFAULT_SERVE_PORT;
702
+ const requestedPort = (_2 = options.port) !== null && _2 !== void 0 ? _2 : DEFAULT_SERVE_PORT;
690
703
  let boundPort;
691
704
  try {
692
705
  boundPort = yield listenHttpServer({
@@ -708,7 +721,7 @@ export function startServer(mounts_1) {
708
721
  const address = server.address();
709
722
  const displayHost = host === "0.0.0.0" || host === "::" ? "127.0.0.1" : host;
710
723
  const url = `http://${displayHost}:${boundPort}`;
711
- const oauthOrigin = ((_2 = options.publicUrl) !== null && _2 !== void 0 ? _2 : url).replace(/\/$/, "");
724
+ const oauthOrigin = ((_3 = options.publicUrl) !== null && _3 !== void 0 ? _3 : url).replace(/\/$/, "");
712
725
  // Resolve peer + Cursor account MCP connections now that the listen port is
713
726
  // known (see resolved-connections.ts for the URL/runtime rules).
714
727
  for (const runtime of runtimes) {
@@ -744,7 +757,7 @@ export function startServer(mounts_1) {
744
757
  runtime.project.agent.cloud !== undefined;
745
758
  if ((hasServerTools || bridgeableNames.length > 0) && cloudCapable) {
746
759
  const basePath = runtime.slug === "" ? "" : `/${runtime.slug}`;
747
- const publicToolsUrl = (_3 = options.cloudToolsUrl) !== null && _3 !== void 0 ? _3 : (options.publicUrl === undefined
760
+ const publicToolsUrl = (_4 = options.cloudToolsUrl) !== null && _4 !== void 0 ? _4 : (options.publicUrl === undefined
748
761
  ? undefined
749
762
  : `${options.publicUrl.replace(/\/$/, "")}${basePath}${TOOL_MCP_ENDPOINT_PATH}`);
750
763
  if (publicToolsUrl === undefined) {
@@ -864,6 +877,10 @@ export function startServer(mounts_1) {
864
877
  close: () => __awaiter(this, void 0, void 0, function* () {
865
878
  var _a;
866
879
  var _b;
880
+ if (sessionRunLog !== undefined) {
881
+ yield sessionRunLog.flushProcessDeath("process_exit");
882
+ unregisterSessionRunFatalFlush();
883
+ }
867
884
  playgroundDev === null || playgroundDev === void 0 ? void 0 : playgroundDev.stop();
868
885
  yield cursorDeploymentRelay === null || cursorDeploymentRelay === void 0 ? void 0 : cursorDeploymentRelay.stop();
869
886
  yield cursorEventRelay === null || cursorEventRelay === void 0 ? void 0 : cursorEventRelay.stop();
@@ -909,7 +926,7 @@ export function startServer(mounts_1) {
909
926
  function mountAgentRoutes(router, runtime, args) {
910
927
  var _a, _b, _c;
911
928
  const { slug, project, engine, scheduleRunner, reminderRunner } = runtime;
912
- const { dev, playground, noControlPlane, multi, logger, logRing } = args;
929
+ const { dev, playground, noControlPlane, multi, logger, logRing, sessionRunLog, } = args;
913
930
  // "" (single) -> "/v1/..."; "my-agent" (multi) -> "/my-agent/v1/...".
914
931
  const base = slug === "" ? "" : `/${slug}`;
915
932
  // The Cursor account MCP bridge for this mount's account MCP connections:
@@ -950,14 +967,16 @@ function mountAgentRoutes(router, runtime, args) {
950
967
  return null;
951
968
  };
952
969
  if (noControlPlane === true && isV2Project(project)) {
953
- registerHostedDeliveryRoute(Object.assign({ router,
970
+ registerHostedDeliveryRoute(Object.assign(Object.assign(Object.assign({ router,
954
971
  base, channels: project.channels, buildHandlerArgs: (channelId, hostedSessionId) => buildChannelHandlerArgs({
955
972
  runtime,
956
973
  channelId,
957
974
  hostedSessionId,
958
975
  }), drainSessionDurability: (sessionId) => engine.drainSessionDurability(sessionId) }, (args.diagStateRoot === undefined
959
976
  ? {}
960
- : { stateRoot: args.diagStateRoot })));
977
+ : { stateRoot: args.diagStateRoot })), (sessionRunLog === undefined
978
+ ? {}
979
+ : { persistSessionRun: (document) => sessionRunLog.persist(document) })), { snapshotLogs: () => logRing.since() }));
961
980
  }
962
981
  // Playground lists/opens Slack (and other channel) sessions across
963
982
  // principals when `--dev` (loopback) or `--allow-anonymous` (trusted
@@ -1043,6 +1062,43 @@ function mountAgentRoutes(router, runtime, args) {
1043
1062
  });
1044
1063
  },
1045
1064
  });
1065
+ // v2 only: one session-level hosted-execution log on the framework
1066
+ // store. Distinct from GET /v1/logs (process-wide ring). Keyed by the
1067
+ // factory session public id so an execute_throw that never minted a
1068
+ // July session is still readable after the pod parks.
1069
+ if (isV2Project(project) && sessionRunLog !== undefined) {
1070
+ router.add({
1071
+ method: "GET",
1072
+ pattern: `${base}/v1/session/:sessionId/runs`,
1073
+ auth: httpAuth,
1074
+ handler: (_request, ctx) => __awaiter(this, void 0, void 0, function* () {
1075
+ var _a, _b, _c;
1076
+ const sessionId = (_a = ctx.params.sessionId) !== null && _a !== void 0 ? _a : "";
1077
+ if (sessionId.length === 0 || sessionId.includes("/")) {
1078
+ return errorResponse(400, "invalid_request", "Expected a session id.");
1079
+ }
1080
+ const record = yield engine.getOrRestoreSession(sessionId);
1081
+ if (record === undefined) {
1082
+ return errorResponse(404, "session_not_found", `Unknown session ${sessionId}.`);
1083
+ }
1084
+ const ownership = requireSessionOwner(record, ctx.auth, {
1085
+ relax: relaxSessionReadAuth,
1086
+ beyondLoopback: relaxSessionReadAuthBeyondLoopback,
1087
+ requestIp: ctx.requestIp,
1088
+ });
1089
+ if (ownership !== undefined) {
1090
+ return ownership;
1091
+ }
1092
+ const document = yield sessionRunLog.read(sessionId);
1093
+ return jsonResponse({
1094
+ sessionId,
1095
+ updatedAt: document === null || document === void 0 ? void 0 : document.updatedAt,
1096
+ lastFailure: (_b = document === null || document === void 0 ? void 0 : document.lastFailure) !== null && _b !== void 0 ? _b : null,
1097
+ executions: (_c = document === null || document === void 0 ? void 0 : document.executions) !== null && _c !== void 0 ? _c : [],
1098
+ });
1099
+ }),
1100
+ });
1101
+ }
1046
1102
  router.add({
1047
1103
  method: "GET",
1048
1104
  pattern: `${base}/v1/sessions`,
@@ -2112,11 +2168,18 @@ function handleRequest(router, req, res, logger) {
2112
2168
  else if (error instanceof SessionAuthError) {
2113
2169
  response = errorResponse(403, "forbidden", error.message);
2114
2170
  }
2171
+ else if (error instanceof InvalidAsOfError ||
2172
+ error instanceof VacuousTimeArgsError) {
2173
+ response = errorResponse(400, "invalid_request", error.message);
2174
+ }
2115
2175
  else {
2116
2176
  logger(`[agent-sdk] request failed: ${error instanceof Error
2117
2177
  ? ((_c = error.stack) !== null && _c !== void 0 ? _c : error.message)
2118
2178
  : String(error)}`);
2119
- response = errorResponse(500, "internal_error", "Internal server error.");
2179
+ const snippet = hostedErrorStackSnippet(error);
2180
+ response = errorResponse(500, "internal_error", snippet.length > 0
2181
+ ? `Internal server error: ${snippet}`
2182
+ : "Internal server error.");
2120
2183
  }
2121
2184
  }
2122
2185
  try {
@@ -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;AAShD,OAAO,EACL,mBAAmB,EACnB,eAAe,EAChB,MAAM,kCAAkC,CAAC;AAW1C,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAEtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAGxB,KAAK,cAAc,EAEnB,KAAK,WAAW,EAEhB,KAAK,qBAAqB,EAI1B,KAAK,SAAS,EAEd,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EA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BtB,OAAO,CAAC,gBAAgB;IAwBxB,OAAO,CAAC,mBAAmB;IAc3B,sEAAsE;IACtE,OAAO,CAAC,YAAY;IA6BpB;;;;;;;;;;;OAWG;IACG,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAgB3C;YAEa,cAAc;IA4F5B;;;;;;;;OAQG;IACG,mBAAmB,CACvB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAMpC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,4BAA4B;IAqBpC,OAAO,CAAC,kBAAkB;YAkBZ,gCAAgC;YAgBhC,sBAAsB;YAWtB,yBAAyB;IAmBvC;;;;;OAKG;YACW,kBAAkB;IAYhC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAO/C;IAED,2EAA2E;IAC3E,mBAAmB,IAAI,mBAAmB,CAEzC;IAED,yEAAyE;IACnE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAgB3B;CACF;AAuCD;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,SAAS,GAAG,SAAS,EAC9B,KAAK,EAAE,SAAS,GAAG,SAAS,GAC3B,SAAS,GAAG,SAAS,CAuBvB"}
@@ -32,6 +32,7 @@ import { buildABSnapshot } from "./ab-snapshot.js";
32
32
  import { resolveAdvertisedTools, } from "./advertise-tools.js";
33
33
  import { ApprovalGate } from "./approval-gate.js";
34
34
  import { ArtifactsStore } from "./artifacts-store.js";
35
+ import { assertTimeArgs, normalizeAsOf, sessionClock } from "./as-of.js";
35
36
  import { SessionAuthError, samePrincipal } from "./auth.js";
36
37
  import { mergeCloudOptions, resolveSessionRuntime } from "./cloud-merge.js";
37
38
  import { applyCloudUsageToEvents, cloudSdkAgentIdFromEvents, isUnpricedCompletedTurn, mapSdkTokenUsage, } from "./cloud-turn-cost.js";
@@ -620,12 +621,15 @@ export class SessionEngine {
620
621
  const now = new Date().toISOString();
621
622
  const channelState = this.initialChannelState(channelId, sendOptions.state);
622
623
  const purpose = sendOptions.purpose === "eval" ? "eval" : "live";
624
+ const frozenAsOf = normalizeAsOf(sendOptions.asOf);
625
+ assertTimeArgs(this.project.agent.tools, frozenAsOf);
623
626
  let record = {
624
627
  sessionId: (_d = sendOptions.hostedSessionId) !== null && _d !== void 0 ? _d : newSessionId(),
625
628
  channelId,
626
629
  mode: (_e = sendOptions.mode) !== null && _e !== void 0 ? _e : "chat",
627
630
  purpose,
628
631
  dryRun: sendOptions.dryRun === true ? true : undefined,
632
+ asOf: frozenAsOf,
629
633
  continuationKey: (_f = sendOptions.continuationToken) !== null && _f !== void 0 ? _f : newContinuationKey(),
630
634
  auth,
631
635
  title: sendOptions.title,
@@ -1606,6 +1610,7 @@ export class SessionEngine {
1606
1610
  channelId: record.channelId,
1607
1611
  channelKind: (_b = (_a = this.channelsById.get(record.channelId)) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.kind,
1608
1612
  environment: isDevMode() ? "local dev server" : "hosted deployment",
1613
+ now: record.asOf === undefined ? undefined : sessionClock(record.asOf)(),
1609
1614
  });
1610
1615
  turnPrompt = `${contextBlock}\n\n${prompt}`;
1611
1616
  }
@@ -1998,6 +2003,7 @@ export class SessionEngine {
1998
2003
  send: (channelId, message, sendOptions = {}) => { var _a; return this.send(channelId, message, Object.assign(Object.assign({}, sendOptions), { auth: (_a = sendOptions.auth) !== null && _a !== void 0 ? _a : args.record.auth })); },
1999
2004
  getSession: (channelId, sessionId) => this.getChannelSession(channelId, sessionId),
2000
2005
  emit: args.emit,
2006
+ now: sessionClock(args.record.asOf),
2001
2007
  };
2002
2008
  try {
2003
2009
  // Before the approval gate: a dry run is unattended, so parking a write
@@ -2009,12 +2015,16 @@ export class SessionEngine {
2009
2015
  annotations: args.tool.annotations,
2010
2016
  },
2011
2017
  }
2012
- : {})), { dryRunResult: args.tool.definition.dryRunResult, input: validation.value }));
2018
+ : {})), { dryRunResult: args.tool.definition.dryRunResult, input: validation.value, asOf: args.record.asOf, timeArgs: args.tool.definition.timeArgs }));
2013
2019
  if (decision.kind === "answer") {
2014
2020
  (_a = this.stubbedCallIds.get(args.record.sessionId)) === null || _a === void 0 ? void 0 : _a.add(toolCallId);
2015
2021
  this.logger(`[session] tool ${args.tool.name} answered by host (${toolCallId})`);
2016
2022
  return normalizeToolResult(decision.result);
2017
2023
  }
2024
+ if (decision.kind === "unbounded") {
2025
+ this.logger(`[session] tool ${args.tool.name} refused, unbounded_time (${toolCallId})`);
2026
+ return toolErrorResult(decision.message);
2027
+ }
2018
2028
  if (decision.kind === "refuse") {
2019
2029
  this.logger(`[session] tool ${args.tool.name} refused, effect unclassified (${toolCallId})`);
2020
2030
  // The coverage signal: a run reports how much of itself was runnable.
@@ -2671,7 +2681,7 @@ export class SessionEngine {
2671
2681
  // `handle.callTool` performs a write just as readily.
2672
2682
  const decision = decideToolCall(Object.assign(Object.assign({ dryRun: (record === null || record === void 0 ? void 0 : record.dryRun) === true, effect: tool.definition.effect }, (tool.advertised === true
2673
2683
  ? { mcpTool: { name: tool.name, annotations: tool.annotations } }
2674
- : {})), { dryRunResult: tool.definition.dryRunResult, input: validation.value }));
2684
+ : {})), { dryRunResult: tool.definition.dryRunResult, input: validation.value, asOf: record === null || record === void 0 ? void 0 : record.asOf, timeArgs: tool.definition.timeArgs }));
2675
2685
  const started = Date.now();
2676
2686
  this.logger(`[session] tool ${toolName} start (direct ${callId})`);
2677
2687
  let result;
@@ -2684,7 +2694,12 @@ export class SessionEngine {
2684
2694
  void this.appendEvent(live.sessionId, Object.assign(Object.assign({}, payload), { turnId: callId })).catch(() => { });
2685
2695
  };
2686
2696
  try {
2687
- if (decision.kind === "refuse") {
2697
+ if (decision.kind === "unbounded") {
2698
+ this.logger(`[session] tool ${toolName} refused, unbounded_time (direct ${callId})`);
2699
+ result = normalizeToolResult(toolErrorResult(decision.message));
2700
+ isError = true;
2701
+ }
2702
+ else if (decision.kind === "refuse") {
2688
2703
  this.logger(`[session] tool ${toolName} refused, effect unclassified (direct ${callId})`);
2689
2704
  emit === null || emit === void 0 ? void 0 : emit({
2690
2705
  type: "action.effect_unclassified",
@@ -2717,6 +2732,7 @@ export class SessionEngine {
2717
2732
  : session.auth })),
2718
2733
  getSession: (channelId, sessionId) => this.getChannelSession(channelId, sessionId),
2719
2734
  emit,
2735
+ now: sessionClock(record === null || record === void 0 ? void 0 : record.asOf),
2720
2736
  });
2721
2737
  result = normalizeToolResult(record !== undefined && emit !== undefined
2722
2738
  ? yield mcpAuthAls.run({
@@ -2806,6 +2822,10 @@ export class SessionEngine {
2806
2822
  if (decision.kind === "run") {
2807
2823
  return { answered: false };
2808
2824
  }
2825
+ if (decision.kind === "unbounded") {
2826
+ this.logger(`[session] bridged tool ${args.toolName} refused, unbounded_time (${args.sessionId})`);
2827
+ return { answered: true, result: toolErrorResult(decision.message) };
2828
+ }
2809
2829
  if (decision.kind === "refuse") {
2810
2830
  this.logger(`[session] bridged tool ${args.toolName} refused, effect unclassified (${args.sessionId})`);
2811
2831
  context.emit({
@@ -3470,7 +3490,7 @@ export class SessionEngine {
3470
3490
  this.coalesceDrains.has(sessionId));
3471
3491
  }
3472
3492
  sessionInfo(record) {
3473
- return Object.assign(Object.assign(Object.assign({ id: record.sessionId, channelId: record.channelId, mode: record.mode, purpose: record.purpose === "eval" ? "eval" : "live", dryRun: record.dryRun === true ? true : undefined, auth: record.auth, continuationKey: record.continuationKey }, (record.abs === undefined ? {} : { abs: record.abs })), (record.title === undefined ? {} : { title: record.title })), (record.sdkAgentId === undefined
3493
+ return Object.assign(Object.assign(Object.assign({ id: record.sessionId, channelId: record.channelId, mode: record.mode, purpose: record.purpose === "eval" ? "eval" : "live", dryRun: record.dryRun === true ? true : undefined, asOf: record.asOf, auth: record.auth, continuationKey: record.continuationKey }, (record.abs === undefined ? {} : { abs: record.abs })), (record.title === undefined ? {} : { title: record.title })), (record.sdkAgentId === undefined
3474
3494
  ? {}
3475
3495
  : { sdkAgentId: record.sdkAgentId }));
3476
3496
  }
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Durable hosted-execution run log on the framework file store. **v2 only.**
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
+ * Keys: {@link storageKeys.sessionRun}.
18
+ */
19
+ import type { FileSink } from "../files.js";
20
+ import type { AgentProject } from "../types.js";
21
+ import type { HostedExecutionDiagAbortReason } from "./hosted-execution-diag.js";
22
+ import type { LogRingEntry } from "./log-ring.js";
23
+ export declare const SESSION_RUN_LOG_VERSION = 1;
24
+ /** Last N log-ring lines kept on each execution. */
25
+ export declare const SESSION_RUN_LOG_MAX_ENTRIES = 200;
26
+ /** Per-line cap so a runaway logger cannot blow the document. */
27
+ export declare const SESSION_RUN_LOG_MAX_LINE_CHARS = 4096;
28
+ /** Continuations are FIFO; keep a bounded history for the session UI. */
29
+ export declare const SESSION_RUN_LOG_MAX_EXECUTIONS = 20;
30
+ /** Crash-handler flush must not block `process.exit`. */
31
+ export declare const SESSION_RUN_FATAL_FLUSH_TIMEOUT_MS = 2000;
32
+ export type SessionRunAbortReason = HostedExecutionDiagAbortReason | "process_exit" | "uncaught_exception" | "unhandled_rejection";
33
+ export type SessionRunLogError = {
34
+ name: string;
35
+ message: string;
36
+ stack?: string;
37
+ };
38
+ export type SessionRunExecution = {
39
+ executionId: string;
40
+ writtenAt: string;
41
+ sessionId: string;
42
+ turnStatus: string;
43
+ durationMs: number;
44
+ abortReason?: SessionRunAbortReason;
45
+ message?: string;
46
+ error?: SessionRunLogError;
47
+ /** True when this entry was flushed from a process-death handler. */
48
+ processDeath?: boolean;
49
+ logs: LogRingEntry[];
50
+ };
51
+ /**
52
+ * Latest non-success execution, including leftover `running` after the
53
+ * process died without a terminal persist (SIGKILL / OOM). Undefined when
54
+ * the latest execution `turnStatus` is `finished`.
55
+ */
56
+ export type SessionRunLastFailure = {
57
+ executionId: string;
58
+ writtenAt: string;
59
+ turnStatus: string;
60
+ abortReason?: SessionRunAbortReason;
61
+ message?: string;
62
+ error?: SessionRunLogError;
63
+ processDeath?: boolean;
64
+ };
65
+ /** One document per factory session. The customer UI reads this object. */
66
+ export type SessionRunLogDocument = {
67
+ v: typeof SESSION_RUN_LOG_VERSION;
68
+ sessionPublicId: string;
69
+ updatedAt: string;
70
+ lastFailure?: SessionRunLastFailure;
71
+ executions: SessionRunExecution[];
72
+ };
73
+ /** Persist input: one execution upserted into the session document. */
74
+ export type SessionRunExecutionWrite = SessionRunExecution & {
75
+ sessionPublicId: string;
76
+ };
77
+ export interface SessionRunLogStore {
78
+ persist(write: SessionRunExecutionWrite): Promise<void>;
79
+ read(sessionPublicId: string): Promise<SessionRunLogDocument | undefined>;
80
+ /**
81
+ * Upgrade the in-flight `running` claim to a terminal process-death
82
+ * entry. No-op when no execution is active (already terminal, or never
83
+ * started). Soft-fail.
84
+ */
85
+ flushProcessDeath(reason: Extract<SessionRunAbortReason, "process_exit" | "uncaught_exception" | "unhandled_rejection">, error?: unknown): Promise<void>;
86
+ }
87
+ /**
88
+ * Install the crash-handler flush used by `bin/agent-serve` on
89
+ * `uncaughtException`. One process, one active hosted serve.
90
+ */
91
+ export declare function registerSessionRunFatalFlush(flush: (error: unknown) => Promise<void>): void;
92
+ export declare function unregisterSessionRunFatalFlush(): void;
93
+ /**
94
+ * Await the registered crash flush, bounded so a hung store cannot prevent
95
+ * `process.exit`. Soft-fail.
96
+ */
97
+ export declare function flushSessionRunFatal(error: unknown): Promise<void>;
98
+ export declare function serializeSessionRunError(error: unknown): SessionRunLogError;
99
+ export declare function snapshotSessionRunLogs(entries: readonly LogRingEntry[]): LogRingEntry[];
100
+ export declare function lastFailureFromExecutions(executions: readonly SessionRunExecution[]): SessionRunLastFailure | undefined;
101
+ export declare function parseSessionRunLogDocument(value: unknown): SessionRunLogDocument | undefined;
102
+ export declare function createSessionRunLogStore(input: {
103
+ sink: FileSink;
104
+ agentName: string;
105
+ logger?: (line: string) => void;
106
+ snapshotLogs?: () => readonly LogRingEntry[];
107
+ }): SessionRunLogStore;
108
+ /**
109
+ * Same selection as the conversation mirror: architecture-v2 hosted
110
+ * engines (generation env set). Store ids resolve lazily from env or the
111
+ * task-bind files under `/run/cursor/secrets`. Self-hosted and v1 stay on
112
+ * local disk / today's behavior.
113
+ */
114
+ export declare function selectSessionRunLogStore(input: {
115
+ project: AgentProject;
116
+ logger?: (line: string) => void;
117
+ env?: Record<string, string | undefined>;
118
+ snapshotLogs?: () => readonly LogRingEntry[];
119
+ }): SessionRunLogStore | undefined;
120
+ //# sourceMappingURL=session-run-log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-run-log.d.ts","sourceRoot":"","sources":["../../src/internal/session-run-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAM5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,oDAAoD;AACpD,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,iEAAiE;AACjE,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,yEAAyE;AAC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