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.
Files changed (2) hide show
  1. package/index.ts +3 -2
  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(Type.String({ description: "Theme mode: 'auto', 'light', or 'dark'" })),
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, signal) {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-interview",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Interactive interview form extension for pi coding agent",
5
5
  "author": "Nico Bailon",
6
6
  "license": "MIT",