@grok/agent-sdk 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/channels/match-ready/index.d.ts +4 -0
  2. package/dist/channels/match-ready/index.d.ts.map +1 -0
  3. package/dist/channels/match-ready/index.js +2 -0
  4. package/dist/channels/match-ready/match-ready-channel.d.ts +5 -0
  5. package/dist/channels/match-ready/match-ready-channel.d.ts.map +1 -0
  6. package/dist/channels/match-ready/match-ready-channel.js +42 -0
  7. package/dist/channels/match-ready/types.d.ts +25 -0
  8. package/dist/channels/match-ready/types.d.ts.map +1 -0
  9. package/dist/channels/match-ready/types.js +1 -0
  10. package/dist/channels/slack/slack-channel.d.ts.map +1 -1
  11. package/dist/channels/slack/slack-channel.js +27 -14
  12. package/dist/docs/404.html +2 -2
  13. package/dist/docs/assets/{app.BzTUBOAD.js → app.CYdjweqP.js} +4 -4
  14. package/dist/docs/assets/{building-with-agents.md.BqJ7AAjG.js → building-with-agents.md.Bo3ct-rf.js} +1 -1
  15. package/dist/docs/assets/changelog.md.BMrJ5WxW.js +1 -0
  16. package/dist/docs/assets/changelog.md.BMrJ5WxW.lean.js +1 -0
  17. package/dist/docs/assets/chunks/@localSearchIndexroot.dUaE1f8e.js +1 -0
  18. package/dist/docs/assets/chunks/{VPLocalSearchBox.DsnRlUT5.js → VPLocalSearchBox.CRATKS9J.js} +1 -1
  19. package/dist/docs/assets/chunks/{arc.DH8GOhiv.js → arc.BxM78ISR.js} +1 -1
  20. package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.9m9ObyuE.js → architectureDiagram-Q4EWVU46.Bi6MuKaU.js} +1 -1
  21. package/dist/docs/assets/chunks/{baseUniq.BXHpx1lE.js → baseUniq.L47qqpDG.js} +1 -1
  22. package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.xY3EX59q.js → blockDiagram-DXYQGD6D.kHFF2FK5.js} +1 -1
  23. package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.DnqgMVgc.js → c4Diagram-AHTNJAMY.BTW85ll3.js} +1 -1
  24. package/dist/docs/assets/chunks/channel.ljJtQtBi.js +1 -0
  25. package/dist/docs/assets/chunks/{chunk-4BX2VUAB.BjFxK2A3.js → chunk-4BX2VUAB.Bbh3_48g.js} +1 -1
  26. package/dist/docs/assets/chunks/{chunk-4TB4RGXK.BujS_Spt.js → chunk-4TB4RGXK.WeAmK3fK.js} +1 -1
  27. package/dist/docs/assets/chunks/{chunk-55IACEB6.YbTjhdaM.js → chunk-55IACEB6.DTdUiVHf.js} +1 -1
  28. package/dist/docs/assets/chunks/{chunk-EDXVE4YY.DnQ8t4GC.js → chunk-EDXVE4YY.n5XzANDz.js} +1 -1
  29. package/dist/docs/assets/chunks/{chunk-FMBD7UC4.B67AwAmj.js → chunk-FMBD7UC4.D51eewCb.js} +1 -1
  30. package/dist/docs/assets/chunks/{chunk-OYMX7WX6.DrZIAFOm.js → chunk-OYMX7WX6.BrY0U7ZV.js} +1 -1
  31. package/dist/docs/assets/chunks/{chunk-QZHKN3VN.BLmmydkn.js → chunk-QZHKN3VN.B0OA4aFV.js} +1 -1
  32. package/dist/docs/assets/chunks/{chunk-YZCP3GAM.DaoOfw0O.js → chunk-YZCP3GAM.Djt3Mjft.js} +1 -1
  33. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.BZ3Uc-XU.js +1 -0
  34. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.BZ3Uc-XU.js +1 -0
  35. package/dist/docs/assets/chunks/clone.BDtbEo69.js +1 -0
  36. package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.DMQuNhM5.js → cose-bilkent-S5V4N54A.DiMcA6Q8.js} +1 -1
  37. package/dist/docs/assets/chunks/{dagre-KV5264BT.CZoGVuUf.js → dagre-KV5264BT.BGqI4vrS.js} +1 -1
  38. package/dist/docs/assets/chunks/{diagram-5BDNPKRD.CLt9uOyL.js → diagram-5BDNPKRD.bDqFuMoH.js} +1 -1
  39. package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.DpczEm1G.js → diagram-G4DWMVQ6.Y0sxaXRU.js} +1 -1
  40. package/dist/docs/assets/chunks/{diagram-MMDJMWI5.D4r13DvJ.js → diagram-MMDJMWI5.Bg43b0yi.js} +1 -1
  41. package/dist/docs/assets/chunks/{diagram-TYMM5635.CYU9eGFu.js → diagram-TYMM5635.DCfVasEC.js} +1 -1
  42. package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.QA9naWEw.js → erDiagram-SMLLAGMA.C72GaD16.js} +1 -1
  43. package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.BbNoVZYd.js → flowDiagram-DWJPFMVM.DxRQj7pP.js} +1 -1
  44. package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.IHjDoG7r.js → ganttDiagram-T4ZO3ILL.DiLZy5Q4.js} +1 -1
  45. package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.B21VMdf5.js → gitGraphDiagram-UUTBAWPF.DL8XkRvh.js} +1 -1
  46. package/dist/docs/assets/chunks/{graph.DgJ4L-8V.js → graph.3Xub80xJ.js} +1 -1
  47. package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.CQjrcthc.js → infoDiagram-42DDH7IO.O3lGaspu.js} +1 -1
  48. package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.D4tPGtVo.js → ishikawaDiagram-UXIWVN3A.w-pCiQzn.js} +1 -1
  49. package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.BD3WaNbQ.js → journeyDiagram-VCZTEJTY.Cg_oBs9j.js} +1 -1
  50. package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.Ca0o4Tqz.js → kanban-definition-6JOO6SKY.BpfMGPwn.js} +1 -1
  51. package/dist/docs/assets/chunks/{layout.DXXqX4MQ.js → layout.CtwXs__p.js} +1 -1
  52. package/dist/docs/assets/chunks/{linear.5c61gNw4.js → linear.NmCskOrP.js} +1 -1
  53. package/dist/docs/assets/chunks/{min.B1-NAjHX.js → min.DpQtsLKs.js} +1 -1
  54. package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.BELznv3-.js → mindmap-definition-QFDTVHPH.B-P-aKVp.js} +1 -1
  55. package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.qPzO1mq5.js → pieDiagram-DEJITSTG.BfjjqK7j.js} +1 -1
  56. package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.CxIvzbjX.js → quadrantDiagram-34T5L4WZ.BTzHo53F.js} +1 -1
  57. package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.CqA0iJx8.js → requirementDiagram-MS252O5E.DIT2FIKr.js} +1 -1
  58. package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.XRTutBnb.js → sankeyDiagram-XADWPNL6.NK1wCsgt.js} +1 -1
  59. package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.E--7bRLQ.js → sequenceDiagram-FGHM5R23.D9oElkvo.js} +1 -1
  60. package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.C4vGu8zq.js → stateDiagram-FHFEXIEX.IPksnixH.js} +1 -1
  61. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.CbhzVsQE.js +1 -0
  62. package/dist/docs/assets/chunks/{theme.DMj_7q3B.js → theme.CgKu7tr3.js} +2 -2
  63. package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.C7LgNVAL.js → timeline-definition-GMOUNBTQ.CuAtJapY.js} +1 -1
  64. package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.HUwoZcy_.js → vennDiagram-DHZGUBPP.B87nNW9E.js} +1 -1
  65. package/dist/docs/assets/chunks/wardley-RL74JXVD.BFIVMaoi.js +162 -0
  66. package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.B2pSo5rB.js → wardleyDiagram-NUSXRM2D.BELjSq8w.js} +1 -1
  67. package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.NQhMiOOL.js → xychartDiagram-5P7HB3ND.5zN5ZGsz.js} +1 -1
  68. package/dist/docs/assets/{deployment.md.BtqJrHhp.js → deployment.md.DJtuDVLh.js} +3 -3
  69. package/dist/docs/assets/{deployment.md.BtqJrHhp.lean.js → deployment.md.DJtuDVLh.lean.js} +1 -1
  70. package/dist/docs/assets/{guides_agent-to-agent.md.BcmSqL2z.js → guides_agent-to-agent.md.DcB3nhOz.js} +1 -1
  71. package/dist/docs/assets/{guides_github.md.6jiEH7dg.js → guides_github.md.CcuZ7keS.js} +1 -1
  72. package/dist/docs/assets/{guides_mcp-oauth.md.C-Sx_IPa.js → guides_mcp-oauth.md.GVPMKcYl.js} +1 -1
  73. package/dist/docs/assets/{guides_migrate.md.BbhHYeCr.js → guides_migrate.md.B8CZxnnX.js} +1 -1
  74. package/dist/docs/assets/{guides_slack.md.BgIGG9ur.js → guides_slack.md.D7Rwyva4.js} +1 -1
  75. package/dist/docs/assets/{hillclimbing.md.3TkdF79A.js → hillclimbing.md.M51bF-oT.js} +1 -1
  76. package/dist/docs/assets/index.md.DnJPj_B6.js +14 -0
  77. package/dist/docs/assets/index.md.DnJPj_B6.lean.js +1 -0
  78. package/dist/docs/assets/{reference_agent-config.md.C0Tp_Fk9.js → reference_agent-config.md.Bbqf0lgS.js} +13 -5
  79. package/dist/docs/assets/{reference_agent-config.md.C0Tp_Fk9.lean.js → reference_agent-config.md.Bbqf0lgS.lean.js} +1 -1
  80. package/dist/docs/assets/{reference_cli.md.B8GdpaRj.js → reference_cli.md.DHm6DmYk.js} +2 -2
  81. package/dist/docs/assets/{reference_hooks.md.CSWmOwMM.js → reference_hooks.md.vbIM394-.js} +2 -2
  82. package/dist/docs/assets/{reference_hooks.md.CSWmOwMM.lean.js → reference_hooks.md.vbIM394-.lean.js} +1 -1
  83. package/dist/docs/assets/{reference_tools.md.B2OaR1Nb.js → reference_tools.md.BhqW6neF.js} +4 -2
  84. package/dist/docs/assets/{reference_tools.md.B2OaR1Nb.lean.js → reference_tools.md.BhqW6neF.lean.js} +1 -1
  85. package/dist/docs/building-with-agents.html +36 -36
  86. package/dist/docs/building-with-agents.md +3 -3
  87. package/dist/docs/changelog.html +36 -36
  88. package/dist/docs/changelog.md +44 -1
  89. package/dist/docs/deployment.html +37 -37
  90. package/dist/docs/deployment.md +22 -16
  91. package/dist/docs/evals.html +35 -35
  92. package/dist/docs/guides/agent-to-agent.html +37 -37
  93. package/dist/docs/guides/agent-to-agent.md +4 -2
  94. package/dist/docs/guides/bitbucket.html +35 -35
  95. package/dist/docs/guides/cloud-agents.html +35 -35
  96. package/dist/docs/guides/convert-automation.html +35 -35
  97. package/dist/docs/guides/github.html +37 -37
  98. package/dist/docs/guides/github.md +1 -1
  99. package/dist/docs/guides/gitlab.html +35 -35
  100. package/dist/docs/guides/improve.html +35 -35
  101. package/dist/docs/guides/jev.html +35 -35
  102. package/dist/docs/guides/mcp-oauth.html +37 -37
  103. package/dist/docs/guides/mcp-oauth.md +1 -1
  104. package/dist/docs/guides/migrate.html +37 -37
  105. package/dist/docs/guides/migrate.md +1 -1
  106. package/dist/docs/guides/opentelemetry.html +35 -35
  107. package/dist/docs/guides/pagerduty.html +35 -35
  108. package/dist/docs/guides/slack.html +37 -37
  109. package/dist/docs/guides/slack.md +1 -1
  110. package/dist/docs/guides/webhooks.html +35 -35
  111. package/dist/docs/hashmap.json +1 -1
  112. package/dist/docs/hillclimbing.html +36 -36
  113. package/dist/docs/hillclimbing.md +1 -1
  114. package/dist/docs/index.html +42 -48
  115. package/dist/docs/index.md +8 -14
  116. package/dist/docs/llms-full.txt +176 -54
  117. package/dist/docs/quickstart.html +35 -35
  118. package/dist/docs/reference/access.html +35 -35
  119. package/dist/docs/reference/agent-config.html +47 -39
  120. package/dist/docs/reference/agent-config.md +75 -10
  121. package/dist/docs/reference/artifacts.html +35 -35
  122. package/dist/docs/reference/channels.html +35 -35
  123. package/dist/docs/reference/cli.html +38 -38
  124. package/dist/docs/reference/cli.md +2 -2
  125. package/dist/docs/reference/connections.html +35 -35
  126. package/dist/docs/reference/evals.html +35 -35
  127. package/dist/docs/reference/extensions.html +35 -35
  128. package/dist/docs/reference/hooks.html +37 -37
  129. package/dist/docs/reference/hooks.md +1 -1
  130. package/dist/docs/reference/http-api.html +35 -35
  131. package/dist/docs/reference/instructions.html +35 -35
  132. package/dist/docs/reference/limits.html +35 -35
  133. package/dist/docs/reference/memory.html +35 -35
  134. package/dist/docs/reference/playground.html +35 -35
  135. package/dist/docs/reference/project-layout.html +35 -35
  136. package/dist/docs/reference/schedules.html +35 -35
  137. package/dist/docs/reference/sessions.html +35 -35
  138. package/dist/docs/reference/skills.html +35 -35
  139. package/dist/docs/reference/subagents.html +35 -35
  140. package/dist/docs/reference/tools.html +39 -37
  141. package/dist/docs/reference/tools.md +12 -0
  142. package/dist/docs/templates/agentic-owners.html +35 -35
  143. package/dist/docs/templates/reviews.html +35 -35
  144. package/dist/docs/troubleshooting.html +35 -35
  145. package/dist/filesystem.d.ts +12 -412
  146. package/dist/filesystem.d.ts.map +1 -1
  147. package/dist/filesystem.js +37 -980
  148. package/dist/index.d.ts +1 -3
  149. package/dist/index.d.ts.map +1 -1
  150. package/dist/index.js +1 -3
  151. package/dist/internal/authored-alias-hooks.d.ts +6 -0
  152. package/dist/internal/authored-alias-hooks.d.ts.map +1 -1
  153. package/dist/internal/authored-alias-hooks.js +12 -0
  154. package/dist/internal/authored-loaders.js +10 -1
  155. package/dist/internal/cli/commands/scaffold.js +1 -1
  156. package/dist/internal/continuation-channel.d.ts +3 -3
  157. package/dist/internal/continuation-channel.js +3 -3
  158. package/dist/internal/continuation-identity.d.ts +6 -5
  159. package/dist/internal/continuation-identity.d.ts.map +1 -1
  160. package/dist/internal/continuation-identity.js +17 -2
  161. package/dist/internal/continuation-session-ids.d.ts +15 -0
  162. package/dist/internal/continuation-session-ids.d.ts.map +1 -0
  163. package/dist/internal/continuation-session-ids.js +43 -0
  164. package/dist/internal/direct-file-tools.d.ts +21 -0
  165. package/dist/internal/direct-file-tools.d.ts.map +1 -0
  166. package/dist/internal/direct-file-tools.js +60 -0
  167. package/dist/internal/discovery/agent.d.ts.map +1 -1
  168. package/dist/internal/discovery/agent.js +71 -66
  169. package/dist/internal/filesystem/walk.d.ts +4 -56
  170. package/dist/internal/filesystem/walk.d.ts.map +1 -1
  171. package/dist/internal/filesystem/walk.js +4 -198
  172. package/dist/internal/hosted-catch-protocol.d.ts +3 -3
  173. package/dist/internal/hosted-catch-protocol.js +3 -3
  174. package/dist/internal/hosted-fetch.d.ts +7 -0
  175. package/dist/internal/hosted-fetch.d.ts.map +1 -0
  176. package/dist/internal/hosted-fetch.js +26 -0
  177. package/dist/internal/hosted-managed-automation.js +1 -1
  178. package/dist/internal/install-cursor-skills.d.ts +5 -6
  179. package/dist/internal/install-cursor-skills.d.ts.map +1 -1
  180. package/dist/internal/install-cursor-skills.js +19 -4
  181. package/dist/internal/mcp-endpoint.js +4 -4
  182. package/dist/internal/model-config.d.ts.map +1 -1
  183. package/dist/internal/model-config.js +11 -4
  184. package/dist/internal/otel/http.d.ts +2 -1
  185. package/dist/internal/otel/http.d.ts.map +1 -1
  186. package/dist/internal/otel/http.js +2 -3
  187. package/dist/internal/platform-timers.d.ts +3 -7
  188. package/dist/internal/platform-timers.d.ts.map +1 -1
  189. package/dist/internal/platform-timers.js +10 -51
  190. package/dist/internal/sdk-runner.d.ts.map +1 -1
  191. package/dist/internal/sdk-runner.js +22 -40
  192. package/dist/internal/server.d.ts.map +1 -1
  193. package/dist/internal/server.js +6 -1
  194. package/dist/internal/session-engine.d.ts +36 -19
  195. package/dist/internal/session-engine.d.ts.map +1 -1
  196. package/dist/internal/session-engine.js +182 -254
  197. package/dist/internal/tool-paths.d.ts +8 -0
  198. package/dist/internal/tool-paths.d.ts.map +1 -0
  199. package/dist/internal/tool-paths.js +12 -0
  200. package/dist/internal/workspace-tree.d.ts +27 -0
  201. package/dist/internal/workspace-tree.d.ts.map +1 -0
  202. package/dist/internal/workspace-tree.js +106 -0
  203. package/dist/playground/assets/index-D0-FHg1x.css +1 -0
  204. package/dist/playground/assets/index-D5SLKUy6.js +62 -0
  205. package/dist/playground/index.html +2 -2
  206. package/dist/types.d.ts +43 -23
  207. package/dist/types.d.ts.map +1 -1
  208. package/dist/types.js +2 -2
  209. package/docs/README.md +8 -14
  210. package/docs/building-with-agents.md +3 -3
  211. package/docs/changelog.md +44 -1
  212. package/docs/deployment.md +22 -16
  213. package/docs/guides/agent-to-agent.md +4 -2
  214. package/docs/guides/github.md +1 -1
  215. package/docs/guides/mcp-oauth.md +1 -1
  216. package/docs/guides/migrate.md +1 -1
  217. package/docs/guides/slack.md +1 -1
  218. package/docs/hillclimbing.md +1 -1
  219. package/docs/reference/agent-config.md +75 -10
  220. package/docs/reference/cli.md +2 -2
  221. package/docs/reference/hooks.md +1 -1
  222. package/docs/reference/tools.md +12 -0
  223. package/package.json +10 -15
  224. package/skills/cli/SKILL.md +1 -1
  225. package/skills/create-agent/SKILL.md +61 -7
  226. package/skills/debug/SKILL.md +1 -1
  227. package/skills/deploy/SKILL.md +3 -3
  228. package/skills/evals/SKILL.md +1 -1
  229. package/skills/framework-map/SKILL.md +2 -2
  230. package/skills/github/SKILL.md +1 -1
  231. package/skills/hillclimb/SKILL.md +1 -1
  232. package/skills/mcp-auth/SKILL.md +1 -1
  233. package/skills/migrate-v2/SKILL.md +2 -2
  234. package/skills/otel/SKILL.md +1 -1
  235. package/skills/setup-slack/SKILL.md +2 -2
  236. package/dist/docs/assets/changelog.md.BWhC6DET.js +0 -1
  237. package/dist/docs/assets/changelog.md.BWhC6DET.lean.js +0 -1
  238. package/dist/docs/assets/chunks/@localSearchIndexroot.CWxwVoCG.js +0 -1
  239. package/dist/docs/assets/chunks/channel.Cctv0f7X.js +0 -1
  240. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.DU5sqchW.js +0 -1
  241. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.DU5sqchW.js +0 -1
  242. package/dist/docs/assets/chunks/clone.B9rdNt6j.js +0 -1
  243. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.ECMu2BdJ.js +0 -1
  244. package/dist/docs/assets/chunks/wardley-RL74JXVD.BxFEFYZS.js +0 -162
  245. package/dist/docs/assets/index.md.DRfaoRCZ.js +0 -20
  246. package/dist/docs/assets/index.md.DRfaoRCZ.lean.js +0 -1
  247. package/dist/executors.d.ts +0 -11
  248. package/dist/executors.d.ts.map +0 -1
  249. package/dist/executors.js +0 -21
  250. package/dist/internal/filesystem/errors.d.ts +0 -64
  251. package/dist/internal/filesystem/errors.d.ts.map +0 -1
  252. package/dist/internal/filesystem/errors.js +0 -180
  253. package/dist/internal/filesystem/format.d.ts +0 -28
  254. package/dist/internal/filesystem/format.d.ts.map +0 -1
  255. package/dist/internal/filesystem/format.js +0 -209
  256. package/dist/internal/filesystem/merge.d.ts +0 -34
  257. package/dist/internal/filesystem/merge.d.ts.map +0 -1
  258. package/dist/internal/filesystem/merge.js +0 -154
  259. package/dist/internal/filesystem/nearest.d.ts +0 -15
  260. package/dist/internal/filesystem/nearest.d.ts.map +0 -1
  261. package/dist/internal/filesystem/nearest.js +0 -90
  262. package/dist/internal/filesystem/scratch.d.ts +0 -60
  263. package/dist/internal/filesystem/scratch.d.ts.map +0 -1
  264. package/dist/internal/filesystem/scratch.js +0 -187
  265. package/dist/internal/filesystem/sdk-schemas.d.ts +0 -29
  266. package/dist/internal/filesystem/sdk-schemas.d.ts.map +0 -1
  267. package/dist/internal/filesystem/sdk-schemas.js +0 -148
  268. package/dist/internal/filesystem/subagent-inherit.d.ts +0 -39
  269. package/dist/internal/filesystem/subagent-inherit.d.ts.map +0 -1
  270. package/dist/internal/filesystem/subagent-inherit.js +0 -96
  271. package/dist/internal/filesystem/tools.d.ts +0 -59
  272. package/dist/internal/filesystem/tools.d.ts.map +0 -1
  273. package/dist/internal/filesystem/tools.js +0 -634
  274. package/dist/internal/otel/propagation.d.ts +0 -7
  275. package/dist/internal/otel/propagation.d.ts.map +0 -1
  276. package/dist/internal/otel/propagation.js +0 -15
  277. package/dist/internal/sdk-subagent-inherit-support.d.ts +0 -9
  278. package/dist/internal/sdk-subagent-inherit-support.d.ts.map +0 -1
  279. package/dist/internal/sdk-subagent-inherit-support.js +0 -90
  280. package/dist/playground/assets/index-D6mVn9og.js +0 -62
  281. package/dist/playground/assets/index-DlALM6gr.css +0 -1
  282. /package/dist/docs/assets/{building-with-agents.md.BqJ7AAjG.lean.js → building-with-agents.md.Bo3ct-rf.lean.js} +0 -0
  283. /package/dist/docs/assets/{guides_agent-to-agent.md.BcmSqL2z.lean.js → guides_agent-to-agent.md.DcB3nhOz.lean.js} +0 -0
  284. /package/dist/docs/assets/{guides_github.md.6jiEH7dg.lean.js → guides_github.md.CcuZ7keS.lean.js} +0 -0
  285. /package/dist/docs/assets/{guides_mcp-oauth.md.C-Sx_IPa.lean.js → guides_mcp-oauth.md.GVPMKcYl.lean.js} +0 -0
  286. /package/dist/docs/assets/{guides_migrate.md.BbhHYeCr.lean.js → guides_migrate.md.B8CZxnnX.lean.js} +0 -0
  287. /package/dist/docs/assets/{guides_slack.md.BgIGG9ur.lean.js → guides_slack.md.D7Rwyva4.lean.js} +0 -0
  288. /package/dist/docs/assets/{hillclimbing.md.3TkdF79A.lean.js → hillclimbing.md.M51bF-oT.lean.js} +0 -0
  289. /package/dist/docs/assets/{reference_cli.md.B8GdpaRj.lean.js → reference_cli.md.DHm6DmYk.lean.js} +0 -0
