periderm-cli 0.1.24 → 0.1.26

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 CHANGED
@@ -174,12 +174,7 @@ program
174
174
  throw new Error(`Upload failed: ${res.error}\nContext: Uploading scan for project ${result.projectName}`);
175
175
  }
176
176
  else {
177
- uploadSpinner.succeed(`Uploaded! View it at: ${chalk.underline.blue(`${cfg.apiUrl}/dashboard/scans/${res.id ?? ""}`)}`);
178
- const username = os.userInfo().username;
179
- const hostname = os.hostname();
180
- const header = `${username}@${hostname}`;
181
- const formatEmail = v.email || v.user_id || "Unknown";
182
- const formatPlan = v.plan || "starter";
177
+ uploadSpinner.succeed(`Uploaded! View it at: ${chalk.underline.cyan(`${cfg.apiUrl}/dashboard/scans/${res.id ?? ""}`)}`);
183
178
  let formatQuota = "Unlimited";
184
179
  let remainingNum = Infinity;
185
180
  if (v.plan !== "unlimited" && v.scans_remaining !== undefined) {
@@ -187,10 +182,6 @@ program
187
182
  formatQuota = `${remainingNum} scans`;
188
183
  }
189
184
  console.info("");
190
- console.info(chalk.white("───────────────────────────────────"));
191
- console.info("");
192
- console.info(chalk.bold.white("Account : ") + chalk.white(formatEmail));
193
- console.info(chalk.bold.white("Plan : ") + chalk.magenta(formatPlan));
194
185
  console.info(chalk.bold.white("Quota : ") + chalk.yellow(formatQuota));
195
186
  console.info("");
196
187
  console.info(chalk.bold.white("[Next Steps]"));
@@ -198,7 +189,6 @@ program
198
189
  console.info(chalk.white(" 2. Local only ") + chalk.hex("#FF4D00")("$ periderm scan --local-only"));
199
190
  console.info(chalk.white(" 3. Log out ") + chalk.hex("#FF4D00")("$ periderm logout"));
200
191
  console.info("");
201
- console.info(chalk.white("Need help? Visit ") + chalk.underline.cyan(`${cfg.apiUrl}/docs`) + chalk.white("\n"));
202
192
  if (remainingNum <= 3 && v.plan !== "unlimited") {
203
193
  console.info(chalk.yellow(`⚠ Almost exhausted! Renew or upgrade at `) + chalk.underline.cyan(`${cfg.apiUrl}/dashboard/billing`));
204
194
  }
@@ -109,6 +109,6 @@ export function renderMarkdown(r) {
109
109
  lines.push("```");
110
110
  lines.push("");
111
111
  // Hidden watermark — only visible in raw .md source
112
- lines.push("<!-- ✞ Jesus Is Lord ✞ — Philippians 2:10-11 -->");
112
+ lines.push("<!-- ✞ Jesus Is Lord ✞ — Philippians 2:10-11 & Jesus Loves You -->");
113
113
  return lines.join("\n");
114
114
  }
@@ -143,7 +143,7 @@ Rules: max 5 new findings, be specific, cite files, no hallucinated files.${orgR
143
143
  : ["No additional findings beyond the static scan."]),
144
144
  "",
145
145
  `_Agent tools used: ${toolLog.length ? toolLog.join(", ") : "none"}_`,
146
- "<!-- ✞ Jesus Is Lord ✞ -->",
146
+ "<!-- ✞ Jesus Loves You ✞ -->",
147
147
  ].join("\n");
148
148
  return { markdown: md, findings };
149
149
  }
@@ -726,7 +726,6 @@ export function runChecks(source, file, ast) {
726
726
  out.push(...c(source, file, ast));
727
727
  }
728
728
  catch (e) {
729
- console.error(`[periderm] Check failed on ${file}:`, e);
730
729
  out.push(mkFinding({ id: "internal-error", category: "Runtime Stability", severity: "high", file, line: 1, message: `Scanner crashed: ${e}`, why: "Internal exception in scanner rule.", fix: "Report this issue.", aiPrompt: "Fix the crash in the scanner rule." }));
731
730
  }
732
731
  }
@@ -27,15 +27,22 @@ export async function checkUpdate() {
27
27
  const isUnix = process.platform !== "win32" && process.platform !== "android";
28
28
  const npmCmd = isUnix ? `sudo npm install -g ${name}` : `npm install -g ${name}`;
29
29
  const curlCmd = `curl -fsSL ${apiUrl}/install.sh | bash`;
30
- const header = "Update Available";
31
- console.log("");
32
- console.log(chalk.bold.cyan(header));
33
- console.log(chalk.white("─".repeat(header.length)));
34
- console.log(chalk.bold.green(`↑ v${latestVersion} is out now`) + chalk.white(` (you have v${currentVersion})`));
35
- console.log("");
36
- console.log(chalk.bold.white("NPM : ") + chalk.white(npmCmd));
37
- console.log(chalk.bold.white("cURL : ") + chalk.white(curlCmd));
38
- console.log("");
30
+ const title = `A new version of Periderm CLI is available: ${currentVersion} → ${latestVersion}`;
31
+ const textNpm = `Update via npm: ${npmCmd}`;
32
+ const textCurl = `Update via curl: ${curlCmd}`;
33
+ const width = Math.max(title.length, textNpm.length, textCurl.length) + 4;
34
+ const pad = (rawLen) => " ".repeat(Math.max(0, width - rawLen - 2));
35
+ const box = `
36
+ ╭${"─".repeat(width)}╮
37
+ │${" ".repeat(width)}│
38
+ │ A new version of Periderm CLI is available: ${chalk.dim(currentVersion)} → ${chalk.green(latestVersion)}${pad(title.length)}│
39
+ │${" ".repeat(width)}│
40
+ │ Update via npm: ${chalk.cyan(npmCmd)}${pad(textNpm.length)}│
41
+ │ Update via curl: ${chalk.cyan(curlCmd)}${pad(textCurl.length)}│
42
+ │${" ".repeat(width)}│
43
+ ╰${"─".repeat(width)}╯
44
+ `;
45
+ console.log(box);
39
46
  }
40
47
  }
41
48
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "periderm-cli",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "A pre-launch checklist for your codebase. Scan JS, TS, JSX, and TSX projects before you ship.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,12 +36,6 @@
36
36
  },
37
37
  "author": "Periderm",
38
38
  "license": "MIT",
39
- "scripts": {
40
- "build": "tsc -p tsconfig.json && chmod +x dist/bin.js",
41
- "postpublish": "cd ../../ && tsx --env-file=.env scripts/broadcast-update.ts",
42
- "dev": "tsx src/index.ts",
43
- "start": "node dist/index.js"
44
- },
45
39
  "dependencies": {
46
40
  "@babel/parser": "^7.25.0",
47
41
  "@babel/traverse": "^7.25.0",
@@ -60,5 +54,10 @@
60
54
  },
61
55
  "engines": {
62
56
  "node": ">=18"
57
+ },
58
+ "scripts": {
59
+ "build": "tsc -p tsconfig.json && chmod +x dist/bin.js",
60
+ "dev": "tsx src/index.ts",
61
+ "start": "node dist/index.js"
63
62
  }
64
- }
63
+ }