@trydecember/cli 0.3.11 → 0.3.12

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.
Files changed (2) hide show
  1. package/dist/december.js +11 -4
  2. package/package.json +1 -1
package/dist/december.js CHANGED
@@ -23149,7 +23149,7 @@ var init_env = __esm(() => {
23149
23149
  init_zod();
23150
23150
  env3 = createEnv({
23151
23151
  server: {
23152
- ENV: exports_external.enum(["DEV", "TEST", "PROD"]).default("DEV"),
23152
+ NODE_ENV: exports_external.enum(["development", "test", "production"]).default("development"),
23153
23153
  PORT: exports_external.coerce.number().default(3000),
23154
23154
  LOG_LEVEL: exports_external.enum(["debug", "info", "warn", "error"]).default("info"),
23155
23155
  DATABASE_URL: exports_external.string().optional(),
@@ -23166,8 +23166,15 @@ var init_env = __esm(() => {
23166
23166
  clientPrefix: "",
23167
23167
  client: {},
23168
23168
  runtimeEnv: process.env,
23169
- emptyStringAsUndefined: true
23169
+ emptyStringAsUndefined: true,
23170
+ onValidationError: (error3) => {
23171
+ console.error("Shared environment validation error:", error3);
23172
+ throw new Error("Invalid shared environment variables");
23173
+ }
23170
23174
  });
23175
+ if (env3.NODE_ENV === "production" && env3.JWT_SECRET === "default-dev-jwt-secret") {
23176
+ throw new Error("JWT_SECRET must be configured with a secure secret in production.");
23177
+ }
23171
23178
  });
23172
23179
 
23173
23180
  // ../../packages/shared/src/truncate.ts
@@ -265435,7 +265442,7 @@ function instantiateProvider(provider, apiKey) {
265435
265442
  return openaiProvider(`http://localhost:${process.env.SERVER_PORT}/api/v1`, apiKey);
265436
265443
  }
265437
265444
  const serverUrl = process.env.SERVER_URL || "https://api.trydecember.com";
265438
- const proxyUrl = `${serverUrl}/api/v1/cli`;
265445
+ const proxyUrl = `${serverUrl.replace(/\/+$/, "")}/api/v1/cli`;
265439
265446
  return openaiProvider(proxyUrl, apiKey);
265440
265447
  }
265441
265448
  }
@@ -267456,7 +267463,7 @@ import path20 from "node:path";
267456
267463
  // package.json
267457
267464
  var package_default = {
267458
267465
  name: "@trydecember/cli",
267459
- version: "0.3.11",
267466
+ version: "0.3.12",
267460
267467
  description: "AI coding agent for terminal and cloud.",
267461
267468
  homepage: "https://trydecember.com",
267462
267469
  repository: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trydecember/cli",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "AI coding agent for terminal and cloud.",
5
5
  "homepage": "https://trydecember.com",
6
6
  "repository": {