@@ -1,359 +1,28 @@
1
- import type { ToolName } from "@cursor/sdk";
2
- export { DeleteNotSupportedError, EditError, FileNotFoundError, InvalidGrepPatternError, isFileNotFoundError, isInvalidGrepPatternError, NoMountError, PathError, ReadOnlyMountError, WriteFailedError, } from "./internal/filesystem/errors.js";
1
+ import { type FileSystem, type ToolName } from "@cursor/sdk";
3
2
  import type { HostFilesApi, HostFilesScope } from "./types.js";
4
- /**
5
- * Status envelope used by walk helpers such as `lsFromList`.
6
- * FileSystem methods throw; they do not return this.
7
- * `@grok/agent-sdk` does not export it.
8
- */
9
- export type FileSystemResult<T> = {
10
- status: "success";
11
- value: T;
12
- } | {
13
- status: "error";
14
- error: {
15
- message: string;
16
- };
17
- };
18
- /**
19
- * One file in a `list` / `glob` stream.
20
- *
21
- * `path` is an absolute posix path (`/src/a.ts`). No trailing slash
22
- * except `/`. `size` is optional byte length of the file contents.
23
- */
24
- export interface DirEntry {
25
- path: string;
26
- size?: number;
27
- }
28
- /**
29
- * Existence probe. `directory` means this path is a prefix of at
30
- * least one file (virtual trees infer directories) or a real
31
- * directory on disk. `missing` is a value, not an error.
32
- */
33
- export type FileInfo = {
34
- kind: "file";
35
- } | {
36
- kind: "directory";
37
- } | {
38
- kind: "missing";
39
- };
40
- /**
41
- * Native Grep `output_mode` envelope. Not a FileSystem method
42
- * result. The `grep` verb yields {@link GrepResult}; synthesis
43
- * shapes this union after draining the stream.
44
- */
45
- export type GrepUnionResult = {
46
- type: "content";
47
- output: {
48
- matches: Array<{
49
- file: string;
50
- lineNumber?: number;
51
- line: string;
52
- beforeContext?: string[];
53
- afterContext?: string[];
54
- }>;
55
- totalMatches: number;
56
- };
57
- } | {
58
- type: "files";
59
- output: {
60
- files: string[];
61
- count: number;
62
- };
63
- } | {
64
- type: "count";
65
- output: {
66
- counts: Array<{
67
- file: string;
68
- count: number;
69
- }>;
70
- total: number;
71
- };
72
- };
73
- /**
74
- * One content hit from `grep`. `path` is absolute posix.
75
- * `lineNumber` is 1-indexed. `line` is the full matching line,
76
- * without the trailing newline.
77
- */
78
- export interface GrepResult {
79
- path: string;
80
- lineNumber: number;
81
- line: string;
82
- }
83
- /**
84
- * Optional filters for {@link FileSystem.list}.
85
- *
86
- * `excludes` are ignore globs in the same language as native LS
87
- * `ignore`: a slash-free pattern matches at any depth, and a
88
- * directory match drops that tree. Implementations that can push
89
- * them to a backend should; others filter the yielded files.
90
- * Native LS still applies `ignore` after `list` so a mount that
91
- * ignores this argument still honors it.
92
- */
93
- export interface ListOptions {
94
- excludes?: readonly string[];
95
- /**
96
- * Optional result cap, lexicographic. Omitted means no
97
- * FileSystem-level cap. `0` yields nothing.
98
- */
99
- limit?: number;
100
- }
101
- /**
102
- * Optional filters for {@link FileSystem.glob}.
103
- *
104
- * `limit` is the same lexicographic cap as {@link ListOptions.limit}.
105
- */
106
- export interface GlobOptions {
107
- limit?: number;
108
- }
109
- /**
110
- * Default scan cap for synthesized LS / Glob and for Origin
111
- * `ListRepoPaths` from `/repo`. Smaller than Origin's 10k default
112
- * so a recursive listing does not materialize a huge response.
113
- */
114
- export declare const FILE_SYSTEM_SCAN_LIMIT = 1000;
115
- /**
116
- * Content-search query. No `output_mode` or `offset` (those
117
- * belong to the native Grep tool).
118
- *
119
- * `pattern` is a JavaScript regular expression source. Invalid
120
- * source must throw {@link InvalidGrepPatternError} with message
121
- * `invalid grep pattern: ${pattern}`. `path` omitted / `""` /
122
- * `"/"` searches the whole tree; a file path searches that file
123
- * only. A slash-free `glob` (`*.ts`) matches the basename at any
124
- * depth under `path`.
125
- *
126
- * `excludes` are optional ignore globs (same language as
127
- * {@link ListOptions.excludes}). Implementations that can push
128
- * them to a backend should; others skip matching files. Native
129
- * Grep has no ignore field; this is FileSystem-only pushdown.
130
- *
131
- * `maxResults` is optional predicate pushdown: stop after this
132
- * many hits so a remote or large tree does not materialize a
133
- * full scan. Native Grep still applies `head_limit` / `offset`
134
- * after the merge. Omitted means no FileSystem-level cap.
135
- */
136
- export interface GrepQuery {
137
- pattern: string;
138
- path?: string;
139
- glob?: string;
140
- excludes?: readonly string[];
141
- caseInsensitive?: boolean;
142
- maxResults?: number;
143
- }
144
- /**
145
- * Exact, non-overlapping str-replace. `oldText` / `newText` are
146
- * literal strings, not regex. Splice must keep `$`, `$&`, `$1`
147
- * in `newText` as written (`String.prototype.replace` must not
148
- * be used).
149
- */
150
- export interface EditQuery {
151
- path: string;
152
- oldText: string;
153
- newText: string;
154
- replaceAll?: boolean;
155
- }
156
- /**
157
- * StrReplace success. `occurrencesModified` is the number of
158
- * non-overlapping replacements (1 unless `replaceAll`).
159
- */
160
- export interface EditResult {
161
- occurrencesModified: number;
162
- }
163
- /**
164
- * Path verbs for the tree the agent runs on.
165
- *
166
- * Every method is required. Methods do not fall back to the
167
- * host tree. Diagnostics are not a FileSystem concern.
168
- *
169
- * Paths are a single posix namespace rooted at `/`. Query paths
170
- * and yielded paths are absolute (`/src/a.ts`). No trailing
171
- * slash except `/`. `""`, `"/"`, and an omitted `prefix` / `dir`
172
- * / `path` (where optional) mean the root. Prefix tests are
173
- * path-segment: `/agent` matches `/agent/skills`, not
174
- * `/agent-tools`.
175
- *
176
- * Async iterators are already sorted. `unionFs` k-way merges
177
- * them and does not re-sort a source.
178
- *
179
- * - `list` / `glob`: lexicographic by `path`. Paths are unique.
180
- * - `grep`: by `path`, then `lineNumber` ascending. Keep every hit.
181
- *
182
- * Native-tool pagination (`head_limit`, `offset`, `output_mode`)
183
- * stays on the synthesized tools. `grep` takes optional
184
- * `maxResults` as predicate pushdown so a tree can stop
185
- * retrieving once the tool's cap is known.
186
- * Native `LS` is built from `list` + `stat`; there is no `ls`
187
- * method.
188
- *
189
- * Errors (authors must follow these, not invent parallel
190
- * spellings):
191
- *
192
- * - `list` / `stat` / `glob` must not throw for a missing path.
193
- * Missing is an empty iterator or `{ kind: "missing" }`.
194
- * - `read` / `write` / `delete` throw {@link PathError}
195
- * for recoverable failures. `error.message` is the string the
196
- * synthesized native tool shows the model. `error.path` is the
197
- * absolute posix path the composer remaps.
198
- * - `grep` throws for an invalid regex (and a missing host
199
- * search root). A missing virtual path yields nothing.
200
- * - Missing-file message on `read` / `delete` is
201
- * `not found: ${path}` (normalized absolute posix).
202
- */
203
- export interface FileSystem {
204
- /**
205
- * Recursive file scan under `prefix`. Files only; directories
206
- * are inferred from path prefixes. A file is not under itself,
207
- * so listing a file path is empty. Empty is not "missing"
208
- * (`stat` answers that). Yields lexicographic unique
209
- * {@link DirEntry} rows. Omitted / `""` / `"/"` means the root.
210
- *
211
- * Errors: none. A missing or file-path prefix yields an empty
212
- * iterator. Do not throw.
213
- *
214
- * `options.excludes` / `options.limit` are optional pushdown.
215
- * See {@link ListOptions}.
216
- */
217
- list(prefix?: string, options?: ListOptions): AsyncIterable<DirEntry>;
218
- /**
219
- * Existence probe: exact file, a prefix that has files, or
220
- * missing. Does not throw. Native LS lists first and calls
221
- * this only when the iterator is empty.
222
- *
223
- * Errors: none. Unknown paths are `{ kind: "missing" }`.
224
- */
225
- stat(path: string): Promise<FileInfo>;
226
- /**
227
- * Same scan as `list`, filtered by `pattern` relative to
228
- * `dir`. Yields lexicographic unique {@link DirEntry} rows.
229
- * `dir` omitted / `""` / `"/"` means the tree root. Matching
230
- * is relative to `dir`, not basename-anywhere (`*.ts` under
231
- * `/src` is `/src/a.ts`, not `/src/nested/c.ts`).
232
- *
233
- * Errors: none. A missing `dir` or a pattern that matches
234
- * nothing yields an empty iterator. Do not throw for a bad
235
- * glob (it matches nothing).
236
- *
237
- * `options.limit` is optional result-cap pushdown. See
238
- * {@link GlobOptions}.
239
- */
240
- glob(pattern: string, dir?: string, options?: GlobOptions): AsyncIterable<DirEntry>;
241
- /**
242
- * Read the whole file. Text files return a string. Image
243
- * bytes (`jpeg` / `png` / `gif` / `webp`) return a
244
- * `Uint8Array` so native Read can base64 them into an image
245
- * content part. Native Read applies `offset` / `limit` and
246
- * numbers lines on text only.
247
- *
248
- * Errors (throw `Error`):
249
- * - Missing file, or a virtual directory with no file inode:
250
- * `not found: ${path}`.
251
- * - Host I/O (EISDIR, EACCES, …): the OS message, or the same
252
- * `not found: ${path}` fallback.
253
- * - `unionFs` with no mount: `no mount for path: ${path}`.
254
- */
255
- read(path: string): Promise<string | Uint8Array>;
256
- /**
257
- * Content matches. No output-mode or offset. Honor
258
- * `maxResults` when set. Yields {@link GrepResult} ordered
259
- * by path, then line number.
260
- *
261
- * Errors (throw `Error`):
262
- * - Invalid `pattern`: `invalid grep pattern: ${pattern}`.
263
- * - Host search root does not exist: the OS message, or
264
- * `not found: ${searchRoot}`. Native Grep turns the throw
265
- * into `{ status: "error" }`.
266
- *
267
- * A missing virtual `path` yields nothing (not an error).
268
- */
269
- grep(query: GrepQuery): AsyncIterable<GrepResult>;
270
- /**
271
- * Create or overwrite a file. Parents are created as needed.
272
- * Native Write formats `Wrote contents to ${path}` from the
273
- * path. The Write tool maps native `fileText` onto `contents`.
274
- *
275
- * Errors (throw `Error`):
276
- * - Host I/O: the OS message, or `write failed: ${path}`.
277
- * - `unionFs` with no mount: `no mount for path: ${path}`.
278
- * - A read-only mount may use `read-only mount` or
279
- * `read-only mount: ${path}`.
280
- *
281
- * Missing parents are not an error; create them. There is no
282
- * `not found` for `write`.
283
- */
284
- write(path: string, contents: string): Promise<void>;
285
- /**
286
- * Remove one file. Directories are not deleted; listing them
287
- * is empty and they have no inode of their own on a virtual
288
- * tree.
289
- *
290
- * Errors (throw `Error`):
291
- * - Missing file, or a virtual directory: `not found: ${path}`.
292
- * - Host I/O: the OS message, or `not found: ${path}`.
293
- * - `unionFs` with no mount: `no mount for path: ${path}`.
294
- */
295
- delete(path: string): Promise<void>;
296
- }
297
- export declare const FILE_SYSTEM_TOOL_NAMES: readonly ["Read", "LS", "Glob", "Grep", "Write", "StrReplace", "Delete"];
298
- export type FileSystemToolName = (typeof FILE_SYSTEM_TOOL_NAMES)[number];
299
- export declare function canonicalizeFileSystemToolName(name: string): FileSystemToolName | undefined;
300
- export declare function isFileSystemToolName(name: string): name is FileSystemToolName;
301
- export declare function isFileSystemToolAlias(name: string): boolean;
302
- /** Direct `callTool` names that mutate the tree and must wait on a busy turn. */
303
- export declare function isMutatingFileSystemTool(name: string): boolean;
304
- export declare function isFileSystemMethodPresent(root: FileSystem, method: keyof FileSystem): boolean;
305
- export declare function fileSystemToolNames(_root?: FileSystem): FileSystemToolName[];
3
+ export type { DirEntry, FileInfo, FileSystem, FSEditQuery as EditQuery, FSEditResult as EditResult, FSGrepQuery as GrepQuery, FSGrepResult as GrepResult, GlobOptions, ListOptions, } from "@cursor/sdk";
4
+ export { childOverlayFs, DeleteNotSupportedError, EditError, emptyFs, FILE_SYSTEM_SCAN_LIMIT, FileNotFoundError, InvalidGrepPatternError, isFileNotFoundError, isInvalidGrepPatternError, NoMountError, overlayFs, PathError, ReadOnlyMountError, readOnlyFs, remapPathError, strReplaceOnFileSystem, tempFs, unionFs, WriteFailedError, } from "@cursor/sdk";
306
5
  export declare class FileSystemConfigError extends Error {
307
6
  constructor(message: string);
308
7
  }
