@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/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 };