@herbertgao/pi-extensions 2026.10.15 → 2026.10.16

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 (165) hide show
  1. package/README.md +6 -6
  2. package/THIRD_PARTY_NOTICES.md +2 -2
  3. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
  4. package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
  5. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +38 -1
  6. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +13 -9
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/default-mode.ts +2 -2
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-highlight.ts +41 -1
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +42 -25
  10. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  11. package/node_modules/pi-lens/CHANGELOG.md +37 -0
  12. package/node_modules/pi-lens/README.md +32 -0
  13. package/node_modules/pi-lens/config/biome/core.jsonc +3 -3
  14. package/node_modules/pi-lens/dist/{chunk-K2GUZ4DN.js → chunk-2DDDCJDL.js} +4 -4
  15. package/node_modules/pi-lens/dist/{chunk-DS2USX5G.js → chunk-2DMLM3ZO.js} +11 -11
  16. package/node_modules/pi-lens/dist/chunk-2F47TQOA.js +73 -0
  17. package/node_modules/pi-lens/dist/{chunk-YXDCRUKQ.js → chunk-2PHMIAKO.js} +4 -4
  18. package/node_modules/pi-lens/dist/{chunk-PP2A5V2T.js → chunk-2RLWJO5K.js} +7 -7
  19. package/node_modules/pi-lens/dist/{chunk-T4NGVFYI.js → chunk-2X4VLOCC.js} +2 -2
  20. package/node_modules/pi-lens/dist/{chunk-QT66NEYN.js → chunk-3MYEA7QD.js} +3 -3
  21. package/node_modules/pi-lens/dist/{chunk-7ZS7MC24.js → chunk-3WEPUD2V.js} +22 -22
  22. package/node_modules/pi-lens/dist/{chunk-TL2TCJYL.js → chunk-4AVZ3TG7.js} +14 -14
  23. package/node_modules/pi-lens/dist/{chunk-SNEUMLM7.js → chunk-4PCQCU47.js} +4 -4
  24. package/node_modules/pi-lens/dist/chunk-4WX4CTUE.js +57 -0
  25. package/node_modules/pi-lens/dist/{chunk-5LRUKYFA.js → chunk-5APMQ2IJ.js} +2 -2
  26. package/node_modules/pi-lens/dist/{chunk-4U7GDSZQ.js → chunk-5CV5ITZF.js} +2 -2
  27. package/node_modules/pi-lens/dist/{chunk-VUAVE3QC.js → chunk-5ZR3APIM.js} +36 -36
  28. package/node_modules/pi-lens/dist/{chunk-CPZ5JJW6.js → chunk-63RIVFQI.js} +4 -4
  29. package/node_modules/pi-lens/dist/{chunk-EDMLIW6W.js → chunk-75SY4F24.js} +12 -12
  30. package/node_modules/pi-lens/dist/{chunk-RCHO5W7M.js → chunk-7RQXA5GG.js} +6 -6
  31. package/node_modules/pi-lens/dist/{chunk-XHDBJODR.js → chunk-A3YNG5KP.js} +21 -21
  32. package/node_modules/pi-lens/dist/{chunk-3WCEHYOI.js → chunk-AE37FEGH.js} +1 -1
  33. package/node_modules/pi-lens/dist/{chunk-KPVLQHCZ.js → chunk-AMXIUN2R.js} +2 -2
  34. package/node_modules/pi-lens/dist/{chunk-XI34NWDI.js → chunk-ARD426WI.js} +1 -1
  35. package/node_modules/pi-lens/dist/{chunk-RG3MXTRI.js → chunk-BHUWL2Y3.js} +7 -7
  36. package/node_modules/pi-lens/dist/{chunk-4ODSZ35Z.js → chunk-BI5LAQ3Y.js} +44 -44
  37. package/node_modules/pi-lens/dist/{chunk-Q42LJANT.js → chunk-BM5GS6ZH.js} +2 -2
  38. package/node_modules/pi-lens/dist/{chunk-CG5V25HX.js → chunk-BWYQUPOS.js} +1 -1
  39. package/node_modules/pi-lens/dist/{chunk-HYVXA3BB.js → chunk-CFRQMBGP.js} +23 -23
  40. package/node_modules/pi-lens/dist/{chunk-NLIVE7L6.js → chunk-CJYKEW2L.js} +1 -1
  41. package/node_modules/pi-lens/dist/{chunk-MEFLGBCS.js → chunk-DC4CFXM5.js} +3 -3
  42. package/node_modules/pi-lens/dist/{chunk-ASRAO7KG.js → chunk-DMSLNKF7.js} +27 -27
  43. package/node_modules/pi-lens/dist/{chunk-YSDPVDFC.js → chunk-DQXSPYRI.js} +3 -3
  44. package/node_modules/pi-lens/dist/{chunk-YKVDBNPO.js → chunk-EVDGNG4F.js} +3 -3
  45. package/node_modules/pi-lens/dist/{chunk-2LDMXL2M.js → chunk-F5Z6URKM.js} +2 -2
  46. package/node_modules/pi-lens/dist/{chunk-72J27ICO.js → chunk-F6X3YJWD.js} +2 -2
  47. package/node_modules/pi-lens/dist/{chunk-YXGRRORB.js → chunk-FA5LDARD.js} +13 -13
  48. package/node_modules/pi-lens/dist/{chunk-OMJ3OFBJ.js → chunk-FFL3A2VP.js} +6 -6
  49. package/node_modules/pi-lens/dist/chunk-FJIVKLPH.js +31 -0
  50. package/node_modules/pi-lens/dist/chunk-G2B7F6ZU.js +88 -0
  51. package/node_modules/pi-lens/dist/{chunk-YWWG4AQA.js → chunk-GAACZY6R.js} +24 -25
  52. package/node_modules/pi-lens/dist/{chunk-F7BO6FWH.js → chunk-GMTFDAOK.js} +11 -11
  53. package/node_modules/pi-lens/dist/{chunk-UVY4TOJH.js → chunk-GNSIWBAT.js} +3 -3
  54. package/node_modules/pi-lens/dist/chunk-GTAI2J6U.js +27 -0
  55. package/node_modules/pi-lens/dist/{chunk-SJHC3BCZ.js → chunk-GZE7WOI4.js} +98 -111
  56. package/node_modules/pi-lens/dist/{chunk-ZAPSUBLU.js → chunk-H7HTEQUZ.js} +7 -7
  57. package/node_modules/pi-lens/dist/{chunk-ZPJM7DID.js → chunk-HK6JVFZC.js} +3 -3
  58. package/node_modules/pi-lens/dist/chunk-IPDG45G5.js +26 -0
  59. package/node_modules/pi-lens/dist/{chunk-ZSUX7KEM.js → chunk-J6JP25XU.js} +2 -2
  60. package/node_modules/pi-lens/dist/{chunk-6XSESGWD.js → chunk-JL6CXUMW.js} +2 -2
  61. package/node_modules/pi-lens/dist/{chunk-Y5KTA2OB.js → chunk-K2YGBXOA.js} +2 -2
  62. package/node_modules/pi-lens/dist/{chunk-AHWA4AKM.js → chunk-KLQVC3XC.js} +4 -4
  63. package/node_modules/pi-lens/dist/{chunk-27VWVB23.js → chunk-KSR7RGQY.js} +10 -10
  64. package/node_modules/pi-lens/dist/{chunk-N3PLNNCW.js → chunk-KXF5R4UN.js} +1 -1
  65. package/node_modules/pi-lens/dist/{chunk-GLW3YDZZ.js → chunk-LEJOJDXL.js} +9 -9
  66. package/node_modules/pi-lens/dist/{chunk-Y2TPADJR.js → chunk-MA77RSFN.js} +9 -9
  67. package/node_modules/pi-lens/dist/{chunk-IL7K66ZQ.js → chunk-MKVZQUEG.js} +15 -15
  68. package/node_modules/pi-lens/dist/{chunk-EIKRZ32J.js → chunk-MN7MHUXQ.js} +2 -2
  69. package/node_modules/pi-lens/dist/{chunk-4FHUGDKU.js → chunk-MT6BVNFW.js} +5 -5
  70. package/node_modules/pi-lens/dist/{chunk-3SNDVPOR.js → chunk-NDMCVUYK.js} +8 -8
  71. package/node_modules/pi-lens/dist/{chunk-63NMUNYP.js → chunk-NIU2IPC5.js} +6 -6
  72. package/node_modules/pi-lens/dist/{chunk-APFJKOP6.js → chunk-NNKXDXXS.js} +2 -2
  73. package/node_modules/pi-lens/dist/{chunk-FEDWAYDS.js → chunk-OJLTLYHB.js} +12 -12
  74. package/node_modules/pi-lens/dist/{chunk-KJJAVH3X.js → chunk-OLAWH5UQ.js} +5 -5
  75. package/node_modules/pi-lens/dist/{chunk-G224FADB.js → chunk-OOU2WZZE.js} +1 -1
  76. package/node_modules/pi-lens/dist/{chunk-NFNVDDGB.js → chunk-OSTKYB55.js} +1 -1
  77. package/node_modules/pi-lens/dist/chunk-P4QNXS6I.js +27 -0
  78. package/node_modules/pi-lens/dist/{chunk-7IYC4ENJ.js → chunk-PKES3ISE.js} +2 -2
  79. package/node_modules/pi-lens/dist/{chunk-UCVMSOXF.js → chunk-PO45POGF.js} +2 -2
  80. package/node_modules/pi-lens/dist/{chunk-JWOVP5BL.js → chunk-PPIBVH4R.js} +6 -6
  81. package/node_modules/pi-lens/dist/{chunk-EWXXLS26.js → chunk-PQJFG24Z.js} +82 -12
  82. package/node_modules/pi-lens/dist/{chunk-TPYYEDP5.js → chunk-Q3UZHW6N.js} +45 -22
  83. package/node_modules/pi-lens/dist/{chunk-5DKE4HGX.js → chunk-Q4EMRFNA.js} +34 -34
  84. package/node_modules/pi-lens/dist/{chunk-XHLK33VM.js → chunk-Q4FCYCRE.js} +16 -16
  85. package/node_modules/pi-lens/dist/chunk-Q6D6VMI4.js +22 -0
  86. package/node_modules/pi-lens/dist/{chunk-Q4BKKOVC.js → chunk-QGSTQH4D.js} +8 -8
  87. package/node_modules/pi-lens/dist/{chunk-GYRZ72R4.js → chunk-RZOXUSPC.js} +2 -2
  88. package/node_modules/pi-lens/dist/{chunk-EN5AM7PX.js → chunk-S67UJDGQ.js} +10 -10
  89. package/node_modules/pi-lens/dist/{chunk-YWNO5Q4R.js → chunk-SCIUNBPF.js} +17 -17
  90. package/node_modules/pi-lens/dist/{chunk-VIDEKABZ.js → chunk-SJJYRZB4.js} +2 -2
  91. package/node_modules/pi-lens/dist/chunk-SXGD4ANG.js +25 -0
  92. package/node_modules/pi-lens/dist/{chunk-THEXI2QO.js → chunk-T7FTXGS3.js} +42 -42
  93. package/node_modules/pi-lens/dist/{chunk-WUY4BZEP.js → chunk-TIQJPRDD.js} +106 -50
  94. package/node_modules/pi-lens/dist/{chunk-EXVXBSGN.js → chunk-TIYGSODX.js} +17 -17
  95. package/node_modules/pi-lens/dist/{chunk-2FYKETQJ.js → chunk-U2SDMG7C.js} +5 -5
  96. package/node_modules/pi-lens/dist/{chunk-PJXNTPB2.js → chunk-U6OC3QEM.js} +21 -21
  97. package/node_modules/pi-lens/dist/{chunk-LMCTHJ2H.js → chunk-UCGQT677.js} +18 -18
  98. package/node_modules/pi-lens/dist/{chunk-UL5SXQVX.js → chunk-UHGF5UT5.js} +1 -1
  99. package/node_modules/pi-lens/dist/{chunk-AI3GP74G.js → chunk-UN4TEBWN.js} +15 -15
  100. package/node_modules/pi-lens/dist/{chunk-2SDHYHHO.js → chunk-V3APN3DY.js} +13 -13
  101. package/node_modules/pi-lens/dist/{chunk-7FLRUH6B.js → chunk-V63BC55Q.js} +1 -1
  102. package/node_modules/pi-lens/dist/{chunk-S55TEC7I.js → chunk-VG5JS5SW.js} +2 -2
  103. package/node_modules/pi-lens/dist/{chunk-IEBJF3PN.js → chunk-VPBIMOAQ.js} +11 -11
  104. package/node_modules/pi-lens/dist/{chunk-EX4EXBW7.js → chunk-VQH24FIP.js} +15 -15
  105. package/node_modules/pi-lens/dist/{chunk-TVZRLTG6.js → chunk-VSFLRN5Y.js} +1 -1
  106. package/node_modules/pi-lens/dist/{chunk-KCBRHV5E.js → chunk-W2V54OCL.js} +3 -3
  107. package/node_modules/pi-lens/dist/{chunk-VITFDI3O.js → chunk-W5LGKNET.js} +12 -12
  108. package/node_modules/pi-lens/dist/{chunk-OZNCKLOX.js → chunk-W5R5SABV.js} +12 -12
  109. package/node_modules/pi-lens/dist/{chunk-ELZRSR5N.js → chunk-WIZWZR4C.js} +38 -38
  110. package/node_modules/pi-lens/dist/{chunk-MKPCELNI.js → chunk-WQOIR3QY.js} +13 -13
  111. package/node_modules/pi-lens/dist/{chunk-COOUUC5W.js → chunk-XAIT2YGS.js} +6 -6
  112. package/node_modules/pi-lens/dist/chunk-XCUHKYCQ.js +23 -0
  113. package/node_modules/pi-lens/dist/{chunk-KFXCL4OV.js → chunk-XQCSWV2G.js} +22 -23
  114. package/node_modules/pi-lens/dist/{chunk-RU34BA4D.js → chunk-YBSONGSZ.js} +34 -34
  115. package/node_modules/pi-lens/dist/{chunk-GTDSYEA2.js → chunk-YISME6ON.js} +1 -1
  116. package/node_modules/pi-lens/dist/chunk-YRD4ISED.js +30 -0
  117. package/node_modules/pi-lens/dist/{chunk-X3UTCXAA.js → chunk-YSBHPOY6.js} +12 -12
  118. package/node_modules/pi-lens/dist/{chunk-XWFIHYCH.js → chunk-Z2XAOKHK.js} +2 -2
  119. package/node_modules/pi-lens/dist/{chunk-K4SZB56V.js → chunk-Z7IGUAXL.js} +7 -7
  120. package/node_modules/pi-lens/dist/{chunk-KX56K73G.js → chunk-ZKXQKGWZ.js} +2 -2
  121. package/node_modules/pi-lens/dist/{chunk-FWZRGGGY.js → chunk-ZQ6NZZTB.js} +6 -4
  122. package/node_modules/pi-lens/dist/{chunk-2Y6OJRSI.js → chunk-ZUUI3ZSA.js} +3 -3
  123. package/node_modules/pi-lens/dist/{chunk-UO66IMVP.js → chunk-ZYNI26MI.js} +2 -2
  124. package/node_modules/pi-lens/dist/index.js +571 -409
  125. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -10
  126. package/node_modules/pi-lens/dist/mcp/cli.js +42 -42
  127. package/node_modules/pi-lens/dist/mcp/server.js +108 -108
  128. package/node_modules/pi-lens/dist/mcp/worker.js +61 -61
  129. package/node_modules/pi-lens/dist/probes/installer.js +19 -19
  130. package/node_modules/pi-lens/docs/agent-tools.md +28 -7
  131. package/node_modules/pi-lens/docs/configuration.md +3 -1
  132. package/node_modules/pi-lens/docs/defect-shapes.md +738 -0
  133. package/node_modules/pi-lens/docs/invariants/caches-stores.md +30 -0
  134. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +164 -0
  135. package/node_modules/pi-lens/docs/invariants/git-guard-host.md +53 -0
  136. package/node_modules/pi-lens/docs/invariants/language-config.md +31 -0
  137. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +286 -0
  138. package/node_modules/pi-lens/docs/invariants/paths-os.md +59 -0
  139. package/node_modules/pi-lens/docs/invariants/session-telemetry.md +74 -0
  140. package/node_modules/pi-lens/docs/pi-lens-fixer.md +2 -1
  141. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +10 -8
  142. package/node_modules/pi-lens/docs/pi-lens-monitor.md +2 -2
  143. package/node_modules/pi-lens/docs/pi-lens-orchestration.md +41 -0
  144. package/node_modules/pi-lens/docs/pi-lens-release.md +20 -0
  145. package/node_modules/pi-lens/docs/pi-lens-retro.md +3 -2
  146. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +6 -6
  147. package/node_modules/pi-lens/docs/pi-lens-subagent.md +2 -2
  148. package/node_modules/pi-lens/package.json +3 -2
  149. package/node_modules/pi-provider-qoder/dist/index.js +27 -5
  150. package/node_modules/pi-provider-qoder/package.json +1 -1
  151. package/node_modules/pi-typesafe/README.md +1 -1
  152. package/node_modules/pi-typesafe/dist/client.js +43 -1
  153. package/node_modules/pi-typesafe/package.json +1 -1
  154. package/package.json +5 -5
  155. package/node_modules/pi-lens/dist/chunk-22Y2BM7H.js +0 -23
  156. package/node_modules/pi-lens/dist/chunk-44X7VIKR.js +0 -73
  157. package/node_modules/pi-lens/dist/chunk-54NIOJJZ.js +0 -25
  158. package/node_modules/pi-lens/dist/chunk-7WWQAW5P.js +0 -30
  159. package/node_modules/pi-lens/dist/chunk-EA2ZRG44.js +0 -27
  160. package/node_modules/pi-lens/dist/chunk-EKNWOL2I.js +0 -27
  161. package/node_modules/pi-lens/dist/chunk-G5UCJFT7.js +0 -26
  162. package/node_modules/pi-lens/dist/chunk-N5FBM25N.js +0 -22
  163. package/node_modules/pi-lens/dist/chunk-P5XUGPIX.js +0 -31
  164. package/node_modules/pi-lens/dist/chunk-PKOXJIVT.js +0 -88
  165. package/node_modules/pi-lens/dist/chunk-RG7OODGM.js +0 -57
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 5 active `@herbertgao/*` child packages—`pi-agency`, `pi-bark`, `pi-cc-extensions`, `pi-subagents`, and `sol-pi`—plus the following upstream packages under their original names:
22
22
 
