hyperclaw 5.1.9 → 5.2.0
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/dist/chat-BQMPVq39.js +310 -0
- package/dist/chat-DGUj_NDO.js +310 -0
- package/dist/daemon-DbWcGYXq.js +5 -0
- package/dist/daemon-DkdMP-kQ.js +316 -0
- package/dist/daemon-RoGBr7z8.js +316 -0
- package/dist/daemon-XtFu-VzD.js +5 -0
- package/dist/engine-BY0XLiQ1.js +7 -0
- package/dist/engine-CaG7uwkg.js +305 -0
- package/dist/engine-Ccmpd_MH.js +305 -0
- package/dist/engine-DeQdDkFO.js +7 -0
- package/dist/hyperclawbot-BD5gNWO8.js +505 -0
- package/dist/hyperclawbot-D6cmZ6Bg.js +505 -0
- package/dist/mcp-loader-CbcyUzpM.js +94 -0
- package/dist/onboard-0RpraIyZ.js +11 -0
- package/dist/onboard-B8zjN52U.js +4149 -0
- package/dist/onboard-CGGZRH3J.js +4149 -0
- package/dist/onboard-xgJmy17T.js +11 -0
- package/dist/orchestrator-BeK8XyJY.js +6 -0
- package/dist/orchestrator-Cj5XWVVe.js +189 -0
- package/dist/orchestrator-TsNkrbVG.js +6 -0
- package/dist/orchestrator-zS6Manjk.js +189 -0
- package/dist/providers-Bk6Y_v9m.js +681 -0
- package/dist/providers-BvScOYvt.js +5 -0
- package/dist/providers-DEJ8Jtml.js +1089 -0
- package/dist/providers-EyJsZ-sr.js +5 -0
- package/dist/run-main.js +27 -27
- package/dist/server-CeZNKjAL.js +4 -0
- package/dist/server-DBUnNWZY.js +1255 -0
- package/dist/server-DUVnyXaR.js +1255 -0
- package/dist/server-Dy7Q-YLx.js +4 -0
- package/dist/skill-runtime-Bsf3CXxL.js +102 -0
- package/dist/skill-runtime-C_54rn66.js +5 -0
- package/dist/skill-runtime-Do7NLtoa.js +5 -0
- package/dist/skill-runtime-fDLfk3m3.js +102 -0
- package/dist/src-CQOQRIzS.js +458 -0
- package/dist/src-DQ9Q89FM.js +458 -0
- package/dist/src-DXaT-nxD.js +63 -0
- package/dist/src-DrDuFPKq.js +63 -0
- package/dist/sub-agent-tools-Bfk5uqJo.js +39 -0
- package/dist/sub-agent-tools-XeiuvDg5.js +39 -0
- package/package.json +1 -1
package/dist/run-main.js
CHANGED
|
@@ -2,10 +2,10 @@ const require_chunk = require('./chunk-jS-bbMI5.js');
|
|
|
2
2
|
require('./paths-AIyBxIzm.js');
|
|
3
3
|
require('./paths-DPovhojT.js');
|
|
4
4
|
require('./env-resolve-BlL4Ms_Y.js');
|
|
5
|
-
const require_onboard = require('./onboard-
|
|
6
|
-
require('./server-
|
|
7
|
-
const require_daemon = require('./daemon-
|
|
8
|
-
require('./providers-
|
|
5
|
+
const require_onboard = require('./onboard-CGGZRH3J.js');
|
|
6
|
+
require('./server-DBUnNWZY.js');
|
|
7
|
+
const require_daemon = require('./daemon-RoGBr7z8.js');
|
|
8
|
+
require('./providers-DEJ8Jtml.js');
|
|
9
9
|
require('./theme-DajRRZbA.js');
|
|
10
10
|
const require_hub = require('./hub-w6lf1rzL.js');
|
|
11
11
|
const require_update_check = require('./update-check-DUlpE6K7.js');
|
|
@@ -74,7 +74,7 @@ var Dashboard = class {
|
|
|
74
74
|
return c(`� `) + content + " ".repeat(pad) + c(`�`);
|
|
75
75
|
};
|
|
76
76
|
console.log(c(`-${line}�`));
|
|
77
|
-
console.log(c(`�`) + chalk.default.bold.hex("#06b6d4")(`${"?? HYPERCLAW v5.
|
|
77
|
+
console.log(c(`�`) + chalk.default.bold.hex("#06b6d4")(`${"?? HYPERCLAW v5.2.0 � GATEWAY DASHBOARD".padStart(45).padEnd(w)}`) + c(`�`));
|
|
78
78
|
console.log(c(`�${line}�`));
|
|
79
79
|
console.log(row(`${statusDot} Gateway ${statusText} ${chalk.default.gray("�")} ws://localhost:${port} ${chalk.default.gray("�")} Agent: ${c(agent)}`));
|
|
80
80
|
console.log(row(`${c("?")} Model ${chalk.default.gray(model.slice(0, 30))} ${chalk.default.gray("�")} User: ${c(user)}`));
|
|
@@ -2437,7 +2437,7 @@ var init_queue = require_chunk.__esm({ "src/delivery/queue.ts"() {
|
|
|
2437
2437
|
//#endregion
|
|
2438
2438
|
//#region src/cli/run-main.ts
|
|
2439
2439
|
const program = new commander.Command();
|
|
2440
|
-
program.name("hyperclaw").description("⚡ HyperClaw — AI Gateway Platform. The Lobster Evolution 🦅").version("5.
|
|
2440
|
+
program.name("hyperclaw").description("⚡ HyperClaw — AI Gateway Platform. The Lobster Evolution 🦅").version("5.2.0").option("--profile <name>", "Use an isolated gateway profile. Auto-scopes HYPERCLAW_STATE_DIR and HYPERCLAW_CONFIG_PATH. Required for multi-gateway setups (rescue bot, staging, etc.). Example: hyperclaw --profile rescue gateway --port 19001").hook("preAction", (thisCommand) => {
|
|
2441
2441
|
const profile = thisCommand.opts().profile;
|
|
2442
2442
|
if (profile) {
|
|
2443
2443
|
const os$8 = require("os");
|
|
@@ -2580,7 +2580,7 @@ sandboxCmd.command("explain").description("Show effective sandbox mode, tool pol
|
|
|
2580
2580
|
const sandboxMode = cfg?.agents?.defaults?.sandbox?.mode ?? "non-main";
|
|
2581
2581
|
const toolsCfg = cfg?.tools ?? {};
|
|
2582
2582
|
const { describeToolPolicy, applyToolPolicy } = await Promise.resolve().then(() => require("./tool-policy-DeMsATEC.js"));
|
|
2583
|
-
const { getBuiltinTools, getSessionsTools, getPCAccessTools, getBrowserTools, getExtractionTools, getWebsiteWatchTools, getVisionTools } = await Promise.resolve().then(() => require("./src-
|
|
2583
|
+
const { getBuiltinTools, getSessionsTools, getPCAccessTools, getBrowserTools, getExtractionTools, getWebsiteWatchTools, getVisionTools } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
2584
2584
|
const allTools = [
|
|
2585
2585
|
...getBuiltinTools(),
|
|
2586
2586
|
...getSessionsTools(() => null),
|
|
@@ -2960,7 +2960,7 @@ cfgCmd.command("set-service-key <serviceId> [apiKey]").description("Set API key
|
|
|
2960
2960
|
cfgCmd.command("schema").description("Show configuration schema").action(() => {
|
|
2961
2961
|
console.log(chalk.default.bold.hex("#06b6d4")("\n Config schema: ~/.hyperclaw/config.json\n"));
|
|
2962
2962
|
const schema = {
|
|
2963
|
-
version: "string (e.g. \"5.
|
|
2963
|
+
version: "string (e.g. \"5.2.0\")",
|
|
2964
2964
|
workspaceName: "string",
|
|
2965
2965
|
provider: {
|
|
2966
2966
|
providerId: "string",
|
|
@@ -3289,7 +3289,7 @@ program.command("osint").description("OSINT / Ethical Hacking mode — configure
|
|
|
3289
3289
|
process.exit(0);
|
|
3290
3290
|
});
|
|
3291
3291
|
program.command("chat").description("Interactive terminal chat with the agent").option("--session <id>", "Resume a named session").option("--model <model>", "Override model").option("--thinking <level>", "Thinking level: high|medium|low|none", "none").option("--workspace <dir>", "Override workspace directory").action(async (opts) => {
|
|
3292
|
-
const { runChat } = await Promise.resolve().then(() => require("./chat-
|
|
3292
|
+
const { runChat } = await Promise.resolve().then(() => require("./chat-DGUj_NDO.js"));
|
|
3293
3293
|
await runChat({
|
|
3294
3294
|
sessionId: opts.session,
|
|
3295
3295
|
model: opts.model,
|
|
@@ -3299,7 +3299,7 @@ program.command("chat").description("Interactive terminal chat with the agent").
|
|
|
3299
3299
|
});
|
|
3300
3300
|
const agentRunCmd = program.command("agent").description("Run agent with thinking control");
|
|
3301
3301
|
agentRunCmd.requiredOption("-m, --message <text>", "Message to send to the agent").option("--thinking <level>", "Thinking level: high|medium|low|none", "none").option("--model <model>", "Override model").option("--session <id>", "Session/thread ID").option("--multi-step", "Decompose into steps and run each (sequential)").option("--parallel", "Run sub-agents in parallel for independent subtasks").option("--verbose", "Show thinking blocks and request details").option("--workspace <dir>", "Override workspace directory").action(async (opts) => {
|
|
3302
|
-
const { runAgent } = await Promise.resolve().then(() => require("./src-
|
|
3302
|
+
const { runAgent } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3303
3303
|
await runAgent({
|
|
3304
3304
|
message: opts.message,
|
|
3305
3305
|
thinking: opts.thinking,
|
|
@@ -3315,7 +3315,7 @@ agentRunCmd.requiredOption("-m, --message <text>", "Message to send to the agent
|
|
|
3315
3315
|
});
|
|
3316
3316
|
const threadsCmd = program.command("threads").description("ACP thread-bound agent sessions");
|
|
3317
3317
|
threadsCmd.command("list").description("List agent threads").option("--channel <id>", "Filter by channel").option("--active", "Show only active threads").action(async (opts) => {
|
|
3318
|
-
const { ACPThreadManager } = await Promise.resolve().then(() => require("./src-
|
|
3318
|
+
const { ACPThreadManager } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3319
3319
|
const mgr = new ACPThreadManager();
|
|
3320
3320
|
const threads = await mgr.list({
|
|
3321
3321
|
channelId: opts.channel,
|
|
@@ -3325,7 +3325,7 @@ threadsCmd.command("list").description("List agent threads").option("--channel <
|
|
|
3325
3325
|
process.exit(0);
|
|
3326
3326
|
});
|
|
3327
3327
|
threadsCmd.command("terminate <id>").description("Terminate a thread").action(async (id) => {
|
|
3328
|
-
const { ACPThreadManager } = await Promise.resolve().then(() => require("./src-
|
|
3328
|
+
const { ACPThreadManager } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3329
3329
|
await new ACPThreadManager().terminate(id);
|
|
3330
3330
|
console.log(require("chalk").green(`\n ✔ Thread terminated: ${id}\n`));
|
|
3331
3331
|
process.exit(0);
|
|
@@ -3569,7 +3569,7 @@ logsCmd.action(async (opts) => {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
});
|
|
3571
3571
|
program.command("gateway:serve").description("Start the gateway server in the foreground (used by daemon)").action(async () => {
|
|
3572
|
-
const { startGateway } = await Promise.resolve().then(() => require("./server-
|
|
3572
|
+
const { startGateway } = await Promise.resolve().then(() => require("./server-CeZNKjAL.js"));
|
|
3573
3573
|
await startGateway();
|
|
3574
3574
|
process.on("SIGINT", () => process.exit(0));
|
|
3575
3575
|
process.on("SIGTERM", () => process.exit(0));
|
|
@@ -3817,13 +3817,13 @@ workspaceCmd.command("show [dir]").description("Show workspace files summary").a
|
|
|
3817
3817
|
});
|
|
3818
3818
|
const botCmd = program.command("bot").description("HyperClaw Bot — companion bot for remote gateway control");
|
|
3819
3819
|
botCmd.command("status").action(async () => {
|
|
3820
|
-
const { showBotStatus } = await Promise.resolve().then(() => require("./hyperclawbot-
|
|
3820
|
+
const { showBotStatus } = await Promise.resolve().then(() => require("./hyperclawbot-BD5gNWO8.js"));
|
|
3821
3821
|
await showBotStatus();
|
|
3822
3822
|
process.exit(0);
|
|
3823
3823
|
});
|
|
3824
3824
|
botCmd.command("setup").description("Configure HyperClaw Bot (Telegram token, allowed users)").action(async () => {
|
|
3825
3825
|
const inquirer$2 = require("inquirer");
|
|
3826
|
-
const { saveBotConfig } = await Promise.resolve().then(() => require("./hyperclawbot-
|
|
3826
|
+
const { saveBotConfig } = await Promise.resolve().then(() => require("./hyperclawbot-BD5gNWO8.js"));
|
|
3827
3827
|
const chalk$11 = require("chalk");
|
|
3828
3828
|
console.log(chalk$11.bold.hex("#06b6d4")("\n 🦅 HYPERCLAW BOT SETUP\n"));
|
|
3829
3829
|
console.log(chalk$11.gray(" Create a bot at t.me/BotFather, then paste the token below.\n"));
|
|
@@ -3885,14 +3885,14 @@ botCmd.command("start").description("Start HyperClaw Bot (foreground or backgrou
|
|
|
3885
3885
|
cwd: process.cwd()
|
|
3886
3886
|
});
|
|
3887
3887
|
child.unref();
|
|
3888
|
-
const { writeBotPid } = await Promise.resolve().then(() => require("./hyperclawbot-
|
|
3888
|
+
const { writeBotPid } = await Promise.resolve().then(() => require("./hyperclawbot-BD5gNWO8.js"));
|
|
3889
3889
|
await writeBotPid(child.pid);
|
|
3890
3890
|
console.log(require("chalk").green(`\n ✔ HyperClaw Bot started in background (PID ${child.pid})`));
|
|
3891
3891
|
console.log(require("chalk").gray(" Stop with: hyperclaw bot stop\n"));
|
|
3892
3892
|
process.exit(0);
|
|
3893
3893
|
return;
|
|
3894
3894
|
}
|
|
3895
|
-
const { loadBotConfig, TelegramHyperClawBot, DiscordHyperClawBot } = await Promise.resolve().then(() => require("./hyperclawbot-
|
|
3895
|
+
const { loadBotConfig, TelegramHyperClawBot, DiscordHyperClawBot } = await Promise.resolve().then(() => require("./hyperclawbot-BD5gNWO8.js"));
|
|
3896
3896
|
const cfg = await loadBotConfig();
|
|
3897
3897
|
if (!cfg) {
|
|
3898
3898
|
console.log(require("chalk").red("\n ✖ HyperClaw Bot not configured. Run: hyperclaw bot setup\n"));
|
|
@@ -3919,41 +3919,41 @@ botCmd.command("start").description("Start HyperClaw Bot (foreground or backgrou
|
|
|
3919
3919
|
});
|
|
3920
3920
|
botCmd.command("stop").description("Stop HyperClaw Bot (when running in background)").action(async () => {
|
|
3921
3921
|
const chalk$11 = require("chalk");
|
|
3922
|
-
const { stopBotProcess } = await Promise.resolve().then(() => require("./hyperclawbot-
|
|
3922
|
+
const { stopBotProcess } = await Promise.resolve().then(() => require("./hyperclawbot-BD5gNWO8.js"));
|
|
3923
3923
|
const stopped = await stopBotProcess();
|
|
3924
3924
|
if (stopped) console.log(chalk$11.green("\n ✔ HyperClaw Bot stopped\n"));
|
|
3925
3925
|
else console.log(chalk$11.gray("\n Bot not running in background (no PID file). Use Ctrl+C to stop foreground bot.\n"));
|
|
3926
3926
|
process.exit(stopped ? 0 : 1);
|
|
3927
3927
|
});
|
|
3928
3928
|
memCmd.command("search <query>").description("Search MEMORY.md").action(async (query) => {
|
|
3929
|
-
const { searchMemory } = await Promise.resolve().then(() => require("./src-
|
|
3929
|
+
const { searchMemory } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3930
3930
|
await searchMemory(query);
|
|
3931
3931
|
process.exit(0);
|
|
3932
3932
|
});
|
|
3933
3933
|
memCmd.command("auto-show").description("Show auto-extracted memories from MEMORY.md").action(async () => {
|
|
3934
|
-
const { showMemory } = await Promise.resolve().then(() => require("./src-
|
|
3934
|
+
const { showMemory } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3935
3935
|
await showMemory();
|
|
3936
3936
|
process.exit(0);
|
|
3937
3937
|
});
|
|
3938
3938
|
memCmd.command("clear").description("Clear all auto-extracted memories").action(async () => {
|
|
3939
|
-
const { clearMemory } = await Promise.resolve().then(() => require("./src-
|
|
3939
|
+
const { clearMemory } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3940
3940
|
await clearMemory();
|
|
3941
3941
|
process.exit(0);
|
|
3942
3942
|
});
|
|
3943
3943
|
memCmd.command("save <text>").description("Manually save a fact to MEMORY.md").action(async (text) => {
|
|
3944
|
-
const { saveMemoryDirect } = await Promise.resolve().then(() => require("./src-
|
|
3944
|
+
const { saveMemoryDirect } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3945
3945
|
await saveMemoryDirect(text);
|
|
3946
3946
|
console.log(chalk.default.hex("#06b6d4")(` ✅ Saved: ${text}\n`));
|
|
3947
3947
|
process.exit(0);
|
|
3948
3948
|
});
|
|
3949
3949
|
const pcCmd = program.command("pc").description("PC access — give the AI access to your computer");
|
|
3950
3950
|
pcCmd.command("status").description("Show PC access status and config").action(async () => {
|
|
3951
|
-
const { showPCAccessStatus } = await Promise.resolve().then(() => require("./src-
|
|
3951
|
+
const { showPCAccessStatus } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3952
3952
|
await showPCAccessStatus();
|
|
3953
3953
|
process.exit(0);
|
|
3954
3954
|
});
|
|
3955
3955
|
pcCmd.command("enable").description("Enable PC access for the AI").option("--level <level>", "Access level: read-only | sandboxed | full", "full").option("--paths <paths>", "Comma-separated allowed paths (sandboxed mode)").action(async (opts) => {
|
|
3956
|
-
const { savePCAccessConfig } = await Promise.resolve().then(() => require("./src-
|
|
3956
|
+
const { savePCAccessConfig } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3957
3957
|
const level = opts.level;
|
|
3958
3958
|
const allowed = [
|
|
3959
3959
|
"read-only",
|
|
@@ -3980,7 +3980,7 @@ pcCmd.command("enable").description("Enable PC access for the AI").option("--lev
|
|
|
3980
3980
|
process.exit(0);
|
|
3981
3981
|
});
|
|
3982
3982
|
pcCmd.command("disable").description("Disable PC access").action(async () => {
|
|
3983
|
-
const { savePCAccessConfig } = await Promise.resolve().then(() => require("./src-
|
|
3983
|
+
const { savePCAccessConfig } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
3984
3984
|
await savePCAccessConfig({ enabled: false });
|
|
3985
3985
|
console.log(chalk.default.hex("#06b6d4")("\n ✅ PC access disabled\n"));
|
|
3986
3986
|
process.exit(0);
|
|
@@ -4004,7 +4004,7 @@ pcCmd.command("log").description("Show PC access audit log").option("-n, --lines
|
|
|
4004
4004
|
process.exit(0);
|
|
4005
4005
|
});
|
|
4006
4006
|
pcCmd.command("run <command>").description("Run a shell command via PC access (must be enabled)").action(async (command) => {
|
|
4007
|
-
const { loadPCAccessConfig, getPCAccessTools } = await Promise.resolve().then(() => require("./src-
|
|
4007
|
+
const { loadPCAccessConfig, getPCAccessTools } = await Promise.resolve().then(() => require("./src-DXaT-nxD.js"));
|
|
4008
4008
|
const cfg = await loadPCAccessConfig();
|
|
4009
4009
|
if (!cfg.enabled) {
|
|
4010
4010
|
console.log(chalk.default.red("\n ✖ PC access disabled. Run: hyperclaw pc enable\n"));
|
|
@@ -4063,7 +4063,7 @@ if (process.argv.length === 2) (async () => {
|
|
|
4063
4063
|
console.log(` ${t.c("hyperclaw --help")} — all commands\n`);
|
|
4064
4064
|
} else {
|
|
4065
4065
|
await new require_onboard.Banner().showNeonBanner(false);
|
|
4066
|
-
const { HyperClawWizard: HyperClawWizard$1 } = await Promise.resolve().then(() => require("./onboard-
|
|
4066
|
+
const { HyperClawWizard: HyperClawWizard$1 } = await Promise.resolve().then(() => require("./onboard-0RpraIyZ.js"));
|
|
4067
4067
|
await new HyperClawWizard$1().run({ wizard: true });
|
|
4068
4068
|
}
|
|
4069
4069
|
await runUpdateCheck();
|