hive-intelligence 1.3.0 → 1.5.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 +2 -2
- package/agent-skills/SKILL.md +1 -1
- package/agent-skills/packs/hive-build/SKILL.md +1 -1
- package/agent-skills/packs/hive-build-onboarding/SKILL.md +7 -7
- package/agent-skills/packs/hive-cli/SKILL.md +2 -2
- package/agent-skills/packs/hive-defi-research/SKILL.md +1 -1
- package/agent-skills/packs/hive-dex-pool-analysis/SKILL.md +1 -1
- package/agent-skills/packs/hive-market-research/SKILL.md +1 -1
- package/agent-skills/packs/hive-mcp/SKILL.md +1 -1
- package/agent-skills/packs/hive-network-infrastructure/SKILL.md +1 -1
- package/agent-skills/packs/hive-nft-research/SKILL.md +1 -1
- package/agent-skills/packs/hive-prediction-markets/SKILL.md +1 -1
- package/agent-skills/packs/hive-query/SKILL.md +1 -1
- package/agent-skills/packs/hive-security-risk/SKILL.md +1 -1
- package/agent-skills/packs/hive-solana-analysis/SKILL.md +1 -1
- package/agent-skills/packs/hive-stateful-monitoring/SKILL.md +1 -1
- package/agent-skills/packs/hive-token-diligence/SKILL.md +1 -1
- package/agent-skills/packs/hive-tool-discovery/SKILL.md +1 -1
- package/agent-skills/packs/hive-wallet-investigation/SKILL.md +1 -1
- package/build/{api-client-FTVDFW5V.js → api-client-WMWFWXC7.js} +3 -15
- package/build/{auth-EZFJ5RYB.js → auth-Y4GXW376.js} +1 -9
- package/build/browser-auth-F62BMD7W.js +20 -0
- package/build/{chunk-W2QL7LYI.js → chunk-AGM2CIRL.js} +971 -117
- package/build/{chunk-7GD2MFYI.js → chunk-BDO27NIP.js} +37 -17
- package/build/{upgrade-J4HIGCKE.js → chunk-GB4XMTDE.js} +3 -4
- package/build/{chunk-TNQ7GJ6Q.js → chunk-GWZIAAQ2.js} +58 -40
- package/build/{chunk-Q7VBYLX7.js → chunk-P7NLFSZQ.js} +0 -58
- package/build/{chunk-N32UIHBU.js → chunk-SFN772RL.js} +5 -5
- package/build/{chunk-AEU43ACS.js → chunk-TVBPCELA.js} +2 -2
- package/build/{chunk-RUHO24SX.js → chunk-WF34ZD5I.js} +7 -162
- package/build/{chunk-I5Z6FZRL.js → chunk-XQPEFCSY.js} +14 -12
- package/build/cli.js +36 -47
- package/build/{completion-7KBW243H.js → completion-C57PDJMY.js} +1 -1
- package/build/{doctor-ORDOCGLM.js → doctor-XG5IQCXK.js} +5 -5
- package/build/{init-UCTCUYFA.js → init-COHA3VZI.js} +3 -3
- package/build/{init-all-BVWW3JVK.js → init-all-YTQJLPLR.js} +43 -24
- package/build/{mcpServer-RUEOTTF7.js → mcpServer-XHIN5JER.js} +1 -1
- package/build/monitor-worker.js +2 -2
- package/build/{namespace-L5DGCY7K.js → namespace-YLCGHVRT.js} +1 -1
- package/build/release.json +4 -4
- package/build/{serve-DKLR2WQH.js → serve-PWMT5IRU.js} +1 -1
- package/build/server.js +1475 -452
- package/build/stdio.js +1 -1
- package/build/{tools-I7GLWTV6.js → tools-XNFJBN7Q.js} +2 -2
- package/build/{uninstall-SAOIPL6K.js → uninstall-TKDP6C4F.js} +7 -7
- package/build/upgrade-ODPKMIDC.js +14 -0
- package/build/{watch-WVR4CGCD.js → watch-MXJSNGL2.js} +2 -2
- package/package.json +5 -3
- package/build/browser-auth-OJSUNFBI.js +0 -8
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
browserLogin
|
|
4
|
-
} from "./chunk-7GD2MFYI.js";
|
|
5
|
-
import {
|
|
6
|
-
saveProfile
|
|
7
|
-
} from "./chunk-RUHO24SX.js";
|
|
8
2
|
import {
|
|
9
3
|
detectClients,
|
|
10
4
|
installSkillsForClients
|
|
11
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TVBPCELA.js";
|
|
12
6
|
import {
|
|
13
7
|
getClaudeDesktopInstructions,
|
|
14
8
|
getCodexInstructions,
|
|
@@ -23,7 +17,18 @@ import {
|
|
|
23
17
|
writeVscodeConfig,
|
|
24
18
|
writeWindsurfConfig
|
|
25
19
|
} from "./chunk-QDZ7MAVN.js";
|
|
20
|
+
import {
|
|
21
|
+
browserLogin
|
|
22
|
+
} from "./chunk-BDO27NIP.js";
|
|
23
|
+
import {
|
|
24
|
+
saveProfile
|
|
25
|
+
} from "./chunk-WF34ZD5I.js";
|
|
26
|
+
import {
|
|
27
|
+
detectInstallMode
|
|
28
|
+
} from "./chunk-GB4XMTDE.js";
|
|
29
|
+
import "./chunk-M6REON2I.js";
|
|
26
30
|
import "./chunk-L326MQZP.js";
|
|
31
|
+
import "./chunk-ZXKFJQDE.js";
|
|
27
32
|
import {
|
|
28
33
|
bold,
|
|
29
34
|
dim,
|
|
@@ -38,6 +43,7 @@ import {
|
|
|
38
43
|
import "./chunk-ILVPOLA7.js";
|
|
39
44
|
|
|
40
45
|
// src/cli/init-all.ts
|
|
46
|
+
import { fileURLToPath } from "url";
|
|
41
47
|
var RESTART_HINTS = {
|
|
42
48
|
"claude-code": "Restart Claude Code (or run /mcp in an open session) to pick up the new server.",
|
|
43
49
|
"claude-desktop": "Quit and reopen Claude Desktop to pick up the new server.",
|
|
@@ -66,6 +72,15 @@ function warn(line) {
|
|
|
66
72
|
function info(line) {
|
|
67
73
|
w(` ${dim(line)}`);
|
|
68
74
|
}
|
|
75
|
+
function hiveCommandPrefix() {
|
|
76
|
+
let execPath = "";
|
|
77
|
+
try {
|
|
78
|
+
execPath = fileURLToPath(import.meta.url);
|
|
79
|
+
} catch {
|
|
80
|
+
execPath = process.argv[1] ?? "";
|
|
81
|
+
}
|
|
82
|
+
return detectInstallMode(execPath) === "npx" ? "npx -y -p hive-intelligence@latest " : "";
|
|
83
|
+
}
|
|
69
84
|
function writeForClient(client, apiUrlOverride) {
|
|
70
85
|
const base = {
|
|
71
86
|
client: client.id,
|
|
@@ -190,7 +205,7 @@ async function verifyConnection(apiUrlOverride) {
|
|
|
190
205
|
if (res.status === 401) {
|
|
191
206
|
return {
|
|
192
207
|
ok: true,
|
|
193
|
-
detail: "Hosted MCP reachable
|
|
208
|
+
detail: "Hosted MCP reachable: server answered with an auth challenge; finish sign-in inside each client."
|
|
194
209
|
};
|
|
195
210
|
}
|
|
196
211
|
if (!res.ok) {
|
|
@@ -214,12 +229,12 @@ async function verifyConnection(apiUrlOverride) {
|
|
|
214
229
|
const code = body.error.data?.code || "classified error";
|
|
215
230
|
return {
|
|
216
231
|
ok: true,
|
|
217
|
-
detail: `Hosted MCP reachable
|
|
232
|
+
detail: `Hosted MCP reachable: server answered with a classified response (${code})`
|
|
218
233
|
};
|
|
219
234
|
}
|
|
220
235
|
return {
|
|
221
236
|
ok: true,
|
|
222
|
-
detail: "Hosted MCP reachable
|
|
237
|
+
detail: "Hosted MCP reachable: anonymous hero call answered"
|
|
223
238
|
};
|
|
224
239
|
} catch {
|
|
225
240
|
return {
|
|
@@ -240,8 +255,8 @@ async function runInitAll(opts = {}) {
|
|
|
240
255
|
dryRun: Boolean(opts.dryRun)
|
|
241
256
|
};
|
|
242
257
|
if (!opts.json) {
|
|
243
|
-
w(bold("\nHive Intelligence
|
|
244
|
-
if (summary.dryRun) info("(dry-run
|
|
258
|
+
w(bold("\nHive Intelligence: Init"));
|
|
259
|
+
if (summary.dryRun) info("(dry-run: nothing will be written)");
|
|
245
260
|
}
|
|
246
261
|
if (opts.browser) {
|
|
247
262
|
step("Authenticating via browser");
|
|
@@ -289,7 +304,7 @@ async function runInitAll(opts = {}) {
|
|
|
289
304
|
} else if (!opts.all) {
|
|
290
305
|
continue;
|
|
291
306
|
} else {
|
|
292
|
-
info(`${c.name}
|
|
307
|
+
info(`${c.name}: not detected (${c.hint || "skipped"})`);
|
|
293
308
|
}
|
|
294
309
|
}
|
|
295
310
|
const browserOnly = Boolean(opts.browser && !opts.all);
|
|
@@ -312,10 +327,10 @@ async function runInitAll(opts = {}) {
|
|
|
312
327
|
ok(`${result.name} ${dim("\u2192 " + result.path)}`);
|
|
313
328
|
if (result.restartHint) info(result.restartHint);
|
|
314
329
|
} else if (result.manual && result.steps) {
|
|
315
|
-
warn(`${result.name}
|
|
330
|
+
warn(`${result.name}: manual setup required:`);
|
|
316
331
|
for (const stepText of result.steps) info(` \u2022 ${stepText}`);
|
|
317
332
|
} else {
|
|
318
|
-
bad(`${result.name}
|
|
333
|
+
bad(`${result.name}: ${result.error || "unknown error"}`);
|
|
319
334
|
}
|
|
320
335
|
}
|
|
321
336
|
for (const manualId of ["chatgpt-desktop", "grok"]) {
|
|
@@ -332,7 +347,7 @@ async function runInitAll(opts = {}) {
|
|
|
332
347
|
steps
|
|
333
348
|
});
|
|
334
349
|
info(
|
|
335
|
-
`${client.name}
|
|
350
|
+
`${client.name}: manual setup (${manualId === "grok" ? "grok.com/connectors" : "Settings \u2192 Apps"})`
|
|
336
351
|
);
|
|
337
352
|
}
|
|
338
353
|
if (!opts.skipSkills && !browserOnly) {
|
|
@@ -362,15 +377,18 @@ async function runInitAll(opts = {}) {
|
|
|
362
377
|
ok(verified.detail);
|
|
363
378
|
} else {
|
|
364
379
|
warn(
|
|
365
|
-
`Could not verify (${verified.detail})
|
|
380
|
+
`Could not verify (${verified.detail}). Run \`hive doctor\` for details; this can be a transient network issue`
|
|
366
381
|
);
|
|
367
382
|
}
|
|
368
383
|
}
|
|
369
|
-
const
|
|
384
|
+
const programmableTargets = targets.filter((client) => client.programmable);
|
|
385
|
+
const programmableIds = new Set(
|
|
386
|
+
programmableTargets.map((client) => client.id)
|
|
387
|
+
);
|
|
370
388
|
const programmableResults = summary.clients.filter(
|
|
371
|
-
(client) =>
|
|
389
|
+
(client) => programmableIds.has(client.client)
|
|
372
390
|
);
|
|
373
|
-
const clientsComplete = browserOnly ||
|
|
391
|
+
const clientsComplete = browserOnly || targets.length > 0 && programmableResults.length === programmableTargets.length && programmableResults.every((client) => client.ok);
|
|
374
392
|
const skillsComplete = opts.skipSkills === true || browserOnly || summary.skills.every(
|
|
375
393
|
(result) => result.destination === null || result.installed.length > 0 && result.skipped.length === 0
|
|
376
394
|
);
|
|
@@ -387,18 +405,19 @@ async function runInitAll(opts = {}) {
|
|
|
387
405
|
);
|
|
388
406
|
}
|
|
389
407
|
w(bold("Next steps"));
|
|
408
|
+
const hx = hiveCommandPrefix();
|
|
390
409
|
if (summary.apiKeyPresent) {
|
|
391
410
|
w(
|
|
392
|
-
dim(" Try a CLI query: ") +
|
|
411
|
+
dim(" Try a CLI query: ") + `${hx}hive market price --ids bitcoin --vs usd`
|
|
393
412
|
);
|
|
394
413
|
} else {
|
|
395
414
|
w(
|
|
396
415
|
dim(" In your AI client: ") + 'Ask "Use Hive to check USDT token risk."'
|
|
397
416
|
);
|
|
398
|
-
w(dim(" Optional CLI auth: ") +
|
|
417
|
+
w(dim(" Optional CLI auth: ") + `${hx}hive auth login`);
|
|
399
418
|
}
|
|
400
|
-
w(dim(" Open dashboard: ") +
|
|
401
|
-
w(dim(" Health check: ") +
|
|
419
|
+
w(dim(" Open dashboard: ") + `${hx}hive open dashboard`);
|
|
420
|
+
w(dim(" Health check: ") + `${hx}hive doctor`);
|
|
402
421
|
w("");
|
|
403
422
|
}
|
|
404
423
|
return summary.complete ? 0 : 1;
|
package/build/monitor-worker.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
|
|
|
2
2
|
import {
|
|
3
3
|
consumeCredits,
|
|
4
4
|
executeToolByName
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XQPEFCSY.js";
|
|
6
6
|
import {
|
|
7
7
|
HyperliquidAPI,
|
|
8
8
|
MIN_MONITOR_CADENCE_MS,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
monitorCadenceIntervalMs,
|
|
16
16
|
runScheduledHealthCanaries,
|
|
17
17
|
secureLogger
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AGM2CIRL.js";
|
|
19
19
|
import "./chunk-L326MQZP.js";
|
|
20
20
|
import "./chunk-EPF36Q3Z.js";
|
|
21
21
|
import "./chunk-ZXKFJQDE.js";
|
package/build/release.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "hive-intelligence",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"buildSha": "
|
|
5
|
-
"imageDigest": "sha256:
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"buildSha": "be07c11603a1109e3ef62c73c735e044c60f651f",
|
|
5
|
+
"imageDigest": "sha256:8d521047d21e80541a0ed4cc71741612d8ddac0881761e0a4467524d068c430e",
|
|
6
6
|
"deployedUrl": "https://mcp.hiveintelligence.xyz",
|
|
7
|
-
"manifest": "https://raw.githubusercontent.com/hive-intel/hive-sdk/v1.
|
|
7
|
+
"manifest": "https://raw.githubusercontent.com/hive-intel/hive-sdk/v1.5.0/releases/v1.5.0.json"
|
|
8
8
|
}
|
|
@@ -7,7 +7,7 @@ async function startStdio(envFile) {
|
|
|
7
7
|
dotenv.config({ path: envFile || ".env", quiet: true });
|
|
8
8
|
console.log = (...args) => console.error("[LOG]", ...args);
|
|
9
9
|
const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
|
|
10
|
-
const { createHiveMcpServer, SERVER_NAME, SERVER_VERSION } = await import("./mcpServer-
|
|
10
|
+
const { createHiveMcpServer, SERVER_NAME, SERVER_VERSION } = await import("./mcpServer-XHIN5JER.js");
|
|
11
11
|
const { getPendingUpdateVersion } = await import("./update-check-IEXPOYYR.js");
|
|
12
12
|
const transport = new StdioServerTransport();
|
|
13
13
|
const pendingUpdate = getPendingUpdateVersion();
|