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 +9 -4
- package/core/index.js +1 -0
- package/dashboard/assets/{index-DJGuoFob.js → index-DWH8bYmW.js} +13 -13
- package/dashboard/index.html +1 -1
- package/lib/auth-command.mjs +9 -4
- package/lib/backup-command.mjs +57 -3
- package/lib/cli-project-runtime.mjs +18 -4
- package/lib/codegen/index.mjs +14981 -353
- package/lib/cors-command.mjs +10 -10
- package/lib/cron-manifest.mjs +128 -28
- package/lib/db-command.mjs +18 -8
- package/lib/deploy-package-runtime.mjs +27 -10
- package/lib/dev-cloud-migrations.mjs +6 -3
- package/lib/dev-local-command.mjs +31 -7
- package/lib/drizzle-generate.mjs +34 -0
- package/lib/init-command.mjs +3 -1
- package/lib/origins-command.mjs +208 -0
- package/lib/readme-codegen.mjs +4 -5
- package/lib/static-deploy-command.mjs +9 -6
- package/lib/tar-archive.mjs +61 -0
- package/lib/template-marketplace-command.mjs +41 -18
- package/package.json +1 -1
- package/server/config.js +32 -0
- package/server/index.js +19209 -3649
- package/server/index.js.map +4 -4
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
|
|
362
|
-
${GREEN}cors add URL${RESET}
|
|
363
|
-
${GREEN}cors remove URL${RESET} Remove
|
|
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",
|