vault-cortex 0.13.0 → 0.13.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.
package/dist/env.js CHANGED
@@ -15,7 +15,7 @@ const LOCAL_OPTIONAL_BLOCK = `# Optional ─────────────
15
15
  # "npx vault-cortex@latest restart" (plain docker restart does not
16
16
  # re-read this file).
17
17
 
18
- # Public URL for OAuth issuer URL in discovery metadata (default: http://localhost:8000).
18
+ # Public URL for OAuth issuer and access-token binding (default: http://localhost:8000).
19
19
  # Override if you expose the server on a different URL (e.g. via a reverse proxy).
20
20
  PUBLIC_URL=http://localhost:8000
21
21
 
@@ -77,9 +77,10 @@ MEMORY_DIR=About Me
77
77
  # DAILY_NOTES_FOLDER=Journal
78
78
  # DAILY_NOTES_FORMAT=YYYY-MM-DD
79
79
 
80
- # Comma-separated folders protected from deletion (default: MEMORY_DIR plus
81
- # the daily notes folder DAILY_NOTES_FOLDER when set, otherwise "Daily Notes").
82
- # A custom folder set only in daily-notes.json is not auto-protected.
80
+ # Comma-separated folders protected from deletion and moves. Default: MEMORY_DIR plus
81
+ # the daily notes folder, read from DAILY_NOTES_FOLDER or .obsidian/daily-notes.json
82
+ # (default "Daily Notes"). When set, replaces the whole default include the
83
+ # daily notes folder in your list if needed.
83
84
  # PROTECTED_PATHS=About Me,Daily Notes
84
85
 
85
86
  # Comma-separated folders excluded from orphan detection (default: the daily
@@ -215,9 +216,10 @@ MEMORY_DIR=About Me
215
216
  # DAILY_NOTES_FOLDER=Journal
216
217
  # DAILY_NOTES_FORMAT=YYYY-MM-DD
217
218
 
218
- # Comma-separated folders protected from deletion (default: MEMORY_DIR plus
219
- # the daily notes folder DAILY_NOTES_FOLDER when set, otherwise "Daily Notes").
220
- # A custom folder set only in daily-notes.json is not auto-protected.
219
+ # Comma-separated folders protected from deletion and moves. Default: MEMORY_DIR plus
220
+ # the daily notes folder, read from DAILY_NOTES_FOLDER or .obsidian/daily-notes.json
221
+ # (default "Daily Notes"). When set, replaces the whole default include the
222
+ # daily notes folder in your list if needed.
221
223
  # PROTECTED_PATHS=About Me,Daily Notes
222
224
 
223
225
  # Comma-separated folders excluded from orphan detection (default: the daily
@@ -339,7 +341,8 @@ VAULT_PASSWORD=${answers.vaultPassword}`;
339
341
  MCP_AUTH_TOKEN=${answers.mcpAuthToken}
340
342
 
341
343
  # Public URL that MCP clients use to reach this server.
342
- # Used as the OAuth issuer URL in discovery metadata.
344
+ # Used as the OAuth issuer URL in discovery metadata and stamped on every
345
+ # access token; changing it invalidates connected clients' tokens.
343
346
  PUBLIC_URL=${answers.publicUrl}
344
347
 
345
348
  ${obsidianTokenComment}
package/dist/init.js CHANGED
@@ -395,11 +395,8 @@ export const runInit = async (flags, deps) => {
395
395
  prompts.intro("vault-cortex init");
396
396
  // Mode resolution: explicit --mode wins; --yes implies local; otherwise
397
397
  // ask, defaulting to local — it's the simpler activation path.
398
- const mode = flags.mode !== undefined && isMode(flags.mode)
399
- ? flags.mode
400
- : flags.yes
401
- ? "local"
402
- : await askMode(prompts);
398
+ const flagMode = flags.mode && isMode(flags.mode) ? flags.mode : undefined;
399
+ const mode = flagMode ?? (flags.yes ? "local" : await askMode(prompts));
403
400
  const exitCode = mode === "local"
404
401
  ? await runLocalInit(flags, deps)
405
402
  : await runRemoteInit(flags, deps);
package/dist/messages.js CHANGED
@@ -126,11 +126,10 @@ const updateGuidance = (targetDir) => `Update to the latest release:
126
126
  export const buildLocalConnectMessage = (params) => {
127
127
  const { targetDir, token, startStatus, port, tokenWritten } = params;
128
128
  const baseUrl = `http://localhost:${port}`;
129
- const startLine = startStatus === "running"
130
- ? "The server is running."
131
- : startStatus === "starting"
132
- ? startingInBackgroundLine()
133
- : startServerLine(targetDir);
129
+ const nonRunningLine = startStatus === "starting"
130
+ ? startingInBackgroundLine()
131
+ : startServerLine(targetDir);
132
+ const startLine = startStatus === "running" ? "The server is running." : nonRunningLine;
134
133
  const tokenLine = tokenBlock({ targetDir, token, tokenWritten });
135
134
  // Once the server is confirmed up, the smoke test is dropped — the CLI just
136
135
  // verified this exact URL, so re-printing it reads as leftover homework.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-cortex",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Set up a Vault Cortex MCP server for your Obsidian vault in one command: npx vault-cortex@latest init",
5
5
  "license": "MIT",
6
6
  "type": "module",