23
23
  - `pi-antigravity@0.11.0`
24
- - `pi-provider-qoder@0.6.5`
24
+ - `pi-provider-qoder@0.6.6`
25
25
  - `@dietrichgebert/ponytail@5.3.2`
26
26
  - `@juicesharp/rpiv-ask-user-question@2.15.0`
27
27
  - `@narumitw/pi-btw@0.63.1`
@@ -34,14 +34,14 @@ The package bundles 5 active `@herbertgao/*` child packages—`pi-agency`, `pi-b
34
34
  - `@tifan/pi-preferred-thinking@1.0.2`
35
35
  - `@tifan/pi-recap@0.4.8`
36
36
  - `@tifan/pi-rename@0.6.0`
37
- - `pi-typesafe@0.13.0`
37
+ - `pi-typesafe@0.13.1`
38
38
  - `pi-next-cue@1.0.8`
39
- - `pi-lens@4.4.5`
39
+ - `pi-lens@4.4.6`
40
40
  - `pi-web-access@0.45.0`
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.11`; 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.12`; 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.11.0` enriches search citations by visiting source sites by default (`ANTIGRAVITY_NO_SOURCE_ENRICH=1` disables enrichment). 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.
47
47
 
@@ -59,9 +59,9 @@ Ponytail `5.3.2` updates the Pi skill guidance, including how to turn it off. It
59
59
 
