@cursor/july 0.1.102 → 0.1.104
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 +34 -32
- package/README.md +10 -12
- package/dist/ab.d.ts +1 -1
- package/dist/ab.js +1 -1
- package/dist/bin/agent-serve.d.ts +12 -12
- package/dist/bin/agent-serve.js +114 -36
- package/dist/channels/bitbucket/api.d.ts +176 -0
- package/dist/channels/bitbucket/api.d.ts.map +1 -0
- package/dist/channels/bitbucket/api.js +419 -0
- package/dist/channels/bitbucket/binding.d.ts +71 -0
- package/dist/channels/bitbucket/binding.d.ts.map +1 -0
- package/dist/channels/bitbucket/binding.js +269 -0
- package/dist/channels/bitbucket/bitbucket-channel.d.ts +33 -0
- package/dist/channels/bitbucket/bitbucket-channel.d.ts.map +1 -0
- package/dist/channels/bitbucket/bitbucket-channel.js +120 -0
- package/dist/channels/bitbucket/bitbucket-webhook.d.ts +61 -0
- package/dist/channels/bitbucket/bitbucket-webhook.d.ts.map +1 -0
- package/dist/channels/bitbucket/bitbucket-webhook.js +394 -0
- package/dist/channels/bitbucket/checks.d.ts +67 -0
- package/dist/channels/bitbucket/checks.d.ts.map +1 -0
- package/dist/channels/bitbucket/checks.js +102 -0
- package/dist/channels/bitbucket/cursor-account.d.ts +37 -0
- package/dist/channels/bitbucket/cursor-account.d.ts.map +1 -0
- package/dist/channels/bitbucket/cursor-account.js +65 -0
- package/dist/channels/bitbucket/defaults.d.ts +26 -0
- package/dist/channels/bitbucket/defaults.d.ts.map +1 -0
- package/dist/channels/bitbucket/defaults.js +73 -0
- package/dist/channels/bitbucket/events.d.ts +22 -0
- package/dist/channels/bitbucket/events.d.ts.map +1 -0
- package/dist/channels/bitbucket/events.js +64 -0
- package/dist/channels/bitbucket/index.d.ts +34 -0
- package/dist/channels/bitbucket/index.d.ts.map +1 -0
- package/dist/channels/bitbucket/index.js +33 -0
- package/dist/channels/bitbucket/replay.d.ts +63 -0
- package/dist/channels/bitbucket/replay.d.ts.map +1 -0
- package/dist/channels/bitbucket/replay.js +304 -0
- package/dist/channels/bitbucket/state.d.ts +35 -0
- package/dist/channels/bitbucket/state.d.ts.map +1 -0
- package/dist/channels/bitbucket/state.js +21 -0
- package/dist/channels/bitbucket/types.d.ts +229 -0
- package/dist/channels/bitbucket/types.d.ts.map +1 -0
- package/dist/channels/bitbucket/types.js +1 -0
- package/dist/channels/change-monitors/change-monitors-channel.d.ts +5 -0
- package/dist/channels/change-monitors/change-monitors-channel.d.ts.map +1 -0
- package/dist/channels/change-monitors/change-monitors-channel.js +41 -0
- package/dist/channels/change-monitors/index.d.ts +4 -0
- package/dist/channels/change-monitors/index.d.ts.map +1 -0
- package/dist/channels/change-monitors/index.js +2 -0
- package/dist/channels/change-monitors/types.d.ts +39 -0
- package/dist/channels/change-monitors/types.d.ts.map +1 -0
- package/dist/channels/change-monitors/types.js +1 -0
- package/dist/channels/deployments/deployments-channel.d.ts +22 -14
- package/dist/channels/deployments/deployments-channel.d.ts.map +1 -1
- package/dist/channels/deployments/deployments-channel.js +25 -27
- package/dist/channels/deployments/types.d.ts +12 -6
- package/dist/channels/deployments/types.d.ts.map +1 -1
- package/dist/channels/github/binding.d.ts +6 -0
- package/dist/channels/github/binding.d.ts.map +1 -1
- package/dist/channels/github/binding.js +3 -3
- package/dist/channels/github/cursor-account.d.ts +7 -3
- package/dist/channels/github/cursor-account.d.ts.map +1 -1
- package/dist/channels/github/cursor-account.js +10 -6
- package/dist/channels/github/defaults.d.ts.map +1 -1
- package/dist/channels/github/defaults.js +4 -0
- package/dist/channels/github/events.d.ts +1 -1
- package/dist/channels/github/events.js +1 -1
- package/dist/channels/github/forward.d.ts +1 -1
- package/dist/channels/github/forward.d.ts.map +1 -1
- package/dist/channels/github/forward.js +3 -2
- package/dist/channels/github/github-channel.d.ts +29 -39
- package/dist/channels/github/github-channel.d.ts.map +1 -1
- package/dist/channels/github/github-channel.js +68 -101
- package/dist/channels/github/progress.d.ts +22 -0
- package/dist/channels/github/progress.d.ts.map +1 -1
- package/dist/channels/github/progress.js +32 -5
- package/dist/channels/github/replay.d.ts +1 -1
- package/dist/channels/github/replay.js +1 -1
- package/dist/channels/github/state.d.ts +2 -0
- package/dist/channels/github/state.d.ts.map +1 -1
- package/dist/channels/github/state.js +14 -11
- package/dist/channels/github/types.d.ts +2 -4
- package/dist/channels/github/types.d.ts.map +1 -1
- package/dist/channels/gitlab/api.d.ts +91 -0
- package/dist/channels/gitlab/api.d.ts.map +1 -0
- package/dist/channels/gitlab/api.js +150 -0
- package/dist/channels/gitlab/binding.d.ts +58 -0
- package/dist/channels/gitlab/binding.d.ts.map +1 -0
- package/dist/channels/gitlab/binding.js +139 -0
- package/dist/channels/gitlab/checks.d.ts +110 -0
- package/dist/channels/gitlab/checks.d.ts.map +1 -0
- package/dist/channels/gitlab/checks.js +126 -0
- package/dist/channels/gitlab/cursor-account.d.ts +36 -0
- package/dist/channels/gitlab/cursor-account.d.ts.map +1 -0
- package/dist/channels/gitlab/cursor-account.js +65 -0
- package/dist/channels/gitlab/defaults.d.ts +25 -0
- package/dist/channels/gitlab/defaults.d.ts.map +1 -0
- package/dist/channels/gitlab/defaults.js +60 -0
- package/dist/channels/gitlab/events.d.ts +12 -0
- package/dist/channels/gitlab/events.d.ts.map +1 -0
- package/dist/channels/gitlab/events.js +28 -0
- package/dist/channels/gitlab/gitlab-channel.d.ts +33 -0
- package/dist/channels/gitlab/gitlab-channel.d.ts.map +1 -0
- package/dist/channels/gitlab/gitlab-channel.js +120 -0
- package/dist/channels/gitlab/gitlab-webhook.d.ts +45 -0
- package/dist/channels/gitlab/gitlab-webhook.d.ts.map +1 -0
- package/dist/channels/gitlab/gitlab-webhook.js +397 -0
- package/dist/channels/gitlab/index.d.ts +31 -0
- package/dist/channels/gitlab/index.d.ts.map +1 -0
- package/dist/channels/gitlab/index.js +30 -0
- package/dist/channels/gitlab/replay.d.ts +105 -0
- package/dist/channels/gitlab/replay.d.ts.map +1 -0
- package/dist/channels/gitlab/replay.js +206 -0
- package/dist/channels/gitlab/state.d.ts +33 -0
- package/dist/channels/gitlab/state.d.ts.map +1 -0
- package/dist/channels/gitlab/state.js +23 -0
- package/dist/channels/gitlab/types.d.ts +214 -0
- package/dist/channels/gitlab/types.d.ts.map +1 -0
- package/dist/channels/gitlab/types.js +1 -0
- package/dist/channels/issues/index.d.ts +4 -0
- package/dist/channels/issues/index.d.ts.map +1 -0
- package/dist/channels/issues/index.js +2 -0
- package/dist/channels/issues/issues-channel.d.ts +5 -0
- package/dist/channels/issues/issues-channel.d.ts.map +1 -0
- package/dist/channels/issues/issues-channel.js +37 -0
- package/dist/channels/issues/types.d.ts +33 -0
- package/dist/channels/issues/types.d.ts.map +1 -0
- package/dist/channels/issues/types.js +1 -0
- package/dist/channels/origin/api.d.ts.map +1 -1
- package/dist/channels/origin/api.js +4 -2
- package/dist/channels/origin/origin-channel.d.ts +4 -9
- package/dist/channels/origin/origin-channel.d.ts.map +1 -1
- package/dist/channels/origin/origin-channel.js +8 -48
- package/dist/channels/origin/types.d.ts +20 -2
- package/dist/channels/origin/types.d.ts.map +1 -1
- package/dist/channels/slack/eval-directive.d.ts.map +1 -1
- package/dist/channels/slack/eval-directive.js +1 -7
- package/dist/channels/slack/init.d.ts.map +1 -1
- package/dist/channels/slack/init.js +3 -3
- package/dist/channels/slack/setup.d.ts +1 -1
- package/dist/channels/slack/setup.d.ts.map +1 -1
- package/dist/channels/slack/setup.js +6 -13
- package/dist/channels/slack/types.d.ts +1 -1
- package/dist/channels/slack/types.d.ts.map +1 -1
- package/dist/channels.d.ts +1 -1
- package/dist/channels.d.ts.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/connections.d.ts +1 -1
- package/dist/connections.js +1 -1
- package/dist/docs/404.html +2 -2
- package/dist/docs/ab.html +4 -4
- package/dist/docs/assets/{app.CLA03RCz.js → app.DbMWUyGb.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.Bqsulb9K.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.ifxv-cJV.js → VPLocalSearchBox.DcNeTh9o.js} +1 -1
- package/dist/docs/assets/chunks/{theme.DWCwM6p-.js → theme.DMjhY3gl.js} +2 -2
- package/dist/docs/assets/concepts.md.DgEcZOfT.js +1 -0
- package/dist/docs/assets/{concepts.md.rPzW2HZN.lean.js → concepts.md.DgEcZOfT.lean.js} +1 -1
- package/dist/docs/assets/{evals.md.CPzDAwoH.js → evals.md.CbMoebP1.js} +1 -1
- package/dist/docs/assets/guides_cloud-agents.md.DS8RIjwx.js +9 -0
- package/dist/docs/assets/{guides_github.md.BtPr9GaP.js → guides_github.md.c0gdGJ-D.js} +1 -1
- package/dist/docs/assets/{guides_github.md.BtPr9GaP.lean.js → guides_github.md.c0gdGJ-D.lean.js} +1 -1
- package/dist/docs/assets/{guides_opentelemetry.md.BVTXDCRg.js → guides_opentelemetry.md.COh9jFVg.js} +7 -8
- package/dist/docs/assets/{guides_opentelemetry.md.BVTXDCRg.lean.js → guides_opentelemetry.md.COh9jFVg.lean.js} +1 -1
- package/dist/docs/assets/{index.md.Kiht7ell.js → index.md.D75GWhPl.js} +1 -1
- package/dist/docs/assets/{reference_agent-config.md.BHeYMgme.js → reference_agent-config.md.CHNpiyp4.js} +3 -3
- package/dist/docs/assets/{reference_channels.md.Cd2f2iyV.js → reference_channels.md.DBGcaB7m.js} +2 -2
- package/dist/docs/assets/{reference_channels.md.Cd2f2iyV.lean.js → reference_channels.md.DBGcaB7m.lean.js} +1 -1
- package/dist/docs/assets/{reference_cli.md.DfoeyvL0.js → reference_cli.md.CJNc_xYK.js} +1 -1
- package/dist/docs/assets/{reference_extensions.md.9WQMZe1l.js → reference_extensions.md.DykHW3qL.js} +11 -5
- package/dist/docs/assets/reference_extensions.md.DykHW3qL.lean.js +1 -0
- package/dist/docs/assets/reference_hooks.md.Ddt5DdgJ.js +73 -0
- package/dist/docs/assets/{reference_hooks.md.a8BJxMR5.lean.js → reference_hooks.md.Ddt5DdgJ.lean.js} +1 -1
- package/dist/docs/assets/{reference_playground.md.DnX5nL-B.js → reference_playground.md.4myJPxrf.js} +1 -1
- package/dist/docs/assets/{reference_project-layout.md.CA6QP6Lw.js → reference_project-layout.md.DuBu9a96.js} +2 -2
- package/dist/docs/assets/reference_result.md.BK5SxDrf.js +19 -0
- package/dist/docs/assets/reference_result.md.BK5SxDrf.lean.js +1 -0
- package/dist/docs/assets/{reference_sessions.md.NxFP_CAC.js → reference_sessions.md.CueyOHSL.js} +1 -1
- package/dist/docs/assets/{reference_sessions.md.NxFP_CAC.lean.js → reference_sessions.md.CueyOHSL.lean.js} +1 -1
- package/dist/docs/assets/{reference_tools.md.B1up2r9W.js → reference_tools.md.aGrn99hP.js} +1 -1
- package/dist/docs/assets/skills_framework-map.md.haibFyoB.js +1 -0
- package/dist/docs/assets/{skills_otel.md.CgiZryR3.js → skills_otel.md.CqhobH3B.js} +3 -3
- package/dist/docs/assets/{skills_otel.md.CgiZryR3.lean.js → skills_otel.md.CqhobH3B.lean.js} +1 -1
- package/dist/docs/assets/{templates_pr-autofixer.md.x5zl6-GT.js → templates_pr-autofixer.md.Bds_XWcV.js} +2 -2
- package/dist/docs/assets/{templates_pr-autofixer.md.x5zl6-GT.lean.js → templates_pr-autofixer.md.Bds_XWcV.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +4 -4
- package/dist/docs/concepts.html +5 -5
- package/dist/docs/concepts.md +2 -4
- package/dist/docs/deployment.html +4 -4
- package/dist/docs/design/filesystem.md +376 -0
- package/dist/docs/design/runtime-abstraction.md +2 -3
- package/dist/docs/evals.html +6 -6
- package/dist/docs/evals.md +9 -7
- package/dist/docs/guides/agent-to-agent.html +4 -4
- package/dist/docs/guides/cloud-agents.html +6 -6
- package/dist/docs/guides/cloud-agents.md +4 -6
- package/dist/docs/guides/convert-automation.html +4 -4
- package/dist/docs/guides/github.html +6 -6
- package/dist/docs/guides/github.md +5 -1
- package/dist/docs/guides/human-in-the-loop.html +4 -4
- package/dist/docs/guides/mcp-oauth.html +5 -5
- package/dist/docs/guides/opentelemetry.html +10 -11
- package/dist/docs/guides/opentelemetry.md +41 -17
- package/dist/docs/guides/slack.html +4 -4
- package/dist/docs/guides/webhooks.html +4 -4
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +4 -4
- package/dist/docs/index.html +6 -6
- package/dist/docs/index.md +2 -2
- package/dist/docs/llms-full.txt +907 -262
- package/dist/docs/llms.txt +3 -2
- package/dist/docs/quickstart.html +4 -4
- package/dist/docs/reference/agent-config.html +8 -8
- package/dist/docs/reference/agent-config.md +6 -10
- package/dist/docs/reference/artifacts.html +5 -5
- package/dist/docs/reference/channels.html +6 -6
- package/dist/docs/reference/channels.md +38 -8
- package/dist/docs/reference/cli.html +5 -5
- package/dist/docs/reference/cli.md +3 -4
- package/dist/docs/reference/connections.html +4 -4
- package/dist/docs/reference/extensions.html +16 -10
- package/dist/docs/reference/extensions.md +86 -22
- package/dist/docs/reference/hooks.html +69 -10
- package/dist/docs/reference/hooks.md +215 -46
- package/dist/docs/reference/http-api.html +4 -4
- package/dist/docs/reference/instructions.html +4 -4
- package/dist/docs/reference/playground.html +5 -5
- package/dist/docs/reference/playground.md +3 -0
- package/dist/docs/reference/project-layout.html +6 -6
- package/dist/docs/reference/project-layout.md +2 -1
- package/dist/docs/reference/prompt.html +4 -4
- package/dist/docs/reference/result.html +45 -0
- package/dist/docs/reference/result.md +89 -0
- package/dist/docs/reference/schedules.html +4 -4
- package/dist/docs/reference/sessions.html +5 -5
- package/dist/docs/reference/sessions.md +3 -1
- package/dist/docs/reference/skills.html +4 -4
- package/dist/docs/reference/subagents.html +4 -4
- package/dist/docs/reference/tools.html +5 -5
- package/dist/docs/reference/tools.md +1 -2
- package/dist/docs/scaffolding-agents.html +4 -4
- package/dist/docs/skills/ab.html +4 -4
- package/dist/docs/skills/create-agent.html +4 -4
- package/dist/docs/skills/debug.html +4 -4
- package/dist/docs/skills/evals.html +4 -4
- package/dist/docs/skills/framework-map.html +5 -5
- package/dist/docs/skills/framework-map.md +3 -1
- package/dist/docs/skills/github.html +4 -4
- package/dist/docs/skills/hillclimb.html +4 -4
- package/dist/docs/skills/index.html +4 -4
- package/dist/docs/skills/mcp-auth.html +4 -4
- package/dist/docs/skills/otel.html +7 -7
- package/dist/docs/skills/otel.md +8 -3
- package/dist/docs/skills/setup-slack.html +4 -4
- package/dist/docs/storage.html +4 -4
- package/dist/docs/templates/agentic-owners.html +4 -4
- package/dist/docs/templates/agents-md.html +4 -4
- package/dist/docs/templates/code-wiki.html +4 -4
- package/dist/docs/templates/demo.html +4 -4
- package/dist/docs/templates/pr-autofixer.html +6 -6
- package/dist/docs/templates/pr-autofixer.md +0 -3
- package/dist/docs/templates/security-help.html +4 -4
- package/dist/docs/templates/security-reviewer.html +4 -4
- package/dist/docs/templates/triage.html +4 -4
- package/dist/docs/troubleshooting.html +4 -4
- package/dist/evals.d.ts +1 -1
- package/dist/evals.d.ts.map +1 -1
- package/dist/extensions.d.ts +20 -7
- package/dist/extensions.d.ts.map +1 -1
- package/dist/extensions.js +36 -5
- package/dist/files.d.ts +16 -3
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +16 -3
- package/dist/filesystem.d.ts +440 -0
- package/dist/filesystem.d.ts.map +1 -0
- package/dist/filesystem.js +1694 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/internal/ab-snapshot.d.ts.map +1 -1
- package/dist/internal/ab-snapshot.js +0 -1
- package/dist/internal/advertise-tools.d.ts.map +1 -1
- package/dist/internal/advertise-tools.js +1 -3
- package/dist/internal/authored-alias-hooks.d.ts +4 -13
- package/dist/internal/authored-alias-hooks.d.ts.map +1 -1
- package/dist/internal/authored-alias-hooks.js +4 -20
- package/dist/internal/authored-loaders.d.ts +2 -3
- package/dist/internal/authored-loaders.d.ts.map +1 -1
- package/dist/internal/authored-loaders.js +6 -20
- package/dist/internal/channel-dispatch.d.ts +43 -0
- package/dist/internal/channel-dispatch.d.ts.map +1 -0
- package/dist/internal/channel-dispatch.js +77 -0
- package/dist/internal/chat-client.d.ts +1 -1
- package/dist/internal/chat-client.js +1 -1
- package/dist/internal/cli-ax.d.ts +5 -5
- package/dist/internal/cli-ax.d.ts.map +1 -1
- package/dist/internal/cli-ax.js +5 -5
- package/dist/internal/cli-bitbucket.d.ts +33 -0
- package/dist/internal/cli-bitbucket.d.ts.map +1 -0
- package/dist/internal/cli-bitbucket.js +359 -0
- package/dist/internal/cli-convert-automation.d.ts +1 -1
- package/dist/internal/cli-convert-automation.js +2 -2
- package/dist/internal/cli-cursor.d.ts +1 -1
- package/dist/internal/cli-cursor.d.ts.map +1 -1
- package/dist/internal/cli-cursor.js +2 -4
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +2 -6
- package/dist/internal/cli-github.d.ts +1 -1
- package/dist/internal/cli-github.js +3 -3
- package/dist/internal/cli-gitlab.d.ts +37 -0
- package/dist/internal/cli-gitlab.d.ts.map +1 -0
- package/dist/internal/cli-gitlab.js +380 -0
- package/dist/internal/cli-mcp.d.ts.map +1 -1
- package/dist/internal/cli-mcp.js +2 -6
- package/dist/internal/cli-slack.d.ts +1 -1
- package/dist/internal/cli-slack.d.ts.map +1 -1
- package/dist/internal/cli-slack.js +2 -4
- package/dist/internal/continuation-channel.d.ts +18 -2
- package/dist/internal/continuation-channel.d.ts.map +1 -1
- package/dist/internal/continuation-channel.js +67 -5
- package/dist/internal/continuation-identity.d.ts +24 -17
- package/dist/internal/continuation-identity.d.ts.map +1 -1
- package/dist/internal/continuation-identity.js +246 -32
- package/dist/internal/conversation-mirror.d.ts.map +1 -1
- package/dist/internal/conversation-mirror.js +4 -3
- package/dist/internal/convert-automation/types.d.ts +1 -1
- package/dist/internal/convert-automation/types.js +1 -1
- package/dist/internal/cursor/account-mcp.d.ts.map +1 -1
- package/dist/internal/cursor/account-mcp.js +1 -3
- package/dist/internal/cursor/backend-client.d.ts +5 -4
- package/dist/internal/cursor/backend-client.d.ts.map +1 -1
- package/dist/internal/cursor/backend-client.js +5 -6
- package/dist/internal/cursor/bound-secret-file.d.ts +56 -0
- package/dist/internal/cursor/bound-secret-file.d.ts.map +1 -0
- package/dist/internal/cursor/bound-secret-file.js +88 -0
- package/dist/internal/cursor/credentials.d.ts +39 -5
- package/dist/internal/cursor/credentials.d.ts.map +1 -1
- package/dist/internal/cursor/credentials.js +58 -8
- package/dist/internal/cursor/hosted-bound-secrets.d.ts +41 -0
- package/dist/internal/cursor/hosted-bound-secrets.d.ts.map +1 -0
- package/dist/internal/cursor/hosted-bound-secrets.js +54 -0
- package/dist/internal/cursor/hosted-deployment-secrets.d.ts +19 -5
- package/dist/internal/cursor/hosted-deployment-secrets.d.ts.map +1 -1
- package/dist/internal/cursor/hosted-deployment-secrets.js +29 -9
- package/dist/internal/cursor/hosted-store-secrets.d.ts +1 -1
- package/dist/internal/cursor/hosted-store-secrets.js +1 -1
- package/dist/internal/cursor-account-mcp-auth.d.ts.map +1 -1
- package/dist/internal/cursor-account-mcp-auth.js +2 -4
- package/dist/internal/cursor-deployment-relay.d.ts +6 -2
- package/dist/internal/cursor-deployment-relay.d.ts.map +1 -1
- package/dist/internal/cursor-deployment-relay.js +13 -9
- package/dist/internal/deploy-manifest.d.ts +1 -1
- package/dist/internal/deploy-manifest.d.ts.map +1 -1
- package/dist/internal/deploy-manifest.js +1 -1
- package/dist/internal/discovery/ab.d.ts +1 -1
- package/dist/internal/discovery/ab.d.ts.map +1 -1
- package/dist/internal/discovery/ab.js +21 -9
- package/dist/internal/discovery/agent.d.ts +6 -1
- package/dist/internal/discovery/agent.d.ts.map +1 -1
- package/dist/internal/discovery/agent.js +141 -120
- package/dist/internal/discovery/channels.d.ts +1 -1
- package/dist/internal/discovery/channels.d.ts.map +1 -1
- package/dist/internal/discovery/channels.js +14 -14
- package/dist/internal/discovery/connections.d.ts +1 -5
- package/dist/internal/discovery/connections.d.ts.map +1 -1
- package/dist/internal/discovery/connections.js +30 -44
- package/dist/internal/discovery/cursor-plugin.d.ts.map +1 -1
- package/dist/internal/discovery/cursor-plugin.js +1 -3
- package/dist/internal/discovery/extension-overlay.d.ts +32 -0
- package/dist/internal/discovery/extension-overlay.d.ts.map +1 -0
- package/dist/internal/discovery/extension-overlay.js +191 -0
- package/dist/internal/discovery/extensions.d.ts +11 -2
- package/dist/internal/discovery/extensions.d.ts.map +1 -1
- package/dist/internal/discovery/extensions.js +211 -74
- package/dist/internal/discovery/hooks.d.ts +1 -1
- package/dist/internal/discovery/hooks.d.ts.map +1 -1
- package/dist/internal/discovery/hooks.js +15 -2
- package/dist/internal/discovery/info.d.ts.map +1 -1
- package/dist/internal/discovery/info.js +10 -1
- package/dist/internal/discovery/modules.d.ts.map +1 -1
- package/dist/internal/discovery/modules.js +8 -2
- package/dist/internal/discovery/names.d.ts +1 -1
- package/dist/internal/discovery/names.d.ts.map +1 -1
- package/dist/internal/discovery/names.js +1 -0
- package/dist/internal/discovery/project.d.ts +0 -2
- package/dist/internal/discovery/project.d.ts.map +1 -1
- package/dist/internal/discovery/project.js +64 -10
- package/dist/internal/discovery/runtime.d.ts.map +1 -1
- package/dist/internal/discovery/runtime.js +1 -2
- package/dist/internal/discovery/schedules.d.ts +1 -1
- package/dist/internal/discovery/schedules.d.ts.map +1 -1
- package/dist/internal/discovery/schedules.js +23 -2
- package/dist/internal/discovery/services.d.ts +6 -2
- package/dist/internal/discovery/services.d.ts.map +1 -1
- package/dist/internal/discovery/services.js +31 -1
- package/dist/internal/discovery/skills.d.ts +1 -6
- package/dist/internal/discovery/skills.d.ts.map +1 -1
- package/dist/internal/discovery/skills.js +8 -3
- package/dist/internal/discovery/subagent.d.ts +3 -0
- package/dist/internal/discovery/subagent.d.ts.map +1 -1
- package/dist/internal/discovery/subagent.js +109 -0
- package/dist/internal/discovery.d.ts +1 -2
- package/dist/internal/discovery.d.ts.map +1 -1
- package/dist/internal/discovery.js +1 -2
- package/dist/internal/distribution.d.ts +10 -27
- package/dist/internal/distribution.d.ts.map +1 -1
- package/dist/internal/distribution.js +25 -73
- package/dist/internal/docs-site.js +1 -1
- package/dist/internal/eval-run-store.d.ts +0 -1
- package/dist/internal/eval-run-store.d.ts.map +1 -1
- package/dist/internal/eval-runner.d.ts.map +1 -1
- package/dist/internal/factory-resource-channel.d.ts +33 -0
- package/dist/internal/factory-resource-channel.d.ts.map +1 -0
- package/dist/internal/factory-resource-channel.js +77 -0
- package/dist/internal/filesystem/errors.d.ts +64 -0
- package/dist/internal/filesystem/errors.d.ts.map +1 -0
- package/dist/internal/filesystem/errors.js +175 -0
- package/dist/internal/filesystem/format.d.ts +28 -0
- package/dist/internal/filesystem/format.d.ts.map +1 -0
- package/dist/internal/filesystem/format.js +213 -0
- package/dist/internal/filesystem/merge.d.ts +34 -0
- package/dist/internal/filesystem/merge.d.ts.map +1 -0
- package/dist/internal/filesystem/merge.js +196 -0
- package/dist/internal/filesystem/scratch.d.ts +59 -0
- package/dist/internal/filesystem/scratch.d.ts.map +1 -0
- package/dist/internal/filesystem/scratch.js +212 -0
- package/dist/internal/filesystem/sdk-schemas.d.ts +29 -0
- package/dist/internal/filesystem/sdk-schemas.d.ts.map +1 -0
- package/dist/internal/filesystem/sdk-schemas.js +153 -0
- package/dist/internal/filesystem/tools.d.ts +42 -0
- package/dist/internal/filesystem/tools.d.ts.map +1 -0
- package/dist/internal/filesystem/tools.js +618 -0
- package/dist/internal/filesystem/walk.d.ts +74 -0
- package/dist/internal/filesystem/walk.d.ts.map +1 -0
- package/dist/internal/filesystem/walk.js +339 -0
- package/dist/internal/framework-file-storage.d.ts +8 -0
- package/dist/internal/framework-file-storage.d.ts.map +1 -1
- package/dist/internal/framework-file-storage.js +8 -8
- package/dist/internal/github-fanout.d.ts +1 -1
- package/dist/internal/github-fanout.js +1 -1
- package/dist/internal/guest-network.d.ts +104 -0
- package/dist/internal/guest-network.d.ts.map +1 -0
- package/dist/internal/guest-network.js +309 -0
- package/dist/internal/host-otel.d.ts +3 -3
- package/dist/internal/host-otel.d.ts.map +1 -1
- package/dist/internal/host-otel.js +8 -4
- package/dist/internal/hosted-admission-adapter.d.ts +8 -7
- package/dist/internal/hosted-admission-adapter.d.ts.map +1 -1
- package/dist/internal/hosted-delivery-protocol.d.ts +6 -0
- package/dist/internal/hosted-delivery-protocol.d.ts.map +1 -1
- package/dist/internal/hosted-delivery-protocol.js +18 -5
- package/dist/internal/hosted-delivery.d.ts +18 -0
- package/dist/internal/hosted-delivery.d.ts.map +1 -1
- package/dist/internal/hosted-delivery.js +258 -118
- package/dist/internal/http-channel.d.ts.map +1 -1
- package/dist/internal/http-channel.js +1 -3
- package/dist/internal/init-interview.d.ts.map +1 -1
- package/dist/internal/init-interview.js +1 -3
- package/dist/internal/init-project.d.ts +2 -2
- package/dist/internal/init-project.js +2 -2
- package/dist/internal/inline-stdio-define-stub.d.ts +1 -1
- package/dist/internal/inline-stdio-define-stub.d.ts.map +1 -1
- package/dist/internal/inline-stdio-define-stub.js +1 -1
- package/dist/internal/is-record.d.ts +2 -0
- package/dist/internal/is-record.d.ts.map +1 -0
- package/dist/internal/is-record.js +3 -0
- package/dist/internal/json-schema.d.ts.map +1 -1
- package/dist/internal/json-schema.js +18 -10
- package/dist/internal/local-control-plane.d.ts +1 -2
- package/dist/internal/local-control-plane.d.ts.map +1 -1
- package/dist/internal/local-control-plane.js +3 -20
- package/dist/internal/mcp-endpoint.d.ts.map +1 -1
- package/dist/internal/mcp-endpoint.js +1 -3
- package/dist/internal/otel/collector.d.ts +12 -3
- package/dist/internal/otel/collector.d.ts.map +1 -1
- package/dist/internal/otel/collector.js +77 -125
- package/dist/internal/otel/config.d.ts +0 -2
- package/dist/internal/otel/config.d.ts.map +1 -1
- package/dist/internal/otel/config.js +17 -20
- package/dist/internal/otel/http.d.ts +2 -0
- package/dist/internal/otel/http.d.ts.map +1 -1
- package/dist/internal/otel/http.js +7 -1
- package/dist/internal/otel/mcp.d.ts.map +1 -1
- package/dist/internal/otel/mcp.js +3 -16
- package/dist/internal/otel/runtime.d.ts +26 -1
- package/dist/internal/otel/runtime.d.ts.map +1 -1
- package/dist/internal/otel/runtime.js +164 -15
- package/dist/internal/package-inline-stdio.d.ts.map +1 -1
- package/dist/internal/package-inline-stdio.js +3 -11
- package/dist/internal/playground/toolchain.d.ts +1 -1
- package/dist/internal/playground/toolchain.d.ts.map +1 -1
- package/dist/internal/playground/toolchain.js +1 -1
- package/dist/internal/request-error-status.d.ts +12 -0
- package/dist/internal/request-error-status.d.ts.map +1 -0
- package/dist/internal/request-error-status.js +52 -0
- package/dist/internal/resolve-prod-target.d.ts +1 -1
- package/dist/internal/resolve-prod-target.d.ts.map +1 -1
- package/dist/internal/resolve-prod-target.js +3 -7
- package/dist/internal/result-output.d.ts +18 -0
- package/dist/internal/result-output.d.ts.map +1 -0
- package/dist/internal/result-output.js +33 -0
- package/dist/internal/run-client.d.ts +2 -2
- package/dist/internal/run-client.js +2 -2
- package/dist/internal/runtime-dispatch-runner.d.ts +1 -11
- package/dist/internal/runtime-dispatch-runner.d.ts.map +1 -1
- package/dist/internal/runtime-dispatch-runner.js +2 -15
- package/dist/internal/sdk-runner.d.ts +1 -1
- package/dist/internal/sdk-runner.d.ts.map +1 -1
- package/dist/internal/sdk-runner.js +6 -7
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +110 -35
- package/dist/internal/session-cost.d.ts +3 -3
- package/dist/internal/session-cost.d.ts.map +1 -1
- package/dist/internal/session-cost.js +3 -3
- package/dist/internal/session-engine.d.ts +48 -11
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +507 -115
- package/dist/internal/session-run-log.d.ts.map +1 -1
- package/dist/internal/session-run-log.js +1 -3
- package/dist/internal/skills-sync.d.ts +1 -4
- package/dist/internal/skills-sync.d.ts.map +1 -1
- package/dist/internal/skills-sync.js +10 -50
- package/dist/internal/sleep.d.ts +2 -0
- package/dist/internal/sleep.d.ts.map +1 -0
- package/dist/internal/sleep.js +3 -0
- package/dist/internal/store-mirror.d.ts +29 -0
- package/dist/internal/store-mirror.d.ts.map +1 -0
- package/dist/internal/store-mirror.js +70 -0
- package/dist/internal/tenant-slack/relay.d.ts +73 -0
- package/dist/internal/tenant-slack/relay.d.ts.map +1 -0
- package/dist/internal/tenant-slack/relay.js +138 -0
- package/dist/internal/testing/factory-resource-fixtures.d.ts +48 -0
- package/dist/internal/testing/factory-resource-fixtures.d.ts.map +1 -0
- package/dist/internal/testing/factory-resource-fixtures.js +41 -0
- package/dist/internal/testing/scm-continuation-fixtures.d.ts +33 -0
- package/dist/internal/testing/scm-continuation-fixtures.d.ts.map +1 -0
- package/dist/internal/testing/scm-continuation-fixtures.js +253 -0
- package/dist/internal/workspace-sync.d.ts +22 -0
- package/dist/internal/workspace-sync.d.ts.map +1 -0
- package/dist/internal/workspace-sync.js +49 -0
- package/dist/internal/workspace.d.ts +7 -0
- package/dist/internal/workspace.d.ts.map +1 -1
- package/dist/internal/workspace.js +13 -0
- package/dist/otel.d.ts +23 -1
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +93 -2
- package/dist/playground/assets/index-8YiozU89.js +67 -0
- package/dist/playground/assets/index-MbMxXg-y.css +1 -0
- package/dist/playground/index.html +2 -2
- package/dist/result.d.ts +24 -0
- package/dist/result.d.ts.map +1 -0
- package/dist/result.js +27 -0
- package/dist/storage-backends/cursor-hosted.d.ts.map +1 -1
- package/dist/storage-backends/cursor-hosted.js +7 -4
- package/dist/storage-protocol.d.ts.map +1 -1
- package/dist/storage-protocol.js +1 -3
- package/dist/types.d.ts +141 -26
- package/dist/types.d.ts.map +1 -1
- package/docs/README.md +2 -2
- package/docs/concepts.md +2 -4
- package/docs/design/filesystem.md +376 -0
- package/docs/design/runtime-abstraction.md +2 -3
- package/docs/evals.md +9 -7
- package/docs/guides/cloud-agents.md +4 -6
- package/docs/guides/github.md +5 -1
- package/docs/guides/opentelemetry.md +41 -17
- package/docs/reference/agent-config.md +6 -10
- package/docs/reference/channels.md +38 -8
- package/docs/reference/cli.md +3 -4
- package/docs/reference/extensions.md +87 -23
- package/docs/reference/hooks.md +215 -46
- package/docs/reference/playground.md +3 -0
- package/docs/reference/project-layout.md +2 -1
- package/docs/reference/result.md +94 -0
- package/docs/reference/sessions.md +3 -1
- package/docs/reference/tools.md +1 -2
- package/docs/templates/pr-autofixer.md +0 -3
- package/package.json +42 -9
- package/skills/framework-map/SKILL.md +3 -1
- package/skills/otel/SKILL.md +8 -3
- package/src/ab.ts +1 -1
- package/src/bin/agent-serve.ts +121 -21
- package/src/channels/bitbucket/api.ts +623 -0
- package/src/channels/bitbucket/binding.ts +414 -0
- package/src/channels/bitbucket/bitbucket-channel.ts +182 -0
- package/src/channels/bitbucket/bitbucket-webhook.ts +576 -0
- package/src/channels/bitbucket/checks.ts +154 -0
- package/src/channels/bitbucket/cursor-account.ts +117 -0
- package/src/channels/bitbucket/defaults.ts +110 -0
- package/src/channels/bitbucket/events.ts +84 -0
- package/src/channels/bitbucket/index.ts +49 -0
- package/src/channels/bitbucket/replay.ts +439 -0
- package/src/channels/bitbucket/state.ts +59 -0
- package/src/channels/bitbucket/types.ts +266 -0
- package/src/channels/change-monitors/change-monitors-channel.ts +62 -0
- package/src/channels/change-monitors/index.ts +8 -0
- package/src/channels/change-monitors/types.ts +44 -0
- package/src/channels/deployments/deployments-channel.ts +25 -43
- package/src/channels/deployments/types.ts +12 -6
- package/src/channels/github/binding.ts +8 -1
- package/src/channels/github/cursor-account.ts +17 -6
- package/src/channels/github/defaults.ts +4 -0
- package/src/channels/github/events.ts +1 -1
- package/src/channels/github/forward.ts +3 -2
- package/src/channels/github/github-channel.ts +74 -221
- package/src/channels/github/progress.ts +76 -10
- package/src/channels/github/replay.ts +1 -1
- package/src/channels/github/state.ts +6 -0
- package/src/channels/github/types.ts +2 -5
- package/src/channels/gitlab/api.ts +228 -0
- package/src/channels/gitlab/binding.ts +233 -0
- package/src/channels/gitlab/checks.ts +243 -0
- package/src/channels/gitlab/cursor-account.ts +114 -0
- package/src/channels/gitlab/defaults.ts +93 -0
- package/src/channels/gitlab/events.ts +44 -0
- package/src/channels/gitlab/gitlab-channel.ts +176 -0
- package/src/channels/gitlab/gitlab-webhook.ts +555 -0
- package/src/channels/gitlab/index.ts +43 -0
- package/src/channels/gitlab/replay.ts +347 -0
- package/src/channels/gitlab/state.ts +55 -0
- package/src/channels/gitlab/types.ts +263 -0
- package/src/channels/issues/index.ts +9 -0
- package/src/channels/issues/issues-channel.ts +51 -0
- package/src/channels/issues/types.ts +41 -0
- package/src/channels/origin/api.ts +4 -2
- package/src/channels/origin/origin-channel.ts +19 -94
- package/src/channels/origin/types.ts +23 -2
- package/src/channels/slack/eval-directive.ts +1 -6
- package/src/channels/slack/init.ts +6 -3
- package/src/channels/slack/setup.ts +7 -6
- package/src/channels/slack/types.ts +1 -1
- package/src/channels.ts +0 -1
- package/src/client.ts +1 -1
- package/src/connections.ts +1 -1
- package/src/evals.ts +1 -1
- package/src/extensions.ts +47 -5
- package/src/files.ts +21 -3
- package/src/filesystem.ts +2074 -0
- package/src/index.ts +48 -28
- package/src/internal/ab-snapshot.ts +0 -3
- package/src/internal/advertise-tools.ts +1 -4
- package/src/internal/authored-alias-hooks.ts +4 -21
- package/src/internal/authored-loaders.ts +6 -23
- package/src/internal/channel-dispatch.ts +160 -0
- package/src/internal/chat-client.ts +1 -1
- package/src/internal/cli-ax.ts +5 -5
- package/src/internal/cli-bitbucket.ts +477 -0
- package/src/internal/cli-convert-automation.ts +7 -7
- package/src/internal/cli-cursor.ts +2 -5
- package/src/internal/cli-deploy.ts +2 -8
- package/src/internal/cli-github.ts +3 -3
- package/src/internal/cli-gitlab.ts +485 -0
- package/src/internal/cli-mcp.ts +2 -7
- package/src/internal/cli-slack.ts +2 -5
- package/src/internal/continuation-channel.ts +102 -4
- package/src/internal/continuation-identity.ts +338 -35
- package/src/internal/conversation-mirror.ts +4 -3
- package/src/internal/convert-automation/types.ts +1 -1
- package/src/internal/cursor/account-mcp.ts +1 -4
- package/src/internal/cursor/backend-client.ts +9 -10
- package/src/internal/cursor/bound-secret-file.ts +108 -0
- package/src/internal/cursor/credentials.ts +75 -10
- package/src/internal/cursor/hosted-bound-secrets.ts +75 -0
- package/src/internal/cursor/hosted-deployment-secrets.ts +42 -11
- package/src/internal/cursor/hosted-store-secrets.ts +1 -1
- package/src/internal/cursor-account-mcp-auth.ts +2 -5
- package/src/internal/cursor-deployment-relay.ts +11 -7
- package/src/internal/deploy-manifest.ts +4 -2
- package/src/internal/discovery/ab.ts +29 -9
- package/src/internal/discovery/agent.ts +181 -136
- package/src/internal/discovery/channels.ts +15 -13
- package/src/internal/discovery/connections.ts +55 -50
- package/src/internal/discovery/cursor-plugin.ts +1 -4
- package/src/internal/discovery/extension-overlay.ts +274 -0
- package/src/internal/discovery/extensions.ts +330 -105
- package/src/internal/discovery/hooks.ts +20 -2
- package/src/internal/discovery/info.ts +10 -0
- package/src/internal/discovery/modules.ts +8 -2
- package/src/internal/discovery/names.ts +2 -1
- package/src/internal/discovery/project.ts +80 -9
- package/src/internal/discovery/runtime.ts +1 -2
- package/src/internal/discovery/schedules.ts +28 -2
- package/src/internal/discovery/services.ts +37 -1
- package/src/internal/discovery/skills.ts +13 -3
- package/src/internal/discovery/subagent.ts +107 -0
- package/src/internal/discovery.ts +0 -2
- package/src/internal/distribution.ts +35 -83
- package/src/internal/docs-site.ts +1 -1
- package/src/internal/eval-run-store.ts +0 -7
- package/src/internal/eval-runner.ts +0 -1
- package/src/internal/factory-resource-channel.ts +122 -0
- package/src/internal/filesystem/errors.ts +220 -0
- package/src/internal/filesystem/format.ts +276 -0
- package/src/internal/filesystem/merge.ts +195 -0
- package/src/internal/filesystem/scratch.ts +255 -0
- package/src/internal/filesystem/sdk-schemas.ts +204 -0
- package/src/internal/filesystem/tools.ts +821 -0
- package/src/internal/filesystem/walk.ts +369 -0
- package/src/internal/framework-file-storage.ts +8 -8
- package/src/internal/github-fanout.ts +1 -1
- package/src/internal/guest-network.ts +389 -0
- package/src/internal/host-otel.ts +8 -4
- package/src/internal/hosted-admission-adapter.ts +8 -8
- package/src/internal/hosted-delivery-protocol.ts +26 -1
- package/src/internal/hosted-delivery.ts +393 -192
- package/src/internal/http-channel.ts +1 -4
- package/src/internal/init-interview.ts +1 -4
- package/src/internal/init-project.ts +2 -2
- package/src/internal/inline-stdio-define-stub.ts +1 -1
- package/src/internal/is-record.ts +3 -0
- package/src/internal/json-schema.ts +19 -10
- package/src/internal/local-control-plane.ts +5 -24
- package/src/internal/mcp-endpoint.ts +1 -4
- package/src/internal/otel/collector.ts +94 -159
- package/src/internal/otel/config.ts +10 -14
- package/src/internal/otel/http.ts +14 -1
- package/src/internal/otel/mcp.ts +3 -16
- package/src/internal/otel/runtime.ts +240 -25
- package/src/internal/package-inline-stdio.ts +3 -12
- package/src/internal/playground/toolchain.ts +1 -1
- package/src/internal/request-error-status.ts +72 -0
- package/src/internal/resolve-prod-target.ts +3 -8
- package/src/internal/result-output.ts +34 -0
- package/src/internal/run-client.ts +2 -2
- package/src/internal/runtime-dispatch-runner.ts +3 -21
- package/src/internal/sdk-runner.ts +7 -7
- package/src/internal/server.ts +153 -44
- package/src/internal/session-cost.ts +3 -3
- package/src/internal/session-engine.ts +621 -103
- package/src/internal/session-run-log.ts +1 -4
- package/src/internal/skills-sync.ts +13 -63
- package/src/internal/sleep.ts +3 -0
- package/src/internal/store-mirror.ts +86 -0
- package/src/internal/tenant-slack/relay.ts +179 -0
- package/src/internal/testing/factory-resource-fixtures.ts +85 -0
- package/src/internal/testing/scm-continuation-fixtures.ts +286 -0
- package/src/internal/workspace-sync.ts +55 -0
- package/src/internal/workspace.ts +14 -0
- package/src/otel.ts +143 -3
- package/src/result.ts +36 -0
- package/src/storage-backends/cursor-hosted.ts +7 -4
- package/src/storage-protocol.ts +1 -4
- package/src/types.ts +154 -37
- package/templates/triage/agent/lib/types.ts +0 -2
- package/dist/continuation.d.ts +0 -20
- package/dist/continuation.d.ts.map +0 -1
- package/dist/continuation.js +0 -18
- package/dist/docs/assets/chunks/@localSearchIndexroot.FAqdWIXo.js +0 -1
- package/dist/docs/assets/concepts.md.rPzW2HZN.js +0 -1
- package/dist/docs/assets/guides_cloud-agents.md.DumwWXba.js +0 -9
- package/dist/docs/assets/guides_cloud-runtime.md.BRirbRAN.js +0 -9
- package/dist/docs/assets/guides_cloud-runtime.md.BRirbRAN.lean.js +0 -1
- package/dist/docs/assets/reference_extensions.md.9WQMZe1l.lean.js +0 -1
- package/dist/docs/assets/reference_hooks.md.a8BJxMR5.js +0 -14
- package/dist/docs/assets/skills_framework-map.md.DDa4MeEW.js +0 -1
- package/dist/docs/guides/cloud-runtime.html +0 -35
- package/dist/docs/guides/cloud-runtime.md +0 -117
- package/dist/internal/convert-automation/index.d.ts +0 -3
- package/dist/internal/convert-automation/index.d.ts.map +0 -1
- package/dist/internal/convert-automation/index.js +0 -1
- package/dist/internal/grokbot/runner.d.ts +0 -64
- package/dist/internal/grokbot/runner.d.ts.map +0 -1
- package/dist/internal/grokbot/runner.js +0 -282
- package/dist/internal/managed-delivery.d.ts +0 -80
- package/dist/internal/managed-delivery.d.ts.map +0 -1
- package/dist/internal/managed-delivery.js +0 -86
- package/dist/internal/review-comments.d.ts +0 -370
- package/dist/internal/review-comments.d.ts.map +0 -1
- package/dist/internal/review-comments.js +0 -921
- package/dist/internal/shallow-clone.d.ts +0 -176
- package/dist/internal/shallow-clone.d.ts.map +0 -1
- package/dist/internal/shallow-clone.js +0 -419
- package/dist/playground/assets/index-B6C9S9nG.css +0 -1
- package/dist/playground/assets/index-ZqNoT8Ie.js +0 -69
- package/docs/guides/cloud-runtime.md +0 -122
- package/src/continuation.ts +0 -49
- package/src/internal/convert-automation/index.ts +0 -10
- package/src/internal/grokbot/runner.ts +0 -370
- package/src/internal/managed-delivery.ts +0 -125
- package/src/internal/review-comments.ts +0 -1363
- package/src/internal/shallow-clone.ts +0 -609
- /package/dist/docs/assets/{evals.md.CPzDAwoH.lean.js → evals.md.CbMoebP1.lean.js} +0 -0
- /package/dist/docs/assets/{guides_cloud-agents.md.DumwWXba.lean.js → guides_cloud-agents.md.DS8RIjwx.lean.js} +0 -0
- /package/dist/docs/assets/{index.md.Kiht7ell.lean.js → index.md.D75GWhPl.lean.js} +0 -0
- /package/dist/docs/assets/{reference_agent-config.md.BHeYMgme.lean.js → reference_agent-config.md.CHNpiyp4.lean.js} +0 -0
- /package/dist/docs/assets/{reference_cli.md.DfoeyvL0.lean.js → reference_cli.md.CJNc_xYK.lean.js} +0 -0
- /package/dist/docs/assets/{reference_playground.md.DnX5nL-B.lean.js → reference_playground.md.4myJPxrf.lean.js} +0 -0
- /package/dist/docs/assets/{reference_project-layout.md.CA6QP6Lw.lean.js → reference_project-layout.md.DuBu9a96.lean.js} +0 -0
- /package/dist/docs/assets/{reference_tools.md.B1up2r9W.lean.js → reference_tools.md.aGrn99hP.lean.js} +0 -0
- /package/dist/docs/assets/{skills_framework-map.md.DDa4MeEW.lean.js → skills_framework-map.md.haibFyoB.lean.js} +0 -0
package/src/types.ts
CHANGED
|
@@ -11,21 +11,15 @@
|
|
|
11
11
|
import type { InteractionUpdate, SDKCustomTool, ToolName } from "@cursor/sdk";
|
|
12
12
|
import type { z } from "zod";
|
|
13
13
|
import type { ABConfigFile } from "./ab.js";
|
|
14
|
+
import type { FileSystem } from "./filesystem.js";
|
|
14
15
|
import type {
|
|
15
16
|
ContinuationClaim,
|
|
16
17
|
ContinuationIdentity,
|
|
17
18
|
MailboxContinuation,
|
|
18
|
-
} from "./continuation.js";
|
|
19
|
+
} from "./internal/continuation-identity.js";
|
|
19
20
|
import type { OtelConfig, OtelDefinition } from "./otel.js";
|
|
20
21
|
import type { StorageDefinition } from "./storage.js";
|
|
21
22
|
|
|
22
|
-
export type {
|
|
23
|
-
ContinuationClaim,
|
|
24
|
-
ContinuationIdentity,
|
|
25
|
-
ConversationType,
|
|
26
|
-
MailboxContinuation,
|
|
27
|
-
} from "./continuation.js";
|
|
28
|
-
|
|
29
23
|
// ============================================================================
|
|
30
24
|
// JSON
|
|
31
25
|
// ============================================================================
|
|
@@ -53,6 +47,7 @@ export type DefinitionKind =
|
|
|
53
47
|
| "extension"
|
|
54
48
|
| "disabled-tool"
|
|
55
49
|
| "disabled-connection"
|
|
50
|
+
| "disabled"
|
|
56
51
|
| "connection"
|
|
57
52
|
| "channel"
|
|
58
53
|
| "http-channel"
|
|
@@ -63,7 +58,8 @@ export type DefinitionKind =
|
|
|
63
58
|
| "ab"
|
|
64
59
|
| "storage"
|
|
65
60
|
| "artifacts"
|
|
66
|
-
| "otel"
|
|
61
|
+
| "otel"
|
|
62
|
+
| "result";
|
|
67
63
|
|
|
68
64
|
export interface BrandedDefinition<K extends DefinitionKind> {
|
|
69
65
|
readonly __agentServe: K;
|
|
@@ -104,6 +100,7 @@ export const DEFAULT_MODEL: ModelSetting = {
|
|
|
104
100
|
* `/v0/grokbot` session API, and the user-visible reply is whatever the
|
|
105
101
|
* agent delivers through its SendToUser tool. The hosted harness picks
|
|
106
102
|
* the model; {@link AgentConfig.model} does not apply to grokbot turns.
|
|
103
|
+
* The grokbot client is Cursor-internal and not in the published package.
|
|
107
104
|
*/
|
|
108
105
|
export type AgentRuntime = "local" | "cloud" | "grokbot";
|
|
109
106
|
|
|
@@ -173,6 +170,18 @@ export function toPublicCloudInfo(
|
|
|
173
170
|
};
|
|
174
171
|
}
|
|
175
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Session-scoped facts a `root` factory needs and does not otherwise
|
|
175
|
+
* have at `defineAgent` time. The factory returns a handle: each
|
|
176
|
+
* method must observe the current binding. Do not snapshot the tree.
|
|
177
|
+
*/
|
|
178
|
+
export interface RootContext {
|
|
179
|
+
sessionId: string;
|
|
180
|
+
agentName?: string;
|
|
181
|
+
continuationKey?: string;
|
|
182
|
+
host?: { files: HostFilesApi; reminders?: ReminderHostApi };
|
|
183
|
+
}
|
|
184
|
+
|
|
176
185
|
/** Input to `defineAgent` (authored at `agent/agent.ts`). */
|
|
177
186
|
export interface AgentConfig {
|
|
178
187
|
/**
|
|
@@ -194,10 +203,21 @@ export interface AgentConfig {
|
|
|
194
203
|
*/
|
|
195
204
|
instructions?: string;
|
|
196
205
|
/**
|
|
197
|
-
* Execution runtime. Defaults to `"local"`.
|
|
198
|
-
*
|
|
206
|
+
* Execution runtime. Defaults to `"local"`. Compatibility strings
|
|
207
|
+
* `"cloud"` and `"grokbot"` remain for agents that already ship; they
|
|
208
|
+
* are not a product surface. New agents omit this field.
|
|
199
209
|
*/
|
|
200
210
|
runtime?: AgentRuntime;
|
|
211
|
+
/**
|
|
212
|
+
* The FileSystem the model can see. Omit it and the root is the host
|
|
213
|
+
* disk. A static handle (`tempFs`, `unionFs`, ...) is that object on
|
|
214
|
+
* every session — writes are shared. Pass `(ctx) => …` and return a
|
|
215
|
+
* new handle per session when you want isolation. A factory that
|
|
216
|
+
* returns the same object still shares. Incompatible with
|
|
217
|
+
* {@link local} `cwd` / `workspaceDir` / `sandbox` and with
|
|
218
|
+
* {@link runtime} `"cloud"`.
|
|
219
|
+
*/
|
|
220
|
+
root?: FileSystem | ((ctx: RootContext) => FileSystem | Promise<FileSystem>);
|
|
201
221
|
/**
|
|
202
222
|
* Cloud agent defaults. Used when {@link runtime} is `"cloud"`, and as
|
|
203
223
|
* the base merged under per-session {@link SendMessageOptions.cloud}
|
|
@@ -266,7 +286,8 @@ export interface AgentConfig {
|
|
|
266
286
|
* deploys onto the v2 control plane (v2 APIs and schemas). Omitted
|
|
267
287
|
* channel `continuation` then inherits from declared events (`github.pr/v2`,
|
|
268
288
|
* `github.issue/v2`, `github.none/v2`, `slack.thread/v2`, `origin.pr/v2`,
|
|
269
|
-
* `deployments.deployment/v2`, `
|
|
289
|
+
* `deployments.deployment/v2`, `change_monitors.checkpoint/v2`,
|
|
290
|
+
* `issues.issue/v2`, `none/v2`). An explicit per-channel selector
|
|
270
291
|
* still overrides.
|
|
271
292
|
*
|
|
272
293
|
* ```ts
|
|
@@ -818,7 +839,8 @@ export type HostOtelAttributes = Record<
|
|
|
818
839
|
*
|
|
819
840
|
* Metrics and tags only — no custom spans, and no raw OTel `Meter` /
|
|
820
841
|
* `Tracer`. First-party names (`cursor.token.usage`, …) and join keys
|
|
821
|
-
* (`cursor.conversation.id`, `agent_sdk.
|
|
842
|
+
* (`cursor.conversation.id`, `agent_sdk.session_id`, `agent_sdk.agent`,
|
|
843
|
+
* …) are reserved.
|
|
822
844
|
*/
|
|
823
845
|
export interface HostOtelApi {
|
|
824
846
|
/** True when a meter is running and `increment` / `record` export. */
|
|
@@ -826,7 +848,7 @@ export interface HostOtelApi {
|
|
|
826
848
|
|
|
827
849
|
/**
|
|
828
850
|
* Merge tags onto this host binding. On a session-bound host they join
|
|
829
|
-
*
|
|
851
|
+
* open turn/tool spans and later first-party metrics. Unbound tags
|
|
830
852
|
* stay on this host instance only.
|
|
831
853
|
*/
|
|
832
854
|
setAttributes(attributes: HostOtelAttributes): void;
|
|
@@ -1189,6 +1211,14 @@ export type DisabledToolDefinition = BrandedDefinition<"disabled-tool">;
|
|
|
1189
1211
|
export type DisabledConnectionDefinition =
|
|
1190
1212
|
BrandedDefinition<"disabled-connection">;
|
|
1191
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* `export default disable()` / `disableSkill()` / `disableHook()` /
|
|
1216
|
+
* `disableChannel()` / `disableSchedule()` / `disableSubagent()` /
|
|
1217
|
+
* `disableInstructions()` / `disableAB()` / `disableArtifacts()` in a
|
|
1218
|
+
* directory mount removes that contribution from the matching overlay slot.
|
|
1219
|
+
*/
|
|
1220
|
+
export type DisabledDefinition = BrandedDefinition<"disabled">;
|
|
1221
|
+
|
|
1192
1222
|
/** One mounted extension and the names it contributed. */
|
|
1193
1223
|
export interface DiscoveredExtension {
|
|
1194
1224
|
/** Mount namespace: the filename stem or directory name under `agent/extensions/`. */
|
|
@@ -1198,10 +1228,26 @@ export interface DiscoveredExtension {
|
|
|
1198
1228
|
tools: string[];
|
|
1199
1229
|
/** Composed skill names (`<ns>__<name>`), overrides applied. */
|
|
1200
1230
|
skills: string[];
|
|
1201
|
-
/** Composed MCP connection names (`<ns>__<server>`)
|
|
1231
|
+
/** Composed MCP connection names (`<ns>__<server>`). */
|
|
1202
1232
|
connections: string[];
|
|
1203
|
-
/** Composed
|
|
1233
|
+
/** Composed host MCP connection names (`<ns>__<server>`). */
|
|
1234
|
+
hostConnections: string[];
|
|
1235
|
+
/** Composed subagent names (`<ns>__<id>`). */
|
|
1204
1236
|
subagents: string[];
|
|
1237
|
+
/** Composed hook names (`<ns>__<name>`). */
|
|
1238
|
+
hooks: string[];
|
|
1239
|
+
/** Composed channel ids (`<ns>__<id>`). */
|
|
1240
|
+
channels: string[];
|
|
1241
|
+
/** Composed schedule names (`<ns>__<name>`). */
|
|
1242
|
+
schedules: string[];
|
|
1243
|
+
/** Whether the mount contributed an instructions fragment. */
|
|
1244
|
+
instructions: boolean;
|
|
1245
|
+
/** Workspace seed paths the mount contributed. */
|
|
1246
|
+
seedFiles: string[];
|
|
1247
|
+
/** Composed A/B experiment names (`<ns>__<name>`). */
|
|
1248
|
+
abs: string[];
|
|
1249
|
+
/** Composed artifact kind names (`<ns>__<kind>`). */
|
|
1250
|
+
artifactKinds: string[];
|
|
1205
1251
|
}
|
|
1206
1252
|
|
|
1207
1253
|
// ============================================================================
|
|
@@ -1728,7 +1774,11 @@ export type SessionEventPayload =
|
|
|
1728
1774
|
}
|
|
1729
1775
|
| {
|
|
1730
1776
|
type: "turn.completed";
|
|
1731
|
-
data: {
|
|
1777
|
+
data: {
|
|
1778
|
+
result?: string;
|
|
1779
|
+
usage?: TurnUsage;
|
|
1780
|
+
cost?: TurnCost;
|
|
1781
|
+
};
|
|
1732
1782
|
}
|
|
1733
1783
|
| {
|
|
1734
1784
|
/**
|
|
@@ -1796,7 +1846,7 @@ export type SessionMode = "chat" | "task";
|
|
|
1796
1846
|
|
|
1797
1847
|
/**
|
|
1798
1848
|
* Why the session exists. `"eval"` is regression traffic (`defineEval` /
|
|
1799
|
-
* `agent-
|
|
1849
|
+
* `agent-sdk eval` / playground Evals) and is excluded from live A/B
|
|
1800
1850
|
* enrollment. Default `"live"`.
|
|
1801
1851
|
*/
|
|
1802
1852
|
export type SessionPurpose = "live" | "eval";
|
|
@@ -2328,12 +2378,6 @@ export interface ChannelDeleteRouteSpec<
|
|
|
2328
2378
|
handler: ChannelRouteHandler;
|
|
2329
2379
|
}
|
|
2330
2380
|
|
|
2331
|
-
/** @deprecated Prefer {@link ChannelGetRouteSpec} / {@link ChannelBodyRouteSpec}. */
|
|
2332
|
-
export type ChannelRouteSpec =
|
|
2333
|
-
| ChannelGetRouteSpec
|
|
2334
|
-
| ChannelBodyRouteSpec
|
|
2335
|
-
| ChannelDeleteRouteSpec;
|
|
2336
|
-
|
|
2337
2381
|
export interface ChannelRoute {
|
|
2338
2382
|
method: RouteMethod;
|
|
2339
2383
|
path: string;
|
|
@@ -2359,8 +2403,15 @@ export interface ChannelEventContext<TState = JsonValue> {
|
|
|
2359
2403
|
setContinuationToken(token: string | null): Promise<void>;
|
|
2360
2404
|
}
|
|
2361
2405
|
|
|
2406
|
+
/** Per-event session context shared by channel `events` handlers and hooks. */
|
|
2362
2407
|
export interface SessionContext {
|
|
2363
2408
|
session: SessionInfo;
|
|
2409
|
+
/**
|
|
2410
|
+
* Shared host services (MCP / GitHub / Slack / kv / files). Same as
|
|
2411
|
+
* tool `ctx.host`. `files` and `otel` are bound to this session, so a
|
|
2412
|
+
* relative path cannot read another session's files.
|
|
2413
|
+
*/
|
|
2414
|
+
host: HostContext;
|
|
2364
2415
|
}
|
|
2365
2416
|
|
|
2366
2417
|
export type ChannelEventHandler<
|
|
@@ -2463,7 +2514,7 @@ export interface ChannelStartArgs {
|
|
|
2463
2514
|
|
|
2464
2515
|
/**
|
|
2465
2516
|
* Descriptive metadata a channel pack attaches for tooling. Read by
|
|
2466
|
-
* discovery / `projectInfo` and CLI helpers (e.g. `agent-
|
|
2517
|
+
* discovery / `projectInfo` and CLI helpers (e.g. `agent-sdk github
|
|
2467
2518
|
* forward`) — it never affects routing or dispatch.
|
|
2468
2519
|
*/
|
|
2469
2520
|
export interface ChannelMeta {
|
|
@@ -2479,11 +2530,28 @@ export interface ChannelMeta {
|
|
|
2479
2530
|
* to dispatch on. Used by `--cursor-events` to subscribe `provider: "origin"`.
|
|
2480
2531
|
*/
|
|
2481
2532
|
originWebhookEvents?: readonly string[];
|
|
2533
|
+
/**
|
|
2534
|
+
* For GitLab webhook packs: the `object_kind`s this channel is wired to
|
|
2535
|
+
* dispatch on (`merge_request`, `note`, `push`, `pipeline`, `tag_push`).
|
|
2536
|
+
*/
|
|
2537
|
+
gitlabWebhookEvents?: readonly string[];
|
|
2538
|
+
/**
|
|
2539
|
+
* For Bitbucket webhook packs: the event keys this channel is wired to
|
|
2540
|
+
* dispatch on, in the Cloud vocabulary (`pullrequest:created`, …).
|
|
2541
|
+
*/
|
|
2542
|
+
bitbucketWebhookEvents?: readonly string[];
|
|
2482
2543
|
/**
|
|
2483
2544
|
* For deployments packs: the factory event types this channel is wired
|
|
2484
2545
|
* to dispatch on. Extracted into the deploy manifest as `eventTypes`.
|
|
2485
2546
|
*/
|
|
2486
2547
|
deploymentEventTypes?: readonly string[];
|
|
2548
|
+
/**
|
|
2549
|
+
* For Change Monitor checkpoint and Factory issue packs: the factory
|
|
2550
|
+
* event types this channel is wired to dispatch on. Extracted into the
|
|
2551
|
+
* deploy manifest as `eventTypes`. Kept separate from
|
|
2552
|
+
* `deploymentEventTypes`.
|
|
2553
|
+
*/
|
|
2554
|
+
factoryEventTypes?: readonly string[];
|
|
2487
2555
|
/**
|
|
2488
2556
|
* For Slack packs with the opt-in channel watch: the allowlisted channels
|
|
2489
2557
|
* (ids or `#names`) this channel dispatches on without a mention. Surfaced
|
|
@@ -2562,22 +2630,15 @@ export type HttpChannelDefinition = HttpChannelConfig &
|
|
|
2562
2630
|
// Hooks (agent/hooks/*.ts)
|
|
2563
2631
|
// ============================================================================
|
|
2564
2632
|
|
|
2565
|
-
export interface HookContext {
|
|
2633
|
+
export interface HookContext extends SessionContext {
|
|
2566
2634
|
agent: { name: string };
|
|
2567
2635
|
channel: { id: string; continuationToken: string | null };
|
|
2568
|
-
session: SessionInfo;
|
|
2569
2636
|
/**
|
|
2570
2637
|
* Absolute path of the agent's durable state root (shared across every
|
|
2571
2638
|
* session of this agent). Hooks that maintain derived state (e.g. the
|
|
2572
2639
|
* memory journal) write here.
|
|
2573
2640
|
*/
|
|
2574
2641
|
stateRoot: string;
|
|
2575
|
-
/**
|
|
2576
|
-
* Shared host services (MCP / GitHub / Slack / kv / files). Same as
|
|
2577
|
-
* tool `ctx.host`. `files` is bound to this hook's session, so a
|
|
2578
|
-
* relative path cannot read another session's files.
|
|
2579
|
-
*/
|
|
2580
|
-
host: HostContext;
|
|
2581
2642
|
/**
|
|
2582
2643
|
* Durable artifacts, bound to this hook's session: `tag` auto-fills
|
|
2583
2644
|
* `sessionId` (and `turnId` when known).
|
|
@@ -2645,6 +2706,38 @@ export interface ArtifactsConfig {
|
|
|
2645
2706
|
export type ArtifactsDefinition = ArtifactsConfig &
|
|
2646
2707
|
BrandedDefinition<"artifacts">;
|
|
2647
2708
|
|
|
2709
|
+
// ============================================================================
|
|
2710
|
+
// Result (agent/result.ts)
|
|
2711
|
+
// ============================================================================
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* Host context passed to {@link ResultConfig.commit}. Same services as a
|
|
2715
|
+
* server tool, without a tool call id.
|
|
2716
|
+
*/
|
|
2717
|
+
export interface ResultContext {
|
|
2718
|
+
session: SessionInfo;
|
|
2719
|
+
host: HostContext;
|
|
2720
|
+
artifacts: ArtifactsApi;
|
|
2721
|
+
stateRoot: string;
|
|
2722
|
+
workspaceDir: string;
|
|
2723
|
+
/** Full assistant text for the turn. */
|
|
2724
|
+
text: string;
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
/**
|
|
2728
|
+
* Input to `defineResult` (authored at `agent/result.ts`).
|
|
2729
|
+
* Parse `ctx.text` in `commit`. Throw to fail the turn.
|
|
2730
|
+
*/
|
|
2731
|
+
export interface ResultConfig {
|
|
2732
|
+
/**
|
|
2733
|
+
* Host actuation after the model finishes, before `turn.completed`.
|
|
2734
|
+
* Throw to fail the turn. A dry-run session skips this callback.
|
|
2735
|
+
*/
|
|
2736
|
+
commit: (ctx: ResultContext) => void | Promise<void>;
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
export type ResultDefinition = ResultConfig & BrandedDefinition<"result">;
|
|
2740
|
+
|
|
2648
2741
|
/** Who tagged an artifact: host code, or the model via `tag_artifact`. */
|
|
2649
2742
|
export type ArtifactSource = "host" | "model";
|
|
2650
2743
|
|
|
@@ -3036,6 +3129,8 @@ export interface DiscoveredHook {
|
|
|
3036
3129
|
/** Live A/B metrics experiment (`agent/ab.ts` or `agent/ab/<name>.ts`). */
|
|
3037
3130
|
export interface DiscoveredAB {
|
|
3038
3131
|
name: string;
|
|
3132
|
+
/** File stem the experiment was loaded from (`ab` or a path under `ab/`). */
|
|
3133
|
+
source?: string;
|
|
3039
3134
|
/** Branded `defineAB({ ... })` config (see `@cursor/july/ab`). */
|
|
3040
3135
|
definition: BrandedDefinition<"ab">;
|
|
3041
3136
|
}
|
|
@@ -3059,6 +3154,11 @@ export interface ResolvedAgent {
|
|
|
3059
3154
|
instructions?: string;
|
|
3060
3155
|
/** Execution runtime. Root agents default to `"local"`. */
|
|
3061
3156
|
runtime: AgentRuntime;
|
|
3157
|
+
/**
|
|
3158
|
+
* Authored {@link AgentConfig.root}. The factory is persisted, not a
|
|
3159
|
+
* serialized tree. A resumed session calls it again (or reuses the handle).
|
|
3160
|
+
*/
|
|
3161
|
+
root?: FileSystem | ((ctx: RootContext) => FileSystem | Promise<FileSystem>);
|
|
3062
3162
|
/** Cloud options when {@link runtime} is `"cloud"`. */
|
|
3063
3163
|
cloud?: AgentCloudOptions;
|
|
3064
3164
|
/**
|
|
@@ -3086,8 +3186,8 @@ export interface ResolvedAgent {
|
|
|
3086
3186
|
tools: DiscoveredTool[];
|
|
3087
3187
|
skills: DiscoveredSkill[];
|
|
3088
3188
|
/**
|
|
3089
|
-
* Mounted `agent/extensions/`. Their
|
|
3090
|
-
* into
|
|
3189
|
+
* Mounted `agent/extensions/`. Their contributions are already merged
|
|
3190
|
+
* into the agent and project lists; this records provenance.
|
|
3091
3191
|
*/
|
|
3092
3192
|
extensions?: DiscoveredExtension[];
|
|
3093
3193
|
connections: DiscoveredConnection[];
|
|
@@ -3121,6 +3221,8 @@ export interface AgentProject {
|
|
|
3121
3221
|
storage?: StorageDefinition;
|
|
3122
3222
|
/** Optional `agent/artifacts.ts` (`defineArtifacts`). */
|
|
3123
3223
|
artifacts?: ArtifactsDefinition;
|
|
3224
|
+
/** Optional `agent/result.ts` (`defineResult`). */
|
|
3225
|
+
result?: ResultDefinition;
|
|
3124
3226
|
/** Optional `agent/otel.ts` (`defineOtel`). */
|
|
3125
3227
|
otel?: OtelDefinition;
|
|
3126
3228
|
diagnostics: Diagnostic[];
|
|
@@ -3203,8 +3305,14 @@ export interface AgentProjectInfo {
|
|
|
3203
3305
|
githubWebhookEvents?: readonly string[];
|
|
3204
3306
|
/** Origin webhook event types the channel dispatches on, when declared. */
|
|
3205
3307
|
originWebhookEvents?: readonly string[];
|
|
3308
|
+
/** GitLab `object_kind`s the channel dispatches on, when declared. */
|
|
3309
|
+
gitlabWebhookEvents?: readonly string[];
|
|
3310
|
+
/** Bitbucket event keys (Cloud vocabulary) the channel dispatches on. */
|
|
3311
|
+
bitbucketWebhookEvents?: readonly string[];
|
|
3206
3312
|
/** Factory deployment event types the channel dispatches on, when declared. */
|
|
3207
3313
|
deploymentEventTypes?: readonly string[];
|
|
3314
|
+
/** Change Monitor checkpoint or Factory issue event types the channel dispatches on, when declared. */
|
|
3315
|
+
factoryEventTypes?: readonly string[];
|
|
3208
3316
|
/** Slack channels watched for posts (opt-in channel watch), when declared. */
|
|
3209
3317
|
slackChannelPosts?: readonly string[];
|
|
3210
3318
|
}>;
|
|
@@ -3223,6 +3331,8 @@ export interface AgentProjectInfo {
|
|
|
3223
3331
|
otel?: { serviceName?: string; enabled: true };
|
|
3224
3332
|
/** Declared artifact kinds from `agent/artifacts.ts`, when authored. */
|
|
3225
3333
|
artifacts?: { kinds: string[]; agentTool: boolean; max: number };
|
|
3334
|
+
/** Present when `agent/result.ts` (`defineResult`) is authored. */
|
|
3335
|
+
result?: true;
|
|
3226
3336
|
diagnostics: Diagnostic[];
|
|
3227
3337
|
}
|
|
3228
3338
|
|
|
@@ -3253,10 +3363,17 @@ export interface RunnerTurnRequest {
|
|
|
3253
3363
|
sdkAgentId?: string;
|
|
3254
3364
|
/** Absolute path of the session's materialized workspace. */
|
|
3255
3365
|
workspaceDir: string;
|
|
3366
|
+
/** Resolved FileSystem handle when {@link AgentConfig.root} is set. */
|
|
3367
|
+
root?: FileSystem;
|
|
3256
3368
|
/** Run the local harness sandboxed ({@link AgentLocalOptions.sandbox}). */
|
|
3257
3369
|
sandbox?: boolean;
|
|
3258
3370
|
/** Built-in tool allowlist ({@link AgentConfig.tools}, resolved). */
|
|
3259
3371
|
tools?: ToolName[];
|
|
3372
|
+
/**
|
|
3373
|
+
* Native tools hidden on the Cursor SDK agent because synthesized
|
|
3374
|
+
* FileSystem tools own those names. Host-default omitted `tools` only.
|
|
3375
|
+
*/
|
|
3376
|
+
disallowedTools?: ToolName[];
|
|
3260
3377
|
/** Absolute path for runner-owned durable state (conversation store). */
|
|
3261
3378
|
runnerStateDir: string;
|
|
3262
3379
|
prompt: string;
|
|
@@ -3350,7 +3467,7 @@ export interface ServeOptions {
|
|
|
3350
3467
|
/**
|
|
3351
3468
|
* Cursor API key for the SDK runner and Cursor account MCP connections.
|
|
3352
3469
|
* When omitted, falls back to `CURSOR_API_KEY`, then to the credential
|
|
3353
|
-
* stored by `agent-
|
|
3470
|
+
* stored by `agent-sdk login`.
|
|
3354
3471
|
*/
|
|
3355
3472
|
apiKey?: string;
|
|
3356
3473
|
/** Run schedules on their cron cadence. Defaults to `!dev`. */
|
|
@@ -3435,7 +3552,7 @@ export interface ServeOptions {
|
|
|
3435
3552
|
* GitHub and Origin subscriptions are registered independently.
|
|
3436
3553
|
* The stream is read as the host's Cursor user, so this requires a signed-in
|
|
3437
3554
|
* host: `serve` throws when no key resolves from `apiKey` here,
|
|
3438
|
-
* {@link ServeOptions.apiKey}, `CURSOR_API_KEY`, or `agent-
|
|
3555
|
+
* {@link ServeOptions.apiKey}, `CURSOR_API_KEY`, or `agent-sdk login`.
|
|
3439
3556
|
*/
|
|
3440
3557
|
cursorEvents?: {
|
|
3441
3558
|
repos: string[];
|
package/dist/continuation.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Public continuation-identity surface for `@cursor/july`.
|
|
3
|
-
*
|
|
4
|
-
* Omitted `continuation` on a channel constructor stays `/v1` (engine
|
|
5
|
-
* minting). Deploy onto the v2 control plane with a root architecture
|
|
6
|
-
* flag; omitted channels then inherit the kind `/v2` default:
|
|
7
|
-
*
|
|
8
|
-
* ```ts
|
|
9
|
-
* export default defineAgent({
|
|
10
|
-
* architecture: "v2",
|
|
11
|
-
* });
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* Per-channel selectors still override type (`"github.issue/v2"`,
|
|
15
|
-
* `"github.none/v2"`). Other `/v2` selectors: `"slack.thread/v2"`,
|
|
16
|
-
* `"origin.pr/v2"`, `"deployments.deployment/v2"`, `"none/v2"`.
|
|
17
|
-
*/
|
|
18
|
-
export type { ContinuationBuiltin, ContinuationClaim, ContinuationIdentity, ContinuationProtocolVersion, ContinuationSelector, ConversationType, MailboxContinuation, ParsedContinuation, } from "./internal/continuation-identity.js";
|
|
19
|
-
export { BUILTINS, bindMailboxContinuationSend, builtinForType, CONTINUATION_SELECTORS, continuationSource, defaultContinuationSelector, extractContinuation, formatConversationKey, handshakeContinuation, isContinuationSelector, isV2DurableContinuationKey, mintClaim, newEvtKey, normalizeIdentity, parseContinuationSelector, resolveContinuation, resolveV2Key, stampMailboxContinuation, V2EngineError, } from "./internal/continuation-identity.js";
|
|
20
|
-
//# sourceMappingURL=continuation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"continuation.d.ts","sourceRoot":"","sources":["../src/continuation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,QAAQ,EACR,2BAA2B,EAC3B,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,wBAAwB,EACxB,aAAa,GACd,MAAM,qCAAqC,CAAC"}
|
package/dist/continuation.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Public continuation-identity surface for `@cursor/july`.
|
|
3
|
-
*
|
|
4
|
-
* Omitted `continuation` on a channel constructor stays `/v1` (engine
|
|
5
|
-
* minting). Deploy onto the v2 control plane with a root architecture
|
|
6
|
-
* flag; omitted channels then inherit the kind `/v2` default:
|
|
7
|
-
*
|
|
8
|
-
* ```ts
|
|
9
|
-
* export default defineAgent({
|
|
10
|
-
* architecture: "v2",
|
|
11
|
-
* });
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* Per-channel selectors still override type (`"github.issue/v2"`,
|
|
15
|
-
* `"github.none/v2"`). Other `/v2` selectors: `"slack.thread/v2"`,
|
|
16
|
-
* `"origin.pr/v2"`, `"deployments.deployment/v2"`, `"none/v2"`.
|
|
17
|
-
*/
|
|
18
|
-
export { BUILTINS, bindMailboxContinuationSend, builtinForType, CONTINUATION_SELECTORS, continuationSource, defaultContinuationSelector, extractContinuation, formatConversationKey, handshakeContinuation, isContinuationSelector, isV2DurableContinuationKey, mintClaim, newEvtKey, normalizeIdentity, parseContinuationSelector, resolveContinuation, resolveV2Key, stampMailboxContinuation, V2EngineError, } from "./internal/continuation-identity.js";
|