vault-cortex 0.3.2 → 0.4.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/README.md +2 -1
- package/dist/bin.js +2 -1
- package/dist/docker.js +1 -1
- package/dist/env.js +1 -1
- package/dist/prompts.js +2 -0
- package/package.json +2 -1
- package/templates/remote/docker-compose.yml +2 -1
package/README.md
CHANGED
|
@@ -8,7 +8,8 @@ npx vault-cortex@latest init
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Vault Cortex is a standalone, remote-capable MCP server for Obsidian vaults —
|
|
11
|
-
|
|
11
|
+
26 tools for hybrid search (FTS5 + vector + cross-encoder reranking), notes, frontmatter, links, daily notes,
|
|
12
|
+
task queries (Tasks-plugin emoji + Dataview inline-field formats), and
|
|
12
13
|
a structured memory layer, plus 3 guided prompts (orientation, memory review,
|
|
13
14
|
daily review). It runs as a Docker container; this CLI scaffolds the config so
|
|
14
15
|
you don't have to.
|
package/dist/bin.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { minimumNodeVersion, satisfiesMinimum } from "./node-version.js";
|
|
5
|
-
const
|
|
5
|
+
const pkg = JSON.parse(readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf8"));
|
|
6
|
+
const { version, engines } = pkg;
|
|
6
7
|
// npm only warns (EBADENGINE) on an engines mismatch but runs the CLI anyway,
|
|
7
8
|
// which would surface as a cryptic crash inside a dependency. Fail with a
|
|
8
9
|
// clear message instead — and only import dependency-laden code after the
|
package/dist/docker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
/** The image whose `get-token` entrypoint issues Obsidian Sync auth tokens. */
|
|
3
|
-
export const OBSIDIAN_SYNC_IMAGE = "ghcr.io/
|
|
3
|
+
export const OBSIDIAN_SYNC_IMAGE = "ghcr.io/belphemur/obsidian-headless-sync-docker:latest";
|
|
4
4
|
export const createDockerRunner = () => ({
|
|
5
5
|
isComposeAvailable: () => spawnSync("docker", ["compose", "version"]).status === 0,
|
|
6
6
|
isDaemonRunning: () => spawnSync("docker", ["info"], { timeout: 5_000 }).status === 0,
|
package/dist/env.js
CHANGED
|
@@ -127,7 +127,7 @@ VAULT_PASSWORD=${answers.vaultPassword}`;
|
|
|
127
127
|
? `# Obsidian Sync auth token — FILL THIS IN before docker compose up.
|
|
128
128
|
# Generate once with:
|
|
129
129
|
# docker run --rm -it --entrypoint get-token \\
|
|
130
|
-
# ghcr.io/
|
|
130
|
+
# ghcr.io/belphemur/obsidian-headless-sync-docker:latest`
|
|
131
131
|
: `# Obsidian Sync auth token.`;
|
|
132
132
|
return `# vault-cortex — remote quickstart (Obsidian Sync)
|
|
133
133
|
# Generated by \`npx vault-cortex init\`. Full option reference:
|
package/dist/prompts.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as clack from "@clack/prompts";
|
|
2
2
|
// User pressed ctrl-C mid-prompt: 130 = 128 + SIGINT, the shell convention.
|
|
3
|
+
// clack.isCancel is a type guard (value is symbol), so after the early exit
|
|
4
|
+
// TypeScript narrows `value` to `T` — no assertion needed.
|
|
3
5
|
const exitOnCancel = (value) => {
|
|
4
6
|
if (clack.isCancel(value)) {
|
|
5
7
|
clack.cancel("Cancelled.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vault-cortex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"note-taking",
|
|
38
38
|
"second-brain",
|
|
39
39
|
"hybrid-search",
|
|
40
|
+
"task-management",
|
|
40
41
|
"semantic-search",
|
|
41
42
|
"cross-encoder",
|
|
42
43
|
"reranking",
|
|
@@ -13,8 +13,9 @@ name: vault-cortex
|
|
|
13
13
|
|
|
14
14
|
services:
|
|
15
15
|
obsidian-sync:
|
|
16
|
-
image: ghcr.io/
|
|
16
|
+
image: ghcr.io/belphemur/obsidian-headless-sync-docker:latest
|
|
17
17
|
container_name: obsidian-sync
|
|
18
|
+
hostname: ${DEVICE_NAME:-vault-cortex}
|
|
18
19
|
restart: unless-stopped
|
|
19
20
|
environment:
|
|
20
21
|
OBSIDIAN_AUTH_TOKEN: "${OBSIDIAN_AUTH_TOKEN:?Set OBSIDIAN_AUTH_TOKEN — see .env.example}"
|