@panguard-ai/panguard 0.1.1 → 0.2.1

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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * panguard admin - Admin management commands
3
+ *
4
+ * panguard admin init Create initial admin account
5
+ * panguard admin create-user Create a user with specified tier
6
+ */
7
+ import { Command } from 'commander';
8
+ export declare function adminCommand(): Command;
9
+ //# sourceMappingURL=admin.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * panguard chat - Notification system management
3
+ * panguard chat - 通知系統管理
4
+ */
5
+ import { Command } from 'commander';
6
+ export declare function chatCommand(): Command;
7
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * panguard demo - Automated demo sequence
3
+ * panguard demo - 自動化展示序列
4
+ */
5
+ import { Command } from 'commander';
6
+ export declare function demoCommand(): Command;
7
+ //# sourceMappingURL=demo.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * panguard guard - Guard engine management
3
+ * panguard guard - 守護引擎管理
4
+ */
5
+ import { Command } from 'commander';
6
+ export declare function guardCommand(): Command;
7
+ //# sourceMappingURL=guard.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * panguard report - Compliance report generation
3
+ * panguard report - 合規報告產生
4
+ */
5
+ import { Command } from 'commander';
6
+ export declare function reportCommand(): Command;
7
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * panguard scan - Security scanning command
3
+ * panguard scan - 安全掃描命令
4
+ */
5
+ import { Command } from 'commander';
6
+ export declare function scanCommand(): Command;
7
+ //# sourceMappingURL=scan.d.ts.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * panguard serve - Unified HTTP server gateway
3
+ *
4
+ * Serves auth API, admin API, admin dashboard UI, and health check.
5
+ */
6
+ import { Command } from 'commander';
7
+ export declare function serveCommand(): Command;
8
+ //# sourceMappingURL=serve.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * panguard threat - Threat intelligence API management
3
+ * panguard threat - 威脅情報 API 管理
4
+ */
5
+ import { Command } from 'commander';
6
+ export declare function threatCommand(): Command;
7
+ //# sourceMappingURL=threat.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * panguard trap - Honeypot system management
3
+ * panguard trap - 蜜罐系統管理
4
+ */
5
+ import { Command } from 'commander';
6
+ export declare function trapCommand(): Command;
7
+ //# sourceMappingURL=trap.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panguard-ai/panguard",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Panguard AI - Unified security CLI",
6
6
  "main": "./dist/index.js",
@@ -13,20 +13,21 @@
13
13
  },
14
14
  "files": [
15
15
  "dist",
16
+ "scripts",
16
17
  "package.json",
17
18
  "README.md"
18
19
  ],
19
20
  "dependencies": {
20
21
  "commander": "^12.0.0",
21
- "@panguard-ai/core": "0.1.1",
22
- "@panguard-ai/panguard-report": "0.1.1",
23
- "@panguard-ai/panguard-scan": "0.1.1",
24
- "@panguard-ai/panguard-chat": "0.1.1",
25
- "@panguard-ai/panguard-guard": "0.1.1",
26
- "@panguard-ai/panguard-trap": "0.1.1",
27
- "@panguard-ai/panguard-auth": "0.1.1",
22
+ "@panguard-ai/core": "0.2.0",
23
+ "@panguard-ai/panguard-guard": "0.2.0",
24
+ "@panguard-ai/panguard-scan": "0.2.0",
25
+ "@panguard-ai/panguard-report": "0.2.0",
26
+ "@panguard-ai/panguard-chat": "0.2.0",
27
+ "@panguard-ai/panguard-trap": "0.2.0",
28
+ "@panguard-ai/threat-cloud": "0.2.0",
28
29
  "@panguard-ai/security-hardening": "0.1.1",
29
- "@panguard-ai/threat-cloud": "0.1.1"
30
+ "@panguard-ai/panguard-auth": "0.2.0"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@types/node": "^22.14.0",
@@ -36,6 +37,7 @@
36
37
  "build": "tsc --build",
37
38
  "clean": "rm -rf dist tsconfig.tsbuildinfo",
38
39
  "typecheck": "tsc --noEmit",
39
- "dev": "tsc --build --watch"
40
+ "dev": "tsc --build --watch",
41
+ "postinstall": "node scripts/postinstall.mjs"
40
42
  }
41
43
  }
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Post-install welcome message for Panguard AI CLI.
4
+ * Shows a branded banner so users know installation succeeded.
5
+ */
6
+
7
+ const RESET = '\x1b[0m';
8
+ const BOLD = '\x1b[1m';
9
+ const DIM = '\x1b[2m';
10
+ const GREEN = '\x1b[32m';
11
+ const CYAN = '\x1b[36m';
12
+ const WHITE = '\x1b[37m';
13
+
14
+ const version = process.env.npm_package_version || '0.2.0';
15
+
16
+ const banner = `
17
+ ${GREEN}${BOLD} ____ _ _ _${RESET}
18
+ ${GREEN}${BOLD} | _ \\ __ _ _ __ __ _ _ _ __ _ _ __ __| | / \\ |_|${RESET}
19
+ ${GREEN}${BOLD} | |_) / _\` | '_ \\ / _\` | | | |/ _\` | '__/ _\` | / _ \\ | |${RESET}
20
+ ${GREEN}${BOLD} | __/ (_| | | | | (_| | |_| | (_| | | | (_| | / ___ \\ | |${RESET}
21
+ ${GREEN}${BOLD} |_| \\__,_|_| |_|\\__, |\\__,_|\\__,_|_| \\__,_|/_/ \\_\\|_|${RESET}
22
+ ${GREEN}${BOLD} |___/${RESET}
23
+ ${DIM} AI-Powered Endpoint Security ${WHITE}v${version}${RESET}
24
+
25
+ ${BOLD} Installation complete.${RESET} Get started:
26
+
27
+ ${CYAN} panguard scan${RESET} ${DIM}Run a security scan on this machine${RESET}
28
+ ${CYAN} panguard guard start${RESET} ${DIM}Start real-time threat monitoring${RESET}
29
+ ${CYAN} panguard login${RESET} ${DIM}Log in to your Panguard account${RESET}
30
+ ${CYAN} panguard --help${RESET} ${DIM}Show all available commands${RESET}
31
+
32
+ ${DIM} Docs: https://panguard.ai/docs/getting-started${RESET}
33
+ `;
34
+
35
+ console.log(banner);