mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-18 23:51:40 +00:00
feat(cli): expand fast_provision experiment to images + docker + sandbox
Builds on the existing PostHog `fast_provision` flag (already wired via shared/feature-flags.ts). The `test` variant now bundles the full provisioning-speed stack rather than images alone: - images: pre-built DO marketplace images (cloud-side faster boot) - docker: Docker CE host image on Hetzner/GCP (cloud-side faster boot) - sandbox: local agents run in a Docker container (local-side faster boot) Users who explicitly pass --beta or --fast still take precedence and skip the experiment bucket. Exposure events are still captured for both variants so PostHog can compute conversion across the broader bundle. Bumps CLI to 1.0.39. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
070be392f5
commit
a5f831e9fb
2 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "1.0.38",
|
||||
"version": "1.0.39",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -969,12 +969,15 @@ async function main(): Promise<void> {
|
|||
|
||||
// fast_provision experiment: if the user did NOT pass --beta or --fast,
|
||||
// bucket them on the PostHog `fast_provision` flag. The `test` variant
|
||||
// turns on images by default; control behaves as before.
|
||||
// turns on images + docker + sandbox by default; control behaves as before.
|
||||
// - images: pre-built DO marketplace images (cloud-side faster boot)
|
||||
// - docker: Docker CE host image on Hetzner/GCP (cloud-side faster boot)
|
||||
// - sandbox: local agents run in a Docker container (local-side faster boot)
|
||||
// Exposure is captured for both variants so PostHog can compute conversion.
|
||||
if (!userOptedIntoBeta) {
|
||||
const variant = getFeatureFlag("fast_provision", "control");
|
||||
if (variant === "test") {
|
||||
betaFeatures.push("images");
|
||||
betaFeatures.push("images", "docker", "sandbox");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue