glasspane-mcp 1.1.1 → 1.2.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.
@@ -26,7 +26,7 @@ export declare const MCP_PROTOCOL_VERSION: "2025-06-18";
26
26
  export declare const SUPPORTED_PROTOCOL_VERSIONS: readonly string[];
27
27
  export declare const SERVER_INFO: {
28
28
  readonly name: "glasspane-mcp";
29
- readonly version: "1.1.1";
29
+ readonly version: "1.2.0";
30
30
  };
31
31
  export declare const PARSE_ERROR = -32700;
32
32
  export declare const INVALID_REQUEST = -32600;
@@ -12,10 +12,36 @@ export declare function daemonUnreachableRemedy(): string;
12
12
  /** Env override for the daemon socket path (default below). */
13
13
  export declare const ENGINE_SOCKET_ENV = "GLASSPANE_ENGINE_SOCK";
14
14
  /**
15
- * The daemon listens here by default (spec §3.1). Single source: the CLI
16
- * argument parser in index.ts and the reconnecting transport both resolve the
17
- * path through this function, so an env override cannot be honoured on one side
18
- * only.
15
+ * Where this shell connects when nothing was named, in order: `GLASSPANE_ENGINE_SOCK`
16
+ * (the env var {@link ENGINE_SOCKET_ENV} spells), then the explicit
17
+ * `--socket-path` this shell's own CLI accepts, then the fallback below.
18
+ *
19
+ * The fallback is a **guess made from `$HOME`**, and it is worth being exact
20
+ * about which guess: `os.homedir()` reads `$HOME`, while the daemon's own
21
+ * default is `StateRoot.homeDefault()` = `NSHomeDirectory() + "/.glasspane"`,
22
+ * which on macOS does **not** consult `$HOME` — the same non-inheritance that
23
+ * has already cost this project real data, and the reason a caller cannot
24
+ * isolate a run by exporting `HOME`. So in a process whose `$HOME` points into
25
+ * a sandbox the two sides resolve **different directories**: this shell goes
26
+ * looking for `$HOME/.glasspane/engine.sock` inside the sandbox while the daemon
27
+ * is still serving only the socket under the real home. Nor is there a third
28
+ * case to cover by guessing better — a daemon started with `--state-dir <root>`
29
+ * listens on `<root>/daemon.sock`, which no value of `$HOME` points at.
30
+ *
31
+ * The reliable route is therefore to stop deriving and to say which socket: set
32
+ * `GLASSPANE_ENGINE_SOCK`, or pass `--socket-path`. The installer's launchd job
33
+ * hands the daemon an explicit `--socket-path` already, which is what makes an
34
+ * installed pair agree — so read that value back rather than recomputing it;
35
+ * this shell's `--help` gives the command.
36
+ *
37
+ * Deliberately not "fixed" by asking the daemon: before a connection exists
38
+ * there is no daemon to ask, and `hello` is itself answered after connecting.
39
+ * Matching the daemon's home lookup from Node would take an FFI call to
40
+ * `NSHomeDirectory()`, which this shell does not have.
41
+ *
42
+ * Single source all the same: the CLI argument parser in index.ts and the
43
+ * reconnecting transport both resolve the path through this function, so an env
44
+ * override cannot be honoured on one side only.
19
45
  */
20
46
  export declare function defaultSocketPath(): string;
21
47
  /** Fallback deadline for a method missing from the table below. */
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=http-gateway-cli.d.ts.map