@tarcisiopgs/lisa 1.23.1 → 1.23.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/index.js
CHANGED
|
@@ -7414,7 +7414,7 @@ var run = defineCommand6({
|
|
|
7414
7414
|
if (isTTY) {
|
|
7415
7415
|
const { render } = await import("ink");
|
|
7416
7416
|
const { createElement } = await import("react");
|
|
7417
|
-
const { KanbanApp } = await import("./kanban-
|
|
7417
|
+
const { KanbanApp } = await import("./kanban-4RXAHUGZ.js");
|
|
7418
7418
|
const demoConfig = {
|
|
7419
7419
|
provider: "claude",
|
|
7420
7420
|
source: "linear",
|
|
@@ -7497,7 +7497,7 @@ Add them to your ${shell} and run: source ${shell}`));
|
|
|
7497
7497
|
onBeforeExit = () => persistence.stop();
|
|
7498
7498
|
const { render } = await import("ink");
|
|
7499
7499
|
const { createElement } = await import("react");
|
|
7500
|
-
const { KanbanApp } = await import("./kanban-
|
|
7500
|
+
const { KanbanApp } = await import("./kanban-4RXAHUGZ.js");
|
|
7501
7501
|
render(createElement(KanbanApp, { config: merged, initialCards }), { exitOnCtrlC: false });
|
|
7502
7502
|
}
|
|
7503
7503
|
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) => {
|