309
8
  /** True for either spelling of the removed semantic-search tool. */
310
9
  export declare function isRemovedFileSearchTool(name: string): boolean;
311
10
  export declare function assertNoRemovedFileSearchTools(tools?: readonly string[]): void;
312
- export declare function resolveRootHarnessAllowlist(tools?: readonly ToolName[]): ToolName[];
313
- export declare function resolveFileSystemTools(options: {
314
- root: FileSystem;
315
- tools?: readonly ToolName[];
316
- }): ToolName[];
317
11
  export declare function withMcpGrant(tools: readonly ToolName[]): ToolName[];
318
12
  /**
319
- * Native Cursor SDK file tools replaced by synthesized FileSystem tools
320
- * on every local turn. SDK allowlist names (`edit`, not `Write`).
321
- */
322
- export declare const REPLACED_NATIVE_FILE_TOOLS: ToolName[];
323
- /**
324
- * Host-default harness options: keep shell / webSearch / sandbox, but
325
- * hide the native file tools the synthesized FileSystem now owns.
326
- *
327
- * Omitted `tools` leaves the SDK default set and only excludes the
328
- * replaced natives. `[]` stays empty. A non-empty allowlist drops file
329
- * aliases (those ride synthesized tools) and grants `mcp`.
13
+ * Host-disk harness options. Omitted `tools` keeps the SDK default set
14
+ * without semantic search. `[]` stays empty. A non-empty allowlist
15
+ * grants `mcp`, which carries the agent's own server tools.
330
16
  */
