@cursor/july 0.1.100 → 0.1.102
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/README.md +27 -0
- package/dist/bin/agent-serve.js +3 -2
- package/dist/channels/deployments/deployments-channel.d.ts +41 -5
- package/dist/channels/deployments/deployments-channel.d.ts.map +1 -1
- package/dist/channels/deployments/deployments-channel.js +88 -8
- package/dist/channels/deployments/types.d.ts +4 -3
- package/dist/channels/deployments/types.d.ts.map +1 -1
- 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 +111 -0
- package/dist/channels/origin/index.d.ts +2 -0
- package/dist/channels/origin/index.d.ts.map +1 -1
- package/dist/channels/origin/index.js +2 -0
- package/dist/channels/origin/origin-channel.d.ts +2 -1
- package/dist/channels/origin/origin-channel.d.ts.map +1 -1
- package/dist/channels/origin/origin-channel.js +24 -3
- 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 +23 -1
- package/dist/channels/origin/types.d.ts.map +1 -1
- package/dist/channels/slack/api.d.ts +1 -1
- package/dist/channels/slack/api.d.ts.map +1 -1
- package/dist/channels/slack/api.js +5 -2
- package/dist/channels/slack/assistant.d.ts +1 -1
- package/dist/channels/slack/assistant.d.ts.map +1 -1
- 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 +168 -0
- package/dist/channels/slack/dispatch.d.ts +3 -2
- package/dist/channels/slack/dispatch.d.ts.map +1 -1
- package/dist/channels/slack/dispatch.js +28 -8
- package/dist/channels/slack/inbound.d.ts +8 -0
- package/dist/channels/slack/inbound.d.ts.map +1 -1
- package/dist/channels/slack/inbound.js +28 -0
- package/dist/channels/slack/index.d.ts +1 -0
- package/dist/channels/slack/index.d.ts.map +1 -1
- package/dist/channels/slack/index.js +1 -0
- package/dist/channels/slack/live-delivery.d.ts.map +1 -1
- package/dist/channels/slack/live-delivery.js +11 -4
- package/dist/channels/slack/manifest.d.ts.map +1 -1
- package/dist/channels/slack/manifest.js +2 -1
- package/dist/connections.d.ts +18 -2
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +18 -2
- package/dist/docs/404.html +2 -2
- package/dist/docs/ab.html +4 -4
- package/dist/docs/assets/{app.DZ1e0Ycq.js → app.CLA03RCz.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.FAqdWIXo.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.l8omwc6D.js → VPLocalSearchBox.ifxv-cJV.js} +1 -1
- package/dist/docs/assets/chunks/{theme.JVcD6gel.js → theme.DWCwM6p-.js} +2 -2
- package/dist/docs/assets/concepts.md.rPzW2HZN.js +1 -0
- package/dist/docs/assets/guides_cloud-agents.md.DumwWXba.js +9 -0
- package/dist/docs/assets/guides_cloud-agents.md.DumwWXba.lean.js +1 -0
- package/dist/docs/assets/{guides_cloud-runtime.md.CkYbjnAX.js → guides_cloud-runtime.md.BRirbRAN.js} +1 -1
- package/dist/docs/assets/index.md.Kiht7ell.js +5 -0
- package/dist/docs/assets/{index.md.Bb4k8kUm.lean.js → index.md.Kiht7ell.lean.js} +1 -1
- package/dist/docs/assets/{reference_connections.md.BiGoBAk2.js → reference_connections.md.Di6jJAXF.js} +12 -2
- package/dist/docs/assets/{reference_connections.md.BiGoBAk2.lean.js → reference_connections.md.Di6jJAXF.lean.js} +1 -1
- package/dist/docs/assets/reference_extensions.md.9WQMZe1l.js +56 -0
- package/dist/docs/assets/reference_extensions.md.9WQMZe1l.lean.js +1 -0
- package/dist/docs/assets/{reference_http-api.md.BEJx9XVj.js → reference_http-api.md.oySXBO8o.js} +1 -1
- package/dist/docs/assets/{reference_project-layout.md.Bv4KOtlB.js → reference_project-layout.md.CA6QP6Lw.js} +2 -2
- package/dist/docs/assets/{reference_project-layout.md.Bv4KOtlB.lean.js → reference_project-layout.md.CA6QP6Lw.lean.js} +1 -1
- package/dist/docs/assets/{reference_skills.md.BFW9retM.js → reference_skills.md.l2ezAcaN.js} +1 -1
- package/dist/docs/assets/{reference_tools.md.CvAHsdSp.js → reference_tools.md.B1up2r9W.js} +1 -1
- package/dist/docs/assets/skills_framework-map.md.DDa4MeEW.js +1 -0
- package/dist/docs/assets/{skills_framework-map.md.BTi817yv.lean.js → skills_framework-map.md.DDa4MeEW.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +4 -4
- package/dist/docs/concepts.html +5 -5
- package/dist/docs/concepts.md +3 -3
- package/dist/docs/deployment.html +4 -4
- package/dist/docs/evals.html +4 -4
- package/dist/docs/guides/agent-to-agent.html +4 -4
- package/dist/docs/guides/cloud-agents.html +35 -0
- package/dist/docs/guides/cloud-agents.md +93 -0
- package/dist/docs/guides/cloud-runtime.html +6 -6
- package/dist/docs/guides/cloud-runtime.md +2 -0
- package/dist/docs/guides/convert-automation.html +4 -4
- package/dist/docs/guides/github.html +4 -4
- package/dist/docs/guides/human-in-the-loop.html +4 -4
- package/dist/docs/guides/mcp-oauth.html +4 -4
- package/dist/docs/guides/opentelemetry.html +5 -5
- package/dist/docs/guides/slack.html +4 -4
- package/dist/docs/guides/webhooks.html +4 -4
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +4 -4
- package/dist/docs/index.html +6 -6
- package/dist/docs/index.md +5 -1
- package/dist/docs/llms-full.txt +353 -5
- package/dist/docs/llms.txt +2 -0
- package/dist/docs/quickstart.html +4 -4
- package/dist/docs/reference/agent-config.html +4 -4
- package/dist/docs/reference/artifacts.html +4 -4
- package/dist/docs/reference/channels.html +5 -5
- package/dist/docs/reference/cli.html +4 -4
- package/dist/docs/reference/connections.html +16 -6
- package/dist/docs/reference/connections.md +31 -0
- package/dist/docs/reference/extensions.html +82 -0
- package/dist/docs/reference/extensions.md +200 -0
- package/dist/docs/reference/hooks.html +4 -4
- package/dist/docs/reference/http-api.html +6 -6
- package/dist/docs/reference/http-api.md +1 -1
- package/dist/docs/reference/instructions.html +4 -4
- package/dist/docs/reference/playground.html +4 -4
- package/dist/docs/reference/project-layout.html +6 -6
- package/dist/docs/reference/project-layout.md +3 -0
- package/dist/docs/reference/prompt.html +4 -4
- package/dist/docs/reference/schedules.html +4 -4
- package/dist/docs/reference/sessions.html +4 -4
- package/dist/docs/reference/skills.html +6 -6
- package/dist/docs/reference/skills.md +2 -0
- package/dist/docs/reference/subagents.html +5 -5
- package/dist/docs/reference/tools.html +6 -6
- package/dist/docs/reference/tools.md +2 -0
- package/dist/docs/scaffolding-agents.html +4 -4
- package/dist/docs/skills/ab.html +4 -4
- package/dist/docs/skills/create-agent.html +4 -4
- package/dist/docs/skills/debug.html +4 -4
- package/dist/docs/skills/evals.html +4 -4
- package/dist/docs/skills/framework-map.html +5 -5
- package/dist/docs/skills/framework-map.md +1 -0
- package/dist/docs/skills/github.html +4 -4
- package/dist/docs/skills/hillclimb.html +4 -4
- package/dist/docs/skills/index.html +4 -4
- package/dist/docs/skills/mcp-auth.html +4 -4
- package/dist/docs/skills/otel.html +4 -4
- package/dist/docs/skills/setup-slack.html +4 -4
- package/dist/docs/storage.html +4 -4
- package/dist/docs/templates/agentic-owners.html +4 -4
- package/dist/docs/templates/agents-md.html +4 -4
- package/dist/docs/templates/code-wiki.html +4 -4
- package/dist/docs/templates/demo.html +4 -4
- package/dist/docs/templates/pr-autofixer.html +4 -4
- package/dist/docs/templates/security-help.html +4 -4
- package/dist/docs/templates/security-reviewer.html +4 -4
- package/dist/docs/templates/triage.html +4 -4
- package/dist/docs/troubleshooting.html +4 -4
- package/dist/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 +286 -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 +85 -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 +55 -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 +41 -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.d.ts +73 -0
- package/dist/extensions.d.ts.map +1 -0
- package/dist/extensions.js +112 -0
- package/dist/files-backends/cursor-hosted.d.ts +0 -8
- package/dist/files-backends/cursor-hosted.d.ts.map +1 -1
- package/dist/files-backends/cursor-hosted.js +1 -11
- package/dist/files.d.ts +5 -1
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +22 -18
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/internal/advertise-tools.d.ts +4 -1
- package/dist/internal/advertise-tools.d.ts.map +1 -1
- package/dist/internal/advertise-tools.js +20 -1
- package/dist/internal/as-of.d.ts +18 -0
- package/dist/internal/as-of.d.ts.map +1 -1
- package/dist/internal/as-of.js +131 -0
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +64 -19
- package/dist/internal/continuation-identity.d.ts.map +1 -1
- package/dist/internal/continuation-identity.js +3 -1
- package/dist/internal/conversation-mirror.d.ts.map +1 -1
- package/dist/internal/conversation-mirror.js +13 -15
- package/dist/internal/cursor/backend-client.d.ts +8 -1
- package/dist/internal/cursor/backend-client.d.ts.map +1 -1
- package/dist/internal/cursor/backend-client.js +25 -9
- package/dist/internal/cursor/hosted-deployment-secrets.d.ts +16 -0
- package/dist/internal/cursor/hosted-deployment-secrets.d.ts.map +1 -0
- package/dist/internal/cursor/hosted-deployment-secrets.js +61 -0
- package/dist/internal/cursor/hosted-store-secrets.d.ts +11 -0
- package/dist/internal/cursor/hosted-store-secrets.d.ts.map +1 -1
- package/dist/internal/cursor/hosted-store-secrets.js +15 -0
- package/dist/internal/cursor-deployment-relay.d.ts +15 -1
- package/dist/internal/cursor-deployment-relay.d.ts.map +1 -1
- package/dist/internal/cursor-deployment-relay.js +46 -7
- package/dist/internal/deploy-client.d.ts +23 -0
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +54 -12
- package/dist/internal/discovery/ab.d.ts +9 -0
- package/dist/internal/discovery/ab.d.ts.map +1 -0
- package/dist/internal/discovery/ab.js +101 -0
- package/dist/internal/discovery/agent-config.d.ts +35 -0
- package/dist/internal/discovery/agent-config.d.ts.map +1 -0
- package/dist/internal/discovery/agent-config.js +173 -0
- package/dist/internal/discovery/agent.d.ts +11 -0
- package/dist/internal/discovery/agent.d.ts.map +1 -0
- package/dist/internal/discovery/agent.js +306 -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 +17 -0
- package/dist/internal/discovery/connections.d.ts.map +1 -0
- package/dist/internal/discovery/connections.js +436 -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 +570 -0
- package/dist/internal/discovery/extensions.d.ts +19 -0
- package/dist/internal/discovery/extensions.d.ts.map +1 -0
- package/dist/internal/discovery/extensions.js +238 -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 +48 -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 +141 -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 +101 -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 +36 -0
- package/dist/internal/discovery/project.d.ts +53 -0
- package/dist/internal/discovery/project.d.ts.map +1 -0
- package/dist/internal/discovery/project.js +239 -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 +98 -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 +97 -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 +17 -0
- package/dist/internal/discovery/services.d.ts.map +1 -0
- package/dist/internal/discovery/services.js +104 -0
- package/dist/internal/discovery/skills.d.ts +16 -0
- package/dist/internal/discovery/skills.d.ts.map +1 -0
- package/dist/internal/discovery/skills.js +151 -0
- package/dist/internal/discovery/subagent.d.ts +13 -0
- package/dist/internal/discovery/subagent.d.ts.map +1 -0
- package/dist/internal/discovery/subagent.js +19 -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 +159 -0
- package/dist/internal/discovery.d.ts +8 -62
- package/dist/internal/discovery.d.ts.map +1 -1
- package/dist/internal/discovery.js +8 -2210
- package/dist/internal/distribution.d.ts.map +1 -1
- package/dist/internal/distribution.js +5 -0
- package/dist/internal/framework-file-storage.d.ts +3 -3
- package/dist/internal/framework-file-storage.d.ts.map +1 -1
- package/dist/internal/framework-file-storage.js +38 -9
- package/dist/internal/framework-storage-selection.d.ts.map +1 -1
- package/dist/internal/framework-storage-selection.js +8 -7
- package/dist/internal/frontmatter.d.ts +11 -3
- package/dist/internal/frontmatter.d.ts.map +1 -1
- package/dist/internal/frontmatter.js +29 -3
- package/dist/internal/hosted-delivery.d.ts +3 -1
- package/dist/internal/hosted-delivery.d.ts.map +1 -1
- package/dist/internal/hosted-delivery.js +19 -32
- package/dist/internal/hosted-execution-diag.d.ts +5 -0
- package/dist/internal/hosted-execution-diag.d.ts.map +1 -1
- package/dist/internal/hosted-execution-diag.js +5 -0
- package/dist/internal/hosted-execution-flush.d.ts +46 -0
- package/dist/internal/hosted-execution-flush.d.ts.map +1 -0
- package/dist/internal/hosted-execution-flush.js +81 -0
- package/dist/internal/mcp-endpoint.js +1 -0
- package/dist/internal/mcp-host.d.ts +2 -1
- package/dist/internal/mcp-host.d.ts.map +1 -1
- package/dist/internal/mcp-host.js +66 -29
- package/dist/internal/otel/collector.d.ts +13 -0
- package/dist/internal/otel/collector.d.ts.map +1 -1
- package/dist/internal/otel/collector.js +84 -17
- package/dist/internal/otel/http.d.ts.map +1 -1
- package/dist/internal/otel/http.js +2 -10
- 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 +68 -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.map +1 -1
- package/dist/internal/otel/runtime.js +2 -0
- package/dist/internal/review-comments.d.ts +1 -1
- package/dist/internal/review-comments.d.ts.map +1 -1
- package/dist/internal/review-comments.js +4 -4
- package/dist/internal/server.d.ts +3 -0
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +79 -104
- package/dist/internal/session-engine.d.ts +14 -7
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +113 -66
- package/dist/internal/session-run-log.d.ts +3 -1
- package/dist/internal/session-run-log.d.ts.map +1 -1
- package/dist/internal/session-run-log.js +14 -14
- 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/storage-coordinator.d.ts +4 -1
- package/dist/internal/storage-coordinator.d.ts.map +1 -1
- package/dist/internal/storage-coordinator.js +15 -13
- package/dist/internal/tool-catalog.d.ts.map +1 -1
- package/dist/internal/tool-catalog.js +9 -6
- package/dist/internal/tool-policy.d.ts +8 -0
- package/dist/internal/tool-policy.d.ts.map +1 -1
- package/dist/internal/tool-policy.js +19 -7
- package/dist/internal/turn-cost.d.ts +14 -0
- package/dist/internal/turn-cost.d.ts.map +1 -1
- package/dist/internal/turn-cost.js +41 -9
- package/dist/internal/v2-hosting.d.ts +22 -0
- package/dist/internal/v2-hosting.d.ts.map +1 -0
- package/dist/internal/v2-hosting.js +23 -0
- package/dist/otel.d.ts +16 -0
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +26 -0
- package/dist/playground/assets/index-B6C9S9nG.css +1 -0
- package/dist/playground/assets/{index-DVs98vPL.js → index-ZqNoT8Ie.js} +45 -45
- package/dist/playground/index.html +2 -2
- package/dist/storage-protocol.d.ts +47 -22
- package/dist/storage-protocol.d.ts.map +1 -1
- package/dist/storage-protocol.js +90 -54
- package/dist/storage.d.ts +2 -2
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +1 -1
- package/dist/tools.d.ts +9 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +9 -0
- package/dist/types.d.ts +154 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +29 -1
- package/docs/README.md +5 -1
- package/docs/concepts.md +3 -3
- package/docs/guides/cloud-agents.md +98 -0
- package/docs/guides/cloud-runtime.md +2 -0
- package/docs/reference/connections.md +31 -0
- package/docs/reference/extensions.md +205 -0
- package/docs/reference/http-api.md +1 -1
- package/docs/reference/project-layout.md +3 -0
- package/docs/reference/skills.md +2 -0
- package/docs/reference/tools.md +2 -0
- package/package.json +18 -4
- package/skills/framework-map/SKILL.md +1 -0
- package/src/bin/agent-serve.ts +11 -2
- package/src/channels/deployments/deployments-channel.ts +117 -8
- package/src/channels/deployments/types.ts +4 -3
- package/src/channels/origin/defaults.ts +143 -0
- package/src/channels/origin/index.ts +2 -0
- package/src/channels/origin/origin-channel.ts +37 -1
- package/src/channels/origin/state.ts +54 -0
- package/src/channels/origin/types.ts +24 -0
- package/src/channels/slack/api.ts +6 -3
- package/src/channels/slack/assistant.ts +1 -1
- package/src/channels/slack/code-fences.ts +183 -0
- package/src/channels/slack/dispatch.ts +27 -2
- package/src/channels/slack/inbound.ts +37 -0
- package/src/channels/slack/index.ts +1 -0
- package/src/channels/slack/live-delivery.ts +16 -13
- package/src/channels/slack/manifest.ts +2 -1
- package/src/connections.ts +18 -1
- package/src/extensions/cursor-cloud-agents/extension.ts +120 -0
- package/src/extensions/cursor-cloud-agents/lib/backend.ts +395 -0
- package/src/extensions/cursor-cloud-agents/lib/fleet.ts +109 -0
- package/src/extensions/cursor-cloud-agents/lib/inputs.ts +5 -0
- package/src/extensions/cursor-cloud-agents/lib/repos.ts +81 -0
- package/src/extensions/cursor-cloud-agents/lib/transcript.ts +23 -0
- package/src/extensions/cursor-cloud-agents/skills/handoff.md +41 -0
- package/src/extensions/cursor-cloud-agents/tools/cancel.ts +19 -0
- package/src/extensions/cursor-cloud-agents/tools/dump.ts +51 -0
- package/src/extensions/cursor-cloud-agents/tools/get.ts +18 -0
- package/src/extensions/cursor-cloud-agents/tools/launch.ts +64 -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.ts +141 -0
- package/src/files-backends/cursor-hosted.ts +1 -17
- package/src/files.ts +43 -34
- package/src/index.ts +11 -0
- package/src/internal/advertise-tools.ts +37 -12
- package/src/internal/as-of.ts +163 -0
- package/src/internal/cli-deploy.ts +86 -23
- package/src/internal/continuation-identity.ts +3 -1
- package/src/internal/conversation-mirror.ts +23 -18
- package/src/internal/cursor/backend-client.ts +32 -10
- package/src/internal/cursor/hosted-deployment-secrets.ts +72 -0
- package/src/internal/cursor/hosted-store-secrets.ts +27 -0
- package/src/internal/cursor-deployment-relay.ts +65 -8
- package/src/internal/deploy-client.ts +73 -18
- package/src/internal/discovery/ab.ts +111 -0
- package/src/internal/discovery/agent-config.ts +222 -0
- package/src/internal/discovery/agent.ts +360 -0
- package/src/internal/discovery/channels.ts +103 -0
- package/src/internal/discovery/connections.ts +540 -0
- package/src/internal/discovery/context.ts +46 -0
- package/src/internal/discovery/cursor-plugin.ts +708 -0
- package/src/internal/discovery/extensions.ts +348 -0
- package/src/internal/discovery/fs.ts +108 -0
- package/src/internal/discovery/hooks.ts +45 -0
- package/src/internal/discovery/info.ts +179 -0
- package/src/internal/discovery/instructions.ts +113 -0
- package/src/internal/discovery/modules.ts +107 -0
- package/src/internal/discovery/names.ts +44 -0
- package/src/internal/discovery/project.ts +270 -0
- package/src/internal/discovery/runtime.ts +159 -0
- package/src/internal/discovery/schedules.ts +94 -0
- package/src/internal/discovery/seed-files.ts +37 -0
- package/src/internal/discovery/services.ts +124 -0
- package/src/internal/discovery/skills.ts +176 -0
- package/src/internal/discovery/subagent.ts +29 -0
- package/src/internal/discovery/tools.ts +182 -0
- package/src/internal/discovery.ts +20 -2724
- package/src/internal/distribution.ts +5 -0
- package/src/internal/framework-file-storage.ts +43 -9
- package/src/internal/framework-storage-selection.ts +9 -9
- package/src/internal/frontmatter.ts +36 -3
- package/src/internal/hosted-delivery.ts +38 -63
- package/src/internal/hosted-execution-diag.ts +6 -0
- package/src/internal/hosted-execution-flush.ts +142 -0
- package/src/internal/mcp-endpoint.ts +1 -0
- package/src/internal/mcp-host.ts +116 -37
- package/src/internal/otel/collector.ts +125 -25
- package/src/internal/otel/http.ts +2 -12
- package/src/internal/otel/mcp.ts +69 -0
- package/src/internal/otel/propagation.ts +17 -0
- package/src/internal/otel/runtime.ts +2 -0
- package/src/internal/review-comments.ts +5 -2
- package/src/internal/server.ts +81 -100
- package/src/internal/session-engine.ts +152 -39
- package/src/internal/session-run-log.ts +18 -16
- package/src/internal/start-log-store.ts +174 -0
- package/src/internal/storage-coordinator.ts +19 -16
- package/src/internal/tool-catalog.ts +9 -6
- package/src/internal/tool-policy.ts +39 -9
- package/src/internal/turn-cost.ts +47 -4
- package/src/internal/v2-hosting.ts +38 -0
- package/src/otel.ts +38 -0
- package/src/storage-protocol.ts +126 -79
- package/src/storage.ts +5 -0
- package/src/tools.ts +18 -0
- package/src/types.ts +213 -14
- package/dist/docs/assets/chunks/@localSearchIndexroot.j70vvPL4.js +0 -1
- package/dist/docs/assets/concepts.md.lwAgBIMI.js +0 -1
- package/dist/docs/assets/index.md.Bb4k8kUm.js +0 -5
- package/dist/docs/assets/skills_framework-map.md.BTi817yv.js +0 -1
- package/dist/playground/assets/index-BszoQDc6.css +0 -1
- /package/dist/docs/assets/{concepts.md.lwAgBIMI.lean.js → concepts.md.rPzW2HZN.lean.js} +0 -0
- /package/dist/docs/assets/{guides_cloud-runtime.md.CkYbjnAX.lean.js → guides_cloud-runtime.md.BRirbRAN.lean.js} +0 -0
- /package/dist/docs/assets/{reference_http-api.md.BEJx9XVj.lean.js → reference_http-api.md.oySXBO8o.lean.js} +0 -0
- /package/dist/docs/assets/{reference_skills.md.BFW9retM.lean.js → reference_skills.md.l2ezAcaN.lean.js} +0 -0
- /package/dist/docs/assets/{reference_tools.md.CvAHsdSp.lean.js → reference_tools.md.B1up2r9W.lean.js} +0 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Minimal Connect-JSON client for the handful of `aiserver.v1.DashboardService`
|
|
3
3
|
* RPCs agent-serve needs — `GetMe`, `ListSandMcpTools`, `ExecuteSandMcpTool`,
|
|
4
4
|
* and the login-time key lifecycle (`CreateUserApiKey`, `ListUserApiKeys`,
|
|
5
|
-
* `RevokeUserApiKey`).
|
|
5
|
+
* `RevokeUserApiKey`) — plus {@link CursorBackendClient.serviceRpc} for the
|
|
6
|
+
* odd unary call on another `aiserver.v1` service under the same token.
|
|
6
7
|
*
|
|
7
8
|
* Plain `fetch` POSTs with proto-JSON bodies and zod-validated responses:
|
|
8
9
|
* agent-serve is a published package and should not pull the generated
|
|
@@ -26,7 +27,7 @@ import { z } from "zod";
|
|
|
26
27
|
import { boundedToolAnnotations } from "../mcp-host.js";
|
|
27
28
|
import { CURSOR_SESSION_EXCHANGE_PATH, CursorSessionExchangeError, exchangeCursorApiKeyForSession, SESSION_TOKEN_EXPIRY_LEEWAY_MS, } from "./session-token.js";
|
|
28
29
|
const CLIENT_VERSION = "agent-serve-0.1.0";
|
|
29
|
-
const
|
|
30
|
+
const DASHBOARD_SERVICE = "DashboardService";
|
|
30
31
|
const LIST_TIMEOUT_MS = 60000;
|
|
31
32
|
/** Backend-executed tools call out to third-party servers; be generous. */
|
|
32
33
|
const EXECUTE_TIMEOUT_MS = 120000;
|
|
@@ -144,11 +145,11 @@ const executeResponseSchema = z.object({
|
|
|
144
145
|
// Shared request machinery (used by the client and the login-time mint)
|
|
145
146
|
// ============================================================================
|
|
146
147
|
/** One DashboardService Connect-JSON POST; auth is the caller's bearer. */
|
|
147
|
-
function
|
|
148
|
+
function connectRpc(args) {
|
|
148
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
150
|
var _a;
|
|
150
151
|
try {
|
|
151
|
-
return yield args.fetchImpl(`${args.backendUrl}
|
|
152
|
+
return yield args.fetchImpl(`${args.backendUrl}/aiserver.v1.${args.service}/${args.method}`, {
|
|
152
153
|
method: "POST",
|
|
153
154
|
headers: Object.assign({ "content-type": "application/json", authorization: `Bearer ${args.bearer}`, "x-ghost-mode": "true", "x-cursor-client-version": CLIENT_VERSION, "x-cursor-client-type": "agent-serve", "x-request-id": randomUUID() }, args.extraHeaders),
|
|
154
155
|
body: JSON.stringify((_a = args.body) !== null && _a !== void 0 ? _a : {}),
|
|
@@ -313,16 +314,27 @@ export class CursorBackendClient {
|
|
|
313
314
|
return githubTokenResponseSchema.parse(parsed);
|
|
314
315
|
});
|
|
315
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* One unary Connect-JSON call on `aiserver.v1.<service>` with the same
|
|
319
|
+
* token exchange and 401 retry as the dashboard RPCs. Callers parse the
|
|
320
|
+
* proto-JSON response themselves.
|
|
321
|
+
*/
|
|
322
|
+
serviceRpc(service, method, body, timeoutMs = LIST_TIMEOUT_MS) {
|
|
323
|
+
return this.rpc(method, body, timeoutMs, { service });
|
|
324
|
+
}
|
|
316
325
|
rpc(method_1, body_1) {
|
|
317
326
|
return __awaiter(this, arguments, void 0, function* (method, body, timeoutMs = LIST_TIMEOUT_MS, options) {
|
|
318
327
|
var _a, _b;
|
|
328
|
+
var _c;
|
|
329
|
+
const service = (_c = options === null || options === void 0 ? void 0 : options.service) !== null && _c !== void 0 ? _c : DASHBOARD_SERVICE;
|
|
319
330
|
const extraHeaders = (options === null || options === void 0 ? void 0 : options.teamId) === undefined
|
|
320
331
|
? undefined
|
|
321
332
|
: { "x-cursor-team-id": String(options.teamId) };
|
|
322
333
|
const bearer = yield this.getAccessToken();
|
|
323
|
-
const first = yield
|
|
334
|
+
const first = yield connectRpc({
|
|
324
335
|
fetchImpl: this.fetchImpl,
|
|
325
336
|
backendUrl: this.backendUrl,
|
|
337
|
+
service,
|
|
326
338
|
method,
|
|
327
339
|
bearer,
|
|
328
340
|
body,
|
|
@@ -340,9 +352,10 @@ export class CursorBackendClient {
|
|
|
340
352
|
this.token = undefined;
|
|
341
353
|
}
|
|
342
354
|
const retryBearer = yield this.getAccessToken();
|
|
343
|
-
const second = yield
|
|
355
|
+
const second = yield connectRpc({
|
|
344
356
|
fetchImpl: this.fetchImpl,
|
|
345
357
|
backendUrl: this.backendUrl,
|
|
358
|
+
service,
|
|
346
359
|
method,
|
|
347
360
|
bearer: retryBearer,
|
|
348
361
|
body,
|
|
@@ -421,11 +434,12 @@ export class CursorBackendClient {
|
|
|
421
434
|
export function createUserApiKeyWithSessionToken(args) {
|
|
422
435
|
return __awaiter(this, void 0, void 0, function* () {
|
|
423
436
|
var _a;
|
|
424
|
-
const response = yield
|
|
437
|
+
const response = yield connectRpc({
|
|
425
438
|
fetchImpl: (_a = args.fetchImpl) !== null && _a !== void 0 ? _a : fetch,
|
|
426
439
|
backendUrl: args.backendUrl.endsWith("/")
|
|
427
440
|
? args.backendUrl.slice(0, -1)
|
|
428
441
|
: args.backendUrl,
|
|
442
|
+
service: DASHBOARD_SERVICE,
|
|
429
443
|
method: "CreateUserApiKey",
|
|
430
444
|
bearer: args.sessionToken,
|
|
431
445
|
body: { name: args.keyName },
|
|
@@ -463,9 +477,10 @@ export function revokeMintedUserApiKey(args) {
|
|
|
463
477
|
const backendUrl = args.backendUrl.endsWith("/")
|
|
464
478
|
? args.backendUrl.slice(0, -1)
|
|
465
479
|
: args.backendUrl;
|
|
466
|
-
const listResponse = yield
|
|
480
|
+
const listResponse = yield connectRpc({
|
|
467
481
|
fetchImpl,
|
|
468
482
|
backendUrl,
|
|
483
|
+
service: DASHBOARD_SERVICE,
|
|
469
484
|
method: "ListUserApiKeys",
|
|
470
485
|
bearer: args.sessionToken,
|
|
471
486
|
body: {},
|
|
@@ -479,9 +494,10 @@ export function revokeMintedUserApiKey(args) {
|
|
|
479
494
|
// lagging replica — skip rather than touch any other key.
|
|
480
495
|
return;
|
|
481
496
|
}
|
|
482
|
-
const revokeResponse = yield
|
|
497
|
+
const revokeResponse = yield connectRpc({
|
|
483
498
|
fetchImpl,
|
|
484
499
|
backendUrl,
|
|
500
|
+
service: DASHBOARD_SERVICE,
|
|
485
501
|
method: "RevokeUserApiKey",
|
|
486
502
|
bearer: args.sessionToken,
|
|
487
503
|
body: { id: match.id },
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task-time application secrets for hosted v2 freeze restores.
|
|
3
|
+
*
|
|
4
|
+
* The deployment host rewrites this tmpfs document before each admission and
|
|
5
|
+
* execution request. July reloads it synchronously because the process was
|
|
6
|
+
* already running in the frozen snapshot when the task-specific values
|
|
7
|
+
* arrived.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DEFAULT_AGENT_SERVE_DEPLOYMENT_SECRETS_FILE = "/run/cursor/secrets/AGENT_SERVE_DEPLOYMENT_SECRETS.json";
|
|
10
|
+
/**
|
|
11
|
+
* Refresh `process.env` from the latest bound document. A missing or malformed
|
|
12
|
+
* file is a no-op; an empty valid document removes values loaded by an earlier
|
|
13
|
+
* bind after the deployment secret was unset.
|
|
14
|
+
*/
|
|
15
|
+
export declare function refreshBoundDeploymentSecrets(path?: string): void;
|
|
16
|
+
//# sourceMappingURL=hosted-deployment-secrets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-deployment-secrets.d.ts","sourceRoot":"","sources":["../../../src/internal/cursor/hosted-deployment-secrets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,2CAA2C,4DACG,CAAC;AAqC5D;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,GAAE,MAAoD,GACzD,IAAI,CAeN"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task-time application secrets for hosted v2 freeze restores.
|
|
3
|
+
*
|
|
4
|
+
* The deployment host rewrites this tmpfs document before each admission and
|
|
5
|
+
* execution request. July reloads it synchronously because the process was
|
|
6
|
+
* already running in the frozen snapshot when the task-specific values
|
|
7
|
+
* arrived.
|
|
8
|
+
*/
|
|
9
|
+
import { readFileSync } from "node:fs";
|
|
10
|
+
export const DEFAULT_AGENT_SERVE_DEPLOYMENT_SECRETS_FILE = "/run/cursor/secrets/AGENT_SERVE_DEPLOYMENT_SECRETS.json";
|
|
11
|
+
const SECRET_NAME_PATTERN = /^[A-Z][A-Z0-9_]{0,63}$/;
|
|
12
|
+
const appliedSecretNames = new Set();
|
|
13
|
+
function parseBoundSecrets(path) {
|
|
14
|
+
let parsed;
|
|
15
|
+
try {
|
|
16
|
+
parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
17
|
+
}
|
|
18
|
+
catch (_a) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (parsed === null || typeof parsed !== "object") {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
const envelope = parsed;
|
|
25
|
+
if (envelope.v !== 1 ||
|
|
26
|
+
envelope.secrets === null ||
|
|
27
|
+
typeof envelope.secrets !== "object" ||
|
|
28
|
+
Array.isArray(envelope.secrets)) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const secrets = {};
|
|
32
|
+
for (const [name, value] of Object.entries(envelope.secrets)) {
|
|
33
|
+
if (SECRET_NAME_PATTERN.test(name) &&
|
|
34
|
+
!name.startsWith("CURSOR_") &&
|
|
35
|
+
typeof value === "string") {
|
|
36
|
+
secrets[name] = value;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return secrets;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Refresh `process.env` from the latest bound document. A missing or malformed
|
|
43
|
+
* file is a no-op; an empty valid document removes values loaded by an earlier
|
|
44
|
+
* bind after the deployment secret was unset.
|
|
45
|
+
*/
|
|
46
|
+
export function refreshBoundDeploymentSecrets(path = DEFAULT_AGENT_SERVE_DEPLOYMENT_SECRETS_FILE) {
|
|
47
|
+
const secrets = parseBoundSecrets(path);
|
|
48
|
+
if (secrets === undefined) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
for (const name of appliedSecretNames) {
|
|
52
|
+
if (!(name in secrets)) {
|
|
53
|
+
delete process.env[name];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
appliedSecretNames.clear();
|
|
57
|
+
for (const [name, value] of Object.entries(secrets)) {
|
|
58
|
+
process.env[name] = value;
|
|
59
|
+
appliedSecretNames.add(name);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -12,4 +12,15 @@ export declare const DEFAULT_AGENT_SERVE_FRAMEWORK_STORE_SOURCE_ID_FILE = "/run/
|
|
|
12
12
|
export declare function resolveDeploymentStoreSourceIdSync(env?: NodeJS.ProcessEnv): string | undefined;
|
|
13
13
|
/** Engine framework store: env, then task-bind file. */
|
|
14
14
|
export declare function resolveFrameworkStoreSourceIdSync(env?: NodeJS.ProcessEnv): string | undefined;
|
|
15
|
+
export type CursorManagedV2StoreIds = {
|
|
16
|
+
deploymentStoreSourceId: string;
|
|
17
|
+
frameworkStoreSourceId: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the complete managed-v2 store identity at the process boundary.
|
|
21
|
+
*
|
|
22
|
+
* Freeze snapshots construct storage before task bind, so callers keep this
|
|
23
|
+
* resolver lazy. Once an operation needs storage, both ids are mandatory.
|
|
24
|
+
*/
|
|
25
|
+
export declare function requireCursorManagedV2StoreIdsSync(env?: NodeJS.ProcessEnv): CursorManagedV2StoreIds;
|
|
15
26
|
//# sourceMappingURL=hosted-store-secrets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-store-secrets.d.ts","sourceRoot":"","sources":["../../../src/internal/cursor/hosted-store-secrets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,wCAAwC,oDACF,CAAC;AAEpD,eAAO,MAAM,kDAAkD,8DACF,CAAC;AA4B9D,4DAA4D;AAC5D,wBAAgB,kCAAkC,CAChD,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,GAAG,SAAS,CAUpB;AAED,wDAAwD;AACxD,wBAAgB,iCAAiC,CAC/C,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,GAAG,SAAS,CAUpB"}
|
|
1
|
+
{"version":3,"file":"hosted-store-secrets.d.ts","sourceRoot":"","sources":["../../../src/internal/cursor/hosted-store-secrets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,wCAAwC,oDACF,CAAC;AAEpD,eAAO,MAAM,kDAAkD,8DACF,CAAC;AA4B9D,4DAA4D;AAC5D,wBAAgB,kCAAkC,CAChD,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,GAAG,SAAS,CAUpB;AAED,wDAAwD;AACxD,wBAAgB,iCAAiC,CAC/C,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,GAAG,SAAS,CAUpB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,uBAAuB,CAYzB"}
|
|
@@ -46,3 +46,18 @@ export function resolveFrameworkStoreSourceIdSync(env = process.env) {
|
|
|
46
46
|
}
|
|
47
47
|
return readBoundSecretFile(FRAMEWORK_STORE_SOURCE_ID_FILE_ENV, DEFAULT_AGENT_SERVE_FRAMEWORK_STORE_SOURCE_ID_FILE, env);
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Resolve the complete managed-v2 store identity at the process boundary.
|
|
51
|
+
*
|
|
52
|
+
* Freeze snapshots construct storage before task bind, so callers keep this
|
|
53
|
+
* resolver lazy. Once an operation needs storage, both ids are mandatory.
|
|
54
|
+
*/
|
|
55
|
+
export function requireCursorManagedV2StoreIdsSync(env = process.env) {
|
|
56
|
+
const deploymentStoreSourceId = resolveDeploymentStoreSourceIdSync(env);
|
|
57
|
+
const frameworkStoreSourceId = resolveFrameworkStoreSourceIdSync(env);
|
|
58
|
+
if (deploymentStoreSourceId === undefined ||
|
|
59
|
+
frameworkStoreSourceId === undefined) {
|
|
60
|
+
throw new Error("Cursor-managed AgentSDK v2 requires AGENT_SERVE_STORE_SOURCE_ID and AGENT_SERVE_FRAMEWORK_STORE_SOURCE_ID");
|
|
61
|
+
}
|
|
62
|
+
return { deploymentStoreSourceId, frameworkStoreSourceId };
|
|
63
|
+
}
|
|
@@ -18,22 +18,36 @@ export interface ResolvedSubscription {
|
|
|
18
18
|
environments: string[];
|
|
19
19
|
events: Set<DeploymentEventType>;
|
|
20
20
|
}
|
|
21
|
+
export type DeploymentSubscriptionSource = readonly ResolvedSubscription[] | (() => readonly ResolvedSubscription[]);
|
|
21
22
|
export interface DeploymentEventRelayOptions {
|
|
22
23
|
baseUrl: string;
|
|
23
24
|
apiKey: string;
|
|
24
25
|
stateDir: string;
|
|
25
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Snapshot or a getter. A getter is re-read on every registration
|
|
28
|
+
* heartbeat so a channel that refreshes `deploySourceUris` after start
|
|
29
|
+
* can add sources without restarting the relay.
|
|
30
|
+
*/
|
|
31
|
+
subscriptions: DeploymentSubscriptionSource;
|
|
26
32
|
dispatch: (event: DeploymentEvent) => Promise<void>;
|
|
27
33
|
logger: (line: string) => void;
|
|
28
34
|
fetchImpl?: typeof fetch;
|
|
29
35
|
pollWaitMs?: number;
|
|
30
36
|
}
|
|
37
|
+
/** Current subscriptions: a live getter, otherwise the snapshot. */
|
|
38
|
+
export declare function currentDeploymentSubscriptions(subscriptions: DeploymentSubscriptionSource): readonly ResolvedSubscription[];
|
|
31
39
|
/** Normalize the channel's `deploySourceUris` option into concrete subscriptions. */
|
|
32
40
|
export declare function resolveDeploymentSubscriptions(options: {
|
|
33
41
|
deploySourceUris: readonly (string | DeploymentSubscription)[];
|
|
34
42
|
environments?: readonly string[];
|
|
35
43
|
events?: readonly DeploymentEventType[];
|
|
36
44
|
}): ResolvedSubscription[];
|
|
45
|
+
/**
|
|
46
|
+
* Union per-channel subscriptions, widening events and environments when
|
|
47
|
+
* the same deploy source appears more than once. An empty environment
|
|
48
|
+
* list means every environment and absorbs a narrower list.
|
|
49
|
+
*/
|
|
50
|
+
export declare function mergeResolvedSubscriptions(groups: readonly (readonly ResolvedSubscription[])[]): ResolvedSubscription[];
|
|
37
51
|
/** Whether one confirmed subscription wants this event. */
|
|
38
52
|
export declare function deploymentEventMatches(subscription: ResolvedSubscription, envelope: DeploymentEvent): boolean;
|
|
39
53
|
/** One channel the host can deliver a deployment event to. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-deployment-relay.d.ts","sourceRoot":"","sources":["../../src/internal/cursor-deployment-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,kCAAkC,CAAC;AAK1C;yBACyB;AACzB,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAClC;AAQD,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"cursor-deployment-relay.d.ts","sourceRoot":"","sources":["../../src/internal/cursor-deployment-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,kCAAkC,CAAC;AAK1C;yBACyB;AACzB,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,EAAE,GAAG,CAAC,mBAAmB,CAAC,CA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C/C,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACvD;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IACjD,OAAO,EAAE,SAAS,wBAAwB,EAAE,CAAC;IAC7C,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BhB;AAED,qBAAa,oBAAoB;IAKnB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwC;IAC7D,OAAO,CAAC,UAAU,CAA2C;IAC7D,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAqB;IAE1D,YAA6B,OAAO,EAAE,2BAA2B,EAuEhE;IAED;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAsBtB,KAAK,IAAI,IAAI,CAEZ;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1B;CACF"}
|
|
@@ -29,6 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
29
29
|
};
|
|
30
30
|
import { CursorRelayCore } from "./cursor-relay-core.js";
|
|
31
31
|
const DEFAULT_EVENTS = ["deployment.succeeded"];
|
|
32
|
+
/** Current subscriptions: a live getter, otherwise the snapshot. */
|
|
33
|
+
export function currentDeploymentSubscriptions(subscriptions) {
|
|
34
|
+
return typeof subscriptions === "function" ? subscriptions() : subscriptions;
|
|
35
|
+
}
|
|
32
36
|
/** Normalize the channel's `deploySourceUris` option into concrete subscriptions. */
|
|
33
37
|
export function resolveDeploymentSubscriptions(options) {
|
|
34
38
|
var _a, _b, _c, _d;
|
|
@@ -64,10 +68,44 @@ export function resolveDeploymentSubscriptions(options) {
|
|
|
64
68
|
? []
|
|
65
69
|
: [...new Set([...existing.environments, ...environments])];
|
|
66
70
|
}
|
|
67
|
-
// Empty is legal here and means "this channel wants nothing"
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
+
// Empty is legal here and means "this channel wants nothing". The
|
|
72
|
+
// wire-level empty list means deregister. The host re-resolves on each
|
|
73
|
+
// heartbeat, so a channel that later fills `deploySourceUris` can
|
|
74
|
+
// register without a restart.
|
|
75
|
+
return [...bySource.values()];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Union per-channel subscriptions, widening events and environments when
|
|
79
|
+
* the same deploy source appears more than once. An empty environment
|
|
80
|
+
* list means every environment and absorbs a narrower list.
|
|
81
|
+
*/
|
|
82
|
+
export function mergeResolvedSubscriptions(groups) {
|
|
83
|
+
const bySource = new Map();
|
|
84
|
+
for (const group of groups) {
|
|
85
|
+
for (const subscription of group) {
|
|
86
|
+
const existing = bySource.get(subscription.deploySourceUri);
|
|
87
|
+
if (existing === undefined) {
|
|
88
|
+
bySource.set(subscription.deploySourceUri, {
|
|
89
|
+
deploySourceUri: subscription.deploySourceUri,
|
|
90
|
+
environments: [...subscription.environments],
|
|
91
|
+
events: new Set(subscription.events),
|
|
92
|
+
});
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
for (const event of subscription.events)
|
|
96
|
+
existing.events.add(event);
|
|
97
|
+
existing.environments =
|
|
98
|
+
existing.environments.length === 0 ||
|
|
99
|
+
subscription.environments.length === 0
|
|
100
|
+
? []
|
|
101
|
+
: [
|
|
102
|
+
...new Set([
|
|
103
|
+
...existing.environments,
|
|
104
|
+
...subscription.environments,
|
|
105
|
+
]),
|
|
106
|
+
];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
71
109
|
return [...bySource.values()];
|
|
72
110
|
}
|
|
73
111
|
/** Whether one confirmed subscription wants this event. */
|
|
@@ -119,7 +157,7 @@ export class DeploymentEventRelay {
|
|
|
119
157
|
pollPath: "/v0/deployment-events",
|
|
120
158
|
buildRegistrationBody: (consumerId) => ({
|
|
121
159
|
consumerId,
|
|
122
|
-
subscriptions: options.subscriptions.map((subscription) => ({
|
|
160
|
+
subscriptions: currentDeploymentSubscriptions(options.subscriptions).map((subscription) => ({
|
|
123
161
|
deploySourceUri: subscription.deploySourceUri,
|
|
124
162
|
environments: subscription.environments,
|
|
125
163
|
events: [...subscription.events],
|
|
@@ -134,12 +172,13 @@ export class DeploymentEventRelay {
|
|
|
134
172
|
applyRegistrationResponse: (json) => {
|
|
135
173
|
var _a, _b;
|
|
136
174
|
const result = json;
|
|
175
|
+
const wantedSubscriptions = currentDeploymentSubscriptions(options.subscriptions);
|
|
137
176
|
this.subscribed = new Map();
|
|
138
177
|
this.loggedSkippedSources.clear();
|
|
139
178
|
const lines = [];
|
|
140
179
|
const confirmed = [];
|
|
141
180
|
for (const status of (_a = result.deploySourceUris) !== null && _a !== void 0 ? _a : []) {
|
|
142
|
-
const wanted =
|
|
181
|
+
const wanted = wantedSubscriptions.find((subscription) => subscription.deploySourceUri === status.deploySourceUri);
|
|
143
182
|
if (!status.isSubscribed || wanted === undefined) {
|
|
144
183
|
lines.push(`not subscribed to ${status.deploySourceUri}: ${(_b = status.detail) !== null && _b !== void 0 ? _b : "unknown reason"}`);
|
|
145
184
|
continue;
|
|
@@ -149,7 +188,7 @@ export class DeploymentEventRelay {
|
|
|
149
188
|
}
|
|
150
189
|
if (confirmed.length > 0) {
|
|
151
190
|
const kinds = [
|
|
152
|
-
...new Set(
|
|
191
|
+
...new Set(wantedSubscriptions.flatMap((s) => [...s.events])),
|
|
153
192
|
];
|
|
154
193
|
lines.push(`subscribed to ${confirmed.join(", ")} for events: ${kinds.join(", ")}`);
|
|
155
194
|
}
|
|
@@ -169,6 +169,8 @@ export interface AgentkitDeployStatus {
|
|
|
169
169
|
* Absent on control planes that predate the field.
|
|
170
170
|
*/
|
|
171
171
|
repositories?: string[];
|
|
172
|
+
/** Names of application-scoped secrets (values are never returned). */
|
|
173
|
+
secretNames?: string[];
|
|
172
174
|
}
|
|
173
175
|
export declare const TERMINAL_AGENTKIT_DEPLOY_STATUSES: ReadonlySet<AgentkitCustomerStatus>;
|
|
174
176
|
/**
|
|
@@ -289,17 +291,38 @@ export declare class AgentServeDeployClient {
|
|
|
289
291
|
value: string;
|
|
290
292
|
}>;
|
|
291
293
|
}): Promise<string[]>;
|
|
294
|
+
/** Upsert application-scoped secrets on an AgentSDK v2 deployment. */
|
|
295
|
+
setAgentkitSecrets(args: {
|
|
296
|
+
teamId: number;
|
|
297
|
+
slug: string;
|
|
298
|
+
secrets: Array<{
|
|
299
|
+
name: string;
|
|
300
|
+
value: string;
|
|
301
|
+
}>;
|
|
302
|
+
}): Promise<string[]>;
|
|
292
303
|
/** Secret names + creation times; values are never returned. */
|
|
293
304
|
listSecrets(args: {
|
|
294
305
|
teamId: number;
|
|
295
306
|
slug: string;
|
|
296
307
|
}): Promise<SecretInfo[]>;
|
|
308
|
+
/** Secret names + creation times for an AgentSDK v2 application. */
|
|
309
|
+
listAgentkitSecrets(args: {
|
|
310
|
+
teamId: number;
|
|
311
|
+
slug: string;
|
|
312
|
+
}): Promise<SecretInfo[]>;
|
|
297
313
|
/** Remove one secret by name; 404 when it is not set. */
|
|
298
314
|
deleteSecret(args: {
|
|
299
315
|
teamId: number;
|
|
300
316
|
slug: string;
|
|
301
317
|
name: string;
|
|
302
318
|
}): Promise<void>;
|
|
319
|
+
/** Remove one application-scoped secret from an AgentSDK v2 deployment. */
|
|
320
|
+
deleteAgentkitSecret(args: {
|
|
321
|
+
teamId: number;
|
|
322
|
+
slug: string;
|
|
323
|
+
name: string;
|
|
324
|
+
}): Promise<void>;
|
|
325
|
+
private validateSecrets;
|
|
303
326
|
/**
|
|
304
327
|
* Rotate the deployment's pod credential. Returns the masked new key —
|
|
305
328
|
* the raw key is injected into the pod on the next deploy, never
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-client.d.ts","sourceRoot":"","sources":["../../src/internal/deploy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,MAA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,GACR,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,sBAAsB,CAAC;IAC/B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy-client.d.ts","sourceRoot":"","sources":["../../src/internal/deploy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,WAAW,GACX,SAAS,GACT,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,CAAC;AAEf,sEAAsE;AACtE,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,CAAC;AAEf,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,gBAAgB,CAKjE,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE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AO,CAAC,IAAI,CAAC,CAUhB;IAED,OAAO,CAAC,eAAe;IAuBvB;;;;OAIG;IACG,mBAAmB,CAAC,IAAI,EAAE;QAC9B,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,MAAM,CAAC,CAOlB;IAED;;;;;OAKG;IACG,gBAAgB,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAsBxE;IAED,4DAA4D;IAC5D,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEpC;IAED;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;YAEa,OAAO;CAyCtB;AAKD;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,MAAM,GACV;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAoB9C"}
|
|
@@ -112,6 +112,7 @@ const agentkitDeployStatusSchema = z
|
|
|
112
112
|
statusMessage: z.string().nullable(),
|
|
113
113
|
// Optional: backends that predate the v2 bake-failure column omit it.
|
|
114
114
|
lastError: z.string().nullable().optional(),
|
|
115
|
+
secretNames: z.array(z.string()).optional(),
|
|
115
116
|
})
|
|
116
117
|
.passthrough();
|
|
117
118
|
const agentkitStopAcceptedSchema = z
|
|
@@ -414,18 +415,7 @@ export class AgentServeDeployClient {
|
|
|
414
415
|
*/
|
|
415
416
|
setSecrets(args) {
|
|
416
417
|
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
-
|
|
418
|
-
const nameError = validateSettableSecretName(name);
|
|
419
|
-
if (nameError !== undefined) {
|
|
420
|
-
throw new DeployApiError(nameError, 400);
|
|
421
|
-
}
|
|
422
|
-
if (Buffer.byteLength(value, "utf8") > MAX_SECRET_VALUE_BYTES) {
|
|
423
|
-
throw new DeployApiError(`The value for ${name} is too large (max ${MAX_SECRET_VALUE_BYTES} bytes).`, 400);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
if (args.secrets.length > MAX_SECRETS) {
|
|
427
|
-
throw new DeployApiError(`Too many secrets in one request (${args.secrets.length}); deployments hold at most ${MAX_SECRETS}.`, 400);
|
|
428
|
-
}
|
|
418
|
+
this.validateSecrets(args.secrets);
|
|
429
419
|
const raw = yield this.request({
|
|
430
420
|
method: "PUT",
|
|
431
421
|
path: `/internal/agent-serve/deployments/${encodeURIComponent(args.slug)}/secrets`,
|
|
@@ -435,6 +425,19 @@ export class AgentServeDeployClient {
|
|
|
435
425
|
return setSecretsResponseSchema.parse(raw).secretNames;
|
|
436
426
|
});
|
|
437
427
|
}
|
|
428
|
+
/** Upsert application-scoped secrets on an AgentSDK v2 deployment. */
|
|
429
|
+
setAgentkitSecrets(args) {
|
|
430
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
this.validateSecrets(args.secrets);
|
|
432
|
+
const raw = yield this.request({
|
|
433
|
+
method: "PUT",
|
|
434
|
+
path: `/internal/agentsdk/deployments/${encodeURIComponent(args.slug)}/secrets`,
|
|
435
|
+
body: { teamId: args.teamId, secrets: args.secrets },
|
|
436
|
+
context: { verb: "set secrets", slug: args.slug },
|
|
437
|
+
});
|
|
438
|
+
return setSecretsResponseSchema.parse(raw).secretNames;
|
|
439
|
+
});
|
|
440
|
+
}
|
|
438
441
|
/** Secret names + creation times; values are never returned. */
|
|
439
442
|
listSecrets(args) {
|
|
440
443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -446,6 +449,17 @@ export class AgentServeDeployClient {
|
|
|
446
449
|
return listSecretsResponseSchema.parse(raw).secrets;
|
|
447
450
|
});
|
|
448
451
|
}
|
|
452
|
+
/** Secret names + creation times for an AgentSDK v2 application. */
|
|
453
|
+
listAgentkitSecrets(args) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
const raw = yield this.request({
|
|
456
|
+
method: "GET",
|
|
457
|
+
path: `/internal/agentsdk/deployments/${encodeURIComponent(args.slug)}/secrets?teamId=${args.teamId}`,
|
|
458
|
+
context: { verb: "list secrets", slug: args.slug },
|
|
459
|
+
});
|
|
460
|
+
return listSecretsResponseSchema.parse(raw).secrets;
|
|
461
|
+
});
|
|
462
|
+
}
|
|
449
463
|
/** Remove one secret by name; 404 when it is not set. */
|
|
450
464
|
deleteSecret(args) {
|
|
451
465
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -460,6 +474,34 @@ export class AgentServeDeployClient {
|
|
|
460
474
|
});
|
|
461
475
|
});
|
|
462
476
|
}
|
|
477
|
+
/** Remove one application-scoped secret from an AgentSDK v2 deployment. */
|
|
478
|
+
deleteAgentkitSecret(args) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
const nameError = validateSettableSecretName(args.name);
|
|
481
|
+
if (nameError !== undefined) {
|
|
482
|
+
throw new DeployApiError(nameError, 400);
|
|
483
|
+
}
|
|
484
|
+
yield this.request({
|
|
485
|
+
method: "DELETE",
|
|
486
|
+
path: `/internal/agentsdk/deployments/${encodeURIComponent(args.slug)}/secrets/${encodeURIComponent(args.name)}?teamId=${args.teamId}`,
|
|
487
|
+
context: { verb: "unset secret", slug: args.slug },
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
validateSecrets(secrets) {
|
|
492
|
+
for (const { name, value } of secrets) {
|
|
493
|
+
const nameError = validateSettableSecretName(name);
|
|
494
|
+
if (nameError !== undefined) {
|
|
495
|
+
throw new DeployApiError(nameError, 400);
|
|
496
|
+
}
|
|
497
|
+
if (Buffer.byteLength(value, "utf8") > MAX_SECRET_VALUE_BYTES) {
|
|
498
|
+
throw new DeployApiError(`The value for ${name} is too large (max ${MAX_SECRET_VALUE_BYTES} bytes).`, 400);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
if (secrets.length > MAX_SECRETS) {
|
|
502
|
+
throw new DeployApiError(`Too many secrets in one request (${secrets.length}); deployments hold at most ${MAX_SECRETS}.`, 400);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
463
505
|
/**
|
|
464
506
|
* Rotate the deployment's pod credential. Returns the masked new key —
|
|
465
507
|
* the raw key is injected into the pod on the next deploy, never
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `agent/ab.ts` or `agent/ab/*.ts` plus `agent/ab.config.ts`: live A/B experiments.
|
|
3
|
+
*/
|
|
4
|
+
import type { ABConfigFile } from "../../ab.js";
|
|
5
|
+
import type { DiscoveredAB } from "../../types.js";
|
|
6
|
+
import { type DiscoveryContext } from "./context.js";
|
|
7
|
+
export declare function loadABs(ctx: DiscoveryContext, agentDir: string): Promise<DiscoveredAB[]>;
|
|
8
|
+
export declare function loadABConfig(ctx: DiscoveryContext, agentDir: string): Promise<ABConfigFile | undefined>;
|
|
9
|
+
//# sourceMappingURL=ab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ab.d.ts","sourceRoot":"","sources":["../../../src/internal/discovery/ab.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,gBAAgB,EAAe,MAAM,cAAc,CAAC;AAUlE,wBAAsB,OAAO,CAC3B,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,YAAY,EAAE,CAAC,CA+CzB;AAED,wBAAsB,YAAY,CAChC,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAyBnC"}
|