@cursor/bdk 0.2.23 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts.d.ts +1 -1
- package/dist/artifacts.js +1 -1
- package/dist/channels/bitbucket/bitbucket-channel.js +1 -1
- package/dist/channels/change-monitors/change-monitors-channel.js +1 -1
- package/dist/channels/deployments/deployments-channel.js +1 -1
- package/dist/channels/github/github-channel.js +1 -1
- package/dist/channels/gitlab/gitlab-channel.js +1 -1
- package/dist/channels/issues/issues-channel.js +1 -1
- package/dist/channels/origin/origin-channel.js +1 -1
- package/dist/channels/runs/runs-channel.js +1 -1
- package/dist/channels/slack/tool-approval-events.js +5 -5
- package/dist/channels.d.ts +8 -1
- package/dist/channels.d.ts.map +1 -1
- package/dist/channels.js +33 -6
- package/dist/docs/404.html +3 -3
- package/dist/docs/assets/{app.AXQcJZaf.js → app.DTIg0uKK.js} +4 -4
- package/dist/docs/assets/chunks/@localSearchIndexroot.3ebvCWKy.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.hlZ2vmun.js → VPLocalSearchBox.BpJoSaxi.js} +2 -2
- package/dist/docs/assets/chunks/{arc.9KNWdH-l.js → arc.ylgNvRNq.js} +1 -1
- package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.BfGzkBHI.js → architectureDiagram-Q4EWVU46.BMrNJqYk.js} +1 -1
- package/dist/docs/assets/chunks/{baseUniq.Btk8-2Rs.js → baseUniq.BBWUEqf9.js} +1 -1
- package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.BmHm9OH5.js → blockDiagram-DXYQGD6D.DFMu-Vza.js} +1 -1
- package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.9POrbDHJ.js → c4Diagram-AHTNJAMY.8nkAAxWv.js} +1 -1
- package/dist/docs/assets/chunks/channel.BOebySCN.js +1 -0
- package/dist/docs/assets/chunks/{chunk-4BX2VUAB.YWZVSM6S.js → chunk-4BX2VUAB.sO-z2Bag.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-4TB4RGXK.Cxr_SFgw.js → chunk-4TB4RGXK.BMROzTMq.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-55IACEB6.DtiJyPlD.js → chunk-55IACEB6.X81urwg7.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-EDXVE4YY.b5gNHJPH.js → chunk-EDXVE4YY.eaZVFLZM.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-FMBD7UC4.DmN9yA_M.js → chunk-FMBD7UC4.CmZhzstR.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-OYMX7WX6.Dfm3xgV5.js → chunk-OYMX7WX6.CTezt9Lc.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-QZHKN3VN.sXNxDcJA.js → chunk-QZHKN3VN.s-T8zukB.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-YZCP3GAM.DgBnDUV7.js → chunk-YZCP3GAM.DN4Nhy-D.js} +1 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.C55IaN-T.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.C55IaN-T.js +1 -0
- package/dist/docs/assets/chunks/clone.D06pA7ML.js +1 -0
- package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.D18MEcoN.js → cose-bilkent-S5V4N54A.Cqyp4BUH.js} +1 -1
- package/dist/docs/assets/chunks/{dagre-KV5264BT.CSf3tihh.js → dagre-KV5264BT.BIECOiqR.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-5BDNPKRD.cbfzAfoC.js → diagram-5BDNPKRD.1tLyWoTg.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.6i6P3uu9.js → diagram-G4DWMVQ6.BVY_6VMO.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-MMDJMWI5.B9HAIfN6.js → diagram-MMDJMWI5.BSZ7xiBB.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-TYMM5635.B9baAjUv.js → diagram-TYMM5635.Bho6GmLh.js} +1 -1
- package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.DaBmX_GN.js → erDiagram-SMLLAGMA.A0yVIANn.js} +1 -1
- package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.CJqQJjkb.js → flowDiagram-DWJPFMVM.ZMgbllH6.js} +1 -1
- package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.CIXBLQhC.js → ganttDiagram-T4ZO3ILL.BCCPBhXo.js} +1 -1
- package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.CDgentto.js → gitGraphDiagram-UUTBAWPF.BOkL0BbA.js} +1 -1
- package/dist/docs/assets/chunks/{graph.BWHn6JBQ.js → graph.DMyZPu86.js} +1 -1
- package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.d9VU_ts_.js → infoDiagram-42DDH7IO.CjG1IiEw.js} +1 -1
- package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.BNO79Prj.js → ishikawaDiagram-UXIWVN3A.UCe-kq9g.js} +1 -1
- package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.CPgUTM1R.js → journeyDiagram-VCZTEJTY.3WyOK_eY.js} +1 -1
- package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.idl0Eoe1.js → kanban-definition-6JOO6SKY.WoRG2qY1.js} +1 -1
- package/dist/docs/assets/chunks/{layout.BY7DIMr6.js → layout.DV07xDd5.js} +1 -1
- package/dist/docs/assets/chunks/{linear.DYaUDrHd.js → linear.CTO8mN6o.js} +1 -1
- package/dist/docs/assets/chunks/{min.V6MWb1UC.js → min.SvTtcKuZ.js} +1 -1
- package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.BRlJXuFS.js → mindmap-definition-QFDTVHPH.DMGgQ-HB.js} +1 -1
- package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.BIhkDLcB.js → pieDiagram-DEJITSTG.B7851apI.js} +1 -1
- package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.Bw-_VEL3.js → quadrantDiagram-34T5L4WZ.CEqyypIX.js} +1 -1
- package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.DolEGwxw.js → requirementDiagram-MS252O5E.C3Mwsw-H.js} +1 -1
- package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.hMM-8BhN.js → sankeyDiagram-XADWPNL6.DyYK0XxY.js} +1 -1
- package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.Bg_CRVDy.js → sequenceDiagram-FGHM5R23.SiQPH-XM.js} +1 -1
- package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.DNWdl34_.js → stateDiagram-FHFEXIEX.CTJMsP4p.js} +1 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.DddRVjeq.js +1 -0
- package/dist/docs/assets/chunks/{theme.CBW1oolh.js → theme.DJo4my9R.js} +2 -2
- package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.Cr1wJ1mB.js → timeline-definition-GMOUNBTQ.CxSNRlQ6.js} +1 -1
- package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.BltDV9j7.js → vennDiagram-DHZGUBPP.BdoJskyD.js} +1 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.CVCRSuQK.js +162 -0
- package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.nsADqCCo.js → wardleyDiagram-NUSXRM2D.IjIbFn_F.js} +1 -1
- package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.CCwbO3dK.js → xychartDiagram-5P7HB3ND.CPUxDZLH.js} +1 -1
- package/dist/docs/assets/{deployment.md.CtSJ6sF9.js → deployment.md.3MMWuPeV.js} +5 -5
- package/dist/docs/assets/{deployment.md.CtSJ6sF9.lean.js → deployment.md.3MMWuPeV.lean.js} +1 -1
- package/dist/docs/assets/{guides_cloud-agents.md.CBK7W0-O.js → guides_cloud-agents.md.BzbzcOyj.js} +2 -2
- package/dist/docs/assets/{guides_cloud-agents.md.CBK7W0-O.lean.js → guides_cloud-agents.md.BzbzcOyj.lean.js} +1 -1
- package/dist/docs/assets/{guides_opentelemetry.md.ByW1Fs7b.js → guides_opentelemetry.md.Ck1o2frw.js} +11 -3
- package/dist/docs/assets/{guides_opentelemetry.md.ByW1Fs7b.lean.js → guides_opentelemetry.md.Ck1o2frw.lean.js} +1 -1
- package/dist/docs/assets/{reference_agent-config.md.DYA6ge6t.js → reference_agent-config.md.IplwL25I.js} +1 -2
- package/dist/docs/assets/{reference_agent-config.md.DYA6ge6t.lean.js → reference_agent-config.md.IplwL25I.lean.js} +1 -1
- package/dist/docs/assets/{reference_extensions.md.OUacPetl.js → reference_extensions.md.DKxTuCIw.js} +11 -8
- package/dist/docs/assets/{reference_extensions.md.OUacPetl.lean.js → reference_extensions.md.DKxTuCIw.lean.js} +1 -1
- package/dist/docs/assets/{reference_instructions.md.DrcHZXig.js → reference_instructions.md.BYMVxAkw.js} +4 -4
- package/dist/docs/assets/{reference_instructions.md.DrcHZXig.lean.js → reference_instructions.md.BYMVxAkw.lean.js} +1 -1
- package/dist/docs/assets/{reference_schedules.md.BqWnJES4.js → reference_schedules.md.03Ryy9ca.js} +3 -3
- package/dist/docs/assets/{style.Dwls12uf.css → style.nMsabY-V.css} +1 -1
- package/dist/docs/assets/templates_agentic-owners.md.CTEnR0jp.js +13 -0
- package/dist/docs/assets/{templates_agentic-owners.md.CvmABtia.lean.js → templates_agentic-owners.md.CTEnR0jp.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +37 -37
- package/dist/docs/deployment.html +42 -42
- package/dist/docs/deployment.md +9 -4
- package/dist/docs/evals.html +37 -37
- package/dist/docs/guides/agent-to-agent.html +37 -37
- package/dist/docs/guides/bitbucket.html +37 -37
- package/dist/docs/guides/cloud-agents.html +38 -38
- package/dist/docs/guides/cloud-agents.md +1 -0
- package/dist/docs/guides/convert-automation.html +37 -37
- package/dist/docs/guides/export-grokbot.html +37 -37
- package/dist/docs/guides/github.html +37 -37
- package/dist/docs/guides/gitlab.html +37 -37
- package/dist/docs/guides/grokbot-agents.html +37 -37
- package/dist/docs/guides/hooks.html +37 -37
- package/dist/docs/guides/improve.html +37 -37
- package/dist/docs/guides/jev.html +37 -37
- package/dist/docs/guides/mcp-oauth.html +37 -37
- package/dist/docs/guides/migrate.html +37 -37
- package/dist/docs/guides/opentelemetry.html +47 -39
- package/dist/docs/guides/opentelemetry.md +48 -2
- package/dist/docs/guides/slack.html +37 -37
- package/dist/docs/guides/webhooks.html +37 -37
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +37 -37
- package/dist/docs/index.html +37 -37
- package/dist/docs/llms-full.txt +133 -40
- package/dist/docs/quickstart.html +37 -37
- package/dist/docs/reference/agent-config.html +38 -39
- package/dist/docs/reference/agent-config.md +0 -1
- package/dist/docs/reference/artifacts.html +37 -37
- package/dist/docs/reference/channels.html +37 -37
- package/dist/docs/reference/cli.html +37 -37
- package/dist/docs/reference/connections.html +37 -37
- package/dist/docs/reference/evals.html +37 -37
- package/dist/docs/reference/extensions.html +47 -44
- package/dist/docs/reference/extensions.md +15 -9
- package/dist/docs/reference/hooks.html +37 -37
- package/dist/docs/reference/http-api.html +37 -37
- package/dist/docs/reference/instructions.html +40 -40
- package/dist/docs/reference/instructions.md +5 -1
- package/dist/docs/reference/memory.html +37 -37
- package/dist/docs/reference/playground.html +36 -36
- package/dist/docs/reference/project-layout.html +37 -37
- package/dist/docs/reference/prompt.html +37 -37
- package/dist/docs/reference/schedules.html +40 -40
- package/dist/docs/reference/sessions.html +36 -36
- package/dist/docs/reference/skills.html +37 -37
- package/dist/docs/reference/subagents.html +37 -37
- package/dist/docs/reference/tools.html +37 -37
- package/dist/docs/templates/agentic-owners.html +42 -43
- package/dist/docs/templates/agentic-owners.md +55 -23
- package/dist/docs/templates/grokbot-agents.html +37 -37
- package/dist/docs/templates/security-reviewer.html +37 -37
- package/dist/docs/templates/thermo-quality-review.html +37 -37
- package/dist/docs/templates/thermo-review.html +37 -37
- package/dist/docs/templates/triage.html +37 -37
- package/dist/docs/troubleshooting.html +36 -36
- package/dist/extensions/cursor-cloud-agents/extension.d.ts +2 -0
- package/dist/extensions/cursor-cloud-agents/extension.d.ts.map +1 -1
- package/dist/extensions/cursor-cloud-agents/extension.js +2 -1
- package/dist/extensions/cursor-cloud-agents/lib/backend.d.ts +1 -0
- package/dist/extensions/cursor-cloud-agents/lib/backend.d.ts.map +1 -1
- package/dist/extensions/cursor-cloud-agents/lib/backend.js +2 -1
- package/dist/extensions/cursor-cloud-agents/lib/fleet.js +1 -1
- package/dist/extensions/cursor-cloud-agents/lib/inputs.d.ts +1 -1
- package/dist/extensions/cursor-cloud-agents/lib/inputs.d.ts.map +1 -1
- package/dist/extensions/cursor-cloud-agents/lib/inputs.js +1 -1
- package/dist/extensions/cursor-cloud-agents/reminders/cloud-agent-stop-watch.js +1 -1
- package/dist/extensions/cursor-cloud-agents/tools/launch.js +1 -1
- package/dist/extensions/cursor-cloud-agents/tools/list.js +1 -1
- package/dist/extensions/cursor-cloud-agents/tools/reply.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/extension.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/lib/backend.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/lib/contacts.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/lib/inputs.d.ts +1 -1
- package/dist/extensions/cursor-grokbot-agents/lib/inputs.d.ts.map +1 -1
- package/dist/extensions/cursor-grokbot-agents/lib/inputs.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/tools/ask.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/tools/check.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/tools/interrupt.js +1 -1
- package/dist/extensions/cursor-grokbot-agents/tools/list.js +1 -1
- package/dist/extensions/improve/extension.js +1 -1
- package/dist/extensions/jev/extension.js +1 -1
- package/dist/extensions/jev/tools/evaluate.js +1 -1
- package/dist/extensions/slack-communication/extension.js +1 -1
- package/dist/extensions/slack-communication/tools/delete-message.js +1 -1
- package/dist/extensions/slack-communication/tools/edit-message.js +1 -1
- package/dist/extensions/slack-communication/tools/post-card.js +1 -1
- package/dist/extensions/slack-communication/tools/post-file.js +1 -1
- package/dist/extensions/slack-communication/tools/post-update.js +1 -1
- package/dist/extensions/slack-communication/tools/react.js +1 -1
- package/dist/extensions/slack-communication/tools/set-status.js +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +1 -1
- package/dist/internal/builtin-tools/artifacts.js +1 -1
- package/dist/internal/builtin-tools/reminders.js +1 -1
- package/dist/internal/convert-automation/convert-workflow.js +1 -1
- package/dist/internal/convert-grokbot/answers.js +1 -1
- package/dist/internal/convert-grokbot/recipe.d.ts +1 -1
- package/dist/internal/convert-grokbot/recipe.d.ts.map +1 -1
- package/dist/internal/convert-grokbot/recipe.js +1 -1
- package/dist/internal/cursor/backend-client.d.ts +1 -1
- package/dist/internal/cursor/backend-client.d.ts.map +1 -1
- package/dist/internal/cursor/backend-client.js +1 -1
- package/dist/internal/cursor/credentials.d.ts +1 -1
- package/dist/internal/cursor/credentials.d.ts.map +1 -1
- package/dist/internal/cursor/credentials.js +1 -1
- package/dist/internal/deploy-client.js +1 -1
- package/dist/internal/deploy-manifest.d.ts.map +1 -1
- package/dist/internal/deploy-manifest.js +2 -1
- package/dist/internal/discovery/cursor-plugin.js +1 -1
- package/dist/internal/factory-resource-channel.d.ts +1 -1
- package/dist/internal/factory-resource-channel.d.ts.map +1 -1
- package/dist/internal/filesystem/sdk-schemas.d.ts +1 -1
- package/dist/internal/filesystem/sdk-schemas.d.ts.map +1 -1
- package/dist/internal/filesystem/sdk-schemas.js +1 -1
- package/dist/internal/filesystem/tools.js +1 -1
- package/dist/internal/host-otel.d.ts +2 -1
- package/dist/internal/host-otel.d.ts.map +1 -1
- package/dist/internal/host-otel.js +20 -6
- package/dist/internal/hosted-delivery-protocol.d.ts +4 -0
- package/dist/internal/hosted-delivery-protocol.d.ts.map +1 -1
- package/dist/internal/hosted-delivery.d.ts +7 -0
- package/dist/internal/hosted-delivery.d.ts.map +1 -1
- package/dist/internal/hosted-delivery.js +19 -17
- package/dist/internal/hosting.d.ts +6 -0
- package/dist/internal/hosting.d.ts.map +1 -1
- package/dist/internal/hosting.js +9 -0
- package/dist/internal/init-scaffold.js +1 -1
- package/dist/internal/interview/agent-questions.d.ts +1 -1
- package/dist/internal/interview/agent-questions.d.ts.map +1 -1
- package/dist/internal/interview/agent-questions.js +1 -1
- package/dist/internal/interview/question.d.ts +1 -1
- package/dist/internal/interview/question.d.ts.map +1 -1
- package/dist/internal/interview/question.js +1 -1
- package/dist/internal/json-schema.d.ts +1 -1
- package/dist/internal/json-schema.d.ts.map +1 -1
- package/dist/internal/json-schema.js +1 -1
- package/dist/internal/mcp-endpoint.js +1 -1
- package/dist/internal/otel/collector.d.ts.map +1 -1
- package/dist/internal/otel/collector.js +47 -18
- package/dist/internal/otel/config.d.ts +4 -0
- package/dist/internal/otel/config.d.ts.map +1 -1
- package/dist/internal/otel/config.js +20 -9
- package/dist/internal/otel/http.d.ts +1 -1
- package/dist/internal/otel/http.d.ts.map +1 -1
- package/dist/internal/otel/http.js +1 -1
- package/dist/internal/otel/runtime.d.ts +17 -14
- package/dist/internal/otel/runtime.d.ts.map +1 -1
- package/dist/internal/otel/runtime.js +181 -238
- package/dist/internal/package-inline-stdio.d.ts.map +1 -1
- package/dist/internal/package-inline-stdio.js +1 -0
- package/dist/internal/process-memory-telemetry.d.ts +1 -1
- package/dist/internal/process-memory-telemetry.d.ts.map +1 -1
- package/dist/internal/process-memory-telemetry.js +1 -1
- package/dist/internal/sdk-runner.d.ts.map +1 -1
- package/dist/internal/sdk-runner.js +22 -2
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +25 -13
- package/dist/internal/session-engine.d.ts +9 -1
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +25 -0
- package/dist/internal/slack-provision-client.js +1 -1
- package/dist/internal/store-api-protocol.d.ts +1 -1
- package/dist/internal/store-api-protocol.d.ts.map +1 -1
- package/dist/internal/store-api-protocol.js +1 -1
- package/dist/internal/update-check.d.ts +1 -1
- package/dist/internal/update-check.d.ts.map +1 -1
- package/dist/internal/update-check.js +1 -1
- package/dist/otel.d.ts +1 -2
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +0 -1
- package/dist/playground/assets/index-DKKdkF29.js +62 -0
- package/dist/playground/assets/index-DpKinTMs.css +1 -0
- package/dist/playground/index.html +2 -2
- package/dist/tools.d.ts +2 -2
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/docs/deployment.md +9 -4
- package/docs/guides/cloud-agents.md +1 -0
- package/docs/guides/opentelemetry.md +48 -2
- package/docs/reference/agent-config.md +0 -1
- package/docs/reference/extensions.md +15 -9
- package/docs/reference/instructions.md +5 -1
- package/docs/templates/agentic-owners.md +55 -23
- package/package.json +18 -20
- package/skills/otel/SKILL.md +17 -4
- package/dist/docs/assets/chunks/@localSearchIndexroot.B3j7LFef.js +0 -1
- package/dist/docs/assets/chunks/channel.RoCpi7X1.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.oxdmwwqk.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.oxdmwwqk.js +0 -1
- package/dist/docs/assets/chunks/clone.BkguoIMm.js +0 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.7W-btjJ2.js +0 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.BWPaUhOs.js +0 -162
- package/dist/docs/assets/templates_agentic-owners.md.CvmABtia.js +0 -14
- package/dist/playground/assets/index-BtsbIqV9.css +0 -1
- package/dist/playground/assets/index-CD8VRa25.js +0 -71
- /package/dist/docs/assets/{reference_schedules.md.BqWnJES4.lean.js → reference_schedules.md.03Ryy9ca.lean.js} +0 -0
package/dist/docs/llms-full.txt
CHANGED
|
@@ -235,9 +235,9 @@ agent and doesn't train on it.
|
|
|
235
235
|
Declare the external hosts and secret names the agent needs. Mounted
|
|
236
236
|
extensions add the ones they declare, so list only what your own code
|
|
237
237
|
calls; `bdk info --dir .` shows the combined list and what each mount
|
|
238
|
-
adds.
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
adds. Deploy the agent, then set each value at the hidden prompt.
|
|
239
|
+
The next task uses the new value. You do not deploy again to apply
|
|
240
|
+
that value.
|
|
241
241
|
|
|
242
242
|
```ts
|
|
243
243
|
// bot/agent.ts
|
|
@@ -252,9 +252,9 @@ export default defineAgent({
|
|
|
252
252
|
```
|
|
253
253
|
|
|
254
254
|
```text
|
|
255
|
+
bdk deploy --dir . --slug weather-agent
|
|
255
256
|
bdk secrets set weather-agent WEATHER_API_KEY
|
|
256
257
|
bdk secrets list weather-agent
|
|
257
|
-
bdk deploy --dir . --slug weather-agent
|
|
258
258
|
```
|
|
259
259
|
|
|
260
260
|
Commit secret names, never values. `secrets set` accepts names and reads
|
|
@@ -268,6 +268,11 @@ loading sees nothing. Read a secret inside the handler, tool, or callback
|
|
|
268
268
|
that needs it, and give an MCP connection its credential as a `${NAME}`
|
|
269
269
|
template, which resolves when the connection opens. See
|
|
270
270
|
[credentials in headers and env](/docs/reference/connections.md#credentials-in-headers-and-env).
|
|
271
|
+
|
|
272
|
+
`bdk deploy` runs the top-level code in your files one time to build
|
|
273
|
+
the snapshot. No secrets exist at that time. The snapshot keeps those
|
|
274
|
+
values.
|
|
275
|
+
|
|
271
276
|
SCM webhook channels go one step further and name their secrets in the
|
|
272
277
|
channel definition, as `{ secretName: "GITHUB_WEBHOOK_SECRET" }`, so the
|
|
273
278
|
platform can verify each delivery's signature before any compute starts.
|
|
@@ -1225,6 +1230,7 @@ their own.
|
|
|
1225
1230
|
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1226
1231
|
| `cloud` | Launch defaults for repositories, environment, and pull request behavior. |
|
|
1227
1232
|
| `cloud.repos` | The repositories the agent may hand work to, with a default branch or pull request for each. Without it, launches run with no repository and the model can't name one, so secrets in `cloud.envVars` never reach a repository you didn't list. |
|
|
1233
|
+
| `cloud.teamMcpServers` | The team MCP servers, by name, that launched agents may use (up to 50 names, matched case-insensitively; every team server with a listed name is kept). Every other team server is left out. Personal servers and `cloud.mcpServers` aren't filtered. Omit it to give agents every team server the launching account can use. |
|
|
1228
1234
|
| `model` | The model launched agents run. Omit it to use the account default. |
|
|
1229
1235
|
| `apiKey` | A Cursor API key to launch with instead of the host's own. |
|
|
1230
1236
|
|
|
@@ -3415,6 +3421,52 @@ application starts the server itself. When that application
|
|
|
3415
3421
|
already uses OpenTelemetry, BDK sends its traces, metrics, and
|
|
3416
3422
|
logs to the collector configured here.
|
|
3417
3423
|
|
|
3424
|
+
## Export from a hosted agent
|
|
3425
|
+
|
|
3426
|
+
Set the collector endpoint and headers as secrets, and add the
|
|
3427
|
+
collector host to `hosting.egressDomains`. The host is a hostname
|
|
3428
|
+
with no scheme and no path. The first request loads the secrets,
|
|
3429
|
+
and export starts with those headers.
|
|
3430
|
+
|
|
3431
|
+
```ts
|
|
3432
|
+
// bot/agent.ts
|
|
3433
|
+
import { defineAgent } from "@cursor/bdk";
|
|
3434
|
+
|
|
3435
|
+
export default defineAgent({
|
|
3436
|
+
hosting: {
|
|
3437
|
+
egressDomains: ["otlp-gateway-prod-us-east-0.grafana.net"],
|
|
3438
|
+
secretNames: ["OTEL_EXPORTER_OTLP_ENDPOINT", "OTEL_EXPORTER_OTLP_HEADERS"],
|
|
3439
|
+
},
|
|
3440
|
+
});
|
|
3441
|
+
```
|
|
3442
|
+
|
|
3443
|
+
```bash
|
|
3444
|
+
bdk secrets set my-agent OTEL_EXPORTER_OTLP_ENDPOINT OTEL_EXPORTER_OTLP_HEADERS
|
|
3445
|
+
```
|
|
3446
|
+
|
|
3447
|
+
`OTEL_EXPORTER_OTLP_HEADERS` is a comma-separated list of
|
|
3448
|
+
`name=value` pairs. Each value is URL-encoded, so a space is
|
|
3449
|
+
`%20` (`Authorization=Basic%20...`).
|
|
3450
|
+
|
|
3451
|
+
A later `bdk secrets set` changes the headers on the next export.
|
|
3452
|
+
You do not redeploy to rotate a token. The URL, service name,
|
|
3453
|
+
resource attributes, signals, sample ratio, and metric export
|
|
3454
|
+
interval stay as they were on the first export. Redeploy to change
|
|
3455
|
+
one of those. BDK logs a warning when one of them changes on a
|
|
3456
|
+
running agent.
|
|
3457
|
+
|
|
3458
|
+
When an exporter host is missing from `hosting.egressDomains`, BDK
|
|
3459
|
+
logs an error that names the host. Add the host and redeploy.
|
|
3460
|
+
|
|
3461
|
+
Spans and metrics from before the first request are not exported,
|
|
3462
|
+
including spans from channel `onStart`. If the OpenTelemetry config
|
|
3463
|
+
fails, BDK logs the error and the request still completes.
|
|
3464
|
+
|
|
3465
|
+
Logs stay off until `serve({ otel })` sets `logs`, or until
|
|
3466
|
+
`OTEL_LOGS_EXPORTER` is `otlp`. Prompt text and tool payloads stay
|
|
3467
|
+
off until you set `OTEL_LOG_USER_PROMPTS` or
|
|
3468
|
+
`OTEL_LOG_TOOL_CONTENT`.
|
|
3469
|
+
|
|
3418
3470
|
## Follow one conversation
|
|
3419
3471
|
|
|
3420
3472
|
Copy the complete session ID from the playground or session API, then
|
|
@@ -3543,8 +3595,8 @@ The same controls are available as
|
|
|
3543
3595
|
configuration and custom-metric reference for coding agents
|
|
3544
3596
|
- [Hooks](/docs/reference/hooks.md): emit domain telemetry from session
|
|
3545
3597
|
events
|
|
3546
|
-
- [Deployment](/docs/deployment.md):
|
|
3547
|
-
on
|
|
3598
|
+
- [Deployment](/docs/deployment.md): declare `hosting.egressDomains`
|
|
3599
|
+
and set collector secrets on a hosted agent
|
|
3548
3600
|
- [Cursor enterprise OpenTelemetry Export](https://cursor.com/docs/enterprise/opentelemetry-export):
|
|
3549
3601
|
send organization-wide Cursor telemetry to the same collector
|
|
3550
3602
|
|
|
@@ -4836,7 +4888,6 @@ import { serve } from "@cursor/bdk";
|
|
|
4836
4888
|
|
|
4837
4889
|
const handle = await serve("./my-agent", {
|
|
4838
4890
|
port: 3000,
|
|
4839
|
-
apiKey: process.env.CURSOR_API_KEY,
|
|
4840
4891
|
});
|
|
4841
4892
|
console.log(`listening on ${handle.url}`);
|
|
4842
4893
|
// handle.callTool(...), handle.dispatchSchedule("heartbeat"),
|
|
@@ -6904,10 +6955,13 @@ import ci from "@acme/ci-triage";
|
|
|
6904
6955
|
|
|
6905
6956
|
export default ci({
|
|
6906
6957
|
org: "acme",
|
|
6907
|
-
token: process.env.BUILDKITE_TOKEN,
|
|
6958
|
+
token: () => process.env.BUILDKITE_TOKEN ?? "",
|
|
6908
6959
|
});
|
|
6909
6960
|
```
|
|
6910
6961
|
|
|
6962
|
+
Pass `token` as a function so a tool can call it. The function reads
|
|
6963
|
+
`BUILDKITE_TOKEN` when the tool calls it.
|
|
6964
|
+
|
|
6911
6965
|
The extension validates its configuration while the project loads.
|
|
6912
6966
|
Missing or mistyped settings fail `bdk validate` before a turn
|
|
6913
6967
|
can call the contributed code.
|
|
@@ -6992,14 +7046,15 @@ import { cursorPlugin } from "@cursor/bdk/extensions";
|
|
|
6992
7046
|
export default cursorPlugin({
|
|
6993
7047
|
path: "plugins/notion-workspace",
|
|
6994
7048
|
variables: {
|
|
6995
|
-
NOTION_TOKEN:
|
|
7049
|
+
NOTION_TOKEN: "${NOTION_TOKEN}",
|
|
6996
7050
|
},
|
|
6997
7051
|
});
|
|
6998
7052
|
```
|
|
6999
7053
|
|
|
7000
7054
|
`path` is relative to the project root. `variables` fills placeholders
|
|
7001
|
-
declared by the plugin's MCP configuration
|
|
7002
|
-
|
|
7055
|
+
declared by the plugin's MCP configuration. Pass a `${NAME}` template.
|
|
7056
|
+
The connection reads `NAME` when it opens. An unresolved placeholder
|
|
7057
|
+
fails validation instead of mounting a partial server.
|
|
7003
7058
|
|
|
7004
7059
|
Plugin rules and hooks are not mounted. Overlay a generated
|
|
7005
7060
|
`mcp-connections/<server>.ts` file to replace or disable one plugin
|
|
@@ -7049,10 +7104,13 @@ export default defineExtension({
|
|
|
7049
7104
|
description: "Investigate failing Buildkite jobs.",
|
|
7050
7105
|
config: z.object({
|
|
7051
7106
|
org: z.string(),
|
|
7052
|
-
token: z.string(),
|
|
7107
|
+
token: z.function().args().returns(z.string()),
|
|
7053
7108
|
logTailLines: z.number().int().positive().default(200),
|
|
7054
7109
|
}),
|
|
7055
|
-
hosting: () => ({
|
|
7110
|
+
hosting: () => ({
|
|
7111
|
+
egressDomains: ["api.buildkite.com"],
|
|
7112
|
+
secretNames: ["BUILDKITE_TOKEN"],
|
|
7113
|
+
}),
|
|
7056
7114
|
});
|
|
7057
7115
|
```
|
|
7058
7116
|
|
|
@@ -7065,9 +7123,8 @@ prose assets beside it.
|
|
|
7065
7123
|
from the environment. It receives the validated settings, and the
|
|
7066
7124
|
mounting agent's `hosting.egressDomains` and `hosting.secretNames` gain
|
|
7067
7125
|
whatever it returns, so a hosted deploy reaches Buildkite without the
|
|
7068
|
-
consumer listing `api.buildkite.com`.
|
|
7069
|
-
|
|
7070
|
-
value comes from.
|
|
7126
|
+
consumer listing `api.buildkite.com`. List `BUILDKITE_TOKEN` in
|
|
7127
|
+
`secretNames`. Call `extension.config.token()` inside a tool.
|
|
7071
7128
|
|
|
7072
7129
|
The [Project layout](/docs/reference/project-layout.md) owns each contribution's
|
|
7073
7130
|
authoring contract. Keep extension instructions and tool descriptions
|
|
@@ -7530,10 +7587,14 @@ on every turn. A root agent requires them; a subagent may inline
|
|
|
7530
7587
|
import { defineInstructions } from "@cursor/bdk";
|
|
7531
7588
|
|
|
7532
7589
|
export default defineInstructions({
|
|
7533
|
-
markdown:
|
|
7590
|
+
markdown: "You are the on-call assistant for the payments team.",
|
|
7534
7591
|
});
|
|
7535
7592
|
```
|
|
7536
7593
|
|
|
7594
|
+
The `markdown` string is fixed when this file loads. Read a secret in
|
|
7595
|
+
a handler, a tool, or a callback. See
|
|
7596
|
+
[Add egress and secrets](/docs/deployment.md#add-egress-and-secrets).
|
|
7597
|
+
|
|
7537
7598
|
## Delivery
|
|
7538
7599
|
|
|
7539
7600
|
Instructions land in the session workspace as `AGENTS.md`, and the
|
|
@@ -8723,13 +8784,13 @@ Source: /docs/templates/agentic-owners.md
|
|
|
8723
8784
|
This agent reviews every pull request in your repository. It risk-tiers
|
|
8724
8785
|
the diff, requests the owning team or user as reviewers, and approves
|
|
8725
8786
|
what your policy allows. Ownership rules live in
|
|
8726
|
-
`.agentic-owners/policy.yml` files committed at any depth of the repo
|
|
8727
|
-
|
|
8728
|
-
from the PR's base ref so a PR cannot exempt itself.
|
|
8787
|
+
`.agentic-owners/policy.yml` files committed at any depth of the repo.
|
|
8788
|
+
The closest policy to a changed file wins, and policies are always read
|
|
8789
|
+
from the PR's base ref, so a PR cannot exempt itself.
|
|
8729
8790
|
|
|
8730
8791
|
## Scaffold
|
|
8731
8792
|
|
|
8732
|
-
```
|
|
8793
|
+
```bash
|
|
8733
8794
|
bdk init ./owners-agent --template agentic-owners
|
|
8734
8795
|
```
|
|
8735
8796
|
|
|
@@ -8738,21 +8799,23 @@ on PATH.
|
|
|
8738
8799
|
|
|
8739
8800
|
## Log in and run
|
|
8740
8801
|
|
|
8741
|
-
Set your repositories in `bot/lib/config.ts` (`repos: ["
|
|
8802
|
+
Set your repositories in `bot/lib/config.ts` (`repos: ["acme/api"]`),
|
|
8742
8803
|
then:
|
|
8743
8804
|
|
|
8744
|
-
```
|
|
8805
|
+
```bash
|
|
8745
8806
|
cd owners-agent
|
|
8746
8807
|
bdk login
|
|
8747
8808
|
bdk dev
|
|
8748
8809
|
```
|
|
8749
8810
|
|
|
8750
8811
|
PR events stream through your Cursor account. No webhook or GitHub App
|
|
8751
|
-
setup.
|
|
8812
|
+
setup. The agent reviews a PR when it is opened, reopened, pushed to,
|
|
8813
|
+
marked ready for review, or retargeted to another base. Draft PRs wait
|
|
8814
|
+
until they are ready. Open a PR, or replay a real one (this also works
|
|
8752
8815
|
with `repos` empty):
|
|
8753
8816
|
|
|
8754
|
-
```
|
|
8755
|
-
bdk github replay https://github.com/
|
|
8817
|
+
```bash
|
|
8818
|
+
bdk github replay https://github.com/acme/api/pull/123 --dir .
|
|
8756
8819
|
```
|
|
8757
8820
|
|
|
8758
8821
|
Deploy with `bdk deploy`.
|
|
@@ -8764,37 +8827,67 @@ low risk approve, medium and above hold with a comment. Route reviews by
|
|
|
8764
8827
|
committing policies:
|
|
8765
8828
|
|
|
8766
8829
|
```yaml
|
|
8767
|
-
# .agentic-owners/policy.yml
|
|
8768
|
-
# paths are repo-root-relative globs, wherever the policy file lives.
|
|
8830
|
+
# .agentic-owners/policy.yml at any depth; the closest policy wins.
|
|
8769
8831
|
version: 1
|
|
8770
8832
|
policies:
|
|
8771
8833
|
- paths: ["docs/**"]
|
|
8772
8834
|
always_approve: true
|
|
8773
8835
|
- paths: ["src/api/**"]
|
|
8774
|
-
team:
|
|
8836
|
+
team: platform # bare slug in the repo's org; or acme/platform, or user: alice
|
|
8775
8837
|
prompt: api-review.md # optional extra rubric, same directory
|
|
8776
8838
|
- paths: ["src/billing/**"]
|
|
8777
|
-
|
|
8778
|
-
|
|
8839
|
+
users: [alice, bob]
|
|
8840
|
+
mode: hard # the agent never approves; a person must
|
|
8779
8841
|
```
|
|
8780
8842
|
|
|
8781
|
-
`
|
|
8782
|
-
|
|
8843
|
+
`paths` are globs relative to the directory that holds the
|
|
8844
|
+
`.agentic-owners/` folder, so a root policy sees repo-relative paths and
|
|
8845
|
+
`src/.agentic-owners/policy.yml` matches `api/**` against
|
|
8846
|
+
`src/api/**`. Leading `../` segments reach a sibling tree. A path cannot
|
|
8847
|
+
escape the repo.
|
|
8848
|
+
|
|
8849
|
+
| Key | Meaning |
|
|
8850
|
+
| --- | --- |
|
|
8851
|
+
| `paths` | Globs relative to the policy's directory. Required. |
|
|
8852
|
+
| `team` / `teams` | Owner teams. A bare slug resolves in the repo's org. An `org/team` handle names a team directly. |
|
|
8853
|
+
| `user` / `users` | Owner GitHub logins, without `@`. |
|
|
8854
|
+
| `prompt` | Markdown filename in the same directory, added to the rubric for matching PRs. |
|
|
8855
|
+
| `mode` | `advisory` (default): low risk approves. `hard`: a person must approve. `notify`: the rule never blocks and its owners are not requested. |
|
|
8856
|
+
| `human_review_required` | `true` is the older spelling of `mode: hard`. |
|
|
8857
|
+
| `self_review` | A listed `user:` owner's own PRs clear this rule. |
|
|
8858
|
+
| `always_approve` | Satisfied at every risk tier. Cannot combine with owners, `prompt`, `mode`, `self_review`, or `human_review_required`. |
|
|
8859
|
+
|
|
8860
|
+
A rule without owners must set `always_approve: true`.
|
|
8861
|
+
`global_exclusions` in the root policy opts paths out entirely. The
|
|
8862
|
+
agent rejects `delegated_automations`: nothing in this template consumes
|
|
8863
|
+
automation approvals.
|
|
8783
8864
|
|
|
8784
8865
|
## What one review does
|
|
8785
8866
|
|
|
8786
8867
|
One model turn per PR head assesses the host-fetched diff against the
|
|
8787
|
-
base rubric plus any matched rule prompts, then records a
|
|
8868
|
+
base rubric plus any matched rule prompts, then records a risk tier of
|
|
8869
|
+
`very_low`, `low`, `medium`, `medium_high`, or `high` with
|
|
8788
8870
|
`record_review`. The host recomputes the policy from trusted state and
|
|
8789
8871
|
applies the deterministic decision:
|
|
8790
8872
|
|
|
8791
|
-
- **Approve** when
|
|
8792
|
-
|
|
8873
|
+
- **Approve** when every matched rule is `always_approve` or `notify`,
|
|
8874
|
+
or when the tier is very low or low and every matched `hard` rule is
|
|
8875
|
+
cleared by an owner-author with `self_review`. At medium and above,
|
|
8876
|
+
the agent approves only when the author's `self_review` covers every
|
|
8877
|
+
rule that can require review.
|
|
8793
8878
|
- **Request reviewers** otherwise: the policy owners (max 2, never the
|
|
8794
8879
|
author), plus one status comment the agent keeps updated in place.
|
|
8795
8880
|
|
|
8881
|
+
An approval binds to the head SHA, and a later hold dismisses the
|
|
8882
|
+
agent's earlier approvals. The agent also holds when the PR edits
|
|
8883
|
+
`.agentic-owners/` or `CODEOWNERS`, when the diff is empty or truncated,
|
|
8884
|
+
or when GitHub capped the changed-file list. `self_review` never clears
|
|
8885
|
+
a governance edit.
|
|
8886
|
+
|
|
8796
8887
|
The model never writes to GitHub. A broken policy file fails closed with
|
|
8797
|
-
a comment listing the validation issues.
|
|
8888
|
+
a comment listing the validation issues. Team membership is not
|
|
8889
|
+
resolved, because repo-scoped credentials cannot read org teams, so
|
|
8890
|
+
`self_review` applies to `user:` owners only.
|
|
8798
8891
|
|
|
8799
8892
|
## Rubric
|
|
8800
8893
|
|
|
@@ -8806,12 +8899,12 @@ next to the policy that names them. The next review reads both.
|
|
|
8806
8899
|
|
|
8807
8900
|
Use the three smoke reviews as a local exercise:
|
|
8808
8901
|
|
|
8809
|
-
```
|
|
8902
|
+
```bash
|
|
8810
8903
|
bdk eval
|
|
8811
8904
|
```
|
|
8812
8905
|
|
|
8813
|
-
|
|
8814
|
-
sessions skip GitHub writes.
|
|
8906
|
+
The cases are a docs-only change, an auth deletion, and a prompt
|
|
8907
|
+
injection. Eval sessions skip GitHub writes.
|
|
8815
8908
|
|
|
8816
8909
|
---
|
|
8817
8910
|
|