@cursor/bdk 0.2.4 → 0.2.6
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 +17 -11
- package/dist/channels/github/github-channel.d.ts +4 -4
- package/dist/channels/github/github-channel.js +5 -5
- package/dist/channels/slack/eval-directive.js +1 -1
- package/dist/docs/404.html +2 -2
- package/dist/docs/assets/{app.4kQ8Db_q.js → app.CJLKDVza.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.Bq-pxRXm.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.DY1RwB8Q.js → VPLocalSearchBox.BW9mrQmq.js} +1 -1
- package/dist/docs/assets/chunks/{arc.CxE_fSPK.js → arc.D8ZOvM1m.js} +1 -1
- package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.CPX426ui.js → architectureDiagram-Q4EWVU46.CXEKhLW-.js} +1 -1
- package/dist/docs/assets/chunks/{baseUniq.CB52JrKG.js → baseUniq.BJkVKblr.js} +1 -1
- package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.J0cNaQCL.js → blockDiagram-DXYQGD6D.DQDbHxor.js} +1 -1
- package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.DJn3vEGT.js → c4Diagram-AHTNJAMY.ByMD6LYM.js} +1 -1
- package/dist/docs/assets/chunks/channel.DCU8W1RP.js +1 -0
- package/dist/docs/assets/chunks/{chunk-4BX2VUAB.Dao618F6.js → chunk-4BX2VUAB.Dtq1aVI9.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-4TB4RGXK.QW8Rhjai.js → chunk-4TB4RGXK.BL_XrkoQ.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-55IACEB6.DfRLLKF_.js → chunk-55IACEB6.BDPXu94_.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-EDXVE4YY.CIV2ApKQ.js → chunk-EDXVE4YY.DhGOQj4k.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-FMBD7UC4.BEheSuxp.js → chunk-FMBD7UC4.DSF5nr8v.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-OYMX7WX6.CUN88ENB.js → chunk-OYMX7WX6.Day7wayw.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-QZHKN3VN.CgqCs8b_.js → chunk-QZHKN3VN.CpBEC0zA.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-YZCP3GAM.iCH0nnTJ.js → chunk-YZCP3GAM.X_7rY1rx.js} +1 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.DwpXsM06.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.DwpXsM06.js +1 -0
- package/dist/docs/assets/chunks/clone.DH6Mx2zB.js +1 -0
- package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.BLcUxhWE.js → cose-bilkent-S5V4N54A.BVRmi2ko.js} +1 -1
- package/dist/docs/assets/chunks/{dagre-KV5264BT.Ep7LofOm.js → dagre-KV5264BT.Dei9oslB.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-5BDNPKRD.Bzf4GSQ4.js → diagram-5BDNPKRD._M-efGt7.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.DD6Jh-eM.js → diagram-G4DWMVQ6.D1Vmhfsj.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-MMDJMWI5.oOIl8bWd.js → diagram-MMDJMWI5.cE1bmvAC.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-TYMM5635.DHs85Ade.js → diagram-TYMM5635.DkXAfznP.js} +1 -1
- package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.BIb5ghCk.js → erDiagram-SMLLAGMA.DH_pSwPg.js} +1 -1
- package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.DV4paY9k.js → flowDiagram-DWJPFMVM.kAWVN9j1.js} +1 -1
- package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.AyEKA6_v.js → ganttDiagram-T4ZO3ILL.8r0w49-p.js} +1 -1
- package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.BltiCDFo.js → gitGraphDiagram-UUTBAWPF.BDa7Bi1i.js} +1 -1
- package/dist/docs/assets/chunks/{graph.DzuEYGdC.js → graph.BMPXHz_B.js} +1 -1
- package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.BV2l981J.js → infoDiagram-42DDH7IO.BmlcqewS.js} +1 -1
- package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.BA4Izf-m.js → ishikawaDiagram-UXIWVN3A.CVSEQSul.js} +1 -1
- package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.DjaFbFS3.js → journeyDiagram-VCZTEJTY.BpeWJ5n-.js} +1 -1
- package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.CfTFieDs.js → kanban-definition-6JOO6SKY.DHbDXuxB.js} +1 -1
- package/dist/docs/assets/chunks/{layout.DzfWqTBV.js → layout.CzrCDgkP.js} +1 -1
- package/dist/docs/assets/chunks/{linear.BO6mpulV.js → linear.HwBsflwN.js} +1 -1
- package/dist/docs/assets/chunks/{min.BGgTadgT.js → min.DqGHolT3.js} +1 -1
- package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.DPuIXVWY.js → mindmap-definition-QFDTVHPH.ZYGlOawh.js} +1 -1
- package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.BOnl3bBg.js → pieDiagram-DEJITSTG.C2KRXlNR.js} +1 -1
- package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.DNB6Ckdc.js → quadrantDiagram-34T5L4WZ.CHj3Qefp.js} +1 -1
- package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.D5-Qo7vb.js → requirementDiagram-MS252O5E.B1L4Tf7k.js} +1 -1
- package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.8t65cesf.js → sankeyDiagram-XADWPNL6.dNR2yi1B.js} +1 -1
- package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.CaG07BdS.js → sequenceDiagram-FGHM5R23.BrvQ3C6m.js} +1 -1
- package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.TKOweTB6.js → stateDiagram-FHFEXIEX.BtehEykA.js} +1 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.kzD0-U89.js +1 -0
- package/dist/docs/assets/chunks/{theme.Dx-JhpTB.js → theme.BDHBZUkP.js} +2 -2
- package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.fE53zQ2s.js → timeline-definition-GMOUNBTQ.Bn7nhqEN.js} +1 -1
- package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.DJsZZaJg.js → vennDiagram-DHZGUBPP.DKhc38sz.js} +1 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.DOXQ0w8J.js +162 -0
- package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.CMZ-Ru_t.js → wardleyDiagram-NUSXRM2D.Bbq5B2Ic.js} +1 -1
- package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.XXrhBc7a.js → xychartDiagram-5P7HB3ND.B77HE1K8.js} +1 -1
- package/dist/docs/assets/{deployment.md.UhnJIMr-.js → deployment.md.BdqTiGdc.js} +4 -4
- package/dist/docs/assets/{deployment.md.UhnJIMr-.lean.js → deployment.md.BdqTiGdc.lean.js} +1 -1
- package/dist/docs/assets/{evals.md.CCAtNcuL.js → evals.md.C851kViu.js} +3 -3
- package/dist/docs/assets/{evals.md.CCAtNcuL.lean.js → evals.md.C851kViu.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.CRcgmjDb.js → guides_jev.md.D7XH4JH3.js} +2 -2
- package/dist/docs/assets/{guides_jev.md.CRcgmjDb.lean.js → guides_jev.md.D7XH4JH3.lean.js} +1 -1
- 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.Cj5uBKp4.js → reference_agent-config.md.DrtLxWgR.js} +4 -4
- package/dist/docs/assets/{reference_agent-config.md.Cj5uBKp4.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.pa2tN-e4.js → reference_extensions.md.OUacPetl.js} +3 -3
- package/dist/docs/assets/{reference_extensions.md.pa2tN-e4.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.ClkMoQsV.js} +2 -2
- package/dist/docs/assets/{reference_skills.md.Cy00QMKS.lean.js → reference_skills.md.ClkMoQsV.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.CvmABtia.js} +2 -2
- 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.Gh6EF9Us.js} +3 -2
- package/dist/docs/assets/{templates_security-reviewer.md.DXMmKl_o.lean.js → templates_security-reviewer.md.Gh6EF9Us.lean.js} +1 -1
- package/dist/docs/assets/{templates_thermo-quality-review.md.Dg1p1MsG.js → templates_thermo-quality-review.md.B77UyTrX.js} +2 -2
- package/dist/docs/assets/{templates_thermo-quality-review.md.Dg1p1MsG.lean.js → templates_thermo-quality-review.md.B77UyTrX.lean.js} +1 -1
- package/dist/docs/assets/{templates_thermo-review.md.Dlylkowj.js → templates_thermo-review.md.DRJ7mC5U.js} +2 -2
- package/dist/docs/assets/{templates_thermo-review.md.Dlylkowj.lean.js → templates_thermo-review.md.DRJ7mC5U.lean.js} +1 -1
- package/dist/docs/assets/templates_triage.md.CNN6b0JZ.js +9 -0
- package/dist/docs/assets/{templates_triage.md.CvJyx81N.lean.js → templates_triage.md.CNN6b0JZ.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 +38 -38
- package/dist/docs/deployment.md +2 -9
- package/dist/docs/evals.html +37 -37
- package/dist/docs/evals.md +2 -5
- 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 +36 -36
- package/dist/docs/guides/jev.md +0 -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 +153 -234
- 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 +37 -37
- package/dist/docs/reference/extensions.md +2 -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 +36 -36
- 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 +37 -37
- package/dist/docs/templates/agentic-owners.md +2 -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 +38 -37
- package/dist/docs/templates/security-reviewer.md +7 -11
- package/dist/docs/templates/thermo-quality-review.html +37 -37
- package/dist/docs/templates/thermo-quality-review.md +5 -8
- package/dist/docs/templates/thermo-review.html +37 -37
- package/dist/docs/templates/thermo-review.md +5 -7
- package/dist/docs/templates/triage.html +39 -39
- package/dist/docs/templates/triage.md +8 -4
- package/dist/docs/troubleshooting.html +36 -36
- package/dist/docs/troubleshooting.md +3 -7
- package/dist/evals.d.ts +2 -2
- package/dist/internal/cli-ax.d.ts.map +1 -1
- package/dist/internal/cli-ax.js +14 -7
- package/dist/internal/eval-runner.js +7 -4
- package/dist/internal/init-interview.d.ts +0 -1
- package/dist/internal/init-interview.d.ts.map +1 -1
- package/dist/internal/init-interview.js +15 -24
- package/dist/internal/legacy-command-guard.d.ts +4 -1
- package/dist/internal/legacy-command-guard.d.ts.map +1 -1
- package/dist/internal/legacy-command-guard.js +11 -2
- package/dist/internal/platform-timers.d.ts +8 -1
- package/dist/internal/platform-timers.d.ts.map +1 -1
- package/dist/internal/platform-timers.js +10 -2
- package/dist/internal/reminder-control-plane-protocol.d.ts +8 -1
- package/dist/internal/reminder-control-plane-protocol.d.ts.map +1 -1
- package/dist/internal/reminder-runner.d.ts +5 -0
- package/dist/internal/reminder-runner.d.ts.map +1 -1
- package/dist/internal/reminder-runner.js +27 -1
- package/dist/internal/resolve-prod-target.d.ts +3 -0
- package/dist/internal/resolve-prod-target.d.ts.map +1 -1
- package/dist/internal/resolve-prod-target.js +2 -1
- package/dist/internal/run-client.d.ts +10 -1
- package/dist/internal/run-client.d.ts.map +1 -1
- package/dist/internal/run-client.js +152 -51
- package/dist/internal/server.d.ts +6 -0
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +20 -8
- package/dist/internal/session-links.d.ts.map +1 -1
- package/dist/internal/session-links.js +8 -7
- package/dist/internal/sessions-client.d.ts +1 -0
- package/dist/internal/sessions-client.d.ts.map +1 -1
- package/dist/internal/sessions-client.js +2 -0
- package/docs/README.md +9 -16
- package/docs/building-with-agents.md +0 -3
- package/docs/deployment.md +2 -9
- package/docs/evals.md +2 -5
- 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 +0 -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 +2 -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 +2 -3
- package/docs/templates/grokbot-agents.md +60 -0
- package/docs/templates/security-reviewer.md +7 -11
- package/docs/templates/thermo-quality-review.md +5 -8
- package/docs/templates/thermo-review.md +5 -7
- package/docs/templates/triage.md +8 -4
- package/docs/troubleshooting.md +3 -7
- package/package.json +2 -2
- package/templates/agentic-owners/README.md +0 -3
- package/templates/agents-md/README.md +4 -3
- package/templates/agents-md/evals/agents.eval.ts +1 -0
- package/templates/code-wiki/README.md +0 -3
- package/templates/code-wiki/bot/instructions.md +4 -4
- 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 +5 -6
- package/templates/security-reviewer/bot/tools/post_findings.ts +8 -8
- package/templates/thermo-quality-review/README.md +0 -3
- package/templates/thermo-quality-review/bot/tools/post_findings.ts +8 -8
- package/templates/thermo-review/README.md +0 -3
- package/templates/thermo-review/bot/tools/post_findings.ts +8 -8
- 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.CvuAJ0My.js +0 -1
- package/dist/docs/assets/chunks/channel.BoNycAoN.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.C4x07Gkj.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.C4x07Gkj.js +0 -1
- package/dist/docs/assets/chunks/clone.Db22cH_-.js +0 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.CuqmyQc4.js +0 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.844kyrjl.js +0 -162
- 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/templates_triage.md.CvJyx81N.js +0 -9
- package/dist/docs/assets/troubleshooting.md.Cw5PKa3t.js +0 -1
- /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/assets/{templates_agentic-owners.md.BykUiZ8j.lean.js → templates_agentic-owners.md.CvmABtia.lean.js} +0 -0
|
@@ -24,6 +24,12 @@ export interface StartServerInternalOptions {
|
|
|
24
24
|
sessionRunLog?: ReturnType<typeof selectSessionRunLogStore>;
|
|
25
25
|
/** Test seam: persist the engine start.log tee without a live store. */
|
|
26
26
|
startLogStore?: ReturnType<typeof selectStartLogStore>;
|
|
27
|
+
/**
|
|
28
|
+
* `bdk eval` server. Cases drive seeded sessions, so live SCM and deployment
|
|
29
|
+
* ingest stay off, and a Cursor account GitHub credential that cannot be
|
|
30
|
+
* minted fails only the calls that need it.
|
|
31
|
+
*/
|
|
32
|
+
evals?: boolean;
|
|
27
33
|
}
|
|
28
34
|
/**
|
|
29
35
|
* Start an HTTP server hosting one or more agents. A single agent with an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/internal/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiDH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAQhB,YAAY,EACb,MAAM,aAAa,CAAC;AA2FrB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAgDpE,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,iBAAiB,CAAC;AAUpE,OAAO,EAEL,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAsB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAW/E,8EAA8E;AAC9E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;CACvB;AAuCD,6EAA6E;AAC7E,MAAM,WAAW,0BAA0B;IACzC,oEAAoE;IACpE,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,4EAA4E;IAC5E,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,yEAAyE;IACzE,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;IAC5D,wEAAwE;IACxE,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/internal/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiDH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAQhB,YAAY,EACb,MAAM,aAAa,CAAC;AA2FrB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAgDpE,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,iBAAiB,CAAC;AAUpE,OAAO,EAEL,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAsB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAW/E,8EAA8E;AAC9E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;CACvB;AAuCD,6EAA6E;AAC7E,MAAM,WAAW,0BAA0B;IACzC,oEAAoE;IACpE,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,4EAA4E;IAC5E,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,yEAAyE;IACzE,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;IAC5D,wEAAwE;IACxE,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACvD;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,UAAU,EAAE,EACpB,OAAO,GAAE,YAAY,GAAG,0BAA+B,GACtD,OAAO,CAAC,gBAAgB,CAAC,CAwmC3B"}
|
package/dist/internal/server.js
CHANGED
|
@@ -177,7 +177,9 @@ export function startServer(mounts_1) {
|
|
|
177
177
|
explicitRepos: (_o = (_b = options.cursorEvents) === null || _b === void 0 ? void 0 : _b.repos) !== null && _o !== void 0 ? _o : [],
|
|
178
178
|
targets: cursorOriginTargets,
|
|
179
179
|
});
|
|
180
|
-
const effectiveCursorEvents =
|
|
180
|
+
const effectiveCursorEvents = options.evals === true
|
|
181
|
+
? undefined
|
|
182
|
+
: ((_p = cursorGithubConfig.cursorEvents) !== null && _p !== void 0 ? _p : (cursorOriginScope === undefined ? undefined : { repos: [...cursorOriginScope.repos] }));
|
|
181
183
|
// One resolution for every Cursor credential consumer (SDK runner, account
|
|
182
184
|
// MCP bridge, SCM event relay, GitHub credentials): explicit option →
|
|
183
185
|
// CURSOR_API_KEY → CURSOR_API_KEY_FILE (or the hosted default path) →
|
|
@@ -788,7 +790,15 @@ export function startServer(mounts_1) {
|
|
|
788
790
|
validateMountConnectionsConfig(Object.assign(Object.assign({ slug,
|
|
789
791
|
project, accountRefs: accountRefsBySlug.get(slug) }, (options.publicUrl === undefined ? {} : { publicUrl: options.publicUrl })), { cloudToolsBridge: options.cloudToolsUrl !== undefined }));
|
|
790
792
|
}
|
|
791
|
-
|
|
793
|
+
try {
|
|
794
|
+
yield cursorGithubCredentials === null || cursorGithubCredentials === void 0 ? void 0 : cursorGithubCredentials.start();
|
|
795
|
+
}
|
|
796
|
+
catch (error) {
|
|
797
|
+
if (options.evals !== true) {
|
|
798
|
+
throw error;
|
|
799
|
+
}
|
|
800
|
+
logger(`[agent-sdk] GitHub auth: no Cursor account credential (${error instanceof Error ? error.message : String(error)}); GitHub calls from eval sessions will fail`);
|
|
801
|
+
}
|
|
792
802
|
// Cursor SCM events: v1 stays on the engine poll. v2 ingest is local-CP
|
|
793
803
|
// only — hosted `--no-control-plane` skips the July poll (hosted CP wakes).
|
|
794
804
|
const routeContinuation = localControlPlaneRoute(runtimes);
|
|
@@ -820,12 +830,14 @@ export function startServer(mounts_1) {
|
|
|
820
830
|
}
|
|
821
831
|
// Cursor deployment-events relay: automatic when a mounted agent authored
|
|
822
832
|
// `deploymentsChannel({ ... })`.
|
|
823
|
-
const cursorDeploymentRelay =
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
833
|
+
const cursorDeploymentRelay = options.evals === true
|
|
834
|
+
? undefined
|
|
835
|
+
: startCursorDeploymentRelay({
|
|
836
|
+
options,
|
|
837
|
+
runtimes,
|
|
838
|
+
accountKey,
|
|
839
|
+
logger,
|
|
840
|
+
});
|
|
829
841
|
// Trust --public-url's host when a reverse proxy rewrites Host.
|
|
830
842
|
const browserOriginGuard = browserOriginGuardOptionsForPublicUrl(options.publicUrl);
|
|
831
843
|
const server = createServer((req, res) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-links.d.ts","sourceRoot":"","sources":["../../src/internal/session-links.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-links.d.ts","sourceRoot":"","sources":["../../src/internal/session-links.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAElE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC,CAAC;AAKF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,GAAG,oBAAoB,CAKpF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseGitHubPrContinuationKey } from "../channels/github/github-channel.js";
|
|
1
2
|
import { parseGitHubPrRef } from "../channels/github/replay.js";
|
|
2
3
|
import { slackThreadPermalink } from "../channels/slack/links.js";
|
|
3
4
|
import { extractGithubPrRef } from "../channels/slack/pr-ref.js";
|
|
@@ -40,17 +41,17 @@ function slackUrl(record) {
|
|
|
40
41
|
})) !== null && _j !== void 0 ? _j : undefined);
|
|
41
42
|
}
|
|
42
43
|
function githubUrl(record) {
|
|
43
|
-
var _a
|
|
44
|
-
var
|
|
45
|
-
const fromTitle = extractGithubPrRef((
|
|
44
|
+
var _a;
|
|
45
|
+
var _b, _c;
|
|
46
|
+
const fromTitle = extractGithubPrRef((_b = record.title) !== null && _b !== void 0 ? _b : "");
|
|
46
47
|
if (fromTitle !== undefined) {
|
|
47
48
|
return fromTitle.url;
|
|
48
49
|
}
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
51
|
-
return
|
|
50
|
+
const fromKey = parseGitHubPrContinuationKey((_c = record.continuationKey) !== null && _c !== void 0 ? _c : "");
|
|
51
|
+
if (fromKey !== undefined) {
|
|
52
|
+
return `https://github.com/${fromKey.owner}/${fromKey.repo}/pull/${fromKey.number}`;
|
|
52
53
|
}
|
|
53
|
-
const repos = (
|
|
54
|
+
const repos = (_a = record.cloudOverride) === null || _a === void 0 ? void 0 : _a.repos;
|
|
54
55
|
if (repos === undefined) {
|
|
55
56
|
return undefined;
|
|
56
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions-client.d.ts","sourceRoot":"","sources":["../../src/internal/sessions-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEnF,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE7E,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAEpF;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CA8B5F;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sessions-client.d.ts","sourceRoot":"","sources":["../../src/internal/sessions-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEnF,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE7E,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAEpF;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CA8B5F;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAmE1B;AAkCD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAClC,cAAc,GAAG,SAAS,CAQ5B;AAED,+DAA+D;AAC/D,wBAAsB,wBAAwB,CAAC,IAAI,EAAE;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAO9B;AAED,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAIzE;AAED,4EAA4E;AAC5E,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAAE,GACvC,MAAM,CAgBR"}
|
|
@@ -60,6 +60,7 @@ export function fetchSessionEvents(args) {
|
|
|
60
60
|
try {
|
|
61
61
|
const jsonResp = yield fetchImpl(`${baseUrl}${path}?format=json`, {
|
|
62
62
|
headers: mergeRequestHeaders(args.auth),
|
|
63
|
+
signal: args.signal,
|
|
63
64
|
});
|
|
64
65
|
if (jsonResp.ok) {
|
|
65
66
|
const body = (yield jsonResp.json());
|
|
@@ -83,6 +84,7 @@ export function fetchSessionEvents(args) {
|
|
|
83
84
|
try {
|
|
84
85
|
const resp = yield fetchImpl(`${baseUrl}${path}`, {
|
|
85
86
|
headers: mergeRequestHeaders(args.auth),
|
|
87
|
+
signal: args.signal,
|
|
86
88
|
});
|
|
87
89
|
if (resp.status === 404) {
|
|
88
90
|
throw new Error(`Session ${args.sessionId} not found.`);
|
package/docs/README.md
CHANGED
|
@@ -5,9 +5,9 @@ description: "Build, test, and deploy BDK bots and agents as code on Cursor's ag
|
|
|
5
5
|
|
|
6
6
|
# Grok Bot Development Kit (BDK)
|
|
7
7
|
|
|
8
|
-
The Grok Bot Development Kit (BDK)
|
|
9
|
-
|
|
10
|
-
Approval Bot.
|
|
8
|
+
The Grok Bot Development Kit (BDK) lets you define, test, and deploy agents
|
|
9
|
+
as code. It uses the Cursor SDK harness that powers Bugbot, Security Review,
|
|
10
|
+
and Approval Bot.
|
|
11
11
|
|
|
12
12
|
A BDK project is a folder of Markdown and TypeScript. Combine deterministic
|
|
13
13
|
code with model judgment, then make the bot or agent available in source
|
|
@@ -47,17 +47,9 @@ sandboxing on Cursor infrastructure or on your own host.
|
|
|
47
47
|
|
|
48
48
|

|
|
49
49
|
|
|
50
|
-
## BDK package availability
|
|
51
|
-
|
|
52
|
-
BDK uses the `@cursor/bdk` package and `bdk` binary. The package isn't on npm
|
|
53
|
-
yet, so its install commands won't run until publication.
|
|
54
|
-
|
|
55
50
|
## Get started
|
|
56
51
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
> **Docs ahead:** `@cursor/bdk` is not on npm yet. The package will install
|
|
60
|
-
> the `bdk` binary; this block will not run until it publishes.
|
|
52
|
+
Install `@cursor/bdk`, then start with `bdk init` and `bdk dev`.
|
|
61
53
|
|
|
62
54
|
```text
|
|
63
55
|
npm install --global @cursor/bdk
|
|
@@ -82,7 +74,7 @@ my-bot/
|
|
|
82
74
|
│ ├── mcp-connections/
|
|
83
75
|
│ │ └── linear.ts # tools from an MCP server
|
|
84
76
|
│ ├── host-connections/
|
|
85
|
-
│ │ └──
|
|
77
|
+
│ │ └── inventory.ts # host-only MCP tools
|
|
86
78
|
│ ├── subagents/
|
|
87
79
|
│ │ └── verifier/
|
|
88
80
|
│ │ ├── agent.ts
|
|
@@ -102,10 +94,11 @@ Describe your bot or agent in Cursor, or edit the files yourself.
|
|
|
102
94
|
- [Build your first PR reviewer](./quickstart.md): a working GitHub
|
|
103
95
|
reviewer, one step at a time.
|
|
104
96
|
|
|
105
|
-
- Start from a template
|
|
97
|
+
- Start from a template:
|
|
98
|
+
[Grok Bot agents](./templates/grokbot-agents.md),
|
|
106
99
|
[security reviewer](./templates/security-reviewer.md),
|
|
107
|
-
[
|
|
108
|
-
[
|
|
100
|
+
[Thermo review](./templates/thermo-review.md),
|
|
101
|
+
[Thermo quality review](./templates/thermo-quality-review.md),
|
|
109
102
|
[owners-policy approver](./templates/agentic-owners.md),
|
|
110
103
|
[issue triager](./templates/triage.md).
|
|
111
104
|
|
|
@@ -10,9 +10,6 @@ a coding agent can create the project, exercise its tools, run a real
|
|
|
10
10
|
turn, and inspect the result. You approve the plan and side effects
|
|
11
11
|
while the coding agent owns the implementation loop.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
This page covers a coding agent working inside a checkout. To let a
|
|
17
14
|
running agent propose changes to its own source, use the separate
|
|
18
15
|
[self-improvement extension](./guides/improve.md).
|
package/docs/deployment.md
CHANGED
|
@@ -10,10 +10,6 @@ Cursor-managed hosting builds the selected Git ref and operates the
|
|
|
10
10
|
runtime; self-hosting gives you control of the network, process, and
|
|
11
11
|
filesystem.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands in these examples are
|
|
14
|
-
docs-ahead until publication; see
|
|
15
|
-
[BDK package availability](/#bdk-package-availability).
|
|
16
|
-
|
|
17
13
|
## Choose managed hosting or self-hosting
|
|
18
14
|
|
|
19
15
|
| Option | Use it when | You manage |
|
|
@@ -30,9 +26,6 @@ API.
|
|
|
30
26
|
Commit and push the exact ref you want to run, then sign in, validate,
|
|
31
27
|
and deploy. The preferred CLI is `bdk`.
|
|
32
28
|
|
|
33
|
-
> **Docs ahead:** `@cursor/bdk` is not on npm yet. This block shows future
|
|
34
|
-
> CLI syntax and will not run until the package publishes.
|
|
35
|
-
|
|
36
29
|
```text
|
|
37
30
|
cd my-agent
|
|
38
31
|
bdk login
|
|
@@ -41,7 +34,7 @@ bdk validate
|
|
|
41
34
|
bdk deploy
|
|
42
35
|
```
|
|
43
36
|
|
|
44
|
-
The deploy command waits until the
|
|
37
|
+
The deploy command waits until the runtime is running and prints the stable
|
|
45
38
|
deployment URL.
|
|
46
39
|
|
|
47
40
|
`deploy` reads from Git; it does not upload your working tree. Inside a
|
|
@@ -184,7 +177,7 @@ multi-agent deployment, stop, and delete behavior.
|
|
|
184
177
|
|
|
185
178
|
Managed hosting persists framework-owned session, KV, and file state
|
|
186
179
|
across normal runtime replacements. Files written elsewhere on the
|
|
187
|
-
|
|
180
|
+
runtime's local filesystem are disposable; use `ctx.host.kv` or
|
|
188
181
|
`ctx.host.files` for durable application state.
|
|
189
182
|
|
|
190
183
|
Parked approvals and in-memory reminder handlers do not survive a
|
package/docs/evals.md
CHANGED
|
@@ -13,9 +13,6 @@ not to discover what the prompt should do.
|
|
|
13
13
|
Evals run real model turns and real tools. Guard external writes before
|
|
14
14
|
running a suite against an agent that can post, merge, or deploy.
|
|
15
15
|
|
|
16
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
17
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
18
|
-
|
|
19
16
|
## Protect a tool decision
|
|
20
17
|
|
|
21
18
|
This smoke case asks for a PR verdict, requires the read-only inspection
|
|
@@ -197,8 +194,8 @@ Run `--tag smoke` on pull requests and the full suite on a schedule when
|
|
|
197
194
|
cost or latency makes every-push coverage impractical. Use soft scores
|
|
198
195
|
for a new probabilistic benchmark until its threshold is trustworthy.
|
|
199
196
|
|
|
200
|
-
The [CLI reference](./reference/cli.md#eval) covers selectors,
|
|
201
|
-
|
|
197
|
+
The [CLI reference](./reference/cli.md#eval) covers selectors,
|
|
198
|
+
server-side batches, exit codes, and JSON output.
|
|
202
199
|
|
|
203
200
|
## Keep side effects out of eval sessions
|
|
204
201
|
|
|
@@ -10,9 +10,6 @@ help. The specialist keeps its own instructions, tools, and session,
|
|
|
10
10
|
while the caller decides when to delegate and returns the answer to the
|
|
11
11
|
user. Co-host both projects under one `bdk` process.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
## Delegate a question to a specialist
|
|
17
14
|
|
|
18
15
|
Ask the concierge about the weather and it hands the question to the
|
package/docs/guides/bitbucket.md
CHANGED
|
@@ -10,9 +10,6 @@ current pull-request or commit state, and writes the result back to
|
|
|
10
10
|
Bitbucket. `bitbucketChannel()` gives the same hooks and normalized
|
|
11
11
|
payloads on Bitbucket Cloud and Data Center.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
## Review a pull request
|
|
17
14
|
|
|
18
15
|
Creating a pull request, or pushing new commits to a Data Center pull
|
|
@@ -13,10 +13,6 @@ same branch.
|
|
|
13
13
|
|
|
14
14
|
## Mount it
|
|
15
15
|
|
|
16
|
-
The extension will ship with `@cursor/bdk` when the package publishes.
|
|
17
|
-
This import is docs-ahead; see
|
|
18
|
-
[BDK package availability](/#bdk-package-availability).
|
|
19
|
-
|
|
20
16
|
```ts
|
|
21
17
|
// bot/extensions/cloud.ts
|
|
22
18
|
import cursorCloudAgents from "@cursor/bdk/extensions/cursor-cloud-agents";
|
|
@@ -14,9 +14,6 @@ path.
|
|
|
14
14
|
configuration and prints a checklist for everything that still needs
|
|
15
15
|
your judgment.
|
|
16
16
|
|
|
17
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
18
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
19
|
-
|
|
20
17
|
## Convert and run locally
|
|
21
18
|
|
|
22
19
|
The command creates a project named after the Automation, installs its
|
|
@@ -101,9 +98,9 @@ reply experience and app setup.
|
|
|
101
98
|
|
|
102
99
|
The generated GitHub channel keeps mechanical filters such as PR
|
|
103
100
|
actions, branches, issue actions, repositories, and simple user
|
|
104
|
-
allowlists. Conditions that
|
|
101
|
+
allowlists. Conditions that depend on dashboard-only context stay
|
|
105
102
|
fail-closed, so the corresponding hook returns `null` until you replace
|
|
106
|
-
|
|
103
|
+
them.
|
|
107
104
|
|
|
108
105
|
For example, a converted CI trigger can wake only when the suite fails:
|
|
109
106
|
|
package/docs/guides/github.md
CHANGED
|
@@ -10,9 +10,6 @@ latest PR and CI state, then write back reviews, comments, checks, or
|
|
|
10
10
|
pushes. Pull events from Cursor, so you don't expose a public webhook
|
|
11
11
|
URL.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
Connect GitHub in Cursor for the repos you care about (Settings or
|
|
17
14
|
[cursor.com/dashboard](https://cursor.com/dashboard)). Sign the host in
|
|
18
15
|
with `bdk login`. `cursorAccount` reuses that connection for
|
|
@@ -239,7 +236,7 @@ Every wake for the same repo and PR number resumes the same session. The
|
|
|
239
236
|
channel keys turns as `github-pr:acme/checkout#42`. Opens, comments, and
|
|
240
237
|
CI results share that conversation.
|
|
241
238
|
|
|
242
|
-
## Call GitHub from
|
|
239
|
+
## Call GitHub from deterministic code via `ctx`
|
|
243
240
|
|
|
244
241
|
`cursorAccount` puts one credential on both surfaces:
|
|
245
242
|
|
package/docs/guides/gitlab.md
CHANGED
|
@@ -10,9 +10,6 @@ project or merge-request state, and writes the result back to GitLab.
|
|
|
10
10
|
`gitlabChannel()` supports the same hooks on GitLab.com and self-managed
|
|
11
11
|
GitLab.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
## Review a merge request
|
|
17
14
|
|
|
18
15
|
Opening, reopening, or pushing commits to a merge request starts a
|
|
@@ -10,9 +10,6 @@ the Grok Bot agents on its serve host's Cursor account. The bot keeps
|
|
|
10
10
|
its existing conversation, memory, and tools, while your agent carries
|
|
11
11
|
the delivered reply back into the current conversation.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
Use this extension on the local runtime. It consults another Grok Bot;
|
|
17
14
|
it does not move this agent onto a Grok Bot runtime.
|
|
18
15
|
|
|
@@ -62,7 +59,7 @@ The message must include who is asking, the relevant facts, and the
|
|
|
62
59
|
shape of the answer. The Grok Bot does not see the current BDK
|
|
63
60
|
conversation.
|
|
64
61
|
|
|
65
|
-
>
|
|
62
|
+
> Avery is deciding whether to move Saturday's picnic. The forecast is
|
|
66
63
|
> 70% rain from 1-4pm. Recommend keep or move, give one reason, and name
|
|
67
64
|
> the best alternate time.
|
|
68
65
|
|
package/docs/guides/hooks.md
CHANGED
|
@@ -10,9 +10,6 @@ as updating metrics or sending alerts. They never change the turn, prompt, or
|
|
|
10
10
|
reply. Author them under `bot/hooks/` with `defineHook` from
|
|
11
11
|
`@cursor/bdk/hooks`.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
14
|
-
see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
## Meter token usage
|
|
17
14
|
|
|
18
15
|
With [OpenTelemetry](./opentelemetry.md) configured, this hook adds a live
|
package/docs/guides/improve.md
CHANGED
|
@@ -10,9 +10,6 @@ work" into a source change. The agent prepares a brief, a Cursor cloud
|
|
|
10
10
|
agent edits a checkout and opens a pull request, and the running agent
|
|
11
11
|
reports the verified PR for human review.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
Durable behavior does not change until that source is merged and
|
|
17
14
|
deployed.
|
|
18
15
|
|
package/docs/guides/jev.md
CHANGED
|
@@ -11,9 +11,6 @@ risk, choose a reviewer, or decide whether a merge needs a documentation
|
|
|
11
11
|
follow-up. Jev returns a choice, score, or probability; your TypeScript
|
|
12
12
|
decides what happens next.
|
|
13
13
|
|
|
14
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
15
|
-
see [BDK package availability](/#bdk-package-availability).
|
|
16
|
-
|
|
17
14
|
Set `TYPESAFE_API_KEY`. The default model is `jev-latest`.
|
|
18
15
|
|
|
19
16
|
```ts
|
package/docs/guides/mcp-oauth.md
CHANGED
|
@@ -10,9 +10,6 @@ without putting tokens in the agent's source or workspace. Use it when
|
|
|
10
10
|
the server speaks OAuth and its credentials should belong to the serve
|
|
11
11
|
host instead of a person's Cursor account.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
## Use a private MCP tool locally
|
|
17
14
|
|
|
18
15
|
Declare the remote server, authorize it once in the browser, and start
|
|
@@ -129,7 +126,7 @@ bdk deploy
|
|
|
129
126
|
```
|
|
130
127
|
|
|
131
128
|
`--store` writes deployment secrets; it does not restart the current
|
|
132
|
-
|
|
129
|
+
process. Follow the CLI or dashboard prompt to redeploy, then exercise
|
|
133
130
|
the hosted agent.
|
|
134
131
|
|
|
135
132
|
These credentials belong to the deployment, not to the person who
|
|
@@ -13,16 +13,13 @@ cost metrics from the serve process.
|
|
|
13
13
|
Export is opt-in. Nothing leaves the process until you configure a
|
|
14
14
|
destination.
|
|
15
15
|
|
|
16
|
-
The `bdk` commands on this page are docs-ahead until `@cursor/bdk` is
|
|
17
|
-
published; see [BDK package availability](/#bdk-package-availability).
|
|
18
|
-
|
|
19
16
|
## Connect an OTLP collector
|
|
20
17
|
|
|
21
18
|
Set the collector endpoint, start the agent, and send it a message. You
|
|
22
19
|
should see an `agent_sdk.http` request span and an `agent_sdk.turn`
|
|
23
20
|
trace, with any tool or subagent work nested under the turn.
|
|
24
21
|
|
|
25
|
-
```
|
|
22
|
+
```bash
|
|
26
23
|
export OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com
|
|
27
24
|
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer $OTEL_TOKEN"
|
|
28
25
|
export OTEL_SERVICE_NAME=incident-agent
|
|
@@ -35,7 +32,9 @@ The default protocol is OTLP/HTTP protobuf. If you already call
|
|
|
35
32
|
code:
|
|
36
33
|
|
|
37
34
|
```ts
|
|
38
|
-
|
|
35
|
+
import { serve } from "@cursor/bdk";
|
|
36
|
+
|
|
37
|
+
await serve(".", {
|
|
39
38
|
otel: {
|
|
40
39
|
serviceName: "incident-agent",
|
|
41
40
|
exporters: [
|
package/docs/guides/slack.md
CHANGED
|
@@ -10,9 +10,6 @@ in a channel it watches. From there, it keeps the conversation in one
|
|
|
10
10
|
thread and can reply all at once, stream the answer live, or decide for
|
|
11
11
|
itself when to post updates.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
14
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
Run `bdk slack create --dir .`, then `bdk slack doctor`.
|
|
17
14
|
|
|
18
15
|
## Answer a mention or DM
|
|
@@ -47,7 +44,7 @@ export default slackChannel({
|
|
|
47
44
|
reasoning: true,
|
|
48
45
|
// Tool names as they start ("Running grep, glob...").
|
|
49
46
|
tools: true,
|
|
50
|
-
idle: ["Checking the
|
|
47
|
+
idle: ["Checking the request...", "Reviewing recent activity..."],
|
|
51
48
|
},
|
|
52
49
|
},
|
|
53
50
|
});
|
|
@@ -108,15 +105,12 @@ This example watches `#triage-alerts`, so any substantial top-level
|
|
|
108
105
|
message starts a thread even when nobody mentions the bot. The length
|
|
109
106
|
guard filters out short posts before they can start a turn.
|
|
110
107
|
|
|
111
|
-
Mentions
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
guest watcher: it is not a hosting subscription. A thread reply on
|
|
118
|
-
Cursor-managed hosting is delivered when a mention already opened that
|
|
119
|
-
thread, and a top-level post does not match.
|
|
108
|
+
Mentions work in any channel the bot has joined. Listening without a
|
|
109
|
+
mention requires an explicit allowlist with at least one channel ID
|
|
110
|
+
starting with `C` or `G` and at most 10 distinct IDs. You can add
|
|
111
|
+
`#name` entries for readability. A lone `"*"` watches replies in every
|
|
112
|
+
joined channel (`posts: "replies"`), but it does not wake on top-level
|
|
113
|
+
posts. Do not mix `"*"` with channel IDs.
|
|
120
114
|
|
|
121
115
|
```ts
|
|
122
116
|
export default slackChannel({
|
|
@@ -140,15 +134,11 @@ export default slackChannel({
|
|
|
140
134
|
When you create the app, pass `--channel-posts` and invite the bot to
|
|
141
135
|
every channel in the allowlist.
|
|
142
136
|
|
|
143
|
-
On Cursor-managed hosting the
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
the control plane answers every delivery immediately, and edits arrive
|
|
149
|
-
as separate deliveries that are dropped at the edge. Channel ids match
|
|
150
|
-
without any Slack call; `#name` entries are resolved once per pod with
|
|
151
|
-
the bot token and need the `channels:read` scope.
|
|
137
|
+
On Cursor-managed hosting, the channel IDs in `allow` define which
|
|
138
|
+
top-level posts can wake the agent. Replies in threads the agent has
|
|
139
|
+
already joined still arrive. `debounceMs` applies only when you
|
|
140
|
+
self-host. Add the `channels:read` scope when you include `#name`
|
|
141
|
+
labels.
|
|
152
142
|
|
|
153
143
|
## Control who can message
|
|
154
144
|
|
|
@@ -230,7 +220,7 @@ Use the IDs on the hook `ctx` when handling an event, and
|
|
|
230
220
|
|
|
231
221
|
## Connect
|
|
232
222
|
|
|
233
|
-
```
|
|
223
|
+
```bash
|
|
234
224
|
bdk login
|
|
235
225
|
bdk slack create --dir .
|
|
236
226
|
bdk slack doctor --prefix TRIAGE
|
|
@@ -256,7 +246,7 @@ and tokens.
|
|
|
256
246
|
Run `doctor` first to catch missing credentials, then start the agent
|
|
257
247
|
and send it the same mention or DM a teammate would.
|
|
258
248
|
|
|
259
|
-
```
|
|
249
|
+
```bash
|
|
260
250
|
bdk slack doctor --prefix TRIAGE
|
|
261
251
|
bdk serve --dir . --dev
|
|
262
252
|
```
|
package/docs/guides/webhooks.md
CHANGED
|
@@ -10,9 +10,6 @@ conversation, then sends the result back to the system that started it.
|
|
|
10
10
|
Use one when the built-in [HTTP API](../reference/http-api.md) does not
|
|
11
11
|
match the provider's payload, conversation key, or reply path.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
14
|
-
see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
Author `bot/channels/<id>.ts`. Its routes mount under
|
|
17
14
|
`/<slug>/v1/channels/<id>`.
|
|
18
15
|
|
package/docs/hillclimbing.md
CHANGED
|
@@ -13,9 +13,6 @@ crossing the freeze line.
|
|
|
13
13
|
The companion [`hillclimb` skill](../skills/hillclimb/SKILL.md) can run
|
|
14
14
|
this loop with you.
|
|
15
15
|
|
|
16
|
-
The `bdk` commands on this page are docs-ahead until `@cursor/bdk` is
|
|
17
|
-
published; see [BDK package availability](/#bdk-package-availability).
|
|
18
|
-
|
|
19
16
|
## Correct a wrong tool choice
|
|
20
17
|
|
|
21
18
|
Suppose a PR reviewer calls `approve_pr` before `inspect_pr`. Pin one PR
|
package/docs/quickstart.md
CHANGED
|
@@ -13,15 +13,13 @@ review.
|
|
|
13
13
|
|
|
14
14
|
- Node 22.13 or newer.
|
|
15
15
|
|
|
16
|
-
- The
|
|
17
|
-
so these commands will not run until publication. See
|
|
18
|
-
[BDK package availability](/#bdk-package-availability).
|
|
16
|
+
- The `@cursor/bdk` package:
|
|
19
17
|
|
|
20
18
|
```text
|
|
21
19
|
npm install -g @cursor/bdk
|
|
22
20
|
```
|
|
23
21
|
|
|
24
|
-
- A Cursor credential for model turns.
|
|
22
|
+
- A Cursor credential for model turns. Sign in once:
|
|
25
23
|
|
|
26
24
|
```text
|
|
27
25
|
bdk login
|
|
@@ -31,9 +29,6 @@ bdk login
|
|
|
31
29
|
|
|
32
30
|
The preferred BDK workflow uses `bdk init` and `bdk dev`.
|
|
33
31
|
|
|
34
|
-
> **Docs ahead:** `@cursor/bdk` is not on npm yet. This block shows future
|
|
35
|
-
> CLI syntax and will not run until the package publishes.
|
|
36
|
-
|
|
37
32
|
```text
|
|
38
33
|
bdk init ./pr-reviewer
|
|
39
34
|
cd pr-reviewer
|
|
@@ -9,9 +9,6 @@ description: "defineAgent at bot/agent.ts: the model, local workspace, and progr
|
|
|
9
9
|
the agent and its local harness defaults.
|
|
10
10
|
Everything is optional on the root agent.
|
|
11
11
|
|
|
12
|
-
The `@cursor/bdk` imports and `bdk` commands on this page are docs-ahead
|
|
13
|
-
until publication; see [BDK package availability](/#bdk-package-availability).
|
|
14
|
-
|
|
15
12
|
```ts
|
|
16
13
|
import { defineAgent } from "@cursor/bdk";
|
|
17
14
|
|
|
@@ -35,15 +32,15 @@ export default defineAgent({
|
|
|
35
32
|
| `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. |
|
|
36
33
|
| `instructions` | string | Inline instructions. Prefer `instructions.md`; this exists for subagents and generated configs. |
|
|
37
34
|
| `local` | `{ cwd?, workspaceDir?, sandbox? }` | Local harness defaults. See [Local options](#local-options). |
|
|
38
|
-
| `hosting` | `{ egressDomains?, secretNames? }` | Managed-hosting declarations read by `bdk deploy`: the
|
|
39
|
-
| `concurrency` | `{ maxRunningTurns? }` |
|
|
35
|
+
| `hosting` | `{ egressDomains?, secretNames? }` | Managed-hosting declarations read by `bdk deploy`: the deployment's egress allowlist and the secret names the agent expects. Mounted [extensions](./extensions.md#build-an-extension) add their own. Ignored by local serving. |
|
|
36
|
+
| `concurrency` | `{ maxRunningTurns? }` | Agent-wide concurrent turn limit. See [Concurrency](#concurrency). |
|
|
40
37
|
| `builtinTools` | `{ reminders? }` | Framework-provided model-facing tools, opted in per capability. See [Built-in tools](#built-in-tools). |
|
|
41
38
|
| `tools` | `ToolName[]` | Allowlist of built-in harness tools offered to the model. Unset = the model's full standard toolset. See [Harness tools](#harness-tools). |
|
|
42
39
|
|
|
43
40
|
## Model
|
|
44
41
|
|
|
45
42
|
`model` is a Cursor model id string, or `{ id, params }`. Effort and
|
|
46
|
-
speed are params, not id suffixes.
|
|
43
|
+
speed are params, not id suffixes. BDK rejects suffix-style ids
|
|
47
44
|
like `grok-4.5-fast`:
|
|
48
45
|
|
|
49
46
|
```ts
|
|
@@ -116,7 +113,7 @@ servers, point `local.cwd` outside the checkout. See
|
|
|
116
113
|
[Local cwd](#local-cwd). `local.sandbox` makes MCP tool calls fail
|
|
117
114
|
closed.
|
|
118
115
|
|
|
119
|
-
Use the SDK's public tool names, including `"shell"`, `"read"`,
|
|
116
|
+
Use the Cursor SDK's public tool names, including `"shell"`, `"read"`,
|
|
120
117
|
`"edit"`, `"grep"`, `"glob"`, `"ls"`, and `"task"`. Unknown names
|
|
121
118
|
fail the turn with a `ConfigurationError`.
|
|
122
119
|
|
|
@@ -10,9 +10,6 @@ or decision records. An artifact kind defines the data it accepts, and
|
|
|
10
10
|
the artifacts API tags or updates records by key. Records persist across
|
|
11
11
|
sessions and can be listed, streamed, or downloaded.
|
|
12
12
|
|
|
13
|
-
The `@cursor/bdk` imports on this page are docs-ahead until publication;
|
|
14
|
-
see [BDK package availability](/#bdk-package-availability).
|
|
15
|
-
|
|
16
13
|
## Artifact kinds
|
|
17
14
|
|
|
18
15
|
Author `bot/artifacts.ts` with `defineArtifacts` from
|