Commit 2331b1e
feat(cli):
* wip(cli): declare --if-match and --draft on os meta delete
* test(cli): drive the real reset door through os meta delete for the pin and draft flags
* feat(cli): forward the reset door's OCC pin and draft-only carriers from `os meta delete`
`os meta delete <type> <name>` was the only in-repo caller of the SDK reset and
called it with two arguments, so every CLI reset was the unpinned, full one: a
concurrent edit was silently destroyed instead of answering `409
metadata_conflict` (ADR-0008), and the published overlay went with any pending
draft. `DeleteMetaItemOptions` landed on both `deleteItem` declarations in
#12181; only the CLI surface was missing.
Adds `--if-match <version>` (string, forwarded to `options.ifMatch`) and
`--draft` (boolean, forwarded as `options.state = 'draft'`). An empty
`--if-match` is refused before the client is built rather than silently
downgraded to the unpinned reset. `?dropStorage` stays withheld.
A run with neither flag sends byte-identical bytes to what it always sent.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TvqBFLRzXdSPcbusDoED9k
---------
Co-authored-by: Claude <noreply@anthropic.com>os meta delete can pin its reset and can discard only the pending draft (#13346)1 parent 200d255 commit 2331b1e
3 files changed
Lines changed: 903 additions & 2 deletions
File tree
- .changeset
- packages/cli/src/commands/meta
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments