@wrongstack/tui 1.1.7 → 1.1.8
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.
|
@@ -87,9 +87,10 @@ interface SidebarKanbanColumn {
|
|
|
87
87
|
count: number;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Load the kanban board summary for the sidebar. Uses `listBoards()`
|
|
91
|
-
*
|
|
92
|
-
*
|
|
90
|
+
* Load the kanban board summary for the sidebar. Uses `listBoards()` and
|
|
91
|
+
* takes the FIRST board it returns (most recently created), then fetches
|
|
92
|
+
* that board's column counts.
|
|
93
|
+
* Refreshes every 30 seconds (only while `enabled`).
|
|
93
94
|
*/
|
|
94
95
|
export declare function useSidebarKanban(projectRoot: string, enabled?: boolean): {
|
|
95
96
|
columns: readonly SidebarKanbanColumn[];
|
package/dist/index.js
CHANGED
|
@@ -62547,7 +62547,7 @@ function isCaseSensitive(query) {
|
|
|
62547
62547
|
return query !== query.toLowerCase();
|
|
62548
62548
|
}
|
|
62549
62549
|
function lineAround(text, index, length) {
|
|
62550
|
-
const start = text.lastIndexOf("\n", index - 1) + 1;
|
|
62550
|
+
const start = index <= 0 ? 0 : text.lastIndexOf("\n", index - 1) + 1;
|
|
62551
62551
|
const newline = text.indexOf("\n", index + length);
|
|
62552
62552
|
const end = newline === -1 ? text.length : newline;
|
|
62553
62553
|
return { line: text.slice(start, end), column: index - start, length };
|
|
@@ -62588,7 +62588,8 @@ function transcriptMatchSnippet(match, width) {
|
|
|
62588
62588
|
};
|
|
62589
62589
|
}
|
|
62590
62590
|
const context = Math.max(0, budget - match.length);
|
|
62591
|
-
|
|
62591
|
+
const leftShare = match.column > 0 && context > 0 ? Math.max(1, Math.floor(context / 3)) : 0;
|
|
62592
|
+
let start = Math.max(0, match.column - leftShare);
|
|
62592
62593
|
const end = Math.min(line.length, start + budget);
|
|
62593
62594
|
start = Math.max(0, end - budget);
|
|
62594
62595
|
const leftCut = start > 0;
|