Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e2a6c9d
feat(cli): generate warehouse commands from the Management API spec
jgoux Nov 16, 2026
b4ecbc1
refactor(cli): read generated command metadata from the spec
jgoux Nov 16, 2026
b764183
refactor(cli): allowlist generated API operations
jgoux Nov 16, 2026
a6e6b63
fix(cli): address review findings for generated API commands
jgoux Nov 16, 2026
4468e67
feat(cli): support more generated command shapes and harden the gener…
jgoux Nov 16, 2026
e176ddc
fix(cli): forward plan-gate entitlements and decode wait pointers in …
jgoux Nov 16, 2026
4ae9f6a
feat(cli): render generated command results as text in a terminal
jgoux Nov 17, 2026
731950d
test(cli): size standard-errors subprocess timeout for loaded runners
jgoux Nov 17, 2026
b2f91f2
feat(cli): add generated Warehouse disable command (#7660)
bnjjj Nov 17, 2026
75169df
fix(cli): reconcile published Warehouse contracts with develop
bnjjj Nov 17, 2026
39e27f3
feat(cli): expose consolidated Warehouse status (#7671)
bnjjj Nov 17, 2026
a03779a
feat(cli): add warehouse connection (#7674)
bnjjj Nov 17, 2026
ec2ecb0
chore(cli): centralize generated command gating and docs
jgoux Nov 18, 2026
80e0921
chore(cli): declare poll-only reads in the API spec
jgoux Nov 18, 2026
e59a469
chore(api): drop Warehouse overrides the deployed spec now ships
jgoux Nov 18, 2026
96738e4
chore(cli): label poll-only reads in the generated command reference
jgoux Nov 18, 2026
e79eb58
chore(cli): gate generated commands on the allowlist alone
jgoux Nov 18, 2026
b87bfdd
chore(cli): let generated commands join hand-written groups
jgoux Nov 18, 2026
d8edf25
chore(cli): provide stack layers per subcommand so any group can be j…
jgoux Nov 18, 2026
9609fa2
feat(cli): add warehouse tables list and get (#7689)
bnjjj Nov 18, 2026
b21f084
feat(cli): add warehouse tables layout get (#7690)
bnjjj Nov 18, 2026
e289aaf
Merge remote-tracking branch 'origin/develop' into feat/generated-war…
jgoux Nov 18, 2026
b9edac9
fix(cli): keep the consent suggestion and regenerate commands after t…
jgoux Nov 18, 2026
1779d81
ci(api): regenerate the API commands in the spec sync
jgoux Nov 18, 2026
3e17855
chore(cli): drop the verb vocabulary and command length cap from API …
jgoux Nov 19, 2026
f17926e
feat(cli): add warehouse table layout updates (#7691)
bnjjj Nov 19, 2026
9849943
feat(cli): add warehouse inspect query-stats (#7708)
bnjjj Nov 19, 2026
f8159c3
test(cli): cover hosted consent for warehouse tables layout update
jgoux Nov 19, 2026
e35de1e
feat(cli): add warehouse inspect capacity (#7714)
bnjjj Nov 19, 2026
1c74853
feat(cli): accept JSON values for nested body fields in generated API…
jgoux Nov 19, 2026
b4079fb
fix(api): align Warehouse layout overrides with the platform contract
jgoux Nov 19, 2026
3d0f0ca
fix(api): reject Warehouse layout patches without a layout setting
jgoux Nov 19, 2026
a7b14b9
test(cli): send only valid inputs in the generated binding matrix
jgoux Nov 19, 2026
4d64866
fix(cli): reject -o in generated API commands and list request values…
jgoux Nov 19, 2026
4a4f962
fix(cli): build the API client lazily in generated commands
jgoux Nov 19, 2026
344ea71
refactor(cli): mount generated API nouns only as new groups
jgoux Nov 19, 2026
2ab276a
fix(cli): derive generated command facts from the generated table
jgoux Nov 19, 2026
4e0635a
feat(cli): add warehouse replication commands (#7718)
bnjjj Nov 19, 2026
9c09ddc
test(cli): expect JSON from piped warehouse enable --wait with text f…
jgoux Nov 19, 2026
d4319e5
fix(cli): map ambiguous-remote auth failures and share routing args
jgoux Nov 19, 2026
fb3958e
refactor(cli): drop the unused command surface and duplicate route fi…
jgoux Nov 19, 2026
71d9f2e
refactor(cli): reject API shapes no warehouse command uses
jgoux Nov 19, 2026
3431c6b
fix(cli): align generated command consent, permissions and output san…
jgoux Nov 19, 2026
2b8c63c
fix(cli): narrow ambiguous-remote auth mapping, escape poll status, r…
jgoux Nov 19, 2026
9a8fe2b
refactor(cli): name the generated noun gate experimental
jgoux Nov 19, 2026
87c87f4
Merge branch 'develop' into feat/generated-warehouse-commands
jgoux Nov 19, 2026
3c932c0
chore(cli): drop the shared side-effects doc for generated commands
jgoux Nov 19, 2026
cdcbb7b
fix(cli): keep generated command descriptions within the help Markdow…
jgoux Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/api-package-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ jobs:
env:
SUPABASE_API_URL: https://api.supabase.com

- name: Regenerate API commands
run: pnpm --filter supabase run api-commands:generate

- name: Format API package
run: pnpm run fmt:fix

- name: Check for generated changes
id: check
run: |
if git diff --ignore-space-at-eol --exit-code --quiet packages/api/src/generated packages/api/scripts/openapi-source.json; then
if git diff --ignore-space-at-eol --exit-code --quiet packages/api/src/generated packages/api/scripts/openapi-source.json apps/cli/src/commands/api/generated.ts apps/cli/src/commands/api/generated.md; then
echo "No generated changes detected."
echo "has_changes=false" >> "$GITHUB_OUTPUT"
else
Expand Down
2 changes: 2 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
".repos",
/* Generated from the OpenAPI spec by `packages/api/scripts/generate.ts`. */
"packages/api/src/generated/contracts.ts",
// Generated command data, whose API paths are data rather than hand-built requests.
"apps/cli/src/commands/api/generated.ts",
// Generated by `supabase gen types` (see `gen:feedback-types` in apps/cli).
"apps/cli/src/shared/feedback/database.types.ts",
/* Standalone Node shim built with `bun build --target node` that does not use Effect. */
Expand Down
3 changes: 3 additions & 0 deletions apps/cli/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ src/commands/<command>/
<command>.errors.ts # domain errors
```

Generated Management API commands have no folder of their own; the generated
[`src/commands/api/generated.md`](src/commands/api/generated.md) is their per-command reference.

Register every command in `src/cli/root.ts`. Keep `.format.ts` and `.encoders.ts` pure. Handler
phase spans are named `<command>.<phase>`; see the root tracing rule. Read `src/shared/` and the
command-level infrastructure under
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"access": "public"
},
"scripts": {
"api-commands:check": "bun scripts/generate-api-commands.ts --check",
"api-commands:generate": "bun scripts/generate-api-commands.ts",
"build": "pnpm build:binary && pnpm build:shim",
"build:binary": "bun scripts/build-binary.ts",
"build:shim": "bun build src/shared/cli/bin.ts --outfile dist/supabase.js --target node",
Expand Down
24 changes: 24 additions & 0 deletions apps/cli/schemas/config/v1.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading