santree 0.2.7 → 0.2.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.
@@ -175,11 +175,11 @@ function buildSantreeStatusline(cwd, model, usedPercentage) {
175
175
  if (model) {
176
176
  parts.push(`${c.blue}${model}${c.reset}`);
177
177
  }
178
- // Usable context % (accounting for 80% auto-compact threshold)
178
+ // Context usage %
179
179
  if (usedPercentage !== null) {
180
- const usable = Math.round(usedPercentage * 1.25);
181
- const color = usable >= 80 ? c.red : usable >= 60 ? c.yellow : c.green;
182
- parts.push(`${color}${usable}%${c.reset}`);
180
+ const used = Math.round(usedPercentage);
181
+ const color = used >= 80 ? c.red : used >= 60 ? c.yellow : c.green;
182
+ parts.push(`${color}${used}%${c.reset}`);
183
183
  }
184
184
  return parts.join(" | ");
185
185
  }
@@ -200,11 +200,11 @@ function buildGitStatusline(cwd, model, usedPercentage) {
200
200
  if (model) {
201
201
  parts.push(`${c.blue}${model}${c.reset}`);
202
202
  }
203
- // Usable context %
203
+ // Context usage %
204
204
  if (usedPercentage !== null) {
205
- const usable = Math.round(usedPercentage * 1.25);
206
- const color = usable >= 80 ? c.red : usable >= 60 ? c.yellow : c.green;
207
- parts.push(`${color}${usable}%${c.reset}`);
205
+ const used = Math.round(usedPercentage);
206
+ const color = used >= 80 ? c.red : used >= 60 ? c.yellow : c.green;
207
+ parts.push(`${color}${used}%${c.reset}`);
208
208
  }
209
209
  return parts.join(" | ");
210
210
  }
@@ -218,11 +218,11 @@ function buildPlainStatusline(cwd, model, usedPercentage) {
218
218
  if (model) {
219
219
  parts.push(`${c.blue}${model}${c.reset}`);
220
220
  }
221
- // Usable context %
221
+ // Context usage %
222
222
  if (usedPercentage !== null) {
223
- const usable = Math.round(usedPercentage * 1.25);
224
- const color = usable >= 80 ? c.red : usable >= 60 ? c.yellow : c.green;
225
- parts.push(`${color}${usable}%${c.reset}`);
223
+ const used = Math.round(usedPercentage);
224
+ const color = used >= 80 ? c.red : used >= 60 ? c.yellow : c.green;
225
+ parts.push(`${color}${used}%${c.reset}`);
226
226
  }
227
227
  return parts.join(" | ");
228
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "santree",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Git worktree manager",
5
5
  "license": "MIT",
6
6
  "author": "Santiago Toscanini",