@herbertgao/pi-extensions 2026.10.12 → 2026.10.14
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 -11
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +7 -9
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +7 -9
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +1 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +14 -8
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +22 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +28 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +33 -12
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +60 -17
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/default-mode.ts +1 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/index.ts +20 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/markdown-enhance.ts +4 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +42 -18
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/layout.ts +12 -3
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +131 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +217 -113
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/names.ts +12 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/subagent-notification.ts +556 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +50 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +11 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/patch-keys.ts +4 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/README.md +1 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/ask-user-question.ts +27 -3
- package/node_modules/@juicesharp/rpiv-ask-user-question/config.ts +23 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/docs/configuration.md +15 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/docs/keyboard.md +9 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/de.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/en.json +8 -5
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/es.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/fr.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/pt-BR.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/pt.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/ru.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/uk.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/locales/zh.json +7 -4
- package/node_modules/@juicesharp/rpiv-ask-user-question/package.json +4 -3
- package/node_modules/@juicesharp/rpiv-ask-user-question/presentation.ts +11 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/build-questionnaire.ts +6 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/key-router.ts +49 -8
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/questionnaire-session.ts +6 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/state-reducer.ts +13 -1
- package/node_modules/@juicesharp/rpiv-ask-user-question/state/state.ts +2 -0
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-block-renderer.ts +19 -7
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-builder.ts +36 -7
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-copy.ts +13 -2
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/tab-content-strategy.ts +24 -8
- package/node_modules/@juicesharp/rpiv-ask-user-question/view/transcript.ts +144 -0
- package/node_modules/@narumitw/pi-btw/README.md +7 -2
- package/node_modules/@narumitw/pi-btw/dist/index.ts +371 -118
- package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
- package/node_modules/@narumitw/pi-btw/docs/main-context-runtime.md +45 -0
- package/node_modules/@narumitw/pi-btw/docs/workflows.md +48 -5
- package/node_modules/@narumitw/pi-btw/package.json +1 -1
- package/node_modules/@narumitw/pi-btw/src/btw.ts +39 -14
- package/node_modules/@narumitw/pi-btw/src/import-main-updates.ts +84 -0
- package/node_modules/@narumitw/pi-btw/src/keybindings.ts +29 -4
- package/node_modules/@narumitw/pi-btw/src/main-context-snapshot.ts +125 -0
- package/node_modules/@narumitw/pi-btw/src/menu.ts +1 -0
- package/node_modules/@narumitw/pi-btw/src/side-thread.ts +66 -17
- package/node_modules/@narumitw/pi-btw/src/transcript-markdown.ts +5 -5
- package/node_modules/@narumitw/pi-btw/src/transcript-pager.ts +47 -6
- package/node_modules/pi-lens/CHANGELOG.md +440 -0
- package/node_modules/pi-lens/README.md +13 -3
- package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -0
- package/node_modules/pi-lens/dist/chunk-22Y2BM7H.js +23 -0
- package/node_modules/pi-lens/dist/{chunk-ATKJFDQN.js → chunk-27VWVB23.js} +12 -14
- package/node_modules/pi-lens/dist/{chunk-S2HEXIWI.js → chunk-2FYKETQJ.js} +10 -6
- package/node_modules/pi-lens/dist/{chunk-SRYEJNES.js → chunk-2LDMXL2M.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-ZHH37KZL.js → chunk-2SDHYHHO.js} +17 -17
- package/node_modules/pi-lens/dist/chunk-2Y6OJRSI.js +38 -0
- package/node_modules/pi-lens/dist/chunk-3SNDVPOR.js +507 -0
- package/node_modules/pi-lens/dist/{chunk-5OFV52AM.js → chunk-3WCEHYOI.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-44X7VIKR.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-DEL2U6CM.js → chunk-4FHUGDKU.js} +16 -14
- package/node_modules/pi-lens/dist/{chunk-CT4MN5IU.js → chunk-4ODSZ35Z.js} +353 -359
- package/node_modules/pi-lens/dist/{chunk-ZIVJBOO3.js → chunk-4U7GDSZQ.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-54NIOJJZ.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-N5FLEO7W.js → chunk-5DKE4HGX.js} +37 -37
- package/node_modules/pi-lens/dist/{chunk-P63GXC37.js → chunk-5LRUKYFA.js} +31 -4
- package/node_modules/pi-lens/dist/{chunk-HRNHZA3N.js → chunk-63NMUNYP.js} +12 -16
- package/node_modules/pi-lens/dist/{chunk-HWCCCQNX.js → chunk-6XSESGWD.js} +13 -6
- package/node_modules/pi-lens/dist/{chunk-UMS2MFPZ.js → chunk-72J27ICO.js} +2 -3
- package/node_modules/pi-lens/dist/{chunk-ED36RF6Y.js → chunk-7FLRUH6B.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-7IYC4ENJ.js +297 -0
- package/node_modules/pi-lens/dist/chunk-7WWQAW5P.js +30 -0
- package/node_modules/pi-lens/dist/{chunk-3DA2JDOL.js → chunk-7ZS7MC24.js} +551 -203
- package/node_modules/pi-lens/dist/{chunk-WMYE35PX.js → chunk-AHWA4AKM.js} +7 -5
- package/node_modules/pi-lens/dist/{chunk-JW3YWBVB.js → chunk-AI3GP74G.js} +17 -19
- package/node_modules/pi-lens/dist/{chunk-AGSS7277.js → chunk-APFJKOP6.js} +6 -23
- package/node_modules/pi-lens/dist/{chunk-ZVUL7QYY.js → chunk-ASRAO7KG.js} +29 -32
- package/node_modules/pi-lens/dist/{chunk-BW5KFIQC.js → chunk-AWQWXSW4.js} +1 -0
- package/node_modules/pi-lens/dist/{chunk-TLX72JTG.js → chunk-CG5V25HX.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-CKEQFGLT.js +32 -0
- package/node_modules/pi-lens/dist/{chunk-Y6GZHWSJ.js → chunk-COOUUC5W.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-XTBDCR27.js → chunk-CPZ5JJW6.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-RKKOYPRA.js → chunk-DS2USX5G.js} +13 -15
- package/node_modules/pi-lens/dist/chunk-EA2ZRG44.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-GSLNCYGG.js → chunk-EDMLIW6W.js} +13 -14
- package/node_modules/pi-lens/dist/{chunk-2EECBNC5.js → chunk-EIKRZ32J.js} +75 -0
- package/node_modules/pi-lens/dist/chunk-EKNWOL2I.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-R3T7CLQ2.js → chunk-ELZRSR5N.js} +41 -41
- package/node_modules/pi-lens/dist/{chunk-GMX5OS7B.js → chunk-EN5AM7PX.js} +11 -12
- package/node_modules/pi-lens/dist/{chunk-3RKP3FMS.js → chunk-EWXXLS26.js} +226 -24
- package/node_modules/pi-lens/dist/chunk-EX4EXBW7.js +37 -0
- package/node_modules/pi-lens/dist/{chunk-XHJBS436.js → chunk-EXVXBSGN.js} +25 -25
- package/node_modules/pi-lens/dist/{chunk-MZGQNL3Y.js → chunk-F7BO6FWH.js} +12 -13
- package/node_modules/pi-lens/dist/{chunk-V35JG4JB.js → chunk-FEDWAYDS.js} +152 -334
- package/node_modules/pi-lens/dist/{chunk-J64T55EI.js → chunk-FWZRGGGY.js} +73 -9
- package/node_modules/pi-lens/dist/{chunk-T57LYLZT.js → chunk-G224FADB.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-G5UCJFT7.js +26 -0
- package/node_modules/pi-lens/dist/{chunk-LLJNQKQW.js → chunk-GLW3YDZZ.js} +20 -13
- package/node_modules/pi-lens/dist/{chunk-GXFV6MYU.js → chunk-GTDSYEA2.js} +72 -39
- package/node_modules/pi-lens/dist/{chunk-DUO2TU77.js → chunk-GYRZ72R4.js} +10 -4
- package/node_modules/pi-lens/dist/chunk-HYVXA3BB.js +49 -0
- package/node_modules/pi-lens/dist/{chunk-W66O5E25.js → chunk-IEBJF3PN.js} +13 -15
- package/node_modules/pi-lens/dist/{chunk-GAQ7OQG6.js → chunk-IL7K66ZQ.js} +83 -94
- package/node_modules/pi-lens/dist/{chunk-T7FEBKXN.js → chunk-JWOVP5BL.js} +7 -9
- package/node_modules/pi-lens/dist/{chunk-UBOQLVT2.js → chunk-K2GUZ4DN.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-5VSF4UUQ.js → chunk-K4SZB56V.js} +34 -39
- package/node_modules/pi-lens/dist/{chunk-7D6L4MTX.js → chunk-KCBRHV5E.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-GSM5UU7A.js → chunk-KFXCL4OV.js} +38 -28
- package/node_modules/pi-lens/dist/{chunk-J6MPGQTS.js → chunk-KJJAVH3X.js} +81 -15
- package/node_modules/pi-lens/dist/{chunk-BWD5EPKO.js → chunk-KPVLQHCZ.js} +4 -6
- package/node_modules/pi-lens/dist/{chunk-MPNJLASA.js → chunk-KX56K73G.js} +10 -13
- package/node_modules/pi-lens/dist/{chunk-AWSCPCN2.js → chunk-LMCTHJ2H.js} +19 -19
- package/node_modules/pi-lens/dist/{chunk-IWDLU6K3.js → chunk-MEFLGBCS.js} +4 -6
- package/node_modules/pi-lens/dist/{chunk-TOY6QKOH.js → chunk-MKPCELNI.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-POMLXPMY.js → chunk-N3PLNNCW.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-N5FBM25N.js +22 -0
- package/node_modules/pi-lens/dist/{chunk-CYRKQRPM.js → chunk-NFNVDDGB.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-RMLC67LF.js → chunk-NLIVE7L6.js} +2 -30
- package/node_modules/pi-lens/dist/{chunk-24AKHFGP.js → chunk-OMJ3OFBJ.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-IQWN5JCP.js → chunk-OZNCKLOX.js} +13 -14
- package/node_modules/pi-lens/dist/chunk-P5XUGPIX.js +31 -0
- package/node_modules/pi-lens/dist/{chunk-2KXTHF3M.js → chunk-PJXNTPB2.js} +253 -33
- package/node_modules/pi-lens/dist/chunk-PKOXJIVT.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-DGUKIYSI.js → chunk-PP2A5V2T.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-KAPJINKN.js → chunk-Q42LJANT.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-UZ2XCLYS.js → chunk-Q4BKKOVC.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-TIQ2PKDW.js → chunk-QT66NEYN.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-U44DJXQP.js → chunk-RCHO5W7M.js} +15 -18
- package/node_modules/pi-lens/dist/{chunk-YH5MVY2U.js → chunk-RG3MXTRI.js} +7 -7
- package/node_modules/pi-lens/dist/chunk-RG7OODGM.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-OHKJ7PQF.js → chunk-RU34BA4D.js} +43 -39
- package/node_modules/pi-lens/dist/{chunk-JMYYOTQG.js → chunk-S26LC76R.js} +13 -1
- package/node_modules/pi-lens/dist/{chunk-XBJVAEEO.js → chunk-S55TEC7I.js} +3 -2
- package/node_modules/pi-lens/dist/{chunk-RVK72CZX.js → chunk-SJHC3BCZ.js} +1397 -481
- package/node_modules/pi-lens/dist/{chunk-IYNJ6YPZ.js → chunk-SNEUMLM7.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-S67KYG37.js → chunk-T4NGVFYI.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YCWYO6TQ.js → chunk-THEXI2QO.js} +48 -45
- package/node_modules/pi-lens/dist/{chunk-AMERCH6V.js → chunk-TL2TCJYL.js} +15 -16
- package/node_modules/pi-lens/dist/{chunk-KUA4OJ5Y.js → chunk-TPYYEDP5.js} +823 -350
- package/node_modules/pi-lens/dist/{chunk-YNE3RP52.js → chunk-TVZRLTG6.js} +8 -1
- package/node_modules/pi-lens/dist/{chunk-ROYSX2S5.js → chunk-UCVMSOXF.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-UL5SXQVX.js +32 -0
- package/node_modules/pi-lens/dist/{chunk-7HXE67BN.js → chunk-UO66IMVP.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-VOOAPROD.js → chunk-UVY4TOJH.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-RKBXZN3A.js → chunk-VIDEKABZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-2FN63LPV.js → chunk-VITFDI3O.js} +13 -14
- package/node_modules/pi-lens/dist/{chunk-6DLWKFEX.js → chunk-VUAVE3QC.js} +41 -42
- package/node_modules/pi-lens/dist/{chunk-FM4RDMKT.js → chunk-WUY4BZEP.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-SD4I7ZO4.js → chunk-X3UTCXAA.js} +43 -53
- package/node_modules/pi-lens/dist/chunk-XHDBJODR.js +45 -0
- package/node_modules/pi-lens/dist/{chunk-5IUSNGOC.js → chunk-XHLK33VM.js} +28 -21
- package/node_modules/pi-lens/dist/{chunk-3KAZU3VR.js → chunk-XI34NWDI.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QBFBRV2B.js → chunk-XWFIHYCH.js} +4 -2
- package/node_modules/pi-lens/dist/{chunk-JUKMK5Y4.js → chunk-Y2TPADJR.js} +10 -11
- package/node_modules/pi-lens/dist/{chunk-EBC36LNN.js → chunk-Y5KTA2OB.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-HYGZEMX6.js → chunk-YKVDBNPO.js} +11 -5
- package/node_modules/pi-lens/dist/{chunk-KN35K52N.js → chunk-YSDPVDFC.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-YWNO5Q4R.js +44 -0
- package/node_modules/pi-lens/dist/{chunk-US7ECLD7.js → chunk-YWWG4AQA.js} +119 -28
- package/node_modules/pi-lens/dist/{chunk-O4NWQT6I.js → chunk-YXDCRUKQ.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-XYURS6EN.js → chunk-YXGRRORB.js} +15 -17
- package/node_modules/pi-lens/dist/{chunk-IUE7SSKV.js → chunk-ZAPSUBLU.js} +13 -7
- package/node_modules/pi-lens/dist/{chunk-EUXZEFTV.js → chunk-ZPJM7DID.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-5HSRT26B.js → chunk-ZSUX7KEM.js} +16 -15
- package/node_modules/pi-lens/dist/index.js +37155 -32210
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +11 -12
- package/node_modules/pi-lens/dist/mcp/cli.js +46 -45
- package/node_modules/pi-lens/dist/mcp/server.js +1210 -574
- package/node_modules/pi-lens/dist/mcp/worker.js +65 -65
- package/node_modules/pi-lens/dist/probes/installer.js +21 -23
- package/node_modules/pi-lens/docs/adr/0010-trace-validation-session-lifecycle.md +390 -0
- package/node_modules/pi-lens/docs/adr/README.md +1 -0
- package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +5 -3
- package/node_modules/pi-lens/docs/configuration.md +9 -0
- package/node_modules/pi-lens/docs/engineering-principles.md +12 -0
- package/node_modules/pi-lens/docs/environment-variables.md +20 -0
- package/node_modules/pi-lens/docs/features.md +16 -1
- package/node_modules/pi-lens/docs/globalconfig.md +37 -8
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +105 -12
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +37 -18
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +22 -1
- package/node_modules/pi-lens/docs/pi-lens-investigator.md +14 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +23 -10
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +64 -8
- package/node_modules/pi-lens/docs/pi-lens-retro.md +2 -2
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +48 -1
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +8 -1
- package/node_modules/pi-lens/docs/release-qa-baseline.md +19 -7
- package/node_modules/pi-lens/docs/servercapabilities.md +47 -47
- package/node_modules/pi-lens/docs/settings.md +9 -5
- package/node_modules/pi-lens/docs/subagent-compat.md +1 -1
- package/node_modules/pi-lens/docs/usage.md +1 -0
- package/node_modules/pi-lens/package.json +6 -4
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-return-value-in-generator-test.yml +17 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-js-test.yml +86 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-test.yml +86 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-numeric-parse-python-test.yml +15 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-return-value-in-generator.yml +9 -4
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +119 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +119 -0
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-numeric-parse-python.yml +13 -2
- package/node_modules/pi-lens/rules/rule-catalog.json +25 -1
- package/node_modules/pi-lens/scripts/analyze-pi-lens-logs.mjs +15 -5
- package/node_modules/pi-lens/scripts/lib/is-main-module.mjs +27 -0
- package/node_modules/pi-lens/scripts/lib/scratch-home-env.mjs +21 -0
- package/node_modules/pi-lens/scripts/rpc-load-check.mjs +4 -6
- package/node_modules/pi-lens/scripts/warm-loader-cache.mjs +2 -5
- package/node_modules/pi-next-cue/package.json +4 -1
- package/node_modules/pi-provider-qoder/dist/index.js +438 -283
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-typesafe/README.md +6 -6
- package/node_modules/pi-typesafe/dist/ask.js +9 -2
- package/node_modules/pi-typesafe/dist/auth.d.ts +3 -2
- package/node_modules/pi-typesafe/dist/auth.js +2 -2
- package/node_modules/pi-typesafe/dist/backends.d.ts +20 -5
- package/node_modules/pi-typesafe/dist/backends.js +32 -8
- package/node_modules/pi-typesafe/dist/batch.d.ts +1 -1
- package/node_modules/pi-typesafe/dist/batch.js +2 -2
- package/node_modules/pi-typesafe/dist/client.d.ts +1 -1
- package/node_modules/pi-typesafe/dist/client.js +24 -12
- package/node_modules/pi-typesafe/dist/credentials.d.ts +8 -6
- package/node_modules/pi-typesafe/dist/credentials.js +70 -16
- package/node_modules/pi-typesafe/dist/extension.js +118 -26
- package/node_modules/pi-typesafe/dist/index.d.ts +1 -1
- package/node_modules/pi-typesafe/dist/index.js +1 -1
- package/node_modules/pi-typesafe/dist/key-prompt.d.ts +1 -1
- package/node_modules/pi-typesafe/dist/key-prompt.js +6 -6
- package/node_modules/pi-typesafe/dist/login.d.ts +11 -10
- package/node_modules/pi-typesafe/dist/login.js +24 -21
- package/node_modules/pi-typesafe/dist/schema.d.ts +8 -8
- package/node_modules/pi-typesafe/dist/schema.js +29 -7
- package/node_modules/pi-typesafe/package.json +2 -2
- package/package.json +12 -12
- package/node_modules/pi-lens/dist/chunk-3PTHXJXR.js +0 -28
- package/node_modules/pi-lens/dist/chunk-3QED2P4V.js +0 -31
- package/node_modules/pi-lens/dist/chunk-5WRPDP2A.js +0 -47
- package/node_modules/pi-lens/dist/chunk-ABBOA7UD.js +0 -157
- package/node_modules/pi-lens/dist/chunk-CUHSHSB6.js +0 -273
- package/node_modules/pi-lens/dist/chunk-GL5LUMZE.js +0 -51
- package/node_modules/pi-lens/dist/chunk-HAD7QRQI.js +0 -30
- package/node_modules/pi-lens/dist/chunk-JORED7EX.js +0 -44
- package/node_modules/pi-lens/dist/chunk-KYUB6QDC.js +0 -72
- package/node_modules/pi-lens/dist/chunk-LZSEQW6A.js +0 -57
- package/node_modules/pi-lens/dist/chunk-M2IFVFWU.js +0 -79
- package/node_modules/pi-lens/dist/chunk-M2UD3LPU.js +0 -88
- package/node_modules/pi-lens/dist/chunk-MBKQHGA7.js +0 -39
- package/node_modules/pi-lens/dist/chunk-R7YOCSNV.js +0 -23
- package/node_modules/pi-lens/dist/chunk-SKAMFC7A.js +0 -28
- package/node_modules/pi-lens/dist/chunk-SYE6T2EB.js +0 -28
- package/node_modules/pi-lens/dist/chunk-TRETHTQO.js +0 -26
- package/node_modules/pi-lens/dist/chunk-UA7ZXYDR.js +0 -184
- package/node_modules/pi-lens/dist/chunk-XTFDJI3T.js +0 -24
- package/node_modules/pi-lens/dist/chunk-Z3CCVDUB.js +0 -76
- package/node_modules/pi-next-cue/.github/workflows/publish.yml +0 -20
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
logExtension
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N3PLNNCW.js";
|
|
5
5
|
import {
|
|
6
6
|
DEPRECATED_CONFIG_SURFACES
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S26LC76R.js";
|
|
8
8
|
import {
|
|
9
9
|
logLatency
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XWFIHYCH.js";
|
|
11
11
|
import {
|
|
12
12
|
PROCESS_SINGLETON_RESET_KIND,
|
|
13
13
|
getProbeHomeRedirectEvent,
|
|
@@ -18,7 +18,11 @@ import {
|
|
|
18
18
|
getSinkWriteFailures,
|
|
19
19
|
resetSinkRotations,
|
|
20
20
|
resetSinkWriteFailures
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TVZRLTG6.js";
|
|
22
|
+
import {
|
|
23
|
+
getPathIdentityFallbacks,
|
|
24
|
+
resetPathIdentityFallbacks
|
|
25
|
+
} from "./chunk-EWXXLS26.js";
|
|
22
26
|
|
|
23
27
|
// dist/clients/ledger-bounds.js
|
|
24
28
|
var LEDGER_FIELD_MAX = 200;
|
|
@@ -174,6 +178,18 @@ function getDegradationSummary() {
|
|
|
174
178
|
droppedCount: group.count - group.entries.length,
|
|
175
179
|
latestReasons: group.entries.map((entry) => ({ ...entry }))
|
|
176
180
|
}));
|
|
181
|
+
const identityFallbacks = getPathIdentityFallbacks();
|
|
182
|
+
if (identityFallbacks.length > 0) {
|
|
183
|
+
summary.push({
|
|
184
|
+
kind: "path-identity-fallback",
|
|
185
|
+
count: identityFallbacks.reduce((total, row) => total + row.count, 0),
|
|
186
|
+
droppedCount: 0,
|
|
187
|
+
latestReasons: identityFallbacks.map((row) => ({
|
|
188
|
+
subject: truncateForLedger(row.code),
|
|
189
|
+
reason: truncateForLedger(`${row.count} fallback(s) to an ancestor identity; first: ${row.firstPath}`)
|
|
190
|
+
}))
|
|
191
|
+
});
|
|
192
|
+
}
|
|
177
193
|
const sinkFailures = getSinkWriteFailures();
|
|
178
194
|
if (sinkFailures.length > 0) {
|
|
179
195
|
summary.push({
|
|
@@ -302,7 +318,18 @@ var INFORMATIONAL_DEGRADATION_KINDS = /* @__PURE__ */ new Set([
|
|
|
302
318
|
// #3813: a part the cap cut was kept pending for the next turn, which is
|
|
303
319
|
// the cap and its re-offer working together; the agent's message carries
|
|
304
320
|
// the "N held" note, and the ledger needs only the tally.
|
|
305
|
-
"turn-end-sections-held"
|
|
321
|
+
"turn-end-sections-held",
|
|
322
|
+
// #3952: both are the idle-eviction POLICY answering, not a timer that
|
|
323
|
+
// failed. `lsp-idle-eviction` is the memory bound releasing a client that
|
|
324
|
+
// respawns on the next request; `lsp-idle-eviction-declined` is the
|
|
325
|
+
// declaration `unmeasured`/`resident` doing its job, once per server, so a
|
|
326
|
+
// nominal session writes up to one row per non-`transparent` server (32 of
|
|
327
|
+
// the 49 built-ins today). A `⚠` per server on every healthy session is
|
|
328
|
+
// the cry-wolf shape #2505 rejected; the sibling that DOES stand out is a
|
|
329
|
+
// measurement whose arm never reached the policy, and that one reads as a
|
|
330
|
+
// missing row, not as a warning here.
|
|
331
|
+
"lsp-idle-eviction",
|
|
332
|
+
"lsp-idle-eviction-declined"
|
|
306
333
|
]);
|
|
307
334
|
function renderDegradationLines(summary = getDegradationSummary()) {
|
|
308
335
|
if (!isRenderableSummary(summary))
|
|
@@ -337,6 +364,7 @@ function resetDegradationLedger() {
|
|
|
337
364
|
ledgerGeneration++;
|
|
338
365
|
resetSinkWriteFailures();
|
|
339
366
|
resetSinkRotations();
|
|
367
|
+
resetPathIdentityFallbacks();
|
|
340
368
|
}
|
|
341
369
|
|
|
342
370
|
// dist/clients/string-utils.js
|
|
@@ -442,7 +470,7 @@ var LENS_FLAGS = [
|
|
|
442
470
|
},
|
|
443
471
|
{
|
|
444
472
|
name: "no-opengrep",
|
|
445
|
-
description: "Disable the Opengrep security scanner (a default-on auxiliary LSP; auto-installs, uses repo rules if present else the login-free 'auto' ruleset). Also via opengrep.enabled=false in ~/.pi-lens/config.json.",
|
|
473
|
+
description: "Disable the Opengrep security scanner (a default-on auxiliary LSP; auto-installs, uses repo rules if present, else the registry pack pi-lens refreshes into its cache, else the login-free 'auto' ruleset). Also via opengrep.enabled=false in ~/.pi-lens/config.json.",
|
|
446
474
|
configKey: "opengrep.enabled",
|
|
447
475
|
negated: true,
|
|
448
476
|
default: false,
|
|
@@ -465,6 +493,14 @@ var LENS_FLAGS = [
|
|
|
465
493
|
scope: "global",
|
|
466
494
|
env: "PI_LENS_NO_CONTEXT_INJECTION"
|
|
467
495
|
},
|
|
496
|
+
{
|
|
497
|
+
name: "lens-retain-injections",
|
|
498
|
+
description: "Opt-in (#4743): re-send each request's injected findings unchanged, at the same place, in every later request of the session, so an exact-prefix prompt cache (a local llama.cpp or Qwen server) keeps the whole conversation. Each retained block is labelled a snapshot; findings are still delivered once. Default off. Also via contextInjection.retain=true in ~/.pi-lens/config.json.",
|
|
499
|
+
configKey: "contextInjection.retain",
|
|
500
|
+
negated: false,
|
|
501
|
+
default: false,
|
|
502
|
+
scope: "global"
|
|
503
|
+
},
|
|
468
504
|
{
|
|
469
505
|
name: "lens-turn-summary",
|
|
470
506
|
description: "Opt-in: persist a per-turn transcript entry summarizing diagnostics found, autofixes applied, and autoformats applied this turn (#484). Collapsed one-line, expandable in place. Default off. Also via turnSummary.enabled=true in ~/.pi-lens/config.json.",
|
|
@@ -511,11 +547,17 @@ var LENS_FLAGS = [
|
|
|
511
547
|
globalOptInFlag("lens-compact-widget", "Opt-in (#3959): render the pi-lens widget as ONE summary line (languages + error/warning totals) instead of also stacking file rows, the suppressed count and blocker details below it. Default off. Also via ui.compactWidget=true in ~/.pi-lens/config.json.", "ui.compactWidget"),
|
|
512
548
|
{
|
|
513
549
|
name: "no-lazy-tools",
|
|
514
|
-
description:
|
|
550
|
+
description: 'Keep every pi-lens tool active for the whole session. Same as tools.lazy=false in ~/.pi-lens/config.json; the default tools.lazy=true starts the situational tools inactive on every model, and tools.lazy="auto" only on models that support mid-conversation system messages.',
|
|
515
551
|
configKey: "tools.lazy",
|
|
516
552
|
negated: true,
|
|
517
553
|
default: false,
|
|
518
|
-
scope: "global"
|
|
554
|
+
scope: "global",
|
|
555
|
+
// #4687: `tools.lazy` takes a third value, "auto", which leaves this flag
|
|
556
|
+
// at its default (off); only the two booleans decide it.
|
|
557
|
+
readGlobal: (config) => {
|
|
558
|
+
const setting = readLazyToolsSetting(config);
|
|
559
|
+
return typeof setting === "boolean" ? setting : void 0;
|
|
560
|
+
}
|
|
519
561
|
},
|
|
520
562
|
{
|
|
521
563
|
name: "lens-turn-end-madge",
|
|
@@ -597,6 +639,10 @@ function flagConfigSectionKeys(flags) {
|
|
|
597
639
|
function asConfigObject(value) {
|
|
598
640
|
return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
599
641
|
}
|
|
642
|
+
function readLazyToolsSetting(config) {
|
|
643
|
+
const lazy = asConfigObject(asConfigObject(config)?.tools)?.lazy;
|
|
644
|
+
return lazy === true || lazy === false || lazy === "auto" ? lazy : void 0;
|
|
645
|
+
}
|
|
600
646
|
function resolveFlagConfigPath(raw, configKey, warnInvalid) {
|
|
601
647
|
const segments = configKey.split(".");
|
|
602
648
|
let source = raw;
|
|
@@ -810,6 +856,23 @@ function translateGuidanceToolNames(content, host) {
|
|
|
810
856
|
if (host === "pi")
|
|
811
857
|
return content;
|
|
812
858
|
let text = content;
|
|
859
|
+
const piOnly = [];
|
|
860
|
+
for (const entry of TOOL_REGISTRY) {
|
|
861
|
+
if (typeof entry.piName === "string" && typeof entry.mcpName !== "string") {
|
|
862
|
+
piOnly.push(entry.piName);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
text = text.replace(/\n?• Situational \(([^)]*)\): ([^.]*)\.( Use [^\n]*)?/, (_match, clause, list, hint) => {
|
|
866
|
+
const kept = [];
|
|
867
|
+
for (const name of list.split(", ")) {
|
|
868
|
+
if (!piOnly.includes(name))
|
|
869
|
+
kept.push(name);
|
|
870
|
+
}
|
|
871
|
+
if (kept.length === 0)
|
|
872
|
+
return "";
|
|
873
|
+
return `
|
|
874
|
+
\u2022 Situational (${clause}): ${kept.join(", ")}.${hint ?? ""}`;
|
|
875
|
+
});
|
|
813
876
|
const byLength = [...TOOL_REGISTRY].sort((a, b) => (b.piName?.length ?? 0) - (a.piName?.length ?? 0));
|
|
814
877
|
for (const entry of byLength) {
|
|
815
878
|
if (typeof entry.piName !== "string" || typeof entry.mcpName !== "string") {
|
|
@@ -817,7 +880,7 @@ function translateGuidanceToolNames(content, host) {
|
|
|
817
880
|
}
|
|
818
881
|
text = text.replace(new RegExp(`\\b${escapeRegExp(entry.piName)}\\b`, "g"), entry.mcpName);
|
|
819
882
|
}
|
|
820
|
-
return text.replace("activate via pi_lens_activate_tools", "call directly");
|
|
883
|
+
return text.replace("activate via pi_lens_activate_tools if unlisted", "call directly").replace("activate via pi_lens_activate_tools", "call directly");
|
|
821
884
|
}
|
|
822
885
|
function toolRegistryEntryForMcp(name) {
|
|
823
886
|
return TOOL_REGISTRY.find((tool) => tool.mcpName === name);
|
|
@@ -890,6 +953,7 @@ export {
|
|
|
890
953
|
PROJECT_FOREIGN_CONFIG_NAMESPACES,
|
|
891
954
|
PROJECT_FOREIGN_NAMESPACE_HONORED_KEYS,
|
|
892
955
|
flagConfigSectionKeys,
|
|
956
|
+
readLazyToolsSetting,
|
|
893
957
|
hasFlagConfigPath,
|
|
894
958
|
readFlagConfigValue,
|
|
895
959
|
flagValueFromConfig,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withTreeSitterRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YWWG4AQA.js";
|
|
5
5
|
|
|
6
6
|
// dist/clients/dispatch/facts/tree-sitter-facts.js
|
|
7
7
|
var withFactTree = withTreeSitterRoot;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
GovulncheckClient,
|
|
4
|
+
parseGovulncheckJson
|
|
5
|
+
} from "./chunk-ZAPSUBLU.js";
|
|
6
|
+
import "./chunk-T4NGVFYI.js";
|
|
7
|
+
import "./chunk-QT66NEYN.js";
|
|
8
|
+
import "./chunk-XI34NWDI.js";
|
|
9
|
+
import "./chunk-5LRUKYFA.js";
|
|
10
|
+
import "./chunk-TPYYEDP5.js";
|
|
11
|
+
import "./chunk-AWQWXSW4.js";
|
|
12
|
+
import "./chunk-KJJAVH3X.js";
|
|
13
|
+
import "./chunk-ZSUX7KEM.js";
|
|
14
|
+
import "./chunk-EIKRZ32J.js";
|
|
15
|
+
import "./chunk-FWZRGGGY.js";
|
|
16
|
+
import "./chunk-N3PLNNCW.js";
|
|
17
|
+
import "./chunk-S26LC76R.js";
|
|
18
|
+
import "./chunk-XWFIHYCH.js";
|
|
19
|
+
import "./chunk-TVZRLTG6.js";
|
|
20
|
+
import "./chunk-LJDODBBZ.js";
|
|
21
|
+
import "./chunk-EWXXLS26.js";
|
|
22
|
+
import "./chunk-NXL4FFQQ.js";
|
|
23
|
+
export {
|
|
24
|
+
GovulncheckClient,
|
|
25
|
+
parseGovulncheckJson
|
|
26
|
+
};
|
|
@@ -17,25 +17,28 @@ import {
|
|
|
17
17
|
releaseOwnChildPid,
|
|
18
18
|
resetSafeSpawnWindowsCommandCache,
|
|
19
19
|
resetUtf8ConsoleCodePageStateForTests,
|
|
20
|
+
resolveSearchPathCommand,
|
|
20
21
|
resolveTeardownOutcome,
|
|
21
22
|
resolveWindowsCommandForEnvironment,
|
|
22
23
|
safeSpawn,
|
|
23
24
|
safeSpawnAsync,
|
|
24
25
|
safeSpawnBatch,
|
|
25
26
|
setAmbientAbortSignal,
|
|
26
|
-
spawnAbortScope
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
27
|
+
spawnAbortScope,
|
|
28
|
+
statIsFile,
|
|
29
|
+
trustScopedEnvironment,
|
|
30
|
+
trustScopedSearchPath
|
|
31
|
+
} from "./chunk-TPYYEDP5.js";
|
|
32
|
+
import "./chunk-KJJAVH3X.js";
|
|
33
|
+
import "./chunk-ZSUX7KEM.js";
|
|
34
|
+
import "./chunk-EIKRZ32J.js";
|
|
35
|
+
import "./chunk-FWZRGGGY.js";
|
|
36
|
+
import "./chunk-N3PLNNCW.js";
|
|
37
|
+
import "./chunk-S26LC76R.js";
|
|
38
|
+
import "./chunk-XWFIHYCH.js";
|
|
39
|
+
import "./chunk-TVZRLTG6.js";
|
|
36
40
|
import "./chunk-LJDODBBZ.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-3RKP3FMS.js";
|
|
41
|
+
import "./chunk-EWXXLS26.js";
|
|
39
42
|
import "./chunk-NXL4FFQQ.js";
|
|
40
43
|
export {
|
|
41
44
|
SpawnFailureError,
|
|
@@ -55,11 +58,15 @@ export {
|
|
|
55
58
|
releaseOwnChildPid,
|
|
56
59
|
resetSafeSpawnWindowsCommandCache,
|
|
57
60
|
resetUtf8ConsoleCodePageStateForTests,
|
|
61
|
+
resolveSearchPathCommand,
|
|
58
62
|
resolveTeardownOutcome,
|
|
59
63
|
resolveWindowsCommandForEnvironment,
|
|
60
64
|
safeSpawn,
|
|
61
65
|
safeSpawnAsync,
|
|
62
66
|
safeSpawnBatch,
|
|
63
67
|
setAmbientAbortSignal,
|
|
64
|
-
spawnAbortScope
|
|
68
|
+
spawnAbortScope,
|
|
69
|
+
statIsFile,
|
|
70
|
+
trustScopedEnvironment,
|
|
71
|
+
trustScopedSearchPath
|
|
65
72
|
};
|
|
@@ -1,39 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
getGlobalPiLensDir
|
|
4
|
-
} from "./chunk-KUA4OJ5Y.js";
|
|
5
2
|
import {
|
|
6
3
|
SPECIAL_FILENAMES
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
getTurnId
|
|
10
|
-
} from "./chunk-YNE3RP52.js";
|
|
11
|
-
import {
|
|
12
|
-
BoundedFifoMap
|
|
13
|
-
} from "./chunk-ABBOA7UD.js";
|
|
14
|
-
|
|
15
|
-
// dist/clients/custom-rule-locations.js
|
|
16
|
-
import * as path from "node:path";
|
|
17
|
-
function getUserRuleRoot() {
|
|
18
|
-
return path.join(getGlobalPiLensDir(), "rules");
|
|
19
|
-
}
|
|
20
|
-
var RULE_CORPUS_CYCLE_ENTRIES = 16;
|
|
21
|
-
var ruleCorpusCycleFingerprints = new BoundedFifoMap(RULE_CORPUS_CYCLE_ENTRIES);
|
|
22
|
-
var cycleSlot;
|
|
23
|
-
function ruleCorpusFingerprintForCycle(family, root, compute, force = false) {
|
|
24
|
-
const cycle = getTurnId();
|
|
25
|
-
if (!force && cycleSlot !== void 0 && cycleSlot.cycle === cycle && cycleSlot.family === family && cycleSlot.root === root) {
|
|
26
|
-
return cycleSlot.fingerprint;
|
|
27
|
-
}
|
|
28
|
-
const key = `${cycle}\0${family}\0${root}`;
|
|
29
|
-
let fingerprint = force ? void 0 : ruleCorpusCycleFingerprints.get(key);
|
|
30
|
-
if (fingerprint === void 0) {
|
|
31
|
-
fingerprint = compute(root);
|
|
32
|
-
ruleCorpusCycleFingerprints.set(key, fingerprint);
|
|
33
|
-
}
|
|
34
|
-
cycleSlot = { cycle, family, root, fingerprint };
|
|
35
|
-
return fingerprint;
|
|
36
|
-
}
|
|
4
|
+
} from "./chunk-GYRZ72R4.js";
|
|
37
5
|
|
|
38
6
|
// dist/clients/language-registry.js
|
|
39
7
|
var LANGUAGES = [
|
|
@@ -172,7 +140,44 @@ var LANGUAGES = [
|
|
|
172
140
|
grammar: "json",
|
|
173
141
|
grammarExtensions: []
|
|
174
142
|
},
|
|
175
|
-
|
|
143
|
+
// JSONC by convention, not by extension (#4636). `.json` belongs to the
|
|
144
|
+
// `json` entry, so an extension-only lookup announced these files as `json`
|
|
145
|
+
// and the JSON language server applied its comments-not-allowed mode to
|
|
146
|
+
// them: `languageId === 'jsonc'` is the only spelling that selects
|
|
147
|
+
// `comments: 'ignore'` (vscode-langservers-extracted 4.10.0,
|
|
148
|
+
// lib/json-language-server/jsonServer.js:521), so every comment the file's
|
|
149
|
+
// own format allows arrived as a blocking finding. The catalog is CLOSED and
|
|
150
|
+
// copied from the two places that decide the association for editors,
|
|
151
|
+
// microsoft/vscode 1.105.0:
|
|
152
|
+
// - extensions/typescript-basics/package.json:44-56 — the tsconfig and
|
|
153
|
+
// jsconfig families, exact names plus the `.*.json` and `-*.json`
|
|
154
|
+
// patterns;
|
|
155
|
+
// - extensions/json/package.json:50-72 — the `jsonc` basenames and the
|
|
156
|
+
// one `jsonc` extension that ends in `.json` (`babel.config.json`,
|
|
157
|
+
// `.babelrc.json`, `.eslintrc.json`, `typedoc.json`).
|
|
158
|
+
// A jsonc name whose own extension is not `.json` (`.babelrc`, `.jshintrc`,
|
|
159
|
+
// `bun.lock`, `.ember-cli`) stays out: no extension lookup claims it, so it
|
|
160
|
+
// was never announced as `json` and this entry would have to own a format it
|
|
161
|
+
// does not parse.
|
|
162
|
+
{
|
|
163
|
+
id: "jsonc",
|
|
164
|
+
kind: "json",
|
|
165
|
+
extensions: [".jsonc"],
|
|
166
|
+
filenames: [
|
|
167
|
+
".babelrc.json",
|
|
168
|
+
".eslintrc.json",
|
|
169
|
+
"babel.config.json",
|
|
170
|
+
"jsconfig.json",
|
|
171
|
+
"tsconfig.json",
|
|
172
|
+
"typedoc.json"
|
|
173
|
+
],
|
|
174
|
+
filenamePatterns: [
|
|
175
|
+
"jsconfig-*.json",
|
|
176
|
+
"jsconfig.*.json",
|
|
177
|
+
"tsconfig-*.json",
|
|
178
|
+
"tsconfig.*.json"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
176
181
|
{ id: "julia", extensions: [".jl"] },
|
|
177
182
|
{
|
|
178
183
|
id: "kotlin",
|
|
@@ -242,7 +247,14 @@ var LANGUAGES = [
|
|
|
242
247
|
{ id: "svelte", kind: "jsts", extensions: [".svelte"] },
|
|
243
248
|
{ id: "swift", kind: "swift", extensions: [".swift"], grammar: "swift" },
|
|
244
249
|
{ id: "systemverilog", extensions: [".sv"] },
|
|
245
|
-
{ id: "terraform", kind: "terraform", extensions: [".tf"
|
|
250
|
+
{ id: "terraform", kind: "terraform", extensions: [".tf"] },
|
|
251
|
+
// terraform-ls validates a variables file only when its `languageId` is
|
|
252
|
+
// `terraform-vars`; announced as `terraform` it decodes the file as module
|
|
253
|
+
// code and (with enhanced validation, its default since 0.32) reports every
|
|
254
|
+
// assignment as "Unexpected attribute" (hashicorp/vscode-terraform#1672).
|
|
255
|
+
// Same kind, so the same server, runners, and formatter policy; only the LSP
|
|
256
|
+
// `languageId` differs.
|
|
257
|
+
{ id: "terraform-vars", kind: "terraform", extensions: [".tfvars"] },
|
|
246
258
|
{
|
|
247
259
|
id: "terragrunt",
|
|
248
260
|
kind: "terragrunt",
|
|
@@ -315,6 +327,18 @@ for (const entry of LANGUAGES) {
|
|
|
315
327
|
BY_FILENAME.set(filename.toLowerCase(), entry);
|
|
316
328
|
}
|
|
317
329
|
}
|
|
330
|
+
function matchesFilenamePattern(pattern, basename) {
|
|
331
|
+
const star = pattern.indexOf("*");
|
|
332
|
+
if (star === -1 || pattern.indexOf("*", star + 1) !== -1)
|
|
333
|
+
return false;
|
|
334
|
+
const name = basename.toLowerCase();
|
|
335
|
+
const prefix = pattern.slice(0, star).toLowerCase();
|
|
336
|
+
const suffix = pattern.slice(star + 1).toLowerCase();
|
|
337
|
+
if (!prefix || !suffix)
|
|
338
|
+
return false;
|
|
339
|
+
return name.length > prefix.length + suffix.length && name.startsWith(prefix) && name.endsWith(suffix);
|
|
340
|
+
}
|
|
341
|
+
var FILENAME_PATTERNS = LANGUAGES.flatMap((entry) => (entry.filenamePatterns ?? []).map((pattern) => ({ pattern, entry })));
|
|
318
342
|
var BY_ID = new Map(LANGUAGES.map((entry) => [entry.id, entry]));
|
|
319
343
|
function extensionsForLanguage(id) {
|
|
320
344
|
return BY_ID.get(id)?.extensions ?? [];
|
|
@@ -361,16 +385,25 @@ var BY_KIND = /* @__PURE__ */ new Map();
|
|
|
361
385
|
BY_KIND.set(kind, resolved);
|
|
362
386
|
}
|
|
363
387
|
}
|
|
364
|
-
function
|
|
388
|
+
function resolveFilenameLanguage(filePath) {
|
|
365
389
|
if (!filePath)
|
|
366
390
|
return void 0;
|
|
367
391
|
const base = basenameOf(filePath);
|
|
368
392
|
const byName = BY_FILENAME.get(base.toLowerCase());
|
|
393
|
+
if (byName)
|
|
394
|
+
return byName;
|
|
395
|
+
return FILENAME_PATTERNS.find(({ pattern }) => matchesFilenamePattern(pattern, base))?.entry;
|
|
396
|
+
}
|
|
397
|
+
function resolveLanguage(filePath) {
|
|
398
|
+
if (!filePath)
|
|
399
|
+
return void 0;
|
|
400
|
+
const byName = resolveFilenameLanguage(filePath);
|
|
369
401
|
if (byName)
|
|
370
402
|
return byName;
|
|
371
403
|
const byExtension = BY_EXTENSION.get(extensionOf(filePath));
|
|
372
404
|
if (byExtension)
|
|
373
405
|
return byExtension;
|
|
406
|
+
const base = basenameOf(filePath);
|
|
374
407
|
for (const { pattern, kind } of SPECIAL_FILENAMES) {
|
|
375
408
|
if (pattern.test(base))
|
|
376
409
|
return BY_KIND.get(kind);
|
|
@@ -397,7 +430,7 @@ var SCAN_LANGUAGE_PRIORITY = [
|
|
|
397
430
|
["haskell"],
|
|
398
431
|
["elixir"],
|
|
399
432
|
["gleam"],
|
|
400
|
-
["terraform"],
|
|
433
|
+
["terraform", "terraform-vars"],
|
|
401
434
|
["nix"],
|
|
402
435
|
["shell"],
|
|
403
436
|
["php"],
|
|
@@ -415,10 +448,10 @@ var SCAN_LANGUAGE_PRIORITY = [
|
|
|
415
448
|
];
|
|
416
449
|
|
|
417
450
|
export {
|
|
418
|
-
|
|
419
|
-
ruleCorpusFingerprintForCycle,
|
|
451
|
+
lspLanguageId,
|
|
420
452
|
extensionsForLanguage,
|
|
421
453
|
extensionsForLanguageToken,
|
|
454
|
+
resolveFilenameLanguage,
|
|
422
455
|
resolveLanguage,
|
|
423
456
|
EXTENSION_TO_LSP_ID,
|
|
424
457
|
EXTENSION_TO_GRAMMAR,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
findNearestDirWithMarker
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZSUX7KEM.js";
|
|
5
5
|
import {
|
|
6
6
|
isWindowsPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EWXXLS26.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/file-kinds.js
|
|
10
10
|
import { basename, extname, win32 } from "node:path";
|
|
@@ -123,11 +123,15 @@ var LEAN_ROOT_MARKERS = [
|
|
|
123
123
|
"lakefile.toml",
|
|
124
124
|
"lean-toolchain"
|
|
125
125
|
];
|
|
126
|
-
var
|
|
127
|
-
|
|
126
|
+
var DOTNET_CSHARP_PROJECT_MARKERS = ["*.csproj"];
|
|
127
|
+
var DOTNET_CSHARP_SOLUTION_MARKERS = [
|
|
128
128
|
"*.sln",
|
|
129
129
|
"*.slnx"
|
|
130
130
|
];
|
|
131
|
+
var DOTNET_CSHARP_ROOT_MARKERS = [
|
|
132
|
+
...DOTNET_CSHARP_PROJECT_MARKERS,
|
|
133
|
+
...DOTNET_CSHARP_SOLUTION_MARKERS
|
|
134
|
+
];
|
|
131
135
|
var DOTNET_FSHARP_ROOT_MARKERS = [
|
|
132
136
|
"*.fsproj",
|
|
133
137
|
"*.sln"
|
|
@@ -335,6 +339,8 @@ export {
|
|
|
335
339
|
isJstsFactFile,
|
|
336
340
|
isReadableSourceFile,
|
|
337
341
|
LEAN_ROOT_MARKERS,
|
|
342
|
+
DOTNET_CSHARP_PROJECT_MARKERS,
|
|
343
|
+
DOTNET_CSHARP_SOLUTION_MARKERS,
|
|
338
344
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
339
345
|
DOTNET_FSHARP_ROOT_MARKERS,
|
|
340
346
|
TERRAGRUNT_FILENAMES,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
MAX_CANONICAL_ROOT_MEMO_ENTRIES,
|
|
4
|
+
RUNNERS,
|
|
5
|
+
SOURCE_TO_TEST_PATTERNS,
|
|
6
|
+
TURN_END_EXCLUDED_TEST_GLOBS,
|
|
7
|
+
TestRunnerClient,
|
|
8
|
+
isExcludedTestTarget,
|
|
9
|
+
isRunnerErrorResult,
|
|
10
|
+
stripWrapperArgs
|
|
11
|
+
} from "./chunk-X3UTCXAA.js";
|
|
12
|
+
import "./chunk-3SNDVPOR.js";
|
|
13
|
+
import "./chunk-7IYC4ENJ.js";
|
|
14
|
+
import "./chunk-KX56K73G.js";
|
|
15
|
+
import "./chunk-GTDSYEA2.js";
|
|
16
|
+
import "./chunk-6HWVI6MI.js";
|
|
17
|
+
import "./chunk-4FHUGDKU.js";
|
|
18
|
+
import "./chunk-K4SZB56V.js";
|
|
19
|
+
import "./chunk-XI34NWDI.js";
|
|
20
|
+
import "./chunk-5LRUKYFA.js";
|
|
21
|
+
import "./chunk-63NMUNYP.js";
|
|
22
|
+
import "./chunk-CG5V25HX.js";
|
|
23
|
+
import "./chunk-PP2A5V2T.js";
|
|
24
|
+
import "./chunk-S55TEC7I.js";
|
|
25
|
+
import "./chunk-TPYYEDP5.js";
|
|
26
|
+
import "./chunk-AWQWXSW4.js";
|
|
27
|
+
import "./chunk-QYF5S6P6.js";
|
|
28
|
+
import "./chunk-GYRZ72R4.js";
|
|
29
|
+
import "./chunk-KJJAVH3X.js";
|
|
30
|
+
import "./chunk-ZSUX7KEM.js";
|
|
31
|
+
import "./chunk-EIKRZ32J.js";
|
|
32
|
+
import "./chunk-FWZRGGGY.js";
|
|
33
|
+
import "./chunk-N3PLNNCW.js";
|
|
34
|
+
import "./chunk-S26LC76R.js";
|
|
35
|
+
import "./chunk-XWFIHYCH.js";
|
|
36
|
+
import "./chunk-TVZRLTG6.js";
|
|
37
|
+
import "./chunk-LJDODBBZ.js";
|
|
38
|
+
import "./chunk-EWXXLS26.js";
|
|
39
|
+
import "./chunk-NXL4FFQQ.js";
|
|
40
|
+
export {
|
|
41
|
+
MAX_CANONICAL_ROOT_MEMO_ENTRIES,
|
|
42
|
+
RUNNERS,
|
|
43
|
+
SOURCE_TO_TEST_PATTERNS,
|
|
44
|
+
TURN_END_EXCLUDED_TEST_GLOBS,
|
|
45
|
+
TestRunnerClient,
|
|
46
|
+
isExcludedTestTarget,
|
|
47
|
+
isRunnerErrorResult,
|
|
48
|
+
stripWrapperArgs
|
|
49
|
+
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getWordIndexMaxFilesDerived
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
PathKeyedMap
|
|
7
|
-
} from "./chunk-Z3CCVDUB.js";
|
|
4
|
+
} from "./chunk-UO66IMVP.js";
|
|
8
5
|
import {
|
|
9
6
|
createSingleFlight
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AWQWXSW4.js";
|
|
11
8
|
import {
|
|
12
9
|
createDeadline,
|
|
13
10
|
forEachCooperatively,
|
|
@@ -15,27 +12,28 @@ import {
|
|
|
15
12
|
} from "./chunk-QYF5S6P6.js";
|
|
16
13
|
import {
|
|
17
14
|
KIND_EXTENSIONS
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GYRZ72R4.js";
|
|
19
16
|
import {
|
|
17
|
+
PathKeyedMap,
|
|
20
18
|
isTestFileName
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KJJAVH3X.js";
|
|
22
20
|
import {
|
|
23
21
|
incrementDegradationCount
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FWZRGGGY.js";
|
|
25
23
|
import {
|
|
26
24
|
logLatency
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XWFIHYCH.js";
|
|
28
26
|
import {
|
|
29
27
|
createNdjsonLogger,
|
|
30
28
|
getGlobalPiLensLogDir,
|
|
31
29
|
getMaxLogSizeMB,
|
|
32
30
|
isTestMode
|
|
33
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TVZRLTG6.js";
|
|
34
32
|
import {
|
|
35
33
|
isAtOrAboveHomeDir,
|
|
36
34
|
normalizeEphemeralMapKey,
|
|
37
35
|
normalizeFilePath
|
|
38
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EWXXLS26.js";
|
|
39
37
|
|
|
40
38
|
// dist/clients/word-index.js
|
|
41
39
|
import * as fs from "node:fs";
|
|
@@ -861,7 +859,7 @@ async function updateWordIndexDocumentAsyncUnsafe(index, doc, shouldContinue) {
|
|
|
861
859
|
}
|
|
862
860
|
var WORD_INDEX_MAX_BYTES = 512 * 1024;
|
|
863
861
|
async function collectWordIndexDocs(root, shouldContinue = () => true, preflightFiles) {
|
|
864
|
-
const { collectSourceFilesAsync } = await import("./chunk-
|
|
862
|
+
const { collectSourceFilesAsync } = await import("./chunk-OZNCKLOX.js");
|
|
865
863
|
const maxFiles = preflightFiles?.length ?? getWordIndexMaxFilesDerived(root);
|
|
866
864
|
const files = preflightFiles ? preflightFiles.map((file) => file.path) : await collectSourceFilesAsync(root, {
|
|
867
865
|
maxFiles,
|
|
@@ -910,7 +908,7 @@ async function refreshWordIndexIncrementally(index, root, shouldContinue = () =>
|
|
|
910
908
|
timings: { sourceWalkMs: 0, statWalkMs: 0, refreshReadsMs: 0 }
|
|
911
909
|
};
|
|
912
910
|
}
|
|
913
|
-
const { collectSourceFilesAsync } = await import("./chunk-
|
|
911
|
+
const { collectSourceFilesAsync } = await import("./chunk-OZNCKLOX.js");
|
|
914
912
|
const maxFiles = getWordIndexMaxFilesDerived(root);
|
|
915
913
|
const sourceWalkStartMs = Date.now();
|
|
916
914
|
const walked = await collectSourceFilesAsync(root, {
|
|
@@ -1750,7 +1748,7 @@ function triggerBackgroundWordIndexBuild(cwd, dbg, options = {}) {
|
|
|
1750
1748
|
void (async () => {
|
|
1751
1749
|
const startMs = Date.now();
|
|
1752
1750
|
try {
|
|
1753
|
-
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-
|
|
1751
|
+
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-YXGRRORB.js");
|
|
1754
1752
|
const docs = await collectWordIndexDocs(key);
|
|
1755
1753
|
const index = await buildWordIndexAsync(docs);
|
|
1756
1754
|
const existing = loadProjectSnapshot(key);
|
|
@@ -1817,7 +1815,7 @@ function getWordIndexPersistScheduler() {
|
|
|
1817
1815
|
async function writeWordIndexSnapshot(cwd, index, dbg) {
|
|
1818
1816
|
const persistStartedAt = Date.now();
|
|
1819
1817
|
try {
|
|
1820
|
-
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-
|
|
1818
|
+
const { loadProjectSnapshot, saveProjectSnapshot, PROJECT_SNAPSHOT_VERSION } = await import("./chunk-YXGRRORB.js");
|
|
1821
1819
|
const existing = loadProjectSnapshot(cwd);
|
|
1822
1820
|
const snapshot = existing ?? {
|
|
1823
1821
|
version: PROJECT_SNAPSHOT_VERSION,
|