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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +2 -2
- package/README.md +7 -1
- package/build/cli.js +7 -4
- package/build/executor.d.ts +1 -0
- package/build/executor.js +42 -10
- package/build/runtime.d.ts +2 -1
- package/build/runtime.js +10 -0
- package/build/server.js +37 -71
- package/build/store.js +8 -7
- package/package.json +6 -2
- package/server.bundle.mjs +63 -57
- package/skills/doctor/SKILL.md +1 -1
- package/skills/upgrade/SKILL.md +1 -1
- package/start.sh +3 -2
package/skills/doctor/SKILL.md
CHANGED
|
@@ -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
|
-
|
|
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
|
```
|
package/skills/upgrade/SKILL.md
CHANGED
|
@@ -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
|
-
|
|
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
|