gencow 0.1.186 → 0.1.187
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 +5 -11
- package/core/index.js +0 -1
- package/dashboard/assets/{index-ChaGpUmo.js → index-CFHaaHZs.js} +34 -34
- package/dashboard/index.html +1 -1
- package/lib/app-command.mjs +50 -10
- package/lib/app-response-contract.mjs +49 -0
- package/lib/backup-command.mjs +1 -1
- package/lib/db-command.mjs +4 -4
- package/lib/deploy-auditor.mjs +1 -1
- package/lib/deploy-command.mjs +1 -1
- package/lib/deploy-dependency-compat.mjs +2 -2
- package/lib/deploy-package-runtime.mjs +26 -27
- package/lib/deploy-runtime.mjs +1 -67
- package/lib/deploy-static-fullstack-runtime.mjs +29 -79
- package/lib/init-command.mjs +1 -1
- package/lib/readme-codegen.mjs +25 -21
- package/lib/static-command.mjs +1 -2
- package/lib/static-deploy-command.mjs +42 -114
- package/package.json +2 -2
- package/runtime/server.mjs +143 -213
- package/runtime/server.mjs.map +4 -4
- package/templates/SECURITY.md +3 -3
- package/templates/ai-chat/README.md +2 -2
- package/templates/ai-chat/prompt.md +5 -5
- package/templates/fullstack/README.md +1 -1
- package/templates/fullstack/prompt.md +3 -3
- package/templates/task-app/prompt.md +1 -1
- package/lib/deploy-project-metadata.mjs +0 -22
- package/lib/release-client.mjs +0 -134
- package/lib/release-source-package.mjs +0 -257
package/bin/gencow.mjs
CHANGED
|
@@ -81,7 +81,6 @@ import {
|
|
|
81
81
|
warn,
|
|
82
82
|
} from "../lib/output.mjs";
|
|
83
83
|
import { platformFetch, requireCreds, rpcMutation, rpcQuery } from "../lib/platform-client.mjs";
|
|
84
|
-
import { failReleaseAttempt, finalizeReleaseAttempt, prepareReleaseAttempt } from "../lib/release-client.mjs";
|
|
85
84
|
|
|
86
85
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
87
86
|
const CLI_PACKAGE_JSON = JSON.parse(readFileSync(resolve(__dirname, "..", "package.json"), "utf8"));
|
|
@@ -229,9 +228,6 @@ const runStaticDeployRuntime = createStaticDeployRuntime({
|
|
|
229
228
|
drizzleKitCmdImpl: _drizzleKitCmd,
|
|
230
229
|
verifyAppReadyImpl: verifyAppReady,
|
|
231
230
|
updateEnvLocalUrlImpl: updateEnvLocalUrl,
|
|
232
|
-
prepareReleaseAttemptImpl: prepareReleaseAttempt,
|
|
233
|
-
finalizeReleaseAttemptImpl: finalizeReleaseAttempt,
|
|
234
|
-
failReleaseAttemptImpl: failReleaseAttempt,
|
|
235
231
|
});
|
|
236
232
|
const runDeployCommand = createDeployCommand({
|
|
237
233
|
buildEnvImpl: buildEnv,
|
|
@@ -259,9 +255,6 @@ const runDeployCommand = createDeployCommand({
|
|
|
259
255
|
verifyAppReadyImpl: verifyAppReady,
|
|
260
256
|
writeFileSyncImpl: writeFileSync,
|
|
261
257
|
updateEnvLocalUrlImpl: updateEnvLocalUrl,
|
|
262
|
-
prepareReleaseAttemptImpl: prepareReleaseAttempt,
|
|
263
|
-
finalizeReleaseAttemptImpl: finalizeReleaseAttempt,
|
|
264
|
-
failReleaseAttemptImpl: failReleaseAttempt,
|
|
265
258
|
});
|
|
266
259
|
const runDomainCommand = createDomainCommand();
|
|
267
260
|
const runEnvCommand = createEnvCommand();
|
|
@@ -356,7 +349,7 @@ ${BOLD}Usage:${RESET}
|
|
|
356
349
|
|
|
357
350
|
${BOLD}Quick Start:${RESET}
|
|
358
351
|
${GREEN}init <name>${RESET} Create a new Gencow project
|
|
359
|
-
${DIM}--template, -t Select template (default, task-app, fullstack, ai-chat)${RESET}
|
|
352
|
+
${DIM}--template, -t Select template (default, task-app, admin-tool, fullstack, ai-chat)${RESET}
|
|
360
353
|
${DIM}--force, -f Initialize in non-empty directory (preserves existing files)${RESET}
|
|
361
354
|
${GREEN}add <comp...>${RESET} Add components ${DIM}(AI Agent RAG Tools Memory ...)${RESET}
|
|
362
355
|
${GREEN}codegen${RESET} Generate frontend api.ts from schema
|
|
@@ -368,6 +361,7 @@ ${BOLD}Commands (login required):${RESET}
|
|
|
368
361
|
${GREEN}logout${RESET} Clear credentials
|
|
369
362
|
${GREEN}whoami${RESET} Show current user info
|
|
370
363
|
${GREEN}dev${RESET} Watch + auto-deploy to cloud + live logs
|
|
364
|
+
${DIM}--local Run local Bun + Hono + PGlite development${RESET}
|
|
371
365
|
${DIM}--verbose Show all HTTP logs (including admin/ws)${RESET}
|
|
372
366
|
${GREEN}db:push${RESET} Apply versioned migrations to cloud DB
|
|
373
367
|
${DIM}--prod Push to production DB (confirmation required)${RESET}
|
|
@@ -385,7 +379,7 @@ ${BOLD}Commands (login required):${RESET}
|
|
|
385
379
|
${GREEN}templates clone <slug>${RESET} Clone a template into a local directory
|
|
386
380
|
${GREEN}deploy${RESET} Deploy backend to cloud ${DIM}(dev by default)${RESET}
|
|
387
381
|
${DIM}--static [dir] Deploy backend, then static files${RESET}
|
|
388
|
-
${DIM}--prod Deploy to production (
|
|
382
|
+
${DIM}--prod Deploy to production (Startup/Enterprise)${RESET}
|
|
389
383
|
${DIM}--rollback Rollback to previous deployment${RESET}
|
|
390
384
|
${DIM}--force, -f Skip optional dependency scan${RESET}
|
|
391
385
|
${DIM}logs [-n N] Show cloud app server logs${RESET}
|
|
@@ -393,7 +387,7 @@ ${BOLD}Commands (login required):${RESET}
|
|
|
393
387
|
${GREEN}env list${RESET} List cloud env vars ${DIM}(--prod for production)${RESET}
|
|
394
388
|
${GREEN}env set K=V${RESET} Set cloud env var ${DIM}(hot-reload, no restart)${RESET}
|
|
395
389
|
${GREEN}env unset KEY${RESET} Remove cloud env var
|
|
396
|
-
${GREEN}env push${RESET} Push
|
|
390
|
+
${GREEN}env push${RESET} Push backend env file ${DIM}(gencow/.env by default)${RESET}
|
|
397
391
|
${GREEN}cors list${RESET} Show legacy CORS overrides
|
|
398
392
|
${GREEN}cors add URL${RESET} Add legacy CORS override ${DIM}(compat only)${RESET}
|
|
399
393
|
${GREEN}cors remove URL${RESET} Remove legacy CORS override
|
|
@@ -446,7 +440,7 @@ ${BOLD}Examples:${RESET}
|
|
|
446
440
|
${DIM}# Deploy built frontend files only:${RESET}
|
|
447
441
|
gencow static dist/
|
|
448
442
|
|
|
449
|
-
${DIM}# Deploy to production (
|
|
443
|
+
${DIM}# Deploy to production (Startup/Enterprise):${RESET}
|
|
450
444
|
gencow deploy --prod
|
|
451
445
|
|
|
452
446
|
${DIM}# Inspect stale workflows:${RESET}
|
package/core/index.js
CHANGED