60
60
  `@narumitw/pi-btw@0.63.1` opens its side workspace through the `@narumitw/pi-tui-kit@^0.67.0` fullscreen handoff. It does not start that UI when the flow is already disposed or the parent terminal cannot be restored. Importing new main-thread context stays manual.
61
61
 
62
- `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.13.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. Daily request, token, and USD caps are opt-in. OpenRouter, Command Code, Liquid, SubQ, and a named endpoint stay explicit and use that backend's own key. The promoted SDK is `@typesafe-ai/sdk@0.7.0`.
62
+ `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.13.1` 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. Daily request, token, and USD caps are opt-in. OpenRouter, Command Code, Liquid, SubQ, 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.
63
63
 
64
- `@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.5` 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. It promotes `@ast-grep/cli` to `0.51.0` and `@ast-grep/napi` to `^0.51.0`. 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. `pi-web-access@0.45.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, and DeepSeek fetch are explicit-only, excluded from automatic and `all` selection. 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.11.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. `pi-provider-qoder@0.6.5` registers the `qoder` and `qoder-cn` model providers. 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. Preferred Thinking 1.0.2 preserves an explicit subagent `--thinking` choice. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming.
64
+ `@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.6` 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. It promotes `@ast-grep/cli` to `0.51.0` and `@ast-grep/napi` to `^0.51.0`. 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. `pi-web-access@0.45.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, and DeepSeek fetch are explicit-only, excluded from automatic and `all` selection. 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.11.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. `pi-provider-qoder@0.6.6` registers the `qoder` and `qoder-cn` model providers. A queued model-busy response reports its wait instead of being ignored; a ready busy response stays retryable. 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. Preferred Thinking 1.0.2 preserves an explicit subagent `--thinking` choice. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming.
65
65
 
66
66
  `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.
