vault-cortex 0.2.6 → 0.2.7

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/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/belphemur/obsidian-headless-sync-docker:latest";
3
+ export const OBSIDIAN_SYNC_IMAGE = "ghcr.io/aliasunder/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
@@ -56,8 +56,8 @@ const REMOTE_OPTIONAL_BLOCK = `# Optional ────────────
56
56
  # Device name shown in Obsidian Sync settings.
57
57
  # DEVICE_NAME=vault-cortex
58
58
 
59
- # Obsidian Sync conflict resolution: merge | ours | theirs (default: merge).
60
- # CONFLICT_STRATEGY=merge
59
+ # Obsidian Sync conflict resolution: merge | conflict (default: conflict).
60
+ # CONFLICT_STRATEGY=conflict
61
61
 
62
62
  # Sync direction: bidirectional | pull-only | push-only (default: bidirectional).
63
63
  # SYNC_MODE=bidirectional
@@ -85,7 +85,7 @@ VAULT_PASSWORD=${answers.vaultPassword}`;
85
85
  ? `# Obsidian Sync auth token — FILL THIS IN before docker compose up.
86
86
  # Generate once with:
87
87
  # docker run --rm -it --entrypoint get-token \\
88
- # ghcr.io/belphemur/obsidian-headless-sync-docker:latest`
88
+ # ghcr.io/aliasunder/obsidian-headless-sync-docker:latest`
89
89
  : `# Obsidian Sync auth token.`;
90
90
  return `# vault-cortex — remote quickstart (Obsidian Sync)
91
91
  # Generated by \`npx vault-cortex init\`. Full option reference:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-cortex",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
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",
@@ -1,7 +1,7 @@
1
1
  # vault-cortex — remote quickstart (Obsidian Sync)
2
2
  #
3
3
  # Run vault-cortex on a VPS with Obsidian Sync for remote access from any device.
4
- # Three services: init-config-perms → obsidian-sync → vault-mcp.
4
+ # Two services: obsidian-sync → vault-mcp.
5
5
  #
6
6
  # 1. cp .env.example .env (then fill in required values)
7
7
  # 2. docker compose up -d
@@ -12,25 +12,10 @@
12
12
  name: vault-cortex
13
13
 
14
14
  services:
15
- # Workaround: the upstream Dockerfile creates /home/obsidian/.config as
16
- # root. Docker named volumes inherit this root ownership, so the obsidian
17
- # user (UID 1000) can't write sync state. This init container chowns the
18
- # volume before obsidian-sync starts.
19
- # Remove when upstream fixes: github.com/Belphemur/obsidian-headless-sync-docker
20
- init-config-perms:
21
- image: alpine:latest
22
- command: sh -c "chown -R ${PUID:-1000}:${PGID:-1000} /config"
23
- volumes:
24
- - obsidian_config:/config
25
- restart: "no"
26
-
27
15
  obsidian-sync:
28
- image: ghcr.io/belphemur/obsidian-headless-sync-docker:latest
16
+ image: ghcr.io/aliasunder/obsidian-headless-sync-docker:latest
29
17
  container_name: obsidian-sync
30
18
  restart: unless-stopped
31
- depends_on:
32
- init-config-perms:
33
- condition: service_completed_successfully
34
19
  environment:
35
20
  OBSIDIAN_AUTH_TOKEN: "${OBSIDIAN_AUTH_TOKEN:?Set OBSIDIAN_AUTH_TOKEN — see .env.example}"
36
21
  VAULT_NAME: "${VAULT_NAME:?Set VAULT_NAME to your Obsidian vault name (case-sensitive)}"
@@ -38,7 +23,7 @@ services:
38
23
  PUID: ${PUID:-1000}
39
24
  PGID: ${PGID:-1000}
40
25
  DEVICE_NAME: ${DEVICE_NAME:-vault-cortex}
41
- CONFLICT_STRATEGY: ${CONFLICT_STRATEGY:-merge}
26
+ CONFLICT_STRATEGY: ${CONFLICT_STRATEGY:-conflict}
42
27
  SYNC_MODE: ${SYNC_MODE:-bidirectional}
43
28
  TZ: ${TZ:-UTC}
44
29
  volumes: