@herbertgao/pi-extensions 2026.11.2 → 2026.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +13 -13
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +12 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +109 -16
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +33 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +72 -17
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +5 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +10 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +16 -7
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +7 -5
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark-hc.json +92 -0
- package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light-hc.json +92 -0
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +12 -10
- package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +1 -1
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-record-entry.ts +22 -6
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +9 -4
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +167 -7
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +8 -4
- package/node_modules/@narumitw/pi-btw/CHANGELOG.md +259 -0
- package/node_modules/@narumitw/pi-btw/package.json +6 -5
- package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +70 -0
- package/node_modules/@narumitw/pi-caffeinate/package.json +5 -4
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +48 -0
- package/node_modules/pi-commandcode-provider/CONTRIBUTING.md +64 -5
- package/node_modules/pi-commandcode-provider/README.md +44 -18
- package/node_modules/pi-commandcode-provider/RELEASE.md +25 -0
- package/node_modules/pi-commandcode-provider/index.ts +222 -42
- package/node_modules/pi-commandcode-provider/package.json +9 -8
- package/node_modules/pi-commandcode-provider/scripts/live-e2e-profile.mjs +6 -13
- package/node_modules/pi-commandcode-provider/scripts/typecheck-entrypoint.mjs +88 -0
- package/node_modules/pi-commandcode-provider/src/api-key.ts +67 -10
- package/node_modules/pi-commandcode-provider/src/auth-server.ts +33 -24
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog-overrides.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +9 -2
- package/node_modules/pi-commandcode-provider/src/cost.ts +29 -43
- package/node_modules/pi-commandcode-provider/src/diagnostics.ts +215 -0
- package/node_modules/pi-commandcode-provider/src/oauth.ts +41 -7
- package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -3
- package/node_modules/pi-commandcode-provider/src/quota-command.ts +1 -1
- package/node_modules/pi-commandcode-provider/src/routing.ts +166 -0
- package/node_modules/pi-commandcode-provider/src/runtime.ts +23 -10
- package/node_modules/pi-commandcode-provider/src/transport.ts +82 -85
- package/node_modules/pi-commandcode-provider/src/types.ts +20 -39
- package/node_modules/pi-commandcode-provider/src/usage.ts +1 -1
- package/node_modules/pi-lens/CHANGELOG-USER.md +31 -0
- package/node_modules/pi-lens/CHANGELOG.md +178 -0
- package/node_modules/pi-lens/README.md +2 -1
- package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/node_modules/pi-lens/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
- package/node_modules/pi-lens/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
- package/node_modules/pi-lens/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-4ENEJHF4.js +198 -0
- package/node_modules/pi-lens/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/node_modules/pi-lens/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
- package/node_modules/pi-lens/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
- package/node_modules/pi-lens/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/node_modules/pi-lens/dist/chunk-DGKFWQK4.js +23 -0
- package/node_modules/pi-lens/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
- package/node_modules/pi-lens/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
- package/node_modules/pi-lens/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
- package/node_modules/pi-lens/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
- package/node_modules/pi-lens/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
- package/node_modules/pi-lens/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
- package/node_modules/pi-lens/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-H6FLQ5NW.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
- package/node_modules/pi-lens/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
- package/node_modules/pi-lens/dist/chunk-KR5VGMVT.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
- package/node_modules/pi-lens/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
- package/node_modules/pi-lens/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
- package/node_modules/pi-lens/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/node_modules/pi-lens/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
- package/node_modules/pi-lens/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
- package/node_modules/pi-lens/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
- package/node_modules/pi-lens/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
- package/node_modules/pi-lens/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/node_modules/pi-lens/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
- package/node_modules/pi-lens/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-Q6JQKWPK.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-QJJKOHLH.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
- package/node_modules/pi-lens/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
- package/node_modules/pi-lens/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
- package/node_modules/pi-lens/dist/chunk-T5QSLSMM.js +50 -0
- package/node_modules/pi-lens/dist/chunk-TGQDAG4B.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
- package/node_modules/pi-lens/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
- package/node_modules/pi-lens/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-TYHPVE5H.js +25 -0
- package/node_modules/pi-lens/dist/chunk-UAKO2M6B.js +73 -0
- package/node_modules/pi-lens/dist/chunk-UC5AXW5Z.js +20 -0
- package/node_modules/pi-lens/dist/chunk-UTJP6WOS.js +28 -0
- package/node_modules/pi-lens/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
- package/node_modules/pi-lens/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
- package/node_modules/pi-lens/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/node_modules/pi-lens/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
- package/node_modules/pi-lens/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
- package/node_modules/pi-lens/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
- package/node_modules/pi-lens/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
- package/node_modules/pi-lens/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
- package/node_modules/pi-lens/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
- package/node_modules/pi-lens/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
- package/node_modules/pi-lens/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/node_modules/pi-lens/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
- package/node_modules/pi-lens/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-ZD4KVFXI.js +234 -0
- package/node_modules/pi-lens/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
- package/node_modules/pi-lens/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
- package/node_modules/pi-lens/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
- package/node_modules/pi-lens/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
- package/node_modules/pi-lens/dist/index.js +4910 -4218
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +12 -17
- package/node_modules/pi-lens/dist/mcp/cli.js +41 -42
- package/node_modules/pi-lens/dist/mcp/server.js +1451 -648
- package/node_modules/pi-lens/dist/mcp/worker.js +59 -60
- package/node_modules/pi-lens/dist/probes/installer.js +17 -19
- package/node_modules/pi-lens/docs/agent-tools.md +40 -8
- package/node_modules/pi-lens/docs/analysisall.md +1 -1
- package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +7 -5
- package/node_modules/pi-lens/docs/configuration.md +51 -9
- package/node_modules/pi-lens/docs/defect-shapes.md +52 -3
- package/node_modules/pi-lens/docs/environment-variables.md +18 -1
- package/node_modules/pi-lens/docs/features.md +12 -5
- package/node_modules/pi-lens/docs/globalconfig.md +11 -3
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +9 -2
- package/node_modules/pi-lens/docs/invariants/session-telemetry.md +2 -2
- package/node_modules/pi-lens/docs/language-coverage.md +1 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +57 -35
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +4 -1
- package/node_modules/pi-lens/docs/merge-queue-rollout.md +10 -8
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +34 -23
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +11 -1
- package/node_modules/pi-lens/docs/pi-lens-investigator.md +3 -0
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +15 -7
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +1 -1
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +13 -0
- package/node_modules/pi-lens/docs/public-api-stability.md +39 -5
- package/node_modules/pi-lens/docs/release-qa-baseline.md +7 -4
- package/node_modules/pi-lens/docs/schema/pi-lens-config-v1.json +11 -2
- package/node_modules/pi-lens/docs/servercapabilities.md +3 -1
- package/node_modules/pi-lens/docs/settings.md +2 -2
- package/node_modules/pi-lens/docs/word-index.md +3 -2
- package/node_modules/pi-lens/package.json +8 -3
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/node_modules/pi-lens/scripts/download-grammars.js +3 -2
- package/node_modules/pi-lens/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/node_modules/pi-provider-qoder/dist/index.js +473 -62
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-web-access/CHANGELOG.md +22 -0
- package/node_modules/pi-web-access/README.md +31 -12
- package/node_modules/pi-web-access/curator-page.ts +5 -1
- package/node_modules/pi-web-access/curator-server.ts +2 -0
- package/node_modules/pi-web-access/dist/index.js +673 -308
- package/node_modules/pi-web-access/dist/mcp-cli.js +666 -309
- package/node_modules/pi-web-access/gemini-search.ts +12 -4
- package/node_modules/pi-web-access/github-api.ts +1 -1
- package/node_modules/pi-web-access/github-extract.ts +3 -2
- package/node_modules/pi-web-access/index.ts +7 -3
- package/node_modules/pi-web-access/mcp-tool-definitions.ts +1 -1
- package/node_modules/pi-web-access/outcrawl.ts +204 -0
- package/node_modules/pi-web-access/package.json +2 -2
- package/node_modules/pi-web-access/sofya.ts +201 -0
- package/node_modules/pi-web-access/utils.ts +16 -6
- package/node_modules/pi-web-access/web-tool-core.ts +4 -0
- package/package.json +16 -14
- package/node_modules/pi-commandcode-provider/src/converters.ts +0 -477
- package/node_modules/pi-commandcode-provider/src/core.ts +0 -836
- package/node_modules/pi-commandcode-provider/src/json-schema.ts +0 -417
- package/node_modules/pi-commandcode-provider/src/transcript.ts +0 -56
- package/node_modules/pi-lens/dist/chunk-2TS4GLOJ.js +0 -31
- package/node_modules/pi-lens/dist/chunk-3JAHQBSY.js +0 -27
- package/node_modules/pi-lens/dist/chunk-447YZL4S.js +0 -25
- package/node_modules/pi-lens/dist/chunk-565VRUP4.js +0 -136
- package/node_modules/pi-lens/dist/chunk-57X2CDRX.js +0 -49
- package/node_modules/pi-lens/dist/chunk-GGYOZWHW.js +0 -27
- package/node_modules/pi-lens/dist/chunk-IE5D3RA5.js +0 -58
- package/node_modules/pi-lens/dist/chunk-LPYTPNOJ.js +0 -22
- package/node_modules/pi-lens/dist/chunk-OFNMHPBT.js +0 -89
- package/node_modules/pi-lens/dist/chunk-U3AS2FR6.js +0 -106
- package/node_modules/pi-lens/dist/chunk-W3BGKBBK.js +0 -27
- package/node_modules/pi-lens/dist/chunk-WQV6BI4Q.js +0 -48
- package/node_modules/pi-lens/dist/chunk-YHGYAEFH.js +0 -443
- package/node_modules/pi-lens/dist/chunk-ZONZ6YY3.js +0 -74
- package/node_modules/pi-lens/dist/chunk-ZSM35JF4.js +0 -30
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import {
|
|
9
9
|
type AgentSession,
|
|
10
10
|
getMarkdownTheme,
|
|
11
|
+
ToolExecutionComponent,
|
|
11
12
|
} from "@earendil-works/pi-coding-agent"
|
|
12
13
|
import {
|
|
13
14
|
type Component,
|
|
@@ -53,6 +54,49 @@ import {
|
|
|
53
54
|
type ViewerKeys,
|
|
54
55
|
} from "./viewer-keys.js"
|
|
55
56
|
|
|
57
|
+
/** An assistant message's tool call, and the message that answers it. */
|
|
58
|
+
type AgentMessage = AgentSession["messages"][number]
|
|
59
|
+
type ToolCallPart = Extract<
|
|
60
|
+
Extract<AgentMessage, { role: "assistant" }>["content"][number],
|
|
61
|
+
{ type: "toolCall" }
|
|
62
|
+
>
|
|
63
|
+
type ToolResultPart = Extract<AgentMessage, { role: "toolResult" }>
|
|
64
|
+
|
|
65
|
+
/** A rendered tool call, reused across renders so its component's caches survive. */
|
|
66
|
+
interface ToolBlock {
|
|
67
|
+
component: ToolExecutionComponent
|
|
68
|
+
/** The result already handed to the component, if any. */
|
|
69
|
+
result?: ToolResultPart
|
|
70
|
+
/**
|
|
71
|
+
* The block's rendered rows and the width they were produced at.
|
|
72
|
+
*
|
|
73
|
+
* `ToolExecutionComponent` re-wraps and re-paints its whole subtree on every
|
|
74
|
+
* `render()`, which costs ~0.4 ms per settled call — enough that a 500-message
|
|
75
|
+
* transcript re-wrapped every block on every keystroke. The rows only change
|
|
76
|
+
* when the inputs above do, so they are kept and reused until one does.
|
|
77
|
+
*/
|
|
78
|
+
rows?: string[]
|
|
79
|
+
width?: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Whether pi's global theme is initialized.
|
|
84
|
+
*
|
|
85
|
+
* `ToolExecutionComponent` draws with pi's theme rather than the instance this
|
|
86
|
+
* viewer is handed, and pi throws on the first color lookup when nothing called
|
|
87
|
+
* `initTheme()`. This viewer is constructed outside pi too — its own unit tests,
|
|
88
|
+
* an embedded session — so the tool path is gated on a probe, the same way
|
|
89
|
+
* `resolveMarkdownTheme` already treats pi's Markdown theme.
|
|
90
|
+
*/
|
|
91
|
+
function piThemeAvailable(): boolean {
|
|
92
|
+
try {
|
|
93
|
+
getMarkdownTheme().heading("probe")
|
|
94
|
+
return true
|
|
95
|
+
} catch {
|
|
96
|
+
return false
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
56
100
|
/** Base lines consumed by chrome: top border + header + header sep + footer sep + footer + bottom border. */
|
|
57
101
|
const CHROME_LINES_BASE = 6
|
|
58
102
|
const MIN_VIEWPORT = 3
|
|
@@ -238,6 +282,15 @@ export class ConversationViewer implements Component, Focusable {
|
|
|
238
282
|
object,
|
|
239
283
|
{ md: Markdown; text: string; failed?: boolean }
|
|
240
284
|
>()
|
|
285
|
+
/** One block per tool call id, so a redraw reuses the component's own caches. */
|
|
286
|
+
private readonly toolBlocks = new Map<string, ToolBlock>()
|
|
287
|
+
/**
|
|
288
|
+
* Whether calls render through pi's components. Probe-gated: without pi's
|
|
289
|
+
* theme the viewer keeps its own plain rendering rather than throwing.
|
|
290
|
+
*/
|
|
291
|
+
private readonly toolRendering = piThemeAvailable()
|
|
292
|
+
/** Whether tool blocks show their full output; toggled with pi's expand key. */
|
|
293
|
+
private toolsExpanded = false
|
|
241
294
|
|
|
242
295
|
constructor(
|
|
243
296
|
private tui: TUI,
|
|
@@ -383,6 +436,18 @@ export class ConversationViewer implements Component, Focusable {
|
|
|
383
436
|
}
|
|
384
437
|
if (this.stopArmed) this.stopArmed = false
|
|
385
438
|
|
|
439
|
+
// Unfold tool output — the same key, and the same meaning, as in the main
|
|
440
|
+
// transcript. It is what the renderers' own elision notices refer to.
|
|
441
|
+
if (this.keys.expand(data)) {
|
|
442
|
+
this.toolsExpanded = !this.toolsExpanded
|
|
443
|
+
for (const block of this.toolBlocks.values()) {
|
|
444
|
+
block.component.setExpanded(this.toolsExpanded)
|
|
445
|
+
block.rows = undefined
|
|
446
|
+
}
|
|
447
|
+
this.tui.requestRender()
|
|
448
|
+
return
|
|
449
|
+
}
|
|
450
|
+
|
|
386
451
|
const totalLines = this.buildContentLines(this.lastInnerW).length
|
|
387
452
|
const viewportHeight = this.viewportHeight()
|
|
388
453
|
if (this.fullscreen) {
|
|
@@ -946,6 +1011,14 @@ export class ConversationViewer implements Component, Focusable {
|
|
|
946
1011
|
return lines
|
|
947
1012
|
}
|
|
948
1013
|
|
|
1014
|
+
// A result is folded into the block of the call it answers, so every call
|
|
1015
|
+
// has to find its result before the loop reaches it.
|
|
1016
|
+
const results = new Map<string, ToolResultPart>()
|
|
1017
|
+
for (const msg of messages) {
|
|
1018
|
+
if (msg.role === "toolResult") results.set(msg.toolCallId, msg)
|
|
1019
|
+
}
|
|
1020
|
+
const foldedCalls = new Set<string>()
|
|
1021
|
+
|
|
949
1022
|
const mode = this.markdownMode()
|
|
950
1023
|
let needsSeparator = false
|
|
951
1024
|
for (const msg of messages) {
|
|
@@ -962,12 +1035,10 @@ export class ConversationViewer implements Component, Focusable {
|
|
|
962
1035
|
}
|
|
963
1036
|
} else if (msg.role === "assistant") {
|
|
964
1037
|
const textParts: string[] = []
|
|
965
|
-
const toolCalls:
|
|
1038
|
+
const toolCalls: ToolCallPart[] = []
|
|
966
1039
|
for (const c of msg.content) {
|
|
967
1040
|
if (c.type === "text" && c.text) textParts.push(c.text)
|
|
968
|
-
else if (c.type === "toolCall")
|
|
969
|
-
toolCalls.push((c as any).name ?? (c as any).toolName ?? "unknown")
|
|
970
|
-
}
|
|
1041
|
+
else if (c.type === "toolCall") toolCalls.push(c)
|
|
971
1042
|
}
|
|
972
1043
|
if (needsSeparator) lines.push(th.fg("dim", "───"))
|
|
973
1044
|
lines.push(th.bold("[Assistant]"))
|
|
@@ -979,12 +1050,31 @@ export class ConversationViewer implements Component, Focusable {
|
|
|
979
1050
|
: this.markdownLines(msg, text, width, false)),
|
|
980
1051
|
)
|
|
981
1052
|
}
|
|
982
|
-
for (const
|
|
1053
|
+
for (const call of toolCalls) {
|
|
1054
|
+
if (!this.toolRendering) {
|
|
1055
|
+
lines.push(
|
|
1056
|
+
truncateToWidth(th.fg("muted", ` [Tool: ${call.name}]`), width),
|
|
1057
|
+
)
|
|
1058
|
+
continue
|
|
1059
|
+
}
|
|
1060
|
+
foldedCalls.add(call.id)
|
|
1061
|
+
// An aborted or failed response never runs its calls, so no result
|
|
1062
|
+
// will arrive: say so, as pi's session replay does.
|
|
1063
|
+
const notRun =
|
|
1064
|
+
msg.stopReason === "aborted"
|
|
1065
|
+
? "Operation aborted"
|
|
1066
|
+
: msg.stopReason === "error"
|
|
1067
|
+
? msg.errorMessage || "Error"
|
|
1068
|
+
: undefined
|
|
983
1069
|
lines.push(
|
|
984
|
-
|
|
1070
|
+
...this.toolBlockLines(call, results.get(call.id), notRun, width),
|
|
985
1071
|
)
|
|
986
1072
|
}
|
|
987
1073
|
} else if (msg.role === "toolResult") {
|
|
1074
|
+
// Rendered under its call above. A result whose call is not in the
|
|
1075
|
+
// transcript — a compacted prefix, a reopened session — keeps the plain
|
|
1076
|
+
// block, because there is no call row to fold it into.
|
|
1077
|
+
if (foldedCalls.has(msg.toolCallId)) continue
|
|
988
1078
|
const { text, elided } = capResult(extractText(msg.content).trim())
|
|
989
1079
|
if (!text) continue
|
|
990
1080
|
if (needsSeparator) lines.push(th.fg("dim", "───"))
|
|
@@ -1032,6 +1122,76 @@ export class ConversationViewer implements Component, Focusable {
|
|
|
1032
1122
|
)
|
|
1033
1123
|
}
|
|
1034
1124
|
|
|
1035
|
-
|
|
1125
|
+
// Only clamp what actually overflows: `truncateToWidth` takes a slow,
|
|
1126
|
+
// character-by-character path for any line carrying an escape sequence, and
|
|
1127
|
+
// a tool block's rows are already rendered at this width by its component.
|
|
1128
|
+
return lines.map((l) =>
|
|
1129
|
+
visibleWidth(l) > width ? truncateToWidth(l, width) : l,
|
|
1130
|
+
)
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* One tool call as pi draws it in the main transcript: the arguments on the
|
|
1135
|
+
* call, then the result in that tool's own format — a bash box, read line
|
|
1136
|
+
* numbers, an edit diff. Blocks are cached per call id because
|
|
1137
|
+
* `ToolExecutionComponent` rebuilds its renderer tree on every update.
|
|
1138
|
+
*
|
|
1139
|
+
* A tool without a renderer still renders: the component falls back to a
|
|
1140
|
+
* generic `name key=value` header plus a bounded preview that the expand key
|
|
1141
|
+
* unfolds.
|
|
1142
|
+
*/
|
|
1143
|
+
private toolBlockLines(
|
|
1144
|
+
call: ToolCallPart,
|
|
1145
|
+
result: ToolResultPart | undefined,
|
|
1146
|
+
notRun: string | undefined,
|
|
1147
|
+
width: number,
|
|
1148
|
+
): string[] {
|
|
1149
|
+
let block = this.toolBlocks.get(call.id)
|
|
1150
|
+
let changed = false
|
|
1151
|
+
if (!block) {
|
|
1152
|
+
// Built the way pi replays a saved session: `session.messages` only holds
|
|
1153
|
+
// finished messages, so the arguments are final. No setArgsComplete() or
|
|
1154
|
+
// markExecutionStarted() — both request a render, and this runs inside
|
|
1155
|
+
// one; the former also makes the edit renderer re-read the file.
|
|
1156
|
+
const component = new ToolExecutionComponent(
|
|
1157
|
+
call.name,
|
|
1158
|
+
call.id,
|
|
1159
|
+
call.arguments,
|
|
1160
|
+
// Text only: an image needs rows this line-based renderer cannot reserve.
|
|
1161
|
+
{ showImages: false },
|
|
1162
|
+
// pi's resolution for the agent's own session: builtin and extension
|
|
1163
|
+
// renderers, and extension overrides. `{}` for a tool no registry knows,
|
|
1164
|
+
// so it gets the bounded, expandable fallback rather than a raw dump.
|
|
1165
|
+
this.session.extensionRunner.resolveToolRenderers(call.name, () =>
|
|
1166
|
+
this.session.getToolDefinition(call.name),
|
|
1167
|
+
) ?? {},
|
|
1168
|
+
this.tui,
|
|
1169
|
+
this.session.sessionManager.getCwd(),
|
|
1170
|
+
)
|
|
1171
|
+
component.setExpanded(this.toolsExpanded)
|
|
1172
|
+
// The message is final, so this is decided once, when the block is built.
|
|
1173
|
+
if (notRun && !result)
|
|
1174
|
+
component.updateResult({
|
|
1175
|
+
content: [{ type: "text", text: notRun }],
|
|
1176
|
+
isError: true,
|
|
1177
|
+
})
|
|
1178
|
+
block = { component }
|
|
1179
|
+
this.toolBlocks.set(call.id, block)
|
|
1180
|
+
changed = true
|
|
1181
|
+
}
|
|
1182
|
+
if (result && block.result !== result) {
|
|
1183
|
+
block.result = result
|
|
1184
|
+
block.component.updateResult({
|
|
1185
|
+
content: result.content,
|
|
1186
|
+
details: result.details,
|
|
1187
|
+
isError: result.isError,
|
|
1188
|
+
durationMs: result.durationMs,
|
|
1189
|
+
})
|
|
1190
|
+
changed = true
|
|
1191
|
+
}
|
|
1192
|
+
if (!changed && block.rows && block.width === width) return block.rows
|
|
1193
|
+
block.rows = block.component.render(width)
|
|
1194
|
+
block.width = width
|
|
1195
|
+
return block.rows
|
|
1036
1196
|
}
|
|
1037
1197
|
}
|
|
@@ -8,16 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
import { type KeyId, matchesKey } from "@earendil-works/pi-tui"
|
|
10
10
|
|
|
11
|
-
/** The
|
|
12
|
-
export type
|
|
11
|
+
/** The pi keybinding ids the viewer resolves. */
|
|
12
|
+
export type ViewerKeybindingId =
|
|
13
13
|
| "tui.select.up"
|
|
14
14
|
| "tui.select.down"
|
|
15
15
|
| "tui.select.pageUp"
|
|
16
16
|
| "tui.select.pageDown"
|
|
17
|
+
| "app.tools.expand"
|
|
17
18
|
|
|
18
19
|
/** Structural subset of pi-tui's `KeybindingsManager` (which satisfies it). */
|
|
19
20
|
export interface ViewerKeybindings {
|
|
20
|
-
matches(data: string, keybinding:
|
|
21
|
+
matches(data: string, keybinding: ViewerKeybindingId): boolean
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export interface ViewerKeys {
|
|
@@ -25,12 +26,14 @@ export interface ViewerKeys {
|
|
|
25
26
|
scrollDown(data: string): boolean
|
|
26
27
|
pageUp(data: string): boolean
|
|
27
28
|
pageDown(data: string): boolean
|
|
29
|
+
/** Unfold the output of the viewer's tool blocks, as in the main transcript. */
|
|
30
|
+
expand(data: string): boolean
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
export function createViewerKeys(keybindings?: ViewerKeybindings): ViewerKeys {
|
|
31
34
|
const matches = (
|
|
32
35
|
data: string,
|
|
33
|
-
id:
|
|
36
|
+
id: ViewerKeybindingId,
|
|
34
37
|
fallback: KeyId,
|
|
35
38
|
): boolean =>
|
|
36
39
|
keybindings ? keybindings.matches(data, id) : matchesKey(data, fallback)
|
|
@@ -45,5 +48,6 @@ export function createViewerKeys(keybindings?: ViewerKeybindings): ViewerKeys {
|
|
|
45
48
|
pageDown: (data) =>
|
|
46
49
|
matches(data, "tui.select.pageDown", "pageDown") ||
|
|
47
50
|
matchesKey(data, "shift+down"),
|
|
51
|
+
expand: (data) => matches(data, "app.tools.expand", "ctrl+o"),
|
|
48
52
|
}
|
|
49
53
|
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# @narumitw/pi-btw
|
|
2
|
+
|
|
3
|
+
## 0.63.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e484010: Include the existing package-root CHANGELOG.md in extension tarballs so Pi can show native update notices. Keep Changesets version headings and Pi's first-observation and collapseChangelog behavior unchanged.
|
|
8
|
+
- Updated dependencies [54f2700]
|
|
9
|
+
- Updated dependencies [6c76ef1]
|
|
10
|
+
- @narumitw/pi-tui-kit@0.69.0
|
|
11
|
+
|
|
12
|
+
## 0.63.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- bab4b67: Allow main-pane submissions while a split workspace remains open, including when BTW starts while the main agent is idle. Keep the complete workspace task session-owned, prevent overlapping BTW flows, and preserve cancellation, shutdown draining, and error reporting.
|
|
17
|
+
|
|
18
|
+
## 0.63.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [a21d39b]
|
|
23
|
+
- Updated dependencies [f68aa54]
|
|
24
|
+
- Updated dependencies [b062d21]
|
|
25
|
+
- @narumitw/pi-tui-kit@0.68.0
|
|
26
|
+
|
|
27
|
+
## 0.63.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 57eeae7: Add the opt-in `createFullscreenHandoff()` resource and native test harness. Share terminal entry/exit drain, cancellation-safe restoration, keyboard-protocol recovery, owned overlay handling, and cleanup errors through public Pi TUI APIs. Keep ordinary Kit interactions unchanged.
|
|
32
|
+
|
|
33
|
+
Use the resource in Starship's configuration chat and BTW's multi-screen workspace. Keep each extension's input policy, layouts, domain state, permissions, and persistence local. BTW now waits for native input drain before entry. Changesets raises both consumer floors to the Kit API release; dependent publication requires its exact registry artifact.
|
|
34
|
+
- Updated dependencies [57eeae7]
|
|
35
|
+
- @narumitw/pi-tui-kit@0.67.0
|
|
36
|
+
|
|
37
|
+
## 0.63.0
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- ec9e092: Add manual preview and import of new main-thread context into retained side threads. Keep imported updates in conversation order, preserve earlier request prefixes, and reject incompatible branch or context-boundary changes. Add a configurable import shortcut with F9–F11 fallbacks.
|
|
42
|
+
|
|
43
|
+
## 0.62.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- 7d15a96: Align the BTW workspace with native Pi input, prompt navigation, scrollbars, and cursor-first dock layout. Add a conflict-checked keyboard shortcut to switch panes. Keep effective key hints, native mouse editing, draft safeguards, and queue timing clear. Cancel and drain session-owned work on replacement and shutdown, and contain renderer cleanup and clipboard failures.
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- d60fa4e: Bring the BTW conversation appearance closer to native Pi. Move side identity, model, thinking, focus, and concise key hints below the editor; match native working borders and message spacing while retaining cursor-first short layouts. Keep tools absent and preserve existing input, queue, lifecycle, and draft-safety behavior.
|
|
52
|
+
- Updated dependencies [077137a]
|
|
53
|
+
- Updated dependencies [9f80b89]
|
|
54
|
+
- Updated dependencies [efc474c]
|
|
55
|
+
- @narumitw/pi-tui-kit@0.66.0
|
|
56
|
+
|
|
57
|
+
## 0.61.2
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- 033dead: Reject unknown and duplicate modifiers when selecting the fullscreen jump-to-latest key hint. Match Pi's strict key parser so the hint names a usable binding.
|
|
62
|
+
|
|
63
|
+
## 0.61.1
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- c073bc0: Fix the main-thread tree picker on Pi 0.87 sessions containing context edits.
|
|
68
|
+
- 81be3f7: Send a per-thread routing `sessionId` with side requests so provider overrides that require one, such as subscription attribution transports, no longer reject `/btw`; the main session ID is still used only for OpenCode headers.
|
|
69
|
+
|
|
70
|
+
## 0.61.0
|
|
71
|
+
|
|
72
|
+
### Minor Changes
|
|
73
|
+
|
|
74
|
+
- 865f1d3: Make the split-pane divider draggable and remember the side-thread width.
|
|
75
|
+
- 129f324: Add configurable fullscreen, side-thread-left, and side-thread-right workspaces with Pi's live main-thread view and click-to-focus input.
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- 2bacc07: Use one muted column for the split-pane divider.
|
|
80
|
+
|
|
81
|
+
## 0.60.3
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- 34b57b2: Route side-thread requests through Pi's authenticated `modelRegistry.streamSimple()` path so extension-registered providers, OAuth endpoint overrides, headers, and environment credentials are resolved by Pi at request time.
|
|
86
|
+
|
|
87
|
+
## 0.60.2
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- 8abd5b7: Keep generated extension runtime graphs inside Pi's Jiti-loaded TypeScript path to avoid duplicate peer-runtime evaluation during startup. Add measured generated runtimes for Context Management, Herdr, and TypeSafe Search.
|
|
92
|
+
|
|
93
|
+
## 0.60.1
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- 67a3049: Adapt provider, transcript, usage, deferred-tool, and telemetry behavior to Pi's current runtime contracts, including accurate cache-warming accounting and exclusion from ordinary generation traces.
|
|
98
|
+
|
|
99
|
+
## 0.60.0
|
|
100
|
+
|
|
101
|
+
### Minor Changes
|
|
102
|
+
|
|
103
|
+
- c4d403b: Add a searchable model picker to `/btw` Settings with scoped available models, same as the main thread reset, and model-aware thinking choices.
|
|
104
|
+
|
|
105
|
+
## 0.59.0
|
|
106
|
+
|
|
107
|
+
### Minor Changes
|
|
108
|
+
|
|
109
|
+
- 022ba82: Render supported Mermaid fences as width-safe, themed Unicode diagrams in side-thread transcripts, with readable source fallbacks for malformed, unsupported, or oversized diagrams.
|
|
110
|
+
|
|
111
|
+
### Patch Changes
|
|
112
|
+
|
|
113
|
+
- ddaccd2: Complete `/btw` fullscreen cancellation by forwarding upstream aborts, closing mounted composers, restoring the parent TUI, and stopping lazy Mermaid transcript preparation when cancelled.
|
|
114
|
+
|
|
115
|
+
## 0.58.1
|
|
116
|
+
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- ad0fbc0: Honor the API base URL returned by Pi's authentication resolver for both inherited and explicitly configured side-thread models. This fixes misdirected requests for GitHub Copilot accounts that use a different endpoint from the provider default, without changing the main session's model.
|
|
120
|
+
|
|
121
|
+
## 0.58.0
|
|
122
|
+
|
|
123
|
+
### Minor Changes
|
|
124
|
+
|
|
125
|
+
- 609f6a8: Add BTW-only exit, thinking-cycle, and bring-to-main keybindings in `/btw` → Settings, with conflict validation and per-action reset. Preserve Ctrl+C as hard cancel and keep pasted input out of shortcut handling.
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- Updated dependencies [317f7bd]
|
|
130
|
+
- @narumitw/pi-tui-kit@0.61.0
|
|
131
|
+
|
|
132
|
+
## 0.57.1
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- ee07eb8: Forward Pi session headers to OpenCode providers for side-thread requests.
|
|
137
|
+
|
|
138
|
+
## 0.57.0
|
|
139
|
+
|
|
140
|
+
### Minor Changes
|
|
141
|
+
|
|
142
|
+
- f24a5b0: Add a themed, clickable Jump to latest control that honors Pi's effective fullscreen bottom keybinding.
|
|
143
|
+
|
|
144
|
+
## 0.56.2
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- c0fe03e: Wait for Pi's terminal input drain before restoring the parent fullscreen TUI after Ctrl+C.
|
|
149
|
+
|
|
150
|
+
## 0.56.1
|
|
151
|
+
|
|
152
|
+
### Patch Changes
|
|
153
|
+
|
|
154
|
+
- 612df75: Defer Ctrl+C terminal restoration until input dispatch finishes so Windows fullscreen sessions redraw and scroll correctly.
|
|
155
|
+
|
|
156
|
+
## 0.56.0
|
|
157
|
+
|
|
158
|
+
### Minor Changes
|
|
159
|
+
|
|
160
|
+
- f41734c: Add configurable manual fullscreen selection copying through Pi's effective copy keybinding, with paste-safe input and compatibility checks.
|
|
161
|
+
|
|
162
|
+
## 0.55.4
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- Updated dependencies [40182e5]
|
|
167
|
+
- @narumitw/pi-tui-kit@0.59.0
|
|
168
|
+
|
|
169
|
+
## 0.55.3
|
|
170
|
+
|
|
171
|
+
### Patch Changes
|
|
172
|
+
|
|
173
|
+
- 4fb170b: Restore main-editor input immediately after Ctrl+C exits a dedicated side thread.
|
|
174
|
+
- 2250f3c: Close the active side flow when Ctrl+C restores the main editor while transcript search has focus.
|
|
175
|
+
- Updated dependencies [78276b0]
|
|
176
|
+
- Updated dependencies [dc9802e]
|
|
177
|
+
- @narumitw/pi-tui-kit@0.58.1
|
|
178
|
+
|
|
179
|
+
## 0.55.2
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- Updated dependencies [b9eba3a]
|
|
184
|
+
- @narumitw/pi-tui-kit@0.58.0
|
|
185
|
+
|
|
186
|
+
## 0.55.1
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- Updated dependencies [6574232]
|
|
191
|
+
- Updated dependencies [cddc265]
|
|
192
|
+
- @narumitw/pi-tui-kit@0.57.0
|
|
193
|
+
|
|
194
|
+
## 0.55.0
|
|
195
|
+
|
|
196
|
+
### Minor Changes
|
|
197
|
+
|
|
198
|
+
- 79bc155: Add themed fullscreen transcript search and verified host clipboard feedback for mouse selections.
|
|
199
|
+
|
|
200
|
+
## 0.54.2
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- 30bc076: Load each extension from a generated TypeScript runtime to reduce Jiti package startup work while preserving existing first-use boundaries.
|
|
205
|
+
|
|
206
|
+
## 0.54.1
|
|
207
|
+
|
|
208
|
+
### Patch Changes
|
|
209
|
+
|
|
210
|
+
- Updated dependencies [8bead31]
|
|
211
|
+
- @narumitw/pi-tui-kit@0.56.0
|
|
212
|
+
|
|
213
|
+
## 0.54.0
|
|
214
|
+
|
|
215
|
+
### Minor Changes
|
|
216
|
+
|
|
217
|
+
- b5c0682: Add native mouse-wheel and trackpad scrolling to side-thread transcript history.
|
|
218
|
+
|
|
219
|
+
## 0.53.0
|
|
220
|
+
|
|
221
|
+
### Minor Changes
|
|
222
|
+
|
|
223
|
+
- d97edfd: Add a native main-session tree picker that starts a fresh side thread from any selected branch without switching the main conversation.
|
|
224
|
+
|
|
225
|
+
### Patch Changes
|
|
226
|
+
|
|
227
|
+
- Updated dependencies [3176172]
|
|
228
|
+
- @narumitw/pi-tui-kit@0.55.0
|
|
229
|
+
|
|
230
|
+
## 0.52.0
|
|
231
|
+
|
|
232
|
+
### Minor Changes
|
|
233
|
+
|
|
234
|
+
- f3d76af: Add a Same as main thread thinking option that starts new side threads from the current main thread level while keeping shortcut changes local.
|
|
235
|
+
|
|
236
|
+
## 0.51.0
|
|
237
|
+
|
|
238
|
+
### Minor Changes
|
|
239
|
+
|
|
240
|
+
- 69e8485: Add local fuzzy search to the in-memory Resume thread choice.
|
|
241
|
+
|
|
242
|
+
## 0.50.0
|
|
243
|
+
|
|
244
|
+
### Minor Changes
|
|
245
|
+
|
|
246
|
+
- be8d492: Add an in-memory Resume picker to `/btw` so the current Pi session can continue any non-empty side thread by its first question while `/btw <question>` remains a fresh-thread fast path.
|
|
247
|
+
|
|
248
|
+
## 0.49.7
|
|
249
|
+
|
|
250
|
+
### Patch Changes
|
|
251
|
+
|
|
252
|
+
- 3f33860: Run side threads in a dedicated full-screen TUI so mouse-drag copying stays stable while the main agent continues producing output in the background.
|
|
253
|
+
- 2a2c9c1: Queue Pi-style steering questions while a side-thread answer is running, process them one at a time without touching the main conversation, and report malformed side-model responses without hanging the side UI.
|
|
254
|
+
|
|
255
|
+
## 0.49.6
|
|
256
|
+
|
|
257
|
+
### Patch Changes
|
|
258
|
+
|
|
259
|
+
- a4b44ee: Route side-question completions through Pi's effective runtime provider so custom provider APIs work.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-btw",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.4",
|
|
4
4
|
"description": "Pi extension that adds a /btw side-question command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"dist",
|
|
18
18
|
"docs",
|
|
19
19
|
"README.md",
|
|
20
|
+
"CHANGELOG.md",
|
|
20
21
|
"LICENSE"
|
|
21
22
|
],
|
|
22
23
|
"pi": {
|
|
@@ -32,9 +33,9 @@
|
|
|
32
33
|
"prepack": "npm run build"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@earendil-works/pi-ai": "1.
|
|
36
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
37
|
-
"@earendil-works/pi-tui": "1.
|
|
36
|
+
"@earendil-works/pi-ai": "1.5.0",
|
|
37
|
+
"@earendil-works/pi-coding-agent": "1.5.0",
|
|
38
|
+
"@earendil-works/pi-tui": "1.5.0",
|
|
38
39
|
"esbuild": "0.28.2",
|
|
39
40
|
"typescript": "7.0.2"
|
|
40
41
|
},
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"directory": "packages/pi-btw"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
|
-
"@narumitw/pi-tui-kit": "^0.
|
|
48
|
+
"@narumitw/pi-tui-kit": "^0.69.0"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"@earendil-works/pi-ai": "*",
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# @narumitw/pi-caffeinate
|
|
2
|
+
|
|
3
|
+
## 0.49.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e484010: Include the existing package-root CHANGELOG.md in extension tarballs so Pi can show native update notices. Keep Changesets version headings and Pi's first-observation and collapseChangelog behavior unchanged.
|
|
8
|
+
- Updated dependencies [54f2700]
|
|
9
|
+
- Updated dependencies [6c76ef1]
|
|
10
|
+
- @narumitw/pi-tui-kit@0.69.0
|
|
11
|
+
|
|
12
|
+
## 0.49.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 348412a: Update the dbus-native dependency to include its latest patch fixes.
|
|
17
|
+
|
|
18
|
+
## 0.49.12
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- cd67ac2: Prevent the Windows keep-awake helper from overwriting the terminal title.
|
|
23
|
+
|
|
24
|
+
## 0.49.11
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 73a5a41: Resolve Linux D-Bus idle inhibit when a dynamic import of `dbus-native` exposes `sessionBus` only on its CommonJS default export.
|
|
29
|
+
|
|
30
|
+
## 0.49.10
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 2246daa: Update runtime dependencies for D-Bus, peer networking, and tracing.
|
|
35
|
+
|
|
36
|
+
## 0.49.9
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- 68c4b95: Update runtime dependencies and preserve Pi tool-context types through the LSP session lifecycle guard for compatibility with current Pi releases.
|
|
41
|
+
|
|
42
|
+
## 0.49.8
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- 8abd5b7: Keep generated extension runtime graphs inside Pi's Jiti-loaded TypeScript path to avoid duplicate peer-runtime evaluation during startup. Add measured generated runtimes for Context Management, Herdr, and TypeSafe Search.
|
|
47
|
+
|
|
48
|
+
## 0.49.7
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- bd00d53: Render standard horizontal frames around the remaining extension menus.
|
|
53
|
+
|
|
54
|
+
## 0.49.6
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- 358a179: Lazy-load Linux D-Bus support so other platforms do not load `dbus-native` during Pi startup.
|
|
59
|
+
|
|
60
|
+
## 0.49.5
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- dc4f90e: Load each extension from a generated source-mapped Jiti runtime while preserving first-use feature boundaries.
|
|
65
|
+
|
|
66
|
+
## 0.49.4
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- 5aaa7b3: Keep Linux desktops awake by pairing sleep blocking with `org.freedesktop.ScreenSaver` idle inhibition in display mode.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-caffeinate",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.14",
|
|
4
4
|
"description": "Pi extension that keeps the computer awake while the agent is running.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"src",
|
|
18
18
|
"dist",
|
|
19
19
|
"README.md",
|
|
20
|
+
"CHANGELOG.md",
|
|
20
21
|
"LICENSE"
|
|
21
22
|
],
|
|
22
23
|
"pi": {
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"@earendil-works/pi-coding-agent": "*"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
39
|
+
"@earendil-works/pi-coding-agent": "1.5.0",
|
|
39
40
|
"@types/node": "26.6.5",
|
|
40
41
|
"esbuild": "0.28.2",
|
|
41
42
|
"typescript": "7.0.2"
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"directory": "packages/pi-caffeinate"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@narumitw/pi-tui-kit": "^0.
|
|
50
|
-
"dbus-native": "^0.16.
|
|
50
|
+
"@narumitw/pi-tui-kit": "^0.69.0",
|
|
51
|
+
"dbus-native": "^0.16.3"
|
|
51
52
|
}
|
|
52
53
|
}
|