67
67
 
@@ -111,7 +111,7 @@ THE SOFTWARE.
111
111
 
112
112
  ## `pi-typesafe`
113
113
 
114
- The aggregate bundles [`pi-typesafe`](https://github.com/DevMortimer/pi-typesafe) version 0.13.0 under its original MIT license:
114
+ The aggregate bundles [`pi-typesafe`](https://github.com/DevMortimer/pi-typesafe) version 0.13.1 under its original MIT license:
115
115
 
116
116
  MIT License
117
117
 
@@ -163,4 +163,4 @@ THE SOFTWARE.
163
163
 
164
164
  ## `pi-provider-qoder`
165
165
 
166
- The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provider-qoder) version 0.6.5 under its original package name. npm metadata and the repository README declare the MIT license. The published tarball does not include a LICENSE file. The published package corresponds to git commit [`fa5067d1bf0c4accc2fc88ad672e23390a2d6f16`](https://github.com/simonsmh/pi-provider-qoder/commit/fa5067d1bf0c4accc2fc88ad672e23390a2d6f16).
166
+ The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provider-qoder) version 0.6.6 under its original package name. npm metadata and the repository README declare the MIT license. The published tarball does not include a LICENSE file. The published package corresponds to git commit [`29dbb8fff8fe27356f883f7d4ba2bae8ce7e20b0`](https://github.com/simonsmh/pi-provider-qoder/commit/29dbb8fff8fe27356f883f7d4ba2bae8ce7e20b0).
@@ -46,7 +46,7 @@ Renderer snapshots for `on` / `compact` modes: [default](./docs/tool-render-exam
46
46
  {
47
47
  // style
48
48
  "mode": "on", // on / compact / off
49
- "excludeRenderers": [], // tools keeping the native renderer; Agent always keeps its dedicated renderer
49
+ "excludeRenderers": [], // tools keeping the native renderer, matched case-insensitively; Agent always keeps its dedicated renderer
50
50
 
51
51
  // features
52
52
  "enableSessionReference": true, // @ session references
@@ -126,7 +126,7 @@ pi -e . # one run, does not edit settings.json
126
126
 
127
127
  ## Credits
128
128
 
129
- - Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.11 (MIT), upstream baseline [`4697b4a`](https://github.com/minuque/pi-cc-extensions/commit/4697b4ac2cc28ee89bb9c37f1021e91075bfd94c), with this repository's configuration migration and compatibility patches retained.
129
+ - Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.12 (MIT), upstream baseline [`90957cd`](https://github.com/minuque/pi-cc-extensions/commit/90957cd445403bc493e8aaee2231e1932ac26d46), with this repository's configuration migration and compatibility patches retained.
130
130
  - 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).
131
131
 
132
132
  ## License
@@ -46,7 +46,7 @@ pi install git:github.com/HerbertGao/pi-extensions
46
46
  {
47
47
  // style
48
48
  "mode": "on", // on / compact / off
49
- "excludeRenderers": [], // 走原生渲染的工具名;Agent 始终保留专用渲染器
49
+ "excludeRenderers": [], // 走原生渲染的工具名,匹配忽略大小写;Agent 始终保留专用渲染器
50
50
 
51
51
  // features
52
52
  "enableSessionReference": true, // @ session 引用
@@ -125,7 +125,7 @@ pi -e . # 只跑一次,不改 settings.json
125
125
 
126
126
  ## 致谢
127
127
 
128
- - 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.11(MIT),上游基线 [`4697b4a`](https://github.com/minuque/pi-cc-extensions/commit/4697b4ac2cc28ee89bb9c37f1021e91075bfd94c);保留本仓库的配置迁移与兼容性补丁。
128
+ - 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.12(MIT),上游基线 [`90957cd`](https://github.com/minuque/pi-cc-extensions/commit/90957cd445403bc493e8aaee2231e1932ac26d46);保留本仓库的配置迁移与兼容性补丁。
129
129
  - 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)。
130
130
 
131
131
  ## 许可证
@@ -122,7 +122,7 @@ export const THINKING_PREVIEW_LINES_VALUES = ["0", "1", "3", "5", "10"];
122
122
  export const THINKING_ANIMATION_INTERVAL_VALUES = ["40", "60", "90", "120", "180"];
123
123
  /** Tools commonly toggled in excludeRenderers via the settings panel. */
124
124
  export const EXCLUDE_RENDERER_CANDIDATES = [
125
- "Agent",
125
+ "agent",
126
126
  "bash",
127
127
  "powershell",
128
128
  "read",
@@ -340,6 +340,43 @@ export function formatExcludeRenderers(names: readonly string[]): string {
340
340
  return names.length === 0 ? "none" : names.join(", ");
341
341
  }
342
342
 
343
+ /** excludeRenderers 与运行时工具名按大小写不敏感匹配(如候选 "agent" 对上 pi-subagents 的 "Agent")。 */
344
+ export function isExcludedRenderer(
345
+ toolName: string,
346
+ excludeRenderers: readonly string[] = config.excludeRenderers,
347
+ ): boolean {
348
+ const key = toolName.toLowerCase();
349
+ return excludeRenderers.some((name) => name.toLowerCase() === key);
350
+ }
351
+
352
+ /** 写入名单时去掉同名异大小写项,再按 id 写入,避免 agent/Agent 并存。 */
353
+ export function withExcludeRendererToggle(
354
+ excludeRenderers: readonly string[],
355
+ id: string,
356
+ exclude: boolean,
357
+ ): string[] {
358
+ const key = id.toLowerCase();
359
+ const next = excludeRenderers.filter((name) => name.toLowerCase() !== key);
360
+ if (exclude) next.push(id);
361
+ return [...new Set(next)].sort((a, b) => a.localeCompare(b));
362
+ }
363
+
364
+ /** 面板候选:内置候选与用户名单按大小写不敏感合并,保留先出现的写法(候选在前,仍是 agent)。 */
365
+ export function mergeExcludeRendererCandidates(
366
+ names: readonly string[],
367
+ candidates: readonly string[] = EXCLUDE_RENDERER_CANDIDATES,
368
+ ): string[] {
369
+ const seen = new Set<string>();
370
+ const merged: string[] = [];
371
+ for (const name of [...candidates, ...names]) {
372
+ const key = name.toLowerCase();
373
+ if (seen.has(key)) continue;
374
+ seen.add(key);
375
+ merged.push(name);
376
+ }
377
+ return merged.sort((a, b) => a.localeCompare(b));
378
+ }
379
+
343
380
  export function formatConfigStatus(source: Config = config): string {
344
381
  return [
345
382
  `mode=${source.mode}`,
@@ -38,7 +38,6 @@ import {
38
38
  DIFF_INDICATOR_MODES,
39
39
  DIFF_SPLIT_MIN_WIDTH_VALUES,
40
40
  DIFF_VIEW_MODES,
41
- EXCLUDE_RENDERER_CANDIDATES,
42
41
  EXPANDED_INPUT_MAX_LINES_VALUES,
43
42
  EXPANDED_OUTPUT_MAX_LINES_VALUES,
44
43
  EXPANDED_PREVIEW_MAX_LINES_VALUES,
@@ -62,6 +61,9 @@ import {
62
61
  type FooterGitStatsMode,
63
62
  type FooterTokenRateMode,
64
63
  type ScrollButtonMode,
64
+ isExcludedRenderer,
65
+ mergeExcludeRendererCandidates,
66
+ withExcludeRendererToggle,
65
67
  } from "./config.ts";
66
68
 
67
69
  /** renderer 注入的渲染副作用,面板自身不触碰渲染状态。 */
@@ -269,14 +271,13 @@ function buildExcludeRenderersSubmenu(
269
271
  invalidate: () => void;
270
272
  handleInput: (data: string) => void;
271
273
  } {
272
- const candidates = [
273
- ...new Set([...EXCLUDE_RENDERER_CANDIDATES, ...config.excludeRenderers]),
274
- ].sort((a, b) => a.localeCompare(b));
274
+ // 候选与名单按大小写不敏感合并:存过 Agent 时不再多出一行 agent。
275
+ const candidates = mergeExcludeRendererCandidates(config.excludeRenderers);
275
276
  const items = candidates.map((name) => ({
276
277
  id: name,
277
278
  label: name,
278
279
  description: `Use Pi native renderer for ${name} instead of Claude Code styling.`,
279
- currentValue: config.excludeRenderers.includes(name) ? "exclude" : "style",
280
+ currentValue: isExcludedRenderer(name, config.excludeRenderers) ? "exclude" : "style",
280
281
  values: ["style", "exclude"],
281
282
  }));
282
283
  const list = new SettingsList(
@@ -284,10 +285,13 @@ function buildExcludeRenderersSubmenu(
284
285
  Math.min(8, Math.max(4, items.length)),
285
286
  getSettingsListTheme(),
286
287
  (id: string, value: string) => {
287
- const excluded = new Set(config.excludeRenderers);
288
- if (value === "exclude") excluded.add(id);
289
- else excluded.delete(id);
290
- updateConfig({ excludeRenderers: [...excluded].sort((a, b) => a.localeCompare(b)) });
288
+ updateConfig({
289
+ excludeRenderers: withExcludeRendererToggle(
290
+ config.excludeRenderers,
291
+ id,
292
+ value === "exclude",
293
+ ),
294
+ });
291
295
  onLiveChange();
292
296
  },
293
297
  () => onClose(),
@@ -6,7 +6,7 @@
6
6
  * 生命周期对齐 compact-mode:installDefaultMode → hooks.shutdown。
7
7
  */
8
8
  import { ToolExecutionComponent } from "@earendil-works/pi-coding-agent";
9
- import { config, type CompactStyleMode } from "../config/config.ts";
9
+ import { config, isExcludedRenderer, type CompactStyleMode } from "../config/config.ts";
10
10
  import {
11
11
  COMPONENT_TOOL_RENDER_MODE,
12
12
  GLOBAL_TOOL_RENDER_PATCH,
@@ -27,7 +27,7 @@ export function preservesOriginalRenderer(
27
27
  builtInToolDefinition?: any,
28
28
  excludeRenderers: readonly string[] = config.excludeRenderers,
29
29
  ): boolean {
30
- if (!excludeRenderers.includes(toolName)) return false;
30
+ if (!isExcludedRenderer(toolName, excludeRenderers)) return false;
31
31
  return [extensionDefinition, builtInToolDefinition].some(
32
32
  (definition) =>
33
33
  definition?.renderShell === "self" ||
@@ -45,11 +45,51 @@ export function createCodeLineHighlighter(
45
45
  invalidate?: () => void,
46
46
  ): CodeLineHighlighter {
47
47
  const codeEntries = entries.filter((entry): entry is DiffLineEntry => entry.kind === "line");
48
+ const allCode = codeEntries
49
+ .map((entry) => cleanCodeLine(normalizeCodeWhitespace(entry.content)))
50
+ .join("\n");
51
+ // Budget check stays on the whole visible code: over the limit nothing is highlighted.
52
+ // Per-segment checks would let a huge diff highlight itself one segment at a time.
53
+ const segmentLanguage = shouldHighlightCodeBlock(allCode) ? language : undefined;
54
+ const highlightByEntry = new WeakMap<DiffLineEntry, CodeLineHighlighter>();
55
+ let segment: DiffLineEntry[] = [];
56
+
57
+ const flushSegment = () => {
58
+ if (segment.length === 0) return;
59
+ const highlight = createContiguousCodeLineHighlighter(
60
+ segmentLanguage,
61
+ theme,
62
+ segment,
63
+ invalidate,
64
+ );
65
+ for (const entry of segment) highlightByEntry.set(entry, highlight);
66
+ segment = [];
67
+ };
68
+
69
+ // Omitted source cannot carry lexer state across a diff discontinuity.
70
+ // Each segment is highlighted and cached on its own; the budget above still bounds one diff.
71
+ for (const entry of entries) {
72
+ if (entry.kind === "line") segment.push(entry);
73
+ else flushSegment();
74
+ }
75
+ flushSegment();
76
+
77
+ return (line, entry) => highlightByEntry.get(entry)?.(line, entry) ?? "";
78
+ }
79
+
80
+ function createContiguousCodeLineHighlighter(
81
+ language: string | undefined,
82
+ theme: DiffTheme,
83
+ codeEntries: readonly DiffLineEntry[],
84
+ invalidate?: () => void,
85
+ ): CodeLineHighlighter {
48
86
  const cleanLines = codeEntries.map((entry) =>
49
87
  cleanCodeLine(normalizeCodeWhitespace(entry.content)),
50
88
  );
51
89
  const code = cleanLines.join("\n");
52
- const shouldHighlight = !!language && shouldHighlightCodeBlock(code);
90
+ // A segment is a subset of the visible code, so `segmentLanguage` already carries
91
+ // the total budget decision; only the per-segment highlight is left to decide here.
92
+ const shouldHighlight = language !== undefined;
53
93
  const fallbackLines = shouldHighlight
54
94
  ? (() => {
55
95
  try {
@@ -1,6 +1,5 @@
1
- import { withFileMutationQueue } from "@earendil-works/pi-coding-agent";
1
+ import { createWriteToolDefinition, type WriteOperations } from "@earendil-works/pi-coding-agent";
2
2
  import { lstat, mkdir, readFile, writeFile } from "node:fs/promises";
3
- import { dirname, isAbsolute, resolve } from "node:path";
4
3
 
5
4
  export const MAX_COMPARABLE_WRITE_BYTES = 512_000;
6
5
  export const MAX_WRITE_METADATA_ENTRIES = 100;
@@ -81,33 +80,51 @@ export async function executeWriteWithMetadata(
81
80
  signal: AbortSignal | undefined,
82
81
  cwd: string,
83
82
  ): Promise<{ content: Array<{ type: "text"; text: string }>; details: undefined }> {
84
- const absolutePath = isAbsolute(params.path) ? params.path : resolve(cwd, params.path);
85
83
  store.delete(toolCallId);
84
+ // 覆盖层只揽写前快照:路径解析(含 Windows 下 /mnt/<drive>、/cygdrive/<drive> 转换)、
85
+ // 目录创建、mutation queue 与错误文案全交回 pi 官方 write,参数与官方逐字一致。
86
+ const definition = createWriteToolDefinition(cwd, {
87
+ operations: writeSnapshotOperations(store, toolCallId),
88
+ }) as any;
86
89
  try {
87
- return await withFileMutationQueue(absolutePath, async () => {
88
- const throwIfAborted = () => {
89
- if (signal?.aborted) throw new Error("Operation aborted");
90
- };
91
- throwIfAborted();
92
- const metadata = await capturePreviousContent(absolutePath);
93
- throwIfAborted();
94
- await mkdir(dirname(absolutePath), { recursive: true });
95
- throwIfAborted();
96
- await writeFile(absolutePath, params.content, "utf8");
97
- // 写入后不再检查 abort:文件已变更,必须如实报告成功
98
- store.set(toolCallId, metadata);
99
- return {
100
- content: [
101
- {
102
- type: "text",
103
- text: `Successfully wrote ${Buffer.byteLength(params.content, "utf8")} bytes to ${params.path}`,
104
- },
105
- ],
106
- details: undefined,
107
- };
108
- });
90
+ await definition.execute(toolCallId, params, signal, undefined, { cwd });
91
+ return writeSuccessResult(params);
109
92
  } catch (error) {
93
+ // 文件已落盘,只是官方写后那次 abort 检查抦了错:保持「文件已改即成功」。
94
+ if (store.get(toolCallId) && signal?.aborted) return writeSuccessResult(params);
110
95
  store.delete(toolCallId);
111
96
  throw error;
112
97
  }
113
98
  }
99
+
100
+ /** 官方 write 的落盘操作:拿到的是官方解析后的绝对路径,快照才跟真实落盘一致。 */
101
+ function writeSnapshotOperations(
102
+ store: WriteExecutionMetadataStore,
103
+ toolCallId: string,
104
+ ): WriteOperations {
105
+ return {
106
+ mkdir: (dir) => mkdir(dir, { recursive: true }).then(() => {}),
107
+ writeFile: async (absolutePath, content) => {
108
+ store.delete(toolCallId);
109
+ const metadata = await capturePreviousContent(absolutePath);
110
+ await writeFile(absolutePath, content, "utf8");
111
+ // 写已生效:后续 abort 不得把这次写报成失败,快照先落下。
112
+ store.set(toolCallId, metadata);
113
+ },
114
+ };
115
+ }
116
+
117
+ function writeSuccessResult(params: { path: string; content: string }): {
118
+ content: Array<{ type: "text"; text: string }>;
119
+ details: undefined;
120
+ } {
121
+ return {
122
+ content: [
123
+ {
124
+ type: "text",
125
+ text: `Successfully wrote ${Buffer.byteLength(params.content, "utf8")} bytes to ${params.path}`,
126
+ },
127
+ ],
128
+ details: undefined,
129
+ };
130
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-cc-extensions",
3
- "version": "1.0.11-local.1",
3
+ "version": "1.0.12-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",
@@ -71,10 +71,10 @@
71
71
  },
72
72
  "x-upstream": {
73
73
  "package": "pi-cc-extensions",
74
- "version": "1.0.11",
75
- "reviewedVersion": "1.0.11",
74
+ "version": "1.0.12",
75
+ "reviewedVersion": "1.0.12",
76
76
  "repository": "https://github.com/minuque/pi-cc-extensions",
77
- "commit": "4697b4ac2cc28ee89bb9c37f1021e91075bfd94c",
77
+ "commit": "90957cd445403bc493e8aaee2231e1932ac26d46",
78
78
  "trackVersion": true
79
79
  }
80
80
  }
@@ -16,6 +16,43 @@ All notable changes to pi-lens will be documented in this file.
16
16
 
17
17
  ### Security
18
18
 
19
+ ## [4.4.6] - 2026-10-27
20
+
21
+ ### Changed
22
+
23
+ - **Termux install fallback** — documents the tested Rust-built ast-grep workaround for the `@ast-grep/cli` native-binary install failure. (#4902)
24
+
25
+ ### Fixed
26
+
27
+ - **`lsp_navigation` results count as reads again (refs #1884)** — A navigation result whose path was relative and had no recorded resolution basis lost the `details.searchReads` lines it showed the agent, so the next edit to those lines was blocked by the read guard. Those lines are registered as reads before the refusal, which still keeps turn state and dispatch closed for the unresolved path. A navigation CALL also resolves the `path` it declares, so pi-lens initialises the file's LSP config and warms it before the request instead of treating the call as naming no file (#3650).
28
+
29
+ - **Writes and LSP edits share one lock and one containment root per file.** A `<dir-link>/../file` spelling no longer locks a different file in pi's mutation queue, a workspace edit's root is the directory the kernel opens, and a path identity stays put when it is resolved again (#4689). A workspace edit whose target the kernel cannot name — an unreadable ancestor, a looping link — is refused instead of confined by its spelling.
30
+
31
+ - **A file reached through a link spelling gets its own project's verdicts (refs #4689)** — the containment predicate, four upward walks (formatter configs, grammar write dirs, temporary-checkout markers), the project ignore verdict and a runner's dispatch path now climb and key the file's kernel-real path, so `repo/link/../f.ts` and a directory named `..foo` agree with the real spelling instead of reading as another project's file, as never ignored, or as outside the root.
32
+
33
+ - **The bundled Biome config loads under Biome 2.6 again (refs #4886)** — In a project with no `biome.json`, pi-lens lints with its own fallback config. That config switched off the nursery rule `useSortedClasses`, which Biome 2.6 renamed, so the managed Biome (which tracks the latest release) rejected the whole file: every Biome lint run reported a config error instead of findings, and `lint --write` fixed nothing. The entry was redundant, since nursery rules are off unless named, so it is gone and the config loads on Biome 2.5 and 2.6 alike.
34
+
35
+ - **Tool calls no longer wait on two walks of a non-git home folder (#4905)** — The opaque-mutation prescan refuses a session root that is the home folder or above it, and reads it as unknown, never as "no change". The declaration-file look skips its walk there but still looks for a dependency install, so language servers still restart after one. A root already found over the file cap is not walked again in the same session. Each is recorded once per session (`opaque-capture-refused` and `lsp-declaration-look-capped`, subject `home-root`).
36
+
37
+ - **Deferred Biome fixes cover every edited JS/TS file (#4862)** — Fix all edited files in a project at agent end instead of only the first. Keep Dart project deduplication and record duplicate-scope skips once per tool/scope per session.
38
+
39
+ ### Security
40
+
41
+ - **Workspace edits no longer write outside the workspace through a dangling symlink (closes #4877).** A `create` or `rename` whose path is a symlink to a missing file is refused instead of confined by its spelling.
42
+
43
+ ### Internal
44
+
45
+ <details>
46
+ <summary>3 internal changes: tests, CI, tooling, and refactors</summary>
47
+
48
+ - **Path-containment ratchet: a hand-rolled `..` test over a `path.relative` result now reds (refs #2556)** — `tests/config/path-containment-sweep.test.ts` admits containment only through `clients/path-utils.ts` (`isUnderDir`, `isWithinForm`, the home-ceiling predicate) across the runtime trees, `scripts/` and `tests/`; the 42 remaining sites are baseline rows with reasons, every comparison and call spelling is read rather than a list of methods, and the detector's state table plants the #4878 F1 spelling that failed 26 `Unit tests Windows` cells.
49
+
50
+ - **AGENTS.md split by seam (refs #4361)** — the defect-shape entries, the seven standing-invariant subsections, the orchestrator-only procedure and the release rules now live in `docs/`, each behind an index line or pointer in `AGENTS.md`; the moved text is verbatim apart from two rule lines, the task router naming the seam table row and the file it names, and one seam-table path corrected to `clients/formatters.ts`. Both reviewer bots load the catalog and the invariant files, and `scripts/check-pr-body.mjs` reads the shape catalog from `docs/defect-shapes.md` at the PR's merge base.
51
+
52
+ - **Dev-only advisories cleared (refs #4874)** — the lockfile resolves `undici` 8.12.3 (through an override, since the pi peer pins 8.10.2), `zod` 4.6.7 and `fast-uri` 3.1.9; none ships in the package.
53
+
54
+ </details>
55
+
19
56
  ## [4.4.5] - 2026-10-25
20
57
 
21
58
  ### Added
@@ -187,6 +187,36 @@ expects to be operated.
187
187
  > git:...` / `pi update --extension git:...`) may similarly prompt for
188
188
  > git-dependency approval; accept it to let the `prepare` build step run.
189
189
 
190
+ ### Android/Termux fallback
191
+
192
+ Try the normal install first. If it fails in `@ast-grep/cli`'s
193
+ `postinstall.js` with `Failed to locate @ast-grep/cli native binary`, the
194
+ fallback below has worked in one Termux environment:
195
+
196
+ ```bash
197
+ pkg install rust clang
198
+ cargo install ast-grep --locked
199
+ ast-grep --version
200
+ npm_config_ignore_scripts=true pi install npm:pi-lens
201
+ ```
202
+
203
+ `npm_config_ignore_scripts=true` skips every dependency lifecycle script for
204
+ that `pi install` command, not only the failing `@ast-grep/cli` script. Use it
205
+ only for this fallback after installing and checking the Rust-built `ast-grep`
206
+ binary separately. `pi update` runs the same postinstall, so set the variable
207
+ for it too. `ast-grep --version` must succeed from a new shell, which means
208
+ `~/.cargo/bin` is on your `PATH`.
209
+
210
+ In the verified environment, `/lens-health` reported zero pipeline crashes and
211
+ listed the `ast-grep` and `bash` LSP servers as available. This confirms startup
212
+ and server discovery only; `ast_grep_search` was not tested end to end.
213
+
214
+ pi-lens only looks for an `ast-grep` on `PATH` (such as Cargo's
215
+ `~/.cargo/bin/ast-grep`) when pi trusts the project, so in an untrusted
216
+ project this fallback leaves `ast_grep_search` unavailable. The in-process
217
+ ast-grep rules (`@ast-grep/napi`) and Biome have no Android build, so they stay
218
+ unavailable either way.
219
+
190
220
  ## Documentation
191
221
 
192
222
  - [Agent guide](docs/agent-guide.md) — how an AI agent should consume and respond to pi-lens
@@ -505,6 +535,8 @@ Thanks goes to these wonderful people:
505
535
  <td align="center" valign="top" width="14.28%"><a href="http://wayneh.tw/"><img src="https://avatars.githubusercontent.com/u/5166321?v=4" width="100px;" alt=""/><br /><sub><b>WeiHung</b></sub></a><br /><a href="#code-wayne930242" title="Code">💻</a></td>
506
536
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/wertyMSD"><img src="https://avatars.githubusercontent.com/u/130595241?v=4" width="100px;" alt=""/><br /><sub><b>wertyMSD</b></sub></a><br /><a href="#bug-wertyMSD" title="Bug reports">🐛</a></td>
507
537
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/rcdailey"><img src="https://avatars.githubusercontent.com/u/1768054?v=4" width="100px;" alt=""/><br /><sub><b>Robert Dailey</b></sub></a><br /><a href="#bug-rcdailey" title="Bug reports">🐛</a></td>
538
+ <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/letwir"><img src="https://avatars.githubusercontent.com/u/16576177?v=4" width="100px;" alt=""/><br /><sub><b>letwir</b></sub></a><br /><a href="#doc-letwir" title="Documentation">📖</a></td>
539
+ <td align="center" valign="top" width="14.28%"><a href="http://www.erikdarling.com/"><img src="https://avatars.githubusercontent.com/u/2136037?v=4" width="100px;" alt=""/><br /><sub><b>Erik Darling</b></sub></a><br /><a href="#bug-erikdarlingdata" title="Bug reports">🐛</a></td>
508
540
  </tr>
509
541
  </tbody>
510
542
  </table>
@@ -60,10 +60,10 @@
60
60
  "noDoubleEquals": "error",
61
61
  "noEmptyInterface": "warn",
62
62
  "noExplicitAny": "warn"
63
- },
64
- "nursery": {
65
- "useSortedClasses": "off"
66
63
  }
64
+ // No "nursery" group (refs #4886): nursery rules are off unless
65
+ // named, and biome renames them between minors, so one stale key
66
+ // makes the managed (latest) biome reject this whole config.
67
67
  }
68
68
  },
69
69
  "javascript": {
@@ -2,16 +2,16 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  classifyProbeFailure,
4
4
  installRetryDelayMs
5
- } from "./chunk-5LRUKYFA.js";
5
+ } from "./chunk-5APMQ2IJ.js";
6
6
  import {
7
7
  safeSpawnAsync
8
- } from "./chunk-TPYYEDP5.js";
8
+ } from "./chunk-Q3UZHW6N.js";
9
9
  import {
10
10
  assertInstallAllowed
11
- } from "./chunk-EIKRZ32J.js";
11
+ } from "./chunk-MN7MHUXQ.js";
12
12
  import {
13
13
  logExtension
14
- } from "./chunk-N3PLNNCW.js";
14
+ } from "./chunk-KXF5R4UN.js";
15
15
 
16
16
  // dist/clients/dispatch/runners/utils/lazy-installer.js
17
17
  var LAZY_INSTALL_SPECS = {
@@ -4,44 +4,44 @@ import {
4
4
  } from "./chunk-7U2IDNXN.js";
5
5
  import {
6
6
  formatToolFailure
7
- } from "./chunk-VIDEKABZ.js";
7
+ } from "./chunk-SJJYRZB4.js";
8
8
  import {
9
9
  firstOutputLine,
10
10
  spawnFailedWithNoOutput
11
- } from "./chunk-T4NGVFYI.js";
11
+ } from "./chunk-2X4VLOCC.js";
12
12
  import {
13
13
  getScratchTreeFnmatchPatterns
14
- } from "./chunk-KPVLQHCZ.js";
14
+ } from "./chunk-AMXIUN2R.js";
15
15
  import {
16
16
  extractTomlTableSection,
17
17
  parseTomlStringArray
18
- } from "./chunk-KX56K73G.js";
18
+ } from "./chunk-ZKXQKGWZ.js";
19
19
  import {
20
20
  findLocalBinsAt
21
- } from "./chunk-K4SZB56V.js";
21
+ } from "./chunk-Z7IGUAXL.js";
22
22
  import {
23
23
  probeToolAsync
24
- } from "./chunk-XI34NWDI.js";
24
+ } from "./chunk-ARD426WI.js";
25
25
  import {
26
26
  classifyProbeFailure,
27
27
  createAvailabilityLatch,
28
28
  logAvailabilityDecision,
29
29
  startHostStallSampler
30
- } from "./chunk-5LRUKYFA.js";
30
+ } from "./chunk-5APMQ2IJ.js";
31
31
  import {
32
32
  VENV_BIN_DIRS,
33
33
  listNestedLinkedWorktreeRoots,
34
34
  safeSpawnAsync
35
- } from "./chunk-TPYYEDP5.js";
35
+ } from "./chunk-Q3UZHW6N.js";
36
36
  import {
37
37
  incrementDegradationCount
38
- } from "./chunk-FWZRGGGY.js";
38
+ } from "./chunk-ZQ6NZZTB.js";
39
39
  import {
40
40
  createSubsystemLogger
41
- } from "./chunk-N3PLNNCW.js";
41
+ } from "./chunk-KXF5R4UN.js";
42
42
  import {
43
43
  findNearestMarkerRoot
44
- } from "./chunk-EWXXLS26.js";
44
+ } from "./chunk-PQJFG24Z.js";
45
45
 
46
46
  // dist/clients/dead-code-client.js
47
47
  import * as fs from "node:fs";