Skip to content

release: v0.6.5 — remove, archive and move plans from the CLI (TBP-806) - #62

Merged
iman-nebulr merged 5 commits into
mainfrom
release/v0.6.5
Oct 14, 2026
Merged

iman-nebulr merged 5 commits into
mainfrom
release/v0.6.5

Conversation

@iman-nebulr

Copy link
Copy Markdown
Contributor

Ships #61 (plan delete, plan archive, tenant set-plan) as 0.6.5 on npm latest. This PR is #61's branch plus the version bump and the changelog entry. #61 closes as superseded.

The server side (bridge-api MR !217) is merged to stage.

Ticket: TBP-806

A plan could be created and reshaped from the CLI but never removed, so a
scripted reset (a demo app back to clean) always ended with "delete these
plans in the dashboard". `bridge plan delete --key <key>` removes it. The
server decides what that means: a plan no workspace is on is deleted, one
workspaces are on is archived (they keep it, nobody new can choose it), and
the answer's `action` says which. `--dry-run` shows that decision and the
workspaces on the plan, through the delete's read-only preview route, like
`tenant delete` and `flag delete`. Needs delete authority (`auth login --admin`).

Refs: TBP-806
Claude-Session: 9e06c000
…plan archive and tenant set-plan (TBP-806)

Owner decision: deleting a plan workspaces are on is refused, not turned
into an archive. The server answers 409 PLAN_IN_USE with how many
workspaces are on it and the choices, which the CLI prints as the fix:
archive the plan (`bridge plan archive`, `--undo` brings it back), or move
those workspaces (`bridge tenant set-plan`, the dashboard's plan picker on
the same route, Stripe subscription included) or delete them, then delete.

Refs: TBP-806
Claude-Session: 9e06c000
…TBP-806)

- --dry-run calls only the deletion-preview route and never sends a DELETE.
- The delete sends a DELETE to the encoded key path and prints the
  server's answer.
- A 409 PLAN_IN_USE answer comes out as that code, with the server's fix as
  the hint and exit code 1.
- plan archive sends { archived: true }; --undo sends false.
- tenant set-plan picks the plan's price and posts to planDetails. An
  unknown plan, price or tenant, or an ambiguous tenant name, sends nothing.
- The three commands are registered.

Not run yet: no running container mounts bridge-cli.

Refs: TBP-806
Claude-Session: 9e06c000
…_plan and set_tenant_plan (TBP-806)

Refs: TBP-806
Claude-Session: 9e06c000
@iman-nebulr
iman-nebulr merged commit a2b1e80 into main Oct 14, 2026
6 checks passed
@iman-nebulr
iman-nebulr deleted the release/v0.6.5 branch October 14, 2026 12:11
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