Skip to content

feat(cli): generate SDK v2 flag value types - #817

Draft
roncohen wants to merge 2 commits into
mainfrom
feat/cli-v2
Draft

roncohen wants to merge 2 commits into
mainfrom
feat/cli-v2

Conversation

@roncohen

@roncohen roncohen commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What changes

  • Generate direct-value TypeScript declarations for the Node.js, React, and Vue v2 SDKs. Boolean flags are typed as boolean, and Multivariate flag types are inferred from the current Production variants rather than legacy Remote config wrappers.
  • Read flags and targeting through the management API. Reject incomplete flag lists and targeting responses from the wrong environment. Preserve JSON value types and escape generated property names.
  • Update the CLI flag commands, configuration schema, and generated agent instructions for SDK v2. Use the same format list for command options, interactive setup, and generation.

Compatibility

This adds a major Changeset for @reflag/cli. Projects using SDK v1 should stay on CLI 1.x for legacy type generation.

Verification

  • Immutable Yarn install, CLI build, 58 CLI tests, and scoped lint passed.
  • Generated declarations compile against the Node.js, React, and Vue v2 SDKs in the workspace. Package CI now runs this check after building the SDKs.
  • The 17 release safeguards and public manifest check passed. The Changesets plan selects only @reflag/cli for a major bump.
  • Package CI for the refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant