reasonix 0.44.2-rc.1 → 0.44.2-rc.3
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-X2WVADEO.js → chat-EOQOUJEI.js} +2 -2
- package/dist/cli/{chunk-WF6BGFJH.js → chunk-DEXMJP2L.js} +36 -3
- package/dist/cli/{chunk-WF6BGFJH.js.map → chunk-DEXMJP2L.js.map} +1 -1
- package/dist/cli/{code-XLW74VSJ.js → code-TGHMGAHI.js} +2 -2
- package/dist/cli/index.js +3 -3
- package/package.json +6 -6
- /package/dist/cli/{chat-X2WVADEO.js.map → chat-EOQOUJEI.js.map} +0 -0
- /package/dist/cli/{code-XLW74VSJ.js.map → code-TGHMGAHI.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-DEXMJP2L.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-EOQOUJEI.js.map
|
|
@@ -44808,11 +44808,28 @@ function spawnRenderer(opts) {
|
|
|
44808
44808
|
env: opts.env ?? process.env,
|
|
44809
44809
|
stdio: ["pipe", "inherit", stderrStdio]
|
|
44810
44810
|
});
|
|
44811
|
+
child.on("error", (err) => {
|
|
44812
|
+
process.stderr.write(`[spawnRenderer] child error: ${err.message}
|
|
44813
|
+
`);
|
|
44814
|
+
});
|
|
44811
44815
|
let exited = false;
|
|
44816
|
+
let aliveMs = 0;
|
|
44817
|
+
const spawnedAt = Date.now();
|
|
44812
44818
|
const exitPromise = new Promise((resolve3) => {
|
|
44813
|
-
child.once("exit", (code) => {
|
|
44819
|
+
child.once("exit", (code, signal) => {
|
|
44814
44820
|
exited = true;
|
|
44821
|
+
aliveMs = Date.now() - spawnedAt;
|
|
44822
|
+
process.stderr.write(
|
|
44823
|
+
`[spawnRenderer] child exit: code=${code} signal=${signal} aliveMs=${aliveMs}
|
|
44824
|
+
`
|
|
44825
|
+
);
|
|
44815
44826
|
resolve3(code);
|
|
44827
|
+
if (opts.integrated && opts.onEvent && aliveMs >= 1500) {
|
|
44828
|
+
try {
|
|
44829
|
+
opts.onEvent({ event: "exit" });
|
|
44830
|
+
} catch {
|
|
44831
|
+
}
|
|
44832
|
+
}
|
|
44816
44833
|
});
|
|
44817
44834
|
});
|
|
44818
44835
|
child.stdin?.on("error", () => {
|
|
@@ -44833,9 +44850,12 @@ function spawnRenderer(opts) {
|
|
|
44833
44850
|
const parsed = JSON.parse(line);
|
|
44834
44851
|
if (parsed && typeof parsed.event === "string") {
|
|
44835
44852
|
opts.onEvent?.(parsed);
|
|
44853
|
+
continue;
|
|
44836
44854
|
}
|
|
44837
44855
|
} catch {
|
|
44838
44856
|
}
|
|
44857
|
+
process.stderr.write(`[rust-stderr] ${line}
|
|
44858
|
+
`);
|
|
44839
44859
|
}
|
|
44840
44860
|
});
|
|
44841
44861
|
}
|
|
@@ -44987,6 +45007,9 @@ function emitSceneMessage(message) {
|
|
|
44987
45007
|
return;
|
|
44988
45008
|
}
|
|
44989
45009
|
}
|
|
45010
|
+
function ensureSceneTraceReady() {
|
|
45011
|
+
ensureInitialized();
|
|
45012
|
+
}
|
|
44990
45013
|
function ensureInitialized() {
|
|
44991
45014
|
if (state.opened) return;
|
|
44992
45015
|
state.opened = true;
|
|
@@ -44999,8 +45022,17 @@ function ensureInitialized() {
|
|
|
44999
45022
|
}
|
|
45000
45023
|
if (process.env[RENDERER_VAR] === "node") return;
|
|
45001
45024
|
const { command, source } = resolveRenderer();
|
|
45002
|
-
|
|
45025
|
+
process.stderr.write(`[trace] resolver source=${source} command=${JSON.stringify(command)}
|
|
45026
|
+
`);
|
|
45027
|
+
if (source === null || command.length === 0) {
|
|
45028
|
+
process.stderr.write(
|
|
45029
|
+
"\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"
|
|
45030
|
+
);
|
|
45031
|
+
return;
|
|
45032
|
+
}
|
|
45003
45033
|
const integrated = process.env[INTEGRATED_VAR] !== "0";
|
|
45034
|
+
process.stderr.write(`[trace] spawning rust child (integrated=${integrated})
|
|
45035
|
+
`);
|
|
45004
45036
|
state.mode = "child";
|
|
45005
45037
|
state.child = spawnRenderer({
|
|
45006
45038
|
command,
|
|
@@ -63755,6 +63787,7 @@ async function chatCommand(opts) {
|
|
|
63755
63787
|
resolveListPicker(event.id, event.cancelled ? null : event.key ?? null);
|
|
63756
63788
|
}
|
|
63757
63789
|
});
|
|
63790
|
+
ensureSceneTraceReady();
|
|
63758
63791
|
}
|
|
63759
63792
|
const { waitUntilExit } = render_default(
|
|
63760
63793
|
/* @__PURE__ */ import_react92.default.createElement(
|
|
@@ -63813,4 +63846,4 @@ async function chatCommand(opts) {
|
|
|
63813
63846
|
export {
|
|
63814
63847
|
chatCommand
|
|
63815
63848
|
};
|
|
63816
|
-
//# sourceMappingURL=chunk-
|
|
63849
|
+
//# sourceMappingURL=chunk-DEXMJP2L.js.map
|