331
17
  export declare function resolveHostHarnessToolOptions(tools?: readonly ToolName[]): {
332
18
  tools?: ToolName[];
333
19
  disallowedTools?: ToolName[];
334
20
  };
335
- export type GrepOutputMode = "content" | "files_with_matches" | "count";
336
- /** Decode a {@link FileSystem.read} result as UTF-8 text. */
337
- export declare function fileSystemText(content: string | Uint8Array): string;
338
21
  /**
339
22
  * Native Read image formats. Magic bytes first, then extension.
340
23
  * Returns undefined for text (and for any other binary).
341
24
  */
342
25
  export declare function detectImageMimeType(bytes: Uint8Array, filePath?: string): string | undefined;
343
- export declare function fileSystemImage(content: string | Uint8Array, path: string): {
344
- mimeType: string;
345
- bytes: Uint8Array;
346
- } | undefined;
347
- export declare function collectGrepMatches(root: FileSystem, query: GrepQuery, opts: {
348
- outputMode: GrepOutputMode;
349
- headLimit?: number;
350
- offset?: number;
351
- }): Promise<GrepResult[]>;
352
- export type GrepContentHit = GrepResult & {
353
- beforeContext?: string[];
354
- afterContext?: string[];
355
- };
356
- export declare function shapeGrepUnion(matches: GrepContentHit[], outputMode: GrepOutputMode): GrepUnionResult;
357
26
  export declare function normalizeFsPath(input: string): string;
