llm-wiki-stack 1.0.0 → 1.0.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/bin/setup.sh +20 -1
  2. package/package.json +1 -1
package/bin/setup.sh CHANGED
@@ -1,7 +1,26 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- SKILLS_SRC="$(cd "$(dirname "$0")/../skills" && pwd)"
4
+ # Resolve the real package root, even when invoked via npx symlink chain.
5
+ # npx creates .bin/<cmd> -> ../<pkg>/bin/setup.sh, so $0 is the symlink.
6
+ resolve_script() {
7
+ local target="$1"
8
+ local max_depth=10
9
+ while [ -L "$target" ] && [ "$max_depth" -gt 0 ]; do
10
+ local link
11
+ link="$(readlink "$target")"
12
+ case "$link" in
13
+ /*) target="$link" ;;
14
+ *) target="$(cd "$(dirname "$target")" && pwd)/$link" ;;
15
+ esac
16
+ max_depth=$((max_depth - 1))
17
+ done
18
+ echo "$target"
19
+ }
20
+
21
+ SCRIPT="$(resolve_script "$0")"
22
+ PKG_ROOT="$(cd "$(dirname "$SCRIPT")/.." && pwd)"
23
+ SKILLS_SRC="$PKG_ROOT/skills"
5
24
  SKILLS_DST="${HOME}/.claude/skills"
6
25
 
7
26
  echo "llm-wiki-stack installer"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-wiki-stack",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Obsidian knowledge base compiler — three-layer architecture (raw → wiki → outputs) with concept evolution, cross-reference integrity, and health checks. Command-driven, AI-maintained, plain Markdown.",
5
5
  "license": "MIT",
6
6
  "bin": {