hyperclaw 5.1.0 → 5.1.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.
@@ -0,0 +1,11 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ require('./paths-AIyBxIzm.js');
3
+ require('./paths-DPovhojT.js');
4
+ require('./env-resolve-BlL4Ms_Y.js');
5
+ const require_onboard = require('./onboard-Dn1xraXU.js');
6
+ require('./server-DLeVAAu-.js');
7
+ require('./daemon-DlY3oQ-P.js');
8
+ require('./providers-Dy15rDb7.js');
9
+ require('./theme-DajRRZbA.js');
10
+
11
+ exports.HyperClawWizard = require_onboard.HyperClawWizard;
package/dist/run-main.js CHANGED
@@ -2,7 +2,7 @@ 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-BZKfGIsf.js');
5
+ const require_onboard = require('./onboard-Dn1xraXU.js');
6
6
  require('./server-DLeVAAu-.js');
7
7
  const require_daemon = require('./daemon-DlY3oQ-P.js');
8
8
  require('./providers-Dy15rDb7.js');
@@ -2878,12 +2878,49 @@ cfgCmd.command("show").description("Show current configuration (scrubbed)").acti
2878
2878
  console.log("\n" + JSON.stringify(scrubbed, null, 2) + "\n");
2879
2879
  process.exit(0);
2880
2880
  });
2881
- cfgCmd.command("set-key <KEY=value>").description("Set an API key or config value").action(async (kv) => {
2882
- const [key, ...rest] = kv.split("=");
2883
- const value = rest.join("=");
2884
- const store = new AuthStore();
2885
- store.setProviderKey(key, value);
2886
- console.log(chalk.default.hex("#06b6d4")(`\n ✔ Set ${key}\n`));
2881
+ cfgCmd.command("set-key <KEY=value>").description("Set provider API key or config value.\n Examples:\n hyperclaw config set-key GOOGLE_AI_API_KEY=AIza...\n hyperclaw config set-key anthropic=sk-ant-...\n hyperclaw config set-key OPENROUTER_API_KEY=sk-or-...").action(async (kv) => {
2882
+ const eqIdx = kv.indexOf("=");
2883
+ if (eqIdx === -1) {
2884
+ console.log(chalk.default.red("\n Usage: hyperclaw config set-key KEY=value\n"));
2885
+ console.log(chalk.default.gray(" Example: hyperclaw config set-key GOOGLE_AI_API_KEY=AIza...\n"));
2886
+ process.exit(1);
2887
+ }
2888
+ const key = kv.slice(0, eqIdx).trim();
2889
+ const value = kv.slice(eqIdx + 1).trim();
2890
+ if (!value) {
2891
+ console.log(chalk.default.red("\n Value cannot be empty.\n"));
2892
+ process.exit(1);
2893
+ }
2894
+ const PROVIDER_KEY_NAMES = new Set([
2895
+ "GOOGLE_AI_API_KEY",
2896
+ "ANTHROPIC_API_KEY",
2897
+ "OPENROUTER_API_KEY",
2898
+ "OPENAI_API_KEY",
2899
+ "XAI_API_KEY",
2900
+ "google",
2901
+ "anthropic",
2902
+ "openrouter",
2903
+ "openai",
2904
+ "xai"
2905
+ ]);
2906
+ const config = new require_manager.ConfigManager();
2907
+ const cfg = await config.load();
2908
+ if (PROVIDER_KEY_NAMES.has(key) || key === cfg?.provider?.providerId) {
2909
+ const next = {
2910
+ ...cfg,
2911
+ provider: {
2912
+ ...cfg?.provider || {},
2913
+ apiKey: value
2914
+ }
2915
+ };
2916
+ await config.save(next);
2917
+ console.log(chalk.default.hex("#06b6d4")(`\n ✔ Provider API key saved to config.\n`));
2918
+ console.log(chalk.default.gray(" Run: hyperclaw chat — to use the updated key.\n"));
2919
+ } else {
2920
+ const store = new AuthStore();
2921
+ store.setProviderKey(key, value);
2922
+ console.log(chalk.default.hex("#06b6d4")(`\n ✔ Set ${key}\n`));
2923
+ }
2887
2924
  process.exit(0);
2888
2925
  });
2889
2926
  cfgCmd.command("set-service-key <serviceId> [apiKey]").description("Set API key for a service (hackerone, bugcrowd, synack, or custom). Prompts if apiKey omitted.").action(async (serviceId, apiKey) => {
@@ -4026,7 +4063,7 @@ if (process.argv.length === 2) (async () => {
4026
4063
  console.log(` ${t.c("hyperclaw --help")} — all commands\n`);
4027
4064
  } else {
4028
4065
  await new require_onboard.Banner().showNeonBanner(false);
4029
- const { HyperClawWizard: HyperClawWizard$1 } = await Promise.resolve().then(() => require("./onboard-I7er2vmM.js"));
4066
+ const { HyperClawWizard: HyperClawWizard$1 } = await Promise.resolve().then(() => require("./onboard-UKJ4NLXn.js"));
4030
4067
  await new HyperClawWizard$1().run({ wizard: true });
4031
4068
  }
4032
4069
  await runUpdateCheck();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperclaw",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "⚡ HyperClaw — AI Gateway Platform. The Lobster Evolution 🦅",
5
5
  "main": "dist/run-main.js",
6
6
  "bin": {