@grok/agent-sdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/dist/channels/slack/slack-channel.d.ts.map +1 -1
  2. package/dist/channels/slack/slack-channel.js +27 -14
  3. package/dist/docs/404.html +2 -2
  4. package/dist/docs/assets/{app.BzTUBOAD.js → app.BSH__xV4.js} +4 -4
  5. package/dist/docs/assets/{building-with-agents.md.BqJ7AAjG.js → building-with-agents.md.Bo3ct-rf.js} +1 -1
  6. package/dist/docs/assets/changelog.md.b6H_ea44.js +1 -0
  7. package/dist/docs/assets/{changelog.md.BWhC6DET.lean.js → changelog.md.b6H_ea44.lean.js} +1 -1
  8. package/dist/docs/assets/chunks/@localSearchIndexroot.CiRGcfZg.js +1 -0
  9. package/dist/docs/assets/chunks/{VPLocalSearchBox.DsnRlUT5.js → VPLocalSearchBox.Cadl7A0k.js} +1 -1
  10. package/dist/docs/assets/chunks/{arc.DH8GOhiv.js → arc.K7t9nNY6.js} +1 -1
  11. package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.9m9ObyuE.js → architectureDiagram-Q4EWVU46.SlHEknkX.js} +1 -1
  12. package/dist/docs/assets/chunks/{baseUniq.BXHpx1lE.js → baseUniq.DJLRMLkz.js} +1 -1
  13. package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.xY3EX59q.js → blockDiagram-DXYQGD6D.Bs6XxFpe.js} +1 -1
  14. package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.DnqgMVgc.js → c4Diagram-AHTNJAMY.CyLg6Ovc.js} +1 -1
  15. package/dist/docs/assets/chunks/channel.CVTdqYx0.js +1 -0
  16. package/dist/docs/assets/chunks/{chunk-4BX2VUAB.BjFxK2A3.js → chunk-4BX2VUAB.DTQ4TinT.js} +1 -1
  17. package/dist/docs/assets/chunks/{chunk-4TB4RGXK.BujS_Spt.js → chunk-4TB4RGXK.Es84IgcH.js} +1 -1
  18. package/dist/docs/assets/chunks/{chunk-55IACEB6.YbTjhdaM.js → chunk-55IACEB6.Clm3cGPQ.js} +1 -1
  19. package/dist/docs/assets/chunks/{chunk-EDXVE4YY.DnQ8t4GC.js → chunk-EDXVE4YY.DE4CRkS5.js} +1 -1
  20. package/dist/docs/assets/chunks/{chunk-FMBD7UC4.B67AwAmj.js → chunk-FMBD7UC4.Bf8HCvqp.js} +1 -1
  21. package/dist/docs/assets/chunks/{chunk-OYMX7WX6.DrZIAFOm.js → chunk-OYMX7WX6.eub-7nSx.js} +1 -1
  22. package/dist/docs/assets/chunks/{chunk-QZHKN3VN.BLmmydkn.js → chunk-QZHKN3VN.WyP9VAS_.js} +1 -1
  23. package/dist/docs/assets/chunks/{chunk-YZCP3GAM.DaoOfw0O.js → chunk-YZCP3GAM.LO9ohhDE.js} +1 -1
  24. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.CsJJyx6-.js +1 -0
  25. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.CsJJyx6-.js +1 -0
  26. package/dist/docs/assets/chunks/clone.Dk8KvtOB.js +1 -0
  27. package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.DMQuNhM5.js → cose-bilkent-S5V4N54A.D5za6aH0.js} +1 -1
  28. package/dist/docs/assets/chunks/{dagre-KV5264BT.CZoGVuUf.js → dagre-KV5264BT.Dq1daUru.js} +1 -1
  29. package/dist/docs/assets/chunks/{diagram-5BDNPKRD.CLt9uOyL.js → diagram-5BDNPKRD.j1YL5BKS.js} +1 -1
  30. package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.DpczEm1G.js → diagram-G4DWMVQ6.Bi1aLdhC.js} +1 -1
  31. package/dist/docs/assets/chunks/{diagram-MMDJMWI5.D4r13DvJ.js → diagram-MMDJMWI5.BOzMEkAr.js} +1 -1
  32. package/dist/docs/assets/chunks/{diagram-TYMM5635.CYU9eGFu.js → diagram-TYMM5635.Dx2FVhCr.js} +1 -1
  33. package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.QA9naWEw.js → erDiagram-SMLLAGMA.DI4TNkye.js} +1 -1
  34. package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.BbNoVZYd.js → flowDiagram-DWJPFMVM.C58Z9uPK.js} +1 -1
  35. package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.IHjDoG7r.js → ganttDiagram-T4ZO3ILL.DXSpW809.js} +1 -1
  36. package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.B21VMdf5.js → gitGraphDiagram-UUTBAWPF.B955oaFl.js} +1 -1
  37. package/dist/docs/assets/chunks/{graph.DgJ4L-8V.js → graph.BQXhKtxS.js} +1 -1
  38. package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.CQjrcthc.js → infoDiagram-42DDH7IO.Dozj_-Gm.js} +1 -1
  39. package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.D4tPGtVo.js → ishikawaDiagram-UXIWVN3A.D2140OzH.js} +1 -1
  40. package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.BD3WaNbQ.js → journeyDiagram-VCZTEJTY.DrqrMhCk.js} +1 -1
  41. package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.Ca0o4Tqz.js → kanban-definition-6JOO6SKY.Dv-LTrlw.js} +1 -1
  42. package/dist/docs/assets/chunks/{layout.DXXqX4MQ.js → layout.CGtHp49X.js} +1 -1
  43. package/dist/docs/assets/chunks/{linear.5c61gNw4.js → linear.CHZLYB52.js} +1 -1
  44. package/dist/docs/assets/chunks/{min.B1-NAjHX.js → min.D4Vt3eIy.js} +1 -1
  45. package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.BELznv3-.js → mindmap-definition-QFDTVHPH.BBfpYTea.js} +1 -1
  46. package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.qPzO1mq5.js → pieDiagram-DEJITSTG.BVYvElmY.js} +1 -1
  47. package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.CxIvzbjX.js → quadrantDiagram-34T5L4WZ.C6Gc2mdY.js} +1 -1
  48. package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.CqA0iJx8.js → requirementDiagram-MS252O5E.DWa8b4cn.js} +1 -1
  49. package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.XRTutBnb.js → sankeyDiagram-XADWPNL6.Bi-g4ajv.js} +1 -1
  50. package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.E--7bRLQ.js → sequenceDiagram-FGHM5R23.DlU3vVN9.js} +1 -1
  51. package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.C4vGu8zq.js → stateDiagram-FHFEXIEX.CeqJRqnU.js} +1 -1
  52. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.DE0BnUZh.js +1 -0
  53. package/dist/docs/assets/chunks/{theme.DMj_7q3B.js → theme.DGq7D4tt.js} +2 -2
  54. package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.C7LgNVAL.js → timeline-definition-GMOUNBTQ.Cqf2kjq9.js} +1 -1
  55. package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.HUwoZcy_.js → vennDiagram-DHZGUBPP.BeOpE_lM.js} +1 -1
  56. package/dist/docs/assets/chunks/{wardley-RL74JXVD.BxFEFYZS.js → wardley-RL74JXVD.FMQXA-6q.js} +1 -1
  57. package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.B2pSo5rB.js → wardleyDiagram-NUSXRM2D.BXS65dAC.js} +1 -1
  58. package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.NQhMiOOL.js → xychartDiagram-5P7HB3ND.haEiSxqc.js} +1 -1
  59. package/dist/docs/assets/{deployment.md.BtqJrHhp.js → deployment.md.DJtuDVLh.js} +3 -3
  60. package/dist/docs/assets/{deployment.md.BtqJrHhp.lean.js → deployment.md.DJtuDVLh.lean.js} +1 -1
  61. package/dist/docs/assets/{guides_agent-to-agent.md.BcmSqL2z.js → guides_agent-to-agent.md.DcB3nhOz.js} +1 -1
  62. package/dist/docs/assets/{guides_github.md.6jiEH7dg.js → guides_github.md.CcuZ7keS.js} +1 -1
  63. package/dist/docs/assets/{guides_mcp-oauth.md.C-Sx_IPa.js → guides_mcp-oauth.md.GVPMKcYl.js} +1 -1
  64. package/dist/docs/assets/{guides_migrate.md.BbhHYeCr.js → guides_migrate.md.B8CZxnnX.js} +1 -1
  65. package/dist/docs/assets/{guides_slack.md.BgIGG9ur.js → guides_slack.md.D7Rwyva4.js} +1 -1
  66. package/dist/docs/assets/{hillclimbing.md.3TkdF79A.js → hillclimbing.md.M51bF-oT.js} +1 -1
  67. package/dist/docs/assets/index.md.DnJPj_B6.js +14 -0
  68. package/dist/docs/assets/index.md.DnJPj_B6.lean.js +1 -0
  69. package/dist/docs/assets/{reference_agent-config.md.C0Tp_Fk9.js → reference_agent-config.md.BSNp2uJ7.js} +3 -3
  70. package/dist/docs/assets/{reference_cli.md.B8GdpaRj.js → reference_cli.md.DHm6DmYk.js} +2 -2
  71. package/dist/docs/assets/{reference_hooks.md.CSWmOwMM.js → reference_hooks.md.vbIM394-.js} +2 -2
  72. package/dist/docs/assets/{reference_hooks.md.CSWmOwMM.lean.js → reference_hooks.md.vbIM394-.lean.js} +1 -1
  73. package/dist/docs/assets/{reference_schedules.md.RhQ9ZLo1.js → reference_schedules.md.Dd8_d0WG.js} +3 -3
  74. package/dist/docs/building-with-agents.html +36 -36
  75. package/dist/docs/building-with-agents.md +3 -3
  76. package/dist/docs/changelog.html +36 -36
  77. package/dist/docs/changelog.md +20 -1
  78. package/dist/docs/deployment.html +37 -37
  79. package/dist/docs/deployment.md +22 -16
  80. package/dist/docs/evals.html +35 -35
  81. package/dist/docs/guides/agent-to-agent.html +37 -37
  82. package/dist/docs/guides/agent-to-agent.md +4 -2
  83. package/dist/docs/guides/bitbucket.html +35 -35
  84. package/dist/docs/guides/cloud-agents.html +35 -35
  85. package/dist/docs/guides/convert-automation.html +35 -35
  86. package/dist/docs/guides/github.html +37 -37
  87. package/dist/docs/guides/github.md +1 -1
  88. package/dist/docs/guides/gitlab.html +35 -35
  89. package/dist/docs/guides/improve.html +35 -35
  90. package/dist/docs/guides/jev.html +35 -35
  91. package/dist/docs/guides/mcp-oauth.html +37 -37
  92. package/dist/docs/guides/mcp-oauth.md +1 -1
  93. package/dist/docs/guides/migrate.html +37 -37
  94. package/dist/docs/guides/migrate.md +1 -1
  95. package/dist/docs/guides/opentelemetry.html +35 -35
  96. package/dist/docs/guides/pagerduty.html +35 -35
  97. package/dist/docs/guides/slack.html +37 -37
  98. package/dist/docs/guides/slack.md +1 -1
  99. package/dist/docs/guides/webhooks.html +35 -35
  100. package/dist/docs/hashmap.json +1 -1
  101. package/dist/docs/hillclimbing.html +36 -36
  102. package/dist/docs/hillclimbing.md +1 -1
  103. package/dist/docs/index.html +42 -48
  104. package/dist/docs/index.md +8 -14
  105. package/dist/docs/llms-full.txt +70 -50
  106. package/dist/docs/quickstart.html +35 -35
  107. package/dist/docs/reference/access.html +35 -35
  108. package/dist/docs/reference/agent-config.html +39 -39
  109. package/dist/docs/reference/agent-config.md +5 -6
  110. package/dist/docs/reference/artifacts.html +35 -35
  111. package/dist/docs/reference/channels.html +35 -35
  112. package/dist/docs/reference/cli.html +38 -38
  113. package/dist/docs/reference/cli.md +2 -2
  114. package/dist/docs/reference/connections.html +35 -35
  115. package/dist/docs/reference/evals.html +35 -35
  116. package/dist/docs/reference/extensions.html +35 -35
  117. package/dist/docs/reference/hooks.html +37 -37
  118. package/dist/docs/reference/hooks.md +1 -1
  119. package/dist/docs/reference/http-api.html +35 -35
  120. package/dist/docs/reference/instructions.html +35 -35
  121. package/dist/docs/reference/limits.html +35 -35
  122. package/dist/docs/reference/memory.html +35 -35
  123. package/dist/docs/reference/playground.html +35 -35
  124. package/dist/docs/reference/project-layout.html +35 -35
  125. package/dist/docs/reference/schedules.html +38 -38
  126. package/dist/docs/reference/sessions.html +35 -35
  127. package/dist/docs/reference/skills.html +35 -35
  128. package/dist/docs/reference/subagents.html +35 -35
  129. package/dist/docs/reference/tools.html +35 -35
  130. package/dist/docs/templates/agentic-owners.html +35 -35
  131. package/dist/docs/templates/reviews.html +35 -35
  132. package/dist/docs/troubleshooting.html +35 -35
  133. package/dist/filesystem.d.ts +7 -320
  134. package/dist/filesystem.d.ts.map +1 -1
  135. package/dist/filesystem.js +10 -691
  136. package/dist/index.d.ts +1 -1
  137. package/dist/index.d.ts.map +1 -1
  138. package/dist/index.js +1 -1
  139. package/dist/internal/authored-alias-hooks.d.ts +6 -0
  140. package/dist/internal/authored-alias-hooks.d.ts.map +1 -1
  141. package/dist/internal/authored-alias-hooks.js +12 -0
  142. package/dist/internal/authored-loaders.js +10 -1
  143. package/dist/internal/cli/commands/scaffold.js +1 -1
  144. package/dist/internal/continuation-session-ids.d.ts +15 -0
  145. package/dist/internal/continuation-session-ids.d.ts.map +1 -0
  146. package/dist/internal/continuation-session-ids.js +43 -0
  147. package/dist/internal/filesystem/walk.d.ts +1 -5
  148. package/dist/internal/filesystem/walk.d.ts.map +1 -1
  149. package/dist/internal/filesystem/walk.js +1 -9
  150. package/dist/internal/hosted-catch-protocol.d.ts +3 -3
  151. package/dist/internal/hosted-catch-protocol.js +3 -3
  152. package/dist/internal/hosted-fetch.d.ts +7 -0
  153. package/dist/internal/hosted-fetch.d.ts.map +1 -0
  154. package/dist/internal/hosted-fetch.js +26 -0
  155. package/dist/internal/install-cursor-skills.d.ts +5 -6
  156. package/dist/internal/install-cursor-skills.d.ts.map +1 -1
  157. package/dist/internal/install-cursor-skills.js +19 -4
  158. package/dist/internal/mcp-endpoint.js +4 -4
  159. package/dist/internal/model-config.d.ts.map +1 -1
  160. package/dist/internal/model-config.js +11 -4
  161. package/dist/internal/platform-timers.d.ts +3 -7
  162. package/dist/internal/platform-timers.d.ts.map +1 -1
  163. package/dist/internal/platform-timers.js +10 -51
  164. package/dist/internal/server.d.ts.map +1 -1
  165. package/dist/internal/server.js +6 -1
  166. package/dist/internal/session-engine.d.ts +3 -0
  167. package/dist/internal/session-engine.d.ts.map +1 -1
  168. package/dist/internal/session-engine.js +12 -3
  169. package/dist/playground/assets/index-Bno25Cg0.css +1 -0
  170. package/dist/playground/assets/index-SGKsaznh.js +62 -0
  171. package/dist/playground/index.html +2 -2
  172. package/dist/types.d.ts +2 -0
  173. package/dist/types.d.ts.map +1 -1
  174. package/dist/types.js +2 -2
  175. package/docs/README.md +8 -14
  176. package/docs/building-with-agents.md +3 -3
  177. package/docs/changelog.md +20 -1
  178. package/docs/deployment.md +22 -16
  179. package/docs/guides/agent-to-agent.md +4 -2
  180. package/docs/guides/github.md +1 -1
  181. package/docs/guides/mcp-oauth.md +1 -1
  182. package/docs/guides/migrate.md +1 -1
  183. package/docs/guides/slack.md +1 -1
  184. package/docs/hillclimbing.md +1 -1
  185. package/docs/reference/agent-config.md +5 -6
  186. package/docs/reference/cli.md +2 -2
  187. package/docs/reference/hooks.md +1 -1
  188. package/package.json +3 -3
  189. package/skills/cli/SKILL.md +1 -1
  190. package/skills/create-agent/SKILL.md +61 -7
  191. package/skills/debug/SKILL.md +1 -1
  192. package/skills/deploy/SKILL.md +3 -3
  193. package/skills/evals/SKILL.md +1 -1
  194. package/skills/framework-map/SKILL.md +2 -2
  195. package/skills/github/SKILL.md +1 -1
  196. package/skills/hillclimb/SKILL.md +1 -1
  197. package/skills/mcp-auth/SKILL.md +1 -1
  198. package/skills/migrate-v2/SKILL.md +2 -2
  199. package/skills/otel/SKILL.md +1 -1
  200. package/skills/setup-slack/SKILL.md +2 -2
  201. package/dist/docs/assets/changelog.md.BWhC6DET.js +0 -1
  202. package/dist/docs/assets/chunks/@localSearchIndexroot.CWxwVoCG.js +0 -1
  203. package/dist/docs/assets/chunks/channel.Cctv0f7X.js +0 -1
  204. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.DU5sqchW.js +0 -1
  205. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.DU5sqchW.js +0 -1
  206. package/dist/docs/assets/chunks/clone.B9rdNt6j.js +0 -1
  207. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.ECMu2BdJ.js +0 -1
  208. package/dist/docs/assets/index.md.DRfaoRCZ.js +0 -20
  209. package/dist/docs/assets/index.md.DRfaoRCZ.lean.js +0 -1
  210. package/dist/internal/filesystem/errors.d.ts +0 -64
  211. package/dist/internal/filesystem/errors.d.ts.map +0 -1
  212. package/dist/internal/filesystem/errors.js +0 -180
  213. package/dist/internal/filesystem/merge.d.ts +0 -34
  214. package/dist/internal/filesystem/merge.d.ts.map +0 -1
  215. package/dist/internal/filesystem/merge.js +0 -154
  216. package/dist/playground/assets/index-D6mVn9og.js +0 -62
  217. package/dist/playground/assets/index-DlALM6gr.css +0 -1
  218. /package/dist/docs/assets/{building-with-agents.md.BqJ7AAjG.lean.js → building-with-agents.md.Bo3ct-rf.lean.js} +0 -0
  219. /package/dist/docs/assets/{guides_agent-to-agent.md.BcmSqL2z.lean.js → guides_agent-to-agent.md.DcB3nhOz.lean.js} +0 -0
  220. /package/dist/docs/assets/{guides_github.md.6jiEH7dg.lean.js → guides_github.md.CcuZ7keS.lean.js} +0 -0
  221. /package/dist/docs/assets/{guides_mcp-oauth.md.C-Sx_IPa.lean.js → guides_mcp-oauth.md.GVPMKcYl.lean.js} +0 -0
  222. /package/dist/docs/assets/{guides_migrate.md.BbhHYeCr.lean.js → guides_migrate.md.B8CZxnnX.lean.js} +0 -0
  223. /package/dist/docs/assets/{guides_slack.md.BgIGG9ur.lean.js → guides_slack.md.D7Rwyva4.lean.js} +0 -0
  224. /package/dist/docs/assets/{hillclimbing.md.3TkdF79A.lean.js → hillclimbing.md.M51bF-oT.lean.js} +0 -0
  225. /package/dist/docs/assets/{reference_agent-config.md.C0Tp_Fk9.lean.js → reference_agent-config.md.BSNp2uJ7.lean.js} +0 -0
  226. /package/dist/docs/assets/{reference_cli.md.B8GdpaRj.lean.js → reference_cli.md.DHm6DmYk.lean.js} +0 -0
  227. /package/dist/docs/assets/{reference_schedules.md.RhQ9ZLo1.lean.js → reference_schedules.md.Dd8_d0WG.lean.js} +0 -0
