cc-sidebar 0.1.17 → 0.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-sidebar",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Visual sidebar for managing todos, tasks, and context alongside Claude Code",
5
5
  "author": "Tyler Nishida",
6
6
  "license": "MIT",
@@ -933,8 +933,8 @@ export class RawSidebar {
933
933
  const renderTask = (task: Task, index: number, section: "inbox" | "clarified") => {
934
934
  const isSelected = selectedSection === section && index === selectedIndex;
935
935
  const isEditing = inputMode === "edit" && editingTaskId === task.id;
936
- const star = task.recommended ? "★ " : " ";
937
936
  const bracket = (isSelected && this.focused) ? "[>] " : "[ ] ";
937
+ const star = task.recommended ? "★ " : "";
938
938
  const color = section === "clarified" ? text : muted;
939
939
 
940
940
  if (isEditing) {
@@ -943,20 +943,20 @@ export class RawSidebar {
943
943
  const wrappedLines = wrapText(inputBuffer, maxContentWidth - 2);
944
944
  if (wrappedLines.length === 0) wrappedLines.push('');
945
945
  wrappedLines.forEach((line, i) => {
946
- const prefix = i === 0 ? `${star}${bracket}` : " ";
946
+ const prefix = i === 0 ? `${bracket}${star}` : " ";
947
947
  const padding = ' '.repeat(Math.max(0, maxContentWidth - 2 - line.length));
948
948
  lines.push(`${bg} ${prefix}${text}${line}${padding}${ansi.reset}`);
949
949
  });
950
950
  } else if (isSelected && this.focused && (task.content.length > maxContentWidth - 2 || task.content.includes('\n'))) {
951
951
  const wrappedLines = wrapText(task.content, maxContentWidth - 2);
952
952
  wrappedLines.forEach((line, i) => {
953
- const prefix = i === 0 ? `${star}${bracket}` : " ";
953
+ const prefix = i === 0 ? `${bracket}${star}` : " ";
954
954
  lines.push(`${bg} ${color}${prefix}${line}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
955
955
  });
956
956
  } else {
957
957
  const firstLine = task.content.split('\n')[0] || task.content;
958
958
  const content = firstLine.slice(0, maxContentWidth - 2);
959
- lines.push(`${bg} ${color}${star}${bracket}${content}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
959
+ lines.push(`${bg} ${color}${bracket}${star}${content}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
960
960
  }
961
961
 
962
962
  // Show spec preview or plan path when selected
@@ -984,12 +984,12 @@ export class RawSidebar {
984
984
  const wrappedLines = wrapText(inputBuffer, maxContentWidth - 2);
985
985
  if (wrappedLines.length === 0) wrappedLines.push('');
986
986
  wrappedLines.forEach((line, i) => {
987
- const prefix = i === 0 ? ' [ ] ' : ' ';
987
+ const prefix = i === 0 ? '[ ] ' : ' ';
988
988
  const padding = ' '.repeat(Math.max(0, maxContentWidth - 2 - line.length));
989
989
  lines.push(`${bg} ${prefix}${text}${line}${padding}${ansi.reset}`);
990
990
  });
991
991
  } else if (inboxTasks.length === 0) {
992
- lines.push(`${bg} ${ansi.gray} [ ] a to add tasks${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
992
+ lines.push(`${bg} ${ansi.gray}[ ] a to add tasks${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
993
993
  }
994
994
  lines.push(bgLine);
995
995
 
@@ -1000,7 +1000,7 @@ export class RawSidebar {
1000
1000
  if (clarifiedTasks.length > 0) {
1001
1001
  clarifiedTasks.forEach((task, index) => renderTask(task, index, "clarified"));
1002
1002
  } else {
1003
- lines.push(`${bg} ${ansi.gray} [ ] c to clarify tasks${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1003
+ lines.push(`${bg} ${ansi.gray}[ ] c to clarify tasks${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1004
1004
  }
1005
1005
  lines.push(bgLine);
1006
1006
 
@@ -1010,7 +1010,7 @@ export class RawSidebar {
1010
1010
  const content = activeTask.content.slice(0, maxContentWidth);
1011
1011
  lines.push(`${bg} ${ansi.green}▸ ${content}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1012
1012
  } else {
1013
- lines.push(`${bg} ${ansi.gray} [ ] ↵ to send tasks${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1013
+ lines.push(`${bg} ${ansi.gray}[ ] ↵ to send tasks${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1014
1014
  }
1015
1015
  lines.push(bgLine);
1016
1016
 
@@ -1026,7 +1026,7 @@ export class RawSidebar {
1026
1026
  lines.push(`${bg} ${color}${icon}${content}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1027
1027
  });
1028
1028
  } else {
1029
- lines.push(`${bg} ${ansi.gray} [ ] d to mark as done${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1029
+ lines.push(`${bg} ${ansi.gray}[ ] d to mark as done${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
1030
1030
  }
1031
1031
  lines.push(bgLine);
1032
1032