pi-agent-ide 0.9.0 → 0.9.2
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 +24 -0
- package/dist/{chunk-TVH2ND35.js → chunk-35LZOKEW.js} +1 -1
- package/dist/chunk-3LVBARLW.js +33 -0
- package/dist/chunk-4GBFIGH3.js +1 -1
- package/dist/{chunk-64JTD2DJ.js → chunk-5PC5INOL.js} +1 -1
- package/dist/{chunk-FKKAHI62.js → chunk-BT2CFM7D.js} +1 -1
- package/dist/{chunk-VN3XBH2Q.js → chunk-DVNL5NZE.js} +1 -1
- package/dist/{chunk-PLMHBXWI.js → chunk-FXPY3V4L.js} +1 -1
- package/dist/{chunk-AJZVKDYC.js → chunk-HGCJDIRR.js} +1 -1
- package/dist/{chunk-RVFMH77U.js → chunk-HISGZD3C.js} +43 -44
- package/dist/{chunk-KFBRL2V4.js → chunk-HKYVP2Q6.js} +1 -1
- package/dist/{chunk-TVXZE4KW.js → chunk-HRBUY2FF.js} +1 -1
- package/dist/{chunk-QM5WDEFI.js → chunk-IOGWZNWT.js} +1 -1
- package/dist/{chunk-HT7LZN5A.js → chunk-IUJUECXH.js} +1 -1
- package/dist/chunk-LXDF2NWX.js +1 -0
- package/dist/{chunk-TVSZYABY.js → chunk-MPNE25CY.js} +1 -1
- package/dist/{chunk-Y74EKJOY.js → chunk-O7V6G3OO.js} +1 -1
- package/dist/chunk-OUCVZBOR.js +28 -0
- package/dist/{chunk-WUO3UW4J.js → chunk-PCGBM2D6.js} +1 -1
- package/dist/{chunk-V4J3TLCV.js → chunk-RIZARTUM.js} +1 -1
- package/dist/{chunk-LTADNZKW.js → chunk-T3Z4KXOX.js} +1 -1
- package/dist/chunk-TSQ6FBTB.js +1 -0
- package/dist/{chunk-CVOYSEBE.js → chunk-VNWGT367.js} +1 -1
- package/dist/{chunk-FS3KCKFX.js → chunk-X2WFNMQR.js} +1 -1
- package/dist/{chunk-7SG756UO.js → chunk-XCPIIDFS.js} +1 -1
- package/dist/entry-0.js +1 -1
- package/dist/entry-1.js +1 -1
- package/dist/entry-10.js +1 -1
- package/dist/entry-11.js +1 -1
- package/dist/entry-12.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 -1
- package/dist/entry-19.js +1 -1
- package/dist/entry-2.js +1 -1
- package/dist/entry-20.js +1 -1
- package/dist/entry-21.js +1 -1
- package/dist/entry-22.js +1 -0
- package/dist/entry-24.js +1 -1
- package/dist/entry-25.js +1 -1
- package/dist/entry-26.js +1 -1
- package/dist/entry-27.js +1 -1
- package/dist/entry-28.js +1 -1
- package/dist/entry-29.js +1 -1
- package/dist/entry-3.js +1 -1
- package/dist/entry-30.js +1 -2
- package/dist/entry-31.js +2 -1
- package/dist/entry-32.js +1 -1
- package/dist/entry-33.js +1 -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 -15
- package/dist/entry-38.js +15 -1
- package/dist/entry-39.js +1 -1
- package/dist/entry-4.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 -1
- package/dist/entry-47.js +1 -1
- package/dist/entry-48.js +1 -1
- package/dist/entry-49.js +1 -1
- package/dist/entry-5.js +1 -1
- package/dist/entry-50.js +1 -1
- package/dist/entry-51.js +1 -1
- package/dist/entry-52.js +1 -1
- package/dist/entry-53.js +1 -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 -1
- package/dist/entry-63.js +1 -1
- package/dist/entry-64.js +1 -1
- package/dist/entry-65.js +1 -1
- package/dist/entry-66.js +1 -1
- package/dist/entry-67.js +1 -0
- package/dist/entry-68.js +0 -1
- package/dist/entry-69.js +1 -0
- package/dist/entry-7.js +1 -1
- package/dist/entry-70.js +0 -1
- package/dist/entry-71.js +1 -1
- package/dist/entry-72.js +1 -1
- package/dist/entry-73.js +1 -1
- package/dist/entry-74.js +1 -1
- package/dist/entry-75.js +1 -1
- package/dist/entry-76.js +1 -1
- package/dist/entry-77.js +1 -0
- package/dist/entry-78.js +0 -1
- package/dist/entry-79.js +1 -0
- package/dist/entry-8.js +1 -1
- package/dist/entry-80.js +0 -1
- package/dist/entry-81.js +1 -1
- package/dist/entry-82.js +1 -1
- package/dist/entry-83.js +1 -1
- package/dist/entry-84.js +1 -1
- package/dist/entry-85.js +1 -2
- package/dist/entry-86.js +2 -1
- package/dist/entry-87.js +1 -1
- package/dist/entry-88.js +1 -1
- package/dist/entry-89.js +1 -1
- package/dist/entry-9.js +1 -1
- package/dist/entry-90.js +1 -3
- package/dist/entry-91.js +3 -1
- package/dist/entry-92.js +1 -1
- package/dist/entry-93.js +1 -1
- package/dist/entry-94.js +1 -0
- package/dist/pi-agent-ide.js +13 -10
- package/docs/agent-guides/editing.md +3 -0
- package/docs/tools.md +2 -2
- package/node_modules/pi-agent-doctor/package.json +7 -7
- package/node_modules/pi-agent-documentation/package.json +2 -2
- package/node_modules/pi-agent-documentation/runtime/entry-30.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-image/runtime/entry-32.js +2 -0
- package/node_modules/pi-agent-filesystem-jq/package.json +7 -7
- package/node_modules/pi-agent-filesystem-jq/runtime/entry-33.js +0 -1
- 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-36.js +2 -0
- package/node_modules/pi-agent-ide-ast/package.json +15 -15
- package/node_modules/pi-agent-ide-ast/runtime/entry-37.js +0 -1
- package/node_modules/pi-agent-ide-ast/runtime/entry-38.js +2 -0
- package/node_modules/pi-agent-ide-changes/package.json +10 -10
- package/node_modules/pi-agent-ide-changes/runtime/entry-39.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 +13 -13
- package/node_modules/pi-agent-ide-lsp/runtime/entry-44.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 -3
- package/node_modules/pi-agent-read/package.json +12 -12
- package/node_modules/pi-agent-read/runtime/entry-51.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-52.js +2 -0
- package/node_modules/pi-agent-resource/package.json +2 -2
- package/node_modules/pi-agent-search/package.json +9 -9
- package/node_modules/pi-agent-search/runtime/entry-56.js +0 -1
- package/node_modules/pi-agent-search-text/package.json +15 -15
- package/node_modules/pi-agent-search-text/runtime/entry-58.js +1 -0
- package/node_modules/pi-agent-text/package.json +3 -3
- package/node_modules/pi-agent-text/runtime/entry-62.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-63.js +2 -0
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -5
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-64.js +0 -1
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-65.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-66.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-67.js +2 -0
- package/node_modules/pi-agent-text-editor/package.json +26 -26
- package/node_modules/pi-agent-text-editor/runtime/entry-83.js +0 -1
- package/node_modules/pi-agent-text-editor/src/core/result-transfer.ts +2 -6
- package/node_modules/pi-agent-text-editor/src/core/text-change-engine.ts +17 -36
- package/node_modules/pi-agent-text-editor/src/tools/text-selection.ts +40 -82
- package/node_modules/pi-agent-text-editor/src/tools/text-tool-schema-properties.ts +1 -1
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-copy.ts +5 -9
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-delete.ts +1 -3
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-insert.ts +7 -5
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-move.ts +2 -8
- package/node_modules/pi-agent-text-editor-renderer/package.json +6 -6
- package/node_modules/pi-agent-text-editor-stale-anchor/package.json +6 -6
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-86.js +2 -0
- package/node_modules/pi-agent-tool-call-interception/package.json +3 -3
- package/node_modules/pi-agent-tool-ui/package.json +3 -3
- package/node_modules/pi-agent-tool-ui/runtime/entry-89.js +1 -0
- package/node_modules/pi-agent-web/package.json +8 -8
- package/node_modules/pi-agent-web-html/package.json +3 -3
- 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-94.js +2 -0
- package/package.json +61 -57
- package/src/api/capabilities.ts +60 -0
- package/src/composite/capabilities.ts +252 -0
- package/src/composite/capability-schemas.ts +53 -0
- package/src/composite/responses-tools.ts +27 -9
- package/src/composite/tool-availability.ts +28 -13
- 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-image/runtime/entry-32.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/package.json +7 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/runtime/entry-33.js +0 -1
- 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-36.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-31.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +8 -8
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +3 -3
- 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-94.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-90.js +2 -0
- package/src/extensions/pi-agent-read/package.json +12 -12
- package/src/extensions/pi-agent-read/runtime/entry-51.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-52.js +2 -0
- package/src/extensions/pi-agent-search/package.json +9 -9
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +15 -15
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-58.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-61.js +1 -0
- package/src/extensions/pi-agent-search/runtime/entry-56.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-57.js +2 -0
- package/src/extensions/pi-agent-text-editor/package.json +26 -26
- 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-63.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-64.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-65.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-66.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-67.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +6 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +6 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-86.js +2 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-83.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-84.js +2 -0
- package/src/extensions/pi-agent-text-editor/src/core/result-transfer.ts +2 -6
- package/src/extensions/pi-agent-text-editor/src/core/text-change-engine.ts +17 -36
- package/src/extensions/pi-agent-text-editor/src/tools/text-selection.ts +40 -82
- package/src/extensions/pi-agent-text-editor/src/tools/text-tool-schema-properties.ts +1 -1
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-copy.ts +5 -9
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-delete.ts +1 -3
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-insert.ts +7 -5
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-move.ts +2 -8
- package/src/pi-agent-ide.ts +4 -1
- package/src/plugins/pi-agent-ide-ast/package.json +15 -15
- package/src/plugins/pi-agent-ide-ast/runtime/entry-37.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-38.js +2 -0
- package/src/plugins/pi-agent-ide-changes/package.json +10 -10
- package/src/plugins/pi-agent-ide-changes/runtime/entry-39.js +0 -1
- package/src/plugins/pi-agent-ide-debugger/index.ts +31 -26
- 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 +13 -13
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-44.js +2 -0
- package/src/plugins/pi-agent-ide-terminal/index.ts +42 -0
- package/src/plugins/pi-agent-ide-terminal/src/resources.ts +0 -21
- package/src/plugins/pi-agent-ide-terminal/src/search.ts +0 -3
- package/dist/chunk-7URANI6I.js +0 -28
- package/dist/chunk-K4UTEMDU.js +0 -1
- package/dist/chunk-TNAUCNUT.js +0 -33
- package/dist/entry-23.js +0 -1
- package/node_modules/pi-agent-doctor/runtime/entry-23.js +0 -1
- package/node_modules/pi-agent-filesystem/runtime/entry-30.js +0 -2
- package/node_modules/pi-agent-filesystem-jq/runtime/entry-32.js +0 -1
- package/node_modules/pi-agent-ide-ast/runtime/entry-36.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-38.js +0 -1
- package/node_modules/pi-agent-image/runtime/entry-44.js +0 -1
- package/node_modules/pi-agent-resource/runtime/entry-52.js +0 -1
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-62.js +0 -2
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-63.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-65.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-67.js +0 -1
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-86.js +0 -1
- package/node_modules/pi-agent-web/runtime/entry-89.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-31.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/runtime/entry-32.js +0 -1
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-30.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-90.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-89.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-47.js +0 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-57.js +0 -2
- package/src/extensions/pi-agent-search/runtime/entry-53.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-62.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-63.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-65.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/runtime/entry-84.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-67.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-36.js +0 -1
- package/src/plugins/pi-agent-ide-changes/runtime/entry-38.js +0 -1
- /package/node_modules/{pi-agent-documentation → pi-agent-doctor}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-filesystem-image → pi-agent-filesystem}/runtime/entry-31.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-jq}/runtime/entry-34.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-40.js +0 -0
- /package/node_modules/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-41.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-42.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-43.js +0 -0
- /package/node_modules/{pi-agent-invariant → pi-agent-image}/runtime/entry-45.js +0 -0
- /package/node_modules/{pi-agent-pdf → pi-agent-invariant}/runtime/entry-46.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-pdf}/runtime/entry-47.js +0 -0
- /package/node_modules/{pi-agent-search → pi-agent-resource}/runtime/entry-53.js +0 -0
- /package/node_modules/{pi-agent-search-text → pi-agent-search}/runtime/entry-57.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-61.js +0 -0
- /package/node_modules/{pi-agent-text-editor-renderer → pi-agent-text-editor}/runtime/entry-84.js +0 -0
- /package/node_modules/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-85.js +0 -0
- /package/node_modules/{pi-agent-tool-ui → pi-agent-tool-call-interception}/runtime/entry-87.js +0 -0
- /package/node_modules/{pi-agent-web-html → pi-agent-web}/runtime/entry-90.js +0 -0
- /package/node_modules/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-91.js +0 -0
- /package/node_modules/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-92.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-93.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-pdf → pi-agent-filesystem-jq}/runtime/entry-34.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-35.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-91.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-92.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-93.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-85.js +0 -0
- /package/src/plugins/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-40.js +0 -0
- /package/src/plugins/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-41.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-42.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-43.js +0 -0
|
@@ -73,9 +73,7 @@ export const deleteMutationTool: TextMutationToolRegistration<typeof deleteSchem
|
|
|
73
73
|
const ends = parameters.end === undefined ? undefined : await context.resolveAnchors("end");
|
|
74
74
|
const span = anchorSpanRange(context, starts, ends, "start", "end");
|
|
75
75
|
return {
|
|
76
|
-
edits: new Map([
|
|
77
|
-
[span.source, { changes: [deleteAnchorSpan(context, span)], action: "edited" }],
|
|
78
|
-
]),
|
|
76
|
+
edits: new Map([[span.source, { changes: [deleteAnchorSpan(span)], action: "edited" }]]),
|
|
79
77
|
};
|
|
80
78
|
},
|
|
81
79
|
};
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
insertionBeforeAnchor,
|
|
7
7
|
insertionChanges,
|
|
8
8
|
textSelections,
|
|
9
|
+
targetText,
|
|
9
10
|
} from "#src/tools/text-selection.js";
|
|
10
11
|
|
|
11
12
|
import type { TextMutationToolRegistration } from "#src/api/mutation-tool.js";
|
|
@@ -21,12 +22,13 @@ export const insertSchema = Type.Object(
|
|
|
21
22
|
anchor: Type.Optional(
|
|
22
23
|
Type.String({
|
|
23
24
|
description:
|
|
24
|
-
"Line anchor or unique exact text;
|
|
25
|
+
"Line anchor or unique exact text. Insert at the selection boundary: whole lines include their own separator; partial or multiline exact matches keep character boundaries. Omit when path already selects text.",
|
|
25
26
|
}),
|
|
26
27
|
),
|
|
27
28
|
text: Type.String({
|
|
28
29
|
minLength: 1,
|
|
29
|
-
description:
|
|
30
|
+
description:
|
|
31
|
+
"Non-empty text to insert, using the target line-ending style. Whole-line selections add needed separators; exact fragments do not.",
|
|
30
32
|
}),
|
|
31
33
|
separation: Type.Optional(
|
|
32
34
|
Type.Union([Type.Literal("line"), Type.Literal("blank-line")], {
|
|
@@ -36,7 +38,7 @@ export const insertSchema = Type.Object(
|
|
|
36
38
|
before: Type.Optional(
|
|
37
39
|
Type.Boolean({
|
|
38
40
|
description:
|
|
39
|
-
"true inserts
|
|
41
|
+
"true inserts at the start of the selection; default false inserts at its end.",
|
|
40
42
|
}),
|
|
41
43
|
),
|
|
42
44
|
},
|
|
@@ -54,7 +56,7 @@ interface InsertParameters {
|
|
|
54
56
|
export const insertMutationTool: TextMutationToolRegistration<typeof insertSchema> = {
|
|
55
57
|
name: "insert",
|
|
56
58
|
description:
|
|
57
|
-
"Use insert to add text
|
|
59
|
+
"Use insert to add text at a selection boundary without changing selected text, to send keys to a terminal session, or to control a debugger.",
|
|
58
60
|
|
|
59
61
|
promptSnippet: "Insert file text, send terminal keys, or perform debugger actions",
|
|
60
62
|
parameters: insertSchema,
|
|
@@ -94,7 +96,7 @@ export const insertMutationTool: TextMutationToolRegistration<typeof insertSchem
|
|
|
94
96
|
context,
|
|
95
97
|
anchors,
|
|
96
98
|
"anchor",
|
|
97
|
-
parameters.text,
|
|
99
|
+
targetText(context, context.sourceFor("path"), parameters.text),
|
|
98
100
|
parameters.separation,
|
|
99
101
|
);
|
|
100
102
|
return {
|
|
@@ -9,10 +9,8 @@ import {
|
|
|
9
9
|
import { TEXT_POSITION_ANCHOR_KIND, TEXT_SEARCH_ANCHOR_KIND } from "#src/api/plugin-protocol.js";
|
|
10
10
|
import {
|
|
11
11
|
anchorSpanRange,
|
|
12
|
-
transferText,
|
|
13
12
|
deleteAnchorSpan,
|
|
14
13
|
insertionAfterAnchor,
|
|
15
|
-
replaceAnchorSpan,
|
|
16
14
|
} from "#src/tools/text-selection.js";
|
|
17
15
|
|
|
18
16
|
import type { TextMutationToolRegistration } from "#src/api/mutation-tool.js";
|
|
@@ -76,7 +74,7 @@ export const moveMutationTool: TextMutationToolRegistration<typeof moveSchema> =
|
|
|
76
74
|
const ends = parameters.end === undefined ? undefined : await context.resolveAnchors("end");
|
|
77
75
|
const sourceSpan = anchorSpanRange(context, starts, ends, "start", "end");
|
|
78
76
|
const copied = context.documentFor(sourceSpan.source).text(sourceSpan);
|
|
79
|
-
const deletion = deleteAnchorSpan(
|
|
77
|
+
const deletion = deleteAnchorSpan(sourceSpan);
|
|
80
78
|
|
|
81
79
|
const targetStarts = await context.resolveAnchors("targetStart");
|
|
82
80
|
let target: string;
|
|
@@ -93,11 +91,7 @@ export const moveMutationTool: TextMutationToolRegistration<typeof moveSchema> =
|
|
|
93
91
|
"targetEnd",
|
|
94
92
|
);
|
|
95
93
|
target = targetSpan.source;
|
|
96
|
-
targetChange =
|
|
97
|
-
context,
|
|
98
|
-
targetSpan,
|
|
99
|
-
transferText(context, starts, ends, sourceSpan, targetSpan),
|
|
100
|
-
);
|
|
94
|
+
targetChange = { from: targetSpan.from, to: targetSpan.to, insert: copied };
|
|
101
95
|
}
|
|
102
96
|
|
|
103
97
|
if (sourceSpan.source === target && rangesTouch(deletion, targetChange)) {
|
package/src/pi-agent-ide.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { createFeatureFlags } from "#src/composite/feature-flags.js";
|
|
|
12
12
|
import { connectAgentDocumentation } from "#src/api/documentation.js";
|
|
13
13
|
import { createIdeSettingsDocumentation } from "#src/composite/settings-documentation.js";
|
|
14
14
|
import { createIdeToolAvailability } from "#src/composite/tool-availability.js";
|
|
15
|
+
import { createIdeCapabilities } from "#src/composite/capabilities.js";
|
|
15
16
|
import { createNestedIdeRendering } from "#src/composite/nested-tool-rendering.js";
|
|
16
17
|
import { createIdeTextResults } from "#src/composite/text-results.js";
|
|
17
18
|
import { preserveResponsesToolOmission } from "#src/composite/responses-tools.js";
|
|
@@ -34,6 +35,7 @@ export default async function registerUnifiedPiAgentIde(pi: ExtensionAPI): Promi
|
|
|
34
35
|
const nestedRendering = createNestedIdeRendering(pi, hideCodemodeToolResults);
|
|
35
36
|
const textResults = createIdeTextResults(nestedRendering.api);
|
|
36
37
|
const availability = createIdeToolAvailability(textResults.api);
|
|
38
|
+
const capabilities = createIdeCapabilities(availability.api);
|
|
37
39
|
// Pi can still run an in-flight request's payload hook after it disposed the session that
|
|
38
40
|
// issued it. Its context is stale then, and the request is being cancelled anyway.
|
|
39
41
|
let shutDown = false;
|
|
@@ -197,8 +199,9 @@ export default async function registerUnifiedPiAgentIde(pi: ExtensionAPI): Promi
|
|
|
197
199
|
config.enabled,
|
|
198
200
|
);
|
|
199
201
|
for (const extension of enabled) {
|
|
200
|
-
await extension.register(
|
|
202
|
+
await extension.register(capabilities.api, { preferences: config.preferences ?? {} });
|
|
201
203
|
}
|
|
204
|
+
capabilities.finalize(() => availability.reconcile(true, [], true));
|
|
202
205
|
nestedRendering.finalize();
|
|
203
206
|
textResults.finalize();
|
|
204
207
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-ast",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
@@ -8,31 +8,31 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./api/scope": {
|
|
10
10
|
"types": "./src/api/scope.ts",
|
|
11
|
-
"default": "./runtime/entry-
|
|
11
|
+
"default": "./runtime/entry-37.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"pi-agent-doctor": "0.9.
|
|
16
|
-
"pi-agent-documentation": "0.9.
|
|
17
|
-
"pi-agent-invariant": "0.9.
|
|
18
|
-
"pi-agent-read": "0.9.
|
|
19
|
-
"pi-agent-resource": "0.9.
|
|
20
|
-
"pi-agent-search": "0.9.
|
|
21
|
-
"pi-agent-search-text": "0.9.
|
|
22
|
-
"pi-agent-text": "0.9.
|
|
23
|
-
"pi-agent-text-editor": "0.9.
|
|
24
|
-
"pi-agent-tool-call-interception": "0.9.
|
|
25
|
-
"pi-agent-tool-ui": "0.9.
|
|
15
|
+
"pi-agent-doctor": "0.9.2",
|
|
16
|
+
"pi-agent-documentation": "0.9.2",
|
|
17
|
+
"pi-agent-invariant": "0.9.2",
|
|
18
|
+
"pi-agent-read": "0.9.2",
|
|
19
|
+
"pi-agent-resource": "0.9.2",
|
|
20
|
+
"pi-agent-search": "0.9.2",
|
|
21
|
+
"pi-agent-search-text": "0.9.2",
|
|
22
|
+
"pi-agent-text": "0.9.2",
|
|
23
|
+
"pi-agent-text-editor": "0.9.2",
|
|
24
|
+
"pi-agent-tool-call-interception": "0.9.2",
|
|
25
|
+
"pi-agent-tool-ui": "0.9.2"
|
|
26
26
|
},
|
|
27
27
|
"pi": {
|
|
28
28
|
"extensions": [
|
|
29
|
-
"./runtime/entry-
|
|
29
|
+
"./runtime/entry-38.js"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@earendil-works/pi-coding-agent": "*",
|
|
34
34
|
"@earendil-works/pi-tui": "*",
|
|
35
|
-
"pi-agent-ide": "0.9.
|
|
35
|
+
"pi-agent-ide": "0.9.2",
|
|
36
36
|
"typebox": "*"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-changes",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./changes/change-groups": {
|
|
10
10
|
"types": "./src/changes/change-groups.ts",
|
|
11
|
-
"default": "./runtime/entry-
|
|
11
|
+
"default": "./runtime/entry-39.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"pi-agent-doctor": "0.9.
|
|
16
|
-
"pi-agent-documentation": "0.9.
|
|
17
|
-
"pi-agent-invariant": "0.9.
|
|
18
|
-
"pi-agent-read": "0.9.
|
|
19
|
-
"pi-agent-resource": "0.9.
|
|
20
|
-
"pi-agent-text": "0.9.
|
|
21
|
-
"pi-agent-text-editor": "0.9.
|
|
15
|
+
"pi-agent-doctor": "0.9.2",
|
|
16
|
+
"pi-agent-documentation": "0.9.2",
|
|
17
|
+
"pi-agent-invariant": "0.9.2",
|
|
18
|
+
"pi-agent-read": "0.9.2",
|
|
19
|
+
"pi-agent-resource": "0.9.2",
|
|
20
|
+
"pi-agent-text": "0.9.2",
|
|
21
|
+
"pi-agent-text-editor": "0.9.2"
|
|
22
22
|
},
|
|
23
23
|
"pi": {
|
|
24
24
|
"extensions": [
|
|
25
|
-
"./runtime/entry-
|
|
25
|
+
"./runtime/entry-40.js"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
+
import { registerIdeCapability } from "#src/api/capabilities.js";
|
|
2
3
|
import { access } from "node:fs/promises";
|
|
3
4
|
|
|
4
5
|
import { StringEnum } from "@earendil-works/pi-ai";
|
|
@@ -250,10 +251,6 @@ export async function registerDebuggerWithOwner(
|
|
|
250
251
|
},
|
|
251
252
|
});
|
|
252
253
|
api.addView({ view: "breakpoints", presenter: breakpointPresenter });
|
|
253
|
-
api.describe({
|
|
254
|
-
path: "debug:<session> — debugger state.",
|
|
255
|
-
views: "breakpoints — breakpoints beside the lines.",
|
|
256
|
-
});
|
|
257
254
|
},
|
|
258
255
|
} satisfies ReadPlugin;
|
|
259
256
|
const editorPlugin = {
|
|
@@ -262,19 +259,6 @@ export async function registerDebuggerWithOwner(
|
|
|
262
259
|
id: "debugger",
|
|
263
260
|
setup(api) {
|
|
264
261
|
api.addResolver({ resolver: editorResolver });
|
|
265
|
-
api
|
|
266
|
-
.tool("insert")
|
|
267
|
-
.describeField(
|
|
268
|
-
"path",
|
|
269
|
-
"debug:<session> controls the debugger; debug:<session>/source with a line anchor sets a breakpoint.",
|
|
270
|
-
);
|
|
271
|
-
api
|
|
272
|
-
.tool("insert")
|
|
273
|
-
.describeField(
|
|
274
|
-
"text",
|
|
275
|
-
"For debug:<session>: start, continue, step over, step into, step out or evaluate <expression> (needs a stopped frame). For debug:<session>/source: breakpoint.",
|
|
276
|
-
);
|
|
277
|
-
api.tool("insert").describeField("anchor", "Omit for debug:<session>.");
|
|
278
262
|
api.tool("insert").addSemanticHandler({
|
|
279
263
|
matches: (input) => matchesDebugInsert(input, manager),
|
|
280
264
|
execute: async (context, input) => {
|
|
@@ -343,12 +327,6 @@ export async function registerDebuggerWithOwner(
|
|
|
343
327
|
};
|
|
344
328
|
},
|
|
345
329
|
});
|
|
346
|
-
api
|
|
347
|
-
.tool("delete")
|
|
348
|
-
.describeField(
|
|
349
|
-
"path",
|
|
350
|
-
"debug:<session> ends it; debug:<session>/breakpoint/<id> removes a breakpoint.",
|
|
351
|
-
);
|
|
352
330
|
api.tool("delete").addSemanticHandler({
|
|
353
331
|
matches: (input) => matchesDebugDelete(input, manager),
|
|
354
332
|
execute: async (context, input) => {
|
|
@@ -372,9 +350,6 @@ export async function registerDebuggerWithOwner(
|
|
|
372
350
|
};
|
|
373
351
|
},
|
|
374
352
|
});
|
|
375
|
-
api.describe(
|
|
376
|
-
'For debug:<session> resources, insert performs debugger actions without changing source text. On a debug source, insert "breakpoint" at an anchor. On the session, insert start, continue, step over, step into, step out, or evaluate <expression>. Delete removes a breakpoint or terminates the session.',
|
|
377
|
-
);
|
|
378
353
|
for (const tool of ["insert", "delete"] as const) {
|
|
379
354
|
api.addToolRenderer({
|
|
380
355
|
tool,
|
|
@@ -591,6 +566,36 @@ export async function registerDebuggerWithOwner(
|
|
|
591
566
|
}),
|
|
592
567
|
);
|
|
593
568
|
|
|
569
|
+
const editingGuideline =
|
|
570
|
+
'For debug:<session> resources, insert performs debugger actions without changing source text. On a debug source, insert "breakpoint" at an anchor. On the session, insert start, continue, step over, step into, step out, or evaluate <expression>. Delete removes a breakpoint or terminates the session.';
|
|
571
|
+
registerIdeCapability(pi, {
|
|
572
|
+
version: 1,
|
|
573
|
+
id: "debugger",
|
|
574
|
+
tools: ["debug"],
|
|
575
|
+
schemas: {
|
|
576
|
+
read: {
|
|
577
|
+
parameters: {
|
|
578
|
+
path: "debug:<session> — debugger state.",
|
|
579
|
+
views: "breakpoints — breakpoints beside the lines.",
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
insert: {
|
|
583
|
+
parameters: {
|
|
584
|
+
path: "debug:<session> controls the debugger; debug:<session>/source with a line anchor sets a breakpoint.",
|
|
585
|
+
text: "For debug:<session>: start, continue, step over, step into, step out or evaluate <expression> (needs a stopped frame). For debug:<session>/source: breakpoint.",
|
|
586
|
+
anchor: "Omit for debug:<session>.",
|
|
587
|
+
},
|
|
588
|
+
promptGuidelines: [editingGuideline],
|
|
589
|
+
},
|
|
590
|
+
delete: {
|
|
591
|
+
parameters: {
|
|
592
|
+
path: "debug:<session> ends it; debug:<session>/breakpoint/<id> removes a breakpoint.",
|
|
593
|
+
},
|
|
594
|
+
promptGuidelines: [editingGuideline],
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
});
|
|
598
|
+
|
|
594
599
|
pi.on("session_shutdown", async (event) => {
|
|
595
600
|
removeProcessProvider();
|
|
596
601
|
if (event.reason !== "quit") {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-formatter",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-doctor": "0.9.
|
|
6
|
+
"pi-agent-doctor": "0.9.2"
|
|
7
7
|
},
|
|
8
8
|
"pi": {
|
|
9
9
|
"extensions": [
|
|
10
|
-
"./runtime/entry-
|
|
10
|
+
"./runtime/entry-41.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@earendil-works/pi-coding-agent": "*",
|
|
15
|
-
"pi-agent-ide": "0.9.
|
|
15
|
+
"pi-agent-ide": "0.9.2"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"pi-agent-ide": {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-languages",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-doctor": "0.9.
|
|
6
|
+
"pi-agent-doctor": "0.9.2"
|
|
7
7
|
},
|
|
8
8
|
"pi": {
|
|
9
9
|
"extensions": [
|
|
10
|
-
"./runtime/entry-
|
|
10
|
+
"./runtime/entry-42.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-lint",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-doctor": "0.9.
|
|
7
|
-
"pi-agent-invariant": "0.9.
|
|
8
|
-
"pi-agent-read": "0.9.
|
|
9
|
-
"pi-agent-resource": "0.9.
|
|
10
|
-
"pi-agent-text": "0.9.
|
|
6
|
+
"pi-agent-doctor": "0.9.2",
|
|
7
|
+
"pi-agent-invariant": "0.9.2",
|
|
8
|
+
"pi-agent-read": "0.9.2",
|
|
9
|
+
"pi-agent-resource": "0.9.2",
|
|
10
|
+
"pi-agent-text": "0.9.2"
|
|
11
11
|
},
|
|
12
12
|
"pi": {
|
|
13
13
|
"extensions": [
|
|
14
|
-
"./runtime/entry-
|
|
14
|
+
"./runtime/entry-43.js"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@earendil-works/pi-coding-agent": "*",
|
|
19
|
-
"pi-agent-ide": "0.9.
|
|
19
|
+
"pi-agent-ide": "0.9.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependenciesMeta": {
|
|
22
22
|
"pi-agent-ide": {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-lsp",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-doctor": "0.9.
|
|
7
|
-
"pi-agent-documentation": "0.9.
|
|
8
|
-
"pi-agent-invariant": "0.9.
|
|
9
|
-
"pi-agent-read": "0.9.
|
|
10
|
-
"pi-agent-resource": "0.9.
|
|
11
|
-
"pi-agent-search": "0.9.
|
|
12
|
-
"pi-agent-text": "0.9.
|
|
13
|
-
"pi-agent-text-editor": "0.9.
|
|
14
|
-
"pi-agent-tool-call-interception": "0.9.
|
|
15
|
-
"pi-agent-tool-ui": "0.9.
|
|
6
|
+
"pi-agent-doctor": "0.9.2",
|
|
7
|
+
"pi-agent-documentation": "0.9.2",
|
|
8
|
+
"pi-agent-invariant": "0.9.2",
|
|
9
|
+
"pi-agent-read": "0.9.2",
|
|
10
|
+
"pi-agent-resource": "0.9.2",
|
|
11
|
+
"pi-agent-search": "0.9.2",
|
|
12
|
+
"pi-agent-text": "0.9.2",
|
|
13
|
+
"pi-agent-text-editor": "0.9.2",
|
|
14
|
+
"pi-agent-tool-call-interception": "0.9.2",
|
|
15
|
+
"pi-agent-tool-ui": "0.9.2"
|
|
16
16
|
},
|
|
17
17
|
"pi": {
|
|
18
18
|
"extensions": [
|
|
19
|
-
"./runtime/entry-
|
|
19
|
+
"./runtime/entry-44.js"
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@earendil-works/pi-coding-agent": "*",
|
|
24
|
-
"pi-agent-ide": "0.9.
|
|
24
|
+
"pi-agent-ide": "0.9.2",
|
|
25
25
|
"typebox": "*"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import { registerIdeCapability } from "#src/api/capabilities.js";
|
|
2
3
|
import { connectAgentDocumentation, loadPackagedAgentGuide } from "pi-agent-documentation";
|
|
3
4
|
import {
|
|
4
5
|
forgetReloadResource,
|
|
@@ -60,6 +61,47 @@ export default async function registerTerminal(
|
|
|
60
61
|
registerTerminalOrigins(pi),
|
|
61
62
|
);
|
|
62
63
|
|
|
64
|
+
const editingGuideline =
|
|
65
|
+
"For shell:<session> resources, write sends exact terminal input, insert sends named keys at end, and delete terminates and removes the session. replace is unsupported.";
|
|
66
|
+
registerIdeCapability(pi, {
|
|
67
|
+
version: 1,
|
|
68
|
+
id: "terminal",
|
|
69
|
+
tools: ["bash", "powershell"],
|
|
70
|
+
schemas: {
|
|
71
|
+
read: {
|
|
72
|
+
parameters: {
|
|
73
|
+
path: "shell:<session> — status and output tail.",
|
|
74
|
+
views:
|
|
75
|
+
"On shell:<session>: image[:scale=S] — screen image; sequence[:duration=D,interval=I,scale=S] — frames over time, up to 10 s and 20 frames.",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
search: {
|
|
79
|
+
promptGuidelines: [
|
|
80
|
+
"path shell:<session> searches the retained text output of that terminal, including rows outside its current screen.",
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
write: {
|
|
84
|
+
parameters: {
|
|
85
|
+
path: "shell:<session> types into that terminal.",
|
|
86
|
+
content: "For shell:<session>, exact input; Enter is not added.",
|
|
87
|
+
},
|
|
88
|
+
promptGuidelines: [editingGuideline],
|
|
89
|
+
},
|
|
90
|
+
insert: {
|
|
91
|
+
parameters: {
|
|
92
|
+
path: "shell:<session> sends keys to that terminal.",
|
|
93
|
+
anchor: "Omit for shell:<session>.",
|
|
94
|
+
text: "For shell:<session>: named keys and chords such as Enter, Ctrl+C, Up, or caret forms such as ^C, separated by spaces or commas.",
|
|
95
|
+
},
|
|
96
|
+
promptGuidelines: [editingGuideline],
|
|
97
|
+
},
|
|
98
|
+
delete: {
|
|
99
|
+
parameters: { path: "shell:<session> ends that session." },
|
|
100
|
+
promptGuidelines: [editingGuideline],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
|
|
63
105
|
let removeSteeringObserver = (): void => {};
|
|
64
106
|
pi.on("session_start", (_event, context) => {
|
|
65
107
|
ui.bind(context);
|
|
@@ -185,11 +185,6 @@ export async function registerTerminalResources(
|
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
});
|
|
188
|
-
api.describe({
|
|
189
|
-
path: "shell:<session> — status and output tail.",
|
|
190
|
-
views:
|
|
191
|
-
"On shell:<session>: image[:scale=S] — screen image; sequence[:duration=D,interval=I,scale=S] — frames over time, up to 10 s and 20 frames.",
|
|
192
|
-
});
|
|
193
188
|
},
|
|
194
189
|
} satisfies ReadPlugin;
|
|
195
190
|
|
|
@@ -238,22 +233,6 @@ export async function registerTerminalResources(
|
|
|
238
233
|
},
|
|
239
234
|
});
|
|
240
235
|
}
|
|
241
|
-
api.describe(
|
|
242
|
-
"For shell:<session> resources, write sends exact terminal input, insert sends named keys at end, and delete terminates and removes the session. replace is unsupported.",
|
|
243
|
-
);
|
|
244
|
-
api.tool("write").describeField("path", "shell:<session> types into that terminal.");
|
|
245
|
-
api.tool("delete").describeField("path", "shell:<session> ends that session.");
|
|
246
|
-
api
|
|
247
|
-
.tool("write")
|
|
248
|
-
.describeField("content", "For shell:<session>, exact input; Enter is not added.");
|
|
249
|
-
api.tool("insert").describeField("path", "shell:<session> sends keys to that terminal.");
|
|
250
|
-
api.tool("insert").describeField("anchor", "Omit for shell:<session>.");
|
|
251
|
-
api
|
|
252
|
-
.tool("insert")
|
|
253
|
-
.describeField(
|
|
254
|
-
"text",
|
|
255
|
-
"For shell:<session>: named keys and chords such as Enter, Ctrl+C, Up, or caret forms such as ^C, separated by spaces or commas.",
|
|
256
|
-
);
|
|
257
236
|
},
|
|
258
237
|
} satisfies TextEditorPlugin;
|
|
259
238
|
|
|
@@ -30,9 +30,6 @@ export async function registerTerminalSearch(
|
|
|
30
30
|
id: "terminal",
|
|
31
31
|
setup(api) {
|
|
32
32
|
api.addResolver({ resolver: terminalSearchResolver(manager), priority: 100 });
|
|
33
|
-
api.describe(
|
|
34
|
-
"path shell:<session> searches the retained text output of that terminal, including rows outside its current screen.",
|
|
35
|
-
);
|
|
36
33
|
},
|
|
37
34
|
} satisfies SearchPlugin;
|
|
38
35
|
await connectSearchPlugin(pi, plugin);
|