hive-intelligence 1.1.2 → 1.1.3
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 +232 -379
- package/agent-skills/.claude-plugin/plugin.json +105 -0
- package/{LICENSE → agent-skills/LICENSE} +1 -1
- package/agent-skills/README.md +146 -0
- package/agent-skills/SKILL.md +68 -0
- package/agent-skills/evals/README.md +20 -0
- package/agent-skills/evals/trigger-queries.json +194 -0
- package/agent-skills/package.json +49 -0
- package/agent-skills/packs/hive-build/SKILL.md +327 -0
- package/agent-skills/packs/hive-build/evals/evals.json +28 -0
- package/agent-skills/packs/hive-build-onboarding/SKILL.md +137 -0
- package/agent-skills/packs/hive-build-onboarding/evals/evals.json +27 -0
- package/agent-skills/packs/hive-cli/SKILL.md +141 -0
- package/agent-skills/packs/hive-cli/evals/evals.json +27 -0
- package/agent-skills/packs/hive-defi-research/SKILL.md +42 -0
- package/agent-skills/packs/hive-defi-research/evals/evals.json +27 -0
- package/agent-skills/packs/hive-defi-research/references/workflow.md +41 -0
- package/agent-skills/packs/hive-dex-pool-analysis/SKILL.md +41 -0
- package/agent-skills/packs/hive-dex-pool-analysis/evals/evals.json +27 -0
- package/agent-skills/packs/hive-dex-pool-analysis/references/workflow.md +42 -0
- package/agent-skills/packs/hive-market-research/SKILL.md +45 -0
- package/agent-skills/packs/hive-market-research/evals/evals.json +27 -0
- package/agent-skills/packs/hive-market-research/references/workflow.md +47 -0
- package/agent-skills/packs/hive-mcp/SKILL.md +224 -0
- package/agent-skills/packs/hive-mcp/evals/evals.json +38 -0
- package/agent-skills/packs/hive-mcp/references/client-install-matrix.md +83 -0
- package/agent-skills/packs/hive-network-infrastructure/SKILL.md +44 -0
- package/agent-skills/packs/hive-network-infrastructure/evals/evals.json +27 -0
- package/agent-skills/packs/hive-network-infrastructure/references/workflow.md +41 -0
- package/agent-skills/packs/hive-nft-research/SKILL.md +41 -0
- package/agent-skills/packs/hive-nft-research/evals/evals.json +27 -0
- package/agent-skills/packs/hive-nft-research/references/workflow.md +42 -0
- package/agent-skills/packs/hive-prediction-markets/SKILL.md +44 -0
- package/agent-skills/packs/hive-prediction-markets/evals/evals.json +27 -0
- package/agent-skills/packs/hive-prediction-markets/references/workflow.md +42 -0
- package/agent-skills/packs/hive-query/SKILL.md +98 -0
- package/agent-skills/packs/hive-query/evals/evals.json +38 -0
- package/agent-skills/packs/hive-query/references/root-mcp-workflow.md +54 -0
- package/agent-skills/packs/hive-security-risk/SKILL.md +42 -0
- package/agent-skills/packs/hive-security-risk/evals/evals.json +27 -0
- package/agent-skills/packs/hive-security-risk/references/workflow.md +46 -0
- package/agent-skills/packs/hive-solana-analysis/SKILL.md +42 -0
- package/agent-skills/packs/hive-solana-analysis/evals/evals.json +27 -0
- package/agent-skills/packs/hive-solana-analysis/references/workflow.md +42 -0
- package/agent-skills/packs/hive-token-diligence/SKILL.md +44 -0
- package/agent-skills/packs/hive-token-diligence/evals/evals.json +27 -0
- package/agent-skills/packs/hive-token-diligence/references/workflow.md +45 -0
- package/agent-skills/packs/hive-tool-discovery/SKILL.md +49 -0
- package/agent-skills/packs/hive-tool-discovery/evals/evals.json +38 -0
- package/agent-skills/packs/hive-tool-discovery/references/discovery-surfaces.md +62 -0
- package/agent-skills/packs/hive-wallet-investigation/SKILL.md +42 -0
- package/agent-skills/packs/hive-wallet-investigation/evals/evals.json +27 -0
- package/agent-skills/packs/hive-wallet-investigation/references/workflow.md +45 -0
- package/agent-skills/references/agents-routing.md +49 -0
- package/agent-skills/scripts/validate-agent-skills-package.mjs +178 -0
- package/agent-skills/skills.sh.json +40 -0
- package/bin/hive-mcp.js +33 -0
- package/build/{alias-INGXWFCG.js → alias-CZ3DEYHF.js} +3 -3
- package/build/api-client-I23XLSHU.js +28 -0
- package/build/auth-KKINNBXT.js +40 -0
- package/build/browser-auth-EEFGRHWY.js +9 -0
- package/build/{cache-US4LSZPI.js → cache-EGNMENNA.js} +3 -3
- package/build/chunk-2MYMHMBF.js +340 -0
- package/build/chunk-2MYMHMBF.js.map +1 -0
- package/build/chunk-2X3U4DFK.js +77369 -0
- package/build/chunk-2X3U4DFK.js.map +1 -0
- package/build/chunk-B6G222LS.js +265 -0
- package/build/chunk-B6G222LS.js.map +1 -0
- package/build/{chunk-WKVZVQTG.js → chunk-DYJBTKNR.js} +4 -4
- package/build/chunk-DYJBTKNR.js.map +1 -0
- package/build/chunk-IDZD2NVG.js +247 -0
- package/build/chunk-IDZD2NVG.js.map +1 -0
- package/build/chunk-IZTN7WFH.js +250 -0
- package/build/chunk-IZTN7WFH.js.map +1 -0
- package/build/{chunk-QMRVH5ZP.js → chunk-KBVPIZS4.js} +10 -2
- package/build/chunk-KGYBTXIN.js +86 -0
- package/build/chunk-KGYBTXIN.js.map +1 -0
- package/build/{chunk-CGXVV6WR.js → chunk-MPIUUE3T.js} +87 -105
- package/build/chunk-MPIUUE3T.js.map +1 -0
- package/build/chunk-PGBVNMNZ.js +127 -0
- package/build/chunk-PGBVNMNZ.js.map +1 -0
- package/build/chunk-QNCI4DEB.js +88 -0
- package/build/chunk-QNCI4DEB.js.map +1 -0
- package/build/chunk-RKICZ6DZ.js +497 -0
- package/build/chunk-RKICZ6DZ.js.map +1 -0
- package/build/chunk-UKHZIVDT.js +44 -0
- package/build/chunk-UKHZIVDT.js.map +1 -0
- package/build/{chunk-XQJ6PB2L.js → chunk-V77LO4RO.js} +1 -1
- package/build/chunk-V77LO4RO.js.map +1 -0
- package/build/{chunk-CP3FXEQA.js → chunk-XYBEFFZ3.js} +5 -6
- package/build/chunk-XYBEFFZ3.js.map +1 -0
- package/build/cli.js +133 -122
- package/build/cli.js.map +1 -1
- package/build/{completion-J6HFY6PS.js → completion-BELZL7ND.js} +55 -50
- package/build/completion-BELZL7ND.js.map +1 -0
- package/build/config-TDX4VUGW.js +58 -0
- package/build/{config-dir-IEOID7Q6.js → config-dir-V43W2WIA.js} +3 -3
- package/build/{doctor-7WZMCQC7.js → doctor-5K5UWHNX.js} +13 -13
- package/build/doctor-5K5UWHNX.js.map +1 -0
- package/build/{errors-U6UZWVSD.js → errors-E6MVUBNA.js} +3 -3
- package/build/format-TSFSI2K7.js +43 -0
- package/build/format-TSFSI2K7.js.map +1 -0
- package/build/{init-CAVIFVSH.js → init-YQ5NBICF.js} +2 -2
- package/build/init-all-6OWEQALB.js +274 -0
- package/build/init-all-6OWEQALB.js.map +1 -0
- package/build/mcpServer-AEX3RQ4U.js +20 -0
- package/build/mcpServer-AEX3RQ4U.js.map +1 -0
- package/build/{namespace-7JWWBWBL.js → namespace-PVHBFDW2.js} +3 -3
- package/build/namespace-PVHBFDW2.js.map +1 -0
- package/build/{open-FUXYIHFO.js → open-YUIJP37F.js} +6 -6
- package/build/open-YUIJP37F.js.map +1 -0
- package/build/{output-7PGQWJY2.js → output-IYJBFCYK.js} +3 -3
- package/build/output-IYJBFCYK.js.map +1 -0
- package/build/serve-KWNJK6EY.js +44 -0
- package/build/serve-KWNJK6EY.js.map +1 -0
- package/build/server.js +4749 -14124
- package/build/server.js.map +1 -1
- package/build/setup-YTUKMPNP.js +136 -0
- package/build/setup-YTUKMPNP.js.map +1 -0
- package/build/stdio.js +31 -0
- package/build/stdio.js.map +1 -0
- package/build/{telemetry-KNWMQURH.js → telemetry-5IPRKZBL.js} +4 -4
- package/build/telemetry-5IPRKZBL.js.map +1 -0
- package/build/{tools-VRRMBCZQ.js → tools-PJHWFCAG.js} +15 -15
- package/build/uninstall-HWXEIP6K.js +115 -0
- package/build/uninstall-HWXEIP6K.js.map +1 -0
- package/build/{watch-A75SVIQ6.js → watch-KZ5EDZK3.js} +7 -7
- package/package.json +118 -52
- package/bin/hive.js +0 -25
- package/build/auth-77MKFFBQ.js +0 -233
- package/build/auth-77MKFFBQ.js.map +0 -1
- package/build/chunk-CGXVV6WR.js.map +0 -1
- package/build/chunk-CP3FXEQA.js.map +0 -1
- package/build/chunk-DTUDM6HX.js +0 -3108
- package/build/chunk-DTUDM6HX.js.map +0 -1
- package/build/chunk-LBTLYTZS.js +0 -115
- package/build/chunk-LBTLYTZS.js.map +0 -1
- package/build/chunk-OK3LSM73.js +0 -22
- package/build/chunk-OK3LSM73.js.map +0 -1
- package/build/chunk-RRI526CJ.js +0 -212
- package/build/chunk-RRI526CJ.js.map +0 -1
- package/build/chunk-WKVZVQTG.js.map +0 -1
- package/build/chunk-XQJ6PB2L.js.map +0 -1
- package/build/completion-J6HFY6PS.js.map +0 -1
- package/build/config-ANFERP7A.js +0 -99
- package/build/config-ANFERP7A.js.map +0 -1
- package/build/doctor-7WZMCQC7.js.map +0 -1
- package/build/format-CVLLK6GD.js +0 -75
- package/build/format-CVLLK6GD.js.map +0 -1
- package/build/open-FUXYIHFO.js.map +0 -1
- package/build/version-3TZ3U4IR.js +0 -9
- /package/build/{alias-INGXWFCG.js.map → alias-CZ3DEYHF.js.map} +0 -0
- /package/build/{chunk-QMRVH5ZP.js.map → api-client-I23XLSHU.js.map} +0 -0
- /package/build/{config-dir-IEOID7Q6.js.map → auth-KKINNBXT.js.map} +0 -0
- /package/build/{errors-U6UZWVSD.js.map → browser-auth-EEFGRHWY.js.map} +0 -0
- /package/build/{cache-US4LSZPI.js.map → cache-EGNMENNA.js.map} +0 -0
- /package/build/{namespace-7JWWBWBL.js.map → chunk-KBVPIZS4.js.map} +0 -0
- /package/build/{output-7PGQWJY2.js.map → config-TDX4VUGW.js.map} +0 -0
- /package/build/{telemetry-KNWMQURH.js.map → config-dir-V43W2WIA.js.map} +0 -0
- /package/build/{version-3TZ3U4IR.js.map → errors-E6MVUBNA.js.map} +0 -0
- /package/build/{init-CAVIFVSH.js.map → init-YQ5NBICF.js.map} +0 -0
- /package/build/{tools-VRRMBCZQ.js.map → tools-PJHWFCAG.js.map} +0 -0
- /package/build/{watch-A75SVIQ6.js.map → watch-KZ5EDZK3.js.map} +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
3
|
+
import { dirname, join, resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
7
|
+
const packsRoot = join(root, "packs");
|
|
8
|
+
const failures = [];
|
|
9
|
+
|
|
10
|
+
const workflowReferenceSkills = new Set([
|
|
11
|
+
"hive-market-research",
|
|
12
|
+
"hive-token-diligence",
|
|
13
|
+
"hive-wallet-investigation",
|
|
14
|
+
"hive-security-risk",
|
|
15
|
+
"hive-dex-pool-analysis",
|
|
16
|
+
"hive-defi-research",
|
|
17
|
+
"hive-nft-research",
|
|
18
|
+
"hive-solana-analysis",
|
|
19
|
+
"hive-network-infrastructure",
|
|
20
|
+
"hive-prediction-markets",
|
|
21
|
+
]);
|
|
22
|
+
|
|
23
|
+
const requiredTriggerCoverage = new Set([
|
|
24
|
+
"hive-query",
|
|
25
|
+
"hive-tool-discovery",
|
|
26
|
+
"hive-mcp",
|
|
27
|
+
"hive-build",
|
|
28
|
+
"hive-build-onboarding",
|
|
29
|
+
"hive-cli",
|
|
30
|
+
"hive-token-diligence",
|
|
31
|
+
]);
|
|
32
|
+
|
|
33
|
+
function fail(message) {
|
|
34
|
+
failures.push(message);
|
|
35
|
+
console.log(`- [FAIL] ${message}`);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function readJson(file) {
|
|
39
|
+
try {
|
|
40
|
+
return JSON.parse(readFileSync(file, "utf8"));
|
|
41
|
+
} catch (error) {
|
|
42
|
+
fail(`${file} is not valid JSON: ${error.message}`);
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function frontmatter(body, file) {
|
|
48
|
+
const match = body.match(/^---\n([\s\S]*?)\n---/);
|
|
49
|
+
if (!match) {
|
|
50
|
+
fail(`${file} is missing YAML frontmatter.`);
|
|
51
|
+
return "";
|
|
52
|
+
}
|
|
53
|
+
return match[1];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function field(frontmatterBody, name) {
|
|
57
|
+
return frontmatterBody.match(new RegExp(`^${name}:\\s*(.*)$`, "m"))?.[1] ?? "";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
console.log("# Hive Agent Skills Package Validation\n");
|
|
61
|
+
|
|
62
|
+
if (!existsSync(join(root, "LICENSE"))) fail("agent-skills/LICENSE is missing.");
|
|
63
|
+
if (!existsSync(join(root, "SKILL.md"))) fail("agent-skills/SKILL.md is missing.");
|
|
64
|
+
if (!existsSync(join(root, "skills.sh.json"))) fail("agent-skills/skills.sh.json is missing.");
|
|
65
|
+
if (!existsSync(join(root, "references", "agents-routing.md"))) {
|
|
66
|
+
fail("agent-skills/references/agents-routing.md is missing.");
|
|
67
|
+
}
|
|
68
|
+
if (!existsSync(join(root, "evals", "trigger-queries.json"))) {
|
|
69
|
+
fail("agent-skills/evals/trigger-queries.json is missing.");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const skillDirs = readdirSync(packsRoot, { withFileTypes: true })
|
|
73
|
+
.filter((entry) => entry.isDirectory())
|
|
74
|
+
.map((entry) => entry.name)
|
|
75
|
+
.sort();
|
|
76
|
+
|
|
77
|
+
for (const skillName of skillDirs) {
|
|
78
|
+
const skillDir = join(packsRoot, skillName);
|
|
79
|
+
const skillFile = join(skillDir, "SKILL.md");
|
|
80
|
+
console.log(`### ${skillName}`);
|
|
81
|
+
|
|
82
|
+
if (!existsSync(skillFile)) {
|
|
83
|
+
fail(`${skillName} is missing SKILL.md.`);
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const body = readFileSync(skillFile, "utf8");
|
|
88
|
+
const fm = frontmatter(body, skillFile);
|
|
89
|
+
const name = field(fm, "name");
|
|
90
|
+
const description = field(fm, "description");
|
|
91
|
+
|
|
92
|
+
if (name !== skillName) fail(`${skillName} frontmatter name must match directory.`);
|
|
93
|
+
if (!description.startsWith("Use this skill")) {
|
|
94
|
+
fail(`${skillName} description must start with trigger language: "Use this skill".`);
|
|
95
|
+
}
|
|
96
|
+
if (description.includes(": ")) {
|
|
97
|
+
fail(`${skillName} description contains ': ', which breaks some YAML parsers unless quoted.`);
|
|
98
|
+
}
|
|
99
|
+
if (description.length > 1024) fail(`${skillName} description exceeds 1024 characters.`);
|
|
100
|
+
if (!field(fm, "license")) fail(`${skillName} is missing license frontmatter.`);
|
|
101
|
+
if (!fm.includes("metadata:\n")) fail(`${skillName} is missing metadata frontmatter.`);
|
|
102
|
+
if (!fm.includes('package: "@hiveintelligence/agent-skills"')) {
|
|
103
|
+
fail(`${skillName} metadata.package must identify @hiveintelligence/agent-skills.`);
|
|
104
|
+
}
|
|
105
|
+
if (!body.includes("## Runtime status handling")) {
|
|
106
|
+
fail(`${skillName} must document runtime status handling.`);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const evalFile = join(skillDir, "evals", "evals.json");
|
|
110
|
+
if (!existsSync(evalFile)) {
|
|
111
|
+
fail(`${skillName} is missing evals/evals.json.`);
|
|
112
|
+
} else {
|
|
113
|
+
const evals = readJson(evalFile);
|
|
114
|
+
if (evals?.skill_name !== skillName) fail(`${skillName} eval skill_name mismatch.`);
|
|
115
|
+
if (!Array.isArray(evals?.evals) || evals.evals.length < 2) {
|
|
116
|
+
fail(`${skillName} must define at least two eval prompts.`);
|
|
117
|
+
}
|
|
118
|
+
for (const entry of evals?.evals ?? []) {
|
|
119
|
+
if (!entry.prompt || !entry.expected_output) {
|
|
120
|
+
fail(`${skillName} eval ${entry.id ?? "unknown"} needs prompt and expected_output.`);
|
|
121
|
+
}
|
|
122
|
+
if (!Array.isArray(entry.assertions) || entry.assertions.length === 0) {
|
|
123
|
+
fail(`${skillName} eval ${entry.id ?? "unknown"} needs assertions.`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (workflowReferenceSkills.has(skillName)) {
|
|
129
|
+
const workflow = join(skillDir, "references", "workflow.md");
|
|
130
|
+
if (!existsSync(workflow)) fail(`${skillName} is missing references/workflow.md.`);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const referenceMatches = [...body.matchAll(/`(references\/[^`]+)`/g)];
|
|
134
|
+
for (const match of referenceMatches) {
|
|
135
|
+
const referenced = join(skillDir, match[1]);
|
|
136
|
+
if (!existsSync(referenced)) fail(`${skillName} references missing file ${match[1]}.`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const directoryManifest = readJson(join(root, "skills.sh.json"));
|
|
141
|
+
if (directoryManifest) {
|
|
142
|
+
const groupedSkills = new Set();
|
|
143
|
+
for (const grouping of directoryManifest.groupings ?? []) {
|
|
144
|
+
for (const skill of grouping.skills ?? []) groupedSkills.add(skill);
|
|
145
|
+
}
|
|
146
|
+
for (const skillName of skillDirs) {
|
|
147
|
+
if (!groupedSkills.has(skillName)) fail(`${skillName} is missing from skills.sh.json groupings.`);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const triggerQueries = readJson(join(root, "evals", "trigger-queries.json"));
|
|
152
|
+
if (triggerQueries) {
|
|
153
|
+
const triggerSkillNames = new Set();
|
|
154
|
+
for (const skill of triggerQueries.skills ?? []) {
|
|
155
|
+
triggerSkillNames.add(skill.skill_name);
|
|
156
|
+
if (!skillDirs.includes(skill.skill_name)) {
|
|
157
|
+
fail(`trigger-queries references unknown skill ${skill.skill_name}.`);
|
|
158
|
+
}
|
|
159
|
+
for (const split of ["train", "validation"]) {
|
|
160
|
+
for (const query of skill[split] ?? []) {
|
|
161
|
+
if (typeof query.query !== "string" || typeof query.should_trigger !== "boolean") {
|
|
162
|
+
fail(`trigger-queries ${skill.skill_name}.${split} entries need query and should_trigger.`);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
for (const skillName of requiredTriggerCoverage) {
|
|
168
|
+
if (!triggerSkillNames.has(skillName)) {
|
|
169
|
+
fail(`trigger-queries must include trigger coverage for ${skillName}.`);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
console.log("\n## Summary");
|
|
175
|
+
console.log(`Skills: ${skillDirs.length}`);
|
|
176
|
+
console.log(`Failures: ${failures.length}`);
|
|
177
|
+
|
|
178
|
+
if (failures.length > 0) process.exit(1);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://skills.sh/schemas/skills.sh.schema.json",
|
|
3
|
+
"notGrouped": "bottom",
|
|
4
|
+
"groupings": [
|
|
5
|
+
{
|
|
6
|
+
"title": "Setup and Build",
|
|
7
|
+
"description": "Skills for installing Hive MCP, getting API keys, using the Hive CLI, and integrating Hive into application code.",
|
|
8
|
+
"skills": [
|
|
9
|
+
"hive-mcp",
|
|
10
|
+
"hive-build-onboarding",
|
|
11
|
+
"hive-cli",
|
|
12
|
+
"hive-build"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"title": "Discovery and Routing",
|
|
17
|
+
"description": "Skills that teach agents how to discover task toolsets, inspect schemas, and execute bounded Hive MCP calls.",
|
|
18
|
+
"skills": [
|
|
19
|
+
"hive-query",
|
|
20
|
+
"hive-tool-discovery"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"title": "Crypto Research Workflows",
|
|
25
|
+
"description": "Focused workflows for market, token, wallet, security, DEX, DeFi, NFT, Solana, network, and prediction-market analysis.",
|
|
26
|
+
"skills": [
|
|
27
|
+
"hive-market-research",
|
|
28
|
+
"hive-token-diligence",
|
|
29
|
+
"hive-wallet-investigation",
|
|
30
|
+
"hive-security-risk",
|
|
31
|
+
"hive-dex-pool-analysis",
|
|
32
|
+
"hive-defi-research",
|
|
33
|
+
"hive-nft-research",
|
|
34
|
+
"hive-solana-analysis",
|
|
35
|
+
"hive-network-infrastructure",
|
|
36
|
+
"hive-prediction-markets"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
package/bin/hive-mcp.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// CJS-style version check runs BEFORE ESM parsing.
|
|
4
|
+
// In an ESM file (type:module), static imports are parsed before execution,
|
|
5
|
+
// so a version check using `if (major < 20)` would never execute on old Node.
|
|
6
|
+
// However, since this file IS ESM and uses import statements, the check below
|
|
7
|
+
// is a best-effort guard for Node 20+ (which already supports ESM + TLA).
|
|
8
|
+
// For Node <16, this file fails at parse time with a SyntaxError — engines
|
|
9
|
+
// field in package.json is the primary enforcement mechanism.
|
|
10
|
+
|
|
11
|
+
const major = parseInt(process.versions.node.split(".")[0], 10);
|
|
12
|
+
if (major < 20) {
|
|
13
|
+
process.stderr.write(
|
|
14
|
+
`Error: hive requires Node.js 20 or later (found ${process.versions.node}).\n`,
|
|
15
|
+
);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
import { dirname, join } from "node:path";
|
|
20
|
+
import { fileURLToPath } from "node:url";
|
|
21
|
+
import { existsSync } from "node:fs";
|
|
22
|
+
|
|
23
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
24
|
+
const cliPath = join(__dirname, "..", "build", "cli.js");
|
|
25
|
+
|
|
26
|
+
if (!existsSync(cliPath)) {
|
|
27
|
+
process.stderr.write(
|
|
28
|
+
"Error: build/cli.js not found. Run `npm run build` or `bun run build` first.\n",
|
|
29
|
+
);
|
|
30
|
+
process.exit(1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
await import(cliPath);
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
ensureConfigDir,
|
|
4
4
|
getConfig,
|
|
5
5
|
saveConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-V77LO4RO.js";
|
|
7
|
+
import "./chunk-KBVPIZS4.js";
|
|
8
8
|
|
|
9
9
|
// src/cli/alias.ts
|
|
10
10
|
function getAliases() {
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
removeAlias,
|
|
39
39
|
setAlias
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=alias-
|
|
41
|
+
//# sourceMappingURL=alias-CZ3DEYHF.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
authLogin,
|
|
4
|
+
authMe,
|
|
5
|
+
authSignup,
|
|
6
|
+
createKey,
|
|
7
|
+
executeRemoteTool,
|
|
8
|
+
fetchToolCatalog,
|
|
9
|
+
fetchWithRetry,
|
|
10
|
+
getUsage,
|
|
11
|
+
listKeysApi,
|
|
12
|
+
revokeKeyApi
|
|
13
|
+
} from "./chunk-IZTN7WFH.js";
|
|
14
|
+
import "./chunk-V77LO4RO.js";
|
|
15
|
+
import "./chunk-KBVPIZS4.js";
|
|
16
|
+
export {
|
|
17
|
+
authLogin,
|
|
18
|
+
authMe,
|
|
19
|
+
authSignup,
|
|
20
|
+
createKey,
|
|
21
|
+
executeRemoteTool,
|
|
22
|
+
fetchToolCatalog,
|
|
23
|
+
fetchWithRetry,
|
|
24
|
+
getUsage,
|
|
25
|
+
listKeysApi,
|
|
26
|
+
revokeKeyApi
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=api-client-I23XLSHU.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
getActiveProfile,
|
|
4
|
+
listProfiles,
|
|
5
|
+
maskKey,
|
|
6
|
+
removeProfile,
|
|
7
|
+
runKeysCreate,
|
|
8
|
+
runKeysList,
|
|
9
|
+
runKeysRevoke,
|
|
10
|
+
runLogin,
|
|
11
|
+
runLogout,
|
|
12
|
+
runProfiles,
|
|
13
|
+
runSignup,
|
|
14
|
+
runSwitch,
|
|
15
|
+
runUsage,
|
|
16
|
+
runWhoami,
|
|
17
|
+
saveProfile,
|
|
18
|
+
switchProfile
|
|
19
|
+
} from "./chunk-RKICZ6DZ.js";
|
|
20
|
+
import "./chunk-V77LO4RO.js";
|
|
21
|
+
import "./chunk-KBVPIZS4.js";
|
|
22
|
+
export {
|
|
23
|
+
getActiveProfile,
|
|
24
|
+
listProfiles,
|
|
25
|
+
maskKey,
|
|
26
|
+
removeProfile,
|
|
27
|
+
runKeysCreate,
|
|
28
|
+
runKeysList,
|
|
29
|
+
runKeysRevoke,
|
|
30
|
+
runLogin,
|
|
31
|
+
runLogout,
|
|
32
|
+
runProfiles,
|
|
33
|
+
runSignup,
|
|
34
|
+
runSwitch,
|
|
35
|
+
runUsage,
|
|
36
|
+
runWhoami,
|
|
37
|
+
saveProfile,
|
|
38
|
+
switchProfile
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=auth-KKINNBXT.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
browserLogin
|
|
4
|
+
} from "./chunk-PGBVNMNZ.js";
|
|
5
|
+
import "./chunk-KBVPIZS4.js";
|
|
6
|
+
export {
|
|
7
|
+
browserLogin
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=browser-auth-EEFGRHWY.js.map
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
getConfigDir,
|
|
5
5
|
readJsonFile,
|
|
6
6
|
writeJsonFile
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-V77LO4RO.js";
|
|
8
|
+
import "./chunk-KBVPIZS4.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/cache.ts
|
|
11
11
|
import { existsSync, unlinkSync } from "fs";
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
getCachedTools,
|
|
50
50
|
setCachedTools
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=cache-
|
|
52
|
+
//# sourceMappingURL=cache-EGNMENNA.js.map
|