hive-intelligence 1.5.2 → 1.6.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 (62) hide show
  1. package/README.md +11 -13
  2. package/agent-skills/.claude-plugin/plugin.json +0 -5
  3. package/agent-skills/README.md +0 -1
  4. package/agent-skills/SKILL.md +2 -3
  5. package/agent-skills/evals/trigger-queries.json +0 -27
  6. package/agent-skills/package.json +1 -2
  7. package/agent-skills/packs/hive-network-infrastructure/SKILL.md +2 -2
  8. package/agent-skills/packs/hive-query/SKILL.md +2 -2
  9. package/agent-skills/packs/hive-query/evals/evals.json +4 -4
  10. package/agent-skills/packs/hive-query/evals/triggers.json +1 -1
  11. package/agent-skills/packs/hive-query/references/root-mcp-workflow.md +1 -1
  12. package/agent-skills/packs/hive-stateful-monitoring/SKILL.md +3 -3
  13. package/agent-skills/packs/hive-tool-discovery/references/discovery-surfaces.md +1 -1
  14. package/agent-skills/references/agents-routing.md +1 -4
  15. package/agent-skills/scripts/validate-agent-skills-package.mjs +0 -1
  16. package/agent-skills/skills.sh.json +1 -2
  17. package/build/{alias-BKAVOYQV.js → alias-PRRZPOJH.js} +1 -1
  18. package/build/{api-client-WMWFWXC7.js → api-client-6AM3HVHQ.js} +1 -1
  19. package/build/{auth-Y4GXW376.js → auth-4CVED5J7.js} +2 -2
  20. package/build/{browser-auth-F62BMD7W.js → browser-auth-SYALZF3A.js} +1 -1
  21. package/build/{cache-TBDQ7QBU.js → cache-IDP4TLKY.js} +1 -1
  22. package/build/{chunk-7VSK46QO.js → chunk-2SPCKQBJ.js} +13 -18
  23. package/build/{chunk-GB4XMTDE.js → chunk-BV7WNZF5.js} +1 -1
  24. package/build/{chunk-SFN772RL.js → chunk-CF23GYNH.js} +1 -1
  25. package/build/{chunk-725R3KLJ.js → chunk-F2OCUEQ6.js} +1 -1
  26. package/build/chunk-FWDX24GW.js +67738 -0
  27. package/build/{chunk-WF34ZD5I.js → chunk-G3HNY6VA.js} +4 -4
  28. package/build/{chunk-L326MQZP.js → chunk-GADPH72D.js} +0 -19
  29. package/build/{chunk-TVBPCELA.js → chunk-GYVF75XB.js} +1 -1
  30. package/build/{chunk-ILVPOLA7.js → chunk-OMO7XLC5.js} +2 -27
  31. package/build/{chunk-MWYPLBIN.js → chunk-P7PXHQAJ.js} +2 -1
  32. package/build/cli.js +44 -44
  33. package/build/{completion-L3TDZ7ZK.js → completion-YVSWWF6D.js} +2 -2
  34. package/build/{config-KAEUX6RM.js → config-VQYP57AF.js} +1 -1
  35. package/build/{config-dir-5IH7MOOT.js → config-dir-2QLA5PXD.js} +1 -1
  36. package/build/{doctor-NLSZB27R.js → doctor-XX7VSAYA.js} +8 -8
  37. package/build/{errors-HGHUF575.js → errors-6UNXNVTN.js} +1 -1
  38. package/build/{format-H7FOQSYY.js → format-O2WH35IA.js} +1 -1
  39. package/build/{init-COHA3VZI.js → init-5NULBKGZ.js} +1 -1
  40. package/build/{init-all-YTQJLPLR.js → init-all-SCRMLL3G.js} +6 -6
  41. package/build/{mcpServer-IWKTX2ZQ.js → mcpServer-EKIEVVOZ.js} +3 -3
  42. package/build/monitor-worker.js +42 -71
  43. package/build/{namespace-XLMRFH5E.js → namespace-PA2IDNRT.js} +2 -2
  44. package/build/{open-V2RNA3QT.js → open-CAEDG67G.js} +1 -1
  45. package/build/{output-ITGLBKIG.js → output-AC64BELH.js} +2 -2
  46. package/build/release.json +4 -4
  47. package/build/{serve-YFFG2432.js → serve-CEBIUBMZ.js} +3 -3
  48. package/build/server.js +11 -5
  49. package/build/{setup-PTYFMTK5.js → setup-MYXN2YN3.js} +2 -2
  50. package/build/stdio.js +3 -3
  51. package/build/{telemetry-HPLDYR7U.js → telemetry-TSZ32EEI.js} +1 -1
  52. package/build/{tools-SIOAOXW6.js → tools-6DTUAMY7.js} +12 -12
  53. package/build/{uninstall-TKDP6C4F.js → uninstall-PYKDCTTT.js} +4 -4
  54. package/build/{update-check-IEXPOYYR.js → update-check-36QU6PKA.js} +1 -1
  55. package/build/{upgrade-ODPKMIDC.js → upgrade-VDYC5LBL.js} +3 -3
  56. package/build/{version-Z4HJL4VV.js → version-ITRM4X2U.js} +1 -1
  57. package/build/{watch-MXJSNGL2.js → watch-W2TCXKWQ.js} +3 -3
  58. package/package.json +8 -14
  59. package/agent-skills/packs/hive-prediction-markets/SKILL.md +0 -131
  60. package/agent-skills/packs/hive-prediction-markets/evals/evals.json +0 -29
  61. package/agent-skills/packs/hive-prediction-markets/evals/triggers.json +0 -50
  62. package/build/chunk-LFNLT3YW.js +0 -100468
