@supacloud/cli 0.76.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18777 -73402
- package/dist/index.test.d.ts +1 -0
- package/dist/migration-inventory.integration.test.d.ts +1 -0
- package/dist/project-read-process.test.d.ts +1 -0
- package/dist/shared/cli.d.ts +18 -0
- package/dist/shared/context.d.ts +26 -0
- package/dist/shared/context.test.d.ts +1 -0
- package/dist/shared/execution-policy.d.ts +14 -0
- package/dist/shared/execution-policy.test.d.ts +1 -0
- package/dist/shared/global-options.d.ts +8 -0
- package/dist/shared/global-options.test.d.ts +1 -0
- package/dist/shared/mutation-protocol.d.ts +45 -0
- package/dist/shared/mutation-protocol.test.d.ts +1 -0
- package/dist/shared/outcome-guidance.d.ts +1 -0
- package/dist/shared/project-ref.d.ts +1 -0
- package/dist/shared/schema.d.ts +13 -0
- package/dist/shared/schema.test.d.ts +1 -0
- package/dist/shared/tool-server.d.ts +15 -0
- package/dist/shared/tool-server.test.d.ts +1 -0
- package/dist/shared/tools/advanced-tools.d.ts +5 -0
- package/dist/shared/tools/advanced-tools.test.d.ts +1 -0
- package/dist/shared/tools/ai-tools.d.ts +28 -0
- package/dist/shared/tools/ai-tools.test.d.ts +1 -0
- package/dist/shared/tools/app-database-check.d.ts +7 -0
- package/dist/shared/tools/app-database-check.test.d.ts +1 -0
- package/dist/shared/tools/app-delivery.test.d.ts +1 -0
- package/dist/shared/tools/app-dev-regressions.test.d.ts +1 -0
- package/dist/shared/tools/app-dev.test.d.ts +1 -0
- package/dist/shared/tools/app-local-dev.d.ts +15 -0
- package/dist/shared/tools/app-local-dev.test.d.ts +1 -0
- package/dist/shared/tools/app-minimal-starter.test.d.ts +1 -0
- package/dist/shared/tools/app-resource-generation.test.d.ts +1 -0
- package/dist/shared/tools/app-resource.d.ts +5 -0
- package/dist/shared/tools/app-scaffold-writes.d.ts +33 -0
- package/dist/shared/tools/app-scaffold-writes.test.d.ts +1 -0
- package/dist/shared/tools/app-starter-attachment-worker.d.ts +2 -0
- package/dist/shared/tools/app-starter-attachments.d.ts +2 -0
- package/dist/shared/tools/app-starter-composition.test.d.ts +1 -0
- package/dist/shared/tools/app-starter-database.d.ts +14 -0
- package/dist/shared/tools/app-starter-environment.d.ts +2 -0
- package/dist/shared/tools/app-starter-postgres.d.ts +4 -0
- package/dist/shared/tools/app-starter-reactive.d.ts +4 -0
- package/dist/shared/tools/app-starter-reactive.test.d.ts +1 -0
- package/dist/shared/tools/app-starter-review-job.d.ts +2 -0
- package/dist/shared/tools/app-starter-roles.d.ts +2 -0
- package/dist/shared/tools/app-starter-roles.test.d.ts +1 -0
- package/dist/shared/tools/app-starter-templates.d.ts +7 -0
- package/dist/shared/tools/app-starter-upload.d.ts +3 -0
- package/dist/shared/tools/app-starter.d.ts +12 -0
- package/dist/shared/tools/app-starter.test.d.ts +1 -0
- package/dist/shared/tools/app-tool-export.d.ts +42 -0
- package/dist/shared/tools/app-tools.d.ts +93 -0
- package/dist/shared/tools/app-tools.test.d.ts +1 -0
- package/dist/shared/tools/app-verification-plan.d.ts +14 -0
- package/dist/shared/tools/app-verification-plan.test.d.ts +1 -0
- package/dist/shared/tools/application-schemas.d.ts +75 -0
- package/dist/shared/tools/application-tools.d.ts +23 -0
- package/dist/shared/tools/application-tools.test.d.ts +1 -0
- package/dist/shared/tools/auth-tools.d.ts +3 -0
- package/dist/shared/tools/auth-tools.test.d.ts +1 -0
- package/dist/shared/tools/branch-tools.d.ts +6 -0
- package/dist/shared/tools/branch-tools.test.d.ts +1 -0
- package/dist/shared/tools/database-tools.d.ts +13 -0
- package/dist/shared/tools/database-tools.test.d.ts +1 -0
- package/dist/shared/tools/db-governance-tools.d.ts +80 -0
- package/dist/shared/tools/db-governance-tools.test.d.ts +1 -0
- package/dist/shared/tools/db-workflow.d.ts +37 -0
- package/dist/shared/tools/db-workflow.test.d.ts +1 -0
- package/dist/shared/tools/deploy-tools.d.ts +36 -0
- package/dist/shared/tools/deploy-tools.test.d.ts +1 -0
- package/dist/shared/tools/edge-function-response.d.ts +55 -0
- package/dist/shared/tools/edge-function-response.test.d.ts +1 -0
- package/dist/shared/tools/frontend-release-control.d.ts +54 -0
- package/dist/shared/tools/frontend-release-control.test.d.ts +1 -0
- package/dist/shared/tools/frontend-tools.d.ts +3 -0
- package/dist/shared/tools/gateway-tools.d.ts +6 -0
- package/dist/shared/tools/gateway-tools.test.d.ts +1 -0
- package/dist/shared/tools/lite-cli-command.d.ts +2 -0
- package/dist/shared/tools/lite-cli-tools.d.ts +46 -0
- package/dist/shared/tools/lite-cli-tools.test.d.ts +1 -0
- package/dist/shared/tools/migration-import.d.ts +22 -0
- package/dist/shared/tools/migration-import.test.d.ts +1 -0
- package/dist/shared/tools/migration-risk.d.ts +36 -0
- package/dist/shared/tools/migration-risk.test.d.ts +1 -0
- package/dist/shared/tools/mutation-tools.d.ts +3 -0
- package/dist/shared/tools/mutation-tools.test.d.ts +1 -0
- package/dist/shared/tools/oauth-client-tools.d.ts +3 -0
- package/dist/shared/tools/oauth-client-tools.test.d.ts +1 -0
- package/dist/shared/tools/project-cli-tools.d.ts +6 -0
- package/dist/shared/tools/project-cli-tools.test.d.ts +1 -0
- package/dist/shared/tools/project-endpoint-read.d.ts +10 -0
- package/dist/shared/tools/project-endpoint-tools.test.d.ts +1 -0
- package/dist/shared/tools/project-read-projection.d.ts +8 -0
- package/dist/shared/tools/project-read-projection.test.d.ts +1 -0
- package/dist/shared/tools/queue-tools.d.ts +6 -0
- package/dist/shared/tools/queue-tools.test.d.ts +1 -0
- package/dist/shared/tools/release-control-response.d.ts +12 -0
- package/dist/shared/tools/release-control-response.test.d.ts +1 -0
- package/dist/shared/tools/release-tools.d.ts +8 -0
- package/dist/shared/tools/release-tools.test.d.ts +1 -0
- package/dist/shared/tools/remote-dev-tools.d.ts +41 -0
- package/dist/shared/tools/remote-dev-tools.test.d.ts +1 -0
- package/dist/shared/tools/scheduled-function-tools.d.ts +7 -0
- package/dist/shared/tools/scheduled-function-tools.test.d.ts +1 -0
- package/dist/shared/tools/storage-tools.d.ts +3 -0
- package/dist/shared/tools/storage-tools.test.d.ts +1 -0
- package/dist/shared/tools/supabase-cli-tools.d.ts +49 -0
- package/dist/shared/tools/supabase-cli-tools.test.d.ts +1 -0
- package/dist/shared/transports/http.d.ts +64 -0
- package/dist/shared/transports/http.test.d.ts +1 -0
- package/dist/supabase-cli.integration.test.d.ts +1 -0
- package/dist/test-helpers.d.ts +1 -0
- package/dist/tool-runtime.d.ts +2 -0
- package/dist/tool-runtime.js +154 -0
- package/dist/tool-runtime.test.d.ts +1 -0
- package/package.json +19 -4
package/README.md
CHANGED
|
@@ -2,9 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Project-scoped CLI for SupaCloud users.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The only command-line executable is `supacloud-cli`. The bare `supacloud` name is reserved
|
|
6
6
|
for the compiled server binary installed at `/usr/local/bin/supacloud`.
|
|
7
7
|
|
|
8
|
+
Tool adapters import `@supacloud/cli/tool-runtime` for typed registration and
|
|
9
|
+
schema decoding. This side-effect-free entrypoint does not initialize the CLI.
|
|
10
|
+
Registration accepts unknown boundary input, decodes it before invoking the
|
|
11
|
+
typed callback, and validates the callback's result. Private `src/shared` imports
|
|
12
|
+
are not supported.
|
|
13
|
+
|
|
8
14
|
## Application Starter
|
|
9
15
|
|
|
10
16
|
```sh
|
|
@@ -240,6 +246,7 @@ supacloud-cli frontend activate_release --ref abc123 --id web \
|
|
|
240
246
|
--expected_activation_id absent \
|
|
241
247
|
--mutation_id <retry-stable-uuid-v4>
|
|
242
248
|
supacloud-cli frontend rollback --ref abc123 --id web --release_id <retained-sha256>
|
|
249
|
+
supacloud-cli frontend rollback --ref abc123 --id web
|
|
243
250
|
```
|
|
244
251
|
|
|
245
252
|
`upload_release` hashes and streams an existing regular ZIP file without
|
|
@@ -255,9 +262,11 @@ normal exact `--confirm-production <ref>` value, and
|
|
|
255
262
|
`get_active_release` automatically handles older servers returning HTTP 404
|
|
256
263
|
with a one-record history page and exact active artifact readback. It never
|
|
257
264
|
falls back for authentication, integrity or server failures.
|
|
258
|
-
`rollback`
|
|
259
|
-
|
|
260
|
-
|
|
265
|
+
`rollback` without `--release_id` asks SupaCloud for a journal-verified previous
|
|
266
|
+
immutable release, reads the current CAS identity and generates the mutation ID
|
|
267
|
+
itself. An explicit `--release_id` remains available for a deliberate rollback
|
|
268
|
+
to any retained release. It never infers a target from content-hash-sorted
|
|
269
|
+
history, reuploads assets or restores a database.
|
|
261
270
|
An uncertain result includes the mutation ID for read-only reconciliation and
|
|
262
271
|
must not be blindly retried.
|
|
263
272
|
|
package/dist/index.d.ts
ADDED