ccstatusline 1.0.11 → 1.0.12

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.
@@ -24,13 +24,38 @@ var SETTINGS_PATH = path.join(CONFIG_DIR, "settings.json");
24
24
  var DEFAULT_SETTINGS = {
25
25
  lines: [
26
26
  [
27
- { id: "1", type: "model", color: "cyan" },
28
- { id: "2", type: "separator" },
29
- { id: "3", type: "terminal-width", color: "dim" },
30
- { id: "4", type: "separator" },
31
- { id: "5", type: "git-branch", color: "magenta" },
32
- { id: "6", type: "separator" },
33
- { id: "7", type: "git-changes", color: "yellow" }
27
+ {
28
+ id: "1",
29
+ type: "model",
30
+ color: "cyan"
31
+ },
32
+ {
33
+ id: "2",
34
+ type: "separator"
35
+ },
36
+ {
37
+ id: "3",
38
+ type: "context-length",
39
+ color: "dim"
40
+ },
41
+ {
42
+ id: "4",
43
+ type: "separator"
44
+ },
45
+ {
46
+ id: "5",
47
+ type: "git-branch",
48
+ color: "magenta"
49
+ },
50
+ {
51
+ id: "6",
52
+ type: "separator"
53
+ },
54
+ {
55
+ id: "7",
56
+ type: "git-changes",
57
+ color: "yellow"
58
+ }
34
59
  ]
35
60
  ],
36
61
  colors: {
@@ -39,7 +64,7 @@ var DEFAULT_SETTINGS = {
39
64
  separator: "dim"
40
65
  },
41
66
  flexMode: "full-minus-40",
42
- compactThreshold: 75
67
+ compactThreshold: 60
43
68
  };
44
69
  async function loadSettings() {
45
70
  try {
@@ -947,9 +972,9 @@ var ColorMenu = ({ items, onUpdate, onBack }) => {
947
972
  };
948
973
  var FlexOptions = ({ settings, onUpdate, onBack }) => {
949
974
  const [selectedOption, setSelectedOption] = useState(settings.flexMode || "full-minus-40");
950
- const [compactThreshold, setCompactThreshold] = useState(settings.compactThreshold || 75);
975
+ const [compactThreshold, setCompactThreshold] = useState(settings.compactThreshold || 60);
951
976
  const [editingThreshold, setEditingThreshold] = useState(false);
952
- const [thresholdInput, setThresholdInput] = useState(String(settings.compactThreshold || 75));
977
+ const [thresholdInput, setThresholdInput] = useState(String(settings.compactThreshold || 60));
953
978
  const [validationError, setValidationError] = useState(null);
954
979
  const [highlightedOption, setHighlightedOption] = useState(settings.flexMode || "full-minus-40");
955
980
  useInput((input, key) => {
@@ -1525,7 +1550,7 @@ function renderSingleLine2(items, settings, data, tokenMetrics, sessionDuration)
1525
1550
  } else if (flexMode === "full-minus-40") {
1526
1551
  terminalWidth = detectedWidth - 40;
1527
1552
  } else if (flexMode === "full-until-compact") {
1528
- const threshold = settings.compactThreshold || 75;
1553
+ const threshold = settings.compactThreshold || 60;
1529
1554
  const contextPercentage = tokenMetrics ? Math.min(100, tokenMetrics.contextLength / 200000 * 100) : 0;
1530
1555
  if (contextPercentage >= threshold) {
1531
1556
  terminalWidth = detectedWidth - 40;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccstatusline",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "A customizable status line formatter for Claude Code CLI",
5
5
  "module": "src/ccstatusline.ts",
6
6
  "type": "module",