@tarcisiopgs/lisa 1.23.2 → 1.23.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/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1229,9 +1229,12 @@ var GeminiProvider = class {
|
|
|
1229
1229
|
`
|
|
1230
1230
|
);
|
|
1231
1231
|
}
|
|
1232
|
+
const existingNodeOpts = process.env.NODE_OPTIONS ?? "";
|
|
1233
|
+
const heapFlag = "--max-old-space-size=8192";
|
|
1234
|
+
const nodeOptions = existingNodeOpts.includes("max-old-space-size") ? existingNodeOpts : `${existingNodeOpts} ${heapFlag}`.trim();
|
|
1232
1235
|
const { proc, isPty } = spawnWithPty(command, {
|
|
1233
1236
|
cwd: opts.cwd,
|
|
1234
|
-
env: { ...process.env, ...opts.env }
|
|
1237
|
+
env: { ...process.env, ...opts.env, NODE_OPTIONS: nodeOptions }
|
|
1235
1238
|
});
|
|
1236
1239
|
if (proc.pid) opts.onProcess?.(proc.pid);
|
|
1237
1240
|
const overseer = opts.overseer?.enabled ? startOverseer(proc, opts.cwd, opts.overseer) : null;
|
|
@@ -1599,6 +1602,7 @@ async function runWithFallback(models, prompt, opts) {
|
|
|
1599
1602
|
if (opts.shouldAbort?.()) {
|
|
1600
1603
|
break;
|
|
1601
1604
|
}
|
|
1605
|
+
kanbanEmitter.emit("provider:model-changed", spec.model ?? spec.provider);
|
|
1602
1606
|
const provider = createProvider(spec.provider);
|
|
1603
1607
|
const available = await provider.isAvailable();
|
|
1604
1608
|
if (!available) {
|