hive-intelligence 1.5.0 → 1.5.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.
package/README.md CHANGED
@@ -109,7 +109,7 @@ Expected output shape:
109
109
  "source": "live",
110
110
  "receipt_id": "00000000-0000-4000-8000-000000000000",
111
111
  "receipt_version": "1.0",
112
- "server_version": "1.5.0",
112
+ "server_version": "1.5.1",
113
113
  "build_sha": null,
114
114
  "digest_algorithm": "sha256",
115
115
  "input_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -33,7 +33,11 @@ var NAMESPACE = [
33
33
  description: "Quote currency",
34
34
  required: true
35
35
  },
36
- per_page: { flag: "--limit <n>", description: "Number of results" }
36
+ per_page: {
37
+ flag: "--limit <n>",
38
+ description: "Number of results",
39
+ type: "number"
40
+ }
37
41
  }
38
42
  },
39
43
  { name: "trending", description: "Trending coins", tool: "get_trending" },
@@ -68,12 +72,14 @@ var NAMESPACE = [
68
72
  from: {
69
73
  flag: "--from <timestamp>",
70
74
  description: "Start UNIX timestamp",
71
- required: true
75
+ required: true,
76
+ type: "number"
72
77
  },
73
78
  to: {
74
79
  flag: "--to <timestamp>",
75
80
  description: "End UNIX timestamp",
76
- required: true
81
+ required: true,
82
+ type: "number"
77
83
  }
78
84
  }
79
85
  },
@@ -153,7 +159,8 @@ var NAMESPACE = [
153
159
  networkId: {
154
160
  flag: "--network-id <id>",
155
161
  description: "EVM chain ID",
156
- required: true
162
+ required: true,
163
+ type: "number"
157
164
  }
158
165
  }
159
166
  },
@@ -392,7 +399,11 @@ var NAMESPACE = [
392
399
  description: "Network (eth, bsc, solana)",
393
400
  required: true
394
401
  },
395
- page: { flag: "--page <n>", description: "Page number" }
402
+ page: {
403
+ flag: "--page <n>",
404
+ description: "Page number",
405
+ type: "number"
406
+ }
396
407
  }
397
408
  },
398
409
  {
package/build/cli.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-R6YZTFQL.js";
9
9
  import {
10
10
  NAMESPACE
11
- } from "./chunk-GWZIAAQ2.js";
11
+ } from "./chunk-7VSK46QO.js";
12
12
  import "./chunk-P7NLFSZQ.js";
13
13
  import "./chunk-RU6QOFHH.js";
