@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.
- package/dist/channels/match-ready/index.d.ts +4 -0
- package/dist/channels/match-ready/index.d.ts.map +1 -0
- package/dist/channels/match-ready/index.js +2 -0
- package/dist/channels/match-ready/match-ready-channel.d.ts +5 -0
- package/dist/channels/match-ready/match-ready-channel.d.ts.map +1 -0
- package/dist/channels/match-ready/match-ready-channel.js +42 -0
- package/dist/channels/match-ready/types.d.ts +25 -0
- package/dist/channels/match-ready/types.d.ts.map +1 -0
- package/dist/channels/match-ready/types.js +1 -0
- package/dist/channels/slack/slack-channel.d.ts.map +1 -1
- package/dist/channels/slack/slack-channel.js +27 -14
- package/dist/docs/404.html +2 -2
- package/dist/docs/assets/{app.BzTUBOAD.js → app.CYdjweqP.js} +4 -4
- package/dist/docs/assets/{building-with-agents.md.BqJ7AAjG.js → building-with-agents.md.Bo3ct-rf.js} +1 -1
- package/dist/docs/assets/changelog.md.BMrJ5WxW.js +1 -0
- package/dist/docs/assets/changelog.md.BMrJ5WxW.lean.js +1 -0
- package/dist/docs/assets/chunks/@localSearchIndexroot.dUaE1f8e.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.DsnRlUT5.js → VPLocalSearchBox.CRATKS9J.js} +1 -1
- package/dist/docs/assets/chunks/{arc.DH8GOhiv.js → arc.BxM78ISR.js} +1 -1
- package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.9m9ObyuE.js → architectureDiagram-Q4EWVU46.Bi6MuKaU.js} +1 -1
- package/dist/docs/assets/chunks/{baseUniq.BXHpx1lE.js → baseUniq.L47qqpDG.js} +1 -1
- package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.xY3EX59q.js → blockDiagram-DXYQGD6D.kHFF2FK5.js} +1 -1
- package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.DnqgMVgc.js → c4Diagram-AHTNJAMY.BTW85ll3.js} +1 -1
- package/dist/docs/assets/chunks/channel.ljJtQtBi.js +1 -0
- package/dist/docs/assets/chunks/{chunk-4BX2VUAB.BjFxK2A3.js → chunk-4BX2VUAB.Bbh3_48g.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-4TB4RGXK.BujS_Spt.js → chunk-4TB4RGXK.WeAmK3fK.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-55IACEB6.YbTjhdaM.js → chunk-55IACEB6.DTdUiVHf.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-EDXVE4YY.DnQ8t4GC.js → chunk-EDXVE4YY.n5XzANDz.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-FMBD7UC4.B67AwAmj.js → chunk-FMBD7UC4.D51eewCb.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-OYMX7WX6.DrZIAFOm.js → chunk-OYMX7WX6.BrY0U7ZV.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-QZHKN3VN.BLmmydkn.js → chunk-QZHKN3VN.B0OA4aFV.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-YZCP3GAM.DaoOfw0O.js → chunk-YZCP3GAM.Djt3Mjft.js} +1 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.BZ3Uc-XU.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.BZ3Uc-XU.js +1 -0
- package/dist/docs/assets/chunks/clone.BDtbEo69.js +1 -0
- package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.DMQuNhM5.js → cose-bilkent-S5V4N54A.DiMcA6Q8.js} +1 -1
- package/dist/docs/assets/chunks/{dagre-KV5264BT.CZoGVuUf.js → dagre-KV5264BT.BGqI4vrS.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-5BDNPKRD.CLt9uOyL.js → diagram-5BDNPKRD.bDqFuMoH.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.DpczEm1G.js → diagram-G4DWMVQ6.Y0sxaXRU.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-MMDJMWI5.D4r13DvJ.js → diagram-MMDJMWI5.Bg43b0yi.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-TYMM5635.CYU9eGFu.js → diagram-TYMM5635.DCfVasEC.js} +1 -1
- package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.QA9naWEw.js → erDiagram-SMLLAGMA.C72GaD16.js} +1 -1
- package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.BbNoVZYd.js → flowDiagram-DWJPFMVM.DxRQj7pP.js} +1 -1
- package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.IHjDoG7r.js → ganttDiagram-T4ZO3ILL.DiLZy5Q4.js} +1 -1
- package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.B21VMdf5.js → gitGraphDiagram-UUTBAWPF.DL8XkRvh.js} +1 -1
- package/dist/docs/assets/chunks/{graph.DgJ4L-8V.js → graph.3Xub80xJ.js} +1 -1
- package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.CQjrcthc.js → infoDiagram-42DDH7IO.O3lGaspu.js} +1 -1
- package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.D4tPGtVo.js → ishikawaDiagram-UXIWVN3A.w-pCiQzn.js} +1 -1
- package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.BD3WaNbQ.js → journeyDiagram-VCZTEJTY.Cg_oBs9j.js} +1 -1
- package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.Ca0o4Tqz.js → kanban-definition-6JOO6SKY.BpfMGPwn.js} +1 -1
- package/dist/docs/assets/chunks/{layout.DXXqX4MQ.js → layout.CtwXs__p.js} +1 -1
- package/dist/docs/assets/chunks/{linear.5c61gNw4.js → linear.NmCskOrP.js} +1 -1
- package/dist/docs/assets/chunks/{min.B1-NAjHX.js → min.DpQtsLKs.js} +1 -1
- package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.BELznv3-.js → mindmap-definition-QFDTVHPH.B-P-aKVp.js} +1 -1
- package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.qPzO1mq5.js → pieDiagram-DEJITSTG.BfjjqK7j.js} +1 -1
- package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.CxIvzbjX.js → quadrantDiagram-34T5L4WZ.BTzHo53F.js} +1 -1
- package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.CqA0iJx8.js → requirementDiagram-MS252O5E.DIT2FIKr.js} +1 -1
- package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.XRTutBnb.js → sankeyDiagram-XADWPNL6.NK1wCsgt.js} +1 -1
- package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.E--7bRLQ.js → sequenceDiagram-FGHM5R23.D9oElkvo.js} +1 -1
- package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.C4vGu8zq.js → stateDiagram-FHFEXIEX.IPksnixH.js} +1 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.CbhzVsQE.js +1 -0
- package/dist/docs/assets/chunks/{theme.DMj_7q3B.js → theme.CgKu7tr3.js} +2 -2
- package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.C7LgNVAL.js → timeline-definition-GMOUNBTQ.CuAtJapY.js} +1 -1
- package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.HUwoZcy_.js → vennDiagram-DHZGUBPP.B87nNW9E.js} +1 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.BFIVMaoi.js +162 -0
- package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.B2pSo5rB.js → wardleyDiagram-NUSXRM2D.BELjSq8w.js} +1 -1
- package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.NQhMiOOL.js → xychartDiagram-5P7HB3ND.5zN5ZGsz.js} +1 -1
- package/dist/docs/assets/{deployment.md.BtqJrHhp.js → deployment.md.DJtuDVLh.js} +3 -3
- package/dist/docs/assets/{deployment.md.BtqJrHhp.lean.js → deployment.md.DJtuDVLh.lean.js} +1 -1
- package/dist/docs/assets/{guides_agent-to-agent.md.BcmSqL2z.js → guides_agent-to-agent.md.DcB3nhOz.js} +1 -1
- package/dist/docs/assets/{guides_github.md.6jiEH7dg.js → guides_github.md.CcuZ7keS.js} +1 -1
- package/dist/docs/assets/{guides_mcp-oauth.md.C-Sx_IPa.js → guides_mcp-oauth.md.GVPMKcYl.js} +1 -1
- package/dist/docs/assets/{guides_migrate.md.BbhHYeCr.js → guides_migrate.md.B8CZxnnX.js} +1 -1
- package/dist/docs/assets/{guides_slack.md.BgIGG9ur.js → guides_slack.md.D7Rwyva4.js} +1 -1
- package/dist/docs/assets/{hillclimbing.md.3TkdF79A.js → hillclimbing.md.M51bF-oT.js} +1 -1
- package/dist/docs/assets/index.md.DnJPj_B6.js +14 -0
- package/dist/docs/assets/index.md.DnJPj_B6.lean.js +1 -0
- package/dist/docs/assets/{reference_agent-config.md.C0Tp_Fk9.js → reference_agent-config.md.Bbqf0lgS.js} +13 -5
- package/dist/docs/assets/{reference_agent-config.md.C0Tp_Fk9.lean.js → reference_agent-config.md.Bbqf0lgS.lean.js} +1 -1
- package/dist/docs/assets/{reference_cli.md.B8GdpaRj.js → reference_cli.md.DHm6DmYk.js} +2 -2
- package/dist/docs/assets/{reference_hooks.md.CSWmOwMM.js → reference_hooks.md.vbIM394-.js} +2 -2
- package/dist/docs/assets/{reference_hooks.md.CSWmOwMM.lean.js → reference_hooks.md.vbIM394-.lean.js} +1 -1
- package/dist/docs/assets/{reference_tools.md.B2OaR1Nb.js → reference_tools.md.BhqW6neF.js} +4 -2
- package/dist/docs/assets/{reference_tools.md.B2OaR1Nb.lean.js → reference_tools.md.BhqW6neF.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +36 -36
- package/dist/docs/building-with-agents.md +3 -3
- package/dist/docs/changelog.html +36 -36
- package/dist/docs/changelog.md +44 -1
- package/dist/docs/deployment.html +37 -37
- package/dist/docs/deployment.md +22 -16
- package/dist/docs/evals.html +35 -35
- package/dist/docs/guides/agent-to-agent.html +37 -37
- package/dist/docs/guides/agent-to-agent.md +4 -2
- package/dist/docs/guides/bitbucket.html +35 -35
- package/dist/docs/guides/cloud-agents.html +35 -35
- package/dist/docs/guides/convert-automation.html +35 -35
- package/dist/docs/guides/github.html +37 -37
- package/dist/docs/guides/github.md +1 -1
- package/dist/docs/guides/gitlab.html +35 -35
- package/dist/docs/guides/improve.html +35 -35
- package/dist/docs/guides/jev.html +35 -35
- package/dist/docs/guides/mcp-oauth.html +37 -37
- package/dist/docs/guides/mcp-oauth.md +1 -1
- package/dist/docs/guides/migrate.html +37 -37
- package/dist/docs/guides/migrate.md +1 -1
- package/dist/docs/guides/opentelemetry.html +35 -35
- package/dist/docs/guides/pagerduty.html +35 -35
- package/dist/docs/guides/slack.html +37 -37
- package/dist/docs/guides/slack.md +1 -1
- package/dist/docs/guides/webhooks.html +35 -35
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +36 -36
- package/dist/docs/hillclimbing.md +1 -1
- package/dist/docs/index.html +42 -48
- package/dist/docs/index.md +8 -14
- package/dist/docs/llms-full.txt +176 -54
- package/dist/docs/quickstart.html +35 -35
- package/dist/docs/reference/access.html +35 -35
- package/dist/docs/reference/agent-config.html +47 -39
- package/dist/docs/reference/agent-config.md +75 -10
- package/dist/docs/reference/artifacts.html +35 -35
- package/dist/docs/reference/channels.html +35 -35
- package/dist/docs/reference/cli.html +38 -38
- package/dist/docs/reference/cli.md +2 -2
- package/dist/docs/reference/connections.html +35 -35
- package/dist/docs/reference/evals.html +35 -35
- package/dist/docs/reference/extensions.html +35 -35
- package/dist/docs/reference/hooks.html +37 -37
- package/dist/docs/reference/hooks.md +1 -1
- package/dist/docs/reference/http-api.html +35 -35
- package/dist/docs/reference/instructions.html +35 -35
- package/dist/docs/reference/limits.html +35 -35
- package/dist/docs/reference/memory.html +35 -35
- package/dist/docs/reference/playground.html +35 -35
- package/dist/docs/reference/project-layout.html +35 -35
- package/dist/docs/reference/schedules.html +35 -35
- package/dist/docs/reference/sessions.html +35 -35
- package/dist/docs/reference/skills.html +35 -35
- package/dist/docs/reference/subagents.html +35 -35
- package/dist/docs/reference/tools.html +39 -37
- package/dist/docs/reference/tools.md +12 -0
- package/dist/docs/templates/agentic-owners.html +35 -35
- package/dist/docs/templates/reviews.html +35 -35
- package/dist/docs/troubleshooting.html +35 -35
- package/dist/filesystem.d.ts +12 -412
- package/dist/filesystem.d.ts.map +1 -1
- package/dist/filesystem.js +37 -980
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/internal/authored-alias-hooks.d.ts +6 -0
- package/dist/internal/authored-alias-hooks.d.ts.map +1 -1
- package/dist/internal/authored-alias-hooks.js +12 -0
- package/dist/internal/authored-loaders.js +10 -1
- package/dist/internal/cli/commands/scaffold.js +1 -1
- package/dist/internal/continuation-channel.d.ts +3 -3
- package/dist/internal/continuation-channel.js +3 -3
- package/dist/internal/continuation-identity.d.ts +6 -5
- package/dist/internal/continuation-identity.d.ts.map +1 -1
- package/dist/internal/continuation-identity.js +17 -2
- package/dist/internal/continuation-session-ids.d.ts +15 -0
- package/dist/internal/continuation-session-ids.d.ts.map +1 -0
- package/dist/internal/continuation-session-ids.js +43 -0
- package/dist/internal/direct-file-tools.d.ts +21 -0
- package/dist/internal/direct-file-tools.d.ts.map +1 -0
- package/dist/internal/direct-file-tools.js +60 -0
- package/dist/internal/discovery/agent.d.ts.map +1 -1
- package/dist/internal/discovery/agent.js +71 -66
- package/dist/internal/filesystem/walk.d.ts +4 -56
- package/dist/internal/filesystem/walk.d.ts.map +1 -1
- package/dist/internal/filesystem/walk.js +4 -198
- package/dist/internal/hosted-catch-protocol.d.ts +3 -3
- package/dist/internal/hosted-catch-protocol.js +3 -3
- package/dist/internal/hosted-fetch.d.ts +7 -0
- package/dist/internal/hosted-fetch.d.ts.map +1 -0
- package/dist/internal/hosted-fetch.js +26 -0
- package/dist/internal/hosted-managed-automation.js +1 -1
- package/dist/internal/install-cursor-skills.d.ts +5 -6
- package/dist/internal/install-cursor-skills.d.ts.map +1 -1
- package/dist/internal/install-cursor-skills.js +19 -4
- package/dist/internal/mcp-endpoint.js +4 -4
- package/dist/internal/model-config.d.ts.map +1 -1
- package/dist/internal/model-config.js +11 -4
- package/dist/internal/otel/http.d.ts +2 -1
- package/dist/internal/otel/http.d.ts.map +1 -1
- package/dist/internal/otel/http.js +2 -3
- package/dist/internal/platform-timers.d.ts +3 -7
- package/dist/internal/platform-timers.d.ts.map +1 -1
- package/dist/internal/platform-timers.js +10 -51
- package/dist/internal/sdk-runner.d.ts.map +1 -1
- package/dist/internal/sdk-runner.js +22 -40
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +6 -1
- package/dist/internal/session-engine.d.ts +36 -19
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +182 -254
- package/dist/internal/tool-paths.d.ts +8 -0
- package/dist/internal/tool-paths.d.ts.map +1 -0
- package/dist/internal/tool-paths.js +12 -0
- package/dist/internal/workspace-tree.d.ts +27 -0
- package/dist/internal/workspace-tree.d.ts.map +1 -0
- package/dist/internal/workspace-tree.js +106 -0
- package/dist/playground/assets/index-D0-FHg1x.css +1 -0
- package/dist/playground/assets/index-D5SLKUy6.js +62 -0
- package/dist/playground/index.html +2 -2
- package/dist/types.d.ts +43 -23
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -2
- package/docs/README.md +8 -14
- package/docs/building-with-agents.md +3 -3
- package/docs/changelog.md +44 -1
- package/docs/deployment.md +22 -16
- package/docs/guides/agent-to-agent.md +4 -2
- package/docs/guides/github.md +1 -1
- package/docs/guides/mcp-oauth.md +1 -1
- package/docs/guides/migrate.md +1 -1
- package/docs/guides/slack.md +1 -1
- package/docs/hillclimbing.md +1 -1
- package/docs/reference/agent-config.md +75 -10
- package/docs/reference/cli.md +2 -2
- package/docs/reference/hooks.md +1 -1
- package/docs/reference/tools.md +12 -0
- package/package.json +10 -15
- package/skills/cli/SKILL.md +1 -1
- package/skills/create-agent/SKILL.md +61 -7
- package/skills/debug/SKILL.md +1 -1
- package/skills/deploy/SKILL.md +3 -3
- package/skills/evals/SKILL.md +1 -1
- package/skills/framework-map/SKILL.md +2 -2
- package/skills/github/SKILL.md +1 -1
- package/skills/hillclimb/SKILL.md +1 -1
- package/skills/mcp-auth/SKILL.md +1 -1
- package/skills/migrate-v2/SKILL.md +2 -2
- package/skills/otel/SKILL.md +1 -1
- package/skills/setup-slack/SKILL.md +2 -2
- package/dist/docs/assets/changelog.md.BWhC6DET.js +0 -1
- package/dist/docs/assets/changelog.md.BWhC6DET.lean.js +0 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.CWxwVoCG.js +0 -1
- package/dist/docs/assets/chunks/channel.Cctv0f7X.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.DU5sqchW.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.DU5sqchW.js +0 -1
- package/dist/docs/assets/chunks/clone.B9rdNt6j.js +0 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.ECMu2BdJ.js +0 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.BxFEFYZS.js +0 -162
- package/dist/docs/assets/index.md.DRfaoRCZ.js +0 -20
- package/dist/docs/assets/index.md.DRfaoRCZ.lean.js +0 -1
- package/dist/executors.d.ts +0 -11
- package/dist/executors.d.ts.map +0 -1
- package/dist/executors.js +0 -21
- package/dist/internal/filesystem/errors.d.ts +0 -64
- package/dist/internal/filesystem/errors.d.ts.map +0 -1
- package/dist/internal/filesystem/errors.js +0 -180
- package/dist/internal/filesystem/format.d.ts +0 -28
- package/dist/internal/filesystem/format.d.ts.map +0 -1
- package/dist/internal/filesystem/format.js +0 -209
- package/dist/internal/filesystem/merge.d.ts +0 -34
- package/dist/internal/filesystem/merge.d.ts.map +0 -1
- package/dist/internal/filesystem/merge.js +0 -154
- package/dist/internal/filesystem/nearest.d.ts +0 -15
- package/dist/internal/filesystem/nearest.d.ts.map +0 -1
- package/dist/internal/filesystem/nearest.js +0 -90
- package/dist/internal/filesystem/scratch.d.ts +0 -60
- package/dist/internal/filesystem/scratch.d.ts.map +0 -1
- package/dist/internal/filesystem/scratch.js +0 -187
- package/dist/internal/filesystem/sdk-schemas.d.ts +0 -29
- package/dist/internal/filesystem/sdk-schemas.d.ts.map +0 -1
- package/dist/internal/filesystem/sdk-schemas.js +0 -148
- package/dist/internal/filesystem/subagent-inherit.d.ts +0 -39
- package/dist/internal/filesystem/subagent-inherit.d.ts.map +0 -1
- package/dist/internal/filesystem/subagent-inherit.js +0 -96
- package/dist/internal/filesystem/tools.d.ts +0 -59
- package/dist/internal/filesystem/tools.d.ts.map +0 -1
- package/dist/internal/filesystem/tools.js +0 -634
- package/dist/internal/otel/propagation.d.ts +0 -7
- package/dist/internal/otel/propagation.d.ts.map +0 -1
- package/dist/internal/otel/propagation.js +0 -15
- package/dist/internal/sdk-subagent-inherit-support.d.ts +0 -9
- package/dist/internal/sdk-subagent-inherit-support.d.ts.map +0 -1
- package/dist/internal/sdk-subagent-inherit-support.js +0 -90
- package/dist/playground/assets/index-D6mVn9og.js +0 -62
- package/dist/playground/assets/index-DlALM6gr.css +0 -1
- /package/dist/docs/assets/{building-with-agents.md.BqJ7AAjG.lean.js → building-with-agents.md.Bo3ct-rf.lean.js} +0 -0
- /package/dist/docs/assets/{guides_agent-to-agent.md.BcmSqL2z.lean.js → guides_agent-to-agent.md.DcB3nhOz.lean.js} +0 -0
- /package/dist/docs/assets/{guides_github.md.6jiEH7dg.lean.js → guides_github.md.CcuZ7keS.lean.js} +0 -0
- /package/dist/docs/assets/{guides_mcp-oauth.md.C-Sx_IPa.lean.js → guides_mcp-oauth.md.GVPMKcYl.lean.js} +0 -0
- /package/dist/docs/assets/{guides_migrate.md.BbhHYeCr.lean.js → guides_migrate.md.B8CZxnnX.lean.js} +0 -0
- /package/dist/docs/assets/{guides_slack.md.BgIGG9ur.lean.js → guides_slack.md.D7Rwyva4.lean.js} +0 -0
- /package/dist/docs/assets/{hillclimbing.md.3TkdF79A.lean.js → hillclimbing.md.M51bF-oT.lean.js} +0 -0
- /package/dist/docs/assets/{reference_cli.md.B8GdpaRj.lean.js → reference_cli.md.DHm6DmYk.lean.js} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{_ as t,c as a,o as s,a3 as n}from"./chunks/framework.BNw1pucY.js";const i="/docs/architecture.svg",u=JSON.parse('{"title":"Agent SDK","description":"Build, test, and deploy bots and agents as code with the Agent SDK.","frontmatter":{"title":"Agent SDK","description":"Build, test, and deploy bots and agents as code with the Agent SDK."},"headers":[],"relativePath":"index.md","filePath":"README.md"}'),o={name:"index.md"};function r(d,e,l,p,h,c){return s(),a("div",null,[...e[0]||(e[0]=[n(`<h1 id="agent-sdk" tabindex="-1">Agent SDK <a class="header-anchor" href="#agent-sdk" aria-label="Permalink to "Agent SDK""></a></h1><p>Agent SDK lets you define, test, evaluate, and deploy agents as code. It uses the Cursor SDK harness that powers Bugbot, Security Review, Approval Bot, and Rollouts.</p><p>An Agent's behavior is defined in a folder of Markdown and TypeScript that combines deterministic code with model judgment. Agent SDK makes it easy to build useful agents, with APIs to interact on Slack, pull requests, issue trackers, Cursor, and the other places where you get work done.</p><p>After you deploy an agent, open <a href="https://cursor.com/dashboard/deployed-agents" target="_blank" rel="noreferrer">Deployed Agents</a> to manage it.</p><h2 id="get-started-with-your-coding-agent" tabindex="-1">Get Started with your Coding Agent <a class="header-anchor" href="#get-started-with-your-coding-agent" aria-label="Permalink to "Get Started with your Coding Agent""></a></h2><p>Paste this prompt into your coding agent. It installs the CLI, asks what your agent is for, and scaffolds a first project from the Markdown version of these docs.</p><div class="language-text vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">text</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>Set up my first Agent SDK project.</span></span>
|
|
2
|
-
<span class="line"><span></span></span>
|
|
3
|
-
<span class="line"><span>Read https://cursor.com/docs/agent-sdk.md first. Every page under</span></span>
|
|
4
|
-
<span class="line"><span>https://cursor.com/docs/agent-sdk/ is also available as Markdown when you</span></span>
|
|
5
|
-
<span class="line"><span>add .md to its URL.</span></span>
|
|
6
|
-
<span class="line"><span></span></span>
|
|
7
|
-
<span class="line"><span>1. Check that Node is 22.13 or newer, then run:</span></span>
|
|
8
|
-
<span class="line"><span> npm install --global @grok/agent-sdk</span></span>
|
|
9
|
-
<span class="line"><span>2. Read the docs index that ships with the package:</span></span>
|
|
10
|
-
<span class="line"><span> "$(npm root -g)/@grok/agent-sdk/dist/docs/llms.txt"</span></span>
|
|
11
|
-
<span class="line"><span>3. Run agent-sdk login, and wait while I finish the browser sign-in.</span></span>
|
|
12
|
-
<span class="line"><span>4. Ask me what the agent should do and where people will reach it. Then</span></span>
|
|
13
|
-
<span class="line"><span> follow the bdk-create-agent skill at</span></span>
|
|
14
|
-
<span class="line"><span> "$(npm root -g)/@grok/agent-sdk/skills/create-agent/SKILL.md"</span></span>
|
|
15
|
-
<span class="line"><span> to scaffold the project with agent-sdk init.</span></span>
|
|
16
|
-
<span class="line"><span>5. Run agent-sdk validate --dir . and one agent-sdk run turn, then show me</span></span>
|
|
17
|
-
<span class="line"><span> the reply.</span></span></code></pre></div><h2 id="why-agent-sdk" tabindex="-1">Why Agent SDK <a class="header-anchor" href="#why-agent-sdk" aria-label="Permalink to "Why Agent SDK""></a></h2><p>Your instructions, tools, and evals are files you review, test, and version like the rest of your code. You write the instructions and tools, and Cursor runs the model loop that calls them.</p><h2 id="when-to-use-agent-sdk" tabindex="-1">When to use Agent SDK <a class="header-anchor" href="#when-to-use-agent-sdk" aria-label="Permalink to "When to use Agent SDK""></a></h2><table tabindex="0"><thead><tr><th></th><th>Cursor Automations</th><th>Grok Bot</th><th>Agent SDK</th></tr></thead><tbody><tr><td><strong>You define</strong></td><td>A prompt, model, and trigger in the dashboard</td><td>Instructions, skills, and connected tools in the app</td><td>A versioned Markdown and TypeScript project</td></tr><tr><td><strong>Where it runs</strong></td><td>Cursor-managed</td><td>Cursor-managed</td><td>Cursor-managed hosting or your infrastructure</td></tr><tr><td><strong>Choose it when</strong></td><td>The job fits a schedule or event trigger</td><td>You want to configure and talk to an agent without writing code</td><td>You want code around model judgment that your team can version control, review, test and hillclimb</td></tr></tbody></table><h2 id="get-started" tabindex="-1">Get started <a class="header-anchor" href="#get-started" aria-label="Permalink to "Get started""></a></h2><p>Install <code>@grok/agent-sdk</code>, then scaffold and run a project. The package was <code>@cursor/bdk</code> before.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">npm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --global</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> @grok/agent-sdk</span></span>
|
|
18
|
-
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent-sdk</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> init</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ./my-bot</span></span>
|
|
19
|
-
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">cd</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> my-bot</span></span>
|
|
20
|
-
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent-sdk</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> dev</span></span></code></pre></div><p><a href="./reference/project-layout.html">Project layout</a> explains every folder under <code>bot/</code>.</p><h2 id="next-steps" tabindex="-1">Next steps <a class="header-anchor" href="#next-steps" aria-label="Permalink to "Next steps""></a></h2><ul><li><a href="./quickstart.html">Build your first PR reviewer agent</a> step by step.</li><li>Start from a <a href="./templates/reviews.html">review or triage template</a> or the <a href="./templates/agentic-owners.html">owners-policy approver</a>.</li><li><a href="./guides/convert-automation.html">Convert a Cursor Automation</a> into an Agent SDK project.</li><li><a href="./building-with-agents.html">Build agents with agents</a> using a coding agent.</li><li>Look up commands in the <a href="./reference/cli.html">CLI reference</a> and deployed-agent roles in <a href="./reference/access.html">Access</a>.</li></ul><h2 id="architecture" tabindex="-1">Architecture <a class="header-anchor" href="#architecture" aria-label="Permalink to "Architecture""></a></h2><p><img src="`+i+'" alt="Agent SDK architecture"></p>',19)])])}const k=t(o,[["render",r]]);export{u as __pageData,k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,c as a,o as s,a3 as n}from"./chunks/framework.BNw1pucY.js";const i="/docs/architecture.svg",u=JSON.parse('{"title":"Agent SDK","description":"Build, test, and deploy bots and agents as code with the Agent SDK.","frontmatter":{"title":"Agent SDK","description":"Build, test, and deploy bots and agents as code with the Agent SDK."},"headers":[],"relativePath":"index.md","filePath":"README.md"}'),o={name:"index.md"};function r(d,e,l,p,h,c){return s(),a("div",null,[...e[0]||(e[0]=[n("",19)])])}const k=t(o,[["render",r]]);export{u as __pageData,k as default};
|
package/dist/executors.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Published `@grok/agent-sdk/executors` entry.
|
|
3
|
-
*
|
|
4
|
-
* These adapters are not included in the published package.
|
|
5
|
-
*/
|
|
6
|
-
import type { FileSystem } from "./filesystem.js";
|
|
7
|
-
export declare function createFileSystemReadExecutor(root: FileSystem): never;
|
|
8
|
-
export declare function createFileSystemWriteExecutor(root: FileSystem): never;
|
|
9
|
-
export declare function createFileSystemGrepExecutor(root: FileSystem): never;
|
|
10
|
-
export declare function createFileSystemLsExecutor(root: FileSystem): never;
|
|
11
|
-
//# sourceMappingURL=executors.d.ts.map
|
package/dist/executors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executors.d.ts","sourceRoot":"","sources":["../src/executors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AASlD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,UAAU,GAAG,KAAK,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,UAAU,GAAG,KAAK,CAErE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,UAAU,GAAG,KAAK,CAEpE;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,UAAU,GAAG,KAAK,CAElE"}
|
package/dist/executors.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Published `@grok/agent-sdk/executors` entry.
|
|
3
|
-
*
|
|
4
|
-
* These adapters are not included in the published package.
|
|
5
|
-
*/
|
|
6
|
-
const PUBLISHED_EXECUTORS_ERROR = "@grok/agent-sdk/executors is not included in the published package.";
|
|
7
|
-
function unpublishedExecutors(_root) {
|
|
8
|
-
throw new Error(PUBLISHED_EXECUTORS_ERROR);
|
|
9
|
-
}
|
|
10
|
-
export function createFileSystemReadExecutor(root) {
|
|
11
|
-
return unpublishedExecutors(root);
|
|
12
|
-
}
|
|
13
|
-
export function createFileSystemWriteExecutor(root) {
|
|
14
|
-
return unpublishedExecutors(root);
|
|
15
|
-
}
|
|
16
|
-
export function createFileSystemGrepExecutor(root) {
|
|
17
|
-
return unpublishedExecutors(root);
|
|
18
|
-
}
|
|
19
|
-
export function createFileSystemLsExecutor(root) {
|
|
20
|
-
return unpublishedExecutors(root);
|
|
21
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typed FileSystem throws. Every method error is a {@link PathError}
|
|
3
|
-
* so composers (`unionFs`) can rewrite `path` without scraping
|
|
4
|
-
* `error.message`.
|
|
5
|
-
*
|
|
6
|
-
* Messages stay the FileSystem contract strings. `path` is the
|
|
7
|
-
* absolute posix path the error is about (child-root on a mount,
|
|
8
|
-
* namespace path after `unionFs` remaps it).
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Base of every FileSystem method throw. Config / factory errors
|
|
12
|
-
* (`FileSystemConfigError`, empty `overlayFs`) are not PathErrors.
|
|
13
|
-
*/
|
|
14
|
-
export declare class PathError extends Error {
|
|
15
|
-
readonly path: string;
|
|
16
|
-
constructor(path: string, message: string);
|
|
17
|
-
/**
|
|
18
|
-
* Same error at a rewritten path. `unionFs` prepends the mount
|
|
19
|
-
* prefix this way. Subclass identity and extra fields stay.
|
|
20
|
-
*/
|
|
21
|
-
withPath(path: string): this;
|
|
22
|
-
protected recreate(path: string, message: string): this;
|
|
23
|
-
}
|
|
24
|
-
export declare class FileNotFoundError extends PathError {
|
|
25
|
-
constructor(path: string, message?: string);
|
|
26
|
-
protected recreate(path: string, message: string): this;
|
|
27
|
-
}
|
|
28
|
-
export declare class ReadOnlyMountError extends PathError {
|
|
29
|
-
constructor(path: string, message?: string);
|
|
30
|
-
protected recreate(path: string, message: string): this;
|
|
31
|
-
}
|
|
32
|
-
export declare class NoMountError extends PathError {
|
|
33
|
-
constructor(path: string, message?: string);
|
|
34
|
-
protected recreate(path: string, message: string): this;
|
|
35
|
-
}
|
|
36
|
-
export declare class WriteFailedError extends PathError {
|
|
37
|
-
constructor(path: string, message?: string);
|
|
38
|
-
protected recreate(path: string, message: string): this;
|
|
39
|
-
}
|
|
40
|
-
export declare class DeleteNotSupportedError extends PathError {
|
|
41
|
-
constructor(path: string, message?: string);
|
|
42
|
-
protected recreate(path: string, message: string): this;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Exact-edit contract failures (`oldText is empty`, uniqueness).
|
|
46
|
-
* `message` is the contract string; it does not embed `path`.
|
|
47
|
-
*/
|
|
48
|
-
export declare class EditError extends PathError {
|
|
49
|
-
protected recreate(path: string, message: string): this;
|
|
50
|
-
}
|
|
51
|
-
export declare class InvalidGrepPatternError extends PathError {
|
|
52
|
-
readonly pattern: string;
|
|
53
|
-
constructor(pattern: string, path?: string, message?: string);
|
|
54
|
-
protected recreate(path: string, message: string): this;
|
|
55
|
-
}
|
|
56
|
-
export declare function isFileNotFoundError(error: unknown): boolean;
|
|
57
|
-
export declare function isInvalidGrepPatternError(error: unknown): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Remap a child throw onto a mount prefix. Typed {@link PathError}
|
|
60
|
-
* keeps its class and rewrites `path`. Untyped `Error` still gets
|
|
61
|
-
* a best-effort message rewrite so older custom trees keep working.
|
|
62
|
-
*/
|
|
63
|
-
export declare function remapPathError(error: unknown, prefix: string): Error;
|
|
64
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/internal/filesystem/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA8BH;;;GAGG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAIxC;IAED;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAM3B;IAED,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAGtD;CACF;AAED,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAEzC;IAED,UAAmB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG/D;CACF;AAED,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAEzC;IAED,UAAmB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG/D;CACF;AAED,qBAAa,YAAa,SAAQ,SAAS;IACzC,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAEzC;IAED,UAAmB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG/D;CACF;AAED,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAEzC;IAED,UAAmB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG/D;CACF;AAED,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAEzC;IAED,UAAmB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG/D;CACF;AAED;;;GAGG;AACH,qBAAa,SAAU,SAAQ,SAAS;IACtC,UAAmB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG/D;CACF;AAED,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,YAAY,OAAO,EAAE,MAAM,EAAE,IAAI,SAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAGxD;IAED,UAAmB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG/D;CACF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK3D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKjE;AAWD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAQpE"}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typed FileSystem throws. Every method error is a {@link PathError}
|
|
3
|
-
* so composers (`unionFs`) can rewrite `path` without scraping
|
|
4
|
-
* `error.message`.
|
|
5
|
-
*
|
|
6
|
-
* Messages stay the FileSystem contract strings. `path` is the
|
|
7
|
-
* absolute posix path the error is about (child-root on a mount,
|
|
8
|
-
* namespace path after `unionFs` remaps it).
|
|
9
|
-
*/
|
|
10
|
-
import path from "node:path";
|
|
11
|
-
function normalizeErrorPath(input) {
|
|
12
|
-
const slashes = input.replace(/\\/g, "/");
|
|
13
|
-
if (slashes === "") {
|
|
14
|
-
return "/";
|
|
15
|
-
}
|
|
16
|
-
const withSlash = slashes.startsWith("/") ? slashes : `/${slashes}`;
|
|
17
|
-
const resolved = path.posix.normalize(withSlash);
|
|
18
|
-
if (resolved.length > 1 && resolved.endsWith("/")) {
|
|
19
|
-
return resolved.slice(0, -1);
|
|
20
|
-
}
|
|
21
|
-
return resolved === "." || resolved === "" ? "/" : resolved;
|
|
22
|
-
}
|
|
23
|
-
const ROOT_MESSAGE_PREFIX = /^(not found|read-only mount|write failed|edit failed|no mount for path|delete is not supported): \/$/;
|
|
24
|
-
function rewritePathInMessage(message, from, to) {
|
|
25
|
-
if (from === to) {
|
|
26
|
-
return message;
|
|
27
|
-
}
|
|
28
|
-
if (from === "/") {
|
|
29
|
-
return ROOT_MESSAGE_PREFIX.test(message) ? message.replace(/\/$/, to) : message;
|
|
30
|
-
}
|
|
31
|
-
return message.includes(from) ? message.split(from).join(to) : message;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Base of every FileSystem method throw. Config / factory errors
|
|
35
|
-
* (`FileSystemConfigError`, empty `overlayFs`) are not PathErrors.
|
|
36
|
-
*/
|
|
37
|
-
export class PathError extends Error {
|
|
38
|
-
constructor(path, message) {
|
|
39
|
-
super(message);
|
|
40
|
-
this.name = new.target.name;
|
|
41
|
-
this.path = normalizeErrorPath(path);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Same error at a rewritten path. `unionFs` prepends the mount
|
|
45
|
-
* prefix this way. Subclass identity and extra fields stay.
|
|
46
|
-
*/
|
|
47
|
-
withPath(path) {
|
|
48
|
-
const next = normalizeErrorPath(path);
|
|
49
|
-
if (next === this.path) {
|
|
50
|
-
return this;
|
|
51
|
-
}
|
|
52
|
-
return this.recreate(next, rewritePathInMessage(this.message, this.path, next));
|
|
53
|
-
}
|
|
54
|
-
recreate(path, message) {
|
|
55
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
56
|
-
return new PathError(path, message);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
export class FileNotFoundError extends PathError {
|
|
60
|
-
constructor(path, message) {
|
|
61
|
-
super(path, message ?? `not found: ${normalizeErrorPath(path)}`);
|
|
62
|
-
}
|
|
63
|
-
recreate(path, message) {
|
|
64
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
65
|
-
return new FileNotFoundError(path, message);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export class ReadOnlyMountError extends PathError {
|
|
69
|
-
constructor(path, message) {
|
|
70
|
-
super(path, message ?? `read-only mount: ${normalizeErrorPath(path)}`);
|
|
71
|
-
}
|
|
72
|
-
recreate(path, message) {
|
|
73
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
74
|
-
return new ReadOnlyMountError(path, message);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
export class NoMountError extends PathError {
|
|
78
|
-
constructor(path, message) {
|
|
79
|
-
super(path, message ?? `no mount for path: ${normalizeErrorPath(path)}`);
|
|
80
|
-
}
|
|
81
|
-
recreate(path, message) {
|
|
82
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
83
|
-
return new NoMountError(path, message);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
export class WriteFailedError extends PathError {
|
|
87
|
-
constructor(path, message) {
|
|
88
|
-
super(path, message ?? `write failed: ${normalizeErrorPath(path)}`);
|
|
89
|
-
}
|
|
90
|
-
recreate(path, message) {
|
|
91
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
92
|
-
return new WriteFailedError(path, message);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
export class DeleteNotSupportedError extends PathError {
|
|
96
|
-
constructor(path, message) {
|
|
97
|
-
super(path, message ?? `delete is not supported: ${normalizeErrorPath(path)}`);
|
|
98
|
-
}
|
|
99
|
-
recreate(path, message) {
|
|
100
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
101
|
-
return new DeleteNotSupportedError(path, message);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Exact-edit contract failures (`oldText is empty`, uniqueness).
|
|
106
|
-
* `message` is the contract string; it does not embed `path`.
|
|
107
|
-
*/
|
|
108
|
-
export class EditError extends PathError {
|
|
109
|
-
recreate(path, message) {
|
|
110
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
111
|
-
return new EditError(path, message);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
export class InvalidGrepPatternError extends PathError {
|
|
115
|
-
constructor(pattern, path = "/", message) {
|
|
116
|
-
super(path, message ?? `invalid grep pattern: ${pattern}`);
|
|
117
|
-
this.pattern = pattern;
|
|
118
|
-
}
|
|
119
|
-
recreate(path, message) {
|
|
120
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- recreate constructs this subclass; TypeScript cannot type the constructor as this
|
|
121
|
-
return new InvalidGrepPatternError(this.pattern, path, message);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
export function isFileNotFoundError(error) {
|
|
125
|
-
return (error instanceof FileNotFoundError ||
|
|
126
|
-
(error instanceof Error && error.message.startsWith("not found:")));
|
|
127
|
-
}
|
|
128
|
-
export function isInvalidGrepPatternError(error) {
|
|
129
|
-
return (error instanceof InvalidGrepPatternError ||
|
|
130
|
-
(error instanceof Error && error.message.startsWith("invalid grep pattern:")));
|
|
131
|
-
}
|
|
132
|
-
const CONTRACT_PATH_LABELS = [
|
|
133
|
-
"not found: ",
|
|
134
|
-
"read-only mount: ",
|
|
135
|
-
"write failed: ",
|
|
136
|
-
"edit failed: ",
|
|
137
|
-
"no mount for path: ",
|
|
138
|
-
"delete is not supported: ",
|
|
139
|
-
];
|
|
140
|
-
/**
|
|
141
|
-
* Remap a child throw onto a mount prefix. Typed {@link PathError}
|
|
142
|
-
* keeps its class and rewrites `path`. Untyped `Error` still gets
|
|
143
|
-
* a best-effort message rewrite so older custom trees keep working.
|
|
144
|
-
*/
|
|
145
|
-
export function remapPathError(error, prefix) {
|
|
146
|
-
if (error instanceof PathError) {
|
|
147
|
-
return error.withPath(joinMountPath(error.path, prefix));
|
|
148
|
-
}
|
|
149
|
-
if (!(error instanceof Error)) {
|
|
150
|
-
return new PathError(prefix, String(error));
|
|
151
|
-
}
|
|
152
|
-
return rewriteUntypedMountError(error, prefix);
|
|
153
|
-
}
|
|
154
|
-
function joinMountPath(childPath, prefix) {
|
|
155
|
-
const mount = normalizeErrorPath(prefix);
|
|
156
|
-
const child = normalizeErrorPath(childPath);
|
|
157
|
-
if (mount === "/") {
|
|
158
|
-
return child;
|
|
159
|
-
}
|
|
160
|
-
if (child === "/") {
|
|
161
|
-
return mount;
|
|
162
|
-
}
|
|
163
|
-
return `${mount}${child}`;
|
|
164
|
-
}
|
|
165
|
-
function rewriteUntypedMountError(error, prefix) {
|
|
166
|
-
for (const label of CONTRACT_PATH_LABELS) {
|
|
167
|
-
if (!error.message.startsWith(label)) {
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
const childPath = error.message.slice(label.length);
|
|
171
|
-
const next = `${label}${joinMountPath(childPath, prefix)}`;
|
|
172
|
-
if (next === error.message) {
|
|
173
|
-
return error;
|
|
174
|
-
}
|
|
175
|
-
const rewritten = new Error(next);
|
|
176
|
-
rewritten.name = error.name;
|
|
177
|
-
return rewritten;
|
|
178
|
-
}
|
|
179
|
-
return error;
|
|
180
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model-facing strings that match Cursor SDK native tool output
|
|
3
|
-
* (LocalLsExecutor / read / grep / glob formatters).
|
|
4
|
-
*/
|
|
5
|
-
import type { GrepUnionResult } from "../../filesystem.js";
|
|
6
|
-
import type { LsDirectoryTreeNode } from "./walk.js";
|
|
7
|
-
/**
|
|
8
|
-
* Number already-sliced Read content. `FileSystem.read` applies offset/
|
|
9
|
-
* limit; do not window again or line numbers restart at 1.
|
|
10
|
-
*/
|
|
11
|
-
export declare function slicedReadStartLine(totalLines: number, offset?: number): number;
|
|
12
|
-
export declare function formatNumberedLines(content: string, options?: {
|
|
13
|
-
offset?: number;
|
|
14
|
-
limit?: number;
|
|
15
|
-
/** When set, `content` is already the window; number from this line. */
|
|
16
|
-
startLine?: number;
|
|
17
|
-
totalLines?: number;
|
|
18
|
-
}): string;
|
|
19
|
-
export declare function formatLsTree(result: LsDirectoryTreeNode): string;
|
|
20
|
-
export declare function formatGlobOutput(dir: string, files: readonly string[]): string;
|
|
21
|
-
export declare function formatGrepOutput(union: GrepUnionResult | undefined): string;
|
|
22
|
-
export declare function formatWriteOutput(path: string): string;
|
|
23
|
-
export declare function formatStrReplaceOutput(args: {
|
|
24
|
-
path: string;
|
|
25
|
-
replaceAll: boolean;
|
|
26
|
-
occurrencesModified: number;
|
|
27
|
-
}): string;
|
|
28
|
-
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/internal/filesystem/format.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAKrD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAQ/E;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CAChB,GACL,MAAM,CAoBR;AAeD,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAsChE;AAiED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAmB9E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,GAAG,MAAM,CAwC3E;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,GAAG,MAAM,CAOT"}
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model-facing strings that match Cursor SDK native tool output
|
|
3
|
-
* (LocalLsExecutor / read / grep / glob formatters).
|
|
4
|
-
*/
|
|
5
|
-
import { posix } from "node:path";
|
|
6
|
-
const LS_RENDER_CHARACTER_BUDGET = 10_000;
|
|
7
|
-
const GLOB_TOTAL_CHARACTER_BUDGET = 5_000;
|
|
8
|
-
/**
|
|
9
|
-
* Number already-sliced Read content. `FileSystem.read` applies offset/
|
|
10
|
-
* limit; do not window again or line numbers restart at 1.
|
|
11
|
-
*/
|
|
12
|
-
export function slicedReadStartLine(totalLines, offset) {
|
|
13
|
-
if (offset === undefined) {
|
|
14
|
-
return 1;
|
|
15
|
-
}
|
|
16
|
-
if (offset < 0) {
|
|
17
|
-
return Math.max(1, totalLines + offset + 1);
|
|
18
|
-
}
|
|
19
|
-
return Math.max(1, offset);
|
|
20
|
-
}
|
|
21
|
-
export function formatNumberedLines(content, options = {}) {
|
|
22
|
-
const lines = content === "" ? [] : content.split("\n");
|
|
23
|
-
if (lines.length === 0) {
|
|
24
|
-
return "";
|
|
25
|
-
}
|
|
26
|
-
const { offset, limit, startLine } = options;
|
|
27
|
-
let start = 1;
|
|
28
|
-
let window = lines;
|
|
29
|
-
const total = options.totalLines ?? lines.length;
|
|
30
|
-
if (startLine !== undefined) {
|
|
31
|
-
start = startLine;
|
|
32
|
-
}
|
|
33
|
-
else if (offset !== undefined || limit !== undefined) {
|
|
34
|
-
const effectiveOffset = offset ?? 1;
|
|
35
|
-
const effectiveLimit = limit ?? (effectiveOffset < 0 ? Math.abs(effectiveOffset) : total);
|
|
36
|
-
start =
|
|
37
|
-
effectiveOffset < 0 ? Math.max(1, total + effectiveOffset + 1) : Math.max(1, effectiveOffset);
|
|
38
|
-
const end = Math.min(total, start + effectiveLimit - 1);
|
|
39
|
-
window = lines.slice(start - 1, end);
|
|
40
|
-
}
|
|
41
|
-
return renderNumberedWindow(window, start, total);
|
|
42
|
-
}
|
|
43
|
-
function renderNumberedWindow(window, start, total) {
|
|
44
|
-
const numbered = window.map((line, index) => `${String(start + index).padStart(6, " ")}|${line}`);
|
|
45
|
-
let result = numbered.join("\n");
|
|
46
|
-
if (start > 1) {
|
|
47
|
-
result = `... ${start - 1} ${start - 1 === 1 ? "line" : "lines"} not shown ...\n${result}`;
|
|
48
|
-
}
|
|
49
|
-
const end = start + window.length - 1;
|
|
50
|
-
if (end < total) {
|
|
51
|
-
result += `\n... ${total - end} ${total - end === 1 ? "line" : "lines"} not shown ...`;
|
|
52
|
-
}
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
export function formatLsTree(result) {
|
|
56
|
-
if (result.childrenWereProcessed &&
|
|
57
|
-
result.childrenDirs.length === 0 &&
|
|
58
|
-
result.childrenFiles.length === 0) {
|
|
59
|
-
const trailingSlash = result.absPath.endsWith("/") ? "" : "/";
|
|
60
|
-
return `${result.absPath}${trailingSlash}\n... no children found ...`;
|
|
61
|
-
}
|
|
62
|
-
const characterBudget = LS_RENDER_CHARACTER_BUDGET;
|
|
63
|
-
let toolResponse = renderDirectoryTree(result).result;
|
|
64
|
-
if (toolResponse.length > characterBudget) {
|
|
65
|
-
toolResponse = renderDirectoryTree(result, true, 0).result;
|
|
66
|
-
if (toolResponse.length > characterBudget) {
|
|
67
|
-
toolResponse = renderDirectoryTree(result, false, 0).result;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const notes = [];
|
|
71
|
-
if (!result.childrenWereProcessed || toolResponse.length > characterBudget) {
|
|
72
|
-
if (toolResponse.length > characterBudget) {
|
|
73
|
-
toolResponse = toolResponse.slice(0, characterBudget);
|
|
74
|
-
const lastNewlineIndex = toolResponse.lastIndexOf("\n");
|
|
75
|
-
if (lastNewlineIndex > 0) {
|
|
76
|
-
toolResponse = toolResponse.slice(0, lastNewlineIndex + 1);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
toolResponse += " ...\n";
|
|
80
|
-
notes.push(`target_directory is too large (either too many children or their names are too long).` +
|
|
81
|
-
` Immediate children were truncated. Try doing more specific search or use the script tool.`);
|
|
82
|
-
}
|
|
83
|
-
if (notes.length === 1) {
|
|
84
|
-
toolResponse += `\nNote: ${notes[0]}`;
|
|
85
|
-
}
|
|
86
|
-
return toolResponse;
|
|
87
|
-
}
|
|
88
|
-
function renderDirectoryTree(rootDirectory, renderExtensionCounts = true, renderDepthLimit) {
|
|
89
|
-
function render(dir, depth) {
|
|
90
|
-
const indent = " ".repeat(depth);
|
|
91
|
-
let result;
|
|
92
|
-
if (depth === 0) {
|
|
93
|
-
const trailingSep = dir.absPath.endsWith("/") ? "" : "/";
|
|
94
|
-
result = `${dir.absPath}${trailingSep}\n`;
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
result = `${indent}- ${posix.basename(dir.absPath)}/\n`;
|
|
98
|
-
}
|
|
99
|
-
const allChildren = [
|
|
100
|
-
...dir.childrenFiles.map((file) => ({
|
|
101
|
-
type: "file",
|
|
102
|
-
name: file.name,
|
|
103
|
-
})),
|
|
104
|
-
...dir.childrenDirs.map((childDir) => ({
|
|
105
|
-
type: "dir",
|
|
106
|
-
name: posix.basename(childDir.absPath),
|
|
107
|
-
dir: childDir,
|
|
108
|
-
})),
|
|
109
|
-
];
|
|
110
|
-
allChildren.sort((left, right) => left.name.localeCompare(right.name));
|
|
111
|
-
const childIndent = " ".repeat(depth + 1);
|
|
112
|
-
for (const child of allChildren) {
|
|
113
|
-
if (child.type === "file") {
|
|
114
|
-
result += `${childIndent}- ${child.name}\n`;
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
const childDir = child.dir;
|
|
118
|
-
if (childDir.childrenWereProcessed &&
|
|
119
|
-
(renderDepthLimit === undefined || depth < renderDepthLimit)) {
|
|
120
|
-
result += render(childDir, depth + 1);
|
|
121
|
-
continue;
|
|
122
|
-
}
|
|
123
|
-
const extensionCounts = Object.entries(childDir.fullSubtreeExtensionCounts);
|
|
124
|
-
if (extensionCounts.length > 0 && renderExtensionCounts) {
|
|
125
|
-
const sorted = [...extensionCounts].sort(([, countA], [, countB]) => countB - countA);
|
|
126
|
-
const shown = sorted.slice(0, 3);
|
|
127
|
-
const summary = shown
|
|
128
|
-
.map(([ext, count]) => `${count} *${ext === "" ? "" : ext}`)
|
|
129
|
-
.join(", ");
|
|
130
|
-
result += `${childIndent}- ${child.name}/ (${childDir.numFiles} files: ${summary})\n`;
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
result += `${childIndent}- ${child.name}/\n`;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return result;
|
|
137
|
-
}
|
|
138
|
-
return { result: render(rootDirectory, 0) };
|
|
139
|
-
}
|
|
140
|
-
export function formatGlobOutput(dir, files) {
|
|
141
|
-
const normalizedRoot = dir.replace(/\/+$/, "") || "/";
|
|
142
|
-
const prefix = normalizedRoot === "/" ? "/" : `${normalizedRoot}/`;
|
|
143
|
-
const relative = files.map((filePath) => filePath.startsWith(prefix) ? filePath.slice(prefix.length) : filePath);
|
|
144
|
-
if (relative.length === 0) {
|
|
145
|
-
return `Result of search in '${dir}': 0 files found\n`;
|
|
146
|
-
}
|
|
147
|
-
let output = `Result of search in '${dir}' (total ${relative.length} file${relative.length === 1 ? "" : "s"}):\n`;
|
|
148
|
-
for (let i = 0; i < relative.length; i++) {
|
|
149
|
-
const file = relative[i] ?? "";
|
|
150
|
-
if (output.length + file.length > GLOB_TOTAL_CHARACTER_BUDGET) {
|
|
151
|
-
output += `... ${relative.length - i} more files ... (Do a more specific search if needed)\n`;
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
output += `- ${file}\n`;
|
|
155
|
-
}
|
|
156
|
-
return output;
|
|
157
|
-
}
|
|
158
|
-
export function formatGrepOutput(union) {
|
|
159
|
-
if (union === undefined) {
|
|
160
|
-
return "No matches found";
|
|
161
|
-
}
|
|
162
|
-
if (union.type === "files") {
|
|
163
|
-
if (union.output.files.length === 0) {
|
|
164
|
-
return "No files with matches found";
|
|
165
|
-
}
|
|
166
|
-
return union.output.files.join("\n");
|
|
167
|
-
}
|
|
168
|
-
if (union.type === "count") {
|
|
169
|
-
if (union.output.counts.length === 0) {
|
|
170
|
-
return "No matches found";
|
|
171
|
-
}
|
|
172
|
-
return union.output.counts.map((row) => `${row.file}:${row.count}`).join("\n");
|
|
173
|
-
}
|
|
174
|
-
if (union.output.matches.length === 0) {
|
|
175
|
-
return "No matches found";
|
|
176
|
-
}
|
|
177
|
-
const lines = [];
|
|
178
|
-
let currentFile;
|
|
179
|
-
for (const match of union.output.matches) {
|
|
180
|
-
if (match.file !== currentFile) {
|
|
181
|
-
if (currentFile !== undefined) {
|
|
182
|
-
lines.push("");
|
|
183
|
-
}
|
|
184
|
-
currentFile = match.file;
|
|
185
|
-
lines.push(match.file);
|
|
186
|
-
}
|
|
187
|
-
const before = match.beforeContext ?? [];
|
|
188
|
-
const matchLine = match.lineNumber ?? 1;
|
|
189
|
-
before.forEach((line, index) => {
|
|
190
|
-
lines.push(` ${matchLine - before.length + index}-${line}`);
|
|
191
|
-
});
|
|
192
|
-
lines.push(` ${match.lineNumber ?? ""}:${match.line}`);
|
|
193
|
-
(match.afterContext ?? []).forEach((line, index) => {
|
|
194
|
-
lines.push(` ${matchLine + 1 + index}-${line}`);
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
return lines.join("\n");
|
|
198
|
-
}
|
|
199
|
-
export function formatWriteOutput(path) {
|
|
200
|
-
return `Wrote contents to ${path}`;
|
|
201
|
-
}
|
|
202
|
-
export function formatStrReplaceOutput(args) {
|
|
203
|
-
if (!args.replaceAll) {
|
|
204
|
-
return `The file ${args.path} has been updated.`;
|
|
205
|
-
}
|
|
206
|
-
const occurrenceLabel = args.occurrencesModified === 1 ? "occurrence" : "occurrences";
|
|
207
|
-
const verb = args.occurrencesModified === 1 ? "has" : "have";
|
|
208
|
-
return `${args.occurrencesModified} ${occurrenceLabel} in file ${args.path} ${verb} been updated.`;
|
|
209
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* K-way merge of already-sorted streams. Each source must be ordered
|
|
3
|
-
* under the same `compare`; the merge does not re-sort a source.
|
|
4
|
-
*
|
|
5
|
-
* A binary heap of heads keeps the next yield O(log k) in the number of
|
|
6
|
-
* sources. `unique` skips later copies of a key so an earlier source can
|
|
7
|
-
* shadow a later one (the union rule).
|
|
8
|
-
*/
|
|
9
|
-
export interface MergeSortedOptions<T> {
|
|
10
|
-
compare: (left: T, right: T) => number;
|
|
11
|
-
unique?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Merge already-sorted iterables / async iterables under `compare`.
|
|
15
|
-
* Equal keys (`compare === 0`) keep source order: earlier `sources`
|
|
16
|
-
* index wins. With `unique`, those later copies are skipped.
|
|
17
|
-
*/
|
|
18
|
-
export declare function mergeSorted<T>(sources: Array<Iterable<T> | AsyncIterable<T>>, options: MergeSortedOptions<T>): AsyncGenerator<T>;
|
|
19
|
-
/**
|
|
20
|
-
* Binary min-heap. `compare(a, b) < 0` means `a` is before `b`.
|
|
21
|
-
* Exported for the invariant tests; composers use {@link mergeSorted}.
|
|
22
|
-
*/
|
|
23
|
-
export declare class MinHeap<T> {
|
|
24
|
-
private readonly compare;
|
|
25
|
-
private readonly items;
|
|
26
|
-
constructor(compare: (left: T, right: T) => number);
|
|
27
|
-
get size(): number;
|
|
28
|
-
peek(): T | undefined;
|
|
29
|
-
push(item: T): void;
|
|
30
|
-
pop(): T | undefined;
|
|
31
|
-
private bubbleUp;
|
|
32
|
-
private bubbleDown;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=merge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/internal/filesystem/merge.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAQD;;;;GAIG;AACH,wBAAuB,WAAW,CAAC,CAAC,EAClC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC7B,cAAc,CAAC,CAAC,CAAC,CAsCnB;AAiCD;;;GAGG;AACH,qBAAa,OAAO,CAAC,CAAC;IAGR,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAA6B,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,EAAI;IAEvE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,GAAG,SAAS,CAEpB;IAED,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAGlB;IAED,GAAG,IAAI,CAAC,GAAG,SAAS,CAYnB;IAED,OAAO,CAAC,QAAQ;IAmBhB,OAAO,CAAC,UAAU;CAqCnB"}
|