agentaudit 3.9.26 โ 3.9.28
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/cli.mjs +25 -2
- package/package.json +45 -45
package/cli.mjs
CHANGED
|
@@ -380,8 +380,10 @@ function getVersion() {
|
|
|
380
380
|
|
|
381
381
|
function banner() {
|
|
382
382
|
if (quietMode || jsonMode) return;
|
|
383
|
+
const creds = loadCredentials();
|
|
384
|
+
const agentInfo = creds?.agent_name ? ` ${c.dim}ยท${c.reset} ${c.green}${creds.agent_name}${c.reset}` : '';
|
|
383
385
|
console.log();
|
|
384
|
-
console.log(` ๐ก ${c.bold}${c.cyan}AgentAudit${c.reset} ${c.dim}v${getVersion()}${c.reset}`);
|
|
386
|
+
console.log(` ๐ก ${c.bold}${c.cyan}AgentAudit${c.reset} ${c.dim}v${getVersion()}${c.reset}${agentInfo}`);
|
|
385
387
|
console.log(` ${c.dim}Security scanner for AI tools${c.reset}`);
|
|
386
388
|
console.log();
|
|
387
389
|
}
|
|
@@ -1677,8 +1679,9 @@ async function auditRepo(url) {
|
|
|
1677
1679
|
});
|
|
1678
1680
|
if (res.ok) {
|
|
1679
1681
|
const data = await res.json();
|
|
1682
|
+
const reportSlug = data?.skill_slug || data?.slug || slug;
|
|
1680
1683
|
console.log(` ${c.green}done${c.reset}`);
|
|
1681
|
-
console.log(` ${c.dim}Report: ${REGISTRY_URL}/skills/${
|
|
1684
|
+
console.log(` ${c.dim}Report: ${REGISTRY_URL}/skills/${reportSlug}${c.reset}`);
|
|
1682
1685
|
} else {
|
|
1683
1686
|
console.log(` ${c.yellow}failed (HTTP ${res.status})${c.reset}`);
|
|
1684
1687
|
}
|
|
@@ -1963,6 +1966,26 @@ async function main() {
|
|
|
1963
1966
|
if (creds?.api_key) {
|
|
1964
1967
|
const masked = creds.api_key.substring(0, 8) + '...' + creds.api_key.substring(creds.api_key.length - 4);
|
|
1965
1968
|
console.log(` ${c.green}โ${c.reset} AgentAudit ${c.dim}${masked}${c.reset} ${c.dim}(${creds.agent_name || 'unknown'})${c.reset}`);
|
|
1969
|
+
// Fetch agent stats from leaderboard
|
|
1970
|
+
try {
|
|
1971
|
+
const lbRes = await fetch(`${REGISTRY_URL}/api/leaderboard`, { signal: AbortSignal.timeout(5000) });
|
|
1972
|
+
if (lbRes.ok) {
|
|
1973
|
+
const agents = await lbRes.json();
|
|
1974
|
+
const myName = creds.agent_name?.toLowerCase();
|
|
1975
|
+
const idx = Array.isArray(agents) ? agents.findIndex((a) => (a.agent_name || '').toLowerCase() === myName) : -1;
|
|
1976
|
+
if (idx >= 0) {
|
|
1977
|
+
const me = agents[idx];
|
|
1978
|
+
const pts = me.total_points || 0;
|
|
1979
|
+
const reports = me.total_reports || 0;
|
|
1980
|
+
const rank = idx + 1;
|
|
1981
|
+
const medal = rank === 1 ? '๐ฅ' : rank === 2 ? '๐ฅ' : rank === 3 ? '๐ฅ' : ' ';
|
|
1982
|
+
console.log();
|
|
1983
|
+
console.log(` ${c.bold}Your Stats:${c.reset}`);
|
|
1984
|
+
console.log(` ${medal} Rank #${rank} of ${agents.length} ${c.dim}โ${c.reset} ${c.cyan}${pts}${c.reset} points ${c.dim}โ${c.reset} ${reports} reports`);
|
|
1985
|
+
if (me.is_official) console.log(` ${c.green}โ Official Auditor${c.reset}`);
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
} catch {}
|
|
1966
1989
|
} else {
|
|
1967
1990
|
console.log(` ${c.dim}โ${c.reset} AgentAudit ${c.dim}not set${c.reset} ${c.dim}(run: agentaudit setup)${c.reset}`);
|
|
1968
1991
|
}
|
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "agentaudit",
|
|
3
|
-
"version": "3.9.
|
|
4
|
-
"description": "Security scanner for AI packages โ MCP server + CLI",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"agentaudit": "./cli.mjs"
|
|
8
|
-
},
|
|
9
|
-
"main": "index.mjs",
|
|
10
|
-
"files": [
|
|
11
|
-
"index.mjs",
|
|
12
|
-
"cli.mjs",
|
|
13
|
-
"prompts/audit-prompt.md",
|
|
14
|
-
"LICENSE",
|
|
15
|
-
"README.md"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"start": "node index.mjs",
|
|
19
|
-
"scan": "node cli.mjs scan"
|
|
20
|
-
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"security",
|
|
23
|
-
"audit",
|
|
24
|
-
"mcp",
|
|
25
|
-
"mcp-server",
|
|
26
|
-
"ai-agent",
|
|
27
|
-
"scanner",
|
|
28
|
-
"vulnerability",
|
|
29
|
-
"prompt-injection",
|
|
30
|
-
"agent-security"
|
|
31
|
-
],
|
|
32
|
-
"author": "starbuck100",
|
|
33
|
-
"license": "AGPL-3.0",
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "https://github.com/starbuck100/agentaudit-mcp.git"
|
|
37
|
-
},
|
|
38
|
-
"homepage": "https://agentaudit.dev",
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">=18.0.0"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "agentaudit",
|
|
3
|
+
"version": "3.9.28",
|
|
4
|
+
"description": "Security scanner for AI packages โ MCP server + CLI",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"agentaudit": "./cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"main": "index.mjs",
|
|
10
|
+
"files": [
|
|
11
|
+
"index.mjs",
|
|
12
|
+
"cli.mjs",
|
|
13
|
+
"prompts/audit-prompt.md",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"start": "node index.mjs",
|
|
19
|
+
"scan": "node cli.mjs scan"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"security",
|
|
23
|
+
"audit",
|
|
24
|
+
"mcp",
|
|
25
|
+
"mcp-server",
|
|
26
|
+
"ai-agent",
|
|
27
|
+
"scanner",
|
|
28
|
+
"vulnerability",
|
|
29
|
+
"prompt-injection",
|
|
30
|
+
"agent-security"
|
|
31
|
+
],
|
|
32
|
+
"author": "starbuck100",
|
|
33
|
+
"license": "AGPL-3.0",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/starbuck100/agentaudit-mcp.git"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://agentaudit.dev",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
44
|
+
}
|
|
45
|
+
}
|