hive-intelligence 1.9.0 → 1.10.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.
@@ -92,9 +92,13 @@ Showing ${rangeStart}-${rangeEnd} of ${totalFiltered} tools
92
92
  async function searchTools(query) {
93
93
  const allTools = await loadToolCatalog();
94
94
  const q = query.toLowerCase();
95
- const matches = allTools.filter(
96
- (t) => t.name.toLowerCase().includes(q) || (t.description ?? "").toLowerCase().includes(q) || (t.title ?? "").toLowerCase().includes(q)
97
- );
95
+ const score = (t) => {
96
+ const desc = (t.description ?? "").split(/not recommended for:|don't use when:|common mistakes:/i)[0].toLowerCase();
97
+ if (t.name.toLowerCase().includes(q)) return 3;
98
+ if ((t.title ?? "").toLowerCase().includes(q)) return 2;
99
+ return desc.includes(q) ? 1 : 0;
100
+ };
101
+ const matches = allTools.map((t) => ({ t, s: score(t) })).filter(({ s }) => s > 0).sort((a, b) => b.s - a.s).map(({ t }) => t);
98
102
  const items = matches.map((t) => ({
99
103
  name: t.name,
100
104
  title: t.title,
@@ -2,7 +2,7 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
2
2
  import {
3
3
  detectInstallMode,
4
4
  runUpgrade
5
- } from "./chunk-L4KVJDA7.js";
5
+ } from "./chunk-5IQUEFCD.js";
6
6
  import "./chunk-M6REON2I.js";
7
7
  import "./chunk-ZXKFJQDE.js";
8
8
  import "./chunk-ZDXMZPC6.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-intelligence",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
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",
@@ -131,7 +131,7 @@
131
131
  "dependencies": {
132
132
  "@cloudflare/cabidela": "^0.2.4",
133
133
  "@coingecko/coingecko-typescript": "^8.0.0",
134
- "@modelcontextprotocol/sdk": "1.30.0",
134
+ "@modelcontextprotocol/sdk": "1.32.1",
135
135
  "@supabase/supabase-js": "^2.115.0",
136
136
  "@types/compression": "^1.8.1",
137
137
  "@unkey/api": "2.5.0",
@@ -140,7 +140,7 @@
140
140
  "axios": "^1.20.0",
141
141
  "ccxt": "^4.5.77",
142
142
  "commander": "^15.0.0",
143
- "compression": "^1.8.1",
143
+ "compression": "^1.8.2",
144
144
  "cors": "2.8.6",
145
145
  "dotenv": "17.4.2",
146
146
  "express": "^5.2.1",
@@ -159,25 +159,25 @@
159
159
  "github-actionlint": {
160
160
  "adm-zip": "0.6.1"
161
161
  },
162
- "@modelcontextprotocol/sdk": {
163
- "express-rate-limit": "8.5.2"
164
- },
165
162
  "esbuild": "0.28.1",
166
- "fast-uri": "3.1.7",
167
- "hono": "4.12.34",
168
- "ip-address": "10.5.0",
169
- "qs": "6.16.0"
163
+ "fast-uri": "3.1.8",
164
+ "hono": "4.13.13",
165
+ "ip-address": "10.7.3",
166
+ "qs": "6.16.0",
167
+ "proxy-addr": "2.0.8",
168
+ "undici": "7.29.1",
169
+ "source-map-js": "1.2.2"
170
170
  },
171
171
  "devDependencies": {
172
172
  "@types/cors": "^2.8.19",
173
173
  "@types/express": "^5.0.6",
174
174
  "@types/node": "^24.13.3",
175
- "@vitest/coverage-v8": "4.1.10",
175
+ "@vitest/coverage-v8": "4.1.11",
176
176
  "cross-env": "10.1.0",
177
177
  "github-actionlint": "1.7.12",
178
178
  "tsup": "8.5.1",
179
179
  "typescript": "^7.0.2",
180
- "vitest": "^4.1.10"
180
+ "vitest": "^4.1.11"
181
181
  },
182
182
  "bin": {
183
183
  "hive": "bin/hive-mcp.js",
@@ -1,49 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- import "./chunk-OMO7XLC5.js";
3
-
4
- // src/cli/serve.ts
5
- import dotenv from "dotenv";
6
- async function startStdio(envFile) {
7
- dotenv.config({ path: envFile || ".env", quiet: true });
8
- console.log = (...args) => console.error("[LOG]", ...args);
9
- const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
10
- const { createHiveMcpServer, SERVER_NAME, SERVER_VERSION } = await import("./mcpServer-FXQPSDDC.js");
11
- const { getPendingUpdateVersion } = await import("./update-check-36QU6PKA.js");
12
- const transport = new StdioServerTransport();
13
- const pendingUpdate = getPendingUpdateVersion();
14
- const instructionsSuffix = pendingUpdate ? `A newer Hive version (${pendingUpdate}) is available; this server is running ${SERVER_VERSION}. Tell the user to run "hive upgrade" and restart this client to get the latest tools and data.` : void 0;
15
- const mcpServer = createHiveMcpServer(
16
- { kind: "root" },
17
- { instructionsSuffix }
18
- );
19
- const server = mcpServer.getServer();
20
- let isShuttingDown = false;
21
- const shutdown = async () => {
22
- if (isShuttingDown) return;
23
- isShuttingDown = true;
24
- const forceTimer = setTimeout(() => process.exit(1), 3e3);
25
- forceTimer.unref();
26
- try {
27
- await server.close();
28
- } catch {
29
- }
30
- process.exit(0);
31
- };
32
- process.on("SIGINT", shutdown);
33
- process.on("SIGTERM", shutdown);
34
- process.stdin.on("end", shutdown);
35
- await server.connect(transport);
36
- console.error(
37
- `Hive MCP stdio server connected (${SERVER_NAME} v${SERVER_VERSION})`
38
- );
39
- }
40
- async function startHttp(port, envFile) {
41
- dotenv.config({ path: envFile || ".env", quiet: true });
42
- process.env.PORT = String(port);
43
- const { startHttpServer } = await import("./server.js");
44
- await startHttpServer();
45
- }
46
- export {
47
- startHttp,
48
- startStdio
49
- };