hive-intelligence 1.6.7 → 1.7.1

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 (57) hide show
  1. package/README.md +10 -4
  2. package/agent-skills/.claude-plugin/plugin.json +10 -0
  3. package/agent-skills/README.md +2 -0
  4. package/agent-skills/SKILL.md +18 -6
  5. package/agent-skills/evals/trigger-queries.json +70 -0
  6. package/agent-skills/package.json +3 -1
  7. package/agent-skills/packs/hive/SKILL.md +382 -0
  8. package/agent-skills/packs/hive/evals/evals.json +50 -0
  9. package/agent-skills/packs/hive/evals/triggers.json +15 -0
  10. package/agent-skills/packs/hive-build-onboarding/SKILL.md +1 -1
  11. package/agent-skills/packs/hive-cli/SKILL.md +2 -2
  12. package/agent-skills/packs/hive-mcp/SKILL.md +9 -5
  13. package/agent-skills/packs/hive-prediction-markets/SKILL.md +145 -0
  14. package/agent-skills/packs/hive-prediction-markets/evals/evals.json +29 -0
  15. package/agent-skills/packs/hive-prediction-markets/evals/triggers.json +14 -0
  16. package/agent-skills/packs/hive-query/SKILL.md +2 -1
  17. package/agent-skills/packs/hive-stateful-monitoring/SKILL.md +3 -3
  18. package/agent-skills/references/agents-routing.md +4 -1
  19. package/agent-skills/scripts/validate-agent-skills-package.mjs +2 -0
  20. package/agent-skills/skills.sh.json +9 -1
  21. package/build/{api-client-6AM3HVHQ.js → api-client-UGNFUZ2L.js} +12 -3
  22. package/build/{auth-4LPSQJXD.js → auth-5TLYP2DC.js} +1 -1
  23. package/build/call-args-NVOYX6DL.js +27 -0
  24. package/build/{chunk-G23ZAW36.js → chunk-2C5FBG7B.js} +3 -2
  25. package/build/{chunk-J2PXISXW.js → chunk-3SQPLZW6.js} +42810 -39335
  26. package/build/{chunk-S4HBVZ7O.js → chunk-3Z5VR53Z.js} +36 -7
  27. package/build/{chunk-GADPH72D.js → chunk-4QDGA6GP.js} +52 -1
  28. package/build/{chunk-2SPCKQBJ.js → chunk-5QAXJON7.js} +71 -0
  29. package/build/{chunk-GYVF75XB.js → chunk-FQNW6SZ6.js} +1 -1
  30. package/build/{chunk-LW2DHE32.js → chunk-L4KVJDA7.js} +1 -1
  31. package/build/chunk-POPAEM4E.js +474 -0
  32. package/build/{chunk-P7NLFSZQ.js → chunk-TWYGJEVN.js} +100 -9
  33. package/build/{chunk-32NRUWXA.js → chunk-UPWYFTTJ.js} +3 -3
  34. package/build/{chunk-KUF754NT.js → chunk-WII7MTYZ.js} +52 -12
  35. package/build/chunk-XN3T6YOG.js +32 -0
  36. package/build/chunk-XT6RURQV.js +394 -0
  37. package/build/{chunk-LP5ECG7A.js → chunk-ZDXMZPC6.js} +26 -2
  38. package/build/cli.js +120 -48
  39. package/build/{completion-YVSWWF6D.js → completion-ROZAH667.js} +1 -1
  40. package/build/{doctor-AM6QST7Z.js → doctor-44WSVNGJ.js} +42 -5
  41. package/build/{errors-EL6UMXNJ.js → errors-W3GXQN34.js} +7 -1
  42. package/build/feedback-FRRLZDAF.js +113 -0
  43. package/build/{init-all-54G3CVZA.js → init-all-LYRFE2YQ.js} +5 -5
  44. package/build/{mcpServer-NWOKFR7Q.js → mcpServer-43LTLURB.js} +2 -2
  45. package/build/monitor-worker.js +62 -10
  46. package/build/{namespace-PA2IDNRT.js → namespace-XMFFW47T.js} +1 -1
  47. package/build/{output-XGTE4EWJ.js → output-BBHBJI32.js} +5 -1
  48. package/build/release.json +4 -4
  49. package/build/routing-CP43PP5F.js +43 -0
  50. package/build/{serve-XRNMHIJX.js → serve-LTMDRKXS.js} +1 -1
  51. package/build/server.js +295 -41
  52. package/build/stdio.js +2 -2
  53. package/build/{tools-FNPMELSU.js → tools-VA7JXD3K.js} +81 -33
  54. package/build/{uninstall-P3JJZCXT.js → uninstall-3KJLHTNM.js} +26 -7
  55. package/build/{upgrade-ATIFZANV.js → upgrade-3NR3LAGU.js} +2 -2
  56. package/build/{watch-FG2C5Y2Z.js → watch-HJOTI32P.js} +5 -3
  57. package/package.json +1 -1
@@ -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-G23ZAW36.js";
5
+ } from "./chunk-2C5FBG7B.js";
6
6
  import {
7
7
  HyperliquidAPI,
8
8
  MIN_MONITOR_CADENCE_MS,
@@ -15,8 +15,8 @@ import {
15
15
  monitorCadenceIntervalMs,
16
16
  runScheduledHealthCanaries,
17
17
  secureLogger
18
- } from "./chunk-J2PXISXW.js";
19
- import "./chunk-GADPH72D.js";
18
+ } from "./chunk-3SQPLZW6.js";
19
+ import "./chunk-4QDGA6GP.js";
20
20
  import "./chunk-EPF36Q3Z.js";
21
21
  import "./chunk-ZXKFJQDE.js";
22
22
  import "./chunk-OMO7XLC5.js";
@@ -325,6 +325,47 @@ function buildMarketWorkflowPlan(monitor) {
325
325
  }
326
326
  return calls;
327
327
  }
328
+ function buildPredictionMarketWorkflowPlan(monitor) {
329
+ const venue = (stringValue(monitor.target.venue) ?? "").toLowerCase();
330
+ if (venue && venue !== "polymarket") {
331
+ throw new Error(
332
+ `Prediction-market monitors cover Polymarket only; venue "${venue}" is not supported.`
333
+ );
334
+ }
335
+ const slug = stringValue(monitor.target.slug);
336
+ const conditionId = stringValue(monitor.target.condition_id) ?? stringValue(monitor.target.conditionId) ?? stringValue(monitor.target.market_id) ?? stringValue(monitor.target.marketId) ?? stringValue(monitor.target.id);
337
+ if (slug || conditionId) {
338
+ const calls = [
339
+ {
340
+ toolName: "polymarket_get_market",
341
+ snapshotKey: "market",
342
+ args: slug ? { slug } : { condition_id: conditionId }
343
+ }
344
+ ];
345
+ const tokenId = stringValue(monitor.target.token_id) ?? stringValue(monitor.target.tokenId);
346
+ if (tokenId) {
347
+ calls.push({
348
+ toolName: "polymarket_get_orderbook",
349
+ snapshotKey: "orderbook",
350
+ args: { token_id: tokenId, limit: numberValue(monitor.target.depth) ?? 5 }
351
+ });
352
+ }
353
+ return calls;
354
+ }
355
+ const query = stringValue(monitor.target.query) ?? stringValue(monitor.target.phrase) ?? stringValue(monitor.target.title);
356
+ if (!query) {
357
+ throw new Error(
358
+ "Prediction-market monitor target must include slug, condition_id, or query."
359
+ );
360
+ }
361
+ return [
362
+ {
363
+ toolName: "polymarket_search_markets",
364
+ snapshotKey: "market_search",
365
+ args: { query, limit: numberValue(monitor.target.limit) ?? 10 }
366
+ }
367
+ ];
368
+ }
328
369
  function buildWatchlistDigestWorkflowPlan(monitor) {
329
370
  const calls = [];
330
371
  recordArray(monitor.target.wallets).slice(0, 2).forEach((wallet, index) => {
@@ -375,9 +416,17 @@ function buildWatchlistDigestWorkflowPlan(monitor) {
375
416
  });
376
417
  });
377
418
  });
419
+ recordArray(monitor.target.prediction_markets).slice(0, 2).forEach((predictionMarket, index) => {
420
+ buildPredictionMarketWorkflowPlan({ target: { ...predictionMarket } }).slice(0, 1).forEach((call) => {
421
+ calls.push({
422
+ ...call,
423
+ snapshotKey: `prediction_market_${index}_${call.snapshotKey}`
424
+ });
425
+ });
426
+ });
378
427
  if (calls.length === 0) {
379
428
  throw new Error(
380
- "Watchlist digest target must include at least one wallet, token, protocol, or market."
429
+ "Watchlist digest target must include at least one wallet, token, protocol, market, or prediction_market."
381
430
  );
382
431
  }
383
432
  return calls.slice(0, 20);
@@ -449,12 +498,14 @@ function buildRiskWatchWorkflowPlan(monitor) {
449
498
  return calls.slice(0, 20);
450
499
  }
451
500
  function buildMonitorWorkflowDefinition(monitor) {
452
- if (monitor.kind === "prediction_market") {
453
- throw new Error(
454
- 'Monitor kind "prediction_market" was retired with the Codex.io provider on 2026-09-06; archive this monitor.'
455
- );
456
- }
457
501
  switch (monitor.kind) {
502
+ case "prediction_market":
503
+ return {
504
+ type: "prediction_market",
505
+ label: "Prediction market",
506
+ target: monitor.target,
507
+ calls: buildPredictionMarketWorkflowPlan(monitor)
508
+ };
458
509
  case "wallet":
459
510
  return {
460
511
  type: "wallet",
@@ -623,7 +674,8 @@ function hasAlertRule(monitor) {
623
674
  "large_transfer",
624
675
  "token_change",
625
676
  "protocol_change",
626
- "market_change"
677
+ "market_change",
678
+ "prediction_market_change"
627
679
  ].includes(String(rule.type ?? "")))
628
680
  );
629
681
  }
