@supacloud/cli 0.129.3 → 0.129.4

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 CHANGED
@@ -604,8 +604,8 @@ supacloud release logical_backup_restore --ref abc123 \
604
604
  --backup_id logical-full_abc123_<backup-id-suffix> \
605
605
  --expected_sha256 <64-lowercase-hex> \
606
606
  --restore_confirmation RESTORE_PROJECT:abc123:logical-full_abc123_<backup-id-suffix>:<64-lowercase-hex>
607
- supacloud release postgrest_status --ref abc123
608
- supacloud release postgrest_restart --ref abc123
607
+ supacloud release postrust_status --ref abc123
608
+ supacloud release postrust_restart --ref abc123
609
609
  supacloud release release_canary_fixture_stage_replay --ref abc123 \
610
610
  --subject <central-subject-uuid> --request_id <stage-request-uuid>
611
611
  supacloud release release_canary_fixture_disable_replay --ref abc123 \
@@ -639,13 +639,13 @@ read. It never retries a restore. A transport, server, or unreadable-response
639
639
  failure is reported as `OUTCOME_UNKNOWN`; read the inventory and investigate
640
640
  before any new restore decision.
641
641
 
642
- PostgREST restart reports success only after it receives a matching restart
642
+ Postrust restart reports success only after it receives a matching restart
643
643
  receipt and reads back `desired=running`, `actual=running`, and
644
644
  `health=healthy`. Both mutating controls follow the normal production
645
645
  confirmation and read-only protections.
646
646
 
647
647
  `release_canary_fixture_stage_replay` performs one non-retried, response-bounded
648
- call to the fixed `fa_release_canary_fixture_stage` PostgREST RPC with both
648
+ call to the fixed `fa_release_canary_fixture_stage` Postrust RPC with both
649
649
  bearer and `apikey` service-role headers. It accepts only canonical subject and
650
650
  request UUIDs, requires a strict `staged` and `idempotent=true` four-field
651
651
  receipt, and emits only that safe projection. Before and after the call, the CLI
@@ -654,7 +654,7 @@ configured application origin to match its API origin or alias. Production
654
654
  confirmation is mandatory.
655
655
 
656
656
  `release_canary_fixture_disable_replay` performs one non-retried call to the
657
- fixed `fa_release_canary_fixture_disable` PostgREST RPC using the selected
657
+ fixed `fa_release_canary_fixture_disable` Postrust RPC using the selected
658
658
  project's application service-role origin. Its receipt must contain exactly
659
659
  `fixtureId`, `state="disabled"`, and a boolean `idempotent`; both the first
660
660
  disable (`idempotent=false`) and same-request replay (`idempotent=true`) are
@@ -864,9 +864,9 @@ migrations. Review the baseline for omitted data backfills, reference data,
864
864
  extensions, grants, RLS, functions and triggers, replay it in a clean database,
865
865
  and archive the original directory until clean replay and remote read-back pass.
866
866
 
867
- Migration applications and DDL executions send PostgREST schema reload
867
+ Migration applications and DDL executions send Postrust schema reload
868
868
  notifications (`NOTIFY pgrst_<ref>, 'reload schema'`) so schema changes become
869
- visible without a manual PostgREST restart. Responses distinguish `notified`
869
+ visible without a manual Postrust restart. Responses distinguish `notified`
870
870
  from `notification_failed` and include `ddl_committed=true` when the platform
871
871
  can prove the DDL committed. Admin SQL with explicit transaction control or
872
872
  indirect `CALL`/`DO` execution omits `ddl_committed`; for
package/dist/index.js CHANGED
@@ -13709,7 +13709,7 @@ function parseApplicationDeployResult(value, expected) {
13709
13709
  "mutation_id",
13710
13710
  "plan_sha256"
13711
13711
  ];
