@keygraph/shannon 1.0.0-beta.1 → 1.0.0-beta.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 +22 -0
- package/dist/index.mjs +0 -28
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="https://raw.githubusercontent.com/KeygraphHQ/shannon/main/assets/github-banner.png" alt="Shannon — AI Pentester for Web Applications and APIs" width="100%">
|
|
4
|
+
|
|
5
|
+
# Shannon — AI Pentester by Keygraph
|
|
6
|
+
|
|
7
|
+
Shannon is an autonomous, white-box AI pentester for web applications and APIs. <br />
|
|
8
|
+
It analyzes your source code, identifies attack vectors, and executes real exploits to prove vulnerabilities before they reach production.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<a href="https://github.com/KeygraphHQ/shannon/discussions/categories/announcements"><img src="https://raw.githubusercontent.com/KeygraphHQ/shannon/main/assets/announcements.png" height="40" alt="Announcements"></a>
|
|
13
|
+
<a href="https://discord.gg/9ZqQPuhJB7"><img src="https://raw.githubusercontent.com/KeygraphHQ/shannon/main/assets/discord.png" height="40" alt="Join Discord"></a>
|
|
14
|
+
<a href="https://keygraph.io/"><img src="https://raw.githubusercontent.com/KeygraphHQ/shannon/main/assets/Keygraph_Button.png" height="40" alt="Visit Keygraph.io"></a>
|
|
15
|
+
<a href="https://www.linkedin.com/company/keygraph/"><img src="https://raw.githubusercontent.com/KeygraphHQ/shannon/main/assets/linkedin.png" height="40" alt="Follow Us on Linkedin"></a>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
**Full README and usage guide**
|
|
20
|
+
[https://github.com/KeygraphHQ/shannon#readme](https://github.com/KeygraphHQ/shannon#readme)
|
|
21
|
+
|
|
22
|
+
</div>
|
package/dist/index.mjs
CHANGED
|
@@ -248,21 +248,6 @@ function stopInfra(clean) {
|
|
|
248
248
|
execFileSync("docker", args, { stdio: "inherit" });
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
|
-
* Pull the worker image matching the current CLI version.
|
|
252
|
-
*/
|
|
253
|
-
function pullImage(version) {
|
|
254
|
-
const image = getWorkerImage(version);
|
|
255
|
-
console.log(`Pulling ${image}...`);
|
|
256
|
-
try {
|
|
257
|
-
execFileSync("docker", ["pull", image], { stdio: "inherit" });
|
|
258
|
-
} catch {
|
|
259
|
-
console.error(`\nERROR: Failed to pull ${image}`);
|
|
260
|
-
console.error("Check https://hub.docker.com/r/keygraph/shannon for available tags.");
|
|
261
|
-
process.exit(1);
|
|
262
|
-
}
|
|
263
|
-
pruneOldImages(version);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
251
|
* Remove old keygraph/shannon images that don't match the current version.
|
|
267
252
|
*/
|
|
268
253
|
function pruneOldImages(currentVersion) {
|
|
@@ -1471,15 +1456,6 @@ async function uninstall() {
|
|
|
1471
1456
|
p.outro("Shannon has been uninstalled. Run `npx @keygraph/shannon setup` to start fresh.");
|
|
1472
1457
|
}
|
|
1473
1458
|
//#endregion
|
|
1474
|
-
//#region src/commands/update.ts
|
|
1475
|
-
/**
|
|
1476
|
-
* `shannon update` command — pull the worker image matching the current CLI version.
|
|
1477
|
-
*/
|
|
1478
|
-
function update(version) {
|
|
1479
|
-
pullImage(version);
|
|
1480
|
-
console.log("Update complete.");
|
|
1481
|
-
}
|
|
1482
|
-
//#endregion
|
|
1483
1459
|
//#region src/commands/workspaces.ts
|
|
1484
1460
|
/**
|
|
1485
1461
|
* `shannon workspaces` command — list all workspaces.
|
|
@@ -1546,7 +1522,6 @@ Usage:${mode === "local" ? "" : `
|
|
|
1546
1522
|
${prefix} logs <workspace> Tail workflow log
|
|
1547
1523
|
${prefix} status Show running workers${mode === "local" ? `
|
|
1548
1524
|
${prefix} build [--no-cache] Build worker image` : `
|
|
1549
|
-
${prefix} update Pull latest image
|
|
1550
1525
|
${prefix} uninstall Remove ~/.shannon/ and all data`}
|
|
1551
1526
|
${prefix} info Show splash screen
|
|
1552
1527
|
${prefix} help Show this help
|
|
@@ -1683,9 +1658,6 @@ switch (command) {
|
|
|
1683
1658
|
case "build":
|
|
1684
1659
|
build(args.includes("--no-cache"));
|
|
1685
1660
|
break;
|
|
1686
|
-
case "update":
|
|
1687
|
-
update(getVersion());
|
|
1688
|
-
break;
|
|
1689
1661
|
case "uninstall":
|
|
1690
1662
|
if (getMode() === "local") {
|
|
1691
1663
|
console.error("ERROR: uninstall is only available in npx mode.");
|
package/package.json
CHANGED