hive-intelligence 1.15.0 → 1.16.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/build/{api-client-POBN6Y5S.js → api-client-MK3CVNCH.js} +2 -2
- package/build/{auth-6XVL5CE3.js → auth-TZQC54EJ.js} +1 -1
- package/build/{call-args-BUB6YNHW.js → call-args-4YRVKOLV.js} +2 -2
- package/build/{chunk-ZSPPJW4G.js → chunk-4U4IL5KA.js} +15 -1
- package/build/{chunk-KQVPKTEO.js → chunk-AVTIJGWS.js} +2 -2
- package/build/{chunk-762ZUJ4Q.js → chunk-B53GNIWW.js} +1 -1
- package/build/chunk-MYSS5SBE.js +71 -0
- package/build/{chunk-YLHNUAFT.js → chunk-O5YKCM67.js} +22 -6
- package/build/{chunk-APBLB62S.js → chunk-PODCJTBV.js} +1 -1
- package/build/{chunk-GNZGLVFE.js → chunk-QSKFAT7Z.js} +466 -442
- package/build/{chunk-RNVZIPNY.js → chunk-VO6NWVJD.js} +1 -1
- package/build/{chunk-AZFOTKS2.js → chunk-WZ2NMSV3.js} +1 -1
- package/build/cli.js +31 -29
- package/build/{doctor-25WPHR4J.js → doctor-UKOGXRSW.js} +4 -4
- package/build/{errors-YQAVCXXO.js → errors-BPXK3KCR.js} +1 -1
- package/build/{feedback-G2DFCCI6.js → feedback-6XX2R75U.js} +2 -2
- package/build/{init-all-UDWHV2ER.js → init-all-XDQRGJ3D.js} +1 -1
- package/build/{mcpServer-O4KXRE62.js → mcpServer-77FPS534.js} +2 -1
- package/build/monitor-worker.js +3 -2
- package/build/release.json +4 -4
- package/build/{routing-4VKAVRYR.js → routing-S7DPEROC.js} +2 -2
- package/build/{serve-V2KPPJCD.js → serve-2NIEUCJN.js} +6 -4
- package/build/server.js +112 -105
- package/build/stdio.js +2 -1
- package/build/{tools-K2P77L4T.js → tools-NSHQSUIK.js} +5 -5
- package/build/{uninstall-I6ERJ2ED.js → uninstall-CECLA5YZ.js} +2 -2
- package/build/{watch-BUSEPVDM.js → watch-4VHBLAL6.js} +3 -3
- package/package.json +5 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
CliError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4U4IL5KA.js";
|
|
5
5
|
|
|
6
6
|
// src/cli/call-args.ts
|
|
7
7
|
var BOOLEAN_LITERALS = /* @__PURE__ */ new Set(["true", "false", "1", "0", "yes", "no"]);
|
package/build/cli.js
CHANGED
|
@@ -2,25 +2,28 @@
|
|
|
2
2
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
executeTool
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-O5YKCM67.js";
|
|
6
6
|
import "./chunk-XN3T6YOG.js";
|
|
7
7
|
import {
|
|
8
8
|
NAMESPACE
|
|
9
9
|
} from "./chunk-CBFOVPLB.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-VO6NWVJD.js";
|
|
11
11
|
import "./chunk-RU6QOFHH.js";
|
|
12
12
|
import {
|
|
13
13
|
ALWAYS_RESERVED_OPTIONS,
|
|
14
14
|
parseFlagTokens,
|
|
15
15
|
reservedOptionNames
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WZ2NMSV3.js";
|
|
17
17
|
import {
|
|
18
18
|
ExitCode
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4U4IL5KA.js";
|
|
20
20
|
import {
|
|
21
21
|
checkForUpdates
|
|
22
22
|
} from "./chunk-M6REON2I.js";
|
|
23
23
|
import "./chunk-EPF36Q3Z.js";
|
|
24
|
+
import {
|
|
25
|
+
loadEnvFile
|
|
26
|
+
} from "./chunk-MYSS5SBE.js";
|
|
24
27
|
import {
|
|
25
28
|
SERVER_VERSION
|
|
26
29
|
} from "./chunk-ZXKFJQDE.js";
|
|
@@ -3402,7 +3405,6 @@ function useColor() {
|
|
|
3402
3405
|
var program = new Command();
|
|
3403
3406
|
|
|
3404
3407
|
// src/cli.ts
|
|
3405
|
-
import dotenv from "dotenv";
|
|
3406
3408
|
process.on("unhandledRejection", (err) => {
|
|
3407
3409
|
const msg = err instanceof Error ? process.env.DEBUG ? err.stack : err.message : String(err);
|
|
3408
3410
|
process.stderr.write(`Fatal: ${msg}
|
|
@@ -3436,7 +3438,7 @@ var RESERVED_LONG_FLAGS = [
|
|
|
3436
3438
|
var RESERVED_OPTION_NAMES = reservedOptionNames(RESERVED_LONG_FLAGS);
|
|
3437
3439
|
program2.hook("preAction", (thisCommand) => {
|
|
3438
3440
|
const opts = thisCommand.opts();
|
|
3439
|
-
|
|
3441
|
+
loadEnvFile(opts.envFile);
|
|
3440
3442
|
setOutputOptions({
|
|
3441
3443
|
json: opts.json,
|
|
3442
3444
|
pretty: opts.pretty,
|
|
@@ -3453,7 +3455,7 @@ program2.hook("preAction", (thisCommand) => {
|
|
|
3453
3455
|
setCliFlags({ apiKey: opts.apiKey, noRetry: opts.retry === false });
|
|
3454
3456
|
});
|
|
3455
3457
|
program2.action(async () => {
|
|
3456
|
-
const { startStdio } = await import("./serve-
|
|
3458
|
+
const { startStdio } = await import("./serve-2NIEUCJN.js");
|
|
3457
3459
|
await startStdio(program2.opts().envFile);
|
|
3458
3460
|
});
|
|
3459
3461
|
program2.command("serve").description(
|
|
@@ -3471,10 +3473,10 @@ program2.command("serve").description(
|
|
|
3471
3473
|
);
|
|
3472
3474
|
process.exit(ExitCode.INVALID_ARGS);
|
|
3473
3475
|
}
|
|
3474
|
-
const { startHttp } = await import("./serve-
|
|
3476
|
+
const { startHttp } = await import("./serve-2NIEUCJN.js");
|
|
3475
3477
|
await startHttp(port, program2.opts().envFile);
|
|
3476
3478
|
} else {
|
|
3477
|
-
const { startStdio } = await import("./serve-
|
|
3479
|
+
const { startStdio } = await import("./serve-2NIEUCJN.js");
|
|
3478
3480
|
await startStdio(program2.opts().envFile, { local: opts.local });
|
|
3479
3481
|
}
|
|
3480
3482
|
});
|
|
@@ -3561,15 +3563,15 @@ for (const domain of NAMESPACE) {
|
|
|
3561
3563
|
}
|
|
3562
3564
|
var toolsCmd = program2.command("tools").description("Discover and execute tools");
|
|
3563
3565
|
toolsCmd.command("list").description("List all registered tools").option("--category <name>", "Filter by category").option("--provider <name>", "Filter by provider prefix").option("--limit <n>", "Max tools to show", "50").option("--offset <n>", "Skip first N tools", "0").action(async (opts) => {
|
|
3564
|
-
const { listTools } = await import("./tools-
|
|
3566
|
+
const { listTools } = await import("./tools-NSHQSUIK.js");
|
|
3565
3567
|
await listTools(opts);
|
|
3566
3568
|
});
|
|
3567
3569
|
toolsCmd.command("search <query>").description("Search tools by name or description").action(async (query) => {
|
|
3568
|
-
const { searchTools } = await import("./tools-
|
|
3570
|
+
const { searchTools } = await import("./tools-NSHQSUIK.js");
|
|
3569
3571
|
await searchTools(query);
|
|
3570
3572
|
});
|
|
3571
3573
|
toolsCmd.command("info <name>").description("Show a tool's parameters, response schema, and description").action(async (name) => {
|
|
3572
|
-
const { toolInfo } = await import("./tools-
|
|
3574
|
+
const { toolInfo } = await import("./tools-NSHQSUIK.js");
|
|
3573
3575
|
await toolInfo(name, RESERVED_OPTION_NAMES);
|
|
3574
3576
|
});
|
|
3575
3577
|
toolsCmd.command("call <name>").description("Execute a tool by name").option("--args <json>", "Tool arguments as JSON (or pipe JSON via stdin)").allowUnknownOption(true).allowExcessArguments(true).addHelpText(
|
|
@@ -3591,8 +3593,8 @@ Examples:
|
|
|
3591
3593
|
$ hive tools call get_price --args '{"ids":"bitcoin","vs_currencies":"usd"}'
|
|
3592
3594
|
$ echo '{"ids":"bitcoin"}' | hive tools call get_price`
|
|
3593
3595
|
).action(async (_name, opts, cmd) => {
|
|
3594
|
-
const { planToolCall } = await import("./call-args-
|
|
3595
|
-
const { CliError } = await import("./errors-
|
|
3596
|
+
const { planToolCall } = await import("./call-args-4YRVKOLV.js");
|
|
3597
|
+
const { CliError } = await import("./errors-BPXK3KCR.js");
|
|
3596
3598
|
const { outputError } = await import("./output-BBHBJI32.js");
|
|
3597
3599
|
const tokens = cmd.args;
|
|
3598
3600
|
let stdinJson;
|
|
@@ -3609,7 +3611,7 @@ Examples:
|
|
|
3609
3611
|
stdinJson,
|
|
3610
3612
|
reservedNames: RESERVED_OPTION_NAMES,
|
|
3611
3613
|
lookupSchema: async (toolName) => {
|
|
3612
|
-
const { loadToolCatalog } = await import("./tools-
|
|
3614
|
+
const { loadToolCatalog } = await import("./tools-NSHQSUIK.js");
|
|
3613
3615
|
const catalog = await loadToolCatalog();
|
|
3614
3616
|
return catalog.find((t) => t.name === toolName)?.inputSchema;
|
|
3615
3617
|
}
|
|
@@ -3627,7 +3629,7 @@ Examples:
|
|
|
3627
3629
|
await executeTool(plan.toolName, plan.args, timeout);
|
|
3628
3630
|
});
|
|
3629
3631
|
toolsCmd.command("refresh").description("Force-refresh the tool catalog cache").action(async () => {
|
|
3630
|
-
const { refreshTools } = await import("./tools-
|
|
3632
|
+
const { refreshTools } = await import("./tools-NSHQSUIK.js");
|
|
3631
3633
|
await refreshTools();
|
|
3632
3634
|
});
|
|
3633
3635
|
var configCmd = program2.command("config").description("Generate configuration for MCP clients");
|
|
@@ -3686,7 +3688,7 @@ program2.command("init").description(
|
|
|
3686
3688
|
await runSetup();
|
|
3687
3689
|
return;
|
|
3688
3690
|
}
|
|
3689
|
-
const { runInitAll } = await import("./init-all-
|
|
3691
|
+
const { runInitAll } = await import("./init-all-XDQRGJ3D.js");
|
|
3690
3692
|
const exitCode = await runInitAll({
|
|
3691
3693
|
all: Boolean(opts.all),
|
|
3692
3694
|
browser: Boolean(opts.browser),
|
|
@@ -3704,7 +3706,7 @@ program2.command("uninstall").description(
|
|
|
3704
3706
|
"--all",
|
|
3705
3707
|
"Clean every known client (default; explicit flag for symmetry with `init --all`)"
|
|
3706
3708
|
).option("--dry-run", "Preview removals without changing anything").action(async (opts) => {
|
|
3707
|
-
const { runUninstall } = await import("./uninstall-
|
|
3709
|
+
const { runUninstall } = await import("./uninstall-CECLA5YZ.js");
|
|
3708
3710
|
const exitCode = await runUninstall({
|
|
3709
3711
|
all: opts.all !== false,
|
|
3710
3712
|
dryRun: Boolean(opts.dryRun),
|
|
@@ -3719,7 +3721,7 @@ for (const action of ["install", "decline", "remove"]) {
|
|
|
3719
3721
|
routingCmd.command(action).description(
|
|
3720
3722
|
action === "install" ? "Append the Hive routing block (AGENTS.md preferred over CLAUDE.md)" : action === "decline" ? "Record that this project does not want the routing block" : "Remove the routing block and restore the file's original bytes"
|
|
3721
3723
|
).option("--file <name>", "Target file: AGENTS.md or CLAUDE.md").option("--dry-run", "Print the resulting file; write nothing").option("--create", "Create the target file when it does not exist").action(async (opts) => {
|
|
3722
|
-
const { runRouting } = await import("./routing-
|
|
3724
|
+
const { runRouting } = await import("./routing-S7DPEROC.js");
|
|
3723
3725
|
const exitCode = await runRouting(action, {
|
|
3724
3726
|
file: opts.file,
|
|
3725
3727
|
dryRun: Boolean(opts.dryRun),
|
|
@@ -3735,14 +3737,14 @@ program2.command("feedback <message>").description(
|
|
|
3735
3737
|
"--receipt <id>",
|
|
3736
3738
|
"Receipt ID (defaults to the last successful call's receipt)"
|
|
3737
3739
|
).action(async (message, opts) => {
|
|
3738
|
-
const { runFeedback } = await import("./feedback-
|
|
3740
|
+
const { runFeedback } = await import("./feedback-6XX2R75U.js");
|
|
3739
3741
|
await runFeedback(message, { tool: opts.tool, receipt: opts.receipt });
|
|
3740
3742
|
});
|
|
3741
3743
|
program2.command("doctor").description("Diagnose environment and server connectivity").option("--probe", "Run live API probes (slower)").option(
|
|
3742
3744
|
"--fix",
|
|
3743
3745
|
"Rewrite stale Hive entries in MCP client configs (backs each file up first)"
|
|
3744
3746
|
).action(async (opts) => {
|
|
3745
|
-
const { runDoctor } = await import("./doctor-
|
|
3747
|
+
const { runDoctor } = await import("./doctor-UKOGXRSW.js");
|
|
3746
3748
|
await runDoctor(opts);
|
|
3747
3749
|
});
|
|
3748
3750
|
program2.command("upgrade").description("Update Hive to the latest published version").action(async () => {
|
|
@@ -3766,31 +3768,31 @@ program2.command("keys").description("Retired \u2014 manage API keys in the dash
|
|
|
3766
3768
|
});
|
|
3767
3769
|
var authCmd = program2.command("auth").description("Manage authentication profiles");
|
|
3768
3770
|
authCmd.command("login").description("Log in via browser (or --manual to paste API key)").option("--profile <name>", "Profile name", "default").option("--manual", "Manually paste API key instead of browser login").action(async (opts) => {
|
|
3769
|
-
const { runLogin } = await import("./auth-
|
|
3771
|
+
const { runLogin } = await import("./auth-TZQC54EJ.js");
|
|
3770
3772
|
await runLogin(opts);
|
|
3771
3773
|
});
|
|
3772
3774
|
authCmd.command("logout").description("Remove stored credentials").action(async () => {
|
|
3773
|
-
const { runLogout } = await import("./auth-
|
|
3775
|
+
const { runLogout } = await import("./auth-TZQC54EJ.js");
|
|
3774
3776
|
await runLogout();
|
|
3775
3777
|
});
|
|
3776
3778
|
authCmd.command("whoami").description("Show current profile").action(async () => {
|
|
3777
|
-
const { runWhoami } = await import("./auth-
|
|
3779
|
+
const { runWhoami } = await import("./auth-TZQC54EJ.js");
|
|
3778
3780
|
await runWhoami();
|
|
3779
3781
|
});
|
|
3780
3782
|
authCmd.command("profiles").description("List all profiles").action(async () => {
|
|
3781
|
-
const { runProfiles } = await import("./auth-
|
|
3783
|
+
const { runProfiles } = await import("./auth-TZQC54EJ.js");
|
|
3782
3784
|
await runProfiles();
|
|
3783
3785
|
});
|
|
3784
3786
|
authCmd.command("switch <name>").description("Switch active profile").action(async (name) => {
|
|
3785
|
-
const { runSwitch } = await import("./auth-
|
|
3787
|
+
const { runSwitch } = await import("./auth-TZQC54EJ.js");
|
|
3786
3788
|
await runSwitch(name);
|
|
3787
3789
|
});
|
|
3788
3790
|
program2.command("usage").description("Show your API usage and plan limits").action(async () => {
|
|
3789
|
-
const { runUsage } = await import("./auth-
|
|
3791
|
+
const { runUsage } = await import("./auth-TZQC54EJ.js");
|
|
3790
3792
|
await runUsage();
|
|
3791
3793
|
});
|
|
3792
3794
|
program2.command("status").description("Quick health and version check").action(async () => {
|
|
3793
|
-
const { runStatus } = await import("./doctor-
|
|
3795
|
+
const { runStatus } = await import("./doctor-UKOGXRSW.js");
|
|
3794
3796
|
await runStatus();
|
|
3795
3797
|
});
|
|
3796
3798
|
program2.command("open [target]").description("Open Hive dashboard, docs, status, or GitHub in browser").action(async (target) => {
|
|
@@ -3821,7 +3823,7 @@ program2.command("watch <domain> <command>").description("Poll a tool on interva
|
|
|
3821
3823
|
}
|
|
3822
3824
|
const interval = parseInt(opts.interval, 10);
|
|
3823
3825
|
const timeout = parseInt(program2.opts().timeout, 10);
|
|
3824
|
-
const { runWatch } = await import("./watch-
|
|
3826
|
+
const { runWatch } = await import("./watch-4VHBLAL6.js");
|
|
3825
3827
|
await runWatch(cmdDef.tool, args, interval, timeout);
|
|
3826
3828
|
});
|
|
3827
3829
|
var aliasCmd = program2.command("alias").description("Manage command aliases");
|
|
@@ -2,8 +2,8 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
|
|
|
2
2
|
import {
|
|
3
3
|
fetchToolCatalog,
|
|
4
4
|
getAnonQuota
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-VO6NWVJD.js";
|
|
6
|
+
import "./chunk-4U4IL5KA.js";
|
|
7
7
|
import "./chunk-ZXKFJQDE.js";
|
|
8
8
|
import {
|
|
9
9
|
debug,
|
|
@@ -296,9 +296,9 @@ ${fails === 0 ? "All checks passed" : `${fails} issues found`}${warns ? ` (${war
|
|
|
296
296
|
if (fails > 0) process.exit(1);
|
|
297
297
|
}
|
|
298
298
|
async function runStatus() {
|
|
299
|
-
const { SERVER_VERSION } = await import("./mcpServer-
|
|
299
|
+
const { SERVER_VERSION } = await import("./mcpServer-77FPS534.js");
|
|
300
300
|
const { resolveApiKey, resolveApiUrl } = await import("./config-dir-2QLA5PXD.js");
|
|
301
|
-
const { getActiveProfile, maskKey } = await import("./auth-
|
|
301
|
+
const { getActiveProfile, maskKey } = await import("./auth-TZQC54EJ.js");
|
|
302
302
|
const apiUrl = resolveApiUrl();
|
|
303
303
|
const apiKey = resolveApiKey();
|
|
304
304
|
const profile = getActiveProfile();
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-XN3T6YOG.js";
|
|
5
5
|
import {
|
|
6
6
|
postFeedback
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VO6NWVJD.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
isCliErrorCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4U4IL5KA.js";
|
|
12
12
|
import {
|
|
13
13
|
SERVER_VERSION
|
|
14
14
|
} from "./chunk-ZXKFJQDE.js";
|
|
@@ -9,9 +9,10 @@ import {
|
|
|
9
9
|
getToolsForScope,
|
|
10
10
|
memoizedJsonSchemaToZodInputSchema,
|
|
11
11
|
memoizedJsonSchemaToZodOutputSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QSKFAT7Z.js";
|
|
13
13
|
import "./chunk-QYK3EWTE.js";
|
|
14
14
|
import "./chunk-EPF36Q3Z.js";
|
|
15
|
+
import "./chunk-MYSS5SBE.js";
|
|
15
16
|
import {
|
|
16
17
|
PUBLIC_MCP_REGISTRY_ID,
|
|
17
18
|
SERVER_NAME,
|
package/build/monitor-worker.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
executeToolByName,
|
|
5
5
|
refundCredits,
|
|
6
6
|
refundSettled
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B53GNIWW.js";
|
|
8
8
|
import {
|
|
9
9
|
MIN_MONITOR_CADENCE_MS,
|
|
10
10
|
closeRedisClient,
|
|
@@ -14,9 +14,10 @@ import {
|
|
|
14
14
|
monitorCadenceIntervalMs,
|
|
15
15
|
runScheduledHealthCanaries,
|
|
16
16
|
secureLogger
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QSKFAT7Z.js";
|
|
18
18
|
import "./chunk-QYK3EWTE.js";
|
|
19
19
|
import "./chunk-EPF36Q3Z.js";
|
|
20
|
+
import "./chunk-MYSS5SBE.js";
|
|
20
21
|
import "./chunk-ZXKFJQDE.js";
|
|
21
22
|
import "./chunk-OMO7XLC5.js";
|
|
22
23
|
|
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.16.0",
|
|
4
|
+
"buildSha": "6cf20885105d635f706354b9f6c34c71d0facc31",
|
|
5
|
+
"imageDigest": "sha256:9f4b32362d64126dc162824428961163e1399a0081a62db327e0417ad805261a",
|
|
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.16.0/releases/v1.16.0.json"
|
|
8
8
|
}
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
renderRoutingBlock,
|
|
18
18
|
runRouting,
|
|
19
19
|
stripRoutingBlock
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-PODCJTBV.js";
|
|
21
|
+
import "./chunk-4U4IL5KA.js";
|
|
22
22
|
import "./chunk-ZDXMZPC6.js";
|
|
23
23
|
import "./chunk-6PC3HUAK.js";
|
|
24
24
|
import "./chunk-OMO7XLC5.js";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
loadEnvFile
|
|
4
|
+
} from "./chunk-MYSS5SBE.js";
|
|
2
5
|
import "./chunk-OMO7XLC5.js";
|
|
3
6
|
|
|
4
7
|
// src/cli/serve.ts
|
|
5
|
-
import dotenv from "dotenv";
|
|
6
8
|
function resolveStdioMode(opts = {}, env = process.env) {
|
|
7
9
|
return opts.local || env.HIVE_STDIO_MODE?.toLowerCase() === "local" ? "local" : "proxy";
|
|
8
10
|
}
|
|
@@ -45,11 +47,11 @@ function bridgeTransports(local, remote, opts) {
|
|
|
45
47
|
local.onclose = () => void remote.close();
|
|
46
48
|
}
|
|
47
49
|
async function startStdio(envFile, opts = {}) {
|
|
48
|
-
|
|
50
|
+
loadEnvFile(envFile || ".env");
|
|
49
51
|
console.log = (...args) => console.error("[LOG]", ...args);
|
|
50
52
|
if (resolveStdioMode(opts) === "proxy") return startStdioProxy();
|
|
51
53
|
const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
|
|
52
|
-
const { createHiveMcpServer, SERVER_NAME, SERVER_VERSION } = await import("./mcpServer-
|
|
54
|
+
const { createHiveMcpServer, SERVER_NAME, SERVER_VERSION } = await import("./mcpServer-77FPS534.js");
|
|
53
55
|
const { getPendingUpdateVersion } = await import("./update-check-36QU6PKA.js");
|
|
54
56
|
const transport = new StdioServerTransport();
|
|
55
57
|
const pendingUpdate = getPendingUpdateVersion();
|
|
@@ -112,7 +114,7 @@ async function startStdioProxy() {
|
|
|
112
114
|
);
|
|
113
115
|
}
|
|
114
116
|
async function startHttp(port, envFile) {
|
|
115
|
-
|
|
117
|
+
loadEnvFile(envFile || ".env");
|
|
116
118
|
process.env.PORT = String(port);
|
|
117
119
|
const { startHttpServer } = await import("./server.js");
|
|
118
120
|
await startHttpServer();
|