You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: align call sites with regenerated schema and restore image-command parity
CI's `bun run check` regressed after the openapi-typescript regen in e35a88c
because:
- `/v0/me` moved to `/v1/account/me` (with `getAccountMe` having a 2-arg call
signature). Updated `src/index.ts`, `src/lib/posthog.ts`, and
`src/lib/images/utils.ts` accordingly.
- `/v2/feature_flags/{feature_flag_id}` is no longer in the regenerated
schema (only the admin variant is); switched the cli's PostHog flag check
to a raw fetch (the route is still served externally per haproxy.conf).
- Non-OK response envelopes are now `{ error: { type, message } }` (nested);
updated `error?.message` reads in contracts, scale/{create,list,update,utils}
to `error?.error?.message`.
Also restores three regressions reported by the AI reviewer on the shared
image-command factory:
- Re-adds the `os` alias on `sf nodes images` and `sf vm images` so scripts
using `sf nodes os list` / `sf vm os list` keep working.
- `sf nodes images list --json` / `sf vm images list --json` print the bare
image array again (new `sf images list --json` keeps the envelope shape);
controlled by a new `legacyJsonShape` factory option.
- Help text, "next steps", and overflow messages now reference the actual
parent invocation path (`sf nodes images …` / `sf vm images …`) via a new
`parentPath` factory option.
And re-adds the feature-flag-gated `--enable-infiniband` option on
`sf nodes create` (dropped from the create.ts factory refactor), using the
existing posthog `isFeatureEnabled("infiniband-preview")` helper.
Generated with [Indent](https://indent.com)
Co-Authored-By: Indent <noreply@indent.com>
0 commit comments