@openparachute/vault 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openparachute/vault",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Agent-native knowledge graph. Notes, tags, links over MCP.",
5
5
  "module": "src/cli.ts",
6
6
  "type": "module",
package/src/cli.ts CHANGED
@@ -77,6 +77,7 @@ import {
77
77
  resolveServerPath,
78
78
  } from "./daemon.ts";
79
79
  import { confirm, ask, askPassword, choose } from "./prompt.ts";
80
+ import { resolveBindHostname } from "./bind.ts";
80
81
  import { generateToken, createToken, listTokens, revokeToken, migrateVaultKeys } from "./token-store.ts";
81
82
  import type { TokenPermission } from "./token-store.ts";
82
83
  import { resolveCreateTokenFlags, VAULT_SCOPES } from "./scopes.ts";
@@ -347,7 +348,8 @@ async function cmdInit(args: string[] = []) {
347
348
  console.log(` Server path: ${serverPath}`);
348
349
  console.log(` Wrapper: ~/.parachute/vault/start.sh`);
349
350
  }
350
- console.log(` Listening on http://0.0.0.0:${globalConfig.port || DEFAULT_PORT}`);
351
+ const bindHost = resolveBindHostname(process.env);
352
+ console.log(` Listening on http://${bindHost}:${globalConfig.port || DEFAULT_PORT}`);
351
353
 
352
354
  // 7. Install MCP for Claude Code (with token for auth) — user confirms
353
355
  // unless --mcp / --no-mcp explicitly passed. Writing to ~/.claude.json
@@ -384,7 +386,7 @@ async function cmdInit(args: string[] = []) {
384
386
  }
385
387
 
386
388
  console.log(`\nConfig: ${CONFIG_DIR}`);
387
- console.log(`Server: http://0.0.0.0:${port}`);
389
+ console.log(`Server: http://${bindHost}:${port}`);
388
390
 
389
391
  console.log(`\nUsage examples:`);
390
392
  console.log(` curl http://localhost:${port}/health`);