@herbertgao/pi-extensions 2026.10.13 → 2026.10.15
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 +16 -14
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +1 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +3 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +22 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +44 -14
- 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 +8 -3
- package/node_modules/@narumitw/pi-btw/dist/index.ts +448 -182
- package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
- package/node_modules/@narumitw/pi-btw/docs/core-alignment.md +10 -2
- 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 +5 -5
- package/node_modules/@narumitw/pi-btw/src/btw.ts +39 -14
- package/node_modules/@narumitw/pi-btw/src/fullscreen-ui.ts +83 -63
- 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/@narumitw/pi-caffeinate/package.json +3 -3
- 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-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/node_modules/pi-web-access/CHANGELOG.md +40 -0
- package/node_modules/pi-web-access/README.md +96 -22
- package/node_modules/pi-web-access/brave-rate-limit.ts +2 -2
- package/node_modules/pi-web-access/curator-page.ts +3 -1
- package/node_modules/pi-web-access/curator-server.ts +1 -0
- package/node_modules/pi-web-access/dist/index.js +2607 -1674
- package/node_modules/pi-web-access/dist/mcp-cli.js +1119 -327
- package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +95 -0
- package/node_modules/pi-web-access/duckduckgo.ts +51 -45
- package/node_modules/pi-web-access/exa.ts +48 -6
- package/node_modules/pi-web-access/extract.ts +2 -2
- package/node_modules/pi-web-access/fetch-params.ts +5 -4
- package/node_modules/pi-web-access/field-extract.ts +347 -0
- package/node_modules/pi-web-access/gemini-search.ts +151 -13
- package/node_modules/pi-web-access/index.ts +128 -125
- package/node_modules/pi-web-access/mistral-search.ts +1 -1
- package/node_modules/pi-web-access/ninerouter.ts +92 -0
- package/node_modules/pi-web-access/offtopic-judge.ts +72 -0
- package/node_modules/pi-web-access/openai-search.ts +36 -10
- package/node_modules/pi-web-access/package.json +1 -1
- package/node_modules/pi-web-access/perplexity.ts +1 -0
- package/node_modules/pi-web-access/query-rewrite.ts +39 -13
- package/node_modules/pi-web-access/source-check.ts +31 -15
- package/node_modules/pi-web-access/summary-model-scope.ts +19 -1
- package/node_modules/pi-web-access/summary-review.ts +13 -20
- package/node_modules/pi-web-access/tool-arguments.ts +1 -1
- package/node_modules/pi-web-access/upgrade-notice.ts +47 -0
- package/node_modules/pi-web-access/utils.ts +26 -1
- package/node_modules/pi-web-access/web-tool-contract.ts +4 -1
- package/node_modules/pi-web-access/web-tool-core.ts +99 -19
- package/node_modules/pi-web-access/xai-search.ts +3 -3
- package/package.json +15 -15
- 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-cc-extensions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11-local.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A Pi productivity suite with Claude Code-style UI, context inspection, and agent/session references",
|
|
6
6
|
"type": "module",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
},
|
|
72
72
|
"x-upstream": {
|
|
73
73
|
"package": "pi-cc-extensions",
|
|
74
|
-
"version": "1.0.
|
|
75
|
-
"reviewedVersion": "1.0.
|
|
74
|
+
"version": "1.0.11",
|
|
75
|
+
"reviewedVersion": "1.0.11",
|
|
76
76
|
"repository": "https://github.com/minuque/pi-cc-extensions",
|
|
77
|
-
"commit": "
|
|
77
|
+
"commit": "4697b4ac2cc28ee89bb9c37f1021e91075bfd94c",
|
|
78
78
|
"trackVersion": true
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -52,6 +52,7 @@ Optional. Settings live in `~/.config/rpiv-ask-user-question/config.json`; the f
|
|
|
52
52
|
| Setting | What it does | Default |
|
|
53
53
|
| --- | --- | --- |
|
|
54
54
|
| `collapseKey` | Key that collapses and expands the dialog. Accepts Pi keybinding ids such as `alt+o`; `"off"` disables the shortcut. | `"ctrl+]"` |
|
|
55
|
+
| `notesKey` | Key that opens the notes editor. Any single character, including non-Latin ones such as `т`, or a Pi keybinding id such as `ctrl+n`. | `"n"` |
|
|
55
56
|
| `guidance.description` | Full replacement for the tool description the model sees. A non-empty string replaces the built-in text entirely — no merging. | built-in description |
|
|
56
57
|
| `guidance.promptSnippet` | One-line description of the tool in the system prompt — tune how eagerly the model asks. | built-in snippet |
|
|
57
58
|
| `guidance.promptGuidelines` | Usage guidelines given to the model, as a list of strings. | 4 built-in guidelines |
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
formatKeySpecForDisplay,
|
|
7
7
|
loadConfig,
|
|
8
8
|
resolveCollapseKey,
|
|
9
|
+
resolveNotesKey,
|
|
9
10
|
validateGuidanceFields,
|
|
10
11
|
} from "./config.ts";
|
|
11
12
|
import {
|
|
@@ -41,6 +42,7 @@ import {
|
|
|
41
42
|
} from "./tool/types.ts";
|
|
42
43
|
import { validateQuestionnaire } from "./tool/validate-questionnaire.ts";
|
|
43
44
|
import type { WrappingSelectItem } from "./view/components/wrapping-select.ts";
|
|
45
|
+
import { renderAskCall, renderAskResult } from "./view/transcript.ts";
|
|
44
46
|
|
|
45
47
|
function emitAskUserPromptEvent(pi: ExtensionAPI, params: QuestionParams, toolCallId: string): void {
|
|
46
48
|
const payload: AskUserPromptEventPayload = {
|
|
@@ -199,14 +201,25 @@ function makeSessionFactory(config: {
|
|
|
199
201
|
typed: QuestionParams;
|
|
200
202
|
itemsByTab: WrappingSelectItem[][];
|
|
201
203
|
collapseKey: string;
|
|
204
|
+
notesKey: string;
|
|
202
205
|
canReopenWhileHidden: boolean;
|
|
203
206
|
presentation: Presentation;
|
|
204
207
|
sessionRef: SessionRef;
|
|
205
208
|
open: OpenQuestionnaire;
|
|
206
209
|
Session: SessionModule["QuestionnaireSession"];
|
|
207
210
|
}) {
|
|
208
|
-
const {
|
|
209
|
-
|
|
211
|
+
const {
|
|
212
|
+
ctx,
|
|
213
|
+
typed,
|
|
214
|
+
itemsByTab,
|
|
215
|
+
collapseKey,
|
|
216
|
+
notesKey,
|
|
217
|
+
canReopenWhileHidden,
|
|
218
|
+
presentation,
|
|
219
|
+
sessionRef,
|
|
220
|
+
open,
|
|
221
|
+
Session,
|
|
222
|
+
} = config;
|
|
210
223
|
return (
|
|
211
224
|
tui: TUI,
|
|
212
225
|
theme: Theme,
|
|
@@ -252,6 +265,7 @@ function makeSessionFactory(config: {
|
|
|
252
265
|
}
|
|
253
266
|
},
|
|
254
267
|
collapseKey,
|
|
268
|
+
notesKey,
|
|
255
269
|
canReopenWhileHidden,
|
|
256
270
|
rowBudget: rowBudgetForHost(tui.terminal, presentation.rowBudget),
|
|
257
271
|
});
|
|
@@ -279,6 +293,7 @@ async function mountQuestionnaire(config: {
|
|
|
279
293
|
typed: QuestionParams;
|
|
280
294
|
itemsByTab: WrappingSelectItem[][];
|
|
281
295
|
collapseKey: string;
|
|
296
|
+
notesKey: string;
|
|
282
297
|
presentation: Presentation;
|
|
283
298
|
open: OpenQuestionnaire;
|
|
284
299
|
Session: SessionModule["QuestionnaireSession"];
|
|
@@ -357,7 +372,9 @@ async function runTuiPath(pi: ExtensionAPI, ctx: ExtensionContext, typed: Questi
|
|
|
357
372
|
// with non-US layouts (e.g. Latin American, where `]` is shifted) can override
|
|
358
373
|
// via the `collapseKey` config field. `resolveCollapseKey` also accepts the
|
|
359
374
|
// sentinel value `"off"` to disable the shortcut entirely.
|
|
360
|
-
const
|
|
375
|
+
const config = loadConfig();
|
|
376
|
+
const collapseKey = resolveCollapseKey(config);
|
|
377
|
+
const notesKey = resolveNotesKey(config);
|
|
361
378
|
const mount = (p: Presentation) =>
|
|
362
379
|
Promise.race([
|
|
363
380
|
mountQuestionnaire({
|
|
@@ -365,6 +382,7 @@ async function runTuiPath(pi: ExtensionAPI, ctx: ExtensionContext, typed: Questi
|
|
|
365
382
|
typed,
|
|
366
383
|
itemsByTab,
|
|
367
384
|
collapseKey,
|
|
385
|
+
notesKey,
|
|
368
386
|
presentation: p,
|
|
369
387
|
open,
|
|
370
388
|
Session: QuestionnaireSession,
|
|
@@ -458,12 +476,18 @@ export function registerAskUserQuestionTool(pi: ExtensionAPI): void {
|
|
|
458
476
|
pi.registerTool({
|
|
459
477
|
name: ASK_USER_QUESTION_TOOL_NAME,
|
|
460
478
|
label: "Ask User Question",
|
|
479
|
+
// Interactive: always a top-level call, never from a codemode script, so
|
|
480
|
+
// codemode "only" keeps declaring it to the model (#310).
|
|
481
|
+
exposure: "model-only",
|
|
461
482
|
description: guidance.description ?? DEFAULT_TOOL_DESCRIPTION,
|
|
462
483
|
promptSnippet: guidance.promptSnippet ?? DEFAULT_PROMPT_SNIPPET,
|
|
463
484
|
promptGuidelines: guidance.promptGuidelines ?? DEFAULT_PROMPT_GUIDELINES,
|
|
464
485
|
parameters: QuestionParamsSchema,
|
|
465
486
|
// Undo double-encoded nested arguments before Pi validates them (#244).
|
|
466
487
|
prepareArguments: prepareQuestionArguments,
|
|
488
|
+
renderCall: (args, theme) => renderAskCall(args, theme),
|
|
489
|
+
renderResult: (result, { expanded }, theme, context) =>
|
|
490
|
+
renderAskResult(result, context?.args, theme, { expanded, isError: context?.isError ?? false }),
|
|
467
491
|
|
|
468
492
|
async execute(toolCallId, params, _signal, _onUpdate, ctx) {
|
|
469
493
|
// Line-terminator normalization runs once here, ahead of validation, so
|
|
@@ -6,6 +6,7 @@ export type CollapseKeySpec = string;
|
|
|
6
6
|
|
|
7
7
|
export const DEFAULT_COLLAPSE_KEY: CollapseKeySpec = "ctrl+]";
|
|
8
8
|
export const COLLAPSE_KEY_OFF: CollapseKeySpec = "off";
|
|
9
|
+
export const DEFAULT_NOTES_KEY = "n";
|
|
9
10
|
|
|
10
11
|
export interface AskUserQuestionConfig {
|
|
11
12
|
guidance?: GuidanceFields;
|
|
@@ -17,6 +18,12 @@ export interface AskUserQuestionConfig {
|
|
|
17
18
|
* Pass `"off"` to disable the collapse shortcut entirely.
|
|
18
19
|
*/
|
|
19
20
|
collapseKey?: CollapseKeySpec;
|
|
21
|
+
/**
|
|
22
|
+
* Key that opens the notes editor. Defaults to `"n"`. A single character of any
|
|
23
|
+
* script (e.g. `"т"` on a Cyrillic layout) matches as typed; anything else is a
|
|
24
|
+
* key spec in the `collapseKey` format, e.g. `"ctrl+n"`.
|
|
25
|
+
*/
|
|
26
|
+
notesKey?: string;
|
|
20
27
|
}
|
|
21
28
|
|
|
22
29
|
// Named keys accepted by pi-tui's `matchesKey` (keys.js switch on the parsed base key).
|
|
@@ -68,6 +75,22 @@ export function resolveCollapseKey(config: Pick<AskUserQuestionConfig, "collapse
|
|
|
68
75
|
return isValidCollapseKeySpec(raw) ? raw : DEFAULT_COLLAPSE_KEY;
|
|
69
76
|
}
|
|
70
77
|
|
|
78
|
+
// Keys the questionnaire already navigates with — a notes key on one of them would shadow it.
|
|
79
|
+
const NOTES_KEY_RESERVED = new Set(["space", "enter", "return", "tab", "escape", "esc", "up", "down", "left", "right"]);
|
|
80
|
+
|
|
81
|
+
export function resolveNotesKey(config: Pick<AskUserQuestionConfig, "notesKey">): string {
|
|
82
|
+
const raw = config.notesKey?.trim();
|
|
83
|
+
if (!raw) return DEFAULT_NOTES_KEY;
|
|
84
|
+
if ([...raw].length === 1) return raw;
|
|
85
|
+
const spec = raw.toLowerCase();
|
|
86
|
+
return isValidCollapseKeySpec(spec) && !NOTES_KEY_RESERVED.has(spec) ? spec : DEFAULT_NOTES_KEY;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** A single-character notes key shows as configured (`n`, not `N`); a spec is display-cased. */
|
|
90
|
+
export function formatNotesKeyForDisplay(notesKey: string): string {
|
|
91
|
+
return [...notesKey].length === 1 ? notesKey : formatKeySpecForDisplay(notesKey);
|
|
92
|
+
}
|
|
93
|
+
|
|
71
94
|
// The only compound-word names in SPECIAL_KEYS — first-letter capitalization
|
|
72
95
|
// alone would render them "Pageup"/"Pagedown".
|
|
73
96
|
const COMPOUND_KEY_DISPLAY: Record<string, string> = {
|
|
@@ -59,6 +59,7 @@ type are likewise dropped back to their default without a warning.
|
|
|
59
59
|
| Setting | What it does | Default |
|
|
60
60
|
| --- | --- | --- |
|
|
61
61
|
| `collapseKey` | Key that collapses and expands the dialog. | `"ctrl+]"` |
|
|
62
|
+
| `notesKey` | Key that opens the notes editor. | `"n"` |
|
|
62
63
|
| `guidance.description` | Full text of the tool description the model sees. Replaces the built-in default entirely — no merging. | built-in description |
|
|
63
64
|
| `guidance.promptSnippet` | One-line snippet describing the tool in the system prompt. | built-in snippet |
|
|
64
65
|
| `guidance.promptGuidelines` | List of usage guidelines given to the model. | 4 built-in guidelines |
|
|
@@ -90,6 +91,20 @@ for `"alt+o"`), as do the collapsed one-line footer and the one-shot notificatio
|
|
|
90
91
|
when the dialog is first hidden. With `"off"` the collapse hint is dropped from the
|
|
91
92
|
footer entirely, since no shortcut can fire.
|
|
92
93
|
|
|
94
|
+
### `notesKey`
|
|
95
|
+
|
|
96
|
+
A single character matches exactly as your keyboard types it, in any script. On a
|
|
97
|
+
Cyrillic layout, for example, the key that types `n` on a Latin layout types `т`, so set
|
|
98
|
+
`"т"`. Values are trimmed; a single character keeps its case.
|
|
99
|
+
|
|
100
|
+
Anything longer is a key spec in the `collapseKey` format, such as `"ctrl+n"` or `"alt+o"`.
|
|
101
|
+
In terminals that use the Kitty keyboard protocol, a modified spec like `"ctrl+n"` also
|
|
102
|
+
works on non-Latin layouts, because the terminal reports the key's Latin equivalent.
|
|
103
|
+
|
|
104
|
+
A spec that does not match the grammar, or that names a key the dialog already uses
|
|
105
|
+
(`space`, `enter`, `return`, `tab`, `escape`, `esc`, and the arrow keys), is rejected and
|
|
106
|
+
`"n"` is used. The notes hints in the dialog name whatever key you configure.
|
|
107
|
+
|
|
93
108
|
### `guidance.description`, `guidance.promptSnippet` and `guidance.promptGuidelines`
|
|
94
109
|
|
|
95
110
|
`guidance.description` replaces the entire built-in description Pi registers for the
|
|
@@ -12,8 +12,9 @@ adapts to the size of your terminal.
|
|
|
12
12
|
| `Shift+Enter` | Insert a newline. | `Type something.` input, notes editor |
|
|
13
13
|
| `Esc` | Cancel the whole questionnaire. | Everywhere except the notes editor, where it closes notes |
|
|
14
14
|
| `Tab` / `Shift+Tab` | Next / previous tab, wrapping. `→` / `←` do the same. | Multi-question dialogs only |
|
|
15
|
+
| `1`–`9` | Act on the row with that number: answer with it on a single-select question, toggle it on a multi-select one, or move to `Type something.` (no digit reaches `Next`). Inside `Type something.` and the notes editor, digits are text. | Option list |
|
|
15
16
|
| `Space` | Toggle the focused authored option. In `Type something.`, Space inserts text. | Multi-select questions |
|
|
16
|
-
| `n` | Open the notes editor for the focused question — or, on the Submit tab, the global note for the whole questionnaire. | Every question tab; the Submit tab in multi-question dialogs |
|
|
17
|
+
| `n` | Open the notes editor for the focused question — or, on the Submit tab, the global note for the whole questionnaire. Configurable via `notesKey`. | Every question tab; the Submit tab in multi-question dialogs |
|
|
17
18
|
| `Ctrl+G` | Open Pi's configured external editor with the current custom-answer draft. | `Type something.` input |
|
|
18
19
|
| `Ctrl+U` | Clear the current custom-answer draft. | `Type something.` input |
|
|
19
20
|
| `Ctrl+]` | Collapse or expand the dialog. Configurable via `collapseKey`. | Everywhere, including while collapsed |
|
|
@@ -88,7 +89,8 @@ keeping the header, the question, the focused option and the key hints visible.
|
|
|
88
89
|
|
|
89
90
|
Wheel and trackpad scrolling reach the transcript only when the terminal reports them as
|
|
90
91
|
mouse events. A terminal with mouse reporting turned off (Warp, for one) converts them
|
|
91
|
-
into ↑/↓ key presses instead, which move between the dialog's options.
|
|
92
|
+
into ↑/↓ key presses instead, which move between the dialog's options. tmux does the same
|
|
93
|
+
unless mouse mode is on (`set -g mouse on` in `~/.tmux.conf`). `PageUp`/`PageDown`
|
|
92
94
|
(`Fn+↑`/`Fn+↓` on a Mac keyboard) scroll the transcript either way.
|
|
93
95
|
|
|
94
96
|
Two cases open the questionnaire as an overlay instead:
|
|
@@ -99,6 +101,11 @@ Two cases open the questionnaire as an overlay instead:
|
|
|
99
101
|
stacks on top, so the question you see is the one your keys reach. `Ctrl+]` shrinks it to
|
|
100
102
|
its one-line row so `/btw` is readable behind it; the question keeps the keys, so `Esc`
|
|
101
103
|
cancels the question, and `/btw` closes after the question is answered or cancelled.
|
|
104
|
+
Overlays that never take the keys, such as an extension's status panel, don't count: the
|
|
105
|
+
question still opens in the editor area.
|
|
106
|
+
|
|
107
|
+
While the questionnaire is an overlay, Pi gives it `PageUp`/`PageDown` (and, before Pi 1.2,
|
|
108
|
+
the wheel), so the transcript doesn't scroll until the question is answered or cancelled.
|
|
102
109
|
|
|
103
110
|
## Collapse mode
|
|
104
111
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Umschalt+Enter für neue Zeile",
|
|
13
13
|
"hint.clear": "Ctrl+U zum Leeren",
|
|
14
14
|
"hint.toggle": "Leertaste zum Umschalten",
|
|
15
|
-
"hint.notes": "
|
|
15
|
+
"hint.notes": "{key} für Notizen",
|
|
16
16
|
"hint.tab": "Tab wechselt die Frage",
|
|
17
17
|
"hint.cancel": "Esc zum Abbrechen",
|
|
18
18
|
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"review.incomplete": "⚠ Beantworte die verbleibenden Fragen vor dem Senden:",
|
|
22
22
|
|
|
23
23
|
"preview.no_preview": "Keine Vorschau verfügbar",
|
|
24
|
-
"preview.notes_affordance": "Notizen: drücke
|
|
25
|
-
"preview.notes_edit_affordance": "Notiz gespeichert: drücke
|
|
24
|
+
"preview.notes_affordance": "Notizen: drücke {key}, um Notizen hinzuzufügen",
|
|
25
|
+
"preview.notes_edit_affordance": "Notiz gespeichert: drücke {key} zum Bearbeiten",
|
|
26
26
|
"notes.header": "Notizen:",
|
|
27
27
|
"notes.saved_label": "Notiz zu dieser Antwort:",
|
|
28
28
|
|
|
29
29
|
"editor.failed": "Externer Editor fehlgeschlagen",
|
|
30
30
|
|
|
31
31
|
"rpc.multi_instructions": "Gib die Nummern aller zutreffenden Optionen durch Kommas getrennt ein (z. B. \"1,3\"). Füge \"; eigene Antwort\" hinzu, um eigenen Text einzuschließen, oder gib nur eigenen Text ein.",
|
|
32
|
-
"rpc.custom_answer_title": "Gib deine Antwort ein:"
|
|
32
|
+
"rpc.custom_answer_title": "Gib deine Antwort ein:",
|
|
33
|
+
|
|
34
|
+
"transcript.not_answered": "nicht beantwortet",
|
|
35
|
+
"transcript.no_answer": "keine Antwort"
|
|
33
36
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"hint.newline": "Shift+Enter for newline",
|
|
11
11
|
"hint.clear": "Ctrl+U to clear",
|
|
12
12
|
"hint.toggle": "Space to toggle",
|
|
13
|
-
"hint.notes": "
|
|
13
|
+
"hint.notes": "{key} to add notes",
|
|
14
14
|
"hint.tab": "Tab to switch questions",
|
|
15
15
|
"hint.collapse": "{key} to collapse",
|
|
16
16
|
"hint.expand_line": "{key} to expand · Esc to cancel",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"review.heading": "Review your answers",
|
|
20
20
|
"review.ready": "Ready to submit your answers?",
|
|
21
21
|
"review.incomplete": "⚠ Answer remaining questions before submitting:",
|
|
22
|
-
"review.global_hint": "
|
|
22
|
+
"review.global_hint": "{key} to add a note",
|
|
23
23
|
"review.note_label": "Note",
|
|
24
24
|
|
|
25
25
|
"preview.no_preview": "No preview available",
|
|
26
|
-
"preview.notes_affordance": "Notes: press
|
|
27
|
-
"preview.notes_edit_affordance": "Note saved: press
|
|
26
|
+
"preview.notes_affordance": "Notes: press {key} to add notes",
|
|
27
|
+
"preview.notes_edit_affordance": "Note saved: press {key} to edit",
|
|
28
28
|
"notes.header": "Notes:",
|
|
29
29
|
"notes.saved_label": "Note for this answer:",
|
|
30
30
|
"notes.global_header": "Global note:",
|
|
@@ -32,5 +32,8 @@
|
|
|
32
32
|
"editor.failed": "External editor failed",
|
|
33
33
|
|
|
34
34
|
"rpc.multi_instructions": "Enter the numbers of all that apply, comma-separated (e.g. \"1,3\"). Add \"; custom answer\" to include your own text, or type only custom text.",
|
|
35
|
-
"rpc.custom_answer_title": "Type your answer:"
|
|
35
|
+
"rpc.custom_answer_title": "Type your answer:",
|
|
36
|
+
|
|
37
|
+
"transcript.not_answered": "not answered",
|
|
38
|
+
"transcript.no_answer": "no answer"
|
|
36
39
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Mayús+Enter para nueva línea",
|
|
13
13
|
"hint.clear": "Ctrl+U para borrar",
|
|
14
14
|
"hint.toggle": "Espacio para alternar",
|
|
15
|
-
"hint.notes": "
|
|
15
|
+
"hint.notes": "{key} para añadir notas",
|
|
16
16
|
"hint.tab": "Tab para cambiar de pregunta",
|
|
17
17
|
"hint.cancel": "Esc para cancelar",
|
|
18
18
|
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"review.incomplete": "⚠ Responde las preguntas restantes antes de enviar:",
|
|
22
22
|
|
|
23
23
|
"preview.no_preview": "Vista previa no disponible",
|
|
24
|
-
"preview.notes_affordance": "Notas: pulsa
|
|
25
|
-
"preview.notes_edit_affordance": "Nota guardada: pulsa
|
|
24
|
+
"preview.notes_affordance": "Notas: pulsa {key} para añadir notas",
|
|
25
|
+
"preview.notes_edit_affordance": "Nota guardada: pulsa {key} para editarla",
|
|
26
26
|
"notes.header": "Notas:",
|
|
27
27
|
"notes.saved_label": "Nota para esta respuesta:",
|
|
28
28
|
|
|
29
29
|
"editor.failed": "Error del editor externo",
|
|
30
30
|
|
|
31
31
|
"rpc.multi_instructions": "Introduce los números de todas las opciones que correspondan, separados por comas (p. ej. \"1,3\"). Añade \"; respuesta propia\" para incluir texto propio, o escribe solo texto propio.",
|
|
32
|
-
"rpc.custom_answer_title": "Escribe tu respuesta:"
|
|
32
|
+
"rpc.custom_answer_title": "Escribe tu respuesta:",
|
|
33
|
+
|
|
34
|
+
"transcript.not_answered": "sin responder",
|
|
35
|
+
"transcript.no_answer": "sin respuesta"
|
|
33
36
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Maj+Entrée pour une nouvelle ligne",
|
|
13
13
|
"hint.clear": "Ctrl+U pour effacer",
|
|
14
14
|
"hint.toggle": "Espace pour basculer",
|
|
15
|
-
"hint.notes": "
|
|
15
|
+
"hint.notes": "{key} pour ajouter des notes",
|
|
16
16
|
"hint.tab": "Tab pour changer de question",
|
|
17
17
|
"hint.cancel": "Échap pour annuler",
|
|
18
18
|
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"review.incomplete": "⚠ Répondez aux questions restantes avant d'envoyer :",
|
|
22
22
|
|
|
23
23
|
"preview.no_preview": "Aucun aperçu disponible",
|
|
24
|
-
"preview.notes_affordance": "Notes : appuyez sur
|
|
25
|
-
"preview.notes_edit_affordance": "Note enregistrée : appuyez sur
|
|
24
|
+
"preview.notes_affordance": "Notes : appuyez sur {key} pour ajouter des notes",
|
|
25
|
+
"preview.notes_edit_affordance": "Note enregistrée : appuyez sur {key} pour la modifier",
|
|
26
26
|
"notes.header": "Notes :",
|
|
27
27
|
"notes.saved_label": "Note pour cette réponse :",
|
|
28
28
|
|
|
29
29
|
"editor.failed": "Échec de l’éditeur externe",
|
|
30
30
|
|
|
31
31
|
"rpc.multi_instructions": "Saisissez les numéros de toutes les options applicables, séparés par des virgules (p. ex. « 1,3 »). Ajoutez « ; réponse libre » pour inclure votre propre texte, ou saisissez uniquement ce texte.",
|
|
32
|
-
"rpc.custom_answer_title": "Tapez votre réponse :"
|
|
32
|
+
"rpc.custom_answer_title": "Tapez votre réponse :",
|
|
33
|
+
|
|
34
|
+
"transcript.not_answered": "sans réponse",
|
|
35
|
+
"transcript.no_answer": "aucune réponse"
|
|
33
36
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Shift+Enter para nova linha",
|
|
13
13
|
"hint.clear": "Ctrl+U para limpar",
|
|
14
14
|
"hint.toggle": "Espaço para alternar",
|
|
15
|
-
"hint.notes": "
|
|
15
|
+
"hint.notes": "{key} para adicionar notas",
|
|
16
16
|
"hint.tab": "Tab para trocar de pergunta",
|
|
17
17
|
"hint.cancel": "Esc para cancelar",
|
|
18
18
|
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"review.incomplete": "⚠ Responda as perguntas restantes antes de enviar:",
|
|
22
22
|
|
|
23
23
|
"preview.no_preview": "Pré-visualização indisponível",
|
|
24
|
-
"preview.notes_affordance": "Notas: pressione
|
|
25
|
-
"preview.notes_edit_affordance": "Nota salva: pressione
|
|
24
|
+
"preview.notes_affordance": "Notas: pressione {key} para adicionar notas",
|
|
25
|
+
"preview.notes_edit_affordance": "Nota salva: pressione {key} para editar",
|
|
26
26
|
"notes.header": "Notas:",
|
|
27
27
|
"notes.saved_label": "Nota para esta resposta:",
|
|
28
28
|
|
|
29
29
|
"editor.failed": "Falha no editor externo",
|
|
30
30
|
|
|
31
31
|
"rpc.multi_instructions": "Digite os números de todas as opções aplicáveis, separados por vírgulas (ex.: \"1,3\"). Adicione \"; resposta própria\" para incluir texto próprio, ou digite apenas esse texto.",
|
|
32
|
-
"rpc.custom_answer_title": "Digite sua resposta:"
|
|
32
|
+
"rpc.custom_answer_title": "Digite sua resposta:",
|
|
33
|
+
|
|
34
|
+
"transcript.not_answered": "não respondida",
|
|
35
|
+
"transcript.no_answer": "sem resposta"
|
|
33
36
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Shift+Enter para nova linha",
|
|
13
13
|
"hint.clear": "Ctrl+U para limpar",
|
|
14
14
|
"hint.toggle": "Espaço para alternar",
|
|
15
|
-
"hint.notes": "
|
|
15
|
+
"hint.notes": "{key} para adicionar notas",
|
|
16
16
|
"hint.tab": "Tab para mudar de pergunta",
|
|
17
17
|
"hint.cancel": "Esc para cancelar",
|
|
18
18
|
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"review.incomplete": "⚠ Responda às perguntas restantes antes de enviar:",
|
|
22
22
|
|
|
23
23
|
"preview.no_preview": "Pré-visualização indisponível",
|
|
24
|
-
"preview.notes_affordance": "Notas: prima
|
|
25
|
-
"preview.notes_edit_affordance": "Nota guardada: prima
|
|
24
|
+
"preview.notes_affordance": "Notas: prima {key} para adicionar notas",
|
|
25
|
+
"preview.notes_edit_affordance": "Nota guardada: prima {key} para editar",
|
|
26
26
|
"notes.header": "Notas:",
|
|
27
27
|
"notes.saved_label": "Nota para esta resposta:",
|
|
28
28
|
|
|
29
29
|
"editor.failed": "Falha no editor externo",
|
|
30
30
|
|
|
31
31
|
"rpc.multi_instructions": "Introduza os números de todas as opções aplicáveis, separados por vírgulas (ex.: \"1,3\"). Adicione \"; resposta própria\" para incluir texto próprio, ou escreva apenas esse texto.",
|
|
32
|
-
"rpc.custom_answer_title": "Escreva a sua resposta:"
|
|
32
|
+
"rpc.custom_answer_title": "Escreva a sua resposta:",
|
|
33
|
+
|
|
34
|
+
"transcript.not_answered": "não respondida",
|
|
35
|
+
"transcript.no_answer": "sem resposta"
|
|
33
36
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Shift+Enter — новая строка",
|
|
13
13
|
"hint.clear": "Ctrl+U — очистить",
|
|
14
14
|
"hint.toggle": "Space — переключить",
|
|
15
|
-
"hint.notes": "
|
|
15
|
+
"hint.notes": "{key} — добавить заметки",
|
|
16
16
|
"hint.tab": "Tab — следующий вопрос",
|
|
17
17
|
"hint.cancel": "Esc — отменить",
|
|
18
18
|
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"review.incomplete": "⚠ Ответьте на оставшиеся вопросы перед отправкой:",
|
|
22
22
|
|
|
23
23
|
"preview.no_preview": "Предпросмотр недоступен",
|
|
24
|
-
"preview.notes_affordance": "Заметки: нажмите
|
|
25
|
-
"preview.notes_edit_affordance": "Заметка сохранена: нажмите
|
|
24
|
+
"preview.notes_affordance": "Заметки: нажмите {key}, чтобы добавить заметки",
|
|
25
|
+
"preview.notes_edit_affordance": "Заметка сохранена: нажмите {key}, чтобы изменить",
|
|
26
26
|
"notes.header": "Заметки:",
|
|
27
27
|
"notes.saved_label": "Заметка к этому ответу:",
|
|
28
28
|
|
|
29
29
|
"editor.failed": "Ошибка внешнего редактора",
|
|
30
30
|
|
|
31
31
|
"rpc.multi_instructions": "Введите номера всех подходящих вариантов через запятую (например, \"1,3\"). Добавьте \"; свой ответ\", чтобы включить собственный текст, или введите только этот текст.",
|
|
32
|
-
"rpc.custom_answer_title": "Введите свой ответ:"
|
|
32
|
+
"rpc.custom_answer_title": "Введите свой ответ:",
|
|
33
|
+
|
|
34
|
+
"transcript.not_answered": "без ответа",
|
|
35
|
+
"transcript.no_answer": "ответа нет"
|
|
33
36
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Shift+Enter — новий рядок",
|
|
13
13
|
"hint.clear": "Ctrl+U — очистити",
|
|
14
14
|
"hint.toggle": "Space — перемкнути",
|
|
15
|
-
"hint.notes": "
|
|
15
|
+
"hint.notes": "{key} — додати нотатки",
|
|
16
16
|
"hint.tab": "Tab — наступне питання",
|
|
17
17
|
"hint.cancel": "Esc — скасувати",
|
|
18
18
|
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"review.incomplete": "⚠ Дайте відповіді на решту питань перед надсиланням:",
|
|
22
22
|
|
|
23
23
|
"preview.no_preview": "Попередній перегляд недоступний",
|
|
24
|
-
"preview.notes_affordance": "Нотатки: натисніть
|
|
25
|
-
"preview.notes_edit_affordance": "Нотатку збережено: натисніть
|
|
24
|
+
"preview.notes_affordance": "Нотатки: натисніть {key}, щоб додати нотатки",
|
|
25
|
+
"preview.notes_edit_affordance": "Нотатку збережено: натисніть {key}, щоб змінити",
|
|
26
26
|
"notes.header": "Нотатки:",
|
|
27
27
|
"notes.saved_label": "Нотатка до цієї відповіді:",
|
|
28
28
|
|
|
29
29
|
"editor.failed": "Помилка зовнішнього редактора",
|
|
30
30
|
|
|
31
31
|
"rpc.multi_instructions": "Введіть номери всіх відповідних варіантів через кому (наприклад, \"1,3\"). Додайте \"; власна відповідь\", щоб включити власний текст, або введіть лише цей текст.",
|
|
32
|
-
"rpc.custom_answer_title": "Введіть свою відповідь:"
|
|
32
|
+
"rpc.custom_answer_title": "Введіть свою відповідь:",
|
|
33
|
+
|
|
34
|
+
"transcript.not_answered": "без відповіді",
|
|
35
|
+
"transcript.no_answer": "відповіді немає"
|
|
33
36
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"hint.newline": "Shift+Enter 换行",
|
|
13
13
|
"hint.clear": "Ctrl+U 清空",
|
|
14
14
|
"hint.toggle": "空格切换",
|
|
15
|
-
"hint.notes": "按
|
|
15
|
+
"hint.notes": "按 {key} 添加备注",
|
|
16
16
|
"hint.tab": "Tab 切换问题",
|
|
17
17
|
"hint.collapse": "{key} 折叠",
|
|
18
18
|
"hint.expand_line": "{key} 展开 · Esc 取消",
|
|
@@ -23,13 +23,16 @@
|
|
|
23
23
|
"review.incomplete": "⚠ 提交前请先回答以下问题:",
|
|
24
24
|
|
|
25
25
|
"preview.no_preview": "暂无预览",
|
|
26
|
-
"preview.notes_affordance": "备注:按
|
|
27
|
-
"preview.notes_edit_affordance": "备注已保存:按
|
|
26
|
+
"preview.notes_affordance": "备注:按 {key} 添加",
|
|
27
|
+
"preview.notes_edit_affordance": "备注已保存:按 {key} 编辑",
|
|
28
28
|
"notes.header": "备注:",
|
|
29
29
|
"notes.saved_label": "此回答的备注:",
|
|
30
30
|
|
|
31
31
|
"editor.failed": "外部编辑器启动失败",
|
|
32
32
|
|
|
33
33
|
"rpc.multi_instructions": "输入所有适用选项的编号,用逗号分隔(例如 \"1,3\")。添加 \"; 自定义回答\" 可同时包含自定义文本,也可以只输入自定义文本。",
|
|
34
|
-
"rpc.custom_answer_title": "输入你的回答:"
|
|
34
|
+
"rpc.custom_answer_title": "输入你的回答:",
|
|
35
|
+
|
|
36
|
+
"transcript.not_answered": "未回答",
|
|
37
|
+
"transcript.no_answer": "无回答"
|
|
35
38
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-ask-user-question",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Pi extension. A structured questionnaire the model can put to you when it would otherwise guess, with typed options instead of free-form replies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -81,7 +81,8 @@
|
|
|
81
81
|
"view/scroll-window.ts",
|
|
82
82
|
"view/stateful-view.ts",
|
|
83
83
|
"view/tab-components.ts",
|
|
84
|
-
"view/tab-content-strategy.ts"
|
|
84
|
+
"view/tab-content-strategy.ts",
|
|
85
|
+
"view/transcript.ts"
|
|
85
86
|
],
|
|
86
87
|
"pi": {
|
|
87
88
|
"image": "https://raw.githubusercontent.com/juicesharp/rpiv-mono/main/packages/rpiv-ask-user-question/docs/cover.png",
|
|
@@ -101,6 +102,6 @@
|
|
|
101
102
|
}
|
|
102
103
|
},
|
|
103
104
|
"dependencies": {
|
|
104
|
-
"@juicesharp/rpiv-config": "^2.
|
|
105
|
+
"@juicesharp/rpiv-config": "^2.15.0"
|
|
105
106
|
}
|
|
106
107
|
}
|
|
@@ -51,9 +51,19 @@ export const YIELD_TO_OVERLAY: QuestionnaireResult = Object.freeze({
|
|
|
51
51
|
* the user cannot see. Stacking as an overlay instead keeps the question visible and
|
|
52
52
|
* focused, and pi-tui returns focus to the other overlay when it closes. A host that
|
|
53
53
|
* allocates the rows itself (rpiv-pi lane console) owns its geometry and is left alone.
|
|
54
|
+
*
|
|
55
|
+
* Only a capturing overlay counts. A `nonCapturing` one (a HUD or status panel) never
|
|
56
|
+
* takes keyboard focus, so the inline question stays focused and keeps the transcript
|
|
57
|
+
* scrollable; yielding to it would mount a focused overlay, which in fullscreen Pi takes
|
|
58
|
+
* the viewport's PageUp/PageDown (and, before Pi 1.2, the wheel) until answered (#313).
|
|
59
|
+
* pi-tui's `getTopmostVisibleOverlay()` applies that rule but is private in its typings,
|
|
60
|
+
* so it is duck-typed, with `hasOverlay()` as the fallback for hosts without it.
|
|
54
61
|
*/
|
|
55
62
|
export function mustYieldInlineSlot(tui: { terminal: object; hasOverlay?: () => boolean }): boolean {
|
|
56
|
-
|
|
63
|
+
if (hostAllocatesRows(tui.terminal)) return false;
|
|
64
|
+
const { getTopmostVisibleOverlay } = tui as { getTopmostVisibleOverlay?: () => unknown };
|
|
65
|
+
if (typeof getTopmostVisibleOverlay === "function") return getTopmostVisibleOverlay.call(tui) !== undefined;
|
|
66
|
+
return typeof tui.hasOverlay === "function" && tui.hasOverlay();
|
|
57
67
|
}
|
|
58
68
|
|
|
59
69
|
export const inlineRowBudget: RowBudget = (terminalRows) =>
|
|
@@ -47,6 +47,8 @@ export interface QuestionnaireBuildConfig {
|
|
|
47
47
|
* of runtime context.
|
|
48
48
|
*/
|
|
49
49
|
collapseKey: string;
|
|
50
|
+
/** Resolved notes key (`resolveNotesKey` output), threaded to the hints that name it. */
|
|
51
|
+
notesKey: string;
|
|
50
52
|
/**
|
|
51
53
|
* Maps `tui.terminal.rows` to the rows the dialog may render — identity for the
|
|
52
54
|
* overlay, a capped share for the inline editor slot (`../presentation.ts`). Applied
|
|
@@ -123,6 +125,7 @@ class QuestionnaireBuilder {
|
|
|
123
125
|
private readonly initialState: QuestionnaireState;
|
|
124
126
|
private readonly getCurrentTab: () => number;
|
|
125
127
|
private readonly collapseKey: string;
|
|
128
|
+
private readonly notesKey: string;
|
|
126
129
|
private readonly rowBudget: (terminalRows: number) => number;
|
|
127
130
|
|
|
128
131
|
private readonly selectTheme: WrappingSelectTheme;
|
|
@@ -141,6 +144,7 @@ class QuestionnaireBuilder {
|
|
|
141
144
|
this.initialState = config.initialState;
|
|
142
145
|
this.getCurrentTab = config.getCurrentTab;
|
|
143
146
|
this.collapseKey = config.collapseKey;
|
|
147
|
+
this.notesKey = config.notesKey;
|
|
144
148
|
this.rowBudget = config.rowBudget;
|
|
145
149
|
|
|
146
150
|
this.selectTheme = this.makeSelectTheme();
|
|
@@ -191,6 +195,7 @@ class QuestionnaireBuilder {
|
|
|
191
195
|
question,
|
|
192
196
|
theme: this.theme,
|
|
193
197
|
markdownTheme: this.markdownTheme,
|
|
198
|
+
notesKey: this.notesKey,
|
|
194
199
|
});
|
|
195
200
|
const preview = new PreviewPane({
|
|
196
201
|
question,
|
|
@@ -277,6 +282,7 @@ class QuestionnaireBuilder {
|
|
|
277
282
|
getCurrentBodyHeight: heights.current,
|
|
278
283
|
getTerminalRows: this.getTerminalRows,
|
|
279
284
|
collapseKey: this.collapseKey,
|
|
285
|
+
notesKey: this.notesKey,
|
|
280
286
|
},
|
|
281
287
|
{ state: this.initialState, activePreviewPane: this.pickInitialActivePreview(tabs) },
|
|
282
288
|
);
|