drafted 1.22.3 → 1.22.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 +15 -3
- package/package.json +1 -1
package/install-mcp.sh
CHANGED
|
@@ -712,6 +712,9 @@ retire_legacy_updater() {
|
|
|
712
712
|
# Returns 0 ONLY when a valid Drafted.app is present afterward, so the caller can safely
|
|
713
713
|
# retire the legacy updater. Returns 1 when no new bundle is available yet — the caller then
|
|
714
714
|
# falls back to building the legacy Swift updater, so users are never left without a tray.
|
|
715
|
+
# Developer ID Application: Beoflow B.V. (2D9Q24N9UQ) — the identity desktop/RELEASE.md signs with.
|
|
716
|
+
DESKTOP_SIGNING_REQUIREMENT='anchor apple generic and certificate leaf[subject.OU] = "2D9Q24N9UQ"'
|
|
717
|
+
|
|
715
718
|
install_desktop_app() {
|
|
716
719
|
local install_dir app_bundle app_exe uid plist tmp tarball url
|
|
717
720
|
install_dir="/Applications"
|
|
@@ -729,9 +732,18 @@ install_desktop_app() {
|
|
|
729
732
|
url="${DRAFTED_DESKTOP_URL:-$INSTALL_SERVER/desktop/Drafted-macos.tar.gz}"
|
|
730
733
|
tmp="$(mktemp -d)"
|
|
731
734
|
tarball="$tmp/Drafted-macos.tar.gz"
|
|
732
|
-
if curl -fsSL --max-time 120 "$url" -o "$tarball" >/dev/null 2>&1
|
|
733
|
-
|
|
734
|
-
|
|
735
|
+
if curl -fsSL --max-time 120 "$url" -o "$tarball" >/dev/null 2>&1 \
|
|
736
|
+
&& mkdir -p "$tmp/x" && tar -xzf "$tarball" -C "$tmp/x" >/dev/null 2>&1; then
|
|
737
|
+
# Quarantine is stripped below, so Gatekeeper never checks this bundle: check it
|
|
738
|
+
# here. It must carry an intact Developer ID signature from OUR team; a tampered
|
|
739
|
+
# or re-signed (e.g. ad-hoc) bundle is refused and the installed app is kept
|
|
740
|
+
# (audit 2026-10-13).
|
|
741
|
+
if codesign --verify --deep --strict -R="$DESKTOP_SIGNING_REQUIREMENT" "$tmp/x/Drafted.app" >/dev/null 2>&1; then
|
|
742
|
+
rm -rf "$app_bundle" >/dev/null 2>&1 || true
|
|
743
|
+
mv "$tmp/x/Drafted.app" "$app_bundle" >/dev/null 2>&1 || true
|
|
744
|
+
else
|
|
745
|
+
echo -e " ${YELLOW}Desktop app download failed its signature check; not installing it.${RESET}"
|
|
746
|
+
fi
|
|
735
747
|
fi
|
|
736
748
|
rm -rf "$tmp" >/dev/null 2>&1 || true
|
|
737
749
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.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": [
|