Skip to content

chore(deps): migrate @daytonaio/sdk 0.160 → 0.183 (breaking API changes) #3444

Description

@AhmedTMM

Split out from #3443 (de-rot pass). The CLI pins @daytonaio/sdk@0.160.0 while latest is 0.183.0 (23 versions behind). Bumping it surfaces breaking API changes in src/daytona/daytona.ts and src/daytona/e2e.ts:

  • .list(...) now returns an AsyncIterableIterator<Sandbox>.items no longer exists (used at daytona.ts:981, e2e.ts:18,23,24).
  • A method signature changed: Expected 0-1 arguments, but got 3 (daytona.ts:172,980, e2e.ts:22,33).

The bump was reverted in #3443 because:

  1. These are real runtime behavior changes, not just types.
  2. The daytona cloud can't be verified end-to-end in CI / without a Daytona account, and the repo policy (.claude/rules/discovery.md) requires clouds be manually tested before shipping.

To migrate

  1. @daytonaio/sdk@0.183.0 in packages/cli/package.json.
  2. Rewrite .list() consumers to iterate the async iterator (or collect to an array) instead of .items.
  3. Fix the changed method call sites flagged by tsc --noEmit.
  4. Update the mock.module("@daytonaio/sdk") mock in daytona.test.ts to match the new shape.
  5. Verify end-to-end against a real Daytona account before merging.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions