agentaudit 3.9.25 → 3.9.27

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.
Files changed (2) hide show
  1. package/cli.mjs +10 -2
  2. package/package.json +45 -45
package/cli.mjs CHANGED
@@ -388,7 +388,14 @@ function banner() {
388
388
 
389
389
  function slugFromUrl(url) {
390
390
  const match = url.match(/github\.com\/([^/]+)\/([^/.\s]+)/);
391
- if (match) return match[2].toLowerCase().replace(/[^a-z0-9-]/g, '-');
391
+ if (match) {
392
+ const owner = match[1].toLowerCase().replace(/[^a-z0-9-]/g, '-');
393
+ const repo = match[2].toLowerCase().replace(/[^a-z0-9-]/g, '-');
394
+ // Generic repo names get owner prefix to avoid collisions
395
+ const generic = ['mcp', 'server', 'plugin', 'tool', 'agent', 'sdk', 'api', 'app', 'cli', 'lib', 'core'];
396
+ if (generic.includes(repo)) return `${owner}-${repo}`;
397
+ return repo;
398
+ }
392
399
  return url.replace(/[^a-z0-9]/gi, '-').toLowerCase().slice(0, 60);
393
400
  }
394
401
 
@@ -1670,8 +1677,9 @@ async function auditRepo(url) {
1670
1677
  });
1671
1678
  if (res.ok) {
1672
1679
  const data = await res.json();
1680
+ const reportSlug = data?.skill_slug || data?.slug || slug;
1673
1681
  console.log(` ${c.green}done${c.reset}`);
1674
- console.log(` ${c.dim}Report: ${REGISTRY_URL}/skills/${slug}${c.reset}`);
1682
+ console.log(` ${c.dim}Report: ${REGISTRY_URL}/skills/${reportSlug}${c.reset}`);
1675
1683
  } else {
1676
1684
  console.log(` ${c.yellow}failed (HTTP ${res.status})${c.reset}`);
1677
1685
  }
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "agentaudit",
3
- "version": "3.9.25",
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.27",
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
+ }