hive-intelligence 1.1.4 → 1.4.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.
Files changed (134) hide show
  1. package/README.md +182 -73
  2. package/agent-skills/.claude-plugin/plugin.json +4 -4
  3. package/agent-skills/.mcp.json +1 -4
  4. package/agent-skills/README.md +16 -10
  5. package/agent-skills/SKILL.md +30 -12
  6. package/agent-skills/package.json +1 -1
  7. package/agent-skills/packs/hive-build/SKILL.md +47 -19
  8. package/agent-skills/packs/hive-build/evals/evals.json +16 -3
  9. package/agent-skills/packs/hive-build/evals/triggers.json +50 -0
  10. package/agent-skills/packs/hive-build-onboarding/SKILL.md +30 -37
  11. package/agent-skills/packs/hive-build-onboarding/evals/evals.json +1 -1
  12. package/agent-skills/packs/hive-build-onboarding/evals/triggers.json +50 -0
  13. package/agent-skills/packs/hive-cli/SKILL.md +33 -35
  14. package/agent-skills/packs/hive-cli/evals/evals.json +1 -1
  15. package/agent-skills/packs/hive-cli/evals/triggers.json +50 -0
  16. package/agent-skills/packs/hive-defi-research/SKILL.md +105 -19
  17. package/agent-skills/packs/hive-defi-research/evals/evals.json +6 -3
  18. package/agent-skills/packs/hive-defi-research/evals/triggers.json +50 -0
  19. package/agent-skills/packs/hive-dex-pool-analysis/SKILL.md +106 -16
  20. package/agent-skills/packs/hive-dex-pool-analysis/evals/evals.json +5 -3
  21. package/agent-skills/packs/hive-dex-pool-analysis/evals/triggers.json +50 -0
  22. package/agent-skills/packs/hive-market-research/SKILL.md +130 -21
  23. package/agent-skills/packs/hive-market-research/evals/evals.json +15 -2
  24. package/agent-skills/packs/hive-market-research/evals/triggers.json +50 -0
  25. package/agent-skills/packs/hive-mcp/SKILL.md +69 -47
  26. package/agent-skills/packs/hive-mcp/evals/evals.json +3 -2
  27. package/agent-skills/packs/hive-mcp/evals/triggers.json +50 -0
  28. package/agent-skills/packs/hive-mcp/references/client-install-matrix.md +62 -35
  29. package/agent-skills/packs/hive-mcp/references/clients.md +81 -68
  30. package/agent-skills/packs/hive-network-infrastructure/SKILL.md +105 -20
  31. package/agent-skills/packs/hive-network-infrastructure/evals/evals.json +4 -2
  32. package/agent-skills/packs/hive-network-infrastructure/evals/triggers.json +50 -0
  33. package/agent-skills/packs/hive-nft-research/SKILL.md +105 -18
  34. package/agent-skills/packs/hive-nft-research/evals/evals.json +4 -2
  35. package/agent-skills/packs/hive-nft-research/evals/triggers.json +50 -0
  36. package/agent-skills/packs/hive-prediction-markets/SKILL.md +108 -21
  37. package/agent-skills/packs/hive-prediction-markets/evals/evals.json +4 -2
  38. package/agent-skills/packs/hive-prediction-markets/evals/triggers.json +50 -0
  39. package/agent-skills/packs/hive-query/SKILL.md +79 -33
  40. package/agent-skills/packs/hive-query/evals/evals.json +7 -5
  41. package/agent-skills/packs/hive-query/evals/triggers.json +50 -0
  42. package/agent-skills/packs/hive-query/references/root-mcp-workflow.md +39 -18
  43. package/agent-skills/packs/hive-security-risk/SKILL.md +110 -19
  44. package/agent-skills/packs/hive-security-risk/evals/evals.json +4 -2
  45. package/agent-skills/packs/hive-security-risk/evals/triggers.json +50 -0
  46. package/agent-skills/packs/hive-solana-analysis/SKILL.md +115 -19
  47. package/agent-skills/packs/hive-solana-analysis/evals/evals.json +4 -2
  48. package/agent-skills/packs/hive-solana-analysis/evals/triggers.json +50 -0
  49. package/agent-skills/packs/hive-stateful-monitoring/SKILL.md +92 -47
  50. package/agent-skills/packs/hive-stateful-monitoring/evals/evals.json +7 -2
  51. package/agent-skills/packs/hive-stateful-monitoring/evals/triggers.json +50 -0
  52. package/agent-skills/packs/hive-stateful-monitoring/references/b2b-subject-context.md +53 -0
  53. package/agent-skills/packs/hive-token-diligence/SKILL.md +119 -21
  54. package/agent-skills/packs/hive-token-diligence/evals/evals.json +6 -4
  55. package/agent-skills/packs/hive-token-diligence/evals/triggers.json +50 -0
  56. package/agent-skills/packs/hive-tool-discovery/SKILL.md +48 -19
  57. package/agent-skills/packs/hive-tool-discovery/evals/evals.json +17 -3
  58. package/agent-skills/packs/hive-tool-discovery/evals/triggers.json +50 -0
  59. package/agent-skills/packs/hive-tool-discovery/references/discovery-surfaces.md +31 -6
  60. package/agent-skills/packs/hive-wallet-investigation/SKILL.md +111 -18
  61. package/agent-skills/packs/hive-wallet-investigation/evals/evals.json +5 -3
  62. package/agent-skills/packs/hive-wallet-investigation/evals/triggers.json +50 -0
  63. package/agent-skills/references/agents-routing.md +17 -7
  64. package/agent-skills/scripts/validate-agent-skills-package.mjs +68 -8
  65. package/bin/hive-mcp.js +5 -5
  66. package/build/{alias-3OPMQF4X.js → alias-BKAVOYQV.js} +2 -2
  67. package/build/api-client-WMWFWXC7.js +16 -0
  68. package/build/{auth-Q5Q24IRI.js → auth-HRFQWQMZ.js} +3 -11
  69. package/build/browser-auth-KXIO5BHM.js +20 -0
  70. package/build/{cache-T6KC5YEY.js → cache-TBDQ7QBU.js} +2 -2
  71. package/build/chunk-3OZFBWFK.js +180 -0
  72. package/build/{chunk-POT2MBEK.js → chunk-6PC3HUAK.js} +10 -3
  73. package/build/{chunk-NP6NSOG2.js → chunk-725R3KLJ.js} +26 -3
  74. package/build/chunk-7DYHWY4Y.js +125 -0
  75. package/build/{chunk-ZXB53E7H.js → chunk-AEU43ACS.js} +31 -7
  76. package/build/chunk-AQQAPAER.js +197 -0
  77. package/build/chunk-EPF36Q3Z.js +71 -0
  78. package/build/{upgrade-DTUIHVPS.js → chunk-GHCYCBA3.js} +4 -5
  79. package/build/{chunk-3WYWXTNN.js → chunk-ILVPOLA7.js} +12 -3
  80. package/build/{chunk-VBOKVQ74.js → chunk-L326MQZP.js} +6 -5
  81. package/build/{chunk-FRXMGRZQ.js → chunk-M6REON2I.js} +2 -2
  82. package/build/{chunk-7JWXBKEJ.js → chunk-P7NLFSZQ.js} +9 -60
  83. package/build/chunk-QDZ7MAVN.js +447 -0
  84. package/build/{chunk-ZTJVOWDQ.js → chunk-R6YZTFQL.js} +2 -0
  85. package/build/{chunk-YZ2PXBJK.js → chunk-RU6QOFHH.js} +6 -9
  86. package/build/{chunk-FH3YGSY5.js → chunk-TNQ7GJ6Q.js} +0 -59
  87. package/build/{chunk-5XXI25JE.js → chunk-TVQJY47C.js} +12 -160
  88. package/build/{chunk-JTUKQWIO.js → chunk-UFTNBCSA.js} +35515 -14994
  89. package/build/{chunk-ZCU7XQKF.js → chunk-ZXKFJQDE.js} +7 -1
  90. package/build/cli.js +3342 -3423
  91. package/build/{completion-46K674EL.js → completion-7KBW243H.js} +4 -4
  92. package/build/{config-XE6Q5P4I.js → config-KAEUX6RM.js} +23 -3
  93. package/build/{config-dir-MAWX5AUF.js → config-dir-5IH7MOOT.js} +2 -2
  94. package/build/{doctor-HGMQE6IN.js → doctor-GHUAUFS2.js} +12 -12
  95. package/build/{errors-J2PH3NLJ.js → errors-HGHUF575.js} +2 -2
  96. package/build/{format-5X2HIVDT.js → format-H7FOQSYY.js} +1 -1
  97. package/build/{init-JMDNM7ZZ.js → init-UCTCUYFA.js} +52 -8
  98. package/build/init-all-RG542NWG.js +427 -0
  99. package/build/mcpServer-D7OXUDU5.js +34 -0
  100. package/build/monitor-worker.js +296 -40
  101. package/build/{namespace-FSX2G3NM.js → namespace-L5DGCY7K.js} +2 -2
  102. package/build/{open-5A6ZQMGC.js → open-V2RNA3QT.js} +1 -1
  103. package/build/{output-V3D4YZ6U.js → output-ITGLBKIG.js} +2 -2
  104. package/build/release.json +8 -0
  105. package/build/{serve-AGCOXXFM.js → serve-K3IT7DS4.js} +3 -3
  106. package/build/server.js +6396 -3220
  107. package/build/{setup-RMETGJWK.js → setup-PTYFMTK5.js} +60 -55
  108. package/build/stdio.js +7 -6
  109. package/build/{telemetry-WCME5XEU.js → telemetry-HPLDYR7U.js} +5 -4
  110. package/build/{tools-KAB6QBZC.js → tools-D72ZH6P5.js} +15 -15
  111. package/build/{uninstall-FLJMBBSC.js → uninstall-SAOIPL6K.js} +19 -10
  112. package/build/{update-check-LNZQK3XA.js → update-check-IEXPOYYR.js} +4 -4
  113. package/build/upgrade-4S5XT5JG.js +14 -0
  114. package/build/{version-I6HDAF4L.js → version-Z4HJL4VV.js} +4 -2
  115. package/build/{watch-YNN255QX.js → watch-IOSRSCFE.js} +8 -7
  116. package/package.json +73 -35
  117. package/agent-skills/packs/hive-defi-research/references/workflow.md +0 -41
  118. package/agent-skills/packs/hive-dex-pool-analysis/references/workflow.md +0 -42
  119. package/agent-skills/packs/hive-market-research/references/workflow.md +0 -47
  120. package/agent-skills/packs/hive-network-infrastructure/references/workflow.md +0 -41
  121. package/agent-skills/packs/hive-nft-research/references/workflow.md +0 -42
  122. package/agent-skills/packs/hive-prediction-markets/references/workflow.md +0 -42
  123. package/agent-skills/packs/hive-security-risk/references/workflow.md +0 -46
  124. package/agent-skills/packs/hive-solana-analysis/references/workflow.md +0 -42
  125. package/agent-skills/packs/hive-token-diligence/references/workflow.md +0 -45
  126. package/agent-skills/packs/hive-wallet-investigation/references/workflow.md +0 -45
  127. package/build/api-client-EPF6FD7A.js +0 -28
  128. package/build/browser-auth-VPF5LZMZ.js +0 -8
  129. package/build/chunk-4F5CI6LX.js +0 -340
  130. package/build/chunk-CEWCB5YS.js +0 -71
  131. package/build/chunk-GZPDEXO4.js +0 -126
  132. package/build/chunk-IZPAMRHP.js +0 -43
  133. package/build/init-all-5SKNV75X.js +0 -273
  134. package/build/mcpServer-5TKKSKJM.js +0 -21
