@cursor/bdk 0.2.1
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 +341 -0
- package/LICENSE.md +3 -0
- package/README.md +1190 -0
- package/dist/artifacts.d.ts +34 -0
- package/dist/artifacts.d.ts.map +1 -0
- package/dist/artifacts.js +51 -0
- package/dist/bin/agent-sdk.js +2 -0
- package/dist/bin/agent-serve.d.ts +19 -0
- package/dist/bin/agent-serve.d.ts.map +1 -0
- package/dist/bin/agent-serve.js +1578 -0
- package/dist/channels/bitbucket/api.d.ts +217 -0
- package/dist/channels/bitbucket/api.d.ts.map +1 -0
- package/dist/channels/bitbucket/api.js +664 -0
- package/dist/channels/bitbucket/binding.d.ts +75 -0
- package/dist/channels/bitbucket/binding.d.ts.map +1 -0
- package/dist/channels/bitbucket/binding.js +277 -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 +384 -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 +67 -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 +60 -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 +302 -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 +227 -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 +45 -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 +42 -0
- package/dist/channels/change-monitors/types.d.ts.map +1 -0
- package/dist/channels/change-monitors/types.js +1 -0
- package/dist/channels/checks.d.ts +121 -0
- package/dist/channels/checks.d.ts.map +1 -0
- package/dist/channels/checks.js +86 -0
- package/dist/channels/deployments/deployments-channel.d.ts +95 -0
- package/dist/channels/deployments/deployments-channel.d.ts.map +1 -0
- package/dist/channels/deployments/deployments-channel.js +196 -0
- package/dist/channels/deployments/index.d.ts +25 -0
- package/dist/channels/deployments/index.d.ts.map +1 -0
- package/dist/channels/deployments/index.js +24 -0
- package/dist/channels/deployments/types.d.ts +83 -0
- package/dist/channels/deployments/types.d.ts.map +1 -0
- package/dist/channels/deployments/types.js +7 -0
- package/dist/channels/github/api.d.ts +133 -0
- package/dist/channels/github/api.d.ts.map +1 -0
- package/dist/channels/github/api.js +320 -0
- package/dist/channels/github/auth.d.ts +67 -0
- package/dist/channels/github/auth.d.ts.map +1 -0
- package/dist/channels/github/auth.js +233 -0
- package/dist/channels/github/binding.d.ts +86 -0
- package/dist/channels/github/binding.d.ts.map +1 -0
- package/dist/channels/github/binding.js +114 -0
- package/dist/channels/github/checks.d.ts +64 -0
- package/dist/channels/github/checks.d.ts.map +1 -0
- package/dist/channels/github/checks.js +98 -0
- package/dist/channels/github/cursor-account.d.ts +102 -0
- package/dist/channels/github/cursor-account.d.ts.map +1 -0
- package/dist/channels/github/cursor-account.js +194 -0
- package/dist/channels/github/defaults.d.ts +23 -0
- package/dist/channels/github/defaults.d.ts.map +1 -0
- package/dist/channels/github/defaults.js +157 -0
- package/dist/channels/github/events.d.ts +18 -0
- package/dist/channels/github/events.d.ts.map +1 -0
- package/dist/channels/github/events.js +56 -0
- package/dist/channels/github/forward.d.ts +139 -0
- package/dist/channels/github/forward.d.ts.map +1 -0
- package/dist/channels/github/forward.js +267 -0
- package/dist/channels/github/github-channel.d.ts +146 -0
- package/dist/channels/github/github-channel.d.ts.map +1 -0
- package/dist/channels/github/github-channel.js +1804 -0
- package/dist/channels/github/index.d.ts +54 -0
- package/dist/channels/github/index.d.ts.map +1 -0
- package/dist/channels/github/index.js +53 -0
- package/dist/channels/github/progress.d.ts +84 -0
- package/dist/channels/github/progress.d.ts.map +1 -0
- package/dist/channels/github/progress.js +236 -0
- package/dist/channels/github/replay.d.ts +115 -0
- package/dist/channels/github/replay.d.ts.map +1 -0
- package/dist/channels/github/replay.js +278 -0
- package/dist/channels/github/state.d.ts +47 -0
- package/dist/channels/github/state.d.ts.map +1 -0
- package/dist/channels/github/state.js +53 -0
- package/dist/channels/github/types.d.ts +491 -0
- package/dist/channels/github/types.d.ts.map +1 -0
- package/dist/channels/github/types.js +1 -0
- package/dist/channels/gitlab/api.d.ts +118 -0
- package/dist/channels/gitlab/api.d.ts.map +1 -0
- package/dist/channels/gitlab/api.js +234 -0
- package/dist/channels/gitlab/binding.d.ts +63 -0
- package/dist/channels/gitlab/binding.d.ts.map +1 -0
- package/dist/channels/gitlab/binding.js +147 -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 +122 -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 +64 -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 +55 -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 +26 -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 +388 -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 +199 -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 +211 -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 +35 -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 +157 -0
- package/dist/channels/origin/api.d.ts.map +1 -0
- package/dist/channels/origin/api.js +379 -0
- package/dist/channels/origin/binding.d.ts +57 -0
- package/dist/channels/origin/binding.d.ts.map +1 -0
- package/dist/channels/origin/binding.js +57 -0
- package/dist/channels/origin/checks.d.ts +119 -0
- package/dist/channels/origin/checks.d.ts.map +1 -0
- package/dist/channels/origin/checks.js +145 -0
- package/dist/channels/origin/cursor-account.d.ts +24 -0
- package/dist/channels/origin/cursor-account.d.ts.map +1 -0
- package/dist/channels/origin/cursor-account.js +35 -0
- package/dist/channels/origin/defaults.d.ts +43 -0
- package/dist/channels/origin/defaults.d.ts.map +1 -0
- package/dist/channels/origin/defaults.js +109 -0
- package/dist/channels/origin/events.d.ts +10 -0
- package/dist/channels/origin/events.d.ts.map +1 -0
- package/dist/channels/origin/events.js +25 -0
- package/dist/channels/origin/index.d.ts +35 -0
- package/dist/channels/origin/index.d.ts.map +1 -0
- package/dist/channels/origin/index.js +34 -0
- package/dist/channels/origin/origin-channel.d.ts +72 -0
- package/dist/channels/origin/origin-channel.d.ts.map +1 -0
- package/dist/channels/origin/origin-channel.js +634 -0
- package/dist/channels/origin/origin-webhook.d.ts +69 -0
- package/dist/channels/origin/origin-webhook.d.ts.map +1 -0
- package/dist/channels/origin/origin-webhook.js +231 -0
- package/dist/channels/origin/reactions.d.ts +56 -0
- package/dist/channels/origin/reactions.d.ts.map +1 -0
- package/dist/channels/origin/reactions.js +58 -0
- package/dist/channels/origin/state.d.ts +32 -0
- package/dist/channels/origin/state.d.ts.map +1 -0
- package/dist/channels/origin/state.js +23 -0
- package/dist/channels/origin/types.d.ts +257 -0
- package/dist/channels/origin/types.d.ts.map +1 -0
- package/dist/channels/origin/types.js +1 -0
- package/dist/channels/slack/agentic-delivery.d.ts +23 -0
- package/dist/channels/slack/agentic-delivery.d.ts.map +1 -0
- package/dist/channels/slack/agentic-delivery.js +566 -0
- package/dist/channels/slack/agentic-posted.d.ts +30 -0
- package/dist/channels/slack/agentic-posted.d.ts.map +1 -0
- package/dist/channels/slack/agentic-posted.js +102 -0
- package/dist/channels/slack/agentic-signals.d.ts +48 -0
- package/dist/channels/slack/agentic-signals.d.ts.map +1 -0
- package/dist/channels/slack/agentic-signals.js +199 -0
- package/dist/channels/slack/api.d.ts +171 -0
- package/dist/channels/slack/api.d.ts.map +1 -0
- package/dist/channels/slack/api.js +613 -0
- package/dist/channels/slack/approvals.d.ts +48 -0
- package/dist/channels/slack/approvals.d.ts.map +1 -0
- package/dist/channels/slack/approvals.js +233 -0
- package/dist/channels/slack/assistant.d.ts +23 -0
- package/dist/channels/slack/assistant.d.ts.map +1 -0
- package/dist/channels/slack/assistant.js +67 -0
- package/dist/channels/slack/attachments.d.ts +82 -0
- package/dist/channels/slack/attachments.d.ts.map +1 -0
- package/dist/channels/slack/attachments.js +503 -0
- package/dist/channels/slack/auth.d.ts +46 -0
- package/dist/channels/slack/auth.d.ts.map +1 -0
- package/dist/channels/slack/auth.js +95 -0
- package/dist/channels/slack/blocks.d.ts +61 -0
- package/dist/channels/slack/blocks.d.ts.map +1 -0
- package/dist/channels/slack/blocks.js +90 -0
- package/dist/channels/slack/bot-mentions.d.ts +108 -0
- package/dist/channels/slack/bot-mentions.d.ts.map +1 -0
- package/dist/channels/slack/bot-mentions.js +257 -0
- package/dist/channels/slack/channel-watch.d.ts +76 -0
- package/dist/channels/slack/channel-watch.d.ts.map +1 -0
- package/dist/channels/slack/channel-watch.js +264 -0
- package/dist/channels/slack/cli-project.d.ts +19 -0
- package/dist/channels/slack/cli-project.d.ts.map +1 -0
- package/dist/channels/slack/cli-project.js +228 -0
- package/dist/channels/slack/code-fences.d.ts +17 -0
- package/dist/channels/slack/code-fences.d.ts.map +1 -0
- package/dist/channels/slack/code-fences.js +166 -0
- package/dist/channels/slack/constants.d.ts +25 -0
- package/dist/channels/slack/constants.d.ts.map +1 -0
- package/dist/channels/slack/constants.js +35 -0
- package/dist/channels/slack/credentials.d.ts +35 -0
- package/dist/channels/slack/credentials.d.ts.map +1 -0
- package/dist/channels/slack/credentials.js +88 -0
- package/dist/channels/slack/defaults.d.ts +50 -0
- package/dist/channels/slack/defaults.d.ts.map +1 -0
- package/dist/channels/slack/defaults.js +630 -0
- package/dist/channels/slack/dispatch.d.ts +141 -0
- package/dist/channels/slack/dispatch.d.ts.map +1 -0
- package/dist/channels/slack/dispatch.js +730 -0
- package/dist/channels/slack/doctor.d.ts +40 -0
- package/dist/channels/slack/doctor.d.ts.map +1 -0
- package/dist/channels/slack/doctor.js +291 -0
- package/dist/channels/slack/eval-directive.d.ts +59 -0
- package/dist/channels/slack/eval-directive.d.ts.map +1 -0
- package/dist/channels/slack/eval-directive.js +269 -0
- package/dist/channels/slack/event-id-dedupe.d.ts +10 -0
- package/dist/channels/slack/event-id-dedupe.d.ts.map +1 -0
- package/dist/channels/slack/event-id-dedupe.js +23 -0
- package/dist/channels/slack/external-policy.d.ts +28 -0
- package/dist/channels/slack/external-policy.d.ts.map +1 -0
- package/dist/channels/slack/external-policy.js +64 -0
- package/dist/channels/slack/footer.d.ts +33 -0
- package/dist/channels/slack/footer.d.ts.map +1 -0
- package/dist/channels/slack/footer.js +85 -0
- package/dist/channels/slack/inbound.d.ts +98 -0
- package/dist/channels/slack/inbound.d.ts.map +1 -0
- package/dist/channels/slack/inbound.js +314 -0
- package/dist/channels/slack/index.d.ts +53 -0
- package/dist/channels/slack/index.d.ts.map +1 -0
- package/dist/channels/slack/index.js +52 -0
- package/dist/channels/slack/init.d.ts +45 -0
- package/dist/channels/slack/init.d.ts.map +1 -0
- package/dist/channels/slack/init.js +126 -0
- package/dist/channels/slack/interactive.d.ts +65 -0
- package/dist/channels/slack/interactive.d.ts.map +1 -0
- package/dist/channels/slack/interactive.js +310 -0
- package/dist/channels/slack/links.d.ts +10 -0
- package/dist/channels/slack/links.d.ts.map +1 -0
- package/dist/channels/slack/links.js +19 -0
- package/dist/channels/slack/live-delivery.d.ts +77 -0
- package/dist/channels/slack/live-delivery.d.ts.map +1 -0
- package/dist/channels/slack/live-delivery.js +399 -0
- package/dist/channels/slack/log.d.ts +25 -0
- package/dist/channels/slack/log.d.ts.map +1 -0
- package/dist/channels/slack/log.js +44 -0
- package/dist/channels/slack/manifest.d.ts +80 -0
- package/dist/channels/slack/manifest.d.ts.map +1 -0
- package/dist/channels/slack/manifest.js +159 -0
- package/dist/channels/slack/message-body.d.ts +13 -0
- package/dist/channels/slack/message-body.d.ts.map +1 -0
- package/dist/channels/slack/message-body.js +74 -0
- package/dist/channels/slack/nudge-carrier.d.ts +21 -0
- package/dist/channels/slack/nudge-carrier.d.ts.map +1 -0
- package/dist/channels/slack/nudge-carrier.js +213 -0
- package/dist/channels/slack/nudge-store.d.ts +77 -0
- package/dist/channels/slack/nudge-store.d.ts.map +1 -0
- package/dist/channels/slack/nudge-store.js +315 -0
- package/dist/channels/slack/paint-start.d.ts +22 -0
- package/dist/channels/slack/paint-start.d.ts.map +1 -0
- package/dist/channels/slack/paint-start.js +91 -0
- package/dist/channels/slack/placeholder.d.ts +62 -0
- package/dist/channels/slack/placeholder.d.ts.map +1 -0
- package/dist/channels/slack/placeholder.js +266 -0
- package/dist/channels/slack/pr-ref.d.ts +24 -0
- package/dist/channels/slack/pr-ref.d.ts.map +1 -0
- package/dist/channels/slack/pr-ref.js +55 -0
- package/dist/channels/slack/progress-delivery.d.ts +28 -0
- package/dist/channels/slack/progress-delivery.d.ts.map +1 -0
- package/dist/channels/slack/progress-delivery.js +122 -0
- package/dist/channels/slack/reasoning-card.d.ts +38 -0
- package/dist/channels/slack/reasoning-card.d.ts.map +1 -0
- package/dist/channels/slack/reasoning-card.js +103 -0
- package/dist/channels/slack/reasoning-chip.d.ts +8 -0
- package/dist/channels/slack/reasoning-chip.d.ts.map +1 -0
- package/dist/channels/slack/reasoning-chip.js +30 -0
- package/dist/channels/slack/recording-sink.d.ts +29 -0
- package/dist/channels/slack/recording-sink.d.ts.map +1 -0
- package/dist/channels/slack/recording-sink.js +140 -0
- package/dist/channels/slack/redact.d.ts +2 -0
- package/dist/channels/slack/redact.d.ts.map +1 -0
- package/dist/channels/slack/redact.js +5 -0
- package/dist/channels/slack/reply-options.d.ts +47 -0
- package/dist/channels/slack/reply-options.d.ts.map +1 -0
- package/dist/channels/slack/reply-options.js +193 -0
- package/dist/channels/slack/setup.d.ts +33 -0
- package/dist/channels/slack/setup.d.ts.map +1 -0
- package/dist/channels/slack/setup.js +101 -0
- package/dist/channels/slack/slack-channel.d.ts +43 -0
- package/dist/channels/slack/slack-channel.d.ts.map +1 -0
- package/dist/channels/slack/slack-channel.js +534 -0
- package/dist/channels/slack/socket-mode.d.ts +26 -0
- package/dist/channels/slack/socket-mode.d.ts.map +1 -0
- package/dist/channels/slack/socket-mode.js +114 -0
- package/dist/channels/slack/stop.d.ts +14 -0
- package/dist/channels/slack/stop.d.ts.map +1 -0
- package/dist/channels/slack/stop.js +22 -0
- package/dist/channels/slack/stream.d.ts +38 -0
- package/dist/channels/slack/stream.d.ts.map +1 -0
- package/dist/channels/slack/stream.js +30 -0
- package/dist/channels/slack/thread-context.d.ts +79 -0
- package/dist/channels/slack/thread-context.d.ts.map +1 -0
- package/dist/channels/slack/thread-context.js +396 -0
- package/dist/channels/slack/tool-approval-events.d.ts +38 -0
- package/dist/channels/slack/tool-approval-events.d.ts.map +1 -0
- package/dist/channels/slack/tool-approval-events.js +224 -0
- package/dist/channels/slack/tool-cards.d.ts +22 -0
- package/dist/channels/slack/tool-cards.d.ts.map +1 -0
- package/dist/channels/slack/tool-cards.js +172 -0
- package/dist/channels/slack/tool-chip.d.ts +9 -0
- package/dist/channels/slack/tool-chip.d.ts.map +1 -0
- package/dist/channels/slack/tool-chip.js +23 -0
- package/dist/channels/slack/types.d.ts +751 -0
- package/dist/channels/slack/types.d.ts.map +1 -0
- package/dist/channels/slack/types.js +4 -0
- package/dist/channels/slack/upload.d.ts +13 -0
- package/dist/channels/slack/upload.d.ts.map +1 -0
- package/dist/channels/slack/upload.js +135 -0
- package/dist/channels.d.ts +175 -0
- package/dist/channels.d.ts.map +1 -0
- package/dist/channels.js +417 -0
- package/dist/connections.d.ts +131 -0
- package/dist/connections.d.ts.map +1 -0
- package/dist/connections.js +131 -0
- package/dist/dashboard-session-url.d.ts +15 -0
- package/dist/dashboard-session-url.d.ts.map +1 -0
- package/dist/dashboard-session-url.js +25 -0
- package/dist/docs/404.html +24 -0
- package/dist/docs/architecture.svg +59 -0
- package/dist/docs/assets/app.JVQvbRO-.js +309 -0
- package/dist/docs/assets/building-with-agents.md.-fcjCmJU.js +9 -0
- package/dist/docs/assets/building-with-agents.md.-fcjCmJU.lean.js +1 -0
- package/dist/docs/assets/chunks/@localSearchIndexroot.Caw9W1pM.js +1 -0
- package/dist/docs/assets/chunks/VPLocalSearchBox.BkhY63uW.js +9 -0
- package/dist/docs/assets/chunks/arc.Cc1unYd3.js +1 -0
- package/dist/docs/assets/chunks/architectureDiagram-Q4EWVU46.CAY_TPVz.js +36 -0
- package/dist/docs/assets/chunks/baseUniq.my2VD3Xm.js +1 -0
- package/dist/docs/assets/chunks/blockDiagram-DXYQGD6D.CQXAOmqd.js +132 -0
- package/dist/docs/assets/chunks/c4Diagram-AHTNJAMY.D0AsQFSX.js +10 -0
- package/dist/docs/assets/chunks/channel.Sapo9HJZ.js +1 -0
- package/dist/docs/assets/chunks/chunk-4BX2VUAB.DZjhgNls.js +1 -0
- package/dist/docs/assets/chunks/chunk-4TB4RGXK.qdcp_qbo.js +206 -0
- package/dist/docs/assets/chunks/chunk-55IACEB6.BHXoZhJ-.js +1 -0
- package/dist/docs/assets/chunks/chunk-EDXVE4YY.Cds_Vwj3.js +1 -0
- package/dist/docs/assets/chunks/chunk-FMBD7UC4.CSl0HknT.js +15 -0
- package/dist/docs/assets/chunks/chunk-OYMX7WX6.DJMvAt5N.js +231 -0
- package/dist/docs/assets/chunks/chunk-QZHKN3VN.BYQzBK9D.js +1 -0
- package/dist/docs/assets/chunks/chunk-YZCP3GAM.BAvw7N4o.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.NPiy3Hz7.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.NPiy3Hz7.js +1 -0
- package/dist/docs/assets/chunks/clone.zl2qolPE.js +1 -0
- package/dist/docs/assets/chunks/cose-bilkent-S5V4N54A.Buf3seya.js +1 -0
- package/dist/docs/assets/chunks/cytoscape.esm.BQk4lpUV.js +331 -0
- package/dist/docs/assets/chunks/dagre-KV5264BT.DMGGa3uA.js +4 -0
- package/dist/docs/assets/chunks/defaultLocale.C4B-KCzX.js +1 -0
- package/dist/docs/assets/chunks/diagram-5BDNPKRD.DDjnwRmY.js +10 -0
- package/dist/docs/assets/chunks/diagram-G4DWMVQ6.RwyrIr8Q.js +24 -0
- package/dist/docs/assets/chunks/diagram-MMDJMWI5.DRvQV16Z.js +43 -0
- package/dist/docs/assets/chunks/diagram-TYMM5635.Dw8W9BTk.js +24 -0
- package/dist/docs/assets/chunks/erDiagram-SMLLAGMA.DQT1Hnwf.js +85 -0
- package/dist/docs/assets/chunks/flowDiagram-DWJPFMVM.6_Aky-ut.js +162 -0
- package/dist/docs/assets/chunks/framework.BNw1pucY.js +19 -0
- package/dist/docs/assets/chunks/ganttDiagram-T4ZO3ILL.DHIwqnqN.js +292 -0
- package/dist/docs/assets/chunks/gitGraphDiagram-UUTBAWPF.CGd_eJbn.js +106 -0
- package/dist/docs/assets/chunks/graph.ChMEylkh.js +1 -0
- package/dist/docs/assets/chunks/infoDiagram-42DDH7IO.Cd4gMyAz.js +2 -0
- package/dist/docs/assets/chunks/init.Gi6I4Gst.js +1 -0
- package/dist/docs/assets/chunks/ishikawaDiagram-UXIWVN3A.D1uw7MXq.js +70 -0
- package/dist/docs/assets/chunks/journeyDiagram-VCZTEJTY.AWLXtelc.js +139 -0
- package/dist/docs/assets/chunks/kanban-definition-6JOO6SKY.CagPhAn5.js +89 -0
- package/dist/docs/assets/chunks/katex.DkKDou_j.js +257 -0
- package/dist/docs/assets/chunks/layout.ClTBBkE_.js +1 -0
- package/dist/docs/assets/chunks/linear.SwS2rOLA.js +1 -0
- package/dist/docs/assets/chunks/min.By_x-Btb.js +1 -0
- package/dist/docs/assets/chunks/mindmap-definition-QFDTVHPH.By_RAMaP.js +96 -0
- package/dist/docs/assets/chunks/ordinal.DBvzRdQf.js +1 -0
- package/dist/docs/assets/chunks/pieDiagram-DEJITSTG.DfAl9sy4.js +30 -0
- package/dist/docs/assets/chunks/quadrantDiagram-34T5L4WZ.CNuqFRBj.js +7 -0
- package/dist/docs/assets/chunks/requirementDiagram-MS252O5E.DJ5CmTCl.js +84 -0
- package/dist/docs/assets/chunks/sankeyDiagram-XADWPNL6.D-T_AKJj.js +10 -0
- package/dist/docs/assets/chunks/sequenceDiagram-FGHM5R23.BRn9WcrR.js +157 -0
- package/dist/docs/assets/chunks/stateDiagram-FHFEXIEX.F12urmm7.js +1 -0
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2._auCa3fR.js +1 -0
- package/dist/docs/assets/chunks/theme.zK3OJa_C.js +2 -0
- package/dist/docs/assets/chunks/timeline-definition-GMOUNBTQ.B7GiQBeC.js +120 -0
- package/dist/docs/assets/chunks/vennDiagram-DHZGUBPP.D0niwuY_.js +34 -0
- package/dist/docs/assets/chunks/virtual_mermaid-config.DDnGl6nM.js +1 -0
- package/dist/docs/assets/chunks/wardley-RL74JXVD.1zhHNRsx.js +162 -0
- package/dist/docs/assets/chunks/wardleyDiagram-NUSXRM2D.DKaqpT7K.js +20 -0
- package/dist/docs/assets/chunks/xychartDiagram-5P7HB3ND.e8BPicch.js +7 -0
- package/dist/docs/assets/deployment.md.nGo1yIsa.js +32 -0
- package/dist/docs/assets/deployment.md.nGo1yIsa.lean.js +1 -0
- package/dist/docs/assets/evals.md.CCAtNcuL.js +72 -0
- package/dist/docs/assets/evals.md.CCAtNcuL.lean.js +1 -0
- package/dist/docs/assets/guides_agent-to-agent.md.CGkicXeB.js +41 -0
- package/dist/docs/assets/guides_agent-to-agent.md.CGkicXeB.lean.js +1 -0
- package/dist/docs/assets/guides_bitbucket.md.Cb3LPKt3.js +145 -0
- package/dist/docs/assets/guides_bitbucket.md.Cb3LPKt3.lean.js +1 -0
- package/dist/docs/assets/guides_cloud-agents.md.BuEkDCwo.js +10 -0
- package/dist/docs/assets/guides_cloud-agents.md.BuEkDCwo.lean.js +1 -0
- package/dist/docs/assets/guides_convert-automation.md.Ci-Y2iD5.js +43 -0
- package/dist/docs/assets/guides_convert-automation.md.Ci-Y2iD5.lean.js +1 -0
- package/dist/docs/assets/guides_github.md.C2_DSWlE.js +156 -0
- package/dist/docs/assets/guides_github.md.C2_DSWlE.lean.js +1 -0
- package/dist/docs/assets/guides_gitlab.md.BM27P43u.js +153 -0
- package/dist/docs/assets/guides_gitlab.md.BM27P43u.lean.js +1 -0
- package/dist/docs/assets/guides_grokbot-agents.md.yxVbSlKA.js +16 -0
- package/dist/docs/assets/guides_grokbot-agents.md.yxVbSlKA.lean.js +1 -0
- package/dist/docs/assets/guides_hooks.md.BWoiNaMq.js +50 -0
- package/dist/docs/assets/guides_hooks.md.BWoiNaMq.lean.js +1 -0
- package/dist/docs/assets/guides_improve.md.COtL-6ft.js +22 -0
- package/dist/docs/assets/guides_improve.md.COtL-6ft.lean.js +1 -0
- package/dist/docs/assets/guides_jev.md.BNDm14Gy.js +151 -0
- package/dist/docs/assets/guides_jev.md.BNDm14Gy.lean.js +1 -0
- package/dist/docs/assets/guides_mcp-oauth.md.Cu6mhZ_3.js +50 -0
- package/dist/docs/assets/guides_mcp-oauth.md.Cu6mhZ_3.lean.js +1 -0
- package/dist/docs/assets/guides_opentelemetry.md.DLlIB5rv.js +35 -0
- package/dist/docs/assets/guides_opentelemetry.md.DLlIB5rv.lean.js +1 -0
- package/dist/docs/assets/guides_slack.md.ZbHQETOT.js +70 -0
- package/dist/docs/assets/guides_slack.md.ZbHQETOT.lean.js +1 -0
- package/dist/docs/assets/guides_webhooks.md.D0furjw0.js +92 -0
- package/dist/docs/assets/guides_webhooks.md.D0furjw0.lean.js +1 -0
- package/dist/docs/assets/hillclimbing.md.Biy0m-Qb.js +7 -0
- package/dist/docs/assets/hillclimbing.md.Biy0m-Qb.lean.js +1 -0
- package/dist/docs/assets/index.md.CVc_oOA3.js +27 -0
- package/dist/docs/assets/index.md.CVc_oOA3.lean.js +1 -0
- package/dist/docs/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
- package/dist/docs/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
- package/dist/docs/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
- package/dist/docs/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
- package/dist/docs/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
- package/dist/docs/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
- package/dist/docs/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
- package/dist/docs/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
- package/dist/docs/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
- package/dist/docs/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
- package/dist/docs/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
- package/dist/docs/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
- package/dist/docs/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
- package/dist/docs/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
- package/dist/docs/assets/quickstart.md.wG4shE1f.js +168 -0
- package/dist/docs/assets/quickstart.md.wG4shE1f.lean.js +1 -0
- package/dist/docs/assets/reference_agent-config.md.DzGI777n.js +32 -0
- package/dist/docs/assets/reference_agent-config.md.DzGI777n.lean.js +1 -0
- package/dist/docs/assets/reference_artifacts.md.IFFC5Zln.js +18 -0
- package/dist/docs/assets/reference_artifacts.md.IFFC5Zln.lean.js +1 -0
- package/dist/docs/assets/reference_channels.md.mbNtKCiR.js +23 -0
- package/dist/docs/assets/reference_channels.md.mbNtKCiR.lean.js +1 -0
- package/dist/docs/assets/reference_cli.md.BK2QUH67.js +97 -0
- package/dist/docs/assets/reference_cli.md.BK2QUH67.lean.js +1 -0
- package/dist/docs/assets/reference_connections.md._XpKiOaF.js +63 -0
- package/dist/docs/assets/reference_connections.md._XpKiOaF.lean.js +1 -0
- package/dist/docs/assets/reference_evals.md.DqNyHMA6.js +56 -0
- package/dist/docs/assets/reference_evals.md.DqNyHMA6.lean.js +1 -0
- package/dist/docs/assets/reference_extensions.md.CPPrkWlJ.js +58 -0
- package/dist/docs/assets/reference_extensions.md.CPPrkWlJ.lean.js +1 -0
- package/dist/docs/assets/reference_hooks.md.Dg3dEugd.js +45 -0
- package/dist/docs/assets/reference_hooks.md.Dg3dEugd.lean.js +1 -0
- package/dist/docs/assets/reference_http-api.md.BZOvhCqY.js +11 -0
- package/dist/docs/assets/reference_http-api.md.BZOvhCqY.lean.js +1 -0
- package/dist/docs/assets/reference_instructions.md.Bdwscs4G.js +14 -0
- package/dist/docs/assets/reference_instructions.md.Bdwscs4G.lean.js +1 -0
- package/dist/docs/assets/reference_playground.md.BdQzRJc2.js +1 -0
- package/dist/docs/assets/reference_playground.md.BdQzRJc2.lean.js +1 -0
- package/dist/docs/assets/reference_project-layout.md.CpLQ9j4K.js +25 -0
- package/dist/docs/assets/reference_project-layout.md.CpLQ9j4K.lean.js +1 -0
- package/dist/docs/assets/reference_prompt.md.BQZB4eaV.js +9 -0
- package/dist/docs/assets/reference_prompt.md.BQZB4eaV.lean.js +1 -0
- package/dist/docs/assets/reference_schedules.md.BVU5EFbz.js +47 -0
- package/dist/docs/assets/reference_schedules.md.BVU5EFbz.lean.js +1 -0
- package/dist/docs/assets/reference_sessions.md.BtpTjZmh.js +1 -0
- package/dist/docs/assets/reference_sessions.md.BtpTjZmh.lean.js +1 -0
- package/dist/docs/assets/reference_skills.md.Cy00QMKS.js +15 -0
- package/dist/docs/assets/reference_skills.md.Cy00QMKS.lean.js +1 -0
- package/dist/docs/assets/reference_subagents.md.B8oyeXOI.js +10 -0
- package/dist/docs/assets/reference_subagents.md.B8oyeXOI.lean.js +1 -0
- package/dist/docs/assets/reference_tools.md.hg2Wi5Bq.js +90 -0
- package/dist/docs/assets/reference_tools.md.hg2Wi5Bq.lean.js +1 -0
- package/dist/docs/assets/style.C130MVnH.css +1 -0
- package/dist/docs/assets/templates_agentic-owners.md.BykUiZ8j.js +14 -0
- package/dist/docs/assets/templates_agentic-owners.md.BykUiZ8j.lean.js +1 -0
- package/dist/docs/assets/templates_security-reviewer.md.DXMmKl_o.js +2 -0
- package/dist/docs/assets/templates_security-reviewer.md.DXMmKl_o.lean.js +1 -0
- package/dist/docs/assets/templates_thermo-quality-review.md.Dg1p1MsG.js +3 -0
- package/dist/docs/assets/templates_thermo-quality-review.md.Dg1p1MsG.lean.js +1 -0
- package/dist/docs/assets/templates_thermo-review.md.Dlylkowj.js +3 -0
- package/dist/docs/assets/templates_thermo-review.md.Dlylkowj.lean.js +1 -0
- package/dist/docs/assets/templates_triage.md.CvJyx81N.js +9 -0
- package/dist/docs/assets/templates_triage.md.CvJyx81N.lean.js +1 -0
- package/dist/docs/assets/troubleshooting.md.BzZSu1Gz.js +1 -0
- package/dist/docs/assets/troubleshooting.md.BzZSu1Gz.lean.js +1 -0
- package/dist/docs/building-with-agents.html +68 -0
- package/dist/docs/building-with-agents.md +135 -0
- package/dist/docs/deployment.html +91 -0
- package/dist/docs/deployment.md +211 -0
- package/dist/docs/evals.html +131 -0
- package/dist/docs/evals.md +257 -0
- package/dist/docs/guides/agent-to-agent.html +100 -0
- package/dist/docs/guides/agent-to-agent.md +152 -0
- package/dist/docs/guides/bitbucket.html +204 -0
- package/dist/docs/guides/bitbucket.md +288 -0
- package/dist/docs/guides/cloud-agents.html +69 -0
- package/dist/docs/guides/cloud-agents.md +90 -0
- package/dist/docs/guides/convert-automation.html +102 -0
- package/dist/docs/guides/convert-automation.md +183 -0
- package/dist/docs/guides/github.html +215 -0
- package/dist/docs/guides/github.md +326 -0
- package/dist/docs/guides/gitlab.html +212 -0
- package/dist/docs/guides/gitlab.md +294 -0
- package/dist/docs/guides/grokbot-agents.html +75 -0
- package/dist/docs/guides/grokbot-agents.md +142 -0
- package/dist/docs/guides/hooks.html +109 -0
- package/dist/docs/guides/hooks.md +114 -0
- package/dist/docs/guides/improve.html +81 -0
- package/dist/docs/guides/improve.md +134 -0
- package/dist/docs/guides/jev.html +210 -0
- package/dist/docs/guides/jev.md +294 -0
- package/dist/docs/guides/mcp-oauth.html +109 -0
- package/dist/docs/guides/mcp-oauth.md +162 -0
- package/dist/docs/guides/opentelemetry.html +94 -0
- package/dist/docs/guides/opentelemetry.md +153 -0
- package/dist/docs/guides/slack.html +129 -0
- package/dist/docs/guides/slack.md +273 -0
- package/dist/docs/guides/webhooks.html +151 -0
- package/dist/docs/guides/webhooks.md +236 -0
- package/dist/docs/hashmap.json +1 -0
- package/dist/docs/hillclimbing.html +66 -0
- package/dist/docs/hillclimbing.md +137 -0
- package/dist/docs/index.html +86 -0
- package/dist/docs/index.md +114 -0
- package/dist/docs/llms-full.txt +8439 -0
- package/dist/docs/llms.txt +62 -0
- package/dist/docs/quickstart.html +227 -0
- package/dist/docs/quickstart.md +306 -0
- package/dist/docs/reference/agent-config.html +91 -0
- package/dist/docs/reference/agent-config.md +188 -0
- package/dist/docs/reference/artifacts.html +77 -0
- package/dist/docs/reference/artifacts.md +116 -0
- package/dist/docs/reference/channels.html +82 -0
- package/dist/docs/reference/channels.md +198 -0
- package/dist/docs/reference/cli.html +156 -0
- package/dist/docs/reference/cli.md +904 -0
- package/dist/docs/reference/connections.html +122 -0
- package/dist/docs/reference/connections.md +272 -0
- package/dist/docs/reference/evals.html +115 -0
- package/dist/docs/reference/evals.md +287 -0
- package/dist/docs/reference/extensions.html +117 -0
- package/dist/docs/reference/extensions.md +193 -0
- package/dist/docs/reference/hooks.html +104 -0
- package/dist/docs/reference/hooks.md +190 -0
- package/dist/docs/reference/http-api.html +70 -0
- package/dist/docs/reference/http-api.md +231 -0
- package/dist/docs/reference/instructions.html +73 -0
- package/dist/docs/reference/instructions.md +63 -0
- package/dist/docs/reference/playground.html +60 -0
- package/dist/docs/reference/playground.md +42 -0
- package/dist/docs/reference/project-layout.html +84 -0
- package/dist/docs/reference/project-layout.md +115 -0
- package/dist/docs/reference/prompt.html +68 -0
- package/dist/docs/reference/prompt.md +50 -0
- package/dist/docs/reference/schedules.html +106 -0
- package/dist/docs/reference/schedules.md +170 -0
- package/dist/docs/reference/sessions.html +60 -0
- package/dist/docs/reference/sessions.md +160 -0
- package/dist/docs/reference/skills.html +74 -0
- package/dist/docs/reference/skills.md +75 -0
- package/dist/docs/reference/subagents.html +69 -0
- package/dist/docs/reference/subagents.md +62 -0
- package/dist/docs/reference/tools.html +149 -0
- package/dist/docs/reference/tools.md +324 -0
- package/dist/docs/templates/agentic-owners.html +73 -0
- package/dist/docs/templates/agentic-owners.md +95 -0
- package/dist/docs/templates/security-reviewer.html +61 -0
- package/dist/docs/templates/security-reviewer.md +85 -0
- package/dist/docs/templates/thermo-quality-review.html +62 -0
- package/dist/docs/templates/thermo-quality-review.md +78 -0
- package/dist/docs/templates/thermo-review.html +62 -0
- package/dist/docs/templates/thermo-review.md +77 -0
- package/dist/docs/templates/triage.html +68 -0
- package/dist/docs/templates/triage.md +97 -0
- package/dist/docs/troubleshooting.html +60 -0
- package/dist/docs/troubleshooting.md +143 -0
- package/dist/docs/vp-icons.css +0 -0
- package/dist/evals/assertions.d.ts +199 -0
- package/dist/evals/assertions.d.ts.map +1 -0
- package/dist/evals/assertions.js +459 -0
- package/dist/evals/expect.d.ts +95 -0
- package/dist/evals/expect.d.ts.map +1 -0
- package/dist/evals/expect.js +187 -0
- package/dist/evals/judge.d.ts +133 -0
- package/dist/evals/judge.d.ts.map +1 -0
- package/dist/evals/judge.js +224 -0
- package/dist/evals/loaders.d.ts +51 -0
- package/dist/evals/loaders.d.ts.map +1 -0
- package/dist/evals/loaders.js +124 -0
- package/dist/evals/matchers.d.ts +95 -0
- package/dist/evals/matchers.d.ts.map +1 -0
- package/dist/evals/matchers.js +142 -0
- package/dist/evals/reporters.d.ts +70 -0
- package/dist/evals/reporters.d.ts.map +1 -0
- package/dist/evals/reporters.js +220 -0
- package/dist/evals/results.d.ts +103 -0
- package/dist/evals/results.d.ts.map +1 -0
- package/dist/evals/results.js +27 -0
- package/dist/evals/run-facts.d.ts +77 -0
- package/dist/evals/run-facts.d.ts.map +1 -0
- package/dist/evals/run-facts.js +214 -0
- package/dist/evals.d.ts +446 -0
- package/dist/evals.d.ts.map +1 -0
- package/dist/evals.js +292 -0
- package/dist/extensions/cursor-cloud-agents/extension.d.ts +57 -0
- package/dist/extensions/cursor-cloud-agents/extension.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/extension.js +66 -0
- package/dist/extensions/cursor-cloud-agents/lib/backend.d.ts +78 -0
- package/dist/extensions/cursor-cloud-agents/lib/backend.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/lib/backend.js +280 -0
- package/dist/extensions/cursor-cloud-agents/lib/fleet.d.ts +25 -0
- package/dist/extensions/cursor-cloud-agents/lib/fleet.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/lib/fleet.js +81 -0
- package/dist/extensions/cursor-cloud-agents/lib/inputs.d.ts +5 -0
- package/dist/extensions/cursor-cloud-agents/lib/inputs.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/lib/inputs.js +4 -0
- package/dist/extensions/cursor-cloud-agents/lib/repos.d.ts +15 -0
- package/dist/extensions/cursor-cloud-agents/lib/repos.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/lib/repos.js +53 -0
- package/dist/extensions/cursor-cloud-agents/lib/transcript.d.ts +8 -0
- package/dist/extensions/cursor-cloud-agents/lib/transcript.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/lib/transcript.js +15 -0
- package/dist/extensions/cursor-cloud-agents/skills/handoff.md +37 -0
- package/dist/extensions/cursor-cloud-agents/tools/cancel.d.ts +4 -0
- package/dist/extensions/cursor-cloud-agents/tools/cancel.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/tools/cancel.js +26 -0
- package/dist/extensions/cursor-cloud-agents/tools/dump.d.ts +4 -0
- package/dist/extensions/cursor-cloud-agents/tools/dump.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/tools/dump.js +54 -0
- package/dist/extensions/cursor-cloud-agents/tools/get.d.ts +4 -0
- package/dist/extensions/cursor-cloud-agents/tools/get.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/tools/get.js +25 -0
- package/dist/extensions/cursor-cloud-agents/tools/launch.d.ts +4 -0
- package/dist/extensions/cursor-cloud-agents/tools/launch.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/tools/launch.js +59 -0
- package/dist/extensions/cursor-cloud-agents/tools/list.d.ts +4 -0
- package/dist/extensions/cursor-cloud-agents/tools/list.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/tools/list.js +36 -0
- package/dist/extensions/cursor-cloud-agents/tools/reply.d.ts +4 -0
- package/dist/extensions/cursor-cloud-agents/tools/reply.d.ts.map +1 -0
- package/dist/extensions/cursor-cloud-agents/tools/reply.js +35 -0
- package/dist/extensions/improve/extension.d.ts +48 -0
- package/dist/extensions/improve/extension.d.ts.map +1 -0
- package/dist/extensions/improve/extension.js +43 -0
- package/dist/extensions/improve/skills/yourself.d.ts +4 -0
- package/dist/extensions/improve/skills/yourself.d.ts.map +1 -0
- package/dist/extensions/improve/skills/yourself.js +43 -0
- package/dist/extensions/jev/extension.d.ts +43 -0
- package/dist/extensions/jev/extension.d.ts.map +1 -0
- package/dist/extensions/jev/extension.js +47 -0
- package/dist/extensions/jev/lib/evaluate.d.ts +101 -0
- package/dist/extensions/jev/lib/evaluate.d.ts.map +1 -0
- package/dist/extensions/jev/lib/evaluate.js +167 -0
- package/dist/extensions/jev/skills/gated-write.md +25 -0
- package/dist/extensions/jev/skills/questions.md +33 -0
- package/dist/extensions/jev/tools/evaluate.d.ts +4 -0
- package/dist/extensions/jev/tools/evaluate.d.ts.map +1 -0
- package/dist/extensions/jev/tools/evaluate.js +83 -0
- package/dist/extensions/slack-communication/extension.d.ts +28 -0
- package/dist/extensions/slack-communication/extension.d.ts.map +1 -0
- package/dist/extensions/slack-communication/extension.js +32 -0
- package/dist/extensions/slack-communication/skills/slack-voice.d.ts +5 -0
- package/dist/extensions/slack-communication/skills/slack-voice.d.ts.map +1 -0
- package/dist/extensions/slack-communication/skills/slack-voice.js +52 -0
- package/dist/extensions/slack-communication/tools/delete-message.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/delete-message.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/delete-message.js +29 -0
- package/dist/extensions/slack-communication/tools/edit-message.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/edit-message.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/edit-message.js +37 -0
- package/dist/extensions/slack-communication/tools/post-card.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/post-card.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/post-card.js +25 -0
- package/dist/extensions/slack-communication/tools/post-file.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/post-file.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/post-file.js +75 -0
- package/dist/extensions/slack-communication/tools/post-update.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/post-update.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/post-update.js +36 -0
- package/dist/extensions/slack-communication/tools/react.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/react.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/react.js +27 -0
- package/dist/extensions/slack-communication/tools/set-status.d.ts +4 -0
- package/dist/extensions/slack-communication/tools/set-status.d.ts.map +1 -0
- package/dist/extensions/slack-communication/tools/set-status.js +18 -0
- package/dist/extensions.d.ts +85 -0
- package/dist/extensions.d.ts.map +1 -0
- package/dist/extensions.js +140 -0
- 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 +223 -0
- package/dist/files-backends/cursor-hosted.d.ts +126 -0
- package/dist/files-backends/cursor-hosted.d.ts.map +1 -0
- package/dist/files-backends/cursor-hosted.js +978 -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 +195 -0
- package/dist/files.d.ts +225 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +152 -0
- package/dist/filesystem.d.ts +484 -0
- package/dist/filesystem.d.ts.map +1 -0
- package/dist/filesystem.js +1698 -0
- package/dist/hooks.d.ts +25 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +25 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +109 -0
- package/dist/internal/advertise-tools.d.ts +95 -0
- package/dist/internal/advertise-tools.d.ts.map +1 -0
- package/dist/internal/advertise-tools.js +265 -0
- package/dist/internal/approval-gate.d.ts +33 -0
- package/dist/internal/approval-gate.d.ts.map +1 -0
- package/dist/internal/approval-gate.js +80 -0
- package/dist/internal/artifacts-store.d.ts +125 -0
- package/dist/internal/artifacts-store.d.ts.map +1 -0
- package/dist/internal/artifacts-store.js +737 -0
- package/dist/internal/as-of.d.ts +37 -0
- package/dist/internal/as-of.d.ts.map +1 -0
- package/dist/internal/as-of.js +207 -0
- package/dist/internal/auth.d.ts +12 -0
- package/dist/internal/auth.d.ts.map +1 -0
- package/dist/internal/auth.js +34 -0
- package/dist/internal/authored-alias-hooks.d.ts +42 -0
- package/dist/internal/authored-alias-hooks.d.ts.map +1 -0
- package/dist/internal/authored-alias-hooks.js +93 -0
- package/dist/internal/authored-loaders.d.ts +50 -0
- package/dist/internal/authored-loaders.d.ts.map +1 -0
- package/dist/internal/authored-loaders.js +182 -0
- package/dist/internal/bounded-int.d.ts +11 -0
- package/dist/internal/bounded-int.d.ts.map +1 -0
- package/dist/internal/bounded-int.js +13 -0
- package/dist/internal/bounded.d.ts +7 -0
- package/dist/internal/bounded.d.ts.map +1 -0
- package/dist/internal/bounded.js +32 -0
- package/dist/internal/brand.d.ts +6 -0
- package/dist/internal/brand.d.ts.map +1 -0
- package/dist/internal/brand.js +17 -0
- package/dist/internal/browser-origin-guard.d.ts +19 -0
- package/dist/internal/browser-origin-guard.d.ts.map +1 -0
- package/dist/internal/browser-origin-guard.js +51 -0
- package/dist/internal/builtin-tools/artifacts.d.ts +10 -0
- package/dist/internal/builtin-tools/artifacts.d.ts.map +1 -0
- package/dist/internal/builtin-tools/artifacts.js +66 -0
- package/dist/internal/builtin-tools/index.d.ts +17 -0
- package/dist/internal/builtin-tools/index.d.ts.map +1 -0
- package/dist/internal/builtin-tools/index.js +40 -0
- package/dist/internal/builtin-tools/reminders.d.ts +9 -0
- package/dist/internal/builtin-tools/reminders.d.ts.map +1 -0
- package/dist/internal/builtin-tools/reminders.js +134 -0
- 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 +75 -0
- package/dist/internal/channel-route-dispatch.d.ts +13 -0
- package/dist/internal/channel-route-dispatch.d.ts.map +1 -0
- package/dist/internal/channel-route-dispatch.js +62 -0
- package/dist/internal/channel-state.d.ts +17 -0
- package/dist/internal/channel-state.d.ts.map +1 -0
- package/dist/internal/channel-state.js +69 -0
- package/dist/internal/chat-client.d.ts +45 -0
- package/dist/internal/chat-client.d.ts.map +1 -0
- package/dist/internal/chat-client.js +478 -0
- package/dist/internal/cli-ax.d.ts +233 -0
- package/dist/internal/cli-ax.d.ts.map +1 -0
- package/dist/internal/cli-ax.js +1864 -0
- 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 +360 -0
- package/dist/internal/cli-convert-automation.d.ts +39 -0
- package/dist/internal/cli-convert-automation.d.ts.map +1 -0
- package/dist/internal/cli-convert-automation.js +281 -0
- package/dist/internal/cli-cursor.d.ts +38 -0
- package/dist/internal/cli-cursor.d.ts.map +1 -0
- package/dist/internal/cli-cursor.js +226 -0
- package/dist/internal/cli-deploy.d.ts +164 -0
- package/dist/internal/cli-deploy.d.ts.map +1 -0
- package/dist/internal/cli-deploy.js +1930 -0
- package/dist/internal/cli-docs.d.ts +34 -0
- package/dist/internal/cli-docs.d.ts.map +1 -0
- package/dist/internal/cli-docs.js +173 -0
- package/dist/internal/cli-github.d.ts +47 -0
- package/dist/internal/cli-github.d.ts.map +1 -0
- package/dist/internal/cli-github.js +639 -0
- 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 +379 -0
- package/dist/internal/cli-images.d.ts +68 -0
- package/dist/internal/cli-images.d.ts.map +1 -0
- package/dist/internal/cli-images.js +604 -0
- package/dist/internal/cli-manifest.d.ts +19 -0
- package/dist/internal/cli-manifest.d.ts.map +1 -0
- package/dist/internal/cli-manifest.js +49 -0
- package/dist/internal/cli-mcp-oauth.d.ts +51 -0
- package/dist/internal/cli-mcp-oauth.d.ts.map +1 -0
- package/dist/internal/cli-mcp-oauth.js +318 -0
- package/dist/internal/cli-mcp.d.ts +75 -0
- package/dist/internal/cli-mcp.d.ts.map +1 -0
- package/dist/internal/cli-mcp.js +684 -0
- package/dist/internal/cli-skills.d.ts +21 -0
- package/dist/internal/cli-skills.d.ts.map +1 -0
- package/dist/internal/cli-skills.js +77 -0
- package/dist/internal/cli-slack-manual.d.ts +42 -0
- package/dist/internal/cli-slack-manual.d.ts.map +1 -0
- package/dist/internal/cli-slack-manual.js +325 -0
- package/dist/internal/cli-slack.d.ts +59 -0
- package/dist/internal/cli-slack.d.ts.map +1 -0
- package/dist/internal/cli-slack.js +695 -0
- package/dist/internal/cloud-merge.d.ts +25 -0
- package/dist/internal/cloud-merge.d.ts.map +1 -0
- package/dist/internal/cloud-merge.js +36 -0
- package/dist/internal/cloud-turn-cost.d.ts +42 -0
- package/dist/internal/cloud-turn-cost.d.ts.map +1 -0
- package/dist/internal/cloud-turn-cost.js +113 -0
- package/dist/internal/continuation-channel.d.ts +48 -0
- package/dist/internal/continuation-channel.d.ts.map +1 -0
- package/dist/internal/continuation-channel.js +154 -0
- package/dist/internal/continuation-identity.d.ts +113 -0
- package/dist/internal/continuation-identity.d.ts.map +1 -0
- package/dist/internal/continuation-identity.js +749 -0
- package/dist/internal/conversation-mirror.d.ts +85 -0
- package/dist/internal/conversation-mirror.d.ts.map +1 -0
- package/dist/internal/conversation-mirror.js +342 -0
- package/dist/internal/convert-automation/convert-workflow.d.ts +10 -0
- package/dist/internal/convert-automation/convert-workflow.d.ts.map +1 -0
- package/dist/internal/convert-automation/convert-workflow.js +998 -0
- package/dist/internal/convert-automation/slug.d.ts +9 -0
- package/dist/internal/convert-automation/slug.d.ts.map +1 -0
- package/dist/internal/convert-automation/slug.js +28 -0
- package/dist/internal/convert-automation/types.d.ts +202 -0
- package/dist/internal/convert-automation/types.d.ts.map +1 -0
- package/dist/internal/convert-automation/types.js +13 -0
- package/dist/internal/cron.d.ts +17 -0
- package/dist/internal/cron.d.ts.map +1 -0
- package/dist/internal/cron.js +60 -0
- package/dist/internal/cursor/account-mcp.d.ts +135 -0
- package/dist/internal/cursor/account-mcp.d.ts.map +1 -0
- package/dist/internal/cursor/account-mcp.js +510 -0
- package/dist/internal/cursor/backend-client.d.ts +224 -0
- package/dist/internal/cursor/backend-client.d.ts.map +1 -0
- package/dist/internal/cursor/backend-client.js +720 -0
- 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 +195 -0
- package/dist/internal/cursor/credentials.d.ts.map +1 -0
- package/dist/internal/cursor/credentials.js +475 -0
- package/dist/internal/cursor/cursor-api-transport.d.ts +37 -0
- package/dist/internal/cursor/cursor-api-transport.d.ts.map +1 -0
- package/dist/internal/cursor/cursor-api-transport.js +44 -0
- package/dist/internal/cursor/github-credentials.d.ts +44 -0
- package/dist/internal/cursor/github-credentials.d.ts.map +1 -0
- package/dist/internal/cursor/github-credentials.js +191 -0
- 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 +30 -0
- package/dist/internal/cursor/hosted-deployment-secrets.d.ts.map +1 -0
- package/dist/internal/cursor/hosted-deployment-secrets.js +81 -0
- package/dist/internal/cursor/hosted-store-secrets.d.ts +63 -0
- package/dist/internal/cursor/hosted-store-secrets.d.ts.map +1 -0
- package/dist/internal/cursor/hosted-store-secrets.js +112 -0
- package/dist/internal/cursor/session-token.d.ts +45 -0
- package/dist/internal/cursor/session-token.d.ts.map +1 -0
- package/dist/internal/cursor/session-token.js +97 -0
- package/dist/internal/cursor/store-api-client.d.ts +82 -0
- package/dist/internal/cursor/store-api-client.d.ts.map +1 -0
- package/dist/internal/cursor/store-api-client.js +226 -0
- package/dist/internal/cursor-account-mcp-auth.d.ts +66 -0
- package/dist/internal/cursor-account-mcp-auth.d.ts.map +1 -0
- package/dist/internal/cursor-account-mcp-auth.js +241 -0
- package/dist/internal/cursor-agent-template.d.ts +9 -0
- package/dist/internal/cursor-agent-template.d.ts.map +1 -0
- package/dist/internal/cursor-agent-template.js +43 -0
- package/dist/internal/cursor-deployment-relay.d.ts +95 -0
- package/dist/internal/cursor-deployment-relay.d.ts.map +1 -0
- package/dist/internal/cursor-deployment-relay.js +233 -0
- package/dist/internal/cursor-event-relay.d.ts +243 -0
- package/dist/internal/cursor-event-relay.d.ts.map +1 -0
- package/dist/internal/cursor-event-relay.js +424 -0
- package/dist/internal/cursor-relay-core.d.ts +160 -0
- package/dist/internal/cursor-relay-core.d.ts.map +1 -0
- package/dist/internal/cursor-relay-core.js +470 -0
- package/dist/internal/deferred-channel-session.d.ts +20 -0
- package/dist/internal/deferred-channel-session.d.ts.map +1 -0
- package/dist/internal/deferred-channel-session.js +62 -0
- package/dist/internal/deploy-client.d.ts +576 -0
- package/dist/internal/deploy-client.d.ts.map +1 -0
- package/dist/internal/deploy-client.js +987 -0
- package/dist/internal/deploy-manifest.d.ts +135 -0
- package/dist/internal/deploy-manifest.d.ts.map +1 -0
- package/dist/internal/deploy-manifest.js +231 -0
- package/dist/internal/deploy-source.d.ts +38 -0
- package/dist/internal/deploy-source.d.ts.map +1 -0
- package/dist/internal/deploy-source.js +136 -0
- package/dist/internal/describe-error.d.ts +4 -0
- package/dist/internal/describe-error.d.ts.map +1 -0
- package/dist/internal/describe-error.js +29 -0
- package/dist/internal/dev-mode.d.ts +13 -0
- package/dist/internal/dev-mode.d.ts.map +1 -0
- package/dist/internal/dev-mode.js +17 -0
- package/dist/internal/discovery/agent-config.d.ts +48 -0
- package/dist/internal/discovery/agent-config.d.ts.map +1 -0
- package/dist/internal/discovery/agent-config.js +224 -0
- package/dist/internal/discovery/agent.d.ts +16 -0
- package/dist/internal/discovery/agent.d.ts.map +1 -0
- package/dist/internal/discovery/agent.js +326 -0
- package/dist/internal/discovery/channels.d.ts +10 -0
- package/dist/internal/discovery/channels.d.ts.map +1 -0
- package/dist/internal/discovery/channels.js +97 -0
- package/dist/internal/discovery/connections.d.ts +13 -0
- package/dist/internal/discovery/connections.d.ts.map +1 -0
- package/dist/internal/discovery/connections.js +429 -0
- package/dist/internal/discovery/context.d.ts +20 -0
- package/dist/internal/discovery/context.d.ts.map +1 -0
- package/dist/internal/discovery/context.js +30 -0
- package/dist/internal/discovery/cursor-plugin.d.ts +25 -0
- package/dist/internal/discovery/cursor-plugin.d.ts.map +1 -0
- package/dist/internal/discovery/cursor-plugin.js +549 -0
- package/dist/internal/discovery/extension-overlay.d.ts +31 -0
- package/dist/internal/discovery/extension-overlay.d.ts.map +1 -0
- package/dist/internal/discovery/extension-overlay.js +173 -0
- package/dist/internal/discovery/extensions.d.ts +27 -0
- package/dist/internal/discovery/extensions.d.ts.map +1 -0
- package/dist/internal/discovery/extensions.js +352 -0
- package/dist/internal/discovery/fs.d.ts +15 -0
- package/dist/internal/discovery/fs.d.ts.map +1 -0
- package/dist/internal/discovery/fs.js +115 -0
- package/dist/internal/discovery/hooks.d.ts +7 -0
- package/dist/internal/discovery/hooks.d.ts.map +1 -0
- package/dist/internal/discovery/hooks.js +61 -0
- package/dist/internal/discovery/info.d.ts +6 -0
- package/dist/internal/discovery/info.d.ts.map +1 -0
- package/dist/internal/discovery/info.js +168 -0
- package/dist/internal/discovery/instructions.d.ts +7 -0
- package/dist/internal/discovery/instructions.d.ts.map +1 -0
- package/dist/internal/discovery/instructions.js +95 -0
- package/dist/internal/discovery/modules.d.ts +20 -0
- package/dist/internal/discovery/modules.d.ts.map +1 -0
- package/dist/internal/discovery/modules.js +104 -0
- package/dist/internal/discovery/names.d.ts +12 -0
- package/dist/internal/discovery/names.d.ts.map +1 -0
- package/dist/internal/discovery/names.js +37 -0
- package/dist/internal/discovery/project.d.ts +51 -0
- package/dist/internal/discovery/project.d.ts.map +1 -0
- package/dist/internal/discovery/project.js +290 -0
- package/dist/internal/discovery/reminders.d.ts +7 -0
- package/dist/internal/discovery/reminders.d.ts.map +1 -0
- package/dist/internal/discovery/reminders.js +65 -0
- package/dist/internal/discovery/runtime.d.ts +34 -0
- package/dist/internal/discovery/runtime.d.ts.map +1 -0
- package/dist/internal/discovery/runtime.js +97 -0
- package/dist/internal/discovery/schedules.d.ts +7 -0
- package/dist/internal/discovery/schedules.d.ts.map +1 -0
- package/dist/internal/discovery/schedules.js +118 -0
- package/dist/internal/discovery/seed-files.d.ts +7 -0
- package/dist/internal/discovery/seed-files.d.ts.map +1 -0
- package/dist/internal/discovery/seed-files.js +41 -0
- package/dist/internal/discovery/services.d.ts +26 -0
- package/dist/internal/discovery/services.d.ts.map +1 -0
- package/dist/internal/discovery/services.js +138 -0
- package/dist/internal/discovery/skills.d.ts +11 -0
- package/dist/internal/discovery/skills.d.ts.map +1 -0
- package/dist/internal/discovery/skills.js +156 -0
- package/dist/internal/discovery/subagent.d.ts +16 -0
- package/dist/internal/discovery/subagent.d.ts.map +1 -0
- package/dist/internal/discovery/subagent.js +129 -0
- package/dist/internal/discovery/tools.d.ts +18 -0
- package/dist/internal/discovery/tools.d.ts.map +1 -0
- package/dist/internal/discovery/tools.js +155 -0
- package/dist/internal/discovery.d.ts +15 -0
- package/dist/internal/discovery.d.ts.map +1 -0
- package/dist/internal/discovery.js +13 -0
- package/dist/internal/distribution.d.ts +65 -0
- package/dist/internal/distribution.d.ts.map +1 -0
- package/dist/internal/distribution.js +102 -0
- package/dist/internal/docs-site.d.ts +41 -0
- package/dist/internal/docs-site.d.ts.map +1 -0
- package/dist/internal/docs-site.js +234 -0
- package/dist/internal/duration.d.ts +8 -0
- package/dist/internal/duration.d.ts.map +1 -0
- package/dist/internal/duration.js +35 -0
- package/dist/internal/env-file.d.ts +19 -0
- package/dist/internal/env-file.d.ts.map +1 -0
- package/dist/internal/env-file.js +90 -0
- package/dist/internal/eval-judge-model.d.ts +59 -0
- package/dist/internal/eval-judge-model.d.ts.map +1 -0
- package/dist/internal/eval-judge-model.js +129 -0
- package/dist/internal/eval-run-store.d.ts +119 -0
- package/dist/internal/eval-run-store.d.ts.map +1 -0
- package/dist/internal/eval-run-store.js +468 -0
- package/dist/internal/eval-runner.d.ts +98 -0
- package/dist/internal/eval-runner.d.ts.map +1 -0
- package/dist/internal/eval-runner.js +615 -0
- package/dist/internal/evals-client.d.ts +104 -0
- package/dist/internal/evals-client.d.ts.map +1 -0
- package/dist/internal/evals-client.js +303 -0
- package/dist/internal/event-log.d.ts +94 -0
- package/dist/internal/event-log.d.ts.map +1 -0
- package/dist/internal/event-log.js +347 -0
- package/dist/internal/event-mapper.d.ts +123 -0
- package/dist/internal/event-mapper.d.ts.map +1 -0
- package/dist/internal/event-mapper.js +370 -0
- package/dist/internal/expected-delivery-failure.d.ts +3 -0
- package/dist/internal/expected-delivery-failure.d.ts.map +1 -0
- package/dist/internal/expected-delivery-failure.js +28 -0
- 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 +172 -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 +212 -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/nearest.d.ts +14 -0
- package/dist/internal/filesystem/nearest.d.ts.map +1 -0
- package/dist/internal/filesystem/nearest.js +101 -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 +204 -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 +631 -0
- package/dist/internal/filesystem/walk.d.ts +77 -0
- package/dist/internal/filesystem/walk.d.ts.map +1 -0
- package/dist/internal/filesystem/walk.js +350 -0
- package/dist/internal/framework-file-storage.d.ts +75 -0
- package/dist/internal/framework-file-storage.d.ts.map +1 -0
- package/dist/internal/framework-file-storage.js +338 -0
- package/dist/internal/framework-storage-selection.d.ts +66 -0
- package/dist/internal/framework-storage-selection.d.ts.map +1 -0
- package/dist/internal/framework-storage-selection.js +123 -0
- package/dist/internal/frontmatter.d.ts +20 -0
- package/dist/internal/frontmatter.d.ts.map +1 -0
- package/dist/internal/frontmatter.js +87 -0
- package/dist/internal/github-fanout.d.ts +32 -0
- package/dist/internal/github-fanout.d.ts.map +1 -0
- package/dist/internal/github-fanout.js +120 -0
- package/dist/internal/guest-network.d.ts +98 -0
- package/dist/internal/guest-network.d.ts.map +1 -0
- package/dist/internal/guest-network.js +326 -0
- package/dist/internal/handleAgentServeTrigger.d.ts +91 -0
- package/dist/internal/handleAgentServeTrigger.d.ts.map +1 -0
- package/dist/internal/handleAgentServeTrigger.js +199 -0
- 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 +274 -0
- package/dist/internal/host-kv.d.ts +21 -0
- package/dist/internal/host-kv.d.ts.map +1 -0
- package/dist/internal/host-kv.js +77 -0
- package/dist/internal/host-otel.d.ts +25 -0
- package/dist/internal/host-otel.d.ts.map +1 -0
- package/dist/internal/host-otel.js +162 -0
- package/dist/internal/host-platforms.d.ts +58 -0
- package/dist/internal/host-platforms.d.ts.map +1 -0
- package/dist/internal/host-platforms.js +126 -0
- package/dist/internal/hosted-admission-adapter.d.ts +36 -0
- package/dist/internal/hosted-admission-adapter.d.ts.map +1 -0
- package/dist/internal/hosted-admission-adapter.js +7 -0
- package/dist/internal/hosted-admission-context.d.ts +20 -0
- package/dist/internal/hosted-admission-context.d.ts.map +1 -0
- package/dist/internal/hosted-admission-context.js +31 -0
- package/dist/internal/hosted-catch-protocol.d.ts +51 -0
- package/dist/internal/hosted-catch-protocol.d.ts.map +1 -0
- package/dist/internal/hosted-catch-protocol.js +87 -0
- package/dist/internal/hosted-catch.d.ts +40 -0
- package/dist/internal/hosted-catch.d.ts.map +1 -0
- package/dist/internal/hosted-catch.js +146 -0
- package/dist/internal/hosted-delivery-protocol.d.ts +199 -0
- package/dist/internal/hosted-delivery-protocol.d.ts.map +1 -0
- package/dist/internal/hosted-delivery-protocol.js +516 -0
- package/dist/internal/hosted-delivery.d.ts +110 -0
- package/dist/internal/hosted-delivery.d.ts.map +1 -0
- package/dist/internal/hosted-delivery.js +768 -0
- package/dist/internal/hosted-execution-diag.d.ts +75 -0
- package/dist/internal/hosted-execution-diag.d.ts.map +1 -0
- package/dist/internal/hosted-execution-diag.js +220 -0
- package/dist/internal/hosted-execution-flush.d.ts +50 -0
- package/dist/internal/hosted-execution-flush.d.ts.map +1 -0
- package/dist/internal/hosted-execution-flush.js +71 -0
- package/dist/internal/hosted-execution-latency.d.ts +80 -0
- package/dist/internal/hosted-execution-latency.d.ts.map +1 -0
- package/dist/internal/hosted-execution-latency.js +218 -0
- package/dist/internal/hosted-managed-automation.d.ts +30 -0
- package/dist/internal/hosted-managed-automation.d.ts.map +1 -0
- package/dist/internal/hosted-managed-automation.js +83 -0
- package/dist/internal/hosting.d.ts +53 -0
- package/dist/internal/hosting.d.ts.map +1 -0
- package/dist/internal/hosting.js +93 -0
- package/dist/internal/http-channel-define.d.ts +11 -0
- package/dist/internal/http-channel-define.d.ts.map +1 -0
- package/dist/internal/http-channel-define.js +18 -0
- package/dist/internal/http-channel.d.ts +54 -0
- package/dist/internal/http-channel.d.ts.map +1 -0
- package/dist/internal/http-channel.js +534 -0
- package/dist/internal/http-control-plane-session.d.ts +34 -0
- package/dist/internal/http-control-plane-session.d.ts.map +1 -0
- package/dist/internal/http-control-plane-session.js +93 -0
- package/dist/internal/ids.d.ts +19 -0
- package/dist/internal/ids.d.ts.map +1 -0
- package/dist/internal/ids.js +34 -0
- package/dist/internal/incoming-headers-to-fetch.d.ts +10 -0
- package/dist/internal/incoming-headers-to-fetch.d.ts.map +1 -0
- package/dist/internal/incoming-headers-to-fetch.js +41 -0
- package/dist/internal/init-interview.d.ts +67 -0
- package/dist/internal/init-interview.d.ts.map +1 -0
- package/dist/internal/init-interview.js +295 -0
- package/dist/internal/init-project.d.ts +175 -0
- package/dist/internal/init-project.d.ts.map +1 -0
- package/dist/internal/init-project.js +531 -0
- package/dist/internal/init-scaffold.d.ts +9 -0
- package/dist/internal/init-scaffold.d.ts.map +1 -0
- package/dist/internal/init-scaffold.js +172 -0
- package/dist/internal/inline-stdio-define-stub.d.ts +3 -0
- package/dist/internal/inline-stdio-define-stub.d.ts.map +1 -0
- package/dist/internal/inline-stdio-define-stub.js +4 -0
- package/dist/internal/inline-stdio-mcp.d.ts +34 -0
- package/dist/internal/inline-stdio-mcp.d.ts.map +1 -0
- package/dist/internal/inline-stdio-mcp.js +176 -0
- package/dist/internal/install-cursor-skills.d.ts +164 -0
- package/dist/internal/install-cursor-skills.d.ts.map +1 -0
- package/dist/internal/install-cursor-skills.js +498 -0
- 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 +25 -0
- package/dist/internal/json-schema.d.ts.map +1 -0
- package/dist/internal/json-schema.js +76 -0
- package/dist/internal/legacy-command-guard.d.ts +22 -0
- package/dist/internal/legacy-command-guard.d.ts.map +1 -0
- package/dist/internal/legacy-command-guard.js +51 -0
- package/dist/internal/listen-port.d.ts +22 -0
- package/dist/internal/listen-port.d.ts.map +1 -0
- package/dist/internal/listen-port.js +77 -0
- package/dist/internal/local-control-plane.d.ts +59 -0
- package/dist/internal/local-control-plane.d.ts.map +1 -0
- package/dist/internal/local-control-plane.js +351 -0
- package/dist/internal/local-env.d.ts +10 -0
- package/dist/internal/local-env.d.ts.map +1 -0
- package/dist/internal/local-env.js +55 -0
- package/dist/internal/local-ingress.d.ts +35 -0
- package/dist/internal/local-ingress.d.ts.map +1 -0
- package/dist/internal/local-ingress.js +44 -0
- package/dist/internal/log-ring.d.ts +23 -0
- package/dist/internal/log-ring.d.ts.map +1 -0
- package/dist/internal/log-ring.js +42 -0
- package/dist/internal/logs-client.d.ts +79 -0
- package/dist/internal/logs-client.d.ts.map +1 -0
- package/dist/internal/logs-client.js +350 -0
- package/dist/internal/map-pool.d.ts +11 -0
- package/dist/internal/map-pool.d.ts.map +1 -0
- package/dist/internal/map-pool.js +48 -0
- package/dist/internal/mcp-endpoint.d.ts +72 -0
- package/dist/internal/mcp-endpoint.d.ts.map +1 -0
- package/dist/internal/mcp-endpoint.js +530 -0
- package/dist/internal/mcp-host.d.ts +84 -0
- package/dist/internal/mcp-host.d.ts.map +1 -0
- package/dist/internal/mcp-host.js +391 -0
- package/dist/internal/mcp-oauth-on-demand.d.ts +68 -0
- package/dist/internal/mcp-oauth-on-demand.d.ts.map +1 -0
- package/dist/internal/mcp-oauth-on-demand.js +287 -0
- package/dist/internal/mcp-oauth-persist.d.ts +42 -0
- package/dist/internal/mcp-oauth-persist.d.ts.map +1 -0
- package/dist/internal/mcp-oauth-persist.js +90 -0
- package/dist/internal/mcp-oauth.d.ts +118 -0
- package/dist/internal/mcp-oauth.d.ts.map +1 -0
- package/dist/internal/mcp-oauth.js +450 -0
- package/dist/internal/net.d.ts +5 -0
- package/dist/internal/net.d.ts.map +1 -0
- package/dist/internal/net.js +28 -0
- package/dist/internal/open-browser.d.ts +5 -0
- package/dist/internal/open-browser.d.ts.map +1 -0
- package/dist/internal/open-browser.js +34 -0
- package/dist/internal/otel/attrs.d.ts +7 -0
- package/dist/internal/otel/attrs.d.ts.map +1 -0
- package/dist/internal/otel/attrs.js +13 -0
- package/dist/internal/otel/collector.d.ts +43 -0
- package/dist/internal/otel/collector.d.ts.map +1 -0
- package/dist/internal/otel/collector.js +650 -0
- package/dist/internal/otel/config.d.ts +40 -0
- package/dist/internal/otel/config.d.ts.map +1 -0
- package/dist/internal/otel/config.js +231 -0
- package/dist/internal/otel/http.d.ts +13 -0
- package/dist/internal/otel/http.d.ts.map +1 -0
- package/dist/internal/otel/http.js +95 -0
- package/dist/internal/otel/mcp.d.ts +16 -0
- package/dist/internal/otel/mcp.d.ts.map +1 -0
- package/dist/internal/otel/mcp.js +55 -0
- package/dist/internal/otel/propagation.d.ts +6 -0
- package/dist/internal/otel/propagation.d.ts.map +1 -0
- package/dist/internal/otel/propagation.js +14 -0
- package/dist/internal/otel/runtime.d.ts +46 -0
- package/dist/internal/otel/runtime.d.ts.map +1 -0
- package/dist/internal/otel/runtime.js +333 -0
- package/dist/internal/package-inline-stdio.d.ts +12 -0
- package/dist/internal/package-inline-stdio.d.ts.map +1 -0
- package/dist/internal/package-inline-stdio.js +99 -0
- package/dist/internal/peer-connections.d.ts +44 -0
- package/dist/internal/peer-connections.d.ts.map +1 -0
- package/dist/internal/peer-connections.js +67 -0
- package/dist/internal/platform-schedule-sync.d.ts +17 -0
- package/dist/internal/platform-schedule-sync.d.ts.map +1 -0
- package/dist/internal/platform-schedule-sync.js +70 -0
- package/dist/internal/platform-timers.d.ts +35 -0
- package/dist/internal/platform-timers.d.ts.map +1 -0
- package/dist/internal/platform-timers.js +277 -0
- package/dist/internal/playground/static.d.ts +52 -0
- package/dist/internal/playground/static.d.ts.map +1 -0
- package/dist/internal/playground/static.js +231 -0
- package/dist/internal/playground/toolchain.d.ts +57 -0
- package/dist/internal/playground/toolchain.d.ts.map +1 -0
- package/dist/internal/playground/toolchain.js +229 -0
- package/dist/internal/playground-proxy.d.ts +69 -0
- package/dist/internal/playground-proxy.d.ts.map +1 -0
- package/dist/internal/playground-proxy.js +474 -0
- package/dist/internal/process-memory-telemetry.d.ts +89 -0
- package/dist/internal/process-memory-telemetry.d.ts.map +1 -0
- package/dist/internal/process-memory-telemetry.js +244 -0
- package/dist/internal/project-layout.d.ts +7 -0
- package/dist/internal/project-layout.d.ts.map +1 -0
- package/dist/internal/project-layout.js +24 -0
- package/dist/internal/prompt-context.d.ts +38 -0
- package/dist/internal/prompt-context.d.ts.map +1 -0
- package/dist/internal/prompt-context.js +89 -0
- package/dist/internal/reminder-control-plane-protocol.d.ts +189 -0
- package/dist/internal/reminder-control-plane-protocol.d.ts.map +1 -0
- package/dist/internal/reminder-control-plane-protocol.js +246 -0
- package/dist/internal/reminder-runner.d.ts +208 -0
- package/dist/internal/reminder-runner.d.ts.map +1 -0
- package/dist/internal/reminder-runner.js +1231 -0
- package/dist/internal/reminder-schedule.d.ts +25 -0
- package/dist/internal/reminder-schedule.d.ts.map +1 -0
- package/dist/internal/reminder-schedule.js +82 -0
- package/dist/internal/reminder-store.d.ts +78 -0
- package/dist/internal/reminder-store.d.ts.map +1 -0
- package/dist/internal/reminder-store.js +126 -0
- package/dist/internal/request-error-status.d.ts +14 -0
- package/dist/internal/request-error-status.d.ts.map +1 -0
- package/dist/internal/request-error-status.js +76 -0
- package/dist/internal/request-headers.d.ts +11 -0
- package/dist/internal/request-headers.d.ts.map +1 -0
- package/dist/internal/request-headers.js +14 -0
- package/dist/internal/resolve-prod-target.d.ts +84 -0
- package/dist/internal/resolve-prod-target.d.ts.map +1 -0
- package/dist/internal/resolve-prod-target.js +259 -0
- package/dist/internal/resolved-connections.d.ts +62 -0
- package/dist/internal/resolved-connections.d.ts.map +1 -0
- package/dist/internal/resolved-connections.js +93 -0
- package/dist/internal/router.d.ts +33 -0
- package/dist/internal/router.d.ts.map +1 -0
- package/dist/internal/router.js +93 -0
- package/dist/internal/run-client.d.ts +68 -0
- package/dist/internal/run-client.d.ts.map +1 -0
- package/dist/internal/run-client.js +239 -0
- package/dist/internal/runtime-dispatch-runner.d.ts +24 -0
- package/dist/internal/runtime-dispatch-runner.d.ts.map +1 -0
- package/dist/internal/runtime-dispatch-runner.js +54 -0
- package/dist/internal/sanitize-mcp-tool-name.d.ts +20 -0
- package/dist/internal/sanitize-mcp-tool-name.d.ts.map +1 -0
- package/dist/internal/sanitize-mcp-tool-name.js +28 -0
- package/dist/internal/schedule-runner.d.ts +31 -0
- package/dist/internal/schedule-runner.d.ts.map +1 -0
- package/dist/internal/schedule-runner.js +127 -0
- package/dist/internal/scm/pr-url.d.ts +56 -0
- package/dist/internal/scm/pr-url.d.ts.map +1 -0
- package/dist/internal/scm/pr-url.js +152 -0
- package/dist/internal/sdk-runner.d.ts +190 -0
- package/dist/internal/sdk-runner.d.ts.map +1 -0
- package/dist/internal/sdk-runner.js +714 -0
- package/dist/internal/serve-restart.d.ts +42 -0
- package/dist/internal/serve-restart.d.ts.map +1 -0
- package/dist/internal/serve-restart.js +85 -0
- package/dist/internal/server.d.ts +34 -0
- package/dist/internal/server.d.ts.map +1 -0
- package/dist/internal/server.js +2464 -0
- package/dist/internal/session-cost.d.ts +50 -0
- package/dist/internal/session-cost.d.ts.map +1 -0
- package/dist/internal/session-cost.js +157 -0
- package/dist/internal/session-engine.d.ts +912 -0
- package/dist/internal/session-engine.d.ts.map +1 -0
- package/dist/internal/session-engine.js +4493 -0
- package/dist/internal/session-links.d.ts +14 -0
- package/dist/internal/session-links.d.ts.map +1 -0
- package/dist/internal/session-links.js +67 -0
- package/dist/internal/session-run-log.d.ts +122 -0
- package/dist/internal/session-run-log.d.ts.map +1 -0
- package/dist/internal/session-run-log.js +345 -0
- package/dist/internal/session-store.d.ts +73 -0
- package/dist/internal/session-store.d.ts.map +1 -0
- package/dist/internal/session-store.js +310 -0
- package/dist/internal/session-urls.d.ts +10 -0
- package/dist/internal/session-urls.d.ts.map +1 -0
- package/dist/internal/session-urls.js +25 -0
- package/dist/internal/sessions-client.d.ts +50 -0
- package/dist/internal/sessions-client.d.ts.map +1 -0
- package/dist/internal/sessions-client.js +207 -0
- package/dist/internal/skill-catalog.d.ts +28 -0
- package/dist/internal/skill-catalog.d.ts.map +1 -0
- package/dist/internal/skill-catalog.js +41 -0
- package/dist/internal/skills-sync.d.ts +24 -0
- package/dist/internal/skills-sync.d.ts.map +1 -0
- package/dist/internal/skills-sync.js +56 -0
- package/dist/internal/slack-provision-client.d.ts +198 -0
- package/dist/internal/slack-provision-client.d.ts.map +1 -0
- package/dist/internal/slack-provision-client.js +346 -0
- package/dist/internal/slack-thread-key.d.ts +7 -0
- package/dist/internal/slack-thread-key.d.ts.map +1 -0
- package/dist/internal/slack-thread-key.js +10 -0
- package/dist/internal/sleep.d.ts +2 -0
- package/dist/internal/sleep.d.ts.map +1 -0
- package/dist/internal/sleep.js +3 -0
- package/dist/internal/start-log-store.d.ts +60 -0
- package/dist/internal/start-log-store.d.ts.map +1 -0
- package/dist/internal/start-log-store.js +149 -0
- package/dist/internal/steering.d.ts +15 -0
- package/dist/internal/steering.d.ts.map +1 -0
- package/dist/internal/steering.js +18 -0
- package/dist/internal/storage-coordinator.d.ts +203 -0
- package/dist/internal/storage-coordinator.d.ts.map +1 -0
- package/dist/internal/storage-coordinator.js +705 -0
- package/dist/internal/storage-roles.d.ts +78 -0
- package/dist/internal/storage-roles.d.ts.map +1 -0
- package/dist/internal/storage-roles.js +24 -0
- package/dist/internal/storage.d.ts +2 -0
- package/dist/internal/storage.d.ts.map +1 -0
- package/dist/internal/storage.js +1 -0
- package/dist/internal/store-api-protocol.d.ts +134 -0
- package/dist/internal/store-api-protocol.d.ts.map +1 -0
- package/dist/internal/store-api-protocol.js +124 -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/stream-progress.d.ts +14 -0
- package/dist/internal/stream-progress.d.ts.map +1 -0
- package/dist/internal/stream-progress.js +229 -0
- package/dist/internal/terminal-style.d.ts +40 -0
- package/dist/internal/terminal-style.d.ts.map +1 -0
- package/dist/internal/terminal-style.js +94 -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/tool-catalog.d.ts +31 -0
- package/dist/internal/tool-catalog.d.ts.map +1 -0
- package/dist/internal/tool-catalog.js +70 -0
- package/dist/internal/tool-policy.d.ts +110 -0
- package/dist/internal/tool-policy.d.ts.map +1 -0
- package/dist/internal/tool-policy.js +138 -0
- package/dist/internal/tool-result.d.ts +20 -0
- package/dist/internal/tool-result.d.ts.map +1 -0
- package/dist/internal/tool-result.js +45 -0
- package/dist/internal/trajectory.d.ts +69 -0
- package/dist/internal/trajectory.d.ts.map +1 -0
- package/dist/internal/trajectory.js +351 -0
- package/dist/internal/turn-cost.d.ts +41 -0
- package/dist/internal/turn-cost.d.ts.map +1 -0
- package/dist/internal/turn-cost.js +109 -0
- package/dist/internal/turn-governor.d.ts +54 -0
- package/dist/internal/turn-governor.d.ts.map +1 -0
- package/dist/internal/turn-governor.js +111 -0
- package/dist/internal/turn-lease-store.d.ts +44 -0
- package/dist/internal/turn-lease-store.d.ts.map +1 -0
- package/dist/internal/turn-lease-store.js +139 -0
- package/dist/internal/turn-outbox.d.ts +24 -0
- package/dist/internal/turn-outbox.d.ts.map +1 -0
- package/dist/internal/turn-outbox.js +80 -0
- package/dist/internal/update-check.d.ts +93 -0
- package/dist/internal/update-check.d.ts.map +1 -0
- package/dist/internal/update-check.js +427 -0
- package/dist/internal/v2-hosting.d.ts +31 -0
- package/dist/internal/v2-hosting.d.ts.map +1 -0
- package/dist/internal/v2-hosting.js +33 -0
- package/dist/internal/workspace-sync.d.ts +47 -0
- package/dist/internal/workspace-sync.d.ts.map +1 -0
- package/dist/internal/workspace-sync.js +104 -0
- package/dist/internal/workspace.d.ts +151 -0
- package/dist/internal/workspace.d.ts.map +1 -0
- package/dist/internal/workspace.js +455 -0
- package/dist/kv/memory-kv.d.ts +24 -0
- package/dist/kv/memory-kv.d.ts.map +1 -0
- package/dist/kv/memory-kv.js +104 -0
- package/dist/kv.d.ts +18 -0
- package/dist/kv.d.ts.map +1 -0
- package/dist/kv.js +16 -0
- package/dist/memory.d.ts +138 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +401 -0
- package/dist/otel-public.d.ts +7 -0
- package/dist/otel-public.d.ts.map +1 -0
- package/dist/otel-public.js +5 -0
- package/dist/otel.d.ts +131 -0
- package/dist/otel.d.ts.map +1 -0
- package/dist/otel.js +186 -0
- package/dist/playground/assets/cursor-icons-16-4RnoYH3n.woff2 +0 -0
- package/dist/playground/assets/index-BMV_IcEE.css +1 -0
- package/dist/playground/assets/index-FFdUqTt_.js +71 -0
- package/dist/playground/index.html +17 -0
- package/dist/prompt.d.ts +39 -0
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +70 -0
- package/dist/reminders.d.ts +42 -0
- package/dist/reminders.d.ts.map +1 -0
- package/dist/reminders.js +45 -0
- package/dist/schedules.d.ts +23 -0
- package/dist/schedules.d.ts.map +1 -0
- package/dist/schedules.js +26 -0
- package/dist/skills.d.ts +22 -0
- package/dist/skills.d.ts.map +1 -0
- package/dist/skills.js +22 -0
- package/dist/storage-backends/cursor-hosted-v2.d.ts +82 -0
- package/dist/storage-backends/cursor-hosted-v2.d.ts.map +1 -0
- package/dist/storage-backends/cursor-hosted-v2.js +171 -0
- package/dist/storage-backends/cursor-hosted.d.ts +107 -0
- package/dist/storage-backends/cursor-hosted.d.ts.map +1 -0
- package/dist/storage-backends/cursor-hosted.js +278 -0
- package/dist/storage-backends/file-kv.d.ts +42 -0
- package/dist/storage-backends/file-kv.d.ts.map +1 -0
- package/dist/storage-backends/file-kv.js +254 -0
- package/dist/storage-protocol.d.ts +142 -0
- package/dist/storage-protocol.d.ts.map +1 -0
- package/dist/storage-protocol.js +201 -0
- package/dist/storage.d.ts +254 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +154 -0
- package/dist/tools.d.ts +132 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +77 -0
- package/dist/types.d.ts +3375 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +189 -0
- package/docs/README.md +119 -0
- package/docs/building-with-agents.md +140 -0
- package/docs/deployment.md +216 -0
- package/docs/evals.md +262 -0
- package/docs/guides/agent-to-agent.md +157 -0
- package/docs/guides/bitbucket.md +293 -0
- package/docs/guides/cloud-agents.md +95 -0
- package/docs/guides/convert-automation.md +188 -0
- package/docs/guides/github.md +331 -0
- package/docs/guides/gitlab.md +299 -0
- package/docs/guides/grokbot-agents.md +147 -0
- package/docs/guides/hooks.md +119 -0
- package/docs/guides/improve.md +139 -0
- package/docs/guides/jev.md +299 -0
- package/docs/guides/mcp-oauth.md +167 -0
- package/docs/guides/opentelemetry.md +158 -0
- package/docs/guides/slack.md +278 -0
- package/docs/guides/webhooks.md +241 -0
- package/docs/hillclimbing.md +142 -0
- package/docs/quickstart.md +311 -0
- package/docs/reference/agent-config.md +193 -0
- package/docs/reference/artifacts.md +121 -0
- package/docs/reference/channels.md +203 -0
- package/docs/reference/cli.md +909 -0
- package/docs/reference/connections.md +277 -0
- package/docs/reference/evals.md +292 -0
- package/docs/reference/extensions.md +198 -0
- package/docs/reference/hooks.md +195 -0
- package/docs/reference/http-api.md +236 -0
- package/docs/reference/instructions.md +68 -0
- package/docs/reference/playground.md +47 -0
- package/docs/reference/project-layout.md +120 -0
- package/docs/reference/prompt.md +55 -0
- package/docs/reference/schedules.md +175 -0
- package/docs/reference/sessions.md +165 -0
- package/docs/reference/skills.md +80 -0
- package/docs/reference/subagents.md +67 -0
- package/docs/reference/tools.md +329 -0
- package/docs/templates/agentic-owners.md +100 -0
- package/docs/templates/security-reviewer.md +90 -0
- package/docs/templates/thermo-quality-review.md +83 -0
- package/docs/templates/thermo-review.md +82 -0
- package/docs/templates/triage.md +102 -0
- package/docs/troubleshooting.md +148 -0
- package/package.json +384 -0
- package/scripts/install-cursor-skills.mjs +29 -0
- package/skills/create-agent/SKILL.md +170 -0
- package/skills/debug/SKILL.md +43 -0
- package/skills/deploy/SKILL.md +169 -0
- package/skills/evals/SKILL.md +145 -0
- package/skills/framework-map/SKILL.md +125 -0
- package/skills/github/SKILL.md +110 -0
- package/skills/hillclimb/SKILL.md +63 -0
- package/skills/mcp-auth/SKILL.md +84 -0
- package/skills/otel/SKILL.md +50 -0
- package/skills/setup-slack/SKILL.md +149 -0
- package/src/artifacts.ts +65 -0
- package/src/bin/agent-serve.ts +1833 -0
- package/src/channels/bitbucket/api.ts +891 -0
- package/src/channels/bitbucket/binding.ts +417 -0
- package/src/channels/bitbucket/bitbucket-channel.ts +162 -0
- package/src/channels/bitbucket/bitbucket-webhook.ts +519 -0
- package/src/channels/bitbucket/checks.ts +146 -0
- package/src/channels/bitbucket/cursor-account.ts +106 -0
- package/src/channels/bitbucket/defaults.ts +100 -0
- package/src/channels/bitbucket/events.ts +74 -0
- package/src/channels/bitbucket/index.ts +51 -0
- package/src/channels/bitbucket/replay.ts +421 -0
- package/src/channels/bitbucket/state.ts +59 -0
- package/src/channels/bitbucket/types.ts +261 -0
- package/src/channels/change-monitors/change-monitors-channel.ts +63 -0
- package/src/channels/change-monitors/index.ts +8 -0
- package/src/channels/change-monitors/types.ts +42 -0
- package/src/channels/checks.ts +185 -0
- package/src/channels/deployments/deployments-channel.ts +224 -0
- package/src/channels/deployments/index.ts +25 -0
- package/src/channels/deployments/types.ts +92 -0
- package/src/channels/github/api.ts +526 -0
- package/src/channels/github/auth.ts +254 -0
- package/src/channels/github/binding.ts +233 -0
- package/src/channels/github/checks.ts +145 -0
- package/src/channels/github/cursor-account.ts +303 -0
- package/src/channels/github/defaults.ts +168 -0
- package/src/channels/github/events.ts +67 -0
- package/src/channels/github/forward.ts +359 -0
- package/src/channels/github/github-channel.ts +2334 -0
- package/src/channels/github/index.ts +54 -0
- package/src/channels/github/progress.ts +365 -0
- package/src/channels/github/replay.ts +372 -0
- package/src/channels/github/state.ts +124 -0
- package/src/channels/github/types.ts +590 -0
- package/src/channels/gitlab/api.ts +329 -0
- package/src/channels/gitlab/binding.ts +231 -0
- package/src/channels/gitlab/checks.ts +228 -0
- package/src/channels/gitlab/cursor-account.ts +105 -0
- package/src/channels/gitlab/defaults.ts +80 -0
- package/src/channels/gitlab/events.ts +37 -0
- package/src/channels/gitlab/gitlab-channel.ts +160 -0
- package/src/channels/gitlab/gitlab-webhook.ts +509 -0
- package/src/channels/gitlab/index.ts +44 -0
- package/src/channels/gitlab/replay.ts +328 -0
- package/src/channels/gitlab/state.ts +55 -0
- package/src/channels/gitlab/types.ts +247 -0
- package/src/channels/issues/index.ts +9 -0
- package/src/channels/issues/issues-channel.ts +45 -0
- package/src/channels/issues/types.ts +38 -0
- package/src/channels/origin/api.ts +507 -0
- package/src/channels/origin/binding.ts +114 -0
- package/src/channels/origin/checks.ts +250 -0
- package/src/channels/origin/cursor-account.ts +58 -0
- package/src/channels/origin/defaults.ts +140 -0
- package/src/channels/origin/events.ts +35 -0
- package/src/channels/origin/index.ts +35 -0
- package/src/channels/origin/origin-channel.ts +815 -0
- package/src/channels/origin/origin-webhook.ts +296 -0
- package/src/channels/origin/reactions.ts +72 -0
- package/src/channels/origin/state.ts +54 -0
- package/src/channels/origin/types.ts +295 -0
- package/src/channels/slack/agentic-delivery.ts +634 -0
- package/src/channels/slack/agentic-posted.ts +135 -0
- package/src/channels/slack/agentic-signals.ts +231 -0
- package/src/channels/slack/api.ts +761 -0
- package/src/channels/slack/approvals.ts +279 -0
- package/src/channels/slack/assistant.ts +76 -0
- package/src/channels/slack/attachments.ts +596 -0
- package/src/channels/slack/auth.ts +127 -0
- package/src/channels/slack/blocks.ts +131 -0
- package/src/channels/slack/bot-mentions.ts +318 -0
- package/src/channels/slack/channel-watch.ts +314 -0
- package/src/channels/slack/cli-project.ts +249 -0
- package/src/channels/slack/code-fences.ts +171 -0
- package/src/channels/slack/constants.ts +38 -0
- package/src/channels/slack/credentials.ts +88 -0
- package/src/channels/slack/defaults.ts +714 -0
- package/src/channels/slack/dispatch.ts +1060 -0
- package/src/channels/slack/doctor.ts +338 -0
- package/src/channels/slack/eval-directive.ts +306 -0
- package/src/channels/slack/event-id-dedupe.ts +30 -0
- package/src/channels/slack/external-policy.ts +75 -0
- package/src/channels/slack/footer.ts +106 -0
- package/src/channels/slack/inbound.ts +416 -0
- package/src/channels/slack/index.ts +53 -0
- package/src/channels/slack/init.ts +169 -0
- package/src/channels/slack/interactive.ts +406 -0
- package/src/channels/slack/links.ts +23 -0
- package/src/channels/slack/live-delivery.ts +489 -0
- package/src/channels/slack/log.ts +70 -0
- package/src/channels/slack/manifest.ts +239 -0
- package/src/channels/slack/message-body.ts +82 -0
- package/src/channels/slack/nudge-carrier.ts +224 -0
- package/src/channels/slack/nudge-store.ts +334 -0
- package/src/channels/slack/paint-start.ts +93 -0
- package/src/channels/slack/placeholder.ts +358 -0
- package/src/channels/slack/pr-ref.ts +74 -0
- package/src/channels/slack/progress-delivery.ts +138 -0
- package/src/channels/slack/reasoning-card.ts +125 -0
- package/src/channels/slack/reasoning-chip.ts +41 -0
- package/src/channels/slack/recording-sink.ts +167 -0
- package/src/channels/slack/redact.ts +6 -0
- package/src/channels/slack/reply-options.ts +279 -0
- package/src/channels/slack/setup.ts +125 -0
- package/src/channels/slack/slack-channel.ts +744 -0
- package/src/channels/slack/socket-mode.ts +140 -0
- package/src/channels/slack/stop.ts +25 -0
- package/src/channels/slack/stream.ts +66 -0
- package/src/channels/slack/thread-context.ts +485 -0
- package/src/channels/slack/tool-approval-events.ts +233 -0
- package/src/channels/slack/tool-cards.ts +198 -0
- package/src/channels/slack/tool-chip.ts +34 -0
- package/src/channels/slack/types.ts +782 -0
- package/src/channels/slack/upload.ts +137 -0
- package/src/channels.ts +543 -0
- package/src/connections.ts +153 -0
- package/src/dashboard-session-url.ts +30 -0
- package/src/evals/assertions.ts +688 -0
- package/src/evals/expect.ts +250 -0
- package/src/evals/judge.ts +329 -0
- package/src/evals/loaders.ts +111 -0
- package/src/evals/matchers.ts +223 -0
- package/src/evals/reporters.ts +257 -0
- package/src/evals/results.ts +130 -0
- package/src/evals/run-facts.ts +306 -0
- package/src/evals.ts +709 -0
- package/src/extensions/cursor-cloud-agents/extension.ts +114 -0
- package/src/extensions/cursor-cloud-agents/lib/backend.ts +386 -0
- package/src/extensions/cursor-cloud-agents/lib/fleet.ts +98 -0
- package/src/extensions/cursor-cloud-agents/lib/inputs.ts +5 -0
- package/src/extensions/cursor-cloud-agents/lib/repos.ts +68 -0
- package/src/extensions/cursor-cloud-agents/lib/transcript.ts +19 -0
- package/src/extensions/cursor-cloud-agents/skills/handoff.md +37 -0
- package/src/extensions/cursor-cloud-agents/tools/cancel.ts +19 -0
- package/src/extensions/cursor-cloud-agents/tools/dump.ts +47 -0
- package/src/extensions/cursor-cloud-agents/tools/get.ts +18 -0
- package/src/extensions/cursor-cloud-agents/tools/launch.ts +60 -0
- package/src/extensions/cursor-cloud-agents/tools/list.ts +31 -0
- package/src/extensions/cursor-cloud-agents/tools/reply.ts +34 -0
- package/src/extensions/improve/extension.ts +69 -0
- package/src/extensions/improve/skills/yourself.ts +50 -0
- package/src/extensions/jev/extension.ts +95 -0
- package/src/extensions/jev/lib/evaluate.ts +266 -0
- package/src/extensions/jev/skills/gated-write.md +25 -0
- package/src/extensions/jev/skills/questions.md +33 -0
- package/src/extensions/jev/tools/evaluate.ts +82 -0
- package/src/extensions/slack-communication/evals/harness.ts +705 -0
- package/src/extensions/slack-communication/evals/slack-communication.eval.ts +830 -0
- package/src/extensions/slack-communication/evals/slack-placeholder.eval.ts +172 -0
- package/src/extensions/slack-communication/extension.ts +44 -0
- package/src/extensions/slack-communication/skills/slack-voice.ts +56 -0
- package/src/extensions/slack-communication/tools/delete-message.ts +33 -0
- package/src/extensions/slack-communication/tools/edit-message.ts +42 -0
- package/src/extensions/slack-communication/tools/post-card.ts +28 -0
- package/src/extensions/slack-communication/tools/post-file.ts +82 -0
- package/src/extensions/slack-communication/tools/post-update.ts +40 -0
- package/src/extensions/slack-communication/tools/react.ts +30 -0
- package/src/extensions/slack-communication/tools/set-status.ts +21 -0
- package/src/extensions.ts +179 -0
- package/src/files-backends/agent-store-presigned-url.ts +11 -0
- package/src/files-backends/cursor-hosted.ts +1212 -0
- package/src/files-backends/local-fs.ts +163 -0
- package/src/files.ts +293 -0
- package/src/filesystem.ts +2005 -0
- package/src/hooks.ts +30 -0
- package/src/index.ts +259 -0
- package/src/internal/advertise-tools.ts +370 -0
- package/src/internal/approval-gate.ts +103 -0
- package/src/internal/artifacts-store.ts +825 -0
- package/src/internal/as-of.ts +257 -0
- package/src/internal/auth.ts +46 -0
- package/src/internal/authored-alias-hooks.ts +138 -0
- package/src/internal/authored-loaders.ts +188 -0
- package/src/internal/bounded-int.ts +24 -0
- package/src/internal/bounded.ts +25 -0
- package/src/internal/brand.ts +28 -0
- package/src/internal/browser-origin-guard.ts +67 -0
- package/src/internal/builtin-tools/artifacts.ts +62 -0
- package/src/internal/builtin-tools/index.ts +53 -0
- package/src/internal/builtin-tools/reminders.ts +145 -0
- package/src/internal/channel-dispatch.ts +129 -0
- package/src/internal/channel-route-dispatch.ts +58 -0
- package/src/internal/channel-state.ts +83 -0
- package/src/internal/chat-client.ts +594 -0
- package/src/internal/cli-ax.ts +2273 -0
- package/src/internal/cli-bitbucket.ts +438 -0
- package/src/internal/cli-convert-automation.ts +335 -0
- package/src/internal/cli-cursor.ts +282 -0
- package/src/internal/cli-deploy.ts +2486 -0
- package/src/internal/cli-docs.ts +192 -0
- package/src/internal/cli-github.ts +806 -0
- package/src/internal/cli-gitlab.ts +452 -0
- package/src/internal/cli-images.ts +672 -0
- package/src/internal/cli-manifest.ts +56 -0
- package/src/internal/cli-mcp-oauth.ts +395 -0
- package/src/internal/cli-mcp.ts +808 -0
- package/src/internal/cli-skills.ts +99 -0
- package/src/internal/cli-slack-manual.ts +418 -0
- package/src/internal/cli-slack.ts +874 -0
- package/src/internal/cloud-merge.ts +51 -0
- package/src/internal/cloud-turn-cost.ts +159 -0
- package/src/internal/continuation-channel.ts +233 -0
- package/src/internal/continuation-identity.ts +935 -0
- package/src/internal/conversation-mirror.ts +423 -0
- package/src/internal/convert-automation/convert-workflow.ts +1377 -0
- package/src/internal/convert-automation/slug.ts +29 -0
- package/src/internal/convert-automation/types.ts +212 -0
- package/src/internal/cron.ts +76 -0
- package/src/internal/cursor/account-mcp.ts +692 -0
- package/src/internal/cursor/backend-client.ts +978 -0
- package/src/internal/cursor/bound-secret-file.ts +101 -0
- package/src/internal/cursor/credentials.ts +560 -0
- package/src/internal/cursor/cursor-api-transport.ts +65 -0
- package/src/internal/cursor/github-credentials.ts +228 -0
- package/src/internal/cursor/hosted-bound-secrets.ts +71 -0
- package/src/internal/cursor/hosted-deployment-secrets.ts +100 -0
- package/src/internal/cursor/hosted-store-secrets.ts +152 -0
- package/src/internal/cursor/session-token.ts +111 -0
- package/src/internal/cursor/store-api-client.ts +323 -0
- package/src/internal/cursor-account-mcp-auth.ts +303 -0
- package/src/internal/cursor-agent-template.ts +50 -0
- package/src/internal/cursor-deployment-relay.ts +315 -0
- package/src/internal/cursor-event-relay.ts +675 -0
- package/src/internal/cursor-relay-core.ts +563 -0
- package/src/internal/deferred-channel-session.ts +61 -0
- package/src/internal/deploy-client.ts +1504 -0
- package/src/internal/deploy-manifest.ts +361 -0
- package/src/internal/deploy-source.ts +144 -0
- package/src/internal/describe-error.ts +32 -0
- package/src/internal/dev-mode.ts +20 -0
- package/src/internal/discovery/agent-config.ts +288 -0
- package/src/internal/discovery/agent.ts +381 -0
- package/src/internal/discovery/channels.ts +100 -0
- package/src/internal/discovery/connections.ts +505 -0
- package/src/internal/discovery/context.ts +38 -0
- package/src/internal/discovery/cursor-plugin.ts +628 -0
- package/src/internal/discovery/extension-overlay.ts +247 -0
- package/src/internal/discovery/extensions.ts +490 -0
- package/src/internal/discovery/fs.ts +103 -0
- package/src/internal/discovery/hooks.ts +63 -0
- package/src/internal/discovery/info.ts +174 -0
- package/src/internal/discovery/instructions.ts +98 -0
- package/src/internal/discovery/modules.ts +107 -0
- package/src/internal/discovery/names.ts +45 -0
- package/src/internal/discovery/project.ts +319 -0
- package/src/internal/discovery/reminders.ts +65 -0
- package/src/internal/discovery/runtime.ts +158 -0
- package/src/internal/discovery/schedules.ts +120 -0
- package/src/internal/discovery/seed-files.ts +34 -0
- package/src/internal/discovery/services.ts +151 -0
- package/src/internal/discovery/skills.ts +174 -0
- package/src/internal/discovery/subagent.ts +138 -0
- package/src/internal/discovery/tools.ts +170 -0
- package/src/internal/discovery.ts +27 -0
- package/src/internal/distribution.ts +126 -0
- package/src/internal/docs-site.ts +248 -0
- package/src/internal/duration.ts +37 -0
- package/src/internal/env-file.ts +83 -0
- package/src/internal/eval-judge-model.ts +142 -0
- package/src/internal/eval-run-store.ts +585 -0
- package/src/internal/eval-runner.ts +823 -0
- package/src/internal/evals-client.ts +475 -0
- package/src/internal/event-log.ts +342 -0
- package/src/internal/event-mapper.ts +480 -0
- package/src/internal/expected-delivery-failure.ts +34 -0
- package/src/internal/factory-resource-channel.ts +103 -0
- package/src/internal/filesystem/errors.ts +207 -0
- package/src/internal/filesystem/format.ts +253 -0
- package/src/internal/filesystem/merge.ts +192 -0
- package/src/internal/filesystem/nearest.ts +112 -0
- package/src/internal/filesystem/scratch.ts +239 -0
- package/src/internal/filesystem/sdk-schemas.ts +204 -0
- package/src/internal/filesystem/tools.ts +804 -0
- package/src/internal/filesystem/walk.ts +366 -0
- package/src/internal/fixtures/units-server.ts +52 -0
- package/src/internal/framework-file-storage.ts +357 -0
- package/src/internal/framework-storage-selection.ts +156 -0
- package/src/internal/frontmatter.ts +108 -0
- package/src/internal/github-fanout.ts +144 -0
- package/src/internal/guest-network.ts +391 -0
- package/src/internal/handleAgentServeTrigger.ts +286 -0
- package/src/internal/host-files.ts +341 -0
- package/src/internal/host-kv.ts +81 -0
- package/src/internal/host-otel.ts +231 -0
- package/src/internal/host-platforms.ts +170 -0
- package/src/internal/hosted-admission-adapter.ts +47 -0
- package/src/internal/hosted-admission-context.ts +37 -0
- package/src/internal/hosted-catch-protocol.ts +112 -0
- package/src/internal/hosted-catch.ts +179 -0
- package/src/internal/hosted-delivery-protocol.ts +787 -0
- package/src/internal/hosted-delivery.ts +1152 -0
- package/src/internal/hosted-execution-diag.ts +291 -0
- package/src/internal/hosted-execution-flush.ts +136 -0
- package/src/internal/hosted-execution-latency.ts +301 -0
- package/src/internal/hosted-managed-automation.ts +116 -0
- package/src/internal/hosting.ts +107 -0
- package/src/internal/http-channel-define.ts +25 -0
- package/src/internal/http-channel.ts +669 -0
- package/src/internal/http-control-plane-session.ts +110 -0
- package/src/internal/ids.ts +39 -0
- package/src/internal/incoming-headers-to-fetch.ts +45 -0
- package/src/internal/init-interview.ts +360 -0
- package/src/internal/init-project.ts +711 -0
- package/src/internal/init-scaffold.ts +182 -0
- package/src/internal/inline-stdio-define-stub.ts +4 -0
- package/src/internal/inline-stdio-mcp.ts +230 -0
- package/src/internal/install-cursor-skills.ts +601 -0
- package/src/internal/is-record.ts +3 -0
- package/src/internal/json-schema.ts +95 -0
- package/src/internal/legacy-command-guard.ts +54 -0
- package/src/internal/listen-port.ts +85 -0
- package/src/internal/local-control-plane.ts +442 -0
- package/src/internal/local-env.ts +59 -0
- package/src/internal/local-ingress.ts +90 -0
- package/src/internal/log-ring.ts +59 -0
- package/src/internal/logs-client.ts +477 -0
- package/src/internal/map-pool.ts +39 -0
- package/src/internal/mcp-endpoint.ts +747 -0
- package/src/internal/mcp-host.ts +481 -0
- package/src/internal/mcp-oauth-on-demand.ts +337 -0
- package/src/internal/mcp-oauth-persist.ts +118 -0
- package/src/internal/mcp-oauth.ts +549 -0
- package/src/internal/net.ts +29 -0
- package/src/internal/open-browser.ts +41 -0
- package/src/internal/otel/attrs.ts +16 -0
- package/src/internal/otel/collector.ts +937 -0
- package/src/internal/otel/config.ts +287 -0
- package/src/internal/otel/http.ts +122 -0
- package/src/internal/otel/mcp.ts +56 -0
- package/src/internal/otel/propagation.ts +17 -0
- package/src/internal/otel/runtime.ts +441 -0
- package/src/internal/package-inline-stdio.ts +114 -0
- package/src/internal/peer-connections.ts +96 -0
- package/src/internal/platform-schedule-sync.ts +75 -0
- package/src/internal/platform-timers.ts +365 -0
- package/src/internal/playground/static.ts +278 -0
- package/src/internal/playground/toolchain.ts +270 -0
- package/src/internal/playground-proxy.ts +564 -0
- package/src/internal/process-memory-telemetry.ts +334 -0
- package/src/internal/project-layout.ts +31 -0
- package/src/internal/prompt-context.ts +116 -0
- package/src/internal/reminder-control-plane-protocol.ts +482 -0
- package/src/internal/reminder-runner.ts +1559 -0
- package/src/internal/reminder-schedule.ts +104 -0
- package/src/internal/reminder-store.ts +176 -0
- package/src/internal/request-error-status.ts +95 -0
- package/src/internal/request-headers.ts +21 -0
- package/src/internal/resolve-prod-target.ts +334 -0
- package/src/internal/resolved-connections.ts +190 -0
- package/src/internal/router.ts +143 -0
- package/src/internal/run-client.ts +354 -0
- package/src/internal/runtime-dispatch-runner.ts +50 -0
- package/src/internal/sanitize-mcp-tool-name.ts +31 -0
- package/src/internal/schedule-runner.ts +154 -0
- package/src/internal/scm/pr-url.ts +245 -0
- package/src/internal/sdk-runner.ts +948 -0
- package/src/internal/serve-restart.ts +113 -0
- package/src/internal/server.ts +3135 -0
- package/src/internal/session-cost.ts +208 -0
- package/src/internal/session-engine.ts +5602 -0
- package/src/internal/session-links.ts +84 -0
- package/src/internal/session-run-log.ts +535 -0
- package/src/internal/session-store.ts +307 -0
- package/src/internal/session-urls.ts +32 -0
- package/src/internal/sessions-client.ts +239 -0
- package/src/internal/skill-catalog.ts +66 -0
- package/src/internal/skills-sync.ts +55 -0
- package/src/internal/slack-provision-client.ts +544 -0
- package/src/internal/slack-thread-key.ts +11 -0
- package/src/internal/sleep.ts +3 -0
- package/src/internal/start-log-store.ts +164 -0
- package/src/internal/steering.ts +17 -0
- package/src/internal/storage-coordinator.ts +800 -0
- package/src/internal/storage-roles.ts +86 -0
- package/src/internal/storage.ts +1 -0
- package/src/internal/store-api-protocol.ts +205 -0
- package/src/internal/store-mirror.ts +73 -0
- package/src/internal/stream-progress.ts +294 -0
- package/src/internal/terminal-style.ts +133 -0
- package/src/internal/testing/factory-resource-fixtures.ts +84 -0
- package/src/internal/testing/scm-continuation-fixtures.ts +285 -0
- package/src/internal/tool-catalog.ts +104 -0
- package/src/internal/tool-policy.ts +222 -0
- package/src/internal/tool-result.ts +50 -0
- package/src/internal/trajectory.ts +418 -0
- package/src/internal/turn-cost.ts +136 -0
- package/src/internal/turn-governor.ts +145 -0
- package/src/internal/turn-lease-store.ts +144 -0
- package/src/internal/turn-outbox.ts +77 -0
- package/src/internal/update-check.ts +517 -0
- package/src/internal/v2-hosting.ts +52 -0
- package/src/internal/workspace-sync.ts +114 -0
- package/src/internal/workspace.ts +505 -0
- package/src/kv/memory-kv.ts +94 -0
- package/src/kv.ts +18 -0
- package/src/memory.ts +487 -0
- package/src/otel-public.ts +24 -0
- package/src/otel.ts +320 -0
- package/src/prompt.ts +80 -0
- package/src/reminders.ts +65 -0
- package/src/schedules.ts +31 -0
- package/src/skills.ts +27 -0
- package/src/storage-backends/cursor-hosted-v2.ts +204 -0
- package/src/storage-backends/cursor-hosted.ts +388 -0
- package/src/storage-backends/file-kv.ts +276 -0
- package/src/storage-protocol.ts +261 -0
- package/src/storage.ts +408 -0
- package/src/tools.ts +166 -0
- package/src/types.ts +3725 -0
- package/templates/agentic-owners/README.md +76 -0
- package/templates/agentic-owners/bot/agent.ts +8 -0
- package/templates/agentic-owners/bot/channels/github.ts +63 -0
- package/templates/agentic-owners/bot/instructions.md +34 -0
- package/templates/agentic-owners/bot/lib/config.ts +5 -0
- package/templates/agentic-owners/bot/lib/github.ts +217 -0
- package/templates/agentic-owners/bot/lib/owners/README.md +50 -0
- package/templates/agentic-owners/bot/lib/owners/constants.ts +22 -0
- package/templates/agentic-owners/bot/lib/owners/decision.ts +454 -0
- package/templates/agentic-owners/bot/lib/owners/handles.ts +54 -0
- package/templates/agentic-owners/bot/lib/owners/match.ts +219 -0
- package/templates/agentic-owners/bot/lib/owners/matching.ts +78 -0
- package/templates/agentic-owners/bot/lib/owners/parse.ts +565 -0
- package/templates/agentic-owners/bot/lib/owners/policyMode.ts +57 -0
- package/templates/agentic-owners/bot/lib/owners/prompt.ts +64 -0
- package/templates/agentic-owners/bot/lib/owners/prompts/base-review.md +105 -0
- package/templates/agentic-owners/bot/lib/owners/types.ts +50 -0
- package/templates/agentic-owners/bot/lib/review.ts +722 -0
- package/templates/agentic-owners/bot/tools/record_review.ts +62 -0
- package/templates/agentic-owners/evals/evals.config.ts +5 -0
- package/templates/agentic-owners/evals/owners.eval.ts +111 -0
- package/templates/agentic-owners/package.json +20 -0
- package/templates/agentic-owners/tsconfig.json +12 -0
- package/templates/agents-md/README.md +42 -0
- package/templates/agents-md/bot/agent.ts +8 -0
- package/templates/agents-md/bot/channels/github.ts +10 -0
- package/templates/agents-md/bot/channels/queue.ts +28 -0
- package/templates/agents-md/bot/channels/slack.ts +9 -0
- package/templates/agents-md/bot/instructions.md +39 -0
- package/templates/agents-md/bot/lib/collect.ts +415 -0
- package/templates/agents-md/bot/lib/config.ts +8 -0
- package/templates/agents-md/bot/lib/paths.ts +49 -0
- package/templates/agents-md/bot/schedules/weekly.ts +17 -0
- package/templates/agents-md/bot/tools/apply_agents.ts +218 -0
- package/templates/agents-md/evals/agents.eval.ts +135 -0
- package/templates/agents-md/evals/evals.config.ts +5 -0
- package/templates/agents-md/init.json +38 -0
- package/templates/agents-md/package.json +18 -0
- package/templates/agents-md/tsconfig.json +12 -0
- package/templates/code-wiki/README.md +37 -0
- package/templates/code-wiki/bot/agent.ts +8 -0
- package/templates/code-wiki/bot/channels/github.ts +125 -0
- package/templates/code-wiki/bot/instructions.md +39 -0
- package/templates/code-wiki/bot/lib/repos.ts +5 -0
- package/templates/code-wiki/bot/lib/wiki.ts +22 -0
- package/templates/code-wiki/bot/tools/apply_wiki.ts +210 -0
- package/templates/code-wiki/evals/evals.config.ts +5 -0
- package/templates/code-wiki/evals/wiki.eval.ts +124 -0
- package/templates/code-wiki/init.json +25 -0
- package/templates/code-wiki/package.json +18 -0
- package/templates/code-wiki/tsconfig.json +12 -0
- package/templates/demo/README.md +40 -0
- package/templates/demo/bot/agent.ts +8 -0
- package/templates/demo/bot/channels/github.ts +48 -0
- package/templates/demo/bot/channels/queue.ts +34 -0
- package/templates/demo/bot/instructions.md +8 -0
- package/templates/demo/bot/lib/collect.ts +66 -0
- package/templates/demo/bot/lib/repos.ts +5 -0
- package/templates/demo/bot/tools/record_demo.ts +37 -0
- package/templates/demo/evals/demo.eval.ts +29 -0
- package/templates/demo/evals/evals.config.ts +5 -0
- package/templates/demo/init.json +25 -0
- package/templates/demo/package.json +18 -0
- package/templates/demo/tsconfig.json +12 -0
- package/templates/grokbot-agents/README.md +29 -0
- package/templates/grokbot-agents/bot/agent.ts +6 -0
- package/templates/grokbot-agents/bot/extensions/grokbot.ts +5 -0
- package/templates/grokbot-agents/bot/instructions.md +7 -0
- package/templates/grokbot-agents/evals/evals.config.ts +5 -0
- package/templates/grokbot-agents/evals/grokbot-agents.eval.ts +18 -0
- package/templates/grokbot-agents/init.json +18 -0
- package/templates/grokbot-agents/package.json +17 -0
- package/templates/grokbot-agents/tsconfig.json +12 -0
- package/templates/pr-autofixer/bot/agent.ts +11 -0
- package/templates/pr-autofixer/bot/channels/drive.ts +37 -0
- package/templates/pr-autofixer/bot/channels/github.ts +155 -0
- package/templates/pr-autofixer/bot/channels/slack.ts +16 -0
- package/templates/pr-autofixer/bot/hooks/bind-agent.ts +19 -0
- package/templates/pr-autofixer/bot/instructions.md +83 -0
- package/templates/pr-autofixer/bot/lib/affinity.ts +24 -0
- package/templates/pr-autofixer/bot/lib/drive-schemas.ts +18 -0
- package/templates/pr-autofixer/bot/lib/drive.ts +73 -0
- package/templates/pr-autofixer/bot/lib/merge-watch.ts +116 -0
- package/templates/pr-autofixer/bot/lib/pr-state.ts +40 -0
- package/templates/pr-autofixer/bot/lib/repos.ts +18 -0
- package/templates/pr-autofixer/bot/lib/start-drive.ts +113 -0
- package/templates/pr-autofixer/bot/lib/webhook-buffer.ts +215 -0
- package/templates/pr-autofixer/bot/lib/webhook-routing.ts +231 -0
- package/templates/pr-autofixer/bot/tools/drive_pr.ts +22 -0
- package/templates/pr-autofixer/evals/coordinator.eval.ts +16 -0
- package/templates/pr-autofixer/evals/evals.config.ts +5 -0
- package/templates/pr-autofixer/init.json +25 -0
- package/templates/pr-autofixer/package.json +18 -0
- package/templates/pr-autofixer/tsconfig.json +12 -0
- package/templates/security-help/README.md +40 -0
- package/templates/security-help/bot/agent.ts +17 -0
- package/templates/security-help/bot/channels/github.ts +13 -0
- package/templates/security-help/bot/channels/slack.ts +84 -0
- package/templates/security-help/bot/instructions.md +19 -0
- package/templates/security-help/bot/lib/pr-first-pass.ts +40 -0
- package/templates/security-help/bot/lib/repos.ts +5 -0
- package/templates/security-help/bot/skills/access-request.md +10 -0
- package/templates/security-help/bot/skills/faq.md +31 -0
- package/templates/security-help/bot/skills/security-playbooks.md +12 -0
- package/templates/security-help/bot/skills/security-pr-first-pass.md +12 -0
- package/templates/security-help/evals/evals.config.ts +5 -0
- package/templates/security-help/evals/security-help.eval.ts +51 -0
- package/templates/security-help/init.json +31 -0
- package/templates/security-help/package.json +17 -0
- package/templates/security-help/tsconfig.json +12 -0
- package/templates/security-reviewer/README.md +34 -0
- package/templates/security-reviewer/bot/agent.ts +8 -0
- package/templates/security-reviewer/bot/channels/github.ts +43 -0
- package/templates/security-reviewer/bot/instructions.md +22 -0
- package/templates/security-reviewer/bot/lib/repos.ts +5 -0
- package/templates/security-reviewer/bot/tools/post_findings.ts +68 -0
- package/templates/security-reviewer/evals/evals.config.ts +5 -0
- package/templates/security-reviewer/evals/review.eval.ts +50 -0
- package/templates/security-reviewer/init.json +25 -0
- package/templates/security-reviewer/package.json +18 -0
- package/templates/security-reviewer/tsconfig.json +12 -0
- package/templates/thermo-quality-review/README.md +38 -0
- package/templates/thermo-quality-review/bot/agent.ts +8 -0
- package/templates/thermo-quality-review/bot/channels/github.ts +39 -0
- package/templates/thermo-quality-review/bot/instructions.md +43 -0
- package/templates/thermo-quality-review/bot/tools/post_findings.ts +67 -0
- package/templates/thermo-quality-review/evals/evals.config.ts +5 -0
- package/templates/thermo-quality-review/evals/review.eval.ts +59 -0
- package/templates/thermo-quality-review/package.json +18 -0
- package/templates/thermo-quality-review/tsconfig.json +12 -0
- package/templates/thermo-review/README.md +38 -0
- package/templates/thermo-review/bot/agent.ts +8 -0
- package/templates/thermo-review/bot/channels/github.ts +39 -0
- package/templates/thermo-review/bot/instructions.md +40 -0
- package/templates/thermo-review/bot/tools/post_findings.ts +67 -0
- package/templates/thermo-review/evals/evals.config.ts +5 -0
- package/templates/thermo-review/evals/review.eval.ts +50 -0
- package/templates/thermo-review/package.json +18 -0
- package/templates/thermo-review/tsconfig.json +12 -0
- package/templates/triage/README.md +50 -0
- package/templates/triage/bot/agent.ts +8 -0
- package/templates/triage/bot/channels/queue.ts +40 -0
- package/templates/triage/bot/channels/webhook.ts +44 -0
- package/templates/triage/bot/hooks/memory.ts +3 -0
- package/templates/triage/bot/instructions.md +38 -0
- package/templates/triage/bot/lib/actuate.ts +703 -0
- package/templates/triage/bot/lib/parse-queue-event.ts +166 -0
- package/templates/triage/bot/lib/tracker.ts +5 -0
- package/templates/triage/bot/lib/types.ts +48 -0
- package/templates/triage/bot/lib/verify-webhook.ts +79 -0
- package/templates/triage/bot/skills/triage-rubric.md +44 -0
- package/templates/triage/bot/tools/record_triage.ts +29 -0
- package/templates/triage/evals/evals.config.ts +5 -0
- package/templates/triage/evals/triage.eval.ts +64 -0
- package/templates/triage/overlays/jira/README.md +24 -0
- package/templates/triage/overlays/jira/bot/lib/tracker.ts +8 -0
- package/templates/triage/overlays/jira/bot/mcp-connections/tracker.ts +6 -0
- package/templates/triage/overlays/linear/README.md +24 -0
- package/templates/triage/overlays/linear/bot/lib/tracker.ts +8 -0
- package/templates/triage/overlays/linear/bot/mcp-connections/tracker.ts +6 -0
- package/templates/triage/package.json +18 -0
- package/templates/triage/tsconfig.json +12 -0
|
@@ -0,0 +1,1578 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* agent-serve CLI.
|
|
4
|
+
*
|
|
5
|
+
* agent-sdk serve [--dir .] [--port 3000] [--host 127.0.0.1] [--dev]
|
|
6
|
+
* agent-sdk dev [path] [--port 3000] [--host 127.0.0.1]
|
|
7
|
+
* agent-sdk docs [--port 0] [--host 127.0.0.1] [--print]
|
|
8
|
+
* agent-sdk chat [--url http://127.0.0.1:3000] [--message "..."] [--json]
|
|
9
|
+
* agent-sdk resume [sessionId] [--url | --prod] [--message "..."]
|
|
10
|
+
* agent-sdk run [--dir .] [--message "..."] [--json|--text]
|
|
11
|
+
* agent-sdk trajectory --events <file.ndjson>
|
|
12
|
+
* agent-sdk init [dir] [--json]
|
|
13
|
+
* agent-sdk convert-automation <url> [--dir <path>] [--json]
|
|
14
|
+
* agent-sdk eval [--dir .] [evalId...]
|
|
15
|
+
* agent-sdk validate [--dir .]
|
|
16
|
+
* agent-sdk slack <subcommand>
|
|
17
|
+
*/
|
|
18
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
19
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
20
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
21
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
22
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
23
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
24
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
import { spawn } from "node:child_process";
|
|
28
|
+
import { readFile } from "node:fs/promises";
|
|
29
|
+
import { resolve } from "node:path";
|
|
30
|
+
import { parseArgs } from "node:util";
|
|
31
|
+
import { formatDiagnostics, projectInfo, resolveAgentMounts, serve } from "../index.js";
|
|
32
|
+
import { registerAuthoredModuleLoaders } from "../internal/authored-loaders.js";
|
|
33
|
+
import { cmdCall, cmdChat, cmdCost, cmdEval, cmdEvalCancel, cmdEvalStatus, cmdInit, cmdLogs, cmdPlayground, cmdResume, cmdRun, cmdSession, cmdSessions, cmdSkill, cmdTrajectory, } from "../internal/cli-ax.js";
|
|
34
|
+
import { cmdCancelRuns, cmdDelete, cmdDeploy, cmdDeploymentStatus, cmdDeployments, cmdEventRepos, cmdKill, cmdRotateToken, cmdSecretsList, cmdSecretsSet, cmdSecretsUnset, cmdStart, cmdStop, cmdUnlockDeploys, cmdUpgrade, } from "../internal/cli-deploy.js";
|
|
35
|
+
import { cmdImagesList, cmdImagesPush, cmdImagesRm } from "../internal/cli-images.js";
|
|
36
|
+
import { cmdManifest } from "../internal/cli-manifest.js";
|
|
37
|
+
import { CLI_COMMAND_NAME as CLI, formatCliVersion, PACKAGE_NAME, packageVersion, } from "../internal/distribution.js";
|
|
38
|
+
import { loadAgentLocalEnv } from "../internal/local-env.js";
|
|
39
|
+
import { ENTER_RESTART_EXIT_CODE, isServeRestartWorker, runEnterRestartSupervisor, } from "../internal/serve-restart.js";
|
|
40
|
+
import { flushSessionRunFatal } from "../internal/session-run-log.js";
|
|
41
|
+
import { clearTerminal, stdoutPalette } from "../internal/terminal-style.js";
|
|
42
|
+
import { cmdUpdate, warnIfOutdated } from "../internal/update-check.js";
|
|
43
|
+
const HELP = `${CLI} — serve a filesystem-defined Cursor agent over channels
|
|
44
|
+
|
|
45
|
+
Usage:
|
|
46
|
+
${CLI} serve [--dir <path>] [--port <n>] [--host <host>] [--dev]
|
|
47
|
+
[--mode single|multi] [--api-key <key>] [--no-schedules]
|
|
48
|
+
[--public-url <url>]
|
|
49
|
+
[--cursor-events --repo <owner/name>]...
|
|
50
|
+
${CLI} dev [path] [--port <n>] [--host <host>] …
|
|
51
|
+
Same flags as serve; implies --dev. Path defaults to
|
|
52
|
+
the current directory (or pass --dir).
|
|
53
|
+
${CLI} chat [--url <baseUrl> | --prod] [--message <text>] [--json] [--text]
|
|
54
|
+
[--session <id> | --resume] [--continuation-token <t>]
|
|
55
|
+
[--slug <slug>] [--team <id>]
|
|
56
|
+
${CLI} resume [sessionId] [--url <baseUrl> | --prod] [--message <text>]
|
|
57
|
+
[--json] [--text] [--continuation-token <t>]
|
|
58
|
+
[--slug <slug>] [--team <id>]
|
|
59
|
+
${CLI} logs [--url <baseUrl> | --prod] [--once] [--json]
|
|
60
|
+
[--slug <slug>] [--team <id>] [--dir <path>]
|
|
61
|
+
${CLI} sessions [--url <baseUrl> | --prod] [--json]
|
|
62
|
+
[--slug <slug>] [--team <id>] [--dir <path>]
|
|
63
|
+
${CLI} session <sessionId> [--url <baseUrl> | --prod]
|
|
64
|
+
[--json | --text | --events] [--out <file.ndjson>]
|
|
65
|
+
[--slug <slug>] [--team <id>] [--dir <path>]
|
|
66
|
+
or: --prod [<sessionId>] --slug <slug> --message "…" [--dry-run] [--as-of <instant>]
|
|
67
|
+
${CLI} cost [sessionId] [--url <baseUrl> | --prod] [--json]
|
|
68
|
+
[--slug <slug>] [--team <id>] [--dir <path>]
|
|
69
|
+
${CLI} playground [--url <baseUrl> | --prod] [--session <id>] [--print]
|
|
70
|
+
[--slug <slug>] [--team <id>] [--dir <path>]
|
|
71
|
+
${CLI} docs [--port <n>] [--host <host>] [--print]
|
|
72
|
+
${CLI} run [--dir <path>] [--message <text>]... [--url <baseUrl> | --prod]
|
|
73
|
+
[--session <id>] [--continuation-token <t>]
|
|
74
|
+
[--events <file.ndjson>] [--no-events] [--text]
|
|
75
|
+
[--timeout-ms <n>] [--no-stream] [--slug <slug>] [--team <id>]
|
|
76
|
+
[--dry-run] [--as-of <instant>]
|
|
77
|
+
${CLI} trajectory --events <file.ndjson> [--text]
|
|
78
|
+
${CLI} call <tool> [--input <json>] [--dir <path> | --url <baseUrl> | --prod]
|
|
79
|
+
[--session <id>] [--slug <slug>] [--team <id>]
|
|
80
|
+
${CLI} skill <name> [--dir <path> | --url <baseUrl> | --prod]
|
|
81
|
+
[--slug <slug>] [--team <id>] [--text]
|
|
82
|
+
${CLI} init [dir] [--template <name>] [--var id=value]... [--json]
|
|
83
|
+
${CLI} convert-automation <url> [--dir <path>] [--json]
|
|
84
|
+
${CLI} install-skills [--print] [--json]
|
|
85
|
+
${CLI} mcp --prod [--slug <slug>] [--team <id>] [--dir <path>]
|
|
86
|
+
| --url <baseUrl> [--bearer-token <t>]
|
|
87
|
+
${CLI} mcp install [--name <serverName>] [--print] [--json]
|
|
88
|
+
(same target flags as mcp)
|
|
89
|
+
${CLI} mcp oauth <connection> [--dir <path>] [--store] [--slug <slug>]
|
|
90
|
+
${CLI} eval [--dir <path>] [evalId...] [--list] [--json]
|
|
91
|
+
[--tag <tag>]... [--verbose] [--timeout-ms <n>]
|
|
92
|
+
[--strict] [--max-concurrency <n>]
|
|
93
|
+
[--junit <path>] [--artifacts <dir>|--no-artifacts]
|
|
94
|
+
[--out <file.json>]
|
|
95
|
+
[--skip-report] [--no-stream] [--no-wait]
|
|
96
|
+
[--prod | --url <baseUrl>] [--slug <slug>]
|
|
97
|
+
[--team <id>]
|
|
98
|
+
${CLI} eval status [runId] --prod|--url <baseUrl> [--dir <path>] [--json]
|
|
99
|
+
[--out <file.json>] [--slug <slug>] [--team <id>]
|
|
100
|
+
${CLI} eval cancel <runId> --prod|--url <baseUrl> [--dir <path>] [--json]
|
|
101
|
+
[--slug <slug>] [--team <id>]
|
|
102
|
+
${CLI} info [--dir <path>] [--json]
|
|
103
|
+
${CLI} validate [--dir <path>]
|
|
104
|
+
${CLI} login [--api-key <key>] [--key-name <name>]
|
|
105
|
+
${CLI} logout
|
|
106
|
+
${CLI} whoami [--json]
|
|
107
|
+
${CLI} update
|
|
108
|
+
${CLI} version [--json]
|
|
109
|
+
${CLI} deploy [--dir <path>] [--slug <slug> | --all] [--team <id>] [--json]
|
|
110
|
+
[--no-wait] [--repo <url>] [--ref <ref>]
|
|
111
|
+
[--path <agentPath>] [--cursor-events-repo <owner/name>]...
|
|
112
|
+
[--allow-domain <domain>]...
|
|
113
|
+
${CLI} manifest [--dir <path>] [--json]
|
|
114
|
+
${CLI} deployments [--team <id>] [--json]
|
|
115
|
+
${CLI} deployment <slug> [--team <id>] [--json]
|
|
116
|
+
${CLI} stop <slug> [--team <id>] [--json] [--no-wait] [--cancel-runs]
|
|
117
|
+
${CLI} start <slug> [--team <id>] [--json]
|
|
118
|
+
${CLI} kill <slug> [--team <id>] [--json]
|
|
119
|
+
${CLI} unlock-deploys <slug> [--team <id>] [--json]
|
|
120
|
+
${CLI} cancel-runs <slug> [--team <id>] [--json]
|
|
121
|
+
${CLI} event-repos <slug> [--repo <owner/name>]... [--team <id>] [--json]
|
|
122
|
+
${CLI} upgrade <slug> [--release <id|version>] [--team <id>] [--json]
|
|
123
|
+
${CLI} delete <slug> [--team <id>] [--json] [--no-wait]
|
|
124
|
+
${CLI} rotate-token <slug> [--team <id>]
|
|
125
|
+
${CLI} secrets set <slug> NAME... | list <slug> | unset <slug> NAME
|
|
126
|
+
[--team <id>] [--json] [--from-argv]
|
|
127
|
+
${CLI} slack <subcommand> …
|
|
128
|
+
${CLI} github <subcommand> …
|
|
129
|
+
|
|
130
|
+
Commands:
|
|
131
|
+
serve Serve agents under /<slug>/... (index at /). Runs \`${CLI} login\`
|
|
132
|
+
when unsigned. On a TTY, press Enter to restart (re-executes this
|
|
133
|
+
process so agent code, evals, and Vite reload).
|
|
134
|
+
dev Local development: same as \`${CLI} serve --dev\` (manual
|
|
135
|
+
schedule/reminder dispatch, unsigned GitHub loopback, Vite HMR).
|
|
136
|
+
Also runs \`${CLI} login\` when unsigned.
|
|
137
|
+
chat Interactive REPL against a running server (follow-ups keep the
|
|
138
|
+
session + continuation token). Optional --message seeds the first
|
|
139
|
+
turn then stays open on a TTY. --session reattaches (looks up the
|
|
140
|
+
continuation token via /v1/sessions when omitted) and replays the
|
|
141
|
+
transcript. --resume reattaches the most recently updated
|
|
142
|
+
followable session (no id needed). --json is one-shot. Pass
|
|
143
|
+
--prod to hit the team's hosted deployment (slug from --slug or
|
|
144
|
+
the directory name).
|
|
145
|
+
resume Reattach chat to a session (same as \`${CLI} chat --session <id>\`
|
|
146
|
+
or \`${CLI} chat --resume\` with no id). Omit the session id to
|
|
147
|
+
resume the previous followable session from /v1/sessions. Looks
|
|
148
|
+
up the continuation token via /v1/sessions when
|
|
149
|
+
--continuation-token is omitted, then replays the transcript.
|
|
150
|
+
Pass --prod for a hosted deployment.
|
|
151
|
+
logs Tail agent logs. Default follows (Ctrl-C to stop); --once dumps
|
|
152
|
+
the current buffer. --prod shows deploy progress until the
|
|
153
|
+
hosted deployment is running, then tails runtime logs. Without
|
|
154
|
+
--prod, tails the local server (or --url).
|
|
155
|
+
sessions List sessions on a running agent (or --prod hosted deployment).
|
|
156
|
+
session Show one session. Default: text trajectory. --json for trajectory
|
|
157
|
+
JSON; --events for the raw event list. To continue interactively,
|
|
158
|
+
use \`${CLI} resume [id]\`.
|
|
159
|
+
cost Pull cost metrics. With a session id: per-turn token usage and
|
|
160
|
+
estimated cost for that session. Without one: one row per
|
|
161
|
+
session plus a total. Costs are the engine's recorded estimates
|
|
162
|
+
from turn.completed events; --json for machine-readable reports.
|
|
163
|
+
playground Open the web playground. --prod opens the v1 hosted alias or
|
|
164
|
+
v2 portal UI; --session deep-links a session. --print skips
|
|
165
|
+
opening a browser. Ctrl-C stops local credential proxies.
|
|
166
|
+
docs Serve the shipped documentation site on loopback and open it
|
|
167
|
+
(also: npx @cursor/bdk docs). No agent project required.
|
|
168
|
+
--print skips opening a browser. Ctrl-C stops the server.
|
|
169
|
+
run One-shot create→test loop: ephemeral server + JSON trajectory.
|
|
170
|
+
Writes a single events.ndjson trace (summarize with trajectory).
|
|
171
|
+
Streams tool calls and reply text to stderr when stderr is a TTY.
|
|
172
|
+
Pass --prod to hit the hosted deployment instead of a local server.
|
|
173
|
+
On an AgentSDK v2 slug, --prod starts a hosted session through
|
|
174
|
+
the control plane (Temporal, no resident engine); --session
|
|
175
|
+
ses_… resumes that exact session. A 404 falls back to the v1
|
|
176
|
+
engine alias.
|
|
177
|
+
trajectory Summarize an events.ndjson file into a trajectory.
|
|
178
|
+
call Call an authored server tool deterministically (no model turn)
|
|
179
|
+
via POST /v1/tools/:toolName. --session runs it inside an
|
|
180
|
+
existing session and records it on that session's event stream.
|
|
181
|
+
skill Read an authored skill deterministically (no model turn)
|
|
182
|
+
via GET /v1/skills/:skillName. --text prints SKILL.md.
|
|
183
|
+
init Scaffold a project (skipping existing files), npm install,
|
|
184
|
+
run login when unsigned, then print next steps. Templates
|
|
185
|
+
with init.json interview on a TTY; --var answers without a
|
|
186
|
+
prompt. --json is machine-readable and never blocks on
|
|
187
|
+
login. No directory: print the setup guide.
|
|
188
|
+
convert-automation
|
|
189
|
+
Export a Cursor Automation into an agentsdk project. <url> is
|
|
190
|
+
the dashboard URL (…/automations/<uuid> or
|
|
191
|
+
…/custom-agents/<uuid>) or a bare uuid. Fetches the definition
|
|
192
|
+
with your Cursor credentials, writes the converted files into
|
|
193
|
+
--dir (default ./<automation-name>), fills in the init scaffold
|
|
194
|
+
around them (existing files are kept), and installs npm
|
|
195
|
+
dependencies. MCP servers convert to Cursor-account connections
|
|
196
|
+
resolved at runtime (manage authorization in Cursor, dashboard
|
|
197
|
+
-> MCP). Review the project, then run \`validate\` / \`dev\`.
|
|
198
|
+
Warnings never fail the command.
|
|
199
|
+
install-skills
|
|
200
|
+
Refresh the Agent SDK skills for coding agents in
|
|
201
|
+
~/.cursor/skills/agentsdk and print where they landed.
|
|
202
|
+
Installed copies set alwaysApply so Cursor injects them
|
|
203
|
+
into context. \`npm install\` / \`npx\` already copies them
|
|
204
|
+
(postinstall); this command overwrites with the package
|
|
205
|
+
version without asking. \`init\` also offers a TTY refresh.
|
|
206
|
+
--print previews without writing.
|
|
207
|
+
mcp Serve this agent's MCP endpoint over stdio for MCP clients
|
|
208
|
+
that spawn local servers (e.g. Cursor). Proxies
|
|
209
|
+
newline-delimited JSON-RPC to <target>/v1/mcp. --prod resolves
|
|
210
|
+
the hosted deployment with the signed-in Cursor account and
|
|
211
|
+
re-mints short-lived engine credentials as they expire;
|
|
212
|
+
--url targets a running server. stdout is reserved for the
|
|
213
|
+
MCP wire. \`mcp install\` writes the matching entry into
|
|
214
|
+
~/.cursor/mcp.json (--print to preview; --name to override
|
|
215
|
+
the server name). \`mcp oauth <connection>\` runs host PKCE
|
|
216
|
+
for defineConnection({ url, oauth: true }); \`--store\` upserts
|
|
217
|
+
MCP_OAUTH_<NAME>_* secrets on the hosted deployment.
|
|
218
|
+
eval Run filesystem evals under evals/**/*.eval.ts (streams on a TTY).
|
|
219
|
+
Default: ephemeral local harness against evals on disk. Pass
|
|
220
|
+
--prod to kick off the batch on the team's hosted deployment
|
|
221
|
+
(slug from --slug or the directory name) via /v1/dev/evals/runs
|
|
222
|
+
so results appear in the playground and persist when the agent
|
|
223
|
+
declares an evals storage table; or --url for a running server
|
|
224
|
+
(same server-side path). With --prod/--url, prints an Eval ID as soon as the batch is
|
|
225
|
+
accepted (also with --no-wait). Check later with
|
|
226
|
+
\`${CLI} eval status <evalId> --prod\` (omit id to list recent
|
|
227
|
+
runs; exit 3 while still running) or cancel with
|
|
228
|
+
\`${CLI} eval cancel <evalId> --prod\`. The status/cancel
|
|
229
|
+
subcommands only bind when --prod/--url is set, so an eval id
|
|
230
|
+
named status/cancel still runs locally. Pass evalId args to
|
|
231
|
+
select: one datapoint (weather/nyc), a whole file (weather → all
|
|
232
|
+
cases in that file), several of either, or omit to run all.
|
|
233
|
+
info Print the discovered agent surface (tools, skills, channels, ...).
|
|
234
|
+
validate Check the project(s) and exit non-zero on error diagnostics.
|
|
235
|
+
login Sign the host in to Cursor: browser sign-in mints a named,
|
|
236
|
+
dashboard-revocable API key (only the key is stored). It powers
|
|
237
|
+
inference and cursorAccount MCP connections.
|
|
238
|
+
logout Remove the stored Cursor credentials.
|
|
239
|
+
whoami Show which Cursor account powers this host (and why).
|
|
240
|
+
update Upgrade this install to the latest published version (detects
|
|
241
|
+
global npm/pnpm/yarn/bun installs and project dependencies).
|
|
242
|
+
version Print the ${PACKAGE_NAME} version this CLI will use and exit
|
|
243
|
+
(also --version / -V). Text is the version number; --json
|
|
244
|
+
prints { name, version, cli }.
|
|
245
|
+
deploy Deploy onto Cursor's managed agent-serve hosting, then wait for
|
|
246
|
+
the engine to come up. --repo/--ref/--path stay available;
|
|
247
|
+
inside an agent git checkout they are inferred when omitted
|
|
248
|
+
(flags always win). When --dir is a multi-agent parent,
|
|
249
|
+
pick one interactively, or pass --slug / --all. First deploy
|
|
250
|
+
of a slug prints the alias token exactly once — save it.
|
|
251
|
+
deployments List the team's deployments (slug, status, generation, kind).
|
|
252
|
+
deployment Show one deployment in full (status, lastError, engine info).
|
|
253
|
+
stop Stop every install of a slug and wait until it reports
|
|
254
|
+
stopped. Does not lock deploys or flip tenant enabled.
|
|
255
|
+
start Resume every enabled install of a slug. Does not unlock
|
|
256
|
+
deploys; run unlock-deploys first after kill.
|
|
257
|
+
kill Emergency stop: lock deploys, stop every install, cancel
|
|
258
|
+
runs and reminder clocks.
|
|
259
|
+
unlock-deploys Allow deploy/upgrade again after kill. Does not resume
|
|
260
|
+
traffic; start after unlock.
|
|
261
|
+
cancel-runs Request cancellation for active Agent SDK v2 session runs
|
|
262
|
+
and reminder clocks, and mark factory creating/active
|
|
263
|
+
sessions failed. For a multi-tenant application this
|
|
264
|
+
cancels every install, not just the caller's.
|
|
265
|
+
Install-local cancel is stop --cancel-runs.
|
|
266
|
+
event-repos Set the repositories a multi-tenant install receives events
|
|
267
|
+
for. A deploy cannot carry these; pass every repository you
|
|
268
|
+
want, since the list is replaced rather than merged.
|
|
269
|
+
upgrade Move this team's install onto a release, the newest ready one
|
|
270
|
+
by default. Deploying a multi-tenant application publishes a
|
|
271
|
+
release without moving any tenant onto it.
|
|
272
|
+
delete Delete a deployment (teardown + purge the record) and wait
|
|
273
|
+
until GET 404s. The slug is then free to redeploy.
|
|
274
|
+
rotate-token Mint a new alias token for a deployment (shown once); the old
|
|
275
|
+
token stops working immediately.
|
|
276
|
+
secrets Manage deployment secrets: set (names only by default: hidden
|
|
277
|
+
prompt or piped stdin; NAME=VALUE requires --from-argv), list
|
|
278
|
+
(names + createdAt; never values), unset.
|
|
279
|
+
images Container images for persistent agents: push <local-image>
|
|
280
|
+
--name <name> (docker save, upload), list, rm <name>.
|
|
281
|
+
slack Slack channel pack: create/destroy/icon (dashboard wizard),
|
|
282
|
+
doctor (see slack help).
|
|
283
|
+
github GitHub webhook pack: forward live deliveries, events, doctor
|
|
284
|
+
(wraps \`gh webhook forward\`; see github help).
|
|
285
|
+
gitlab GitLab webhook pack: replay a merge request, events, forward
|
|
286
|
+
recipe (see gitlab help).
|
|
287
|
+
bitbucket Bitbucket webhook pack (Cloud + Data Center): replay a pull
|
|
288
|
+
request, events, forward recipe (see bitbucket help).
|
|
289
|
+
|
|
290
|
+
Agent loop:
|
|
291
|
+
${CLI} validate --dir .
|
|
292
|
+
${CLI} info --dir . --json
|
|
293
|
+
${CLI} run --dir . --message "..."
|
|
294
|
+
${CLI} eval --dir .
|
|
295
|
+
${CLI} eval --prod --dir .
|
|
296
|
+
${CLI} dev .
|
|
297
|
+
|
|
298
|
+
Options:
|
|
299
|
+
--version, -V Print the version number and exit.
|
|
300
|
+
--dir Project root (defaults to the current directory).
|
|
301
|
+
--port Port to listen on (default 3000). When the default is
|
|
302
|
+
taken, serve tries the next free port and prints a notice.
|
|
303
|
+
An explicit --port fails with a next-port hint instead.
|
|
304
|
+
--host Host to bind (default 127.0.0.1).
|
|
305
|
+
--mode serve: "multi" (default, slugged /<dir>/v1/*) or "single"
|
|
306
|
+
(unslugged /v1/*). Multi also exposes host /v1/health for
|
|
307
|
+
ALB/ECS checks; use single when one agent is the whole host.
|
|
308
|
+
--dev Dev mode: mounts POST /v1/dev/schedules/:scheduleId and
|
|
309
|
+
disables the cron runner (dispatch schedules by hand).
|
|
310
|
+
--api-key Cursor API key (defaults to CURSOR_API_KEY, then
|
|
311
|
+
CURSOR_API_KEY_FILE — hosted default
|
|
312
|
+
/run/cursor/secrets/CURSOR_API_KEY when unset —
|
|
313
|
+
then CURSOR_SERVICE_ACCOUNT_KEY, then the stored
|
|
314
|
+
\`${CLI} login\` credential).
|
|
315
|
+
--key-name login: label for the minted API key (defaults to
|
|
316
|
+
"${CLI} (<hostname>)").
|
|
317
|
+
--state-root Durable state directory (default <dir>/.agent-serve). Put it
|
|
318
|
+
outside any repository whose rules should not reach the agent.
|
|
319
|
+
--bearer-token serve: require this bearer token on API routes. chat/run/eval:
|
|
320
|
+
send it as the Authorization bearer.
|
|
321
|
+
--allow-anonymous serve: admit all HTTP callers (allowAll). For demos behind a
|
|
322
|
+
trusted network only; mutually exclusive with --bearer-token.
|
|
323
|
+
--allow-anonymous-cursor-github
|
|
324
|
+
serve: allow --allow-anonymous together with
|
|
325
|
+
githubChannel({ cursorAccount }). Admitted callers can drive
|
|
326
|
+
sessions holding the account's repo-scoped GitHub credential,
|
|
327
|
+
so use only behind a trusted boundary (e.g. an SSO proxy).
|
|
328
|
+
--allow-anonymous-grokbot
|
|
329
|
+
serve: allow --allow-anonymous together with a
|
|
330
|
+
runtime: "grokbot" mount. Admitted callers can drive turns
|
|
331
|
+
on the signed-in account's hosted Grok Bot computer, so use
|
|
332
|
+
only behind a trusted boundary (e.g. an SSO proxy).
|
|
333
|
+
--allow-anonymous-cursor-account-mcp
|
|
334
|
+
serve: allow --allow-anonymous together with
|
|
335
|
+
defineConnection({ cursorAccount: true }). Admitted callers
|
|
336
|
+
can drive the account's MCP connectors, so use only behind
|
|
337
|
+
a trusted boundary (e.g. an SSO proxy or hosted alias token).
|
|
338
|
+
--cursor-scm-proxy serve: route every SCM channel's cursorAccount API calls
|
|
339
|
+
(githubChannel, gitlabChannel, bitbucketChannel) through
|
|
340
|
+
the Cursor backend's per-forge forwarder instead of
|
|
341
|
+
minting raw tokens into this process
|
|
342
|
+
(AGENT_SERVE_<FORGE>_PROXY_URL overrides a base URL).
|
|
343
|
+
--public-url serve: base URL where this host is reachable from outside
|
|
344
|
+
(e.g. https://agent-serve.example.com).
|
|
345
|
+
--no-schedules Disable the cron runner outside dev mode.
|
|
346
|
+
--no-control-plane serve: do not start the bundled control plane (schedule
|
|
347
|
+
and reminder clocks). Cursor hosting passes this so the
|
|
348
|
+
kit uses the Cursor backend instead.
|
|
349
|
+
--team deploy/deployments/deployment/stop/rotate-token and
|
|
350
|
+
chat/resume/run/call/eval/logs/sessions/session/playground
|
|
351
|
+
--prod: Cursor team id. Defaults to the account's team when
|
|
352
|
+
it has one.
|
|
353
|
+
--prod chat/resume/run/call/eval/logs/sessions/session/playground:
|
|
354
|
+
use the team's hosted deployment. Slug from --slug or the
|
|
355
|
+
--dir basename. Mutually exclusive with --url. Requires
|
|
356
|
+
\`${CLI} login\`. For eval, this is how you opt into the
|
|
357
|
+
persisted server-side batch (default is local).
|
|
358
|
+
--dry-run run/session --prod: mark the hosted v2 turn non-mutating.
|
|
359
|
+
--component run/session --prod: wake this v2 component key,
|
|
360
|
+
not the application default.
|
|
361
|
+
--as-of run/session --prod: freeze the session clock at this
|
|
362
|
+
timezone-bearing ISO-8601 instant.
|
|
363
|
+
--once logs: print current progress / log buffer once and exit
|
|
364
|
+
(default is to follow).
|
|
365
|
+
--print playground/docs: print the URL only; do not open a
|
|
366
|
+
browser. install-skills: list the skills and the install
|
|
367
|
+
path without writing them.
|
|
368
|
+
--no-wait deploy/stop/eval: return right after the request is
|
|
369
|
+
accepted instead of polling until a terminal status.
|
|
370
|
+
For eval, prints the runId (deployment / --url only).
|
|
371
|
+
--cancel-runs stop: also cancel this install's active Agent SDK v2
|
|
372
|
+
session runs and reminder clocks, and mark factory
|
|
373
|
+
creating/active sessions failed (not every tenant).
|
|
374
|
+
--no-playground Disable the bundled web playground at /playground (also skips
|
|
375
|
+
auto-build / HMR).
|
|
376
|
+
--no-docs Disable the documentation site at /docs (also skips its
|
|
377
|
+
auto-build).
|
|
378
|
+
--url chat/resume/run/call/eval/logs/sessions/session/playground:
|
|
379
|
+
base URL of a running agent (skip local host). Mutually
|
|
380
|
+
exclusive with --prod.
|
|
381
|
+
--message chat/resume/run: user message (repeatable for run).
|
|
382
|
+
--input call: JSON object of tool arguments (default {}).
|
|
383
|
+
--messages-file JSON array of strings (run).
|
|
384
|
+
--session Existing session id (run/call follow-up, or chat reattach).
|
|
385
|
+
Prefer \`${CLI} resume [sessionId]\` for interactive
|
|
386
|
+
reattach.
|
|
387
|
+
--resume chat: reattach the previous followable session (most
|
|
388
|
+
recently updated in /v1/sessions). Same as
|
|
389
|
+
\`${CLI} resume\` with no session id. Ignored when
|
|
390
|
+
--session is also set.
|
|
391
|
+
--continuation-token Token from a prior run/chat/resume response (optional
|
|
392
|
+
for resume / chat --session/--resume; looked up via
|
|
393
|
+
/v1/sessions when omitted).
|
|
394
|
+
--events run: write NDJSON trace to this path (default
|
|
395
|
+
<dir>/.agent-serve/traces/<sessionId>.ndjson).
|
|
396
|
+
trajectory: read this file. session: print raw
|
|
397
|
+
{ sessionId, events } JSON (boolean; no path).
|
|
398
|
+
--no-events run: do not write a trace file.
|
|
399
|
+
--slug Agent slug when --dir mounts multiple agents.
|
|
400
|
+
--timeout-ms Abort a hung turn after N milliseconds.
|
|
401
|
+
--tag eval: only run cases with this tag (repeatable).
|
|
402
|
+
--list eval: print discovered cases without running.
|
|
403
|
+
--verbose eval: stream t.log lines and reply snippets.
|
|
404
|
+
--strict eval: a missed soft threshold (SCORED) also exits 1.
|
|
405
|
+
--max-concurrency eval: override evals.config.ts maxConcurrency.
|
|
406
|
+
--junit eval: write JUnit XML here for CI annotations.
|
|
407
|
+
--artifacts eval: run-artifact directory (default a timestamped dir
|
|
408
|
+
under <dir>/.agent-serve/evals/).
|
|
409
|
+
--no-artifacts eval: do not write run artifacts.
|
|
410
|
+
--skip-report eval: ignore reporters from evals.config.ts / eval files.
|
|
411
|
+
--no-stream run/eval: silence live progress on stderr (JSON still prints).
|
|
412
|
+
--json JSON output (init/convert-automation/install-skills/
|
|
413
|
+
info/chat/eval/logs/version/
|
|
414
|
+
sessions/session/github; run defaults to JSON). logs:
|
|
415
|
+
NDJSON progress/log events. session: trajectory JSON
|
|
416
|
+
(not raw events).
|
|
417
|
+
--no-color chat: force plain output.
|
|
418
|
+
--cursor-events serve: pull SCM webhook events from /v0/scm-events. The
|
|
419
|
+
stream is read as your Cursor user, so serve requires
|
|
420
|
+
sign-in (\`${CLI} login\` / CURSOR_API_KEY) and --repo.
|
|
421
|
+
Offset under <state-root>/cursor-events/.
|
|
422
|
+
CURSOR_API_BASE_URL overrides.
|
|
423
|
+
--repo serve --cursor-events: repo to subscribe to (repeatable).
|
|
424
|
+
github forward: owner/repo to forward from (inferred from
|
|
425
|
+
the git remote when omitted; last wins).
|
|
426
|
+
deploy: https git repo URL (optional; inferred from
|
|
427
|
+
git remote origin when omitted).
|
|
428
|
+
--ref deploy: git ref to build (optional; inferred from the
|
|
429
|
+
current branch when omitted).
|
|
430
|
+
--path deploy: agent dir relative to repo root (optional;
|
|
431
|
+
inferred from --dir vs git toplevel when omitted).
|
|
432
|
+
--all deploy: every child agent under a multi-agent --dir
|
|
433
|
+
(skips the interactive picker; mutually exclusive with
|
|
434
|
+
--slug).
|
|
435
|
+
--cursor-events-repo deploy: repo (owner/name) the deployed agent
|
|
436
|
+
watches (repeatable).
|
|
437
|
+
--allow-domain deploy: egress domain the engine pod may reach
|
|
438
|
+
(repeatable; unioned with hosting.egressDomains from the
|
|
439
|
+
agent manifest). Repo-backed deploys only.
|
|
440
|
+
--from-argv secrets set: allow NAME=VALUE on argv (leaks into shell
|
|
441
|
+
history and agent-captured terminals). Default is names
|
|
442
|
+
only with a hidden prompt or piped stdin.
|
|
443
|
+
--org github forward: organization login (org-level hooks).
|
|
444
|
+
--channel github: select one channel id when several are declared.
|
|
445
|
+
--secret github forward: webhook signing secret (defaults to
|
|
446
|
+
GITHUB_WEBHOOK_SECRET). github: --events overrides the
|
|
447
|
+
derived webhook event list.
|
|
448
|
+
--install github: install the cli/gh-webhook extension if missing.
|
|
449
|
+
slack init --manual: require Slack CLI app install.
|
|
450
|
+
--no-install slack init --manual: skip Slack CLI app install.
|
|
451
|
+
--action github/gitlab replay: event action (e.g. opened, open).
|
|
452
|
+
--conclusion github replay: CI conclusion (check_run/suite/status).
|
|
453
|
+
gitlab replay: pipeline status (success, failed, …).
|
|
454
|
+
--comment github/gitlab/bitbucket replay: comment / note body.
|
|
455
|
+
--context github replay: commit-status context.
|
|
456
|
+
--dry-run github replay: print synthesized payloads, don't POST.
|
|
457
|
+
--out eval / eval status <runId>: also write the full results
|
|
458
|
+
JSON to this path. session: write the raw NDJSON trace
|
|
459
|
+
there instead of printing (same format as run --events;
|
|
460
|
+
playground-openable). github replay: write synthesized
|
|
461
|
+
payloads as fixtures.
|
|
462
|
+
`;
|
|
463
|
+
function writeStdout(text) {
|
|
464
|
+
return new Promise((resolve, reject) => {
|
|
465
|
+
process.stdout.write(text, error => {
|
|
466
|
+
if (error) {
|
|
467
|
+
reject(error);
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
resolve();
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
function main(argv) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
476
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
477
|
+
var _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
478
|
+
const [command, ...restIn] = argv;
|
|
479
|
+
if (command === undefined || command === "help" || command === "--help" || command === "-h") {
|
|
480
|
+
// Await the write: HELP is larger than a pipe buffer, and process.exit
|
|
481
|
+
// after main() would otherwise truncate --help under execFile / CI.
|
|
482
|
+
yield writeStdout(HELP);
|
|
483
|
+
return command === undefined ? 1 : 0;
|
|
484
|
+
}
|
|
485
|
+
if (command === "version" || command === "--version" || command === "-V") {
|
|
486
|
+
yield writeStdout(formatCliVersion({ json: restIn.includes("--json") }));
|
|
487
|
+
return 0;
|
|
488
|
+
}
|
|
489
|
+
// `session --events` means "dump raw events" (boolean). Rewrite so it does
|
|
490
|
+
// not collide with run/trajectory's `--events <file.ndjson>` string flag.
|
|
491
|
+
const rest = command === "session" ? restIn.map(arg => (arg === "--events" ? "--raw-events" : arg)) : restIn;
|
|
492
|
+
const { values, positionals } = parseArgs({
|
|
493
|
+
args: rest,
|
|
494
|
+
allowPositionals: true,
|
|
495
|
+
options: {
|
|
496
|
+
dir: { type: "string", default: "." },
|
|
497
|
+
template: { type: "string" },
|
|
498
|
+
var: { type: "string", multiple: true },
|
|
499
|
+
port: { type: "string" },
|
|
500
|
+
host: { type: "string" },
|
|
501
|
+
mode: { type: "string" },
|
|
502
|
+
dev: { type: "boolean", default: false },
|
|
503
|
+
"api-key": { type: "string" },
|
|
504
|
+
"key-name": { type: "string" },
|
|
505
|
+
"state-root": { type: "string" },
|
|
506
|
+
"bearer-token": { type: "string" },
|
|
507
|
+
"allow-anonymous": { type: "boolean", default: false },
|
|
508
|
+
"allow-anonymous-cursor-github": { type: "boolean", default: false },
|
|
509
|
+
"allow-anonymous-cursor-account-mcp": { type: "boolean", default: false },
|
|
510
|
+
"allow-anonymous-grokbot": { type: "boolean", default: false },
|
|
511
|
+
"cursor-scm-proxy": { type: "boolean", default: false },
|
|
512
|
+
"no-schedules": { type: "boolean", default: false },
|
|
513
|
+
"no-control-plane": { type: "boolean", default: false },
|
|
514
|
+
"no-playground": { type: "boolean", default: false },
|
|
515
|
+
"no-docs": { type: "boolean", default: false },
|
|
516
|
+
url: { type: "string" },
|
|
517
|
+
prod: { type: "boolean", default: false },
|
|
518
|
+
message: { type: "string", multiple: true },
|
|
519
|
+
input: { type: "string" },
|
|
520
|
+
"messages-file": { type: "string" },
|
|
521
|
+
"session-id": { type: "string" },
|
|
522
|
+
session: { type: "string" },
|
|
523
|
+
resume: { type: "boolean", default: false },
|
|
524
|
+
"continuation-token": { type: "string" },
|
|
525
|
+
events: { type: "string" },
|
|
526
|
+
"no-events": { type: "boolean", default: false },
|
|
527
|
+
slug: { type: "string" },
|
|
528
|
+
"timeout-ms": { type: "string" },
|
|
529
|
+
tag: { type: "string", multiple: true },
|
|
530
|
+
list: { type: "boolean", default: false },
|
|
531
|
+
verbose: { type: "boolean", default: false },
|
|
532
|
+
text: { type: "boolean", default: false },
|
|
533
|
+
"no-color": { type: "boolean", default: false },
|
|
534
|
+
"no-stream": { type: "boolean", default: false },
|
|
535
|
+
once: { type: "boolean", default: false },
|
|
536
|
+
"raw-events": { type: "boolean", default: false },
|
|
537
|
+
json: { type: "boolean", default: false },
|
|
538
|
+
name: { type: "string" },
|
|
539
|
+
env: { type: "string" },
|
|
540
|
+
"public-url": { type: "string" },
|
|
541
|
+
"cloud-tools-url": { type: "string" },
|
|
542
|
+
"mount-path": { type: "string" },
|
|
543
|
+
"base-url": { type: "string" },
|
|
544
|
+
print: { type: "boolean", default: false },
|
|
545
|
+
store: { type: "boolean", default: false },
|
|
546
|
+
remote: { type: "boolean", default: false },
|
|
547
|
+
transport: { type: "string" },
|
|
548
|
+
prefix: { type: "string" },
|
|
549
|
+
"no-prefix": { type: "boolean", default: false },
|
|
550
|
+
"channel-posts": { type: "boolean", default: false },
|
|
551
|
+
"slack-team": { type: "string" },
|
|
552
|
+
icon: { type: "string" },
|
|
553
|
+
force: { type: "boolean", default: false },
|
|
554
|
+
manual: { type: "boolean", default: false },
|
|
555
|
+
repo: { type: "string", multiple: true },
|
|
556
|
+
org: { type: "string" },
|
|
557
|
+
"cursor-events": { type: "boolean", default: false },
|
|
558
|
+
secret: { type: "string" },
|
|
559
|
+
channel: { type: "string", multiple: true },
|
|
560
|
+
install: { type: "boolean", default: false },
|
|
561
|
+
"no-install": { type: "boolean", default: false },
|
|
562
|
+
action: { type: "string" },
|
|
563
|
+
conclusion: { type: "string" },
|
|
564
|
+
context: { type: "string" },
|
|
565
|
+
comment: { type: "string" },
|
|
566
|
+
"dry-run": { type: "boolean", default: false },
|
|
567
|
+
"as-of": { type: "string" },
|
|
568
|
+
component: { type: "string" },
|
|
569
|
+
out: { type: "string" },
|
|
570
|
+
team: { type: "string" },
|
|
571
|
+
"no-wait": { type: "boolean", default: false },
|
|
572
|
+
"cancel-runs": { type: "boolean", default: false },
|
|
573
|
+
ref: { type: "string" },
|
|
574
|
+
release: { type: "string" },
|
|
575
|
+
path: { type: "string" },
|
|
576
|
+
all: { type: "boolean", default: false },
|
|
577
|
+
"cursor-events-repo": { type: "string", multiple: true },
|
|
578
|
+
"allow-domain": { type: "string", multiple: true },
|
|
579
|
+
// Hidden Anysphere-only flag; omitted from help.
|
|
580
|
+
"multi-tenant": { type: "boolean", default: false },
|
|
581
|
+
"from-argv": { type: "boolean", default: false },
|
|
582
|
+
strict: { type: "boolean", default: false },
|
|
583
|
+
junit: { type: "string" },
|
|
584
|
+
artifacts: { type: "string" },
|
|
585
|
+
"no-artifacts": { type: "boolean", default: false },
|
|
586
|
+
"skip-report": { type: "boolean", default: false },
|
|
587
|
+
"max-concurrency": { type: "string" },
|
|
588
|
+
version: { type: "boolean", short: "V", default: false },
|
|
589
|
+
},
|
|
590
|
+
});
|
|
591
|
+
const dir = (_l = values.dir) !== null && _l !== void 0 ? _l : ".";
|
|
592
|
+
if (values.version === true) {
|
|
593
|
+
yield writeStdout(formatCliVersion({ json: values.json === true }));
|
|
594
|
+
return 0;
|
|
595
|
+
}
|
|
596
|
+
// Best-effort, cached, and silent on failure. `update` does its own fresh
|
|
597
|
+
// lookup, --json runs stay quiet for machine consumers, and `mcp` skips it
|
|
598
|
+
// so MCP client spawns stay fast (stdout there is the protocol wire).
|
|
599
|
+
if (command !== "update" &&
|
|
600
|
+
command !== "mcp" &&
|
|
601
|
+
values.json !== true &&
|
|
602
|
+
!isServeRestartWorker()) {
|
|
603
|
+
yield warnIfOutdated();
|
|
604
|
+
}
|
|
605
|
+
switch (command) {
|
|
606
|
+
case "slack": {
|
|
607
|
+
const { cmdSlack } = yield import("../internal/cli-slack.js");
|
|
608
|
+
const env = values.env === "dev" || values.env === "prod" || values.env === "both"
|
|
609
|
+
? values.env
|
|
610
|
+
: undefined;
|
|
611
|
+
return cmdSlack(positionals[0], {
|
|
612
|
+
dir,
|
|
613
|
+
name: values.name,
|
|
614
|
+
env,
|
|
615
|
+
json: values.json,
|
|
616
|
+
print: values.print,
|
|
617
|
+
prefix: values.prefix,
|
|
618
|
+
noPrefix: values["no-prefix"],
|
|
619
|
+
channelPosts: values["channel-posts"],
|
|
620
|
+
channels: values.channel,
|
|
621
|
+
slackTeam: values["slack-team"],
|
|
622
|
+
prod: values.prod,
|
|
623
|
+
team: values.team,
|
|
624
|
+
apiKey: values["api-key"],
|
|
625
|
+
icon: values.icon,
|
|
626
|
+
force: values.force,
|
|
627
|
+
manual: values.manual,
|
|
628
|
+
install: values.install,
|
|
629
|
+
noInstall: values["no-install"],
|
|
630
|
+
iconSource: positionals[0] === "icon" ? positionals[1] : undefined,
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
case "github": {
|
|
634
|
+
const port = values.port === undefined ? undefined : Number.parseInt(values.port, 10);
|
|
635
|
+
if (port !== undefined && (Number.isNaN(port) || port < 0 || port > 65535)) {
|
|
636
|
+
process.stderr.write(`invalid --port: ${values.port}\n`);
|
|
637
|
+
return 1;
|
|
638
|
+
}
|
|
639
|
+
const { cmdGithub } = yield import("../internal/cli-github.js");
|
|
640
|
+
return cmdGithub(positionals[0], {
|
|
641
|
+
dir,
|
|
642
|
+
slug: values.slug,
|
|
643
|
+
// `--channel` is repeatable for `slack doctor`; the github
|
|
644
|
+
// subcommands target a single channel, so the last one wins.
|
|
645
|
+
channel: (_a = values.channel) === null || _a === void 0 ? void 0 : _a.at(-1),
|
|
646
|
+
host: values.host,
|
|
647
|
+
port,
|
|
648
|
+
url: values.url,
|
|
649
|
+
events: values.events,
|
|
650
|
+
// `--repo` is repeatable for `serve --cursor-events`; the github
|
|
651
|
+
// subcommands target a single repo, so the last one wins.
|
|
652
|
+
repo: (_b = values.repo) === null || _b === void 0 ? void 0 : _b.at(-1),
|
|
653
|
+
org: values.org,
|
|
654
|
+
secret: values.secret,
|
|
655
|
+
install: values.install,
|
|
656
|
+
json: values.json,
|
|
657
|
+
prUrl: positionals[1],
|
|
658
|
+
action: values.action,
|
|
659
|
+
conclusion: values.conclusion,
|
|
660
|
+
context: values.context,
|
|
661
|
+
comment: values.comment,
|
|
662
|
+
dryRun: values["dry-run"],
|
|
663
|
+
out: values.out,
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
case "gitlab": {
|
|
667
|
+
const port = values.port === undefined ? undefined : Number.parseInt(values.port, 10);
|
|
668
|
+
if (port !== undefined && (Number.isNaN(port) || port < 0 || port > 65535)) {
|
|
669
|
+
process.stderr.write(`invalid --port: ${values.port}\n`);
|
|
670
|
+
return 1;
|
|
671
|
+
}
|
|
672
|
+
const { cmdGitlab } = yield import("../internal/cli-gitlab.js");
|
|
673
|
+
return cmdGitlab(positionals[0], {
|
|
674
|
+
dir,
|
|
675
|
+
slug: values.slug,
|
|
676
|
+
channel: (_c = values.channel) === null || _c === void 0 ? void 0 : _c.at(-1),
|
|
677
|
+
host: values.host,
|
|
678
|
+
port,
|
|
679
|
+
url: values.url,
|
|
680
|
+
events: values.events,
|
|
681
|
+
secret: values.secret,
|
|
682
|
+
json: values.json,
|
|
683
|
+
mrUrl: positionals[1],
|
|
684
|
+
action: values.action,
|
|
685
|
+
conclusion: values.conclusion,
|
|
686
|
+
comment: values.comment,
|
|
687
|
+
dryRun: values["dry-run"],
|
|
688
|
+
out: values.out,
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
case "bitbucket": {
|
|
692
|
+
const port = values.port === undefined ? undefined : Number.parseInt(values.port, 10);
|
|
693
|
+
if (port !== undefined && (Number.isNaN(port) || port < 0 || port > 65535)) {
|
|
694
|
+
process.stderr.write(`invalid --port: ${values.port}\n`);
|
|
695
|
+
return 1;
|
|
696
|
+
}
|
|
697
|
+
const { cmdBitbucket } = yield import("../internal/cli-bitbucket.js");
|
|
698
|
+
return cmdBitbucket(positionals[0], {
|
|
699
|
+
dir,
|
|
700
|
+
slug: values.slug,
|
|
701
|
+
channel: (_d = values.channel) === null || _d === void 0 ? void 0 : _d.at(-1),
|
|
702
|
+
host: values.host,
|
|
703
|
+
port,
|
|
704
|
+
url: values.url,
|
|
705
|
+
events: values.events,
|
|
706
|
+
secret: values.secret,
|
|
707
|
+
json: values.json,
|
|
708
|
+
prUrl: positionals[1],
|
|
709
|
+
comment: values.comment,
|
|
710
|
+
dryRun: values["dry-run"],
|
|
711
|
+
out: values.out,
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
case "init": {
|
|
715
|
+
return cmdInit({
|
|
716
|
+
dir,
|
|
717
|
+
initTarget: positionals[0],
|
|
718
|
+
template: values.template,
|
|
719
|
+
vars: values.var,
|
|
720
|
+
json: values.json,
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
case "convert-automation": {
|
|
724
|
+
const { cmdConvertAutomation } = yield import("../internal/cli-convert-automation.js");
|
|
725
|
+
const dirFlagPassed = rest.includes("--dir") || rest.some(arg => arg.startsWith("--dir="));
|
|
726
|
+
return cmdConvertAutomation({
|
|
727
|
+
url: positionals[0],
|
|
728
|
+
// Default target is ./<automation-name-slug>, not the cwd.
|
|
729
|
+
dir: dirFlagPassed ? dir : undefined,
|
|
730
|
+
json: values.json,
|
|
731
|
+
apiKey: values["api-key"],
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
case "install-skills": {
|
|
735
|
+
const { cmdInstallSkills } = yield import("../internal/cli-skills.js");
|
|
736
|
+
return cmdInstallSkills({
|
|
737
|
+
json: values.json,
|
|
738
|
+
print: values.print,
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
case "mcp": {
|
|
742
|
+
const { cmdMcp } = yield import("../internal/cli-mcp.js");
|
|
743
|
+
const mcpSub = positionals[0];
|
|
744
|
+
return cmdMcp(mcpSub, {
|
|
745
|
+
dir,
|
|
746
|
+
slug: values.slug,
|
|
747
|
+
team: values.team,
|
|
748
|
+
apiKey: values["api-key"],
|
|
749
|
+
url: values.url,
|
|
750
|
+
prod: values.prod,
|
|
751
|
+
bearerToken: values["bearer-token"],
|
|
752
|
+
name: values.name,
|
|
753
|
+
print: values.print,
|
|
754
|
+
json: values.json,
|
|
755
|
+
store: values.store,
|
|
756
|
+
remote: values.remote,
|
|
757
|
+
oauthConnection: mcpSub === "oauth" ? positionals[1] : undefined,
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
case "login": {
|
|
761
|
+
const { cmdLogin } = yield import("../internal/cli-cursor.js");
|
|
762
|
+
return cmdLogin({
|
|
763
|
+
apiKey: values["api-key"],
|
|
764
|
+
keyName: values["key-name"],
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
case "logout": {
|
|
768
|
+
const { cmdLogout } = yield import("../internal/cli-cursor.js");
|
|
769
|
+
return cmdLogout();
|
|
770
|
+
}
|
|
771
|
+
case "whoami": {
|
|
772
|
+
const { cmdWhoami } = yield import("../internal/cli-cursor.js");
|
|
773
|
+
return cmdWhoami({ json: values.json });
|
|
774
|
+
}
|
|
775
|
+
case "update": {
|
|
776
|
+
return cmdUpdate();
|
|
777
|
+
}
|
|
778
|
+
case "deploy": {
|
|
779
|
+
// `--repo` is repeatable for `serve --cursor-events`; deploy targets a
|
|
780
|
+
// single source repo, so the last one wins.
|
|
781
|
+
const repo = (_e = values.repo) === null || _e === void 0 ? void 0 : _e.at(-1);
|
|
782
|
+
return cmdDeploy(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, deployOptionsFromValues(values)), { dir }), (values.slug === undefined ? {} : { slug: values.slug })), { all: values.all === true }), (repo === undefined ? {} : { repo })), (values.ref === undefined ? {} : { ref: values.ref })), (values.path === undefined ? {} : { path: values.path })), (values["cursor-events-repo"] === undefined
|
|
783
|
+
? {}
|
|
784
|
+
: { cursorEventsRepos: values["cursor-events-repo"] })), (values["allow-domain"] === undefined ? {} : { allowDomains: values["allow-domain"] })), { multiTenant: values["multi-tenant"] === true }));
|
|
785
|
+
}
|
|
786
|
+
case "manifest": {
|
|
787
|
+
// Offline extraction of deploy metadata (events, egress, routes,
|
|
788
|
+
// /v1/info payload) — no VM, no network. Wd-1 of the event-ingress
|
|
789
|
+
// plan; `deploy` attaches this to the request from Wd-2 on.
|
|
790
|
+
return cmdManifest({ dir, json: values.json === true });
|
|
791
|
+
}
|
|
792
|
+
case "deployments": {
|
|
793
|
+
return cmdDeployments(deployOptionsFromValues(values));
|
|
794
|
+
}
|
|
795
|
+
case "deployment": {
|
|
796
|
+
return cmdDeploymentStatus(positionals[0], deployOptionsFromValues(values));
|
|
797
|
+
}
|
|
798
|
+
case "stop": {
|
|
799
|
+
return cmdStop(positionals[0], deployOptionsFromValues(values));
|
|
800
|
+
}
|
|
801
|
+
case "kill": {
|
|
802
|
+
return cmdKill(positionals[0], deployOptionsFromValues(values));
|
|
803
|
+
}
|
|
804
|
+
case "unlock-deploys": {
|
|
805
|
+
return cmdUnlockDeploys(positionals[0], deployOptionsFromValues(values));
|
|
806
|
+
}
|
|
807
|
+
case "start": {
|
|
808
|
+
return cmdStart(positionals[0], deployOptionsFromValues(values));
|
|
809
|
+
}
|
|
810
|
+
case "cancel-runs": {
|
|
811
|
+
return cmdCancelRuns(positionals[0], deployOptionsFromValues(values));
|
|
812
|
+
}
|
|
813
|
+
case "event-repos": {
|
|
814
|
+
return cmdEventRepos(positionals[0], (_m = values.repo) !== null && _m !== void 0 ? _m : [], deployOptionsFromValues(values));
|
|
815
|
+
}
|
|
816
|
+
case "upgrade": {
|
|
817
|
+
return cmdUpgrade({ slug: positionals[0], release: values.release }, deployOptionsFromValues(values));
|
|
818
|
+
}
|
|
819
|
+
case "delete": {
|
|
820
|
+
return cmdDelete(positionals[0], deployOptionsFromValues(values));
|
|
821
|
+
}
|
|
822
|
+
case "rotate-token": {
|
|
823
|
+
return cmdRotateToken(positionals[0], deployOptionsFromValues(values));
|
|
824
|
+
}
|
|
825
|
+
case "secrets": {
|
|
826
|
+
const base = deployOptionsFromValues(values);
|
|
827
|
+
switch (positionals[0]) {
|
|
828
|
+
case "set":
|
|
829
|
+
return cmdSecretsSet(positionals[1], positionals.slice(2), base);
|
|
830
|
+
case "list":
|
|
831
|
+
return cmdSecretsList(positionals[1], base);
|
|
832
|
+
case "unset":
|
|
833
|
+
return cmdSecretsUnset(positionals[1], positionals[2], base);
|
|
834
|
+
default:
|
|
835
|
+
process.stderr.write(`Usage: ${CLI} secrets <set|list|unset> <slug> ... [--team <id>] [--json]\n`);
|
|
836
|
+
return 1;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
case "images": {
|
|
840
|
+
const base = deployOptionsFromValues(values);
|
|
841
|
+
switch (positionals[0]) {
|
|
842
|
+
case "push":
|
|
843
|
+
return cmdImagesPush({ image: positionals[1], name: values.name }, base);
|
|
844
|
+
case "list":
|
|
845
|
+
return cmdImagesList(base);
|
|
846
|
+
case "rm":
|
|
847
|
+
return cmdImagesRm(positionals[1], base);
|
|
848
|
+
default:
|
|
849
|
+
process.stderr.write(`Usage: ${CLI} images <push <local-image> --name <name>|list|rm <name>> [--team <id>] [--json]\n`);
|
|
850
|
+
return 1;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
case "run": {
|
|
854
|
+
const messages = yield loadMessages(values.message, values["messages-file"]);
|
|
855
|
+
return cmdRun(axFromOptions({
|
|
856
|
+
dir,
|
|
857
|
+
messages,
|
|
858
|
+
sessionId: (_o = values["session-id"]) !== null && _o !== void 0 ? _o : values.session,
|
|
859
|
+
continuationToken: values["continuation-token"],
|
|
860
|
+
events: values["no-events"] ? false : values.events === undefined ? true : values.events,
|
|
861
|
+
text: values.text,
|
|
862
|
+
url: values.url,
|
|
863
|
+
prod: values.prod,
|
|
864
|
+
team: values.team,
|
|
865
|
+
apiKey: values["api-key"],
|
|
866
|
+
slug: values.slug,
|
|
867
|
+
bearerToken: values["bearer-token"],
|
|
868
|
+
stateRoot: values["state-root"],
|
|
869
|
+
timeoutMs: parseTimeoutMs(values["timeout-ms"]),
|
|
870
|
+
stream: values["no-stream"] ? false : undefined,
|
|
871
|
+
dryRun: values["dry-run"],
|
|
872
|
+
asOf: values["as-of"],
|
|
873
|
+
componentKey: values.component,
|
|
874
|
+
}));
|
|
875
|
+
}
|
|
876
|
+
case "call": {
|
|
877
|
+
return cmdCall(axFromOptions({
|
|
878
|
+
dir,
|
|
879
|
+
toolName: positionals[0],
|
|
880
|
+
toolInput: values.input,
|
|
881
|
+
sessionId: (_p = values["session-id"]) !== null && _p !== void 0 ? _p : values.session,
|
|
882
|
+
url: values.url,
|
|
883
|
+
prod: values.prod,
|
|
884
|
+
team: values.team,
|
|
885
|
+
apiKey: values["api-key"],
|
|
886
|
+
slug: values.slug,
|
|
887
|
+
bearerToken: values["bearer-token"],
|
|
888
|
+
stateRoot: values["state-root"],
|
|
889
|
+
}));
|
|
890
|
+
}
|
|
891
|
+
case "skill": {
|
|
892
|
+
return cmdSkill(positionals[0], axFromOptions({
|
|
893
|
+
dir,
|
|
894
|
+
text: values.text,
|
|
895
|
+
url: values.url,
|
|
896
|
+
prod: values.prod,
|
|
897
|
+
team: values.team,
|
|
898
|
+
apiKey: values["api-key"],
|
|
899
|
+
slug: values.slug,
|
|
900
|
+
bearerToken: values["bearer-token"],
|
|
901
|
+
stateRoot: values["state-root"],
|
|
902
|
+
}));
|
|
903
|
+
}
|
|
904
|
+
case "trajectory": {
|
|
905
|
+
if (values.events === undefined) {
|
|
906
|
+
process.stderr.write("trajectory requires --events <file.ndjson>\n");
|
|
907
|
+
return 1;
|
|
908
|
+
}
|
|
909
|
+
return cmdTrajectory(axFromOptions({
|
|
910
|
+
dir,
|
|
911
|
+
events: values.events,
|
|
912
|
+
text: values.text,
|
|
913
|
+
}));
|
|
914
|
+
}
|
|
915
|
+
case "eval": {
|
|
916
|
+
// Remote status subcommand only when targeting --prod/--url. Otherwise
|
|
917
|
+
// the bare token "status" is a normal eval id (evals/status.eval.ts).
|
|
918
|
+
if (positionals[0] === "status" && (values.prod === true || values.url !== undefined)) {
|
|
919
|
+
return cmdEvalStatus(positionals[1], axFromOptions({
|
|
920
|
+
dir,
|
|
921
|
+
json: values.json,
|
|
922
|
+
url: values.url,
|
|
923
|
+
prod: values.prod,
|
|
924
|
+
team: values.team,
|
|
925
|
+
apiKey: values["api-key"],
|
|
926
|
+
slug: values.slug,
|
|
927
|
+
bearerToken: values["bearer-token"],
|
|
928
|
+
out: values.out,
|
|
929
|
+
}));
|
|
930
|
+
}
|
|
931
|
+
if (positionals[0] === "cancel" && (values.prod === true || values.url !== undefined)) {
|
|
932
|
+
return cmdEvalCancel(positionals[1], axFromOptions({
|
|
933
|
+
dir,
|
|
934
|
+
json: values.json,
|
|
935
|
+
url: values.url,
|
|
936
|
+
prod: values.prod,
|
|
937
|
+
team: values.team,
|
|
938
|
+
apiKey: values["api-key"],
|
|
939
|
+
slug: values.slug,
|
|
940
|
+
bearerToken: values["bearer-token"],
|
|
941
|
+
}));
|
|
942
|
+
}
|
|
943
|
+
return cmdEval(axFromOptions({
|
|
944
|
+
dir,
|
|
945
|
+
evalIds: positionals,
|
|
946
|
+
list: values.list,
|
|
947
|
+
verbose: values.verbose,
|
|
948
|
+
json: values.json,
|
|
949
|
+
tags: values.tag,
|
|
950
|
+
url: values.url,
|
|
951
|
+
prod: values.prod,
|
|
952
|
+
noWait: values["no-wait"],
|
|
953
|
+
team: values.team,
|
|
954
|
+
apiKey: values["api-key"],
|
|
955
|
+
slug: values.slug,
|
|
956
|
+
bearerToken: values["bearer-token"],
|
|
957
|
+
stateRoot: values["state-root"],
|
|
958
|
+
timeoutMs: parseTimeoutMs(values["timeout-ms"]),
|
|
959
|
+
stream: values["no-stream"] ? false : undefined,
|
|
960
|
+
strict: values.strict,
|
|
961
|
+
junit: values.junit,
|
|
962
|
+
artifacts: values["no-artifacts"] ? false : values.artifacts,
|
|
963
|
+
skipReport: values["skip-report"],
|
|
964
|
+
maxConcurrency: parseMaxConcurrency(values["max-concurrency"]),
|
|
965
|
+
out: values.out,
|
|
966
|
+
}));
|
|
967
|
+
}
|
|
968
|
+
case "chat": {
|
|
969
|
+
return cmdChat(axFromOptions({
|
|
970
|
+
dir,
|
|
971
|
+
messages: values.message,
|
|
972
|
+
url: values.url,
|
|
973
|
+
prod: values.prod,
|
|
974
|
+
team: values.team,
|
|
975
|
+
apiKey: values["api-key"],
|
|
976
|
+
slug: values.slug,
|
|
977
|
+
sessionId: (_q = values["session-id"]) !== null && _q !== void 0 ? _q : values.session,
|
|
978
|
+
resume: values.resume,
|
|
979
|
+
continuationToken: values["continuation-token"],
|
|
980
|
+
bearerToken: values["bearer-token"],
|
|
981
|
+
json: values.json,
|
|
982
|
+
text: values.text,
|
|
983
|
+
noColor: values["no-color"],
|
|
984
|
+
}));
|
|
985
|
+
}
|
|
986
|
+
case "resume": {
|
|
987
|
+
return cmdResume(positionals[0], axFromOptions({
|
|
988
|
+
dir,
|
|
989
|
+
messages: values.message,
|
|
990
|
+
url: values.url,
|
|
991
|
+
prod: values.prod,
|
|
992
|
+
team: values.team,
|
|
993
|
+
apiKey: values["api-key"],
|
|
994
|
+
slug: values.slug,
|
|
995
|
+
// Positional wins; --session is accepted as a redundant alias.
|
|
996
|
+
// No id → resume previous (cmdResume sets resume: true).
|
|
997
|
+
sessionId: (_s = (_r = positionals[0]) !== null && _r !== void 0 ? _r : values["session-id"]) !== null && _s !== void 0 ? _s : values.session,
|
|
998
|
+
continuationToken: values["continuation-token"],
|
|
999
|
+
bearerToken: values["bearer-token"],
|
|
1000
|
+
json: values.json,
|
|
1001
|
+
text: values.text,
|
|
1002
|
+
noColor: values["no-color"],
|
|
1003
|
+
}));
|
|
1004
|
+
}
|
|
1005
|
+
case "logs": {
|
|
1006
|
+
return cmdLogs(axFromOptions({
|
|
1007
|
+
dir,
|
|
1008
|
+
url: values.url,
|
|
1009
|
+
prod: values.prod,
|
|
1010
|
+
team: values.team,
|
|
1011
|
+
apiKey: values["api-key"],
|
|
1012
|
+
slug: values.slug,
|
|
1013
|
+
bearerToken: values["bearer-token"],
|
|
1014
|
+
json: values.json,
|
|
1015
|
+
once: values.once,
|
|
1016
|
+
}));
|
|
1017
|
+
}
|
|
1018
|
+
case "sessions": {
|
|
1019
|
+
return cmdSessions(axFromOptions({
|
|
1020
|
+
dir,
|
|
1021
|
+
url: values.url,
|
|
1022
|
+
prod: values.prod,
|
|
1023
|
+
team: values.team,
|
|
1024
|
+
apiKey: values["api-key"],
|
|
1025
|
+
slug: values.slug,
|
|
1026
|
+
bearerToken: values["bearer-token"],
|
|
1027
|
+
json: values.json,
|
|
1028
|
+
}));
|
|
1029
|
+
}
|
|
1030
|
+
case "session": {
|
|
1031
|
+
const messages = yield loadMessages(values.message, values["messages-file"]);
|
|
1032
|
+
return cmdSession(positionals[0], axFromOptions({
|
|
1033
|
+
dir,
|
|
1034
|
+
url: values.url,
|
|
1035
|
+
prod: values.prod,
|
|
1036
|
+
team: values.team,
|
|
1037
|
+
apiKey: values["api-key"],
|
|
1038
|
+
slug: values.slug,
|
|
1039
|
+
bearerToken: values["bearer-token"],
|
|
1040
|
+
json: values.json,
|
|
1041
|
+
text: values.text,
|
|
1042
|
+
rawEvents: values["raw-events"],
|
|
1043
|
+
out: values.out,
|
|
1044
|
+
messages,
|
|
1045
|
+
sessionId: (_t = values["session-id"]) !== null && _t !== void 0 ? _t : values.session,
|
|
1046
|
+
dryRun: values["dry-run"],
|
|
1047
|
+
asOf: values["as-of"],
|
|
1048
|
+
componentKey: values.component,
|
|
1049
|
+
}));
|
|
1050
|
+
}
|
|
1051
|
+
case "cost": {
|
|
1052
|
+
return cmdCost((_v = (_u = positionals[0]) !== null && _u !== void 0 ? _u : values["session-id"]) !== null && _v !== void 0 ? _v : values.session, axFromOptions({
|
|
1053
|
+
dir,
|
|
1054
|
+
url: values.url,
|
|
1055
|
+
prod: values.prod,
|
|
1056
|
+
team: values.team,
|
|
1057
|
+
apiKey: values["api-key"],
|
|
1058
|
+
slug: values.slug,
|
|
1059
|
+
bearerToken: values["bearer-token"],
|
|
1060
|
+
json: values.json,
|
|
1061
|
+
}));
|
|
1062
|
+
}
|
|
1063
|
+
case "playground": {
|
|
1064
|
+
return cmdPlayground(axFromOptions({
|
|
1065
|
+
dir,
|
|
1066
|
+
url: values.url,
|
|
1067
|
+
prod: values.prod,
|
|
1068
|
+
team: values.team,
|
|
1069
|
+
apiKey: values["api-key"],
|
|
1070
|
+
slug: values.slug,
|
|
1071
|
+
bearerToken: values["bearer-token"],
|
|
1072
|
+
sessionId: (_w = values["session-id"]) !== null && _w !== void 0 ? _w : values.session,
|
|
1073
|
+
print: values.print,
|
|
1074
|
+
}));
|
|
1075
|
+
}
|
|
1076
|
+
case "docs": {
|
|
1077
|
+
const docsPort = values.port === undefined ? 0 : Number.parseInt(values.port, 10);
|
|
1078
|
+
if (Number.isNaN(docsPort) || docsPort < 0 || docsPort > 65535) {
|
|
1079
|
+
process.stderr.write(`invalid --port: ${values.port}\n`);
|
|
1080
|
+
return 1;
|
|
1081
|
+
}
|
|
1082
|
+
const { cmdDocs } = yield import("../internal/cli-docs.js");
|
|
1083
|
+
return cmdDocs({
|
|
1084
|
+
port: docsPort,
|
|
1085
|
+
host: values.host,
|
|
1086
|
+
print: values.print === true,
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
case "validate": {
|
|
1090
|
+
const mounts = yield loadMounts(dir);
|
|
1091
|
+
let hasError = false;
|
|
1092
|
+
for (const { slug, project } of mounts) {
|
|
1093
|
+
const label = slug === "" ? project.name : `${slug} (${project.name})`;
|
|
1094
|
+
if (project.diagnostics.length === 0) {
|
|
1095
|
+
process.stdout.write(`ok: ${label} has no diagnostics\n`);
|
|
1096
|
+
continue;
|
|
1097
|
+
}
|
|
1098
|
+
process.stdout.write(`${label}:\n${formatDiagnostics(project.diagnostics)}\n`);
|
|
1099
|
+
hasError || (hasError = project.diagnostics.some(d => d.severity === "error"));
|
|
1100
|
+
}
|
|
1101
|
+
return hasError ? 1 : 0;
|
|
1102
|
+
}
|
|
1103
|
+
case "info": {
|
|
1104
|
+
const mounts = yield loadMounts(dir);
|
|
1105
|
+
if (values.json) {
|
|
1106
|
+
const payload = mounts.length === 1 && ((_f = mounts[0]) === null || _f === void 0 ? void 0 : _f.slug) === ""
|
|
1107
|
+
? projectInfo(mounts[0].project)
|
|
1108
|
+
: {
|
|
1109
|
+
agents: mounts.map(({ slug, project }) => (Object.assign({ slug }, projectInfo(project)))),
|
|
1110
|
+
};
|
|
1111
|
+
process.stdout.write(`${JSON.stringify(payload, null, 2)}\n`);
|
|
1112
|
+
return 0;
|
|
1113
|
+
}
|
|
1114
|
+
if (mounts.length > 1 || ((_g = mounts[0]) === null || _g === void 0 ? void 0 : _g.slug) !== "") {
|
|
1115
|
+
process.stdout.write(`${mounts.length} agents under ${dir}:\n\n`);
|
|
1116
|
+
for (const { slug, project } of mounts) {
|
|
1117
|
+
const info = projectInfo(project);
|
|
1118
|
+
process.stdout.write(` /${slug} — ${info.name} (${formatModel(info.model)}, ${info.tools.length} tools, ${info.channels.length} channels)\n`);
|
|
1119
|
+
}
|
|
1120
|
+
const anyError = mounts.some(m => m.project.diagnostics.some(d => d.severity === "error"));
|
|
1121
|
+
return anyError ? 1 : 0;
|
|
1122
|
+
}
|
|
1123
|
+
const project = (_h = mounts[0]) === null || _h === void 0 ? void 0 : _h.project;
|
|
1124
|
+
const info = projectInfo(project);
|
|
1125
|
+
const lines = [];
|
|
1126
|
+
lines.push(`agent: ${info.name}`);
|
|
1127
|
+
lines.push(`model: ${formatModel(info.model)}`);
|
|
1128
|
+
lines.push(`mcp: ${info.mcp.path} (${info.mcp.tools.join(", ")})`);
|
|
1129
|
+
if (info.instructions !== undefined) {
|
|
1130
|
+
lines.push(`instructions: ${info.instructions.chars} chars`);
|
|
1131
|
+
}
|
|
1132
|
+
lines.push(section("tools", info.tools.map(t => `${t.name} — ${t.description}`)));
|
|
1133
|
+
lines.push(section("skills", info.skills.map(s => `${s.name} — ${s.description}`)));
|
|
1134
|
+
lines.push(section("extensions", info.extensions.map(e => `${e.name} — ${[...e.tools, ...e.skills].join(", ") || "(nothing contributed)"}`)));
|
|
1135
|
+
lines.push(section("MCP connections", info.connections.map(c => `${c.name} — ${c.transport}`)));
|
|
1136
|
+
lines.push(section("subagents", info.subagents.map(s => { var _a; return `${s.name} — ${(_a = s.description) !== null && _a !== void 0 ? _a : ""}`; })));
|
|
1137
|
+
lines.push(section("channels", info.channels.map(c => `${c.id}: ${c.routes.map(r => `${r.method} ${r.url}`).join(", ") || "(events only)"}`)));
|
|
1138
|
+
lines.push(section("schedules", info.schedules.map(s => `${s.name} (${s.cron}, ${s.kind})`)));
|
|
1139
|
+
lines.push(section("hooks", info.hooks));
|
|
1140
|
+
lines.push(section("hosting egress domains", (_x = (_j = info.hosting) === null || _j === void 0 ? void 0 : _j.egressDomains) !== null && _x !== void 0 ? _x : []));
|
|
1141
|
+
lines.push(section("hosting secret names", (_y = (_k = info.hosting) === null || _k === void 0 ? void 0 : _k.secretNames) !== null && _y !== void 0 ? _y : []));
|
|
1142
|
+
if (info.diagnostics.length > 0) {
|
|
1143
|
+
lines.push(`\ndiagnostics:\n${formatDiagnostics(info.diagnostics)}`);
|
|
1144
|
+
}
|
|
1145
|
+
process.stdout.write(`${lines.filter(line => line !== "").join("\n")}\n`);
|
|
1146
|
+
return info.diagnostics.some(d => d.severity === "error") ? 1 : 0;
|
|
1147
|
+
}
|
|
1148
|
+
case "dev":
|
|
1149
|
+
case "serve": {
|
|
1150
|
+
const serveDirResult = resolveServeDir({
|
|
1151
|
+
command,
|
|
1152
|
+
dir,
|
|
1153
|
+
positionals,
|
|
1154
|
+
dirFlagPassed: rest.includes("--dir"),
|
|
1155
|
+
});
|
|
1156
|
+
if (typeof serveDirResult !== "string") {
|
|
1157
|
+
process.stderr.write(serveDirResult.error);
|
|
1158
|
+
return 1;
|
|
1159
|
+
}
|
|
1160
|
+
const serveDir = serveDirResult;
|
|
1161
|
+
const port = values.port === undefined ? undefined : Number.parseInt(values.port, 10);
|
|
1162
|
+
if (port !== undefined && (Number.isNaN(port) || port < 0 || port > 65535)) {
|
|
1163
|
+
process.stderr.write(`invalid --port: ${values.port}\n`);
|
|
1164
|
+
return 1;
|
|
1165
|
+
}
|
|
1166
|
+
if (values["allow-anonymous"] === true && values["bearer-token"] !== undefined) {
|
|
1167
|
+
process.stderr.write("--allow-anonymous and --bearer-token are mutually exclusive\n");
|
|
1168
|
+
return 1;
|
|
1169
|
+
}
|
|
1170
|
+
const mode = values.mode;
|
|
1171
|
+
if (mode !== undefined && mode !== "single" && mode !== "multi") {
|
|
1172
|
+
process.stderr.write(`invalid --mode: ${mode} (expected "single" or "multi")\n`);
|
|
1173
|
+
return 1;
|
|
1174
|
+
}
|
|
1175
|
+
const dev = command === "dev" || values.dev === true;
|
|
1176
|
+
const style = stdoutPalette();
|
|
1177
|
+
// Real env wins (loadEnvFile never overrides). Runs inside start()
|
|
1178
|
+
// so dev's Enter-restart picks up tokens written since boot.
|
|
1179
|
+
const loadLocalEnv = () => {
|
|
1180
|
+
const loadedEnvFiles = loadAgentLocalEnv(serveDir);
|
|
1181
|
+
if (loadedEnvFiles.length > 0) {
|
|
1182
|
+
process.stdout.write(`${style.dim(`env: loaded ${loadedEnvFiles.join(", ")}`)}\n`);
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
const serveOptions = {
|
|
1186
|
+
port,
|
|
1187
|
+
host: values.host,
|
|
1188
|
+
mode: mode,
|
|
1189
|
+
dev,
|
|
1190
|
+
apiKey: values["api-key"],
|
|
1191
|
+
stateRoot: values["state-root"],
|
|
1192
|
+
authToken: values["bearer-token"],
|
|
1193
|
+
allowAnonymous: values["allow-anonymous"] === true ? true : undefined,
|
|
1194
|
+
allowAnonymousCursorGithub: values["allow-anonymous-cursor-github"] === true ? true : undefined,
|
|
1195
|
+
allowAnonymousCursorAccountMcp: values["allow-anonymous-cursor-account-mcp"] === true ? true : undefined,
|
|
1196
|
+
allowAnonymousGrokbot: values["allow-anonymous-grokbot"] === true ? true : undefined,
|
|
1197
|
+
cursorScmProxy: values["cursor-scm-proxy"] === true ? true : undefined,
|
|
1198
|
+
schedules: values["no-schedules"] === true ? false : undefined,
|
|
1199
|
+
noControlPlane: values["no-control-plane"] === true ? true : undefined,
|
|
1200
|
+
playground: values["no-playground"] === true ? false : undefined,
|
|
1201
|
+
docs: values["no-docs"] === true ? false : undefined,
|
|
1202
|
+
publicUrl: values["public-url"],
|
|
1203
|
+
cloudToolsUrl: values["cloud-tools-url"],
|
|
1204
|
+
cursorEvents: values["cursor-events"] === true ? { repos: (_z = values.repo) !== null && _z !== void 0 ? _z : [] } : undefined,
|
|
1205
|
+
// Soft boot logs stay secondary to the banner. `dim` is a no-op on
|
|
1206
|
+
// already-styled lines (the MCP warning box).
|
|
1207
|
+
logger: (line) => {
|
|
1208
|
+
process.stdout.write(`${style.dim(line)}\n`);
|
|
1209
|
+
},
|
|
1210
|
+
};
|
|
1211
|
+
const enterToRestart = process.stdin.isTTY === true;
|
|
1212
|
+
if (enterToRestart && !isServeRestartWorker()) {
|
|
1213
|
+
return runEnterRestartSupervisor({
|
|
1214
|
+
spawn: (command, args, spawnOptions) => spawn(command, args, spawnOptions),
|
|
1215
|
+
onRestart: () => {
|
|
1216
|
+
clearTerminal();
|
|
1217
|
+
},
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
const bannerOpts = {
|
|
1221
|
+
noPlayground: values["no-playground"] === true,
|
|
1222
|
+
dev,
|
|
1223
|
+
bearerToken: values["bearer-token"] !== undefined,
|
|
1224
|
+
noSchedules: values["no-schedules"] === true,
|
|
1225
|
+
};
|
|
1226
|
+
const start = () => __awaiter(this, void 0, void 0, function* () {
|
|
1227
|
+
loadLocalEnv();
|
|
1228
|
+
const next = yield serve(serveDir, serveOptions);
|
|
1229
|
+
printServeBanner(next, bannerOpts);
|
|
1230
|
+
if (enterToRestart) {
|
|
1231
|
+
process.stdout.write(style.dim(" press Enter to restart\n"));
|
|
1232
|
+
}
|
|
1233
|
+
return next;
|
|
1234
|
+
});
|
|
1235
|
+
const handle = yield start();
|
|
1236
|
+
let closing = false;
|
|
1237
|
+
let restartRequested = false;
|
|
1238
|
+
yield new Promise(resolve => {
|
|
1239
|
+
const shutdown = () => {
|
|
1240
|
+
if (closing) {
|
|
1241
|
+
return;
|
|
1242
|
+
}
|
|
1243
|
+
closing = true;
|
|
1244
|
+
process.stdout.write("\nshutting down (draining running turns)\n");
|
|
1245
|
+
void handle.close().finally(resolve);
|
|
1246
|
+
};
|
|
1247
|
+
process.on("SIGINT", shutdown);
|
|
1248
|
+
process.on("SIGTERM", shutdown);
|
|
1249
|
+
if (!enterToRestart) {
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1252
|
+
process.stdin.resume();
|
|
1253
|
+
process.stdin.on("data", (chunk) => {
|
|
1254
|
+
const text = typeof chunk === "string" ? chunk : chunk.toString("utf8");
|
|
1255
|
+
if (!isEnterOnly(text) || closing) {
|
|
1256
|
+
return;
|
|
1257
|
+
}
|
|
1258
|
+
closing = true;
|
|
1259
|
+
restartRequested = true;
|
|
1260
|
+
clearTerminal();
|
|
1261
|
+
process.stdout.write(style.dim("restarting…\n"));
|
|
1262
|
+
void handle.close().finally(resolve);
|
|
1263
|
+
});
|
|
1264
|
+
});
|
|
1265
|
+
return restartRequested ? ENTER_RESTART_EXIT_CODE : 0;
|
|
1266
|
+
}
|
|
1267
|
+
default: {
|
|
1268
|
+
process.stderr.write(`Unknown command "${command}"\n\n${HELP}`);
|
|
1269
|
+
return 1;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
function deployOptionsFromValues(values) {
|
|
1275
|
+
return {
|
|
1276
|
+
team: values.team,
|
|
1277
|
+
json: values.json === true,
|
|
1278
|
+
noWait: values["no-wait"] === true,
|
|
1279
|
+
cancelRuns: values["cancel-runs"] === true,
|
|
1280
|
+
apiKey: values["api-key"],
|
|
1281
|
+
fromArgv: values["from-argv"] === true ? true : undefined,
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
function axFromOptions(partial) {
|
|
1285
|
+
return {
|
|
1286
|
+
dir: partial.dir,
|
|
1287
|
+
cwd: partial.cwd,
|
|
1288
|
+
slug: partial.slug,
|
|
1289
|
+
bearerToken: partial.bearerToken,
|
|
1290
|
+
stateRoot: partial.stateRoot,
|
|
1291
|
+
messages: partial.messages,
|
|
1292
|
+
sessionId: partial.sessionId,
|
|
1293
|
+
resume: partial.resume,
|
|
1294
|
+
continuationToken: partial.continuationToken,
|
|
1295
|
+
dryRun: partial.dryRun,
|
|
1296
|
+
asOf: partial.asOf,
|
|
1297
|
+
componentKey: partial.componentKey,
|
|
1298
|
+
timeoutMs: partial.timeoutMs,
|
|
1299
|
+
events: partial.events,
|
|
1300
|
+
text: partial.text,
|
|
1301
|
+
json: partial.json,
|
|
1302
|
+
list: partial.list,
|
|
1303
|
+
verbose: partial.verbose,
|
|
1304
|
+
tags: partial.tags,
|
|
1305
|
+
evalIds: partial.evalIds,
|
|
1306
|
+
initTarget: partial.initTarget,
|
|
1307
|
+
vars: partial.vars,
|
|
1308
|
+
toolName: partial.toolName,
|
|
1309
|
+
toolInput: partial.toolInput,
|
|
1310
|
+
url: partial.url,
|
|
1311
|
+
prod: partial.prod,
|
|
1312
|
+
noWait: partial.noWait,
|
|
1313
|
+
team: partial.team,
|
|
1314
|
+
apiKey: partial.apiKey,
|
|
1315
|
+
fetchImpl: partial.fetchImpl,
|
|
1316
|
+
stream: partial.stream,
|
|
1317
|
+
noColor: partial.noColor,
|
|
1318
|
+
once: partial.once,
|
|
1319
|
+
rawEvents: partial.rawEvents,
|
|
1320
|
+
print: partial.print,
|
|
1321
|
+
strict: partial.strict,
|
|
1322
|
+
junit: partial.junit,
|
|
1323
|
+
artifacts: partial.artifacts,
|
|
1324
|
+
skipReport: partial.skipReport,
|
|
1325
|
+
maxConcurrency: partial.maxConcurrency,
|
|
1326
|
+
out: partial.out,
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
function loadMessages(messages, messagesFile) {
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1331
|
+
const out = [];
|
|
1332
|
+
if (messagesFile !== undefined) {
|
|
1333
|
+
const raw = yield readFile(resolve(messagesFile), "utf8");
|
|
1334
|
+
const parsed = JSON.parse(raw);
|
|
1335
|
+
if (!Array.isArray(parsed)) {
|
|
1336
|
+
throw new Error("--messages-file must be a JSON array of strings");
|
|
1337
|
+
}
|
|
1338
|
+
for (const item of parsed) {
|
|
1339
|
+
if (typeof item !== "string") {
|
|
1340
|
+
throw new Error("--messages-file entries must be strings");
|
|
1341
|
+
}
|
|
1342
|
+
out.push(item);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
if (messages !== undefined) {
|
|
1346
|
+
out.push(...messages);
|
|
1347
|
+
}
|
|
1348
|
+
return out;
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
function parseTimeoutMs(value) {
|
|
1352
|
+
if (value === undefined) {
|
|
1353
|
+
return undefined;
|
|
1354
|
+
}
|
|
1355
|
+
const n = Number.parseInt(value, 10);
|
|
1356
|
+
if (Number.isNaN(n) || n <= 0) {
|
|
1357
|
+
throw new Error(`invalid --timeout-ms: ${value}`);
|
|
1358
|
+
}
|
|
1359
|
+
return n;
|
|
1360
|
+
}
|
|
1361
|
+
function parseMaxConcurrency(value) {
|
|
1362
|
+
if (value === undefined) {
|
|
1363
|
+
return undefined;
|
|
1364
|
+
}
|
|
1365
|
+
const n = Number.parseInt(value, 10);
|
|
1366
|
+
if (Number.isNaN(n) || n <= 0) {
|
|
1367
|
+
throw new Error(`invalid --max-concurrency: ${value}`);
|
|
1368
|
+
}
|
|
1369
|
+
return n;
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Load mounts the same way `serve` does (multi-agent layout by default).
|
|
1373
|
+
*/
|
|
1374
|
+
function loadMounts(dir) {
|
|
1375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1376
|
+
return resolveAgentMounts(dir);
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
function section(title, items) {
|
|
1380
|
+
if (items.length === 0) {
|
|
1381
|
+
return "";
|
|
1382
|
+
}
|
|
1383
|
+
return `${title}:\n${items.map(item => ` - ${item}`).join("\n")}`;
|
|
1384
|
+
}
|
|
1385
|
+
function isEnterOnly(text) {
|
|
1386
|
+
return text.length > 0 && [...text].every(ch => ch === "\n" || ch === "\r");
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* `dev [path]` takes a positional project root; `serve` keeps `--dir` only.
|
|
1390
|
+
* Reject mixing a positional with an explicit `--dir`, and extra args on `dev`.
|
|
1391
|
+
*/
|
|
1392
|
+
function resolveServeDir(args) {
|
|
1393
|
+
if (args.command !== "dev") {
|
|
1394
|
+
return args.dir;
|
|
1395
|
+
}
|
|
1396
|
+
if (args.positionals.length > 1) {
|
|
1397
|
+
return {
|
|
1398
|
+
error: `${CLI} dev: unexpected arguments: ${args.positionals.slice(1).join(" ")}\n`,
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
const positionalDir = args.positionals[0];
|
|
1402
|
+
if (positionalDir === undefined) {
|
|
1403
|
+
return args.dir;
|
|
1404
|
+
}
|
|
1405
|
+
if (args.dirFlagPassed && args.dir !== positionalDir) {
|
|
1406
|
+
return {
|
|
1407
|
+
error: `${CLI} dev: pass a path as a positional or --dir, not both\n`,
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1410
|
+
return positionalDir;
|
|
1411
|
+
}
|
|
1412
|
+
function printServeBanner(handle, opts) {
|
|
1413
|
+
var _a, _b;
|
|
1414
|
+
var _c;
|
|
1415
|
+
const c = stdoutPalette();
|
|
1416
|
+
const agents = handle.agents;
|
|
1417
|
+
// Name the framework build in the boot line: hosted engines install the
|
|
1418
|
+
// published package at provision time, so the serve log is the only
|
|
1419
|
+
// durable record of which build a deployment's turns actually ran on.
|
|
1420
|
+
const versionTag = c.dim(`(${PACKAGE_NAME} ${packageVersion()})`);
|
|
1421
|
+
if (agents.length > 1) {
|
|
1422
|
+
process.stdout.write(`${agents.length} agents listening ${versionTag}\n`);
|
|
1423
|
+
}
|
|
1424
|
+
else {
|
|
1425
|
+
const info = projectInfo((_c = (_a = agents[0]) === null || _a === void 0 ? void 0 : _a.project) !== null && _c !== void 0 ? _c : handle.project);
|
|
1426
|
+
process.stdout.write(`${info.name} listening ${versionTag}\n`);
|
|
1427
|
+
}
|
|
1428
|
+
const playgroundUrl = resolvePlaygroundBannerUrl(handle, opts.noPlayground);
|
|
1429
|
+
if (playgroundUrl !== undefined) {
|
|
1430
|
+
process.stdout.write(` playground ${c.cyan(playgroundUrl)}\n`);
|
|
1431
|
+
}
|
|
1432
|
+
// `/` is only mounted when the playground host home is enabled.
|
|
1433
|
+
if (!opts.noPlayground) {
|
|
1434
|
+
process.stdout.write(` home ${c.cyan(`${handle.url}/`)}\n`);
|
|
1435
|
+
}
|
|
1436
|
+
// Dev is playground-first (Vite proxies the API). Keep API/route detail for
|
|
1437
|
+
// plain `serve`, where operators often curl the HTTP surface directly.
|
|
1438
|
+
if (!opts.dev) {
|
|
1439
|
+
process.stdout.write(c.dim(` api ${handle.url}\n`));
|
|
1440
|
+
if (agents.length > 1 || ((_b = agents[0]) === null || _b === void 0 ? void 0 : _b.slug) !== "") {
|
|
1441
|
+
for (const agent of agents) {
|
|
1442
|
+
const info = projectInfo(agent.project);
|
|
1443
|
+
process.stdout.write(c.dim(` /${agent.slug} ${info.name}\n`));
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
else {
|
|
1447
|
+
const info = projectInfo(handle.project);
|
|
1448
|
+
process.stdout.write(c.dim(` POST ${handle.url}/v1/session\n`));
|
|
1449
|
+
process.stdout.write(c.dim(` GET ${handle.url}/v1/session/:sessionId/stream\n`));
|
|
1450
|
+
for (const channel of info.channels) {
|
|
1451
|
+
if (channel.id === "http") {
|
|
1452
|
+
continue;
|
|
1453
|
+
}
|
|
1454
|
+
for (const route of channel.routes) {
|
|
1455
|
+
process.stdout.write(c.dim(` ${route.method} ${handle.url}${route.url}\n`));
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
if (info.schedules.length > 0) {
|
|
1459
|
+
const scheduleMode = opts.noSchedules ? "disabled" : "running on cron cadence (UTC)";
|
|
1460
|
+
process.stdout.write(c.dim(` schedules: ${info.schedules.map(s => s.name).join(", ")} — ${scheduleMode}\n`));
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
if (handle.docsUrl !== undefined) {
|
|
1464
|
+
process.stdout.write(c.dim(` docs ${handle.docsUrl}\n`));
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
if (opts.bearerToken) {
|
|
1468
|
+
process.stdout.write(c.dim(" auth: bearer token required on API routes (playground has a token field)\n"));
|
|
1469
|
+
}
|
|
1470
|
+
if (opts.dev &&
|
|
1471
|
+
(process.env.GITHUB_WEBHOOK_SECRET === undefined || process.env.GITHUB_WEBHOOK_SECRET === "") &&
|
|
1472
|
+
handle.agents.some(agent => projectInfo(agent.project).channels.some(c => c.kind === "github"))) {
|
|
1473
|
+
process.stdout.write(c.dim(` github: dev accepts unsigned loopback deliveries (${CLI} github forward works without a secret; set GITHUB_WEBHOOK_SECRET to verify signatures)\n`));
|
|
1474
|
+
}
|
|
1475
|
+
if (opts.dev &&
|
|
1476
|
+
(process.env.GITLAB_WEBHOOK_SECRET === undefined || process.env.GITLAB_WEBHOOK_SECRET === "") &&
|
|
1477
|
+
handle.agents.some(agent => projectInfo(agent.project).channels.some(c => c.kind === "gitlab"))) {
|
|
1478
|
+
process.stdout.write(c.dim(` gitlab: dev accepts unsigned loopback deliveries (${CLI} gitlab replay works without a secret; set GITLAB_WEBHOOK_SECRET to verify X-Gitlab-Token)\n`));
|
|
1479
|
+
}
|
|
1480
|
+
if (opts.dev &&
|
|
1481
|
+
(process.env.BITBUCKET_WEBHOOK_SECRET === undefined ||
|
|
1482
|
+
process.env.BITBUCKET_WEBHOOK_SECRET === "") &&
|
|
1483
|
+
handle.agents.some(agent => projectInfo(agent.project).channels.some(c => c.kind === "bitbucket"))) {
|
|
1484
|
+
process.stdout.write(c.dim(` bitbucket: dev accepts unsigned loopback deliveries (${CLI} bitbucket replay works without a secret; set BITBUCKET_WEBHOOK_SECRET to verify X-Hub-Signature)\n`));
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
/** Prefer the Vite playground URL in --dev; otherwise the static SPA path. */
|
|
1488
|
+
function resolvePlaygroundBannerUrl(handle, noPlayground) {
|
|
1489
|
+
if (noPlayground) {
|
|
1490
|
+
return undefined;
|
|
1491
|
+
}
|
|
1492
|
+
if (handle.playgroundDevUrl !== undefined) {
|
|
1493
|
+
return handle.playgroundDevUrl.replace(/\/$/, "");
|
|
1494
|
+
}
|
|
1495
|
+
if (handle.agents.length === 1) {
|
|
1496
|
+
return `${handle.agents[0].url}/playground`;
|
|
1497
|
+
}
|
|
1498
|
+
if (handle.agents.length > 1) {
|
|
1499
|
+
return handle.url;
|
|
1500
|
+
}
|
|
1501
|
+
return undefined;
|
|
1502
|
+
}
|
|
1503
|
+
function formatModel(model) {
|
|
1504
|
+
if (model === undefined) {
|
|
1505
|
+
return "(unset)";
|
|
1506
|
+
}
|
|
1507
|
+
if (typeof model === "string") {
|
|
1508
|
+
return model;
|
|
1509
|
+
}
|
|
1510
|
+
return JSON.stringify(model);
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
* The Cursor SDK's Connect/HTTP2 client sometimes emits uncaught stream
|
|
1514
|
+
* or TLS errors (notably `NGHTTP2_FRAME_SIZE_ERROR` on large shell/tool
|
|
1515
|
+
* payloads, and mid-handshake socket disconnects) outside the promise
|
|
1516
|
+
* `run.wait()` returns. Without a listener the unhandled rejection exits
|
|
1517
|
+
* the whole agent-serve process with code 1. Swallow those transport
|
|
1518
|
+
* failures so turns can fail cleanly and the server stays up.
|
|
1519
|
+
*/
|
|
1520
|
+
function installTransportErrorGuards() {
|
|
1521
|
+
const isTransportNoise = (reason) => {
|
|
1522
|
+
var _a;
|
|
1523
|
+
const message = reason instanceof Error ? `${reason.message}\n${(_a = reason.stack) !== null && _a !== void 0 ? _a : ""}` : String(reason);
|
|
1524
|
+
const code = reason !== null &&
|
|
1525
|
+
typeof reason === "object" &&
|
|
1526
|
+
"code" in reason &&
|
|
1527
|
+
typeof reason.code === "string"
|
|
1528
|
+
? reason.code
|
|
1529
|
+
: undefined;
|
|
1530
|
+
return (code === "ERR_HTTP2_STREAM_ERROR" ||
|
|
1531
|
+
code === "ECONNRESET" ||
|
|
1532
|
+
code === "ECONNREFUSED" ||
|
|
1533
|
+
code === "EPIPE" ||
|
|
1534
|
+
code === "ETIMEDOUT" ||
|
|
1535
|
+
code === "ENOTFOUND" ||
|
|
1536
|
+
code === "EAI_AGAIN" ||
|
|
1537
|
+
message.includes("NGHTTP2_FRAME_SIZE_ERROR") ||
|
|
1538
|
+
message.includes("Stream closed with error code") ||
|
|
1539
|
+
message.includes("Client network socket disconnected before secure TLS connection was established") ||
|
|
1540
|
+
message.includes("socket hang up") ||
|
|
1541
|
+
message.includes("other side closed"));
|
|
1542
|
+
};
|
|
1543
|
+
const log = (label, reason) => {
|
|
1544
|
+
const text = reason instanceof Error ? reason.message : String(reason);
|
|
1545
|
+
process.stderr.write(`[agent-sdk] ${label} (server stays up): ${text.slice(0, 400)}\n`);
|
|
1546
|
+
};
|
|
1547
|
+
process.on("unhandledRejection", reason => {
|
|
1548
|
+
if (isTransportNoise(reason)) {
|
|
1549
|
+
log("swallowed unhandledRejection", reason);
|
|
1550
|
+
return;
|
|
1551
|
+
}
|
|
1552
|
+
log("unhandledRejection", reason);
|
|
1553
|
+
});
|
|
1554
|
+
process.on("uncaughtException", error => {
|
|
1555
|
+
var _a;
|
|
1556
|
+
if (isTransportNoise(error)) {
|
|
1557
|
+
log("swallowed uncaughtException", error);
|
|
1558
|
+
return;
|
|
1559
|
+
}
|
|
1560
|
+
process.stderr.write(`[agent-sdk] uncaughtException: ${(_a = error.stack) !== null && _a !== void 0 ? _a : error.message}\n`);
|
|
1561
|
+
void flushSessionRunFatal(error).finally(() => {
|
|
1562
|
+
process.exit(1);
|
|
1563
|
+
});
|
|
1564
|
+
});
|
|
1565
|
+
}
|
|
1566
|
+
installTransportErrorGuards();
|
|
1567
|
+
// Authored agent files are TypeScript imported at runtime; install the tsx
|
|
1568
|
+
// loader (and the framework import aliases on compiled runs) before any
|
|
1569
|
+
// command touches a project. In-repo CLI is `bin/agent-serve.ts`.
|
|
1570
|
+
registerAuthoredModuleLoaders()
|
|
1571
|
+
.then(() => main(process.argv.slice(2)))
|
|
1572
|
+
.then(code => {
|
|
1573
|
+
// Ephemeral run/eval can leave SDK/HTTP handles open; force exit.
|
|
1574
|
+
process.exit(code);
|
|
1575
|
+
}, error => {
|
|
1576
|
+
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
1577
|
+
process.exit(1);
|
|
1578
|
+
});
|