@cursor/july 0.1.30 → 0.1.32
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 +10 -5
- package/dist/bin/agent-serve.js +4 -4
- package/dist/channels/github/index.d.ts +1 -1
- package/dist/channels/github/index.js +1 -1
- package/dist/channels/slack/bot-mentions.d.ts +1 -1
- package/dist/channels/slack/bot-mentions.d.ts.map +1 -1
- package/dist/channels/slack/bot-mentions.js +1 -1
- package/dist/channels/slack/eval-directive.js +1 -1
- package/dist/channels/slack/external-policy.d.ts +1 -1
- package/dist/channels/slack/external-policy.js +1 -1
- package/dist/channels/slack/log.d.ts +1 -1
- package/dist/channels/slack/log.js +1 -1
- package/dist/channels/slack/post-update-delivery.d.ts +85 -0
- package/dist/channels/slack/post-update-delivery.d.ts.map +1 -0
- package/dist/channels/slack/setup.js +1 -1
- package/dist/channels/slack/socket-mode.js +1 -1
- package/dist/docs/404.html +3 -3
- package/dist/docs/ab.html +11 -11
- package/dist/docs/assets/{ab.md.BMCZ6Hd7.js → ab.md.DAQoJ-up.js} +6 -6
- package/dist/docs/assets/{ab.md.BMCZ6Hd7.lean.js → ab.md.DAQoJ-up.lean.js} +1 -1
- package/dist/docs/assets/{app.Cm4lsMc4.js → app.C2aVczmo.js} +1 -1
- package/dist/docs/assets/building-with-agents.md.CnHqvYDd.js +13 -0
- package/dist/docs/assets/{building-with-agents.md.CJCtZCyi.lean.js → building-with-agents.md.CnHqvYDd.lean.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.xgMnlUSO.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.CYUFXspH.js → VPLocalSearchBox.DLEzetbD.js} +1 -1
- package/dist/docs/assets/chunks/{theme.CTjkX9vc.js → theme.BkOH1oMp.js} +2 -2
- package/dist/docs/assets/concepts.md.DFaQEFkA.js +4 -0
- package/dist/docs/assets/concepts.md.DFaQEFkA.lean.js +1 -0
- package/dist/docs/assets/deployment.md.9MYBuKM1.js +55 -0
- package/dist/docs/assets/deployment.md.9MYBuKM1.lean.js +1 -0
- package/dist/docs/assets/{evals.md.DYOjkRCX.js → evals.md.BIUoVZ6X.js} +13 -13
- package/dist/docs/assets/evals.md.BIUoVZ6X.lean.js +1 -0
- package/dist/docs/assets/{example-agents_approval-buddy.md.DFGBYLcc.js → example-agents_approval-buddy.md.BhEfleVx.js} +4 -4
- package/dist/docs/assets/{example-agents_approval-buddy.md.DFGBYLcc.lean.js → example-agents_approval-buddy.md.BhEfleVx.lean.js} +1 -1
- package/dist/docs/assets/example-agents_benny.md.2Et1qa8f.js +7 -0
- package/dist/docs/assets/{example-agents_bugbot.md.DelIdhxB.js → example-agents_bugbot.md.ByUexi5i.js} +5 -5
- package/dist/docs/assets/{example-agents_codebase-wiki.md.DC6sgwn0.js → example-agents_codebase-wiki.md.B4y-7ZVW.js} +6 -6
- package/dist/docs/assets/{example-agents_codebase-wiki.md.DC6sgwn0.lean.js → example-agents_codebase-wiki.md.B4y-7ZVW.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_codeowners-review.md.Ku_tG2RY.js → example-agents_codeowners-review.md.D6ay4nvf.js} +6 -6
- package/dist/docs/assets/{example-agents_codeowners-review.md.Ku_tG2RY.lean.js → example-agents_codeowners-review.md.D6ay4nvf.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_concierge.md.4rQTSMXt.js → example-agents_concierge.md.lL8rhYlj.js} +7 -7
- package/dist/docs/assets/{example-agents_fsd.md.CzgUrDfi.js → example-agents_fsd.md.DfNKQTHz.js} +5 -5
- package/dist/docs/assets/example-agents_index.md.DgGBwckv.js +2 -0
- package/dist/docs/assets/example-agents_index.md.DgGBwckv.lean.js +1 -0
- package/dist/docs/assets/{example-agents_knowledge-base.md.BPJiVueF.js → example-agents_knowledge-base.md.CzyZ2DCr.js} +5 -5
- package/dist/docs/assets/{example-agents_knowledge-base.md.BPJiVueF.lean.js → example-agents_knowledge-base.md.CzyZ2DCr.lean.js} +1 -1
- package/dist/docs/assets/example-agents_oncall.md.wFFXXEyW.js +10 -0
- package/dist/docs/assets/{example-agents_security-reviewer.md.Dhj_m7_B.js → example-agents_security-reviewer.md.Dkf1gyo6.js} +8 -8
- package/dist/docs/assets/example-agents_slack-agent.md.DvgvT4nn.js +5 -0
- package/dist/docs/assets/example-agents_weather-agent.md.Dmrcphhl.js +24 -0
- package/dist/docs/assets/example-agents_weather-agent.md.Dmrcphhl.lean.js +1 -0
- package/dist/docs/assets/{guides_agent-to-agent.md.Bpzgq2Pq.js → guides_agent-to-agent.md.Bmbxy-FA.js} +4 -4
- package/dist/docs/assets/guides_cloud-runtime.md.BZ2GA7Es.js +9 -0
- package/dist/docs/assets/{guides_github.md.DOOCpqsW.js → guides_github.md.R2QlpR75.js} +5 -5
- package/dist/docs/assets/{guides_human-in-the-loop.md.DlUqsp1S.js → guides_human-in-the-loop.md.BWvT7UqY.js} +1 -1
- package/dist/docs/assets/{guides_mcp-oauth.md.Dd8EgSem.js → guides_mcp-oauth.md.C7G7IykG.js} +5 -5
- package/dist/docs/assets/guides_mcp-oauth.md.C7G7IykG.lean.js +1 -0
- package/dist/docs/assets/guides_slack.md.zriQpU_9.js +47 -0
- package/dist/docs/assets/guides_slack.md.zriQpU_9.lean.js +1 -0
- package/dist/docs/assets/{guides_webhooks.md.wSOYas3X.js → guides_webhooks.md.DiAwSR42.js} +1 -1
- package/dist/docs/assets/{hillclimbing.md.DHNast08.js → hillclimbing.md.D9Y1_bYh.js} +1 -1
- package/dist/docs/assets/index.md.CZqbBJPB.js +20 -0
- package/dist/docs/assets/index.md.CZqbBJPB.lean.js +1 -0
- package/dist/docs/assets/{quickstart.md.BU6Iwi_9.js → quickstart.md.TnEXYgYW.js} +12 -12
- package/dist/docs/assets/{reference_agent-config.md.DrW2JUM8.js → reference_agent-config.md.kuN6-OxK.js} +1 -1
- package/dist/docs/assets/reference_cli.md.sD-IUWjg.js +73 -0
- package/dist/docs/assets/{reference_cli.md.ccoKOoXt.lean.js → reference_cli.md.sD-IUWjg.lean.js} +1 -1
- package/dist/docs/assets/{reference_connections.md.B9Q3TOve.js → reference_connections.md.DGqAsFXb.js} +3 -3
- package/dist/docs/assets/reference_http-api.md.CfVM_ICa.js +11 -0
- package/dist/docs/assets/{reference_project-layout.md.Bd_CKtNS.js → reference_project-layout.md.D8E6ZmHJ.js} +4 -4
- package/dist/docs/assets/{reference_project-layout.md.Bd_CKtNS.lean.js → reference_project-layout.md.D8E6ZmHJ.lean.js} +1 -1
- package/dist/docs/assets/{reference_schedules.md.w_F2mXB6.js → reference_schedules.md.gmfYzf_I.js} +1 -1
- package/dist/docs/assets/{reference_sessions.md.DLd6mvbv.js → reference_sessions.md.C_ouF_uf.js} +3 -3
- package/dist/docs/assets/{reference_tools.md.BRSDnTbN.js → reference_tools.md.BswAQM41.js} +3 -3
- package/dist/docs/assets/{scaffolding-agents.md.C3pTrmoE.js → scaffolding-agents.md.Bsr9Pwzu.js} +1 -1
- package/dist/docs/assets/{scaffolding-agents.md.C3pTrmoE.lean.js → scaffolding-agents.md.Bsr9Pwzu.lean.js} +1 -1
- package/dist/docs/assets/{storage.md.DRTdnFvd.js → storage.md.xZoiGM58.js} +3 -3
- package/dist/docs/assets/storage.md.xZoiGM58.lean.js +1 -0
- package/dist/docs/assets/troubleshooting.md.B5RVX_tL.js +1 -0
- package/dist/docs/assets/{troubleshooting.md.CmQkmnzC.lean.js → troubleshooting.md.B5RVX_tL.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +12 -12
- package/dist/docs/concepts.html +6 -6
- package/dist/docs/deployment.html +32 -32
- package/dist/docs/evals.html +19 -19
- package/dist/docs/example-agents/approval-buddy.html +9 -9
- package/dist/docs/example-agents/benny.html +11 -11
- package/dist/docs/example-agents/bugbot.html +10 -10
- package/dist/docs/example-agents/codebase-wiki.html +11 -11
- package/dist/docs/example-agents/codeowners-review.html +11 -11
- package/dist/docs/example-agents/concierge.html +12 -12
- package/dist/docs/example-agents/fsd.html +10 -10
- package/dist/docs/example-agents/index.html +7 -7
- package/dist/docs/example-agents/knowledge-base.html +10 -10
- package/dist/docs/example-agents/oncall.html +10 -10
- package/dist/docs/example-agents/security-reviewer.html +13 -13
- package/dist/docs/example-agents/slack-agent.html +10 -10
- package/dist/docs/example-agents/weather-agent.html +16 -16
- package/dist/docs/guides/agent-to-agent.html +9 -9
- package/dist/docs/guides/cloud-runtime.html +7 -7
- package/dist/docs/guides/github.html +10 -10
- package/dist/docs/guides/human-in-the-loop.html +7 -7
- package/dist/docs/guides/mcp-oauth.html +11 -11
- package/dist/docs/guides/slack.html +22 -17
- package/dist/docs/guides/webhooks.html +7 -7
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +7 -7
- package/dist/docs/index.html +9 -9
- package/dist/docs/quickstart.html +17 -17
- package/dist/docs/reference/agent-config.html +7 -7
- package/dist/docs/reference/channels.html +5 -5
- package/dist/docs/reference/cli.html +56 -48
- package/dist/docs/reference/connections.html +9 -9
- package/dist/docs/reference/hooks.html +5 -5
- package/dist/docs/reference/http-api.html +7 -7
- package/dist/docs/reference/instructions.html +5 -5
- package/dist/docs/reference/playground.html +5 -5
- package/dist/docs/reference/project-layout.html +9 -9
- package/dist/docs/reference/prompt.html +5 -5
- package/dist/docs/reference/schedules.html +7 -7
- package/dist/docs/reference/sessions.html +8 -8
- package/dist/docs/reference/skills.html +5 -5
- package/dist/docs/reference/subagents.html +5 -5
- package/dist/docs/reference/tools.html +9 -9
- package/dist/docs/scaffolding-agents.html +6 -6
- package/dist/docs/storage.html +9 -9
- package/dist/docs/troubleshooting.html +6 -6
- package/dist/evals/reporters.d.ts +1 -1
- package/dist/evals/reporters.js +1 -1
- package/dist/evals.d.ts +2 -2
- package/dist/files-backends/agent-store-presigned-url.d.ts +3 -0
- package/dist/files-backends/agent-store-presigned-url.d.ts.map +1 -0
- package/dist/files-backends/agent-store-presigned-url.js +1023 -0
- package/dist/files-backends/cursor-hosted.d.ts +87 -0
- package/dist/files-backends/cursor-hosted.d.ts.map +1 -0
- package/dist/files-backends/cursor-hosted.js +563 -0
- package/dist/files-backends/local-fs.d.ts +33 -0
- package/dist/files-backends/local-fs.d.ts.map +1 -0
- package/dist/files-backends/local-fs.js +199 -0
- package/dist/files.d.ts +139 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +89 -0
- package/dist/internal/ab-collector.js +2 -2
- package/dist/internal/ab-fold.js +1 -1
- package/dist/internal/cli-ax.d.ts +2 -2
- package/dist/internal/cli-ax.js +2 -2
- package/dist/internal/cli-deploy.d.ts +1 -1
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +7 -2
- package/dist/internal/cli-docs.d.ts +1 -1
- package/dist/internal/cli-docs.js +1 -1
- package/dist/internal/cli-github.js +13 -13
- package/dist/internal/cli-mcp-oauth.d.ts +1 -1
- package/dist/internal/cli-mcp-oauth.js +2 -2
- package/dist/internal/cli-mcp.d.ts +3 -3
- package/dist/internal/cli-mcp.js +4 -4
- package/dist/internal/cli-skills.js +1 -1
- package/dist/internal/cloud-turn-cost.d.ts +9 -1
- package/dist/internal/cloud-turn-cost.d.ts.map +1 -1
- package/dist/internal/cloud-turn-cost.js +14 -4
- package/dist/internal/cursor/account-mcp.js +5 -5
- package/dist/internal/cursor/backend-client.js +1 -1
- package/dist/internal/cursor/github-credentials.js +3 -3
- package/dist/internal/cursor-account-mcp-auth.d.ts +1 -1
- package/dist/internal/cursor-account-mcp-auth.js +1 -1
- package/dist/internal/cursor-event-relay.js +1 -1
- package/dist/internal/cursor-relay-core.d.ts +1 -1
- package/dist/internal/cursor-relay-core.d.ts.map +1 -1
- package/dist/internal/cursor-slack-relay.js +1 -1
- package/dist/internal/deploy-client.d.ts +6 -1
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +3 -2
- package/dist/internal/deploy-source.d.ts +2 -2
- package/dist/internal/deploy-source.js +2 -2
- package/dist/internal/discovery.js +2 -2
- package/dist/internal/distribution.d.ts +5 -5
- package/dist/internal/distribution.d.ts.map +1 -1
- package/dist/internal/distribution.js +6 -6
- package/dist/internal/docs-site.js +5 -5
- package/dist/internal/eval-run-store.js +8 -8
- package/dist/internal/evals-client.d.ts +1 -1
- package/dist/internal/evals-client.js +1 -1
- package/dist/internal/github-fanout.js +2 -2
- package/dist/internal/host-files.d.ts +29 -0
- package/dist/internal/host-files.d.ts.map +1 -0
- package/dist/internal/host-files.js +283 -0
- package/dist/internal/host-platforms.js +5 -5
- package/dist/internal/hosting.d.ts +1 -1
- package/dist/internal/hosting.js +1 -1
- package/dist/internal/http-channel.d.ts.map +1 -1
- package/dist/internal/http-channel.js +26 -0
- package/dist/internal/install-cursor-skills.d.ts +1 -1
- package/dist/internal/install-cursor-skills.d.ts.map +1 -1
- package/dist/internal/install-cursor-skills.js +33 -4
- package/dist/internal/json-dir-store.d.ts +32 -0
- package/dist/internal/json-dir-store.d.ts.map +1 -0
- package/dist/internal/local-control-plane.js +2 -2
- package/dist/internal/logs-client.d.ts +2 -2
- package/dist/internal/logs-client.js +2 -2
- package/dist/internal/mcp-endpoint.js +1 -1
- package/dist/internal/mcp-oauth.js +2 -2
- package/dist/internal/persistence-coordinator.d.ts +127 -0
- package/dist/internal/persistence-coordinator.d.ts.map +1 -0
- package/dist/internal/platform-schedule-sync.js +2 -2
- package/dist/internal/playground/toolchain.js +6 -6
- package/dist/internal/reminder-runner.js +13 -13
- package/dist/internal/resolved-connections.js +6 -6
- package/dist/internal/schedule-runner.js +1 -1
- package/dist/internal/sdk-runner.js +5 -5
- package/dist/internal/server.js +16 -16
- package/dist/internal/session-cost.d.ts +3 -2
- package/dist/internal/session-cost.d.ts.map +1 -1
- package/dist/internal/session-cost.js +7 -6
- package/dist/internal/session-engine.d.ts +31 -1
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +119 -31
- package/dist/internal/slack-provision-client.js +1 -1
- package/dist/internal/storage-coordinator.js +7 -7
- package/dist/internal/trajectory.js +2 -2
- package/dist/internal/turn-cost.d.ts +27 -0
- package/dist/internal/turn-cost.d.ts.map +1 -0
- package/dist/internal/turn-cost.js +83 -0
- package/dist/internal/update-check.d.ts +3 -3
- package/dist/internal/update-check.d.ts.map +1 -1
- package/dist/internal/update-check.js +5 -5
- package/dist/memory.d.ts +1 -1
- package/dist/memory.js +1 -1
- package/dist/multi-tenant.d.ts +80 -0
- package/dist/multi-tenant.d.ts.map +1 -0
- package/dist/multi-tenant.js +69 -0
- package/dist/persistence.d.ts +184 -0
- package/dist/persistence.d.ts.map +1 -0
- package/dist/playground/assets/index-50PKeJlG.css +1 -0
- package/dist/playground/assets/index-C0f2Wl1q.js +85 -0
- package/dist/playground/index.html +2 -2
- package/dist/storage.d.ts +1 -1
- package/dist/storage.js +1 -1
- package/dist/types.d.ts +120 -16
- package/dist/types.d.ts.map +1 -1
- package/docs/README.md +23 -23
- package/docs/ab.md +12 -12
- package/docs/building-with-agents.md +9 -9
- package/docs/concepts.md +11 -11
- package/docs/deployment.md +55 -43
- package/docs/evals.md +20 -20
- package/docs/example-agents/approval-buddy.md +9 -9
- package/docs/example-agents/benny.md +13 -13
- package/docs/example-agents/bugbot.md +6 -6
- package/docs/example-agents/codebase-wiki.md +8 -8
- package/docs/example-agents/codeowners-review.md +8 -8
- package/docs/example-agents/concierge.md +10 -10
- package/docs/example-agents/fsd.md +7 -7
- package/docs/example-agents/index.md +8 -8
- package/docs/example-agents/knowledge-base.md +9 -9
- package/docs/example-agents/oncall.md +7 -7
- package/docs/example-agents/security-reviewer.md +12 -12
- package/docs/example-agents/slack-agent.md +10 -10
- package/docs/example-agents/weather-agent.md +30 -26
- package/docs/guides/agent-to-agent.md +4 -4
- package/docs/guides/cloud-runtime.md +3 -3
- package/docs/guides/github.md +6 -6
- package/docs/guides/human-in-the-loop.md +1 -1
- package/docs/guides/mcp-oauth.md +9 -9
- package/docs/guides/slack.md +94 -21
- package/docs/guides/webhooks.md +1 -1
- package/docs/hillclimbing.md +3 -3
- package/docs/quickstart.md +18 -18
- package/docs/reference/agent-config.md +1 -1
- package/docs/reference/cli.md +110 -79
- package/docs/reference/connections.md +3 -3
- package/docs/reference/http-api.md +2 -2
- package/docs/reference/project-layout.md +7 -7
- package/docs/reference/schedules.md +1 -1
- package/docs/reference/sessions.md +7 -7
- package/docs/reference/tools.md +3 -3
- package/docs/scaffolding-agents.md +2 -2
- package/docs/storage.md +5 -5
- package/docs/troubleshooting.md +11 -10
- package/package.json +5 -2
- package/skills/ab/SKILL.md +5 -5
- package/skills/create-agent/SKILL.md +17 -17
- package/skills/debug/SKILL.md +10 -10
- package/skills/evals/SKILL.md +13 -13
- package/skills/framework-map/SKILL.md +3 -3
- package/skills/github/SKILL.md +11 -11
- package/skills/hillclimb/SKILL.md +9 -9
- package/skills/mcp-auth/SKILL.md +11 -11
- package/skills/setup-slack/SKILL.md +28 -28
- package/src/bin/agent-serve.ts +4 -4
- package/src/channels/github/index.ts +1 -1
- package/src/channels/slack/bot-mentions.ts +1 -1
- package/src/channels/slack/eval-directive.ts +1 -1
- package/src/channels/slack/external-policy.ts +1 -1
- package/src/channels/slack/log.ts +1 -1
- package/src/channels/slack/setup.ts +1 -1
- package/src/channels/slack/socket-mode.ts +1 -1
- package/src/evals/reporters.ts +1 -1
- package/src/evals.ts +2 -2
- package/src/files-backends/agent-store-presigned-url.ts +8 -0
- package/src/files-backends/cursor-hosted.ts +724 -0
- package/src/files-backends/local-fs.ts +178 -0
- package/src/files.ts +195 -0
- package/src/internal/ab-collector.ts +2 -2
- package/src/internal/ab-fold.ts +1 -1
- package/src/internal/cli-ax.ts +2 -2
- package/src/internal/cli-deploy.ts +7 -2
- package/src/internal/cli-docs.ts +1 -1
- package/src/internal/cli-github.ts +13 -13
- package/src/internal/cli-mcp-oauth.ts +2 -2
- package/src/internal/cli-mcp.ts +4 -4
- package/src/internal/cli-skills.ts +1 -1
- package/src/internal/cloud-turn-cost.ts +20 -4
- package/src/internal/cursor/account-mcp.ts +5 -5
- package/src/internal/cursor/backend-client.ts +1 -1
- package/src/internal/cursor/github-credentials.ts +3 -3
- package/src/internal/cursor-account-mcp-auth.ts +1 -1
- package/src/internal/cursor-event-relay.ts +1 -1
- package/src/internal/cursor-relay-core.ts +1 -1
- package/src/internal/cursor-slack-relay.ts +1 -1
- package/src/internal/deploy-client.ts +8 -2
- package/src/internal/deploy-source.ts +2 -2
- package/src/internal/discovery.ts +2 -2
- package/src/internal/distribution.ts +6 -6
- package/src/internal/docs-site.ts +5 -5
- package/src/internal/eval-run-store.ts +8 -8
- package/src/internal/evals-client.ts +1 -1
- package/src/internal/github-fanout.ts +2 -2
- package/src/internal/host-files.ts +372 -0
- package/src/internal/host-platforms.ts +5 -5
- package/src/internal/hosting.ts +1 -1
- package/src/internal/http-channel.ts +30 -0
- package/src/internal/install-cursor-skills.ts +31 -3
- package/src/internal/local-control-plane.ts +2 -2
- package/src/internal/logs-client.ts +2 -2
- package/src/internal/mcp-endpoint.ts +1 -1
- package/src/internal/mcp-oauth.ts +2 -2
- package/src/internal/platform-schedule-sync.ts +2 -2
- package/src/internal/playground/toolchain.ts +6 -6
- package/src/internal/reminder-runner.ts +13 -13
- package/src/internal/resolved-connections.ts +6 -6
- package/src/internal/schedule-runner.ts +1 -1
- package/src/internal/sdk-runner.ts +5 -5
- package/src/internal/server.ts +16 -16
- package/src/internal/session-cost.ts +7 -6
- package/src/internal/session-engine.ts +141 -28
- package/src/internal/slack-provision-client.ts +1 -1
- package/src/internal/storage-coordinator.ts +7 -7
- package/src/internal/trajectory.ts +2 -2
- package/src/internal/turn-cost.ts +110 -0
- package/src/internal/update-check.ts +6 -6
- package/src/memory.ts +1 -1
- package/src/storage.ts +1 -1
- package/src/types.ts +148 -16
- package/dist/docs/assets/building-with-agents.md.CJCtZCyi.js +0 -13
- package/dist/docs/assets/chunks/@localSearchIndexroot.CbQshWFK.js +0 -1
- package/dist/docs/assets/concepts.md.Cfb9b-k1.js +0 -4
- package/dist/docs/assets/concepts.md.Cfb9b-k1.lean.js +0 -1
- package/dist/docs/assets/deployment.md.TecHo0_2.js +0 -55
- package/dist/docs/assets/deployment.md.TecHo0_2.lean.js +0 -1
- package/dist/docs/assets/evals.md.DYOjkRCX.lean.js +0 -1
- package/dist/docs/assets/example-agents_benny.md.B0gjhI-p.js +0 -7
- package/dist/docs/assets/example-agents_index.md.D2PEVSXl.js +0 -2
- package/dist/docs/assets/example-agents_index.md.D2PEVSXl.lean.js +0 -1
- package/dist/docs/assets/example-agents_oncall.md.BG_sUMly.js +0 -10
- package/dist/docs/assets/example-agents_slack-agent.md.buLbgvBf.js +0 -5
- package/dist/docs/assets/example-agents_weather-agent.md.C9Qv-W0o.js +0 -24
- package/dist/docs/assets/example-agents_weather-agent.md.C9Qv-W0o.lean.js +0 -1
- package/dist/docs/assets/guides_cloud-runtime.md.gVzabdQL.js +0 -9
- package/dist/docs/assets/guides_mcp-oauth.md.Dd8EgSem.lean.js +0 -1
- package/dist/docs/assets/guides_slack.md.CjmJSvZS.js +0 -42
- package/dist/docs/assets/guides_slack.md.CjmJSvZS.lean.js +0 -1
- package/dist/docs/assets/index.md.CH_s5uZe.js +0 -20
- package/dist/docs/assets/index.md.CH_s5uZe.lean.js +0 -1
- package/dist/docs/assets/reference_cli.md.ccoKOoXt.js +0 -65
- package/dist/docs/assets/reference_http-api.md.BncLd3PZ.js +0 -11
- package/dist/docs/assets/storage.md.DRTdnFvd.lean.js +0 -1
- package/dist/docs/assets/troubleshooting.md.CmQkmnzC.js +0 -1
- package/dist/internal/model-pricing.d.ts +0 -49
- package/dist/internal/model-pricing.d.ts.map +0 -1
- package/dist/internal/model-pricing.js +0 -377
- package/dist/playground/assets/index-CquRB-l0.js +0 -85
- package/dist/playground/assets/index-Dj0bWpkn.css +0 -1
- package/src/internal/model-pricing.ts +0 -426
- /package/dist/docs/assets/{example-agents_benny.md.B0gjhI-p.lean.js → example-agents_benny.md.2Et1qa8f.lean.js} +0 -0
- /package/dist/docs/assets/{example-agents_bugbot.md.DelIdhxB.lean.js → example-agents_bugbot.md.ByUexi5i.lean.js} +0 -0
- /package/dist/docs/assets/{example-agents_concierge.md.4rQTSMXt.lean.js → example-agents_concierge.md.lL8rhYlj.lean.js} +0 -0
- /package/dist/docs/assets/{example-agents_fsd.md.CzgUrDfi.lean.js → example-agents_fsd.md.DfNKQTHz.lean.js} +0 -0
- /package/dist/docs/assets/{example-agents_oncall.md.BG_sUMly.lean.js → example-agents_oncall.md.wFFXXEyW.lean.js} +0 -0
- /package/dist/docs/assets/{example-agents_security-reviewer.md.Dhj_m7_B.lean.js → example-agents_security-reviewer.md.Dkf1gyo6.lean.js} +0 -0
- /package/dist/docs/assets/{example-agents_slack-agent.md.buLbgvBf.lean.js → example-agents_slack-agent.md.DvgvT4nn.lean.js} +0 -0
- /package/dist/docs/assets/{guides_agent-to-agent.md.Bpzgq2Pq.lean.js → guides_agent-to-agent.md.Bmbxy-FA.lean.js} +0 -0
- /package/dist/docs/assets/{guides_cloud-runtime.md.gVzabdQL.lean.js → guides_cloud-runtime.md.BZ2GA7Es.lean.js} +0 -0
- /package/dist/docs/assets/{guides_github.md.DOOCpqsW.lean.js → guides_github.md.R2QlpR75.lean.js} +0 -0
- /package/dist/docs/assets/{guides_human-in-the-loop.md.DlUqsp1S.lean.js → guides_human-in-the-loop.md.BWvT7UqY.lean.js} +0 -0
- /package/dist/docs/assets/{guides_webhooks.md.wSOYas3X.lean.js → guides_webhooks.md.DiAwSR42.lean.js} +0 -0
- /package/dist/docs/assets/{hillclimbing.md.DHNast08.lean.js → hillclimbing.md.D9Y1_bYh.lean.js} +0 -0
- /package/dist/docs/assets/{quickstart.md.BU6Iwi_9.lean.js → quickstart.md.TnEXYgYW.lean.js} +0 -0
- /package/dist/docs/assets/{reference_agent-config.md.DrW2JUM8.lean.js → reference_agent-config.md.kuN6-OxK.lean.js} +0 -0
- /package/dist/docs/assets/{reference_connections.md.B9Q3TOve.lean.js → reference_connections.md.DGqAsFXb.lean.js} +0 -0
- /package/dist/docs/assets/{reference_http-api.md.BncLd3PZ.lean.js → reference_http-api.md.CfVM_ICa.lean.js} +0 -0
- /package/dist/docs/assets/{reference_schedules.md.w_F2mXB6.lean.js → reference_schedules.md.gmfYzf_I.lean.js} +0 -0
- /package/dist/docs/assets/{reference_sessions.md.DLd6mvbv.lean.js → reference_sessions.md.C_ouF_uf.lean.js} +0 -0
- /package/dist/docs/assets/{reference_tools.md.BRSDnTbN.lean.js → reference_tools.md.BswAQM41.lean.js} +0 -0
|
@@ -88,8 +88,8 @@ GitHub. Its only side effects are wiki files on the serve host.
|
|
|
88
88
|
## Validate the surface
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
agent-sdk validate --dir examples/codebase-wiki
|
|
92
|
+
agent-sdk info --dir examples/codebase-wiki --json
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
The manifest should report four server tools, one skill, one schedule,
|
|
@@ -100,9 +100,9 @@ and the authored GitHub channel.
|
|
|
100
100
|
Replay a real merged PR as a closed delivery:
|
|
101
101
|
|
|
102
102
|
```bash
|
|
103
|
-
|
|
103
|
+
agent-sdk dev examples/codebase-wiki
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
agent-sdk github replay https://github.com/owner/repo/pull/123 \
|
|
106
106
|
--dir examples/codebase-wiki --action closed
|
|
107
107
|
```
|
|
108
108
|
|
|
@@ -118,7 +118,7 @@ section, and a changelog line citing the PR. Deterministic digest
|
|
|
118
118
|
preparation works without a model turn:
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
-
|
|
121
|
+
agent-sdk call ingest_pr \
|
|
122
122
|
--dir examples/codebase-wiki \
|
|
123
123
|
--input '{"pr":"https://github.com/owner/repo/pull/123"}'
|
|
124
124
|
```
|
|
@@ -128,7 +128,7 @@ the model to change nothing.
|
|
|
128
128
|
|
|
129
129
|
## Run the daily digest
|
|
130
130
|
|
|
131
|
-
The schedule fires at 07:00 UTC. Under `
|
|
131
|
+
The schedule fires at 07:00 UTC. Under `agent-sdk dev`, trigger it by
|
|
132
132
|
hand:
|
|
133
133
|
|
|
134
134
|
```bash
|
|
@@ -143,8 +143,8 @@ always count; a digest only claims a quiet day when no entry qualifies.
|
|
|
143
143
|
## Run the evals
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
agent-sdk eval --dir examples/codebase-wiki --list
|
|
147
|
+
agent-sdk eval --dir examples/codebase-wiki ingest/update-existing
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
The cases seed a temp wiki through `CODEBASE_WIKI_DIR` and build
|
|
@@ -96,8 +96,8 @@ the same session through the `pr:<label>` continuation token.
|
|
|
96
96
|
## Validate the surface
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
agent-sdk validate --dir examples/codeowners-review
|
|
100
|
+
agent-sdk info --dir examples/codeowners-review --json
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
The manifest should report two server tools, one skill, one subagent,
|
|
@@ -106,9 +106,9 @@ and the authored GitHub channel.
|
|
|
106
106
|
## Inspect routing without a model turn
|
|
107
107
|
|
|
108
108
|
```bash
|
|
109
|
-
|
|
109
|
+
agent-sdk call list_review_areas --dir examples/codeowners-review --input '{}'
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
agent-sdk call prepare_review \
|
|
112
112
|
--dir examples/codeowners-review \
|
|
113
113
|
--input '{"pr":"fixture:multi-area"}'
|
|
114
114
|
```
|
|
@@ -123,7 +123,7 @@ adapt `reviews/REVIEWERS`.
|
|
|
123
123
|
## Review the planted fixture
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
|
|
126
|
+
agent-sdk dev examples/codeowners-review
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
In the playground:
|
|
@@ -146,7 +146,7 @@ Review a real PR the same way:
|
|
|
146
146
|
Or replay one as a webhook delivery:
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
|
|
149
|
+
agent-sdk github replay https://github.com/owner/repo/pull/123 \
|
|
150
150
|
--dir examples/codeowners-review --action opened
|
|
151
151
|
```
|
|
152
152
|
|
|
@@ -162,8 +162,8 @@ APPROVE only when every non-advisory area approved.
|
|
|
162
162
|
## Run the evals
|
|
163
163
|
|
|
164
164
|
```bash
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
agent-sdk eval --dir examples/codeowners-review --list
|
|
166
|
+
agent-sdk eval --dir examples/codeowners-review review/multi-area
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
`review/multi-area` gates the whole pipeline: `prepare_review` runs, at
|
|
@@ -6,7 +6,7 @@ description: "Delegate weather requests through a peer MCP connection while each
|
|
|
6
6
|
# Compose agents with a concierge
|
|
7
7
|
|
|
8
8
|
Concierge answers general questions itself and sends every weather question
|
|
9
|
-
to the weather agent. The connection is one file.
|
|
9
|
+
to the weather agent. The connection is one file. The Agent SDK turns the target
|
|
10
10
|
agent's MCP endpoint into tools the concierge can call.
|
|
11
11
|
|
|
12
12
|
Use this example when two agents are useful on their own and one should
|
|
@@ -51,7 +51,7 @@ comparison.
|
|
|
51
51
|
classifies packing advice as weather-related.
|
|
52
52
|
3. The model calls `weather.ask` with the city, timeframe, units, and the
|
|
53
53
|
complete question.
|
|
54
|
-
4.
|
|
54
|
+
4. The Agent SDK creates an MCP-channel session inside `weather-agent`.
|
|
55
55
|
5. Weather agent calls its own Open-Meteo tools and returns a reply.
|
|
56
56
|
6. If the turn exceeds the bounded MCP wait, `ask` returns
|
|
57
57
|
`status: "running"`. Concierge calls `weather.check` with the returned
|
|
@@ -87,8 +87,8 @@ isn't mounted.
|
|
|
87
87
|
From `packages/agent-serve`, validate both projects:
|
|
88
88
|
|
|
89
89
|
```bash
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
agent-sdk validate --dir examples/concierge
|
|
91
|
+
agent-sdk validate --dir examples/weather-agent
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
Don't serve the repository's whole `examples/` directory for this proof.
|
|
@@ -108,7 +108,7 @@ cp -R examples/weather-agent/agent/{tools,skills,mcp-connections,subagents,sched
|
|
|
108
108
|
"$PAIR_DIR/weather-agent/agent/"
|
|
109
109
|
cp -R examples/weather-agent/mcp "$PAIR_DIR/weather-agent/"
|
|
110
110
|
cp examples/weather-agent/package.json "$PAIR_DIR/weather-agent/"
|
|
111
|
-
|
|
111
|
+
agent-sdk dev "$PAIR_DIR"
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
The host resolves the peer after it knows every mount. The local peer URL is
|
|
@@ -120,7 +120,7 @@ credential for both model turns.
|
|
|
120
120
|
Send a weather request to the running Concierge:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
|
|
123
|
+
agent-sdk chat \
|
|
124
124
|
--url http://127.0.0.1:3000/concierge \
|
|
125
125
|
--message "What should I pack for Paris tomorrow?"
|
|
126
126
|
```
|
|
@@ -136,7 +136,7 @@ separate session on the `mcp` channel with live weather tool calls.
|
|
|
136
136
|
Now send a general request:
|
|
137
137
|
|
|
138
138
|
```bash
|
|
139
|
-
|
|
139
|
+
agent-sdk chat \
|
|
140
140
|
--url http://127.0.0.1:3000/concierge \
|
|
141
141
|
--message "Give me three ideas for a quiet weekend."
|
|
142
142
|
```
|
|
@@ -155,7 +155,7 @@ the second question needs facts or choices from the first.
|
|
|
155
155
|
|
|
156
156
|
## Keep delegation bounded
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
The Agent SDK rejects unknown peer slugs and self-references during startup. It
|
|
159
159
|
doesn't stop a cycle across several valid peers. If agent A delegates all work
|
|
160
160
|
to B and B delegates all work to A, they can recurse.
|
|
161
161
|
|
|
@@ -175,12 +175,12 @@ Local turns reach peers over loopback. A cloud VM can't reach the serve
|
|
|
175
175
|
host's loopback address. Set a public URL when a cloud agent needs the peer:
|
|
176
176
|
|
|
177
177
|
```bash
|
|
178
|
-
|
|
178
|
+
agent-sdk serve --dir "$PAIR_DIR" \
|
|
179
179
|
--public-url https://agents.example.com \
|
|
180
180
|
--bearer-token "$AGENT_TOKEN"
|
|
181
181
|
```
|
|
182
182
|
|
|
183
|
-
|
|
183
|
+
The Agent SDK attaches the bearer token to peer calls. Without `--public-url`,
|
|
184
184
|
cloud turns omit peer connections and the server logs a warning.
|
|
185
185
|
|
|
186
186
|
## Compose your own pair
|
|
@@ -41,7 +41,7 @@ execution, event wakes, and timed follow-ups.
|
|
|
41
41
|
2. The root model calls `drive_pr` with the PR, mode, and optional hint.
|
|
42
42
|
3. The tool calls `ctx.send("drive", ...)` with a per-session `cloud` block
|
|
43
43
|
to attach the PR.
|
|
44
|
-
4.
|
|
44
|
+
4. The Agent SDK creates or resumes the `drive` session keyed by
|
|
45
45
|
`pr:owner/repo#N`.
|
|
46
46
|
5. The remote runtime provisions the agent and emits `agent.bound`.
|
|
47
47
|
6. The enrollment hook writes PR affinity and calls the workflow backend to
|
|
@@ -119,9 +119,9 @@ long-lived host.
|
|
|
119
119
|
## Validate without starting remote work
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
agent-sdk validate --dir examples/fsd
|
|
123
|
+
agent-sdk info --dir examples/fsd --json
|
|
124
|
+
agent-sdk github events --dir examples/fsd --json
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
These commands inspect discovery and declared GitHub events. They don't
|
|
@@ -158,7 +158,7 @@ authoritative mode.
|
|
|
158
158
|
Run the host:
|
|
159
159
|
|
|
160
160
|
```bash
|
|
161
|
-
|
|
161
|
+
agent-sdk dev examples/fsd
|
|
162
162
|
```
|
|
163
163
|
|
|
164
164
|
From chat:
|
|
@@ -168,7 +168,7 @@ From chat:
|
|
|
168
168
|
Or call the coordinator tool:
|
|
169
169
|
|
|
170
170
|
```bash
|
|
171
|
-
|
|
171
|
+
agent-sdk call drive_pr \
|
|
172
172
|
--dir examples/fsd \
|
|
173
173
|
--input '{"pr":"https://github.com/owner/repo/pull/123","mode":"suggest"}'
|
|
174
174
|
```
|
|
@@ -270,7 +270,7 @@ Development mode doesn't fire reminder timers automatically. Dispatch one
|
|
|
270
270
|
through the dev reminder endpoint for a manual proof, or use non-dev `serve`
|
|
271
271
|
to run the 30-minute cadence.
|
|
272
272
|
|
|
273
|
-
The reminder's `run` handler lives in memory. After a host restart,
|
|
273
|
+
The reminder's `run` handler lives in memory. After a host restart, the Agent SDK
|
|
274
274
|
disarms it with `handler_lost_on_restart`; a later drive or webhook path can
|
|
275
275
|
arm a fresh handler. Persisted reminder metadata alone doesn't keep the check
|
|
276
276
|
running.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Choose the right
|
|
2
|
+
title: "Choose the right Agent SDK example"
|
|
3
3
|
description: "Compare all twelve example agents by runtime, channels, tools, state, and the framework pattern each one teaches."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Choose the right
|
|
6
|
+
# Choose the right Agent SDK example
|
|
7
7
|
|
|
8
8
|
The examples progress from one-channel assistants to durable, event-driven
|
|
9
9
|
workflows. Start with the smallest agent for your use case. Each guide
|
|
@@ -13,7 +13,7 @@ design.
|
|
|
13
13
|
The source projects live under
|
|
14
14
|
[`examples/`](../../examples/). Run the commands below from
|
|
15
15
|
`packages/agent-serve`. See [Run the CLI](../README.md#run-the-cli) if the
|
|
16
|
-
`
|
|
16
|
+
`agent-sdk` command isn't installed.
|
|
17
17
|
|
|
18
18
|
## Compare the examples
|
|
19
19
|
|
|
@@ -34,7 +34,7 @@ The source projects live under
|
|
|
34
34
|
|
|
35
35
|
## Pick a learning path
|
|
36
36
|
|
|
37
|
-
Use this order when you want to learn
|
|
37
|
+
Use this order when you want to learn the Agent SDK one capability at a time:
|
|
38
38
|
|
|
39
39
|
1. Start with [Weather agent](./weather-agent.md) to explore the filesystem
|
|
40
40
|
conventions and local runtime.
|
|
@@ -60,7 +60,7 @@ Use this order when you want to learn agentkit one capability at a time:
|
|
|
60
60
|
|
|
61
61
|
All examples require:
|
|
62
62
|
|
|
63
|
-
- Node 22.13 or newer. Don't run
|
|
63
|
+
- Node 22.13 or newer. Don't run the Agent SDK under Bun.
|
|
64
64
|
- Workspace dependencies installed.
|
|
65
65
|
- An agent-runtime credential for model turns.
|
|
66
66
|
|
|
@@ -83,11 +83,11 @@ Each guide lists its own credentials, services, and side effects.
|
|
|
83
83
|
Discovery commands don't start a model turn:
|
|
84
84
|
|
|
85
85
|
```bash
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
agent-sdk validate --dir examples/weather-agent
|
|
87
|
+
agent-sdk info --dir examples/weather-agent --json
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
Start one development server with `
|
|
90
|
+
Start one development server with `agent-sdk dev examples/<name>`.
|
|
91
91
|
Concierge depends on Weather agent, so its guide creates an isolated
|
|
92
92
|
two-project mount. Don't mount the whole examples directory to test one
|
|
93
93
|
agent; several advanced examples subscribe to live GitHub events.
|
|
@@ -82,8 +82,8 @@ Nothing else. The wiki is created on first write.
|
|
|
82
82
|
## Validate the surface
|
|
83
83
|
|
|
84
84
|
```bash
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
agent-sdk validate --dir examples/knowledge-base
|
|
86
|
+
agent-sdk info --dir examples/knowledge-base --json
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
The manifest should report three server tools, one skill, and one
|
|
@@ -92,15 +92,15 @@ schedule.
|
|
|
92
92
|
## Exercise the store without a model turn
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
|
|
95
|
+
agent-sdk call wiki_write \
|
|
96
96
|
--dir examples/knowledge-base \
|
|
97
97
|
--input '{"page":"staging-database","content":"# Staging database\n\n- Port: 6432 (recorded 2026-07-19)\n"}'
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
agent-sdk call wiki_search \
|
|
100
100
|
--dir examples/knowledge-base \
|
|
101
101
|
--input '{"query":"6432"}'
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
agent-sdk call wiki_read --dir examples/knowledge-base --input '{}'
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
Invalid page ids fail fast. Try `{"page":"../escape"}` and the tool
|
|
@@ -109,7 +109,7 @@ returns the validation error instead of touching the filesystem.
|
|
|
109
109
|
## Prove recall across sessions
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
|
|
112
|
+
agent-sdk dev examples/knowledge-base
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
Teach it something in the playground:
|
|
@@ -132,7 +132,7 @@ source of truth.
|
|
|
132
132
|
|
|
133
133
|
The `gardener` schedule fires at 06:00 UTC and rewrites the wiki for
|
|
134
134
|
consistency: merge near-duplicate pages, rebuild `index`, and flag
|
|
135
|
-
facts older than 90 days. Under `
|
|
135
|
+
facts older than 90 days. Under `agent-sdk dev`, timers don't auto-fire.
|
|
136
136
|
Trigger it by hand:
|
|
137
137
|
|
|
138
138
|
```bash
|
|
@@ -142,8 +142,8 @@ curl -s -X POST http://127.0.0.1:3000/knowledge-base/v1/dev/schedules/gardener
|
|
|
142
142
|
## Run the evals
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
agent-sdk eval --dir examples/knowledge-base --list
|
|
146
|
+
agent-sdk eval --dir examples/knowledge-base knowledge/recall
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
The eval file seeds a temp directory through `KNOWLEDGE_BASE_DIR`
|
|
@@ -27,7 +27,7 @@ instead of answering every message.
|
|
|
27
27
|
through; the agent's own posts always stay dropped.
|
|
28
28
|
3. The handler reacts 👀 on the alert post and sets "Investigating…"
|
|
29
29
|
typing. The reaction is the lock-in signal: this alert has an owner.
|
|
30
|
-
4.
|
|
30
|
+
4. The Agent SDK creates a session keyed to the alert's thread and dispatches
|
|
31
31
|
immediately. New alerts get no debounce.
|
|
32
32
|
5. The agent reads the alert, gathers evidence, and posts findings to the
|
|
33
33
|
thread once it has a hypothesis.
|
|
@@ -137,8 +137,8 @@ Channel watching is Socket Mode only, so this example uses a dedicated
|
|
|
137
137
|
app:
|
|
138
138
|
|
|
139
139
|
```bash
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
agent-sdk slack init --dir examples/oncall --name "Oncall" --channel-posts
|
|
141
|
+
agent-sdk slack doctor --prefix ONCALL
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
The generated manifest subscribes to `message.channels` and
|
|
@@ -157,9 +157,9 @@ thread.
|
|
|
157
157
|
## Validate and start the server
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
agent-sdk validate --dir examples/oncall
|
|
161
|
+
agent-sdk info --dir examples/oncall --json
|
|
162
|
+
agent-sdk dev examples/oncall
|
|
163
163
|
```
|
|
164
164
|
|
|
165
165
|
The info output lists four server tools and the watched channel on the
|
|
@@ -186,7 +186,7 @@ own posts never loop, and replies coalesce behind the quiet window.
|
|
|
186
186
|
The smoke eval spends a model turn:
|
|
187
187
|
|
|
188
188
|
```bash
|
|
189
|
-
|
|
189
|
+
agent-sdk eval --dir examples/oncall smoke --json
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
It checks identity and the reminder-tool route lexically. It doesn't prove
|
|
@@ -102,9 +102,9 @@ The active names live beside the orchestration in
|
|
|
102
102
|
## Validate the discovered agent
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
agent-sdk validate --dir ../../factory/security-reviewer
|
|
106
|
+
agent-sdk info --dir ../../factory/security-reviewer --json
|
|
107
|
+
agent-sdk eval --dir ../../factory/security-reviewer --list
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
The manifest should show four server tools, two authored channels, one
|
|
@@ -129,15 +129,15 @@ calls below when a no-post proof must be enforced.
|
|
|
129
129
|
Call each stage and pass `postComment: false` yourself:
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
|
-
|
|
132
|
+
agent-sdk call prepare_review \
|
|
133
133
|
--dir ../../factory/security-reviewer \
|
|
134
134
|
--input '{"prUrl":"https://github.com/owner/repo/pull/123"}'
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
agent-sdk call run_reviewers \
|
|
137
137
|
--dir ../../factory/security-reviewer \
|
|
138
138
|
--input '{"runId":"<run-id>"}'
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
agent-sdk call finalize_review \
|
|
141
141
|
--dir ../../factory/security-reviewer \
|
|
142
142
|
--input '{"runId":"<run-id>","postComment":false}'
|
|
143
143
|
```
|
|
@@ -154,7 +154,7 @@ stages can open the prepared `runId`.
|
|
|
154
154
|
Run the dev server:
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
|
-
|
|
157
|
+
agent-sdk dev ../../factory/security-reviewer
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
Open the printed playground and start a review. The custom
|
|
@@ -164,7 +164,7 @@ It refreshes every 500 ms while the stage runs. Each row shows a reviewer
|
|
|
164
164
|
module's state, candidates, reviewed areas, and failure. A second section
|
|
165
165
|
shows triage jobs and confirmed or rejected counts.
|
|
166
166
|
|
|
167
|
-
This is an authored playground extension.
|
|
167
|
+
This is an authored playground extension. The Agent SDK discovers it by the tool
|
|
168
168
|
name, so the generic `run_reviewers` chip becomes a domain-specific view
|
|
169
169
|
without changing the framework playground.
|
|
170
170
|
|
|
@@ -192,7 +192,7 @@ findings, accounting, and audit events.
|
|
|
192
192
|
|
|
193
193
|
## Separate session storage from review artifacts
|
|
194
194
|
|
|
195
|
-
`defineStorage` + `cursorHostedStorage` sends
|
|
195
|
+
`defineStorage` + `cursorHostedStorage` sends Agent SDK session and event records
|
|
196
196
|
to Cursor-hosted Bugbot storage through the control-plane proxy. Security
|
|
197
197
|
Reviewer sets `restore: "off"` so startup doesn't load old review sessions in
|
|
198
198
|
bulk. A continuation lookup can still fetch a needed session.
|
|
@@ -234,7 +234,7 @@ The channel currently accepts two configured repositories. It wakes on
|
|
|
234
234
|
Inspect its event surface:
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
|
|
237
|
+
agent-sdk github events \
|
|
238
238
|
--dir ../../factory/security-reviewer \
|
|
239
239
|
--json
|
|
240
240
|
```
|
|
@@ -243,7 +243,7 @@ Replay reaches the full publishing path:
|
|
|
243
243
|
|
|
244
244
|
```bash
|
|
245
245
|
TEST_PR_URL=https://github.com/your-org/allowlisted-test-repo/pull/123
|
|
246
|
-
|
|
246
|
+
agent-sdk github replay \
|
|
247
247
|
"$TEST_PR_URL" \
|
|
248
248
|
--dir ../../factory/security-reviewer \
|
|
249
249
|
--action opened
|
|
@@ -256,7 +256,7 @@ status and may post findings.
|
|
|
256
256
|
## Inspect the eval before running it
|
|
257
257
|
|
|
258
258
|
```bash
|
|
259
|
-
|
|
259
|
+
agent-sdk eval --dir ../../factory/security-reviewer --list
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
The case reads pinned metadata from the committed fixture and checks for all
|
|
@@ -31,7 +31,7 @@ status updates, and suggested prompts.
|
|
|
31
31
|
1. A user mentions the agent or sends the host app a direct message naming
|
|
32
32
|
it.
|
|
33
33
|
2. The Slack relay selects this channel by its single-token `agentName`.
|
|
34
|
-
3.
|
|
34
|
+
3. The Agent SDK maps the Slack channel and thread timestamp to a continuation
|
|
35
35
|
key.
|
|
36
36
|
4. The local harness runs with
|
|
37
37
|
[`instructions.md`](../../examples/slack-agent/agent/instructions.md).
|
|
@@ -45,7 +45,7 @@ or tool routing.
|
|
|
45
45
|
|
|
46
46
|
| File | Purpose |
|
|
47
47
|
| --- | --- |
|
|
48
|
-
| [`package.json`](../../examples/slack-agent/package.json) | Declares the example package and
|
|
48
|
+
| [`package.json`](../../examples/slack-agent/package.json) | Declares the example package and Agent SDK dependency. |
|
|
49
49
|
| [`agent/agent.ts`](../../examples/slack-agent/agent/agent.ts) | Names the agent and selects the model. The omitted `runtime` defaults to local. |
|
|
50
50
|
| [`agent/instructions.md`](../../examples/slack-agent/agent/instructions.md) | Sets the always-on response style. |
|
|
51
51
|
| [`agent/channels/slack.ts`](../../examples/slack-agent/agent/channels/slack.ts) | Connects the signed-in host account to Slack. |
|
|
@@ -64,8 +64,8 @@ You need:
|
|
|
64
64
|
Sign in and confirm the active account:
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
agent-sdk login
|
|
68
|
+
agent-sdk whoami
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
The selected transport owns Slack credential setup. See the
|
|
@@ -75,9 +75,9 @@ options.
|
|
|
75
75
|
## Validate and start the server
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
agent-sdk validate --dir examples/slack-agent
|
|
79
|
+
agent-sdk info --dir examples/slack-agent --json
|
|
80
|
+
agent-sdk dev examples/slack-agent
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
The dev command prints the playground URL. It also mounts the Slack channel
|
|
@@ -85,7 +85,7 @@ and waits for relayed messages.
|
|
|
85
85
|
|
|
86
86
|
In Slack, address the configured host app and router name, then send:
|
|
87
87
|
|
|
88
|
-
> `<host-app mention> <router name>` Explain
|
|
88
|
+
> `<host-app mention> <router name>` Explain the Agent SDK in three bullets.
|
|
89
89
|
|
|
90
90
|
Reply in the generated thread:
|
|
91
91
|
|
|
@@ -101,8 +101,8 @@ Every project gets the built-in HTTP channel even when no HTTP file exists.
|
|
|
101
101
|
Run a one-shot turn through it:
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
|
|
105
|
-
--message "Explain
|
|
104
|
+
agent-sdk run --dir examples/slack-agent \
|
|
105
|
+
--message "Explain the Agent SDK simply."
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
The same project also exposes an MCP endpoint. Since this agent has no server
|