vault-cortex 0.4.3 → 0.4.5

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 (3) hide show
  1. package/README.md +6 -4
  2. package/dist/env.js +21 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -8,11 +8,13 @@ npx vault-cortex@latest init
8
8
  ```
9
9
 
10
10
  Vault Cortex is a standalone, remote-capable MCP server for Obsidian vaults —
11
- 26 tools for hybrid search (FTS5 + vector + cross-encoder reranking), notes, frontmatter, links, daily notes,
11
+ 27 tools for hybrid search (FTS5 + vector + cross-encoder reranking, with
12
+ tag/folder/property/date filters), notes, frontmatter, links, daily notes,
12
13
  task queries (Tasks-plugin emoji + Dataview inline-field formats), and
13
- a structured memory layer, plus 3 guided prompts (orientation, memory review,
14
- daily review). It runs as a Docker container; this CLI scaffolds the config so
15
- you don't have to.
14
+ a structured memory layer with topic recall (the current take plus the
15
+ dated history behind it), plus 3 guided prompts (orientation, memory
16
+ review, daily review). It runs as a Docker
17
+ container; this CLI scaffolds the config so you don't have to.
16
18
 
17
19
  ## What `init` does
18
20
 
package/dist/env.js CHANGED
@@ -1,12 +1,23 @@
1
1
  import { GET_TOKEN_IMAGE } from "./docker.js";
2
- // The optional blocks mirror the canonical deploy/<mode>/.env.example files.
2
+ // Optional env blocks are synced from deploy/<mode>/.env.example by
3
+ // npm run sync:cli-templates. Edit the deploy/ files, then re-run the script.
3
4
  // cli/src/templates.test.ts asserts every required `${VAR:?}` in the compose
4
5
  // templates has a matching line here, so a new required var breaks CI until
5
6
  // these builders learn it.
7
+ // ┌─────────────────────────────────────────────────────────────────────────┐
8
+ // │ GENERATED — do not edit between sync markers. │
9
+ // │ Source: deploy/local/.env.example → npm run sync:cli-templates │
10
+ // │ The script replaces everything between :begin and :end on each run. │
11
+ // └─────────────────────────────────────────────────────────────────────────┘
12
+ // sync:local-optional:begin
6
13
  const LOCAL_OPTIONAL_BLOCK = `# Optional ──────────────────────────────────────────────────
7
14
  # To override a setting: uncomment it, set a value, then apply with
8
15
  # "docker compose up -d" (restart alone does not re-read this file).
9
16
 
17
+ # Public URL for OAuth issuer URL in discovery metadata (default: http://localhost:8000).
18
+ # Override if you expose the server on a different URL (e.g. via a reverse proxy).
19
+ # PUBLIC_URL=http://localhost:8000
20
+
10
21
  # Your IANA timezone — affects daily note resolution and memory timestamps.
11
22
  # TZ=America/New_York
12
23
 
@@ -63,6 +74,13 @@ const LOCAL_OPTIONAL_BLOCK = `# Optional ─────────────
63
74
  # drive rather than inside WSL2, but harmless to enable for any Windows setup.
64
75
  # WINDOWS_MODE=true
65
76
  `;
77
+ // sync:local-optional:end
78
+ // ┌─────────────────────────────────────────────────────────────────────────┐
79
+ // │ GENERATED — do not edit between sync markers. │
80
+ // │ Source: deploy/remote/.env.example → npm run sync:cli-templates │
81
+ // │ VAULT_PASSWORD is excluded (handled conditionally in buildRemoteEnv). │
82
+ // └─────────────────────────────────────────────────────────────────────────┘
83
+ // sync:remote-optional:begin
66
84
  const REMOTE_OPTIONAL_BLOCK = `# Optional ──────────────────────────────────────────────────
67
85
  # To override a setting: uncomment it, set a value, then apply with
68
86
  # "docker compose up -d" (restart alone does not re-read this file).
@@ -130,11 +148,13 @@ const REMOTE_OPTIONAL_BLOCK = `# Optional ────────────
130
148
  # DEVICE_NAME=vault-cortex
131
149
 
132
150
  # Obsidian Sync conflict resolution: merge | conflict (default: merge).
151
+ # 'merge' integrates changes automatically; 'conflict' writes a separate conflict file.
133
152
  # CONFLICT_STRATEGY=merge
134
153
 
135
154
  # Sync direction: bidirectional | pull-only | push-only (default: bidirectional).
136
155
  # SYNC_MODE=bidirectional
137
156
  `;
157
+ // sync:remote-optional:end
138
158
  export const buildLocalEnv = (answers) => `# vault-cortex — local quickstart
139
159
  # Generated by \`npx vault-cortex init\`. Full option reference:
140
160
  # https://github.com/aliasunder/vault-cortex/blob/main/deploy/local/.env.example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-cortex",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Set up a Vault Cortex MCP server for your Obsidian vault in one command: npx vault-cortex init",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,7 +44,7 @@
44
44
  "cli"
45
45
  ],
46
46
  "dependencies": {
47
- "@clack/prompts": "1.6.0",
47
+ "@clack/prompts": "1.7.0",
48
48
  "commander": "14.0.3"
49
49
  }
50
50
  }