13712
- if (bindingKeys.some((key) => backend[key] !== value[key]) || !backend.postgrest_healthy || backend.applied_versions.length > 0 && (!backend.schema_reloaded || !backend.backup_id)) {
13712
+ if (bindingKeys.some((key) => backend[key] !== value[key]) || !backend.postrust_healthy || backend.applied_versions.length > 0 && (!backend.schema_reloaded || !backend.backup_id)) {
13713
13713
  throw new Error("Invalid application deploy receipt binding");
13714
13714
  }
13715
13715
  if (expected) {
@@ -13758,7 +13758,7 @@ var init_application_deploy_operation = __esm(() => {
13758
13758
  after_ledger_digest: sha256,
13759
13759
  applied_versions: _Array_(String2({ pattern: "^\\d{1,20}$" }), { uniqueItems: true }),
13760
13760
  schema_reloaded: Boolean2(),
13761
- postgrest_healthy: Boolean2()
13761
+ postrust_healthy: Boolean2()
13762
13762
  }, closed3);
13763
13763
  ApplicationDeployResultSchema = _Object_({
13764
13764
  schema: Literal("supacloud.application-deploy.v1"),
@@ -14151,7 +14151,7 @@ var init_deployment_evidence = __esm(() => {
14151
14151
  Literal("edge-runtime"),
14152
14152
  Literal("worker"),
14153
14153
  Literal("postgres"),
14154
- Literal("postgrest"),
14154
+ Literal("postrust"),
14155
14155
  Literal("gotrue"),
14156
14156
  Literal("storage"),
14157
14157
  Literal("realtime")
@@ -14215,7 +14215,7 @@ var init_platform_deployment = __esm(() => {
14215
14215
  Literal("web-console"),
14216
14216
  Literal("caddy"),
14217
14217
  Literal("postgres"),
14218
- Literal("postgrest"),
14218
+ Literal("postrust"),
14219
14219
  Literal("gotrue"),
14220
14220
  Literal("realtime"),
14221
14221
  Literal("storage"),
@@ -19540,9 +19540,9 @@ var ACTION_POLICY = {
19540
19540
  scheduled_functions: { read: ["list", "get"], write: ["create", "update", "delete"] },
19541
19541
  mutations: { read: ["status"] },
19542
19542
  release: {
19543
- read: ["logical_backup_list", "logical_backup_status", "postgrest_status"],
19543
+ read: ["logical_backup_list", "logical_backup_status", "postrust_status"],
19544
19544
  local: ["scope_inspect", "scope_rebind", "scope_create", "contract_plan"],
19545
- write: ["logical_backup_create", "logical_backup_restore", "postgrest_restart", "release_canary_fixture_stage_replay", "release_canary_fixture_disable_replay"]
19545
+ write: ["logical_backup_create", "logical_backup_restore", "postrust_restart", "release_canary_fixture_stage_replay", "release_canary_fixture_disable_replay"]
19546
19546
  },
19547
19547
  secrets: { read: ["list"], write: ["upsert", "delete"] },
19548
19548
  frontend: {
@@ -30177,7 +30177,7 @@ var starter_metadata_default = {
30177
30177
  generatedBy: "supacloud/starter-metadata-v1",
30178
30178
  packages: {
30179
30179
  compiler: {
30180
- version: "0.67.1"
30180
+ version: "0.67.2"
30181
30181
  },
30182
30182
  app: {
30183
30183
  version: "0.40.0",
@@ -30195,7 +30195,7 @@ var starter_metadata_default = {
30195
30195
  version: "0.17.0"
30196
30196
  },
30197
30197
  db: {
30198
- version: "0.27.0",
30198
+ version: "0.27.1",
30199
30199
  dependencies: {},
30200
30200
  devDependencies: {},
30201
30201
  peerDependencies: {
@@ -30203,7 +30203,7 @@ var starter_metadata_default = {
30203
30203
  }
30204
30204
  },
30205
30205
  dbZenstack: {
30206
- version: "0.3.3",
30206
+ version: "0.4.0",
30207
30207
  dependencies: {
30208
30208
  "@zenstackhq/orm": "3.10.0",
30209
30209
  "@zenstackhq/schema": "3.10.0",
@@ -30917,7 +30917,7 @@ It fails closed until the application supplies its data adapter.
30917
30917
  ## Frontend and database
30918
30918
 
30919
30919
  @supacloud/js wraps your existing @supabase/supabase-js client. Reuse its session,
30920
- Storage and RLS-protected PostgREST reads. Generated business clients can use
30920
+ Storage and RLS-protected Postrust reads. Generated business clients can use
30921
30921
  createAuthenticatedFetch from @supacloud/js/contracts with that same session.
30922
30922
  Use fixed trusted HTTPS endpoints and never retry an uncertain write.
30923
30923
 
@@ -31379,7 +31379,7 @@ END $role$;
31379
31379
  REVOKE ALL ON public.model_orders FROM PUBLIC;
31380
31380
  ALTER TABLE public.model_orders ENABLE ROW LEVEL SECURITY;
31381
31381
  -- The host role is a trusted command connection. It does not set request.jwt.claims,
31382
- -- so this bypass is not the model row projection. Do not grant it to PostgREST.
31382
+ -- so this bypass is not the model row projection. Do not grant it to Postrust.
31383
31383
  CREATE POLICY model_orders_host ON public.model_orders TO model_orders_app USING (true) WITH CHECK (true);
31384
31384
  -- Authenticated RLS is projected from zenstack/schema.zmodel @@allow rules.
31385
31385
  -- Grants stay reviewed; these policies do not by themselves grant table access.
@@ -31584,7 +31584,7 @@ console.log("Model orders: " + server.url);
31584
31584
  `,
31585
31585
  "AGENTS.md": `# Model command development
31586
31586
 
31587
- Maintain ZModel and TypeBox contracts. Regenerate and commit model/source/compiled artifacts together. Business writes use transaction.db inside the durable command. HTTP and worker use the same facade and original operation key. Bind trusted identity at src/host; resolve current access on every call. The dedicated database role is private to this host, never a browser/PostgREST role. Keep the compiled approval aspect inside the command transaction. Do not fake capabilities, replace results, retry writes in aspects, or add another receipt/audit store. Keep delivery.httpProfile set to model-command and ship the API, identity adapter and synchronous commands in one target. The generated runtime owns the SQL pool; application hosts receive it through createDeliveryDatabase and do not parse DATABASE_URL. Existing standard Functions can keep PostgREST and governed database RPC instead of adding a command service. Daily changes run one related test file and git diff --check.
31587
+ Maintain ZModel and TypeBox contracts. Regenerate and commit model/source/compiled artifacts together. Business writes use transaction.db inside the durable command. HTTP and worker use the same facade and original operation key. Bind trusted identity at src/host; resolve current access on every call. The dedicated database role is private to this host, never a browser/Postrust role. Keep the compiled approval aspect inside the command transaction. Do not fake capabilities, replace results, retry writes in aspects, or add another receipt/audit store. Keep delivery.httpProfile set to model-command and ship the API, identity adapter and synchronous commands in one target. The generated runtime owns the SQL pool; application hosts receive it through createDeliveryDatabase and do not parse DATABASE_URL. Existing standard Functions can keep Postrust and governed database RPC instead of adding a command service. Daily changes run one related test file and git diff --check.
31588
31588
  `,
31589
31589
  "README.md": `# ${name}
31590
31590
 
@@ -31598,7 +31598,7 @@ Model-backed order creation and approval use ZenStack + Bun SQL. HTTP and the wo
31598
31598
  6. For an Edge Function, run bun run build:function for output/function/delivery/delivery.manifest.json. Deploy the model-orders object's prebundled bundle/index.js through the existing Function release flow. Add the APP_ORDERS_DATABASE_URL project secret and allow-list it for this Function. Use the scoped model_orders_app login, not a general platform credential. The build owns one connection per invocation, closes it before returning and starts no listener. Use a shared runtime only for projects in the same trust domain. Disable Function background work for this HTTP API; durable workers have their own entry.
31599
31599
  7. Alternatively, bun run build emits an HTTP executable in generated/delivery. Run its bundle/index.js under your own supervisor with DATABASE_URL, HOST and PORT, or use managed Application delivery. Both build profiles package the API, identity and commands together. Do not deploy a separate command service.
31600
31600
 
31601
- Existing Function paths that use PostgREST or governed RPC can stay on that data plane; model-command is not a mandatory migration.
31601
+ Existing Function paths that use Postrust or governed RPC can stay on that data plane; model-command is not a mandatory migration.
31602
31602
 
31603
31603
  POST /orders accepts { id, title }. POST /orders/:id/approve accepts { expectedVersion }. Both require Idempotency-Key and return a durable receipt; result.outcome is applied or conflict. A stale version is a persisted conflict decision; use a new operation key only for a genuinely new, reviewed attempt. GET /orders/:id returns a policy-filtered order or null. Tenant and owner are never accepted from request bodies.
31604
31604
 
@@ -31606,7 +31606,7 @@ Connect the existing queue consumer to host.worker(claim, signal). Acknowledge o
31606
31606
 
31607
31607
  The receipt migration uses the same supacloud_commands ledger as the platform. It supports local transactional commands; external commands and durable recovery still require the existing Commands/Workflow runtime. Never apply a second migration history.
31608
31608
 
31609
- The model_orders_app role is a trusted-server capability and does not set request.jwt.claims. Its SQL policy is a host bypass, not the model row projection; do not grant that role to PostgREST. Authenticated SELECT, INSERT and UPDATE policies are emitted from the ZModel @@allow rules and must stay in the migration. They do not grant privileges; add a reviewed GRANT before exposing the table through PostgREST.
31609
+ The model_orders_app role is a trusted-server capability and does not set request.jwt.claims. Its SQL policy is a host bypass, not the model row projection; do not grant that role to Postrust. Authenticated SELECT, INSERT and UPDATE policies are emitted from the ZModel @@allow rules and must stay in the migration. They do not grant privileges; add a reviewed GRANT before exposing the table through Postrust.
31610
31610
 
31611
31611
  To change the schema: bun run db:generate, bun run db:check, then bun run db:plan. Review the Management API's remote plan and run bun run db:apply -- --approved_digest <digest> after approval. The CLI does not receive a database URL. Stop intake and drain HTTP/worker work before host.dispose(), then close the caller-owned pool.
31612
31612
  `
@@ -33858,7 +33858,7 @@ var STARTER_REVIEW_QUERY = `import type { SupabaseClient } from "@supabase/supab
33858
33858
  import type { ReviewRow } from "../../db/schema";
33859
33859
 
33860
33860
  // This read projection uses SQL column names shared with the model source.
33861
- // Do not expose camelCase model property names as PostgREST column names.
33861
+ // Do not expose camelCase model property names as Postrust column names.
33862
33862
  export type ReviewSummary = Pick<ReviewRow, "id" | "state" | "version">;
33863
33863
  export type ReviewReadDatabase = {
33864
33864
  public: {
@@ -34912,12 +34912,12 @@ Management API tokens and service-role keys remain on trusted servers.
34912
34912
 
34913
34913
  ## Reads
34914
34914
 
34915
- Ordinary reads use PostgREST through the existing user-scoped
34915
+ Ordinary reads use Postrust through the existing user-scoped
34916
34916
  @supabase/supabase-js client: client.from("starter_reviews").select("id,state,version").
34917
34917
  Use the caller's session, RLS and grants; never introduce a second session store.
34918
34918
  Command is the write boundary of this compiler application lane only.
34919
34919
  Cross-table change, idempotency, and audit stay on the governed Command/RPC
34920
- boundary. Ordinary reads and low-risk CRUD stay on PostgREST and
34920
+ boundary. Ordinary reads and low-risk CRUD stay on Postrust and
34921
34921
  @supabase/supabase-js.
34922
34922
 
34923
34923
  Use listReviews from src/review/list-reviews.ts for the paginated review list.
@@ -37549,9 +37549,9 @@ async function runContext(args) {
37549
37549
  explain: "supacloud app explain --target <name>"
37550
37550
  },
37551
37551
  defaults: {
37552
- readTransport: "postgrest-supabase-js",
37552
+ readTransport: "postrust-supabase-js",
37553
37553
  writeTransport: {
37554
- ordinaryCrud: "postgrest-supabase-js",
37554
+ ordinaryCrud: "postrust-supabase-js",
37555
37555
  compilerLane: "model-command",
37556
37556
  governedSql: "governed-sql",
37557
37557
  legacyRpc: "legacy-rpc"
@@ -40543,7 +40543,7 @@ function registerDbGovernanceTools(server, options = {}) {
40543
40543
  module_file: optional(String2(), "[*] File exporting defineDatabaseModule(...) (default: <root>/db/modules.ts)"),
40544
40544
  target: optional(String2(), "[context/explain/operation-ownership] Policy / function / table name; adopt uses a table"),
40545
40545
  operation: optional(stringEnum2(["select", "insert", "update", "delete"]), "[operation-ownership adopt] Table operation for explicit adoption"),
40546
- owner: optional(stringEnum2(["postgrest-data-api", "durable-command", "governed-sql-rpc", "legacy-rpc"]), "[operation-ownership adopt] Explicit owner; required for ambiguous/unknown operations"),
40546
+ owner: optional(stringEnum2(["postrust-data-api", "durable-command", "governed-sql-rpc", "legacy-rpc"]), "[operation-ownership adopt] Explicit owner; required for ambiguous/unknown operations"),
40547
40547
  write: optional(Boolean2(), "[operation-ownership adopt] Write the previewed ownership declarations (default: preview only)"),
40548
40548
  database_url: optional(String2(), "[module_check] Postgres connection URL (default: DATABASE_URL)"),
40549
40549
  schema: optional(String2(), "[module_check] Comma-separated schemas to inspect (default: public)"),
@@ -41224,8 +41224,8 @@ function readInventoryFailure(operation, read) {
41224
41224
  }
41225
41225
  return null;
41226
41226
  }
41227
- function postgrestStatus(value) {
41228
- if (!isRecord6(value) || value.component !== "postgrest" || !["running", "stopped"].includes(String(value.desired)) || !["running", "stopped", "starting", "error"].includes(String(value.actual)) || !["healthy", "unhealthy", "unknown"].includes(String(value.health)))
41227
+ function postrustStatus(value) {
41228
+ if (!isRecord6(value) || value.component !== "postrust" || !["running", "stopped"].includes(String(value.desired)) || !["running", "stopped", "starting", "error"].includes(String(value.actual)) || !["healthy", "unhealthy", "unknown"].includes(String(value.health)))
41229
41229
  return null;
41230
41230
  return {
41231
41231
  desired: value.desired,
@@ -41233,20 +41233,20 @@ function postgrestStatus(value) {
41233
41233
  health: value.health
41234
41234
  };
41235
41235
  }
41236
- async function readPostgrestStatus(http, projectRef) {
41237
- const response = await http.get(`${endpoint(projectRef)}/services/postgrest/status`, {
41236
+ async function readPostrustStatus(http, projectRef) {
41237
+ const response = await http.get(`${endpoint(projectRef)}/services/postrust/status`, {
41238
41238
  maxJsonBytes: MUTATION_MAX_BYTES,
41239
41239
  responseTimeoutMs: RELEASE_READ_RESPONSE_TIMEOUT_MS
41240
41240
  });
41241
- return { response, status: response.ok && response.status === 200 ? postgrestStatus(response.data) : null };
41241
+ return { response, status: response.ok && response.status === 200 ? postrustStatus(response.data) : null };
41242
41242
  }
41243
- function readPostgrestFailure(operation, read) {
41243
+ function readPostrustFailure(operation, read) {
41244
41244
  if (!read.response.ok)
41245
41245
  return httpFailure(operation, read.response);
41246
41246
  return read.response.status === 200 && read.status ? null : releaseControlFailure(operation, "INVALID_RESPONSE", read.response.status);
41247
41247
  }
41248
41248
  function isRestartReceipt(value) {
41249
- return isRecord6(value) && value.service === "postgrest" && value.action === "restart" && value.success === true;
41249
+ return isRecord6(value) && value.service === "postrust" && value.action === "restart" && value.success === true;
41250
41250
  }
41251
41251
  function releaseCanaryStageInput(subject, requestId) {
41252
41252
  if (typeof subject !== "string" || !UUID.test(subject))
@@ -41725,8 +41725,8 @@ function registerReleaseTools(server, http, options = {}) {
41725
41725
  "logical_backup_status",
41726
41726
  "logical_backup_create",
41727
41727
  "logical_backup_restore",
41728
- "postgrest_status",
41729
- "postgrest_restart",
41728
+ "postrust_status",
41729
+ "postrust_restart",
41730
41730
  "release_canary_fixture_stage_replay",
41731
41731
  "release_canary_fixture_disable_replay"
41732
41732
  ];
@@ -41862,12 +41862,12 @@ function registerReleaseTools(server, http, options = {}) {
41862
41862
  backup: publicBackup(selectedBackup)
41863
41863
  });
41864
41864
  }
41865
- if (action === "postgrest_status") {
41866
- const read = await readPostgrestStatus(http, projectRef);
41867
- const failure = readPostgrestFailure("release.postgrest.status", read);
41868
- return failure ?? releaseControlSuccess("release.postgrest.status", {
41865
+ if (action === "postrust_status") {
41866
+ const read = await readPostrustStatus(http, projectRef);
41867
+ const failure = readPostrustFailure("release.postrust.status", read);
41868
+ return failure ?? releaseControlSuccess("release.postrust.status", {
41869
41869
  project_ref: projectRef,
41870
- postgrest: read.status
41870
+ postrust: read.status
41871
41871
  });
41872
41872
  }
41873
41873
  if (action === "release_canary_fixture_stage_replay") {
@@ -41921,20 +41921,20 @@ function registerReleaseTools(server, http, options = {}) {
41921
41921
  pending: false
41922
41922
  });
41923
41923
  }
41924
- if (action !== "postgrest_restart")
41924
+ if (action !== "postrust_restart")
41925
41925
  throw new Error("Unknown release control action");
41926
- const mutation = await http.postReleaseMutation(`${endpoint(projectRef)}/services/postgrest/restart`);
41927
- const read = await readPostgrestStatus(http, projectRef);
41926
+ const mutation = await http.postReleaseMutation(`${endpoint(projectRef)}/services/postrust/restart`);
41927
+ const read = await readPostrustStatus(http, projectRef);
41928
41928
  if (!mutation.ok || mutation.status !== 200) {
41929
- return mutationFailure("release.postgrest.restart", mutation);
41929
+ return mutationFailure("release.postrust.restart", mutation);
41930
41930
  }
41931
- const readFailure = readPostgrestFailure("release.postgrest.restart", read);
41931
+ const readFailure = readPostrustFailure("release.postrust.restart", read);
41932
41932
  if (!isRestartReceipt(mutation.data) || readFailure || read.status.desired !== "running" || read.status.actual !== "running" || read.status.health !== "healthy") {
41933
- return releaseControlFailure("release.postgrest.restart", "OUTCOME_UNKNOWN", mutation.status);
41933
+ return releaseControlFailure("release.postrust.restart", "OUTCOME_UNKNOWN", mutation.status);
41934
41934
  }
41935
- return releaseControlSuccess("release.postgrest.restart", {
41935
+ return releaseControlSuccess("release.postrust.restart", {
41936
41936
  project_ref: projectRef,
41937
- postgrest: read.status
41937
+ postrust: read.status
41938
41938
  });
41939
41939
  });
41940
41940
  }
@@ -44686,7 +44686,7 @@ async function runProjectDeployment(http, args) {
44686
44686
  // package.json
44687
44687
  var package_default = {
44688
44688
  name: "@supacloud/cli",
44689
- version: "0.129.3",
44689
+ version: "0.129.4",
44690
44690
  description: "Project-scoped CLI for SupaCloud users",
44691
44691
  type: "module",
44692
44692
  main: "./dist/index.js",
@@ -44738,17 +44738,17 @@ var package_default = {
44738
44738
  directory: "packages/cli"
44739
44739
  },
44740
44740
  dependencies: {
44741
- "@supacloud/compiler": "^0.67.1",
44742
- "@supacloud/delivery": "0.30.0",
44743
- "@supacloud/db": "0.27.0",
44741
+ "@supacloud/compiler": "^0.67.2",
44742
+ "@supacloud/delivery": "0.30.1",
44743
+ "@supacloud/db": "0.27.1",
44744
44744
  typebox: "1.4.3"
44745
44745
  },
44746
44746
  overrides: {
44747
44747
  "@supacloud/contracts": "0.17.0",
44748
- "@supacloud/delivery": "0.30.0",
44748
+ "@supacloud/delivery": "0.30.1",
44749
44749
  "@graphql-tools/utils": "^12.0.4",
44750
- "@supacloud/compiler": "^0.67.1",
44751
- "@supacloud/db": "0.27.0",
44750
+ "@supacloud/compiler": "^0.67.2",
44751
+ "@supacloud/db": "0.27.1",
44752
44752
  "deepmerge-ts": "8.0.2",
44753
44753
  prisma: "6.19.3"
44754
44754
  },
@@ -45009,8 +45009,8 @@ EXAMPLES
45009
45009
  ${preferredCommand} release logical_backup_create --ref abc123
45010
45010
  ${preferredCommand} release logical_backup_status --ref abc123 --backup_id <backup_id>
45011
45011
  ${preferredCommand} release logical_backup_restore --ref abc123 --backup_id <backup_id> --expected_sha256 <sha256> --restore_confirmation RESTORE_PROJECT:abc123:<backup_id>:<sha256>
45012
- ${preferredCommand} release postgrest_status --ref abc123
45013
- ${preferredCommand} release postgrest_restart --ref abc123
45012
+ ${preferredCommand} release postrust_status --ref abc123
45013
+ ${preferredCommand} release postrust_restart --ref abc123
45014
45014
  ${preferredCommand} release release_canary_fixture_stage_replay --ref abc123 --subject <uuid> --request_id <uuid>
45015
45015
  ${preferredCommand} release release_canary_fixture_disable_replay --ref abc123 --fixture_id <uuid> --disable_request_id <uuid> --issuer <issuer-url> --subject <uuid>
45016
45016
  ${preferredCommand} queue stats --queue emails
@@ -1 +1 @@
1
- export declare const STARTER_REVIEW_QUERY = "import type { SupabaseClient } from \"@supabase/supabase-js\";\nimport type { ReviewRow } from \"../../db/schema\";\n\n// This read projection uses SQL column names shared with the model source.\n// Do not expose camelCase model property names as PostgREST column names.\nexport type ReviewSummary = Pick<ReviewRow, \"id\" | \"state\" | \"version\">;\nexport type ReviewReadDatabase = {\n public: {\n Tables: {\n starter_reviews: {\n Row: ReviewSummary;\n Insert: never;\n Update: never;\n Relationships: [];\n };\n };\n Views: Record<never, never>;\n Functions: Record<never, never>;\n };\n};\n\nexport interface ReviewPageOptions {\n page?: number;\n pageSize?: number;\n signal?: AbortSignal;\n}\n\n// Reuse the application's user-scoped client. Identity verification and row\n// authorization belong to the gateway and database, never a caller-supplied owner.\nexport async function listReviews(\n client: SupabaseClient<ReviewReadDatabase>,\n { page = 1, pageSize = 25, signal }: ReviewPageOptions = {},\n) {\n if (!Number.isSafeInteger(page) || page < 1\n || !Number.isSafeInteger(pageSize) || pageSize < 1 || pageSize > 100\n || !Number.isSafeInteger(page * pageSize)) {\n throw new RangeError(\"Invalid review page: page >= 1 and pageSize between 1 and 100 are required\");\n }\n signal?.throwIfAborted();\n const start = (page - 1) * pageSize;\n const query = client.from(\"starter_reviews\")\n .select(\"id,state,version\", { count: \"exact\" })\n .order(\"id\", { ascending: true })\n .range(start, start + pageSize - 1);\n const { data, error, count } = await (signal ? query.abortSignal(signal) : query);\n if (error) throw error;\n if (data === null || count === null) throw new Error(\"Incomplete review page response\");\n if (!Array.isArray(data)\n || !Number.isSafeInteger(count) || count < 0\n || data.length > pageSize\n || (data.length > 0 && start + data.length > count)) {\n throw new Error(\"Invalid review page response\");\n }\n return { data, total: count, page, pageSize, hasNextPage: start + data.length < count };\n}\n";
1
+ export declare const STARTER_REVIEW_QUERY = "import type { SupabaseClient } from \"@supabase/supabase-js\";\nimport type { ReviewRow } from \"../../db/schema\";\n\n// This read projection uses SQL column names shared with the model source.\n// Do not expose camelCase model property names as Postrust column names.\nexport type ReviewSummary = Pick<ReviewRow, \"id\" | \"state\" | \"version\">;\nexport type ReviewReadDatabase = {\n public: {\n Tables: {\n starter_reviews: {\n Row: ReviewSummary;\n Insert: never;\n Update: never;\n Relationships: [];\n };\n };\n Views: Record<never, never>;\n Functions: Record<never, never>;\n };\n};\n\nexport interface ReviewPageOptions {\n page?: number;\n pageSize?: number;\n signal?: AbortSignal;\n}\n\n// Reuse the application's user-scoped client. Identity verification and row\n// authorization belong to the gateway and database, never a caller-supplied owner.\nexport async function listReviews(\n client: SupabaseClient<ReviewReadDatabase>,\n { page = 1, pageSize = 25, signal }: ReviewPageOptions = {},\n) {\n if (!Number.isSafeInteger(page) || page < 1\n || !Number.isSafeInteger(pageSize) || pageSize < 1 || pageSize > 100\n || !Number.isSafeInteger(page * pageSize)) {\n throw new RangeError(\"Invalid review page: page >= 1 and pageSize between 1 and 100 are required\");\n }\n signal?.throwIfAborted();\n const start = (page - 1) * pageSize;\n const query = client.from(\"starter_reviews\")\n .select(\"id,state,version\", { count: \"exact\" })\n .order(\"id\", { ascending: true })\n .range(start, start + pageSize - 1);\n const { data, error, count } = await (signal ? query.abortSignal(signal) : query);\n if (error) throw error;\n if (data === null || count === null) throw new Error(\"Incomplete review page response\");\n if (!Array.isArray(data)\n || !Number.isSafeInteger(count) || count < 0\n || data.length > pageSize\n || (data.length > 0 && start + data.length > count)) {\n throw new Error(\"Invalid review page response\");\n }\n return { data, total: count, page, pageSize, hasNextPage: start + data.length < count };\n}\n";
@@ -207,7 +207,7 @@ export declare const ApplicationDeployResultSchema: import("typebox").TObject<{
207
207
  after_ledger_digest: import("typebox").TString;
208
208
  applied_versions: import("typebox").TArray<import("typebox").TString>;
209
209
  schema_reloaded: import("typebox").TBoolean;
210
- postgrest_healthy: import("typebox").TBoolean;
210
+ postrust_healthy: import("typebox").TBoolean;
211
211
  }>;
212
212
  web: import("typebox").TOptional<import("typebox").TObject<{
213
213
  deployment_id: import("typebox").TString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.129.3",
3
+ "version": "0.129.4",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,17 +52,17 @@
52
52
  "directory": "packages/cli"
53
53
  },
54
54
  "dependencies": {
55
- "@supacloud/compiler": "^0.67.1",
56
- "@supacloud/delivery": "0.30.0",
57
- "@supacloud/db": "0.27.0",
55
+ "@supacloud/compiler": "^0.67.2",
56
+ "@supacloud/delivery": "0.30.1",
57
+ "@supacloud/db": "0.27.1",
58
58
  "typebox": "1.4.3"
59
59
  },
60
60
  "overrides": {
61
61
  "@supacloud/contracts": "0.17.0",
62
- "@supacloud/delivery": "0.30.0",
62
+ "@supacloud/delivery": "0.30.1",
63
63
  "@graphql-tools/utils": "^12.0.4",
64
- "@supacloud/compiler": "^0.67.1",
65
- "@supacloud/db": "0.27.0",
64
+ "@supacloud/compiler": "^0.67.2",
65
+ "@supacloud/db": "0.27.1",
66
66
  "deepmerge-ts": "8.0.2",
67
67
  "prisma": "6.19.3"
68
68
  },
@@ -32,7 +32,7 @@ Use `supacloud` as the project-level control surface and keep durable changes re
32
32
  For normal application deployment, run `supacloud --env <name> deploy`.
33
33
  Use the current application delivery configuration and a bound application ID.
34
34
  Do not assemble a client-side sequence of scope generation, backup, migration
35
- apply, PostgREST refresh, Function deployment and Web activation.
35
+ apply, Postrust refresh, Function deployment and Web activation.
36
36
  The server owns that sequence. Old `deploy --target` and `frontend` publishing
37
37
  actions are removed: upgrade CLI and server together, migrate the configuration,
38
38
  and retry the unified command. Do not substitute a legacy endpoint when it fails.
@@ -60,7 +60,7 @@ resource changes until a project-scoped context is resolved.
60
60
  - `secrets`: project secret management; never print values after write.
61
61
  - `queue`, `task_events`, `diagnostics`: asynchronous workload operations and bounded diagnostics.
62
62
  - `gateway`: project route/config/rebuild operations.
63
- - `release`: explicit backup/PostgREST maintenance and release-canary replay diagnostics. Do not run these or generate release scopes as prerequisites for `supacloud --env <name> deploy`; the platform owns deployment orchestration.
63
+ - `release`: explicit backup/Postrust maintenance and release-canary replay diagnostics. Do not run these or generate release scopes as prerequisites for `supacloud --env <name> deploy`; the platform owns deployment orchestration.
64
64
  - `ai`: inspect or install this packaged Skill.
65
65
 
66
66
  ## Safe inspection pattern