pi-agent-ide 0.8.0 → 0.8.1
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 +26 -40
- package/README.md +12 -7
- package/dist/{chunk-MOJ5RR35.js → chunk-246NTPOS.js} +1 -1
- package/dist/{chunk-NULNW6GK.js → chunk-2ITKAXHO.js} +1 -1
- package/dist/{chunk-SBNR4WZF.js → chunk-3WO2NOEQ.js} +1 -1
- package/dist/{chunk-N7LMRL64.js → chunk-47SPPIXK.js} +1 -1
- package/dist/{chunk-EY65TFHJ.js → chunk-4HWKBCBH.js} +1 -1
- package/dist/{chunk-JMVDFOTQ.js → chunk-57F5GTHO.js} +1 -1
- package/dist/{chunk-KL776TGR.js → chunk-7LOVUWNI.js} +1 -1
- package/dist/{chunk-7JV4VN73.js → chunk-A64JRDZK.js} +1 -1
- package/dist/{chunk-Z3PGADVA.js → chunk-AIT3YWR5.js} +1 -1
- package/dist/{chunk-E4HPRLRB.js → chunk-AKNHSDGV.js} +1 -1
- package/dist/{chunk-4XPUN4QN.js → chunk-AUL5FGGK.js} +1 -1
- package/dist/chunk-BB4A5UI3.js +5 -0
- package/dist/{chunk-CTJV77FR.js → chunk-BQAKA3FU.js} +1 -1
- package/dist/{chunk-PNP2KNGP.js → chunk-BR7GRH4A.js} +1 -1
- package/dist/{chunk-4OYVLXWD.js → chunk-D4IA2MTA.js} +1 -1
- package/dist/{chunk-R5XJSEOE.js → chunk-DXONCYWF.js} +3 -3
- package/dist/{chunk-TWWND6NI.js → chunk-E2PHA4SQ.js} +1 -1
- package/dist/{chunk-MZXX353D.js → chunk-EMRJP6EM.js} +1 -1
- package/dist/{chunk-7HDK3NRQ.js → chunk-GEMDU6XW.js} +1 -1
- package/dist/chunk-GNACBJM3.js +1 -0
- package/dist/{chunk-3G54ZL2L.js → chunk-HCK7OIQ3.js} +1 -1
- package/dist/chunk-HFJGCYFO.js +11 -0
- package/dist/{chunk-CSXHCSTH.js → chunk-ID4RJIVZ.js} +1 -1
- package/dist/{chunk-SBLKPTL3.js → chunk-JKMXND6V.js} +1 -1
- package/dist/{chunk-WE42GBGU.js → chunk-LAJQSHEI.js} +1 -1
- package/dist/{chunk-HCN5W76B.js → chunk-LLRUJD62.js} +1 -1
- package/dist/{chunk-2K65BSXS.js → chunk-M4TVRCMZ.js} +1 -1
- package/dist/{chunk-IUSLSROY.js → chunk-N56WAVYA.js} +1 -1
- package/dist/chunk-OI3HBIPK.js +2 -0
- package/dist/{chunk-GW6NZQTQ.js → chunk-PRLIHLCS.js} +1 -1
- package/dist/{chunk-7TJ6DWW3.js → chunk-Q5X6OXNS.js} +1 -1
- package/dist/{chunk-75SWXD2Z.js → chunk-SWA5B5B2.js} +1 -1
- package/dist/chunk-T7MWQQIF.js +3 -0
- package/dist/{chunk-ICDI27GZ.js → chunk-TGC2ZACO.js} +1 -1
- package/dist/{chunk-7NS3QUIE.js → chunk-TXG2H7YQ.js} +1 -1
- package/dist/{chunk-RAZP42IQ.js → chunk-VAXLSPPU.js} +1 -1
- package/dist/chunk-VMGZMXEM.js +10 -0
- package/dist/{chunk-CPZJPGLG.js → chunk-VNTY7BKC.js} +1 -1
- package/dist/chunk-W3YFF6OO.js +1 -0
- package/dist/{chunk-OLI3JPHJ.js → chunk-W7M3V7FR.js} +1 -1
- package/dist/{chunk-UUJJRXHG.js → chunk-WMHSVEIT.js} +1 -1
- package/dist/{chunk-OJX3RJ5A.js → chunk-WPBQ45ZL.js} +1 -1
- package/dist/{chunk-XZDOVPRC.js → chunk-WXGTU2M6.js} +1 -1
- package/dist/{chunk-3ZGDMTMD.js → chunk-XSIKDVAR.js} +1 -1
- package/dist/{chunk-QP2QSQ4U.js → chunk-YHREORHH.js} +1 -1
- package/dist/chunk-YTYLS2UM.js +1 -0
- package/dist/chunk-Z2QGNTGQ.js +1 -0
- package/dist/{chunk-UBH6X3D3.js → chunk-ZV5ETNLQ.js} +1 -1
- package/dist/entry-11.js +1 -1
- package/dist/entry-13.js +1 -1
- package/dist/entry-14.js +1 -1
- package/dist/entry-15.js +1 -1
- package/dist/entry-16.js +1 -1
- package/dist/entry-17.js +1 -1
- package/dist/entry-18.js +1 -0
- package/dist/entry-20.js +1 -1
- package/dist/entry-21.js +1 -1
- package/dist/entry-22.js +1 -1
- package/dist/entry-23.js +1 -1
- package/dist/entry-24.js +1 -1
- package/dist/entry-25.js +1 -1
- package/dist/entry-26.js +1 -2
- package/dist/entry-27.js +2 -1
- package/dist/entry-28.js +1 -4
- package/dist/entry-29.js +4 -1
- package/dist/entry-30.js +1 -1
- package/dist/entry-31.js +1 -1
- package/dist/entry-32.js +1 -18
- package/dist/entry-33.js +18 -1
- package/dist/entry-34.js +1 -1
- package/dist/entry-35.js +1 -1
- package/dist/entry-36.js +1 -1
- package/dist/entry-37.js +1 -1
- package/dist/entry-38.js +1 -1
- package/dist/entry-39.js +1 -1
- package/dist/entry-40.js +1 -1
- package/dist/entry-41.js +1 -1
- package/dist/entry-42.js +1 -1
- package/dist/entry-43.js +1 -1
- package/dist/entry-44.js +1 -1
- package/dist/entry-45.js +1 -1
- package/dist/entry-46.js +1 -25
- package/dist/entry-47.js +25 -1
- package/dist/entry-48.js +1 -1
- package/dist/entry-49.js +1 -1
- package/dist/entry-50.js +1 -1
- package/dist/entry-51.js +1 -3
- package/dist/entry-52.js +3 -13
- package/dist/entry-53.js +13 -1
- package/dist/entry-54.js +1 -1
- package/dist/entry-55.js +1 -1
- package/dist/entry-56.js +1 -1
- package/dist/entry-57.js +1 -1
- package/dist/entry-58.js +1 -1
- package/dist/entry-59.js +1 -1
- package/dist/entry-6.js +1 -1
- package/dist/entry-60.js +1 -1
- package/dist/entry-61.js +1 -1
- package/dist/entry-62.js +1 -0
- package/dist/entry-63.js +0 -1
- package/dist/entry-64.js +1 -0
- package/dist/entry-65.js +0 -1
- package/dist/entry-66.js +1 -1
- package/dist/entry-67.js +1 -1
- package/dist/entry-68.js +1 -1
- package/dist/entry-69.js +1 -1
- package/dist/entry-7.js +1 -1
- package/dist/entry-70.js +1 -1
- package/dist/entry-71.js +1 -1
- package/dist/entry-72.js +1 -0
- package/dist/entry-73.js +0 -1
- package/dist/entry-74.js +1 -0
- package/dist/entry-75.js +0 -1
- package/dist/entry-76.js +1 -1
- package/dist/entry-77.js +1 -1
- package/dist/entry-78.js +1 -80
- package/dist/entry-79.js +76 -17
- package/dist/entry-80.js +22 -2
- package/dist/entry-81.js +2 -1
- package/dist/entry-82.js +1 -1
- package/dist/entry-83.js +1 -1
- package/dist/entry-84.js +1 -3
- package/dist/entry-85.js +3 -1
- package/dist/entry-86.js +1 -1
- package/dist/entry-87.js +1 -1
- package/dist/entry-88.js +1 -0
- package/dist/pi-agent-ide.js +53 -24
- package/docs/agent-guides/search-code.md +3 -1
- package/docs/agent-guides/ssh.md +1 -1
- package/docs/configuration.md +18 -6
- package/docs/development.md +1 -13
- package/docs/extensions.md +1 -1
- package/docs/releases.md +1 -1
- package/docs/settings-help.md +39 -0
- package/docs/tools.md +1 -0
- package/docs/user-hooks.md +3 -1
- package/node_modules/pi-agent-doctor/package.json +7 -10
- package/node_modules/pi-agent-documentation/package.json +2 -2
- package/node_modules/pi-agent-documentation/runtime/entry-26.js +1 -0
- package/node_modules/pi-agent-filesystem/package.json +8 -8
- package/node_modules/pi-agent-filesystem-image/package.json +4 -4
- package/node_modules/pi-agent-filesystem-jq/package.json +6 -7
- package/node_modules/pi-agent-filesystem-pdf/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/runtime/entry-31.js +2 -0
- package/node_modules/pi-agent-ide-ast/package.json +15 -41
- package/node_modules/pi-agent-ide-ast/runtime/entry-32.js +0 -1
- package/node_modules/pi-agent-ide-ast/runtime/entry-33.js +2 -0
- package/node_modules/pi-agent-ide-changes/package.json +10 -11
- package/node_modules/pi-agent-ide-changes/runtime/entry-34.js +0 -1
- package/node_modules/pi-agent-ide-formatter/package.json +4 -4
- package/node_modules/pi-agent-ide-languages/package.json +3 -3
- package/node_modules/pi-agent-ide-lint/package.json +8 -8
- package/node_modules/pi-agent-ide-lsp/package.json +10 -13
- package/node_modules/pi-agent-ide-lsp/runtime/entry-39.js +2 -0
- package/node_modules/pi-agent-image/package.json +3 -3
- package/node_modules/pi-agent-invariant/package.json +2 -2
- package/node_modules/pi-agent-pdf/package.json +3 -4
- package/node_modules/pi-agent-read/package.json +12 -12
- package/node_modules/pi-agent-read/runtime/entry-46.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-47.js +2 -0
- package/node_modules/pi-agent-resource/package.json +2 -2
- package/node_modules/pi-agent-resource/src/result-targets.ts +9 -0
- package/node_modules/pi-agent-search/package.json +9 -9
- package/node_modules/pi-agent-search/runtime/entry-51.js +0 -1
- package/node_modules/pi-agent-search/src/api/plugin-protocol.ts +1 -1
- package/node_modules/pi-agent-search/src/api/presentation.ts +10 -2
- package/node_modules/pi-agent-search/src/api/search-parameters.ts +1 -1
- package/node_modules/pi-agent-search/src/api/search.ts +7 -0
- package/node_modules/pi-agent-search/src/core/search-core.ts +23 -3
- package/node_modules/pi-agent-search-text/index.ts +2 -0
- package/node_modules/pi-agent-search-text/package.json +14 -14
- package/node_modules/pi-agent-search-text/runtime/entry-53.js +1 -0
- package/node_modules/pi-agent-search-text/src/search-backend.ts +18 -10
- package/node_modules/pi-agent-search-text/src/search-session.ts +68 -9
- package/node_modules/pi-agent-text/package.json +3 -3
- package/node_modules/pi-agent-text/runtime/entry-57.js +1 -0
- package/node_modules/pi-agent-text-anchor-constant/package.json +4 -4
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-58.js +2 -0
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -6
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-59.js +0 -1
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-60.js +2 -0
- package/node_modules/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-61.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-62.js +2 -0
- package/node_modules/pi-agent-text-editor/package.json +26 -34
- package/node_modules/pi-agent-text-editor/runtime/entry-78.js +0 -1
- package/node_modules/pi-agent-text-editor/src/api/delete-guard.ts +1 -1
- package/node_modules/pi-agent-text-editor/src/api/native-edit-batch-event.ts +2 -2
- package/node_modules/pi-agent-text-editor/src/core/delete-policy.ts +6 -12
- package/node_modules/pi-agent-text-editor/src/core/extension.ts +1 -0
- package/node_modules/pi-agent-text-editor/src/core/file-operation-tools.ts +49 -21
- package/node_modules/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +18 -9
- package/node_modules/pi-agent-text-editor/src/core/native-text-edit-batch.ts +2 -2
- package/node_modules/pi-agent-text-editor/src/core/temporary-directories.ts +13 -9
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +16 -8
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +118 -36
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch.ts +7 -4
- package/node_modules/pi-agent-text-editor/src/core/text-mutation.ts +6 -8
- package/node_modules/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +22 -1
- package/node_modules/pi-agent-text-editor-renderer/package.json +6 -8
- package/node_modules/pi-agent-text-editor-renderer/src/renderer.ts +22 -0
- package/node_modules/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-81.js +2 -0
- package/node_modules/pi-agent-tool-call-interception/package.json +3 -3
- package/node_modules/pi-agent-tool-ui/package.json +2 -2
- package/node_modules/pi-agent-tool-ui/runtime/entry-83.js +1 -0
- package/node_modules/pi-agent-web/package.json +8 -11
- package/node_modules/pi-agent-web-html/package.json +3 -5
- package/node_modules/pi-agent-web-image/package.json +4 -4
- package/node_modules/pi-agent-web-pdf/package.json +4 -4
- package/node_modules/pi-agent-web-text/package.json +4 -4
- package/node_modules/pi-agent-web-text/runtime/entry-88.js +2 -0
- package/package.json +43 -39
- package/skills/configure-agent-ide/SKILL.md +38 -0
- package/src/api/content.ts +6 -0
- package/src/api/tips.ts +3 -0
- package/src/composite/nested-tool-rendering.ts +16 -5
- package/src/composite/preferences.ts +13 -0
- package/src/composite/settings-documentation.ts +59 -0
- package/src/composite/settings-help.ts +106 -0
- package/src/composite/text-results.ts +50 -22
- package/src/documentation/extension.ts +12 -0
- package/src/documentation/search.ts +166 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +8 -8
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/package.json +6 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/runtime/entry-31.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-27.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +8 -11
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +3 -5
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/runtime/entry-88.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-84.js +2 -0
- package/src/extensions/pi-agent-read/package.json +12 -12
- package/src/extensions/pi-agent-read/runtime/entry-46.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-47.js +2 -0
- package/src/extensions/pi-agent-search/package.json +9 -9
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/index.ts +2 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +14 -14
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-53.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-56.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-backend.ts +18 -10
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-session.ts +68 -9
- package/src/extensions/pi-agent-search/runtime/entry-51.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-52.js +2 -0
- package/src/extensions/pi-agent-search/src/api/plugin-protocol.ts +1 -1
- package/src/extensions/pi-agent-search/src/api/presentation.ts +10 -2
- package/src/extensions/pi-agent-search/src/api/search-parameters.ts +1 -1
- package/src/extensions/pi-agent-search/src/api/search.ts +7 -0
- package/src/extensions/pi-agent-search/src/core/search-core.ts +23 -3
- package/src/extensions/pi-agent-text-editor/package.json +26 -34
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +4 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-58.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +5 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-59.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-60.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-61.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-62.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +6 -8
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/renderer.ts +22 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-81.js +2 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-78.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-79.js +2 -0
- package/src/extensions/pi-agent-text-editor/src/api/delete-guard.ts +1 -1
- package/src/extensions/pi-agent-text-editor/src/api/native-edit-batch-event.ts +2 -2
- package/src/extensions/pi-agent-text-editor/src/core/delete-policy.ts +6 -12
- package/src/extensions/pi-agent-text-editor/src/core/extension.ts +1 -0
- package/src/extensions/pi-agent-text-editor/src/core/file-operation-tools.ts +49 -21
- package/src/extensions/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +18 -9
- package/src/extensions/pi-agent-text-editor/src/core/native-text-edit-batch.ts +2 -2
- package/src/extensions/pi-agent-text-editor/src/core/temporary-directories.ts +13 -9
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +16 -8
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +118 -36
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch.ts +7 -4
- package/src/extensions/pi-agent-text-editor/src/core/text-mutation.ts +6 -8
- package/src/extensions/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +22 -1
- package/src/pi-agent-ide.ts +14 -2
- package/src/plugins/pi-agent-ide-ast/package.json +15 -41
- package/src/plugins/pi-agent-ide-ast/runtime/entry-32.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-33.js +2 -0
- package/src/plugins/pi-agent-ide-changes/package.json +10 -11
- package/src/plugins/pi-agent-ide-changes/runtime/entry-34.js +0 -1
- package/src/plugins/pi-agent-ide-formatter/package.json +4 -4
- package/src/plugins/pi-agent-ide-languages/package.json +3 -3
- package/src/plugins/pi-agent-ide-lint/package.json +8 -8
- package/src/plugins/pi-agent-ide-lsp/package.json +10 -13
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-39.js +2 -0
- package/src/tips/core.ts +5 -2
- package/src/tips/extension.ts +30 -2
- package/src/tips/persistence.ts +29 -27
- package/src/tips/setup-hint.ts +19 -0
- package/dist/chunk-5KFVDYCI.js +0 -1
- package/dist/chunk-ABFCAOU5.js +0 -1
- package/dist/chunk-BIG45IPN.js +0 -2
- package/dist/chunk-BMOJTJJJ.js +0 -3
- package/dist/chunk-BQ67M4NC.js +0 -3
- package/dist/chunk-IH5NW5JX.js +0 -11
- package/dist/chunk-NRZO5KJT.js +0 -9
- package/dist/chunk-O36UC74T.js +0 -1
- package/dist/chunk-SSWUUBIR.js +0 -1
- package/dist/entry-19.js +0 -1
- package/docs/research/apply-native-capability-matrix.md +0 -174
- package/docs/research/apply-read-latency.md +0 -221
- package/docs/research/codemode-write-context.md +0 -56
- package/docs/research/lpt-393-fuzzy-results/file.json +0 -152
- package/docs/research/lpt-393-fuzzy-results/repo.json +0 -122
- package/docs/research/lpt-393-search-fuzzy-fallback.md +0 -97
- package/docs/research/native-codemode-batch-decision.md +0 -31
- package/docs/research/native-codemode-batching.md +0 -65
- package/node_modules/pi-agent-doctor/runtime/entry-19.js +0 -1
- package/node_modules/pi-agent-filesystem/runtime/entry-26.js +0 -2
- package/node_modules/pi-agent-ide-ast/runtime/entry-31.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-33.js +0 -1
- package/node_modules/pi-agent-image/runtime/entry-39.js +0 -1
- package/node_modules/pi-agent-resource/runtime/entry-47.js +0 -1
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-57.js +0 -2
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-58.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-60.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-62.js +0 -1
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-81.js +0 -1
- package/node_modules/pi-agent-web/runtime/entry-83.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-27.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-26.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-84.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-83.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-42.js +0 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-52.js +0 -2
- package/src/extensions/pi-agent-search/runtime/entry-48.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-57.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-58.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-60.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/runtime/entry-79.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-62.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-31.js +0 -1
- package/src/plugins/pi-agent-ide-changes/runtime/entry-33.js +0 -1
- /package/node_modules/{pi-agent-documentation → pi-agent-doctor}/runtime/entry-25.js +0 -0
- /package/node_modules/{pi-agent-filesystem-image → pi-agent-filesystem}/runtime/entry-27.js +0 -0
- /package/node_modules/{pi-agent-filesystem-jq → pi-agent-filesystem-image}/runtime/entry-28.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-jq}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-30.js +0 -0
- /package/node_modules/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-36.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-37.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-38.js +0 -0
- /package/node_modules/{pi-agent-invariant → pi-agent-image}/runtime/entry-40.js +0 -0
- /package/node_modules/{pi-agent-pdf → pi-agent-invariant}/runtime/entry-41.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-pdf}/runtime/entry-42.js +0 -0
- /package/node_modules/{pi-agent-search → pi-agent-resource}/runtime/entry-48.js +0 -0
- /package/node_modules/{pi-agent-search-text → pi-agent-search}/runtime/entry-52.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-56.js +0 -0
- /package/node_modules/{pi-agent-text-editor-renderer → pi-agent-text-editor}/runtime/entry-79.js +0 -0
- /package/node_modules/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-80.js +0 -0
- /package/node_modules/{pi-agent-tool-ui → pi-agent-tool-call-interception}/runtime/entry-82.js +0 -0
- /package/node_modules/{pi-agent-web-html → pi-agent-web}/runtime/entry-84.js +0 -0
- /package/node_modules/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-85.js +0 -0
- /package/node_modules/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-86.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-87.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-jq → pi-agent-filesystem-image}/runtime/entry-28.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-pdf → pi-agent-filesystem-jq}/runtime/entry-29.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-30.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-85.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-86.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-87.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-80.js +0 -0
- /package/src/plugins/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-35.js +0 -0
- /package/src/plugins/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-36.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-37.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-38.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-tool-ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./src/index.ts",
|
|
8
|
-
"default": "./runtime/entry-
|
|
8
|
+
"default": "./runtime/entry-83.js"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../dist/entry-83.js";
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-web",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"pi-agent-
|
|
12
|
-
"pi-agent-
|
|
13
|
-
"pi-agent-
|
|
14
|
-
"pi-agent-
|
|
15
|
-
"pi-agent-search": "0.8.0",
|
|
16
|
-
"pi-agent-text": "0.8.0",
|
|
17
|
-
"playwright-core": "^1.62.1"
|
|
9
|
+
"pi-agent-doctor": "0.8.1",
|
|
10
|
+
"pi-agent-image": "0.8.1",
|
|
11
|
+
"pi-agent-read": "0.8.1",
|
|
12
|
+
"pi-agent-resource": "0.8.1",
|
|
13
|
+
"pi-agent-search": "0.8.1",
|
|
14
|
+
"pi-agent-text": "0.8.1"
|
|
18
15
|
},
|
|
19
16
|
"pi": {
|
|
20
17
|
"extensions": [
|
|
21
|
-
"./runtime/entry-
|
|
18
|
+
"./runtime/entry-84.js"
|
|
22
19
|
]
|
|
23
20
|
},
|
|
24
21
|
"peerDependencies": {
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-web-html",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"
|
|
10
|
-
"linkedom": "^0.18.12",
|
|
11
|
-
"pi-agent-resource": "0.8.0"
|
|
9
|
+
"pi-agent-resource": "0.8.1"
|
|
12
10
|
},
|
|
13
11
|
"pi": {
|
|
14
12
|
"extensions": [
|
|
15
|
-
"./runtime/entry-
|
|
13
|
+
"./runtime/entry-85.js"
|
|
16
14
|
]
|
|
17
15
|
},
|
|
18
16
|
"peerDependencies": {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-web-image",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-image": "0.8.
|
|
7
|
-
"pi-agent-resource": "0.8.
|
|
6
|
+
"pi-agent-image": "0.8.1",
|
|
7
|
+
"pi-agent-resource": "0.8.1"
|
|
8
8
|
},
|
|
9
9
|
"pi": {
|
|
10
10
|
"extensions": [
|
|
11
|
-
"./runtime/entry-
|
|
11
|
+
"./runtime/entry-86.js"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-web-pdf",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-pdf": "0.8.
|
|
7
|
-
"pi-agent-resource": "0.8.
|
|
6
|
+
"pi-agent-pdf": "0.8.1",
|
|
7
|
+
"pi-agent-resource": "0.8.1"
|
|
8
8
|
},
|
|
9
9
|
"pi": {
|
|
10
10
|
"extensions": [
|
|
11
|
-
"./runtime/entry-
|
|
11
|
+
"./runtime/entry-87.js"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-web-text",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-resource": "0.8.
|
|
7
|
-
"pi-agent-text": "0.8.
|
|
6
|
+
"pi-agent-resource": "0.8.1",
|
|
7
|
+
"pi-agent-text": "0.8.1"
|
|
8
8
|
},
|
|
9
9
|
"pi": {
|
|
10
10
|
"extensions": [
|
|
11
|
-
"./runtime/entry-
|
|
11
|
+
"./runtime/entry-88.js"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Agent-native IDE extension for Pi Coding Agent with guarded editing, search, LSP, terminals, debugging, and observability",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-ide",
|
|
@@ -151,21 +151,25 @@
|
|
|
151
151
|
"types": "./src/api/read.ts",
|
|
152
152
|
"default": "./dist/entry-13.js"
|
|
153
153
|
},
|
|
154
|
+
"./api/content": {
|
|
155
|
+
"types": "./src/api/content.ts",
|
|
156
|
+
"default": "./dist/entry-14.js"
|
|
157
|
+
},
|
|
154
158
|
"./api/resource": {
|
|
155
159
|
"types": "./src/api/resource.ts",
|
|
156
|
-
"default": "./dist/entry-
|
|
160
|
+
"default": "./dist/entry-15.js"
|
|
157
161
|
},
|
|
158
162
|
"./api/search": {
|
|
159
163
|
"types": "./src/api/search.ts",
|
|
160
|
-
"default": "./dist/entry-
|
|
164
|
+
"default": "./dist/entry-16.js"
|
|
161
165
|
},
|
|
162
166
|
"./api/text": {
|
|
163
167
|
"types": "./src/api/text.ts",
|
|
164
|
-
"default": "./dist/entry-
|
|
168
|
+
"default": "./dist/entry-17.js"
|
|
165
169
|
},
|
|
166
170
|
"./api/text-editor": {
|
|
167
171
|
"types": "./src/api/text-editor.ts",
|
|
168
|
-
"default": "./dist/entry-
|
|
172
|
+
"default": "./dist/entry-18.js"
|
|
169
173
|
}
|
|
170
174
|
},
|
|
171
175
|
"dependencies": {
|
|
@@ -203,40 +207,40 @@
|
|
|
203
207
|
"oxfmt": "0.64.0",
|
|
204
208
|
"partial-json": "^0.1.7",
|
|
205
209
|
"pdfjs-dist": "^6.2.108",
|
|
206
|
-
"pi-agent-doctor": "0.8.
|
|
207
|
-
"pi-agent-documentation": "0.8.
|
|
208
|
-
"pi-agent-filesystem": "0.8.
|
|
209
|
-
"pi-agent-filesystem-image": "0.8.
|
|
210
|
-
"pi-agent-filesystem-jq": "0.8.
|
|
211
|
-
"pi-agent-filesystem-pdf": "0.8.
|
|
212
|
-
"pi-agent-filesystem-text": "0.8.
|
|
213
|
-
"pi-agent-ide-ast": "0.8.
|
|
214
|
-
"pi-agent-ide-changes": "0.8.
|
|
215
|
-
"pi-agent-ide-formatter": "0.8.
|
|
216
|
-
"pi-agent-ide-languages": "0.8.
|
|
217
|
-
"pi-agent-ide-lint": "0.8.
|
|
218
|
-
"pi-agent-ide-lsp": "0.8.
|
|
219
|
-
"pi-agent-image": "0.8.
|
|
220
|
-
"pi-agent-invariant": "0.8.
|
|
221
|
-
"pi-agent-pdf": "0.8.
|
|
222
|
-
"pi-agent-read": "0.8.
|
|
223
|
-
"pi-agent-resource": "0.8.
|
|
224
|
-
"pi-agent-search": "0.8.
|
|
225
|
-
"pi-agent-search-text": "0.8.
|
|
226
|
-
"pi-agent-text": "0.8.
|
|
227
|
-
"pi-agent-text-anchor-constant": "0.8.
|
|
228
|
-
"pi-agent-text-anchor-exact": "0.8.
|
|
229
|
-
"pi-agent-text-anchor-line-hash": "0.8.
|
|
230
|
-
"pi-agent-text-editor": "0.8.
|
|
231
|
-
"pi-agent-text-editor-renderer": "0.8.
|
|
232
|
-
"pi-agent-text-editor-stale-anchor": "0.8.
|
|
233
|
-
"pi-agent-tool-call-interception": "0.8.
|
|
234
|
-
"pi-agent-tool-ui": "0.8.
|
|
235
|
-
"pi-agent-web": "0.8.
|
|
236
|
-
"pi-agent-web-html": "0.8.
|
|
237
|
-
"pi-agent-web-image": "0.8.
|
|
238
|
-
"pi-agent-web-pdf": "0.8.
|
|
239
|
-
"pi-agent-web-text": "0.8.
|
|
210
|
+
"pi-agent-doctor": "0.8.1",
|
|
211
|
+
"pi-agent-documentation": "0.8.1",
|
|
212
|
+
"pi-agent-filesystem": "0.8.1",
|
|
213
|
+
"pi-agent-filesystem-image": "0.8.1",
|
|
214
|
+
"pi-agent-filesystem-jq": "0.8.1",
|
|
215
|
+
"pi-agent-filesystem-pdf": "0.8.1",
|
|
216
|
+
"pi-agent-filesystem-text": "0.8.1",
|
|
217
|
+
"pi-agent-ide-ast": "0.8.1",
|
|
218
|
+
"pi-agent-ide-changes": "0.8.1",
|
|
219
|
+
"pi-agent-ide-formatter": "0.8.1",
|
|
220
|
+
"pi-agent-ide-languages": "0.8.1",
|
|
221
|
+
"pi-agent-ide-lint": "0.8.1",
|
|
222
|
+
"pi-agent-ide-lsp": "0.8.1",
|
|
223
|
+
"pi-agent-image": "0.8.1",
|
|
224
|
+
"pi-agent-invariant": "0.8.1",
|
|
225
|
+
"pi-agent-pdf": "0.8.1",
|
|
226
|
+
"pi-agent-read": "0.8.1",
|
|
227
|
+
"pi-agent-resource": "0.8.1",
|
|
228
|
+
"pi-agent-search": "0.8.1",
|
|
229
|
+
"pi-agent-search-text": "0.8.1",
|
|
230
|
+
"pi-agent-text": "0.8.1",
|
|
231
|
+
"pi-agent-text-anchor-constant": "0.8.1",
|
|
232
|
+
"pi-agent-text-anchor-exact": "0.8.1",
|
|
233
|
+
"pi-agent-text-anchor-line-hash": "0.8.1",
|
|
234
|
+
"pi-agent-text-editor": "0.8.1",
|
|
235
|
+
"pi-agent-text-editor-renderer": "0.8.1",
|
|
236
|
+
"pi-agent-text-editor-stale-anchor": "0.8.1",
|
|
237
|
+
"pi-agent-tool-call-interception": "0.8.1",
|
|
238
|
+
"pi-agent-tool-ui": "0.8.1",
|
|
239
|
+
"pi-agent-web": "0.8.1",
|
|
240
|
+
"pi-agent-web-html": "0.8.1",
|
|
241
|
+
"pi-agent-web-image": "0.8.1",
|
|
242
|
+
"pi-agent-web-pdf": "0.8.1",
|
|
243
|
+
"pi-agent-web-text": "0.8.1",
|
|
240
244
|
"playwright-core": "^1.62.1",
|
|
241
245
|
"tree-sitter-cpp": "^0.23.4",
|
|
242
246
|
"tree-sitter-javascript": "^0.25.0",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: configure-agent-ide
|
|
3
|
+
description: Explain Pi Agent IDE settings and safely configure the IDE for the user's workflow. Use when the user asks how to use or configure Pi Agent IDE, enable or disable modules or behavior, show or hide Codemode tool results, change output presentation, or restore defaults. Not for Pi model selection, credentials, package installation, or unrelated extension settings.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Configure Agent IDE
|
|
7
|
+
|
|
8
|
+
## Discover supported settings
|
|
9
|
+
|
|
10
|
+
Read `docs:ide-settings` before choosing IDs or values. It is generated from the same registrations as the settings menu. It lists supported choices and defaults, not the user's current configuration. Search within that guide when locating a setting; read the relevant context before changing it.
|
|
11
|
+
|
|
12
|
+
If the docs provider is unavailable, read `../../docs/configuration.md` relative to this skill directory. For exact current IDs, values and defaults, read only the relevant installed registrations: `../../src/composite/preferences.ts`, `../../src/composite/builtin-extensions.ts`, `../../src/composite/presets.ts`, or flag registrations in `../../src/pi-agent-ide.ts`. Scope resolution and merging are in `../../src/composite/extensions-config.ts`. Treat these package files as read-only. If supported information is still unavailable, explain the blocker and offer `/agent-ide-settings`; do not guess or enable documentation modules just to get a guide.
|
|
13
|
+
|
|
14
|
+
## Explain or configure
|
|
15
|
+
|
|
16
|
+
For a help request, explain the relevant settings in plain language and offer `/agent-ide-help` or `/agent-ide-settings`. Use the catalog to distinguish built-in defaults from saved overrides. Do not change configuration when the user only asks for an explanation.
|
|
17
|
+
|
|
18
|
+
For a configuration request, ask what the user wants to change when their goal is unclear. Ask whether changes belong to Project or Global before writing, unless the user already specified the scope. Read both scopes, then change only the agreed settings. Explain how the choices work together, including the Codemode tool-result switch and each tool's own presentation setting.
|
|
19
|
+
|
|
20
|
+
## Inspect the requested scope
|
|
21
|
+
|
|
22
|
+
Resolve Global and Project paths using the guide's contract and the actual working directory, home and `PI_CODING_AGENT_DIR`. Do not assume the default global directory when the variable is set. Read both files; a missing file means no override, while malformed or unreadable configuration is a blocker.
|
|
23
|
+
|
|
24
|
+
Map the user's request to a registered setting and allowed value. Ask which scope to change if the request does not establish Project or Global. Ask about an ambiguous setting instead of choosing a nearby option. Explain when a higher-priority override, preset, dependency or CLI flag prevents the requested effective state.
|
|
25
|
+
|
|
26
|
+
Keep saved overrides, inherited defaults and the running session distinct. Removing an override restores inheritance; it is not the same as writing the built-in default. For modules, inspect disable lists in both scopes and preset restrictions before promising an enable.
|
|
27
|
+
|
|
28
|
+
## Make the smallest authorized change
|
|
29
|
+
|
|
30
|
+
Use the ordinary file editing tools to change only the requested keys in the chosen IDE configuration file. Re-read before editing, preserve unrelated and unknown fields, and use the registered storage types. Default removes the selected override. Handle legacy flag fields as described in the guide. Do not rewrite a matching configuration just to restyle it.
|
|
31
|
+
|
|
32
|
+
Do not change Pi's own settings, credentials, package sources, installed code, or another scope to make the result work. Ask before enabling desktop capture, sending code to a review provider, or another security-sensitive opt-in unless the user explicitly requested that exact behavior.
|
|
33
|
+
|
|
34
|
+
Read the saved file afterward and compare it with the intended change. If a write result is uncertain, inspect before retrying. Do not turn a read error into an empty configuration or replace a malformed file with defaults.
|
|
35
|
+
|
|
36
|
+
## Report what changed
|
|
37
|
+
|
|
38
|
+
State the scope, file, setting and saved value, or explain that nothing needed changing. Name any blocker or remaining override. Saved configuration is not proof that the running session changed: offer reload or restart, and verify the effective behavior after an authorized reload before saying it is active.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared binary converters for plugins and isolated workers.
|
|
3
|
+
* Factories use the IDE's PDF.js and image runtime; conversion preserves the input bytes.
|
|
4
|
+
*/
|
|
5
|
+
export { createPdfContentConverter } from "pi-agent-pdf";
|
|
6
|
+
export { createImageContentConverter } from "pi-agent-image";
|
package/src/api/tips.ts
CHANGED
|
@@ -26,6 +26,9 @@ export interface Tip {
|
|
|
26
26
|
readonly id: string;
|
|
27
27
|
readonly title: string;
|
|
28
28
|
readonly body: string;
|
|
29
|
+
|
|
30
|
+
/** Remembers the tip for this project by default, or across the installation. */
|
|
31
|
+
readonly scope?: "project" | "global";
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
/** Independent provider of an optional startup tip. */
|
|
@@ -39,6 +39,7 @@ interface BatchReport {
|
|
|
39
39
|
}
|
|
40
40
|
interface PanelGroup {
|
|
41
41
|
parentToolCallId: string;
|
|
42
|
+
parentToolName?: string;
|
|
42
43
|
cwd: string;
|
|
43
44
|
calls: ChildPanel[];
|
|
44
45
|
retention: RetentionReasons;
|
|
@@ -80,7 +81,7 @@ function retentionWarning(group: SavedPanelGroup): string | undefined {
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
/** Keep bounded display data for nested IDE tools, separate from model context and usage. */
|
|
83
|
-
export function createNestedIdeRendering(pi: ExtensionAPI) {
|
|
84
|
+
export function createNestedIdeRendering(pi: ExtensionAPI, hideCodemodeToolResults = false) {
|
|
84
85
|
const definitions = new Map<string, ToolDefinition>();
|
|
85
86
|
const parents = new Map<string, string>();
|
|
86
87
|
const groups = new Map<string, PanelGroup>();
|
|
@@ -215,6 +216,7 @@ export function createNestedIdeRendering(pi: ExtensionAPI) {
|
|
|
215
216
|
const calls = group.calls.filter((call) => !call.batched);
|
|
216
217
|
const saved: PanelGroup = {
|
|
217
218
|
...group,
|
|
219
|
+
parentToolName: event.message.toolName,
|
|
218
220
|
calls: [],
|
|
219
221
|
retention: {
|
|
220
222
|
...group.retention,
|
|
@@ -240,6 +242,15 @@ export function createNestedIdeRendering(pi: ExtensionAPI) {
|
|
|
240
242
|
ENTRY_TYPE,
|
|
241
243
|
function renderEntry(entry, options, theme) {
|
|
242
244
|
if (!Array.isArray(entry.data?.calls)) return undefined;
|
|
245
|
+
const compact =
|
|
246
|
+
hideCodemodeToolResults && entry.data.parentToolName === "codemode" && !options.expanded;
|
|
247
|
+
const calls = compact
|
|
248
|
+
? entry.data.calls.filter((call) => call.result?.isError)
|
|
249
|
+
: entry.data.calls;
|
|
250
|
+
if (compact && calls.length === 0) {
|
|
251
|
+
const warning = retentionWarning(entry.data);
|
|
252
|
+
return warning ? new Text(theme.fg("warning", warning), 0, 0) : new Container();
|
|
253
|
+
}
|
|
243
254
|
// Pi rebuilds resumed history before session_start binds the public UI.
|
|
244
255
|
// Keep the entry mounted and resolve its tool components on the next render.
|
|
245
256
|
if (!tui)
|
|
@@ -251,10 +262,10 @@ export function createNestedIdeRendering(pi: ExtensionAPI) {
|
|
|
251
262
|
},
|
|
252
263
|
};
|
|
253
264
|
const warningText = retentionWarning(entry.data);
|
|
254
|
-
let panel = components.get(entry.data);
|
|
265
|
+
let panel = compact ? undefined : components.get(entry.data);
|
|
255
266
|
if (!panel) {
|
|
256
267
|
panel = new Container();
|
|
257
|
-
for (const call of
|
|
268
|
+
for (const call of calls) {
|
|
258
269
|
const component = new ToolExecutionComponent(
|
|
259
270
|
call.name,
|
|
260
271
|
call.id,
|
|
@@ -276,7 +287,7 @@ export function createNestedIdeRendering(pi: ExtensionAPI) {
|
|
|
276
287
|
panel.addChild(component);
|
|
277
288
|
}
|
|
278
289
|
if (warningText) panel.addChild(new Text(theme.fg("warning", warningText), 0, 0));
|
|
279
|
-
components.set(entry.data, panel);
|
|
290
|
+
if (!compact) components.set(entry.data, panel);
|
|
280
291
|
}
|
|
281
292
|
const warning = panel.children.at(-1);
|
|
282
293
|
if (warningText && warning instanceof Text) warning.setText(theme.fg("warning", warningText));
|
|
@@ -319,7 +330,7 @@ export function createNestedIdeRendering(pi: ExtensionAPI) {
|
|
|
319
330
|
});
|
|
320
331
|
continue;
|
|
321
332
|
}
|
|
322
|
-
const copyResult = batch.
|
|
333
|
+
const copyResult = batch.mutationResults?.get(id);
|
|
323
334
|
const rollback = copyResult?.details.metadata?.copyRollback;
|
|
324
335
|
if (
|
|
325
336
|
call.name === "copy" &&
|
|
@@ -32,6 +32,19 @@ function presentationPreference(id: string, name: string, description: string):
|
|
|
32
32
|
|
|
33
33
|
/** Registered presentation preferences. */
|
|
34
34
|
export const AGENT_IDE_PREFERENCES: readonly AgentIdePreference[] = [
|
|
35
|
+
{
|
|
36
|
+
kind: "choice",
|
|
37
|
+
id: "ui.codemode",
|
|
38
|
+
name: "Show tool results from Codemode",
|
|
39
|
+
description:
|
|
40
|
+
"Show extra Agent IDE result panels using each tool's presentation setting. Off hides successful panels; errors stay visible. Codemode's own output and other tools are unchanged.",
|
|
41
|
+
default: "off",
|
|
42
|
+
group: "ui",
|
|
43
|
+
values: [
|
|
44
|
+
{ value: "off", label: "Off" },
|
|
45
|
+
{ value: "on", label: "On" },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
35
48
|
presentationPreference(
|
|
36
49
|
"ui.diffs",
|
|
37
50
|
"Diffs",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { AgentDocumentation } from "#src/api/documentation.js";
|
|
2
|
+
import { BUILTIN_EXTENSIONS } from "./builtin-extensions.js";
|
|
3
|
+
import type { FeatureFlag } from "./feature-flags.js";
|
|
4
|
+
import { AGENT_IDE_PREFERENCES } from "./preferences.js";
|
|
5
|
+
import { AGENT_IDE_PRESET_OPTIONS } from "./presets.js";
|
|
6
|
+
|
|
7
|
+
/** Build an explicit, read-only guide from the same descriptors as the settings menu. */
|
|
8
|
+
export function createIdeSettingsDocumentation(flags: readonly FeatureFlag[]): AgentDocumentation {
|
|
9
|
+
const catalog = {
|
|
10
|
+
preferences: AGENT_IDE_PREFERENCES,
|
|
11
|
+
flags,
|
|
12
|
+
modules: BUILTIN_EXTENSIONS.map(({ id, name, description, defaultEnabled, dependencies }) => ({
|
|
13
|
+
id,
|
|
14
|
+
name,
|
|
15
|
+
description,
|
|
16
|
+
default: defaultEnabled !== false,
|
|
17
|
+
dependencies,
|
|
18
|
+
})),
|
|
19
|
+
presets: AGENT_IDE_PRESET_OPTIONS,
|
|
20
|
+
};
|
|
21
|
+
const json = Object.entries(catalog)
|
|
22
|
+
.map(
|
|
23
|
+
([name, entries]) =>
|
|
24
|
+
` "${name}": [\n${entries.map((entry) => ` ${JSON.stringify(entry)}`).join(",\n")}\n ]`,
|
|
25
|
+
)
|
|
26
|
+
.join(",\n");
|
|
27
|
+
return {
|
|
28
|
+
id: "ide-settings",
|
|
29
|
+
description:
|
|
30
|
+
"Registered IDE settings, choices, defaults, configuration scopes and inheritance.",
|
|
31
|
+
triggers: [{ tool: "read", resourcePrefixes: ["docs:ide-settings"] }],
|
|
32
|
+
markdown: `# IDE settings
|
|
33
|
+
|
|
34
|
+
This catalog describes supported settings, not current saved values or live runtime state. It is generated from the registrations used by /agent-ide-settings. Read both configuration scopes to inspect overrides. Reload or restart applies saved changes; CLI flags may override them for an invocation.
|
|
35
|
+
|
|
36
|
+
## Configuration scopes
|
|
37
|
+
|
|
38
|
+
- Project: <current project>/.pi/pi-agent-ide/extensions.json.
|
|
39
|
+
- Global: <PI_CODING_AGENT_DIR>/pi-agent-ide/extensions.json when that environment variable is non-empty; otherwise <home>/.pi/agent/pi-agent-ide/extensions.json. Resolve a relative PI_CODING_AGENT_DIR against the process working directory.
|
|
40
|
+
- Missing files mean no overrides. Invalid JSON or invalid field types are errors, not defaults.
|
|
41
|
+
- preferences maps registered IDs to strings; flags maps registered IDs to booleans. Project overrides Global per key. Default removes only the selected scope's key, allowing inheritance.
|
|
42
|
+
- preset is a registered preset value. Project overrides Global; without either, full is used. Default removes the selected scope's preset field.
|
|
43
|
+
- disabled and enabled are arrays of unique non-empty module IDs, merged across scopes. Disabled wins in either scope and cascades to dependents. enabled can activate default-off modules and dependencies; it cannot undo a disable or a preset restriction.
|
|
44
|
+
- A module's default below is its built-in default before preset and dependency selection, not its current effective state.
|
|
45
|
+
- Existing noAnimations and noPostProcessing booleans still work. Their registered flags are pi-agent-ide-no-animations and pi-agent-ide-no-post-processing. Within each scope a flags entry wins over its corresponding legacy boolean. When changing or resetting that flag, remove its legacy boolean in the same scope, as the menu does.
|
|
46
|
+
- Text preference values are strings, not JSON numbers. An empty default means no override; saved strings must be non-empty. Read each description for valid ranges. Do not treat storage validation as validation of every preference value.
|
|
47
|
+
|
|
48
|
+
## Registered settings
|
|
49
|
+
|
|
50
|
+
Choices carry their saved value and human label. Text settings carry a description and optional placeholder. Boolean flag defaults do not include saved or CLI overrides. Preserve unrelated fields when editing configuration.
|
|
51
|
+
|
|
52
|
+
\`\`\`json
|
|
53
|
+
{
|
|
54
|
+
${json}
|
|
55
|
+
}
|
|
56
|
+
\`\`\`
|
|
57
|
+
`,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { getMarkdownTheme, type ExtensionAPI, type Theme } from "@earendil-works/pi-coding-agent";
|
|
4
|
+
import {
|
|
5
|
+
Markdown,
|
|
6
|
+
matchesKey,
|
|
7
|
+
ScrollView,
|
|
8
|
+
truncateToWidth,
|
|
9
|
+
type Component,
|
|
10
|
+
} from "@earendil-works/pi-tui";
|
|
11
|
+
|
|
12
|
+
/** Read the shipped human guide, independently of optional documentation modules. */
|
|
13
|
+
export function readSettingsHelp(): Promise<string> {
|
|
14
|
+
return readFile(
|
|
15
|
+
path.join(path.dirname(path.dirname(import.meta.dirname)), "docs/settings-help.md"),
|
|
16
|
+
"utf8",
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Register local settings help without adding history, context or a model turn. */
|
|
21
|
+
export function registerSettingsHelp(pi: Pick<ExtensionAPI, "registerCommand">): void {
|
|
22
|
+
pi.registerCommand("agent-ide-help", {
|
|
23
|
+
description: "Read the short Agent IDE settings guide",
|
|
24
|
+
async handler(_args, ctx) {
|
|
25
|
+
if (ctx.mode !== "tui" || !ctx.hasUI) return;
|
|
26
|
+
try {
|
|
27
|
+
const content = await readSettingsHelp();
|
|
28
|
+
await ctx.ui.custom<void>(
|
|
29
|
+
(tui, theme, _keys, done) =>
|
|
30
|
+
new SettingsHelpPanel(
|
|
31
|
+
content,
|
|
32
|
+
theme,
|
|
33
|
+
() => Math.max(5, Math.min(36, tui.terminal.rows - 4)),
|
|
34
|
+
() => tui.requestRender(),
|
|
35
|
+
done,
|
|
36
|
+
),
|
|
37
|
+
{ overlay: true, overlayOptions: { width: 92, margin: 1 } },
|
|
38
|
+
);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
ctx.ui.notify(error instanceof Error ? error.message : String(error), "error");
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** A bounded Markdown viewport with keyboard scrolling and no persistent state. */
|
|
47
|
+
export class SettingsHelpPanel implements Component {
|
|
48
|
+
private markdown: Markdown;
|
|
49
|
+
private scroll: ScrollView;
|
|
50
|
+
|
|
51
|
+
constructor(
|
|
52
|
+
private readonly content: string,
|
|
53
|
+
private readonly theme: Theme,
|
|
54
|
+
private readonly height: () => number,
|
|
55
|
+
private readonly requestRender: () => void,
|
|
56
|
+
private readonly done: () => void,
|
|
57
|
+
) {
|
|
58
|
+
this.markdown = this.createMarkdown();
|
|
59
|
+
this.scroll = new ScrollView(this.markdown);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private createMarkdown(): Markdown {
|
|
63
|
+
return new Markdown(this.content, 0, 0, getMarkdownTheme(), {
|
|
64
|
+
color: (text) => this.theme.fg("text", text),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
invalidate(): void {
|
|
69
|
+
this.markdown.invalidate();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
handleInput(data: string): void {
|
|
73
|
+
if (matchesKey(data, "escape")) {
|
|
74
|
+
this.done();
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (matchesKey(data, "up")) this.scroll.scrollBy(-1);
|
|
78
|
+
else if (matchesKey(data, "down")) this.scroll.scrollBy(1);
|
|
79
|
+
else if (matchesKey(data, "pageUp")) this.scroll.scrollBy(-this.scroll.viewportHeight);
|
|
80
|
+
else if (matchesKey(data, "pageDown") || matchesKey(data, "space"))
|
|
81
|
+
this.scroll.scrollBy(this.scroll.viewportHeight);
|
|
82
|
+
else if (matchesKey(data, "home")) this.scroll.scrollToStart();
|
|
83
|
+
else if (matchesKey(data, "end")) this.scroll.scrollToEnd();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
render(width: number): string[] {
|
|
87
|
+
const inner = Math.max(1, width - 4);
|
|
88
|
+
const rows = this.markdown.render(inner);
|
|
89
|
+
const viewport = Math.max(1, this.height() - 4);
|
|
90
|
+
this.scroll.updateLayout(rows.length, viewport, this.requestRender);
|
|
91
|
+
const page = rows.slice(this.scroll.scrollTop, this.scroll.scrollTop + viewport);
|
|
92
|
+
while (page.length < viewport) page.push("");
|
|
93
|
+
const border = this.theme.fg("border", "─".repeat(Math.max(0, width - 2)));
|
|
94
|
+
const row = (text: string) =>
|
|
95
|
+
this.theme.fg("border", "│ ") +
|
|
96
|
+
truncateToWidth(text, inner, "…", true) +
|
|
97
|
+
this.theme.fg("border", " │");
|
|
98
|
+
return [
|
|
99
|
+
this.theme.fg("border", "╭") + border + this.theme.fg("border", "╮"),
|
|
100
|
+
row(this.theme.fg("accent", "Agent IDE settings help")),
|
|
101
|
+
...page.map(row),
|
|
102
|
+
row(this.theme.fg("muted", "↑↓ scroll · PgUp/PgDn page · Home/End · Esc close")),
|
|
103
|
+
this.theme.fg("border", "╰") + border + this.theme.fg("border", "╯"),
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
}
|