gencow 0.1.147 → 0.1.149
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 +43 -10
- package/core/index.js +2979 -2251
- package/dashboard/assets/index-BFEs29Zt.js +398 -0
- package/dashboard/assets/index-hoAwatY0.css +1 -0
- package/dashboard/index.html +7 -4
- package/lib/add-command.mjs +47 -320
- package/lib/add-rag.mjs +222 -0
- package/lib/add-sso.mjs +116 -0
- package/lib/api-codegen.mjs +1 -1
- package/lib/app-command.mjs +129 -60
- package/lib/app-diagnostics.mjs +63 -0
- package/lib/cli-artifact-guard.mjs +12 -3
- package/lib/cli-dev-runtime.mjs +28 -16
- package/lib/cli-project-runtime.mjs +262 -81
- package/lib/cli-version-check.mjs +3 -1
- package/lib/cloud-targets.mjs +1 -1
- package/lib/codegen/index.mjs +9032 -8808
- package/lib/codegen-command.mjs +135 -26
- package/lib/component-readme.mjs +134 -92
- package/lib/cors-command.mjs +22 -7
- package/lib/cron-manifest.mjs +620 -0
- package/lib/db-command.mjs +17 -28
- package/lib/deploy-auditor.mjs +28 -4
- package/lib/deploy-command.mjs +95 -32
- package/lib/deploy-dependency-compat.mjs +2 -5
- package/lib/deploy-package-runtime.mjs +40 -7
- package/lib/deploy-runtime.mjs +2 -4
- package/lib/deploy-static-fullstack-runtime.mjs +0 -5
- package/lib/dev-cloud-bundle.mjs +43 -9
- package/lib/dev-cloud-command.mjs +47 -11
- package/lib/dev-local-command.mjs +35 -8
- package/lib/domain-command.mjs +117 -23
- package/lib/files-command.mjs +83 -27
- package/lib/init-command.mjs +108 -67
- package/lib/install-features.mjs +374 -0
- package/lib/jobs-command.mjs +3 -1
- package/lib/logs-command.mjs +11 -3
- package/lib/readme-codegen.mjs +264 -452
- package/package.json +13 -10
- package/scripts/bundle-codegen.mjs +17 -1
- package/scripts/bundle-core.mjs +54 -0
- package/scripts/bundle-server.mjs +24 -43
- package/scripts/pre-publish-check.mjs +6 -2
- package/server/config.js +14608 -0
- package/server/index.js +34387 -19523
- package/server/index.js.map +4 -4
- package/templateFeature/agent/manifest.json +17 -0
- package/templateFeature/ai/ai-errors.ts +54 -0
- package/templateFeature/ai/ai-facade.ts +339 -0
- package/templateFeature/ai/ai-image.ts +243 -0
- package/templateFeature/ai/ai-provider.ts +278 -0
- package/templateFeature/ai/ai.ts +26 -0
- package/templateFeature/ai/manifest.json +27 -0
- package/templateFeature/analytics/manifest.json +11 -0
- package/templateFeature/guardrails/manifest.json +17 -0
- package/templateFeature/memory/manifest.json +17 -0
- package/templateFeature/parsers/manifest.json +18 -0
- package/templateFeature/prompts/manifest.json +16 -0
- package/templateFeature/rag/manifest.json +21 -0
- package/{templates → templateFeature/rag}/rag.ts +21 -13
- package/templateFeature/reranker/manifest.json +17 -0
- package/templateFeature/search/manifest.json +17 -0
- package/templateFeature/sso/manifest.json +26 -0
- package/templateFeature/sso/sso-auth-callback.tsx +64 -0
- package/templateFeature/sso/sso-google-sign-in-button.tsx +63 -0
- package/templateFeature/tools/manifest.json +15 -0
- package/templates/SECURITY.md +245 -134
- package/templates/admin-tool/README.md +22 -13
- package/templates/admin-tool/index.ts +21 -2
- package/templates/admin-tool/items.ts +6 -4
- package/templates/ai-chat/README.md +89 -69
- package/templates/ai-chat/chat.ts +19 -33
- package/templates/ai-chat/index.ts +14 -1
- package/templates/ai-chat/prompt.md +114 -113
- package/templates/ai-chat/schema.ts +6 -1
- package/templates/auth.ts +8 -17
- package/templates/default/README.md +54 -61
- package/templates/default/index.ts +20 -19
- package/templates/default/schema.ts +6 -1
- package/templates/fullstack/README.md +81 -75
- package/templates/fullstack/files.ts +31 -21
- package/templates/fullstack/index.ts +24 -3
- package/templates/fullstack/prompt.md +133 -149
- package/templates/fullstack/schema.ts +6 -1
- package/templates/fullstack/tasks.ts +32 -52
- package/templates/runtime.ts +22 -0
- package/templates/schema-auth.ts +10 -0
- package/templates/task-app/README.md +72 -68
- package/templates/task-app/files.ts +31 -21
- package/templates/task-app/index.ts +24 -3
- package/templates/task-app/prompt.md +102 -122
- package/templates/task-app/schema.ts +6 -1
- package/templates/task-app/tasks.ts +32 -52
- package/dashboard/assets/index-7pP-gCcL.js +0 -388
- package/dashboard/assets/index-CbDHShVr.css +0 -1
- package/templates/ai-chat/ai.ts +0 -525
- package/templates/ai.ts +0 -525
- package/templates/auth-schema.ts +0 -67
- package/templates/fullstack/ai.ts +0 -525
- /package/{templates → templateFeature/agent}/agent.ts +0 -0
- /package/{templates → templateFeature/guardrails}/guardrails.ts +0 -0
- /package/{templates → templateFeature/memory}/memory.ts +0 -0
- /package/{templates → templateFeature/memory}/schema-memory.ts +0 -0
- /package/{templates → templateFeature/parsers}/parsers.ts +0 -0
- /package/{templates → templateFeature/prompts}/prompts.ts +0 -0
- /package/{templates → templateFeature/rag}/schema-rag.ts +0 -0
- /package/{templates → templateFeature/reranker}/reranker.ts +0 -0
- /package/{templates → templateFeature/search}/schema-search.ts +0 -0
- /package/{templates → templateFeature/search}/search.ts +0 -0
- /package/{templates → templateFeature/tools}/tools.ts +0 -0
package/bin/gencow.mjs
CHANGED
|
@@ -32,7 +32,6 @@ import {
|
|
|
32
32
|
findServerRoot,
|
|
33
33
|
isLocalDbTarget,
|
|
34
34
|
isMonorepo,
|
|
35
|
-
isStandaloneProject,
|
|
36
35
|
loadConfig,
|
|
37
36
|
runInServer,
|
|
38
37
|
spawnInServer,
|
|
@@ -93,7 +92,7 @@ const runAddCommand = createAddCommand({
|
|
|
93
92
|
errorImpl: error,
|
|
94
93
|
cwdImpl: () => process.cwd(),
|
|
95
94
|
existsSyncImpl: existsSync,
|
|
96
|
-
|
|
95
|
+
templateFeatureDir: resolve(__dirname, "..", "templateFeature"),
|
|
97
96
|
BOLD,
|
|
98
97
|
CYAN,
|
|
99
98
|
DIM,
|
|
@@ -115,6 +114,7 @@ const runCodegenCommand = createCodegenCommand({
|
|
|
115
114
|
exitImpl: (code) => process.exit(code),
|
|
116
115
|
resolvePathImpl: resolve,
|
|
117
116
|
cwdImpl: () => process.cwd(),
|
|
117
|
+
existsSyncImpl: existsSync,
|
|
118
118
|
processEnv: process.env,
|
|
119
119
|
dirnameValue: __dirname,
|
|
120
120
|
BOLD,
|
|
@@ -136,7 +136,6 @@ const {
|
|
|
136
136
|
drizzleKitCmdImpl: _drizzleKitCmd,
|
|
137
137
|
isLocalDbTarget,
|
|
138
138
|
isMonorepo,
|
|
139
|
-
isStandaloneProject,
|
|
140
139
|
loadConfig,
|
|
141
140
|
runInServer,
|
|
142
141
|
});
|
|
@@ -184,10 +183,11 @@ const { dev: runDevCommand, devLocal: runDevLocalCommand } = createDevLocalComma
|
|
|
184
183
|
cleanupOldBackups,
|
|
185
184
|
cwdImpl: () => process.cwd(),
|
|
186
185
|
drizzleKitCmdImpl: _drizzleKitCmd,
|
|
186
|
+
errorImpl: error,
|
|
187
|
+
exitImpl: (code) => process.exit(code),
|
|
187
188
|
findServerRoot,
|
|
188
189
|
generateApiTsImpl: generateApiTs,
|
|
189
190
|
isMonorepo,
|
|
190
|
-
isStandaloneProject,
|
|
191
191
|
loadConfig,
|
|
192
192
|
logImpl: log,
|
|
193
193
|
infoImpl: info,
|
|
@@ -212,7 +212,6 @@ const runDeployCommand = createDeployCommand({
|
|
|
212
212
|
existsSyncImpl: existsSync,
|
|
213
213
|
handleDeployReadonlySubcommandImpl: handleDeployReadonlySubcommand,
|
|
214
214
|
isMonorepoImpl: isMonorepo,
|
|
215
|
-
isStandaloneProjectImpl: isStandaloneProject,
|
|
216
215
|
platformFetchImpl: platformFetch,
|
|
217
216
|
processEnv: process.env,
|
|
218
217
|
processRef: process,
|
|
@@ -232,7 +231,33 @@ const runDeployCommand = createDeployCommand({
|
|
|
232
231
|
const runDomainCommand = createDomainCommand();
|
|
233
232
|
const runEnvCommand = createEnvCommand();
|
|
234
233
|
const runFilesCommand = createFilesCommand();
|
|
235
|
-
const runInitCommand = createInitCommand(
|
|
234
|
+
const runInitCommand = createInitCommand({
|
|
235
|
+
templateFeatureDir: resolve(__dirname, "..", "templateFeature"),
|
|
236
|
+
runCodegenImpl: async (projectDir) => {
|
|
237
|
+
const runProjectCodegen = createCodegenCommand({
|
|
238
|
+
loadConfig: (opts = {}) => loadConfig({ ...opts, cwd: projectDir }),
|
|
239
|
+
findServerRoot,
|
|
240
|
+
resolveCoreImport,
|
|
241
|
+
logImpl: log,
|
|
242
|
+
infoImpl: info,
|
|
243
|
+
errorImpl: error,
|
|
244
|
+
successImpl: success,
|
|
245
|
+
exitImpl: (code) => {
|
|
246
|
+
throw new Error(`Codegen failed with exit code ${code}`);
|
|
247
|
+
},
|
|
248
|
+
resolvePathImpl: resolve,
|
|
249
|
+
cwdImpl: () => projectDir,
|
|
250
|
+
existsSyncImpl: existsSync,
|
|
251
|
+
processEnv: process.env,
|
|
252
|
+
dirnameValue: __dirname,
|
|
253
|
+
BOLD,
|
|
254
|
+
CYAN,
|
|
255
|
+
DIM,
|
|
256
|
+
RESET,
|
|
257
|
+
});
|
|
258
|
+
await runProjectCodegen();
|
|
259
|
+
},
|
|
260
|
+
});
|
|
236
261
|
const runJobsCommand = createJobsCommand();
|
|
237
262
|
const runLogsCommand = createLogsCommand({ loadConfig });
|
|
238
263
|
const runStaticCommand = createStaticCommand({
|
|
@@ -321,6 +346,8 @@ ${BOLD}Commands (login required):${RESET}
|
|
|
321
346
|
${DIM}--prod Deploy to production (Pro+ only)${RESET}
|
|
322
347
|
${DIM}--rollback Rollback to previous deployment${RESET}
|
|
323
348
|
${DIM}--force, -f Skip optional dependency scan${RESET}
|
|
349
|
+
${DIM}logs [-n N] Show cloud app server logs${RESET}
|
|
350
|
+
${DIM}status Show cloud app status + diagnostics${RESET}
|
|
324
351
|
${GREEN}env list${RESET} List cloud env vars ${DIM}(--prod for production)${RESET}
|
|
325
352
|
${GREEN}env set K=V${RESET} Set cloud env var ${DIM}(hot-reload, no restart)${RESET}
|
|
326
353
|
${GREEN}env unset KEY${RESET} Remove cloud env var
|
|
@@ -336,9 +363,9 @@ ${BOLD}Commands (login required):${RESET}
|
|
|
336
363
|
${DIM}Keys: image.maxWidth (0-10000), image.quality (0-100)${RESET}
|
|
337
364
|
${GREEN}config get${RESET} Show current image config
|
|
338
365
|
${GREEN}config reset${RESET} Reset image config to tier defaults
|
|
339
|
-
${GREEN}domain set${RESET} Connect custom domain ${DIM}(myapp.com)${RESET}
|
|
340
|
-
${GREEN}domain status${RESET} Check domain DNS/TLS status
|
|
341
|
-
${GREEN}domain remove${RESET} Disconnect custom domain
|
|
366
|
+
${GREEN}domain set${RESET} Connect custom domain ${DIM}(myapp.com, --prod for production)${RESET}
|
|
367
|
+
${GREEN}domain status${RESET} Check domain DNS/TLS status ${DIM}(--prod for production)${RESET}
|
|
368
|
+
${GREEN}domain remove${RESET} Disconnect custom domain ${DIM}(--prod for production)${RESET}
|
|
342
369
|
|
|
343
370
|
${BOLD}App management:${RESET}
|
|
344
371
|
${GREEN}app list${RESET} List your apps
|
|
@@ -347,6 +374,7 @@ ${BOLD}App management:${RESET}
|
|
|
347
374
|
${GREEN}app status${RESET} Show app status
|
|
348
375
|
|
|
349
376
|
${BOLD}Ops (Observability):${RESET}
|
|
377
|
+
${GREEN}logs${RESET} Show local dev server logs ${DIM}(--lines N, --follow)${RESET}
|
|
350
378
|
${GREEN}jobs${RESET} List cron jobs & scheduled tasks status
|
|
351
379
|
${GREEN}jobs history${RESET} Show recent cron execution history
|
|
352
380
|
${GREEN}jobs workflow cancel${RESET} Best-effort stop for pending/running workflow
|
|
@@ -464,7 +492,12 @@ ${BOLD}Examples:${RESET}
|
|
|
464
492
|
// ─── updateReadme: gencow/ 폴더 스캔 → README에 컴포넌트 문서 자동 추가 ────
|
|
465
493
|
|
|
466
494
|
const [, , rawCmd = "help", ...args] = process.argv;
|
|
467
|
-
const cmd =
|
|
495
|
+
const cmd =
|
|
496
|
+
rawCmd === "--help" || rawCmd === "-h"
|
|
497
|
+
? "help"
|
|
498
|
+
: rawCmd === "--version" || rawCmd === "-v"
|
|
499
|
+
? "version"
|
|
500
|
+
: rawCmd;
|
|
468
501
|
maybeCheckCliVersion({
|
|
469
502
|
command: cmd,
|
|
470
503
|
currentVersion: CLI_VERSION,
|