pi-ui-extend 1.0.32 → 1.0.35

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.
@@ -23,7 +23,7 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
23
23
  },
24
24
  // Vision-capable model used by the coding-discipline lookup tool for blind-model
25
25
  // screenshot/image questions. Remove or set to null to disable lookup.
26
- "lookupModel": "openai-codex/gpt-5.6-luna",
26
+ "lookupModel": "zai/glm-5.3-flash",
27
27
  // coding-discipline working-state strictness.
28
28
  // "lenient" (default): batch independent read-only tool calls; brief reasoning
29
29
  // text is acceptable when thinking is off. Text only counts as chatter when a
@@ -151,17 +151,17 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
151
151
  "routing": { "enabled": true, "model": "zai/glm-4.5-air", "fallbackModels": ["openai-codex/gpt-5.6-luna"], "maxTaskChars": 1200, "maxTokens": 512, "maxRetries": 1, "timeoutMs": 12000, "debug": false },
152
152
  "presets": {
153
153
  "cheap": {
154
- "description": "Use cheap GLM/Gemini Flash models for text/code roles.",
154
+ "description": "Use GLM models by role, including GLM-5.3 Flash for multimodal work.",
155
155
  "types": {
156
156
  "quick": { "model": "zai/glm-4.5-air", "thinking": "off" },
157
157
  "scan": { "model": "zai/glm-4.5-air", "thinking": "off" },
158
158
  "research": { "model": "zai/glm-5-turbo", "thinking": "low" },
159
159
  "docs": { "model": "zai/glm-4.5-air", "thinking": "low" },
160
160
  "frontend": {
161
- "model": "antigravity/gemini-3-flash-preview",
162
- "fallbackModels": ["zai/glm-5.3"],
161
+ "model": "zai/glm-5.3-flash",
163
162
  "thinking": "medium"
164
163
  },
164
+ "browser-qa": { "model": "zai/glm-5.3-flash", "fallbackModels": ["openai-codex/gpt-5.6-luna"], "thinking": "low" },
165
165
  "tests": { "model": "zai/glm-5-turbo", "thinking": "medium" },
166
166
  "review": { "model": "zai/glm-5.3", "thinking": "high" },
167
167
  "implement": { "model": "zai/glm-5.3", "thinking": "high" },
@@ -305,8 +305,8 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
305
305
  },
306
306
  "browser-qa": {
307
307
  "description": "Use for browser-based visual QA: reproduce UI bugs and verify fixes with deterministic assertions, screenshots, video, and traces.",
308
- "model": "openai-codex/gpt-5.6-luna",
309
- "fallbackModels": ["antigravity/gemini-3-flash-preview", "zai/glm-5.3"],
308
+ "model": "zai/glm-5.3-flash",
309
+ "fallbackModels": ["openai-codex/gpt-5.6-luna"],
310
310
  "thinking": "low",
311
311
  "timeoutMs": 120000,
312
312
  "tools": ["read", "grep", "bash"]
@@ -81,6 +81,7 @@ export function asyncSubagentToolDescriptions(options: ToolDescriptionSetOptions
81
81
  ].join(" "),
82
82
  promptSnippet:
83
83
  "For every browser-based visual QA, UI bug reproduction, or real-browser fix-verification request, immediately spawn subagentType='browser-qa' even for a single track and before inspecting files or checking prerequisites. The browser-qa sub-agent must discover the target and report missing prerequisites; do not preflight, perform, or substitute browser QA in the parent agent. " +
84
+ "Give browser-qa a concise acceptance brief: the known target URL/app, user-visible flow, expected observable result, and required artifacts. Do not prescribe repository files, searches, commands, server setup, or mock/synthetic substitutes; unknown setup belongs to the QA sub-agent's discovery. " +
84
85
  "For other work, use subagents action='spawn' for multiple independent agents, explicit delegate/parallelize/split work requests, or one large review/debug track that should stay out of the parent context. " +
85
86
  "Usually omit subagentType so the router chooses; set it only for user-named roles, deterministic tests, or another concrete override. Avoid trivial reads/edits and do not call status/wait immediately after spawn just for progress. " +
86
87
  (repoDiscovery
@@ -88,6 +89,7 @@ export function asyncSubagentToolDescriptions(options: ToolDescriptionSetOptions
88
89
  : "For one focused code-discovery question, use direct read/grep. Without repo_* tools, spawn several focused scan/quick agents first for broad multi-track discovery, incident triage, release readiness, risk strategy, or parallel reviews. Read result only after completion when findings are needed."),
89
90
  promptGuidelines: [
90
91
  "Treat every real-browser QA request as a mandatory delegation trigger and an explicit exception to the large/parallel threshold: immediately spawn with `subagentType: \"browser-qa\"` before checking prerequisites. The QA sub-agent owns target discovery, feasibility checks, browser automation, evidence, and blocked reports; the parent must not inspect the project first or substitute non-browser checks.",
92
+ "Keep the browser-qa task payload at the user-visible acceptance level: known target URL/app, actions to perform, expected observable outcome, and requested evidence. Do not turn it into a repository investigation plan, name internal files or commands, dictate server setup, or invent a mock/synthetic target. Leave unknown prerequisites to the QA sub-agent.",
91
93
  "When browser-qa reports missing credentials, relay its explicit request and generated `.pi/qa_auth.jsonc` template path; never inspect, populate, or edit that credential file in the parent.",
92
94
  "After browser-qa completes a test, preserve its clickable screenshot, video, and trace links in the final user-facing response whenever those artifacts exist.",
93
95
  "For non-browser-QA work, use action='spawn' only for LARGE/PARALLEL work: independent investigations, repo-wide sweeps, deep debugging, code review/audit, or explicit delegate/parallelize/split requests; these are spawn triggers unless trivial/single-file.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-ui-extend",
3
- "version": "1.0.32",
3
+ "version": "1.0.35",
4
4
  "description": "Pix: a workspace-first terminal UI for Pi with tabs, readable tool activity, voice input, and bundled agent tools.",
5
5
  "private": false,
6
6
  "repository": {