gencow 0.1.164 → 0.1.166

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/bin/gencow.mjs CHANGED
@@ -11,7 +11,7 @@
11
11
  * gencow db:restore — restore DB from backup
12
12
  * gencow db:studio — open Drizzle Studio (visual DB browser)
13
13
  * gencow dashboard — open /_admin in browser
14
- * gencow backup — manage database backups (list/create/restore/delete/download)
14
+ * gencow backup — manage database backups (list/create/restore/restore-file/delete/download)
15
15
  * gencow templates — publish/list/download/clone marketplace templates
16
16
  * gencow help — show this help
17
17
  */
@@ -53,6 +53,7 @@ import { createFilesCommand } from "../lib/files-command.mjs";
53
53
  import { createInitCommand } from "../lib/init-command.mjs";
54
54
  import { createJobsCommand } from "../lib/jobs-command.mjs";
55
55
  import { createLogsCommand } from "../lib/logs-command.mjs";
56
+ import { createOriginsCommand } from "../lib/origins-command.mjs";
56
57
  import { createStaticDeployRuntime } from "../lib/static-deploy-command.mjs";
57
58
  import { createStaticCommand } from "../lib/static-command.mjs";
58
59
  import { createTemplateMarketplaceCommand } from "../lib/template-marketplace-command.mjs";
@@ -266,6 +267,7 @@ const runInitCommand = createInitCommand({
266
267
  });
267
268
  const runJobsCommand = createJobsCommand();
268
269
  const runLogsCommand = createLogsCommand({ loadConfig });
270
+ const runOriginsCommand = createOriginsCommand();
269
271
  const runStaticCommand = createStaticCommand({
270
272
  cwdImpl: () => process.cwd(),
271
273
  requireCredsImpl: requireCreds,
@@ -358,9 +360,11 @@ ${BOLD}Commands (login required):${RESET}
358
360
  ${GREEN}env set K=V${RESET} Set cloud env var ${DIM}(hot-reload, no restart)${RESET}
359
361
  ${GREEN}env unset KEY${RESET} Remove cloud env var
360
362
  ${GREEN}env push${RESET} Push .env to cloud ${DIM}(--prod reads .env.production)${RESET}
361
- ${GREEN}cors list${RESET} Show allowed CORS origins ${DIM}(auto + custom)${RESET}
362
- ${GREEN}cors add URL${RESET} Allow external frontend origin ${DIM}(HTTPS only)${RESET}
363
- ${GREEN}cors remove URL${RESET} Remove custom CORS origin
363
+ ${GREEN}cors list${RESET} Show legacy CORS overrides
364
+ ${GREEN}cors add URL${RESET} Add legacy CORS override ${DIM}(compat only)${RESET}
365
+ ${GREEN}cors remove URL${RESET} Remove legacy CORS override
366
+ ${GREEN}origins list${RESET} Show effective public origins ${DIM}(read-only)${RESET}
367
+ ${GREEN}origins check URL${RESET} Check a public origin against the effective policy
364
368
  ${GREEN}files upload${RESET} Upload files to app storage ${DIM}(--recursive for dirs)${RESET}
365
369
  ${GREEN}files list${RESET} List uploaded files
366
370
  ${GREEN}files delete${RESET} Delete uploaded file ${DIM}(--yes to skip confirm)${RESET}
@@ -437,6 +441,7 @@ ${BOLD}Examples:${RESET}
437
441
 
438
442
  // ── cors / config ────────────────────────────────────
439
443
  cors: runCorsCommand,
444
+ origins: runOriginsCommand,
440
445
  config: runConfigCommand,
441
446
 
442
447
  // ── files ─────────────────────────────────────────────
package/core/index.js CHANGED
@@ -2788,6 +2788,7 @@ var RESERVED_TENANT_RUNTIME_ENV_KEYS = /* @__PURE__ */ new Set([
2788
2788
  "GENCOW_PLATFORM_INTERNAL_URL",
2789
2789
  "GENCOW_PLATFORM_INTERNAL_URL_ALT",
2790
2790
  "GENCOW_PLATFORM_DB",
2791
+ "GENCOW_MANAGED_PUBLIC_ORIGINS",
2791
2792
  "PLATFORM_OPENAI_KEY",
2792
2793
  "PLATFORM_GOOGLE_KEY",
2793
2794
  "PLATFORM_GOOGLE_CLIENT_ID",