Skip to content

Upgrade foc-cli to Synapse SDK v1 #12

Description

@snissn

Objective

Complete Linear GER-1016 by moving foc-cli to Synapse SDK v1 and validating the CLI against the new package and API surface.

Current Evidence

  • @filoz/synapse-sdk v1 has landed, with latest observed version 1.0.1.
  • Target package updates are @filoz/synapse-sdk@^1.0.1 and @filoz/synapse-core@^0.7.0.
  • Scratch upgrade build failures identified v1 migration work in dataset upload, wallet costs, and wallet summary.
  • Existing tests passed against the old dependency set, but did not catch the v1 build drift, so focused test hardening is in scope.

Child Issues

Scope

  • Update Synapse dependency versions and lockfile from a clean main install.
  • Adapt CLI commands to Synapse SDK/Core v1 API changes.
  • Tighten tests and mocks so SDK-shape drift fails in CI.
  • Run calibration smoke validation with a funded wallet when credentials are available.
  • Decide and document release readiness after tests and smoke validation pass.

Validation Gates

  • bun install or equivalent clean install from main succeeds.
  • bun run build passes.
  • bun test passes.
  • Calibration smoke checklist is recorded in the issue or implementation PR.

Release Readiness

This umbrella tracks release readiness for the CLI. Do not publish solely from the dependency bump; release only after API migration, tests, and smoke validation are complete. Reconcile the local package version against the published npm package before release.

Linear

  • GER-1016: Update foc cli once synapse-sdk v1 lands

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions