@oh-my-pi/pi-tui 18.8.0 → 18.8.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [18.8.2] - 2026-10-07
6
+
7
+ ### Removed
8
+
9
+ - Removed per-call `model` fields from task parameter types.
10
+
11
+ ## [18.8.1] - 2026-10-07
12
+
13
+ ### Fixed
14
+
15
+ - Fixed the native ask dialog on TSP surfaces so it replaces the composer instead of opening as a modal over the transcript, keeping the transcript readable and scrollable.
16
+
5
17
  ## [18.8.0] - 2026-10-07
6
18
 
7
19
  ### Added
@@ -101,8 +101,11 @@ export declare class AskDialogComponent implements Component {
101
101
  handleInput(keyData: string): void;
102
102
  render(width: number): readonly string[];
103
103
  /**
104
- * A bottom-anchored glass sheet over the composer (the `overlay` hoists into
105
- * the terminal's layer; the dialog's own slot in the dock stays empty).
104
+ * In the dock, in the composer's place and framed as the composer is: a
105
+ * `col` with the prompt editor's root role (`omp.editor`), so the terminal
106
+ * gives it the composer's insets and spacing. Not a modal `overlay` sheet:
107
+ * one anchored at the bottom covered the transcript rows that explain the
108
+ * question and blocked scrolling until the question was answered.
106
109
  */
107
110
  describe(cx: DescribeContext): NativeNode;
108
111
  /**
@@ -108,8 +108,6 @@ export interface TaskItem {
108
108
  solutionSpace?: string;
109
109
  /** Per-spawn thinking effort: lowest/middle/highest level the resolved model supports. Overrides the agent's default selector (e.g. `auto`). */
110
110
  effort?: "lo" | "med" | "hi";
111
- /** Per-spawn model selector or ordered selector array; overrides agent and settings preferences. */
112
- model?: string | string[];
113
111
  /** Caller-provided output schema; its presence overrides the selected agent's schema. */
114
112
  outputSchema?: unknown;
115
113
  /** Validation behavior for a caller-provided or inherited output schema. */
@@ -136,8 +134,6 @@ export interface TaskParams {
136
134
  solutionSpace?: string;
137
135
  /** Per-spawn thinking effort (flat form): lowest/middle/highest level the resolved model supports. */
138
136
  effort?: "lo" | "med" | "hi";
139
- /** Per-spawn model selector or ordered selector array; overrides agent and settings preferences. */
140
- model?: string | string[];
141
137
  /** Caller-provided output schema; its presence overrides the selected agent's schema. */
142
138
  outputSchema?: unknown;
143
139
  /** Validation behavior for a caller-provided or inherited output schema. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-tui",
4
- "version": "18.8.0",
4
+ "version": "18.8.2",
5
5
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": {
@@ -41,14 +41,14 @@
41
41
  "gen:glyphs": "bun scripts/gen-glyphs.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@oh-my-pi/omptype": "18.8.0",
45
- "@oh-my-pi/pi-agent-core": "18.8.0",
46
- "@oh-my-pi/pi-ai": "18.8.0",
47
- "@oh-my-pi/pi-catalog": "18.8.0",
48
- "@oh-my-pi/pi-natives": "18.8.0",
49
- "@oh-my-pi/pi-utils": "18.8.0",
50
- "@oh-my-pi/pi-wire": "18.8.0",
51
- "@oh-my-pi/snapcompact": "18.8.0"
44
+ "@oh-my-pi/omptype": "18.8.2",
45
+ "@oh-my-pi/pi-agent-core": "18.8.2",
46
+ "@oh-my-pi/pi-ai": "18.8.2",
47
+ "@oh-my-pi/pi-catalog": "18.8.2",
48
+ "@oh-my-pi/pi-natives": "18.8.2",
49
+ "@oh-my-pi/pi-utils": "18.8.2",
50
+ "@oh-my-pi/pi-wire": "18.8.2",
51
+ "@oh-my-pi/snapcompact": "18.8.2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "kitty-vt-wasm": "^0.2.0"
@@ -711,8 +711,11 @@ export class AskDialogComponent implements Component {
711
711
  }
712
712
 
713
713
  /**
714
- * A bottom-anchored glass sheet over the composer (the `overlay` hoists into
715
- * the terminal's layer; the dialog's own slot in the dock stays empty).
714
+ * In the dock, in the composer's place and framed as the composer is: a
715
+ * `col` with the prompt editor's root role (`omp.editor`), so the terminal
716
+ * gives it the composer's insets and spacing. Not a modal `overlay` sheet:
717
+ * one anchored at the bottom covered the transcript rows that explain the
718
+ * question and blocked scrolling until the question was answered.
716
719
  */
717
720
  describe(cx: DescribeContext): NativeNode {
718
721
  const inputGuard = this.options.inputGuard;
@@ -728,13 +731,7 @@ export class AskDialogComponent implements Component {
728
731
  if (this.#isSubmitTab()) this.#describeSubmitBody(children);
729
732
  else this.#describeQuestionBody(children);
730
733
  children.push(this.#describeActions(blocked));
731
- const sheet = node(
732
- "overlay",
733
- { role: "omp.overlay.ask", anchor: "bottom", size: "md", modal: true },
734
- [col(children, { gap: "md" })],
735
- "sheet",
736
- );
737
- this.#native = col([sheet]);
734
+ this.#native = col(children, { role: "omp.editor", gap: "md" });
738
735
  this.#nativeBlocked = blocked;
739
736
  return this.#native;
740
737
  }
package/src/tools/task.ts CHANGED
@@ -1397,7 +1397,7 @@ export function renderResult(
1397
1397
  const aborted = abortedCount > 0;
1398
1398
  const failed = failCount > 0;
1399
1399
  const mergeFailed = mergeFailedCount > 0;
1400
- const isError = result.isError === true || aborted || failed;
1400
+ const isError = aborted || failed;
1401
1401
  const agentCount = hasResults ? details.results.length : (details.progress?.length ?? 0);
1402
1402
  const icon: ToolUIStatus = options.isPartial ? "running" : isError ? "error" : mergeFailed ? "warning" : "success";
1403
1403
  // Header meta is the spawn count only; each row carries its own ⟨agent⟩
@@ -2210,8 +2210,6 @@ export interface TaskItem {
2210
2210
  solutionSpace?: string;
2211
2211
  /** Per-spawn thinking effort: lowest/middle/highest level the resolved model supports. Overrides the agent's default selector (e.g. `auto`). */
2212
2212
  effort?: "lo" | "med" | "hi";
2213
- /** Per-spawn model selector or ordered selector array; overrides agent and settings preferences. */
2214
- model?: string | string[];
2215
2213
  /** Caller-provided output schema; its presence overrides the selected agent's schema. */
2216
2214
  outputSchema?: unknown;
2217
2215
  /** Validation behavior for a caller-provided or inherited output schema. */
@@ -2239,8 +2237,6 @@ export interface TaskParams {
2239
2237
  solutionSpace?: string;
2240
2238
  /** Per-spawn thinking effort (flat form): lowest/middle/highest level the resolved model supports. */
2241
2239
  effort?: "lo" | "med" | "hi";
2242
- /** Per-spawn model selector or ordered selector array; overrides agent and settings preferences. */
2243
- model?: string | string[];
2244
2240
  /** Caller-provided output schema; its presence overrides the selected agent's schema. */
2245
2241
  outputSchema?: unknown;
2246
2242
  /** Validation behavior for a caller-provided or inherited output schema. */