@cursor/bdk 0.2.3 → 0.2.5
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/README.md +76 -1154
- package/dist/bin/agent-serve.js +9 -1
- package/dist/channels/slack/attachments.d.ts +2 -1
- package/dist/channels/slack/attachments.d.ts.map +1 -1
- package/dist/channels/slack/attachments.js +19 -9
- package/dist/channels/slack/dispatch.d.ts.map +1 -1
- package/dist/channels/slack/dispatch.js +26 -24
- package/dist/channels/slack/thread-context.d.ts +21 -11
- package/dist/channels/slack/thread-context.d.ts.map +1 -1
- package/dist/channels/slack/thread-context.js +75 -27
- package/dist/docs/404.html +2 -2
- package/dist/docs/assets/{app.BOIHhrKi.js → app.94Iu5dyD.js} +4 -4
- package/dist/docs/assets/{building-with-agents.md.-fcjCmJU.js → building-with-agents.md.BPjPFxFg.js} +2 -2
- package/dist/docs/assets/{building-with-agents.md.-fcjCmJU.lean.js → building-with-agents.md.BPjPFxFg.lean.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.BITLoOQa.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.D49zVZqM.js → VPLocalSearchBox.DTKFDlBr.js} +1 -1
- package/dist/docs/assets/chunks/{arc.hmjb-sc4.js → arc.DuzwHEeg.js} +1 -1
- package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.CxEI1KqM.js → architectureDiagram-Q4EWVU46.C6lyhLs0.js} +1 -1
- package/dist/docs/assets/chunks/{baseUniq.DHHvBWoV.js → baseUniq.DUNEWlY8.js} +1 -1
- package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.DnXW-3bu.js → blockDiagram-DXYQGD6D.CXOQGI0O.js} +1 -1
- package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.e-47O2jM.js → c4Diagram-AHTNJAMY.BYdPE-Oe.js} +1 -1
- package/dist/docs/assets/chunks/channel.B46uXH41.js +1 -0
- package/dist/docs/assets/chunks/{chunk-4BX2VUAB.3ry4pYXB.js → chunk-4BX2VUAB.YIV9HeX0.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-4TB4RGXK.DGIZFRx6.js → chunk-4TB4RGXK.BG80DEOc.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-55IACEB6.DKBnqg9U.js → chunk-55IACEB6.BDKJSZQc.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-EDXVE4YY.BIU8Ue5k.js → chunk-EDXVE4YY.CtYnQqts.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-FMBD7UC4.DP-TFhjI.js → chunk-FMBD7UC4.CityOth-.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-OYMX7WX6.Ux0OYj5v.js → chunk-OYMX7WX6.CMD22CQX.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-QZHKN3VN.BzHMwYox.js → chunk-QZHKN3VN.WWpc3ND0.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-YZCP3GAM.D4OGAsSP.js → chunk-YZCP3GAM.BMg-yhj3.js} +1 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.0cmCFsSf.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.0cmCFsSf.js +1 -0
- package/dist/docs/assets/chunks/clone.1vTOFZT1.js +1 -0
- package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.Jq_7BUNx.js → cose-bilkent-S5V4N54A.Buu_LC5q.js} +1 -1
- package/dist/docs/assets/chunks/{dagre-KV5264BT.Di-skR2x.js → dagre-KV5264BT.DW7onj6E.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-5BDNPKRD.DeREHIdH.js → diagram-5BDNPKRD.B3NxIbEV.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.C7Kcqxro.js → diagram-G4DWMVQ6.BJvN6Vkv.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-MMDJMWI5.BK3eohyo.js → diagram-MMDJMWI5.wfRWrexs.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-TYMM5635.C6TyymXT.js → diagram-TYMM5635.7QtjSYio.js} +1 -1
- package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.DYGG-gGx.js → erDiagram-SMLLAGMA.jxPgDH1t.js} +1 -1
- package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.C9nBcSV4.js → flowDiagram-DWJPFMVM.BhDWA-TO.js} +1 -1
- package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.wAg_ymsp.js → ganttDiagram-T4ZO3ILL.Ijq8iYKv.js} +1 -1
- package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.B87j9Oeg.js → gitGraphDiagram-UUTBAWPF.DXpfW4YG.js} +1 -1
- package/dist/docs/assets/chunks/{graph.CuFMj31w.js → graph.CoPlssRl.js} +1 -1
- package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.P_mLGumP.js → infoDiagram-42DDH7IO.eJuv_EOz.js} +1 -1
- package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.DyuL_MsT.js → ishikawaDiagram-UXIWVN3A._OEzenCR.js} +1 -1
- package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.CtP09IoJ.js → journeyDiagram-VCZTEJTY.CwlTjirB.js} +1 -1
- package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.BoeSYPZo.js → kanban-definition-6JOO6SKY.DSp_C8cZ.js} +1 -1
- package/dist/docs/assets/chunks/{layout.B0lMMtNo.js → layout.Bms9s7uB.js} +1 -1
- package/dist/docs/assets/chunks/{linear.HxRBiAFX.js → linear.BjnmB4je.js} +1 -1
- package/dist/docs/assets/chunks/{min.BGlFFHwS.js → min.CKkYlMsn.js} +1 -1
- package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.JyLBD9M8.js → mindmap-definition-QFDTVHPH.T2d0vJ7X.js} +1 -1
- package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.DnSmNZF8.js → pieDiagram-DEJITSTG.DU0RoCvx.js} +1 -1
- package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.CUCnbfCa.js → quadrantDiagram-34T5L4WZ.9QZjM-x0.js} +1 -1
- package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.py0IVUn5.js → requirementDiagram-MS252O5E.CZpylJMd.js} +1 -1
- package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.Bkc-HWYp.js → sankeyDiagram-XADWPNL6.CnFdfW95.js} +1 -1
- package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.Dqn8Mlv2.js → sequenceDiagram-FGHM5R23.-jC0PP1t.js} +1 -1
- package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.JikkoQUU.js → stateDiagram-FHFEXIEX.DG7yBRUU.js} +1 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.CbsZcOOu.js +1 -0
- package/dist/docs/assets/chunks/{theme.b6HQ6zG_.js → theme.B3O9koXV.js} +2 -2
- package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.BvpSXiBj.js → timeline-definition-GMOUNBTQ.Bf9u4Ebb.js} +1 -1
- package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.CU7MVnZx.js → vennDiagram-DHZGUBPP.BjhbbYE6.js} +1 -1
- package/dist/docs/assets/chunks/{wardley-RL74JXVD.BKwC4ctG.js → wardley-RL74JXVD.DEA21akR.js} +1 -1
- package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.BfaF6Uhe.js → wardleyDiagram-NUSXRM2D.8fRb4Nb5.js} +1 -1
- package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.Bg5dcpj4.js → xychartDiagram-5P7HB3ND.DoOP3zZM.js} +1 -1
- package/dist/docs/assets/{deployment.md.BJ8i7Q6p.js → deployment.md.BdqTiGdc.js} +5 -5
- package/dist/docs/assets/{deployment.md.BJ8i7Q6p.lean.js → deployment.md.BdqTiGdc.lean.js} +1 -1
- package/dist/docs/assets/{evals.md.CCAtNcuL.js → evals.md.LRCSn6Ik.js} +2 -2
- package/dist/docs/assets/{evals.md.CCAtNcuL.lean.js → evals.md.LRCSn6Ik.lean.js} +1 -1
- package/dist/docs/assets/{guides_agent-to-agent.md.CGkicXeB.js → guides_agent-to-agent.md.Cps5NiCV.js} +2 -2
- package/dist/docs/assets/{guides_agent-to-agent.md.CGkicXeB.lean.js → guides_agent-to-agent.md.Cps5NiCV.lean.js} +1 -1
- package/dist/docs/assets/{guides_bitbucket.md.Cb3LPKt3.js → guides_bitbucket.md.BB6fqD-M.js} +2 -2
- package/dist/docs/assets/{guides_bitbucket.md.Cb3LPKt3.lean.js → guides_bitbucket.md.BB6fqD-M.lean.js} +1 -1
- package/dist/docs/assets/{guides_cloud-agents.md.BuEkDCwo.js → guides_cloud-agents.md.CWJjS9No.js} +2 -2
- package/dist/docs/assets/{guides_cloud-agents.md.BuEkDCwo.lean.js → guides_cloud-agents.md.CWJjS9No.lean.js} +1 -1
- package/dist/docs/assets/{guides_convert-automation.md.Ci-Y2iD5.js → guides_convert-automation.md.DMEX9nF-.js} +3 -3
- package/dist/docs/assets/{guides_convert-automation.md.Ci-Y2iD5.lean.js → guides_convert-automation.md.DMEX9nF-.lean.js} +1 -1
- package/dist/docs/assets/{guides_github.md.Bq9kQU9B.js → guides_github.md.Cr1Xlf-m.js} +3 -3
- package/dist/docs/assets/{guides_github.md.Bq9kQU9B.lean.js → guides_github.md.Cr1Xlf-m.lean.js} +1 -1
- package/dist/docs/assets/{guides_gitlab.md.BM27P43u.js → guides_gitlab.md.CMpmFi4M.js} +2 -2
- package/dist/docs/assets/{guides_gitlab.md.BM27P43u.lean.js → guides_gitlab.md.CMpmFi4M.lean.js} +1 -1
- package/dist/docs/assets/{guides_grokbot-agents.md.yxVbSlKA.js → guides_grokbot-agents.md.tD1smFhU.js} +2 -2
- package/dist/docs/assets/{guides_grokbot-agents.md.yxVbSlKA.lean.js → guides_grokbot-agents.md.tD1smFhU.lean.js} +1 -1
- package/dist/docs/assets/{guides_hooks.md.BWoiNaMq.js → guides_hooks.md.5Ce3NXxZ.js} +2 -2
- package/dist/docs/assets/{guides_hooks.md.BWoiNaMq.lean.js → guides_hooks.md.5Ce3NXxZ.lean.js} +1 -1
- package/dist/docs/assets/{guides_improve.md.COtL-6ft.js → guides_improve.md.CRrYq22s.js} +2 -2
- package/dist/docs/assets/{guides_improve.md.COtL-6ft.lean.js → guides_improve.md.CRrYq22s.lean.js} +1 -1
- package/dist/docs/assets/{guides_jev.md.BNDm14Gy.js → guides_jev.md.D7XH4JH3.js} +2 -2
- package/dist/docs/assets/{guides_mcp-oauth.md.Cu6mhZ_3.js → guides_mcp-oauth.md.DR3zhC9r.js} +2 -2
- package/dist/docs/assets/{guides_mcp-oauth.md.Cu6mhZ_3.lean.js → guides_mcp-oauth.md.DR3zhC9r.lean.js} +1 -1
- package/dist/docs/assets/{guides_opentelemetry.md.DLlIB5rv.js → guides_opentelemetry.md.jcPNrQbH.js} +8 -6
- package/dist/docs/assets/{guides_opentelemetry.md.DLlIB5rv.lean.js → guides_opentelemetry.md.jcPNrQbH.lean.js} +1 -1
- package/dist/docs/assets/{guides_slack.md.diqqXTTm.js → guides_slack.md.Bn-WupSE.js} +8 -8
- package/dist/docs/assets/{guides_slack.md.diqqXTTm.lean.js → guides_slack.md.Bn-WupSE.lean.js} +1 -1
- package/dist/docs/assets/{guides_webhooks.md.D0furjw0.js → guides_webhooks.md.BBvAm_VF.js} +2 -2
- package/dist/docs/assets/{guides_webhooks.md.D0furjw0.lean.js → guides_webhooks.md.BBvAm_VF.lean.js} +1 -1
- package/dist/docs/assets/{hillclimbing.md.Biy0m-Qb.js → hillclimbing.md.Dxvd-0gT.js} +2 -2
- package/dist/docs/assets/{hillclimbing.md.Biy0m-Qb.lean.js → hillclimbing.md.Dxvd-0gT.lean.js} +1 -1
- package/dist/docs/assets/index.md.Dxxr7pFa.js +27 -0
- package/dist/docs/assets/{index.md.CVc_oOA3.lean.js → index.md.Dxxr7pFa.lean.js} +1 -1
- package/dist/docs/assets/{quickstart.md.CHpHPBUN.js → quickstart.md.BK5gjHM2.js} +2 -2
- package/dist/docs/assets/{quickstart.md.CHpHPBUN.lean.js → quickstart.md.BK5gjHM2.lean.js} +1 -1
- package/dist/docs/assets/{reference_agent-config.md.DzGI777n.js → reference_agent-config.md.DrtLxWgR.js} +4 -4
- package/dist/docs/assets/{reference_agent-config.md.DzGI777n.lean.js → reference_agent-config.md.DrtLxWgR.lean.js} +1 -1
- package/dist/docs/assets/{reference_artifacts.md.CQfKq8F2.js → reference_artifacts.md.DLV9MZES.js} +2 -2
- package/dist/docs/assets/{reference_artifacts.md.CQfKq8F2.lean.js → reference_artifacts.md.DLV9MZES.lean.js} +1 -1
- package/dist/docs/assets/{reference_channels.md.mbNtKCiR.js → reference_channels.md.LbNIJBwd.js} +2 -2
- package/dist/docs/assets/{reference_channels.md.mbNtKCiR.lean.js → reference_channels.md.LbNIJBwd.lean.js} +1 -1
- package/dist/docs/assets/{reference_cli.md.DgeLTO18.js → reference_cli.md.BsgDqYPh.js} +4 -4
- package/dist/docs/assets/{reference_cli.md.DgeLTO18.lean.js → reference_cli.md.BsgDqYPh.lean.js} +1 -1
- package/dist/docs/assets/{reference_connections.md.COq--gAm.js → reference_connections.md.Bljpve-y.js} +4 -4
- package/dist/docs/assets/{reference_connections.md.COq--gAm.lean.js → reference_connections.md.Bljpve-y.lean.js} +1 -1
- package/dist/docs/assets/{reference_evals.md.CJm3uCUm.js → reference_evals.md.D5i8PuXJ.js} +2 -2
- package/dist/docs/assets/{reference_evals.md.CJm3uCUm.lean.js → reference_evals.md.D5i8PuXJ.lean.js} +1 -1
- package/dist/docs/assets/{reference_extensions.md.CPPrkWlJ.js → reference_extensions.md.OUacPetl.js} +5 -4
- package/dist/docs/assets/{reference_extensions.md.CPPrkWlJ.lean.js → reference_extensions.md.OUacPetl.lean.js} +1 -1
- package/dist/docs/assets/{reference_hooks.md.DbthhtIR.js → reference_hooks.md.C5LCJ1R3.js} +2 -2
- package/dist/docs/assets/{reference_hooks.md.DbthhtIR.lean.js → reference_hooks.md.C5LCJ1R3.lean.js} +1 -1
- package/dist/docs/assets/{reference_http-api.md.BZOvhCqY.js → reference_http-api.md.DbFNOubV.js} +1 -1
- package/dist/docs/assets/{reference_instructions.md.Bdwscs4G.js → reference_instructions.md.DrcHZXig.js} +2 -2
- package/dist/docs/assets/{reference_instructions.md.Bdwscs4G.lean.js → reference_instructions.md.DrcHZXig.lean.js} +1 -1
- package/dist/docs/assets/reference_playground.md.1hx0gcIu.js +1 -0
- package/dist/docs/assets/{reference_playground.md.BdQzRJc2.lean.js → reference_playground.md.1hx0gcIu.lean.js} +1 -1
- package/dist/docs/assets/{reference_project-layout.md.CpLQ9j4K.js → reference_project-layout.md.C2JMRh7p.js} +2 -2
- package/dist/docs/assets/{reference_prompt.md.BQZB4eaV.js → reference_prompt.md.DqPh71XN.js} +3 -3
- package/dist/docs/assets/{reference_prompt.md.BQZB4eaV.lean.js → reference_prompt.md.DqPh71XN.lean.js} +1 -1
- package/dist/docs/assets/{reference_schedules.md.BVU5EFbz.js → reference_schedules.md.BuJ8fgMa.js} +2 -2
- package/dist/docs/assets/{reference_schedules.md.BVU5EFbz.lean.js → reference_schedules.md.BuJ8fgMa.lean.js} +1 -1
- package/dist/docs/assets/reference_sessions.md.CM5zo3w4.js +1 -0
- package/dist/docs/assets/{reference_sessions.md.DeRUItHD.lean.js → reference_sessions.md.CM5zo3w4.lean.js} +1 -1
- package/dist/docs/assets/{reference_skills.md.Cy00QMKS.js → reference_skills.md.C0guGcH0.js} +4 -4
- package/dist/docs/assets/{reference_skills.md.Cy00QMKS.lean.js → reference_skills.md.C0guGcH0.lean.js} +1 -1
- package/dist/docs/assets/{reference_subagents.md.B8oyeXOI.js → reference_subagents.md.gmPt5J-M.js} +2 -2
- package/dist/docs/assets/{reference_subagents.md.B8oyeXOI.lean.js → reference_subagents.md.gmPt5J-M.lean.js} +1 -1
- package/dist/docs/assets/{reference_tools.md.hg2Wi5Bq.js → reference_tools.md.v3SXVSs_.js} +2 -2
- package/dist/docs/assets/{reference_tools.md.hg2Wi5Bq.lean.js → reference_tools.md.v3SXVSs_.lean.js} +1 -1
- package/dist/docs/assets/{templates_agentic-owners.md.BykUiZ8j.js → templates_agentic-owners.md.vtjfwxbf.js} +2 -2
- package/dist/docs/assets/{templates_agentic-owners.md.BykUiZ8j.lean.js → templates_agentic-owners.md.vtjfwxbf.lean.js} +1 -1
- package/dist/docs/assets/templates_grokbot-agents.md.2sydjFiO.js +5 -0
- package/dist/docs/assets/templates_grokbot-agents.md.2sydjFiO.lean.js +1 -0
- package/dist/docs/assets/{templates_security-reviewer.md.DXMmKl_o.js → templates_security-reviewer.md.CX9l9bcg.js} +2 -2
- package/dist/docs/assets/{templates_security-reviewer.md.DXMmKl_o.lean.js → templates_security-reviewer.md.CX9l9bcg.lean.js} +1 -1
- package/dist/docs/assets/{templates_thermo-quality-review.md.Dg1p1MsG.js → templates_thermo-quality-review.md.95qmTmr1.js} +2 -2
- package/dist/docs/assets/{templates_thermo-quality-review.md.Dg1p1MsG.lean.js → templates_thermo-quality-review.md.95qmTmr1.lean.js} +1 -1
- package/dist/docs/assets/{templates_thermo-review.md.Dlylkowj.js → templates_thermo-review.md.DQh6Q0C-.js} +2 -2
- package/dist/docs/assets/{templates_thermo-review.md.Dlylkowj.lean.js → templates_thermo-review.md.DQh6Q0C-.lean.js} +1 -1
- package/dist/docs/assets/{templates_triage.md.CvJyx81N.js → templates_triage.md.BFlQhWXf.js} +3 -3
- package/dist/docs/assets/{templates_triage.md.CvJyx81N.lean.js → templates_triage.md.BFlQhWXf.lean.js} +1 -1
- package/dist/docs/assets/troubleshooting.md.Bscj6ODe.js +1 -0
- package/dist/docs/assets/{troubleshooting.md.Cw5PKa3t.lean.js → troubleshooting.md.Bscj6ODe.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +36 -36
- package/dist/docs/building-with-agents.md +0 -3
- package/dist/docs/deployment.html +39 -39
- package/dist/docs/deployment.md +6 -10
- package/dist/docs/evals.html +36 -36
- package/dist/docs/evals.md +0 -3
- package/dist/docs/guides/agent-to-agent.html +36 -36
- package/dist/docs/guides/agent-to-agent.md +0 -3
- package/dist/docs/guides/bitbucket.html +36 -36
- package/dist/docs/guides/bitbucket.md +0 -3
- package/dist/docs/guides/cloud-agents.html +36 -36
- package/dist/docs/guides/cloud-agents.md +0 -4
- package/dist/docs/guides/convert-automation.html +37 -37
- package/dist/docs/guides/convert-automation.md +2 -5
- package/dist/docs/guides/github.html +37 -37
- package/dist/docs/guides/github.md +1 -4
- package/dist/docs/guides/gitlab.html +36 -36
- package/dist/docs/guides/gitlab.md +0 -3
- package/dist/docs/guides/grokbot-agents.html +37 -37
- package/dist/docs/guides/grokbot-agents.md +1 -4
- package/dist/docs/guides/hooks.html +36 -36
- package/dist/docs/guides/hooks.md +0 -3
- package/dist/docs/guides/improve.html +36 -36
- package/dist/docs/guides/improve.md +0 -3
- package/dist/docs/guides/jev.html +37 -37
- package/dist/docs/guides/jev.md +7 -3
- package/dist/docs/guides/mcp-oauth.html +37 -37
- package/dist/docs/guides/mcp-oauth.md +1 -4
- package/dist/docs/guides/opentelemetry.html +42 -40
- package/dist/docs/guides/opentelemetry.md +4 -5
- package/dist/docs/guides/slack.html +43 -43
- package/dist/docs/guides/slack.md +14 -24
- package/dist/docs/guides/webhooks.html +36 -36
- package/dist/docs/guides/webhooks.md +0 -3
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +36 -36
- package/dist/docs/hillclimbing.md +0 -3
- package/dist/docs/index.html +38 -38
- package/dist/docs/index.md +9 -16
- package/dist/docs/llms-full.txt +156 -220
- package/dist/docs/llms.txt +1 -0
- package/dist/docs/quickstart.html +36 -36
- package/dist/docs/quickstart.md +2 -7
- package/dist/docs/reference/agent-config.html +38 -38
- package/dist/docs/reference/agent-config.md +4 -7
- package/dist/docs/reference/artifacts.html +36 -36
- package/dist/docs/reference/artifacts.md +0 -3
- package/dist/docs/reference/channels.html +37 -37
- package/dist/docs/reference/channels.md +1 -6
- package/dist/docs/reference/cli.html +38 -38
- package/dist/docs/reference/cli.md +7 -14
- package/dist/docs/reference/connections.html +38 -38
- package/dist/docs/reference/connections.md +7 -10
- package/dist/docs/reference/evals.html +36 -36
- package/dist/docs/reference/evals.md +0 -3
- package/dist/docs/reference/extensions.html +40 -39
- package/dist/docs/reference/extensions.md +15 -5
- package/dist/docs/reference/hooks.html +36 -36
- package/dist/docs/reference/hooks.md +0 -3
- package/dist/docs/reference/http-api.html +37 -37
- package/dist/docs/reference/http-api.md +1 -1
- package/dist/docs/reference/instructions.html +36 -36
- package/dist/docs/reference/instructions.md +0 -3
- package/dist/docs/reference/playground.html +36 -36
- package/dist/docs/reference/playground.md +0 -3
- package/dist/docs/reference/project-layout.html +37 -37
- package/dist/docs/reference/project-layout.md +2 -2
- package/dist/docs/reference/prompt.html +37 -37
- package/dist/docs/reference/prompt.md +0 -3
- package/dist/docs/reference/schedules.html +36 -36
- package/dist/docs/reference/schedules.md +0 -3
- package/dist/docs/reference/sessions.html +36 -36
- package/dist/docs/reference/sessions.md +0 -3
- package/dist/docs/reference/skills.html +38 -38
- package/dist/docs/reference/skills.md +0 -3
- package/dist/docs/reference/subagents.html +36 -36
- package/dist/docs/reference/subagents.md +0 -3
- package/dist/docs/reference/tools.html +36 -36
- package/dist/docs/reference/tools.md +1 -5
- package/dist/docs/templates/agentic-owners.html +36 -36
- package/dist/docs/templates/agentic-owners.md +0 -3
- package/dist/docs/templates/grokbot-agents.html +64 -0
- package/dist/docs/templates/grokbot-agents.md +55 -0
- package/dist/docs/templates/security-reviewer.html +37 -37
- package/dist/docs/templates/security-reviewer.md +0 -3
- package/dist/docs/templates/thermo-quality-review.html +36 -36
- package/dist/docs/templates/thermo-quality-review.md +3 -6
- package/dist/docs/templates/thermo-review.html +36 -36
- package/dist/docs/templates/thermo-review.md +3 -5
- package/dist/docs/templates/triage.html +37 -37
- package/dist/docs/templates/triage.md +2 -3
- package/dist/docs/troubleshooting.html +36 -36
- package/dist/docs/troubleshooting.md +3 -7
- package/dist/extensions/jev/extension.d.ts +3 -0
- package/dist/extensions/jev/extension.d.ts.map +1 -1
- package/dist/extensions/jev/extension.js +10 -1
- package/dist/extensions/jev/lib/evaluate.d.ts +4 -0
- package/dist/extensions/jev/lib/evaluate.d.ts.map +1 -1
- package/dist/extensions/jev/lib/evaluate.js +6 -2
- package/dist/extensions.d.ts +4 -2
- package/dist/extensions.d.ts.map +1 -1
- package/dist/extensions.js +5 -2
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +19 -5
- package/dist/internal/discovery/agent-config.d.ts +6 -5
- package/dist/internal/discovery/agent-config.d.ts.map +1 -1
- package/dist/internal/discovery/agent-config.js +29 -28
- package/dist/internal/discovery/agent.js +1 -1
- package/dist/internal/discovery/extensions.d.ts.map +1 -1
- package/dist/internal/discovery/extensions.js +12 -0
- package/dist/internal/hosting.d.ts +8 -0
- package/dist/internal/hosting.d.ts.map +1 -1
- package/dist/internal/hosting.js +24 -0
- package/dist/types.d.ts +18 -2
- package/dist/types.d.ts.map +1 -1
- package/docs/README.md +9 -16
- package/docs/building-with-agents.md +0 -3
- package/docs/deployment.md +6 -10
- package/docs/evals.md +0 -3
- package/docs/guides/agent-to-agent.md +0 -3
- package/docs/guides/bitbucket.md +0 -3
- package/docs/guides/cloud-agents.md +0 -4
- package/docs/guides/convert-automation.md +2 -5
- package/docs/guides/github.md +1 -4
- package/docs/guides/gitlab.md +0 -3
- package/docs/guides/grokbot-agents.md +1 -4
- package/docs/guides/hooks.md +0 -3
- package/docs/guides/improve.md +0 -3
- package/docs/guides/jev.md +7 -3
- package/docs/guides/mcp-oauth.md +1 -4
- package/docs/guides/opentelemetry.md +4 -5
- package/docs/guides/slack.md +14 -24
- package/docs/guides/webhooks.md +0 -3
- package/docs/hillclimbing.md +0 -3
- package/docs/quickstart.md +2 -7
- package/docs/reference/agent-config.md +4 -7
- package/docs/reference/artifacts.md +0 -3
- package/docs/reference/channels.md +1 -6
- package/docs/reference/cli.md +7 -14
- package/docs/reference/connections.md +7 -10
- package/docs/reference/evals.md +0 -3
- package/docs/reference/extensions.md +15 -5
- package/docs/reference/hooks.md +0 -3
- package/docs/reference/http-api.md +1 -1
- package/docs/reference/instructions.md +0 -3
- package/docs/reference/playground.md +0 -3
- package/docs/reference/project-layout.md +2 -2
- package/docs/reference/prompt.md +0 -3
- package/docs/reference/schedules.md +0 -3
- package/docs/reference/sessions.md +0 -3
- package/docs/reference/skills.md +0 -3
- package/docs/reference/subagents.md +0 -3
- package/docs/reference/tools.md +1 -5
- package/docs/templates/agentic-owners.md +0 -3
- package/docs/templates/grokbot-agents.md +60 -0
- package/docs/templates/security-reviewer.md +0 -3
- package/docs/templates/thermo-quality-review.md +3 -6
- package/docs/templates/thermo-review.md +3 -5
- package/docs/templates/triage.md +2 -3
- package/docs/troubleshooting.md +3 -7
- package/package.json +2 -10
- package/templates/agentic-owners/README.md +0 -3
- package/templates/agents-md/README.md +4 -3
- package/templates/code-wiki/README.md +0 -3
- package/templates/demo/README.md +0 -3
- package/templates/grokbot-agents/README.md +4 -6
- package/templates/security-help/README.md +12 -6
- package/templates/security-reviewer/README.md +0 -3
- package/templates/thermo-quality-review/README.md +0 -3
- package/templates/thermo-review/README.md +0 -3
- package/templates/triage/README.md +0 -3
- package/templates/triage/overlays/jira/README.md +0 -3
- package/templates/triage/overlays/linear/README.md +0 -3
- package/dist/docs/assets/chunks/@localSearchIndexroot.D5L-b34G.js +0 -1
- package/dist/docs/assets/chunks/channel.BbOGaJQP.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.Db58HCb1.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.Db58HCb1.js +0 -1
- package/dist/docs/assets/chunks/clone.Co4MBflG.js +0 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.CMsKhrW0.js +0 -1
- package/dist/docs/assets/index.md.CVc_oOA3.js +0 -27
- package/dist/docs/assets/reference_playground.md.BdQzRJc2.js +0 -1
- package/dist/docs/assets/reference_sessions.md.DeRUItHD.js +0 -1
- package/dist/docs/assets/troubleshooting.md.Cw5PKa3t.js +0 -1
- package/src/artifacts.ts +0 -68
- package/src/bin/agent-serve.ts +0 -1854
- package/src/channels/bitbucket/api.ts +0 -891
- package/src/channels/bitbucket/binding.ts +0 -417
- package/src/channels/bitbucket/bitbucket-channel.ts +0 -162
- package/src/channels/bitbucket/bitbucket-webhook.ts +0 -519
- package/src/channels/bitbucket/checks.ts +0 -146
- package/src/channels/bitbucket/cursor-account.ts +0 -106
- package/src/channels/bitbucket/defaults.ts +0 -100
- package/src/channels/bitbucket/events.ts +0 -74
- package/src/channels/bitbucket/index.ts +0 -51
- package/src/channels/bitbucket/replay.ts +0 -421
- package/src/channels/bitbucket/state.ts +0 -59
- package/src/channels/bitbucket/types.ts +0 -261
- package/src/channels/change-monitors/change-monitors-channel.ts +0 -63
- package/src/channels/change-monitors/index.ts +0 -8
- package/src/channels/change-monitors/types.ts +0 -42
- package/src/channels/checks.ts +0 -185
- package/src/channels/deployments/deployments-channel.ts +0 -224
- package/src/channels/deployments/index.ts +0 -25
- package/src/channels/deployments/types.ts +0 -92
- package/src/channels/github/api.ts +0 -526
- package/src/channels/github/auth.ts +0 -293
- package/src/channels/github/binding.ts +0 -233
- package/src/channels/github/checks.ts +0 -145
- package/src/channels/github/cursor-account.ts +0 -303
- package/src/channels/github/defaults.ts +0 -168
- package/src/channels/github/events.ts +0 -67
- package/src/channels/github/forward.ts +0 -359
- package/src/channels/github/github-channel.ts +0 -2334
- package/src/channels/github/index.ts +0 -54
- package/src/channels/github/progress.ts +0 -365
- package/src/channels/github/replay.ts +0 -372
- package/src/channels/github/state.ts +0 -124
- package/src/channels/github/types.ts +0 -590
- package/src/channels/gitlab/api.ts +0 -329
- package/src/channels/gitlab/binding.ts +0 -231
- package/src/channels/gitlab/checks.ts +0 -228
- package/src/channels/gitlab/cursor-account.ts +0 -105
- package/src/channels/gitlab/defaults.ts +0 -80
- package/src/channels/gitlab/events.ts +0 -37
- package/src/channels/gitlab/gitlab-channel.ts +0 -160
- package/src/channels/gitlab/gitlab-webhook.ts +0 -509
- package/src/channels/gitlab/index.ts +0 -44
- package/src/channels/gitlab/replay.ts +0 -328
- package/src/channels/gitlab/state.ts +0 -55
- package/src/channels/gitlab/types.ts +0 -247
- package/src/channels/issues/index.ts +0 -9
- package/src/channels/issues/issues-channel.ts +0 -45
- package/src/channels/issues/types.ts +0 -38
- package/src/channels/origin/api.ts +0 -507
- package/src/channels/origin/binding.ts +0 -114
- package/src/channels/origin/checks.ts +0 -250
- package/src/channels/origin/cursor-account.ts +0 -58
- package/src/channels/origin/defaults.ts +0 -140
- package/src/channels/origin/events.ts +0 -35
- package/src/channels/origin/index.ts +0 -35
- package/src/channels/origin/origin-channel.ts +0 -815
- package/src/channels/origin/origin-webhook.ts +0 -296
- package/src/channels/origin/reactions.ts +0 -72
- package/src/channels/origin/state.ts +0 -54
- package/src/channels/origin/types.ts +0 -295
- package/src/channels/slack/agentic-delivery.ts +0 -634
- package/src/channels/slack/agentic-posted.ts +0 -135
- package/src/channels/slack/agentic-signals.ts +0 -231
- package/src/channels/slack/api.ts +0 -761
- package/src/channels/slack/approvals.ts +0 -279
- package/src/channels/slack/assistant.ts +0 -76
- package/src/channels/slack/attachments.ts +0 -596
- package/src/channels/slack/auth.ts +0 -127
- package/src/channels/slack/blocks.ts +0 -131
- package/src/channels/slack/bot-mentions.ts +0 -318
- package/src/channels/slack/channel-watch.ts +0 -314
- package/src/channels/slack/cli-project.ts +0 -249
- package/src/channels/slack/code-fences.ts +0 -171
- package/src/channels/slack/constants.ts +0 -38
- package/src/channels/slack/credentials.ts +0 -88
- package/src/channels/slack/defaults.ts +0 -714
- package/src/channels/slack/dispatch.ts +0 -1060
- package/src/channels/slack/doctor.ts +0 -338
- package/src/channels/slack/eval-directive.ts +0 -306
- package/src/channels/slack/event-id-dedupe.ts +0 -30
- package/src/channels/slack/external-policy.ts +0 -75
- package/src/channels/slack/footer.ts +0 -106
- package/src/channels/slack/inbound.ts +0 -416
- package/src/channels/slack/index.ts +0 -53
- package/src/channels/slack/init.ts +0 -169
- package/src/channels/slack/interactive.ts +0 -406
- package/src/channels/slack/links.ts +0 -23
- package/src/channels/slack/live-delivery.ts +0 -489
- package/src/channels/slack/log.ts +0 -70
- package/src/channels/slack/manifest.ts +0 -240
- package/src/channels/slack/message-body.ts +0 -82
- package/src/channels/slack/nudge-carrier.ts +0 -224
- package/src/channels/slack/nudge-store.ts +0 -334
- package/src/channels/slack/paint-start.ts +0 -93
- package/src/channels/slack/placeholder.ts +0 -358
- package/src/channels/slack/pr-ref.ts +0 -74
- package/src/channels/slack/progress-delivery.ts +0 -138
- package/src/channels/slack/reasoning-card.ts +0 -125
- package/src/channels/slack/reasoning-chip.ts +0 -41
- package/src/channels/slack/recording-sink.ts +0 -167
- package/src/channels/slack/redact.ts +0 -6
- package/src/channels/slack/reply-options.ts +0 -279
- package/src/channels/slack/setup.ts +0 -125
- package/src/channels/slack/slack-channel.ts +0 -744
- package/src/channels/slack/socket-mode.ts +0 -140
- package/src/channels/slack/stop.ts +0 -25
- package/src/channels/slack/stream.ts +0 -66
- package/src/channels/slack/thread-context.ts +0 -485
- package/src/channels/slack/tool-approval-events.ts +0 -233
- package/src/channels/slack/tool-cards.ts +0 -198
- package/src/channels/slack/tool-chip.ts +0 -34
- package/src/channels/slack/types.ts +0 -787
- package/src/channels/slack/upload.ts +0 -137
- package/src/channels.ts +0 -543
- package/src/connections.ts +0 -153
- package/src/dashboard-session-url.ts +0 -30
- package/src/evals/assertions.ts +0 -688
- package/src/evals/expect.ts +0 -250
- package/src/evals/judge.ts +0 -329
- package/src/evals/loaders.ts +0 -111
- package/src/evals/matchers.ts +0 -223
- package/src/evals/reporters.ts +0 -257
- package/src/evals/results.ts +0 -130
- package/src/evals/run-facts.ts +0 -306
- package/src/evals.ts +0 -709
- package/src/extensions/cursor-cloud-agents/extension.ts +0 -131
- package/src/extensions/cursor-cloud-agents/lib/backend.ts +0 -386
- package/src/extensions/cursor-cloud-agents/lib/channels.ts +0 -11
- package/src/extensions/cursor-cloud-agents/lib/fleet.ts +0 -98
- package/src/extensions/cursor-cloud-agents/lib/inputs.ts +0 -5
- package/src/extensions/cursor-cloud-agents/lib/repos.ts +0 -80
- package/src/extensions/cursor-cloud-agents/lib/transcript.ts +0 -19
- package/src/extensions/cursor-cloud-agents/skills/handoff.md +0 -37
- package/src/extensions/cursor-cloud-agents/tools/cancel.ts +0 -21
- package/src/extensions/cursor-cloud-agents/tools/dump.ts +0 -47
- package/src/extensions/cursor-cloud-agents/tools/get.ts +0 -18
- package/src/extensions/cursor-cloud-agents/tools/launch.ts +0 -62
- package/src/extensions/cursor-cloud-agents/tools/list.ts +0 -31
- package/src/extensions/cursor-cloud-agents/tools/reply.ts +0 -36
- package/src/extensions/cursor-grokbot-agents/extension.ts +0 -132
- package/src/extensions/cursor-grokbot-agents/lib/agents.ts +0 -42
- package/src/extensions/cursor-grokbot-agents/lib/backend.ts +0 -208
- package/src/extensions/cursor-grokbot-agents/lib/contacts.ts +0 -74
- package/src/extensions/cursor-grokbot-agents/lib/conversation.ts +0 -260
- package/src/extensions/cursor-grokbot-agents/lib/inputs.ts +0 -21
- package/src/extensions/cursor-grokbot-agents/lib/lock.ts +0 -26
- package/src/extensions/cursor-grokbot-agents/skills/consult.md +0 -40
- package/src/extensions/cursor-grokbot-agents/tools/ask.ts +0 -32
- package/src/extensions/cursor-grokbot-agents/tools/check.ts +0 -25
- package/src/extensions/cursor-grokbot-agents/tools/interrupt.ts +0 -17
- package/src/extensions/cursor-grokbot-agents/tools/list.ts +0 -26
- package/src/extensions/improve/extension.ts +0 -69
- package/src/extensions/improve/skills/yourself.ts +0 -50
- package/src/extensions/jev/extension.ts +0 -95
- package/src/extensions/jev/lib/evaluate.ts +0 -266
- package/src/extensions/jev/skills/gated-write.md +0 -25
- package/src/extensions/jev/skills/questions.md +0 -33
- package/src/extensions/jev/tools/evaluate.ts +0 -82
- package/src/extensions/slack-communication/evals/harness.ts +0 -705
- package/src/extensions/slack-communication/evals/slack-communication.eval.ts +0 -830
- package/src/extensions/slack-communication/evals/slack-placeholder.eval.ts +0 -172
- package/src/extensions/slack-communication/extension.ts +0 -44
- package/src/extensions/slack-communication/skills/slack-voice.ts +0 -56
- package/src/extensions/slack-communication/tools/delete-message.ts +0 -33
- package/src/extensions/slack-communication/tools/edit-message.ts +0 -42
- package/src/extensions/slack-communication/tools/post-card.ts +0 -28
- package/src/extensions/slack-communication/tools/post-file.ts +0 -82
- package/src/extensions/slack-communication/tools/post-update.ts +0 -40
- package/src/extensions/slack-communication/tools/react.ts +0 -30
- package/src/extensions/slack-communication/tools/set-status.ts +0 -21
- package/src/extensions.ts +0 -179
- package/src/files-backends/agent-store-presigned-url.ts +0 -11
- package/src/files-backends/cursor-hosted.ts +0 -1212
- package/src/files-backends/local-fs.ts +0 -163
- package/src/files.ts +0 -293
- package/src/filesystem.ts +0 -2005
- package/src/hooks.ts +0 -30
- package/src/index.ts +0 -259
- package/src/internal/advertise-tools.ts +0 -370
- package/src/internal/approval-gate.ts +0 -103
- package/src/internal/artifacts-store.ts +0 -836
- package/src/internal/as-of.ts +0 -257
- package/src/internal/auth.ts +0 -46
- package/src/internal/authored-alias-hooks.ts +0 -138
- package/src/internal/authored-loaders.ts +0 -188
- package/src/internal/bounded-int.ts +0 -24
- package/src/internal/bounded.ts +0 -25
- package/src/internal/brand.ts +0 -28
- package/src/internal/browser-origin-guard.ts +0 -67
- package/src/internal/builtin-tools/artifacts.ts +0 -62
- package/src/internal/builtin-tools/index.ts +0 -53
- package/src/internal/builtin-tools/reminders.ts +0 -145
- package/src/internal/channel-dispatch.ts +0 -129
- package/src/internal/channel-route-dispatch.ts +0 -58
- package/src/internal/channel-state.ts +0 -83
- package/src/internal/chat-client.ts +0 -594
- package/src/internal/cli-ax.ts +0 -2318
- package/src/internal/cli-bitbucket.ts +0 -438
- package/src/internal/cli-convert-automation.ts +0 -335
- package/src/internal/cli-cursor.ts +0 -282
- package/src/internal/cli-deploy.ts +0 -2519
- package/src/internal/cli-docs.ts +0 -192
- package/src/internal/cli-github.ts +0 -806
- package/src/internal/cli-gitlab.ts +0 -452
- package/src/internal/cli-images.ts +0 -672
- package/src/internal/cli-manifest.ts +0 -56
- package/src/internal/cli-mcp-oauth.ts +0 -396
- package/src/internal/cli-mcp.ts +0 -808
- package/src/internal/cli-skills.ts +0 -98
- package/src/internal/cli-slack-manual.ts +0 -418
- package/src/internal/cli-slack.ts +0 -874
- package/src/internal/cloud-merge.ts +0 -51
- package/src/internal/cloud-turn-cost.ts +0 -159
- package/src/internal/connection-env.ts +0 -106
- package/src/internal/continuation-channel.ts +0 -233
- package/src/internal/continuation-identity.ts +0 -935
- package/src/internal/conversation-mirror.ts +0 -423
- package/src/internal/convert-automation/convert-workflow.ts +0 -1377
- package/src/internal/convert-automation/slug.ts +0 -29
- package/src/internal/convert-automation/types.ts +0 -212
- package/src/internal/cron.ts +0 -76
- package/src/internal/cursor/account-mcp.ts +0 -692
- package/src/internal/cursor/backend-client.ts +0 -984
- package/src/internal/cursor/bound-secret-file.ts +0 -101
- package/src/internal/cursor/credentials.ts +0 -560
- package/src/internal/cursor/cursor-api-transport.ts +0 -65
- package/src/internal/cursor/github-credentials.ts +0 -228
- package/src/internal/cursor/hosted-bound-secrets.ts +0 -71
- package/src/internal/cursor/hosted-deployment-secrets.ts +0 -100
- package/src/internal/cursor/hosted-store-secrets.ts +0 -152
- package/src/internal/cursor/session-token.ts +0 -111
- package/src/internal/cursor/store-api-client.ts +0 -323
- package/src/internal/cursor-account-mcp-auth.ts +0 -303
- package/src/internal/cursor-agent-template.ts +0 -50
- package/src/internal/cursor-deployment-relay.ts +0 -315
- package/src/internal/cursor-event-relay.ts +0 -675
- package/src/internal/cursor-relay-core.ts +0 -563
- package/src/internal/deferred-channel-session.ts +0 -61
- package/src/internal/deploy-client.ts +0 -1574
- package/src/internal/deploy-manifest.ts +0 -361
- package/src/internal/deploy-source.ts +0 -144
- package/src/internal/describe-error.ts +0 -32
- package/src/internal/dev-mode.ts +0 -20
- package/src/internal/discovery/agent-config.ts +0 -288
- package/src/internal/discovery/agent.ts +0 -381
- package/src/internal/discovery/channels.ts +0 -100
- package/src/internal/discovery/connections.ts +0 -516
- package/src/internal/discovery/context.ts +0 -38
- package/src/internal/discovery/cursor-plugin.ts +0 -628
- package/src/internal/discovery/extension-overlay.ts +0 -247
- package/src/internal/discovery/extensions.ts +0 -490
- package/src/internal/discovery/fs.ts +0 -103
- package/src/internal/discovery/hooks.ts +0 -63
- package/src/internal/discovery/info.ts +0 -174
- package/src/internal/discovery/instructions.ts +0 -98
- package/src/internal/discovery/modules.ts +0 -107
- package/src/internal/discovery/names.ts +0 -45
- package/src/internal/discovery/project.ts +0 -319
- package/src/internal/discovery/reminders.ts +0 -65
- package/src/internal/discovery/runtime.ts +0 -158
- package/src/internal/discovery/schedules.ts +0 -120
- package/src/internal/discovery/seed-files.ts +0 -34
- package/src/internal/discovery/services.ts +0 -151
- package/src/internal/discovery/skills.ts +0 -174
- package/src/internal/discovery/subagent.ts +0 -138
- package/src/internal/discovery/tools.ts +0 -170
- package/src/internal/discovery.ts +0 -27
- package/src/internal/distribution.ts +0 -126
- package/src/internal/docs-site.ts +0 -248
- package/src/internal/duration.ts +0 -37
- package/src/internal/env-file.ts +0 -83
- package/src/internal/eval-judge-model.ts +0 -142
- package/src/internal/eval-run-store.ts +0 -585
- package/src/internal/eval-runner.ts +0 -823
- package/src/internal/evals-client.ts +0 -475
- package/src/internal/event-log.ts +0 -342
- package/src/internal/event-mapper.ts +0 -811
- package/src/internal/expected-delivery-failure.ts +0 -34
- package/src/internal/factory-resource-channel.ts +0 -103
- package/src/internal/filesystem/errors.ts +0 -207
- package/src/internal/filesystem/format.ts +0 -253
- package/src/internal/filesystem/merge.ts +0 -192
- package/src/internal/filesystem/nearest.ts +0 -112
- package/src/internal/filesystem/scratch.ts +0 -239
- package/src/internal/filesystem/sdk-schemas.ts +0 -204
- package/src/internal/filesystem/tools.ts +0 -804
- package/src/internal/filesystem/walk.ts +0 -366
- package/src/internal/fixtures/units-server.ts +0 -52
- package/src/internal/framework-file-storage.ts +0 -357
- package/src/internal/framework-storage-selection.ts +0 -156
- package/src/internal/frontmatter.ts +0 -108
- package/src/internal/github-fanout.ts +0 -144
- package/src/internal/guest-network.ts +0 -391
- package/src/internal/handleAgentServeTrigger.ts +0 -286
- package/src/internal/host-files.ts +0 -341
- package/src/internal/host-kv.ts +0 -81
- package/src/internal/host-otel.ts +0 -231
- package/src/internal/host-platforms.ts +0 -170
- package/src/internal/hosted-admission-adapter.ts +0 -47
- package/src/internal/hosted-admission-context.ts +0 -37
- package/src/internal/hosted-catch-protocol.ts +0 -112
- package/src/internal/hosted-catch.ts +0 -179
- package/src/internal/hosted-delivery-protocol.ts +0 -824
- package/src/internal/hosted-delivery.ts +0 -1410
- package/src/internal/hosted-execution-diag.ts +0 -291
- package/src/internal/hosted-execution-flush.ts +0 -136
- package/src/internal/hosted-execution-latency.ts +0 -301
- package/src/internal/hosted-managed-automation.ts +0 -116
- package/src/internal/hosting.ts +0 -114
- package/src/internal/http-channel-define.ts +0 -25
- package/src/internal/http-channel.ts +0 -669
- package/src/internal/http-control-plane-session.ts +0 -110
- package/src/internal/ids.ts +0 -39
- package/src/internal/incoming-headers-to-fetch.ts +0 -45
- package/src/internal/init-interview.ts +0 -360
- package/src/internal/init-project.ts +0 -711
- package/src/internal/init-scaffold.ts +0 -182
- package/src/internal/inline-stdio-define-stub.ts +0 -4
- package/src/internal/inline-stdio-mcp.ts +0 -230
- package/src/internal/install-cursor-skills.ts +0 -604
- package/src/internal/is-record.ts +0 -3
- package/src/internal/json-schema.ts +0 -95
- package/src/internal/legacy-command-guard.ts +0 -66
- package/src/internal/listen-port.ts +0 -85
- package/src/internal/local-control-plane.ts +0 -442
- package/src/internal/local-env.ts +0 -59
- package/src/internal/local-ingress.ts +0 -90
- package/src/internal/log-ring.ts +0 -59
- package/src/internal/logs-client.ts +0 -477
- package/src/internal/map-pool.ts +0 -39
- package/src/internal/mcp-endpoint.ts +0 -747
- package/src/internal/mcp-host.ts +0 -509
- package/src/internal/mcp-oauth-on-demand.ts +0 -337
- package/src/internal/mcp-oauth-persist.ts +0 -118
- package/src/internal/mcp-oauth.ts +0 -549
- package/src/internal/net.ts +0 -29
- package/src/internal/open-browser.ts +0 -41
- package/src/internal/otel/attrs.ts +0 -16
- package/src/internal/otel/collector.ts +0 -937
- package/src/internal/otel/config.ts +0 -287
- package/src/internal/otel/http.ts +0 -122
- package/src/internal/otel/mcp.ts +0 -56
- package/src/internal/otel/propagation.ts +0 -17
- package/src/internal/otel/runtime.ts +0 -441
- package/src/internal/package-inline-stdio.ts +0 -114
- package/src/internal/peer-connections.ts +0 -96
- package/src/internal/platform-schedule-sync.ts +0 -75
- package/src/internal/platform-timers.ts +0 -365
- package/src/internal/playground/static.ts +0 -278
- package/src/internal/playground/toolchain.ts +0 -270
- package/src/internal/playground-proxy.ts +0 -564
- package/src/internal/process-memory-telemetry.ts +0 -334
- package/src/internal/project-layout.ts +0 -31
- package/src/internal/prompt-context.ts +0 -116
- package/src/internal/reminder-control-plane-protocol.ts +0 -482
- package/src/internal/reminder-runner.ts +0 -1559
- package/src/internal/reminder-schedule.ts +0 -104
- package/src/internal/reminder-store.ts +0 -176
- package/src/internal/request-error-status.ts +0 -95
- package/src/internal/request-headers.ts +0 -21
- package/src/internal/resolve-prod-target.ts +0 -334
- package/src/internal/resolved-connections.ts +0 -190
- package/src/internal/router.ts +0 -143
- package/src/internal/run-client.ts +0 -354
- package/src/internal/runtime-dispatch-runner.ts +0 -50
- package/src/internal/sanitize-mcp-tool-name.ts +0 -31
- package/src/internal/schedule-runner.ts +0 -154
- package/src/internal/scm/pr-url.ts +0 -245
- package/src/internal/sdk-runner.ts +0 -959
- package/src/internal/serve-restart.ts +0 -113
- package/src/internal/server.ts +0 -3147
- package/src/internal/session-cost.ts +0 -208
- package/src/internal/session-engine.ts +0 -5622
- package/src/internal/session-links.ts +0 -84
- package/src/internal/session-run-log.ts +0 -535
- package/src/internal/session-store.ts +0 -307
- package/src/internal/session-urls.ts +0 -32
- package/src/internal/sessions-client.ts +0 -239
- package/src/internal/skill-catalog.ts +0 -66
- package/src/internal/skills-sync.ts +0 -55
- package/src/internal/slack-provision-client.ts +0 -544
- package/src/internal/slack-thread-key.ts +0 -11
- package/src/internal/sleep.ts +0 -3
- package/src/internal/start-log-store.ts +0 -164
- package/src/internal/steering.ts +0 -17
- package/src/internal/storage-coordinator.ts +0 -800
- package/src/internal/storage-roles.ts +0 -86
- package/src/internal/storage.ts +0 -1
- package/src/internal/store-api-protocol.ts +0 -205
- package/src/internal/store-mirror.ts +0 -73
- package/src/internal/stream-progress.ts +0 -294
- package/src/internal/terminal-style.ts +0 -133
- package/src/internal/testing/factory-resource-fixtures.ts +0 -84
- package/src/internal/testing/scm-continuation-fixtures.ts +0 -285
- package/src/internal/tool-catalog.ts +0 -104
- package/src/internal/tool-policy.ts +0 -222
- package/src/internal/tool-result.ts +0 -50
- package/src/internal/trajectory.ts +0 -418
- package/src/internal/turn-cost.ts +0 -136
- package/src/internal/turn-governor.ts +0 -145
- package/src/internal/turn-lease-store.ts +0 -144
- package/src/internal/turn-outbox.ts +0 -77
- package/src/internal/update-check.ts +0 -517
- package/src/internal/v2-hosting.ts +0 -52
- package/src/internal/workspace-sync.ts +0 -114
- package/src/internal/workspace.ts +0 -505
- package/src/kv/memory-kv.ts +0 -94
- package/src/kv.ts +0 -18
- package/src/memory.ts +0 -487
- package/src/otel-public.ts +0 -24
- package/src/otel.ts +0 -320
- package/src/prompt.ts +0 -80
- package/src/reminders.ts +0 -65
- package/src/schedules.ts +0 -31
- package/src/skills.ts +0 -27
- package/src/storage-backends/cursor-hosted-v2.ts +0 -204
- package/src/storage-backends/cursor-hosted.ts +0 -388
- package/src/storage-backends/file-kv.ts +0 -276
- package/src/storage-protocol.ts +0 -261
- package/src/storage.ts +0 -408
- package/src/tools.ts +0 -166
- package/src/types.ts +0 -3776
- /package/dist/docs/assets/{guides_jev.md.BNDm14Gy.lean.js → guides_jev.md.D7XH4JH3.lean.js} +0 -0
- /package/dist/docs/assets/{reference_http-api.md.BZOvhCqY.lean.js → reference_http-api.md.DbFNOubV.lean.js} +0 -0
- /package/dist/docs/assets/{reference_project-layout.md.CpLQ9j4K.lean.js → reference_project-layout.md.C2JMRh7p.lean.js} +0 -0
package/dist/docs/llms-full.txt
CHANGED
|
@@ -13,9 +13,6 @@ a coding agent can create the project, exercise its tools, run a real
|
|
|
13
13
|
turn, and inspect the result. You approve the plan and side effects
|
|
14
14
|
while the coding agent owns the implementation loop.
|
|
15
15
|
|
|
16
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
17
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
18
|
-
|
|
19
16
|
This page covers a coding agent working inside a checkout. To let a
|
|
20
17
|
running agent propose changes to its own source, use the separate
|
|
21
18
|
[self-improvement extension](/docs/guides/improve.md).
|
|
@@ -153,10 +150,6 @@ Cursor-managed hosting builds the selected Git ref and operates the
|
|
|
153
150
|
runtime; self-hosting gives you control of the network, process, and
|
|
154
151
|
filesystem.
|
|
155
152
|
|
|
156
|
-
The `@cursor/bdk` imports and `bdk` commands in these examples are
|
|
157
|
-
docs-ahead until publication; see
|
|
158
|
-
[BDK package availability](/docs/index.md#bdk-package-availability).
|
|
159
|
-
|
|
160
153
|
## Choose managed hosting or self-hosting
|
|
161
154
|
|
|
162
155
|
| Option | Use it when | You manage |
|
|
@@ -173,9 +166,6 @@ API.
|
|
|
173
166
|
Commit and push the exact ref you want to run, then sign in, validate,
|
|
174
167
|
and deploy. The preferred CLI is `bdk`.
|
|
175
168
|
|
|
176
|
-
> **Docs ahead:** `@cursor/bdk` is not on npm yet. This block shows future
|
|
177
|
-
> CLI syntax and will not run until the package publishes.
|
|
178
|
-
|
|
179
169
|
```text
|
|
180
170
|
cd my-agent
|
|
181
171
|
bdk login
|
|
@@ -184,7 +174,7 @@ bdk validate
|
|
|
184
174
|
bdk deploy
|
|
185
175
|
```
|
|
186
176
|
|
|
187
|
-
The deploy command waits until the
|
|
177
|
+
The deploy command waits until the runtime is running and prints the stable
|
|
188
178
|
deployment URL.
|
|
189
179
|
|
|
190
180
|
`deploy` reads from Git; it does not upload your working tree. Inside a
|
|
@@ -205,7 +195,10 @@ project.
|
|
|
205
195
|
|
|
206
196
|
## Add egress and secrets
|
|
207
197
|
|
|
208
|
-
Declare the external hosts and secret names the agent needs.
|
|
198
|
+
Declare the external hosts and secret names the agent needs. Mounted
|
|
199
|
+
extensions add the ones they declare, so list only what your own code
|
|
200
|
+
calls; `bdk info --dir .` shows the combined list and what each mount
|
|
201
|
+
adds. After the
|
|
209
202
|
deployment exists, set each value at the hidden prompt and follow the
|
|
210
203
|
CLI or dashboard instruction to redeploy.
|
|
211
204
|
|
|
@@ -324,7 +317,7 @@ multi-agent deployment, stop, and delete behavior.
|
|
|
324
317
|
|
|
325
318
|
Managed hosting persists framework-owned session, KV, and file state
|
|
326
319
|
across normal runtime replacements. Files written elsewhere on the
|
|
327
|
-
|
|
320
|
+
runtime's local filesystem are disposable; use `ctx.host.kv` or
|
|
328
321
|
`ctx.host.files` for durable application state.
|
|
329
322
|
|
|
330
323
|
Parked approvals and in-memory reminder handlers do not survive a
|
|
@@ -402,9 +395,6 @@ not to discover what the prompt should do.
|
|
|
402
395
|
Evals run real model turns and real tools. Guard external writes before
|
|
403
396
|
running a suite against an agent that can post, merge, or deploy.
|
|
404
397
|
|
|
405
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
406
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
407
|
-
|
|
408
398
|
## Protect a tool decision
|
|
409
399
|
|
|
410
400
|
This smoke case asks for a PR verdict, requires the read-only inspection
|
|
@@ -661,9 +651,6 @@ help. The specialist keeps its own instructions, tools, and session,
|
|
|
661
651
|
while the caller decides when to delegate and returns the answer to the
|
|
662
652
|
user. Co-host both projects under one `bdk` process.
|
|
663
653
|
|
|
664
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
665
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
666
|
-
|
|
667
654
|
## Delegate a question to a specialist
|
|
668
655
|
|
|
669
656
|
Ask the concierge about the weather and it hands the question to the
|
|
@@ -818,9 +805,6 @@ current pull-request or commit state, and writes the result back to
|
|
|
818
805
|
Bitbucket. `bitbucketChannel()` gives the same hooks and normalized
|
|
819
806
|
payloads on Bitbucket Cloud and Data Center.
|
|
820
807
|
|
|
821
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
822
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
823
|
-
|
|
824
808
|
## Review a pull request
|
|
825
809
|
|
|
826
810
|
Creating a pull request, or pushing new commits to a Data Center pull
|
|
@@ -1114,10 +1098,6 @@ same branch.
|
|
|
1114
1098
|
|
|
1115
1099
|
## Mount it
|
|
1116
1100
|
|
|
1117
|
-
The extension will ship with `@cursor/bdk` when the package publishes.
|
|
1118
|
-
This import is docs-ahead; see
|
|
1119
|
-
[BDK package availability](/docs/index.md#bdk-package-availability).
|
|
1120
|
-
|
|
1121
1101
|
```ts
|
|
1122
1102
|
// bot/extensions/cloud.ts
|
|
1123
1103
|
import cursorCloudAgents from "@cursor/bdk/extensions/cursor-cloud-agents";
|
|
@@ -1210,9 +1190,6 @@ path.
|
|
|
1210
1190
|
configuration and prints a checklist for everything that still needs
|
|
1211
1191
|
your judgment.
|
|
1212
1192
|
|
|
1213
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
1214
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
1215
|
-
|
|
1216
1193
|
## Convert and run locally
|
|
1217
1194
|
|
|
1218
1195
|
The command creates a project named after the Automation, installs its
|
|
@@ -1297,9 +1274,9 @@ reply experience and app setup.
|
|
|
1297
1274
|
|
|
1298
1275
|
The generated GitHub channel keeps mechanical filters such as PR
|
|
1299
1276
|
actions, branches, issue actions, repositories, and simple user
|
|
1300
|
-
allowlists. Conditions that
|
|
1277
|
+
allowlists. Conditions that depend on dashboard-only context stay
|
|
1301
1278
|
fail-closed, so the corresponding hook returns `null` until you replace
|
|
1302
|
-
|
|
1279
|
+
them.
|
|
1303
1280
|
|
|
1304
1281
|
For example, a converted CI trigger can wake only when the suite fails:
|
|
1305
1282
|
|
|
@@ -1394,9 +1371,6 @@ latest PR and CI state, then write back reviews, comments, checks, or
|
|
|
1394
1371
|
pushes. Pull events from Cursor, so you don't expose a public webhook
|
|
1395
1372
|
URL.
|
|
1396
1373
|
|
|
1397
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
1398
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
1399
|
-
|
|
1400
1374
|
Connect GitHub in Cursor for the repos you care about (Settings or
|
|
1401
1375
|
[cursor.com/dashboard](https://cursor.com/dashboard)). Sign the host in
|
|
1402
1376
|
with `bdk login`. `cursorAccount` reuses that connection for
|
|
@@ -1623,7 +1597,7 @@ Every wake for the same repo and PR number resumes the same session. The
|
|
|
1623
1597
|
channel keys turns as `github-pr:acme/checkout#42`. Opens, comments, and
|
|
1624
1598
|
CI results share that conversation.
|
|
1625
1599
|
|
|
1626
|
-
## Call GitHub from
|
|
1600
|
+
## Call GitHub from deterministic code via `ctx`
|
|
1627
1601
|
|
|
1628
1602
|
`cursorAccount` puts one credential on both surfaces:
|
|
1629
1603
|
|
|
@@ -1759,9 +1733,6 @@ project or merge-request state, and writes the result back to GitLab.
|
|
|
1759
1733
|
`gitlabChannel()` supports the same hooks on GitLab.com and self-managed
|
|
1760
1734
|
GitLab.
|
|
1761
1735
|
|
|
1762
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
1763
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
1764
|
-
|
|
1765
1736
|
## Review a merge request
|
|
1766
1737
|
|
|
1767
1738
|
Opening, reopening, or pushing commits to a merge request starts a
|
|
@@ -2058,9 +2029,6 @@ the Grok Bot agents on its serve host's Cursor account. The bot keeps
|
|
|
2058
2029
|
its existing conversation, memory, and tools, while your agent carries
|
|
2059
2030
|
the delivered reply back into the current conversation.
|
|
2060
2031
|
|
|
2061
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
2062
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
2063
|
-
|
|
2064
2032
|
Use this extension on the local runtime. It consults another Grok Bot;
|
|
2065
2033
|
it does not move this agent onto a Grok Bot runtime.
|
|
2066
2034
|
|
|
@@ -2110,7 +2078,7 @@ The message must include who is asking, the relevant facts, and the
|
|
|
2110
2078
|
shape of the answer. The Grok Bot does not see the current BDK
|
|
2111
2079
|
conversation.
|
|
2112
2080
|
|
|
2113
|
-
>
|
|
2081
|
+
> Avery is deciding whether to move Saturday's picnic. The forecast is
|
|
2114
2082
|
> 70% rain from 1-4pm. Recommend keep or move, give one reason, and name
|
|
2115
2083
|
> the best alternate time.
|
|
2116
2084
|
|
|
@@ -2205,9 +2173,6 @@ as updating metrics or sending alerts. They never change the turn, prompt, or
|
|
|
2205
2173
|
reply. Author them under `bot/hooks/` with `defineHook` from
|
|
2206
2174
|
`@cursor/bdk/hooks`.
|
|
2207
2175
|
|
|
2208
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
2209
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
2210
|
-
|
|
2211
2176
|
## Meter token usage
|
|
2212
2177
|
|
|
2213
2178
|
With [OpenTelemetry](/docs/guides/opentelemetry.md) configured, this hook adds a live
|
|
@@ -2324,9 +2289,6 @@ work" into a source change. The agent prepares a brief, a Cursor cloud
|
|
|
2324
2289
|
agent edits a checkout and opens a pull request, and the running agent
|
|
2325
2290
|
reports the verified PR for human review.
|
|
2326
2291
|
|
|
2327
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
2328
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
2329
|
-
|
|
2330
2292
|
Durable behavior does not change until that source is merged and
|
|
2331
2293
|
deployed.
|
|
2332
2294
|
|
|
@@ -2464,9 +2426,6 @@ risk, choose a reviewer, or decide whether a merge needs a documentation
|
|
|
2464
2426
|
follow-up. Jev returns a choice, score, or probability; your TypeScript
|
|
2465
2427
|
decides what happens next.
|
|
2466
2428
|
|
|
2467
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
2468
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
2469
|
-
|
|
2470
2429
|
Set `TYPESAFE_API_KEY`. The default model is `jev-latest`.
|
|
2471
2430
|
|
|
2472
2431
|
```ts
|
|
@@ -2476,6 +2435,13 @@ import jev from "@cursor/bdk/extensions/jev";
|
|
|
2476
2435
|
export default jev();
|
|
2477
2436
|
```
|
|
2478
2437
|
|
|
2438
|
+
On Cursor-managed hosting, this mount adds `api.typesafe.ai` to the
|
|
2439
|
+
deployment's egress allowlist and `TYPESAFE_API_KEY` to the secrets it
|
|
2440
|
+
expects, so `bdk deploy` warns until you set the key. A project that
|
|
2441
|
+
imports `decide` or `evaluate` without mounting the extension has to
|
|
2442
|
+
list `api.typesafe.ai` in `hosting.egressDomains` itself; see
|
|
2443
|
+
[Add egress and secrets](/docs/deployment.md#add-egress-and-secrets).
|
|
2444
|
+
|
|
2479
2445
|
## Start only the review turns you need
|
|
2480
2446
|
|
|
2481
2447
|
Call Jev from a channel hook before a model turn starts. When a pull
|
|
@@ -2762,9 +2728,6 @@ without putting tokens in the agent's source or workspace. Use it when
|
|
|
2762
2728
|
the server speaks OAuth and its credentials should belong to the serve
|
|
2763
2729
|
host instead of a person's Cursor account.
|
|
2764
2730
|
|
|
2765
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
2766
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
2767
|
-
|
|
2768
2731
|
## Use a private MCP tool locally
|
|
2769
2732
|
|
|
2770
2733
|
Declare the remote server, authorize it once in the browser, and start
|
|
@@ -2881,7 +2844,7 @@ bdk deploy
|
|
|
2881
2844
|
```
|
|
2882
2845
|
|
|
2883
2846
|
`--store` writes deployment secrets; it does not restart the current
|
|
2884
|
-
|
|
2847
|
+
process. Follow the CLI or dashboard prompt to redeploy, then exercise
|
|
2885
2848
|
the hosted agent.
|
|
2886
2849
|
|
|
2887
2850
|
These credentials belong to the deployment, not to the person who
|
|
@@ -2932,16 +2895,13 @@ cost metrics from the serve process.
|
|
|
2932
2895
|
Export is opt-in. Nothing leaves the process until you configure a
|
|
2933
2896
|
destination.
|
|
2934
2897
|
|
|
2935
|
-
The `bdk` commands on this page are docs-ahead until `@cursor/bdk` is
|
|
2936
|
-
published; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
2937
|
-
|
|
2938
2898
|
## Connect an OTLP collector
|
|
2939
2899
|
|
|
2940
2900
|
Set the collector endpoint, start the agent, and send it a message. You
|
|
2941
2901
|
should see an `agent_sdk.http` request span and an `agent_sdk.turn`
|
|
2942
2902
|
trace, with any tool or subagent work nested under the turn.
|
|
2943
2903
|
|
|
2944
|
-
```
|
|
2904
|
+
```bash
|
|
2945
2905
|
export OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com
|
|
2946
2906
|
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer $OTEL_TOKEN"
|
|
2947
2907
|
export OTEL_SERVICE_NAME=incident-agent
|
|
@@ -2954,7 +2914,9 @@ The default protocol is OTLP/HTTP protobuf. If you already call
|
|
|
2954
2914
|
code:
|
|
2955
2915
|
|
|
2956
2916
|
```ts
|
|
2957
|
-
|
|
2917
|
+
import { serve } from "@cursor/bdk";
|
|
2918
|
+
|
|
2919
|
+
await serve(".", {
|
|
2958
2920
|
otel: {
|
|
2959
2921
|
serviceName: "incident-agent",
|
|
2960
2922
|
exporters: [
|
|
@@ -3087,9 +3049,6 @@ in a channel it watches. From there, it keeps the conversation in one
|
|
|
3087
3049
|
thread and can reply all at once, stream the answer live, or decide for
|
|
3088
3050
|
itself when to post updates.
|
|
3089
3051
|
|
|
3090
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
3091
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
3092
|
-
|
|
3093
3052
|
Run `bdk slack create --dir .`, then `bdk slack doctor`.
|
|
3094
3053
|
|
|
3095
3054
|
## Answer a mention or DM
|
|
@@ -3124,7 +3083,7 @@ export default slackChannel({
|
|
|
3124
3083
|
reasoning: true,
|
|
3125
3084
|
// Tool names as they start ("Running grep, glob...").
|
|
3126
3085
|
tools: true,
|
|
3127
|
-
idle: ["Checking the
|
|
3086
|
+
idle: ["Checking the request...", "Reviewing recent activity..."],
|
|
3128
3087
|
},
|
|
3129
3088
|
},
|
|
3130
3089
|
});
|
|
@@ -3185,15 +3144,12 @@ This example watches `#triage-alerts`, so any substantial top-level
|
|
|
3185
3144
|
message starts a thread even when nobody mentions the bot. The length
|
|
3186
3145
|
guard filters out short posts before they can start a turn.
|
|
3187
3146
|
|
|
3188
|
-
Mentions
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
guest watcher: it is not a hosting subscription. A thread reply on
|
|
3195
|
-
Cursor-managed hosting is delivered when a mention already opened that
|
|
3196
|
-
thread, and a top-level post does not match.
|
|
3147
|
+
Mentions work in any channel the bot has joined. Listening without a
|
|
3148
|
+
mention requires an explicit allowlist with at least one channel ID
|
|
3149
|
+
starting with `C` or `G` and at most 10 distinct IDs. You can add
|
|
3150
|
+
`#name` entries for readability. A lone `"*"` watches replies in every
|
|
3151
|
+
joined channel (`posts: "replies"`), but it does not wake on top-level
|
|
3152
|
+
posts. Do not mix `"*"` with channel IDs.
|
|
3197
3153
|
|
|
3198
3154
|
```ts
|
|
3199
3155
|
export default slackChannel({
|
|
@@ -3217,15 +3173,11 @@ export default slackChannel({
|
|
|
3217
3173
|
When you create the app, pass `--channel-posts` and invite the bot to
|
|
3218
3174
|
every channel in the allowlist.
|
|
3219
3175
|
|
|
3220
|
-
On Cursor-managed hosting the
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
the control plane answers every delivery immediately, and edits arrive
|
|
3226
|
-
as separate deliveries that are dropped at the edge. Channel ids match
|
|
3227
|
-
without any Slack call; `#name` entries are resolved once per pod with
|
|
3228
|
-
the bot token and need the `channels:read` scope.
|
|
3176
|
+
On Cursor-managed hosting, the channel IDs in `allow` define which
|
|
3177
|
+
top-level posts can wake the agent. Replies in threads the agent has
|
|
3178
|
+
already joined still arrive. `debounceMs` applies only when you
|
|
3179
|
+
self-host. Add the `channels:read` scope when you include `#name`
|
|
3180
|
+
labels.
|
|
3229
3181
|
|
|
3230
3182
|
## Control who can message
|
|
3231
3183
|
|
|
@@ -3307,7 +3259,7 @@ Use the IDs on the hook `ctx` when handling an event, and
|
|
|
3307
3259
|
|
|
3308
3260
|
## Connect
|
|
3309
3261
|
|
|
3310
|
-
```
|
|
3262
|
+
```bash
|
|
3311
3263
|
bdk login
|
|
3312
3264
|
bdk slack create --dir .
|
|
3313
3265
|
bdk slack doctor --prefix TRIAGE
|
|
@@ -3333,7 +3285,7 @@ and tokens.
|
|
|
3333
3285
|
Run `doctor` first to catch missing credentials, then start the agent
|
|
3334
3286
|
and send it the same mention or DM a teammate would.
|
|
3335
3287
|
|
|
3336
|
-
```
|
|
3288
|
+
```bash
|
|
3337
3289
|
bdk slack doctor --prefix TRIAGE
|
|
3338
3290
|
bdk serve --dir . --dev
|
|
3339
3291
|
```
|
|
@@ -3370,9 +3322,6 @@ conversation, then sends the result back to the system that started it.
|
|
|
3370
3322
|
Use one when the built-in [HTTP API](/docs/reference/http-api.md) does not
|
|
3371
3323
|
match the provider's payload, conversation key, or reply path.
|
|
3372
3324
|
|
|
3373
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
3374
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
3375
|
-
|
|
3376
3325
|
Author `bot/channels/<id>.ts`. Its routes mount under
|
|
3377
3326
|
`/<slug>/v1/channels/<id>`.
|
|
3378
3327
|
|
|
@@ -3614,9 +3563,6 @@ crossing the freeze line.
|
|
|
3614
3563
|
The companion [`hillclimb` skill](https://github.com/cursor/cursor/blob/main/packages/agent-serve/skills/hillclimb/SKILL.md) can run
|
|
3615
3564
|
this loop with you.
|
|
3616
3565
|
|
|
3617
|
-
The `bdk` commands on this page are docs-ahead until `@cursor/bdk` is
|
|
3618
|
-
published; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
3619
|
-
|
|
3620
3566
|
## Correct a wrong tool choice
|
|
3621
3567
|
|
|
3622
3568
|
Suppose a PR reviewer calls `approve_pr` before `inspect_pr`. Pin one PR
|
|
@@ -3748,9 +3694,9 @@ Source: /docs/index.md
|
|
|
3748
3694
|
|
|
3749
3695
|
# Grok Bot Development Kit (BDK)
|
|
3750
3696
|
|
|
3751
|
-
The Grok Bot Development Kit (BDK)
|
|
3752
|
-
|
|
3753
|
-
Approval Bot.
|
|
3697
|
+
The Grok Bot Development Kit (BDK) lets you define, test, and deploy agents
|
|
3698
|
+
as code. It uses the Cursor SDK harness that powers Bugbot, Security Review,
|
|
3699
|
+
and Approval Bot.
|
|
3754
3700
|
|
|
3755
3701
|
A BDK project is a folder of Markdown and TypeScript. Combine deterministic
|
|
3756
3702
|
code with model judgment, then make the bot or agent available in source
|
|
@@ -3790,17 +3736,9 @@ sandboxing on Cursor infrastructure or on your own host.
|
|
|
3790
3736
|
|
|
3791
3737
|

|
|
3792
3738
|
|
|
3793
|
-
## BDK package availability
|
|
3794
|
-
|
|
3795
|
-
BDK uses the `@cursor/bdk` package and `bdk` binary. The package isn't on npm
|
|
3796
|
-
yet, so its install commands won't run until publication.
|
|
3797
|
-
|
|
3798
3739
|
## Get started
|
|
3799
3740
|
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
> **Docs ahead:** `@cursor/bdk` is not on npm yet. The package will install
|
|
3803
|
-
> the `bdk` binary; this block will not run until it publishes.
|
|
3741
|
+
Install `@cursor/bdk`, then start with `bdk init` and `bdk dev`.
|
|
3804
3742
|
|
|
3805
3743
|
```text
|
|
3806
3744
|
npm install --global @cursor/bdk
|
|
@@ -3825,7 +3763,7 @@ my-bot/
|
|
|
3825
3763
|
│ ├── mcp-connections/
|
|
3826
3764
|
│ │ └── linear.ts # tools from an MCP server
|
|
3827
3765
|
│ ├── host-connections/
|
|
3828
|
-
│ │ └──
|
|
3766
|
+
│ │ └── inventory.ts # host-only MCP tools
|
|
3829
3767
|
│ ├── subagents/
|
|
3830
3768
|
│ │ └── verifier/
|
|
3831
3769
|
│ │ ├── agent.ts
|
|
@@ -3845,10 +3783,11 @@ Describe your bot or agent in Cursor, or edit the files yourself.
|
|
|
3845
3783
|
- [Build your first PR reviewer](/docs/quickstart.md): a working GitHub
|
|
3846
3784
|
reviewer, one step at a time.
|
|
3847
3785
|
|
|
3848
|
-
- Start from a template
|
|
3786
|
+
- Start from a template:
|
|
3787
|
+
[Grok Bot agents](/docs/templates/grokbot-agents.md),
|
|
3849
3788
|
[security reviewer](/docs/templates/security-reviewer.md),
|
|
3850
|
-
[
|
|
3851
|
-
[
|
|
3789
|
+
[Thermo review](/docs/templates/thermo-review.md),
|
|
3790
|
+
[Thermo quality review](/docs/templates/thermo-quality-review.md),
|
|
3852
3791
|
[owners-policy approver](/docs/templates/agentic-owners.md),
|
|
3853
3792
|
[issue triager](/docs/templates/triage.md).
|
|
3854
3793
|
|
|
@@ -3875,15 +3814,13 @@ review.
|
|
|
3875
3814
|
|
|
3876
3815
|
- Node 22.13 or newer.
|
|
3877
3816
|
|
|
3878
|
-
- The
|
|
3879
|
-
so these commands will not run until publication. See
|
|
3880
|
-
[BDK package availability](/docs/index.md#bdk-package-availability).
|
|
3817
|
+
- The `@cursor/bdk` package:
|
|
3881
3818
|
|
|
3882
3819
|
```text
|
|
3883
3820
|
npm install -g @cursor/bdk
|
|
3884
3821
|
```
|
|
3885
3822
|
|
|
3886
|
-
- A Cursor credential for model turns.
|
|
3823
|
+
- A Cursor credential for model turns. Sign in once:
|
|
3887
3824
|
|
|
3888
3825
|
```text
|
|
3889
3826
|
bdk login
|
|
@@ -3893,9 +3830,6 @@ bdk login
|
|
|
3893
3830
|
|
|
3894
3831
|
The preferred BDK workflow uses `bdk init` and `bdk dev`.
|
|
3895
3832
|
|
|
3896
|
-
> **Docs ahead:** `@cursor/bdk` is not on npm yet. This block shows future
|
|
3897
|
-
> CLI syntax and will not run until the package publishes.
|
|
3898
|
-
|
|
3899
3833
|
```text
|
|
3900
3834
|
bdk init ./pr-reviewer
|
|
3901
3835
|
cd pr-reviewer
|
|
@@ -4188,9 +4122,6 @@ Source: /docs/reference/agent-config.md
|
|
|
4188
4122
|
the agent and its local harness defaults.
|
|
4189
4123
|
Everything is optional on the root agent.
|
|
4190
4124
|
|
|
4191
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
4192
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
4193
|
-
|
|
4194
4125
|
```ts
|
|
4195
4126
|
import { defineAgent } from "@cursor/bdk";
|
|
4196
4127
|
|
|
@@ -4214,15 +4145,15 @@ export default defineAgent({
|
|
|
4214
4145
|
| `description` | string | What the agent is for. Required on subagents; the parent model reads it to decide when to delegate. Documentation-only on the root. |
|
|
4215
4146
|
| `instructions` | string | Inline instructions. Prefer `instructions.md`; this exists for subagents and generated configs. |
|
|
4216
4147
|
| `local` | `{ cwd?, workspaceDir?, sandbox? }` | Local harness defaults. See [Local options](#local-options). |
|
|
4217
|
-
| `hosting` | `{ egressDomains?, secretNames? }` | Managed-hosting declarations read by `bdk deploy`: the
|
|
4218
|
-
| `concurrency` | `{ maxRunningTurns? }` |
|
|
4148
|
+
| `hosting` | `{ egressDomains?, secretNames? }` | Managed-hosting declarations read by `bdk deploy`: the deployment's egress allowlist and the secret names the agent expects. Mounted [extensions](/docs/reference/extensions.md#build-an-extension) add their own. Ignored by local serving. |
|
|
4149
|
+
| `concurrency` | `{ maxRunningTurns? }` | Agent-wide concurrent turn limit. See [Concurrency](#concurrency). |
|
|
4219
4150
|
| `builtinTools` | `{ reminders? }` | Framework-provided model-facing tools, opted in per capability. See [Built-in tools](#built-in-tools). |
|
|
4220
4151
|
| `tools` | `ToolName[]` | Allowlist of built-in harness tools offered to the model. Unset = the model's full standard toolset. See [Harness tools](#harness-tools). |
|
|
4221
4152
|
|
|
4222
4153
|
## Model
|
|
4223
4154
|
|
|
4224
4155
|
`model` is a Cursor model id string, or `{ id, params }`. Effort and
|
|
4225
|
-
speed are params, not id suffixes.
|
|
4156
|
+
speed are params, not id suffixes. BDK rejects suffix-style ids
|
|
4226
4157
|
like `grok-4.5-fast`:
|
|
4227
4158
|
|
|
4228
4159
|
```ts
|
|
@@ -4295,7 +4226,7 @@ servers, point `local.cwd` outside the checkout. See
|
|
|
4295
4226
|
[Local cwd](#local-cwd). `local.sandbox` makes MCP tool calls fail
|
|
4296
4227
|
closed.
|
|
4297
4228
|
|
|
4298
|
-
Use the SDK's public tool names, including `"shell"`, `"read"`,
|
|
4229
|
+
Use the Cursor SDK's public tool names, including `"shell"`, `"read"`,
|
|
4299
4230
|
`"edit"`, `"grep"`, `"glob"`, `"ls"`, and `"task"`. Unknown names
|
|
4300
4231
|
fail the turn with a `ConfigurationError`.
|
|
4301
4232
|
|
|
@@ -4382,9 +4313,6 @@ or decision records. An artifact kind defines the data it accepts, and
|
|
|
4382
4313
|
the artifacts API tags or updates records by key. Records persist across
|
|
4383
4314
|
sessions and can be listed, streamed, or downloaded.
|
|
4384
4315
|
|
|
4385
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
4386
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
4387
|
-
|
|
4388
4316
|
## Artifact kinds
|
|
4389
4317
|
|
|
4390
4318
|
Author `bot/artifacts.ts` with `defineArtifacts` from
|
|
@@ -4503,9 +4431,6 @@ A channel connects an external surface to agent sessions. A file at
|
|
|
4503
4431
|
under `/v1/channels/<id>`. The built-in HTTP session channel is always
|
|
4504
4432
|
available alongside any custom or prebuilt channels.
|
|
4505
4433
|
|
|
4506
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
4507
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
4508
|
-
|
|
4509
4434
|
## Built-in HTTP channel
|
|
4510
4435
|
|
|
4511
4436
|
The built-in channel serves the session, approval, tool, discovery, and
|
|
@@ -4667,15 +4592,13 @@ author their own chain, and `--allow-anonymous` swaps it for
|
|
|
4667
4592
|
|
|
4668
4593
|
## Prebuilt channels
|
|
4669
4594
|
|
|
4670
|
-
| Import |
|
|
4595
|
+
| Import | Function | Surface |
|
|
4671
4596
|
| --- | --- | --- |
|
|
4672
4597
|
| `@cursor/bdk/channels/slack` | `slackChannel()` | Slack messages, threads, streaming replies, and approvals. See [Slack](/docs/guides/slack.md) |
|
|
4673
4598
|
| `@cursor/bdk/channels/github` | `githubChannel()` | GitHub and GitHub Enterprise webhooks. See [GitHub](/docs/guides/github.md) |
|
|
4674
4599
|
| `@cursor/bdk/channels/gitlab` | `gitlabChannel()` | GitLab.com and self-managed GitLab hooks. See [GitLab](/docs/guides/gitlab.md) |
|
|
4675
4600
|
| `@cursor/bdk/channels/bitbucket` | `bitbucketChannel()` | Bitbucket Cloud and Data Center hooks. See [Bitbucket](/docs/guides/bitbucket.md) |
|
|
4676
4601
|
| `@cursor/bdk/channels/deployments` | `deploymentsChannel()` | Deployment events filtered by source, environment, or event name |
|
|
4677
|
-
| `@cursor/bdk/channels/change-monitors` | `changeMonitorsChannel()` | Change Monitor `checkpoint.created` events |
|
|
4678
|
-
| `@cursor/bdk/channels/issues` | `issuesChannel()` | Factory `issue.created` events |
|
|
4679
4602
|
|
|
4680
4603
|
For other platforms like Discord or Teams, use the authored
|
|
4681
4604
|
`defineChannel` route form.
|
|
@@ -4704,20 +4627,17 @@ Source: /docs/reference/cli.md
|
|
|
4704
4627
|
The Grok Bot Development Kit (BDK) uses the `@cursor/bdk` package and `bdk`
|
|
4705
4628
|
CLI.
|
|
4706
4629
|
|
|
4707
|
-
> **Docs ahead:** `@cursor/bdk` is not on npm yet. This command will work
|
|
4708
|
-
> after publication.
|
|
4709
|
-
|
|
4710
4630
|
```text
|
|
4711
4631
|
bdk <command>
|
|
4712
4632
|
```
|
|
4713
4633
|
|
|
4714
|
-
The command catalog below documents the `bdk` binary
|
|
4715
|
-
`@cursor/bdk`. Run
|
|
4634
|
+
The command catalog below documents the `bdk` binary from
|
|
4635
|
+
`@cursor/bdk`. Run it with Node 22.13 or newer; Bun is not
|
|
4716
4636
|
supported. Commands exit nonzero when validation or a synchronous request fails;
|
|
4717
4637
|
asynchronous commands can exit `0` once work is accepted. Project paths use the
|
|
4718
4638
|
[BDK project layout](/docs/reference/project-layout.md).
|
|
4719
4639
|
|
|
4720
|
-
|
|
4640
|
+
Install `@cursor/bdk` to obtain the binary. `bdk help`
|
|
4721
4641
|
prints top-level help; the Slack, GitHub, GitLab, and Bitbucket command packs
|
|
4722
4642
|
provide their own `help` subcommands.
|
|
4723
4643
|
|
|
@@ -5137,7 +5057,7 @@ installs dependencies, and tries to put `bdk` on `PATH`.
|
|
|
5137
5057
|
|
|
5138
5058
|
| Option | Contract |
|
|
5139
5059
|
| --- | --- |
|
|
5140
|
-
| `--template <name>` | Use a bundled template: `agentic-owners`, `agents-md`, `code-wiki`, `demo`, `grokbot-agents`, `security-help`, `security-reviewer`, `thermo-quality-review`, `thermo-review`, `triage-jira`, or `triage-linear`. |
|
|
5060
|
+
| `--template <name>` | Use a bundled template: `agentic-owners`, `agents-md`, `code-wiki`, `demo`, `grokbot-agents`, `security-help`, `security-reviewer`, `thermo-quality-review`, `thermo-review`, `triage-jira`, or `triage-linear`. `triage` selects `triage-linear`. |
|
|
5141
5061
|
| `--var id=value` | Answer a template question without a prompt. Repeat for multiple answers. |
|
|
5142
5062
|
| `--json` | Skip interactive login and skill prompts, then print `{ ok, directory, template, created, skipped, installed, installError, cliOnPath, cliLinkError, next }`. `ok` reflects dependency installation. |
|
|
5143
5063
|
|
|
@@ -5176,7 +5096,7 @@ The command replaces the installed BDK skills with the package copy and
|
|
|
5176
5096
|
removes stale bundled skills. `--print` previews the change. `--json` prints
|
|
5177
5097
|
`{ ok, dryRun, directory, firstInstall, skills, removed }`.
|
|
5178
5098
|
|
|
5179
|
-
|
|
5099
|
+
Package installation performs this copy.
|
|
5180
5100
|
Run `bdk install-skills` when you need to refresh it.
|
|
5181
5101
|
|
|
5182
5102
|
### Inspect a project {#info}
|
|
@@ -5296,8 +5216,7 @@ bdk deployments [--team <id>] [--json]
|
|
|
5296
5216
|
```
|
|
5297
5217
|
|
|
5298
5218
|
Text output shows slug, status, generation, kind, and update time. `--json`
|
|
5299
|
-
prints `{ deployments }
|
|
5300
|
-
succeeds.
|
|
5219
|
+
prints `{ deployments }`. An empty list succeeds.
|
|
5301
5220
|
|
|
5302
5221
|
### Inspect a deployment {#deployment}
|
|
5303
5222
|
|
|
@@ -5326,10 +5245,7 @@ bdk cancel-runs <slug> [--team <id>] [--json]
|
|
|
5326
5245
|
```
|
|
5327
5246
|
|
|
5328
5247
|
The command requests cancellation for a deployment's active runs and reminder
|
|
5329
|
-
wakes.
|
|
5330
|
-
application, this cancels every install; use `stop --cancel-runs` for
|
|
5331
|
-
install-local cancellation. It exits nonzero if any cancellation request fails
|
|
5332
|
-
to start.
|
|
5248
|
+
wakes. It exits nonzero if any cancellation request fails to start.
|
|
5333
5249
|
|
|
5334
5250
|
### Replace event repositories {#event-repos}
|
|
5335
5251
|
|
|
@@ -5623,9 +5539,6 @@ Put a server in `bot/host-connections/` when only host tools should
|
|
|
5623
5539
|
call it. Host connections use the same `defineConnection` shape and
|
|
5624
5540
|
support `bdk mcp oauth`; the model and playground don't see them.
|
|
5625
5541
|
|
|
5626
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
5627
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
5628
|
-
|
|
5629
5542
|
## Remote MCP server
|
|
5630
5543
|
|
|
5631
5544
|
Point an MCP connection at a remote server with a URL.
|
|
@@ -5709,16 +5622,16 @@ export default defineConnection({
|
|
|
5709
5622
|
The callback is evaluated on every turn, including reminder
|
|
5710
5623
|
fires and post-restart follow-ups, so the identity always comes from the
|
|
5711
5624
|
session itself, never from state parked in memory. The model never sees a
|
|
5712
|
-
|
|
5713
|
-
fails the turn: a turn never silently runs without the
|
|
5714
|
-
identity. `host.mcp` calls from server tools keep the static
|
|
5715
|
-
You can't combine `auth` with `oauth: true`; the host OAuth
|
|
5716
|
-
the Authorization header.
|
|
5625
|
+
downstream account parameter and cannot choose the account. A callback
|
|
5626
|
+
that throws fails the turn: a turn never silently runs without the
|
|
5627
|
+
connection's identity. `host.mcp` calls from server tools keep the static
|
|
5628
|
+
headers only. You can't combine `auth` with `oauth: true`; the host OAuth
|
|
5629
|
+
provider owns the Authorization header.
|
|
5717
5630
|
|
|
5718
5631
|
Derive the identity from durable session facts: `session.auth`,
|
|
5719
5632
|
`session.id`, or your channel's own session state. Do not key it off
|
|
5720
5633
|
`session.continuationKey`. The HTTP channel rotates that key after every
|
|
5721
|
-
accepted follow-up, so
|
|
5634
|
+
accepted follow-up, so an account mapping keyed on it breaks
|
|
5722
5635
|
mid-conversation.
|
|
5723
5636
|
|
|
5724
5637
|
`auth` works attached or advertised. Advertise the auth connection
|
|
@@ -5734,7 +5647,7 @@ characters and add numeric suffixes to avoid collisions.
|
|
|
5734
5647
|
```ts
|
|
5735
5648
|
export default defineConnection({
|
|
5736
5649
|
url: "https://api.cursor.com/v1/mcp/plugins",
|
|
5737
|
-
auth: async (session) => ({ headers: await
|
|
5650
|
+
auth: async (session) => ({ headers: await headersForSession(session) }),
|
|
5738
5651
|
advertiseTools: true,
|
|
5739
5652
|
});
|
|
5740
5653
|
```
|
|
@@ -5921,9 +5834,6 @@ tools, events, and output meet a contract. Files under the project-root
|
|
|
5921
5834
|
discovers their IDs, executes them, and reports every assertion. See the
|
|
5922
5835
|
[Evals guide](/docs/evals.md) for the regression workflow.
|
|
5923
5836
|
|
|
5924
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
5925
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
5926
|
-
|
|
5927
5837
|
## Eval discovery and case IDs
|
|
5928
5838
|
|
|
5929
5839
|
Eval files live under the project-root `evals/` directory and end in
|
|
@@ -6212,9 +6122,6 @@ schedules, subagents, artifacts, and workspace seeds. One mount file
|
|
|
6212
6122
|
adds them under a namespace without copying their source into your
|
|
6213
6123
|
project.
|
|
6214
6124
|
|
|
6215
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
6216
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
6217
|
-
|
|
6218
6125
|
Extensions and Cursor plugins execute as trusted host code. A namespace
|
|
6219
6126
|
prevents name collisions; it does not sandbox the package or limit its
|
|
6220
6127
|
side effects. Review the package before mounting it.
|
|
@@ -6255,6 +6162,10 @@ bdk info --dir . --json
|
|
|
6255
6162
|
hooks, channels, schedules, subagents, and artifact kinds. The same
|
|
6256
6163
|
data appears under `extensions` in `GET /v1/info`.
|
|
6257
6164
|
|
|
6165
|
+
A mount can also widen what a hosted deployment reaches. `info` shows the
|
|
6166
|
+
egress hosts and secret names each mount adds, and `bdk deploy` names
|
|
6167
|
+
every extension that adds egress before it deploys.
|
|
6168
|
+
|
|
6258
6169
|
Names inside the extension stay short. A tool authored as
|
|
6259
6170
|
`tools/failed_jobs.ts` appears to the mounting agent as
|
|
6260
6171
|
`<namespace>__failed_jobs`. The `__` separator is reserved, so root
|
|
@@ -6305,8 +6216,8 @@ not provide.
|
|
|
6305
6216
|
## Mount a Cursor plugin
|
|
6306
6217
|
|
|
6307
6218
|
`cursorPlugin()` adapts a vendored Cursor or Claude plugin into the same
|
|
6308
|
-
namespace model. Skills, commands, agents, and MCP servers become
|
|
6309
|
-
|
|
6219
|
+
namespace model. Skills, commands, agents, and MCP servers become BDK
|
|
6220
|
+
skills, subagents, and connections.
|
|
6310
6221
|
|
|
6311
6222
|
```ts
|
|
6312
6223
|
// bot/extensions/notion.ts
|
|
@@ -6375,6 +6286,7 @@ export default defineExtension({
|
|
|
6375
6286
|
token: z.string(),
|
|
6376
6287
|
logTailLines: z.number().int().positive().default(200),
|
|
6377
6288
|
}),
|
|
6289
|
+
hosting: () => ({ egressDomains: ["api.buildkite.com"] }),
|
|
6378
6290
|
});
|
|
6379
6291
|
```
|
|
6380
6292
|
|
|
@@ -6383,6 +6295,14 @@ Modules inside the package import this definition and read
|
|
|
6383
6295
|
applied. Publish the built entry point with its slot directories and
|
|
6384
6296
|
prose assets beside it.
|
|
6385
6297
|
|
|
6298
|
+
`hosting` names the hosts the package calls and the secrets it reads
|
|
6299
|
+
from the environment. It receives the validated settings, and the
|
|
6300
|
+
mounting agent's `hosting.egressDomains` and `hosting.secretNames` gain
|
|
6301
|
+
whatever it returns, so a hosted deploy reaches Buildkite without the
|
|
6302
|
+
consumer listing `api.buildkite.com`. Leave out secrets that arrive
|
|
6303
|
+
through settings, such as `token` here; the consumer decides where that
|
|
6304
|
+
value comes from.
|
|
6305
|
+
|
|
6386
6306
|
The [Project layout](/docs/reference/project-layout.md) owns each contribution's
|
|
6387
6307
|
authoring contract. Keep extension instructions and tool descriptions
|
|
6388
6308
|
namespace-neutral because the consumer chooses the final prefix.
|
|
@@ -6410,9 +6330,6 @@ transcript copy, or derived state. Hooks run in the serving process for
|
|
|
6410
6330
|
every session of the agent. They cannot change the turn, the prompt, or
|
|
6411
6331
|
the reply; a handler that throws is logged and skipped.
|
|
6412
6332
|
|
|
6413
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
6414
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
6415
|
-
|
|
6416
6333
|
Treat the event as read-only. Later subscribers see the same object.
|
|
6417
6334
|
That makes hooks safe to add to a production agent, and the wrong
|
|
6418
6335
|
surface for anything that must run before the model or must fail a
|
|
@@ -6735,7 +6652,7 @@ These read-only routes describe the running agent.
|
|
|
6735
6652
|
| Route | Contract |
|
|
6736
6653
|
| --- | --- |
|
|
6737
6654
|
| `GET /v1/info` | Return the discovered model, tools, skills, connections, subagents, channels, schedules, hooks, and diagnostics |
|
|
6738
|
-
| `GET /v1/tools` | Return live server tools and advertised MCP tools as `{ name, title?, source? }`; bind
|
|
6655
|
+
| `GET /v1/tools` | Return live server tools and advertised MCP tools as `{ name, title?, source? }`; bind session-specific listings with `session` or `continuationToken` |
|
|
6739
6656
|
| `GET /v1/tools/:name` | Return one tool's description, execution mode, approval and effect rules, schemas, and source |
|
|
6740
6657
|
| `GET /v1/health` | Return per-agent liveness; no auth |
|
|
6741
6658
|
| `GET /v1/logs?after=N` | Return recent server logs and the next polling cursor |
|
|
@@ -6840,9 +6757,6 @@ Agent instructions form the always-on system prompt and reach the model
|
|
|
6840
6757
|
on every turn. A root agent requires them; a subagent may inline
|
|
6841
6758
|
`instructions` in `agent.ts` instead.
|
|
6842
6759
|
|
|
6843
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
6844
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
6845
|
-
|
|
6846
6760
|
## Authoring forms
|
|
6847
6761
|
|
|
6848
6762
|
| Form | Use it when |
|
|
@@ -6909,9 +6823,6 @@ Source: /docs/reference/playground.md
|
|
|
6909
6823
|
mode). In multi-agent mode, each agent has its own playground, and `/`
|
|
6910
6824
|
lists them all.
|
|
6911
6825
|
|
|
6912
|
-
The `bdk` commands on this page are docs-ahead until `@cursor/bdk` is
|
|
6913
|
-
published; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
6914
|
-
|
|
6915
6826
|
## Playground surfaces
|
|
6916
6827
|
|
|
6917
6828
|
| Surface | What you can do |
|
|
@@ -6965,7 +6876,7 @@ For the capabilities below, identity comes from the path.
|
|
|
6965
6876
|
| --- | --- |
|
|
6966
6877
|
| `tools/approve_pr.ts` | tool `approve_pr` |
|
|
6967
6878
|
| `mcp-connections/linear.ts` | MCP connection `linear` (model + host) |
|
|
6968
|
-
| `host-connections/
|
|
6879
|
+
| `host-connections/inventory.ts` | Host MCP connection `inventory` (host + `mcp oauth` only) |
|
|
6969
6880
|
| `skills/pr-review.md` | skill `pr-review` |
|
|
6970
6881
|
| `subagents/reviewer/` | subagent `reviewer` |
|
|
6971
6882
|
| `extensions/ci.ts` | extension mount `ci`; its contributions become `ci__<name>` |
|
|
@@ -6994,7 +6905,7 @@ my-agent/
|
|
|
6994
6905
|
│ ├── mcp-connections/
|
|
6995
6906
|
│ │ └── linear.ts # tools from external MCP servers
|
|
6996
6907
|
│ ├── host-connections/
|
|
6997
|
-
│ │ └──
|
|
6908
|
+
│ │ └── inventory.ts # host-only MCP tools
|
|
6998
6909
|
│ ├── subagents/
|
|
6999
6910
|
│ │ └── reviewer/
|
|
7000
6911
|
│ │ ├── agent.ts
|
|
@@ -7081,9 +6992,6 @@ import { prompt } from "@cursor/bdk";
|
|
|
7081
6992
|
// or: import { prompt } from "@cursor/bdk/prompt";
|
|
7082
6993
|
```
|
|
7083
6994
|
|
|
7084
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
7085
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
7086
|
-
|
|
7087
6995
|
## Dedented strings
|
|
7088
6996
|
|
|
7089
6997
|
`prompt` returns one string. It removes the common leading whitespace
|
|
@@ -7132,9 +7040,6 @@ reminder is a runtime wake bound to one conversation: "re-check this
|
|
|
7132
7040
|
PR's CI in two hours." Schedules live in the filesystem; reminders are
|
|
7133
7041
|
created by running code.
|
|
7134
7042
|
|
|
7135
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
7136
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
7137
|
-
|
|
7138
7043
|
## Schedules
|
|
7139
7044
|
|
|
7140
7045
|
Cron expressions are standard 5-field, evaluated in UTC with minute
|
|
@@ -7307,9 +7212,6 @@ token, inspect it with a session ID, and follow progress on the NDJSON
|
|
|
7307
7212
|
stream. Chat sessions wait for follow-ups; task sessions run once and
|
|
7308
7213
|
stop.
|
|
7309
7214
|
|
|
7310
|
-
The `bdk` commands on this page are docs-ahead until `@cursor/bdk` is
|
|
7311
|
-
published; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
7312
|
-
|
|
7313
7215
|
## Session contents
|
|
7314
7216
|
|
|
7315
7217
|
Each session combines:
|
|
@@ -7473,9 +7375,6 @@ loads the full content only when the task calls for it. Skills are how
|
|
|
7473
7375
|
you give an agent a multi-step workflow without carrying it in the
|
|
7474
7376
|
always-on [instructions](/docs/reference/instructions.md).
|
|
7475
7377
|
|
|
7476
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
7477
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
7478
|
-
|
|
7479
7378
|
## Authoring forms
|
|
7480
7379
|
|
|
7481
7380
|
Skills support three authoring forms.
|
|
@@ -7553,9 +7452,6 @@ mid-turn. Each one lives under `bot/subagents/<id>/` with a required
|
|
|
7553
7452
|
for a custom prompt. The parent model delegates through the `task` tool,
|
|
7554
7453
|
and the stream records `subagent.called` and `subagent.completed`.
|
|
7555
7454
|
|
|
7556
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
7557
|
-
see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
7558
|
-
|
|
7559
7455
|
```text
|
|
7560
7456
|
bot/subagents/researcher/
|
|
7561
7457
|
├── agent.ts # description (required), model (optional)
|
|
@@ -7621,14 +7517,10 @@ execution flavors: server tools run on the serving host, and
|
|
|
7621
7517
|
agent tools run as scripts where the agent runs. Every server tool can
|
|
7622
7518
|
also be called directly, with no model turn.
|
|
7623
7519
|
|
|
7624
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
7625
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
7626
|
-
|
|
7627
7520
|
## Define a server tool
|
|
7628
7521
|
|
|
7629
7522
|
By default, `execute` runs in-process on the serving host with full
|
|
7630
|
-
access to `process.env` and your `bot/lib/` code.
|
|
7631
|
-
tools as SDK custom tools.
|
|
7523
|
+
access to `process.env` and your `bot/lib/` code.
|
|
7632
7524
|
|
|
7633
7525
|
```ts
|
|
7634
7526
|
// bot/tools/inspect_pr.ts
|
|
@@ -7950,9 +7842,6 @@ what your policy allows. Ownership rules live in
|
|
|
7950
7842
|
the closest policy to a changed file wins, and policies are always read
|
|
7951
7843
|
from the PR's base ref so a PR cannot exempt itself.
|
|
7952
7844
|
|
|
7953
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
7954
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
7955
|
-
|
|
7956
7845
|
## Scaffold
|
|
7957
7846
|
|
|
7958
7847
|
```text
|
|
@@ -8039,6 +7928,66 @@ sessions skip GitHub writes.
|
|
|
8039
7928
|
|
|
8040
7929
|
---
|
|
8041
7930
|
|
|
7931
|
+
Source: /docs/templates/grokbot-agents.md
|
|
7932
|
+
|
|
7933
|
+
# Consult named Grok Bot agents
|
|
7934
|
+
|
|
7935
|
+
The `grokbot-agents` template lets a BDK agent consult the Grok Bot
|
|
7936
|
+
agents you allow. Your BDK conversation stays active while the named
|
|
7937
|
+
agent works, and the delivered reply returns to the same conversation.
|
|
7938
|
+
A request for an unlisted name is refused.
|
|
7939
|
+
|
|
7940
|
+
## Scaffold
|
|
7941
|
+
|
|
7942
|
+
```bash
|
|
7943
|
+
bdk init ./grokbot-consultant --template grokbot-agents
|
|
7944
|
+
```
|
|
7945
|
+
|
|
7946
|
+
`init` asks for the names shown in the Grok Bot app. Pass them directly
|
|
7947
|
+
in a script:
|
|
7948
|
+
|
|
7949
|
+
```bash
|
|
7950
|
+
bdk init ./grokbot-consultant --template grokbot-agents \
|
|
7951
|
+
--var agents="Plan Keeper,Chief of Staff"
|
|
7952
|
+
```
|
|
7953
|
+
|
|
7954
|
+
## Run
|
|
7955
|
+
|
|
7956
|
+
Sign in, validate the scaffold, and start the project:
|
|
7957
|
+
|
|
7958
|
+
```bash
|
|
7959
|
+
cd grokbot-consultant
|
|
7960
|
+
bdk login
|
|
7961
|
+
bdk validate
|
|
7962
|
+
bdk dev
|
|
7963
|
+
```
|
|
7964
|
+
|
|
7965
|
+
Open the playground and ask the agent to consult one of the names you
|
|
7966
|
+
entered. The delivered reply returns to the same conversation.
|
|
7967
|
+
|
|
7968
|
+
## Choose who the agent can consult
|
|
7969
|
+
|
|
7970
|
+
Edit `bot/extensions/grokbot.ts` to change the allowlist. The template
|
|
7971
|
+
supports descriptions that help the model choose the right specialist
|
|
7972
|
+
when several names are available.
|
|
7973
|
+
|
|
7974
|
+
When someone asks which agents are available, the template lists them
|
|
7975
|
+
without sending a message. A consultation sends one self-contained
|
|
7976
|
+
question and reports the reply. Long-running consultations can be
|
|
7977
|
+
checked later, and an active turn can be interrupted when the task
|
|
7978
|
+
changes.
|
|
7979
|
+
|
|
7980
|
+
See [Grok Bot agents](/docs/guides/grokbot-agents.md) for the extension's
|
|
7981
|
+
conversation and approval boundaries.
|
|
7982
|
+
|
|
7983
|
+
## What to edit
|
|
7984
|
+
|
|
7985
|
+
- `bot/extensions/grokbot.ts`: allowed agent names
|
|
7986
|
+
- `bot/instructions.md`: when to consult them
|
|
7987
|
+
- `evals/grokbot-agents.eval.ts`: list-without-sending smoke case
|
|
7988
|
+
|
|
7989
|
+
---
|
|
7990
|
+
|
|
8042
7991
|
Source: /docs/templates/security-reviewer.md
|
|
8043
7992
|
|
|
8044
7993
|
# Review pull requests for exploitable bugs
|
|
@@ -8049,9 +7998,6 @@ RCE. Style nits stay out.
|
|
|
8049
7998
|
|
|
8050
7999
|
This template is one model turn: read the diff, then post one comment.
|
|
8051
8000
|
|
|
8052
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
8053
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
8054
|
-
|
|
8055
8001
|
## Scaffold
|
|
8056
8002
|
|
|
8057
8003
|
```text
|
|
@@ -8134,15 +8080,12 @@ Source: /docs/templates/thermo-quality-review.md
|
|
|
8134
8080
|
# Review pull requests for structural code quality
|
|
8135
8081
|
|
|
8136
8082
|
This agent reads a pull request diff and posts one review comment. It
|
|
8137
|
-
reports missing abstractions,
|
|
8138
|
-
leaking into shared paths, and files pushed past 1,000 lines. Style
|
|
8139
|
-
|
|
8083
|
+
reports missing abstractions, deeply nested control flow, feature logic
|
|
8084
|
+
leaking into shared paths, and files pushed past 1,000 lines. Style nits
|
|
8085
|
+
and behavior disputes stay out.
|
|
8140
8086
|
|
|
8141
8087
|
This template is one model turn: read the diff, then post one comment.
|
|
8142
8088
|
|
|
8143
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
8144
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
8145
|
-
|
|
8146
8089
|
## Scaffold
|
|
8147
8090
|
|
|
8148
8091
|
```text
|
|
@@ -8217,14 +8160,12 @@ Source: /docs/templates/thermo-review.md
|
|
|
8217
8160
|
# Review pull requests for bugs and breakage
|
|
8218
8161
|
|
|
8219
8162
|
This agent reads a pull request diff and posts one review comment. It
|
|
8220
|
-
reports bugs, breaking side effects,
|
|
8221
|
-
|
|
8163
|
+
reports bugs, breaking side effects, developer workflow failures, and
|
|
8164
|
+
unintended feature exposure in added or modified code. Style nits stay
|
|
8165
|
+
out.
|
|
8222
8166
|
|
|
8223
8167
|
This template is one model turn: read the diff, then post one comment.
|
|
8224
8168
|
|
|
8225
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
8226
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
8227
|
-
|
|
8228
8169
|
## Scaffold
|
|
8229
8170
|
|
|
8230
8171
|
```text
|
|
@@ -8305,9 +8246,6 @@ duplicate when titles match.
|
|
|
8305
8246
|
File the ticket however you already do. This template starts after the
|
|
8306
8247
|
ticket exists.
|
|
8307
8248
|
|
|
8308
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
8309
|
-
until publication; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
8310
|
-
|
|
8311
8249
|
## Scaffold
|
|
8312
8250
|
|
|
8313
8251
|
```text
|
|
@@ -8315,6 +8253,8 @@ bdk init ./triage-agent --template triage-linear
|
|
|
8315
8253
|
bdk init ./triage-agent --template triage-jira
|
|
8316
8254
|
```
|
|
8317
8255
|
|
|
8256
|
+
`bdk init --template triage` selects `triage-linear`.
|
|
8257
|
+
|
|
8318
8258
|
Pick the tracker you use. The agent is the same. The overlay is the
|
|
8319
8259
|
connection.
|
|
8320
8260
|
|
|
@@ -8407,11 +8347,7 @@ Start with three checks:
|
|
|
8407
8347
|
`bdk info --dir . --json`.
|
|
8408
8348
|
3. Reproduce once, then inspect the serve log or session trace.
|
|
8409
8349
|
|
|
8410
|
-
|
|
8411
|
-
published; see [BDK package availability](/docs/index.md#bdk-package-availability).
|
|
8412
|
-
|
|
8413
|
-
Match the visible symptom below. The `bdk` binary ships with
|
|
8414
|
-
`@cursor/bdk` when the package publishes.
|
|
8350
|
+
Match the visible symptom below.
|
|
8415
8351
|
|
|
8416
8352
|
## Serve or the playground will not work
|
|
8417
8353
|
|
|
@@ -8445,9 +8381,9 @@ Match the visible symptom below. The `bdk` binary ships with
|
|
|
8445
8381
|
|
|
8446
8382
|
| What you see | What to do |
|
|
8447
8383
|
| --- | --- |
|
|
8448
|
-
| `401` outside
|
|
8384
|
+
| `401` outside local development | Send the configured bearer token, alias token, or channel credential. Default custom routes admit direct loopback only. |
|
|
8449
8385
|
| `403` on a stream or follow-up | Use the same authenticated principal that created the session. |
|
|
8450
|
-
| A
|
|
8386
|
+
| A custom channel route fails through a tunnel or LAN | Protect the shared host with `--bearer-token` or authored channel auth. Use `--allow-anonymous` only behind a proxy that authenticates every caller. |
|
|
8451
8387
|
| `409` on a follow-up | Refresh the rotating `continuationToken` and confirm the target is a chat session; task sessions do not accept follow-ups. |
|
|
8452
8388
|
| `409 session_busy` from `call --session` | Wait for the turn, omit `--session`, or mark a read-only tool with `effect: "read"` so it can run concurrently. |
|
|
8453
8389
|
| A custom route fails schema type-checking | Add the required Zod `querySchema` for `GET`, or `bodySchema` for `POST`, `PUT`, and `PATCH`. See [Channels](/docs/reference/channels.md). |
|