@@ -1,131 +0,0 @@
1
- ---
2
- name: hive-prediction-markets
3
- description: Use this skill when the user asks about prediction markets — Polymarket or Kalshi events, markets, outcomes, odds, prices, liquidity, stats, traders, holders, or trades — including "what are the odds of X", "find markets about Y", or comparing venues. Use it whenever live prediction-market evidence is needed. Never present market probability as ground truth.
4
- license: MIT
5
- metadata:
6
- package: "@hiveintelligence/agent-skills"
7
- category: "prediction-markets"
8
- requires_network: "true"
9
- version: 1.4.0
10
- ---
11
-
12
- # hive-prediction-markets — Prediction Markets
13
-
14
- Discover and analyze prediction markets — Polymarket, Kalshi — with prices,
15
- liquidity, outcomes, traders, and trades, always framed as market-implied
16
- odds rather than truth.
17
-
18
- ## Task toolset and identifiers
19
-
20
- Toolset: `prediction_markets`. Read `hive://toolsets/prediction_markets` before
21
- execution; it is authoritative for the current output schema, material-call
22
- budget, phases, fallback condition, and stop conditions.
23
-
24
- - Required: market id, event id, token id, trader address, or a search query —
25
- depending on the request.
26
- - Optional: status filter, limit, date range, outcome, liquidity threshold.
27
-
28
- If the user starts with a topic, search candidates first and ask for selection
29
- when multiple markets match — similar markets can have different resolution
30
- criteria.
31
-
32
- Before choosing endpoints, select exactly one matching entry from the exact
33
- workflow's routes[]. Follow its ordered steps, use a fallback only under that
34
- step's published condition, stop at four material calls, and preserve the
35
- selected route_id in the typed result. The broad coverageCatalog is discovery
36
- coverage, not an execution plan.
37
-
38
- ## Procedure
39
-
40
- 1. Call `search_tools` for prediction-market search, event, market, stats,
41
- holder, trader, or trade capabilities.
42
- 2. Call `get_api_endpoint_schema` for each endpoint before calling it.
43
- 3. Search events/markets for topic prompts; resolve exact market/event/token
44
- ids before pulling stats, holders, or trades.
45
- 4. Add liquidity/volume and freshness context before interpreting prices.
46
- 5. Report market price, volume/liquidity, outcomes, provider/source, and
47
- freshness — and never present probability as ground truth.
48
-
49
- ## Bounded calls
50
-
51
- - Use small search limits and page through only when needed.
52
- - Do not fetch all trades or holders unless the user asks for a deep dive.
53
- - Keep outcome-token prices separate from event-level interpretation.
54
-
55
- ## Worked example
56
-
57
- User: "What are the odds on the next Fed rate decision? Compare Polymarket
58
- and Kalshi if both have markets."
59
-
60
- 1. `search_tools` → `{"query": "prediction markets search events fed rate decision", "limit": 5}`
61
- 2. `get_api_endpoint_schema` for the market-search endpoint returned, then
62
- `invoke_api_endpoint` with a bounded search per venue.
63
- 3. If several markets match, list candidates with resolution criteria and ask
64
- which to inspect — or pick the highest-liquidity exact match and say so.
65
- 4. Report outcome prices with volume/liquidity and freshness, framed as
66
- market-implied odds.
67
-
68
- ## Report template
69
-
70
- ```markdown
71
- ## Summary
72
- [Market/event read and top outcomes in one or two sentences.]
73
-
74
- ## Calls made
75
- - Toolset: prediction_markets
76
- - Endpoint(s): [exact endpoint names]
77
- - Identifiers: [market/event/token/trader ids]
78
-
79
- ## Evidence
80
- - Outcomes and prices: [per outcome, per venue]
81
- - Liquidity/volume: [values + as-of]
82
- - Provenance: [provider, fetched_at, observed_at/cache_age_ms, runtime status per call]
83
-
84
- ## Caveats
85
- [Market probability is not truth, thin liquidity, stale stats, candidate ambiguity.]
86
-
87
- ## Next action
88
- [Inspect selected market, holders, trades, or related events — only if needed.]
89
- ```
90
-
91
- ## Gotchas
92
-
93
- - Market prices reflect trading and liquidity, not verified probability.
94
- - Similar markets can have different resolution criteria — quote them when
95
- comparing venues.
96
- - Event-level and outcome-token-level data are not interchangeable.
97
-
98
- ## Evidence receipt (required)
99
-
100
- End every Hive-backed answer with a compact receipt built from the `_hive`
101
- object on each material tool response:
102
-
103
- - `provider`, `tool`, `fetched_at`, `observed_at`, `cache_age_ms`, and `runtime_status`
104
- - `receipt_id`, `receipt_version`, server/build version, and SHA-256 input/result
105
- digests when present (self-checks, not signatures)
106
- - `source`, `cache_status`, `truncated`, and any warnings
107
- - canonical chain/entity identifiers plus block, slot, transaction, or query ids
108
- present in provider data
109
- - material provider disagreements and how they were handled
110
- - checks that were unavailable, gated, stale, truncated, or intentionally not run
111
- - a `claims[]` citation from each material statement to exact receipt IDs
112
- - one `coverage[]` entry for every canonical evidence phase, with each gap explained
113
-
114
- Never turn missing evidence into a clean result, silently merge conflicting
115
- provider values, or omit a degraded/fallback call from the receipt.
116
- `observed_at` is Hive's first-observation/original cache-population time, and
117
- `cache_age_ms: 0` only means newly retrieved by Hive. Use provider time, block,
118
- slot, transaction, or candle close for source recency; if absent, mark it
119
- unknown. Run `validate_task_result` before presenting the typed workflow result;
120
- it checks structure but cannot authenticate an invented receipt.
121
-
122
- ## Runtime status handling
123
-
124
- If a market search succeeds but stats are `degraded`, return the candidates
125
- and label the missing market details clearly.
126
-
127
- ## Hand-offs
128
-
129
- - General crypto market prices → `hive-market-research`.
130
- - A trader's full wallet activity → `hive-wallet-investigation`.
131
- - Standing "alert me when odds move" requests → `hive-stateful-monitoring`.
@@ -1,29 +0,0 @@
1
- {
2
- "skill_name": "hive-prediction-markets",
3
- "evals": [
4
- {
5
- "id": 1,
6
- "prompt": "Find active prediction markets about the next Fed decision and show the top outcomes with liquidity caveats.",
7
- "expected_output": "Uses prediction_markets, searches markets/events first, resolves candidate ids, bounds results, reports price/liquidity/freshness caveats, and ends with a runtime evidence receipt.",
8
- "files": [],
9
- "assertions": [
10
- "Chooses prediction_markets.",
11
- "Selects event_landscape for event discovery or market_odds for an exact market and preserves route_id.",
12
- "Searches markets/events before stats.",
13
- "States market price is not ground truth.",
14
- "Includes receipt ids and missing evidence."
15
- ]
16
- },
17
- {
18
- "id": 2,
19
- "prompt": "For this Polymarket market id, summarize traders, holders, and recent trades.",
20
- "expected_output": "Uses exact market/token identifiers, fetches bounded traders/holders/trades, and reports provider/runtime status.",
21
- "files": [],
22
- "assertions": [
23
- "Uses exact market or token id.",
24
- "Bounds traders/holders/trades.",
25
- "Reports provider and runtime status."
26
- ]
27
- }
28
- ]
29
- }
@@ -1,50 +0,0 @@
1
- [
2
- {
3
- "query": "what are the odds on the next fed rate cut on polymarket",
4
- "should_trigger": true
5
- },
6
- {
7
- "query": "find prediction markets about the 2026 world cup winner",
8
- "should_trigger": true
9
- },
10
- {
11
- "query": "compare polymarket vs kalshi on the CPI print markets",
12
- "should_trigger": true
13
- },
14
- {
15
- "query": "who are the biggest holders in this polymarket market",
16
- "should_trigger": true
17
- },
18
- {
19
- "query": "that 70% odds number — how much liquidity is actually behind it",
20
- "should_trigger": true
21
- },
22
- {
23
- "query": "show recent trades on this market id",
24
- "should_trigger": true
25
- },
26
- {
27
- "query": "whats the POL token trading at",
28
- "should_trigger": false
29
- },
30
- {
31
- "query": "what does this trader's wallet hold outside polymarket",
32
- "should_trigger": false
33
- },
34
- {
35
- "query": "explain how prediction markets resolve disputes",
36
- "should_trigger": false
37
- },
38
- {
39
- "query": "alert me when these odds move 10 points",
40
- "should_trigger": false
41
- },
42
- {
43
- "query": "is using polymarket legal in my country",
44
- "should_trigger": false
45
- },
46
- {
47
- "query": "top defi protocols by tvl",
48
- "should_trigger": false
49
- }
50
- ]