insta services add/list/remove/scale/upgrade

Merged
JW
4mo ago
+166-13

New services (alias svc) command group, a thin client of the platform /services API.

  • insta services add <postgres|storage|compute> <name> — provision on demand (postgres/compute get a default access domain)
  • insta services list [--json] · insta services remove <type> <name>
  • insta services scale compute <name> <number> [region] — paid plans only
  • insta services upgrade <compute|postgres> <name> <spec> — paid plans only, up-only
  • Gated mutations use rawRequest + handleApproval (202 approval flow); pure validators unit-tested.
  • Reword metrics/logs component → target; README command table + gated-action list updated.

Pairs with insta-platform#4. typecheck + build clean; 18 tests pass (7 new).

🤖 Generated with Claude Code


Summary by cubic

Adds insta services (alias svc) to manage project services via the platform /services API, including add/list/remove and paid scale/upgrade actions. Also aligns observability command names and governance policies with the new service model.

  • New Features

    • insta services group: add <postgres|storage|compute> <name>, list [--json], remove <type> <name>.
    • scale compute <name> <number> [region] (paid) and upgrade <compute|postgres> <name> <spec> (paid, up-only).
    • Default access domain for postgres/compute; --json supported where relevant.
    • Mutations respect governance approvals (202 approval flow).
  • Refactors

    • Metrics/logs CLI now uses “target” instead of “component”.
    • Governance policy adds service.add|service.remove|service.scale|service.upgrade; README updated.