centaurus-cli 3.1.0 → 3.1.1

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.
@@ -1,4 +1,4 @@
1
- const IS_DEV_BUILD = process.env.DEV_MODE === "true";
1
+ const IS_DEV_BUILD = false;
2
2
  const PRODUCTION_BACKEND_URL = "https://centaurus-backend-712504605050.asia-south1.run.app/v1";
3
3
  const DEV_BACKEND_URL = "http://localhost:3002/v1";
4
4
  function getBackendUrl() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/config/build-config.ts"],"sourcesContent":["/**\r\n * Build Configuration Module\r\n * \r\n * This module captures the build mode at COMPILE TIME.\r\n * The IS_DEV_BUILD constant is determined by the DEV_MODE environment variable\r\n * that is set BEFORE running `npm run build`.\r\n * \r\n * HOW IT WORKS:\r\n * - Before building for production: set DEV_MODE=false in environment or .env\r\n * - Before building for development: set DEV_MODE=true in environment or .env\r\n * - The value is \"frozen\" when TypeScript compiles the code\r\n * \r\n * SECURITY: This completely eliminates runtime env injection attacks.\r\n * Production builds will ALWAYS use production URLs regardless of any\r\n * malicious .env files in the user's working directory.\r\n */\r\n\r\n/**\r\n * Whether this is a development build.\r\n * \r\n * This is captured at BUILD TIME from the DEV_MODE environment variable.\r\n * - When you run `npm run build` with DEV_MODE=true, this will be true\r\n * - When you run `npm run build` with DEV_MODE=false (or unset), this will be false\r\n * \r\n * IMPORTANT: This value cannot be changed at runtime!\r\n */\r\nexport const IS_DEV_BUILD: boolean = process.env.DEV_MODE === 'true';\r\n\r\n/**\r\n * Production backend API URL (hardcoded for security)\r\n * This is the Google Cloud Run deployment URL\r\n */\r\nexport const PRODUCTION_BACKEND_URL = 'https://centaurus-backend-712504605050.asia-south1.run.app/v1';\r\n\r\n/**\r\n * Development backend API URL (localhost)\r\n * Used when building with DEV_MODE=true\r\n */\r\nexport const DEV_BACKEND_URL = 'http://localhost:3002/v1';\r\n\r\n/**\r\n * Get the appropriate backend URL based on build mode.\r\n * Uses the compile-time IS_DEV_BUILD constant.\r\n */\r\nexport function getBackendUrl(): string {\r\n return IS_DEV_BUILD ? DEV_BACKEND_URL : PRODUCTION_BACKEND_URL;\r\n}\r\n"],"mappings":"AA0BO,MAAM,eAAwB,QAAQ,IAAI,aAAa;AAMvD,MAAM,yBAAyB;AAM/B,MAAM,kBAAkB;AAMxB,SAAS,gBAAwB;AACpC,SAAO,eAAe,kBAAkB;AAC5C;","names":[]}
1
+ {"version":3,"sources":["../../src/config/build-config.ts"],"sourcesContent":["/**\r\n * Build Configuration Module\r\n * \r\n * This module captures the build mode at COMPILE TIME.\r\n * The IS_DEV_BUILD constant is determined by the DEV_MODE environment variable\r\n * that is set BEFORE running `npm run build`.\r\n * \r\n * HOW IT WORKS:\r\n * - Before building for production: set DEV_MODE=false in environment or .env\r\n * - Before building for development: set DEV_MODE=true in environment or .env\r\n * - The value is \"frozen\" when TypeScript compiles the code\r\n * \r\n * SECURITY: This completely eliminates runtime env injection attacks.\r\n * Production builds will ALWAYS use production URLs regardless of any\r\n * malicious .env files in the user's working directory.\r\n */\r\n\r\n/**\r\n * Whether this is a development build.\r\n * \r\n * This is captured at BUILD TIME from the DEV_MODE environment variable.\r\n * - When you run `npm run build` with DEV_MODE=true, this will be true\r\n * - When you run `npm run build` with DEV_MODE=false (or unset), this will be false\r\n * \r\n * IMPORTANT: This value cannot be changed at runtime!\r\n */\r\nexport const IS_DEV_BUILD: boolean = process.env.DEV_MODE === 'true';\r\n\r\n/**\r\n * Production backend API URL (hardcoded for security)\r\n * This is the Google Cloud Run deployment URL\r\n */\r\nexport const PRODUCTION_BACKEND_URL = 'https://centaurus-backend-712504605050.asia-south1.run.app/v1';\r\n\r\n/**\r\n * Development backend API URL (localhost)\r\n * Used when building with DEV_MODE=true\r\n */\r\nexport const DEV_BACKEND_URL = 'http://localhost:3002/v1';\r\n\r\n/**\r\n * Get the appropriate backend URL based on build mode.\r\n * Uses the compile-time IS_DEV_BUILD constant.\r\n */\r\nexport function getBackendUrl(): string {\r\n return IS_DEV_BUILD ? DEV_BACKEND_URL : PRODUCTION_BACKEND_URL;\r\n}\r\n"],"mappings":"AA0BO,MAAM,eAAwB;AAM9B,MAAM,yBAAyB;AAM/B,MAAM,kBAAkB;AAMxB,SAAS,gBAAwB;AACpC,SAAO,eAAe,kBAAkB;AAC5C;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaurus-cli",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A powerful command-line AI coding assistant with Google Gemini support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",