@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()` to
91
- * find the most recently used board, then fetches its column counts.
92
- * Refreshes every 10 seconds (only while `enabled`).
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
- let start = Math.max(0, match.column - Math.floor(context / 3));
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/tui",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
6
6
  "repository": {