drafted 1.11.27 → 1.11.28
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 +17 -1
- package/package.json +1 -1
package/install-mcp.sh
CHANGED
|
@@ -215,7 +215,23 @@ export PATH="$HOME/.drafted/npm-global/bin:$PATH"
|
|
|
215
215
|
|
|
216
216
|
step "Installing Drafted"
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
# Retry with back-off: a fresh `npm publish` can briefly 404/ETARGET on the CDN
|
|
219
|
+
# edge before the tarball propagates, so an updater that fires the instant a new
|
|
220
|
+
# version lands would otherwise report a spurious "update failed". Ride it out.
|
|
221
|
+
install_drafted_pkg() {
|
|
222
|
+
attempts=5; delay=4; n=1
|
|
223
|
+
while :; do
|
|
224
|
+
if npm install -g drafted@latest --force; then return 0; fi
|
|
225
|
+
if [ "$n" -ge "$attempts" ]; then return 1; fi
|
|
226
|
+
echo -e " ${YELLOW}npm install failed (attempt $n/$attempts) — retrying in ${delay}s (a new release may still be propagating to the npm CDN)...${RESET}"
|
|
227
|
+
sleep "$delay"
|
|
228
|
+
n=$((n + 1)); delay=$((delay * 2))
|
|
229
|
+
done
|
|
230
|
+
}
|
|
231
|
+
if ! install_drafted_pkg; then
|
|
232
|
+
echo -e " ${RED}npm install -g drafted@latest failed after multiple attempts.${RESET}"
|
|
233
|
+
exit 1
|
|
234
|
+
fi
|
|
219
235
|
hash -r 2>/dev/null || true
|
|
220
236
|
NPM_ROOT="$(npm root -g 2>/dev/null || true)"
|
|
221
237
|
MCP_SERVER_MODULE="$NPM_ROOT/drafted/mcp/server.mjs"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.28",
|
|
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": [
|