reasonix 0.44.1 → 0.44.2-rc.2
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/dist/cli/{chat-TH7VNNCJ.js → chat-YHRGJEPE.js} +2 -2
- package/dist/cli/{chunk-Z4S7EYXG.js → chunk-5KU3SHDP.js} +20 -2
- package/dist/cli/{chunk-Z4S7EYXG.js.map → chunk-5KU3SHDP.js.map} +1 -1
- package/dist/cli/{code-PSVJ3KEN.js → code-ZOLONNDE.js} +2 -2
- package/dist/cli/index.js +3 -3
- package/package.json +6 -6
- /package/dist/cli/{chat-TH7VNNCJ.js.map → chat-YHRGJEPE.js.map} +0 -0
- /package/dist/cli/{code-PSVJ3KEN.js.map → code-ZOLONNDE.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as __cr } from 'node:module'; if (typeof globalThis.require === 'undefined') { globalThis.require = __cr(import.meta.url); }
|
|
3
3
|
import {
|
|
4
4
|
chatCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5KU3SHDP.js";
|
|
6
6
|
import "./chunk-TKVXTQ3T.js";
|
|
7
7
|
import "./chunk-JMBMLOBP.js";
|
|
8
8
|
import "./chunk-2V6EAEUW.js";
|
|
@@ -48,4 +48,4 @@ import "./chunk-TUK7OWJA.js";
|
|
|
48
48
|
export {
|
|
49
49
|
chatCommand
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chat-
|
|
51
|
+
//# sourceMappingURL=chat-YHRGJEPE.js.map
|
|
@@ -44813,6 +44813,12 @@ function spawnRenderer(opts) {
|
|
|
44813
44813
|
child.once("exit", (code) => {
|
|
44814
44814
|
exited = true;
|
|
44815
44815
|
resolve3(code);
|
|
44816
|
+
if (opts.integrated && opts.onEvent) {
|
|
44817
|
+
try {
|
|
44818
|
+
opts.onEvent({ event: "exit" });
|
|
44819
|
+
} catch {
|
|
44820
|
+
}
|
|
44821
|
+
}
|
|
44816
44822
|
});
|
|
44817
44823
|
});
|
|
44818
44824
|
child.stdin?.on("error", () => {
|
|
@@ -44987,6 +44993,9 @@ function emitSceneMessage(message) {
|
|
|
44987
44993
|
return;
|
|
44988
44994
|
}
|
|
44989
44995
|
}
|
|
44996
|
+
function ensureSceneTraceReady() {
|
|
44997
|
+
ensureInitialized();
|
|
44998
|
+
}
|
|
44990
44999
|
function ensureInitialized() {
|
|
44991
45000
|
if (state.opened) return;
|
|
44992
45001
|
state.opened = true;
|
|
@@ -44999,7 +45008,12 @@ function ensureInitialized() {
|
|
|
44999
45008
|
}
|
|
45000
45009
|
if (process.env[RENDERER_VAR] === "node") return;
|
|
45001
45010
|
const { command, source } = resolveRenderer();
|
|
45002
|
-
if (source === null || command.length === 0)
|
|
45011
|
+
if (source === null || command.length === 0) {
|
|
45012
|
+
process.stderr.write(
|
|
45013
|
+
"\u25B2 trace.ts: resolveRenderer() returned no usable command \u2014 scene trace stays off. Check optional-dep install (`ls node_modules/@reasonix/render-*`) or set REASONIX_RENDER_BIN.\n"
|
|
45014
|
+
);
|
|
45015
|
+
return;
|
|
45016
|
+
}
|
|
45003
45017
|
const integrated = process.env[INTEGRATED_VAR] !== "0";
|
|
45004
45018
|
state.mode = "child";
|
|
45005
45019
|
state.child = spawnRenderer({
|
|
@@ -63728,6 +63742,8 @@ async function chatCommand(opts) {
|
|
|
63728
63742
|
const rustInputChild = rustRendererActive && !rustIntegrated && resolved ? createRustKeystrokeReader({ command: resolved.inputCommand }) : void 0;
|
|
63729
63743
|
const keystrokeReader = rustIntegrated ? nullKeystrokeReader : rustInputChild;
|
|
63730
63744
|
const stderrRestore = rustRendererActive ? redirectStderrToLogFile() : void 0;
|
|
63745
|
+
const rustKeepAlive = rustRendererActive ? setInterval(() => {
|
|
63746
|
+
}, 2147483647) : void 0;
|
|
63731
63747
|
if (rustIntegrated) {
|
|
63732
63748
|
setIntegratedEventHandler((event) => {
|
|
63733
63749
|
if (event.event === "submit") {
|
|
@@ -63753,6 +63769,7 @@ async function chatCommand(opts) {
|
|
|
63753
63769
|
resolveListPicker(event.id, event.cancelled ? null : event.key ?? null);
|
|
63754
63770
|
}
|
|
63755
63771
|
});
|
|
63772
|
+
ensureSceneTraceReady();
|
|
63756
63773
|
}
|
|
63757
63774
|
const { waitUntilExit } = render_default(
|
|
63758
63775
|
/* @__PURE__ */ import_react92.default.createElement(
|
|
@@ -63799,6 +63816,7 @@ async function chatCommand(opts) {
|
|
|
63799
63816
|
try {
|
|
63800
63817
|
await waitUntilExit();
|
|
63801
63818
|
} finally {
|
|
63819
|
+
if (rustKeepAlive) clearInterval(rustKeepAlive);
|
|
63802
63820
|
await runtime.closeAll();
|
|
63803
63821
|
qqChannel?.stop();
|
|
63804
63822
|
if (rustInputChild) await rustInputChild.close();
|
|
@@ -63810,4 +63828,4 @@ async function chatCommand(opts) {
|
|
|
63810
63828
|
export {
|
|
63811
63829
|
chatCommand
|
|
63812
63830
|
};
|
|
63813
|
-
//# sourceMappingURL=chunk-
|
|
63831
|
+
//# sourceMappingURL=chunk-5KU3SHDP.js.map
|