@cursor/july 0.1.99 → 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 (267) hide show
  1. package/AGENTS.md +4 -2
  2. package/dist/channels/github/defaults.d.ts.map +1 -1
  3. package/dist/channels/github/defaults.js +28 -3
  4. package/dist/channels/github/progress.d.ts +7 -0
  5. package/dist/channels/github/progress.d.ts.map +1 -1
  6. package/dist/channels/slack/api.d.ts +16 -7
  7. package/dist/channels/slack/api.d.ts.map +1 -1
  8. package/dist/channels/slack/api.js +29 -13
  9. package/dist/channels/slack/constants.d.ts +6 -0
  10. package/dist/channels/slack/constants.d.ts.map +1 -1
  11. package/dist/channels/slack/constants.js +6 -0
  12. package/dist/channels/slack/defaults.d.ts +9 -4
  13. package/dist/channels/slack/defaults.d.ts.map +1 -1
  14. package/dist/channels/slack/defaults.js +154 -76
  15. package/dist/channels/slack/dispatch.d.ts.map +1 -1
  16. package/dist/channels/slack/dispatch.js +3 -3
  17. package/dist/channels/slack/inbound.d.ts +9 -0
  18. package/dist/channels/slack/inbound.d.ts.map +1 -1
  19. package/dist/channels/slack/inbound.js +14 -0
  20. package/dist/channels/slack/index.d.ts +1 -0
  21. package/dist/channels/slack/index.d.ts.map +1 -1
  22. package/dist/channels/slack/index.js +1 -0
  23. package/dist/channels/slack/live-delivery.d.ts +5 -0
  24. package/dist/channels/slack/live-delivery.d.ts.map +1 -1
  25. package/dist/channels/slack/live-delivery.js +107 -19
  26. package/dist/channels/slack/reasoning-card.d.ts +38 -0
  27. package/dist/channels/slack/reasoning-card.d.ts.map +1 -0
  28. package/dist/channels/slack/reasoning-card.js +104 -0
  29. package/dist/channels/slack/redact.d.ts +2 -0
  30. package/dist/channels/slack/redact.d.ts.map +1 -0
  31. package/dist/channels/slack/redact.js +5 -0
  32. package/dist/channels/slack/reply-options.d.ts +40 -0
  33. package/dist/channels/slack/reply-options.d.ts.map +1 -0
  34. package/dist/channels/slack/reply-options.js +150 -0
  35. package/dist/channels/slack/slack-channel.d.ts.map +1 -1
  36. package/dist/channels/slack/slack-channel.js +8 -4
  37. package/dist/channels/slack/stream.d.ts +22 -10
  38. package/dist/channels/slack/stream.d.ts.map +1 -1
  39. package/dist/channels/slack/stream.js +9 -16
  40. package/dist/channels/slack/tool-cards.d.ts +22 -0
  41. package/dist/channels/slack/tool-cards.d.ts.map +1 -0
  42. package/dist/channels/slack/tool-cards.js +178 -0
  43. package/dist/channels/slack/types.d.ts +145 -6
  44. package/dist/channels/slack/types.d.ts.map +1 -1
  45. package/dist/docs/404.html +2 -2
  46. package/dist/docs/ab.html +6 -6
  47. package/dist/docs/ab.md +1 -1
  48. package/dist/docs/assets/{ab.md.DJo5r4R-.js → ab.md.mlVgqvSk.js} +1 -1
  49. package/dist/docs/assets/{app.BplEAZ3S.js → app.DZ1e0Ycq.js} +1 -1
  50. package/dist/docs/assets/{building-with-agents.md.DI4mEzlt.js → building-with-agents.md.CUSWxlP_.js} +2 -2
  51. package/dist/docs/assets/chunks/@localSearchIndexroot.j70vvPL4.js +1 -0
  52. package/dist/docs/assets/chunks/{VPLocalSearchBox.CHXyv4wP.js → VPLocalSearchBox.l8omwc6D.js} +1 -1
  53. package/dist/docs/assets/chunks/{theme.BTcsZmjQ.js → theme.JVcD6gel.js} +2 -2
  54. package/dist/docs/assets/{evals.md.lfJoEVc8.js → evals.md.CPzDAwoH.js} +1 -1
  55. package/dist/docs/assets/{guides_github.md.Cnh2mL4a.js → guides_github.md.BtPr9GaP.js} +1 -1
  56. package/dist/docs/assets/{guides_mcp-oauth.md.CN-6YmTJ.js → guides_mcp-oauth.md.Dp6cDP7f.js} +1 -1
  57. package/dist/docs/assets/{guides_opentelemetry.md.bmPmkvJu.js → guides_opentelemetry.md.BVTXDCRg.js} +2 -2
  58. package/dist/docs/assets/{guides_slack.md.VDXQV3ja.js → guides_slack.md.9oHPye9o.js} +19 -3
  59. package/dist/docs/assets/{guides_slack.md.VDXQV3ja.lean.js → guides_slack.md.9oHPye9o.lean.js} +1 -1
  60. package/dist/docs/assets/hillclimbing.md.CpTGTCle.js +4 -0
  61. package/dist/docs/assets/{index.md.CVeRUOeZ.js → index.md.Bb4k8kUm.js} +1 -1
  62. package/dist/docs/assets/{quickstart.md.Nj_LjW_a.js → quickstart.md.DdQOF7Y8.js} +1 -1
  63. package/dist/docs/assets/{reference_connections.md.DxldvyIB.js → reference_connections.md.BiGoBAk2.js} +1 -1
  64. package/dist/docs/assets/scaffolding-agents.md.em43xlY1.js +1 -0
  65. package/dist/docs/assets/skills_ab.md.CsFNatVx.js +26 -0
  66. package/dist/docs/assets/skills_ab.md.CsFNatVx.lean.js +1 -0
  67. package/dist/docs/assets/skills_create-agent.md.BVoWPcan.js +8 -0
  68. package/dist/docs/assets/skills_create-agent.md.BVoWPcan.lean.js +1 -0
  69. package/dist/docs/assets/skills_debug.md.CDbPhHfg.js +1 -0
  70. package/dist/docs/assets/skills_debug.md.CDbPhHfg.lean.js +1 -0
  71. package/dist/docs/assets/skills_evals.md.723kpUmA.js +25 -0
  72. package/dist/docs/assets/skills_evals.md.723kpUmA.lean.js +1 -0
  73. package/dist/docs/assets/skills_framework-map.md.BTi817yv.js +1 -0
  74. package/dist/docs/assets/skills_framework-map.md.BTi817yv.lean.js +1 -0
  75. package/dist/docs/assets/skills_github.md.D0JahM8c.js +16 -0
  76. package/dist/docs/assets/skills_github.md.D0JahM8c.lean.js +1 -0
  77. package/dist/docs/assets/skills_hillclimb.md.B_zJerxA.js +7 -0
  78. package/dist/docs/assets/skills_hillclimb.md.B_zJerxA.lean.js +1 -0
  79. package/dist/docs/assets/skills_index.md.DKwIxzGg.js +1 -0
  80. package/dist/docs/assets/skills_index.md.DKwIxzGg.lean.js +1 -0
  81. package/dist/docs/assets/skills_mcp-auth.md.DGvFP3HE.js +18 -0
  82. package/dist/docs/assets/skills_mcp-auth.md.DGvFP3HE.lean.js +1 -0
  83. package/dist/docs/assets/skills_otel.md.CgiZryR3.js +8 -0
  84. package/dist/docs/assets/skills_otel.md.CgiZryR3.lean.js +1 -0
  85. package/dist/docs/assets/skills_setup-slack.md.BBgx8lUz.js +20 -0
  86. package/dist/docs/assets/skills_setup-slack.md.BBgx8lUz.lean.js +1 -0
  87. package/dist/docs/assets/{troubleshooting.md.DCiPBhYs.js → troubleshooting.md.Cus_YZga.js} +1 -1
  88. package/dist/docs/building-with-agents.html +6 -6
  89. package/dist/docs/building-with-agents.md +14 -11
  90. package/dist/docs/concepts.html +4 -4
  91. package/dist/docs/deployment.html +4 -4
  92. package/dist/docs/evals.html +6 -6
  93. package/dist/docs/evals.md +1 -1
  94. package/dist/docs/guides/agent-to-agent.html +4 -4
  95. package/dist/docs/guides/cloud-runtime.html +4 -4
  96. package/dist/docs/guides/convert-automation.html +4 -4
  97. package/dist/docs/guides/github.html +5 -5
  98. package/dist/docs/guides/github.md +1 -1
  99. package/dist/docs/guides/human-in-the-loop.html +4 -4
  100. package/dist/docs/guides/mcp-oauth.html +5 -5
  101. package/dist/docs/guides/mcp-oauth.md +1 -1
  102. package/dist/docs/guides/opentelemetry.html +7 -7
  103. package/dist/docs/guides/opentelemetry.md +2 -2
  104. package/dist/docs/guides/slack.html +22 -6
  105. package/dist/docs/guides/slack.md +80 -1
  106. package/dist/docs/guides/webhooks.html +5 -5
  107. package/dist/docs/hashmap.json +1 -1
  108. package/dist/docs/hillclimbing.html +6 -6
  109. package/dist/docs/hillclimbing.md +5 -5
  110. package/dist/docs/index.html +6 -6
  111. package/dist/docs/index.md +1 -1
  112. package/dist/docs/llms-full.txt +1041 -30
  113. package/dist/docs/llms.txt +14 -0
  114. package/dist/docs/quickstart.html +5 -5
  115. package/dist/docs/quickstart.md +1 -1
  116. package/dist/docs/reference/agent-config.html +4 -4
  117. package/dist/docs/reference/artifacts.html +4 -4
  118. package/dist/docs/reference/channels.html +4 -4
  119. package/dist/docs/reference/cli.html +4 -4
  120. package/dist/docs/reference/connections.html +6 -6
  121. package/dist/docs/reference/connections.md +1 -1
  122. package/dist/docs/reference/hooks.html +4 -4
  123. package/dist/docs/reference/http-api.html +4 -4
  124. package/dist/docs/reference/instructions.html +4 -4
  125. package/dist/docs/reference/playground.html +4 -4
  126. package/dist/docs/reference/project-layout.html +4 -4
  127. package/dist/docs/reference/prompt.html +4 -4
  128. package/dist/docs/reference/schedules.html +4 -4
  129. package/dist/docs/reference/sessions.html +4 -4
  130. package/dist/docs/reference/skills.html +4 -4
  131. package/dist/docs/reference/subagents.html +4 -4
  132. package/dist/docs/reference/tools.html +4 -4
  133. package/dist/docs/scaffolding-agents.html +5 -5
  134. package/dist/docs/scaffolding-agents.md +3 -3
  135. package/dist/docs/skills/ab.html +52 -0
  136. package/dist/docs/skills/ab.md +50 -0
  137. package/dist/docs/skills/create-agent.html +34 -0
  138. package/dist/docs/skills/create-agent.md +160 -0
  139. package/dist/docs/skills/debug.html +27 -0
  140. package/dist/docs/skills/debug.md +36 -0
  141. package/dist/docs/skills/evals.html +51 -0
  142. package/dist/docs/skills/evals.md +99 -0
  143. package/dist/docs/skills/framework-map.html +27 -0
  144. package/dist/docs/skills/framework-map.md +95 -0
  145. package/dist/docs/skills/github.html +42 -0
  146. package/dist/docs/skills/github.md +93 -0
  147. package/dist/docs/skills/hillclimb.html +33 -0
  148. package/dist/docs/skills/hillclimb.md +55 -0
  149. package/dist/docs/skills/index.html +27 -0
  150. package/dist/docs/skills/index.md +21 -0
  151. package/dist/docs/skills/mcp-auth.html +44 -0
  152. package/dist/docs/skills/mcp-auth.md +76 -0
  153. package/dist/docs/skills/otel.html +34 -0
  154. package/dist/docs/skills/otel.md +48 -0
  155. package/dist/docs/skills/setup-slack.html +46 -0
  156. package/dist/docs/skills/setup-slack.md +141 -0
  157. package/dist/docs/storage.html +4 -4
  158. package/dist/docs/templates/agentic-owners.html +4 -4
  159. package/dist/docs/templates/agents-md.html +4 -4
  160. package/dist/docs/templates/code-wiki.html +4 -4
  161. package/dist/docs/templates/demo.html +4 -4
  162. package/dist/docs/templates/pr-autofixer.html +4 -4
  163. package/dist/docs/templates/security-help.html +4 -4
  164. package/dist/docs/templates/security-reviewer.html +4 -4
  165. package/dist/docs/templates/triage.html +4 -4
  166. package/dist/docs/troubleshooting.html +5 -5
  167. package/dist/docs/troubleshooting.md +1 -1
  168. package/dist/files-backends/cursor-hosted.d.ts +6 -0
  169. package/dist/files-backends/cursor-hosted.d.ts.map +1 -1
  170. package/dist/files-backends/cursor-hosted.js +6 -9
  171. package/dist/internal/cli-deploy.js +2 -2
  172. package/dist/internal/conversation-mirror.d.ts.map +1 -1
  173. package/dist/internal/conversation-mirror.js +3 -4
  174. package/dist/internal/cursor/hosted-store-secrets.d.ts +15 -0
  175. package/dist/internal/cursor/hosted-store-secrets.d.ts.map +1 -0
  176. package/dist/internal/cursor/hosted-store-secrets.js +48 -0
  177. package/dist/internal/deploy-client.d.ts +6 -6
  178. package/dist/internal/deploy-client.js +7 -7
  179. package/dist/internal/discovery.d.ts.map +1 -1
  180. package/dist/internal/discovery.js +11 -1
  181. package/dist/internal/framework-file-storage.d.ts +12 -5
  182. package/dist/internal/framework-file-storage.d.ts.map +1 -1
  183. package/dist/internal/framework-file-storage.js +36 -5
  184. package/dist/internal/framework-storage-selection.d.ts +12 -12
  185. package/dist/internal/framework-storage-selection.d.ts.map +1 -1
  186. package/dist/internal/framework-storage-selection.js +33 -39
  187. package/dist/internal/session-run-log.d.ts +3 -3
  188. package/dist/internal/session-run-log.d.ts.map +1 -1
  189. package/dist/internal/session-run-log.js +6 -7
  190. package/dist/internal/storage-coordinator.d.ts +0 -6
  191. package/dist/internal/storage-coordinator.d.ts.map +1 -1
  192. package/dist/internal/storage-coordinator.js +1 -9
  193. package/dist/playground/assets/index-BszoQDc6.css +1 -0
  194. package/dist/playground/assets/{index-jzNbJENa.js → index-DVs98vPL.js} +1 -1
  195. package/dist/playground/index.html +2 -2
  196. package/dist/storage-backends/cursor-hosted-v2.d.ts +83 -0
  197. package/dist/storage-backends/cursor-hosted-v2.d.ts.map +1 -0
  198. package/dist/storage-backends/cursor-hosted-v2.js +164 -0
  199. package/dist/storage-backends/cursor-hosted.d.ts +6 -0
  200. package/dist/storage-backends/cursor-hosted.d.ts.map +1 -1
  201. package/dist/storage-backends/cursor-hosted.js +6 -1
  202. package/dist/types.d.ts +5 -0
  203. package/dist/types.d.ts.map +1 -1
  204. package/docs/README.md +1 -1
  205. package/docs/ab.md +1 -1
  206. package/docs/building-with-agents.md +14 -11
  207. package/docs/evals.md +1 -1
  208. package/docs/guides/github.md +1 -1
  209. package/docs/guides/mcp-oauth.md +1 -1
  210. package/docs/guides/opentelemetry.md +2 -2
  211. package/docs/guides/slack.md +80 -1
  212. package/docs/hillclimbing.md +5 -5
  213. package/docs/quickstart.md +1 -1
  214. package/docs/reference/connections.md +1 -1
  215. package/docs/scaffolding-agents.md +3 -3
  216. package/docs/skills/index.md +26 -0
  217. package/docs/troubleshooting.md +1 -1
  218. package/package.json +1 -1
  219. package/src/channels/github/defaults.ts +36 -3
  220. package/src/channels/github/progress.ts +7 -0
  221. package/src/channels/slack/api.ts +35 -17
  222. package/src/channels/slack/constants.ts +6 -0
  223. package/src/channels/slack/defaults.ts +173 -92
  224. package/src/channels/slack/dispatch.ts +8 -1
  225. package/src/channels/slack/inbound.ts +17 -0
  226. package/src/channels/slack/index.ts +1 -0
  227. package/src/channels/slack/live-delivery.ts +131 -20
  228. package/src/channels/slack/reasoning-card.ts +140 -0
  229. package/src/channels/slack/redact.ts +6 -0
  230. package/src/channels/slack/reply-options.ts +229 -0
  231. package/src/channels/slack/slack-channel.ts +7 -2
  232. package/src/channels/slack/stream.ts +31 -24
  233. package/src/channels/slack/tool-cards.ts +221 -0
  234. package/src/channels/slack/types.ts +159 -6
  235. package/src/files-backends/cursor-hosted.ts +15 -5
  236. package/src/internal/cli-deploy.ts +2 -2
  237. package/src/internal/conversation-mirror.ts +3 -8
  238. package/src/internal/cursor/hosted-store-secrets.ts +72 -0
  239. package/src/internal/deploy-client.ts +10 -10
  240. package/src/internal/discovery.ts +9 -1
  241. package/src/internal/framework-file-storage.ts +41 -5
  242. package/src/internal/framework-storage-selection.ts +31 -44
  243. package/src/internal/session-run-log.ts +6 -11
  244. package/src/internal/storage-coordinator.ts +1 -11
  245. package/src/storage-backends/cursor-hosted-v2.ts +219 -0
  246. package/src/storage-backends/cursor-hosted.ts +6 -1
  247. package/src/types.ts +5 -0
  248. package/dist/docs/assets/chunks/@localSearchIndexroot.DpuI4i7Z.js +0 -1
  249. package/dist/docs/assets/hillclimbing.md.DhESf3OO.js +0 -4
  250. package/dist/docs/assets/scaffolding-agents.md.D7UUkWw0.js +0 -1
  251. package/dist/internal/null-kv-storage.d.ts +0 -48
  252. package/dist/internal/null-kv-storage.d.ts.map +0 -1
  253. package/dist/internal/null-kv-storage.js +0 -58
  254. package/dist/playground/assets/index-D7rGZNjy.css +0 -1
  255. package/src/internal/null-kv-storage.ts +0 -74
  256. /package/dist/docs/assets/{ab.md.DJo5r4R-.lean.js → ab.md.mlVgqvSk.lean.js} +0 -0
  257. /package/dist/docs/assets/{building-with-agents.md.DI4mEzlt.lean.js → building-with-agents.md.CUSWxlP_.lean.js} +0 -0
  258. /package/dist/docs/assets/{evals.md.lfJoEVc8.lean.js → evals.md.CPzDAwoH.lean.js} +0 -0
  259. /package/dist/docs/assets/{guides_github.md.Cnh2mL4a.lean.js → guides_github.md.BtPr9GaP.lean.js} +0 -0
  260. /package/dist/docs/assets/{guides_mcp-oauth.md.CN-6YmTJ.lean.js → guides_mcp-oauth.md.Dp6cDP7f.lean.js} +0 -0
  261. /package/dist/docs/assets/{guides_opentelemetry.md.bmPmkvJu.lean.js → guides_opentelemetry.md.BVTXDCRg.lean.js} +0 -0
  262. /package/dist/docs/assets/{hillclimbing.md.DhESf3OO.lean.js → hillclimbing.md.CpTGTCle.lean.js} +0 -0
  263. /package/dist/docs/assets/{index.md.CVeRUOeZ.lean.js → index.md.Bb4k8kUm.lean.js} +0 -0
  264. /package/dist/docs/assets/{quickstart.md.Nj_LjW_a.lean.js → quickstart.md.DdQOF7Y8.lean.js} +0 -0
  265. /package/dist/docs/assets/{reference_connections.md.DxldvyIB.lean.js → reference_connections.md.BiGoBAk2.lean.js} +0 -0
  266. /package/dist/docs/assets/{scaffolding-agents.md.D7UUkWw0.lean.js → scaffolding-agents.md.em43xlY1.lean.js} +0 -0
  267. /package/dist/docs/assets/{troubleshooting.md.DCiPBhYs.lean.js → troubleshooting.md.Cus_YZga.lean.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Thin client for the Agent Serve deployment management API
3
3
  * (`/internal/agent-serve/deployments` on the Cursor backend) and the v2
4
- * AgentSDK accept path (`/internal/agentkit/deployments`). Pure
4
+ * AgentSDK accept path (`/internal/agentsdk/deployments`). Pure
5
5
  * request/response + error mapping — no console I/O, no polling loops;
6
6
  * rendering lives in `cli-deploy.ts`.
7
7
  *
@@ -303,7 +303,7 @@ export class AgentServeDeployClient {
303
303
  }
304
304
  /**
305
305
  * Create or redeploy onto the v2 control plane
306
- * (`POST /internal/agentkit/deployments`). 202 means accepted; poll
306
+ * (`POST /internal/agentsdk/deployments`). 202 means accepted; poll
307
307
  * {@link getAgentkitDeploy} until a terminal status. `components` deploys
308
308
  * one application with several release components (one per agent
309
309
  * directory); it is mutually exclusive with `agentPath`.
@@ -323,7 +323,7 @@ export class AgentServeDeployClient {
323
323
  }
324
324
  const raw = yield this.request({
325
325
  method: "POST",
326
- path: "/internal/agentkit/deployments",
326
+ path: "/internal/agentsdk/deployments",
327
327
  body: Object.assign({ teamId: args.teamId, slug: args.slug, gitRepoUrl: args.gitRepoUrl, gitRef: args.gitRef, agentPath: args.agentPath, components: args.components, repositories: args.repositories !== undefined && args.repositories.length > 0
328
328
  ? args.repositories
329
329
  : undefined }, (args.multiTenant === true ? { multiTenant: true } : {})),
@@ -336,21 +336,21 @@ export class AgentServeDeployClient {
336
336
  return __awaiter(this, void 0, void 0, function* () {
337
337
  const raw = yield this.request({
338
338
  method: "GET",
339
- path: `/internal/agentkit/deployments/${encodeURIComponent(args.slug)}?teamId=${args.teamId}`,
339
+ path: `/internal/agentsdk/deployments/${encodeURIComponent(args.slug)}?teamId=${args.teamId}`,
340
340
  context: { verb: "get deployment", slug: args.slug },
341
341
  });
342
342
  return agentkitDeployStatusSchema.parse(raw);
343
343
  });
344
344
  }
345
345
  /**
346
- * Stop a v2 deployment (`POST /internal/agentkit/deployments/:slug/stop`).
346
+ * Stop a v2 deployment (`POST /internal/agentsdk/deployments/:slug/stop`).
347
347
  * 202 means accepted; poll {@link getAgentkitDeploy} until `stopped`.
348
348
  */
349
349
  stopAgentkit(args) {
350
350
  return __awaiter(this, void 0, void 0, function* () {
351
351
  const raw = yield this.request({
352
352
  method: "POST",
353
- path: `/internal/agentkit/deployments/${encodeURIComponent(args.slug)}/stop?teamId=${args.teamId}`,
353
+ path: `/internal/agentsdk/deployments/${encodeURIComponent(args.slug)}/stop?teamId=${args.teamId}`,
354
354
  context: { verb: "stop", slug: args.slug },
355
355
  });
356
356
  return agentkitStopAcceptedSchema.parse(raw);
@@ -596,7 +596,7 @@ function mapErrorResponse(response, bodyText, context) {
596
596
  // Fastify's route-not-found envelope means we hit the wrong host
597
597
  // (api2 vs api.cursor.com), not a missing deployment / closed gate.
598
598
  if (/Route \S+ not found/i.test(bodyText)) {
599
- return new DeployApiError(`Agent Serve deploy API not found on this host — use the default api.cursor.com (unset CURSOR_API_BASE_URL), or point CURSOR_API_BASE_URL at a backend that mounts /internal/agent-serve/* and /internal/agentkit/*.`, 404);
599
+ return new DeployApiError(`Agent Serve deploy API not found on this host — use the default api.cursor.com (unset CURSOR_API_BASE_URL), or point CURSOR_API_BASE_URL at a backend that mounts /internal/agent-serve/* and /internal/agentsdk/*.`, 404);
600
600
  }
601
601
  return new DeployApiError(context.slug === undefined
602
602
  ? `Not found — the agent_serve_mvp feature gate may not be enabled for your team.`
@@ -1 +1 @@
1
- {"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/internal/discovery.ts"],"names":[],"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AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC,CA6BzD;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAAuB,GAAG;IACjC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACtB,GACL,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC,CAgBzD;AAWD,iFAAiF;AACjF,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,MAAM,CAIrC,CAAC;AAEH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,YAAY,CAAC,CA0EvB;AAED,qEAAqE;AACrE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAElE;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,CAOnE;AAyOD,wBAAgB,qCAAqC,CAAC,KAAK,EAAE;IAC3D,OAAO,EAAE,YAAY,CAAC;IACtB,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC,GAAG,MAAM,GAAG,SAAS,CAIrB;AA6nBD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAiB3E;AA6iCD,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,gBAAgB,CAgKnE"}
@@ -1464,6 +1464,8 @@ function warnCloudRuntimeLimitations(ctx, agentDir, counts) {
1464
1464
  // ============================================================================
1465
1465
  function loadChannels(ctx, channelsDir) {
1466
1466
  return __awaiter(this, void 0, void 0, function* () {
1467
+ var _a;
1468
+ var _b;
1467
1469
  const channels = [];
1468
1470
  let httpChannelDefinition;
1469
1471
  if (!(yield isDirectory(channelsDir))) {
@@ -1526,7 +1528,15 @@ function loadChannels(ctx, channelsDir) {
1526
1528
  });
1527
1529
  continue;
1528
1530
  }
1529
- channels.push({ id, definition: mod.default });
1531
+ const definition = mod.default;
1532
+ for (const notice of (_b = (_a = definition.meta) === null || _a === void 0 ? void 0 : _a.deprecations) !== null && _b !== void 0 ? _b : []) {
1533
+ ctx.diagnostics.push({
1534
+ severity: "warning",
1535
+ path: displayPath(ctx, entryPath),
1536
+ message: notice,
1537
+ });
1538
+ }
1539
+ channels.push({ id, definition });
1530
1540
  }
1531
1541
  return { channels, httpChannelDefinition };
1532
1542
  });
@@ -42,14 +42,21 @@ export declare function fileSinkStorageCore(sink: FileSink): FileSinkStorageCore
42
42
  * Split one storage core by key kind: framework session state to `files`,
43
43
  * everything else to `kv`. Spread over the KV backend when building the
44
44
  * full definition so its `evals` / `abs` groups (and the cursor-hosted
45
- * marker) ride along untouched. A KV `cas` group must not be spread as-is:
46
- * conditional writes run on a KV database row, so one over a `session/` or
47
- * `continuation/` key would read and write a different store than the
48
- * routed plain core — silent split-brain. Nothing in the package CASes
49
- * those kinds today.
45
+ * marker) ride along untouched; wrap the KV `cas` group with
46
+ * {@link frameworkGuardedCas} rather than spreading it as-is.
50
47
  */
51
48
  export declare function composeFrameworkStorage(input: {
52
49
  kv: FileSinkStorageCore;
53
50
  files: FileSinkStorageCore;
54
51
  }): FileSinkStorageCore & Pick<StorageConfig, "listNewest">;
52
+ /**
53
+ * The KV backend's conditional writes, refusing framework-file keys.
54
+ *
55
+ * CAS runs on the KV proxy (a database row version); the plain core routes
56
+ * framework session state to the file store. A future coordination path
57
+ * that CASes a `session/` or `continuation/` key would otherwise read and
58
+ * write a different store than the plain path — silent split-brain. Fail
59
+ * loudly instead; nothing in the package CASes those kinds today.
60
+ */
61
+ export declare function frameworkGuardedCas(cas: NonNullable<StorageConfig["cas"]>): NonNullable<StorageConfig["cas"]>;
55
62
  //# sourceMappingURL=framework-file-storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framework-file-storage.d.ts","sourceRoot":"","sources":["../../src/internal/framework-file-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,eAAe,CAAC;AAgBjE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAavD;AAED,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CACxC,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC,CACvD,CAAC;AA0BF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,GAAG,mBAAmB,CAuDvE;AAcD;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,EAAE,EAAE,mBAAmB,CAAC;IACxB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,GAAG,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,CAe1D"}
1
+ {"version":3,"file":"framework-file-storage.d.ts","sourceRoot":"","sources":["../../src/internal/framework-file-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,eAAe,CAAC;AAgBjE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAavD;AAED,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CACxC,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC,CACvD,CAAC;AA0BF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,GAAG,mBAAmB,CAuDvE;AAcD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,EAAE,EAAE,mBAAmB,CAAC;IACxB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,GAAG,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,CAe1D;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GACrC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CA0BnC"}
@@ -158,11 +158,8 @@ function decodeDocument(key, bytes) {
158
158
  * Split one storage core by key kind: framework session state to `files`,
159
159
  * everything else to `kv`. Spread over the KV backend when building the
160
160
  * full definition so its `evals` / `abs` groups (and the cursor-hosted
161
- * marker) ride along untouched. A KV `cas` group must not be spread as-is:
162
- * conditional writes run on a KV database row, so one over a `session/` or
163
- * `continuation/` key would read and write a different store than the
164
- * routed plain core — silent split-brain. Nothing in the package CASes
165
- * those kinds today.
161
+ * marker) ride along untouched; wrap the KV `cas` group with
162
+ * {@link frameworkGuardedCas} rather than spreading it as-is.
166
163
  */
167
164
  export function composeFrameworkStorage(input) {
168
165
  const route = (key) => isFrameworkFileKey(key) ? input.files : input.kv;
@@ -179,3 +176,37 @@ export function composeFrameworkStorage(input) {
179
176
  listNewest: undefined,
180
177
  };
181
178
  }
179
+ /**
180
+ * The KV backend's conditional writes, refusing framework-file keys.
181
+ *
182
+ * CAS runs on the KV proxy (a database row version); the plain core routes
183
+ * framework session state to the file store. A future coordination path
184
+ * that CASes a `session/` or `continuation/` key would otherwise read and
185
+ * write a different store than the plain path — silent split-brain. Fail
186
+ * loudly instead; nothing in the package CASes those kinds today.
187
+ */
188
+ export function frameworkGuardedCas(cas) {
189
+ const refuse = (key) => {
190
+ if (isFrameworkFileKey(key)) {
191
+ throw new Error(`framework file storage: conditional writes are KV-only, but "${key}" routes to the framework file store`);
192
+ }
193
+ };
194
+ return {
195
+ getWithVersion: (key, ctx) => {
196
+ refuse(key);
197
+ return cas.getWithVersion(key, ctx);
198
+ },
199
+ putIfAbsent: (key, value, ctx) => {
200
+ refuse(key);
201
+ return cas.putIfAbsent(key, value, ctx);
202
+ },
203
+ putIfVersion: (key, value, expectedVersion, ctx) => {
204
+ refuse(key);
205
+ return cas.putIfVersion(key, value, expectedVersion, ctx);
206
+ },
207
+ listKeys: (prefix, ctx) => {
208
+ refuse(prefix);
209
+ return cas.listKeys(prefix, ctx);
210
+ },
211
+ };
212
+ }
@@ -18,18 +18,18 @@
18
18
  * - **Cursor-managed hosting** (the deployment-generation environment
19
19
  * variable is set, same signal that registers `GET /v1/manifest`):
20
20
  * the deployment's **framework-level file store**
21
- * (`AGENT_SERVE_FRAMEWORK_STORE_SOURCE_ID`) holds session records, event
22
- * transcripts, and the continuation index — file-shaped state on file
23
- * storage, apart from the author-facing user store. The control-plane KV
24
- * proxy is *not* used: it authorizes by mapping a pod service account to
25
- * a v1 deployment row, which no v2 deployment has, so every call 403s and
26
- * fails the delivery that read it. The KV half is inert until the proxy
27
- * resolves v2 deployments (see null-kv-storage.ts). Without a framework
28
- * store (a deploy predating framework-store provisioning) there is
29
- * nothing left to mirror to, so the state root is again the only copy.
30
- * The API key resolves through the full credential chain on every call
31
- * because hosted freeze snapshots listen unsigned and the binder drops
32
- * the key file after restore.
21
+ * (`AGENT_SERVE_FRAMEWORK_STORE_SOURCE_ID`, bound at task time) holds
22
+ * session records, event transcripts, and the continuation index —
23
+ * file-shaped state on file storage, apart from the author-facing user
24
+ * store. Author `host.kv`, eval runs, A/B samples, and conditional writes
25
+ * ride the AgentSDK v2 KV proxy (cursor-hosted-v2.ts), which resolves the
26
+ * pod service account to the factorydb deployment row (the v1 Bugbot
27
+ * proxy cannot resolve v2 pods at all). Framework session state never
28
+ * routes to the KV proxy the composite splits by key kind — so
29
+ * transcripts stay off the author-reachable KV namespace. The API key
30
+ * resolves through the full credential chain on every call because hosted
31
+ * freeze snapshots listen unsigned and the binder drops the key file
32
+ * after restore.
33
33
  * - **Self-hosted**: no mirror. `--state-root` is the durable copy, which
34
34
  * is correct when the operator owns the disk.
35
35
  *
@@ -1 +1 @@
1
- {"version":3,"file":"framework-storage-selection.d.ts","sourceRoot":"","sources":["../../src/internal/framework-storage-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAMH,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAWrD,MAAM,WAAW,8BAA8B;IAC7C,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACjD,0DAA0D;IAC1D,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtD,iEAAiE;IACjE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACnD;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,8BAA8B,GACpC,iBAAiB,GAAG,SAAS,CAgE/B"}
1
+ {"version":3,"file":"framework-storage-selection.d.ts","sourceRoot":"","sources":["../../src/internal/framework-storage-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAMH,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,MAAM,WAAW,8BAA8B;IAC7C,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACjD,0DAA0D;IAC1D,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtD,iEAAiE;IACjE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACnD;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,8BAA8B,GACpC,iBAAiB,GAAG,SAAS,CAqD/B"}
@@ -18,18 +18,18 @@
18
18
  * - **Cursor-managed hosting** (the deployment-generation environment
19
19
  * variable is set, same signal that registers `GET /v1/manifest`):
20
20
  * the deployment's **framework-level file store**
21
- * (`AGENT_SERVE_FRAMEWORK_STORE_SOURCE_ID`) holds session records, event
22
- * transcripts, and the continuation index — file-shaped state on file
23
- * storage, apart from the author-facing user store. The control-plane KV
24
- * proxy is *not* used: it authorizes by mapping a pod service account to
25
- * a v1 deployment row, which no v2 deployment has, so every call 403s and
26
- * fails the delivery that read it. The KV half is inert until the proxy
27
- * resolves v2 deployments (see null-kv-storage.ts). Without a framework
28
- * store (a deploy predating framework-store provisioning) there is
29
- * nothing left to mirror to, so the state root is again the only copy.
30
- * The API key resolves through the full credential chain on every call
31
- * because hosted freeze snapshots listen unsigned and the binder drops
32
- * the key file after restore.
21
+ * (`AGENT_SERVE_FRAMEWORK_STORE_SOURCE_ID`, bound at task time) holds
22
+ * session records, event transcripts, and the continuation index —
23
+ * file-shaped state on file storage, apart from the author-facing user
24
+ * store. Author `host.kv`, eval runs, A/B samples, and conditional writes
25
+ * ride the AgentSDK v2 KV proxy (cursor-hosted-v2.ts), which resolves the
26
+ * pod service account to the factorydb deployment row (the v1 Bugbot
27
+ * proxy cannot resolve v2 pods at all). Framework session state never
28
+ * routes to the KV proxy the composite splits by key kind — so
29
+ * transcripts stay off the author-reachable KV namespace. The API key
30
+ * resolves through the full credential chain on every call because hosted
31
+ * freeze snapshots listen unsigned and the binder drops the key file
32
+ * after restore.
33
33
  * - **Self-hosted**: no mirror. `--state-root` is the durable copy, which
34
34
  * is correct when the operator owns the disk.
35
35
  *
@@ -43,12 +43,10 @@
43
43
  */
44
44
  import { cursorFrameworkStoreSourceId, cursorHostedFiles, } from "../files-backends/cursor-hosted.js";
45
45
  import { defineStorage } from "../storage.js";
46
- import { CURSOR_HOSTED_STORAGE } from "../storage-backends/cursor-hosted.js";
46
+ import { cursorHostedStorageV2 } from "../storage-backends/cursor-hosted-v2.js";
47
47
  import { resolveApiKeySync } from "./cursor/credentials.js";
48
48
  import { AGENT_SERVE_GENERATION_ENV_VAR } from "./cursor-relay-core.js";
49
- import { composeFrameworkStorage, fileSinkStorageCore, } from "./framework-file-storage.js";
50
- import { nullKvStorage } from "./null-kv-storage.js";
51
- const cursorHostedMarker = { [CURSOR_HOSTED_STORAGE]: true };
49
+ import { composeFrameworkStorage, fileSinkStorageCore, frameworkGuardedCas, } from "./framework-file-storage.js";
52
50
  /**
53
51
  * Pick the backend for framework session state.
54
52
  *
@@ -78,30 +76,26 @@ export function selectFrameworkStorageDefinition(input) {
78
76
  // comes up). Follow-ups restore lazily by continuation or session id;
79
77
  // GET /v1/sessions lists from the sink either way.
80
78
  const policy = { restore: "off" };
81
- const frameworkStoreId = cursorFrameworkStoreSourceId(env);
82
- if (frameworkStoreId === undefined) {
83
- // Nothing to mirror to: the KV proxy rejects v2 service accounts, so a
84
- // definition over it would fail every delivery that reads it. The state
85
- // root is the durable copy, as when self-hosted.
86
- return undefined;
87
- }
88
- // Full chain (env → key file → stored login): frozen engines listen
89
- // unsigned and bind CURSOR_API_KEY_FILE at task time, after this
79
+ const envSnapshot = env;
80
+ // Full chain (env bind file → stored login): frozen engines listen
81
+ // unsigned and bind store ids + CURSOR_API_KEY at task time, after this
90
82
  // definition is constructed.
91
83
  const resolveApiKey = () => { var _a; return (_a = resolveApiKeySync()) === null || _a === void 0 ? void 0 : _a.apiKey; };
92
- // Framework session state on the framework-level file store, which
93
- // authorizes by store source id and so works for v2. Everything the KV
94
- // proxy used to serve author kv, eval runs, A/B samples, conditional
95
- // writes is inert; `defineStorage` derives the eval/A/B tables over the
96
- // core, which means that bookkeeping reads back empty rather than 403ing.
97
- //
98
- // Restoring `cursorHostedStorage()` here once the proxy resolves v2
99
- // deployments also means restoring the guard its `cas` group needs: a
100
- // conditional write over a `session/` or `continuation/` key would run on
101
- // the KV database while the plain core routes that key to the file store.
102
- const kv = nullKvStorage();
103
- return defineStorage(Object.assign(Object.assign(Object.assign({ name: "cursor-hosted (framework files)", policy }, cursorHostedMarker), kv), composeFrameworkStorage({
84
+ // v2 pods carry a factorydb-bound service account, which the v1 Bugbot
85
+ // storage proxy cannot resolve; author KV, CAS coordination, and the
86
+ // eval/A-B tables speak the AgentSDK v2 KV proxy instead. It also carries
87
+ // the cursor-hosted marker, so GET /v1/sessions prefers the durable list
88
+ // (session records are on the framework store, which the composed core
89
+ // lists).
90
+ const kv = cursorHostedStorageV2({ resolveApiKey });
91
+ return defineStorage(Object.assign(Object.assign(Object.assign({ name: "cursor-hosted (framework files)", policy }, kv), composeFrameworkStorage({
104
92
  kv,
105
- files: fileSinkStorageCore(cursorHostedFiles({ storeSourceId: frameworkStoreId, resolveApiKey })),
106
- })));
93
+ files: fileSinkStorageCore(cursorHostedFiles({
94
+ resolveStoreSourceId: () => cursorFrameworkStoreSourceId(envSnapshot),
95
+ resolveApiKey,
96
+ })),
97
+ })), {
98
+ // CAS stays on the KV proxy but must refuse framework-file keys, or a
99
+ // future coordination path would split-brain against the plain core.
100
+ cas: frameworkGuardedCas(kv.cas) }));
107
101
  }
@@ -107,9 +107,9 @@ export declare function createSessionRunLogStore(input: {
107
107
  }): SessionRunLogStore;
108
108
  /**
109
109
  * Same selection as the conversation mirror: architecture-v2 hosted
110
- * engines with a provisioned framework file store. Self-hosted and v1
111
- * stay on local disk / today's behavior. This is the only path that
112
- * installs the session-run log — v1 never writes these documents.
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
113
  */
114
114
  export declare function selectSessionRunLogStore(input: {
115
115
  project: AgentProject;
@@ -1 +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;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,CAAC;AAE1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,OAAO,CAAC,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B,CACpC,OAAO,EAAE,SAAS,YAAY,EAAE,GAC/B,YAAY,EAAE,CAOhB;AA6FD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,SAAS,mBAAmB,EAAE,GACzC,qBAAqB,GAAG,SAAS,CAgBnC;AAuFD,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,GACb,qBAAqB,GAAG,SAAS,CAkCnC;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,SAAS,YAAY,EAAE,CAAC;CAC9C,GAAG,kBAAkB,CA8GrB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,SAAS,YAAY,EAAE,CAAC;CAC9C,GAAG,kBAAkB,GAAG,SAAS,CAoBjC"}
@@ -335,9 +335,9 @@ export function createSessionRunLogStore(input) {
335
335
  }
336
336
  /**
337
337
  * Same selection as the conversation mirror: architecture-v2 hosted
338
- * engines with a provisioned framework file store. Self-hosted and v1
339
- * stay on local disk / today's behavior. This is the only path that
340
- * installs the session-run log — v1 never writes these documents.
338
+ * engines (generation env set). Store ids resolve lazily from env or the
339
+ * task-bind files under `/run/cursor/secrets`. Self-hosted and v1 stay on
340
+ * local disk / today's behavior.
341
341
  */
342
342
  export function selectSessionRunLogStore(input) {
343
343
  var _a;
@@ -345,13 +345,12 @@ export function selectSessionRunLogStore(input) {
345
345
  return undefined;
346
346
  }
347
347
  const env = (_a = input.env) !== null && _a !== void 0 ? _a : process.env;
348
- const frameworkStoreId = cursorFrameworkStoreSourceId(env);
349
- if (env[AGENT_SERVE_GENERATION_ENV_VAR] === undefined ||
350
- frameworkStoreId === undefined) {
348
+ if (env[AGENT_SERVE_GENERATION_ENV_VAR] === undefined) {
351
349
  return undefined;
352
350
  }
351
+ const envSnapshot = env;
353
352
  return createSessionRunLogStore(Object.assign({ sink: cursorHostedFiles({
354
- storeSourceId: frameworkStoreId,
353
+ resolveStoreSourceId: () => cursorFrameworkStoreSourceId(envSnapshot),
355
354
  resolveApiKey: () => { var _a; return (_a = resolveApiKeySync()) === null || _a === void 0 ? void 0 : _a.apiKey; },
356
355
  }), agentName: input.project.name, logger: input.logger }, (input.snapshotLogs === undefined
357
356
  ? {}
@@ -131,12 +131,6 @@ export declare class StorageCoordinator implements FrameworkSessionStore, Author
131
131
  /**
132
132
  * Whether the sink can serve awaited author reads/writes (`get` is
133
133
  * required — `put` is always present on {@link StorageConfig}).
134
- *
135
- * A sink may keep `get` for framework session state while refusing author
136
- * KV: hosted v2 reads sessions from the framework file store but has no
137
- * working KV backend, and author handlers that cannot read their own
138
- * writes back are better served by the local-disk fallback than by a sink
139
- * that accepts every write and forgets it.
140
134
  */
141
135
  get supportsAuthorKv(): boolean;
142
136
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"storage-coordinator.d.ts","sourceRoot":"","sources":["../../src/internal/storage-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAGvB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE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AC,IAAI,CAAC,CAqB3B;IAED,wEAAwE;IACxE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAExB;IAED,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,WAAW;IAgBnB,2EAA2E;YAC7D,OAAO;IAkBrB,OAAO,CAAC,OAAO;IA8Bf,OAAO,CAAC,OAAO;CAGhB"}
@@ -34,7 +34,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
34
  import { resolveStoragePolicy, storageKeys, } from "../storage.js";
35
35
  import { isCursorHostedStorage } from "../storage-backends/cursor-hosted.js";
36
36
  import { describeError } from "./describe-error.js";
37
- import { isAuthorKvUnsupported } from "./null-kv-storage.js";
38
37
  /** Event types that close a unit of work — flush point for turn-end batching. */
39
38
  const TURN_BOUNDARY_EVENTS = new Set([
40
39
  "turn.completed",
@@ -357,16 +356,9 @@ export class StorageCoordinator {
357
356
  /**
358
357
  * Whether the sink can serve awaited author reads/writes (`get` is
359
358
  * required — `put` is always present on {@link StorageConfig}).
360
- *
361
- * A sink may keep `get` for framework session state while refusing author
362
- * KV: hosted v2 reads sessions from the framework file store but has no
363
- * working KV backend, and author handlers that cannot read their own
364
- * writes back are better served by the local-disk fallback than by a sink
365
- * that accepts every write and forgets it.
366
359
  */
367
360
  get supportsAuthorKv() {
368
- return (this.definition.get !== undefined &&
369
- !isAuthorKvUnsupported(this.definition));
361
+ return this.definition.get !== undefined;
370
362
  }
371
363
  /**
372
364
  * Awaited author KV read. Unlike framework session mirrors, this awaits