drafted 1.14.4 → 1.14.5
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/mcp/server.mjs +7 -4
- package/package.json +1 -1
package/mcp/server.mjs
CHANGED
|
@@ -1524,10 +1524,13 @@ async function launchDesktopSignin() {
|
|
|
1524
1524
|
if (!bin) return false;
|
|
1525
1525
|
try {
|
|
1526
1526
|
const { spawn } = await import('child_process');
|
|
1527
|
-
// If the app
|
|
1528
|
-
//
|
|
1529
|
-
//
|
|
1530
|
-
|
|
1527
|
+
// If the app isn't running, the fresh primary instance honors DRAFTED_OPEN_LOGIN=1 (env var)
|
|
1528
|
+
// and opens sign-in on boot. If it's already running (the common case — macOS KeepAlive
|
|
1529
|
+
// normally guarantees it), tauri-plugin-single-instance forwards this launch's ARGV to the
|
|
1530
|
+
// running instance but never its env, so the env var alone would be silently dropped and the
|
|
1531
|
+
// already-running instance would just refocus its window without opening sign-in — pass
|
|
1532
|
+
// --open-login as an actual arg so that path honors the request too.
|
|
1533
|
+
const child = spawn(bin, ['--open-login'], {
|
|
1531
1534
|
detached: true,
|
|
1532
1535
|
stdio: 'ignore',
|
|
1533
1536
|
env: { ...process.env, DRAFTED_OPEN_LOGIN: '1' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drafted",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.5",
|
|
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": [
|