periderm-cli 0.1.25 → 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 +1 -11
- package/dist/report/markdown.js +1 -1
- package/dist/review/deep.js +1 -1
- package/dist/scanner/checks.js +0 -1
- package/package.json +7 -8
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.
|
|
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
|
}
|
package/dist/report/markdown.js
CHANGED
|
@@ -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
|
}
|
package/dist/review/deep.js
CHANGED
|
@@ -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
|
|
146
|
+
"<!-- ✞ Jesus Loves You ✞ -->",
|
|
147
147
|
].join("\n");
|
|
148
148
|
return { markdown: md, findings };
|
|
149
149
|
}
|
package/dist/scanner/checks.js
CHANGED
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "periderm-cli",
|
|
3
|
-
"version": "0.1.
|
|
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
|
+
}
|