@herbertgao/pi-extensions 2026.10.15 → 2026.10.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -9
- package/THIRD_PARTY_NOTICES.md +6 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +38 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +13 -9
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/default-mode.ts +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-highlight.ts +41 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +42 -25
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/LICENSE +191 -0
- package/node_modules/@herbertgao/pi-impeccable/NOTICE.md +11 -0
- package/node_modules/@herbertgao/pi-impeccable/README.md +34 -0
- package/node_modules/@herbertgao/pi-impeccable/package.json +53 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +89 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +318 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.native.md +58 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/android.md +46 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +89 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +139 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +139 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/bolder.md +33 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/clarify.md +94 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/colorize.md +86 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/component-review.md +63 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/craft-floor.md +44 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/craft.md +5 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +819 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/asset-producer.md +42 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +24 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +38 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/delight.md +70 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +111 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/doctor.md +54 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +416 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/extract.md +69 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/generate.md +101 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/harden.md +362 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +114 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/init.md +131 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/ios.md +51 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/layout.md +84 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +104 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +325 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/mode-operate.md +21 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/mode-persuade.md +19 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/mode-read.md +21 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +152 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +234 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/operate.md +61 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/optimize.md +257 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +127 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/polish.md +105 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +99 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/region-map.md +26 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/routing.md +24 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/shape.md +59 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +90 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.md +47 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/command-metadata.json +98 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/data/font-index-failures.json +121 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/data/font-index.json +1 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +9 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +249 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +278 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser-dom.js +320 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser-ignores.js +246 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser-session.js +183 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +13645 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
- package/node_modules/@narumitw/pi-btw/package.json +2 -2
- package/node_modules/pi-lens/CHANGELOG.md +37 -0
- package/node_modules/pi-lens/README.md +32 -0
- package/node_modules/pi-lens/config/biome/core.jsonc +3 -3
- package/node_modules/pi-lens/dist/{chunk-K2GUZ4DN.js → chunk-2DDDCJDL.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-DS2USX5G.js → chunk-2DMLM3ZO.js} +11 -11
- package/node_modules/pi-lens/dist/chunk-2F47TQOA.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-YXDCRUKQ.js → chunk-2PHMIAKO.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-PP2A5V2T.js → chunk-2RLWJO5K.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-T4NGVFYI.js → chunk-2X4VLOCC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QT66NEYN.js → chunk-3MYEA7QD.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-7ZS7MC24.js → chunk-3WEPUD2V.js} +22 -22
- package/node_modules/pi-lens/dist/{chunk-TL2TCJYL.js → chunk-4AVZ3TG7.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-SNEUMLM7.js → chunk-4PCQCU47.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-4WX4CTUE.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-5LRUKYFA.js → chunk-5APMQ2IJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-4U7GDSZQ.js → chunk-5CV5ITZF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-VUAVE3QC.js → chunk-5ZR3APIM.js} +36 -36
- package/node_modules/pi-lens/dist/{chunk-CPZ5JJW6.js → chunk-63RIVFQI.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-EDMLIW6W.js → chunk-75SY4F24.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-RCHO5W7M.js → chunk-7RQXA5GG.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-XHDBJODR.js → chunk-A3YNG5KP.js} +21 -21
- package/node_modules/pi-lens/dist/{chunk-3WCEHYOI.js → chunk-AE37FEGH.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KPVLQHCZ.js → chunk-AMXIUN2R.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XI34NWDI.js → chunk-ARD426WI.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-RG3MXTRI.js → chunk-BHUWL2Y3.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-4ODSZ35Z.js → chunk-BI5LAQ3Y.js} +44 -44
- package/node_modules/pi-lens/dist/{chunk-Q42LJANT.js → chunk-BM5GS6ZH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-CG5V25HX.js → chunk-BWYQUPOS.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HYVXA3BB.js → chunk-CFRQMBGP.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-NLIVE7L6.js → chunk-CJYKEW2L.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-MEFLGBCS.js → chunk-DC4CFXM5.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-ASRAO7KG.js → chunk-DMSLNKF7.js} +27 -27
- package/node_modules/pi-lens/dist/{chunk-YSDPVDFC.js → chunk-DQXSPYRI.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-YKVDBNPO.js → chunk-EVDGNG4F.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2LDMXL2M.js → chunk-F5Z6URKM.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-72J27ICO.js → chunk-F6X3YJWD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YXGRRORB.js → chunk-FA5LDARD.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-OMJ3OFBJ.js → chunk-FFL3A2VP.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-FJIVKLPH.js +31 -0
- package/node_modules/pi-lens/dist/chunk-G2B7F6ZU.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-YWWG4AQA.js → chunk-GAACZY6R.js} +24 -25
- package/node_modules/pi-lens/dist/{chunk-F7BO6FWH.js → chunk-GMTFDAOK.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-UVY4TOJH.js → chunk-GNSIWBAT.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-GTAI2J6U.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-SJHC3BCZ.js → chunk-GZE7WOI4.js} +98 -111
- package/node_modules/pi-lens/dist/{chunk-ZAPSUBLU.js → chunk-H7HTEQUZ.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-ZPJM7DID.js → chunk-HK6JVFZC.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-IPDG45G5.js +26 -0
- package/node_modules/pi-lens/dist/{chunk-ZSUX7KEM.js → chunk-J6JP25XU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6XSESGWD.js → chunk-JL6CXUMW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-Y5KTA2OB.js → chunk-K2YGBXOA.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-AHWA4AKM.js → chunk-KLQVC3XC.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-27VWVB23.js → chunk-KSR7RGQY.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-N3PLNNCW.js → chunk-KXF5R4UN.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-GLW3YDZZ.js → chunk-LEJOJDXL.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-Y2TPADJR.js → chunk-MA77RSFN.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-IL7K66ZQ.js → chunk-MKVZQUEG.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-EIKRZ32J.js → chunk-MN7MHUXQ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-4FHUGDKU.js → chunk-MT6BVNFW.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-3SNDVPOR.js → chunk-NDMCVUYK.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-63NMUNYP.js → chunk-NIU2IPC5.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-APFJKOP6.js → chunk-NNKXDXXS.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-FEDWAYDS.js → chunk-OJLTLYHB.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-KJJAVH3X.js → chunk-OLAWH5UQ.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-G224FADB.js → chunk-OOU2WZZE.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NFNVDDGB.js → chunk-OSTKYB55.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-P4QNXS6I.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-7IYC4ENJ.js → chunk-PKES3ISE.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-UCVMSOXF.js → chunk-PO45POGF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-JWOVP5BL.js → chunk-PPIBVH4R.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-EWXXLS26.js → chunk-PQJFG24Z.js} +82 -12
- package/node_modules/pi-lens/dist/{chunk-TPYYEDP5.js → chunk-Q3UZHW6N.js} +45 -22
- package/node_modules/pi-lens/dist/{chunk-5DKE4HGX.js → chunk-Q4EMRFNA.js} +34 -34
- package/node_modules/pi-lens/dist/{chunk-XHLK33VM.js → chunk-Q4FCYCRE.js} +16 -16
- package/node_modules/pi-lens/dist/chunk-Q6D6VMI4.js +22 -0
- package/node_modules/pi-lens/dist/{chunk-Q4BKKOVC.js → chunk-QGSTQH4D.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-GYRZ72R4.js → chunk-RZOXUSPC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-EN5AM7PX.js → chunk-S67UJDGQ.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-YWNO5Q4R.js → chunk-SCIUNBPF.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-VIDEKABZ.js → chunk-SJJYRZB4.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-SXGD4ANG.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-THEXI2QO.js → chunk-T7FTXGS3.js} +42 -42
- package/node_modules/pi-lens/dist/{chunk-WUY4BZEP.js → chunk-TIQJPRDD.js} +106 -50
- package/node_modules/pi-lens/dist/{chunk-EXVXBSGN.js → chunk-TIYGSODX.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-2FYKETQJ.js → chunk-U2SDMG7C.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-PJXNTPB2.js → chunk-U6OC3QEM.js} +21 -21
- package/node_modules/pi-lens/dist/{chunk-LMCTHJ2H.js → chunk-UCGQT677.js} +18 -18
- package/node_modules/pi-lens/dist/{chunk-UL5SXQVX.js → chunk-UHGF5UT5.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-AI3GP74G.js → chunk-UN4TEBWN.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-2SDHYHHO.js → chunk-V3APN3DY.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-7FLRUH6B.js → chunk-V63BC55Q.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-S55TEC7I.js → chunk-VG5JS5SW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-IEBJF3PN.js → chunk-VPBIMOAQ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-EX4EXBW7.js → chunk-VQH24FIP.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-TVZRLTG6.js → chunk-VSFLRN5Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KCBRHV5E.js → chunk-W2V54OCL.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-VITFDI3O.js → chunk-W5LGKNET.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-OZNCKLOX.js → chunk-W5R5SABV.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-ELZRSR5N.js → chunk-WIZWZR4C.js} +38 -38
- package/node_modules/pi-lens/dist/{chunk-MKPCELNI.js → chunk-WQOIR3QY.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-COOUUC5W.js → chunk-XAIT2YGS.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-XCUHKYCQ.js +23 -0
- package/node_modules/pi-lens/dist/{chunk-KFXCL4OV.js → chunk-XQCSWV2G.js} +22 -23
- package/node_modules/pi-lens/dist/{chunk-RU34BA4D.js → chunk-YBSONGSZ.js} +34 -34
- package/node_modules/pi-lens/dist/{chunk-GTDSYEA2.js → chunk-YISME6ON.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-YRD4ISED.js +30 -0
- package/node_modules/pi-lens/dist/{chunk-X3UTCXAA.js → chunk-YSBHPOY6.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-XWFIHYCH.js → chunk-Z2XAOKHK.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-K4SZB56V.js → chunk-Z7IGUAXL.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-KX56K73G.js → chunk-ZKXQKGWZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-FWZRGGGY.js → chunk-ZQ6NZZTB.js} +6 -4
- package/node_modules/pi-lens/dist/{chunk-2Y6OJRSI.js → chunk-ZUUI3ZSA.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-UO66IMVP.js → chunk-ZYNI26MI.js} +2 -2
- package/node_modules/pi-lens/dist/index.js +571 -409
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -10
- package/node_modules/pi-lens/dist/mcp/cli.js +42 -42
- package/node_modules/pi-lens/dist/mcp/server.js +108 -108
- package/node_modules/pi-lens/dist/mcp/worker.js +61 -61
- package/node_modules/pi-lens/dist/probes/installer.js +19 -19
- package/node_modules/pi-lens/docs/agent-tools.md +28 -7
- package/node_modules/pi-lens/docs/configuration.md +3 -1
- package/node_modules/pi-lens/docs/defect-shapes.md +738 -0
- package/node_modules/pi-lens/docs/invariants/caches-stores.md +30 -0
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +164 -0
- package/node_modules/pi-lens/docs/invariants/git-guard-host.md +53 -0
- package/node_modules/pi-lens/docs/invariants/language-config.md +31 -0
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +286 -0
- package/node_modules/pi-lens/docs/invariants/paths-os.md +59 -0
- package/node_modules/pi-lens/docs/invariants/session-telemetry.md +74 -0
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +2 -1
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +10 -8
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +2 -2
- package/node_modules/pi-lens/docs/pi-lens-orchestration.md +41 -0
- package/node_modules/pi-lens/docs/pi-lens-release.md +20 -0
- package/node_modules/pi-lens/docs/pi-lens-retro.md +3 -2
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +6 -6
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +2 -2
- package/node_modules/pi-lens/package.json +3 -2
- package/node_modules/pi-provider-qoder/dist/index.js +27 -5
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-typesafe/README.md +1 -1
- package/node_modules/pi-typesafe/dist/client.js +43 -1
- package/node_modules/pi-typesafe/package.json +1 -1
- package/package.json +10 -7
- package/node_modules/pi-lens/dist/chunk-22Y2BM7H.js +0 -23
- package/node_modules/pi-lens/dist/chunk-44X7VIKR.js +0 -73
- package/node_modules/pi-lens/dist/chunk-54NIOJJZ.js +0 -25
- package/node_modules/pi-lens/dist/chunk-7WWQAW5P.js +0 -30
- package/node_modules/pi-lens/dist/chunk-EA2ZRG44.js +0 -27
- package/node_modules/pi-lens/dist/chunk-EKNWOL2I.js +0 -27
- package/node_modules/pi-lens/dist/chunk-G5UCJFT7.js +0 -26
- package/node_modules/pi-lens/dist/chunk-N5FBM25N.js +0 -22
- package/node_modules/pi-lens/dist/chunk-P5XUGPIX.js +0 -31
- package/node_modules/pi-lens/dist/chunk-PKOXJIVT.js +0 -88
- package/node_modules/pi-lens/dist/chunk-RG7OODGM.js +0 -57
package/README.md
CHANGED
|
@@ -18,13 +18,13 @@ When migrating from `pi-mcp-adapter`, remove any standalone adapter install as w
|
|
|
18
18
|
|
|
19
19
|
## Bundled extensions
|
|
20
20
|
|
|
21
|
-
The package bundles
|
|
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.11.0`
|
|
24
|
-
- `pi-provider-qoder@0.6.
|
|
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
|
-
- `@narumitw/pi-btw@0.63.
|
|
27
|
+
- `@narumitw/pi-btw@0.63.2`
|
|
28
28
|
- `@narumitw/pi-caffeinate@0.49.13`
|
|
29
29
|
- `@pi-plugins/fast-mode@0.1.14`
|
|
30
30
|
- `@tifan/pi-copy-response@0.2.7`
|
|
@@ -34,19 +34,21 @@ 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.
|
|
37
|
+
- `pi-typesafe@0.13.1`
|
|
38
38
|
- `pi-next-cue@1.0.8`
|
|
39
|
-
- `pi-lens@4.4.
|
|
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.
|
|
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
|
|
|
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.0` 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 package does not install automatic post-edit hooks, and upstream `pin`/`unpin` do not discover npm-loaded skills.
|
|
51
|
+
|
|
50
52
|
### Agency Agents
|
|
51
53
|
|
|
52
54
|
`@herbertgao/pi-agency` adds `agency_search` and `agency_dispatch` for the [Agency Agents](https://github.com/msitarzewski/agency-agents) catalog cloned at `~/.agency-agents`. Search returns ranked persona cards instead of catalog listings. Dispatch fills persona bodies into subagent prompts outside the main context, runs them as parallel foreground `Agent` calls, and reports each sent prompt's SHA-256. Installing the aggregate does not clone the catalog; see the [package README](../pi-agency/README.md).
|
|
@@ -57,11 +59,11 @@ Ponytail `5.3.2` updates the Pi skill guidance, including how to turn it off. It
|
|
|
57
59
|
|
|
58
60
|
`@narumitw/pi-caffeinate@0.49.13` uses the host platform's sleep inhibitor during each Pi agent run. On macOS, `/caffeinate sleep` keeps the system awake while allowing the display to sleep; `/caffeinate display` also keeps the display awake. It releases the inhibitor when the run or session ends. Its D-Bus dependency remains on the normal socket transport under Node; Bun on Linux/macOS can use FFI and an in-process reader thread for Unix file-descriptor transport, and that thread can be unreferenced so the connection need not keep the process alive. It falls back when FFI is unavailable. No daemon or build step is added.
|
|
59
61
|
|
|
60
|
-
`@narumitw/pi-btw@0.63.
|
|
62
|
+
`@narumitw/pi-btw@0.63.2` opens its side workspace through the `@narumitw/pi-tui-kit@^0.68.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. Settings rows keep a clipped label or value in full under the list, and a searchable model choice shows how many results match.
|
|
61
63
|
|
|
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.
|
|
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.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
65
|
|
|
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.
|
|
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.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
67
|
|
|
66
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.
|
|
67
69
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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.
|
|
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,8 @@ 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.
|
|
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).
|
|
167
|
+
|
|
168
|
+
## `@herbertgao/pi-impeccable`
|
|
169
|
+
|
|
170
|
+
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.0` at commit `414603bf14c7a344edb466bb1f85690c77ce8b7d`, under the Apache License 2.0. The bundled child package includes the complete upstream `LICENSE` and `NOTICE.md`, including its third-party attributions.
|
|
@@ -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.
|
|
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": [], //
|
|
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.
|
|
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
|
-
"
|
|
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
|
-
|
|
273
|
-
|
|
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
|
|
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
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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 (!
|
|
30
|
+
if (!isExcludedRenderer(toolName, excludeRenderers)) return false;
|
|
31
31
|
return [extensionDefinition, builtInToolDefinition].some(
|
|
32
32
|
(definition) =>
|
|
33
33
|
definition?.renderShell === "self" ||
|
package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-highlight.ts
CHANGED
|
@@ -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
|
-
|
|
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 {
|
package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
88
|
-
|
|
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.
|
|
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.
|
|
75
|
-
"reviewedVersion": "1.0.
|
|
74
|
+
"version": "1.0.12",
|
|
75
|
+
"reviewedVersion": "1.0.12",
|
|
76
76
|
"repository": "https://github.com/minuque/pi-cc-extensions",
|
|
77
|
-
"commit": "
|
|
77
|
+
"commit": "90957cd445403bc493e8aaee2231e1932ac26d46",
|
|
78
78
|
"trackVersion": true
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright
|
|
52
|
+
owner or by an individual or Legal Entity authorized to submit on
|
|
53
|
+
behalf of the copyright owner. For the purposes of this definition,
|
|
54
|
+
"submitted" means any form of electronic, verbal, or written
|
|
55
|
+
communication sent to the Licensor or its representatives, including
|
|
56
|
+
but not limited to communication on electronic mailing lists, source
|
|
57
|
+
code control systems, and issue tracking systems that are managed by,
|
|
58
|
+
or on behalf of, the Licensor for the purpose of discussing and
|
|
59
|
+
improving the Work, but excluding communication that is conspicuously
|
|
60
|
+
marked or otherwise designated in writing by the copyright owner as
|
|
61
|
+
"Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2025 Paul Bakaus
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
This project includes content derived from third-party work, used under the terms of its original license.
|
|
4
|
+
|
|
5
|
+
## Platform Design Skills
|
|
6
|
+
|
|
7
|
+
The `skill/reference/ios.md` and `skill/reference/android.md` platform reference files are distilled from ehmo's `platform-design-skills` (Apple Human Interface Guidelines and Material Design 3 rules), rewritten in Impeccable's voice.
|
|
8
|
+
|
|
9
|
+
**Original work:** https://github.com/ehmo/platform-design-skills
|
|
10
|
+
**Original license:** MIT
|
|
11
|
+
**Author:** ehmo
|