@herbertgao/pi-extensions 2026.11.10 → 2026.11.11

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 (60) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +6 -6
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +13 -8
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +58 -15
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +0 -5
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +18 -4
  11. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  12. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
  13. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  14. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  15. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +3 -1
  16. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
  17. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +12 -1
  18. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +4 -0
  19. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +5 -5
  20. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +1 -1
  21. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +1 -1
  22. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +1 -1
  23. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +3 -1
  24. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/foundations.md +44 -0
  25. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +1 -1
  26. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +26 -12
  27. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +10 -9
  28. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +7 -6
  29. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +2 -2
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +1 -1
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.md +1 -1
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +69 -16
  35. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +55 -7
  36. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +34 -4
  37. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  38. package/node_modules/@herbertgao/pi-subagents/README.md +27 -9
  39. package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +11 -11
  40. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  41. package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +13 -0
  42. package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +51 -32
  43. package/node_modules/@herbertgao/pi-subagents/src/default-agents.ts +7 -0
  44. package/node_modules/@herbertgao/pi-subagents/src/index.ts +334 -893
  45. package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +4 -1
  46. package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +13 -0
  47. package/node_modules/@herbertgao/pi-subagents/src/schedule-store.ts +18 -13
  48. package/node_modules/@herbertgao/pi-subagents/src/schedule.ts +25 -5
  49. package/node_modules/@herbertgao/pi-subagents/src/settings.ts +215 -69
  50. package/node_modules/@herbertgao/pi-subagents/src/types.ts +17 -0
  51. package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +9 -0
  52. package/node_modules/@herbertgao/pi-subagents/src/ui/agents-menu.ts +705 -0
  53. package/node_modules/@herbertgao/pi-subagents/src/ui/settings-menu.ts +361 -0
  54. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +1 -1
  55. package/node_modules/pi-commandcode-provider/CHANGELOG.md +11 -1
  56. package/node_modules/pi-commandcode-provider/index.ts +2 -1
  57. package/node_modules/pi-commandcode-provider/package.json +5 -4
  58. package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -1
  59. package/node_modules/pi-commandcode-provider/src/responses-compat.ts +137 -0
  60. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @herbertgao/pi-extensions
2
2
 
