drafted 1.12.3 → 1.12.4
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 +10 -1
- package/package.json +1 -1
package/install-mcp.sh
CHANGED
|
@@ -692,6 +692,13 @@ install_desktop_app() {
|
|
|
692
692
|
# Clear quarantine so Gatekeeper doesn't block a freshly downloaded bundle.
|
|
693
693
|
xattr -dr com.apple.quarantine "$app_bundle" >/dev/null 2>&1 || true
|
|
694
694
|
|
|
695
|
+
# Kill any already-running instance first — including a stray one that isn't
|
|
696
|
+
# launchd-managed (e.g. left over from a prior run of this same installer,
|
|
697
|
+
# before this pkill existed: `open` below used to spawn a second, untracked
|
|
698
|
+
# process alongside the launchd-supervised one, and `launchctl bootout` only
|
|
699
|
+
# ever stops the launchd-managed process, not that rogue one).
|
|
700
|
+
pkill -x "$exe_name" >/dev/null 2>&1 || true
|
|
701
|
+
|
|
695
702
|
# Register run-at-login for the new app (mirrors the legacy launch agent).
|
|
696
703
|
uid="$(id -u)"
|
|
697
704
|
plist="$HOME/Library/LaunchAgents/live.drafted.desktop.plist"
|
|
@@ -714,9 +721,11 @@ install_desktop_app() {
|
|
|
714
721
|
</dict>
|
|
715
722
|
</plist>
|
|
716
723
|
PLIST
|
|
724
|
+
# launchctl bootstrap + RunAtLoad is the sole launch path — it already starts
|
|
725
|
+
# the app, so a trailing `open "$app_bundle"` here would start a second,
|
|
726
|
+
# launchd-unaware process every time this function runs (that was the bug).
|
|
717
727
|
launchctl bootout "gui/$uid" "$plist" >/dev/null 2>&1 || true
|
|
718
728
|
launchctl bootstrap "gui/$uid" "$plist" >/dev/null 2>&1 || true
|
|
719
|
-
open "$app_bundle" >/dev/null 2>&1 || true
|
|
720
729
|
return 0
|
|
721
730
|
}
|
|
722
731
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.4",
|
|
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": [
|