panguard 0.3.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.
Files changed (2) hide show
  1. package/bin/panguard.js +20 -0
  2. package/package.json +33 -0
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ // Thin wrapper: delegates to @panguard-ai/panguard CLI
3
+ const { join, dirname } = require('path');
4
+ const { createRequire } = require('module');
5
+
6
+ // resolve the installed @panguard-ai/panguard package directory
7
+ const r = createRequire(__filename);
8
+ let pkgDir;
9
+ try {
10
+ // package.json is always resolvable regardless of ESM/CJS
11
+ const pkgJson = r.resolve('@panguard-ai/panguard/package.json');
12
+ pkgDir = dirname(pkgJson);
13
+ } catch {
14
+ console.error('Error: @panguard-ai/panguard is not installed.');
15
+ console.error('Run: npm install -g @panguard-ai/panguard');
16
+ process.exit(1);
17
+ }
18
+
19
+ const cli = join(pkgDir, 'dist', 'cli', 'index.js');
20
+ import(cli).catch(e => { console.error(e.message); process.exit(1); });
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "panguard",
3
+ "version": "0.3.2",
4
+ "license": "MIT",
5
+ "description": "AI security for agents and servers -- one command to protect everything",
6
+ "bin": {
7
+ "panguard": "./bin/panguard.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "package.json"
12
+ ],
13
+ "dependencies": {
14
+ "@panguard-ai/panguard": "0.3.2"
15
+ },
16
+ "engines": {
17
+ "node": ">=18.0.0"
18
+ },
19
+ "keywords": [
20
+ "security",
21
+ "ai",
22
+ "agent",
23
+ "mcp",
24
+ "guard",
25
+ "scan",
26
+ "panguard"
27
+ ],
28
+ "homepage": "https://panguard.ai",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/panguard-ai/panguard-ai"
32
+ }
33
+ }