context-mode 0.7.3 → 0.8.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.
@@ -16,7 +16,7 @@ Run diagnostics and display results directly in the conversation.
16
16
  1. Derive the **plugin root** from this skill's base directory (go up 2 levels — remove `/skills/doctor`).
17
17
  2. Run with Bash:
18
18
  ```
19
- node "<PLUGIN_ROOT>/build/cli.js" doctor
19
+ npx tsx "<PLUGIN_ROOT>/src/cli.ts" doctor
20
20
  ```
21
21
  3. **IMPORTANT**: After the Bash tool completes, re-display the key results as markdown text directly in the conversation so the user sees them without expanding the tool output. Format as a checklist:
22
22
  ```
@@ -16,7 +16,7 @@ Pull latest from GitHub and reinstall the plugin.
16
16
  1. Derive the **plugin root** from this skill's base directory (go up 2 levels — remove `/skills/upgrade`).
17
17
  2. Run with Bash:
18
18
  ```
19
- node "<PLUGIN_ROOT>/build/cli.js" upgrade
19
+ npx tsx "<PLUGIN_ROOT>/src/cli.ts" upgrade
20
20
  ```
21
21
  3. **IMPORTANT**: After the Bash tool completes, re-display the key results as markdown text directly in the conversation so the user sees them without expanding the tool output. Format as:
22
22
  ```
package/start.sh CHANGED
@@ -1,14 +1,15 @@
1
1
  #!/bin/sh
2
+ CLAUDE_PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$(pwd)}"
2
3
  DIR="$(cd "$(dirname "$0")" && pwd)"
3
4
  cd "$DIR"
4
5
 
5
6
  # Bundle exists (CI-built) — start instantly, install native module in background
6
7
  if [ -f server.bundle.mjs ]; then
7
8
  [ -d node_modules/better-sqlite3 ] || npm install better-sqlite3 --no-package-lock --no-save --silent 2>/dev/null &
8
- exec node server.bundle.mjs
9
+ CLAUDE_PROJECT_DIR="$CLAUDE_PROJECT_DIR" exec node server.bundle.mjs
9
10
  fi
10
11
 
11
12
  # Fallback: no bundle (dev or npm install) — full build
12
13
  [ -d node_modules ] || npm install --silent 2>/dev/null
13
14
  [ -f build/server.js ] || npx tsc --silent 2>/dev/null
14
- exec node build/server.js
15
+ CLAUDE_PROJECT_DIR="$CLAUDE_PROJECT_DIR" exec node build/server.js