@@ -3,7 +3,7 @@ import {
3
3
  NAMESPACE,
4
4
  getAllDomainCommands,
5
5
  resolveCommand
6
- } from "./chunk-2SPCKQBJ.js";
6
+ } from "./chunk-5QAXJON7.js";
7
7
  import "./chunk-OMO7XLC5.js";
8
8
  export {
9
9
  NAMESPACE,
@@ -3,12 +3,14 @@ import {
3
3
  bold,
4
4
  colorEnabled,
5
5
  debug,
6
+ describeReset,
6
7
  dim,
7
8
  errorEnvelope,
8
9
  formatCsv,
9
10
  green,
10
11
  info,
11
12
  isCI,
13
+ isQuiet,
12
14
  outputError,
13
15
  outputSuccess,
14
16
  red,
@@ -17,18 +19,20 @@ import {
17
19
  successEnvelope,
18
20
  writeOutput,
19
21
  yellow
20
- } from "./chunk-LP5ECG7A.js";
22
+ } from "./chunk-ZDXMZPC6.js";
21
23
  import "./chunk-OMO7XLC5.js";
22
24
  export {
23
25
  bold,
24
26
  colorEnabled,
25
27
  debug,
28
+ describeReset,
26
29
  dim,
27
30
  errorEnvelope,
28
31
  formatCsv,
29
32
  green,
30
33
  info,
31
34
  isCI,
35
+ isQuiet,
32
36
  outputError,
33
37
  outputSuccess,
34
38
  red,
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "package": "hive-intelligence",
3
- "version": "1.6.7",
4
- "buildSha": "4fddf62cb6f56b0b14c162c88632cb746c8affe5",
5
- "imageDigest": "sha256:609f7a3dbed5ab6375db4d985a2a6729e55810fae71f69836aad5c62d55f7b84",
3
+ "version": "1.7.1",
4
+ "buildSha": "23cbc84e5c23959f6ef52fd4cc81c9852337c72a",
5
+ "imageDigest": "sha256:a8fbe5e5265989645732dca2c4dac746c816c99b6b14e99c6b002fa1da4e397e",
6
6
  "deployedUrl": "https://mcp.hiveintelligence.xyz",
7
- "manifest": "https://raw.githubusercontent.com/hive-intel/hive-sdk/v1.6.7/releases/v1.6.7.json"
7
+ "manifest": "https://raw.githubusercontent.com/hive-intel/hive-sdk/v1.7.1/releases/v1.7.1.json"
8
8
  }
@@ -0,0 +1,43 @@
1
+ import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
+ import {
3
+ ROUTING_END,
4
+ ROUTING_FILES,
5
+ ROUTING_START,
6
+ appendRoutingBlock,
7
+ backupPath,
8
+ declineRouting,
9
+ detectEol,
10
+ diffLines,
11
+ findRoutingBlock,
12
+ installRouting,
13
+ projectHash,
14
+ readRoutingRecords,
15
+ removeRecordedRoutingBlocks,
16
+ removeRouting,
17
+ renderRoutingBlock,
18
+ runRouting,
19
+ stripRoutingBlock
20
+ } from "./chunk-POPAEM4E.js";
21
+ import "./chunk-3Z5VR53Z.js";
22
+ import "./chunk-ZDXMZPC6.js";
23
+ import "./chunk-6PC3HUAK.js";
24
+ import "./chunk-OMO7XLC5.js";
25
+ export {
26
+ ROUTING_END,
27
+ ROUTING_FILES,
28
+ ROUTING_START,
29
+ appendRoutingBlock,
30
+ backupPath,
31
+ declineRouting,
32
+ detectEol,
33
+ diffLines,
34
+ findRoutingBlock,
35
+ installRouting,
36
+ projectHash,
37
+ readRoutingRecords,
38
+ removeRecordedRoutingBlocks,
39
+ removeRouting,
40
+ renderRoutingBlock,
41
+ runRouting,
42
+ stripRoutingBlock
43
+ };
@@ -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-NWOKFR7Q.js");
10
+ const { createHiveMcpServer, SERVER_NAME, SERVER_VERSION } = await import("./mcpServer-43LTLURB.js");
11
11
  const { getPendingUpdateVersion } = await import("./update-check-36QU6PKA.js");
12
12
  const transport = new StdioServerTransport();
13
13
  const pendingUpdate = getPendingUpdateVersion();