@@ -1,273 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- import {
3
- browserLogin
4
- } from "./chunk-GZPDEXO4.js";
5
- import {
6
- saveProfile
7
- } from "./chunk-5XXI25JE.js";
8
- import {
9
- detectClients,
10
- installSkillsForClients
11
- } from "./chunk-ZXB53E7H.js";
12
- import {
13
- printChatGptDesktopInstructions,
14
- writeClaudeCodeUserConfig,
15
- writeClaudeDesktopConfig,
16
- writeCursorConfig,
17
- writeGeminiCliConfig,
18
- writeVscodeConfig,
19
- writeWindsurfConfig
20
- } from "./chunk-4F5CI6LX.js";
21
- import "./chunk-VBOKVQ74.js";
22
- import {
23
- bold,
24
- dim,
25
- green,
26
- red,
27
- yellow
28
- } from "./chunk-NP6NSOG2.js";
29
- import {
30
- resolveApiKey,
31
- resolveApiUrl
32
- } from "./chunk-POT2MBEK.js";
33
- import "./chunk-3WYWXTNN.js";
34
-
35
- // src/cli/init-all.ts
36
- function w(line) {
37
- process.stderr.write(line + "\n");
38
- }
39
- function step(label) {
40
- w(`
41
- ${bold(label)}`);
42
- }
43
- function ok(line) {
44
- w(` ${green("\u2713")} ${line}`);
45
- }
46
- function bad(line) {
47
- w(` ${red("\u2717")} ${line}`);
48
- }
49
- function warn(line) {
50
- w(` ${yellow("!")} ${line}`);
51
- }
52
- function info(line) {
53
- w(` ${dim(line)}`);
54
- }
55
- function writeForClient(client) {
56
- const base = {
57
- client: client.id,
58
- name: client.name
59
- };
60
- if (!client.programmable) {
61
- if (client.id === "chatgpt-desktop") {
62
- const inst = printChatGptDesktopInstructions();
63
- return { ...base, ok: false, manual: true, steps: inst.steps };
64
- }
65
- return {
66
- ...base,
67
- ok: false,
68
- manual: true,
69
- error: client.hint || "Manual setup required"
70
- };
71
- }
72
- try {
73
- let result;
74
- switch (client.id) {
75
- case "claude-code":
76
- result = writeClaudeCodeUserConfig();
77
- break;
78
- case "claude-desktop":
79
- result = writeClaudeDesktopConfig();
80
- break;
81
- case "cursor":
82
- result = writeCursorConfig();
83
- break;
84
- case "vscode":
85
- result = writeVscodeConfig();
86
- break;
87
- case "windsurf":
88
- result = writeWindsurfConfig();
89
- break;
90
- case "gemini-cli":
91
- result = writeGeminiCliConfig();
92
- break;
93
- case "chatgpt-desktop":
94
- return {
95
- ...base,
96
- ok: false,
97
- manual: true,
98
- steps: printChatGptDesktopInstructions().steps
99
- };
100
- }
101
- return {
102
- ...base,
103
- ok: result.written,
104
- path: result.path,
105
- error: result.written ? void 0 : "No API key resolved \u2014 auth first or set HIVE_API_KEY"
106
- };
107
- } catch (err) {
108
- return {
109
- ...base,
110
- ok: false,
111
- error: err instanceof Error ? err.message : String(err)
112
- };
113
- }
114
- }
115
- async function verifyConnection() {
116
- const apiKey = resolveApiKey();
117
- const apiUrl = resolveApiUrl();
118
- if (!apiKey) return false;
119
- try {
120
- const controller = new AbortController();
121
- const timer = setTimeout(() => controller.abort(), 8e3);
122
- const res = await fetch(`${apiUrl}/api/v1/tools?limit=1`, {
123
- headers: { Authorization: `Bearer ${apiKey}` },
124
- signal: controller.signal
125
- });
126
- clearTimeout(timer);
127
- return res.ok;
128
- } catch {
129
- return false;
130
- }
131
- }
132
- async function runInitAll(opts = {}) {
133
- const summary = {
134
- authenticated: false,
135
- apiKeyPresent: Boolean(resolveApiKey()),
136
- apiUrl: opts.apiUrl || resolveApiUrl(),
137
- clients: [],
138
- skills: [],
139
- verified: null,
140
- dryRun: Boolean(opts.dryRun)
141
- };
142
- if (!opts.json) {
143
- w(bold("\nHive Intelligence \u2014 Init"));
144
- if (summary.dryRun) info("(dry-run \u2014 nothing will be written)");
145
- }
146
- if (opts.browser) {
147
- step("Authenticating via browser");
148
- if (summary.dryRun) {
149
- info("Would open browser for PKCE auth at /auth/cli");
150
- summary.authenticated = false;
151
- } else {
152
- try {
153
- const result = await browserLogin({
154
- baseUrl: process.env.HIVE_AUTH_BASE_URL || "https://hiveintelligence.xyz",
155
- timeout: 3e5
156
- });
157
- saveProfile("default", result.key, summary.apiUrl);
158
- summary.authenticated = true;
159
- summary.apiKeyPresent = true;
160
- ok(`Signed in as ${result.email || "(email unavailable)"}`);
161
- } catch (err) {
162
- bad(`Browser auth failed: ${err instanceof Error ? err.message : err}`);
163
- if (!summary.apiKeyPresent) {
164
- warn("No saved key \u2014 clients will be configured with placeholder.");
165
- warn("Run `hive auth login --manual` to paste a key by hand.");
166
- }
167
- }
168
- }
169
- } else if (!summary.apiKeyPresent) {
170
- step("Authentication");
171
- warn("No API key in env or saved profile.");
172
- info("Run `hive init --browser` to authenticate via PKCE flow,");
173
- info("or `hive auth login --manual` to paste a key by hand.");
174
- } else {
175
- step("Authentication");
176
- ok("Existing API key resolved (env or saved profile)");
177
- summary.authenticated = true;
178
- }
179
- step("Detecting MCP-capable clients");
180
- const detected = detectClients();
181
- for (const c of detected) {
182
- if (c.detected) {
183
- ok(`${c.name} ${dim("(" + c.configPath + ")")}`);
184
- } else if (!opts.all) {
185
- continue;
186
- } else {
187
- info(`${c.name} \u2014 not detected (${c.hint || "skipped"})`);
188
- }
189
- }
190
- const targets = opts.all ? detected.filter((c) => c.detected && c.programmable) : detected.filter((c) => c.detected && c.programmable);
191
- step("Writing client configs");
192
- for (const client of targets) {
193
- if (summary.dryRun) {
194
- info(`Would write ${client.configPath}`);
195
- summary.clients.push({
196
- client: client.id,
197
- name: client.name,
198
- ok: true,
199
- path: client.configPath
200
- });
201
- continue;
202
- }
203
- const result = writeForClient(client);
204
- summary.clients.push(result);
205
- if (result.ok && result.path) {
206
- ok(`${result.name} ${dim("\u2192 " + result.path)}`);
207
- } else if (result.manual && result.steps) {
208
- warn(`${result.name} \u2014 manual setup required:`);
209
- for (const stepText of result.steps) info(` \u2022 ${stepText}`);
210
- } else {
211
- bad(`${result.name} \u2014 ${result.error || "unknown error"}`);
212
- }
213
- }
214
- const chatgpt = detected.find((c) => c.id === "chatgpt-desktop");
215
- if (chatgpt && !summary.clients.some((c) => c.client === "chatgpt-desktop")) {
216
- const inst = printChatGptDesktopInstructions();
217
- summary.clients.push({
218
- client: "chatgpt-desktop",
219
- name: chatgpt.name,
220
- ok: false,
221
- manual: true,
222
- steps: inst.steps
223
- });
224
- info(`${chatgpt.name} \u2014 manual setup (Settings \u2192 Connectors)`);
225
- }
226
- if (!opts.skipSkills) {
227
- step("Installing skill packs");
228
- if (summary.dryRun) {
229
- info("Would copy agent-skills/packs/ into per-client skills dirs");
230
- } else {
231
- const skillTargets = targets.map((c) => c.id);
232
- const skillResults = installSkillsForClients(skillTargets);
233
- summary.skills = skillResults;
234
- for (const r of skillResults) {
235
- if (r.installed.length > 0) {
236
- ok(
237
- `${r.client}: ${r.installed.length} pack${r.installed.length === 1 ? "" : "s"} ${dim("\u2192 " + r.destination)}`
238
- );
239
- } else if (r.reason) {
240
- info(`${r.client}: ${r.reason}`);
241
- }
242
- }
243
- }
244
- }
245
- if (!opts.skipVerify && !summary.dryRun) {
246
- step("Verifying connection");
247
- const verified = await verifyConnection();
248
- summary.verified = verified;
249
- if (verified) ok("Connection to Hive verified");
250
- else
251
- warn(
252
- "Could not verify \u2014 run `hive doctor` for details (this can be a transient network issue)"
253
- );
254
- }
255
- if (opts.json) {
256
- process.stdout.write(JSON.stringify(summary, null, 2) + "\n");
257
- } else {
258
- w("");
259
- w(bold("Next steps"));
260
- w(dim(" Try a query: ") + "hive market price --ids bitcoin --vs usd");
261
- w(dim(" Open dashboard: ") + "hive open dashboard");
262
- w(dim(" Health check: ") + "hive doctor");
263
- w("");
264
- }
265
- const anyClientOk = summary.clients.some((c) => c.ok);
266
- const browserOnly = opts.browser && !opts.all;
267
- if (browserOnly && summary.authenticated) return 0;
268
- if (!summary.dryRun && !anyClientOk) return 1;
269
- return 0;
270
- }
271
- export {
272
- runInitAll
273
- };
@@ -1,21 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- import {
3
- HiveMCPServer,
4
- createHiveMcpServer,
5
- getSharedClients,
6
- getToolsForScope
7
- } from "./chunk-JTUKQWIO.js";
8
- import "./chunk-VBOKVQ74.js";
9
- import {
10
- SERVER_NAME,
11
- SERVER_VERSION
12
- } from "./chunk-ZCU7XQKF.js";
13
- import "./chunk-3WYWXTNN.js";
14
- export {
15
- HiveMCPServer,
16
- SERVER_NAME,
17
- SERVER_VERSION,
18
- createHiveMcpServer,
19
- getSharedClients,
20
- getToolsForScope
21
- };