pi-interview 0.4.3 → 0.4.5
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/index.ts +3 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { StringEnum } from "@mariozechner/pi-ai";
|
|
2
3
|
import { Text } from "@mariozechner/pi-tui";
|
|
3
4
|
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
4
5
|
import * as path from "node:path";
|
|
@@ -77,7 +78,7 @@ const InterviewParams = Type.Object({
|
|
|
77
78
|
theme: Type.Optional(
|
|
78
79
|
Type.Object(
|
|
79
80
|
{
|
|
80
|
-
mode: Type.Optional(
|
|
81
|
+
mode: Type.Optional(StringEnum(["auto", "light", "dark"])),
|
|
81
82
|
name: Type.Optional(Type.String()),
|
|
82
83
|
lightPath: Type.Optional(Type.String()),
|
|
83
84
|
darkPath: Type.Optional(Type.String()),
|
|
@@ -277,7 +278,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
277
278
|
"Questions can have a codeBlock field to display code above options. Types: single (radio), multi (checkbox), text (textarea), image (file upload).",
|
|
278
279
|
parameters: InterviewParams,
|
|
279
280
|
|
|
280
|
-
async execute(_toolCallId, params, onUpdate, ctx
|
|
281
|
+
async execute(_toolCallId, params, signal, onUpdate, ctx) {
|
|
281
282
|
const { questions, timeout, verbose, theme } = params as {
|
|
282
283
|
questions: string;
|
|
283
284
|
timeout?: number;
|