cyberaudit-skill 3.1.3 → 3.1.4
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/cli.js +10 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from "commander";
|
|
3
|
-
import { existsSync, mkdirSync, cpSync, writeFileSync, readFileSync } from "fs";
|
|
3
|
+
import { existsSync, mkdirSync, cpSync, readdirSync, writeFileSync, readFileSync, unlinkSync } from "fs";
|
|
4
4
|
import { createInterface } from "readline";
|
|
5
5
|
import { homedir } from "os";
|
|
6
6
|
import { join, dirname } from "path";
|
|
@@ -58,6 +58,15 @@ function installSkill(targetDir, agent, dryRun) {
|
|
|
58
58
|
const cmdSrc = join(PKG_ROOT, "skills", "cyberaudit", "commands");
|
|
59
59
|
if (existsSync(cmdSrc)) {
|
|
60
60
|
mkdirSync(cmdDir, { recursive: true });
|
|
61
|
+
// Remove stale colon-named files (pre-v3.1.3)
|
|
62
|
+
for (const f of readdirSync(cmdDir)) {
|
|
63
|
+
if (typeof f === "string" && f.startsWith("audit:") && f.endsWith(".md")) {
|
|
64
|
+
try {
|
|
65
|
+
unlinkSync(join(cmdDir, f));
|
|
66
|
+
}
|
|
67
|
+
catch { }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
61
70
|
cpSync(cmdSrc, cmdDir, { recursive: true });
|
|
62
71
|
console.log(` ✓ Commands installed to opencode`);
|
|
63
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cyberaudit-skill",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Universal security audit skill for AI agents. Install once, audit any web or mobile app. OpenCode, Claude Code, Cursor, Kiro, Gemini — all supported.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|