@tychenjiajun/pi-voice 0.9.0 → 0.9.4

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": "@tychenjiajun/pi-voice",
3
- "version": "0.9.0",
3
+ "version": "0.9.4",
4
4
  "description": "Speech-to-text for the Pi coding agent: press a shortcut and dictate — transcripts land directly in your chat. Local models (Whisper, Parakeet) or any OpenAI-compatible remote ASR endpoint, with compaction-style post-processing that strips fillers.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -64,18 +64,18 @@
64
64
  "typebox": "*"
65
65
  },
66
66
  "devDependencies": {
67
- "@earendil-works/pi-coding-agent": "1.4.0",
68
- "@earendil-works/pi-tui": "^1.4.0",
67
+ "@earendil-works/pi-coding-agent": "1.6.0",
68
+ "@earendil-works/pi-tui": "^1.6.0",
69
69
  "@huggingface/gguf": "^0.4.6",
70
- "@types/node": "22.20.1",
71
- "typebox": "^1.3.7",
72
- "typescript": "5.9.3"
70
+ "@types/node": "26.6.6",
71
+ "typebox": "^1.4.7",
72
+ "typescript": "7.0.2"
73
73
  },
74
74
  "dependencies": {
75
- "@handy-computer/recorder": "0.2.1",
76
- "@huggingface/hub": "2.15.0",
77
- "openai": "^7.31.0",
78
- "opencc-js": "^1.4.1",
79
- "transcribe-cpp": "0.4.0"
75
+ "@handy-computer/recorder": "0.2.2",
76
+ "@huggingface/hub": "2.17.11",
77
+ "openai": "^7.62.0",
78
+ "opencc-js": "^1.4.2",
79
+ "transcribe-cpp": "0.4.2"
80
80
  }
81
81
  }
@@ -297,7 +297,7 @@ export class LanguagePicker extends Container implements Focusable {
297
297
  // The pane replaces the host editor and cannot scroll: when the terminal is
298
298
  // short, shrink the window so the title, Continue row, and footer stay on
299
299
  // screen.
300
- override render(width: number): string[] {
300
+ override render(width: number): readonly string[] {
301
301
  const budget = paneRowBudget(this.tui);
302
302
  if (budget !== undefined) {
303
303
  const chrome = super.render(width).length - this.list.render(width).length;
@@ -629,7 +629,7 @@ export class CatalogModelPicker extends Container implements Focusable {
629
629
  // Short terminals also shrink the list window so the title, Languages line,
630
630
  // detail, and footer stay on screen; the downloading panel is short enough
631
631
  // to be exempt.
632
- override render(width: number): string[] {
632
+ override render(width: number): readonly string[] {
633
633
  if (this.ratingsHelp.isOpen) return this.ratingsHelp.render(width);
634
634
  if (width !== this.renderWidth) {
635
635
  this.renderWidth = width;
@@ -392,7 +392,7 @@ export class RecommendedModelPicker extends Container implements Focusable {
392
392
  return downloadAction(model, this.selection.cachedById.has(model.id));
393
393
  }
394
394
 
395
- override render(width: number): string[] {
395
+ override render(width: number): readonly string[] {
396
396
  const lines = super.render(width);
397
397
  const budget = Math.max(1, paneRowBudget(this.tui) ?? Infinity);
398
398
  if (lines.length <= budget) return lines;
@@ -355,7 +355,7 @@ export class SingleSelectPicker<T extends string> extends Container implements F
355
355
 
356
356
  // The pane replaces the host editor and cannot scroll: when the terminal
357
357
  // is short, shrink the list window so the title and footer stay on screen.
358
- override render(width: number): string[] {
358
+ override render(width: number): readonly string[] {
359
359
  if (width !== this.renderWidth) {
360
360
  this.renderWidth = width;
361
361
  this.refresh();