@muhaven/mcp 0.1.2 → 0.1.4
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/CHANGELOG.md +201 -1
- package/bin/muhaven-mcp.cjs +45 -0
- package/dist/broker.cjs +506 -24
- package/dist/broker.d.cts +29 -1
- package/dist/broker.d.ts +29 -1
- package/dist/broker.js +513 -30
- package/dist/index.cjs +124 -20
- package/dist/index.d.cts +143 -13
- package/dist/index.d.ts +143 -13
- package/dist/index.js +120 -21
- package/manifest.json +2 -2
- package/package.json +1 -1
package/dist/broker.d.cts
CHANGED
|
@@ -8,9 +8,37 @@
|
|
|
8
8
|
* doctor → environment + keystore capability report
|
|
9
9
|
* --help, -h → usage
|
|
10
10
|
*/
|
|
11
|
+
interface LoginFlags {
|
|
12
|
+
noLaunchBrowser: boolean;
|
|
13
|
+
brokerEndpoint?: string;
|
|
14
|
+
backendBaseUrl?: string;
|
|
15
|
+
dashboardBaseUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Resolve `backendBaseUrl` + `dashboardBaseUrl` from the running
|
|
18
|
+
* daemon's view (returned in `hello.effectiveConfig`) rather than the
|
|
19
|
+
* CLI's env. Solves the daemon-vs-CLI env-divergence problem when the
|
|
20
|
+
* CLI is launched from a different shell (ssh, IDE-spawned terminal)
|
|
21
|
+
* than the systemd / launchd-launched daemon. Closes §3e⁶
|
|
22
|
+
* F-broker-env-divergence.
|
|
23
|
+
*
|
|
24
|
+
* Mutually exclusive with explicit `--backend-base-url` /
|
|
25
|
+
* `--dashboard-base-url`; the CLI rejects the combination so the
|
|
26
|
+
* operator picks one source of truth.
|
|
27
|
+
*/
|
|
28
|
+
fromDaemon: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare function parseLoginFlags(argv: readonly string[]): LoginFlags;
|
|
11
31
|
declare function runLogin(argv: readonly string[]): Promise<number>;
|
|
12
32
|
declare function runLogout(): Promise<number>;
|
|
13
33
|
declare function runDoctor(): Promise<number>;
|
|
34
|
+
declare function getBrokerPackageVersion(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Wire `runSetup` against the real cli helpers + IO. Kept here (not in
|
|
37
|
+
* `setup.ts`) so the pure orchestrator stays free of the cli-only
|
|
38
|
+
* `runLogin` import (which would pull device-flow + viem into the test
|
|
39
|
+
* surface unnecessarily).
|
|
40
|
+
*/
|
|
41
|
+
declare function runSetup(argv: readonly string[]): Promise<number>;
|
|
14
42
|
declare function runCli(argv: readonly string[]): Promise<number>;
|
|
15
43
|
|
|
16
|
-
export { runCli, runDoctor, runLogin, runLogout };
|
|
44
|
+
export { getBrokerPackageVersion, parseLoginFlags, runCli, runDoctor, runLogin, runLogout, runSetup };
|
package/dist/broker.d.ts
CHANGED
|
@@ -8,9 +8,37 @@
|
|
|
8
8
|
* doctor → environment + keystore capability report
|
|
9
9
|
* --help, -h → usage
|
|
10
10
|
*/
|
|
11
|
+
interface LoginFlags {
|
|
12
|
+
noLaunchBrowser: boolean;
|
|
13
|
+
brokerEndpoint?: string;
|
|
14
|
+
backendBaseUrl?: string;
|
|
15
|
+
dashboardBaseUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Resolve `backendBaseUrl` + `dashboardBaseUrl` from the running
|
|
18
|
+
* daemon's view (returned in `hello.effectiveConfig`) rather than the
|
|
19
|
+
* CLI's env. Solves the daemon-vs-CLI env-divergence problem when the
|
|
20
|
+
* CLI is launched from a different shell (ssh, IDE-spawned terminal)
|
|
21
|
+
* than the systemd / launchd-launched daemon. Closes §3e⁶
|
|
22
|
+
* F-broker-env-divergence.
|
|
23
|
+
*
|
|
24
|
+
* Mutually exclusive with explicit `--backend-base-url` /
|
|
25
|
+
* `--dashboard-base-url`; the CLI rejects the combination so the
|
|
26
|
+
* operator picks one source of truth.
|
|
27
|
+
*/
|
|
28
|
+
fromDaemon: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare function parseLoginFlags(argv: readonly string[]): LoginFlags;
|
|
11
31
|
declare function runLogin(argv: readonly string[]): Promise<number>;
|
|
12
32
|
declare function runLogout(): Promise<number>;
|
|
13
33
|
declare function runDoctor(): Promise<number>;
|
|
34
|
+
declare function getBrokerPackageVersion(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Wire `runSetup` against the real cli helpers + IO. Kept here (not in
|
|
37
|
+
* `setup.ts`) so the pure orchestrator stays free of the cli-only
|
|
38
|
+
* `runLogin` import (which would pull device-flow + viem into the test
|
|
39
|
+
* surface unnecessarily).
|
|
40
|
+
*/
|
|
41
|
+
declare function runSetup(argv: readonly string[]): Promise<number>;
|
|
14
42
|
declare function runCli(argv: readonly string[]): Promise<number>;
|
|
15
43
|
|
|
16
|
-
export { runCli, runDoctor, runLogin, runLogout };
|
|
44
|
+
export { getBrokerPackageVersion, parseLoginFlags, runCli, runDoctor, runLogin, runLogout, runSetup };
|