3
+ ## 2026.11.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#377](https://github.com/HerbertGao/pi-extensions/pull/377) [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin pi-commandcode-provider 0.8.3. GLM-5.3 Responses requests tag untyped messages and drop an inert reasoning effort of none. Mistral Large 4 drops that same effort. Inkling 2 Small Free is priced at zero and stays text-only.
8
+
9
+ - Updated dependencies [[`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419), [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419), [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419)]:
10
+ - @herbertgao/pi-impeccable@0.4.0
11
+ - @herbertgao/pi-cc-extensions@1.0.17
12
+ - @herbertgao/pi-subagents@0.24.0
13
+
3
14
  ## 2026.11.10
4
15
 
5
16
  ### Patch Changes
package/README.md CHANGED
@@ -21,7 +21,7 @@ When migrating from `pi-mcp-adapter`, remove any standalone adapter install as w
21
21
  The package bundles 6 active `@herbertgao/*` child packages—`pi-agency`, `pi-bark`, `pi-cc-extensions`, `pi-impeccable`, `pi-subagents`, and `sol-pi`—plus the following upstream packages under their original names:
22
22
 
23
23
  - `pi-antigravity@0.12.0`
24
- - `pi-commandcode-provider@0.8.2`
24
+ - `pi-commandcode-provider@0.8.3`
25
25
  - `pi-provider-qoder@0.6.12`
26
26
  - `@dietrichgebert/ponytail@5.3.3`
27
27
  - `@juicesharp/rpiv-ask-user-question@2.15.0`
@@ -41,13 +41,13 @@ The package bundles 6 active `@herbertgao/*` child packages—`pi-agency`, `pi-b
41
41
 
42
42
  Pi loads their extensions and skills through `node_modules/` paths inside one package root. The upstream companions are pinned and bundled, not forked or renamed.
43
43
 
44
- The locally customized CC package follows upstream `pi-cc-extensions@1.0.17`; SoL-Pi follows its complete main baseline `e1a586af` with Pi 1.x/codemode compatibility updates through `21956803`. Local behavior not already covered upstream is retained. SoL-Pi's `update_plan` now follows upstream's model-only contract: invoke it directly, not inside codemode scripts. Action Fusion and ccstyle write rich diffs coexist without disabling either feature. All four SoL-Pi features remain opt-in; its new non-persistent-session evidence archives remain on disk for consumers and require host or caller cleanup.
44
+ The locally customized CC package follows upstream `pi-cc-extensions@1.0.18`; SoL-Pi follows its complete main baseline `e1a586af` with Pi 1.x/codemode compatibility updates through `21956803`. Local behavior not already covered upstream is retained. SoL-Pi's `update_plan` now follows upstream's model-only contract: invoke it directly, not inside codemode scripts. Action Fusion and ccstyle write rich diffs coexist without disabling either feature. All four SoL-Pi features remain opt-in; its new non-persistent-session evidence archives remain on disk for consumers and require host or caller cleanup.
45
45
 
46
46
  Antigravity `0.12.0` enriches search citations by visiting source sites by default (`ANTIGRAVITY_NO_SOURCE_ENRICH=1` disables enrichment). `ANTIGRAVITY_DEFER_TOOLS=1` registers `google_search` and `generate_image` as deferred tools; the default stays direct. A refreshed catalog does not restore a model the current catalog omitted, and an image save rejects a symlink destination. It refreshes a curated model catalog and upgrades the existing model cache; previously listed model IDs may disappear. Ask `2.15.0` lets other extensions in the same process answer or cancel TUI questionnaires through its event channel, without sender authentication. Its notes shortcut defaults to `n` and can be a single non-Latin character; reserved navigation keys stay on `n`. Web Access `0.45.0` keeps direct tool exposure and `toolActivation: auto` by default. Linkup, DeepSeek search and fetch, provider gateways, `toolActivation: "none"`, deferred exposure, GCE ADC, field extraction, 9router, and plain HTTP gateway URLs require explicit configuration. Web Access `0.47.0` adds Sofya and Outcrawl as explicit-only search providers. `lockProxy: true` rejects a tool-call proxy that differs from the configured proxy, including a direct connection. A GitHub repository README is returned up to 100K characters, and a clone with no `githubClone.clonePath` goes under the OS temp directory.
47
47
 
48
48
  Ponytail `5.3.2` updates the Pi skill guidance, including how to turn it off. Its Pi extension entry is unchanged; the new Claude Code band/board hooks are not registered by this aggregate.
49
49
 
50
- Impeccable `4.8.2` is vendored as `@herbertgao/pi-impeccable` and loaded with `/skill:impeccable`. Its native engine downloads to `~/.impeccable` on first use after SHA-256 verification; set `IMPECCABLE_BIN` for offline or preinstalled setups. The launcher pins engine 0.1.21 and skips a sibling engine binary that reports a different version. Go leaves a staged removal in the page so Undo and Discard can restore it. The package does not install automatic post-edit hooks, and upstream `pin`/`unpin` do not discover npm-loaded skills.
50
+ Impeccable `4.9.1` is vendored as `@herbertgao/pi-impeccable` and loaded with `/skill:impeccable`. Its native engine downloads to `~/.impeccable` on first use after SHA-256 verification; set `IMPECCABLE_BIN` for offline or preinstalled setups. The launcher pins engine 0.1.24 and skips a sibling engine binary that reports a different version. A GitHub HTTP 5xx during that download says the outage is on GitHub's side. `/impeccable foundations` walks a product-foundations checklist. Go leaves a staged removal in the page so Undo and Discard can restore it. The package does not install automatic post-edit hooks, and upstream `pin`/`unpin` do not discover npm-loaded skills.
51
51
 
52
52
  ### Agency Agents
53
53
 
@@ -63,7 +63,7 @@ Impeccable `4.8.2` is vendored as `@herbertgao/pi-impeccable` and loaded with `/
63
63
 
64
64
  `clef` asks Cloudflare Clef-flash an on-demand yes/no, choice, or score and prints the questions and answers in the transcript, plus a one-line notice. It is not a permission gate. `pi-typesafe@0.14.0` provides `/typesafe` and `typesafe_evaluate` for explicit structured decisions; `/typesafe enable` or `PI_TYPESAFE_ENABLED=1` is still required for agent tool calls. The default backend remains `https://api.typesafe.ai`. `PI_TYPESAFE_BACKEND` and `PI_TYPESAFE_MODEL` select the session backend and model, and `/typesafe login` stores a key for the named backend. Only HTTP 401 refuses that key, and only for 15 minutes; a 403 refuses one request and leaves the key usable. Nace.AI (`https://console.nace.ai`, `NACE_API_KEY`, default model `drex-v2.0`) is a judgment backend. Daily request, token, and USD caps are opt-in. OpenRouter, Command Code, Liquid, SubQ, Nace.AI, and a named endpoint stay explicit and use that backend's own key. The promoted SDK is `@typesafe-ai/sdk@0.7.0`. Under Bun, the judge transport reads each response body once and replays it, so the SDK can still read the result after Bun marks the original body used.
65
65
 
66
- `@herbertgao/sol-pi` adds opt-in Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact; see its [configuration guide](../sol-pi/docs/configuration.md). `pi-lens@4.4.12` publishes a public LSP config schema, reads user-level custom rule directories (project before user before built-in), normalizes argv-style server entries, downgrades `throw-new-error` to a warning, and counts Docker, JSON, and Jedi servers in idle eviction; language routing and the retained multi-root diagnostic facts are unchanged. `.mts` and `.cts` use the TypeScript rules. Groovy files still classify as Groovy, and the vendored Groovy grammar lists classes and methods. `--no-read-expansion` turns off read widening without disabling the read-before-edit guard. It promotes `@ast-grep/cli` to `0.51.1` and `@ast-grep/napi` to `^0.51.0`. A blank `PI_LENS_*` number falls back to the default, and an explicit `0` is a value. An edit that raises a named function past the high-complexity threshold and past the default branch names that function on one line; a function the edit improved, or that is still no worse than the default branch, is not named. `ast_grep_replace` no longer requests strict JSON-schema sampling; `lens_diagnostic_mark` still does. A language server for a project outside the session folder starts only when Pi would trust that project. Four MCP tools advertise only `path`. A session rooted at `/` keeps `lsp.disabledServers`. Concatenated SQL passed to `.execute()` is an advisory full-analysis finding; a parameterized `execute(sql, values)` call stays quiet. Keeping injected findings in later requests is opt-in. A workspace edit through a dangling symlink is refused, and a symlink that resolves outside the workspace is refused; the fallback Biome config no longer names a nursery rule. An identity `filter(x => x).map(...)` stays a warning, and a non-identity `filter(fn).map(...)` is no longer flagged. A reduce that copies its accumulator with `Object.assign` is a warning. A directory whose name starts with `..` stays inside its project. `.groovy`, `.gvy`, `.gy`, `.gsh`, `Jenkinsfile`, `build.gradle`, and `settings.gradle` classify as Groovy; `build.gradle.kts` does not. `minimatch` is `^11.0.4` and `vscode-jsonrpc` is `^10.0.0`. `pi-web-access@0.47.0` provides configurable web search and fetch tools; its `toolActivation` defaults to `auto`, choosing eager or dynamic tool activation per model. `toolActivation: "none"` stays opt-in and still requires deferred exposure. Field extraction, 9router, empty or off-topic search fallback, and plain HTTP gateway URLs stay off unless configured. An unknown tool-call provider name fails instead of selecting a provider automatically, and DuckDuckGo searches stay spaced apart after a bot check. It adds structured search/fetch data for codemode and an optional, manually started `pi-web-access-mcp` stdio CLI; installing the aggregate does not start that server. Degoog, Keenable, Ceramic, Linkup, DeepSeek fetch, Cloudflare search, SearchApi, Outcrawl, Sofya, and Tabstack are explicit-only, excluded from automatic and `all` selection. `lockProxy: true` rejects a tool-call proxy other than the configured one. A GitHub repository README is returned up to 100K characters, and a clone with no `githubClone.clonePath` goes under the OS temp directory. Optional `fetchContent.curl` and Exa/Tabstack fetch routing stay off unless configured. Provider gateway base URLs are opt-in and are not configured by the aggregate. OpenAI search now defaults to `gpt-6-luna`, results and clone cleanup are scoped per extension instance, and the promoted `@modelcontextprotocol/sdk@^1.32.1` moves the bundle off GHSA-6qxp-vccf-f47h. Perplexity search now uses the Search API's ranked pages and snippets rather than a Sonar-generated answer; requests requiring prose still use Sonar. `pi-antigravity@0.12.0` reads Pi 0.86+ transcript system messages, so Antigravity requests carry Pi's system prompt and tools; it also registers `google_search` and `generate_image` tools that use the signed-in Antigravity account. Those tools stay direct unless `ANTIGRAVITY_DEFER_TOOLS=1`. A model removed by catalog refresh is not filled back in from the bootstrap list. Image saves reject symlink destinations. The aggregate keeps host `typebox` and `undici@^8.11.2`. `pi-provider-qoder@0.6.12` registers the `qoder` and `qoder-cn` model providers. A tool-call argument stream that is cut off before a usable call is reported as a retryable server error. Startup logs one line when the npm registry has a newer release; `PI_PROVIDER_QODER_SKIP_UPDATE_CHECK=1` skips that lookup. A queued model-busy response reports its wait instead of being ignored; a ready busy response stays retryable. A queued wait that does not fit in a safe millisecond count uses `retryAfterSeconds` instead. Agent chat prefers the account's remote-agent node and, on daily chat limit code 110, tries the next node. The chosen node is cached for one hour. Sign in with `/login qoder` (browser or a personal access token from [qoder.com/account/integrations](https://qoder.com/account/integrations)) or `/login qoder-cn` (token from [qoder.com.cn/account/integrations](https://qoder.com.cn/account/integrations)). `QODER_PERSONAL_ACCESS_TOKEN` and `QODERCN_PERSONAL_ACCESS_TOKEN` log those providers in at startup. `/qoder-usage footer on` replaces the status-bar footer for that session, so leave it off while the pi-cc footer is in use. `pi-commandcode-provider@0.8.2` registers `commandcode` beside `qoder`, `qoder-cn`, and `antigravity`. Inference uses the Provider API only. `/login` lists those subscription providers and runs only the one you select. `@tifan/pi-preferred-thinking` is no longer bundled. Per-model thinking levels come from Pi. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming. `@tifan/pi-handoff` imports `@tifan/pi-rename/naming` when it generates a session name, so Rename stays installed and its `/rename` command stays registered.
66
+ `@herbertgao/sol-pi` adds opt-in Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact; see its [configuration guide](../sol-pi/docs/configuration.md). `pi-lens@4.4.12` publishes a public LSP config schema, reads user-level custom rule directories (project before user before built-in), normalizes argv-style server entries, downgrades `throw-new-error` to a warning, and counts Docker, JSON, and Jedi servers in idle eviction; language routing and the retained multi-root diagnostic facts are unchanged. `.mts` and `.cts` use the TypeScript rules. Groovy files still classify as Groovy, and the vendored Groovy grammar lists classes and methods. `--no-read-expansion` turns off read widening without disabling the read-before-edit guard. It promotes `@ast-grep/cli` to `0.51.1` and `@ast-grep/napi` to `^0.51.0`. A blank `PI_LENS_*` number falls back to the default, and an explicit `0` is a value. An edit that raises a named function past the high-complexity threshold and past the default branch names that function on one line; a function the edit improved, or that is still no worse than the default branch, is not named. `ast_grep_replace` no longer requests strict JSON-schema sampling; `lens_diagnostic_mark` still does. A language server for a project outside the session folder starts only when Pi would trust that project. Four MCP tools advertise only `path`. A session rooted at `/` keeps `lsp.disabledServers`. Concatenated SQL passed to `.execute()` is an advisory full-analysis finding; a parameterized `execute(sql, values)` call stays quiet. Keeping injected findings in later requests is opt-in. A workspace edit through a dangling symlink is refused, and a symlink that resolves outside the workspace is refused; the fallback Biome config no longer names a nursery rule. An identity `filter(x => x).map(...)` stays a warning, and a non-identity `filter(fn).map(...)` is no longer flagged. A reduce that copies its accumulator with `Object.assign` is a warning. A directory whose name starts with `..` stays inside its project. `.groovy`, `.gvy`, `.gy`, `.gsh`, `Jenkinsfile`, `build.gradle`, and `settings.gradle` classify as Groovy; `build.gradle.kts` does not. `minimatch` is `^11.0.4` and `vscode-jsonrpc` is `^10.0.0`. `pi-web-access@0.47.0` provides configurable web search and fetch tools; its `toolActivation` defaults to `auto`, choosing eager or dynamic tool activation per model. `toolActivation: "none"` stays opt-in and still requires deferred exposure. Field extraction, 9router, empty or off-topic search fallback, and plain HTTP gateway URLs stay off unless configured. An unknown tool-call provider name fails instead of selecting a provider automatically, and DuckDuckGo searches stay spaced apart after a bot check. It adds structured search/fetch data for codemode and an optional, manually started `pi-web-access-mcp` stdio CLI; installing the aggregate does not start that server. Degoog, Keenable, Ceramic, Linkup, DeepSeek fetch, Cloudflare search, SearchApi, Outcrawl, Sofya, and Tabstack are explicit-only, excluded from automatic and `all` selection. `lockProxy: true` rejects a tool-call proxy other than the configured one. A GitHub repository README is returned up to 100K characters, and a clone with no `githubClone.clonePath` goes under the OS temp directory. Optional `fetchContent.curl` and Exa/Tabstack fetch routing stay off unless configured. Provider gateway base URLs are opt-in and are not configured by the aggregate. OpenAI search now defaults to `gpt-6-luna`, results and clone cleanup are scoped per extension instance, and the promoted `@modelcontextprotocol/sdk@^1.32.1` moves the bundle off GHSA-6qxp-vccf-f47h. Perplexity search now uses the Search API's ranked pages and snippets rather than a Sonar-generated answer; requests requiring prose still use Sonar. `pi-antigravity@0.12.0` reads Pi 0.86+ transcript system messages, so Antigravity requests carry Pi's system prompt and tools; it also registers `google_search` and `generate_image` tools that use the signed-in Antigravity account. Those tools stay direct unless `ANTIGRAVITY_DEFER_TOOLS=1`. A model removed by catalog refresh is not filled back in from the bootstrap list. Image saves reject symlink destinations. The aggregate keeps host `typebox` and `undici@^8.11.2`. `pi-provider-qoder@0.6.12` registers the `qoder` and `qoder-cn` model providers. A tool-call argument stream that is cut off before a usable call is reported as a retryable server error. Startup logs one line when the npm registry has a newer release; `PI_PROVIDER_QODER_SKIP_UPDATE_CHECK=1` skips that lookup. A queued model-busy response reports its wait instead of being ignored; a ready busy response stays retryable. A queued wait that does not fit in a safe millisecond count uses `retryAfterSeconds` instead. Agent chat prefers the account's remote-agent node and, on daily chat limit code 110, tries the next node. The chosen node is cached for one hour. Sign in with `/login qoder` (browser or a personal access token from [qoder.com/account/integrations](https://qoder.com/account/integrations)) or `/login qoder-cn` (token from [qoder.com.cn/account/integrations](https://qoder.com.cn/account/integrations)). `QODER_PERSONAL_ACCESS_TOKEN` and `QODERCN_PERSONAL_ACCESS_TOKEN` log those providers in at startup. `/qoder-usage footer on` replaces the status-bar footer for that session, so leave it off while the pi-cc footer is in use. `pi-commandcode-provider@0.8.3` registers `commandcode` beside `qoder`, `qoder-cn`, and `antigravity`. Inference uses the Provider API only. `/login` lists those subscription providers and runs only the one you select. `@tifan/pi-preferred-thinking` is no longer bundled. Per-model thinking levels come from Pi. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming. `@tifan/pi-handoff` imports `@tifan/pi-rename/naming` when it generates a session name, so Rename stays installed and its `/rename` command stays registered.
67
67
 
68
68
  `pi-stash` is no longer bundled: `/btw` already preserves the main editor draft while handling side questions outside the main conversation. Prior `@herbertgao/pi-stash` releases remain available but are no longer maintained here.
69
69
 
@@ -81,9 +81,9 @@ Pi stacks widgets by key. While tasks are visible, three other above-editor widg
81
81
 
82
82
  ### Command Code
83
83
 
84
- `pi-commandcode-provider@0.8.2` adds the `commandcode` model provider. It does not register its own `/login` command. Pi's `/login` lists it with the other subscription providers (`antigravity`, `qoder`, and `qoder-cn`). Choose **Use a subscription**, then **Command Code**. Press Enter for browser login, type `key` to paste an API key, or paste the key directly. `COMMAND_CODE_API_KEY` signs the provider in at startup. Existing keys in `~/.commandcode/auth.json` are also read. Credentials Pi stores for this provider live under the `commandcode` entry in the host auth file. The reader does not take `qoder` or `antigravity` credentials.
84
+ `pi-commandcode-provider@0.8.3` adds the `commandcode` model provider. It does not register its own `/login` command. Pi's `/login` lists it with the other subscription providers (`antigravity`, `qoder`, and `qoder-cn`). Choose **Use a subscription**, then **Command Code**. Press Enter for browser login, type `key` to paste an API key, or paste the key directly. `COMMAND_CODE_API_KEY` signs the provider in at startup. Existing keys in `~/.commandcode/auth.json` are also read. Credentials Pi stores for this provider live under the `commandcode` entry in the host auth file. The reader does not take `qoder` or `antigravity` credentials.
85
85
 
86
- `/commandcode-quota` shows account usage. `/commandcode-refresh` reloads the model catalog, and `/commandcode-status` shows redacted discovery diagnostics: URL userinfo, query strings, and fragments are removed before the shared credential redactor runs. `/commandcode-endpoint` stores a per-model Provider API route, and `/commandcode-diagnostics` prints a content-free report. Inference stays on the Provider API. A `403 upgrade_required` response stops with that requirement and does not retry the retired `/alpha/generate` transport. `COMMANDCODE_TASTE_LEARNING` is no longer read. During a DeepSeek V4 peak window, context-tier rates are doubled together with the base rates, and the host receives its own mutable copy. `/commandcode-refresh` resets the transport probe. On first start without a cache, model discovery waits for `https://api.commandcode.ai/provider/v1/models` and still loads if that request fails. The static capability snapshot stays `command-code@1.88.5`. Reviewed per-million display prices added on 2026-11-11 are `claude-fable-5-2` at $8.00 input / $40.00 output / $0.20 cache read / $10.00 cache write, `google/gemini-4-carbon` at $2.00 / $10.00 / $0.10 with no cache-write charge, and `meta/muse-ember` at $0.10 / $0.50 / $0.004 with no cache-write charge. Those models stay text-only, without reasoning or effort flags, until the capability snapshot includes them. The retired `stealth/crouton-alpha` and `reflection/beam:free` zero prices are removed; their capability flags remain, so a listing without a price is unknown. TypeSafe's Command Code judge backend stays opt-in and uses that backend's own key. This aggregate does not also bundle `pi-login-manager` or `@iaziz786/pi-cmd-login`.
86
+ `/commandcode-quota` shows account usage. `/commandcode-refresh` reloads the model catalog, and `/commandcode-status` shows redacted discovery diagnostics: URL userinfo, query strings, and fragments are removed before the shared credential redactor runs. `/commandcode-endpoint` stores a per-model Provider API route, and `/commandcode-diagnostics` prints a content-free report. Inference stays on the Provider API. A `403 upgrade_required` response stops with that requirement and does not retry the retired `/alpha/generate` transport. `COMMANDCODE_TASTE_LEARNING` is no longer read. During a DeepSeek V4 peak window, context-tier rates are doubled together with the base rates, and the host receives its own mutable copy. `/commandcode-refresh` resets the transport probe. On first start without a cache, model discovery waits for `https://api.commandcode.ai/provider/v1/models` and still loads if that request fails. The static capability snapshot stays `command-code@1.88.5`. Reviewed per-million display prices added on 2026-11-11 are `claude-fable-5-2` at $8.00 input / $40.00 output / $0.20 cache read / $10.00 cache write, `google/gemini-4-carbon` at $2.00 / $10.00 / $0.10 with no cache-write charge, and `meta/muse-ember` at $0.10 / $0.50 / $0.004 with no cache-write charge. Those models stay text-only, without reasoning or effort flags, until the capability snapshot includes them. `thinkingmachines/inkling-2-small:free` is priced at zero while that free tier lasts and is also absent from the capability snapshot, so it stays text-only. Responses requests for `zai-org/GLM-5.3` tag untyped system, developer, and user items as `type: "message"` and drop a reasoning block that is only `effort: "none"`. `mistral/mistral-large-4` drops that same inert block and leaves item types unchanged. Every other model keeps the host body. A reasoning effort other than `none` is left in place. The retired `stealth/crouton-alpha` and `reflection/beam:free` zero prices are removed; their capability flags remain, so a listing without a price is unknown. TypeSafe's Command Code judge backend stays opt-in and uses that backend's own key. This aggregate does not also bundle `pi-login-manager` or `@iaziz786/pi-cmd-login`.
87
87
 
88
88
  ### Footer
89
89
 
@@ -187,7 +187,7 @@ THE SOFTWARE.
187
187
 
188
188
  ## `pi-commandcode-provider`
189
189
 
190
- The aggregate bundles [`pi-commandcode-provider`](https://github.com/patlux/pi-commandcode-provider) version 0.8.2 under its original MIT license. The imported npm package corresponds to upstream tag `v0.8.2` at commit [`7616ecd7a5100242411242b506623d025ae0181e`](https://github.com/patlux/pi-commandcode-provider/commit/7616ecd7a5100242411242b506623d025ae0181e). npm publishes no gitHead; the published tarball matches that tag.
190
+ The aggregate bundles [`pi-commandcode-provider`](https://github.com/patlux/pi-commandcode-provider) version 0.8.3 under its original MIT license. The imported npm package corresponds to upstream tag `v0.8.3` at commit [`2a5c55d8b2b74f01573cbf5735dca78b67f5efd1`](https://github.com/patlux/pi-commandcode-provider/commit/2a5c55d8b2b74f01573cbf5735dca78b67f5efd1). npm publishes no gitHead; the published tarball matches that tag.
191
191
 
192
192
  MIT License
193
193
 
@@ -217,4 +217,4 @@ The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provi
217
217
 
218
218
  ## `@herbertgao/pi-impeccable`
219
219
 
220
- The aggregate bundles [`@herbertgao/pi-impeccable`](https://github.com/HerbertGao/pi-extensions/tree/master/packages/pi-impeccable), vendored from [`pbakaus/impeccable`](https://github.com/pbakaus/impeccable) release `4.8.2` at commit `035c8f319edd019936525a062fe99e83ca8d12c6`, under the Apache License 2.0. `scripts/live-browser.js` includes one local fix that keeps a staged removal in the live DOM. The bundled child package includes the complete upstream `LICENSE` and `NOTICE.md`, including its third-party attributions.
220
+ The aggregate bundles [`@herbertgao/pi-impeccable`](https://github.com/HerbertGao/pi-extensions/tree/master/packages/pi-impeccable), vendored from [`pbakaus/impeccable`](https://github.com/pbakaus/impeccable) release `4.9.1` at commit `acb4cfe14470b1fdf51e855431af618d936b7db8`, under the Apache License 2.0. `scripts/live-browser.js` includes one local fix that keeps a staged removal in the live DOM. The bundled child package includes the complete upstream `LICENSE` and `NOTICE.md`, including its third-party attributions.
@@ -1,5 +1,11 @@
1
1
  # @herbertgao/pi-cc-extensions
2
2
 
3
+ ## 1.0.18-local.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#377](https://github.com/HerbertGao/pi-extensions/pull/377) [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-cc-extensions 1.0.18. Expanded cards drop the blank row between Input and Output. Inline images in an expanded group line up with the output text, and in fullscreen they keep the card background. Regular mode still does not enable terminal mouse reporting.
8
+
3
9
  ## 1.0.17-local.1
4
10
 
5
11
  ### Minor Changes
@@ -119,7 +119,7 @@ pi -e . # one run, does not edit settings.json
119
119
 
120
120
  ## Compatibility
121
121
 
122
- - Node.js `>=22.19.0`; the monorepo typechecks against Pi `1.5.0`, and published Pi peer versions stay `*`. 1.0.17 passes injected keybinding hints, `messageTypes`, and the waiting-for-input state through to Pi 1.5.x hosts that provide them.
122
+ - Node.js `>=22.19.0`; the monorepo typechecks against Pi `1.5.0`, and published Pi peer versions stay `*`. 1.0.18 drops the blank rail between Input and Output on an expanded card. Inline images in an expanded group line up with the output text, and in fullscreen they keep the card background. 1.0.17 still passes injected keybinding hints, `messageTypes`, and the waiting-for-input state through to Pi 1.5.x hosts that provide them.
123
123
 
124
124
  ## Recommended companions
125
125
 
@@ -131,7 +131,7 @@ pi -e . # one run, does not edit settings.json
131
131
 
132
132
  ## Credits
133
133
 
134
- - Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.17 (MIT), upstream baseline [`04c4274`](https://github.com/minuque/pi-cc-extensions/commit/04c4274d08135b5880bad285f92b11e9b22d115e), with this repository's configuration migration and compatibility patches retained.
134
+ - Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.18 (MIT), upstream baseline [`a251f65`](https://github.com/minuque/pi-cc-extensions/commit/a251f652e8cdbb8d395b3df81ca714ed8711df5d), with this repository's configuration migration and compatibility patches retained.
135
135
  - Rich diffs are adapted from [`MasuRii/pi-tool-display`](https://github.com/MasuRii/pi-tool-display) (MIT). See [`extensions/renderer/tool/diff/ATTRIBUTION.md`](./extensions/renderer/tool/diff/ATTRIBUTION.md).
136
136
 
137
137
  ## License
@@ -119,7 +119,7 @@ pi -e . # 只跑一次,不改 settings.json
119
119
 
120
120
  ## 兼容性
121
121
 
122
- - Node.js `>=22.19.0`;monorepo 的类型检查使用 Pi `1.5.0`,发布包的 Pi peer 版本保持 `*`。1.0.17 会把注入式按键提示、`messageTypes` 和等待输入状态交给支持它们的 Pi 1.5.x。
122
+ - Node.js `>=22.19.0`;monorepo 的类型检查使用 Pi `1.5.0`,发布包的 Pi peer 版本保持 `*`。1.0.18 去掉展开卡里 Input 与 Output 之间的空 rail 行。分组展开卡里的内联图片与 Output 正文对齐,全屏时图片行保留卡片底色。1.0.17 仍会把注入式按键提示、`messageTypes` 和等待输入状态交给支持它们的 Pi 1.5.x。
123
123
 
124
124
  ## 推荐搭配
125
125
 
@@ -131,7 +131,7 @@ pi -e . # 只跑一次,不改 settings.json
131
131
 
132
132
  ## 致谢
133
133
 
134
- - 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.17(MIT),上游基线 [`04c4274`](https://github.com/minuque/pi-cc-extensions/commit/04c4274d08135b5880bad285f92b11e9b22d115e);保留本仓库的配置迁移与兼容性补丁。
134
+ - 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.18(MIT),上游基线 [`a251f65`](https://github.com/minuque/pi-cc-extensions/commit/a251f652e8cdbb8d395b3df81ca714ed8711df5d);保留本仓库的配置迁移与兼容性补丁。
135
135
  - Rich diff 改编自 [`MasuRii/pi-tool-display`](https://github.com/MasuRii/pi-tool-display)(MIT);详见 [`extensions/renderer/tool/diff/ATTRIBUTION.md`](./extensions/renderer/tool/diff/ATTRIBUTION.md)。
136
136
 
137
137
  ## 许可证
@@ -47,7 +47,7 @@ import { toolLoadingIcon } from "../utils/tool-loading-icon.ts";
47
47
  import { sanitizeToolResultText } from "../utils/tool-result-sanitize.ts";
48
48
  import { refreshTranscriptComponent } from "./transcript-refresh.ts";
49
49
  import { getMessageDisplayTheme } from "./tool/message-display.ts";
50
- import { showMoreHintText } from "./tool/names.ts";
50
+ import { isToolTuiFullscreen, showMoreHintText } from "./tool/names.ts";
51
51
  import {
52
52
  countEditDiffStats,
53
53
  countWriteDiffStats,
@@ -69,7 +69,7 @@ export function isCompactRoundTail(value: unknown): boolean {
69
69
  return Boolean(value && typeof value === "object" && (value as any)[COMPACT_ROUND_TAIL_KEY]);
70
70
  }
71
71
  import { renderExpandedToolResult } from "./tool/tool-io.ts";
72
- import { paddedBackgroundRow } from "./tool/grouping.ts";
72
+ import { imageBackgroundRow, paddedBackgroundRow } from "./tool/grouping.ts";
73
73
  import { styleChangeCounts } from "./tool/ccstyle-tool.ts";
74
74
  import { formatDisplayPath } from "./tool/names.ts";
75
75
  import {
@@ -413,14 +413,15 @@ function layoutExpandedToolCard(
413
413
  /** live 首行被吃掉的前导缩进:续行同步左移同样格数,保持块内相对对齐。 */
414
414
  let liveLead = 0;
415
415
  const pushRow = (raw: string, imageKind?: ImageRowKind) => {
416
- // 内联图片:锚点行原样输出(live 只补 `↳`),占位行保持零宽。
417
- // 补底色/缩进会让 pi-tui 认不出整块图片,占位行会当成普通行盖在图片上。
416
+ // 内联图片:live 槽位不铺底色,锚点行只补 `↳`、占位行保持零宽;
417
+ // 面板里按全屏/主屏渲染器决定能否给图片行铺底色(见 imageBackgroundRow)。
418
418
  if (imageKind) {
419
- if (imageKind === "filler") {
420
- lines.push("");
421
- return;
419
+ if (live) lines.push(imageKind === "filler" ? "" : `${theme.fg("muted", "↳")} ${raw}`);
420
+ else {
421
+ // 与普通行同口径:剥掉 1 格 lead,由底色行补回的 1 格左边距代替。
422
+ const line = raw.replace(/^((?:\x1b\[[0-?]*[ -/]*[@-~])*) /, "$1");
423
+ lines.push(imageBackgroundRow(theme, outerSlot, line, imageKind, width));
422
424
  }
423
- lines.push(live ? `${theme.fg("muted", "↳")} ${raw}` : raw);
424
425
  return;
425
426
  }
426
427
  if (!live) {
@@ -518,6 +519,8 @@ function compactRoundCard(
518
519
  theme: unknown;
519
520
  /** 背景槽位也是面板行的输入:改配置后不能复用旧底色的整卡。 */
520
521
  bgSlot: string;
522
+ /** 全屏与主屏的图片行输出不同(见 imageBackgroundRow)。 */
523
+ fullscreen: boolean;
521
524
  paints: unknown[];
522
525
  lines: string[];
523
526
  hits: Array<{ child: any; start: number; end: number }>;
@@ -539,6 +542,7 @@ function compactRoundCard(
539
542
  paint.width === width &&
540
543
  paint.theme === theme &&
541
544
  paint.bgSlot === bgSlot &&
545
+ paint.fullscreen === isToolTuiFullscreen() &&
542
546
  paint.paints.length === paints.length &&
543
547
  paint.paints.every((item, index) => item === paints[index])
544
548
  ) {
@@ -549,6 +553,7 @@ function compactRoundCard(
549
553
  width,
550
554
  theme,
551
555
  bgSlot,
556
+ fullscreen: isToolTuiFullscreen(),
552
557
  paints,
553
558
  lines: laid.lines,
554
559
  hits: laid.hits,
@@ -28,6 +28,7 @@ import {
28
28
  contentRowRange,
29
29
  hasVisibleText,
30
30
  imageBlockRows,
31
+ type ImageRowKind,
31
32
  imagePlacement,
32
33
  stripAnsi,
33
34
  stripBackgroundAnsi,
@@ -207,7 +208,8 @@ function visibleLines(lines: string[]): string[] {
207
208
  for (let index = 0; index < lines.length; index++) {
208
209
  const placement = imagePlacement(lines[index]);
209
210
  if (!placement) {
210
- if (stripAnsi(lines[index]).trim()) keep.add(index);
211
+ // 鼠标命中的零宽 APC 标记也算空:只剥 CSI 会把图片前的空行留下来。
212
+ if (hasVisibleText(lines[index])) keep.add(index);
211
213
  continue;
212
214
  }
213
215
  const start = placement.grows === "up" ? index - placement.rows + 1 : index;
@@ -251,16 +253,43 @@ export function paddedBackgroundRow(
251
253
  const innerWidth = Math.max(0, width - 2);
252
254
  const clipped = truncateToWidth(stripBackgroundAnsi(content), innerWidth, "");
253
255
  const row = ` ${clipped}${" ".repeat(Math.max(0, innerWidth - visibleWidth(clipped)))} `;
254
- const bgAnsi =
255
- bgAnsiOverride ||
256
- (typeof theme?.bg === "function"
257
- ? theme.getBgAnsi?.(slot) || theme.bg(slot, "").match(/^\x1b\[[0-?]*[ -/]*[@-~]/)?.[0] || ""
258
- : "");
256
+ const bgAnsi = bgAnsiOverride || backgroundAnsi(theme, slot);
259
257
  const stable = bgAnsi ? row.replace(/\x1b\[(?:0)?m/g, (reset) => reset + bgAnsi) : row;
260
258
  if (!bgAnsi) return typeof theme?.bg === "function" ? theme.bg(slot, stable) : row;
261
259
  return `${bgAnsi}${stable}\x1b[49m`;
262
260
  }
263
261
 
262
+ function backgroundAnsi(theme: any, slot: string): string {
263
+ if (typeof theme?.bg !== "function") return "";
264
+ return theme.getBgAnsi?.(slot) || theme.bg(slot, "").match(/^\x1b\[[0-?]*[ -/]*[@-~]/)?.[0] || "";
265
+ }
266
+
267
+ /**
268
+ * 展开卡里内联图片块的一行。
269
+ *
270
+ * 全屏(alt-screen)渲染器先画文字、最后画图片,占位行可以带树线和底色:
271
+ * 占位行按普通行铺满底色;锚点行先用 ECH 按底色擦满整行(不移动光标、不写字符),
272
+ * 再写前缀和图片序列,图片首行右侧也有底色。
273
+ * 主屏渲染器靠「锚点行 + 其后连续零宽行」给图片预留行,占位行只能零宽,锚点行不补底色。
274
+ */
275
+ export function imageBackgroundRow(
276
+ theme: any,
277
+ slot: string,
278
+ content: string,
279
+ kind: ImageRowKind,
280
+ width: number,
281
+ ): string {
282
+ if (kind === "filler") {
283
+ return isToolTuiFullscreen() ? paddedBackgroundRow(theme, slot, content, width) : "";
284
+ }
285
+ // 与普通底色行同口径:左边留 1 格边距,图片才与上方正文对齐。
286
+ const row = ` ${content}`;
287
+ const bgAnsi = isToolTuiFullscreen() ? backgroundAnsi(theme, slot) : "";
288
+ if (!bgAnsi) return row;
289
+ const stable = row.replace(/\x1b\[(?:0)?m/g, (reset) => reset + bgAnsi);
290
+ return `${bgAnsi}\x1b[${Math.max(1, width)}X${stable}\x1b[49m`;
291
+ }
292
+
264
293
  function toolSummary(tool: any): ToolCallSummary {
265
294
  return toolCallSummary(toolName(tool), tool?.args ?? {}, {
266
295
  title: toolTitle(tool),
@@ -380,12 +409,24 @@ function expandedToolRows(tool: any, width: number): string[] {
380
409
  }
381
410
  const rows = rendered.length
382
411
  ? // 续行只剥外层 Box 的 1 格 left pad,保留 Input/Output 相对缩进
383
- rendered.map((line, index) => (index === 0 ? line : stripLeadingSpaces(line, 1)))
412
+ alignImageAnchors(
413
+ rendered.map((line, index) => (index === 0 ? line : stripLeadingSpaces(line, 1))),
414
+ )
384
415
  : [toolSummary(tool).main];
385
416
  expandedToolRowsCache.set(paint, rows);
386
417
  return rows;
387
418
  }
388
419
 
420
+ /** 图片锚点行缩进到上一行正文的位置:图片与 Output 正文左对齐,不贴着树线。 */
421
+ function alignImageAnchors(rows: string[]): string[] {
422
+ let indent = "";
423
+ return rows.map((line) => {
424
+ if (imagePlacement(line)) return indent + line;
425
+ if (hasVisibleText(line)) indent = /^ */.exec(stripAnsi(line))?.[0] ?? "";
426
+ return line;
427
+ });
428
+ }
429
+
389
430
  function toolItem(tool: any): GroupDisplayItem {
390
431
  const toolStatus = status(tool);
391
432
  return {
@@ -681,14 +722,16 @@ export class ToolGroupComponent extends Container {
681
722
  ? `${fg("dim", branch)} ${fg(color, statusIcon(item.status))} `
682
723
  : fg("dim", continuation);
683
724
  const imageKind = imageRows.get(lineIndex);
684
- // 图片占位行必须零宽:补空格/底色会盖住图片,pi-tui 也认不出整块图片。
685
- if (imageKind === "filler") {
686
- lines.push("");
687
- continue;
688
- }
689
- // 锚点行只带树枝前缀:行尾补的底色空格会画在图片首行上。
690
- if (imageKind === "anchor") {
691
- lines.push(prefix + rows[lineIndex]);
725
+ if (imageKind) {
726
+ lines.push(
727
+ imageBackgroundRow(
728
+ theme,
729
+ backgroundSlot,
730
+ prefix + (imageKind === "anchor" ? rows[lineIndex] : ""),
731
+ imageKind,
732
+ width,
733
+ ),
734
+ );
692
735
  continue;
693
736
  }
694
737
  lines.push(paddedBackgroundRow(theme, backgroundSlot, prefix + rows[lineIndex], width));
@@ -310,10 +310,6 @@ export class ExpandedToolIoView {
310
310
  lines.push(truncateToWidth(theme.fg("dim", prefix) + styledContent, safeWidth, ""));
311
311
  };
312
312
 
313
- const pushBlankRail = () => {
314
- lines.push(truncateToWidth(theme.fg("dim", `${lead}│`), safeWidth, ""));
315
- };
316
-
317
313
  const pushBody = (
318
314
  body: string,
319
315
  opts: {
@@ -400,7 +396,6 @@ export class ExpandedToolIoView {
400
396
  continued: true,
401
397
  section: "input",
402
398
  });
403
- pushBlankRail();
404
399
  this.truncated.output = outputWouldTruncate;
405
400
  pushHeader("└", "Output");
406
401
  pushBody(outputText, {
@@ -11,6 +11,8 @@ const CSI_SEQUENCE_RE = /\x1b\[[0-?]*[ -/]*[@-~]/g;
11
11
  const OSC_SEQUENCE_RE = /\x1b\][^\x07]*(?:\x07|\x1b\\)/g;
12
12
  /** compact-mode 原有 hasVisibleText 用的更严格 OSC(内容不允许内嵌 ESC)。 */
13
13
  const OSC_SEQUENCE_STRICT_RE = /\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g;
14
+ /** APC 序列:鼠标命中用的零宽行标记(\x1b_cc:…\x07)、kitty 图片(\x1b_G…\x1b\\)。 */
15
+ const APC_SEQUENCE_RE = /\x1b_[^\x07\x1b]*(?:\x07|\x1b\\)/g;
14
16
 
15
17
  /** 剥离一行内所有 CSI 序列。 */
16
18
  export function stripAnsi(line: string): string {
@@ -19,7 +21,10 @@ export function stripAnsi(line: string): string {
19
21
 
20
22
  /** 仅剥离终端序列、保留原布局(换行/空白不动),用于命中区间计算。 */
21
23
  export function stripTerminalSequencesPreservingLayout(value: string): string {
22
- return value.replace(OSC_SEQUENCE_RE, "").replace(CSI_SEQUENCE_RE, "");
24
+ return value
25
+ .replace(OSC_SEQUENCE_RE, "")
26
+ .replace(APC_SEQUENCE_RE, "")
27
+ .replace(CSI_SEQUENCE_RE, "");
23
28
  }
24
29
 
25
30
  /** 剥离终端序列并折叠空白(用于纯文本比较)。 */
@@ -27,10 +32,16 @@ export function stripTerminalSequences(value: string): string {
27
32
  return stripTerminalSequencesPreservingLayout(value).replace(/\s+/g, " ").trim();
28
33
  }
29
34
 
30
- /** 去掉行内所有 CSI/OSC 序列后是否仍有可见文本(判断工具卡首尾内容行)。 */
35
+ /** 去掉行内所有 CSI/OSC/APC 序列后是否仍有可见文本(判断工具卡首尾内容行)。 */
31
36
  export function hasVisibleText(line: string): boolean {
32
37
  // OSC 用更严格的变体:内容内嵌 ESC 时不吞并后续文本,保持 compact-mode 原有语义。
33
- return line.replace(CSI_SEQUENCE_RE, "").replace(OSC_SEQUENCE_STRICT_RE, "").trim().length > 0;
38
+ return (
39
+ line
40
+ .replace(CSI_SEQUENCE_RE, "")
41
+ .replace(OSC_SEQUENCE_STRICT_RE, "")
42
+ .replace(APC_SEQUENCE_RE, "")
43
+ .trim().length > 0
44
+ );
34
45
  }
35
46
 
36
47
  const KITTY_IMAGE_PREFIX = "\x1b_G";
@@ -123,7 +134,10 @@ export function stripLeadingStatusIcon(line: string): string {
123
134
  }
124
135
 
125
136
  /** 终端序列零宽(不计入 plain 下标),与 stripAnsi/stripTerminalSequencesPreservingLayout 一致。 */
126
- const ANY_SEQUENCE_RE = new RegExp(`${CSI_SEQUENCE_RE.source}|${OSC_SEQUENCE_RE.source}`, "g");
137
+ const ANY_SEQUENCE_RE = new RegExp(
138
+ `${CSI_SEQUENCE_RE.source}|${OSC_SEQUENCE_RE.source}|${APC_SEQUENCE_RE.source}`,
139
+ "g",
140
+ );
127
141
 
128
142
  /** 只保留 [start, end) 之外的字符(base 为 text 首字符在 plain 串中的下标)。 */
129
143
  function keepOutsideRange(text: string, base: number, start: number, end: number): string {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-cc-extensions",
3
- "version": "1.0.17-local.1",
3
+ "version": "1.0.18-local.1",
4
4
  "license": "MIT",
5
5
  "description": "A Pi productivity suite with Claude Code-style UI, context inspection, and agent/session references",
6
6
  "type": "module",
@@ -74,10 +74,10 @@
74
74
  },
75
75
  "x-upstream": {
76
76
  "package": "pi-cc-extensions",
77
- "version": "1.0.17",
78
- "reviewedVersion": "1.0.17",
77
+ "version": "1.0.18",
78
+ "reviewedVersion": "1.0.18",
79
79
  "repository": "https://github.com/minuque/pi-cc-extensions",
80
- "commit": "04c4274d08135b5880bad285f92b11e9b22d115e",
80
+ "commit": "a251f652e8cdbb8d395b3df81ca714ed8711df5d",
81
81
  "trackVersion": true
82
82
  }
83
83
  }
@@ -1,5 +1,11 @@
1
1
  # @herbertgao/pi-impeccable
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#377](https://github.com/HerbertGao/pi-extensions/pull/377) [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Vendor the official Impeccable 4.9.1 Pi skill. The launcher pins engine 0.1.24, and a GitHub HTTP 5xx during download says the outage is on GitHub's side. `/impeccable foundations` walks a product-foundations checklist. Hiding the live bar stops capturing clicks. The local Go staged-removal fix is kept.
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  # @herbertgao/pi-impeccable
2
2
 
3
- The [Impeccable](https://github.com/pbakaus/impeccable) design skill for [Pi](https://pi.dev/), vendored from the official `skill-v4.8.2` release. It provides design steering, critique, audit, and deterministic anti-pattern detection without an installer, background service, or global skill directory.
3
+ The [Impeccable](https://github.com/pbakaus/impeccable) design skill for [Pi](https://pi.dev/), vendored from the official `skill-v4.9.1` release. It provides design steering, critique, audit, and deterministic anti-pattern detection without an installer, background service, or global skill directory.
4
4
 
5
5
  ## Install
6
6
 
@@ -27,7 +27,7 @@ Upstream `pin` and `unpin` only discover skill installations in project harness
27
27
 
28
28
  ## Updates and provenance
29
29
 
30
- This package vendors the official Pi payload: 58 files from commit [`035c8f319edd019936525a062fe99e83ca8d12c6`](https://github.com/pbakaus/impeccable/commit/035c8f319edd019936525a062fe99e83ca8d12c6). `scripts/live-browser.js` has one local fix on top of that commit: Go still cleans edit markers on the live selection, but it no longer detaches a staged removal, so Undo and Discard can restore the hidden node. The review cursor stays at that commit. Updates are reviewed and released through this repository rather than the upstream auto-updater.
30
+ This package vendors the official Pi payload: 59 files from commit [`acb4cfe14470b1fdf51e855431af618d936b7db8`](https://github.com/pbakaus/impeccable/commit/acb4cfe14470b1fdf51e855431af618d936b7db8). `scripts/live-browser.js` has one local fix on top of that commit: Go still cleans edit markers on the live selection, but it no longer detaches a staged removal, so Undo and Discard can restore the hidden node. The review cursor stays at that commit. Updates are reviewed and released through this repository rather than the upstream auto-updater. The launcher pins engine `0.1.24`. `/impeccable foundations` walks a product-foundations checklist, and a hidden live bar stops capturing page clicks.
31
31
 
32
32
  ## License
33
33
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-impeccable",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "The Impeccable design skill for Pi, vendored from the official release.",
5
5
  "keywords": [
6
6
  "design",
@@ -46,9 +46,9 @@
46
46
  },
47
47
  "x-upstream": {
48
48
  "package": "impeccable",
49
- "version": "4.8.2",
50
- "reviewedVersion": "4.8.2",
49
+ "version": "4.9.1",
50
+ "reviewedVersion": "4.9.1",
51
51
  "repository": "https://github.com/pbakaus/impeccable",
52
- "commit": "035c8f319edd019936525a062fe99e83ca8d12c6"
52
+ "commit": "acb4cfe14470b1fdf51e855431af618d936b7db8"
53
53
  }
54
54
  }
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: impeccable
3
3
  description: "Use when the user wants to design, redesign, shape, critique, audit, polish, simplify, harden, animate, or otherwise improve a frontend interface: websites, landing pages, dashboards, product UI, components, forms, settings, onboarding, empty states, and native iOS or Android screens. Handles UX review, hierarchy, layout, typography, color, motion, UX copy, accessibility, responsive behavior, edge cases, and capturing or documenting design systems (DESIGN.md, tokens). Also for making bland UI bolder, loud UI quieter, or ambitious visual effects. Not for backend-only or non-UI tasks."
4
- version: 4.8.2
4
+ version: 4.9.1
5
5
  license: Apache 2.0
6
6
  allowed-tools:
7
7
  - Bash(npx impeccable *)
@@ -86,4 +86,6 @@ After init writes PRODUCT.md, resume without rerunning `impeccable context`; ini
86
86
 
87
87
  **Doctor:** `/impeccable doctor` reports and repairs drift between this project's Impeccable artifacts (PRODUCT.md, DESIGN.md and its sidecar, config, surface briefs, the hook) and what this version reads. Load [reference/doctor.md](reference/doctor.md) when the user invokes it, or when they ask what is out of date, stale, or needs refreshing. A `CONTEXT_STALE` directive in Setup's output is the cheap subset of the same report; act on it there per its own instructions rather than running doctor unasked.
88
88
 
89
+ **Foundations:** `/impeccable foundations` runs `.pi/skills/impeccable/scripts/impeccable foundations` and walks the user through the product-foundations roadmap (secrets, 404 page, icons, CI and more); `/impeccable foundations <id>` fixes that one item. Load [reference/foundations.md](reference/foundations.md) when the user invokes it.
90
+
89
91
  **Never repair drift as a side effect of a design task.** A `CONTEXT_STALE` finding is reported, not acted on, unless the user asks. The one exception is a finding marked `auto`, which the next write to that file performs anyway.
@@ -161,7 +161,7 @@ Choose appropriate breakpoints:
161
161
  ### Navigation Adaptation
162
162
 
163
163
  - Transform complex nav to hamburger/drawer on mobile
164
- - Bottom nav bar for mobile apps
164
+ - Bottom nav bar for mobile web
165
165
  - Persistent side navigation on desktop
166
166
  - Breadcrumbs on smaller screens for context
167
167
 
@@ -53,7 +53,14 @@ Run comprehensive checks across 5 dimensions. Score each dimension 0-4 using the
53
53
  - **Text scaling**: Layouts that break when text size increases
54
54
  - **Missing breakpoints**: No mobile/tablet variants
55
55
 
56
- **Score 0-4**: 0=Desktop-only (breaks on mobile), 1=Major issues (some breakpoints, many failures), 2=Partial (works on mobile, rough edges), 3=Good (responsive, minor touch target or overflow issues), 4=Excellent (fluid, all viewports, proper touch targets, gestures work under touch)
56
+ On RTL-declared pages, each of the following is a signal to verify the rendered result, not a defect in itself; flag only where the rendering is actually wrong:
57
+ - **Physical directional properties**: `margin-left/right`, `padding-left/right`, `text-align: left/right`, `float: left/right`, `border-left/right` where logical equivalents (`margin-inline-start/end`, `padding-inline-start/end`, `text-align: start/end`, `float: inline-start/end`, `border-inline-start/end`) would be expected. A direction-scoped override like `[dir="rtl"] .x { margin-right:1rem }` is correct only when it also clears the conflicting base property (e.g. `margin-left: 0`); without that, both margins apply
58
+ - **Physical positioning on positioned elements**: `left:` or `right:` instead of `inset-inline-start` / `inset-inline-end`. Note: `left:50%; transform:translateX(-50%)` is a direction-agnostic centering pattern that works correctly in both LTR and RTL; replacing `left` with `inset-inline-start` there breaks the centering because `translateX` is physical and does not mirror
59
+ - **Directional icons and assets**: arrows, chevrons, and navigation icons that point the wrong direction for the reading order. An RTL-only page may ship assets already drawn correctly without a `[dir="rtl"]` flip; verify the rendered icon rather than assuming a missing `transform: scaleX(-1)` is a defect
60
+
61
+ **RTL scope**: flag physical directional properties only on pages that declare `dir="rtl"` on the `<html>` or `<body>` element. A `lang` attribute alone does not set direction (browsers take direction from `dir`, never from `lang`), but treat an RTL-script `lang` (`ar`, `fa`, `ur`, `ps`, `ckb`, `he`, `yi`, `ug`, `sd`, `dv`) without an explicit `dir` as a signal worth noting.
62
+
63
+ **Score 0-4**: 0=Desktop-only (breaks on mobile), 1=Major issues (some breakpoints, many failures), 2=Partial (works on mobile, rough edges), 3=Good (responsive, minor touch target or overflow issues), 4=Excellent (fluid, all viewports, proper touch targets, gestures work under touch). On RTL-declared pages, reduce by 1 for pervasive rendered RTL failures
57
64
 
58
65
  ### 5. Implementation Integrity (CRITICAL)
59
66
 
@@ -137,3 +144,7 @@ Keep P3s few: a long tail of minor issues buries the ones that matter.
137
144
  - Skip positive findings (celebrate what works)
138
145
  - Forget to prioritize (everything can't be P0)
139
146
  - Report false positives without verification
147
+
148
+ ## Save the Report
149
+
150
+ After the report is delivered, save a copy so the findings outlive this conversation: write it, from the score table through Recommended Actions, to a temp file, then run `.pi/skills/impeccable/scripts/impeccable audit-storage write "<resolved target, or . for the whole project>" <temp-file>` and delete the temp file. The helper prints the path it wrote, which you mention in one line; `REPORTS OFF:` means the project opted out, and you mention nothing. Saving never replaces delivering: the user reads the report in chat first.
@@ -137,3 +137,7 @@ Keep P3s few: a long tail of minor issues buries the ones that matter.
137
137
  - Skip positive findings (celebrate what works)
138
138
  - Forget to prioritize (everything can't be P0)
139
139
  - Report false positives without verification
140
+
141
+ ## Save the Report
142
+
143
+ After the report is delivered, save a copy so the findings outlive this conversation: write it, from the score table through Recommended Actions, to a temp file, then run `.pi/skills/impeccable/scripts/impeccable audit-storage write "<resolved target, or . for the whole project>" <temp-file>` and delete the temp file. The helper prints the path it wrote, which you mention in one line; `REPORTS OFF:` means the project opted out, and you mention nothing. Saving never replaces delivering: the user reads the report in chat first.
@@ -160,7 +160,7 @@ For each issue, tag with **P0-P3 severity** (see [Issue Severity below](#issue-s
160
160
  #### Persona Red Flags
161
161
  > *Consult the [Personas reference](#persona-based-design-testing) below.*
162
162
 
163
- Auto-select 2-3 personas most relevant to this interface type (use the selection table in the reference). If `AGENTS.md` contains a `## Design Context` section from `impeccable init`, also generate 1-2 project-specific personas from the audience/brand info.
163
+ Auto-select 2-3 personas most relevant to this interface type (use the selection table in the reference). If PRODUCT.md has a `## Users` section, also generate 1-2 project-specific personas from it and from `## Brand Commitments`.
164
164
 
165
165
  For each selected persona, walk through the primary user action and list specific red flags found:
166
166
 
@@ -210,7 +210,7 @@ Skip this step if the Setup slug was null (vague or root-level target).
210
210
  IMPECCABLE_CRITIQUE_META='{"target":"<user phrasing>","total_score":<n>,"max_score":<n>,"na_heuristics":"<comma-separated numbers, or empty>","p0_count":<n>,"p1_count":<n>}' \
211
211
  .pi/skills/impeccable/scripts/impeccable critique-storage write "<resolved target>" <body-file>
212
212
  ```
213
- `max_score` is the applicable maximum from the heuristic table (40 when every heuristic applied), so a later run can tell a renormalized total from a full one. For a local file target, the helper also records an exact content fingerprint so polish can distinguish the assessed bytes from later edits without relying on Git state or timestamps. The helper prints the absolute path it wrote. Leave that file on disk. Polish closes it; this run does not.
213
+ `max_score` is the applicable maximum from the heuristic table (40 when every heuristic applied), so a later run can tell a renormalized total from a full one. For a local file target, the helper also records an exact content fingerprint so polish can distinguish the assessed bytes from later edits without relying on Git state or timestamps. The helper prints the absolute path it wrote. Leave that file on disk. Polish closes it; this run does not. `REPORTS OFF:` instead means the project opted out of saved reports: skip the trend read and carry on.
214
214
 
215
215
  3. **Delete the temp body file** after the write attempt completes, whether the write succeeded or failed. If deletion fails, mention `temp-file cleanup failed: <reason>` briefly in the final output, but do not block the critique.
216
216
 
@@ -800,7 +800,7 @@ Choose personas based on the interface type:
800
800
 
801
801
  #### Project-Specific Personas
802
802
 
803
- If `AGENTS.md` contains a `## Design Context` section (generated by `impeccable init`), derive 1–2 additional personas from the audience and brand information:
803
+ If PRODUCT.md has a `## Users` section (written by `impeccable init`), derive 1–2 additional personas from it and from `## Brand Commitments`:
804
804
 
805
805
  1. Read the target audience description
806
806
  2. Identify the primary user archetype not covered by the 5 predefined personas
@@ -809,11 +809,11 @@ If `AGENTS.md` contains a `## Design Context` section (generated by `impeccable
809
809
  ```
810
810
  ##### [Role]: "[Name]"
811
811
 
812
- **Profile**: [2-3 key characteristics derived from Design Context]
812
+ **Profile**: [2-3 key characteristics derived from PRODUCT.md]
813
813
 
814
814
  **Behaviors**: [3-4 specific behaviors based on the described audience]
815
815
 
816
816
  **Red Flags**: [3-4 things that would alienate this specific user type]
817
817
  ```
818
818
 
819
- Only generate project-specific personas when real Design Context data is available. Don't invent audience details; use the 5 predefined personas when no context exists.
819
+ Only generate project-specific personas when PRODUCT.md describes real users. Don't invent audience details; use the 5 predefined personas when no context exists.