358
27
  /** Path-segment prefix: `/agent` matches `/agent/skills`, not `/agent-tools`. */
359
28
  export declare function pathHasSegmentPrefix(args: {
@@ -372,29 +41,6 @@ export declare function writeWorkspaceFilesToRoot(root: FileSystem, files: Recor
372
41
  data: string;
373
42
  mimeType?: string;
374
43
  }>): Promise<void>;
375
- /**
376
- * Exact str-replace as `read` + apply + `write`. Uniqueness is
377
- * this helper's contract; FileSystem implementations do not
378
- * implement edit. Native StrReplace calls this.
379
- */
380
- export declare function strReplaceOnFileSystem(root: Pick<FileSystem, "read" | "write">, query: EditQuery): Promise<EditResult>;
381
- /** Native Read offset/limit: 1-indexed, negative offset counts from the end. */
382
- export declare function sliceReadContent(content: string, offset?: number, limit?: number): string;
383
- /**
384
- * A FileSystem with no files. Use as an overlay leaf or a missing
385
- * catalog so a miss stays {@link FileNotFoundError} instead of
386
- * {@link NoMountError}. Writes and deletes throw
387
- * {@link ReadOnlyMountError} — an empty tree is never a sink.
388
- */
389
- export declare function emptyFs(): FileSystem;
390
- /**
391
- * In-memory FileSystem for tests and fixtures. Keys are absolute
392
- * posix paths (`/a.txt`) and are normalized on ingest. Honors the
393
- * {@link FileSystem} order and path contracts.
394
- * Creates `/agent-tools` on first scratch
395
- * write the same way any other path is created.
396
- */
397
- export declare function tempFs(files?: Record<string, string | Uint8Array>): FileSystem;
398
44
  /**
399
45
  * Host-disk FileSystem. Relative paths resolve against `cwd`. Absolute
400
46
  * paths are used as given, matching Cursor SDK native file tools, unless
@@ -413,11 +59,12 @@ export declare function localFileSystem(options: {
413
59
  readOnlyRoots?: readonly string[];
414
60
  }): FileSystem;
415
61
  /**
416
- * The turn tree: authored files at `/`, scratch at `/tmp`, and an optional
417
- * skills mount. An omitted `grep` or `glob` path searches the authored
418
- * tree only, so a tree that narrows that call (for example to `/repo`)
419
- * does not also scan skills or scratch. An explicit path searches every
420
- * mount under it.
62
+ * The session tree: authored files at `/` and an optional skills mount.
63
+ * `scratch`, when given, is mounted at `/tmp`; a turn leaves it out
64
+ * because the SDK mounts its own `/tmp` for each run. An omitted `grep`
65
+ * or `glob` path searches the authored tree only, so a tree that narrows
66
+ * that call (for example to `/repo`) does not also scan skills or
67
+ * scratch. An explicit path searches every mount under it.
421
68
  */
422
69
  export declare function sessionFileSystem(options: {
423
70
  authored: FileSystem;
@@ -427,53 +74,6 @@ export declare function sessionFileSystem(options: {
427
74
  };
428
75
  scratch?: FileSystem;
429
76
  }): FileSystem;
430
- /** Forwards reads. `write` and `delete` throw `read-only mount`. */
431
- export declare function readOnlyFs(inner: FileSystem): FileSystem;
432
- /**
433
- * Longest-prefix compose, path-segment match. Every verb is
434
- * defined. Does not synthesize `shell`. `/agent` is not a
435
- * prefix of `/agent-tools`.
436
- *
437
- * The record keys are mount points. Each child is a FileSystem
438
- * rooted at `/`. `unionFs` strips the prefix on the way in and
439
- * re-prefixes yields (and error paths) on the way out:
440
- * `unionFs({ "/host": hostFs(...) })` — the child never sees
441
- * `/host`.
442
- *
443
- * A path with no mount:
444
- * - `read` / `write` / `delete`: throw
445
- * `no mount for path: ${path}`
446
- * - `list` / `glob` / `grep`: empty iterator
447
- * - `stat`: `{ kind: "missing" }` (`/`, exact mount prefixes, and
448
- * their parents are `{ kind: "directory" }`)
449
- *
450
- * `list` and `glob` below `/` also yield the files of each mount nested
451
- * under that directory, as `list` and `glob` of `/` do. A nested glob
452
- * lists that mount and matches each path against the pattern. `grep`
453
- * stays on the mount that covers the path.
454
- *
455
- * Sources are already sorted longest prefix first. List and glob use
456
- * `unique` so that earlier source wins a tie.
457
- */
458
- export declare function unionFs(mounts: Record<string, FileSystem>): FileSystem;
459
- /**
460
- * Same-root overlay: earlier layers win. Read-only.
461
- *
462
- * A downed layer costs its own files, not the overlay. Mutations
463
- * throw `read-only mount` / `read-only mount: ${path}`. Empty
464
- * `layers` throws `overlayFs needs at least one layer.`
465
- */
466
- export declare function overlayFs(layers: readonly FileSystem[]): FileSystem;
467
- /**
468
- * Writable child view over `parent`. Reads use `overlayFs` order:
469
- * a private `tempFs` scratch, then `parent`. Writes and deletes land
470
- * on that scratch. A delete of a parent file is a whiteout, so the
471
- * child stops seeing it. `parent` is never mutated.
472
- *
473
- * FileSystem has no shell. Callers that bind executors to this handle
474
- * omit shell.
475
- */
476
- export declare function childOverlayFs(parent: FileSystem): FileSystem;
477
77
  /**
478
78
  * `HostFilesApi` as a FileSystem rooted at `/`.
479
79
  *
@@ -1 +1 @@
1
- {"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../src/filesystem.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAiB5C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,iCAAiC,CAAC;AASzC,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC1B;IAAE,MAAM,EAAE,SAAS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