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
{{ message }}
Repository navigation
Commit 6a29662
Browse filesBrowse the repository at this point in the historyBrowse files
* chore: extend allowed methods for api client
* feat(cli): introduce `flags` commands
* fix(cli): merge existing variants when adding new ones via `flags update`
`--add-variant` sent only the new variants with `update_mask=variants`,
which replaced the entire list. Now fetches the flag first and appends
new variants to the existing set before patching.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(cli): respect `--json` / `--output` format in `flags update`
Output was always rendered as a table. Now checks `resolveFormat` and
emits JSON when requested, matching `get`, `list`, and `target`.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor(cli): split input resolver into focused modules
Extract file-reading logic into `read-file.ts` and key-alias mapping
into `aliases.ts`, keeping `resolve.ts` as the orchestrator. Also
accept `variants` as an alias for `variant` in `--from-file` JSON so
`{"variants": ["on","off"]}` is no longer silently dropped.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(cli): filter `--from-file` keys and warn on unknown entries
File data was spread into the result unfiltered, so typos and extra
keys passed through silently. Now applies `pickDefined` to file data
and emits a stderr warning for any dropped keys. Adds a `warn` helper
to the output module.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(cli): return raw flag resources in `flags list --json`
JSON mode was returning the trimmed table rows instead of the full API
resources, inconsistent with `flags get --json`. Now returns
`result.data.flags` directly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(cli): validate allocation percentages in `flags target`
Add `validateAllocations` to the shared validation utils and use it in
both the `--add` and `--from-file` paths to reject negative values,
values over 100, and totals exceeding the target.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(cli): encode flag key in URL path segments
Flag keys containing `/` or `?` could hit the wrong endpoint. Now
uses `encodeURIComponent` in `getFlag`, `updateFlag`, `toggleFlag`,
and `archiveFlag`.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments