hive-intelligence 1.3.0 → 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.
- package/README.md +1 -1
- 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-HRFQWQMZ.js} +1 -9
- package/build/browser-auth-KXIO5BHM.js +20 -0
- package/build/{chunk-I5Z6FZRL.js → chunk-3OZFBWFK.js} +14 -12
- package/build/{chunk-N32UIHBU.js → chunk-7DYHWY4Y.js} +1 -1
- package/build/{chunk-7GD2MFYI.js → chunk-AQQAPAER.js} +35 -15
- package/build/{upgrade-J4HIGCKE.js → chunk-GHCYCBA3.js} +1 -2
- package/build/{chunk-Q7VBYLX7.js → chunk-P7NLFSZQ.js} +0 -58
- package/build/{chunk-RUHO24SX.js → chunk-TVQJY47C.js} +2 -157
- package/build/{chunk-W2QL7LYI.js → chunk-UFTNBCSA.js} +885 -101
- package/build/cli.js +28 -39
- package/build/{doctor-ORDOCGLM.js → doctor-GHUAUFS2.js} +3 -3
- package/build/{init-all-BVWW3JVK.js → init-all-RG542NWG.js} +32 -13
- package/build/{mcpServer-RUEOTTF7.js → mcpServer-D7OXUDU5.js} +1 -1
- package/build/monitor-worker.js +2 -2
- package/build/release.json +4 -4
- package/build/{serve-DKLR2WQH.js → serve-K3IT7DS4.js} +1 -1
- package/build/server.js +1429 -415
- package/build/stdio.js +1 -1
- package/build/{tools-I7GLWTV6.js → tools-D72ZH6P5.js} +1 -1
- package/build/upgrade-4S5XT5JG.js +14 -0
- package/build/{watch-WVR4CGCD.js → watch-IOSRSCFE.js} +2 -2
- package/package.json +5 -3
- package/build/browser-auth-OJSUNFBI.js +0 -8
|
@@ -204,7 +204,7 @@ Profile "${profileName}" saved. Key: ${maskKey(apiKey)}
|
|
|
204
204
|
Hive CLI \u2014 Login (profile: ${profileName})
|
|
205
205
|
`);
|
|
206
206
|
try {
|
|
207
|
-
const { browserLogin } = await import("./browser-auth-
|
|
207
|
+
const { browserLogin } = await import("./browser-auth-KXIO5BHM.js");
|
|
208
208
|
const apiUrl = process.env.HIVE_API_URL || "https://mcp.hiveintelligence.xyz";
|
|
209
209
|
const websiteUrl = process.env.HIVE_WEBSITE_URL || "https://hiveintelligence.xyz";
|
|
210
210
|
const result = await browserLogin({ baseUrl: websiteUrl });
|
|
@@ -293,159 +293,8 @@ async function runSwitch(name) {
|
|
|
293
293
|
process.exit(1);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
async function runSignup(opts) {
|
|
297
|
-
const { authSignup } = await import("./api-client-FTVDFW5V.js");
|
|
298
|
-
const profileName = opts.profile ?? "default";
|
|
299
|
-
process.stderr.write(`
|
|
300
|
-
Hive CLI \u2014 Signup (profile: ${profileName})
|
|
301
|
-
|
|
302
|
-
`);
|
|
303
|
-
const rl = createInterface({ input: process.stdin, output: process.stderr });
|
|
304
|
-
const email = await ask(rl, "Email: ");
|
|
305
|
-
rl.close();
|
|
306
|
-
const password = await askSecret("Password: ");
|
|
307
|
-
if (!email.trim() || !password.trim()) {
|
|
308
|
-
process.stderr.write("Email and password are required. Aborting.\n");
|
|
309
|
-
process.exit(1);
|
|
310
|
-
}
|
|
311
|
-
process.stderr.write("\nCreating account...\n");
|
|
312
|
-
const result = await authSignup(email.trim(), password.trim());
|
|
313
|
-
if (!result.ok) {
|
|
314
|
-
const errMsg = result.error?.message ?? "Signup failed";
|
|
315
|
-
process.stderr.write(`Error: ${errMsg}
|
|
316
|
-
`);
|
|
317
|
-
process.exit(1);
|
|
318
|
-
}
|
|
319
|
-
const apiKey = result.data?.api_key;
|
|
320
|
-
const keyValue = apiKey?.key;
|
|
321
|
-
const apiUrl = process.env.HIVE_API_URL || "https://mcp.hiveintelligence.xyz";
|
|
322
|
-
if (keyValue) {
|
|
323
|
-
saveProfile(profileName, keyValue, apiUrl);
|
|
324
|
-
process.stderr.write(`
|
|
325
|
-
Account created successfully!
|
|
326
|
-
`);
|
|
327
|
-
process.stderr.write(`API Key: ${keyValue}
|
|
328
|
-
`);
|
|
329
|
-
process.stderr.write(
|
|
330
|
-
`WARNING: Save this key \u2014 it will not be shown again.
|
|
331
|
-
`
|
|
332
|
-
);
|
|
333
|
-
process.stderr.write(`
|
|
334
|
-
Profile "${profileName}" saved.
|
|
335
|
-
`);
|
|
336
|
-
} else {
|
|
337
|
-
process.stderr.write(`
|
|
338
|
-
Account created but no API key was generated.
|
|
339
|
-
`);
|
|
340
|
-
process.stderr.write(`Run: hive keys create
|
|
341
|
-
`);
|
|
342
|
-
}
|
|
343
|
-
const resultData = result.data;
|
|
344
|
-
const session = resultData?.session;
|
|
345
|
-
if (session?.access_token) {
|
|
346
|
-
const creds = getCredentials();
|
|
347
|
-
creds.profiles[profileName] = {
|
|
348
|
-
...creds.profiles[profileName],
|
|
349
|
-
jwt: session.access_token
|
|
350
|
-
};
|
|
351
|
-
saveCredentials(creds);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
async function runKeysList() {
|
|
355
|
-
const { listKeysApi } = await import("./api-client-FTVDFW5V.js");
|
|
356
|
-
const creds = getCredentials();
|
|
357
|
-
const config = getConfig();
|
|
358
|
-
const jwt = creds.profiles[config.activeProfile]?.jwt;
|
|
359
|
-
if (!jwt) {
|
|
360
|
-
process.stderr.write(
|
|
361
|
-
"No session token. Run: hive auth signup or hive auth login\n"
|
|
362
|
-
);
|
|
363
|
-
process.exit(1);
|
|
364
|
-
}
|
|
365
|
-
const result = await listKeysApi(jwt);
|
|
366
|
-
if (!result.ok) {
|
|
367
|
-
process.stderr.write("Failed to list keys. Try logging in again.\n");
|
|
368
|
-
process.exit(1);
|
|
369
|
-
}
|
|
370
|
-
const keys = result.data;
|
|
371
|
-
if (!keys || keys.length === 0) {
|
|
372
|
-
process.stderr.write("No API keys found. Run: hive keys create\n");
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
process.stderr.write(`
|
|
376
|
-
${"KEY".padEnd(20)} ${"NAME".padEnd(15)} STATUS
|
|
377
|
-
`);
|
|
378
|
-
process.stderr.write(
|
|
379
|
-
` ${"\u2500".repeat(20)} ${"\u2500".repeat(15)} ${"\u2500".repeat(10)}
|
|
380
|
-
`
|
|
381
|
-
);
|
|
382
|
-
for (const k of keys) {
|
|
383
|
-
const prefix = k.prefix || "???";
|
|
384
|
-
const name = k.name || "Unnamed";
|
|
385
|
-
const enabled = k.enabled ? "active" : "disabled";
|
|
386
|
-
process.stderr.write(
|
|
387
|
-
` ${(prefix + "...").padEnd(20)} ${name.padEnd(15)} ${enabled}
|
|
388
|
-
`
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
|
-
process.stderr.write("\n");
|
|
392
|
-
}
|
|
393
|
-
async function runKeysCreate(opts) {
|
|
394
|
-
const { createKey } = await import("./api-client-FTVDFW5V.js");
|
|
395
|
-
const creds = getCredentials();
|
|
396
|
-
const config = getConfig();
|
|
397
|
-
const jwt = creds.profiles[config.activeProfile]?.jwt;
|
|
398
|
-
if (!jwt) {
|
|
399
|
-
process.stderr.write(
|
|
400
|
-
"No session token. Run: hive auth signup or hive auth login\n"
|
|
401
|
-
);
|
|
402
|
-
process.exit(1);
|
|
403
|
-
}
|
|
404
|
-
const name = opts.name ?? "CLI Key";
|
|
405
|
-
process.stderr.write(`Creating API key "${name}"...
|
|
406
|
-
`);
|
|
407
|
-
const result = await createKey(jwt, name);
|
|
408
|
-
if (!result.ok) {
|
|
409
|
-
const errMsg = result.error?.message ?? "Key creation failed";
|
|
410
|
-
process.stderr.write(`Error: ${errMsg}
|
|
411
|
-
`);
|
|
412
|
-
process.exit(1);
|
|
413
|
-
}
|
|
414
|
-
const data = result.data;
|
|
415
|
-
process.stderr.write(`
|
|
416
|
-
API Key: ${data.key}
|
|
417
|
-
`);
|
|
418
|
-
process.stderr.write(`Key ID: ${data.key_id}
|
|
419
|
-
`);
|
|
420
|
-
process.stderr.write(
|
|
421
|
-
`WARNING: Save this key \u2014 it will not be shown again.
|
|
422
|
-
|
|
423
|
-
`
|
|
424
|
-
);
|
|
425
|
-
}
|
|
426
|
-
async function runKeysRevoke(keyId) {
|
|
427
|
-
const { revokeKeyApi } = await import("./api-client-FTVDFW5V.js");
|
|
428
|
-
const creds = getCredentials();
|
|
429
|
-
const config = getConfig();
|
|
430
|
-
const jwt = creds.profiles[config.activeProfile]?.jwt;
|
|
431
|
-
if (!jwt) {
|
|
432
|
-
process.stderr.write(
|
|
433
|
-
"No session token. Run: hive auth signup or hive auth login\n"
|
|
434
|
-
);
|
|
435
|
-
process.exit(1);
|
|
436
|
-
}
|
|
437
|
-
process.stderr.write(`Revoking key ${keyId}...
|
|
438
|
-
`);
|
|
439
|
-
const result = await revokeKeyApi(jwt, keyId);
|
|
440
|
-
if (result.ok) {
|
|
441
|
-
process.stderr.write("Key revoked.\n");
|
|
442
|
-
} else {
|
|
443
|
-
process.stderr.write("Failed to revoke key.\n");
|
|
444
|
-
process.exit(1);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
296
|
async function runUsage() {
|
|
448
|
-
const { getUsage } = await import("./api-client-
|
|
297
|
+
const { getUsage } = await import("./api-client-WMWFWXC7.js");
|
|
449
298
|
const result = await getUsage();
|
|
450
299
|
if (!result.ok) {
|
|
451
300
|
const { outputError } = await import("./output-ITGLBKIG.js");
|
|
@@ -495,9 +344,5 @@ export {
|
|
|
495
344
|
runWhoami,
|
|
496
345
|
runProfiles,
|
|
497
346
|
runSwitch,
|
|
498
|
-
runSignup,
|
|
499
|
-
runKeysList,
|
|
500
|
-
runKeysCreate,
|
|
501
|
-
runKeysRevoke,
|
|
502
347
|
runUsage
|
|
503
348
|
};
|