hive-intelligence 1.1.4 → 1.3.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/README.md +182 -73
- package/agent-skills/.claude-plugin/plugin.json +4 -4
- package/agent-skills/.mcp.json +1 -4
- package/agent-skills/README.md +16 -10
- package/agent-skills/SKILL.md +30 -12
- package/agent-skills/package.json +1 -1
- package/agent-skills/packs/hive-build/SKILL.md +47 -19
- package/agent-skills/packs/hive-build/evals/evals.json +16 -3
- package/agent-skills/packs/hive-build/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-build-onboarding/SKILL.md +27 -34
- package/agent-skills/packs/hive-build-onboarding/evals/evals.json +1 -1
- package/agent-skills/packs/hive-build-onboarding/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-cli/SKILL.md +33 -35
- package/agent-skills/packs/hive-cli/evals/evals.json +1 -1
- package/agent-skills/packs/hive-cli/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-defi-research/SKILL.md +105 -19
- package/agent-skills/packs/hive-defi-research/evals/evals.json +6 -3
- package/agent-skills/packs/hive-defi-research/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-dex-pool-analysis/SKILL.md +106 -16
- package/agent-skills/packs/hive-dex-pool-analysis/evals/evals.json +5 -3
- package/agent-skills/packs/hive-dex-pool-analysis/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-market-research/SKILL.md +130 -21
- package/agent-skills/packs/hive-market-research/evals/evals.json +15 -2
- package/agent-skills/packs/hive-market-research/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-mcp/SKILL.md +69 -47
- package/agent-skills/packs/hive-mcp/evals/evals.json +3 -2
- package/agent-skills/packs/hive-mcp/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-mcp/references/client-install-matrix.md +62 -35
- package/agent-skills/packs/hive-mcp/references/clients.md +81 -68
- package/agent-skills/packs/hive-network-infrastructure/SKILL.md +105 -20
- package/agent-skills/packs/hive-network-infrastructure/evals/evals.json +4 -2
- package/agent-skills/packs/hive-network-infrastructure/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-nft-research/SKILL.md +105 -18
- package/agent-skills/packs/hive-nft-research/evals/evals.json +4 -2
- package/agent-skills/packs/hive-nft-research/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-prediction-markets/SKILL.md +108 -21
- package/agent-skills/packs/hive-prediction-markets/evals/evals.json +4 -2
- package/agent-skills/packs/hive-prediction-markets/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-query/SKILL.md +79 -33
- package/agent-skills/packs/hive-query/evals/evals.json +7 -5
- package/agent-skills/packs/hive-query/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-query/references/root-mcp-workflow.md +39 -18
- package/agent-skills/packs/hive-security-risk/SKILL.md +110 -19
- package/agent-skills/packs/hive-security-risk/evals/evals.json +4 -2
- package/agent-skills/packs/hive-security-risk/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-solana-analysis/SKILL.md +115 -19
- package/agent-skills/packs/hive-solana-analysis/evals/evals.json +4 -2
- package/agent-skills/packs/hive-solana-analysis/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-stateful-monitoring/SKILL.md +92 -47
- package/agent-skills/packs/hive-stateful-monitoring/evals/evals.json +7 -2
- package/agent-skills/packs/hive-stateful-monitoring/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-stateful-monitoring/references/b2b-subject-context.md +53 -0
- package/agent-skills/packs/hive-token-diligence/SKILL.md +119 -21
- package/agent-skills/packs/hive-token-diligence/evals/evals.json +6 -4
- package/agent-skills/packs/hive-token-diligence/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-tool-discovery/SKILL.md +48 -19
- package/agent-skills/packs/hive-tool-discovery/evals/evals.json +17 -3
- package/agent-skills/packs/hive-tool-discovery/evals/triggers.json +50 -0
- package/agent-skills/packs/hive-tool-discovery/references/discovery-surfaces.md +31 -6
- package/agent-skills/packs/hive-wallet-investigation/SKILL.md +111 -18
- package/agent-skills/packs/hive-wallet-investigation/evals/evals.json +5 -3
- package/agent-skills/packs/hive-wallet-investigation/evals/triggers.json +50 -0
- package/agent-skills/references/agents-routing.md +17 -7
- package/agent-skills/scripts/validate-agent-skills-package.mjs +68 -8
- package/bin/hive-mcp.js +5 -5
- package/build/{alias-3OPMQF4X.js → alias-BKAVOYQV.js} +2 -2
- package/build/{api-client-EPF6FD7A.js → api-client-FTVDFW5V.js} +4 -4
- package/build/{auth-Q5Q24IRI.js → auth-EZFJ5RYB.js} +3 -3
- package/build/{browser-auth-VPF5LZMZ.js → browser-auth-OJSUNFBI.js} +2 -2
- package/build/{cache-T6KC5YEY.js → cache-TBDQ7QBU.js} +2 -2
- package/build/{chunk-POT2MBEK.js → chunk-6PC3HUAK.js} +10 -3
- package/build/{chunk-NP6NSOG2.js → chunk-725R3KLJ.js} +26 -3
- package/build/{chunk-GZPDEXO4.js → chunk-7GD2MFYI.js} +57 -6
- package/build/{chunk-ZXB53E7H.js → chunk-AEU43ACS.js} +31 -7
- package/build/chunk-EPF36Q3Z.js +71 -0
- package/build/chunk-I5Z6FZRL.js +178 -0
- package/build/{chunk-3WYWXTNN.js → chunk-ILVPOLA7.js} +12 -3
- package/build/{chunk-VBOKVQ74.js → chunk-L326MQZP.js} +6 -5
- package/build/{chunk-FRXMGRZQ.js → chunk-M6REON2I.js} +2 -2
- package/build/chunk-N32UIHBU.js +125 -0
- package/build/{chunk-7JWXBKEJ.js → chunk-Q7VBYLX7.js} +9 -2
- package/build/chunk-QDZ7MAVN.js +447 -0
- package/build/{chunk-ZTJVOWDQ.js → chunk-R6YZTFQL.js} +2 -0
- package/build/{chunk-YZ2PXBJK.js → chunk-RU6QOFHH.js} +6 -9
- package/build/{chunk-5XXI25JE.js → chunk-RUHO24SX.js} +16 -9
- package/build/{chunk-FH3YGSY5.js → chunk-TNQ7GJ6Q.js} +0 -59
- package/build/{chunk-JTUKQWIO.js → chunk-W2QL7LYI.js} +34807 -15070
- package/build/{chunk-ZCU7XQKF.js → chunk-ZXKFJQDE.js} +7 -1
- package/build/cli.js +3337 -3407
- package/build/{completion-46K674EL.js → completion-7KBW243H.js} +4 -4
- package/build/{config-XE6Q5P4I.js → config-KAEUX6RM.js} +23 -3
- package/build/{config-dir-MAWX5AUF.js → config-dir-5IH7MOOT.js} +2 -2
- package/build/{doctor-HGMQE6IN.js → doctor-ORDOCGLM.js} +12 -12
- package/build/{errors-J2PH3NLJ.js → errors-HGHUF575.js} +2 -2
- package/build/{format-5X2HIVDT.js → format-H7FOQSYY.js} +1 -1
- package/build/{init-JMDNM7ZZ.js → init-UCTCUYFA.js} +52 -8
- package/build/init-all-BVWW3JVK.js +408 -0
- package/build/mcpServer-RUEOTTF7.js +34 -0
- package/build/monitor-worker.js +296 -40
- package/build/{namespace-FSX2G3NM.js → namespace-L5DGCY7K.js} +2 -2
- package/build/{open-5A6ZQMGC.js → open-V2RNA3QT.js} +1 -1
- package/build/{output-V3D4YZ6U.js → output-ITGLBKIG.js} +2 -2
- package/build/release.json +8 -0
- package/build/{serve-AGCOXXFM.js → serve-DKLR2WQH.js} +3 -3
- package/build/server.js +4481 -2319
- package/build/{setup-RMETGJWK.js → setup-PTYFMTK5.js} +60 -55
- package/build/stdio.js +7 -6
- package/build/{telemetry-WCME5XEU.js → telemetry-HPLDYR7U.js} +5 -4
- package/build/{tools-KAB6QBZC.js → tools-I7GLWTV6.js} +15 -15
- package/build/{uninstall-FLJMBBSC.js → uninstall-SAOIPL6K.js} +19 -10
- package/build/{update-check-LNZQK3XA.js → update-check-IEXPOYYR.js} +4 -4
- package/build/{upgrade-DTUIHVPS.js → upgrade-J4HIGCKE.js} +5 -5
- package/build/{version-I6HDAF4L.js → version-Z4HJL4VV.js} +4 -2
- package/build/{watch-YNN255QX.js → watch-WVR4CGCD.js} +8 -7
- package/package.json +71 -35
- package/agent-skills/packs/hive-defi-research/references/workflow.md +0 -41
- package/agent-skills/packs/hive-dex-pool-analysis/references/workflow.md +0 -42
- package/agent-skills/packs/hive-market-research/references/workflow.md +0 -47
- package/agent-skills/packs/hive-network-infrastructure/references/workflow.md +0 -41
- package/agent-skills/packs/hive-nft-research/references/workflow.md +0 -42
- package/agent-skills/packs/hive-prediction-markets/references/workflow.md +0 -42
- package/agent-skills/packs/hive-security-risk/references/workflow.md +0 -46
- package/agent-skills/packs/hive-solana-analysis/references/workflow.md +0 -42
- package/agent-skills/packs/hive-token-diligence/references/workflow.md +0 -45
- package/agent-skills/packs/hive-wallet-investigation/references/workflow.md +0 -45
- package/build/chunk-4F5CI6LX.js +0 -340
- package/build/chunk-CEWCB5YS.js +0 -71
- package/build/chunk-IZPAMRHP.js +0 -43
- package/build/init-all-5SKNV75X.js +0 -273
- package/build/mcpServer-5TKKSKJM.js +0 -21
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import
|
|
3
|
-
resolveApiKey
|
|
4
|
-
} from "./chunk-POT2MBEK.js";
|
|
5
|
-
import "./chunk-3WYWXTNN.js";
|
|
2
|
+
import "./chunk-ILVPOLA7.js";
|
|
6
3
|
|
|
7
4
|
// src/cli/setup.ts
|
|
8
5
|
import { createInterface } from "readline";
|
|
9
6
|
var CLIENTS = [
|
|
10
7
|
{ name: "Claude Desktop", value: "claude-desktop" },
|
|
11
8
|
{ name: "Claude Code", value: "claude-code" },
|
|
9
|
+
{ name: "OpenAI Codex", value: "codex" },
|
|
12
10
|
{ name: "Cursor", value: "cursor" },
|
|
13
|
-
{ name: "VS Code", value: "vscode" }
|
|
11
|
+
{ name: "VS Code", value: "vscode" },
|
|
12
|
+
{ name: "Grok", value: "grok" }
|
|
14
13
|
];
|
|
15
14
|
async function runSetup(client) {
|
|
16
|
-
const apiKey = resolveApiKey();
|
|
17
|
-
if (!apiKey) {
|
|
18
|
-
process.stderr.write("\nNo API key found. Let's log in first.\n");
|
|
19
|
-
const { runLogin } = await import("./auth-Q5Q24IRI.js");
|
|
20
|
-
await runLogin({ manual: false });
|
|
21
|
-
}
|
|
22
15
|
let selectedClient;
|
|
23
16
|
if (client && CLIENTS.some((c) => c.value === client)) {
|
|
24
17
|
selectedClient = client;
|
|
25
18
|
} else {
|
|
26
19
|
if (!process.stdin.isTTY) {
|
|
27
20
|
process.stderr.write(
|
|
28
|
-
"Error: specify a client (claude-desktop, claude-code, cursor, vscode)\n"
|
|
21
|
+
"Error: specify a client (claude-desktop, claude-code, codex, cursor, vscode, grok)\n"
|
|
29
22
|
);
|
|
30
23
|
process.exit(1);
|
|
31
24
|
}
|
|
@@ -39,7 +32,8 @@ async function runSetup(client) {
|
|
|
39
32
|
output: process.stderr
|
|
40
33
|
});
|
|
41
34
|
const answer = await new Promise(
|
|
42
|
-
(resolve) => rl.question(
|
|
35
|
+
(resolve) => rl.question(`
|
|
36
|
+
Choice (1-${CLIENTS.length}): `, resolve)
|
|
43
37
|
);
|
|
44
38
|
rl.close();
|
|
45
39
|
const idx = parseInt(answer.trim(), 10) - 1;
|
|
@@ -50,82 +44,93 @@ async function runSetup(client) {
|
|
|
50
44
|
selectedClient = CLIENTS[idx].value;
|
|
51
45
|
}
|
|
52
46
|
const {
|
|
53
|
-
|
|
47
|
+
configClaudeDesktop,
|
|
48
|
+
getCodexInstructions,
|
|
49
|
+
getGrokInstructions,
|
|
50
|
+
getVscodeInstructions,
|
|
51
|
+
writeCodexConfig,
|
|
54
52
|
writeCursorConfig,
|
|
55
53
|
writeVscodeConfig,
|
|
56
54
|
writeClaudeCodeConfig
|
|
57
|
-
} = await import("./config-
|
|
55
|
+
} = await import("./config-KAEUX6RM.js");
|
|
58
56
|
switch (selectedClient) {
|
|
59
57
|
case "claude-desktop": {
|
|
60
|
-
|
|
61
|
-
if (result.written) {
|
|
62
|
-
process.stderr.write(`
|
|
63
|
-
Config written to ${result.path}
|
|
64
|
-
`);
|
|
65
|
-
process.stderr.write(` Restart Claude Desktop to connect.
|
|
66
|
-
|
|
67
|
-
`);
|
|
68
|
-
} else {
|
|
69
|
-
process.stderr.write(
|
|
70
|
-
`
|
|
71
|
-
No API key available. Run 'hive auth login' first.
|
|
72
|
-
`
|
|
73
|
-
);
|
|
74
|
-
}
|
|
58
|
+
configClaudeDesktop();
|
|
75
59
|
break;
|
|
76
60
|
}
|
|
77
61
|
case "cursor": {
|
|
78
62
|
const result = writeCursorConfig();
|
|
79
|
-
|
|
80
|
-
process.stderr.write(`
|
|
63
|
+
process.stderr.write(`
|
|
81
64
|
Config written to ${result.path}
|
|
82
65
|
`);
|
|
83
|
-
|
|
66
|
+
process.stderr.write(` Restart Cursor and complete browser sign-in.
|
|
84
67
|
|
|
85
68
|
`);
|
|
86
|
-
} else {
|
|
87
|
-
process.stderr.write(
|
|
88
|
-
`
|
|
89
|
-
No API key available. Run 'hive auth login' first.
|
|
90
|
-
`
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
69
|
break;
|
|
94
70
|
}
|
|
95
71
|
case "vscode": {
|
|
96
72
|
const result = writeVscodeConfig();
|
|
97
73
|
if (result.written) {
|
|
98
|
-
process.stderr.write(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
74
|
+
process.stderr.write(
|
|
75
|
+
`
|
|
76
|
+
Installed in ${result.path} using code --add-mcp.
|
|
77
|
+
`
|
|
78
|
+
);
|
|
79
|
+
process.stderr.write(
|
|
80
|
+
" Open VS Code, review Hive, and complete browser sign-in.\n\n"
|
|
81
|
+
);
|
|
104
82
|
} else {
|
|
105
83
|
process.stderr.write(
|
|
106
84
|
`
|
|
107
|
-
|
|
85
|
+
VS Code CLI install did not complete: ${result.error}
|
|
108
86
|
`
|
|
109
87
|
);
|
|
88
|
+
for (const step of getVscodeInstructions().steps) {
|
|
89
|
+
process.stderr.write(` - ${step}
|
|
90
|
+
`);
|
|
91
|
+
}
|
|
92
|
+
process.stderr.write("\n");
|
|
110
93
|
}
|
|
111
94
|
break;
|
|
112
95
|
}
|
|
113
96
|
case "claude-code": {
|
|
114
|
-
const
|
|
115
|
-
|
|
97
|
+
const result = writeClaudeCodeConfig();
|
|
98
|
+
process.stderr.write(`
|
|
99
|
+
Run this command:
|
|
100
|
+
${result.command}
|
|
101
|
+
`);
|
|
102
|
+
process.stderr.write(" Then complete browser sign-in.\n\n");
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
case "codex": {
|
|
106
|
+
const result = writeCodexConfig();
|
|
107
|
+
if (result.written && result.authenticated) {
|
|
116
108
|
process.stderr.write(
|
|
117
109
|
`
|
|
118
|
-
|
|
110
|
+
Hive installed in ${result.path}; Codex OAuth completed.
|
|
111
|
+
|
|
119
112
|
`
|
|
120
113
|
);
|
|
121
114
|
} else {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
115
|
+
process.stderr.write(
|
|
116
|
+
`
|
|
117
|
+
Codex setup did not complete: ${result.error || "unknown error"}
|
|
118
|
+
`
|
|
119
|
+
);
|
|
120
|
+
for (const step of getCodexInstructions().steps) {
|
|
121
|
+
process.stderr.write(` - ${step}
|
|
122
|
+
`);
|
|
123
|
+
}
|
|
124
|
+
process.stderr.write("\n");
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
case "grok": {
|
|
129
|
+
for (const step of getGrokInstructions().steps) {
|
|
130
|
+
process.stderr.write(` - ${step}
|
|
127
131
|
`);
|
|
128
132
|
}
|
|
133
|
+
process.stderr.write("\n");
|
|
129
134
|
break;
|
|
130
135
|
}
|
|
131
136
|
}
|
package/build/stdio.js
CHANGED
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkForUpdates
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-M6REON2I.js";
|
|
6
6
|
import {
|
|
7
7
|
createHiveMcpServer,
|
|
8
8
|
secureLogger
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-W2QL7LYI.js";
|
|
10
|
+
import "./chunk-L326MQZP.js";
|
|
11
|
+
import "./chunk-EPF36Q3Z.js";
|
|
11
12
|
import {
|
|
12
13
|
SERVER_NAME,
|
|
13
14
|
SERVER_VERSION
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ZXKFJQDE.js";
|
|
16
|
+
import "./chunk-6PC3HUAK.js";
|
|
17
|
+
import "./chunk-ILVPOLA7.js";
|
|
17
18
|
|
|
18
19
|
// src/stdio.ts
|
|
19
20
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -5,10 +5,11 @@ import {
|
|
|
5
5
|
isTelemetryEnabled,
|
|
6
6
|
telemetryStatus,
|
|
7
7
|
trackCommand
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-RU6QOFHH.js";
|
|
9
|
+
import "./chunk-EPF36Q3Z.js";
|
|
10
|
+
import "./chunk-ZXKFJQDE.js";
|
|
11
|
+
import "./chunk-6PC3HUAK.js";
|
|
12
|
+
import "./chunk-ILVPOLA7.js";
|
|
12
13
|
export {
|
|
13
14
|
disableTelemetry,
|
|
14
15
|
enableTelemetry,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
fetchToolCatalog
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-Q7VBYLX7.js";
|
|
5
|
+
import "./chunk-ZXKFJQDE.js";
|
|
6
6
|
import {
|
|
7
7
|
info,
|
|
8
8
|
shouldOutputJson,
|
|
9
9
|
successEnvelope,
|
|
10
10
|
writeOutput
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-725R3KLJ.js";
|
|
12
|
+
import "./chunk-6PC3HUAK.js";
|
|
13
|
+
import "./chunk-ILVPOLA7.js";
|
|
14
14
|
|
|
15
15
|
// src/cli/tools.ts
|
|
16
16
|
async function loadToolCatalog() {
|
|
17
|
-
const { getCachedTools, setCachedTools } = await import("./cache-
|
|
17
|
+
const { getCachedTools, setCachedTools } = await import("./cache-TBDQ7QBU.js");
|
|
18
18
|
const cached = getCachedTools();
|
|
19
19
|
if (cached) return cached;
|
|
20
20
|
const response = await fetchToolCatalog();
|
|
21
21
|
if (!response.ok) {
|
|
22
22
|
const msg = response.error && typeof response.error === "object" && "message" in response.error ? String(response.error.message) : "Failed to fetch tool catalog";
|
|
23
|
-
const { CliError } = await import("./errors-
|
|
24
|
-
const { outputError } = await import("./output-
|
|
23
|
+
const { CliError } = await import("./errors-HGHUF575.js");
|
|
24
|
+
const { outputError } = await import("./output-ITGLBKIG.js");
|
|
25
25
|
await outputError(
|
|
26
26
|
new CliError("API_ERROR", msg, "Check: hive doctor"),
|
|
27
27
|
{}
|
|
@@ -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-
|
|
43
|
+
const { NAMESPACE } = await import("./namespace-L5DGCY7K.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)
|
|
@@ -74,7 +74,7 @@ async function listTools(opts) {
|
|
|
74
74
|
await writeOutput(successEnvelope(data, {}));
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const { table } = await import("./format-
|
|
77
|
+
const { table } = await import("./format-H7FOQSYY.js");
|
|
78
78
|
const rangeStart = totalFiltered === 0 ? 0 : offset + 1;
|
|
79
79
|
const rangeEnd = offset + items.length;
|
|
80
80
|
info(`
|
|
@@ -103,7 +103,7 @@ async function searchTools(query) {
|
|
|
103
103
|
await writeOutput(successEnvelope(data, {}));
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const { table } = await import("./format-
|
|
106
|
+
const { table } = await import("./format-H7FOQSYY.js");
|
|
107
107
|
info(`
|
|
108
108
|
${matches.length} matches for "${query}"
|
|
109
109
|
`);
|
|
@@ -122,8 +122,8 @@ async function toolInfo(name) {
|
|
|
122
122
|
const allTools = await loadToolCatalog();
|
|
123
123
|
const tool = allTools.find((t2) => t2.name === name);
|
|
124
124
|
if (!tool) {
|
|
125
|
-
const { CliError, suggestSimilarTools } = await import("./errors-
|
|
126
|
-
const { outputError } = await import("./output-
|
|
125
|
+
const { CliError, suggestSimilarTools } = await import("./errors-HGHUF575.js");
|
|
126
|
+
const { outputError } = await import("./output-ITGLBKIG.js");
|
|
127
127
|
const similar = suggestSimilarTools(
|
|
128
128
|
name,
|
|
129
129
|
allTools.map((t2) => t2.name)
|
|
@@ -162,8 +162,8 @@ ${t.description}
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
async function refreshTools() {
|
|
165
|
-
const { clearCache } = await import("./cache-
|
|
166
|
-
const { info: printInfo } = await import("./output-
|
|
165
|
+
const { clearCache } = await import("./cache-TBDQ7QBU.js");
|
|
166
|
+
const { info: printInfo } = await import("./output-ITGLBKIG.js");
|
|
167
167
|
clearCache();
|
|
168
168
|
printInfo("Cache cleared. Fetching fresh tool catalog...\n");
|
|
169
169
|
const tools = await loadToolCatalog();
|
|
@@ -2,24 +2,25 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
|
|
|
2
2
|
import {
|
|
3
3
|
detectClients,
|
|
4
4
|
removeSkillsForClients
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AEU43ACS.js";
|
|
6
6
|
import {
|
|
7
7
|
removeClaudeCodeUserConfig,
|
|
8
8
|
removeClaudeDesktopConfig,
|
|
9
|
+
removeCodexConfig,
|
|
9
10
|
removeCursorConfig,
|
|
10
11
|
removeGeminiCliConfig,
|
|
11
12
|
removeVscodeConfig,
|
|
12
13
|
removeWindsurfConfig
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-QDZ7MAVN.js";
|
|
15
|
+
import "./chunk-L326MQZP.js";
|
|
15
16
|
import {
|
|
16
17
|
bold,
|
|
17
18
|
dim,
|
|
18
19
|
green,
|
|
19
20
|
yellow
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-725R3KLJ.js";
|
|
22
|
+
import "./chunk-6PC3HUAK.js";
|
|
23
|
+
import "./chunk-ILVPOLA7.js";
|
|
23
24
|
|
|
24
25
|
// src/cli/uninstall.ts
|
|
25
26
|
function w(line) {
|
|
@@ -37,6 +38,7 @@ function warn(line) {
|
|
|
37
38
|
var REMOVERS = {
|
|
38
39
|
"claude-code": removeClaudeCodeUserConfig,
|
|
39
40
|
"claude-desktop": removeClaudeDesktopConfig,
|
|
41
|
+
codex: removeCodexConfig,
|
|
40
42
|
cursor: removeCursorConfig,
|
|
41
43
|
vscode: removeVscodeConfig,
|
|
42
44
|
windsurf: removeWindsurfConfig,
|
|
@@ -56,8 +58,10 @@ async function runUninstall(opts = {}) {
|
|
|
56
58
|
if (!opts.json) w(bold("\nRemoving from client configs"));
|
|
57
59
|
const clientIds = [];
|
|
58
60
|
for (const c of clients) {
|
|
59
|
-
if (c.id === "chatgpt-desktop") {
|
|
60
|
-
info(
|
|
61
|
+
if (c.id === "chatgpt-desktop" || c.id === "grok") {
|
|
62
|
+
info(
|
|
63
|
+
c.id === "grok" ? "Grok \u2014 remove Hive once at grok.com/connectors" : "OpenAI / ChatGPT apps \u2014 remove the Hive app connector manually"
|
|
64
|
+
);
|
|
61
65
|
continue;
|
|
62
66
|
}
|
|
63
67
|
if (summary.dryRun) {
|
|
@@ -72,10 +76,15 @@ async function runUninstall(opts = {}) {
|
|
|
72
76
|
summary.cleaned.push({
|
|
73
77
|
client: c.id,
|
|
74
78
|
path: result.path,
|
|
75
|
-
removed: result.removed
|
|
79
|
+
removed: result.removed,
|
|
80
|
+
...result.manual && { manual: true },
|
|
81
|
+
...result.instructions && { instructions: result.instructions }
|
|
76
82
|
});
|
|
77
83
|
if (result.removed) ok(`${c.name} ${dim("(" + result.path + ")")}`);
|
|
78
|
-
else info(`${c.name} \u2014 no Hive entry to remove`);
|
|
84
|
+
else if (!result.manual) info(`${c.name} \u2014 no Hive entry to remove`);
|
|
85
|
+
if (result.manual && result.instructions) {
|
|
86
|
+
warn(`${c.name} \u2014 finish in the app: ${result.instructions}`);
|
|
87
|
+
}
|
|
79
88
|
clientIds.push(c.id);
|
|
80
89
|
} catch (err) {
|
|
81
90
|
warn(
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
getPendingUpdateVersion,
|
|
6
6
|
isNewerVersion,
|
|
7
7
|
shouldSkipUpdateCheck
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-M6REON2I.js";
|
|
9
|
+
import "./chunk-ZXKFJQDE.js";
|
|
10
|
+
import "./chunk-6PC3HUAK.js";
|
|
11
|
+
import "./chunk-ILVPOLA7.js";
|
|
12
12
|
export {
|
|
13
13
|
checkForUpdates,
|
|
14
14
|
fetchLatestVersion,
|
|
@@ -2,19 +2,19 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
|
|
|
2
2
|
import {
|
|
3
3
|
fetchLatestVersion,
|
|
4
4
|
isNewerVersion
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-M6REON2I.js";
|
|
6
6
|
import {
|
|
7
7
|
REGISTRY_PACKAGE,
|
|
8
8
|
SERVER_VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZXKFJQDE.js";
|
|
10
10
|
import {
|
|
11
11
|
info,
|
|
12
12
|
shouldOutputJson,
|
|
13
13
|
successEnvelope,
|
|
14
14
|
writeOutput
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-725R3KLJ.js";
|
|
16
|
+
import "./chunk-6PC3HUAK.js";
|
|
17
|
+
import "./chunk-ILVPOLA7.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/upgrade.ts
|
|
20
20
|
import { spawnSync } from "child_process";
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
CLI_BINARY,
|
|
4
|
+
PUBLIC_MCP_REGISTRY_ID,
|
|
4
5
|
REGISTRY_PACKAGE,
|
|
5
6
|
SERVER_NAME,
|
|
6
7
|
SERVER_VERSION
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ZXKFJQDE.js";
|
|
9
|
+
import "./chunk-ILVPOLA7.js";
|
|
9
10
|
export {
|
|
10
11
|
CLI_BINARY,
|
|
12
|
+
PUBLIC_MCP_REGISTRY_ID,
|
|
11
13
|
REGISTRY_PACKAGE,
|
|
12
14
|
SERVER_NAME,
|
|
13
15
|
SERVER_VERSION
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
executeTool
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-N32UIHBU.js";
|
|
5
|
+
import "./chunk-Q7VBYLX7.js";
|
|
6
|
+
import "./chunk-RU6QOFHH.js";
|
|
7
|
+
import "./chunk-EPF36Q3Z.js";
|
|
8
|
+
import "./chunk-ZXKFJQDE.js";
|
|
9
|
+
import "./chunk-725R3KLJ.js";
|
|
10
|
+
import "./chunk-6PC3HUAK.js";
|
|
11
|
+
import "./chunk-ILVPOLA7.js";
|
|
11
12
|
|
|
12
13
|
// src/cli/watch.ts
|
|
13
14
|
var MAX_CONSECUTIVE_FAILURES = 10;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hive-intelligence",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
5
|
-
"mcpName": "
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Evidence-backed crypto due diligence for AI agents, with sources, freshness, and a runtime receipt on every call.",
|
|
5
|
+
"mcpName": "xyz.hiveintelligence/mcp",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"packageManager": "npm@12.0.0",
|
|
7
8
|
"workspaces": [
|
|
8
9
|
"agent-skills",
|
|
9
10
|
"packages/*"
|
|
@@ -11,7 +12,8 @@
|
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build": "tsup && chmod 755 build/server.js build/stdio.js build/cli.js build/monitor-worker.js",
|
|
13
14
|
"build:client": "npm --workspace hive-mcp-client run build",
|
|
14
|
-
"check": "npm run build && npm run typecheck && npm run env:render:check && npx tsx scripts/verify-tools.ts && npm run verify:toolsets && npm run verify:agent-skills && npm run measure-tokens -- --threshold=10000 && npm run test:unit && npm run test:mcp-compliance && npm run test:audit",
|
|
15
|
+
"check": "npm run verify:workflows && npm run release:verify && npm run verify:public-plugins && npm run build && npm run verify:bundles && npm run typecheck && npm run check:client && npm run env:render:check && npm run verify:endpoints && npx tsx scripts/verify-tools.ts && npm run verify:toolsets && npm run verify:agent-skills && npm run verify:docs && npm run measure-tokens -- --threshold=10000 && npm run test:unit && npm run test:mcp-compliance && npm run test:audit",
|
|
16
|
+
"check:client": "npm --workspace hive-mcp-client run typecheck && npm --workspace hive-mcp-client run build && npm --workspace hive-mcp-client run test",
|
|
15
17
|
"typecheck": "tsc --noEmit",
|
|
16
18
|
"prepare": "npm run build",
|
|
17
19
|
"prepublishOnly": "npm run check",
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
"test:mcp": "vitest run tests/mcp",
|
|
31
33
|
"test:audit": "vitest run tests/audit",
|
|
32
34
|
"test:e2e": "vitest run tests/e2e",
|
|
33
|
-
"test:e2e:defillama": "vitest run tests/e2e/
|
|
35
|
+
"test:e2e:defillama": "vitest run tests/e2e/defi-protocol-e2e.test.ts tests/live/defillama-live.test.ts",
|
|
34
36
|
"test:integration": "vitest run tests/integration",
|
|
35
37
|
"test:live": "vitest run tests/live",
|
|
36
38
|
"test:production": "npm run test:audit && npm run test:e2e && npm run test:integration",
|
|
@@ -45,15 +47,27 @@
|
|
|
45
47
|
"test:docker:live": "docker compose -f tests/docker/docker-compose.test.yml run --rm hive-test npm run test:live",
|
|
46
48
|
"test:docker:compliance": "docker compose -f tests/docker/docker-compose.test.yml run --rm hive-test npm run test:mcp-compliance",
|
|
47
49
|
"test:docker:down": "docker compose -f tests/docker/docker-compose.test.yml down -v && docker compose -f tests/docker/docker-compose.e2e.yml down -v",
|
|
50
|
+
"eval:retrieval": "vitest run tests/evals/search-tools-retrieval.test.ts",
|
|
51
|
+
"golden:run": "tsx scripts/golden-runner.ts",
|
|
48
52
|
"measure-tokens": "tsx scripts/measure-token-cost.ts",
|
|
49
53
|
"env:render": "tsx scripts/env-render.ts",
|
|
50
54
|
"env:render:check": "tsx scripts/env-render.ts --check",
|
|
51
55
|
"env:sync": "tsx scripts/env-sync.ts",
|
|
52
56
|
"env:flags": "tsx scripts/env-deploy-flags.ts",
|
|
53
57
|
"env:drift": "tsx scripts/env-drift-check.ts",
|
|
58
|
+
"schema:verify": "tsx scripts/verify-production-schema.ts",
|
|
54
59
|
"env:migrate": "tsx scripts/env-migrate.ts",
|
|
55
60
|
"verify:toolsets": "tsx scripts/verify-toolsets.ts",
|
|
56
61
|
"verify:agent-skills": "tsx scripts/verify-agent-skills.ts && npm --workspace @hiveintelligence/agent-skills run validate",
|
|
62
|
+
"codex-plugin:sync": "tsx scripts/sync-codex-plugin-skills.ts",
|
|
63
|
+
"verify:codex-plugin": "tsx scripts/sync-codex-plugin-skills.ts --check",
|
|
64
|
+
"verify:cursor-plugin": "tsx scripts/verify-cursor-plugin.ts",
|
|
65
|
+
"verify:marketplace-review": "tsx scripts/verify-marketplace-review.ts",
|
|
66
|
+
"verify:public-plugins": "npm run verify:codex-plugin && npm run verify:cursor-plugin && npm run verify:marketplace-review",
|
|
67
|
+
"verify:docs": "tsx scripts/verify-doc-claims.ts",
|
|
68
|
+
"verify:workflows": "github-actionlint .github/workflows/*.yml public-repos/hive-sdk/.github/workflows/*.yml",
|
|
69
|
+
"verify:bundles": "node --check build/server.js && node --check build/stdio.js && node --check build/cli.js && node --check build/monitor-worker.js",
|
|
70
|
+
"verify:endpoints": "tsx scripts/validate-endpoints.ts",
|
|
57
71
|
"export:toolsets": "tsx scripts/export-task-toolsets.ts",
|
|
58
72
|
"skills:sync": "tsx scripts/sync-public-skills.ts",
|
|
59
73
|
"sdk:sync": "tsx scripts/sync-public-sdk.ts",
|
|
@@ -61,7 +75,11 @@
|
|
|
61
75
|
"smoke:stateful-monitoring": "tsx scripts/smoke-stateful-monitoring.ts",
|
|
62
76
|
"smoke:b2b-partner": "tsx scripts/smoke-b2b-partner-adoption.ts",
|
|
63
77
|
"canary:toolsets": "tsx scripts/run-task-canaries.ts",
|
|
64
|
-
"canary:discovery": "tsx scripts/check-public-discovery.ts"
|
|
78
|
+
"canary:discovery": "tsx scripts/check-public-discovery.ts",
|
|
79
|
+
"verify:deployment-candidate": "tsx scripts/verify-deployment-candidate.ts",
|
|
80
|
+
"release:prepare": "tsx scripts/prepare-release-artifacts.ts",
|
|
81
|
+
"release:verify": "tsx scripts/verify-release-consistency.ts",
|
|
82
|
+
"release:verify:live": "tsx scripts/verify-release-consistency.ts --live"
|
|
65
83
|
},
|
|
66
84
|
"keywords": [
|
|
67
85
|
"mcp",
|
|
@@ -107,51 +125,63 @@
|
|
|
107
125
|
"url": "https://github.com/hive-intel/hive-sdk/issues"
|
|
108
126
|
},
|
|
109
127
|
"engines": {
|
|
110
|
-
"node": ">=
|
|
128
|
+
"node": ">=22.12.0"
|
|
111
129
|
},
|
|
112
130
|
"dependencies": {
|
|
113
131
|
"@cloudflare/cabidela": "^0.2.4",
|
|
114
|
-
"@codex-data/sdk": "2.3.
|
|
115
|
-
"@coingecko/coingecko-typescript": "
|
|
116
|
-
"@modelcontextprotocol/sdk": "1.
|
|
117
|
-
"@supabase/supabase-js": "^2.
|
|
132
|
+
"@codex-data/sdk": "^2.3.37",
|
|
133
|
+
"@coingecko/coingecko-typescript": "^7.1.0",
|
|
134
|
+
"@modelcontextprotocol/sdk": "1.30.0",
|
|
135
|
+
"@supabase/supabase-js": "^2.112.3",
|
|
118
136
|
"@types/compression": "^1.8.1",
|
|
119
|
-
"@unkey/api": "2.
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
137
|
+
"@unkey/api": "2.5.0",
|
|
138
|
+
"ajv": "^8.18.0",
|
|
139
|
+
"ajv-formats": "^3.0.1",
|
|
140
|
+
"axios": "^1.18.1",
|
|
141
|
+
"ccxt": "^4.5.74",
|
|
142
|
+
"commander": "^15.0.0",
|
|
123
143
|
"compression": "^1.8.1",
|
|
124
144
|
"cors": "2.8.6",
|
|
125
145
|
"dotenv": "17.4.2",
|
|
126
|
-
"express": "
|
|
127
|
-
"express-rate-limit": "
|
|
146
|
+
"express": "^5.2.1",
|
|
147
|
+
"express-rate-limit": "^8.5.2",
|
|
128
148
|
"fastest-levenshtein": "^1.0.16",
|
|
129
|
-
"graphql": "16.
|
|
130
|
-
"helmet": "^8.
|
|
131
|
-
"ioredis": "5.
|
|
132
|
-
"ora": "9.4.
|
|
133
|
-
"rate-limit-redis": "
|
|
134
|
-
"
|
|
149
|
+
"graphql": "16.14.2",
|
|
150
|
+
"helmet": "^8.2.0",
|
|
151
|
+
"ioredis": "^5.11.1",
|
|
152
|
+
"ora": "^9.4.1",
|
|
153
|
+
"rate-limit-redis": "^5.0.0",
|
|
154
|
+
"swagger-ui-dist": "5.32.8",
|
|
155
|
+
"tsx": "4.23.0",
|
|
135
156
|
"winston": "3.19.0",
|
|
136
|
-
"zod": "^4.3
|
|
157
|
+
"zod": "^4.4.3"
|
|
137
158
|
},
|
|
138
159
|
"overrides": {
|
|
160
|
+
"@codex-data/sdk": {
|
|
161
|
+
"graphql-request": "7.4.0"
|
|
162
|
+
},
|
|
163
|
+
"github-actionlint": {
|
|
164
|
+
"adm-zip": "0.6.0"
|
|
165
|
+
},
|
|
139
166
|
"@modelcontextprotocol/sdk": {
|
|
140
|
-
"express-rate-limit": "8.5.
|
|
167
|
+
"express-rate-limit": "8.5.2"
|
|
141
168
|
},
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
169
|
+
"esbuild": "0.28.1",
|
|
170
|
+
"fast-uri": "3.1.5",
|
|
171
|
+
"hono": "4.12.34",
|
|
172
|
+
"ip-address": "10.5.0",
|
|
173
|
+
"qs": "6.15.3"
|
|
145
174
|
},
|
|
146
175
|
"devDependencies": {
|
|
147
|
-
"@types/cors": "^2.8.
|
|
148
|
-
"@types/express": "
|
|
149
|
-
"@types/node": "^
|
|
150
|
-
"@vitest/coverage-v8": "4.1.
|
|
176
|
+
"@types/cors": "^2.8.19",
|
|
177
|
+
"@types/express": "^5.0.6",
|
|
178
|
+
"@types/node": "^24.13.3",
|
|
179
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
151
180
|
"cross-env": "10.1.0",
|
|
181
|
+
"github-actionlint": "1.7.12",
|
|
152
182
|
"tsup": "8.5.1",
|
|
153
|
-
"typescript": "^
|
|
154
|
-
"vitest": "^4.1.
|
|
183
|
+
"typescript": "^7.0.2",
|
|
184
|
+
"vitest": "^4.1.10"
|
|
155
185
|
},
|
|
156
186
|
"bin": {
|
|
157
187
|
"hive": "bin/hive-mcp.js",
|
|
@@ -165,5 +195,11 @@
|
|
|
165
195
|
"agent-skills/**/*",
|
|
166
196
|
"README.md",
|
|
167
197
|
"LICENSE"
|
|
168
|
-
]
|
|
198
|
+
],
|
|
199
|
+
"allowScripts": {
|
|
200
|
+
"esbuild@0.28.1": true,
|
|
201
|
+
"bufferutil": false,
|
|
202
|
+
"ccxt": false,
|
|
203
|
+
"fsevents": false
|
|
204
|
+
}
|
|
169
205
|
}
|