@@ -1,6 +1,7 @@
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 FSGrepQuery, type FSGrepResult, type ToolName } from "@cursor/sdk";
3
2
  import type { HostFilesApi, HostFilesScope } from "./types.js";
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";
4
5
  /**
5
6
  * Status envelope used by walk helpers such as `lsFromList`.
6
7
  * FileSystem methods throw; they do not return this.
@@ -15,31 +16,9 @@ export type FileSystemResult<T> = {
15
16
  message: string;
16
17
  };
17
18
  };
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
19
  /**
41
20
  * Native Grep `output_mode` envelope. Not a FileSystem method
42
- * result. The `grep` verb yields {@link GrepResult}; synthesis
21
+ * result. The `grep` verb yields {@link FSGrepResult}; synthesis
43
22
  * shapes this union after draining the stream.
44
23
  */
45
24
  export type GrepUnionResult = {
@@ -70,230 +49,6 @@ export type GrepUnionResult = {
70
49
  total: number;
71
50
  };
72
51
  };
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
52
  export declare const FILE_SYSTEM_TOOL_NAMES: readonly ["Read", "LS", "Glob", "Grep", "Write", "StrReplace", "Delete"];
298
53
  export type FileSystemToolName = (typeof FILE_SYSTEM_TOOL_NAMES)[number];
