technical-debt-radar 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -58,10 +58,10 @@ radar scan . --format ai-prompt # Paste into Claude/Cursor for fixes
58
58
  - **Solo ($15/mo):** PR merge blocking + 50 AI credits
59
59
  - **Pro ($49/mo):** GitLab, cross-file AI, architecture graph
60
60
 
61
- https://technical-debt-radar.vercel.app/pricing
61
+ https://technicaldebtradar.com/pricing
62
62
 
63
63
  ## Links
64
64
 
65
- - Website: https://technical-debt-radar.vercel.app
66
- - Dashboard: https://technical-debt-radar.vercel.app/dashboard
65
+ - Website: https://technicaldebtradar.com
66
+ - Dashboard: https://technicaldebtradar.com/dashboard
67
67
  - GitHub: https://github.com/khalid-Elattar/technical_dept_radar
package/dist/index.js CHANGED
@@ -326,7 +326,7 @@ var require_plans = __commonJS({
326
326
  priceMonthly: 99,
327
327
  priceAnnual: 948,
328
328
  priceMonthlyIfAnnual: 79,
329
- limits: { maxRepos: -1, maxMembers: -1, aiCreditsPerMonth: 2e3, maxOrgs: 10, scansPerMonth: -1 },
329
+ limits: { maxRepos: -1, maxMembers: -1, aiCreditsPerMonth: 1800, maxOrgs: 10, scansPerMonth: -1 },
330
330
  features: {
331
331
  ...ALL_FEATURES_TRUE,
332
332
  sso: false,
@@ -342,7 +342,7 @@ var require_plans = __commonJS({
342
342
  priceMonthly: 299,
343
343
  priceAnnual: 2868,
344
344
  priceMonthlyIfAnnual: 239,
345
- limits: { maxRepos: -1, maxMembers: -1, aiCreditsPerMonth: -1, maxOrgs: -1, scansPerMonth: -1 },
345
+ limits: { maxRepos: -1, maxMembers: -1, aiCreditsPerMonth: 5e3, maxOrgs: -1, scansPerMonth: -1 },
346
346
  features: ALL_FEATURES_TRUE
347
347
  }
348
348
  };
@@ -18567,6 +18567,7 @@ var os = __toESM(require("os"));
18567
18567
  var CONFIG_DIR = path.join(os.homedir(), ".radar");
18568
18568
  var CONFIG_PATH = path.join(CONFIG_DIR, "config.json");
18569
18569
  var DEFAULT_API_URL = "https://radarapi-production.up.railway.app";
18570
+ var DEFAULT_APP_URL = "https://www.technicaldebtradar.com";
18570
18571
  function loadConfig() {
18571
18572
  try {
18572
18573
  if (!fs.existsSync(CONFIG_PATH)) return null;
@@ -18593,6 +18594,9 @@ function deleteConfig() {
18593
18594
  function getDefaultApiUrl() {
18594
18595
  return process.env.RADAR_API_URL || DEFAULT_API_URL;
18595
18596
  }
18597
+ function getDefaultAppUrl() {
18598
+ return process.env.RADAR_APP_URL || DEFAULT_APP_URL;
18599
+ }
18596
18600
 
18597
18601
  // src/auth/client.ts
18598
18602
  var RadarApiClient = class _RadarApiClient {
@@ -20480,8 +20484,7 @@ async function loginCommand(options) {
20480
20484
  await loginWithToken(options.token);
20481
20485
  return;
20482
20486
  }
20483
- const apiUrl = getDefaultApiUrl();
20484
- const dashUrl = apiUrl.includes("railway") ? "https://technical-debt-radar.vercel.app" : "http://localhost:3000";
20487
+ const dashUrl = getDefaultAppUrl();
20485
20488
  const authUrl = `${dashUrl}/cli-auth`;
20486
20489
  console.log(import_chalk6.default.cyan("\nOpening browser to generate a CLI token...\n"));
20487
20490
  console.log(`If the browser doesn't open, visit: ${import_chalk6.default.underline(authUrl)}
@@ -20597,7 +20600,7 @@ async function whoamiCommand() {
20597
20600
  // src/commands/upgrade.ts
20598
20601
  var import_chalk9 = __toESM(require("chalk"));
20599
20602
  async function upgradeCommand() {
20600
- const url = "https://technical-debt-radar.vercel.app/dashboard/billing/upgrade";
20603
+ const url = `${getDefaultAppUrl()}/dashboard/billing/upgrade`;
20601
20604
  console.log(import_chalk9.default.cyan("\nOpening upgrade page in browser...\n"));
20602
20605
  console.log(`If the browser doesn't open, visit: ${import_chalk9.default.underline(url)}
20603
20606
  `);
@@ -20611,7 +20614,7 @@ async function upgradeCommand() {
20611
20614
 
20612
20615
  // src/index.ts
20613
20616
  var program = new import_commander.Command();
20614
- program.name("radar").description("Technical Debt Radar \u2014 Architecture & Runtime Safety CLI").version("1.0.0");
20617
+ program.name("radar").description("Technical Debt Radar \u2014 Architecture & Runtime Safety CLI").version("1.0.1");
20615
20618
  program.command("scan <path>").description("Scan a directory for technical debt").option("-c, --config <path>", "Path to radar.yml", "./radar.yml").option("-r, --rules <path>", "Path to rules.yml (default: ./rules.yml)").option("-f, --format <type>", "Output format: text, json, table, markdown, ai-prompt, ai-json, pr", "text").option("--fail-on <severity>", "Exit code 1 on: critical, warning", "critical").option("--no-ai", "Skip AI analysis (faster, no API cost)").action(async (targetPath, options) => {
20616
20619
  await scanCommand(targetPath, options);
20617
20620
  });
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "technical-debt-radar",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Stop Node.js production crashes before merge. 47 detection patterns across 5 categories.",
5
5
  "bin": {
6
- "radar": "./dist/index.js",
7
- "technical-debt-radar": "./dist/index.js"
6
+ "radar": "dist/index.js",
7
+ "technical-debt-radar": "dist/index.js"
8
8
  },
9
9
  "files": [
10
10
  "dist/",
@@ -30,9 +30,9 @@
30
30
  "license": "MIT",
31
31
  "repository": {
32
32
  "type": "git",
33
- "url": "https://github.com/khalid-Elattar/technical_dept_radar"
33
+ "url": "git+https://github.com/khalid-Elattar/technical_dept_radar.git"
34
34
  },
35
- "homepage": "https://technical-debt-radar.vercel.app",
35
+ "homepage": "https://technicaldebtradar.com",
36
36
  "engines": {
37
37
  "node": ">=18"
38
38
  },