@ooneex/cli 1.26.3 → 1.28.0
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/dist/index.js +14 -3
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34662,7 +34662,7 @@ MakeAnalyticsCommand = __legacyDecorateClassTS([
|
|
|
34662
34662
|
import { join as join11 } from "path";
|
|
34663
34663
|
import { decorator as decorator11 } from "@ooneex/command";
|
|
34664
34664
|
import { TerminalLogger as TerminalLogger10 } from "@ooneex/logger";
|
|
34665
|
-
import { toKebabCase as toKebabCase2, toSnakeCase } from "@ooneex/utils";
|
|
34665
|
+
import { random, toKebabCase as toKebabCase2, toSnakeCase } from "@ooneex/utils";
|
|
34666
34666
|
|
|
34667
34667
|
// src/prompts/askDestination.ts
|
|
34668
34668
|
var import_enquirer2 = __toESM(require_enquirer(), 1);
|
|
@@ -35345,10 +35345,19 @@ RESEND_API_KEY=
|
|
|
35345
35345
|
# Secret key for HS256 JWT signing and verification
|
|
35346
35346
|
JWT_SECRET=
|
|
35347
35347
|
|
|
35348
|
+
# =============================================================================
|
|
35349
|
+
# CSRF
|
|
35350
|
+
# =============================================================================
|
|
35351
|
+
|
|
35352
|
+
# Secret key for CSRF token generation and verification
|
|
35353
|
+
CSRF_SECRET=
|
|
35354
|
+
|
|
35348
35355
|
# =============================================================================
|
|
35349
35356
|
# AI
|
|
35350
35357
|
# =============================================================================
|
|
35351
35358
|
|
|
35359
|
+
# OpenRouter API key for accessing 300+ AI models
|
|
35360
|
+
OPENROUTER_API_KEY=
|
|
35352
35361
|
# OpenAI API key
|
|
35353
35362
|
OPENAI_API_KEY=
|
|
35354
35363
|
# Anthropic API key for Claude models
|
|
@@ -35832,7 +35841,7 @@ class MakeAppCommand {
|
|
|
35832
35841
|
const appModulePackagePath = join11(destination, "modules", "app", "package.json");
|
|
35833
35842
|
const appModulePackageJson = await Bun.file(appModulePackagePath).json();
|
|
35834
35843
|
await Bun.write(appModulePackagePath, JSON.stringify(appModulePackageJson, null, 2));
|
|
35835
|
-
const envContent = env_default.replace(/^DATABASE_URL=/m, 'DATABASE_URL="postgresql://ooneex:ooneex@localhost:5432/ooneex"').replace(/^CACHE_REDIS_URL=/m, 'CACHE_REDIS_URL="redis://localhost:6379"').replace(/^PUBSUB_REDIS_URL=/m, 'PUBSUB_REDIS_URL="redis://localhost:6379"').replace(/^RATE_LIMIT_REDIS_URL=/m, 'RATE_LIMIT_REDIS_URL="redis://localhost:6379"').replace(/^DATABASE_REDIS_URL=/m, 'DATABASE_REDIS_URL="redis://localhost:6379"');
|
|
35844
|
+
const envContent = env_default.replace(/^DATABASE_URL=/m, 'DATABASE_URL="postgresql://ooneex:ooneex@localhost:5432/ooneex"').replace(/^CACHE_REDIS_URL=/m, 'CACHE_REDIS_URL="redis://localhost:6379"').replace(/^PUBSUB_REDIS_URL=/m, 'PUBSUB_REDIS_URL="redis://localhost:6379"').replace(/^RATE_LIMIT_REDIS_URL=/m, 'RATE_LIMIT_REDIS_URL="redis://localhost:6379"').replace(/^DATABASE_REDIS_URL=/m, 'DATABASE_REDIS_URL="redis://localhost:6379"').replace(/^CSRF_SECRET=/m, `CSRF_SECRET="${random.nanoid(20)}"`);
|
|
35836
35845
|
await Bun.write(join11(destination, "modules", "app", ".env"), envContent);
|
|
35837
35846
|
await Bun.write(join11(destination, "modules", "app", ".env.example"), env_default);
|
|
35838
35847
|
await Bun.write(join11(destination, "modules", "app", "src", "index.ts"), index_ts_default);
|
|
@@ -38176,9 +38185,11 @@ describe("{{NAME}}Mailer", () => {
|
|
|
38176
38185
|
|
|
38177
38186
|
// src/templates/mailer/mailer.txt
|
|
38178
38187
|
var mailer_default = `import { inject } from "@ooneex/container";
|
|
38188
|
+
import { decorator } from "@ooneex/mailer";
|
|
38179
38189
|
import type { IMailer } from "@ooneex/mailer";
|
|
38180
38190
|
import { type {{NAME}}MailerPropsType, {{NAME}}MailerTemplate } from "./{{NAME}}MailerTemplate";
|
|
38181
38191
|
|
|
38192
|
+
@decorator.mailer()
|
|
38182
38193
|
export class {{NAME}}Mailer implements IMailer {
|
|
38183
38194
|
constructor(
|
|
38184
38195
|
@inject("mailer")
|
|
@@ -50719,4 +50730,4 @@ SeedRunCommand = __legacyDecorateClassTS([
|
|
|
50719
50730
|
// src/index.ts
|
|
50720
50731
|
await run();
|
|
50721
50732
|
|
|
50722
|
-
//# debugId=
|
|
50733
|
+
//# debugId=A74A2B5D51DC1F6964756E2164756E21
|