@cursor/july 0.1.109 → 0.1.112
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/AGENTS.md +1 -1
- package/README.md +0 -15
- package/dist/bin/agent-serve.js +99 -67
- package/dist/channels/bitbucket/api.js +8 -8
- package/dist/channels/bitbucket/binding.js +4 -4
- package/dist/channels/bitbucket/bitbucket-channel.js +1 -1
- package/dist/channels/bitbucket/bitbucket-webhook.js +1 -1
- package/dist/channels/bitbucket/checks.d.ts.map +1 -1
- package/dist/channels/bitbucket/checks.js +1 -1
- package/dist/channels/bitbucket/cursor-account.js +1 -1
- package/dist/channels/bitbucket/events.js +1 -1
- package/dist/channels/change-monitors/change-monitors-channel.js +1 -1
- package/dist/channels/checks.d.ts.map +1 -1
- package/dist/channels/checks.js +2 -2
- package/dist/channels/deployments/deployments-channel.js +1 -1
- package/dist/channels/github/cursor-account.js +3 -3
- package/dist/channels/github/defaults.d.ts.map +1 -1
- package/dist/channels/github/defaults.js +5 -3
- package/dist/channels/github/events.js +1 -1
- package/dist/channels/github/forward.js +8 -8
- package/dist/channels/github/github-channel.d.ts +29 -19
- package/dist/channels/github/github-channel.d.ts.map +1 -1
- package/dist/channels/github/github-channel.js +46 -32
- package/dist/channels/github/progress.d.ts.map +1 -1
- package/dist/channels/github/progress.js +7 -2
- package/dist/channels/github/state.d.ts +6 -0
- package/dist/channels/github/state.d.ts.map +1 -1
- package/dist/channels/github/types.d.ts +6 -0
- package/dist/channels/github/types.d.ts.map +1 -1
- package/dist/channels/gitlab/binding.js +4 -4
- package/dist/channels/gitlab/checks.d.ts.map +1 -1
- package/dist/channels/gitlab/checks.js +1 -1
- package/dist/channels/gitlab/cursor-account.js +1 -1
- package/dist/channels/gitlab/events.js +1 -1
- package/dist/channels/gitlab/gitlab-channel.js +1 -1
- package/dist/channels/gitlab/gitlab-webhook.js +1 -1
- package/dist/channels/gitlab/replay.js +2 -2
- package/dist/channels/origin/binding.d.ts +2 -0
- package/dist/channels/origin/binding.d.ts.map +1 -1
- package/dist/channels/origin/binding.js +3 -3
- package/dist/channels/origin/checks.d.ts +19 -7
- package/dist/channels/origin/checks.d.ts.map +1 -1
- package/dist/channels/origin/checks.js +13 -9
- package/dist/channels/origin/cursor-account.js +1 -1
- package/dist/channels/origin/defaults.d.ts.map +1 -1
- package/dist/channels/origin/defaults.js +3 -1
- package/dist/channels/origin/events.js +1 -1
- package/dist/channels/origin/origin-channel.d.ts.map +1 -1
- package/dist/channels/origin/origin-channel.js +2 -1
- package/dist/channels/origin/origin-webhook.js +2 -2
- package/dist/channels/slack/agentic-delivery.d.ts +23 -0
- package/dist/channels/slack/agentic-delivery.d.ts.map +1 -0
- package/dist/channels/slack/agentic-delivery.js +560 -0
- package/dist/channels/slack/agentic-posted.d.ts +30 -0
- package/dist/channels/slack/agentic-posted.d.ts.map +1 -0
- package/dist/channels/slack/agentic-posted.js +102 -0
- package/dist/channels/slack/agentic-signals.d.ts +48 -0
- package/dist/channels/slack/agentic-signals.d.ts.map +1 -0
- package/dist/channels/slack/agentic-signals.js +204 -0
- package/dist/channels/slack/api.d.ts +20 -1
- package/dist/channels/slack/api.d.ts.map +1 -1
- package/dist/channels/slack/api.js +43 -11
- package/dist/channels/slack/approvals.js +1 -1
- package/dist/channels/slack/auth.d.ts.map +1 -1
- package/dist/channels/slack/auth.js +3 -1
- package/dist/channels/slack/blocks.js +3 -3
- package/dist/channels/slack/bot-mentions.d.ts.map +1 -1
- package/dist/channels/slack/bot-mentions.js +5 -5
- package/dist/channels/slack/channel-watch.js +1 -1
- package/dist/channels/slack/cli-project.js +3 -3
- package/dist/channels/slack/defaults.d.ts +3 -0
- package/dist/channels/slack/defaults.d.ts.map +1 -1
- package/dist/channels/slack/defaults.js +90 -29
- package/dist/channels/slack/dispatch.d.ts +44 -1
- package/dist/channels/slack/dispatch.d.ts.map +1 -1
- package/dist/channels/slack/dispatch.js +323 -107
- package/dist/channels/slack/doctor.js +1 -1
- package/dist/channels/slack/eval-directive.js +1 -1
- package/dist/channels/slack/external-policy.d.ts +2 -1
- package/dist/channels/slack/external-policy.d.ts.map +1 -1
- package/dist/channels/slack/external-policy.js +13 -2
- package/dist/channels/slack/footer.d.ts +30 -0
- package/dist/channels/slack/footer.d.ts.map +1 -0
- package/dist/channels/slack/footer.js +88 -0
- package/dist/channels/slack/index.d.ts +2 -0
- package/dist/channels/slack/index.d.ts.map +1 -1
- package/dist/channels/slack/index.js +2 -0
- package/dist/channels/slack/interactive.d.ts.map +1 -1
- package/dist/channels/slack/interactive.js +5 -3
- package/dist/channels/slack/live-delivery.d.ts +1 -1
- package/dist/channels/slack/live-delivery.d.ts.map +1 -1
- package/dist/channels/slack/live-delivery.js +20 -6
- package/dist/channels/slack/log.d.ts.map +1 -1
- package/dist/channels/slack/log.js +1 -1
- package/dist/channels/slack/manifest.js +1 -1
- package/dist/channels/slack/nudge-carrier.js +1 -1
- package/dist/channels/slack/nudge-store.js +2 -2
- package/dist/channels/slack/paint-start.d.ts +22 -0
- package/dist/channels/slack/paint-start.d.ts.map +1 -0
- package/dist/channels/slack/paint-start.js +91 -0
- package/dist/channels/slack/placeholder.d.ts +62 -0
- package/dist/channels/slack/placeholder.d.ts.map +1 -0
- package/dist/channels/slack/placeholder.js +268 -0
- package/dist/channels/slack/progress-delivery.d.ts.map +1 -1
- package/dist/channels/slack/progress-delivery.js +13 -4
- package/dist/channels/slack/reasoning-chip.d.ts +8 -0
- package/dist/channels/slack/reasoning-chip.d.ts.map +1 -0
- package/dist/channels/slack/reasoning-chip.js +30 -0
- package/dist/channels/slack/recording-sink.d.ts +29 -0
- package/dist/channels/slack/recording-sink.d.ts.map +1 -0
- package/dist/channels/slack/recording-sink.js +142 -0
- package/dist/channels/slack/reply-options.d.ts +8 -1
- package/dist/channels/slack/reply-options.d.ts.map +1 -1
- package/dist/channels/slack/reply-options.js +59 -14
- package/dist/channels/slack/setup.js +1 -1
- package/dist/channels/slack/slack-channel.d.ts +2 -2
- package/dist/channels/slack/slack-channel.d.ts.map +1 -1
- package/dist/channels/slack/slack-channel.js +58 -30
- package/dist/channels/slack/socket-mode.js +2 -2
- package/dist/channels/slack/thread-context.js +5 -5
- package/dist/channels/slack/tool-approval-events.d.ts +5 -0
- package/dist/channels/slack/tool-approval-events.d.ts.map +1 -1
- package/dist/channels/slack/tool-approval-events.js +50 -38
- package/dist/channels/slack/tool-cards.js +1 -1
- package/dist/channels/slack/tool-chip.d.ts +9 -0
- package/dist/channels/slack/tool-chip.d.ts.map +1 -0
- package/dist/channels/slack/tool-chip.js +25 -0
- package/dist/channels/slack/types.d.ts +49 -7
- package/dist/channels/slack/types.d.ts.map +1 -1
- package/dist/channels/slack/upload.d.ts +13 -0
- package/dist/channels/slack/upload.d.ts.map +1 -0
- package/dist/channels/slack/upload.js +135 -0
- package/dist/channels.d.ts +10 -14
- package/dist/channels.d.ts.map +1 -1
- package/dist/channels.js +9 -21
- package/dist/dashboard-session-url.d.ts +15 -0
- package/dist/dashboard-session-url.d.ts.map +1 -0
- package/dist/dashboard-session-url.js +25 -0
- package/dist/docs/404.html +3 -3
- package/dist/docs/architecture.svg +59 -0
- package/dist/docs/assets/app.DxTdhphC.js +309 -0
- package/dist/docs/assets/building-with-agents.md.BBCx0AUo.js +9 -0
- package/dist/docs/assets/building-with-agents.md.BBCx0AUo.lean.js +1 -0
- package/dist/docs/assets/chunks/@localSearchIndexroot.QmjDU6Jh.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.CVQERt56.js → VPLocalSearchBox.CR3KTF0X.js} +2 -2
- package/dist/docs/assets/chunks/arc.CVVqBOdS.js +1 -0
- package/dist/docs/assets/chunks/architectureDiagram-Q4EWVU46.CJHGP4ki.js +36 -0
- package/dist/docs/assets/chunks/baseUniq.r7UVVRBP.js +1 -0
- package/dist/docs/assets/chunks/blockDiagram-DXYQGD6D.DKmMaTre.js +132 -0
- package/dist/docs/assets/chunks/c4Diagram-AHTNJAMY.DDJsntUO.js +10 -0
- package/dist/docs/assets/chunks/channel.BjpoSbz_.js +1 -0
- package/dist/docs/assets/chunks/chunk-4BX2VUAB.BK2rKt6W.js +1 -0
- package/dist/docs/assets/chunks/chunk-4TB4RGXK.DRLV8RnF.js +206 -0
- package/dist/docs/assets/chunks/chunk-55IACEB6.DaKjxtb7.js +1 -0
- package/dist/docs/assets/chunks/chunk-EDXVE4YY.C5sPCIT1.js +1 -0
- package/dist/docs/assets/chunks/chunk-FMBD7UC4.CSGWyNTB.js +15 -0
- package/dist/docs/assets/chunks/chunk-OYMX7WX6.D5tK9XEr.js +231 -0
- package/dist/docs/assets/chunks/chunk-QZHKN3VN.BeZGd1UZ.js +1 -0
- package/dist/docs/assets/chunks/chunk-YZCP3GAM.U_tfWwQR.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.BgxOlMHw.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.BgxOlMHw.js +1 -0
- package/dist/docs/assets/chunks/clone.DRuGBKZC.js +1 -0
- package/dist/docs/assets/chunks/cose-bilkent-S5V4N54A.DVeRXIb6.js +1 -0
- package/dist/docs/assets/chunks/cytoscape.esm.BQk4lpUV.js +331 -0
- package/dist/docs/assets/chunks/dagre-KV5264BT.BpKJAeRZ.js +4 -0
- package/dist/docs/assets/chunks/defaultLocale.C4B-KCzX.js +1 -0
- package/dist/docs/assets/chunks/diagram-5BDNPKRD.BQOtrd1Z.js +10 -0
- package/dist/docs/assets/chunks/diagram-G4DWMVQ6.CSDAhjPI.js +24 -0
- package/dist/docs/assets/chunks/diagram-MMDJMWI5.Dpztst2S.js +43 -0
- package/dist/docs/assets/chunks/diagram-TYMM5635.qJHRizHR.js +24 -0
- package/dist/docs/assets/chunks/erDiagram-SMLLAGMA.vbDotH3l.js +85 -0
- package/dist/docs/assets/chunks/flowDiagram-DWJPFMVM.CqS_ZQr4.js +162 -0
- package/dist/docs/assets/chunks/{framework.BCISBCiQ.js → framework.BNw1pucY.js} +6 -6
- package/dist/docs/assets/chunks/ganttDiagram-T4ZO3ILL.DTLdR4pN.js +292 -0
- package/dist/docs/assets/chunks/gitGraphDiagram-UUTBAWPF.D04lnbnr.js +106 -0
- package/dist/docs/assets/chunks/graph.BlfqLJsM.js +1 -0
- package/dist/docs/assets/chunks/infoDiagram-42DDH7IO.tAooImWA.js +2 -0
- package/dist/docs/assets/chunks/init.Gi6I4Gst.js +1 -0
- package/dist/docs/assets/chunks/ishikawaDiagram-UXIWVN3A.ClUsVqnJ.js +70 -0
- package/dist/docs/assets/chunks/journeyDiagram-VCZTEJTY.C3tUgyCg.js +139 -0
- package/dist/docs/assets/chunks/kanban-definition-6JOO6SKY.CtD9-QCe.js +89 -0
- package/dist/docs/assets/chunks/katex.DkKDou_j.js +257 -0
- package/dist/docs/assets/chunks/layout.D38U-LnT.js +1 -0
- package/dist/docs/assets/chunks/linear.BJmssyhN.js +1 -0
- package/dist/docs/assets/chunks/min.DNgXoouU.js +1 -0
- package/dist/docs/assets/chunks/mindmap-definition-QFDTVHPH.Dcp6cxeu.js +96 -0
- package/dist/docs/assets/chunks/ordinal.DBvzRdQf.js +1 -0
- package/dist/docs/assets/chunks/pieDiagram-DEJITSTG.CLDw6zIs.js +30 -0
- package/dist/docs/assets/chunks/quadrantDiagram-34T5L4WZ.CYaeeY4c.js +7 -0
- package/dist/docs/assets/chunks/requirementDiagram-MS252O5E.gMYuRpq2.js +84 -0
- package/dist/docs/assets/chunks/sankeyDiagram-XADWPNL6.CZqyHFbc.js +10 -0
- package/dist/docs/assets/chunks/sequenceDiagram-FGHM5R23.BTsCjUDN.js +157 -0
- package/dist/docs/assets/chunks/stateDiagram-FHFEXIEX.CftT9mLJ.js +1 -0
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.-43J68xB.js +1 -0
- package/dist/docs/assets/chunks/{theme.Dnsd3XOn.js → theme.B_7J9ZsV.js} +2 -2
- package/dist/docs/assets/chunks/timeline-definition-GMOUNBTQ.DbU3WUNw.js +120 -0
- package/dist/docs/assets/chunks/vennDiagram-DHZGUBPP.ixsq-q2u.js +34 -0
- package/dist/docs/assets/chunks/virtual_mermaid-config.DDnGl6nM.js +1 -0
- package/dist/docs/assets/chunks/wardley-RL74JXVD.WRXz-Dux.js +162 -0
- package/dist/docs/assets/chunks/wardleyDiagram-NUSXRM2D.C0ewvgbp.js +20 -0
- package/dist/docs/assets/chunks/xychartDiagram-5P7HB3ND.nAEhF4bO.js +7 -0
- package/dist/docs/assets/deployment.md.D2jQZuFx.js +32 -0
- package/dist/docs/assets/deployment.md.D2jQZuFx.lean.js +1 -0
- package/dist/docs/assets/evals.md.BYvfZ-PO.js +72 -0
- package/dist/docs/assets/evals.md.BYvfZ-PO.lean.js +1 -0
- package/dist/docs/assets/guides_agent-to-agent.md.8oDTfu-E.js +30 -0
- package/dist/docs/assets/guides_agent-to-agent.md.8oDTfu-E.lean.js +1 -0
- package/dist/docs/assets/guides_bitbucket.md.mpevW-VP.js +145 -0
- package/dist/docs/assets/guides_bitbucket.md.mpevW-VP.lean.js +1 -0
- package/dist/docs/assets/guides_cloud-agents.md.Cp1O3u-X.js +15 -0
- package/dist/docs/assets/guides_cloud-agents.md.Cp1O3u-X.lean.js +1 -0
- package/dist/docs/assets/guides_convert-automation.md.CqEyfP6Y.js +43 -0
- package/dist/docs/assets/guides_convert-automation.md.CqEyfP6Y.lean.js +1 -0
- package/dist/docs/assets/guides_github.md.BwpBp3ed.js +156 -0
- package/dist/docs/assets/guides_github.md.BwpBp3ed.lean.js +1 -0
- package/dist/docs/assets/guides_gitlab.md.DaEC3nMk.js +153 -0
- package/dist/docs/assets/guides_gitlab.md.DaEC3nMk.lean.js +1 -0
- package/dist/docs/assets/guides_grokbot-agents.md.CMhZNdEU.js +16 -0
- package/dist/docs/assets/guides_grokbot-agents.md.CMhZNdEU.lean.js +1 -0
- package/dist/docs/assets/guides_improve.md.Bnp4F99w.js +22 -0
- package/dist/docs/assets/guides_improve.md.Bnp4F99w.lean.js +1 -0
- package/dist/docs/assets/guides_mcp-oauth.md.bSFakfCY.js +50 -0
- package/dist/docs/assets/guides_mcp-oauth.md.bSFakfCY.lean.js +1 -0
- package/dist/docs/assets/guides_opentelemetry.md.BKDxQmmd.js +35 -0
- package/dist/docs/assets/guides_opentelemetry.md.BKDxQmmd.lean.js +1 -0
- package/dist/docs/assets/guides_slack.md.Bo96y42E.js +70 -0
- package/dist/docs/assets/guides_slack.md.Bo96y42E.lean.js +1 -0
- package/dist/docs/assets/guides_webhooks.md.1A72_VEE.js +92 -0
- package/dist/docs/assets/guides_webhooks.md.1A72_VEE.lean.js +1 -0
- package/dist/docs/assets/hillclimbing.md.D4E1o5Sa.js +7 -0
- package/dist/docs/assets/hillclimbing.md.D4E1o5Sa.lean.js +1 -0
- package/dist/docs/assets/index.md.C-t81M5J.js +17 -0
- package/dist/docs/assets/index.md.C-t81M5J.lean.js +1 -0
- package/dist/docs/assets/{quickstart.md.DdQOF7Y8.js → quickstart.md.DAvVhuuU.js} +30 -38
- package/dist/docs/assets/quickstart.md.DAvVhuuU.lean.js +1 -0
- package/dist/docs/assets/{reference_agent-config.md.CvoL6pof.js → reference_agent-config.md.DGPyw7ms.js} +1 -1
- package/dist/docs/assets/{reference_agent-config.md.CvoL6pof.lean.js → reference_agent-config.md.DGPyw7ms.lean.js} +1 -1
- package/dist/docs/assets/{reference_artifacts.md.Dior32Qw.js → reference_artifacts.md.Bu_4HmsD.js} +1 -1
- package/dist/docs/assets/{reference_artifacts.md.Dior32Qw.lean.js → reference_artifacts.md.Bu_4HmsD.lean.js} +1 -1
- package/dist/docs/assets/{reference_channels.md.CAo-iK4j.js → reference_channels.md.nFWbzAic.js} +2 -12
- package/dist/docs/assets/{reference_channels.md.CAo-iK4j.lean.js → reference_channels.md.nFWbzAic.lean.js} +1 -1
- package/dist/docs/assets/{reference_cli.md.Deg7849l.js → reference_cli.md.DLWDz9ij.js} +5 -3
- package/dist/docs/assets/{reference_cli.md.Deg7849l.lean.js → reference_cli.md.DLWDz9ij.lean.js} +1 -1
- package/dist/docs/assets/{reference_connections.md.BojkC6c5.js → reference_connections.md.CmyrlXfY.js} +4 -4
- package/dist/docs/assets/{reference_connections.md.BojkC6c5.lean.js → reference_connections.md.CmyrlXfY.lean.js} +1 -1
- package/dist/docs/assets/reference_evals.md.DNJzM_yf.js +57 -0
- package/dist/docs/assets/reference_evals.md.DNJzM_yf.lean.js +1 -0
- package/dist/docs/assets/reference_extensions.md.Ceq-qT8d.js +58 -0
- package/dist/docs/assets/reference_extensions.md.Ceq-qT8d.lean.js +1 -0
- package/dist/docs/assets/{reference_hooks.md.BlM_bOg6.js → reference_hooks.md.B7uzNENk.js} +3 -3
- package/dist/docs/assets/{reference_hooks.md.BlM_bOg6.lean.js → reference_hooks.md.B7uzNENk.lean.js} +1 -1
- package/dist/docs/assets/{reference_http-api.md.BwaCo-VO.js → reference_http-api.md.CduHavZ2.js} +3 -3
- package/dist/docs/assets/{reference_http-api.md.BwaCo-VO.lean.js → reference_http-api.md.CduHavZ2.lean.js} +1 -1
- package/dist/docs/assets/{reference_instructions.md.CR7XSsGk.js → reference_instructions.md.CU1My5My.js} +1 -1
- package/dist/docs/assets/{reference_instructions.md.CR7XSsGk.lean.js → reference_instructions.md.CU1My5My.lean.js} +1 -1
- package/dist/docs/assets/{reference_playground.md.DLnoaczX.js → reference_playground.md.Ch2d0Iqi.js} +1 -1
- package/dist/docs/assets/{reference_playground.md.DLnoaczX.lean.js → reference_playground.md.Ch2d0Iqi.lean.js} +1 -1
- package/dist/docs/assets/{reference_project-layout.md.BEU8MtQV.js → reference_project-layout.md.BGhgpy9V.js} +3 -3
- package/dist/docs/assets/{reference_project-layout.md.BEU8MtQV.lean.js → reference_project-layout.md.BGhgpy9V.lean.js} +1 -1
- package/dist/docs/assets/{reference_prompt.md.DnaD5dNK.js → reference_prompt.md.Ccp0R53H.js} +1 -1
- package/dist/docs/assets/{reference_prompt.md.DnaD5dNK.lean.js → reference_prompt.md.Ccp0R53H.lean.js} +1 -1
- package/dist/docs/assets/{reference_schedules.md.DI_JrHgq.js → reference_schedules.md.B2Nm6FaD.js} +1 -1
- package/dist/docs/assets/{reference_schedules.md.DI_JrHgq.lean.js → reference_schedules.md.B2Nm6FaD.lean.js} +1 -1
- package/dist/docs/assets/{reference_sessions.md.CyXV1MUw.js → reference_sessions.md.1_6Vyv7x.js} +1 -1
- package/dist/docs/assets/{reference_sessions.md.CyXV1MUw.lean.js → reference_sessions.md.1_6Vyv7x.lean.js} +1 -1
- package/dist/docs/assets/{reference_skills.md.l2ezAcaN.js → reference_skills.md.DjQkRefx.js} +1 -1
- package/dist/docs/assets/{reference_skills.md.l2ezAcaN.lean.js → reference_skills.md.DjQkRefx.lean.js} +1 -1
- package/dist/docs/assets/{reference_subagents.md.CfsIloPm.js → reference_subagents.md.BHsSMMyO.js} +2 -2
- package/dist/docs/assets/{reference_subagents.md.CfsIloPm.lean.js → reference_subagents.md.BHsSMMyO.lean.js} +1 -1
- package/dist/docs/assets/{reference_tools.md.aGrn99hP.js → reference_tools.md.BYzUTeVA.js} +4 -4
- package/dist/docs/assets/{reference_tools.md.aGrn99hP.lean.js → reference_tools.md.BYzUTeVA.lean.js} +1 -1
- package/dist/docs/assets/{style.DCD_zyg3.css → style.Cfo2vbik.css} +1 -1
- package/dist/docs/assets/{templates_agentic-owners.md.BZSH4N9z.js → templates_agentic-owners.md.9M575F5C.js} +1 -1
- package/dist/docs/assets/{templates_agentic-owners.md.BZSH4N9z.lean.js → templates_agentic-owners.md.9M575F5C.lean.js} +1 -1
- package/dist/docs/assets/{templates_pr-autofixer.md.Bds_XWcV.js → templates_pr-autofixer.md.ws0DDXDy.js} +1 -1
- package/dist/docs/assets/{templates_pr-autofixer.md.Bds_XWcV.lean.js → templates_pr-autofixer.md.ws0DDXDy.lean.js} +1 -1
- package/dist/docs/assets/{templates_security-reviewer.md.lshxbCLK.js → templates_security-reviewer.md.KEFYXzfK.js} +1 -1
- package/dist/docs/assets/{templates_security-reviewer.md.lshxbCLK.lean.js → templates_security-reviewer.md.KEFYXzfK.lean.js} +1 -1
- package/dist/docs/assets/templates_thermo-quality-review.md.VNJ_mohX.js +3 -0
- package/dist/docs/assets/templates_thermo-quality-review.md.VNJ_mohX.lean.js +1 -0
- package/dist/docs/assets/templates_thermo-review.md.Hi3zWOkP.js +3 -0
- package/dist/docs/assets/templates_thermo-review.md.Hi3zWOkP.lean.js +1 -0
- package/dist/docs/assets/{templates_triage.md.Co4UNzkZ.js → templates_triage.md.CVGe_FG6.js} +1 -1
- package/dist/docs/assets/{templates_triage.md.Co4UNzkZ.lean.js → templates_triage.md.CVGe_FG6.lean.js} +1 -1
- package/dist/docs/assets/troubleshooting.md.mnfFG2Em.js +1 -0
- package/dist/docs/assets/troubleshooting.md.mnfFG2Em.lean.js +1 -0
- package/dist/docs/building-with-agents.html +47 -18
- package/dist/docs/building-with-agents.md +94 -84
- package/dist/docs/deployment.html +62 -48
- package/dist/docs/deployment.md +117 -364
- package/dist/docs/evals.html +88 -194
- package/dist/docs/evals.md +146 -673
- package/dist/docs/guides/agent-to-agent.html +65 -12
- package/dist/docs/guides/agent-to-agent.md +125 -91
- package/dist/docs/guides/bitbucket.html +182 -14
- package/dist/docs/guides/bitbucket.md +249 -48
- package/dist/docs/guides/cloud-agents.html +49 -10
- package/dist/docs/guides/cloud-agents.md +123 -66
- package/dist/docs/guides/convert-automation.html +83 -19
- package/dist/docs/guides/convert-automation.md +156 -147
- package/dist/docs/guides/github.html +187 -62
- package/dist/docs/guides/github.md +260 -245
- package/dist/docs/guides/gitlab.html +187 -15
- package/dist/docs/guides/gitlab.md +249 -50
- package/dist/docs/guides/grokbot-agents.html +51 -11
- package/dist/docs/guides/grokbot-agents.md +116 -63
- package/dist/docs/guides/improve.html +51 -10
- package/dist/docs/guides/improve.md +111 -58
- package/dist/docs/guides/mcp-oauth.html +77 -22
- package/dist/docs/guides/mcp-oauth.md +111 -121
- package/dist/docs/guides/opentelemetry.html +72 -30
- package/dist/docs/guides/opentelemetry.md +105 -187
- package/dist/docs/guides/slack.html +89 -24
- package/dist/docs/guides/slack.md +170 -191
- package/dist/docs/guides/webhooks.html +100 -200
- package/dist/docs/guides/webhooks.md +154 -386
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +47 -11
- package/dist/docs/hillclimbing.md +101 -55
- package/dist/docs/index.html +57 -12
- package/dist/docs/index.md +83 -150
- package/dist/docs/llms-full.txt +6244 -10784
- package/dist/docs/llms.txt +23 -46
- package/dist/docs/quickstart.html +70 -45
- package/dist/docs/quickstart.md +44 -105
- package/dist/docs/reference/agent-config.html +41 -8
- package/dist/docs/reference/artifacts.html +41 -8
- package/dist/docs/reference/channels.html +41 -18
- package/dist/docs/reference/channels.md +0 -16
- package/dist/docs/reference/cli.html +44 -9
- package/dist/docs/reference/cli.md +2 -16
- package/dist/docs/reference/connections.html +43 -10
- package/dist/docs/reference/connections.md +3 -5
- package/dist/docs/reference/evals.html +116 -0
- package/dist/docs/reference/evals.md +293 -0
- package/dist/docs/reference/extensions.html +83 -54
- package/dist/docs/reference/extensions.md +127 -199
- package/dist/docs/reference/hooks.html +42 -9
- package/dist/docs/reference/hooks.md +34 -36
- package/dist/docs/reference/http-api.html +42 -9
- package/dist/docs/reference/http-api.md +5 -5
- package/dist/docs/reference/instructions.html +41 -8
- package/dist/docs/reference/playground.html +40 -7
- package/dist/docs/reference/playground.md +2 -2
- package/dist/docs/reference/project-layout.html +42 -9
- package/dist/docs/reference/project-layout.md +3 -4
- package/dist/docs/reference/prompt.html +41 -8
- package/dist/docs/reference/schedules.html +41 -8
- package/dist/docs/reference/sessions.html +40 -7
- package/dist/docs/reference/sessions.md +5 -4
- package/dist/docs/reference/skills.html +41 -8
- package/dist/docs/reference/subagents.html +41 -8
- package/dist/docs/reference/subagents.md +2 -4
- package/dist/docs/reference/tools.html +43 -10
- package/dist/docs/reference/tools.md +2 -5
- package/dist/docs/templates/agentic-owners.html +41 -8
- package/dist/docs/templates/pr-autofixer.html +41 -8
- package/dist/docs/templates/security-reviewer.html +41 -8
- package/dist/docs/templates/thermo-quality-review.html +62 -0
- package/dist/docs/templates/thermo-quality-review.md +75 -0
- package/dist/docs/templates/thermo-review.html +62 -0
- package/dist/docs/templates/thermo-review.md +74 -0
- package/dist/docs/templates/triage.html +41 -8
- package/dist/docs/troubleshooting.html +41 -8
- package/dist/docs/troubleshooting.md +97 -67
- package/dist/evals/assertions.js +19 -19
- package/dist/evals/expect.js +1 -1
- package/dist/evals/judge.js +1 -1
- package/dist/evals/reporters.d.ts.map +1 -1
- package/dist/evals/reporters.js +8 -8
- package/dist/evals/run-facts.js +2 -2
- package/dist/evals.d.ts +1 -1
- package/dist/evals.d.ts.map +1 -1
- package/dist/evals.js +7 -7
- package/dist/extensions/cursor-cloud-agents/extension.js +1 -1
- package/dist/extensions/cursor-cloud-agents/lib/backend.js +3 -3
- package/dist/extensions/cursor-cloud-agents/lib/fleet.js +1 -1
- package/dist/extensions/cursor-cloud-agents/lib/repos.js +6 -6
- package/dist/extensions/cursor-cloud-agents/lib/transcript.d.ts.map +1 -1
- package/dist/extensions/cursor-cloud-agents/lib/transcript.js +2 -2
- package/dist/extensions/cursor-cloud-agents/skills/handoff.md +3 -7
- package/dist/extensions/cursor-cloud-agents/tools/list.js +1 -1
- package/dist/extensions/improve/extension.d.ts +3 -1
- package/dist/extensions/improve/extension.d.ts.map +1 -1
- package/dist/extensions/improve/extension.js +4 -2
- package/dist/extensions/improve/skills/yourself.js +2 -2
- package/dist/extensions/slack-communication/extension.d.ts +28 -0
- package/dist/extensions/slack-communication/extension.d.ts.map +1 -0
- package/dist/extensions/slack-communication/extension.js +32 -0
- package/dist/extensions/slack-communication/skills/slack-voice.d.ts +5 -0
- package/dist/extensions/slack-communication/skills/slack-voice.d.ts.map +1 -0
- package/dist/extensions/slack-communication/skills/slack-voice.js +54 -0
- package/dist/extensions/slack-communication/tools/delete-message.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/delete-message.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/delete-message.js +29 -0
- package/dist/extensions/slack-communication/tools/edit-message.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/edit-message.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/edit-message.js +37 -0
- package/dist/extensions/slack-communication/tools/post-card.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/post-card.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/post-card.js +25 -0
- package/dist/extensions/slack-communication/tools/post-file.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/post-file.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/post-file.js +76 -0
- package/dist/extensions/slack-communication/tools/post-update.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/post-update.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/post-update.js +36 -0
- package/dist/extensions/slack-communication/tools/react.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/react.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/react.js +27 -0
- package/dist/extensions/slack-communication/tools/set-status.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/set-status.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/set-status.js +18 -0
- package/dist/files-backends/cursor-hosted.d.ts +18 -6
- package/dist/files-backends/cursor-hosted.d.ts.map +1 -1
- package/dist/files-backends/cursor-hosted.js +357 -74
- package/dist/files-backends/local-fs.js +1 -1
- package/dist/files.d.ts +15 -0
- package/dist/files.d.ts.map +1 -1
- package/dist/filesystem.d.ts +46 -2
- package/dist/filesystem.d.ts.map +1 -1
- package/dist/filesystem.js +160 -113
- package/dist/index.d.ts +7 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -7
- package/dist/internal/advertise-tools.js +6 -6
- package/dist/internal/approval-gate.js +1 -1
- package/dist/internal/artifacts-store.js +3 -3
- package/dist/internal/as-of.js +2 -2
- package/dist/internal/authored-alias-hooks.js +1 -1
- package/dist/internal/builtin-tools/reminders.js +2 -2
- package/dist/internal/chat-client.js +5 -5
- package/dist/internal/cli-ax.d.ts +7 -0
- package/dist/internal/cli-ax.d.ts.map +1 -1
- package/dist/internal/cli-ax.js +140 -27
- package/dist/internal/cli-bitbucket.js +10 -10
- package/dist/internal/cli-convert-automation.js +2 -2
- package/dist/internal/cli-cursor.d.ts +3 -11
- package/dist/internal/cli-cursor.d.ts.map +1 -1
- package/dist/internal/cli-cursor.js +5 -10
- package/dist/internal/cli-deploy.d.ts +12 -2
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +328 -96
- package/dist/internal/cli-docs.js +5 -5
- package/dist/internal/cli-github.js +15 -16
- package/dist/internal/cli-gitlab.js +10 -10
- package/dist/internal/cli-manifest.js +1 -1
- package/dist/internal/cli-mcp-oauth.d.ts.map +1 -1
- package/dist/internal/cli-mcp-oauth.js +5 -5
- package/dist/internal/cli-mcp.js +3 -3
- package/dist/internal/cli-skills.js +2 -2
- package/dist/internal/cli-slack.js +5 -5
- package/dist/internal/cloud-turn-cost.js +1 -1
- package/dist/internal/continuation-identity.d.ts.map +1 -1
- package/dist/internal/continuation-identity.js +15 -9
- package/dist/internal/conversation-mirror.d.ts.map +1 -1
- package/dist/internal/conversation-mirror.js +33 -2
- package/dist/internal/convert-automation/convert-workflow.js +25 -24
- package/dist/internal/convert-automation/types.d.ts +8 -0
- package/dist/internal/convert-automation/types.d.ts.map +1 -1
- package/dist/internal/cursor/account-mcp.d.ts +2 -2
- package/dist/internal/cursor/account-mcp.d.ts.map +1 -1
- package/dist/internal/cursor/account-mcp.js +32 -27
- package/dist/internal/cursor/backend-client.d.ts +15 -10
- package/dist/internal/cursor/backend-client.d.ts.map +1 -1
- package/dist/internal/cursor/backend-client.js +17 -11
- package/dist/internal/cursor/credentials.js +1 -1
- package/dist/internal/cursor/hosted-store-secrets.d.ts +16 -0
- package/dist/internal/cursor/hosted-store-secrets.d.ts.map +1 -1
- package/dist/internal/cursor/hosted-store-secrets.js +25 -0
- package/dist/internal/cursor-account-mcp-auth.js +9 -9
- package/dist/internal/cursor-agent-template.d.ts +1 -1
- package/dist/internal/cursor-agent-template.d.ts.map +1 -1
- package/dist/internal/cursor-agent-template.js +2 -0
- package/dist/internal/cursor-deployment-relay.js +9 -9
- package/dist/internal/cursor-event-relay.js +10 -10
- package/dist/internal/cursor-relay-core.js +2 -2
- package/dist/internal/deploy-client.d.ts +106 -9
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +171 -23
- package/dist/internal/deploy-manifest.d.ts +13 -0
- package/dist/internal/deploy-manifest.d.ts.map +1 -1
- package/dist/internal/deploy-manifest.js +32 -16
- package/dist/internal/discovery/agent-config.d.ts +5 -0
- package/dist/internal/discovery/agent-config.d.ts.map +1 -1
- package/dist/internal/discovery/agent-config.js +27 -0
- package/dist/internal/discovery/agent.d.ts.map +1 -1
- package/dist/internal/discovery/agent.js +10 -8
- package/dist/internal/discovery/channels.js +4 -4
- package/dist/internal/discovery/connections.js +4 -4
- package/dist/internal/discovery/cursor-plugin.js +12 -12
- package/dist/internal/discovery/extension-overlay.js +3 -3
- package/dist/internal/discovery/extensions.js +6 -6
- package/dist/internal/discovery/info.js +9 -9
- package/dist/internal/discovery/instructions.js +1 -1
- package/dist/internal/discovery/project.d.ts.map +1 -1
- package/dist/internal/discovery/project.js +4 -4
- package/dist/internal/discovery/services.js +1 -1
- package/dist/internal/discovery/tools.js +1 -1
- package/dist/internal/docs-site.js +2 -2
- package/dist/internal/env-file.js +1 -1
- package/dist/internal/eval-run-store.d.ts.map +1 -1
- package/dist/internal/eval-run-store.js +7 -7
- package/dist/internal/eval-runner.js +14 -14
- package/dist/internal/evals-client.js +4 -4
- package/dist/internal/event-log.js +8 -8
- package/dist/internal/event-mapper.d.ts +18 -0
- package/dist/internal/event-mapper.d.ts.map +1 -1
- package/dist/internal/event-mapper.js +34 -2
- package/dist/internal/filesystem/format.d.ts.map +1 -1
- package/dist/internal/filesystem/format.js +6 -3
- package/dist/internal/filesystem/scratch.js +3 -3
- package/dist/internal/filesystem/tools.d.ts.map +1 -1
- package/dist/internal/filesystem/tools.js +7 -7
- package/dist/internal/filesystem/walk.d.ts +7 -4
- package/dist/internal/filesystem/walk.d.ts.map +1 -1
- package/dist/internal/filesystem/walk.js +35 -12
- package/dist/internal/framework-file-storage.d.ts +6 -2
- package/dist/internal/framework-file-storage.d.ts.map +1 -1
- package/dist/internal/framework-file-storage.js +91 -2
- package/dist/internal/framework-storage-selection.d.ts +0 -6
- package/dist/internal/framework-storage-selection.d.ts.map +1 -1
- package/dist/internal/framework-storage-selection.js +2 -11
- package/dist/internal/github-fanout.js +3 -3
- package/dist/internal/guest-network.js +4 -4
- package/dist/internal/host-files.js +1 -1
- package/dist/internal/host-kv.js +2 -2
- package/dist/internal/hosted-admission-adapter.d.ts +5 -0
- package/dist/internal/hosted-admission-adapter.d.ts.map +1 -1
- package/dist/internal/hosted-catch-protocol.d.ts.map +1 -1
- package/dist/internal/hosted-catch-protocol.js +2 -4
- package/dist/internal/hosted-catch.js +1 -1
- package/dist/internal/hosted-delivery-protocol.d.ts +46 -0
- package/dist/internal/hosted-delivery-protocol.d.ts.map +1 -1
- package/dist/internal/hosted-delivery-protocol.js +126 -9
- package/dist/internal/hosted-delivery.d.ts.map +1 -1
- package/dist/internal/hosted-delivery.js +209 -64
- package/dist/internal/hosted-execution-diag.js +3 -3
- package/dist/internal/hosted-execution-latency.d.ts +80 -0
- package/dist/internal/hosted-execution-latency.d.ts.map +1 -0
- package/dist/internal/hosted-execution-latency.js +220 -0
- package/dist/internal/hosting.d.ts +5 -5
- package/dist/internal/hosting.d.ts.map +1 -1
- package/dist/internal/hosting.js +5 -6
- package/dist/internal/http-channel-define.d.ts +11 -0
- package/dist/internal/http-channel-define.d.ts.map +1 -0
- package/dist/internal/http-channel-define.js +18 -0
- package/dist/internal/http-channel.d.ts +2 -3
- package/dist/internal/http-channel.d.ts.map +1 -1
- package/dist/internal/http-channel.js +3 -4
- package/dist/internal/http-control-plane-session.d.ts +7 -3
- package/dist/internal/http-control-plane-session.d.ts.map +1 -1
- package/dist/internal/http-control-plane-session.js +22 -10
- package/dist/internal/incoming-headers-to-fetch.d.ts +10 -0
- package/dist/internal/incoming-headers-to-fetch.d.ts.map +1 -0
- package/dist/internal/incoming-headers-to-fetch.js +41 -0
- package/dist/internal/init-interview.js +7 -7
- package/dist/internal/init-project.d.ts.map +1 -1
- package/dist/internal/init-project.js +18 -14
- package/dist/internal/init-scaffold.js +1 -1
- package/dist/internal/inline-stdio-mcp.js +2 -2
- package/dist/internal/install-cursor-skills.js +10 -10
- package/dist/internal/json-schema.js +1 -1
- package/dist/internal/local-control-plane.d.ts.map +1 -1
- package/dist/internal/local-control-plane.js +3 -3
- package/dist/internal/local-env.js +3 -3
- package/dist/internal/log-ring.js +1 -1
- package/dist/internal/logs-client.js +1 -1
- package/dist/internal/mcp-endpoint.js +8 -8
- package/dist/internal/mcp-host.js +4 -4
- package/dist/internal/mcp-oauth-on-demand.js +3 -3
- package/dist/internal/mcp-oauth.js +5 -5
- package/dist/internal/net.js +2 -2
- package/dist/internal/otel/config.js +3 -3
- package/dist/internal/otel/runtime.js +13 -13
- package/dist/internal/peer-connections.js +2 -2
- package/dist/internal/platform-schedule-sync.js +1 -1
- package/dist/internal/platform-timers.js +1 -1
- package/dist/internal/playground/static.js +2 -2
- package/dist/internal/playground/toolchain.js +2 -2
- package/dist/internal/playground-proxy.js +3 -3
- package/dist/internal/process-memory-telemetry.js +1 -1
- package/dist/internal/reminder-runner.d.ts.map +1 -1
- package/dist/internal/reminder-runner.js +7 -7
- package/dist/internal/reminder-store.js +1 -1
- package/dist/internal/request-error-status.d.ts.map +1 -1
- package/dist/internal/request-error-status.js +9 -0
- package/dist/internal/resolved-connections.js +8 -8
- package/dist/internal/result-output.d.ts +14 -2
- package/dist/internal/result-output.d.ts.map +1 -1
- package/dist/internal/result-output.js +45 -2
- package/dist/internal/router.js +4 -4
- package/dist/internal/run-client.js +2 -2
- package/dist/internal/schedule-runner.js +6 -6
- package/dist/internal/scm/pr-url.d.ts +3 -1
- package/dist/internal/scm/pr-url.d.ts.map +1 -1
- package/dist/internal/scm/pr-url.js +10 -2
- package/dist/internal/sdk-runner.d.ts.map +1 -1
- package/dist/internal/sdk-runner.js +14 -15
- package/dist/internal/serve-restart.js +1 -1
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +175 -126
- package/dist/internal/session-cost.js +3 -3
- package/dist/internal/session-engine.d.ts +34 -0
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +386 -184
- package/dist/internal/session-run-log.d.ts.map +1 -1
- package/dist/internal/session-run-log.js +4 -4
- package/dist/internal/session-store.d.ts +47 -3
- package/dist/internal/session-store.d.ts.map +1 -1
- package/dist/internal/session-store.js +198 -33
- package/dist/internal/sessions-client.js +3 -3
- package/dist/internal/skill-catalog.d.ts +28 -0
- package/dist/internal/skill-catalog.d.ts.map +1 -0
- package/dist/internal/skill-catalog.js +44 -0
- package/dist/internal/slack-thread-key.d.ts +7 -0
- package/dist/internal/slack-thread-key.d.ts.map +1 -0
- package/dist/internal/slack-thread-key.js +10 -0
- package/dist/internal/sleep.js +1 -1
- package/dist/internal/storage-coordinator.d.ts +17 -0
- package/dist/internal/storage-coordinator.d.ts.map +1 -1
- package/dist/internal/storage-coordinator.js +111 -11
- package/dist/internal/storage.d.ts +2 -0
- package/dist/internal/storage.d.ts.map +1 -0
- package/dist/internal/storage.js +1 -0
- package/dist/internal/store-mirror.js +4 -4
- package/dist/internal/terminal-style.js +2 -2
- package/dist/internal/tool-result.js +3 -3
- package/dist/internal/trajectory.js +7 -7
- package/dist/internal/turn-governor.js +2 -2
- package/dist/internal/turn-outbox.js +1 -1
- package/dist/internal/update-check.js +2 -2
- package/dist/internal/v2-hosting.d.ts +9 -0
- package/dist/internal/v2-hosting.d.ts.map +1 -1
- package/dist/internal/v2-hosting.js +10 -0
- package/dist/internal/workspace.d.ts +13 -10
- package/dist/internal/workspace.d.ts.map +1 -1
- package/dist/internal/workspace.js +17 -16
- package/dist/kv/memory-kv.d.ts +6 -4
- package/dist/kv/memory-kv.d.ts.map +1 -1
- package/dist/kv/memory-kv.js +9 -7
- package/dist/kv.d.ts +4 -7
- package/dist/kv.d.ts.map +1 -1
- package/dist/kv.js +4 -7
- package/dist/otel-public.d.ts +7 -0
- package/dist/otel-public.d.ts.map +1 -0
- package/dist/otel-public.js +5 -0
- package/dist/otel.d.ts +7 -2
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +7 -2
- package/dist/playground/assets/index-B1c1LeIf.js +67 -0
- package/dist/playground/assets/index-CK2LX3iD.css +1 -0
- package/dist/playground/index.html +2 -2
- package/dist/prompt.js +1 -1
- package/dist/result.d.ts +10 -4
- package/dist/result.d.ts.map +1 -1
- package/dist/result.js +9 -3
- package/dist/storage-backends/cursor-hosted-v2.js +2 -2
- package/dist/storage-backends/cursor-hosted.d.ts +5 -17
- package/dist/storage-backends/cursor-hosted.d.ts.map +1 -1
- package/dist/storage-backends/cursor-hosted.js +6 -20
- package/dist/storage-backends/file-kv.js +7 -7
- package/dist/storage.d.ts +20 -2
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +7 -6
- package/dist/types.d.ts +76 -11
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +12 -4
- package/docs/README.md +85 -152
- package/docs/building-with-agents.md +96 -86
- package/docs/deployment.md +118 -365
- package/docs/evals.md +147 -674
- package/docs/guides/agent-to-agent.md +126 -92
- package/docs/guides/bitbucket.md +250 -49
- package/docs/guides/cloud-agents.md +124 -67
- package/docs/guides/convert-automation.md +157 -148
- package/docs/guides/github.md +261 -246
- package/docs/guides/gitlab.md +250 -51
- package/docs/guides/grokbot-agents.md +117 -64
- package/docs/guides/improve.md +112 -59
- package/docs/guides/mcp-oauth.md +112 -122
- package/docs/guides/opentelemetry.md +106 -188
- package/docs/guides/slack.md +171 -192
- package/docs/guides/webhooks.md +155 -387
- package/docs/hillclimbing.md +102 -56
- package/docs/quickstart.md +45 -106
- package/docs/reference/channels.md +0 -16
- package/docs/reference/cli.md +2 -16
- package/docs/reference/connections.md +3 -5
- package/docs/reference/evals.md +298 -0
- package/docs/reference/extensions.md +128 -200
- package/docs/reference/hooks.md +34 -36
- package/docs/reference/http-api.md +5 -5
- package/docs/reference/playground.md +2 -2
- package/docs/reference/project-layout.md +3 -4
- package/docs/reference/sessions.md +5 -4
- package/docs/reference/subagents.md +2 -4
- package/docs/reference/tools.md +2 -5
- package/docs/templates/thermo-quality-review.md +80 -0
- package/docs/templates/thermo-review.md +79 -0
- package/docs/troubleshooting.md +98 -68
- package/package.json +55 -37
- package/skills/framework-map/SKILL.md +2 -2
- package/skills/github/SKILL.md +21 -13
- package/skills/otel/SKILL.md +8 -18
- package/src/bin/agent-serve.ts +115 -72
- package/src/channels/bitbucket/api.ts +8 -8
- package/src/channels/bitbucket/binding.ts +4 -4
- package/src/channels/bitbucket/bitbucket-channel.ts +1 -1
- package/src/channels/bitbucket/bitbucket-webhook.ts +1 -1
- package/src/channels/bitbucket/checks.ts +3 -4
- package/src/channels/bitbucket/cursor-account.ts +1 -1
- package/src/channels/bitbucket/events.ts +1 -1
- package/src/channels/change-monitors/change-monitors-channel.ts +2 -2
- package/src/channels/checks.ts +5 -4
- package/src/channels/deployments/deployments-channel.ts +1 -1
- package/src/channels/github/api.ts +1 -1
- package/src/channels/github/checks.ts +1 -1
- package/src/channels/github/cursor-account.ts +3 -3
- package/src/channels/github/defaults.ts +8 -4
- package/src/channels/github/events.ts +1 -1
- package/src/channels/github/forward.ts +8 -8
- package/src/channels/github/github-channel.ts +48 -21
- package/src/channels/github/progress.ts +7 -2
- package/src/channels/github/state.ts +6 -0
- package/src/channels/github/types.ts +6 -0
- package/src/channels/gitlab/binding.ts +4 -4
- package/src/channels/gitlab/checks.ts +3 -4
- package/src/channels/gitlab/cursor-account.ts +1 -1
- package/src/channels/gitlab/events.ts +1 -1
- package/src/channels/gitlab/gitlab-channel.ts +1 -1
- package/src/channels/gitlab/gitlab-webhook.ts +1 -1
- package/src/channels/gitlab/replay.ts +2 -2
- package/src/channels/origin/binding.ts +6 -3
- package/src/channels/origin/checks.ts +27 -17
- package/src/channels/origin/cursor-account.ts +1 -1
- package/src/channels/origin/defaults.ts +5 -1
- package/src/channels/origin/events.ts +1 -1
- package/src/channels/origin/origin-channel.ts +2 -1
- package/src/channels/origin/origin-webhook.ts +2 -2
- package/src/channels/slack/agentic-delivery.ts +661 -0
- package/src/channels/slack/agentic-posted.ts +148 -0
- package/src/channels/slack/agentic-signals.ts +248 -0
- package/src/channels/slack/api.ts +51 -11
- package/src/channels/slack/approvals.ts +1 -1
- package/src/channels/slack/attachments.ts +1 -1
- package/src/channels/slack/auth.ts +3 -1
- package/src/channels/slack/blocks.ts +3 -3
- package/src/channels/slack/bot-mentions.ts +5 -7
- package/src/channels/slack/channel-watch.ts +1 -1
- package/src/channels/slack/cli-project.ts +3 -3
- package/src/channels/slack/defaults.ts +109 -37
- package/src/channels/slack/dispatch.ts +419 -168
- package/src/channels/slack/doctor.ts +1 -1
- package/src/channels/slack/eval-directive.ts +1 -1
- package/src/channels/slack/external-policy.ts +15 -2
- package/src/channels/slack/footer.ts +108 -0
- package/src/channels/slack/index.ts +2 -0
- package/src/channels/slack/interactive.ts +4 -2
- package/src/channels/slack/live-delivery.ts +23 -7
- package/src/channels/slack/log.ts +1 -1
- package/src/channels/slack/manifest.ts +1 -1
- package/src/channels/slack/nudge-carrier.ts +1 -1
- package/src/channels/slack/nudge-store.ts +2 -2
- package/src/channels/slack/paint-start.ts +93 -0
- package/src/channels/slack/placeholder.ts +366 -0
- package/src/channels/slack/progress-delivery.ts +14 -1
- package/src/channels/slack/reasoning-chip.ts +48 -0
- package/src/channels/slack/recording-sink.ts +176 -0
- package/src/channels/slack/reply-options.ts +71 -15
- package/src/channels/slack/setup.ts +1 -1
- package/src/channels/slack/slack-channel.ts +81 -14
- package/src/channels/slack/socket-mode.ts +2 -2
- package/src/channels/slack/thread-context.ts +5 -5
- package/src/channels/slack/tool-approval-events.ts +54 -38
- package/src/channels/slack/tool-cards.ts +1 -1
- package/src/channels/slack/tool-chip.ts +36 -0
- package/src/channels/slack/types.ts +47 -7
- package/src/channels/slack/upload.ts +142 -0
- package/src/channels.ts +12 -30
- package/src/dashboard-session-url.ts +32 -0
- package/src/evals/assertions.ts +19 -19
- package/src/evals/expect.ts +1 -1
- package/src/evals/judge.ts +1 -1
- package/src/evals/reporters.ts +8 -9
- package/src/evals/run-facts.ts +2 -2
- package/src/evals.ts +7 -10
- package/src/extensions/cursor-cloud-agents/extension.ts +1 -1
- package/src/extensions/cursor-cloud-agents/lib/backend.ts +3 -3
- package/src/extensions/cursor-cloud-agents/lib/fleet.ts +1 -1
- package/src/extensions/cursor-cloud-agents/lib/repos.ts +3 -3
- package/src/extensions/cursor-cloud-agents/lib/transcript.ts +3 -4
- package/src/extensions/cursor-cloud-agents/skills/handoff.md +3 -7
- package/src/extensions/cursor-cloud-agents/tools/list.ts +1 -1
- package/src/extensions/improve/extension.ts +4 -2
- package/src/extensions/improve/skills/yourself.ts +2 -2
- package/src/extensions/slack-communication/evals/harness.ts +728 -0
- package/src/extensions/slack-communication/evals/slack-communication.eval.ts +953 -0
- package/src/extensions/slack-communication/evals/slack-placeholder.eval.ts +194 -0
- package/src/extensions/slack-communication/extension.ts +45 -0
- package/src/extensions/slack-communication/skills/slack-voice.ts +59 -0
- package/src/extensions/slack-communication/tools/delete-message.ts +34 -0
- package/src/extensions/slack-communication/tools/edit-message.ts +42 -0
- package/src/extensions/slack-communication/tools/post-card.ts +28 -0
- package/src/extensions/slack-communication/tools/post-file.ts +85 -0
- package/src/extensions/slack-communication/tools/post-update.ts +41 -0
- package/src/extensions/slack-communication/tools/react.ts +33 -0
- package/src/extensions/slack-communication/tools/set-status.ts +21 -0
- package/src/files-backends/cursor-hosted.ts +502 -98
- package/src/files-backends/local-fs.ts +1 -1
- package/src/files.ts +15 -0
- package/src/filesystem.ts +182 -81
- package/src/index.ts +7 -36
- package/src/internal/advertise-tools.ts +6 -6
- package/src/internal/approval-gate.ts +1 -1
- package/src/internal/artifacts-store.ts +3 -3
- package/src/internal/as-of.ts +2 -2
- package/src/internal/authored-alias-hooks.ts +1 -1
- package/src/internal/authored-loaders.ts +2 -3
- package/src/internal/builtin-tools/reminders.ts +2 -2
- package/src/internal/chat-client.ts +5 -5
- package/src/internal/cli-ax.ts +172 -29
- package/src/internal/cli-bitbucket.ts +11 -11
- package/src/internal/cli-convert-automation.ts +2 -2
- package/src/internal/cli-cursor.ts +5 -16
- package/src/internal/cli-deploy.ts +389 -104
- package/src/internal/cli-docs.ts +5 -5
- package/src/internal/cli-github.ts +16 -19
- package/src/internal/cli-gitlab.ts +11 -11
- package/src/internal/cli-manifest.ts +1 -1
- package/src/internal/cli-mcp-oauth.ts +5 -7
- package/src/internal/cli-mcp.ts +3 -3
- package/src/internal/cli-skills.ts +2 -2
- package/src/internal/cli-slack.ts +5 -5
- package/src/internal/cloud-turn-cost.ts +1 -1
- package/src/internal/continuation-identity.ts +14 -9
- package/src/internal/conversation-mirror.ts +36 -3
- package/src/internal/convert-automation/convert-workflow.ts +27 -27
- package/src/internal/convert-automation/types.ts +9 -0
- package/src/internal/cursor/account-mcp.ts +48 -31
- package/src/internal/cursor/backend-client.ts +28 -17
- package/src/internal/cursor/credentials.ts +1 -1
- package/src/internal/cursor/hosted-store-secrets.ts +34 -0
- package/src/internal/cursor-account-mcp-auth.ts +9 -9
- package/src/internal/cursor-agent-template.ts +2 -0
- package/src/internal/cursor-deployment-relay.ts +10 -10
- package/src/internal/cursor-event-relay.ts +10 -10
- package/src/internal/cursor-relay-core.ts +2 -2
- package/src/internal/deploy-client.ts +266 -24
- package/src/internal/deploy-manifest.ts +46 -8
- package/src/internal/discovery/agent-config.ts +34 -0
- package/src/internal/discovery/agent.ts +14 -6
- package/src/internal/discovery/channels.ts +4 -4
- package/src/internal/discovery/connections.ts +4 -4
- package/src/internal/discovery/cursor-plugin.ts +12 -12
- package/src/internal/discovery/extension-overlay.ts +3 -3
- package/src/internal/discovery/extensions.ts +6 -6
- package/src/internal/discovery/info.ts +9 -9
- package/src/internal/discovery/instructions.ts +1 -1
- package/src/internal/discovery/project.ts +4 -4
- package/src/internal/discovery/services.ts +1 -1
- package/src/internal/discovery/tools.ts +1 -1
- package/src/internal/docs-site.ts +2 -2
- package/src/internal/env-file.ts +2 -2
- package/src/internal/eval-run-store.ts +7 -9
- package/src/internal/eval-runner.ts +20 -20
- package/src/internal/evals-client.ts +6 -6
- package/src/internal/event-log.ts +10 -10
- package/src/internal/event-mapper.ts +37 -2
- package/src/internal/filesystem/format.ts +11 -12
- package/src/internal/filesystem/scratch.ts +3 -3
- package/src/internal/filesystem/tools.ts +8 -8
- package/src/internal/filesystem/walk.ts +61 -16
- package/src/internal/framework-file-storage.ts +104 -4
- package/src/internal/framework-storage-selection.ts +2 -12
- package/src/internal/github-fanout.ts +4 -4
- package/src/internal/guest-network.ts +4 -4
- package/src/internal/host-files.ts +1 -1
- package/src/internal/host-kv.ts +2 -2
- package/src/internal/hosted-admission-adapter.ts +5 -0
- package/src/internal/hosted-catch-protocol.ts +3 -5
- package/src/internal/hosted-catch.ts +1 -1
- package/src/internal/hosted-delivery-protocol.ts +189 -14
- package/src/internal/hosted-delivery.ts +294 -81
- package/src/internal/hosted-execution-diag.ts +3 -3
- package/src/internal/hosted-execution-latency.ts +334 -0
- package/src/internal/hosting.ts +5 -6
- package/src/internal/http-channel-define.ts +27 -0
- package/src/internal/http-channel.ts +3 -4
- package/src/internal/http-control-plane-session.ts +24 -11
- package/src/internal/incoming-headers-to-fetch.ts +54 -0
- package/src/internal/init-interview.ts +7 -7
- package/src/internal/init-project.ts +18 -16
- package/src/internal/init-scaffold.ts +1 -1
- package/src/internal/inline-stdio-mcp.ts +2 -2
- package/src/internal/install-cursor-skills.ts +11 -11
- package/src/internal/json-schema.ts +1 -1
- package/src/internal/local-control-plane.ts +4 -5
- package/src/internal/local-env.ts +3 -3
- package/src/internal/log-ring.ts +1 -1
- package/src/internal/logs-client.ts +1 -1
- package/src/internal/mcp-endpoint.ts +10 -10
- package/src/internal/mcp-host.ts +9 -9
- package/src/internal/mcp-oauth-on-demand.ts +3 -3
- package/src/internal/mcp-oauth.ts +5 -5
- package/src/internal/net.ts +2 -2
- package/src/internal/otel/config.ts +3 -3
- package/src/internal/otel/runtime.ts +14 -14
- package/src/internal/peer-connections.ts +2 -2
- package/src/internal/platform-schedule-sync.ts +1 -1
- package/src/internal/platform-timers.ts +1 -1
- package/src/internal/playground/static.ts +2 -2
- package/src/internal/playground/toolchain.ts +2 -2
- package/src/internal/playground-proxy.ts +3 -3
- package/src/internal/process-memory-telemetry.ts +1 -1
- package/src/internal/reminder-runner.ts +8 -10
- package/src/internal/reminder-store.ts +1 -1
- package/src/internal/request-error-status.ts +9 -0
- package/src/internal/resolved-connections.ts +8 -8
- package/src/internal/result-output.ts +62 -5
- package/src/internal/router.ts +4 -4
- package/src/internal/run-client.ts +2 -2
- package/src/internal/schedule-runner.ts +6 -6
- package/src/internal/scm/pr-url.ts +11 -2
- package/src/internal/sdk-runner.ts +14 -28
- package/src/internal/serve-restart.ts +1 -1
- package/src/internal/server.ts +201 -140
- package/src/internal/session-cost.ts +3 -3
- package/src/internal/session-engine.ts +516 -244
- package/src/internal/session-run-log.ts +4 -6
- package/src/internal/session-store.ts +213 -39
- package/src/internal/sessions-client.ts +3 -3
- package/src/internal/skill-catalog.ts +69 -0
- package/src/internal/slack-thread-key.ts +11 -0
- package/src/internal/sleep.ts +1 -1
- package/src/internal/storage-coordinator.ts +118 -21
- package/src/internal/storage.ts +1 -0
- package/src/internal/store-mirror.ts +4 -4
- package/src/internal/terminal-style.ts +2 -2
- package/src/internal/tool-result.ts +3 -3
- package/src/internal/trajectory.ts +7 -7
- package/src/internal/turn-governor.ts +2 -2
- package/src/internal/turn-outbox.ts +1 -1
- package/src/internal/update-check.ts +2 -2
- package/src/internal/v2-hosting.ts +14 -0
- package/src/internal/workspace.ts +17 -17
- package/src/kv/memory-kv.ts +9 -7
- package/src/kv.ts +4 -7
- package/src/otel-public.ts +24 -0
- package/src/otel.ts +7 -2
- package/src/prompt.ts +1 -1
- package/src/result.ts +10 -8
- package/src/storage-backends/cursor-hosted-v2.ts +2 -2
- package/src/storage-backends/cursor-hosted.ts +6 -23
- package/src/storage-backends/file-kv.ts +7 -7
- package/src/storage.ts +22 -7
- package/src/types.ts +91 -17
- package/templates/agentic-owners/agent/channels/github.ts +3 -6
- package/templates/agentic-owners/agent/lib/github.ts +5 -5
- package/templates/agentic-owners/agent/lib/owners/decision.ts +13 -10
- package/templates/agentic-owners/agent/lib/owners/handles.ts +2 -2
- package/templates/agentic-owners/agent/lib/owners/match.ts +3 -3
- package/templates/agentic-owners/agent/lib/owners/matching.ts +1 -1
- package/templates/agentic-owners/agent/lib/owners/parse.ts +4 -9
- package/templates/agentic-owners/agent/lib/owners/prompt.ts +1 -1
- package/templates/agentic-owners/agent/lib/review.ts +37 -30
- package/templates/agentic-owners/evals/owners.eval.ts +2 -2
- package/templates/agentic-owners/package.json +1 -1
- package/templates/agents-md/agent/lib/collect.ts +16 -10
- package/templates/agents-md/agent/lib/config.ts +1 -1
- package/templates/agents-md/agent/tools/apply_agents.ts +10 -8
- package/templates/agents-md/package.json +1 -1
- package/templates/code-wiki/agent/channels/github.ts +4 -7
- package/templates/code-wiki/agent/lib/repos.ts +1 -1
- package/templates/code-wiki/agent/tools/apply_wiki.ts +3 -4
- package/templates/code-wiki/package.json +1 -1
- package/templates/demo/agent/lib/collect.ts +6 -2
- package/templates/demo/agent/lib/repos.ts +1 -1
- package/templates/demo/agent/tools/record_demo.ts +1 -1
- package/templates/demo/evals/demo.eval.ts +1 -5
- package/templates/demo/package.json +1 -1
- package/templates/grokbot-agents/package.json +1 -1
- package/templates/pr-autofixer/agent/channels/github.ts +16 -13
- package/templates/pr-autofixer/agent/lib/merge-watch.ts +2 -4
- package/templates/pr-autofixer/agent/lib/repos.ts +2 -2
- package/templates/pr-autofixer/agent/lib/webhook-routing.ts +1 -1
- package/templates/pr-autofixer/package.json +1 -1
- package/templates/security-help/agent/lib/repos.ts +1 -1
- package/templates/security-help/package.json +1 -1
- package/templates/security-reviewer/agent/lib/repos.ts +1 -1
- package/templates/security-reviewer/agent/tools/post_findings.ts +1 -3
- package/templates/security-reviewer/package.json +1 -1
- package/templates/thermo-quality-review/README.md +35 -0
- package/templates/thermo-quality-review/agent/agent.ts +8 -0
- package/templates/thermo-quality-review/agent/channels/github.ts +42 -0
- package/templates/thermo-quality-review/agent/instructions.md +43 -0
- package/templates/thermo-quality-review/agent/tools/post_findings.ts +70 -0
- package/templates/thermo-quality-review/evals/evals.config.ts +5 -0
- package/templates/thermo-quality-review/evals/review.eval.ts +62 -0
- package/templates/thermo-quality-review/package.json +18 -0
- package/templates/thermo-quality-review/tsconfig.json +12 -0
- package/templates/thermo-review/README.md +35 -0
- package/templates/thermo-review/agent/agent.ts +8 -0
- package/templates/thermo-review/agent/channels/github.ts +42 -0
- package/templates/thermo-review/agent/instructions.md +40 -0
- package/templates/thermo-review/agent/tools/post_findings.ts +70 -0
- package/templates/thermo-review/evals/evals.config.ts +5 -0
- package/templates/thermo-review/evals/review.eval.ts +53 -0
- package/templates/thermo-review/package.json +18 -0
- package/templates/thermo-review/tsconfig.json +12 -0
- package/templates/triage/agent/lib/actuate.ts +26 -41
- package/templates/triage/agent/lib/parse-queue-event.ts +2 -1
- package/templates/triage/agent/lib/verify-webhook.ts +10 -5
- package/templates/triage/agent/tools/record_triage.ts +1 -4
- package/templates/triage/package.json +1 -1
- package/dist/client.d.ts +0 -14
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -12
- package/dist/docs/assets/app.Cr-wVbnB.js +0 -1
- package/dist/docs/assets/building-with-agents.md.D0KbSkJn.js +0 -13
- package/dist/docs/assets/building-with-agents.md.D0KbSkJn.lean.js +0 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.CFVQ4S17.js +0 -1
- package/dist/docs/assets/concepts.md.B4o63Gul.js +0 -1
- package/dist/docs/assets/concepts.md.B4o63Gul.lean.js +0 -1
- package/dist/docs/assets/deployment.md.JenwuCCB.js +0 -51
- package/dist/docs/assets/deployment.md.JenwuCCB.lean.js +0 -1
- package/dist/docs/assets/evals.md.C7JLjoEP.js +0 -211
- package/dist/docs/assets/evals.md.C7JLjoEP.lean.js +0 -1
- package/dist/docs/assets/guides_agent-to-agent.md.BDb0t1QV.js +0 -10
- package/dist/docs/assets/guides_agent-to-agent.md.BDb0t1QV.lean.js +0 -1
- package/dist/docs/assets/guides_bitbucket.md.DZPzmUjU.js +0 -10
- package/dist/docs/assets/guides_bitbucket.md.DZPzmUjU.lean.js +0 -1
- package/dist/docs/assets/guides_cloud-agents.md.BsloyHdY.js +0 -9
- package/dist/docs/assets/guides_cloud-agents.md.BsloyHdY.lean.js +0 -1
- package/dist/docs/assets/guides_convert-automation.md.B4sjlodG.js +0 -12
- package/dist/docs/assets/guides_convert-automation.md.B4sjlodG.lean.js +0 -1
- package/dist/docs/assets/guides_github.md.TZaTZlfz.js +0 -64
- package/dist/docs/assets/guides_github.md.TZaTZlfz.lean.js +0 -1
- package/dist/docs/assets/guides_gitlab.md.BmqwQfdG.js +0 -14
- package/dist/docs/assets/guides_gitlab.md.BmqwQfdG.lean.js +0 -1
- package/dist/docs/assets/guides_grokbot-agents.md.DyV-WArv.js +0 -9
- package/dist/docs/assets/guides_grokbot-agents.md.DyV-WArv.lean.js +0 -1
- package/dist/docs/assets/guides_human-in-the-loop.md.By1G2T3_.js +0 -28
- package/dist/docs/assets/guides_human-in-the-loop.md.By1G2T3_.lean.js +0 -1
- package/dist/docs/assets/guides_improve.md.BGVk32bK.js +0 -14
- package/dist/docs/assets/guides_improve.md.BGVk32bK.lean.js +0 -1
- package/dist/docs/assets/guides_mcp-oauth.md.Dp6cDP7f.js +0 -28
- package/dist/docs/assets/guides_mcp-oauth.md.Dp6cDP7f.lean.js +0 -1
- package/dist/docs/assets/guides_opentelemetry.md.SCRMskno.js +0 -26
- package/dist/docs/assets/guides_opentelemetry.md.SCRMskno.lean.js +0 -1
- package/dist/docs/assets/guides_slack.md.D4RVMM4G.js +0 -38
- package/dist/docs/assets/guides_slack.md.D4RVMM4G.lean.js +0 -1
- package/dist/docs/assets/guides_webhooks.md.CJK484ex.js +0 -225
- package/dist/docs/assets/guides_webhooks.md.CJK484ex.lean.js +0 -1
- package/dist/docs/assets/hillclimbing.md.BOiVo1tf.js +0 -4
- package/dist/docs/assets/hillclimbing.md.BOiVo1tf.lean.js +0 -1
- package/dist/docs/assets/index.md.DD9Q2XuJ.js +0 -5
- package/dist/docs/assets/index.md.DD9Q2XuJ.lean.js +0 -1
- package/dist/docs/assets/quickstart.md.DdQOF7Y8.lean.js +0 -1
- package/dist/docs/assets/reference_extensions.md.ZAVUyuEX.js +0 -62
- package/dist/docs/assets/reference_extensions.md.ZAVUyuEX.lean.js +0 -1
- package/dist/docs/assets/reference_result.md.BK5SxDrf.js +0 -19
- package/dist/docs/assets/reference_result.md.BK5SxDrf.lean.js +0 -1
- package/dist/docs/assets/scaffolding-agents.md.Kctn3OVb.js +0 -1
- package/dist/docs/assets/scaffolding-agents.md.Kctn3OVb.lean.js +0 -1
- package/dist/docs/assets/skills_create-agent.md.Q3h6Je-e.js +0 -8
- package/dist/docs/assets/skills_create-agent.md.Q3h6Je-e.lean.js +0 -1
- package/dist/docs/assets/skills_debug.md.CVjCXMFF.js +0 -1
- package/dist/docs/assets/skills_debug.md.CVjCXMFF.lean.js +0 -1
- package/dist/docs/assets/skills_deploy.md.CWqi_ZxW.js +0 -35
- package/dist/docs/assets/skills_deploy.md.CWqi_ZxW.lean.js +0 -1
- package/dist/docs/assets/skills_evals.md.DFxYPErF.js +0 -25
- package/dist/docs/assets/skills_evals.md.DFxYPErF.lean.js +0 -1
- package/dist/docs/assets/skills_framework-map.md.BxLSOhSY.js +0 -1
- package/dist/docs/assets/skills_framework-map.md.BxLSOhSY.lean.js +0 -1
- package/dist/docs/assets/skills_github.md.hgFX_oKY.js +0 -16
- package/dist/docs/assets/skills_github.md.hgFX_oKY.lean.js +0 -1
- package/dist/docs/assets/skills_hillclimb.md.B_zJerxA.js +0 -7
- package/dist/docs/assets/skills_hillclimb.md.B_zJerxA.lean.js +0 -1
- package/dist/docs/assets/skills_index.md.DL7EHaQ-.js +0 -1
- package/dist/docs/assets/skills_index.md.DL7EHaQ-.lean.js +0 -1
- package/dist/docs/assets/skills_mcp-auth.md.DGvFP3HE.js +0 -18
- package/dist/docs/assets/skills_mcp-auth.md.DGvFP3HE.lean.js +0 -1
- package/dist/docs/assets/skills_otel.md.B5Ddv1xH.js +0 -8
- package/dist/docs/assets/skills_otel.md.B5Ddv1xH.lean.js +0 -1
- package/dist/docs/assets/skills_setup-slack.md.BBgx8lUz.js +0 -20
- package/dist/docs/assets/skills_setup-slack.md.BBgx8lUz.lean.js +0 -1
- package/dist/docs/assets/storage.md.BUrhJ-Zz.js +0 -30
- package/dist/docs/assets/storage.md.BUrhJ-Zz.lean.js +0 -1
- package/dist/docs/assets/templates_agents-md.md.CXSMZljE.js +0 -2
- package/dist/docs/assets/templates_agents-md.md.CXSMZljE.lean.js +0 -1
- package/dist/docs/assets/templates_code-wiki.md.CDYZIBFN.js +0 -2
- package/dist/docs/assets/templates_code-wiki.md.CDYZIBFN.lean.js +0 -1
- package/dist/docs/assets/templates_demo.md.BeQX9V3H.js +0 -4
- package/dist/docs/assets/templates_demo.md.BeQX9V3H.lean.js +0 -1
- package/dist/docs/assets/templates_grokbot-agents.md.c1s6Flp9.js +0 -3
- package/dist/docs/assets/templates_grokbot-agents.md.c1s6Flp9.lean.js +0 -1
- package/dist/docs/assets/templates_security-help.md.C3Ny_Qr2.js +0 -4
- package/dist/docs/assets/templates_security-help.md.C3Ny_Qr2.lean.js +0 -1
- package/dist/docs/assets/troubleshooting.md.CYEAO9bM.js +0 -1
- package/dist/docs/assets/troubleshooting.md.CYEAO9bM.lean.js +0 -1
- package/dist/docs/concepts.html +0 -27
- package/dist/docs/concepts.md +0 -166
- package/dist/docs/design/filesystem.md +0 -376
- package/dist/docs/design/runtime-abstraction.md +0 -1756
- package/dist/docs/guides/human-in-the-loop.html +0 -54
- package/dist/docs/guides/human-in-the-loop.md +0 -126
- package/dist/docs/reference/result.html +0 -45
- package/dist/docs/reference/result.md +0 -89
- package/dist/docs/scaffolding-agents.html +0 -27
- package/dist/docs/scaffolding-agents.md +0 -130
- package/dist/docs/skills/create-agent.html +0 -34
- package/dist/docs/skills/create-agent.md +0 -160
- package/dist/docs/skills/debug.html +0 -27
- package/dist/docs/skills/debug.md +0 -36
- package/dist/docs/skills/deploy.html +0 -61
- package/dist/docs/skills/deploy.md +0 -161
- package/dist/docs/skills/evals.html +0 -51
- package/dist/docs/skills/evals.md +0 -137
- package/dist/docs/skills/framework-map.html +0 -27
- package/dist/docs/skills/framework-map.md +0 -99
- package/dist/docs/skills/github.html +0 -42
- package/dist/docs/skills/github.md +0 -93
- package/dist/docs/skills/hillclimb.html +0 -33
- package/dist/docs/skills/hillclimb.md +0 -55
- package/dist/docs/skills/index.html +0 -27
- package/dist/docs/skills/index.md +0 -21
- package/dist/docs/skills/mcp-auth.html +0 -44
- package/dist/docs/skills/mcp-auth.md +0 -76
- package/dist/docs/skills/otel.html +0 -34
- package/dist/docs/skills/otel.md +0 -53
- package/dist/docs/skills/setup-slack.html +0 -46
- package/dist/docs/skills/setup-slack.md +0 -141
- package/dist/docs/storage.html +0 -56
- package/dist/docs/storage.md +0 -167
- package/dist/docs/templates/agents-md.html +0 -28
- package/dist/docs/templates/agents-md.md +0 -105
- package/dist/docs/templates/code-wiki.html +0 -28
- package/dist/docs/templates/code-wiki.md +0 -91
- package/dist/docs/templates/demo.html +0 -30
- package/dist/docs/templates/demo.md +0 -80
- package/dist/docs/templates/grokbot-agents.html +0 -29
- package/dist/docs/templates/grokbot-agents.md +0 -48
- package/dist/docs/templates/security-help.html +0 -30
- package/dist/docs/templates/security-help.md +0 -65
- package/dist/internal/tenant-slack/relay.d.ts +0 -75
- package/dist/internal/tenant-slack/relay.d.ts.map +0 -1
- package/dist/internal/tenant-slack/relay.js +0 -148
- package/dist/playground/assets/index-Bhxzrcf6.css +0 -1
- package/dist/playground/assets/index-CqLX5uF3.js +0 -67
- package/docs/concepts.md +0 -171
- package/docs/design/filesystem.md +0 -376
- package/docs/design/runtime-abstraction.md +0 -1756
- package/docs/guides/human-in-the-loop.md +0 -131
- package/docs/reference/result.md +0 -94
- package/docs/scaffolding-agents.md +0 -135
- package/docs/skills/index.md +0 -26
- package/docs/storage.md +0 -172
- package/docs/templates/agents-md.md +0 -110
- package/docs/templates/code-wiki.md +0 -96
- package/docs/templates/demo.md +0 -85
- package/docs/templates/grokbot-agents.md +0 -53
- package/docs/templates/security-help.md +0 -70
- package/src/client.ts +0 -23
- package/src/internal/tenant-slack/relay.ts +0 -203
- package/templates/pr-autofixer/agent/storage.ts +0 -7
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Human-in-the-loop"
|
|
3
|
-
description: "Gate a tool call on human approval: park it, resolve it from the playground, HTTP, or Slack, and keep the turn alive throughout."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Human-in-the-loop approvals
|
|
7
|
-
|
|
8
|
-
Some tools must wait for human review: promoting a build, approving a PR,
|
|
9
|
-
spending money. Mark those tools `needsApproval` and the host parks the
|
|
10
|
-
in-flight call until a person approves or denies it, from the
|
|
11
|
-
playground, over HTTP, or with Slack buttons. The turn stays running;
|
|
12
|
-
nothing executes until someone decides.
|
|
13
|
-
|
|
14
|
-
## Gate a tool
|
|
15
|
-
|
|
16
|
-
Mark the tool with `needsApproval` and export it like any other tool.
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import { defineTool } from "@cursor/july/tools";
|
|
20
|
-
import { z } from "zod";
|
|
21
|
-
|
|
22
|
-
export default defineTool({
|
|
23
|
-
description: "Promote a verified build to production.",
|
|
24
|
-
needsApproval: true,
|
|
25
|
-
inputSchema: z.object({
|
|
26
|
-
service: z.string(),
|
|
27
|
-
buildId: z.string(),
|
|
28
|
-
}),
|
|
29
|
-
async execute({ service, buildId }) {
|
|
30
|
-
return {
|
|
31
|
-
promoted: true,
|
|
32
|
-
service,
|
|
33
|
-
buildId,
|
|
34
|
-
environment: "production",
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
`needsApproval` also takes a predicate over the validated input, so you
|
|
41
|
-
can gate only the dangerous shapes:
|
|
42
|
-
|
|
43
|
-
```ts
|
|
44
|
-
needsApproval: (input) => input.amountUsd > 100,
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## What happens to a gated call
|
|
48
|
-
|
|
49
|
-
When the model calls a `needsApproval` tool, the call parks and the
|
|
50
|
-
session's stream emits `action.approval_requested` with the `callId`,
|
|
51
|
-
tool name, and arguments. The turn stays running and waits. When a
|
|
52
|
-
person resolves it, the stream emits `action.approval_resolved` with the
|
|
53
|
-
decision and, where known, who decided. On approval, `execute` runs and
|
|
54
|
-
`action.result` follows exactly as if the tool had run immediately. On
|
|
55
|
-
denial, the model receives the denial as the tool result and continues
|
|
56
|
-
the turn. It can explain, adjust, or try something else.
|
|
57
|
-
|
|
58
|
-
Approvals exist for `execution: "server"` tools on the local runtime
|
|
59
|
-
only. Parked calls do not survive a host restart: pending approvals left
|
|
60
|
-
after a crash resolve as interrupted, and you re-run the turn.
|
|
61
|
-
|
|
62
|
-
## Resolve from the playground
|
|
63
|
-
|
|
64
|
-
Parked calls render Approve / Deny buttons inline in the conversation.
|
|
65
|
-
Nothing to configure.
|
|
66
|
-
|
|
67
|
-
## Resolve over HTTP
|
|
68
|
-
|
|
69
|
-
List and resolve programmatically. The routes run the same auth chain as
|
|
70
|
-
the rest of the session API, and the caller must be the session owner:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
curl http://127.0.0.1:3000/<slug>/v1/session/ses_.../approvals
|
|
74
|
-
# {"approvals":[{"callId":"...","toolName":"approve_pr","args":{...}}]}
|
|
75
|
-
|
|
76
|
-
curl -X POST http://127.0.0.1:3000/<slug>/v1/session/ses_.../approvals/<callId> \
|
|
77
|
-
-H 'content-type: application/json' \
|
|
78
|
-
-d '{"decision":"approve"}' # or "deny"
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Resolve from Slack
|
|
82
|
-
|
|
83
|
-
Set `toolApprovals: true` on the Slack channel and the pack posts Block
|
|
84
|
-
Kit Approve/Deny cards and routes the button clicks back to the parked
|
|
85
|
-
call:
|
|
86
|
-
|
|
87
|
-
```ts
|
|
88
|
-
import { slackChannel } from "@cursor/july/channels/slack";
|
|
89
|
-
|
|
90
|
-
export default slackChannel({
|
|
91
|
-
toolApprovals: true,
|
|
92
|
-
});
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
Approval cards need interactivity on the Slack app. Cards show redacted,
|
|
96
|
-
truncated arguments because of Block Kit size limits. Execution still
|
|
97
|
-
uses the full validated input, so review sensitive tools in the
|
|
98
|
-
playground when the arguments may exceed the card. Details in the
|
|
99
|
-
[Slack guide](./slack.md#add-approval-buttons).
|
|
100
|
-
|
|
101
|
-
In `serve --dev`, the playground can also list Slack sessions and
|
|
102
|
-
resolve their parked tools (the audit trail records the HTTP caller).
|
|
103
|
-
That bridge does not open cross-owner approval for HTTP sessions, and
|
|
104
|
-
production and bearer-auth hosts stay strict: Slack approvals must come
|
|
105
|
-
from Slack interactivity or a matching principal.
|
|
106
|
-
|
|
107
|
-
## Design principles for approvals
|
|
108
|
-
|
|
109
|
-
Park/resume is independent of delivery: `needsApproval` works with no
|
|
110
|
-
Slack channel at all, because the playground and HTTP surfaces are
|
|
111
|
-
always there.
|
|
112
|
-
|
|
113
|
-
Prefer approval gates over trust in instructions. "Only call this tool
|
|
114
|
-
when…" is a suggestion; `needsApproval` is a guarantee. And pair
|
|
115
|
-
approvals with dry-run defaults for destructive integrations: post real
|
|
116
|
-
PR reviews only behind an explicit env flag like `MY_AGENT_LIVE=1`, no
|
|
117
|
-
matter who approved.
|
|
118
|
-
|
|
119
|
-
Deterministic tool calls (`agent-sdk call`, `POST /v1/tools/:name`)
|
|
120
|
-
execute directly without parking. There the human is the caller.
|
|
121
|
-
Approval parking applies to model-initiated calls.
|
|
122
|
-
|
|
123
|
-
## What's next
|
|
124
|
-
|
|
125
|
-
Continue with these pages:
|
|
126
|
-
|
|
127
|
-
- [Tools](../reference/tools.md): the full tool API `needsApproval`
|
|
128
|
-
lives on
|
|
129
|
-
- [Slack](./slack.md): the approval cards in context
|
|
130
|
-
- [Sessions and streaming](../reference/sessions.md): the
|
|
131
|
-
`action.approval_*` events on the wire
|
package/docs/reference/result.md
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Turn result"
|
|
3
|
-
description: "Run host code on the final assistant text when a turn finishes. Throw to fail the turn."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Turn result
|
|
7
|
-
|
|
8
|
-
Judgment agents need a place to act on the model's last message: parse
|
|
9
|
-
it, then page, comment, or close a ticket. Author `agent/result.ts`
|
|
10
|
-
with `defineResult` from `@cursor/july/result`. When that file exists,
|
|
11
|
-
every finished turn runs `commit` on the serving host with the full
|
|
12
|
-
assistant text.
|
|
13
|
-
|
|
14
|
-
A thrown `commit` fails the turn. Empty assistant text fails it too.
|
|
15
|
-
Hooks still observe only; they cannot fail a valid turn.
|
|
16
|
-
|
|
17
|
-
Use this for an end-of-turn actuation. Mid-turn actions belong in
|
|
18
|
-
[tools](./tools.md). Durable records that outlive a session belong in
|
|
19
|
-
[artifacts](./artifacts.md).
|
|
20
|
-
|
|
21
|
-
## Author `agent/result.ts`
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
import { defineResult } from "@cursor/july/result";
|
|
25
|
-
import { applyDecision, parseDecision } from "./lib/actuate.js";
|
|
26
|
-
|
|
27
|
-
export default defineResult({
|
|
28
|
-
async commit(ctx) {
|
|
29
|
-
if (ctx.session.purpose === "eval") {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
await applyDecision(parseDecision(ctx.text), ctx.host);
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
`commit` is required. Parse `ctx.text` however the agent needs. Tell
|
|
38
|
-
the model the document shape in `instructions.md`. The Agent SDK does
|
|
39
|
-
not inject a schema.
|
|
40
|
-
|
|
41
|
-
Put `result.ts` on the root agent only. A copy under a subagent is
|
|
42
|
-
ignored with a warning.
|
|
43
|
-
|
|
44
|
-
## Commit on the host
|
|
45
|
-
|
|
46
|
-
`commit` runs in the serving process after the model finishes, before
|
|
47
|
-
the turn completes. `ctx` is the same host surface a server tool gets,
|
|
48
|
-
plus the turn text:
|
|
49
|
-
|
|
50
|
-
| Member | What it is |
|
|
51
|
-
| --- | --- |
|
|
52
|
-
| `ctx.session` | The session that produced this turn, including `purpose` |
|
|
53
|
-
| `ctx.host` | Shared host services (`kv`, `files`, `mcp`) |
|
|
54
|
-
| `ctx.artifacts` | Session-bound [artifacts](./artifacts.md) facade |
|
|
55
|
-
| `ctx.stateRoot` | The agent's durable state root |
|
|
56
|
-
| `ctx.workspaceDir` | The session workspace |
|
|
57
|
-
| `ctx.text` | The full assistant string |
|
|
58
|
-
|
|
59
|
-
A dry-run session skips `commit` and still completes. Eval sessions do
|
|
60
|
-
run `commit`; return early when `ctx.session.purpose === "eval"` if the
|
|
61
|
-
handler must not actuate.
|
|
62
|
-
|
|
63
|
-
On cloud runtime, the model still runs on the VM. `commit` runs on the
|
|
64
|
-
serving host after the turn returns.
|
|
65
|
-
|
|
66
|
-
`GET /v1/info` reports `result: true` when the file is authored.
|
|
67
|
-
|
|
68
|
-
## Assert in evals
|
|
69
|
-
|
|
70
|
-
`t.succeeded()` fails when `commit` throws or the turn produced no
|
|
71
|
-
text, because those are turn failures. Read the document on `t.reply`.
|
|
72
|
-
|
|
73
|
-
```ts
|
|
74
|
-
import { defineEval, includes } from "@cursor/july/evals";
|
|
75
|
-
|
|
76
|
-
export default defineEval({
|
|
77
|
-
async test(t) {
|
|
78
|
-
await t.send("Triage LIN-1842. It duplicates LIN-1801.");
|
|
79
|
-
t.succeeded();
|
|
80
|
-
t.check(t.reply, includes("duplicate"));
|
|
81
|
-
},
|
|
82
|
-
});
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## What's next
|
|
86
|
-
|
|
87
|
-
Continue with these pages:
|
|
88
|
-
|
|
89
|
-
- [Evals](../evals.md): `t.succeeded` and `t.reply`
|
|
90
|
-
- [Sessions and streaming](./sessions.md): `turn.completed` and
|
|
91
|
-
`turn.failed`
|
|
92
|
-
- [Hooks](./hooks.md): observe the stream after the turn has already
|
|
93
|
-
settled
|
|
94
|
-
- [Project layout](./project-layout.md): where `agent/result.ts` lives
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Scaffold an agent with Cursor"
|
|
3
|
-
description: "Use the bundled create-agent skill to plan, build, and verify a new agent."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Scaffold an agent with Cursor
|
|
7
|
-
|
|
8
|
-
Turn an idea into a verified agent while Cursor guides you through each
|
|
9
|
-
decision.
|
|
10
|
-
|
|
11
|
-
## What does the create-agent skill do?
|
|
12
|
-
|
|
13
|
-
The bundled
|
|
14
|
-
[`create-agent` skill](./skills/create-agent.md) turns your goal
|
|
15
|
-
into a small working project. Have Cursor read that file and follow it.
|
|
16
|
-
|
|
17
|
-
Where to find the file depends on how you got the package:
|
|
18
|
-
|
|
19
|
-
- Installing `@cursor/july` (`npm install`, `npx @cursor/july`, a
|
|
20
|
-
version bump) copies every package skill into
|
|
21
|
-
`~/.cursor/skills/agentsdk/` with `alwaysApply: true`, so Cursor
|
|
22
|
-
injects the skill body into context instead of waiting for the
|
|
23
|
-
model to pick it from the catalog. The `/` menu lists them as
|
|
24
|
-
`/agentsdk-create-agent`, `/agentsdk-hillclimb`, and the rest. Re-installing overwrites those
|
|
25
|
-
copies with the package version.
|
|
26
|
-
- Installed `@cursor/july` as a dependency? The skill also ships inside
|
|
27
|
-
the package at `node_modules/@cursor/july/skills/create-agent/SKILL.md`.
|
|
28
|
-
- Working from this package's source? The skill is at
|
|
29
|
-
[`skills/create-agent/SKILL.md`](./skills/create-agent.md). Run
|
|
30
|
-
`agent-sdk install-skills` if you want the same copies in
|
|
31
|
-
`~/.cursor/skills/agentsdk/` (the package postinstall skips the
|
|
32
|
-
source checkout).
|
|
33
|
-
|
|
34
|
-
Cursor will:
|
|
35
|
-
|
|
36
|
-
- Ask only for choices missing from your prompt
|
|
37
|
-
- Recommend defaults based on what you want to build
|
|
38
|
-
- Show you the plan and file tree before writing files
|
|
39
|
-
- Create the agent after you confirm the plan
|
|
40
|
-
- Run structural checks, a real turn, and a smoke eval
|
|
41
|
-
|
|
42
|
-
Use this skill for a new agent. Use
|
|
43
|
-
[convert-automation](./guides/convert-automation.md) when the starting
|
|
44
|
-
point is a Cursor Automation in the dashboard. Use
|
|
45
|
-
[`hillclimb`](./hillclimbing.md) (`skills/hillclimb/SKILL.md`) when an
|
|
46
|
-
existing agent works but needs better results.
|
|
47
|
-
|
|
48
|
-
## How do I start a guided scaffold?
|
|
49
|
-
|
|
50
|
-
Describe the outcome and any constraints you already know:
|
|
51
|
-
|
|
52
|
-
> Build a local weather agent for the playground. Give it one tool for
|
|
53
|
-
> current conditions and add a smoke eval. Guide me through the remaining
|
|
54
|
-
> decisions.
|
|
55
|
-
|
|
56
|
-
More detail means fewer questions. Include a channel, runtime, model, or
|
|
57
|
-
required integration when those choices are fixed.
|
|
58
|
-
|
|
59
|
-
## Which choices will Cursor ask me to make?
|
|
60
|
-
|
|
61
|
-
Cursor fills gaps in two short rounds:
|
|
62
|
-
|
|
63
|
-
- **Identity:** purpose, project name, and location
|
|
64
|
-
- **Runtime:** local or cloud
|
|
65
|
-
- **Model:** the default model or another Cursor model
|
|
66
|
-
- **Channels:** playground and HTTP, Slack, GitHub, a webhook, or a
|
|
67
|
-
schedule
|
|
68
|
-
- **MCP connections:** remote or local MCP servers
|
|
69
|
-
- **Capabilities:** tools, skills, subagents, hooks, seed files,
|
|
70
|
-
approvals, and evals
|
|
71
|
-
|
|
72
|
-
Questions adapt to your goal. A playground chat agent won't get
|
|
73
|
-
cloud-repository questions. A local agent won't get cloud setup
|
|
74
|
-
questions.
|
|
75
|
-
|
|
76
|
-
## What happens before Cursor writes files?
|
|
77
|
-
|
|
78
|
-
Cursor shows one plan with the choices it made and the folders it will
|
|
79
|
-
create. Choose **Scaffold it** to continue or **Adjust something** to
|
|
80
|
-
change the plan.
|
|
81
|
-
|
|
82
|
-
No files change before you approve this step.
|
|
83
|
-
|
|
84
|
-
## What will Cursor create?
|
|
85
|
-
|
|
86
|
-
A first version usually includes:
|
|
87
|
-
|
|
88
|
-
- `AGENTS.md`, `.gitignore`, `package.json`, and `tsconfig.json`
|
|
89
|
-
- `agent/agent.ts` for the model and runtime
|
|
90
|
-
- `agent/instructions.md` for the always-on prompt
|
|
91
|
-
- `agent/hooks/memory.ts` for memory guidance
|
|
92
|
-
- One or two tools under `agent/tools/`
|
|
93
|
-
- Any channels or MCP connections you selected
|
|
94
|
-
- `evals/evals.config.ts` and one smoke eval
|
|
95
|
-
|
|
96
|
-
Cursor keeps the first version small. Side-effecting server tools use
|
|
97
|
-
`needsApproval`. Deterministic setup, such as fetching a pull request,
|
|
98
|
-
stays in host code instead of model instructions.
|
|
99
|
-
|
|
100
|
-
See [Project layout](./reference/project-layout.md) for every supported
|
|
101
|
-
folder.
|
|
102
|
-
|
|
103
|
-
## How does Cursor verify the scaffold?
|
|
104
|
-
|
|
105
|
-
Cursor checks the project in this order:
|
|
106
|
-
|
|
107
|
-
1. Run `agent-sdk validate` and fix every error
|
|
108
|
-
2. Inspect the discovered surface with `info --json`
|
|
109
|
-
3. Call each server tool directly with validated sample input
|
|
110
|
-
4. Run one end-to-end model turn
|
|
111
|
-
5. Run the smoke eval
|
|
112
|
-
6. Run the project's TypeScript check
|
|
113
|
-
|
|
114
|
-
Validation, discovery, direct server-tool calls, and server startup work
|
|
115
|
-
without a Cursor credential. Model turns and evals need
|
|
116
|
-
`CURSOR_API_KEY`, then `CURSOR_API_KEY_FILE` (hosted default `/run/cursor/secrets/CURSOR_API_KEY`), then `CURSOR_SERVICE_ACCOUNT_KEY`, then a saved
|
|
117
|
-
`agent-sdk login`.
|
|
118
|
-
|
|
119
|
-
## What happens after the first agent works?
|
|
120
|
-
|
|
121
|
-
Choose one to three fixed inputs, define what should improve, and name
|
|
122
|
-
what must stay unchanged. Then have Cursor follow
|
|
123
|
-
[`skills/hillclimb/SKILL.md`](./skills/hillclimb.md).
|
|
124
|
-
|
|
125
|
-
The hillclimb skill measures a baseline, changes one lever, runs the same
|
|
126
|
-
inputs again, and adds an eval for each improvement you keep.
|
|
127
|
-
|
|
128
|
-
## Related
|
|
129
|
-
|
|
130
|
-
- [Build your first PR reviewer](./quickstart.md)
|
|
131
|
-
- [Convert a Cursor Automation](./guides/convert-automation.md)
|
|
132
|
-
- [Building agents with agents](./building-with-agents.md)
|
|
133
|
-
- [Evals](./evals.md)
|
|
134
|
-
- [Hillclimbing](./hillclimbing.md)
|
|
135
|
-
- [Project layout](./reference/project-layout.md)
|
package/docs/skills/index.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Coding-agent skills"
|
|
3
|
-
description: "Task guides that ship with the Agent SDK for scaffolding, deployment, evals, channels, and hillclimbing."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Coding-agent skills
|
|
7
|
-
|
|
8
|
-
Each skill is a procedure a coding agent can follow. Installing
|
|
9
|
-
`@cursor/july` copies them into `~/.cursor/skills/agentsdk/`. This site
|
|
10
|
-
publishes the same files.
|
|
11
|
-
|
|
12
|
-
See [Building agents with agents](../building-with-agents.md) for when
|
|
13
|
-
to use each one.
|
|
14
|
-
|
|
15
|
-
| Skill | Use it to |
|
|
16
|
-
| --- | --- |
|
|
17
|
-
| [framework-map](./framework-map.md) | Learn the project layout and runtimes |
|
|
18
|
-
| [create-agent](./create-agent.md) | Scaffold and verify a new agent |
|
|
19
|
-
| [evals](./evals.md) | Write fixtures and regression checks |
|
|
20
|
-
| [otel](./otel.md) | Export OpenTelemetry traces |
|
|
21
|
-
| [hillclimb](./hillclimb.md) | Improve an agent against fixed inputs |
|
|
22
|
-
| [github](./github.md) | Add GitHub webhooks and replay events |
|
|
23
|
-
| [setup-slack](./setup-slack.md) | Connect an agent to Slack |
|
|
24
|
-
| [mcp-auth](./mcp-auth.md) | Authorize host MCP OAuth |
|
|
25
|
-
| [deploy](./deploy.md) | Deploy with an attached service account |
|
|
26
|
-
| [debug](./debug.md) | Diagnose a local run |
|
package/docs/storage.md
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Storage"
|
|
3
|
-
description: "Point the Agent SDK's durable storage at a backend you own with defineStorage."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Storage
|
|
7
|
-
|
|
8
|
-
The Agent SDK owns durable storage for sessions, continuation tokens,
|
|
9
|
-
reminders, and playground eval history. It chooses the keys, when to
|
|
10
|
-
read and write, and how to restore after restart.
|
|
11
|
-
|
|
12
|
-
The Agent SDK owns key encoding. Backends must accept the keys they are
|
|
13
|
-
given. Do not fail `put` to enforce a shorter cap.
|
|
14
|
-
|
|
15
|
-
By default that storage lives under `--state-root` on local disk. Fine
|
|
16
|
-
for one machine; it does not survive replacing the host.
|
|
17
|
-
|
|
18
|
-
To keep the same framework storage across hosts, plug in a key-value
|
|
19
|
-
backend with `agent/storage.ts`. You provide `put` / `get` / `delete` /
|
|
20
|
-
`list`. The optional `cas` group adds conditional writes (see
|
|
21
|
-
[Conditional writes](#conditional-writes-the-cas-group)).
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
// agent/storage.ts
|
|
25
|
-
import { defineStorage } from "@cursor/july/storage";
|
|
26
|
-
|
|
27
|
-
export default defineStorage({
|
|
28
|
-
put: (key, value) => db.upsert(key, value),
|
|
29
|
-
get: (key) => db.get(key),
|
|
30
|
-
delete: (key) => db.delete(key),
|
|
31
|
-
list: (prefix) => db.listByPrefix(prefix), // [{ key, value }], key order
|
|
32
|
-
cas: {
|
|
33
|
-
getWithVersion: (key) => db.getRow(key), // { value, version }
|
|
34
|
-
putIfAbsent: (key, value) => db.insertIfAbsent(key, value),
|
|
35
|
-
putIfVersion: (key, value, expected) => db.casUpdate(key, value, expected),
|
|
36
|
-
listKeys: (prefix) => db.listKeysByPrefix(prefix),
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Which fields to provide
|
|
42
|
-
|
|
43
|
-
Implement the small KV core (`put`/`get`/`delete`/`list` plus the `cas`
|
|
44
|
-
group) and you get **full functionality**: eval-run history is derived
|
|
45
|
-
over the core automatically. The dedicated `evals` group is a
|
|
46
|
-
backend-native optimization, not a required-or-lose-history hook.
|
|
47
|
-
|
|
48
|
-
| Field | Required | Role |
|
|
49
|
-
| --- | --- | --- |
|
|
50
|
-
| `put` | Yes | Write or update a value |
|
|
51
|
-
| `cas` | Optional | Conditional writes; see [Conditional writes](#conditional-writes-the-cas-group) |
|
|
52
|
-
| `get` | For restore | Look up one key |
|
|
53
|
-
| `list` | For restore | Return entries under a prefix, in key order |
|
|
54
|
-
| `delete` | For cleanup | Remove a key |
|
|
55
|
-
| `name` | No | Label surfaced on `GET /v1/info` diagnostics |
|
|
56
|
-
| `policy` | No | Timing knobs; see [Policy](#policy) |
|
|
57
|
-
| `evals` | No | Backend-native eval-runs table; derived over the core when omitted. See [Eval table](#eval-table) |
|
|
58
|
-
|
|
59
|
-
A throwing `put` is logged and dropped. It never fails a turn. When
|
|
60
|
-
resolving a missing continuation token, a throwing `get` fails the
|
|
61
|
-
follow-up so a store outage does not open a new session. Return
|
|
62
|
-
`undefined` only for a real miss.
|
|
63
|
-
|
|
64
|
-
## Eval table
|
|
65
|
-
|
|
66
|
-
The dedicated `evals` table group carries structured rows instead of
|
|
67
|
-
opaque KV values. It is an **optional optimization**: when the group is
|
|
68
|
-
not authored, `defineStorage` derives it over the KV core, so a backend
|
|
69
|
-
that implements only the core loses nothing. Author the group only when
|
|
70
|
-
the backend has a better native shape (a real database table, an
|
|
71
|
-
analytics pipeline). The built-in `fileKv` and `cursorHostedStorage`
|
|
72
|
-
both do.
|
|
73
|
-
|
|
74
|
-
`evals` keeps playground eval batches across restarts (`put`, `delete`,
|
|
75
|
-
`list` over run snapshots keyed by `runId`). A core missing `delete` or
|
|
76
|
-
`list` leaves eval history in memory until restart.
|
|
77
|
-
See [Evals](./evals.md#configure-eval-runs).
|
|
78
|
-
|
|
79
|
-
## Policy
|
|
80
|
-
|
|
81
|
-
Two knobs change behavior:
|
|
82
|
-
|
|
83
|
-
```ts
|
|
84
|
-
export default defineStorage({
|
|
85
|
-
policy: {
|
|
86
|
-
// Batch event writes while the session is busy (default: once per turn)
|
|
87
|
-
debounceMs: 30_000,
|
|
88
|
-
// Cap how much loads at serve start, or "off" to restore on demand
|
|
89
|
-
restore: { maxSessions: 500 },
|
|
90
|
-
},
|
|
91
|
-
// put / get / delete / list …
|
|
92
|
-
});
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
| Knob | Default | Meaning |
|
|
96
|
-
| --- | --- | --- |
|
|
97
|
-
| `debounceMs` | unset (once per turn) | Wait this long after activity before writing event batches |
|
|
98
|
-
| `restore` | caps below | How much to load at serve start |
|
|
99
|
-
| `restore.maxSessions` | `1000` | Max sessions loaded at serve start |
|
|
100
|
-
| `restore.maxAgeMs` | 30 days | Skip older sessions at serve start |
|
|
101
|
-
| `restore.maxTotalBytes` | 1 GiB | Stop loading once this budget is reached |
|
|
102
|
-
|
|
103
|
-
Set `restore: "off"` on high-traffic hosts. Sessions then load when a
|
|
104
|
-
follow-up arrives instead of at startup.
|
|
105
|
-
|
|
106
|
-
## Restore after restart
|
|
107
|
-
|
|
108
|
-
With `get` and `list`, serve can rebuild local state from your store:
|
|
109
|
-
|
|
110
|
-
- At startup, the Agent SDK loads recent sessions up to the restore caps.
|
|
111
|
-
- On demand, a missing continuation token resolves through the store
|
|
112
|
-
and resumes that session.
|
|
113
|
-
- Playground eval history can load from the same sink.
|
|
114
|
-
|
|
115
|
-
A turn in flight at crash time is not replayed. The next follow-up
|
|
116
|
-
resumes from the last flushed state.
|
|
117
|
-
|
|
118
|
-
## Author KV (`ctx.host.kv`)
|
|
119
|
-
|
|
120
|
-
Handlers can store their own JSON under the same sink without minting
|
|
121
|
-
framework keys:
|
|
122
|
-
|
|
123
|
-
```ts
|
|
124
|
-
await ctx.host.kv.put("alert-memory/abc", { updated: "…" });
|
|
125
|
-
const prior = await ctx.host.kv.get("alert-memory/abc");
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
Writes **await** the sink and propagate errors, unlike session mirrors,
|
|
129
|
-
which are at-most-once.
|
|
130
|
-
|
|
131
|
-
Without `agent/storage.ts`, `host.kv` is local-only and does not
|
|
132
|
-
survive replacing the host. Hosted agents should author
|
|
133
|
-
`cursorHostedStorage()` so session and `host.kv` records survive
|
|
134
|
-
replace.
|
|
135
|
-
|
|
136
|
-
```ts
|
|
137
|
-
// agent/storage.ts: Cursor-managed hosting
|
|
138
|
-
import { defineStorage } from "@cursor/july/storage";
|
|
139
|
-
import { cursorHostedStorage } from "@cursor/july/storage/cursor-hosted";
|
|
140
|
-
|
|
141
|
-
export default defineStorage({
|
|
142
|
-
...cursorHostedStorage(),
|
|
143
|
-
});
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Built-in helpers:
|
|
147
|
-
|
|
148
|
-
| Import | Backend |
|
|
149
|
-
| --- | --- |
|
|
150
|
-
| `@cursor/july/storage/file-kv` | File-per-key under the project state directory |
|
|
151
|
-
| `@cursor/july/storage/cursor-hosted` | Cursor-managed hosting; records survive replace |
|
|
152
|
-
|
|
153
|
-
## Bring your own backend
|
|
154
|
-
|
|
155
|
-
Any durable store works if it can put, get, delete, list by prefix,
|
|
156
|
-
and optionally compare-and-set. Implement the `StorageConfig` methods
|
|
157
|
-
(and the optional `cas` group) against that store. The contract,
|
|
158
|
-
defined at `@cursor/july/kv`: version tokens are opaque strings that
|
|
159
|
-
change on every successful write, including plain `put`, so a stale
|
|
160
|
-
token fences instead of clobbering; conditional writes are atomic;
|
|
161
|
-
`listKeys` returns every key under the prefix.
|
|
162
|
-
|
|
163
|
-
## Conditional writes (the `cas` group)
|
|
164
|
-
|
|
165
|
-
The `cas` group is compare-and-swap over the same keyspace:
|
|
166
|
-
`getWithVersion` / `putIfAbsent` / `putIfVersion` / `listKeys`, defined
|
|
167
|
-
backend-agnostically at `@cursor/july/kv`. Plain storage works without
|
|
168
|
-
it, so an existing backend keeps working across a platform upgrade.
|
|
169
|
-
`defineStorage` rejects a partial group. Implement all four methods or
|
|
170
|
-
none. Version tokens are opaque strings that must change on every write
|
|
171
|
-
(a counter column, a row version, a content hash). The built-in backends
|
|
172
|
-
both include the group.
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Keep AGENTS.md current from last week's work"
|
|
3
|
-
description: "Scaffold the agent, pick a repo and Slack channels, dispatch the weekly job, and deploy."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Keep AGENTS.md current from last week's work
|
|
7
|
-
|
|
8
|
-
This agent runs every Monday at 09:00 UTC. It reads last week's merged
|
|
9
|
-
pull requests and the Slack channels you list. When a durable rule
|
|
10
|
-
showed up, `apply_agents` parks the write until a person approves it,
|
|
11
|
-
then opens a draft follow-up pull request against the default branch.
|
|
12
|
-
Chores and rules the file already states stay quiet.
|
|
13
|
-
|
|
14
|
-
This template is one model turn: read the week, then call
|
|
15
|
-
`apply_agents`.
|
|
16
|
-
|
|
17
|
-
Init once per app. Pass a different repo and channel list each time.
|
|
18
|
-
|
|
19
|
-
## Scaffold
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npx @cursor/july init ./agents-md --template agents-md
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
`init` asks which GitHub repo to watch and which Slack channels to
|
|
26
|
-
read. Pass `--var repos=acme/api --var slack=#eng-api,#api-private`
|
|
27
|
-
to skip the prompt. Use `--var slack=none` when Slack is out of
|
|
28
|
-
scope.
|
|
29
|
-
|
|
30
|
-
The answers land in `agent/lib/config.ts`. Edit that file when the
|
|
31
|
-
set changes.
|
|
32
|
-
|
|
33
|
-
## Connect GitHub and Slack
|
|
34
|
-
|
|
35
|
-
Connect GitHub in Cursor for that repository (Settings or
|
|
36
|
-
[cursor.com/dashboard](https://cursor.com/dashboard)). Sign the host
|
|
37
|
-
in:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
cd agents-md
|
|
41
|
-
agent-sdk login
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
`cursorAccount` mints a short-lived, repo-scoped credential with
|
|
45
|
-
`contents-write` so the agent can open the follow-up PR. See the
|
|
46
|
-
[GitHub guide](../guides/github.md).
|
|
47
|
-
|
|
48
|
-
Create the Slack app and invite the bot to each listed channel,
|
|
49
|
-
including private ones:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
agent-sdk slack create --dir .
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
See the [Slack guide](../guides/slack.md).
|
|
56
|
-
|
|
57
|
-
## First weekly run
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
agent-sdk dev
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Schedules never fire under `dev`. Dispatch the same path production
|
|
64
|
-
uses:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
curl -X POST http://127.0.0.1:3000/v1/dev/schedules/weekly
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
The playground can run `/queue/run` too.
|
|
71
|
-
|
|
72
|
-
The host writes `week/prs.md`, `week/slack.md`, `week/window.txt`,
|
|
73
|
-
and `week/tree/**.txt` snapshots of the current `AGENTS.md` files,
|
|
74
|
-
then starts a model turn. The
|
|
75
|
-
model calls `apply_agents` once. A skip finishes. An update parks in
|
|
76
|
-
the playground until someone approves; then a draft PR opens against
|
|
77
|
-
the repository default branch. Later updates to the same base stack
|
|
78
|
-
on `agents-md/<base>`. Pull requests from those branches are ignored
|
|
79
|
-
so the follow-up cannot feed the next week.
|
|
80
|
-
|
|
81
|
-
Chat replies stay in the playground. `apply_agents` records a skip,
|
|
82
|
-
or parks the write. Approve there or with
|
|
83
|
-
`POST /v1/session/:id/approvals/:callId`.
|
|
84
|
-
|
|
85
|
-
## What to edit
|
|
86
|
-
|
|
87
|
-
- `agent/lib/config.ts`: repo and Slack channels
|
|
88
|
-
- `agent/instructions.md`: what counts as an update
|
|
89
|
-
- `evals/agents.eval.ts`: smoke cases
|
|
90
|
-
|
|
91
|
-
## Evals
|
|
92
|
-
|
|
93
|
-
Four smoke cases: a lint-only week, a billing rule that parks the
|
|
94
|
-
write, the same rule already in `AGENTS.md`, and an empty week.
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
agent-sdk eval
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
Eval sessions skip the GitHub write.
|
|
101
|
-
|
|
102
|
-
## Deploy
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
agent-sdk deploy
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Run it from the agent's git checkout. The command infers repository,
|
|
109
|
-
ref, path, and slug. Production fires the Monday cron. The deployment
|
|
110
|
-
uses the team's Cursor GitHub connection for the watched repo.
|