@herbertgao/pi-extensions 2026.11.3 → 2026.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +7 -7
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
- 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/renderer/mouse/interaction.ts +33 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +72 -17
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +10 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +16 -7
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +7 -5
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark-hc.json +92 -0
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light-hc.json +92 -0
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +27 -0
- package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +64 -5
- package/node_modules/pi-commandcode-provider/README.md +40 -26
- package/node_modules/pi-commandcode-provider/RELEASE.md +25 -0
- package/node_modules/pi-commandcode-provider/index.ts +212 -38
- package/node_modules/pi-commandcode-provider/package.json +9 -8
- package/node_modules/pi-commandcode-provider/scripts/live-e2e-profile.mjs +6 -13
- package/node_modules/pi-commandcode-provider/scripts/typecheck-entrypoint.mjs +88 -0
- package/node_modules/pi-commandcode-provider/src/api-key.ts +43 -2
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog-overrides.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +9 -2
- package/node_modules/pi-commandcode-provider/src/cost.ts +3 -37
- package/node_modules/pi-commandcode-provider/src/diagnostics.ts +215 -0
- package/node_modules/pi-commandcode-provider/src/oauth.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/quota-command.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/routing.ts +166 -0
- package/node_modules/pi-commandcode-provider/src/runtime.ts +15 -9
- package/node_modules/pi-commandcode-provider/src/transport.ts +79 -85
- package/node_modules/pi-commandcode-provider/src/types.ts +20 -39
- package/node_modules/pi-commandcode-provider/src/usage.ts +1 -1
- package/node_modules/pi-lens/CHANGELOG-USER.md +31 -0
- package/node_modules/pi-lens/CHANGELOG.md +178 -0
- package/node_modules/pi-lens/README.md +2 -1
- package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/node_modules/pi-lens/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
- package/node_modules/pi-lens/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
- package/node_modules/pi-lens/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-4ENEJHF4.js +198 -0
- package/node_modules/pi-lens/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/node_modules/pi-lens/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
- package/node_modules/pi-lens/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
- package/node_modules/pi-lens/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/node_modules/pi-lens/dist/chunk-DGKFWQK4.js +23 -0
- package/node_modules/pi-lens/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
- package/node_modules/pi-lens/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
- package/node_modules/pi-lens/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
- package/node_modules/pi-lens/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
- package/node_modules/pi-lens/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
- package/node_modules/pi-lens/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
- package/node_modules/pi-lens/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-H6FLQ5NW.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
- package/node_modules/pi-lens/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
- package/node_modules/pi-lens/dist/chunk-KR5VGMVT.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
- package/node_modules/pi-lens/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
- package/node_modules/pi-lens/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
- package/node_modules/pi-lens/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/node_modules/pi-lens/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
- package/node_modules/pi-lens/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
- package/node_modules/pi-lens/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
- package/node_modules/pi-lens/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/node_modules/pi-lens/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
- package/node_modules/pi-lens/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-Q6JQKWPK.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-QJJKOHLH.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
- package/node_modules/pi-lens/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
- package/node_modules/pi-lens/dist/chunk-T5QSLSMM.js +50 -0
- package/node_modules/pi-lens/dist/chunk-TGQDAG4B.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
- package/node_modules/pi-lens/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
- package/node_modules/pi-lens/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-TYHPVE5H.js +25 -0
- package/node_modules/pi-lens/dist/chunk-UAKO2M6B.js +73 -0
- package/node_modules/pi-lens/dist/chunk-UC5AXW5Z.js +20 -0
- package/node_modules/pi-lens/dist/chunk-UTJP6WOS.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/node_modules/pi-lens/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
- package/node_modules/pi-lens/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
- package/node_modules/pi-lens/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
- package/node_modules/pi-lens/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
- package/node_modules/pi-lens/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
- package/node_modules/pi-lens/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
- package/node_modules/pi-lens/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-ZD4KVFXI.js +234 -0
- package/node_modules/pi-lens/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
- package/node_modules/pi-lens/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
- package/node_modules/pi-lens/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
- package/node_modules/pi-lens/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
- package/node_modules/pi-lens/dist/index.js +4910 -4218
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +12 -17
- package/node_modules/pi-lens/dist/mcp/cli.js +41 -42
- package/node_modules/pi-lens/dist/mcp/server.js +1451 -648
- package/node_modules/pi-lens/dist/mcp/worker.js +59 -60
- package/node_modules/pi-lens/dist/probes/installer.js +17 -19
- package/node_modules/pi-lens/docs/agent-tools.md +40 -8
- package/node_modules/pi-lens/docs/analysisall.md +1 -1
- package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +7 -5
- package/node_modules/pi-lens/docs/configuration.md +51 -9
- package/node_modules/pi-lens/docs/defect-shapes.md +52 -3
- package/node_modules/pi-lens/docs/environment-variables.md +18 -1
- package/node_modules/pi-lens/docs/features.md +12 -5
- package/node_modules/pi-lens/docs/globalconfig.md +11 -3
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +9 -2
- package/node_modules/pi-lens/docs/invariants/session-telemetry.md +2 -2
- package/node_modules/pi-lens/docs/language-coverage.md +1 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +57 -35
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +4 -1
- package/node_modules/pi-lens/docs/merge-queue-rollout.md +10 -8
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +34 -23
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +11 -1
- package/node_modules/pi-lens/docs/pi-lens-investigator.md +3 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +15 -7
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +13 -0
- package/node_modules/pi-lens/docs/public-api-stability.md +39 -5
- package/node_modules/pi-lens/docs/release-qa-baseline.md +7 -4
- package/node_modules/pi-lens/docs/schema/pi-lens-config-v1.json +11 -2
- package/node_modules/pi-lens/docs/servercapabilities.md +3 -1
- package/node_modules/pi-lens/docs/settings.md +2 -2
- package/node_modules/pi-lens/docs/word-index.md +3 -2
- package/node_modules/pi-lens/package.json +8 -3
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/node_modules/pi-lens/scripts/download-grammars.js +3 -2
- package/node_modules/pi-lens/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/node_modules/pi-provider-qoder/dist/index.js +473 -62
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/package.json +10 -8
- package/node_modules/pi-commandcode-provider/src/converters.ts +0 -419
- package/node_modules/pi-commandcode-provider/src/core.ts +0 -861
- package/node_modules/pi-commandcode-provider/src/json-schema.ts +0 -417
- package/node_modules/pi-commandcode-provider/src/transcript.ts +0 -56
- package/node_modules/pi-lens/dist/chunk-2TS4GLOJ.js +0 -31
- package/node_modules/pi-lens/dist/chunk-3JAHQBSY.js +0 -27
- package/node_modules/pi-lens/dist/chunk-447YZL4S.js +0 -25
- package/node_modules/pi-lens/dist/chunk-565VRUP4.js +0 -136
- package/node_modules/pi-lens/dist/chunk-57X2CDRX.js +0 -49
- package/node_modules/pi-lens/dist/chunk-GGYOZWHW.js +0 -27
- package/node_modules/pi-lens/dist/chunk-IE5D3RA5.js +0 -58
- package/node_modules/pi-lens/dist/chunk-LPYTPNOJ.js +0 -22
- package/node_modules/pi-lens/dist/chunk-OFNMHPBT.js +0 -89
- package/node_modules/pi-lens/dist/chunk-U3AS2FR6.js +0 -106
- package/node_modules/pi-lens/dist/chunk-W3BGKBBK.js +0 -27
- package/node_modules/pi-lens/dist/chunk-WQV6BI4Q.js +0 -48
- package/node_modules/pi-lens/dist/chunk-YHGYAEFH.js +0 -443
- package/node_modules/pi-lens/dist/chunk-ZONZ6YY3.js +0 -74
- package/node_modules/pi-lens/dist/chunk-ZSM35JF4.js +0 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @herbertgao/pi-extensions
|
|
2
2
|
|
|
3
|
+
## 2026.11.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#356](https://github.com/HerbertGao/pi-extensions/pull/356) [`b167a96`](https://github.com/HerbertGao/pi-extensions/commit/b167a9639df433cd722fb12b7fb6368404178a0a) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Pin pi-lens 4.4.9, pi-provider-qoder 0.6.12, and pi-commandcode-provider 0.8.0. Groovy files classify as Groovy. A cut-off Qoder tool-call argument stream is a retryable server error. Command Code stays on the Provider API and does not fall back to the generate transport.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`b167a96`](https://github.com/HerbertGao/pi-extensions/commit/b167a9639df433cd722fb12b7fb6368404178a0a)]:
|
|
10
|
+
- @herbertgao/pi-cc-extensions@1.1.0
|
|
11
|
+
|
|
3
12
|
## 2026.11.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -21,8 +21,8 @@ When migrating from `pi-mcp-adapter`, remove any standalone adapter install as w
|
|
|
21
21
|
The package bundles 6 active `@herbertgao/*` child packages—`pi-agency`, `pi-bark`, `pi-cc-extensions`, `pi-impeccable`, `pi-subagents`, and `sol-pi`—plus the following upstream packages under their original names:
|
|
22
22
|
|
|
23
23
|
- `pi-antigravity@0.11.0`
|
|
24
|
-
- `pi-commandcode-provider@0.
|
|
25
|
-
- `pi-provider-qoder@0.6.
|
|
24
|
+
- `pi-commandcode-provider@0.8.0`
|
|
25
|
+
- `pi-provider-qoder@0.6.12`
|
|
26
26
|
- `@dietrichgebert/ponytail@5.3.3`
|
|
27
27
|
- `@juicesharp/rpiv-ask-user-question@2.15.0`
|
|
28
28
|
- `@narumitw/pi-btw@0.63.4`
|
|
@@ -36,12 +36,12 @@ The package bundles 6 active `@herbertgao/*` child packages—`pi-agency`, `pi-b
|
|
|
36
36
|
- `@tintinweb/pi-tasks@0.9.1`
|
|
37
37
|
- `pi-typesafe@0.14.0`
|
|
38
38
|
- `pi-next-cue@1.0.8`
|
|
39
|
-
- `pi-lens@4.4.
|
|
39
|
+
- `pi-lens@4.4.9`
|
|
40
40
|
- `pi-web-access@0.47.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.15`; 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. Web Access `0.47.0` adds Sofya and Outcrawl as explicit-only search providers. `lockProxy: true` rejects a tool-call proxy that differs from the configured proxy, including a direct connection. A GitHub repository README is returned up to 100K characters, and a clone with no `githubClone.clonePath` goes under the OS temp directory.
|
|
47
47
|
|
|
@@ -63,7 +63,7 @@ Impeccable `4.8.0` is vendored as `@herbertgao/pi-impeccable` and loaded with `/
|
|
|
63
63
|
|
|
64
64
|
`clef` asks Cloudflare Clef-flash an on-demand yes/no, choice, or score and prints the questions and answers in the transcript, plus a one-line notice. It is not a permission gate. `pi-typesafe@0.14.0` provides `/typesafe` and `typesafe_evaluate` for explicit structured decisions; `/typesafe enable` or `PI_TYPESAFE_ENABLED=1` is still required for agent tool calls. The default backend remains `https://api.typesafe.ai`. `PI_TYPESAFE_BACKEND` and `PI_TYPESAFE_MODEL` select the session backend and model, and `/typesafe login` stores a key for the named backend. Only HTTP 401 refuses that key, and only for 15 minutes; a 403 refuses one request and leaves the key usable. Nace.AI (`https://console.nace.ai`, `NACE_API_KEY`, default model `drex-v2.0`) is a judgment backend. Daily request, token, and USD caps are opt-in. OpenRouter, Command Code, Liquid, SubQ, Nace.AI, and a named endpoint stay explicit and use that backend's own key. The promoted SDK is `@typesafe-ai/sdk@0.7.0`. Under Bun, the judge transport reads each response body once and replays it, so the SDK can still read the result after Bun marks the original body used.
|
|
65
65
|
|
|
66
|
-
`@herbertgao/sol-pi` adds opt-in Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact; see its [configuration guide](../sol-pi/docs/configuration.md). `pi-lens@4.4.
|
|
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.9` 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. An identity `filter(x => x).map(...)` stays a warning, and a non-identity `filter(fn).map(...)` is no longer flagged. A reduce that copies its accumulator with `Object.assign` is a warning. A directory whose name starts with `..` stays inside its project. `.groovy`, `.gvy`, `.gy`, `.gsh`, `Jenkinsfile`, `build.gradle`, and `settings.gradle` classify as Groovy; `build.gradle.kts` does not. `minimatch` is `^11.0.4` and `vscode-jsonrpc` is `^10.0.0`. `pi-web-access@0.47.0` provides configurable web search and fetch tools; its `toolActivation` defaults to `auto`, choosing eager or dynamic tool activation per model. `toolActivation: "none"` stays opt-in and still requires deferred exposure. Field extraction, 9router, empty or off-topic search fallback, and plain HTTP gateway URLs stay off unless configured. An unknown tool-call provider name fails instead of selecting a provider automatically, and DuckDuckGo searches stay spaced apart after a bot check. It adds structured search/fetch data for codemode and an optional, manually started `pi-web-access-mcp` stdio CLI; installing the aggregate does not start that server. Degoog, Keenable, Ceramic, Linkup, DeepSeek fetch, Cloudflare search, SearchApi, Outcrawl, Sofya, and Tabstack are explicit-only, excluded from automatic and `all` selection. `lockProxy: true` rejects a tool-call proxy other than the configured one. A GitHub repository README is returned up to 100K characters, and a clone with no `githubClone.clonePath` goes under the OS temp directory. Optional `fetchContent.curl` and Exa/Tabstack fetch routing stay off unless configured. Provider gateway base URLs are opt-in and are not configured by the aggregate. OpenAI search now defaults to `gpt-6-luna`, results and clone cleanup are scoped per extension instance, and the promoted `@modelcontextprotocol/sdk@^1.32.1` moves the bundle off GHSA-6qxp-vccf-f47h. Perplexity search now uses the Search API's ranked pages and snippets rather than a Sonar-generated answer; requests requiring prose still use Sonar. `pi-antigravity@0.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.12` registers the `qoder` and `qoder-cn` model providers. A tool-call argument stream that is cut off before a usable call is reported as a retryable server error. Startup logs one line when the npm registry has a newer release; `PI_PROVIDER_QODER_SKIP_UPDATE_CHECK=1` skips that lookup. A queued model-busy response reports its wait instead of being ignored; a ready busy response stays retryable. A queued wait that does not fit in a safe millisecond count uses `retryAfterSeconds` instead. Agent chat prefers the account's remote-agent node and, on daily chat limit code 110, tries the next node. The chosen node is cached for one hour. Sign in with `/login qoder` (browser or a personal access token from [qoder.com/account/integrations](https://qoder.com/account/integrations)) or `/login qoder-cn` (token from [qoder.com.cn/account/integrations](https://qoder.com.cn/account/integrations)). `QODER_PERSONAL_ACCESS_TOKEN` and `QODERCN_PERSONAL_ACCESS_TOKEN` log those providers in at startup. `/qoder-usage footer on` replaces the status-bar footer for that session, so leave it off while the pi-cc footer is in use. `pi-commandcode-provider@0.8.0` registers `commandcode` beside `qoder`, `qoder-cn`, and `antigravity`. Inference uses the Provider API only. `/login` lists those subscription providers and runs only the one you select. `@tifan/pi-preferred-thinking` is no longer bundled. Per-model thinking levels come from Pi. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming. `@tifan/pi-handoff` imports `@tifan/pi-rename/naming` when it generates a session name, so Rename stays installed and its `/rename` command stays registered.
|
|
67
67
|
|
|
68
68
|
`pi-stash` is no longer bundled: `/btw` already preserves the main editor draft while handling side questions outside the main conversation. Prior `@herbertgao/pi-stash` releases remain available but are no longer maintained here.
|
|
69
69
|
|
|
@@ -81,9 +81,9 @@ Pi stacks widgets by key. While tasks are visible, three other above-editor widg
|
|
|
81
81
|
|
|
82
82
|
### Command Code
|
|
83
83
|
|
|
84
|
-
`pi-commandcode-provider@0.
|
|
84
|
+
`pi-commandcode-provider@0.8.0` adds the `commandcode` model provider. It does not register its own `/login` command. Pi's `/login` lists it with the other subscription providers (`antigravity`, `qoder`, and `qoder-cn`). Choose **Use a subscription**, then **Command Code**. Press Enter for browser login, type `key` to paste an API key, or paste the key directly. `COMMAND_CODE_API_KEY` signs the provider in at startup. Existing keys in `~/.commandcode/auth.json` are also read. Credentials Pi stores for this provider live under the `commandcode` entry in the host auth file. The reader does not take `qoder` or `antigravity` credentials.
|
|
85
85
|
|
|
86
|
-
`/commandcode-quota` shows account usage. `/commandcode-refresh` reloads the model catalog, and `/commandcode-status` shows redacted discovery diagnostics: URL userinfo, query strings, and fragments are removed before the shared credential redactor runs.
|
|
86
|
+
`/commandcode-quota` shows account usage. `/commandcode-refresh` reloads the model catalog, and `/commandcode-status` shows redacted discovery diagnostics: URL userinfo, query strings, and fragments are removed before the shared credential redactor runs. `/commandcode-endpoint` stores a per-model Provider API route, and `/commandcode-diagnostics` prints a content-free report. Inference stays on the Provider API. A `403 upgrade_required` response stops with that requirement and does not retry the retired `/alpha/generate` transport. `COMMANDCODE_TASTE_LEARNING` is no longer read. During a DeepSeek V4 peak window, context-tier rates are doubled together with the base rates, and the host receives its own mutable copy. `/commandcode-refresh` resets the transport probe. On first start without a cache, model discovery waits for `https://api.commandcode.ai/provider/v1/models` and still loads if that request fails. TypeSafe's Command Code judge backend stays opt-in and uses that backend's own key. This aggregate does not also bundle `pi-login-manager` or `@iaziz786/pi-cmd-login`.
|
|
87
87
|
|
|
88
88
|
### Footer
|
|
89
89
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -187,7 +187,7 @@ THE SOFTWARE.
|
|
|
187
187
|
|
|
188
188
|
## `pi-commandcode-provider`
|
|
189
189
|
|
|
190
|
-
The aggregate bundles [`pi-commandcode-provider`](https://github.com/patlux/pi-commandcode-provider) version 0.
|
|
190
|
+
The aggregate bundles [`pi-commandcode-provider`](https://github.com/patlux/pi-commandcode-provider) version 0.8.0 under its original MIT license. The imported npm package corresponds to upstream tag `v0.8.0` at commit [`d779459494e9b1b7e8419cc53587878e89e36520`](https://github.com/patlux/pi-commandcode-provider/commit/d779459494e9b1b7e8419cc53587878e89e36520). npm publishes no gitHead; the published tarball matches that tag.
|
|
191
191
|
|
|
192
192
|
MIT License
|
|
193
193
|
|
|
@@ -213,7 +213,7 @@ THE SOFTWARE.
|
|
|
213
213
|
|
|
214
214
|
## `pi-provider-qoder`
|
|
215
215
|
|
|
216
|
-
The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provider-qoder) version 0.6.
|
|
216
|
+
The aggregate bundles [`pi-provider-qoder`](https://github.com/simonsmh/pi-provider-qoder) version 0.6.12 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 [`a8de674d2fdc1f7715ab8d794e51e8e620469ed9`](https://github.com/simonsmh/pi-provider-qoder/commit/a8de674d2fdc1f7715ab8d794e51e8e620469ed9).
|
|
217
217
|
|
|
218
218
|
## `@herbertgao/pi-impeccable`
|
|
219
219
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @herbertgao/pi-cc-extensions
|
|
2
2
|
|
|
3
|
+
## 1.0.15-local.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#356](https://github.com/HerbertGao/pi-extensions/pull/356) [`b167a96`](https://github.com/HerbertGao/pi-extensions/commit/b167a9639df433cd722fb12b7fb6368404178a0a) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-cc-extensions 1.0.15. A running tool can expand to its full command and live output, and the package includes CC Dark HC and CC Light HC. Expanding a card in the lower half of the screen keeps following. Regular mode still does not enable terminal mouse reporting.
|
|
8
|
+
|
|
3
9
|
## 1.0.14-local.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -34,7 +34,7 @@ Run `/reload` after installation.
|
|
|
34
34
|
| Context inspection | Usage breakdown and previews for the system prompt, memory, skills, tools definition, and messages | `/context` |
|
|
35
35
|
| Session/Subagent references | Search and inject effective context from previous Sessions or existing SubAgents | `@` |
|
|
36
36
|
| Status bar | Shows model, context, cache, cost, the conversation token total, and git; also works with `@narumitw/pi-usage` for live quota. Git/cache Nerd Font icons can be turned off | `/ccstyle` |
|
|
37
|
-
| Theme | Bundled CC Dark
|
|
37
|
+
| Theme | Bundled themes: CC Dark, CC Light, CC Dark HC, CC Light HC | `/settings` → Theme |
|
|
38
38
|
|
|
39
39
|
Renderer snapshots for `on` / `compact` modes: [default](./docs/tool-render-examples-default.md) · [compact](./docs/tool-render-examples-compact.md)
|
|
40
40
|
|
|
@@ -128,7 +128,7 @@ pi -e . # one run, does not edit settings.json
|
|
|
128
128
|
|
|
129
129
|
## Credits
|
|
130
130
|
|
|
131
|
-
- Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.
|
|
131
|
+
- Based on [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.15 (MIT), upstream baseline [`b996151`](https://github.com/minuque/pi-cc-extensions/commit/b996151bb63028c270340bde3e9526a62c634d2f), with this repository's configuration migration and compatibility patches retained.
|
|
132
132
|
- 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).
|
|
133
133
|
|
|
134
134
|
## License
|
|
@@ -34,7 +34,7 @@ pi install git:github.com/HerbertGao/pi-extensions
|
|
|
34
34
|
| 上下文检查 | 查看上下文占用,并预览 System prompt、Memory、Skills、Tools definition 和消息内容 | `/context` |
|
|
35
35
|
| Session/Subagent 引用 | 搜索并注入历史 Session 或现有 SubAgent 的有效上下文 | `@` |
|
|
36
36
|
| 状态栏 | 显示:模型、上下文、缓存、费用、本次对话累计 token、git并适配 @narumitw/pi-usage 实时显示额度;git/缓存图标可关 Nerd Font | `/ccstyle` |
|
|
37
|
-
| 主题 |
|
|
37
|
+
| 主题 | 随包提供 4 个主题:CC Dark、CC Light、CC Dark HC、CC Light HC | `/settings` → Theme |
|
|
38
38
|
|
|
39
39
|
`on` / `compact` 两种模式的渲染样例:[默认模式](./docs/tool-render-examples-default.md) · [紧凑模式](./docs/tool-render-examples-compact.md)
|
|
40
40
|
|
|
@@ -128,7 +128,7 @@ pi -e . # 只跑一次,不改 settings.json
|
|
|
128
128
|
|
|
129
129
|
## 致谢
|
|
130
130
|
|
|
131
|
-
- 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.
|
|
131
|
+
- 基于 [`minuque/pi-cc-extensions`](https://github.com/minuque/pi-cc-extensions) 1.0.15(MIT),上游基线 [`b996151`](https://github.com/minuque/pi-cc-extensions/commit/b996151bb63028c270340bde3e9526a62c634d2f);保留本仓库的配置迁移与兼容性补丁。
|
|
132
132
|
- 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)。
|
|
133
133
|
|
|
134
134
|
## 许可证
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
fullscreenLazyTui,
|
|
50
50
|
hideScrollButton,
|
|
51
51
|
dockScrollButtonActive,
|
|
52
|
+
isFullscreenAtBottom,
|
|
52
53
|
restoreOfficialScrollToEnd,
|
|
53
54
|
restoreNativeScrollIndicatorText,
|
|
54
55
|
syncOfficialScrollToEnd,
|
|
@@ -469,9 +470,9 @@ function handleFullscreenToolClick(tui: any, packet: SgrMousePacket): boolean {
|
|
|
469
470
|
// compact 摘要行自己记展开前的视口(收起时还原跟随),所以它先展开再停跟随:
|
|
470
471
|
// 顺序反了快照会记下「未跟随」,收起时就交不回官方 follow。
|
|
471
472
|
component.setExpanded(true);
|
|
472
|
-
keepViewportOnExpand(tui);
|
|
473
|
+
keepViewportOnExpand(tui, hit);
|
|
473
474
|
} else {
|
|
474
|
-
keepViewportOnExpand(tui);
|
|
475
|
+
keepViewportOnExpand(tui, hit);
|
|
475
476
|
component.setExpanded(true);
|
|
476
477
|
}
|
|
477
478
|
clearPendingCollapsePress();
|
|
@@ -521,13 +522,40 @@ function isSameExpandedRound(other: any, owner: any): boolean {
|
|
|
521
522
|
}
|
|
522
523
|
|
|
523
524
|
/**
|
|
524
|
-
*
|
|
525
|
-
*
|
|
525
|
+
* 点击行在滚动视口里的位置:视口内行号与视口高度。布局树读不到时返回 null。
|
|
526
|
+
* leaf 不带 scrollView,视口是最近的带 scrollView 的祖先 box。
|
|
527
|
+
*/
|
|
528
|
+
function clickedRowInViewport(
|
|
529
|
+
hit: { box: any; localRow: number } | null | undefined,
|
|
530
|
+
): { y: number; height: number } | null {
|
|
531
|
+
if (!hit?.box) return null;
|
|
532
|
+
let scrollBox: any = null;
|
|
533
|
+
for (let current = hit.box; current; current = current.parent) {
|
|
534
|
+
if (current.scrollView) {
|
|
535
|
+
scrollBox = current;
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
const rect = scrollBox?.rect;
|
|
540
|
+
const height = Number(rect?.height);
|
|
541
|
+
const rowY = Number(hit.box.rect?.y);
|
|
542
|
+
if (!rect || !(height > 0) || !Number.isFinite(rowY)) return null;
|
|
543
|
+
return { y: rowY + hit.localRow - Number(rect.y), height };
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* 原地展开时视口怎么走。transcript 跟随底部时,内容变高会把视口拖到底,
|
|
548
|
+
* 点击的行和它上方的外层面板被顶出屏幕:展开前关掉跟随,点击行留在原位。
|
|
526
549
|
* compact 摘要行同样适用:它的展开入口在 setExpanded 之后调用本函数(见调用点)。
|
|
550
|
+
*
|
|
551
|
+
* 例外是点击行已经落在视口下半屏:它下面没有足够空间,冻结只会把展开出来的
|
|
552
|
+
* 内容全推到屏幕外(贴着底部输入框时最常见)。这种位置保持跟随,让新内容顶上来。
|
|
527
553
|
*/
|
|
528
|
-
function keepViewportOnExpand(tui: any): void {
|
|
554
|
+
function keepViewportOnExpand(tui: any, hit?: { box: any; localRow: number } | null): void {
|
|
529
555
|
const view = tui.getPrimaryScrollView?.();
|
|
530
556
|
if (typeof view?.scrollTo !== "function" || typeof view.scrollTop !== "number") return;
|
|
557
|
+
const spot = clickedRowInViewport(hit);
|
|
558
|
+
if (spot && isFullscreenAtBottom(tui) && spot.y >= spot.height / 2) return;
|
|
531
559
|
view.scrollTo(view.scrollTop, { disableFollow: true });
|
|
532
560
|
// 已脱离底部跟随:dock 模式亮出回到底部按钮,新输出到来时仍有入口。
|
|
533
561
|
if (view.isFollowingEnd === false && dockScrollButtonActive()) setScrollButtonVisible(true);
|
|
@@ -194,6 +194,69 @@ function shellDurationText(toolName: string, context: any, isPartial: boolean):
|
|
|
194
194
|
return elapsed === undefined ? "" : formatToolDuration(elapsed);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
/**
|
|
198
|
+
* 运行中的展开视图:与结束后同一份 Input / Output。
|
|
199
|
+
* 还没输出、或正文 trim 后为空时用 Pending… 占位:空白会被视图画成 Done,像已经跑完了。
|
|
200
|
+
* trim 只用来判空;非空正文原样保留,不整段去掉缩进和空白。
|
|
201
|
+
* shell 的已用时间挂到视图尾部;取值函数每帧重算,秒数才跟着动画 tick 走。
|
|
202
|
+
*/
|
|
203
|
+
function renderRunningExpandedResult(toolName: string, result: any, context: any, theme: any): any {
|
|
204
|
+
const text = textFromResult(result);
|
|
205
|
+
const view = renderExpandedToolResult(
|
|
206
|
+
text.trim() ? text : "Pending…",
|
|
207
|
+
theme,
|
|
208
|
+
false,
|
|
209
|
+
context?.lastComponent,
|
|
210
|
+
context?.args,
|
|
211
|
+
context,
|
|
212
|
+
true,
|
|
213
|
+
);
|
|
214
|
+
if (isExpandedToolIoView(view) && SHELL_TOOL_NAMES.has(toolName)) {
|
|
215
|
+
view.setFooter(() => shellDurationText(toolName, context, true) || undefined);
|
|
216
|
+
}
|
|
217
|
+
return view;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* 运行中的折叠行:` ↳ Pending… · 12.4s · click to show more`。
|
|
222
|
+
* 提示必须留在行尾:collapsedHintHitbox 只认行尾,没有它这行既点不动也看不出能点。
|
|
223
|
+
* 已用时间在 render() 内取,动画 tick 才能带上新值。
|
|
224
|
+
*/
|
|
225
|
+
function renderRunningCollapsedResult(options: {
|
|
226
|
+
toolName: string;
|
|
227
|
+
context: any;
|
|
228
|
+
theme: any;
|
|
229
|
+
/** ask_user_question 的结果树用 1 格缩进,与它的 ├/└ 对齐。 */
|
|
230
|
+
prefix?: string;
|
|
231
|
+
}): any {
|
|
232
|
+
const { toolName, context, theme, prefix } = options;
|
|
233
|
+
const toolCallId = context?.toolCallId;
|
|
234
|
+
const hintPrefix = theme.fg("dim", " · ");
|
|
235
|
+
const hint = hintPrefix + theme.fg("dim", showMoreHintText());
|
|
236
|
+
const hoveredHint = hintPrefix + theme.fg("text", showMoreHintText());
|
|
237
|
+
let cachedWidth: number | undefined;
|
|
238
|
+
let cachedBody: string | undefined;
|
|
239
|
+
let cachedLine: string | undefined;
|
|
240
|
+
let cachedHoveredLine: string | undefined;
|
|
241
|
+
return {
|
|
242
|
+
render(width: number) {
|
|
243
|
+
const elapsed = shellDurationText(toolName, context, true);
|
|
244
|
+
const body = elapsed ? `Pending… · ${elapsed}` : "Pending…";
|
|
245
|
+
if (cachedLine === undefined || cachedWidth !== width || cachedBody !== body) {
|
|
246
|
+
cachedWidth = width;
|
|
247
|
+
cachedBody = body;
|
|
248
|
+
cachedLine = theme.fg("muted", renderCollapsedToolResultToWidth(body, hint, width, prefix));
|
|
249
|
+
cachedHoveredLine = theme.fg(
|
|
250
|
+
"muted",
|
|
251
|
+
renderCollapsedToolResultToWidth(body, hoveredHint, width, prefix),
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
return [isToolCallHovered(toolCallId) ? cachedHoveredLine! : cachedLine];
|
|
255
|
+
},
|
|
256
|
+
invalidate(): void {},
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
|
|
197
260
|
/**
|
|
198
261
|
* Agent 的 renderResult:与 pi-subagents 保持同样的分支,但收敛成 ccstyle 的 ↳ 行。
|
|
199
262
|
* running/partial 转交原渲染器(只有它有 spinner frame 和 activity 文案);
|
|
@@ -476,9 +539,11 @@ export function createCcstyleTool(
|
|
|
476
539
|
if (toolName === ASK_USER_QUESTION_TOOL_NAME) {
|
|
477
540
|
if (!options?.isPartial) setToolVisualState(context, isError ? "error" : "success");
|
|
478
541
|
if (options?.isPartial) {
|
|
479
|
-
//
|
|
480
|
-
|
|
481
|
-
|
|
542
|
+
// 等待回答时也能展开看问题原文(Input 即 args.questions);折叠态 1 格缩进。
|
|
543
|
+
if (expanded) return renderRunningExpandedResult(toolName, result, context, theme);
|
|
544
|
+
// 折叠后清掉展开视图,与其它运行中工具一致。
|
|
545
|
+
if (context?.state) context.state.ccstyleIoView = undefined;
|
|
546
|
+
return renderRunningCollapsedResult({ toolName, context, theme, prefix: " ↳ " });
|
|
482
547
|
}
|
|
483
548
|
if (expanded) {
|
|
484
549
|
return renderExpandedToolResult(
|
|
@@ -501,21 +566,11 @@ export function createCcstyleTool(
|
|
|
501
566
|
});
|
|
502
567
|
}
|
|
503
568
|
if (options?.isPartial) {
|
|
569
|
+
// 运行中也给和结束后同一份 Input / Output:命令全文与已产生的输出。
|
|
570
|
+
if (expanded) return renderRunningExpandedResult(toolName, result, context, theme);
|
|
504
571
|
// 折叠态保持 3 格:与完成后的 ` ↳ …` 同列,工具跑完那行不横跳。
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
if (!SHELL_TOOL_NAMES.has(toolName)) {
|
|
508
|
-
return new Text(theme.fg("muted", pending), 0, 0);
|
|
509
|
-
}
|
|
510
|
-
// shell 运行中报已用时间:数字在 render() 内取,动画 tick 才能带上新值。
|
|
511
|
-
return {
|
|
512
|
-
render(width: number) {
|
|
513
|
-
const elapsed = shellDurationText(toolName, context, true);
|
|
514
|
-
const suffix = elapsed ? theme.fg("dim", ` · ${elapsed}`) : "";
|
|
515
|
-
return [truncateToWidth(theme.fg("muted", pending) + suffix, width, "")];
|
|
516
|
-
},
|
|
517
|
-
invalidate(): void {},
|
|
518
|
-
};
|
|
572
|
+
if (context?.state) context.state.ccstyleIoView = undefined;
|
|
573
|
+
return renderRunningCollapsedResult({ toolName, context, theme });
|
|
519
574
|
}
|
|
520
575
|
|
|
521
576
|
// shell:结果定型时定一次结束时间,这一行之后不再变。
|
|
@@ -26,6 +26,7 @@ import { mcpToolTitle } from "./mcp-title.ts";
|
|
|
26
26
|
import { collapseHintText, isToolTuiFullscreen, showMoreHintText } from "./names.ts";
|
|
27
27
|
import {
|
|
28
28
|
contentRowRange,
|
|
29
|
+
hasVisibleText,
|
|
29
30
|
imagePlacement,
|
|
30
31
|
stripAnsi,
|
|
31
32
|
stripBackgroundAnsi,
|
|
@@ -364,10 +365,17 @@ function expandedToolRows(tool: any, width: number): string[] {
|
|
|
364
365
|
const cached = expandedToolRowsCache.get(paint);
|
|
365
366
|
if (cached) return cached;
|
|
366
367
|
const rendered = visibleLines(paint);
|
|
367
|
-
|
|
368
|
-
|
|
368
|
+
// 首行的状态图标由组前缀给,子行里要剥掉。
|
|
369
|
+
const stripIcon = (line: string) =>
|
|
370
|
+
stripLeadingStatusIcon(line)
|
|
369
371
|
.replace(/^ +/, "")
|
|
370
372
|
.replace(/^((?:\x1b\[[0-?]*[ -/]*[@-~])*) +/, "$1");
|
|
373
|
+
// 剥完什么都没剩下(子卡首行只剩一个图标)就丢掉这一行,再对新的首行剥一次:
|
|
374
|
+
// 留着会多出一行只有 `├ ✓` 的空行,标题行也会带着图标和前缀叠成两个。
|
|
375
|
+
while (rendered.length) {
|
|
376
|
+
rendered[0] = stripIcon(rendered[0]);
|
|
377
|
+
if (hasVisibleText(rendered[0])) break;
|
|
378
|
+
rendered.shift();
|
|
371
379
|
}
|
|
372
380
|
const rows = rendered.length
|
|
373
381
|
? // 续行只剥外层 Box 的 1 格 left pad,保留 Input/Output 相对缩进
|
|
@@ -106,8 +106,11 @@ export class ExpandedToolIoView {
|
|
|
106
106
|
|
|
107
107
|
/** flushLeft:贴左渲染(外层 Box 负责 1 格 pad);默认 false 保留 1 格前导空格。 */
|
|
108
108
|
private flushLeft: boolean;
|
|
109
|
-
/** 尾部附注(shell 的耗时)。挂到 Output 的 show-more 行上,没有那一行时单独成行。
|
|
110
|
-
|
|
109
|
+
/** 尾部附注(shell 的耗时)。挂到 Output 的 show-more 行上,没有那一行时单独成行。
|
|
110
|
+
* 传取值函数时每帧求值,值变了才重画:运行中的秒数要跟着动画 tick 走。 */
|
|
111
|
+
private footer: string | (() => string | undefined) | undefined;
|
|
112
|
+
/** 上一次求值结果,用来判断 footer 是否变化。 */
|
|
113
|
+
private footerText: string | undefined;
|
|
111
114
|
|
|
112
115
|
constructor(
|
|
113
116
|
theme: any,
|
|
@@ -224,7 +227,7 @@ export class ExpandedToolIoView {
|
|
|
224
227
|
}
|
|
225
228
|
|
|
226
229
|
/** 尾部附注(耗时等)。挂在 show-more 行上;无 show-more 行时单独成行。 */
|
|
227
|
-
setFooter(text: string | undefined): void {
|
|
230
|
+
setFooter(text: string | (() => string | undefined) | undefined): void {
|
|
228
231
|
if (this.footer === text) return;
|
|
229
232
|
this.footer = text;
|
|
230
233
|
this.invalidate();
|
|
@@ -268,6 +271,12 @@ export class ExpandedToolIoView {
|
|
|
268
271
|
}
|
|
269
272
|
|
|
270
273
|
render(width: number): string[] {
|
|
274
|
+
// footer 可以是取值函数(运行中的耗时),每帧重算;变了就丢掉行缓存。
|
|
275
|
+
const footer = typeof this.footer === "function" ? this.footer() : this.footer;
|
|
276
|
+
if (footer !== this.footerText) {
|
|
277
|
+
this.footerText = footer;
|
|
278
|
+
this.cachedLines = undefined;
|
|
279
|
+
}
|
|
271
280
|
if (this.cachedLines !== undefined && this.cachedWidth === width) {
|
|
272
281
|
return withIoViewMarkers(this, this.cachedLines);
|
|
273
282
|
}
|
|
@@ -397,7 +406,7 @@ export class ExpandedToolIoView {
|
|
|
397
406
|
limit: this.maxOutputLines,
|
|
398
407
|
continued: false,
|
|
399
408
|
section: "output",
|
|
400
|
-
footerNote:
|
|
409
|
+
footerNote: footer,
|
|
401
410
|
});
|
|
402
411
|
} else {
|
|
403
412
|
this.truncated.output = outputWouldTruncate;
|
|
@@ -406,14 +415,14 @@ export class ExpandedToolIoView {
|
|
|
406
415
|
limit: this.maxOutputLines,
|
|
407
416
|
continued: false,
|
|
408
417
|
section: "output",
|
|
409
|
-
footerNote:
|
|
418
|
+
footerNote: footer,
|
|
410
419
|
});
|
|
411
420
|
}
|
|
412
421
|
|
|
413
422
|
// 耗时挂在 Output 的 show-more 行上(与折叠态一样,提示留在行尾);
|
|
414
423
|
// 没截断就没有那一行,才单独成行。放在最后追加,前面记下的行号不受影响。
|
|
415
|
-
if (
|
|
416
|
-
pushRailLine(theme.fg("muted",
|
|
424
|
+
if (footer && this.showMoreHeaderRows.output === undefined) {
|
|
425
|
+
pushRailLine(theme.fg("muted", footer), false);
|
|
417
426
|
}
|
|
418
427
|
|
|
419
428
|
this.cachedWidth = width;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-cc-extensions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15-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",
|
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
],
|
|
36
36
|
"themes": [
|
|
37
37
|
"./themes/cc-dark.json",
|
|
38
|
-
"./themes/cc-light.json"
|
|
38
|
+
"./themes/cc-light.json",
|
|
39
|
+
"./themes/cc-dark-hc.json",
|
|
40
|
+
"./themes/cc-light-hc.json"
|
|
39
41
|
],
|
|
40
42
|
"image": "https://raw.githubusercontent.com/HerbertGao/pi-extensions/master/packages/pi-cc-extensions/assets/readme/preview.webp",
|
|
41
43
|
"video": "https://github.com/minuque/pi-cc-extensions/releases/download/v0.9.4/demo.mp4"
|
|
@@ -72,10 +74,10 @@
|
|
|
72
74
|
},
|
|
73
75
|
"x-upstream": {
|
|
74
76
|
"package": "pi-cc-extensions",
|
|
75
|
-
"version": "1.0.
|
|
76
|
-
"reviewedVersion": "1.0.
|
|
77
|
+
"version": "1.0.15",
|
|
78
|
+
"reviewedVersion": "1.0.15",
|
|
77
79
|
"repository": "https://github.com/minuque/pi-cc-extensions",
|
|
78
|
-
"commit": "
|
|
80
|
+
"commit": "b996151bb63028c270340bde3e9526a62c634d2f",
|
|
79
81
|
"trackVersion": true
|
|
80
82
|
}
|
|
81
83
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://pi.dev/schemas/theme.schema.json",
|
|
3
|
+
"name": "cc-dark-hc",
|
|
4
|
+
"appearance": "dark",
|
|
5
|
+
"vars": {
|
|
6
|
+
"fg": "#d6dde3",
|
|
7
|
+
"fgMuted": "#929eab",
|
|
8
|
+
"fgSubtle": "#768494",
|
|
9
|
+
"canvas": "#0d1117",
|
|
10
|
+
"canvasSubtle": "#1c2033",
|
|
11
|
+
"canvasInset": "#161a2b",
|
|
12
|
+
"border": "#1c2d44",
|
|
13
|
+
"borderMuted": "#16233a",
|
|
14
|
+
"blue": "#4f9eff",
|
|
15
|
+
"blueBright": "#79c0ff",
|
|
16
|
+
"green": "#37b34a",
|
|
17
|
+
"red": "#ff6e62",
|
|
18
|
+
"redSoft": "#ff7b72",
|
|
19
|
+
"yellow": "#cb9214",
|
|
20
|
+
"orange": "#f0883e",
|
|
21
|
+
"orangeSoft": "#ffa657",
|
|
22
|
+
"purple": "#be8fff",
|
|
23
|
+
"pink": "#f778ba",
|
|
24
|
+
"cyan": "#39c5cf",
|
|
25
|
+
"selection": "#1a4480",
|
|
26
|
+
"diffAddBg": "#0f2a24",
|
|
27
|
+
"diffDelBg": "#261418"
|
|
28
|
+
},
|
|
29
|
+
"colors": {
|
|
30
|
+
"accent": "blue",
|
|
31
|
+
"border": "border",
|
|
32
|
+
"borderAccent": "blue",
|
|
33
|
+
"borderMuted": "borderMuted",
|
|
34
|
+
"success": "green",
|
|
35
|
+
"error": "#ffc4bd",
|
|
36
|
+
"warning": "yellow",
|
|
37
|
+
"muted": "fgMuted",
|
|
38
|
+
"dim": "#71717a",
|
|
39
|
+
"text": "#f2f6fa",
|
|
40
|
+
"thinkingText": "#c6d0dc",
|
|
41
|
+
"selectedBg": "selection",
|
|
42
|
+
"scrollbarTrack": "borderMuted",
|
|
43
|
+
"scrollbarThumb": "#3a5274",
|
|
44
|
+
"searchMatchBg": "#1e1800",
|
|
45
|
+
"searchMatchText": "fg",
|
|
46
|
+
"userMessageBg": "#17375a",
|
|
47
|
+
"userMessageText": "#f2f6fa",
|
|
48
|
+
"customMessageBg": "borderMuted",
|
|
49
|
+
"customMessageText": "fgMuted",
|
|
50
|
+
"customMessageLabel": "blue",
|
|
51
|
+
"toolPendingBg": "#1a2534",
|
|
52
|
+
"toolSuccessBg": "#123c2b",
|
|
53
|
+
"toolErrorBg": "#4b1b21",
|
|
54
|
+
"toolTitle": "#f2f6fa",
|
|
55
|
+
"toolOutput": "#c6d0dc",
|
|
56
|
+
"mdHeading": "#b8ddff",
|
|
57
|
+
"mdLink": "#a3d0ff",
|
|
58
|
+
"mdLinkUrl": "#c6d0dc",
|
|
59
|
+
"mdCode": "#a5d6ff",
|
|
60
|
+
"mdCodeBlock": "#f2f6fa",
|
|
61
|
+
"mdCodeBlockBorder": "#6b95c7",
|
|
62
|
+
"mdQuote": "#c6d0dc",
|
|
63
|
+
"mdQuoteBorder": "#6b95c7",
|
|
64
|
+
"mdHr": "#6b95c7",
|
|
65
|
+
"mdListBullet": "#b8ddff",
|
|
66
|
+
"toolDiffAdded": "green",
|
|
67
|
+
"toolDiffRemoved": "red",
|
|
68
|
+
"toolDiffContext": "fgMuted",
|
|
69
|
+
"syntaxComment": "#c6d0dc",
|
|
70
|
+
"syntaxKeyword": "#ffc7c0",
|
|
71
|
+
"syntaxFunction": "#e0c9ff",
|
|
72
|
+
"syntaxVariable": "#ffc99b",
|
|
73
|
+
"syntaxString": "#a5d6ff",
|
|
74
|
+
"syntaxNumber": "#b8ddff",
|
|
75
|
+
"syntaxType": "#ffc98f",
|
|
76
|
+
"syntaxOperator": "#ffc7c0",
|
|
77
|
+
"syntaxPunctuation": "#f2f6fa",
|
|
78
|
+
"thinkingOff": "fgMuted",
|
|
79
|
+
"thinkingMinimal": "fgSubtle",
|
|
80
|
+
"thinkingLow": "blue",
|
|
81
|
+
"thinkingMedium": "blue",
|
|
82
|
+
"thinkingHigh": "blueBright",
|
|
83
|
+
"thinkingXhigh": "cyan",
|
|
84
|
+
"thinkingMax": "cyan",
|
|
85
|
+
"bashMode": "green"
|
|
86
|
+
},
|
|
87
|
+
"export": {
|
|
88
|
+
"pageBg": "#0a1424",
|
|
89
|
+
"cardBg": "canvasSubtle",
|
|
90
|
+
"infoBg": "#122544"
|
|
91
|
+
}
|
|
92
|
+
}
|