14
14
  import {
@@ -3487,7 +3487,19 @@ for (const domain of NAMESPACE) {
3487
3487
  for (const [paramName, argDef] of Object.entries(sub.args)) {
3488
3488
  const optKey = argDef.flag.replace(/^--/, "").split(/[\s<]/)[0].replace(/-([a-z])/g, (_, c) => c.toUpperCase());
3489
3489
  if (opts[optKey] !== void 0) {
3490
- args[paramName] = opts[optKey];
3490
+ if (argDef.type === "number") {
3491
+ const numeric = Number(opts[optKey]);
3492
+ if (Number.isNaN(numeric)) {
3493
+ process.stderr.write(
3494
+ `Error: ${argDef.flag.split(/[\s<]/)[0]} expects a number, got '${opts[optKey]}'
3495
+ `
3496
+ );
3497
+ process.exit(ExitCode.INVALID_ARGS);
3498
+ }
3499
+ args[paramName] = numeric;
3500
+ } else {
3501
+ args[paramName] = opts[optKey];
3502
+ }
3491
3503
  }
3492
3504
  }
3493
3505
  }
@@ -3505,7 +3517,9 @@ for (const domain of NAMESPACE) {
3505
3517
  const ask = (q) => new Promise((resolve) => rl.question(q, resolve));
3506
3518
  for (const [paramName, argDef] of missingRequired) {
3507
3519
  const answer = await ask(`${argDef.description || paramName}: `);
3508
- if (answer.trim()) args[paramName] = answer.trim();
3520
+ if (answer.trim()) {
3521
+ args[paramName] = argDef.type === "number" && !Number.isNaN(Number(answer)) ? Number(answer) : answer.trim();
3522
+ }
3509
3523
  }
3510
3524
  rl.close();
3511
3525
  }
@@ -3529,15 +3543,15 @@ for (const domain of NAMESPACE) {
3529
3543
  }
3530
3544
  var toolsCmd = program2.command("tools").description("Discover and execute tools");
3531
3545
  toolsCmd.command("list").description("List all registered tools").option("--category <name>", "Filter by category").option("--provider <name>", "Filter by provider prefix").option("--limit <n>", "Max tools to show", "50").option("--offset <n>", "Skip first N tools", "0").action(async (opts) => {
3532
- const { listTools } = await import("./tools-XNFJBN7Q.js");
3546
+ const { listTools } = await import("./tools-SIOAOXW6.js");
3533
3547
  await listTools(opts);
3534
3548
  });
3535
3549
  toolsCmd.command("search <query>").description("Search tools by name or description").action(async (query) => {
3536
- const { searchTools } = await import("./tools-XNFJBN7Q.js");
3550
+ const { searchTools } = await import("./tools-SIOAOXW6.js");
3537
3551
  await searchTools(query);
3538
3552
  });
3539
3553
  toolsCmd.command("info <name>").description("Show detailed tool schema and description").action(async (name) => {
3540
- const { toolInfo } = await import("./tools-XNFJBN7Q.js");
3554
+ const { toolInfo } = await import("./tools-SIOAOXW6.js");
3541
3555
  await toolInfo(name);
3542
3556
  });
3543
3557
  toolsCmd.command("call <name>").description("Execute a tool by name").option("--args <json>", "Tool arguments as JSON (or pipe JSON via stdin)").action(async (name, opts) => {
@@ -3566,7 +3580,7 @@ toolsCmd.command("call <name>").description("Execute a tool by name").option("--
3566
3580
  await executeTool(name, args, timeout);
3567
3581
  });
3568
3582
  toolsCmd.command("refresh").description("Force-refresh the tool catalog cache").action(async () => {
3569
- const { refreshTools } = await import("./tools-XNFJBN7Q.js");
3583
+ const { refreshTools } = await import("./tools-SIOAOXW6.js");
3570
3584
  await refreshTools();
3571
3585
  });
3572
3586
  var configCmd = program2.command("config").description("Generate configuration for MCP clients");
@@ -3661,10 +3675,10 @@ program2.command("upgrade").description("Update Hive to the latest published ver
3661
3675
  });
3662
3676
  program2.command("completion <shell>").description("Generate shell completion script (bash, zsh, fish, powershell)").option("--install", "Auto-install to shell rc file").action(async (shell, opts) => {
3663
3677
  if (opts.install) {
3664
- const { installCompletion } = await import("./completion-C57PDJMY.js");
3678
+ const { installCompletion } = await import("./completion-L3TDZ7ZK.js");
3665
3679
  await installCompletion(shell);
3666
3680
  } else {
3667
- const { generateCompletion } = await import("./completion-C57PDJMY.js");
3681
+ const { generateCompletion } = await import("./completion-L3TDZ7ZK.js");
3668
3682
  await generateCompletion(shell);
3669
3683
  }
3670
3684
  });
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
2
  import {
3
3
  NAMESPACE
4
- } from "./chunk-GWZIAAQ2.js";
4
+ } from "./chunk-7VSK46QO.js";
5
5
  import "./chunk-ILVPOLA7.js";
6
6
 
7
7
  // src/cli/completion.ts
@@ -3,7 +3,7 @@ import {
3
3
  NAMESPACE,
4
4
  getAllDomainCommands,
5
5
  resolveCommand
6
- } from "./chunk-GWZIAAQ2.js";
6
+ } from "./chunk-7VSK46QO.js";
7
7
  import "./chunk-ILVPOLA7.js";
8
8
  export {
9
9
  NAMESPACE,
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "package": "hive-intelligence",
3
- "version": "1.5.0",
4
- "buildSha": "be07c11603a1109e3ef62c73c735e044c60f651f",
5
- "imageDigest": "sha256:8d521047d21e80541a0ed4cc71741612d8ddac0881761e0a4467524d068c430e",
3
+ "version": "1.5.1",
4
+ "buildSha": "ab8276f834ef8b08bda9d320387e4390e9ab55b6",
5
+ "imageDigest": "sha256:9ef23428cc9d7da797e21152f4823f021ee8f0d3f3db94cf28410c8e1a72a124",
6
6
  "deployedUrl": "https://mcp.hiveintelligence.xyz",
7
- "manifest": "https://raw.githubusercontent.com/hive-intel/hive-sdk/v1.5.0/releases/v1.5.0.json"
7
+ "manifest": "https://raw.githubusercontent.com/hive-intel/hive-sdk/v1.5.1/releases/v1.5.1.json"
8
8
  }
@@ -40,7 +40,7 @@ async function listTools(opts) {
40
40
  tools = tools.filter((t) => t.name.toLowerCase().startsWith(prefix + "_"));
41
41
  }
42
42
  if (opts.category) {
43
- const { NAMESPACE } = await import("./namespace-YLCGHVRT.js");
43
+ const { NAMESPACE } = await import("./namespace-XLMRFH5E.js");
44
44
  const cat = opts.category.toLowerCase();
45
45
  const ns = NAMESPACE.find(
46
46
  (d) => d.name === cat || d.description.toLowerCase().includes(cat)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-intelligence",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Evidence-backed crypto due diligence for AI agents, with sources, freshness, and a runtime receipt on every call.",
5
5
  "mcpName": "xyz.hiveintelligence/mcp",
6
6
  "type": "module",