@pi-unipi/ask-user 2.0.5 → 2.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/ask-ui.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * Uses ctx.ui.custom() callback pattern following question.ts/questionnaire.ts.
6
6
  */
7
7
 
8
- import { Editor, type EditorTheme, Key, matchesKey, Text, truncateToWidth, type TUI, visibleWidth, wrapTextWithAnsi } from "@mariozechner/pi-tui";
9
- import type { Theme, AgentToolResult } from "@mariozechner/pi-coding-agent";
8
+ import { Editor, type EditorTheme, Key, matchesKey, Text, truncateToWidth, type TUI, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
9
+ import type { Theme, AgentToolResult } from "@earendil-works/pi-coding-agent";
10
10
  import type { NormalizedOption, AskUserResponse } from "./types.js";
11
11
 
12
12
  /** Result returned by the ask UI */
@@ -34,7 +34,7 @@ export function renderAskUI(params: {
34
34
  }): (
35
35
  tui: TUI,
36
36
  theme: Theme,
37
- kb: import("@mariozechner/pi-coding-agent").KeybindingsManager,
37
+ kb: import("@earendil-works/pi-coding-agent").KeybindingsManager,
38
38
  done: (result: AskUIResult | null) => void,
39
39
  ) => {
40
40
  render: (width: number) => string[];
package/commands.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Registers settings command for ask_user tool.
5
5
  */
6
6
 
7
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
7
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
8
8
  import { UNIPI_PREFIX } from "@pi-unipi/core";
9
9
  import { AskUserSettingsOverlay } from "./settings-tui.js";
10
10
 
package/handoff.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Queues launcher prefill messages without waiting for LLM follow-up.
5
5
  */
6
6
 
7
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
7
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
8
8
  import type { SessionLaunchReason, SessionLaunchStatus } from "./types.js";
9
9
 
10
10
  /** Compact handoff fallback timer. Keeps the launcher from stalling if callbacks wait for the tool turn to finish. */
package/index.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * multi-select, and freeform modes. Includes bundled skill for agent guidance.
6
6
  */
7
7
 
8
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
8
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
9
9
  import {
10
10
  UNIPI_EVENTS,
11
11
  MODULES,
package/launcher-ui.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * Offers Compact & run, Run directly, or Cancel.
6
6
  */
7
7
 
8
- import { Key, matchesKey, truncateToWidth, type TUI, visibleWidth } from "@mariozechner/pi-tui";
9
- import type { Theme, KeybindingsManager } from "@mariozechner/pi-coding-agent";
8
+ import { Key, matchesKey, truncateToWidth, type TUI, visibleWidth } from "@earendil-works/pi-tui";
9
+ import type { Theme, KeybindingsManager } from "@earendil-works/pi-coding-agent";
10
10
  import type { SessionLauncherResult } from "./types.js";
11
11
 
12
12
  /** Launcher option definition */
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@pi-unipi/ask-user",
3
- "version": "2.0.5",
3
+ "version": "2.0.8",
4
4
  "description": "Structured user input tool for Pi coding agent — single-select, multi-select, freeform",
5
5
  "type": "module",
6
+ "main": "index.ts",
6
7
  "license": "MIT",
7
8
  "author": "Neuron Mr White",
8
9
  "repository": {
@@ -50,8 +51,8 @@
50
51
  "@pi-unipi/core": "*"
51
52
  },
52
53
  "peerDependencies": {
53
- "@mariozechner/pi-coding-agent": "*",
54
- "@mariozechner/pi-tui": "*",
55
- "@sinclair/typebox": "*"
54
+ "@earendil-works/pi-coding-agent": "^0.75.5",
55
+ "@earendil-works/pi-tui": "^0.75.5",
56
+ "typebox": "^1.1.38"
56
57
  }
57
58
  }
package/settings-tui.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * Allows enabling/disabling the tool and configuring allowed question formats.
6
6
  */
7
7
 
8
- import type { Component } from "@mariozechner/pi-tui";
9
- import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
8
+ import type { Component } from "@earendil-works/pi-tui";
9
+ import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
10
10
  import { getAskUserSettings, saveAskUserSettings, type AskUserSettings } from "./config.js";
11
11
 
12
12
  /** ANSI escape codes */
package/tools.ts CHANGED
@@ -4,8 +4,8 @@
4
4
  * Registers ask_user tool for structured user input.
5
5
  */
6
6
 
7
- import { Type } from "@sinclair/typebox";
8
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
7
+ import { Type } from "typebox";
8
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
9
9
  import {
10
10
  ASK_USER_TOOLS,
11
11
  COMPACTOR_INSTRUCTION,