@codexstar/pi-listen 1.0.6 → 1.0.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.
- package/extensions/voice.ts +2 -3
- package/package.json +1 -1
package/extensions/voice.ts
CHANGED
|
@@ -27,12 +27,11 @@ import type {
|
|
|
27
27
|
ExtensionCommandContext,
|
|
28
28
|
MessageRenderOptions,
|
|
29
29
|
} from "@mariozechner/pi-coding-agent";
|
|
30
|
-
import type {
|
|
30
|
+
import type { Theme } from "@mariozechner/pi-coding-agent";
|
|
31
31
|
import { streamSimple } from "@mariozechner/pi-ai";
|
|
32
32
|
import type { AssistantMessageEvent } from "@mariozechner/pi-ai";
|
|
33
33
|
import { isKeyRelease, isKeyRepeat, matchesKey } from "@mariozechner/pi-tui";
|
|
34
34
|
import type { Component } from "@mariozechner/pi-tui";
|
|
35
|
-
import type { Theme } from "@mariozechner/pi-coding-agent/dist/modes/interactive/theme/theme.js";
|
|
36
35
|
import { spawn, spawnSync, type ChildProcess } from "node:child_process";
|
|
37
36
|
import * as fs from "node:fs";
|
|
38
37
|
import * as net from "node:net";
|
|
@@ -756,7 +755,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
756
755
|
|
|
757
756
|
// ─── BTW Message Renderer ────────────────────────────────────────────────
|
|
758
757
|
|
|
759
|
-
pi.registerMessageRenderer("btw", (message
|
|
758
|
+
pi.registerMessageRenderer<BtwExchange>("btw", (message, _options: MessageRenderOptions, _theme: Theme): Component | undefined => {
|
|
760
759
|
const ex = message.details;
|
|
761
760
|
if (!ex) return undefined;
|
|
762
761
|
return {
|