feat(compute): accept --cpu 16 (new 16vcpu-16gb rung)

JW
2mo ago
+5-5

What

The platform adds a 16vcpu-16gb shared-cpu rung (SHARED_CPU_LADDER = 1, 2, 4, 6, 8, 16) and raises the pro/team/enterprise compute ceiling to 16 vCPU / 16384 MB. Free stays at 4/4. This PR updates the CLI's local grid to match:

  • src/commands/compute.ts CPU_SIZES: adds 16, so parseCpu accepts --cpu 16
  • src/index.ts: both --cpu help strings now read (provider sizes: 1, 2, 4, 6, 8, 16)
  • test/limits.test.ts: the accepted grid now includes 16. Added 12 and 32 as off-grid cases that must still be rejected.

No other hardcoded ladder or 8 vCPU / 8 GB cap text found in src/, test/, README.md. skills/ main has no copy of the size list either.

Pairs with the platform PR: InsForge/instacloud-platform#609. Merge or release this only after that ships. Until then the server rejects --cpu 16 with its own error.

Tests

  • npm run typecheck: clean
  • npm test: 101 files / 2008 tests passed, 0 failed
  • npm run build: clean

🤖 Generated with Claude Code


Summary by cubic

Adds 16 to the local vCPU grid so the CLI accepts --cpu 16, matching the new 16vcpu-16gb shared-cpu rung on the platform. The help strings for --cpu now advertise the new size, and the tests cover 12 and 32 as off-grid values that must still be rejected.

Do not release this before the platform PR ships—until then the server rejects --cpu 16.