@orangeworks/orangetree 0.4.3 → 0.4.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/CHANGELOG.md +12 -0
- package/dist/public/i18n.js +3 -3
- package/dist/server.js +19 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @orangeworks/orangetree
|
|
2
2
|
|
|
3
|
+
## 0.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 922648b: Connecting to the cloud while a conversation is running no longer interrupts it. The app now waits for the running conversation to finish — or for you to stop it — before restarting to apply the cloud connection.
|
|
8
|
+
|
|
9
|
+
## 0.4.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 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).
|
|
14
|
+
|
|
3
15
|
## 0.4.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/public/i18n.js
CHANGED
|
@@ -34,7 +34,7 @@ const ko = {
|
|
|
34
34
|
"pair.provisioning": "PC\uB97C \uC900\uBE44\uD558\uB294 \uC911",
|
|
35
35
|
"pair.paired.title": "\uC5F0\uACB0 \uC644\uB8CC!",
|
|
36
36
|
"pair.paired.url": "\uC811\uC18D \uC8FC\uC18C",
|
|
37
|
-
"pair.paired.restart": "\uD074\uB77C\uC6B0\uB4DC \uC5F0\uACB0\uC744 \
|
|
37
|
+
"pair.paired.restart": "\uD074\uB77C\uC6B0\uB4DC \uC5F0\uACB0\uC744 \uB9C8\uBB34\uB9AC\uD558\uB294 \uC911\uC785\uB2C8\uB2E4. \uC9C4\uD589 \uC911\uC778 \uB300\uD654\uAC00 \uC788\uC73C\uBA74 \uB05D\uB098\uAC70\uB098 \uC815\uC9C0\uD55C \uB4A4 \uC571\uC774 \uC790\uB3D9\uC73C\uB85C \uB2E4\uC2DC \uC2DC\uC791\uB429\uB2C8\uB2E4. \uC7A0\uC2DC \uD6C4 \uB300\uC2DC\uBCF4\uB4DC\uC758 \u201C\uC5F0\uACB0 PC\u201D\uC5D0\uC11C \uC5F4\uC5B4 \uC8FC\uC138\uC694.",
|
|
38
38
|
"pair.retry": "\uB2E4\uC2DC \uC2DC\uB3C4",
|
|
39
39
|
"pair.start.fail": "\uC5F0\uACB0\uC744 \uC2DC\uC791\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
|
|
40
40
|
"pair.failed.denied": "\uC2B9\uC778\uC774 \uAC70\uBD80\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
@@ -338,7 +338,7 @@ const en = {
|
|
|
338
338
|
"pair.provisioning": "Preparing your PC",
|
|
339
339
|
"pair.paired.title": "Connected!",
|
|
340
340
|
"pair.paired.url": "Access URL",
|
|
341
|
-
"pair.paired.restart": "
|
|
341
|
+
"pair.paired.restart": "Finishing the cloud connection. If a conversation is running, the app will auto-restart after it finishes or you stop it, then open this PC from the dashboard.",
|
|
342
342
|
"pair.retry": "Try again",
|
|
343
343
|
"pair.start.fail": "Could not start the connection.",
|
|
344
344
|
"pair.failed.denied": "The request was denied.",
|
|
@@ -638,7 +638,7 @@ const ja = {
|
|
|
638
638
|
"pair.provisioning": "PC\u3092\u6E96\u5099\u4E2D",
|
|
639
639
|
"pair.paired.title": "\u63A5\u7D9A\u5B8C\u4E86\uFF01",
|
|
640
640
|
"pair.paired.url": "\u30A2\u30AF\u30BB\u30B9URL",
|
|
641
|
-
"pair.paired.restart": "\u30AF\u30E9\u30A6\u30C9\u63A5\u7D9A\u3092\
|
|
641
|
+
"pair.paired.restart": "\u30AF\u30E9\u30A6\u30C9\u63A5\u7D9A\u3092\u4ED5\u4E0A\u3052\u3066\u3044\u307E\u3059\u3002\u4F1A\u8A71\u304C\u5B9F\u884C\u4E2D\u306E\u5834\u5408\u306F\u3001\u7D42\u4E86\u3059\u308B\u304B\u505C\u6B62\u3057\u305F\u5F8C\u306B\u30A2\u30D7\u30EA\u304C\u81EA\u52D5\u7684\u306B\u518D\u8D77\u52D5\u3057\u307E\u3059\u3002\u305D\u306E\u5F8C\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3067\u3053\u306EPC\u3092\u958B\u3044\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
642
642
|
"pair.retry": "\u518D\u8A66\u884C",
|
|
643
643
|
"pair.start.fail": "\u63A5\u7D9A\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
644
644
|
"pair.failed.denied": "\u627F\u8A8D\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002",
|
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
|
-
|
|
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
|
};
|
|
@@ -17888,6 +17894,16 @@ function relaunch() {
|
|
|
17888
17894
|
setTimeout(spawnChild, 2e3).unref();
|
|
17889
17895
|
});
|
|
17890
17896
|
}
|
|
17897
|
+
var relaunchArmed = false;
|
|
17898
|
+
function relaunchWhenIdle() {
|
|
17899
|
+
if (relaunchArmed) return;
|
|
17900
|
+
relaunchArmed = true;
|
|
17901
|
+
const tick = () => {
|
|
17902
|
+
if (sessions.busy.size === 0) setTimeout(() => relaunch(), 2500);
|
|
17903
|
+
else setTimeout(tick, 1e3);
|
|
17904
|
+
};
|
|
17905
|
+
tick();
|
|
17906
|
+
}
|
|
17891
17907
|
function cloudApiBase() {
|
|
17892
17908
|
const v = process.env.OTREE_CLOUD_API?.trim();
|
|
17893
17909
|
return v && /^https?:\/\//i.test(v) ? v : null;
|
|
@@ -17919,7 +17935,7 @@ async function onPaired(r) {
|
|
|
17919
17935
|
});
|
|
17920
17936
|
const needsRestart = !remoteSession || pairingCloudBase() !== remoteCfg.cloudApiBase;
|
|
17921
17937
|
if (needsRestart) {
|
|
17922
|
-
|
|
17938
|
+
relaunchWhenIdle();
|
|
17923
17939
|
return true;
|
|
17924
17940
|
}
|
|
17925
17941
|
if (remoteCfg.mode === "remote") {
|
package/package.json
CHANGED