cmux-vm clients: fix both base reds (SDK schema generator under TypeScript 7, stale Rust client)
Merged
AU
10d ago+447+447+012345678901234567890123456789-116-116-012345678901234567890123456789
Summary
Both jobs of cmux VM clients are red on feat-cmux-next (run 40244208111: rust=failure, sdk=failure). This fixes both.
- sdk: since https://github.com/manaflow-ai/cmux/commit/7c83a00f8ff15 moved the SDK to native TypeScript 7.0.2,
bun run generatecrashes. openapi-typescript 7.13 (the latest; peertypescript ^5.x) prints with TypeScript 5's compiler API (ts.factory.createKeywordTypeNode), which the TypeScript 7 package doesn't ship. The generator and TypeScript 5.9.3 now live inworkers/cmux-vm/sdk/codegenwith their own lockfile.bun run generateinstalls that folder frozen and runs the generator from it; the SDK keeps typechecking with TypeScript 7.backend/bun.locklinks the SDK, so it drops the generator's packages too. - rust: the generated client in
cli/crates/cmux-vm-client/src/generated*.rsno longer matchedopenapi.json. These files are theregenerate.shoutput CI uploaded for this branch (run 40264097336).
Testing
- Locally:
bun install --frozen-lockfile && bun run generateinworkers/cmux-vm/sdkreproduces the checked-insrc/schema.d.tsbyte for byte, andbun run typecheck(tsc 7.0.2) passes. - CI on aa3a407: sdk job green.
Observed / Not run
- Observed: the local generate and typecheck, sdk green in CI, and the Cloud adapter install red that the backend lockfile commit fixes.
- Not run: CI on the final head is pending at the time of writing.
Changelog
none
š¤ Generated with Claude Code