@tarcisiopgs/lisa 1.23.1 → 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
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) {
|
|
@@ -7414,7 +7418,7 @@ var run = defineCommand6({
|
|
|
7414
7418
|
if (isTTY) {
|
|
7415
7419
|
const { render } = await import("ink");
|
|
7416
7420
|
const { createElement } = await import("react");
|
|
7417
|
-
const { KanbanApp } = await import("./kanban-
|
|
7421
|
+
const { KanbanApp } = await import("./kanban-4RXAHUGZ.js");
|
|
7418
7422
|
const demoConfig = {
|
|
7419
7423
|
provider: "claude",
|
|
7420
7424
|
source: "linear",
|
|
@@ -7497,7 +7501,7 @@ Add them to your ${shell} and run: source ${shell}`));
|
|
|
7497
7501
|
onBeforeExit = () => persistence.stop();
|
|
7498
7502
|
const { render } = await import("ink");
|
|
7499
7503
|
const { createElement } = await import("react");
|
|
7500
|
-
const { KanbanApp } = await import("./kanban-
|
|
7504
|
+
const { KanbanApp } = await import("./kanban-4RXAHUGZ.js");
|
|
7501
7505
|
render(createElement(KanbanApp, { config: merged, initialCards }), { exitOnCtrlC: false });
|
|
7502
7506
|
}
|
|
7503
7507
|
await runLoop(merged, {
|
|
@@ -489,8 +489,11 @@ function IssueDetail({ card, onBack }) {
|
|
|
489
489
|
});
|
|
490
490
|
const { columns: terminalCols, rows: terminalRows } = useTerminalSize();
|
|
491
491
|
const SIDEBAR_TOTAL_WIDTH = 30;
|
|
492
|
-
const bodyRows = Math.max(1, terminalRows - 10);
|
|
493
492
|
const maxLineWidth = Math.max(1, terminalCols - SIDEBAR_TOTAL_WIDTH - 4);
|
|
493
|
+
const prCount = card.prUrls.length > 0 ? card.prUrls.length : 0;
|
|
494
|
+
const logFileRow = card.logFile ? 1 : 0;
|
|
495
|
+
const headerOverhead = 6 + prCount + logFileRow;
|
|
496
|
+
const bodyRows = Math.max(1, terminalRows - headerOverhead);
|
|
494
497
|
const lines = useMemo(() => processOutputLines(card.outputLog), [card.outputLog]);
|
|
495
498
|
const startLine = Math.max(0, lines.length - bodyRows - logScrollOffset);
|
|
496
499
|
const visibleLines = useMemo(
|
|
@@ -544,15 +547,12 @@ function IssueDetail({ card, onBack }) {
|
|
|
544
547
|
] })
|
|
545
548
|
] })
|
|
546
549
|
] }),
|
|
547
|
-
/* @__PURE__ */ jsx4(Box4, { marginTop: 0, children: /* @__PURE__ */ jsx4(Text4, { color: "white", bold: true, children: card.title }) }),
|
|
550
|
+
/* @__PURE__ */ jsx4(Box4, { marginTop: 0, children: /* @__PURE__ */ jsx4(Text4, { color: "white", bold: true, wrap: "truncate", children: truncateLine(card.title, maxLineWidth) }) }),
|
|
548
551
|
card.prUrls.length > 0 && card.prUrls.map((url, i) => /* @__PURE__ */ jsxs4(Box4, { marginTop: 0, children: [
|
|
549
552
|
/* @__PURE__ */ jsx4(Text4, { color: "yellow", dimColor: true, children: card.prUrls.length === 1 ? "PR: " : `PR ${i + 1}: ` }),
|
|
550
|
-
/* @__PURE__ */ jsx4(Text4, { color: "yellow", children: hyperlink(url, url) })
|
|
553
|
+
/* @__PURE__ */ jsx4(Text4, { color: "yellow", wrap: "truncate", children: hyperlink(url, truncateLine(url, maxLineWidth - 5)) })
|
|
551
554
|
] }, url)),
|
|
552
|
-
card.logFile && /* @__PURE__ */
|
|
553
|
-
/* @__PURE__ */ jsx4(Text4, { color: "gray", dimColor: true, children: "LOG: " }),
|
|
554
|
-
/* @__PURE__ */ jsx4(Text4, { color: "gray", children: card.logFile })
|
|
555
|
-
] }),
|
|
555
|
+
card.logFile && /* @__PURE__ */ jsx4(Box4, { marginTop: 0, children: /* @__PURE__ */ jsx4(Text4, { color: "gray", dimColor: true, wrap: "truncate", children: `LOG: ${truncateLine(card.logFile, maxLineWidth - 5)}` }) }),
|
|
556
556
|
/* @__PURE__ */ jsx4(Box4, { children: /* @__PURE__ */ jsx4(Text4, { color: "yellow", dimColor: true, children: separator }) }),
|
|
557
557
|
/* @__PURE__ */ jsxs4(Box4, { flexDirection: "row", justifyContent: "space-between", children: [
|
|
558
558
|
/* @__PURE__ */ jsxs4(Box4, { flexDirection: "row", children: [
|
|
@@ -562,7 +562,7 @@ function IssueDetail({ card, onBack }) {
|
|
|
562
562
|
userScrolled && /* @__PURE__ */ jsx4(Text4, { color: "yellow", dimColor: true, children: scrollBar(scrollPctNum) }),
|
|
563
563
|
!userScrolled && totalLines > bodyRows && /* @__PURE__ */ jsx4(Text4, { color: "gray", dimColor: true, children: "live" })
|
|
564
564
|
] }),
|
|
565
|
-
/* @__PURE__ */ jsx4(Box4, {
|
|
565
|
+
/* @__PURE__ */ jsx4(Box4, { height: bodyRows, flexDirection: "column", overflow: "hidden", children: card.outputLog.length === 0 ? /* @__PURE__ */ jsxs4(Box4, { flexDirection: "row", marginTop: 1, children: [
|
|
566
566
|
/* @__PURE__ */ jsx4(Text4, { color: "yellow", children: /* @__PURE__ */ jsx4(Spinner2, { type: "dots" }) }),
|
|
567
567
|
/* @__PURE__ */ jsx4(Text4, { color: "gray", dimColor: true, children: " Waiting for provider output..." })
|
|
568
568
|
] }) : visibleLines.map((line, i) => {
|