pi-agent-ide 0.8.0 → 0.8.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 +70 -40
- package/README.md +15 -8
- package/dist/{chunk-ICDI27GZ.js → chunk-235QMMVA.js} +1 -1
- package/dist/{chunk-N7LMRL64.js → chunk-47SPPIXK.js} +1 -1
- package/dist/chunk-4DIUPEDF.js +2 -0
- package/dist/{chunk-JMVDFOTQ.js → chunk-57F5GTHO.js} +1 -1
- package/dist/{chunk-NULNW6GK.js → chunk-6FGLAVPJ.js} +1 -1
- package/dist/{chunk-KL776TGR.js → chunk-6H32W35W.js} +1 -1
- package/dist/{chunk-QP2QSQ4U.js → chunk-6OJ565FL.js} +1 -1
- package/dist/{chunk-TWWND6NI.js → chunk-6R3Y4AD3.js} +1 -1
- package/dist/{chunk-CPZJPGLG.js → chunk-6T7PSDQW.js} +1 -1
- package/dist/{chunk-4OYVLXWD.js → chunk-6TJPMBUQ.js} +1 -1
- package/dist/{chunk-SBLKPTL3.js → chunk-6XFUICD7.js} +1 -1
- package/dist/chunk-7VSVJRRF.js +28 -0
- package/dist/{chunk-7JV4VN73.js → chunk-AAC77UD4.js} +1 -1
- package/dist/chunk-ANM3Y5FO.js +11 -0
- package/dist/chunk-BB4A5UI3.js +5 -0
- package/dist/{chunk-7TJ6DWW3.js → chunk-CPELC6JE.js} +1 -1
- package/dist/chunk-FTPC44FP.js +33 -0
- package/dist/{chunk-SBNR4WZF.js → chunk-GSOYVIQS.js} +1 -1
- package/dist/{chunk-Z3PGADVA.js → chunk-HSRH76JN.js} +1 -1
- package/dist/{chunk-CSXHCSTH.js → chunk-HSZ4AQ6L.js} +1 -1
- package/dist/chunk-I6NPILT5.js +1 -0
- package/dist/chunk-K7SRNBIV.js +1 -0
- package/dist/{chunk-R5XJSEOE.js → chunk-LCWBVOII.js} +3 -3
- package/dist/{chunk-MZXX353D.js → chunk-LEJKDYCK.js} +1 -1
- package/dist/{chunk-3G54ZL2L.js → chunk-NJ7C4KMA.js} +1 -1
- package/dist/{chunk-CTJV77FR.js → chunk-NUM3YQGK.js} +1 -1
- package/dist/chunk-OJEIX7OZ.js +1 -0
- package/dist/{chunk-EY65TFHJ.js → chunk-PJL3UVMJ.js} +1 -1
- package/dist/{chunk-E4HPRLRB.js → chunk-QT3EAHOG.js} +1 -1
- package/dist/{chunk-HCN5W76B.js → chunk-RIJMXO43.js} +1 -1
- package/dist/chunk-RMI3NMQY.js +23 -0
- package/dist/chunk-RQ7JJ7GV.js +4 -0
- package/dist/{chunk-4XPUN4QN.js → chunk-RVU73VKN.js} +1 -1
- package/dist/{chunk-OJX3RJ5A.js → chunk-RW2GTYQI.js} +1 -1
- package/dist/{chunk-PNP2KNGP.js → chunk-SDAH3ECM.js} +1 -1
- package/dist/chunk-SGQWRIRJ.js +10 -0
- package/dist/{chunk-IUSLSROY.js → chunk-SMIFCAAX.js} +1 -1
- package/dist/chunk-SWBJS3U4.js +1 -0
- package/dist/chunk-T7MWQQIF.js +3 -0
- package/dist/{chunk-RAZP42IQ.js → chunk-VAXLSPPU.js} +1 -1
- package/dist/{chunk-XZDOVPRC.js → chunk-VMTOFEXF.js} +1 -1
- package/dist/{chunk-7HDK3NRQ.js → chunk-VXP5BMW7.js} +1 -1
- package/dist/{chunk-WE42GBGU.js → chunk-XAHU42FP.js} +3 -3
- package/dist/{chunk-UBH6X3D3.js → chunk-XBQR74IK.js} +1 -1
- package/dist/{chunk-7NS3QUIE.js → chunk-XG7QNAKW.js} +1 -1
- package/dist/{chunk-GW6NZQTQ.js → chunk-XLWCSJMR.js} +1 -1
- package/dist/{chunk-2K65BSXS.js → chunk-XXLLY66B.js} +1 -1
- package/dist/chunk-YFP4P2FV.js +1 -0
- package/dist/{chunk-75SWXD2Z.js → chunk-YIXP2ALP.js} +1 -1
- package/dist/{chunk-MOJ5RR35.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 -0
- package/dist/entry-19.js +1 -1
- 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 -2
- package/dist/entry-27.js +1 -1
- package/dist/entry-28.js +1 -4
- package/dist/entry-29.js +2 -1
- 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 -18
- package/dist/entry-33.js +1 -1
- 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 -25
- package/dist/entry-47.js +1 -1
- 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 -3
- package/dist/entry-52.js +1 -13
- package/dist/entry-53.js +1 -1
- 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 -0
- package/dist/entry-63.js +1 -1
- package/dist/entry-64.js +1 -0
- package/dist/entry-65.js +0 -1
- package/dist/entry-66.js +1 -1
- package/dist/entry-67.js +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 -0
- package/dist/entry-73.js +1 -1
- package/dist/entry-74.js +1 -0
- package/dist/entry-75.js +0 -1
- package/dist/entry-76.js +1 -1
- package/dist/entry-77.js +0 -1
- package/dist/entry-78.js +1 -80
- package/dist/entry-79.js +1 -21
- package/dist/entry-8.js +1 -1
- package/dist/entry-80.js +1 -2
- package/dist/entry-81.js +80 -1
- package/dist/entry-82.js +22 -1
- package/dist/entry-83.js +2 -1
- package/dist/entry-84.js +1 -3
- package/dist/entry-85.js +1 -1
- package/dist/entry-86.js +1 -1
- package/dist/entry-87.js +1 -1
- package/dist/entry-88.js +3 -0
- 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 +53 -31
- package/docs/agent-guides/debugger.md +2 -0
- package/docs/agent-guides/editing.md +3 -3
- package/docs/agent-guides/search-code.md +5 -3
- package/docs/agent-guides/select-code.md +9 -6
- package/docs/agent-guides/ssh.md +1 -1
- package/docs/code-review.md +5 -0
- package/docs/configuration.md +52 -8
- package/docs/development.md +9 -13
- package/docs/directory-operations.md +1 -1
- package/docs/extensions.md +99 -2
- package/docs/releases.md +1 -1
- package/docs/settings-help.md +39 -0
- package/docs/structured-results.md +11 -6
- package/docs/tools.md +1 -0
- package/docs/user-hooks.md +4 -2
- package/node_modules/pi-agent-doctor/package.json +7 -10
- package/node_modules/pi-agent-doctor/runtime/entry-26.js +1 -0
- 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 -7
- package/node_modules/pi-agent-filesystem-jq/runtime/entry-31.js +2 -0
- 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-33.js +2 -0
- package/node_modules/pi-agent-ide-ast/package.json +15 -41
- package/node_modules/pi-agent-ide-ast/runtime/entry-34.js +1 -0
- package/node_modules/pi-agent-ide-ast/src/select-schema.ts +6 -5
- package/node_modules/pi-agent-ide-changes/package.json +10 -11
- 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-languages/runtime/entry-39.js +2 -0
- 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 -13
- 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 -4
- package/node_modules/pi-agent-read/package.json +12 -12
- package/node_modules/pi-agent-read/runtime/entry-46.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-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-resource/src/result-targets.ts +9 -0
- package/node_modules/pi-agent-search/package.json +9 -9
- package/node_modules/pi-agent-search/runtime/entry-51.js +0 -1
- package/node_modules/pi-agent-search/runtime/entry-52.js +1 -0
- package/node_modules/pi-agent-search/runtime/entry-54.js +2 -0
- package/node_modules/pi-agent-search/src/api/plugin-protocol.ts +1 -1
- package/node_modules/pi-agent-search/src/api/presentation.ts +10 -2
- package/node_modules/pi-agent-search/src/api/search-parameters.ts +6 -5
- package/node_modules/pi-agent-search/src/api/search.ts +7 -0
- package/node_modules/pi-agent-search/src/core/search-core.ts +23 -3
- package/node_modules/pi-agent-search-text/index.ts +2 -0
- package/node_modules/pi-agent-search-text/package.json +14 -14
- package/node_modules/pi-agent-search-text/runtime/entry-55.js +1 -0
- package/node_modules/pi-agent-search-text/runtime/entry-57.js +1 -0
- package/node_modules/pi-agent-search-text/src/search-backend.ts +18 -10
- package/node_modules/pi-agent-search-text/src/search-session.ts +68 -9
- package/node_modules/pi-agent-text/package.json +3 -3
- package/node_modules/pi-agent-text/runtime/entry-59.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-60.js +2 -0
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -6
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-61.js +1 -0
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-62.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-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 -34
- package/node_modules/pi-agent-text-editor/runtime/entry-78.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-79.js +1 -0
- package/node_modules/pi-agent-text-editor/runtime/entry-80.js +1 -0
- package/node_modules/pi-agent-text-editor/runtime/entry-81.js +2 -0
- package/node_modules/pi-agent-text-editor/src/api/delete-guard.ts +1 -1
- 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/api/native-edit-batch-event.ts +2 -2
- package/node_modules/pi-agent-text-editor/src/core/delete-policy.ts +6 -12
- package/node_modules/pi-agent-text-editor/src/core/extension.ts +4 -1
- package/node_modules/pi-agent-text-editor/src/core/file-operation-tools.ts +40 -11
- 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/mutation-result/grouped-replacements.ts +18 -9
- package/node_modules/pi-agent-text-editor/src/core/native-text-edit-batch.ts +29 -20
- package/node_modules/pi-agent-text-editor/src/core/temporary-directories.ts +13 -9
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +16 -8
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +118 -36
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch.ts +7 -4
- package/node_modules/pi-agent-text-editor/src/core/text-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 +35 -14
- package/node_modules/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +22 -1
- 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 -8
- 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 +35 -2
- 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-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 -11
- package/node_modules/pi-agent-web-html/package.json +3 -5
- package/node_modules/pi-agent-web-html/runtime/entry-88.js +2 -0
- 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 +65 -53
- package/skills/configure-agent-ide/SKILL.md +38 -0
- package/src/api/approval.ts +5 -0
- package/src/api/content.ts +6 -0
- package/src/api/settings.ts +198 -0
- package/src/api/tips.ts +3 -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 +90 -9
- package/src/composite/preferences.ts +13 -0
- package/src/composite/search-facts.ts +45 -0
- package/src/composite/settings-documentation.ts +68 -0
- package/src/composite/settings-help.ts +106 -0
- package/src/composite/settings-registry.ts +94 -0
- package/src/composite/text-results.ts +170 -30
- 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/documentation/extension.ts +12 -0
- package/src/documentation/registry.ts +10 -2
- package/src/documentation/search.ts +166 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +8 -8
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/package.json +6 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/runtime/entry-31.js +2 -0
- 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 -11
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +3 -5
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-88.js +2 -0
- 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-46.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-47.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/index.ts +2 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +14 -14
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-55.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-56.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-57.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-backend.ts +18 -10
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-session.ts +68 -9
- package/src/extensions/pi-agent-search/runtime/entry-51.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-52.js +1 -0
- 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/plugin-protocol.ts +1 -1
- package/src/extensions/pi-agent-search/src/api/presentation.ts +10 -2
- package/src/extensions/pi-agent-search/src/api/search-parameters.ts +6 -5
- package/src/extensions/pi-agent-search/src/api/search.ts +7 -0
- package/src/extensions/pi-agent-search/src/core/search-core.ts +23 -3
- package/src/extensions/pi-agent-text-editor/index.ts +2 -0
- package/src/extensions/pi-agent-text-editor/package.json +26 -34
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +4 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-60.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +5 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-61.js +1 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-62.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-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 -8
- 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 +35 -2
- 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/runtime/entry-78.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-79.js +1 -0
- 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/delete-guard.ts +1 -1
- 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/api/native-edit-batch-event.ts +2 -2
- package/src/extensions/pi-agent-text-editor/src/core/delete-policy.ts +6 -12
- package/src/extensions/pi-agent-text-editor/src/core/extension.ts +4 -1
- package/src/extensions/pi-agent-text-editor/src/core/file-operation-tools.ts +40 -11
- 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/mutation-result/grouped-replacements.ts +18 -9
- package/src/extensions/pi-agent-text-editor/src/core/native-text-edit-batch.ts +29 -20
- package/src/extensions/pi-agent-text-editor/src/core/temporary-directories.ts +13 -9
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +16 -8
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +118 -36
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch.ts +7 -4
- package/src/extensions/pi-agent-text-editor/src/core/text-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 +35 -14
- package/src/extensions/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +22 -1
- 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 +74 -15
- package/src/plugins/pi-agent-ide-ast/package.json +15 -41
- package/src/plugins/pi-agent-ide-ast/runtime/entry-34.js +1 -0
- package/src/plugins/pi-agent-ide-ast/src/select-schema.ts +6 -5
- package/src/plugins/pi-agent-ide-changes/package.json +10 -11
- 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 +158 -55
- 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-languages/runtime/entry-39.js +2 -0
- 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 -13
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-41.js +2 -0
- package/src/plugins/pi-agent-ide-terminal/index.ts +2 -0
- 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/src/tips/core.ts +5 -2
- package/src/tips/extension.ts +30 -2
- package/src/tips/persistence.ts +29 -27
- package/src/tips/setup-hint.ts +19 -0
- package/dist/chunk-3ZGDMTMD.js +0 -25
- package/dist/chunk-5KFVDYCI.js +0 -1
- package/dist/chunk-ABFCAOU5.js +0 -1
- package/dist/chunk-BIG45IPN.js +0 -2
- package/dist/chunk-BMOJTJJJ.js +0 -3
- package/dist/chunk-BQ67M4NC.js +0 -3
- package/dist/chunk-IH5NW5JX.js +0 -11
- package/dist/chunk-NRZO5KJT.js +0 -9
- package/dist/chunk-O36UC74T.js +0 -1
- package/dist/chunk-OLI3JPHJ.js +0 -28
- package/dist/chunk-SSWUUBIR.js +0 -1
- package/dist/chunk-UUJJRXHG.js +0 -29
- package/dist/entry-21.js +0 -1
- package/docs/research/apply-native-capability-matrix.md +0 -174
- package/docs/research/apply-read-latency.md +0 -221
- package/docs/research/codemode-write-context.md +0 -56
- package/docs/research/lpt-393-fuzzy-results/file.json +0 -152
- package/docs/research/lpt-393-fuzzy-results/repo.json +0 -122
- package/docs/research/lpt-393-search-fuzzy-fallback.md +0 -97
- package/docs/research/native-codemode-batch-decision.md +0 -31
- package/docs/research/native-codemode-batching.md +0 -65
- package/node_modules/pi-agent-doctor/runtime/entry-19.js +0 -1
- package/node_modules/pi-agent-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-26.js +0 -2
- package/node_modules/pi-agent-filesystem-image/runtime/entry-27.js +0 -2
- package/node_modules/pi-agent-filesystem-jq/runtime/entry-28.js +0 -2
- package/node_modules/pi-agent-ide-ast/runtime/entry-31.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-33.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-34.js +0 -2
- package/node_modules/pi-agent-ide-languages/runtime/entry-36.js +0 -2
- package/node_modules/pi-agent-image/runtime/entry-39.js +0 -1
- package/node_modules/pi-agent-invariant/runtime/entry-40.js +0 -1
- package/node_modules/pi-agent-pdf/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-52.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-57.js +0 -2
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-59.js +0 -2
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-60.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-61.js +0 -2
- package/node_modules/pi-agent-text-editor/runtime/entry-62.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-64.js +0 -1
- package/node_modules/pi-agent-text-editor-renderer/runtime/entry-79.js +0 -2
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-80.js +0 -2
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-81.js +0 -1
- package/node_modules/pi-agent-tool-ui/runtime/entry-82.js +0 -1
- package/node_modules/pi-agent-web-html/runtime/entry-84.js +0 -2
- package/node_modules/pi-agent-web-image/runtime/entry-85.js +0 -2
- package/node_modules/pi-agent-web-pdf/runtime/entry-86.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-27.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/runtime/entry-28.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/runtime/entry-29.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-26.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-84.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/runtime/entry-85.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/runtime/entry-86.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/runtime/entry-87.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-42.js +0 -1
- 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-52.js +0 -2
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-53.js +0 -1
- 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-57.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-59.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-60.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-61.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/runtime/entry-79.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-80.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-62.js +0 -1
- 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-31.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-32.js +0 -2
- package/src/plugins/pi-agent-ide-changes/runtime/entry-33.js +0 -1
- package/src/plugins/pi-agent-ide-changes/runtime/entry-34.js +0 -2
- package/src/plugins/pi-agent-ide-languages/runtime/entry-36.js +0 -2
- /package/node_modules/{pi-agent-documentation → pi-agent-doctor}/runtime/entry-25.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-image}/runtime/entry-30.js +0 -0
- /package/node_modules/{pi-agent-ide-ast → pi-agent-filesystem-pdf}/runtime/entry-32.js +0 -0
- /package/node_modules/{pi-agent-ide-formatter → pi-agent-ide-ast}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-changes}/runtime/entry-37.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-formatter}/runtime/entry-38.js +0 -0
- /package/node_modules/{pi-agent-read → 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-47.js +0 -0
- /package/node_modules/{pi-agent-search → 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-search-text → pi-agent-search}/runtime/entry-53.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-56.js +0 -0
- /package/node_modules/{pi-agent-text-anchor-exact → pi-agent-search-text}/runtime/entry-58.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-web → pi-agent-text-editor-stale-anchor}/runtime/entry-83.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web}/runtime/entry-87.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-image}/runtime/entry-30.js +0 -0
- /package/src/extensions/{pi-agent-search → pi-agent-read}/runtime/entry-48.js +0 -0
- /package/src/extensions/{pi-agent-text-editor/plugins/pi-agent-text-anchor-exact → pi-agent-search/plugins/pi-agent-search-text}/runtime/entry-58.js +0 -0
- /package/src/extensions/{pi-agent-read/extensions/pi-agent-web → pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor}/runtime/entry-83.js +0 -0
- /package/src/plugins/{pi-agent-ide-formatter → pi-agent-ide-ast}/runtime/entry-35.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-changes}/runtime/entry-37.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-formatter}/runtime/entry-38.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-text-editor",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
@@ -8,90 +8,82 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./api/anchor-inspection": {
|
|
10
10
|
"types": "./src/api/anchor-inspection.ts",
|
|
11
|
-
"default": "./runtime/entry-
|
|
11
|
+
"default": "./runtime/entry-65.js"
|
|
12
12
|
},
|
|
13
13
|
"./api/connect-plugin": {
|
|
14
14
|
"types": "./src/api/connect-plugin.ts",
|
|
15
|
-
"default": "./runtime/entry-
|
|
15
|
+
"default": "./runtime/entry-66.js"
|
|
16
16
|
},
|
|
17
17
|
"./api/edit-completion": {
|
|
18
18
|
"types": "./src/api/edit-completion.ts",
|
|
19
|
-
"default": "./runtime/entry-
|
|
19
|
+
"default": "./runtime/entry-67.js"
|
|
20
20
|
},
|
|
21
21
|
"./api/edit-pipeline": {
|
|
22
22
|
"types": "./src/api/edit-pipeline.ts",
|
|
23
|
-
"default": "./runtime/entry-
|
|
23
|
+
"default": "./runtime/entry-68.js"
|
|
24
24
|
},
|
|
25
25
|
"./api/plugin-protocol": {
|
|
26
26
|
"types": "./src/api/plugin-protocol.ts",
|
|
27
|
-
"default": "./runtime/entry-
|
|
27
|
+
"default": "./runtime/entry-69.js"
|
|
28
28
|
},
|
|
29
29
|
"./api/stale-anchor-message": {
|
|
30
30
|
"types": "./src/api/stale-anchor-message.ts",
|
|
31
|
-
"default": "./runtime/entry-
|
|
31
|
+
"default": "./runtime/entry-70.js"
|
|
32
32
|
},
|
|
33
33
|
"./api/text-selection-anchor": {
|
|
34
34
|
"types": "./src/api/text-selection-anchor.ts",
|
|
35
|
-
"default": "./runtime/entry-
|
|
35
|
+
"default": "./runtime/entry-71.js"
|
|
36
36
|
},
|
|
37
37
|
"./api/post-edit": {
|
|
38
38
|
"types": "./src/api/post-edit.ts",
|
|
39
|
-
"default": "./runtime/entry-
|
|
39
|
+
"default": "./runtime/entry-72.js"
|
|
40
40
|
},
|
|
41
41
|
"./api/native-edit-batch-event": {
|
|
42
42
|
"types": "./src/api/native-edit-batch-event.ts",
|
|
43
|
-
"default": "./runtime/entry-
|
|
43
|
+
"default": "./runtime/entry-73.js"
|
|
44
44
|
},
|
|
45
45
|
"./api/mutation-result": {
|
|
46
46
|
"types": "./src/api/mutation-result.ts",
|
|
47
|
-
"default": "./runtime/entry-
|
|
47
|
+
"default": "./runtime/entry-74.js"
|
|
48
48
|
},
|
|
49
49
|
"./api/mutation-guard": {
|
|
50
50
|
"types": "./src/api/mutation-guard.ts",
|
|
51
|
-
"default": "./runtime/entry-
|
|
51
|
+
"default": "./runtime/entry-75.js"
|
|
52
52
|
},
|
|
53
53
|
"./api/mutation-tool": {
|
|
54
54
|
"types": "./src/api/mutation-tool.ts",
|
|
55
|
-
"default": "./runtime/entry-
|
|
55
|
+
"default": "./runtime/entry-76.js"
|
|
56
56
|
},
|
|
57
57
|
"./api/mutation-preview": {
|
|
58
58
|
"types": "./src/api/mutation-preview.ts",
|
|
59
|
-
"default": "./runtime/entry-
|
|
59
|
+
"default": "./runtime/entry-77.js"
|
|
60
60
|
},
|
|
61
61
|
"./api/last-resolved-resource": {
|
|
62
62
|
"types": "./src/api/last-resolved-resource.ts",
|
|
63
|
-
"default": "./runtime/entry-
|
|
63
|
+
"default": "./runtime/entry-78.js"
|
|
64
64
|
},
|
|
65
65
|
"./api/tool-call-interceptor": {
|
|
66
66
|
"types": "./src/api/tool-call-interceptor.ts",
|
|
67
|
-
"default": "./runtime/entry-
|
|
67
|
+
"default": "./runtime/entry-79.js"
|
|
68
68
|
},
|
|
69
69
|
"./api/tool-renderer": {
|
|
70
70
|
"types": "./src/api/tool-renderer.ts",
|
|
71
|
-
"default": "./runtime/entry-
|
|
71
|
+
"default": "./runtime/entry-80.js"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"pi-agent-
|
|
83
|
-
"pi-agent-invariant": "0.8.0",
|
|
84
|
-
"pi-agent-read": "0.8.0",
|
|
85
|
-
"pi-agent-resource": "0.8.0",
|
|
86
|
-
"pi-agent-search": "0.8.0",
|
|
87
|
-
"pi-agent-text": "0.8.0",
|
|
88
|
-
"pi-agent-tool-call-interception": "0.8.0",
|
|
89
|
-
"pi-agent-tool-ui": "0.8.0",
|
|
90
|
-
"typebox-guard": "npm:typebox@^1.1.38"
|
|
75
|
+
"pi-agent-documentation": "0.8.2",
|
|
76
|
+
"pi-agent-invariant": "0.8.2",
|
|
77
|
+
"pi-agent-read": "0.8.2",
|
|
78
|
+
"pi-agent-resource": "0.8.2",
|
|
79
|
+
"pi-agent-search": "0.8.2",
|
|
80
|
+
"pi-agent-text": "0.8.2",
|
|
81
|
+
"pi-agent-tool-call-interception": "0.8.2",
|
|
82
|
+
"pi-agent-tool-ui": "0.8.2"
|
|
91
83
|
},
|
|
92
84
|
"pi": {
|
|
93
85
|
"extensions": [
|
|
94
|
-
"./runtime/entry-
|
|
86
|
+
"./runtime/entry-81.js"
|
|
95
87
|
]
|
|
96
88
|
},
|
|
97
89
|
"peerDependencies": {
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-text-anchor-constant",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"pi-agent-text": "0.8.
|
|
10
|
-
"pi-agent-text-editor": "0.8.
|
|
9
|
+
"pi-agent-text": "0.8.2",
|
|
10
|
+
"pi-agent-text-editor": "0.8.2"
|
|
11
11
|
},
|
|
12
12
|
"pi": {
|
|
13
13
|
"extensions": [
|
|
14
|
-
"./runtime/entry-
|
|
14
|
+
"./runtime/entry-60.js"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-text-anchor-exact",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
@@ -8,17 +8,16 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./api/anchor": {
|
|
10
10
|
"types": "./src/anchor.ts",
|
|
11
|
-
"default": "./runtime/entry-
|
|
11
|
+
"default": "./runtime/entry-61.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"
|
|
16
|
-
"pi-agent-text": "0.8.
|
|
17
|
-
"pi-agent-text-editor": "0.8.0"
|
|
15
|
+
"pi-agent-text": "0.8.2",
|
|
16
|
+
"pi-agent-text-editor": "0.8.2"
|
|
18
17
|
},
|
|
19
18
|
"pi": {
|
|
20
19
|
"extensions": [
|
|
21
|
-
"./runtime/entry-
|
|
20
|
+
"./runtime/entry-62.js"
|
|
22
21
|
]
|
|
23
22
|
},
|
|
24
23
|
"peerDependencies": {
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-61.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../../../../dist/entry-61.js";
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-text-anchor-line-hash",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./api/anchor": {
|
|
10
10
|
"types": "./src/anchor.ts",
|
|
11
|
-
"default": "./runtime/entry-
|
|
11
|
+
"default": "./runtime/entry-63.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"pi-agent-invariant": "0.8.
|
|
16
|
-
"pi-agent-read": "0.8.
|
|
17
|
-
"pi-agent-text": "0.8.
|
|
18
|
-
"pi-agent-text-editor": "0.8.
|
|
15
|
+
"pi-agent-invariant": "0.8.2",
|
|
16
|
+
"pi-agent-read": "0.8.2",
|
|
17
|
+
"pi-agent-text": "0.8.2",
|
|
18
|
+
"pi-agent-text-editor": "0.8.2"
|
|
19
19
|
},
|
|
20
20
|
"pi": {
|
|
21
21
|
"extensions": [
|
|
22
|
-
"./runtime/entry-
|
|
22
|
+
"./runtime/entry-64.js"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../../../../dist/entry-63.js";
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-text-editor-renderer",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#src/*": "./src/*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"
|
|
10
|
-
"pi-agent-
|
|
11
|
-
"pi-agent-
|
|
12
|
-
"pi-agent-tool-
|
|
13
|
-
"pi-agent-tool-ui": "0.8.0",
|
|
14
|
-
"vscode-diff": "3.0.1"
|
|
9
|
+
"pi-agent-invariant": "0.8.2",
|
|
10
|
+
"pi-agent-text-editor": "0.8.2",
|
|
11
|
+
"pi-agent-tool-call-interception": "0.8.2",
|
|
12
|
+
"pi-agent-tool-ui": "0.8.2"
|
|
15
13
|
},
|
|
16
14
|
"pi": {
|
|
17
15
|
"extensions": [
|
|
18
|
-
"./runtime/entry-
|
|
16
|
+
"./runtime/entry-82.js"
|
|
19
17
|
]
|
|
20
18
|
},
|
|
21
19
|
"peerDependencies": {
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/renderer.ts
CHANGED
|
@@ -931,7 +931,7 @@ function wholeFileOperationSummary(details: unknown):
|
|
|
931
931
|
typeof error.code === "string"
|
|
932
932
|
? error.code
|
|
933
933
|
: undefined;
|
|
934
|
-
cause = code === undefined ?
|
|
934
|
+
cause = code === undefined ? GENERIC_FAILURE_CAUSE : wholeFileFailureCause(code);
|
|
935
935
|
}
|
|
936
936
|
const label =
|
|
937
937
|
effect === "unknown"
|
|
@@ -951,8 +951,19 @@ function wholeFileOperationSummary(details: unknown):
|
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
+
const GENERIC_FAILURE_CAUSE = "file operation failed";
|
|
955
|
+
|
|
954
956
|
function wholeFileFailureCause(code: string): string {
|
|
955
957
|
switch (code) {
|
|
958
|
+
case "RESULT_INPUT_REJECTED": {
|
|
959
|
+
return "result input was rejected";
|
|
960
|
+
}
|
|
961
|
+
case "WRITE_FAILED": {
|
|
962
|
+
return "resource write failed";
|
|
963
|
+
}
|
|
964
|
+
case "POST_WRITE_FAILED": {
|
|
965
|
+
return "post-write processing failed";
|
|
966
|
+
}
|
|
956
967
|
case "APPLY_UNDO_OWNER_CHANGED": {
|
|
957
968
|
return "resource owner changed";
|
|
958
969
|
}
|
|
@@ -994,7 +1005,7 @@ function wholeFileFailureCause(code: string): string {
|
|
|
994
1005
|
return "operation was canceled";
|
|
995
1006
|
}
|
|
996
1007
|
default: {
|
|
997
|
-
return
|
|
1008
|
+
return GENERIC_FAILURE_CAUSE;
|
|
998
1009
|
}
|
|
999
1010
|
}
|
|
1000
1011
|
}
|
|
@@ -1002,6 +1013,28 @@ function wholeFileFailureCause(code: string): string {
|
|
|
1002
1013
|
function userFacingFailure(
|
|
1003
1014
|
agentOutput: string,
|
|
1004
1015
|
details: FileMutationBatchResult | undefined,
|
|
1016
|
+
): string {
|
|
1017
|
+
const causes = new Set(
|
|
1018
|
+
details?.results?.flatMap((result) =>
|
|
1019
|
+
// Provider reasons can contain private data; decode only public editor failure codes.
|
|
1020
|
+
(result.data.errors ?? []).map((error) => {
|
|
1021
|
+
const cause = wholeFileFailureCause(error.code ?? "");
|
|
1022
|
+
// A provider's own code still names the editor step that failed.
|
|
1023
|
+
return cause === GENERIC_FAILURE_CAUSE && error.stage !== undefined
|
|
1024
|
+
? wholeFileFailureCause(error.stage)
|
|
1025
|
+
: cause;
|
|
1026
|
+
}),
|
|
1027
|
+
),
|
|
1028
|
+
);
|
|
1029
|
+
return [
|
|
1030
|
+
mutationFailureSummary(agentOutput, details),
|
|
1031
|
+
...[...causes].map((cause) => `Reason: ${cause}`),
|
|
1032
|
+
...(details?.effect === "unknown" ? ["Read the affected resource before retrying."] : []),
|
|
1033
|
+
].join("\n");
|
|
1034
|
+
}
|
|
1035
|
+
function mutationFailureSummary(
|
|
1036
|
+
agentOutput: string,
|
|
1037
|
+
details: FileMutationBatchResult | undefined,
|
|
1005
1038
|
): string {
|
|
1006
1039
|
const rollbacks =
|
|
1007
1040
|
details?.results?.flatMap((result) => (result.data.rollback ? [result.data.rollback] : [])) ??
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { requiredValue } from "pi-agent-invariant";
|
|
2
|
+
import { connectResultTargets } from "pi-agent-resource";
|
|
2
3
|
import { connectReadPlugin } from "pi-agent-read/api/connect-plugin";
|
|
3
4
|
import {
|
|
4
5
|
READ_API_VERSION,
|
|
@@ -73,6 +74,7 @@ function createHandler(
|
|
|
73
74
|
readonly handler: ToolCallInterceptorHandler;
|
|
74
75
|
readonly add: (registration: TextMutationToolRegistration) => void;
|
|
75
76
|
} {
|
|
77
|
+
const resultTargets = connectResultTargets(pi);
|
|
76
78
|
const schemas = new Map<string, TextMutationToolRegistration>();
|
|
77
79
|
const toolNames: string[] = [];
|
|
78
80
|
const knownPaths = new Map<number, string>();
|
|
@@ -91,6 +93,21 @@ function createHandler(
|
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
const arguments_ = context.partialArgs ?? context.args;
|
|
96
|
+
// Issued selections belong to the result-input pipeline, not filename anchor inspection.
|
|
97
|
+
// This also leaves unsupported selector combinations and expired IDs to their owner.
|
|
98
|
+
try {
|
|
99
|
+
for (const field of [
|
|
100
|
+
schema.source.field,
|
|
101
|
+
...(schema.source.targets ?? []).map((target) => target.field),
|
|
102
|
+
]) {
|
|
103
|
+
const original = arguments_[field];
|
|
104
|
+
const source = resultTargets.source(original, context.cwd);
|
|
105
|
+
if (source !== original || (typeof source === "string" && source.startsWith("RESULT#")))
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
} catch {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
94
111
|
const source = resolveSource(
|
|
95
112
|
arguments_,
|
|
96
113
|
context,
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-agent-text-editor-stale-anchor",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"pi-agent-invariant": "0.8.
|
|
7
|
-
"pi-agent-read": "0.8.
|
|
8
|
-
"pi-agent-
|
|
6
|
+
"pi-agent-invariant": "0.8.2",
|
|
7
|
+
"pi-agent-read": "0.8.2",
|
|
8
|
+
"pi-agent-resource": "0.8.2",
|
|
9
|
+
"pi-agent-text-editor": "0.8.2"
|
|
9
10
|
},
|
|
10
11
|
"pi": {
|
|
11
12
|
"extensions": [
|
|
12
|
-
"./runtime/entry-
|
|
13
|
+
"./runtime/entry-83.js"
|
|
13
14
|
]
|
|
14
15
|
},
|
|
15
16
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../../dist/entry-79.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../../dist/entry-80.js";
|
|
@@ -17,7 +17,7 @@ export interface BeforeDeleteEvent {
|
|
|
17
17
|
export interface DeleteFileAccess {
|
|
18
18
|
/** Omitted means POSIX target paths; native uses the controller platform's path syntax. */
|
|
19
19
|
readonly pathStyle?: "posix" | "native";
|
|
20
|
-
/** Native account defaults and config directory for temporary
|
|
20
|
+
/** Native account defaults and config directory for temporary removal exceptions.
|
|
21
21
|
* Omitted disables those exceptions; a remote owner must never use controller values.
|
|
22
22
|
* All returned paths are absolute on this owner. Called again during policy recheck.
|
|
23
23
|
*/
|
|
@@ -3,6 +3,8 @@ import type { TextDocument } from "pi-agent-text";
|
|
|
3
3
|
export type TextEditIntent = "edit" | "restore" | "mixed";
|
|
4
4
|
|
|
5
5
|
export interface TextEditCompletion {
|
|
6
|
+
/** Visible tool call that owns this saved version, including the root of nested executions. */
|
|
7
|
+
readonly parentToolCallId?: string;
|
|
6
8
|
/** Saved bytes remain observable even when post-edit work is deferred or interrupted. */
|
|
7
9
|
readonly postProcessing?: "deferred" | "final" | "complete" | "interrupted";
|
|
8
10
|
readonly source: string;
|
|
@@ -68,6 +68,11 @@ export interface TextSemanticMutationResult {
|
|
|
68
68
|
readonly summary: string;
|
|
69
69
|
/** Structured receipt for standalone tools and native Codemode. */
|
|
70
70
|
readonly data: Readonly<Record<string, unknown>>;
|
|
71
|
+
/**
|
|
72
|
+
* Plain JSON value that a Codemode script receives instead of the summary text.
|
|
73
|
+
* The call then resolves with this value even when `data.ok` is false, so scripts branch on it without try/catch.
|
|
74
|
+
*/
|
|
75
|
+
readonly script?: Readonly<Record<string, unknown>>;
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
/** Handles one tool invocation after its current source and anchors are available. */
|
|
@@ -7,8 +7,8 @@ export interface NativeEditBatchEvent {
|
|
|
7
7
|
readonly calls: readonly string[];
|
|
8
8
|
/** Successful Copy calls that retained identical destination text without a write. */
|
|
9
9
|
readonly unchangedCopyCalls?: readonly string[];
|
|
10
|
-
/** Per-call
|
|
11
|
-
readonly
|
|
10
|
+
/** Per-call receipts keep only their own output selection and failure evidence. */
|
|
11
|
+
readonly mutationResults?: ReadonlyMap<string, AgentToolResult<FileMutationBatchResult>>;
|
|
12
12
|
readonly result: AgentToolResult<FileMutationBatchResult>;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -29,20 +29,19 @@ export async function prepareDeletion(
|
|
|
29
29
|
context: DeletePolicyContext,
|
|
30
30
|
signal?: AbortSignal,
|
|
31
31
|
): Promise<BeforeDeleteEvent & { readonly revision: string }> {
|
|
32
|
-
const guard = await prepareDeletionGuard(source, cwd, context, signal
|
|
32
|
+
const guard = await prepareDeletionGuard(source, cwd, context, signal);
|
|
33
33
|
await guard.verify();
|
|
34
34
|
return guard.event;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
/**
|
|
37
|
+
/** Apply the same approval policy to Delete and each removed Move endpoint. */
|
|
38
38
|
export async function prepareDeletionGuard(
|
|
39
39
|
source: string,
|
|
40
40
|
cwd: string,
|
|
41
41
|
context: DeletePolicyContext,
|
|
42
42
|
signal?: AbortSignal,
|
|
43
|
-
allowTemporary = false,
|
|
44
43
|
): Promise<DeletionGuard> {
|
|
45
|
-
const before = await inspectDeletion(source, cwd, signal, context.files
|
|
44
|
+
const before = await inspectDeletion(source, cwd, signal, context.files);
|
|
46
45
|
const event =
|
|
47
46
|
context.files === undefined
|
|
48
47
|
? before.event
|
|
@@ -70,7 +69,7 @@ export async function prepareDeletionGuard(
|
|
|
70
69
|
signal?.throwIfAborted();
|
|
71
70
|
let after;
|
|
72
71
|
try {
|
|
73
|
-
after = await inspectDeletion(source, cwd, signal, context.files
|
|
72
|
+
after = await inspectDeletion(source, cwd, signal, context.files);
|
|
74
73
|
} catch (error) {
|
|
75
74
|
signal?.throwIfAborted();
|
|
76
75
|
fail(
|
|
@@ -93,7 +92,6 @@ async function inspectDeletion(
|
|
|
93
92
|
cwd: string,
|
|
94
93
|
signal: AbortSignal | undefined,
|
|
95
94
|
files: DeleteFileAccess | undefined,
|
|
96
|
-
allowTemporary: boolean,
|
|
97
95
|
) {
|
|
98
96
|
const access = files ?? localFiles;
|
|
99
97
|
const paths = files === undefined || files.pathStyle === "native" ? path : path.posix;
|
|
@@ -112,12 +110,8 @@ async function inspectDeletion(
|
|
|
112
110
|
assertUnprotected(resolvedPath, boundary, project.controls, paths);
|
|
113
111
|
|
|
114
112
|
const temporaryRoots =
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
: [];
|
|
118
|
-
const temporary =
|
|
119
|
-
!temporaryRoots.some((root) => paths.relative(root, resolvedPath) === "") &&
|
|
120
|
-
temporaryRoots.some((root) => contains(root, resolvedPath, paths));
|
|
113
|
+
kind !== "file" ? await loadTemporaryDirectories(boundary, resolvedPath, access, signal) : [];
|
|
114
|
+
const temporary = temporaryRoots.some((root) => contains(root, resolvedPath, paths));
|
|
121
115
|
let reason: string | undefined;
|
|
122
116
|
let tracked: string[] = [];
|
|
123
117
|
if (kind !== "file") {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { connectResultTargets } from "pi-agent-resource";
|
|
3
3
|
import { setMutationSnapshotReader } from "./mutation-result-targets.js";
|
|
4
|
+
import { registerTextEditOrigins } from "./text-edit-origin.js";
|
|
4
5
|
import { connectReadPlugin } from "pi-agent-read/api/connect-plugin";
|
|
5
6
|
import {
|
|
6
7
|
READ_API_VERSION,
|
|
@@ -60,9 +61,11 @@ export default async function registerTextEditorCore(
|
|
|
60
61
|
interceptionRendering,
|
|
61
62
|
() => getLastResolvedResource(pi)?.source,
|
|
62
63
|
resultTargets,
|
|
64
|
+
pi.events,
|
|
63
65
|
),
|
|
64
66
|
);
|
|
65
|
-
});
|
|
67
|
+
}, resultTargets);
|
|
68
|
+
registerTextEditOrigins(pi, core);
|
|
66
69
|
setTextEditBatchRenderArgumentSink(core, interceptionRendering.resolveArguments);
|
|
67
70
|
core.onDidEdit((completion) => {
|
|
68
71
|
resultTargets.refresh(completion.resourceSource, completion.cwd);
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
+
import { confirmOperation } from "pi-agent-tool-ui/operation-approval";
|
|
2
3
|
import type { TextEditorCore } from "#src/core/text-editor-core.js";
|
|
3
4
|
import type { FileOperation, FileOperationResult } from "#src/core/file-operations.js";
|
|
4
5
|
import { forgetDeferredPostEdit } from "./post-edit-scope.js";
|
|
5
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
AgentToolResult,
|
|
8
|
+
ExtensionAPI,
|
|
9
|
+
ExtensionContext,
|
|
10
|
+
} from "@earendil-works/pi-coding-agent";
|
|
6
11
|
import type { FileMutationBatchResult } from "#src/core/mutation-result/file-mutation-result.js";
|
|
7
12
|
import { isDiffStatusContribution } from "#src/api/post-edit.js";
|
|
8
13
|
import type { MutationDiffStatus } from "#src/api/mutation-result.js";
|
|
@@ -26,7 +31,7 @@ export function isWholeFileInvocation(
|
|
|
26
31
|
return operation === "delete" || (typeof input.target === "string" && input.target.length > 0);
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
/** Execute
|
|
34
|
+
/** Execute whole-object operations; terminal approval dialogs report waiting through host events. */
|
|
30
35
|
export async function executeWholeFileTool(
|
|
31
36
|
core: TextEditorCore,
|
|
32
37
|
operation: FileOperation,
|
|
@@ -34,9 +39,12 @@ export async function executeWholeFileTool(
|
|
|
34
39
|
signal: AbortSignal | undefined,
|
|
35
40
|
context: Pick<ExtensionContext, "cwd"> & {
|
|
36
41
|
readonly hasUI?: boolean;
|
|
37
|
-
readonly
|
|
42
|
+
readonly mode?: ExtensionContext["mode"];
|
|
43
|
+
readonly ui?: Pick<ExtensionContext["ui"], "select">;
|
|
44
|
+
readonly sessionManager?: Pick<ExtensionContext["sessionManager"], "getBranch">;
|
|
38
45
|
},
|
|
39
46
|
verifySource?: () => Promise<void>,
|
|
47
|
+
events?: Pick<ExtensionAPI["events"], "emit">,
|
|
40
48
|
): Promise<AgentToolResult<FileMutationBatchResult>> {
|
|
41
49
|
let finalize: Awaited<ReturnType<TextEditorCore["prepareFilePostProcessing"]>> | undefined;
|
|
42
50
|
const ui = context.hasUI ? context.ui : undefined;
|
|
@@ -68,11 +76,22 @@ export async function executeWholeFileTool(
|
|
|
68
76
|
signal,
|
|
69
77
|
});
|
|
70
78
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
confirm: async (event, reason) => {
|
|
80
|
+
const approved = await confirmOperation(
|
|
81
|
+
events,
|
|
82
|
+
{
|
|
83
|
+
cwd: context.cwd,
|
|
84
|
+
hasUI: ui !== undefined,
|
|
85
|
+
mode: context.mode ?? "print",
|
|
86
|
+
ui: ui ?? { select: async () => undefined },
|
|
87
|
+
sessionManager: context.sessionManager,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
owner: "pi-agent-ide",
|
|
91
|
+
category: operation,
|
|
92
|
+
yoloSetting: "pi-agent-ide-filesystem-yolo",
|
|
93
|
+
title: operation === "move" ? "Move filesystem object?" : "Delete permanently?",
|
|
94
|
+
message: [
|
|
76
95
|
event.path,
|
|
77
96
|
event.resolvedPath === event.path
|
|
78
97
|
? undefined
|
|
@@ -86,9 +105,19 @@ export async function executeWholeFileTool(
|
|
|
86
105
|
]
|
|
87
106
|
.filter((line) => line !== undefined)
|
|
88
107
|
.join("\n"),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
108
|
+
signal,
|
|
109
|
+
},
|
|
110
|
+
);
|
|
111
|
+
if (!approved && ui === undefined)
|
|
112
|
+
throw Object.assign(
|
|
113
|
+
new Error(`Deletion blocked: no user dialog is available. ${reason}`),
|
|
114
|
+
{
|
|
115
|
+
code: "DELETE_CONFIRMATION_REQUIRED",
|
|
116
|
+
effect: "not-applied",
|
|
117
|
+
},
|
|
118
|
+
);
|
|
119
|
+
return approved;
|
|
120
|
+
},
|
|
92
121
|
});
|
|
93
122
|
},
|
|
94
123
|
signal,
|
package/src/extensions/pi-agent-text-editor/src/core/mutation-result/file-mutation-result.ts
CHANGED
|
@@ -72,6 +72,8 @@ export interface FileError {
|
|
|
72
72
|
path: string;
|
|
73
73
|
code?: string | undefined;
|
|
74
74
|
reason?: string | undefined;
|
|
75
|
+
/** Editor failure code of the step that failed when `code` is a provider's own code. */
|
|
76
|
+
stage?: string | undefined;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
export interface Warning {
|