299
54
  export declare function canonicalizeFileSystemToolName(name: string): FileSystemToolName | undefined;
@@ -344,12 +99,12 @@ export declare function fileSystemImage(content: string | Uint8Array, path: stri
344
99
  mimeType: string;
345
100
  bytes: Uint8Array;
346
101
  } | undefined;
347
- export declare function collectGrepMatches(root: FileSystem, query: GrepQuery, opts: {
102
+ export declare function collectGrepMatches(root: FileSystem, query: FSGrepQuery, opts: {
348
103
  outputMode: GrepOutputMode;
349
104
  headLimit?: number;
350
105
  offset?: number;
351
- }): Promise<GrepResult[]>;
352
- export type GrepContentHit = GrepResult & {
106
+ }): Promise<FSGrepResult[]>;
107
+ export type GrepContentHit = FSGrepResult & {
353
108
  beforeContext?: string[];
354
109
  afterContext?: string[];
355
110
  };
@@ -372,29 +127,8 @@ export declare function writeWorkspaceFilesToRoot(root: FileSystem, files: Recor
372
127
  data: string;
373
128
  mimeType?: string;
374
129
  }>): 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
130
  /** Native Read offset/limit: 1-indexed, negative offset counts from the end. */
382
131
  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
132
  /**
399
133
  * Host-disk FileSystem. Relative paths resolve against `cwd`. Absolute
400
134
  * paths are used as given, matching Cursor SDK native file tools, unless
@@ -427,53 +161,6 @@ export declare function sessionFileSystem(options: {
427
161
  };
428
162
  scratch?: FileSystem;
429
163
  }): 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
164
  /**
478
165
  * `HostFilesApi` as a FileSystem rooted at `/`.
479
166
  *
@@ -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,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GAC/B;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAEtF;;;;GAIG;AACH,MAAM,MAAM,eAA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