@orangeworks/orangetree 0.4.3 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orangeworks/orangetree
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fc66b51: Fix the automatic restart after pairing crashing on Windows. In 0.4.3 the app relaunched itself to finish connecting, but the restarted process exited instead of coming back — leaving the app down and the cloud "Open" failing. The relaunched app now survives and connects reliably (its output goes to a log file under the data folder).
8
+
3
9
  ## 0.4.3
4
10
 
5
11
  ### Patch Changes
package/dist/server.js CHANGED
@@ -9,7 +9,7 @@ import { createServer as createServer2 } from "node:http";
9
9
  import { readFile, readdir, writeFile, mkdir as mkdir2 } from "node:fs/promises";
10
10
  import { randomUUID as randomUUID2 } from "node:crypto";
11
11
  import { spawn as spawn2 } from "node:child_process";
12
- import { existsSync as existsSync9, readFileSync as readFileSync4 } from "node:fs";
12
+ import { existsSync as existsSync9, readFileSync as readFileSync4, openSync } from "node:fs";
13
13
  import { homedir as homedir3 } from "node:os";
14
14
  import { join as join9, extname, normalize as normalize5, basename as basename3, dirname as dirname6, relative as relative3, isAbsolute as isAbsolute3, sep as sep2 } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
@@ -17877,7 +17877,13 @@ function relaunch() {
17877
17877
  delete env[k];
17878
17878
  }
17879
17879
  env.OTREE_PORT = String(resolvedPort || PORT);
17880
- const child = spawn2(process.execPath, process.argv.slice(1), { detached: true, stdio: "inherit", env });
17880
+ let stdio = "ignore";
17881
+ try {
17882
+ const logFd = openSync(join9(appData.root, "relaunch.log"), "a");
17883
+ stdio = ["ignore", logFd, logFd];
17884
+ } catch {
17885
+ }
17886
+ const child = spawn2(process.execPath, process.argv.slice(1), { detached: true, stdio, windowsHide: true, env });
17881
17887
  child.unref();
17882
17888
  setTimeout(() => process.exit(0), 100);
17883
17889
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangeworks/orangetree",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Branching session-tree work-tracking tool (local-first, TypeScript)",
5
5
  "author": "OrangeWorks <support@orangeworks.kr>",
6
6
  "repository": {