hyperclaw 5.3.1 โ†’ 5.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.
package/README.md CHANGED
@@ -20,6 +20,7 @@
20
20
 
21
21
  <p align="center">
22
22
  <a href="docs/README.md">๐Ÿ“š Docs</a> ยท
23
+ <a href="READMECOMMAND.md">๐Ÿ“œ Commands Reference</a> ยท
23
24
  <a href="docs/architecture.md">๐Ÿ— Architecture</a> ยท
24
25
  <a href="docs/configuration.md">โš™๏ธ Config</a> ยท
25
26
  <a href="docs/security.md">๐Ÿ”’ Security</a> ยท
@@ -1013,6 +1014,7 @@ hyperclaw/
1013
1014
 
1014
1015
  | Topic | File |
1015
1016
  |-------|------|
1017
+ | **Commands reference** | [READMECOMMAND.md](READMECOMMAND.md) |
1016
1018
  | **Getting started** | [docs/README.md](docs/README.md) |
1017
1019
  | Architecture overview | [docs/architecture.md](docs/architecture.md) |
1018
1020
  | Configuration reference | [docs/configuration.md](docs/configuration.md) |
@@ -0,0 +1,143 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_theme = require('./theme-CLXvI6Hr.js');
3
+ const chalk = require_chunk.__toESM(require("chalk"));
4
+ const boxen = require_chunk.__toESM(require("boxen"));
5
+ const gradient_string = require_chunk.__toESM(require("gradient-string"));
6
+ const figlet = require_chunk.__toESM(require("figlet"));
7
+
8
+ //#region src/terminal/banner.ts
9
+ require_theme.init_theme();
10
+ var Banner = class {
11
+ async showNeonBanner(daemonMode = false) {
12
+ console.clear();
13
+ const t = require_theme.getTheme(daemonMode);
14
+ const icon = daemonMode ? "๐Ÿฉธ" : "๐Ÿฆ…";
15
+ try {
16
+ const title = figlet.default.textSync("HYPERCLAW", { font: "ANSI Shadow" });
17
+ const g = (0, gradient_string.default)(daemonMode ? t.daemonGradient : t.gradient);
18
+ const lines = title.split("\n");
19
+ const first = lines[0] ?? "";
20
+ console.log(`\n ${icon} ` + g(first));
21
+ for (let i = 1; i < lines.length; i++) console.log(g(" " + (lines[i] ?? "")));
22
+ } catch {
23
+ console.log(chalk.default.bold.red(`\n ${icon} HYPERCLAW\n`));
24
+ }
25
+ const subtitle = daemonMode ? chalk.default.hex(t.daemonPrimary)(" ๐Ÿฉธ DAEMON MODE - ALWAYS WATCHING ๐Ÿฉธ\n") : t.muted(" ๐Ÿฆ… HyperClaw Bot - AI Gateway v5.3.2 ๐Ÿฆ…\n");
26
+ console.log(subtitle);
27
+ const boxOpts = {
28
+ padding: 1,
29
+ margin: {
30
+ top: 1,
31
+ bottom: 1
32
+ },
33
+ borderStyle: "round",
34
+ borderColor: daemonMode ? t.daemonBorderColor : t.borderColor
35
+ };
36
+ if (t.boxBg) boxOpts.backgroundColor = t.boxBg;
37
+ const { ConfigManager } = await Promise.resolve().then(() => require("./manager-BNc21xgG.js"));
38
+ const { GatewayManager } = await Promise.resolve().then(() => require("./gateway-DroPtqyM.js"));
39
+ const cfg = await new ConfigManager().load().catch(() => null);
40
+ const port = cfg?.gateway?.port ?? 18789;
41
+ const gm = new GatewayManager();
42
+ const running = await gm.isRunning(port);
43
+ const chList = cfg?.gateway?.enabledChannels ?? cfg?.channels ?? [];
44
+ const chCount = Array.isArray(chList) ? chList.length : 0;
45
+ const providerCount = cfg?.providers?.length ?? (cfg?.provider ? 1 : 0);
46
+ const box = (0, boxen.default)(`${t.a("โ—")} Gateway: ${running ? t.success("Running") : t.error("Stopped")} ${t.a("โ—")} Providers: ${providerCount} ${t.a("โ—")} Channels: ${chCount} ` + (daemonMode ? `${t.d("๐Ÿฉธ")} DAEMON` : `${t.a("๐Ÿฆ…")} HYPERCLAW`), boxOpts);
47
+ console.log(box);
48
+ console.log(t.muted(" One assistant. All your channels. ๐Ÿฆ…\n"));
49
+ const { maybeShowUpdateNotice } = await Promise.resolve().then(() => require("./update-check-CCMXnjxr.js"));
50
+ maybeShowUpdateNotice(daemonMode);
51
+ }
52
+ async showMiniBanner() {
53
+ await this.showNeonBanner(false);
54
+ }
55
+ async showWizardBanner() {
56
+ console.clear();
57
+ const t = require_theme.getTheme(false);
58
+ const g = (0, gradient_string.default)(t.gradient);
59
+ try {
60
+ const title = figlet.default.textSync("HYPERCLAW", { font: "ANSI Shadow" });
61
+ const lines = title.split("\n");
62
+ const first = lines[0] ?? "";
63
+ console.log("\n ๐Ÿฆ… " + g(first));
64
+ for (let i = 1; i < lines.length; i++) console.log(g(" " + (lines[i] ?? "")));
65
+ } catch {
66
+ console.log(t.bold("\n ๐Ÿฆ… HYPERCLAW\n"));
67
+ }
68
+ console.log(t.muted(" ๐Ÿฆ… HyperClaw Bot - AI Gateway - SETUP WIZARD v5.3.2 ๐Ÿฆ…\n"));
69
+ const boxOpts = {
70
+ padding: 1,
71
+ margin: { bottom: 1 },
72
+ borderStyle: "round",
73
+ borderColor: t.borderColor
74
+ };
75
+ if (t.boxBg) boxOpts.backgroundColor = t.boxBg;
76
+ const box = (0, boxen.default)(t.a("โšก") + " Provider - Channels - Gateway - Identity", boxOpts);
77
+ console.log(box);
78
+ }
79
+ async showOsintBanner(daemonMode, profile, model, sessionId) {
80
+ console.clear();
81
+ const t = require_theme.getTheme(daemonMode);
82
+ const g = (0, gradient_string.default)(daemonMode ? t.daemonGradient : t.gradient);
83
+ const icon = daemonMode ? "๐Ÿฉธ" : "๐Ÿ”";
84
+ try {
85
+ const title = figlet.default.textSync("HYPERCLAW", { font: "ANSI Shadow" });
86
+ const lines = title.split("\n");
87
+ const first = lines[0] ?? "";
88
+ console.log(`\n ${icon} ` + g(first));
89
+ for (let i = 1; i < lines.length; i++) console.log(g(" " + (lines[i] ?? "")));
90
+ } catch {
91
+ console.log(chalk.default.bold.red(`\n ${icon} HYPERCLAW\n`));
92
+ }
93
+ const subtitle = daemonMode ? chalk.default.hex(t.daemonPrimary)(" ๐Ÿฉธ HYPERCLAW OSINT ยท DAEMON MODE ๐Ÿฉธ\n") : chalk.default.red(" ๐Ÿ” HYPERCLAW OSINT MODE\n");
94
+ console.log(subtitle);
95
+ const modeColors = {
96
+ recon: "#06b6d4",
97
+ bugbounty: "#eab308",
98
+ pentest: "#dc2626",
99
+ footprint: "#a855f7",
100
+ custom: "#ffffff"
101
+ };
102
+ const modeColor = modeColors[profile.mode] ?? "#ffffff";
103
+ const boxContent = `${t.a("โ—")} Workflow: ${chalk.default.hex(modeColor)(profile.mode.toUpperCase())} ${t.a("โ—")} Model: ${model} ${t.a("โ—")} Session: ${sessionId}` + (profile.target ? `\n ${t.a("๐ŸŽฏ")} Target: ${profile.target} ${profile.targetType ? `(${profile.targetType})` : ""}` : "") + (profile.notes ? `\n ${t.a("๐Ÿ“")} ${profile.notes}` : "") + (daemonMode ? `\n ${chalk.default.hex(t.daemonPrimary)("๐Ÿฉธ")} Daemon connected โ€” full shell/tool access` : "\n โšก Standalone โ€” start daemon for full access");
104
+ const boxOpts = {
105
+ padding: 1,
106
+ margin: {
107
+ top: 1,
108
+ bottom: 1
109
+ },
110
+ borderStyle: "round",
111
+ borderColor: daemonMode ? t.daemonBorderColor : "red"
112
+ };
113
+ if (t.boxBg) boxOpts.backgroundColor = t.boxBg;
114
+ const box = (0, boxen.default)(boxContent, boxOpts);
115
+ console.log(box);
116
+ console.log(chalk.default.yellow(" โš ๏ธ Authorized security research only. Stay within scope."));
117
+ console.log(t.muted(" Commands: /exit /clear /findings /target <value> /mode /help\n"));
118
+ }
119
+ async showStatus() {
120
+ const t = require_theme.getTheme(false);
121
+ const { ConfigManager } = await Promise.resolve().then(() => require("./manager-BNc21xgG.js"));
122
+ const { GatewayManager } = await Promise.resolve().then(() => require("./gateway-DroPtqyM.js"));
123
+ const cfg = await new ConfigManager().load();
124
+ const gm = new GatewayManager();
125
+ const port = cfg?.gateway?.port ?? 18789;
126
+ const running = await gm.isRunning(port);
127
+ const chList = cfg?.gateway?.enabledChannels ?? cfg?.channels ?? [];
128
+ const chCount = Array.isArray(chList) ? chList.length : 0;
129
+ console.log(t.bold("\n HyperClaw Status\n"));
130
+ console.log(` Gateway: ${running ? t.success("Running") : t.error("Stopped")} port ${port}`);
131
+ console.log(` Provider: ${t.c(cfg?.provider?.providerId ?? "none")}`);
132
+ console.log(` Channels: ${t.c(String(chCount))}`);
133
+ console.log();
134
+ }
135
+ };
136
+
137
+ //#endregion
138
+ Object.defineProperty(exports, 'Banner', {
139
+ enumerable: true,
140
+ get: function () {
141
+ return Banner;
142
+ }
143
+ });
@@ -0,0 +1,7 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ require('./paths-AIyBxIzm.js');
3
+ require('./paths-DPovhojT.js');
4
+ require('./theme-CLXvI6Hr.js');
5
+ const require_banner = require('./banner-B8OcbGCR.js');
6
+
7
+ exports.Banner = require_banner.Banner;