@orangeworks/orangetree 0.4.4 → 0.4.6
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/public/pairing.js +1 -1
- package/dist/server.js +2 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @orangeworks/orangetree
|
|
2
2
|
|
|
3
|
+
## 0.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3314be8: After pairing, the app no longer restarts itself automatically. It keeps running in your terminal and shows a clear message to restart it (stop with Ctrl+C, then run it again) to finish connecting to the cloud — so it is easy to stop and never leaves a hidden background process or popup window. The tunnel connector also no longer opens a console window on Windows.
|
|
8
|
+
|
|
9
|
+
## 0.4.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 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.
|
|
14
|
+
|
|
3
15
|
## 0.4.4
|
|
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 \
|
|
37
|
+
"pair.paired.restart": "\uD074\uB77C\uC6B0\uB4DC \uC801\uC6A9\uC744 \uC704\uD574 \uC571\uC744 \uC7AC\uC2DC\uC791\uD558\uC138\uC694. \uD130\uBBF8\uB110\uC5D0\uC11C Ctrl+C\uB85C \uC885\uB8CC\uD55C \uB4A4 orangetree\uB97C \uB2E4\uC2DC \uC2E4\uD589\uD558\uBA74 \uD074\uB77C\uC6B0\uB4DC\uC5D0\uC11C \uC811\uC18D\uB429\uB2C8\uB2E4. (\uC7AC\uC2DC\uC791 \uC804\uC5D0\uB294 \uB300\uC2DC\uBCF4\uB4DC \u201C\uC5F4\uAE30\u201D\uAC00 \uB3D9\uC791\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.)",
|
|
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": 'Restart the app to activate the cloud connection: stop it (Ctrl+C) and run orangetree again. "Open" from the dashboard works only after you restart.',
|
|
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\u6709\u52B9\u306B\u3059\u308B\u306B\u306F\u30A2\u30D7\u30EA\u3092\u518D\u8D77\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30BF\u30FC\u30DF\u30CA\u30EB\u3067 Ctrl+C \u3067\u7D42\u4E86\u3057\u3001orangetree \u3092\u518D\u5B9F\u884C\u3057\u307E\u3059\u3002\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u306E\u300C\u958B\u304F\u300D\u306F\u52D5\u4F5C\u3057\u307E\u305B\u3093\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/public/pairing.js
CHANGED
|
@@ -72,7 +72,7 @@ function openPairingPanel() {
|
|
|
72
72
|
} else if (s.phase === "paired") {
|
|
73
73
|
bodyHtml = `<p class="ui-msg"><b>${esc(t("pair.paired.title"))}</b></p>
|
|
74
74
|
${s.accessUrl ? `<div class="ui-hint">${esc(t("pair.paired.url"))}</div><div class="pair-url"><a href="${esc(s.accessUrl)}" target="_blank" rel="noopener">${esc(s.accessUrl)}</a></div>` : ""}
|
|
75
|
-
${s.needsRestart ? `<
|
|
75
|
+
${s.needsRestart ? `<p class="ui-msg"><b>\u26A0 ${esc(t("pair.paired.restart"))}</b></p>` : ""}`;
|
|
76
76
|
} else {
|
|
77
77
|
bodyHtml = `<p class="ui-msg">${esc(failureMessage(s.error))}</p>`;
|
|
78
78
|
}
|
package/dist/server.js
CHANGED
|
@@ -8,8 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
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
|
-
import {
|
|
12
|
-
import { existsSync as existsSync9, readFileSync as readFileSync4, openSync } from "node:fs";
|
|
11
|
+
import { existsSync as existsSync9, readFileSync as readFileSync4 } from "node:fs";
|
|
13
12
|
import { homedir as homedir3 } from "node:os";
|
|
14
13
|
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
14
|
import { fileURLToPath } from "node:url";
|
|
@@ -16488,7 +16487,7 @@ var NewtManager = class {
|
|
|
16488
16487
|
const args = this.opts.buildArgs(this.opts.credentials, this.opts.upstreamPort);
|
|
16489
16488
|
let child;
|
|
16490
16489
|
try {
|
|
16491
|
-
child = spawn(this.opts.binPath, args, { stdio: ["ignore", "pipe", "pipe"] });
|
|
16490
|
+
child = spawn(this.opts.binPath, args, { stdio: ["ignore", "pipe", "pipe"], windowsHide: true });
|
|
16492
16491
|
} catch (err) {
|
|
16493
16492
|
this.onExit(`spawn threw: ${err.message}`);
|
|
16494
16493
|
return;
|
|
@@ -17863,37 +17862,6 @@ async function startNewt(upstreamPort) {
|
|
|
17863
17862
|
newtStarting = false;
|
|
17864
17863
|
}
|
|
17865
17864
|
}
|
|
17866
|
-
var relaunching = false;
|
|
17867
|
-
function relaunch() {
|
|
17868
|
-
if (relaunching) return;
|
|
17869
|
-
relaunching = true;
|
|
17870
|
-
console.log("[pair] config changed \u2014 relaunching to apply cloud remote mode.");
|
|
17871
|
-
let spawned = false;
|
|
17872
|
-
const spawnChild = () => {
|
|
17873
|
-
if (spawned) return;
|
|
17874
|
-
spawned = true;
|
|
17875
|
-
const env = { ...process.env };
|
|
17876
|
-
for (const k of ["OTREE_ROOT", "OTREE_REMOTE_AUTH", "OTREE_CLOUD_API", "OTREE_BIND", "OTREE_OPEN"]) {
|
|
17877
|
-
delete env[k];
|
|
17878
|
-
}
|
|
17879
|
-
env.OTREE_PORT = String(resolvedPort || PORT);
|
|
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 });
|
|
17887
|
-
child.unref();
|
|
17888
|
-
setTimeout(() => process.exit(0), 100);
|
|
17889
|
-
};
|
|
17890
|
-
void (newtManager?.stop() ?? Promise.resolve()).finally(() => {
|
|
17891
|
-
newtManager = null;
|
|
17892
|
-
server.close(spawnChild);
|
|
17893
|
-
server.closeAllConnections();
|
|
17894
|
-
setTimeout(spawnChild, 2e3).unref();
|
|
17895
|
-
});
|
|
17896
|
-
}
|
|
17897
17865
|
function cloudApiBase() {
|
|
17898
17866
|
const v = process.env.OTREE_CLOUD_API?.trim();
|
|
17899
17867
|
return v && /^https?:\/\//i.test(v) ? v : null;
|
|
@@ -17925,7 +17893,6 @@ async function onPaired(r) {
|
|
|
17925
17893
|
});
|
|
17926
17894
|
const needsRestart = !remoteSession || pairingCloudBase() !== remoteCfg.cloudApiBase;
|
|
17927
17895
|
if (needsRestart) {
|
|
17928
|
-
setTimeout(() => relaunch(), 2500);
|
|
17929
17896
|
return true;
|
|
17930
17897
|
}
|
|
17931
17898
|
if (remoteCfg.mode === "remote") {
|
package/package.json
CHANGED