drafted 1.8.1 → 1.8.2
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/install-mcp.sh +8 -1
- package/package.json +1 -1
package/install-mcp.sh
CHANGED
|
@@ -513,7 +513,14 @@ step "Installing skills and commands"
|
|
|
513
513
|
|
|
514
514
|
# Resolve the plugin source: a local checkout when present (e.g. --local from this
|
|
515
515
|
# repo), otherwise the installed npm package's bundled plugin/ directory.
|
|
516
|
-
|
|
516
|
+
# require.resolve() misses packages under the custom global prefix
|
|
517
|
+
# ($HOME/.drafted/npm-global) when run from an arbitrary cwd (curl | bash), so
|
|
518
|
+
# prefer the already-computed global node_modules root from the install step.
|
|
519
|
+
if [ -n "${NPM_ROOT:-}" ] && [ -d "$NPM_ROOT/drafted" ]; then
|
|
520
|
+
DRAFTED_PKG_DIR="$NPM_ROOT/drafted"
|
|
521
|
+
else
|
|
522
|
+
DRAFTED_PKG_DIR="$(node -e "try { console.log(require.resolve('drafted/package.json').replace('/package.json','')) } catch { process.exit(1) }" 2>/dev/null)" || true
|
|
523
|
+
fi
|
|
517
524
|
if [ -d "$SCRIPT_DIR/plugin/skills" ] || [ -d "$SCRIPT_DIR/plugin/commands" ]; then
|
|
518
525
|
PLUGIN_SRC="$SCRIPT_DIR/plugin"
|
|
519
526
|
elif [ -n "$DRAFTED_PKG_DIR" ] && [ -d "$DRAFTED_PKG_DIR/plugin" ]; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Drafted — visual thinking surface for humans and AI agents. Renders HTML, markdown, images, and code as frames on a zoomable canvas, with MCP tools for AI agents and real-time sync for humans.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|