useful-pi-extensions 1.9.0 → 1.10.0

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": "useful-pi-extensions",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "A small collection of pi extensions, installed with one command — a labelled status line with context pressure, cache, cost, effort, TTFT and tokens/sec.",
5
5
  "keywords": [
6
6
  "bun",
@@ -521,33 +521,28 @@ export default function (pi: ExtensionAPI) {
521
521
  const separator = theme.fg('dim', ' · ')
522
522
  const wall = theme.fg('dim', ' | ')
523
523
  const identity = [theme.fg('accent', model)]
524
- if (ctx.thinkingLevel) identity.push(pair(theme, 'Effort', ctx.thinkingLevel, 'muted'))
524
+ if (ctx.thinkingLevel) identity.push(pair(theme, 'Effort', ctx.thinkingLevel))
525
525
 
526
526
  const ttft: string[] = []
527
527
  const waiting = ttftDisplay(requestAt, firstTokenAt, Date.now())
528
528
  if (waiting !== null) {
529
529
  // The clock is running: this wait has no reading yet, so the previous turn's
530
530
  // numbers would only be mistaken for the current one.
531
- ttft.push(pair(theme, 'TTFT', waiting.text, 'muted'))
531
+ ttft.push(pair(theme, 'TTFT', waiting.text))
532
532
  } else if (reading) {
533
533
  if (reading.ttftMs !== null)
534
- ttft.push(pair(theme, 'TTFT', formatLatency(reading.ttftMs), 'muted'))
534
+ ttft.push(pair(theme, 'TTFT', formatLatency(reading.ttftMs)))
535
535
  }
536
536
  const avgTtft = avgMs(totalTtftMs, ttftCount)
537
- if (avgTtft !== null) ttft.push(pair(theme, 'Avg TTFT', formatLatency(avgTtft), 'muted'))
537
+ if (avgTtft !== null) ttft.push(pair(theme, 'Avg TTFT', formatLatency(avgTtft)))
538
538
 
539
539
  const throughput: string[] = []
540
540
  if (reading) {
541
541
  throughput.push(
542
- pair(
543
- theme,
544
- 'Last',
545
- `${reading.exact ? '' : '~'}${formatTps(reading.rate)} tok/s`,
546
- reading.exact ? 'success' : 'dim',
547
- ),
542
+ pair(theme, 'Last', `${reading.exact ? '' : '~'}${formatTps(reading.rate)} tok/s`),
548
543
  )
549
544
  }
550
- if (avg !== null) throughput.push(pair(theme, 'Avg', `${formatTps(avg)} tok/s`, 'muted'))
545
+ if (avg !== null) throughput.push(pair(theme, 'Avg', `${formatTps(avg)} tok/s`))
551
546
 
552
547
  const row2Right = [identity, ttft, throughput]
553
548
  .filter((group) => group.length > 0)
@@ -41,7 +41,9 @@ export const ANSI = /\u001b\[[0-9;]*m/g
41
41
  * an unrelated extension that happens to use the same words is left alone.
42
42
  */
43
43
  export const QUIET_STATUS: ReadonlyArray<readonly [string, RegExp]> = [
44
- ['pi-lens-lsp', /^LSP Inactive$/i],
44
+ // pi-lens reports language-server health here. Useful when diagnostics break; permanent
45
+ // noise once they work, so the whole LSP line stays out of the footer.
46
+ ['pi-lens-lsp', /^LSP/i],
45
47
  ]
46
48
 
47
49
  export function formatTokens(count: number): string {