pi-agent-ide 0.8.1 → 0.8.3
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 +50 -0
- package/README.md +5 -3
- package/dist/{chunk-TGC2ZACO.js → chunk-235QMMVA.js} +1 -1
- package/dist/{chunk-OI3HBIPK.js → chunk-4DIUPEDF.js} +1 -1
- package/dist/{chunk-2ITKAXHO.js → chunk-6FGLAVPJ.js} +1 -1
- package/dist/{chunk-7LOVUWNI.js → chunk-6H32W35W.js} +1 -1
- package/dist/{chunk-YHREORHH.js → chunk-6OJ565FL.js} +1 -1
- package/dist/{chunk-E2PHA4SQ.js → chunk-6R3Y4AD3.js} +1 -1
- package/dist/{chunk-VNTY7BKC.js → chunk-6T7PSDQW.js} +1 -1
- package/dist/{chunk-D4IA2MTA.js → chunk-6TJPMBUQ.js} +1 -1
- package/dist/{chunk-JKMXND6V.js → chunk-6XFUICD7.js} +1 -1
- package/dist/{chunk-A64JRDZK.js → chunk-AAC77UD4.js} +1 -1
- package/dist/{chunk-HFJGCYFO.js → chunk-ANM3Y5FO.js} +5 -5
- package/dist/{chunk-Q5X6OXNS.js → chunk-CPELC6JE.js} +1 -1
- package/dist/chunk-GBUJOR6V.js +28 -0
- package/dist/{chunk-3WO2NOEQ.js → chunk-GSOYVIQS.js} +1 -1
- package/dist/{chunk-AIT3YWR5.js → chunk-HSRH76JN.js} +1 -1
- package/dist/{chunk-ID4RJIVZ.js → chunk-HSZ4AQ6L.js} +1 -1
- package/dist/chunk-I6NPILT5.js +1 -0
- package/dist/chunk-K7SRNBIV.js +1 -0
- package/dist/{chunk-DXONCYWF.js → chunk-LCWBVOII.js} +3 -3
- package/dist/{chunk-EMRJP6EM.js → chunk-LEJKDYCK.js} +1 -1
- package/dist/{chunk-HCK7OIQ3.js → chunk-NJ7C4KMA.js} +1 -1
- package/dist/{chunk-BQAKA3FU.js → chunk-NUM3YQGK.js} +1 -1
- package/dist/chunk-OJEIX7OZ.js +1 -0
- package/dist/chunk-PBQDHYNX.js +1 -0
- package/dist/{chunk-4HWKBCBH.js → chunk-PJL3UVMJ.js} +1 -1
- package/dist/chunk-PT35ZFLH.js +33 -0
- package/dist/{chunk-AKNHSDGV.js → chunk-QT3EAHOG.js} +1 -1
- package/dist/{chunk-LLRUJD62.js → chunk-RIJMXO43.js} +1 -1
- package/dist/chunk-RMI3NMQY.js +23 -0
- package/dist/chunk-RQ7JJ7GV.js +4 -0
- package/dist/{chunk-AUL5FGGK.js → chunk-RVU73VKN.js} +1 -1
- package/dist/{chunk-WPBQ45ZL.js → chunk-RW2GTYQI.js} +1 -1
- package/dist/{chunk-BR7GRH4A.js → chunk-SDAH3ECM.js} +1 -1
- package/dist/chunk-SGQWRIRJ.js +10 -0
- package/dist/{chunk-N56WAVYA.js → chunk-SMIFCAAX.js} +1 -1
- package/dist/chunk-SWBJS3U4.js +1 -0
- package/dist/{chunk-WXGTU2M6.js → chunk-VMTOFEXF.js} +1 -1
- package/dist/{chunk-GEMDU6XW.js → chunk-VXP5BMW7.js} +1 -1
- package/dist/{chunk-LAJQSHEI.js → chunk-XAHU42FP.js} +3 -3
- package/dist/{chunk-ZV5ETNLQ.js → chunk-XBQR74IK.js} +1 -1
- package/dist/{chunk-TXG2H7YQ.js → chunk-XG7QNAKW.js} +1 -1
- package/dist/{chunk-PRLIHLCS.js → chunk-XLWCSJMR.js} +1 -1
- package/dist/{chunk-M4TVRCMZ.js → chunk-XXLLY66B.js} +1 -1
- package/dist/chunk-YFP4P2FV.js +1 -0
- package/dist/{chunk-SWA5B5B2.js → chunk-YIXP2ALP.js} +1 -1
- package/dist/{chunk-246NTPOS.js → chunk-ZJQRLVVV.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 -0
- package/dist/entry-2.js +1 -1
- package/dist/entry-20.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 -1
- package/dist/entry-27.js +1 -2
- package/dist/entry-28.js +1 -1
- package/dist/entry-29.js +2 -4
- package/dist/entry-3.js +1 -1
- package/dist/entry-30.js +1 -1
- package/dist/entry-31.js +4 -1
- package/dist/entry-32.js +1 -1
- package/dist/entry-33.js +1 -18
- package/dist/entry-34.js +1 -1
- package/dist/entry-35.js +18 -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-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 -25
- package/dist/entry-48.js +1 -1
- package/dist/entry-49.js +25 -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 -3
- package/dist/entry-53.js +1 -13
- package/dist/entry-54.js +3 -1
- package/dist/entry-55.js +13 -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 -0
- package/dist/entry-64.js +1 -1
- package/dist/entry-66.js +1 -1
- package/dist/entry-67.js +0 -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 -1
- package/dist/entry-73.js +1 -0
- package/dist/entry-74.js +1 -1
- package/dist/entry-76.js +1 -1
- package/dist/entry-77.js +0 -1
- package/dist/entry-78.js +1 -1
- package/dist/entry-79.js +1 -80
- package/dist/entry-8.js +1 -1
- package/dist/entry-80.js +1 -22
- package/dist/entry-81.js +80 -2
- package/dist/entry-82.js +22 -1
- package/dist/entry-83.js +2 -1
- package/dist/entry-84.js +1 -1
- package/dist/entry-85.js +1 -3
- package/dist/entry-86.js +1 -1
- package/dist/entry-87.js +1 -1
- package/dist/entry-88.js +3 -1
- package/dist/entry-89.js +1 -0
- package/dist/entry-9.js +1 -1
- package/dist/entry-90.js +1 -0
- package/dist/entry-91.js +1 -0
- package/dist/pi-agent-ide.js +29 -36
- package/docs/agent-guides/debugger.md +2 -0
- package/docs/agent-guides/editing.md +3 -3
- package/docs/agent-guides/search-code.md +2 -2
- package/docs/agent-guides/select-code.md +9 -6
- package/docs/code-review.md +5 -0
- package/docs/configuration.md +36 -4
- package/docs/development.md +8 -0
- package/docs/directory-operations.md +1 -1
- package/docs/extensions.md +98 -1
- package/docs/structured-results.md +11 -6
- package/docs/user-hooks.md +2 -2
- package/node_modules/pi-agent-doctor/package.json +7 -7
- package/node_modules/pi-agent-doctor/runtime/entry-27.js +1 -0
- package/node_modules/pi-agent-documentation/package.json +2 -2
- package/node_modules/pi-agent-documentation/runtime/entry-28.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 -6
- package/node_modules/pi-agent-filesystem-pdf/package.json +4 -4
- package/node_modules/pi-agent-filesystem-pdf/runtime/entry-32.js +2 -0
- package/node_modules/pi-agent-filesystem-text/package.json +4 -4
- package/node_modules/pi-agent-ide-ast/package.json +15 -15
- package/node_modules/pi-agent-ide-ast/src/select-schema.ts +6 -5
- package/node_modules/pi-agent-ide-changes/package.json +10 -10
- package/node_modules/pi-agent-ide-changes/runtime/entry-36.js +1 -0
- package/node_modules/pi-agent-ide-changes/src/tool-text-undo.ts +6 -5
- 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-lint/runtime/entry-40.js +2 -0
- package/node_modules/pi-agent-ide-lsp/package.json +10 -10
- package/node_modules/pi-agent-ide-lsp/runtime/entry-41.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-47.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-49.js +2 -0
- package/node_modules/pi-agent-resource/package.json +2 -2
- package/node_modules/pi-agent-resource/src/resource-error.ts +11 -0
- package/node_modules/pi-agent-search/package.json +9 -9
- package/node_modules/pi-agent-search/runtime/entry-52.js +0 -1
- package/node_modules/pi-agent-search/runtime/entry-53.js +1 -0
- package/node_modules/pi-agent-search/runtime/entry-54.js +2 -0
- package/node_modules/pi-agent-search/src/api/search-parameters.ts +6 -5
- package/node_modules/pi-agent-search-text/package.json +14 -14
- package/node_modules/pi-agent-search-text/runtime/entry-55.js +1 -0
- 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-anchor-constant/package.json +4 -4
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -5
- package/node_modules/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-64.js +2 -0
- package/node_modules/pi-agent-text-editor/index.ts +2 -0
- package/node_modules/pi-agent-text-editor/package.json +26 -26
- package/node_modules/pi-agent-text-editor/runtime/entry-79.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-80.js +1 -0
- package/node_modules/pi-agent-text-editor/src/api/edit-completion.ts +2 -0
- package/node_modules/pi-agent-text-editor/src/api/mutation-tool.ts +5 -0
- package/node_modules/pi-agent-text-editor/src/core/extension.ts +3 -1
- package/node_modules/pi-agent-text-editor/src/core/file-operation-tools.ts +45 -44
- package/node_modules/pi-agent-text-editor/src/core/mutation-result/file-mutation-result.ts +2 -0
- package/node_modules/pi-agent-text-editor/src/core/native-text-edit-batch.ts +27 -18
- package/node_modules/pi-agent-text-editor/src/core/text-edit-origin.ts +38 -0
- package/node_modules/pi-agent-text-editor/src/core/text-editor-core.ts +106 -48
- package/node_modules/pi-agent-text-editor/src/core/text-mutation.ts +29 -6
- package/node_modules/pi-agent-text-editor/src/core/tool-call-interceptor/streaming-provider.ts +39 -44
- package/node_modules/pi-agent-text-editor/src/core/write-agent-result.ts +3 -1
- 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-replace.ts +6 -5
- package/node_modules/pi-agent-text-editor-renderer/package.json +6 -6
- package/node_modules/pi-agent-text-editor-renderer/runtime/entry-82.js +2 -0
- package/node_modules/pi-agent-text-editor-renderer/src/renderer.ts +14 -3
- package/node_modules/pi-agent-text-editor-stale-anchor/index.ts +17 -0
- package/node_modules/pi-agent-text-editor-stale-anchor/package.json +6 -5
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-83.js +2 -0
- package/node_modules/pi-agent-tool-call-interception/package.json +3 -3
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-84.js +1 -0
- package/node_modules/pi-agent-tool-ui/package.json +6 -2
- package/node_modules/pi-agent-tool-ui/runtime/entry-85.js +1 -0
- package/node_modules/pi-agent-tool-ui/runtime/entry-86.js +1 -0
- package/node_modules/pi-agent-tool-ui/src/operation-approval.ts +271 -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-image/runtime/entry-89.js +2 -0
- package/node_modules/pi-agent-web-pdf/package.json +4 -4
- package/node_modules/pi-agent-web-pdf/runtime/entry-90.js +2 -0
- package/node_modules/pi-agent-web-text/package.json +4 -4
- package/node_modules/pi-agent-web-text/runtime/entry-91.js +2 -0
- package/package.json +62 -54
- package/src/api/approval.ts +5 -0
- package/src/api/settings.ts +198 -0
- package/src/backend/debugger-registration.ts +5 -1
- package/src/code-review/extension.ts +10 -4
- package/src/code-review/reviewer.ts +8 -0
- package/src/composite/host-version.ts +29 -5
- package/src/composite/ide-alias-rendering.ts +97 -0
- package/src/composite/nested-tool-rendering.ts +74 -4
- package/src/composite/search-facts.ts +45 -0
- package/src/composite/settings-documentation.ts +32 -23
- package/src/composite/settings-registry.ts +94 -0
- package/src/composite/text-results.ts +120 -8
- package/src/composite/tool-availability.ts +11 -2
- package/src/core/diagnostic-entry.ts +31 -8
- package/src/core/diagnostic-store.ts +19 -3
- package/src/core/extension.ts +7 -2
- package/src/core/reload-resource-store.ts +23 -3
- package/src/documentation/registry.ts +10 -2
- 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 -6
- 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-pdf/runtime/entry-32.js +2 -0
- 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-33.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-29.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-image/runtime/entry-89.js +2 -0
- 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-pdf/runtime/entry-90.js +2 -0
- 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-91.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-87.js +2 -0
- package/src/extensions/pi-agent-read/package.json +12 -12
- package/src/extensions/pi-agent-read/runtime/entry-47.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-48.js +1 -0
- package/src/extensions/pi-agent-read/runtime/entry-49.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 +14 -14
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-55.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-57.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-58.js +1 -0
- package/src/extensions/pi-agent-search/runtime/entry-52.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-53.js +1 -0
- package/src/extensions/pi-agent-search/runtime/entry-54.js +2 -0
- package/src/extensions/pi-agent-search/src/api/search-parameters.ts +6 -5
- package/src/extensions/pi-agent-text-editor/index.ts +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-exact/package.json +5 -5
- 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-63.js +1 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-64.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-renderer/runtime/entry-82.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/renderer.ts +14 -3
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/index.ts +17 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +6 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-83.js +2 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-79.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-80.js +1 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-81.js +2 -0
- package/src/extensions/pi-agent-text-editor/src/api/edit-completion.ts +2 -0
- package/src/extensions/pi-agent-text-editor/src/api/mutation-tool.ts +5 -0
- package/src/extensions/pi-agent-text-editor/src/core/extension.ts +3 -1
- package/src/extensions/pi-agent-text-editor/src/core/file-operation-tools.ts +45 -44
- package/src/extensions/pi-agent-text-editor/src/core/mutation-result/file-mutation-result.ts +2 -0
- package/src/extensions/pi-agent-text-editor/src/core/native-text-edit-batch.ts +27 -18
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-origin.ts +38 -0
- package/src/extensions/pi-agent-text-editor/src/core/text-editor-core.ts +106 -48
- package/src/extensions/pi-agent-text-editor/src/core/text-mutation.ts +29 -6
- package/src/extensions/pi-agent-text-editor/src/core/tool-call-interceptor/streaming-provider.ts +39 -44
- package/src/extensions/pi-agent-text-editor/src/core/write-agent-result.ts +3 -1
- 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-replace.ts +6 -5
- package/src/pi-agent-ide.ts +61 -14
- package/src/plugins/pi-agent-ide-ast/package.json +15 -15
- package/src/plugins/pi-agent-ide-ast/src/select-schema.ts +6 -5
- package/src/plugins/pi-agent-ide-changes/package.json +10 -10
- package/src/plugins/pi-agent-ide-changes/runtime/entry-36.js +1 -0
- package/src/plugins/pi-agent-ide-changes/src/tool-text-undo.ts +6 -5
- package/src/plugins/pi-agent-ide-debugger/index.ts +159 -60
- package/src/plugins/pi-agent-ide-debugger/src/debugmcp-client.ts +118 -0
- package/src/plugins/pi-agent-ide-debugger/src/doctor-plugin.ts +47 -0
- package/src/plugins/pi-agent-ide-debugger/src/renderer.ts +2 -0
- package/src/plugins/pi-agent-ide-debugger/src/session-manager.ts +146 -1
- package/src/plugins/pi-agent-ide-debugger/src/ui.ts +12 -0
- package/src/plugins/pi-agent-ide-debugger/src/vscode-backend.ts +497 -0
- 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-lint/runtime/entry-40.js +2 -0
- package/src/plugins/pi-agent-ide-lsp/package.json +10 -10
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-41.js +2 -0
- package/src/plugins/pi-agent-ide-terminal/index.ts +3 -2
- package/src/plugins/pi-agent-ide-terminal/src/origin.ts +30 -0
- package/src/plugins/pi-agent-ide-terminal/src/session-manager.ts +34 -0
- package/src/plugins/pi-agent-ide-terminal/src/tools.ts +11 -2
- package/src/plugins/pi-agent-ide-terminal/src/types.ts +9 -0
- package/src/plugins/pi-agent-ide-terminal/src/ui.ts +72 -26
- package/dist/chunk-ESPNEJHK.js +0 -1
- package/dist/chunk-GNACBJM3.js +0 -1
- package/dist/chunk-VMGZMXEM.js +0 -10
- package/dist/chunk-W3YFF6OO.js +0 -1
- package/dist/chunk-W7M3V7FR.js +0 -28
- package/dist/chunk-WMHSVEIT.js +0 -29
- package/dist/chunk-XSIKDVAR.js +0 -25
- package/dist/chunk-YTYLS2UM.js +0 -1
- package/dist/chunk-Z2QGNTGQ.js +0 -1
- package/dist/entry-21.js +0 -1
- package/node_modules/pi-agent-doctor/runtime/entry-20.js +0 -1
- package/node_modules/pi-agent-doctor/runtime/entry-21.js +0 -1
- package/node_modules/pi-agent-filesystem/runtime/entry-27.js +0 -2
- package/node_modules/pi-agent-filesystem-image/runtime/entry-28.js +0 -2
- package/node_modules/pi-agent-ide-ast/runtime/entry-32.js +0 -1
- package/node_modules/pi-agent-ide-formatter/runtime/entry-36.js +0 -2
- package/node_modules/pi-agent-image/runtime/entry-40.js +0 -1
- package/node_modules/pi-agent-invariant/runtime/entry-41.js +0 -1
- package/node_modules/pi-agent-search/runtime/entry-49.js +0 -1
- package/node_modules/pi-agent-search-text/runtime/entry-53.js +0 -2
- package/node_modules/pi-agent-search-text/runtime/entry-54.js +0 -1
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-58.js +0 -2
- package/node_modules/pi-agent-text-editor/runtime/entry-64.js +0 -1
- package/node_modules/pi-agent-text-editor-renderer/runtime/entry-80.js +0 -2
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-82.js +0 -1
- package/node_modules/pi-agent-tool-ui/runtime/entry-83.js +0 -1
- package/node_modules/pi-agent-web/runtime/entry-84.js +0 -2
- package/node_modules/pi-agent-web-html/runtime/entry-85.js +0 -2
- package/node_modules/pi-agent-web-image/runtime/entry-86.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-28.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/runtime/entry-29.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-27.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-85.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/runtime/entry-86.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/runtime/entry-87.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-84.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-43.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-44.js +0 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-53.js +0 -2
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-54.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-49.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-50.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-58.js +0 -2
- 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-editor-renderer/runtime/entry-80.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-81.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-63.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-64.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-32.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-33.js +0 -2
- package/src/plugins/pi-agent-ide-formatter/runtime/entry-36.js +0 -2
- /package/node_modules/{pi-agent-documentation → pi-agent-doctor}/runtime/entry-26.js +0 -0
- /package/node_modules/{pi-agent-filesystem-jq → pi-agent-filesystem}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-30.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-jq}/runtime/entry-31.js +0 -0
- /package/node_modules/{pi-agent-ide-ast → pi-agent-filesystem-text}/runtime/entry-33.js +0 -0
- /package/node_modules/{pi-agent-ide-changes → pi-agent-ide-ast}/runtime/entry-34.js +0 -0
- /package/node_modules/{pi-agent-ide-changes → pi-agent-ide-ast}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-ide-languages → pi-agent-ide-changes}/runtime/entry-37.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-formatter}/runtime/entry-38.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-languages}/runtime/entry-39.js +0 -0
- /package/node_modules/{pi-agent-pdf → pi-agent-image}/runtime/entry-42.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-invariant}/runtime/entry-43.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-pdf}/runtime/entry-44.js +0 -0
- /package/node_modules/{pi-agent-resource → pi-agent-read}/runtime/entry-48.js +0 -0
- /package/node_modules/{pi-agent-search → pi-agent-resource}/runtime/entry-50.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-57.js +0 -0
- /package/node_modules/{pi-agent-text-anchor-exact → pi-agent-text}/runtime/entry-59.js +0 -0
- /package/node_modules/{pi-agent-text-anchor-exact → pi-agent-text-anchor-constant}/runtime/entry-60.js +0 -0
- /package/node_modules/{pi-agent-text-anchor-line-hash → pi-agent-text-anchor-exact}/runtime/entry-61.js +0 -0
- /package/node_modules/{pi-agent-text-anchor-line-hash → pi-agent-text-anchor-exact}/runtime/entry-62.js +0 -0
- /package/node_modules/{pi-agent-text-editor → pi-agent-text-anchor-line-hash}/runtime/entry-63.js +0 -0
- /package/node_modules/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor}/runtime/entry-81.js +0 -0
- /package/node_modules/{pi-agent-web-pdf → pi-agent-web}/runtime/entry-87.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web-html}/runtime/entry-88.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-30.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-jq}/runtime/entry-31.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-text → pi-agent-web-html}/runtime/entry-88.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-anchor-exact → pi-agent-text-anchor-constant}/runtime/entry-60.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-anchor-line-hash → pi-agent-text-anchor-exact}/runtime/entry-61.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-anchor-line-hash → pi-agent-text-anchor-exact}/runtime/entry-62.js +0 -0
- /package/src/plugins/{pi-agent-ide-changes → pi-agent-ide-ast}/runtime/entry-34.js +0 -0
- /package/src/plugins/{pi-agent-ide-changes → pi-agent-ide-ast}/runtime/entry-35.js +0 -0
- /package/src/plugins/{pi-agent-ide-languages → pi-agent-ide-changes}/runtime/entry-37.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-formatter}/runtime/entry-38.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-languages}/runtime/entry-39.js +0 -0
package/docs/development.md
CHANGED
|
@@ -51,6 +51,14 @@ CI uses the same four shards without changing test or job timeouts. Set `REPORT_
|
|
|
51
51
|
|
|
52
52
|
`--no-extensions` also disables Pi's native built-ins. Native fixtures explicitly load `builtin:codemode`, `builtin:tool-search`, and `builtin:mcp`; ordinary fixtures do not. `native-host.integration.test.ts` checks the version inside the launched process, deferred discovery, nested execution, and isolation from personal MCP servers.
|
|
53
53
|
|
|
54
|
+
### Delayed terminal output
|
|
55
|
+
|
|
56
|
+
Terminal sessions keep the launching tool call, its visible outer call, and the Pi session ID. Read, Write and Insert inspect or control that same process; they do not take ownership of its later output. Reload keeps this metadata with the live process. A process without a known owner, or one carried into another Pi session, stays unlinked rather than borrowing another call's identity.
|
|
57
|
+
|
|
58
|
+
Completion and stale notices send the existing agent payload through hidden custom messages. Separate display-only entries carry `parentToolCallId`; mixed completion batches split into one entry per visible owner. This lets fullscreen consumers place each card beside its launch without changing chronological session history or copying the full card into Conversation. Historical visible terminal messages still render.
|
|
59
|
+
|
|
60
|
+
The focused `linked-terminal.integration.test.ts` case checks direct and nested launches, later inspection/input, reverse completion order, and persisted ownership. Set `PI_TERMINAL_STEREO` to an unchanged Stereo extension entrypoint to run the same case in Rows and Columns, including panel and search checks. This optional consumer check does not modify Stereo.
|
|
61
|
+
|
|
54
62
|
### Paid model capability checks
|
|
55
63
|
|
|
56
64
|
Tool changes also require reviewing the matrix and supported tool chains in `benchmarks/tool-capabilities/README.md` in the checkout. Run `pnpm check:capabilities` for its free schema/coverage gate; it is included in `pnpm check`. The real-model suite uses `pnpm validate:tools:models --run --model PROFILE_ID` only with explicit paid permission. It runs isolated cases and checks both outcomes and actual routes. It is not part of ordinary tests or CI.
|
|
@@ -18,7 +18,7 @@ Only regular files, directories, and symlink objects are supported within source
|
|
|
18
18
|
|
|
19
19
|
## Move safety policy
|
|
20
20
|
|
|
21
|
-
For directory and symlink Move sources, and existing directory destinations, the same before-delete hook runs before any removal or dialog. Denial or a thrown hook error blocks the transfer. Tracked or newly staged entries, external targets, missing Git worktrees, and failed Git checks require host
|
|
21
|
+
For directory and symlink Move sources, and existing directory destinations, the same before-delete hook runs before any removal or dialog. Denial or a thrown hook error blocks the transfer. Tracked or newly staged entries, external targets, missing Git worktrees, and failed Git checks require host permission. The shared dialog supplies that permission unless user-configured YOLO or a matching session grant skips it. Without either permission or an available dialog, the transfer is refused. Untracked internal targets need no dialog. There is no agent approval argument. See [Operation confirmations and YOLO](configuration.md#operation-confirmations-and-yolo) for settings and session scope.
|
|
22
22
|
|
|
23
23
|
Protected project roots, ancestors, filesystem roots, and current Git control paths cannot be moved or recursively overwritten. Parent symlinks are resolved for identity, containment, and project-boundary checks; the final link object is not dereferenced. The project boundary is the Git worktree containing Pi's cwd. Without Git, cwd and its ancestors remain protected.
|
|
24
24
|
|
package/docs/extensions.md
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Pi Agent IDE is designed to accept behavior from independent Pi extensions. You do not need to fork the umbrella package or add your extension to its built-in registry.
|
|
4
4
|
|
|
5
|
-
When its target core is enabled, an external extension can load before or after Pi Agent IDE. The
|
|
5
|
+
When its target core is enabled, an external extension using the connection helpers can load before or after Pi Agent IDE. The helpers handle both orders through Pi's shared event bus. Provider connectors that register local MCP aliases have a separate load-order requirement below.
|
|
6
|
+
|
|
7
|
+
## Provider connectors and local MCP aliases
|
|
8
|
+
|
|
9
|
+
The connection helpers support either load order. A provider connector that registers local MCP aliases for IDE tools is different: load Pi Agent IDE before that connector. Pi keeps the first extension's executable definition for each name. Loading the connector first can lose structured values returned to Codemode, even when the terminal panel looks correct.
|
|
10
|
+
|
|
11
|
+
Agent IDE recognizes an unnamespaced `mcp__*` tool as a local forwarding alias when its description and schema match exactly one visible IDE tool. Do not use that same metadata for a wrapper with different behavior: conflicting local extensions are the user's responsibility. Agent IDE does not keep a package allowlist and does not take over tools owned by a foreign MCP namespace.
|
|
12
|
+
|
|
13
|
+
For a matching alias, Agent IDE uses the native renderer and forwards execution to the original tool. Returned references, structured provider receipts and error outcomes keep their native contracts. A direct alias does not add a duplicate child panel.
|
|
14
|
+
|
|
15
|
+
Streaming edit guards preserve a connector's native provider registration, including OAuth and model discovery. When the guard is removed, it restores its transport hook without deleting that provider or replacing another extension's later transport.
|
|
16
|
+
|
|
17
|
+
A connector still owns authentication and model transport. Keeping Pi tools working does not add Claude Code's own tools or guarantee subscription billing. Test connectors one at a time; do not stack request patchers. See the [capability runner](https://github.com/alexshpunt/pi-agent-ide/blob/main/benchmarks/tool-capabilities/README.md) for isolated verification.
|
|
6
18
|
|
|
7
19
|
## Choose a protocol
|
|
8
20
|
|
|
@@ -13,6 +25,8 @@ When its target core is enabled, an external extension can load before or after
|
|
|
13
25
|
| A writable source, anchor, mutation, guard, or renderer | `pi-agent-ide/api/text-editor`, `pi-agent-ide/api/text` |
|
|
14
26
|
| A formatter, compiler, or linter | `pi-agent-ide/api/connect-plugin`, `pi-agent-ide/api/toolchain` |
|
|
15
27
|
| Doctor language knowledge, setup recipe, or health check | `pi-agent-ide/api/connect-doctor-plugin`, `pi-agent-ide/api/doctor`, `pi-agent-ide/api/tool-catalog` |
|
|
28
|
+
| Boolean, choice or text settings in the shared menu | `pi-agent-ide/api/settings` |
|
|
29
|
+
| A user decision before a policy-gated operation | `pi-agent-ide/api/approval` |
|
|
16
30
|
| Startup tip provider | `pi-agent-ide/api/tips` |
|
|
17
31
|
|
|
18
32
|
The internal packages are bundled into Pi Agent IDE and are not published separately. External extensions import their public contracts through the umbrella package.
|
|
@@ -36,6 +50,89 @@ A typical Pi package manifest starts like this:
|
|
|
36
50
|
|
|
37
51
|
Use a `pi-agent-ide` range compatible with the release you target.
|
|
38
52
|
|
|
53
|
+
## Settings
|
|
54
|
+
|
|
55
|
+
Use `registerAgentIdeSettings` from `pi-agent-ide/api/settings` once per extension runtime. The shared event bus accepts registration before or after Agent IDE loads. The settings appear in `/agent-ide-settings` and the live `docs:ide-settings` catalog.
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
59
|
+
import { registerAgentIdeSettings } from "pi-agent-ide/api/settings";
|
|
60
|
+
|
|
61
|
+
export default function register(pi: ExtensionAPI): void {
|
|
62
|
+
registerAgentIdeSettings(pi, "my-extension", [
|
|
63
|
+
{
|
|
64
|
+
id: "my-extension-yolo",
|
|
65
|
+
kind: "boolean",
|
|
66
|
+
name: "YOLO: my extension",
|
|
67
|
+
description: "Skip existing operation dialogs; technical guards still apply.",
|
|
68
|
+
default: false,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "my-extension.detail",
|
|
72
|
+
kind: "choice",
|
|
73
|
+
name: "Result detail",
|
|
74
|
+
description: "Choose how much detail the extension displays.",
|
|
75
|
+
group: "ui",
|
|
76
|
+
default: "compact",
|
|
77
|
+
values: [
|
|
78
|
+
{ value: "compact", label: "Compact" },
|
|
79
|
+
{ value: "full", label: "Full" },
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "my-extension.label",
|
|
84
|
+
kind: "text",
|
|
85
|
+
name: "Result label",
|
|
86
|
+
description: "Set the label shown above extension results.",
|
|
87
|
+
default: "",
|
|
88
|
+
placeholder: "Optional label",
|
|
89
|
+
},
|
|
90
|
+
]);
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Each definition needs an ID, human name, description and default. `group: "ui"` places it in the UI tab; the default group is Behavior. Boolean settings accept optional On/Off labels; choice settings need unique values and labels and a default from that list. Text settings accept an optional placeholder. Prefix IDs with your extension's name: IDs are unique across all owners, including built-ins. Invalid metadata and duplicate registrations are errors, not replacements.
|
|
95
|
+
|
|
96
|
+
Boolean values use `flags`; choice and text values use `preferences`. All types support Project, Global and Default through the existing menu. Default removes only the selected scope's key. External registrations do not add Pi CLI flags. See [Configuration](configuration.md#agent-ide-settings) for storage paths and inheritance.
|
|
97
|
+
|
|
98
|
+
Read saved effective configuration through the host rather than duplicating storage policy:
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
import { readAgentIdeSetting } from "pi-agent-ide/api/settings";
|
|
102
|
+
|
|
103
|
+
const { value, overridden } = await readAgentIdeSetting(pi.events, "my-extension.detail", ctx.cwd);
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
`value` is a boolean or string. `overridden` means either scope saved an explicit value, including `false`; otherwise `value` is the registered default. The read does not include invocation-only CLI flags or claim live runtime state. A missing settings service, unknown ID or invalid saved configuration throws. Do not turn these errors into permission to mutate.
|
|
107
|
+
|
|
108
|
+
## Operation approval
|
|
109
|
+
|
|
110
|
+
Use `confirmOperation` from `pi-agent-ide/api/approval` when your extension's policy requires host permission. Pi Agent IDE owns the dialog, session grants and YOLO policy and serializes requests on the session's event bus. The standalone text editor installs the same dialog service.
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
import { confirmOperation } from "pi-agent-ide/api/approval";
|
|
114
|
+
|
|
115
|
+
const approved = await confirmOperation(pi.events, ctx, {
|
|
116
|
+
owner: "my-extension",
|
|
117
|
+
category: "remote-delete",
|
|
118
|
+
yoloSetting: "my-extension-yolo",
|
|
119
|
+
title: "Confirm remote deletion",
|
|
120
|
+
message: `Delete: ${source}\nThis removes the selected remote object.`,
|
|
121
|
+
signal,
|
|
122
|
+
});
|
|
123
|
+
if (!approved) return; // Do not dispatch the operation.
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Call this inside a tool or lifecycle callback that supplies the actual context and abort signal. The context includes `cwd`, `hasUI`, `mode` and `ui.select`; pass its session manager to support remembered grants. Keep the exact target and action in the message. Use a stable extension `owner` and dialog `category`, not a target path or URL: **Allow for session** covers future requests with that pair, including different targets.
|
|
127
|
+
|
|
128
|
+
The dialog offers **Deny**, **Allow once** and, when session storage is available, **Allow for session**. Session grants are non-context entries on the current branch. They survive runtime reload and saved-session reopening, but do not transfer to a new independent session or a branch without that entry. Persistent YOLO is separate: `yoloSetting` is optional, names a registered boolean, and opts into the host's common/provider policy. Without it, persistent YOLO does not bypass this request. Do not implement that policy again in your extension. See [Operation confirmations and YOLO](configuration.md#operation-confirmations-and-yolo) for precedence and user settings.
|
|
129
|
+
|
|
130
|
+
Your extension still owns risk classification, authorization, technical guards and any one-operation permit. A positive answer authorizes the current request; it is not proof that the operation completed. Revalidate and consume the target-specific permit before dispatch even when YOLO or a session grant supplied permission.
|
|
131
|
+
|
|
132
|
+
The service marks Herdr as waiting only while a terminal dialog is open and clears that state when it closes. RPC dialogs do not claim terminal waiting. Refusal, dismissal, cancellation, dialog/policy failure and missing approval service return `false`. Without UI, only a matching session grant or configured YOLO can grant permission. Session shutdown cancels active and queued requests. Pass the operation's actual abort signal; a `tool_call` hook receives the turn signal, not a nested `executeTool` child's signal.
|
|
133
|
+
|
|
134
|
+
Do not emit Herdr waiting events or implement another approval popup in your provider. Only call this API for operations that already require permission; it does not add gates to auto-allowed calls.
|
|
135
|
+
|
|
39
136
|
## Search plugin
|
|
40
137
|
|
|
41
138
|
A search plugin contributes one or more resolvers. A resolver returns `not-handled` when a query belongs to another backend.
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
# Readable IDE results and private records
|
|
2
2
|
|
|
3
|
-
IDE tools expose readable text in direct calls
|
|
3
|
+
IDE tools expose readable text in direct calls. In native Codemode, Search returns `{ result, hasMatches, complete }`. `result` is the unchanged readable Search string used for composition. The two nullable facts describe original matches and query coverage, independently of display truncation. Unknown facts are `null`; a failed call still rejects.
|
|
4
|
+
|
|
5
|
+
An image Read in Codemode returns the native image block `{ type: "image", data, mimeType, note }`, or `{ type: "images", note, images }` for several frames, so scripts can pass it to `image()` or `models.classify()`. Its `note` is the readable result string used for composition. Other text results remain strings. Private result records remain hidden.
|
|
4
6
|
|
|
5
7
|
## Composition
|
|
6
8
|
|
|
7
|
-
Each result starts with a labelled system-result envelope containing a random UUID. It is not part of a file and must not be edited or inserted into file contents.
|
|
9
|
+
Each readable result string starts with a labelled system-result envelope containing a random UUID. It is not part of a file and must not be edited or inserted into file contents.
|
|
8
10
|
|
|
9
11
|
```js
|
|
10
12
|
const source = await tools.read({ path: "notes.txt" });
|
|
11
13
|
const matches = await tools.search({ path: source, query: "old" });
|
|
12
|
-
const selected = await tools.select({
|
|
14
|
+
const selected = await tools.select({
|
|
15
|
+
path: matches.result,
|
|
16
|
+
operation: { kind: "trim", side: "both" },
|
|
17
|
+
});
|
|
13
18
|
text(await tools.replace({ path: selected, text: "new" }));
|
|
14
19
|
```
|
|
15
20
|
|
|
16
|
-
Pass the unchanged result to a supported source parameter. Direct calls also accept
|
|
21
|
+
Pass the unchanged result string to a supported source parameter. Use Search's `result` field inside Codemode. Direct calls also accept the issued UUID. Store/load retains results across scripts in the same session. Displayed item and capture references allow narrower selections without inspecting private arrays.
|
|
17
22
|
|
|
18
23
|
A result identifies its backend-owned ranges, not the text in its preview. Shortened output does not clip a complete selection or make an incomplete selection complete. Read around a selection may show context without granting authority to edit it.
|
|
19
24
|
|
|
@@ -35,9 +40,9 @@ Each tool owns its validated record. Read, Search, Select, Diff, terminals, Git
|
|
|
35
40
|
|
|
36
41
|
The text registry stores only ownership, a digest of the issued text, source references, resource identities and whether the result can be consumed. It does not copy line arrays, removed file contents, image bytes or debugger records into a second ledger. Source ranges and snapshots remain in the source-target store.
|
|
37
42
|
|
|
38
|
-
The unified registration adapter
|
|
43
|
+
The unified registration adapter declares the small public Codemode schemas of Search and Read and hides their private domain records. Public tool_result hooks register the source metadata, preserve readable content for direct calls, and attach only the public script value as structuredContent. Other text tools keep their existing return behavior, including resource-provider values. This does not modify Pi, rewrite scripts, add VM methods, or recognize JSON in Codemode output.
|
|
39
44
|
|
|
40
|
-
Nested image blocks are delivered on the parent Codemode result;
|
|
45
|
+
Nested image blocks are delivered on the parent Codemode result once; an image the script already showed with `image()` is not attached again. Their bytes are not printed as text. Images remain ordinary native image content.
|
|
41
46
|
Read's private native record contains image type and MIME metadata, not another copy of the image bytes. Large images therefore do not overflow the JSON-record budget while their native content stays unchanged.
|
|
42
47
|
|
|
43
48
|
## Errors and writes
|
package/docs/user-hooks.md
CHANGED
|
@@ -67,9 +67,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
67
67
|
|
|
68
68
|
This hook covers whole-object Delete calls for regular files, directories, and symlinks, plus directory/symlink Move source removal and existing destination removal. Both standalone and native Codemode calls use it. It does not cover selected-text removal, terminal/debugger actions, Copy, or ordinary-file Move. The event provides `path` (absolute requested path, or canonical SSH URI), `resolvedPath` (parent symlinks resolved, final symlink left alone), `cwd`, `kind`, `recursive`, and an optional abort `signal`. SSH events keep the target owner on all three paths; filesystem and Git checks run on that target. It runs once before removal and any user dialog. A denial or thrown error blocks removal; allowing does not override another hook or built-in protection.
|
|
69
69
|
|
|
70
|
-
Delete removes directories recursively and unlinks symlinks, including broken ones, without traversing their targets. The built-in policy uses the Git worktree containing Pi's cwd. For SSH it uses the selected target's project directory, not the controller's cwd. Tracked or newly staged targets require
|
|
70
|
+
Delete removes directories recursively and unlinks symlinks, including broken ones, without traversing their targets. The built-in policy uses the Git worktree containing Pi's cwd. For SSH it uses the selected target's project directory, not the controller's cwd. Tracked or newly staged targets require host permission. External directories and symlinks and targets without a Git worktree also require permission unless they are eligible [temporary directories](./configuration.md#temporary-directory-deletion), including the temporary root itself. SSH temporary roots and settings come from that target's account and project. Failed Git checks inside the current project still require permission. Untracked directories and symlinks inside that worktree need no dialog. Ordinary files keep their existing policy.
|
|
71
71
|
|
|
72
|
-
The dialog names the exact target, reason, and operation.
|
|
72
|
+
The shared dialog names the exact target, reason, and operation. User-configured YOLO or a matching session grant can supply permission without a dialog; see [Operation confirmations and YOLO](configuration.md#operation-confirmations-and-yolo). Otherwise refusal, dismissal, cancellation or an unavailable dialog prevents removal. Project roots, their ancestors, filesystem roots, and current Git control paths are always blocked, even when a hook or YOLO allows. Git control protection also covers regular-file `.git` markers. Without Git, cwd and its ancestors are protected.
|
|
73
73
|
|
|
74
74
|
In the terminal UI, a filesystem approval dialog marks the Herdr header as waiting through `herdr:blocked`, just like pi-agent-ask. The waiting state clears when the dialog resolves or fails. No dialog means no waiting-state event; RPC and headless calls do not report a terminal dialog. Missing or failing Herdr listeners do not change approval or filesystem effects.
|
|
75
75
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-doctor",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./api/catalog": {
|
|
10
10
|
"types": "./src/catalog.ts",
|
|
11
|
-
"default": "./runtime/entry-
|
|
11
|
+
"default": "./runtime/entry-22.js"
|
|
12
12
|
},
|
|
13
13
|
"./api/connect-plugin": {
|
|
14
14
|
"types": "./src/connect-plugin.ts",
|
|
15
|
-
"default": "./runtime/entry-
|
|
15
|
+
"default": "./runtime/entry-23.js"
|
|
16
16
|
},
|
|
17
17
|
"./api/evidence": {
|
|
18
18
|
"types": "./src/evidence.ts",
|
|
19
|
-
"default": "./runtime/entry-
|
|
19
|
+
"default": "./runtime/entry-24.js"
|
|
20
20
|
},
|
|
21
21
|
"./api/executable": {
|
|
22
22
|
"types": "./src/executable.ts",
|
|
23
|
-
"default": "./runtime/entry-
|
|
23
|
+
"default": "./runtime/entry-25.js"
|
|
24
24
|
},
|
|
25
25
|
"./api/project-probes": {
|
|
26
26
|
"types": "./src/project-probes.ts",
|
|
27
|
-
"default": "./runtime/entry-
|
|
27
|
+
"default": "./runtime/entry-26.js"
|
|
28
28
|
},
|
|
29
29
|
"./api/plugin-protocol": {
|
|
30
30
|
"types": "./src/plugin-protocol.ts",
|
|
31
|
-
"default": "./runtime/entry-
|
|
31
|
+
"default": "./runtime/entry-27.js"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../dist/entry-27.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-documentation",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./src/index.ts",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./src/index.ts",
|
|
9
|
-
"default": "./runtime/entry-
|
|
9
|
+
"default": "./runtime/entry-28.js"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../dist/entry-28.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-filesystem",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"pi-agent-image": "0.8.
|
|
10
|
-
"pi-agent-invariant": "0.8.
|
|
11
|
-
"pi-agent-read": "0.8.
|
|
12
|
-
"pi-agent-resource": "0.8.
|
|
13
|
-
"pi-agent-text": "0.8.
|
|
14
|
-
"pi-agent-text-editor": "0.8.
|
|
9
|
+
"pi-agent-image": "0.8.3",
|
|
10
|
+
"pi-agent-invariant": "0.8.3",
|
|
11
|
+
"pi-agent-read": "0.8.3",
|
|
12
|
+
"pi-agent-resource": "0.8.3",
|
|
13
|
+
"pi-agent-text": "0.8.3",
|
|
14
|
+
"pi-agent-text-editor": "0.8.3"
|
|
15
15
|
},
|
|
16
16
|
"pi": {
|
|
17
17
|
"extensions": [
|
|
18
|
-
"./runtime/entry-
|
|
18
|
+
"./runtime/entry-29.js"
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-filesystem-image",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#extension": "./index.ts"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"pi-agent-image": "0.8.
|
|
10
|
-
"pi-agent-resource": "0.8.
|
|
9
|
+
"pi-agent-image": "0.8.3",
|
|
10
|
+
"pi-agent-resource": "0.8.3"
|
|
11
11
|
},
|
|
12
12
|
"pi": {
|
|
13
13
|
"extensions": [
|
|
14
|
-
"./runtime/entry-
|
|
14
|
+
"./runtime/entry-30.js"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-filesystem-jq",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"pi-agent-doctor": "0.8.
|
|
10
|
-
"pi-agent-documentation": "0.8.
|
|
11
|
-
"pi-agent-read": "0.8.
|
|
12
|
-
"pi-agent-text": "0.8.
|
|
9
|
+
"pi-agent-doctor": "0.8.3",
|
|
10
|
+
"pi-agent-documentation": "0.8.3",
|
|
11
|
+
"pi-agent-read": "0.8.3",
|
|
12
|
+
"pi-agent-text": "0.8.3"
|
|
13
13
|
},
|
|
14
14
|
"pi": {
|
|
15
15
|
"extensions": [
|
|
16
|
-
"./runtime/entry-
|
|
16
|
+
"./runtime/entry-31.js"
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-filesystem-pdf",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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.3",
|
|
7
|
+
"pi-agent-resource": "0.8.3"
|
|
8
8
|
},
|
|
9
9
|
"pi": {
|
|
10
10
|
"extensions": [
|
|
11
|
-
"./runtime/entry-
|
|
11
|
+
"./runtime/entry-32.js"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-filesystem-text",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#extension": "./index.ts"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"pi-agent-resource": "0.8.
|
|
10
|
-
"pi-agent-text": "0.8.
|
|
9
|
+
"pi-agent-resource": "0.8.3",
|
|
10
|
+
"pi-agent-text": "0.8.3"
|
|
11
11
|
},
|
|
12
12
|
"pi": {
|
|
13
13
|
"extensions": [
|
|
14
|
-
"./runtime/entry-
|
|
14
|
+
"./runtime/entry-33.js"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-ast",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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-34.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"pi-agent-doctor": "0.8.
|
|
16
|
-
"pi-agent-documentation": "0.8.
|
|
17
|
-
"pi-agent-invariant": "0.8.
|
|
18
|
-
"pi-agent-read": "0.8.
|
|
19
|
-
"pi-agent-resource": "0.8.
|
|
20
|
-
"pi-agent-search": "0.8.
|
|
21
|
-
"pi-agent-search-text": "0.8.
|
|
22
|
-
"pi-agent-text": "0.8.
|
|
23
|
-
"pi-agent-text-editor": "0.8.
|
|
24
|
-
"pi-agent-tool-call-interception": "0.8.
|
|
25
|
-
"pi-agent-tool-ui": "0.8.
|
|
15
|
+
"pi-agent-doctor": "0.8.3",
|
|
16
|
+
"pi-agent-documentation": "0.8.3",
|
|
17
|
+
"pi-agent-invariant": "0.8.3",
|
|
18
|
+
"pi-agent-read": "0.8.3",
|
|
19
|
+
"pi-agent-resource": "0.8.3",
|
|
20
|
+
"pi-agent-search": "0.8.3",
|
|
21
|
+
"pi-agent-search-text": "0.8.3",
|
|
22
|
+
"pi-agent-text": "0.8.3",
|
|
23
|
+
"pi-agent-text-editor": "0.8.3",
|
|
24
|
+
"pi-agent-tool-call-interception": "0.8.3",
|
|
25
|
+
"pi-agent-tool-ui": "0.8.3"
|
|
26
26
|
},
|
|
27
27
|
"pi": {
|
|
28
28
|
"extensions": [
|
|
29
|
-
"./runtime/entry-
|
|
29
|
+
"./runtime/entry-35.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.8.
|
|
35
|
+
"pi-agent-ide": "0.8.3",
|
|
36
36
|
"typebox": "*"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
@@ -197,11 +197,12 @@ const astPartSchema = Type.Union([
|
|
|
197
197
|
Type.Literal("finalizer"),
|
|
198
198
|
Type.Literal("parameter"),
|
|
199
199
|
]);
|
|
200
|
-
const objectFilter = Type.Optional(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
})
|
|
200
|
+
const objectFilter = Type.Optional(
|
|
201
|
+
Type.Union(astObjectSchema.anyOf, {
|
|
202
|
+
description:
|
|
203
|
+
"Filter results by construct category after navigation. The filter does not change parent/child/sibling relationships.",
|
|
204
|
+
}),
|
|
205
|
+
);
|
|
205
206
|
const structuralOperationSchema = Type.Union([
|
|
206
207
|
Type.Object(
|
|
207
208
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-changes",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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-36.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"pi-agent-doctor": "0.8.
|
|
16
|
-
"pi-agent-documentation": "0.8.
|
|
17
|
-
"pi-agent-invariant": "0.8.
|
|
18
|
-
"pi-agent-read": "0.8.
|
|
19
|
-
"pi-agent-resource": "0.8.
|
|
20
|
-
"pi-agent-text": "0.8.
|
|
21
|
-
"pi-agent-text-editor": "0.8.
|
|
15
|
+
"pi-agent-doctor": "0.8.3",
|
|
16
|
+
"pi-agent-documentation": "0.8.3",
|
|
17
|
+
"pi-agent-invariant": "0.8.3",
|
|
18
|
+
"pi-agent-read": "0.8.3",
|
|
19
|
+
"pi-agent-resource": "0.8.3",
|
|
20
|
+
"pi-agent-text": "0.8.3",
|
|
21
|
+
"pi-agent-text-editor": "0.8.3"
|
|
22
22
|
},
|
|
23
23
|
"pi": {
|
|
24
24
|
"extensions": [
|
|
25
|
-
"./runtime/entry-
|
|
25
|
+
"./runtime/entry-37.js"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../dist/entry-36.js";
|
|
@@ -13,11 +13,12 @@ import type { TextMutationToolRegistration } from "pi-agent-text-editor/api/muta
|
|
|
13
13
|
|
|
14
14
|
export const undoSchema = Type.Object(
|
|
15
15
|
{
|
|
16
|
-
file: Type.Optional(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
file: Type.Optional(
|
|
17
|
+
Type.Union(resultInputSchema.anyOf, {
|
|
18
|
+
description:
|
|
19
|
+
"File path or one whole-file source result. Partial and multi-file selections are rejected. Omit file to use the supplied CHANGE anchor's file or the last resolved source.",
|
|
20
|
+
}),
|
|
21
|
+
),
|
|
21
22
|
change: Type.String({
|
|
22
23
|
description:
|
|
23
24
|
'Use a complete current CHANGE#HASH anchor from read with views: ["changes"] to restore that change to HEAD in both worktree and index. Use last to restore the file\'s latest saved text-editor transaction.',
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-formatter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-doctor": "0.8.
|
|
6
|
+
"pi-agent-doctor": "0.8.3"
|
|
7
7
|
},
|
|
8
8
|
"pi": {
|
|
9
9
|
"extensions": [
|
|
10
|
-
"./runtime/entry-
|
|
10
|
+
"./runtime/entry-38.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@earendil-works/pi-coding-agent": "*",
|
|
15
|
-
"pi-agent-ide": "0.8.
|
|
15
|
+
"pi-agent-ide": "0.8.3"
|
|
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.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-doctor": "0.8.
|
|
6
|
+
"pi-agent-doctor": "0.8.3"
|
|
7
7
|
},
|
|
8
8
|
"pi": {
|
|
9
9
|
"extensions": [
|
|
10
|
-
"./runtime/entry-
|
|
10
|
+
"./runtime/entry-39.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-ide-lint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-doctor": "0.8.
|
|
7
|
-
"pi-agent-invariant": "0.8.
|
|
8
|
-
"pi-agent-read": "0.8.
|
|
9
|
-
"pi-agent-resource": "0.8.
|
|
10
|
-
"pi-agent-text": "0.8.
|
|
6
|
+
"pi-agent-doctor": "0.8.3",
|
|
7
|
+
"pi-agent-invariant": "0.8.3",
|
|
8
|
+
"pi-agent-read": "0.8.3",
|
|
9
|
+
"pi-agent-resource": "0.8.3",
|
|
10
|
+
"pi-agent-text": "0.8.3"
|
|
11
11
|
},
|
|
12
12
|
"pi": {
|
|
13
13
|
"extensions": [
|
|
14
|
-
"./runtime/entry-
|
|
14
|
+
"./runtime/entry-40.js"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@earendil-works/pi-coding-agent": "*",
|
|
19
|
-
"pi-agent-ide": "0.8.
|
|
19
|
+
"pi-agent-ide": "0.8.3"
|
|
20
20
|
},
|
|
21
21
|
"peerDependenciesMeta": {
|
|
22
22
|
"pi-agent-ide": {
|