vault-go 0.23.1 → 0.23.2

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.
@@ -95,17 +95,24 @@ function serverConfiguredInToml(path) {
95
95
  }
96
96
  }
97
97
  function clientCliInstalled(client, home) {
98
+ if (home === homedir())
99
+ return clientCliWithEnv(client, process.env);
100
+ // Why: tests point home at a temp dir; pin each CLI's config env so the
101
+ // check reads the temp config, not the real one.
102
+ return clientCliWithEnv(client, {
103
+ ...process.env,
104
+ HOME: home,
105
+ CODEX_HOME: join(home, ".codex"),
106
+ CLAUDE_CONFIG_DIR: join(home, ".claude"),
107
+ });
108
+ }
109
+ function clientCliWithEnv(client, env) {
98
110
  try {
99
- return (spawnSync(client, ["mcp", "get", "vault-go"], {
111
+ return spawnSync(client, ["mcp", "get", "vault-go"], {
100
112
  timeout: 4000,
101
113
  stdio: "ignore",
102
- env: {
103
- ...process.env,
104
- HOME: home,
105
- CODEX_HOME: join(home, ".codex"),
106
- CLAUDE_CONFIG_DIR: join(home, ".claude"),
107
- },
108
- }).status === 0);
114
+ env,
115
+ }).status === 0;
109
116
  }
110
117
  catch {
111
118
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-go",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "description": "MCP server and installer for Vault Memory: search, capture, and use account memory across AI clients.",
5
5
  "type": "module",
6
6
  "bin": {