pi-agent-ide 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -40
- package/README.md +12 -7
- package/dist/{chunk-MOJ5RR35.js → chunk-246NTPOS.js} +1 -1
- package/dist/{chunk-NULNW6GK.js → chunk-2ITKAXHO.js} +1 -1
- package/dist/{chunk-SBNR4WZF.js → chunk-3WO2NOEQ.js} +1 -1
- package/dist/{chunk-N7LMRL64.js → chunk-47SPPIXK.js} +1 -1
- package/dist/{chunk-EY65TFHJ.js → chunk-4HWKBCBH.js} +1 -1
- package/dist/{chunk-JMVDFOTQ.js → chunk-57F5GTHO.js} +1 -1
- package/dist/{chunk-KL776TGR.js → chunk-7LOVUWNI.js} +1 -1
- package/dist/{chunk-7JV4VN73.js → chunk-A64JRDZK.js} +1 -1
- package/dist/{chunk-Z3PGADVA.js → chunk-AIT3YWR5.js} +1 -1
- package/dist/{chunk-E4HPRLRB.js → chunk-AKNHSDGV.js} +1 -1
- package/dist/{chunk-4XPUN4QN.js → chunk-AUL5FGGK.js} +1 -1
- package/dist/chunk-BB4A5UI3.js +5 -0
- package/dist/{chunk-CTJV77FR.js → chunk-BQAKA3FU.js} +1 -1
- package/dist/{chunk-PNP2KNGP.js → chunk-BR7GRH4A.js} +1 -1
- package/dist/{chunk-4OYVLXWD.js → chunk-D4IA2MTA.js} +1 -1
- package/dist/{chunk-R5XJSEOE.js → chunk-DXONCYWF.js} +3 -3
- package/dist/{chunk-TWWND6NI.js → chunk-E2PHA4SQ.js} +1 -1
- package/dist/{chunk-MZXX353D.js → chunk-EMRJP6EM.js} +1 -1
- package/dist/{chunk-7HDK3NRQ.js → chunk-GEMDU6XW.js} +1 -1
- package/dist/chunk-GNACBJM3.js +1 -0
- package/dist/{chunk-3G54ZL2L.js → chunk-HCK7OIQ3.js} +1 -1
- package/dist/chunk-HFJGCYFO.js +11 -0
- package/dist/{chunk-CSXHCSTH.js → chunk-ID4RJIVZ.js} +1 -1
- package/dist/{chunk-SBLKPTL3.js → chunk-JKMXND6V.js} +1 -1
- package/dist/{chunk-WE42GBGU.js → chunk-LAJQSHEI.js} +1 -1
- package/dist/{chunk-HCN5W76B.js → chunk-LLRUJD62.js} +1 -1
- package/dist/{chunk-2K65BSXS.js → chunk-M4TVRCMZ.js} +1 -1
- package/dist/{chunk-IUSLSROY.js → chunk-N56WAVYA.js} +1 -1
- package/dist/chunk-OI3HBIPK.js +2 -0
- package/dist/{chunk-GW6NZQTQ.js → chunk-PRLIHLCS.js} +1 -1
- package/dist/{chunk-7TJ6DWW3.js → chunk-Q5X6OXNS.js} +1 -1
- package/dist/{chunk-75SWXD2Z.js → chunk-SWA5B5B2.js} +1 -1
- package/dist/chunk-T7MWQQIF.js +3 -0
- package/dist/{chunk-ICDI27GZ.js → chunk-TGC2ZACO.js} +1 -1
- package/dist/{chunk-7NS3QUIE.js → chunk-TXG2H7YQ.js} +1 -1
- package/dist/{chunk-RAZP42IQ.js → chunk-VAXLSPPU.js} +1 -1
- package/dist/chunk-VMGZMXEM.js +10 -0
- package/dist/{chunk-CPZJPGLG.js → chunk-VNTY7BKC.js} +1 -1
- package/dist/chunk-W3YFF6OO.js +1 -0
- package/dist/{chunk-OLI3JPHJ.js → chunk-W7M3V7FR.js} +1 -1
- package/dist/{chunk-UUJJRXHG.js → chunk-WMHSVEIT.js} +1 -1
- package/dist/{chunk-OJX3RJ5A.js → chunk-WPBQ45ZL.js} +1 -1
- package/dist/{chunk-XZDOVPRC.js → chunk-WXGTU2M6.js} +1 -1
- package/dist/{chunk-3ZGDMTMD.js → chunk-XSIKDVAR.js} +1 -1
- package/dist/{chunk-QP2QSQ4U.js → chunk-YHREORHH.js} +1 -1
- package/dist/chunk-YTYLS2UM.js +1 -0
- package/dist/chunk-Z2QGNTGQ.js +1 -0
- package/dist/{chunk-UBH6X3D3.js → chunk-ZV5ETNLQ.js} +1 -1
- package/dist/entry-11.js +1 -1
- package/dist/entry-13.js +1 -1
- package/dist/entry-14.js +1 -1
- package/dist/entry-15.js +1 -1
- package/dist/entry-16.js +1 -1
- package/dist/entry-17.js +1 -1
- package/dist/entry-18.js +1 -0
- package/dist/entry-20.js +1 -1
- package/dist/entry-21.js +1 -1
- package/dist/entry-22.js +1 -1
- package/dist/entry-23.js +1 -1
- package/dist/entry-24.js +1 -1
- package/dist/entry-25.js +1 -1
- package/dist/entry-26.js +1 -2
- package/dist/entry-27.js +2 -1
- package/dist/entry-28.js +1 -4
- package/dist/entry-29.js +4 -1
- package/dist/entry-30.js +1 -1
- package/dist/entry-31.js +1 -1
- package/dist/entry-32.js +1 -18
- package/dist/entry-33.js +18 -1
- package/dist/entry-34.js +1 -1
- package/dist/entry-35.js +1 -1
- package/dist/entry-36.js +1 -1
- package/dist/entry-37.js +1 -1
- package/dist/entry-38.js +1 -1
- package/dist/entry-39.js +1 -1
- package/dist/entry-40.js +1 -1
- package/dist/entry-41.js +1 -1
- package/dist/entry-42.js +1 -1
- package/dist/entry-43.js +1 -1
- package/dist/entry-44.js +1 -1
- package/dist/entry-45.js +1 -1
- package/dist/entry-46.js +1 -25
- package/dist/entry-47.js +25 -1
- package/dist/entry-48.js +1 -1
- package/dist/entry-49.js +1 -1
- package/dist/entry-50.js +1 -1
- package/dist/entry-51.js +1 -3
- package/dist/entry-52.js +3 -13
- package/dist/entry-53.js +13 -1
- package/dist/entry-54.js +1 -1
- package/dist/entry-55.js +1 -1
- package/dist/entry-56.js +1 -1
- package/dist/entry-57.js +1 -1
- package/dist/entry-58.js +1 -1
- package/dist/entry-59.js +1 -1
- package/dist/entry-6.js +1 -1
- package/dist/entry-60.js +1 -1
- package/dist/entry-61.js +1 -1
- package/dist/entry-62.js +1 -0
- package/dist/entry-63.js +0 -1
- package/dist/entry-64.js +1 -0
- package/dist/entry-65.js +0 -1
- package/dist/entry-66.js +1 -1
- package/dist/entry-67.js +1 -1
- package/dist/entry-68.js +1 -1
- package/dist/entry-69.js +1 -1
- package/dist/entry-7.js +1 -1
- package/dist/entry-70.js +1 -1
- package/dist/entry-71.js +1 -1
- package/dist/entry-72.js +1 -0
- package/dist/entry-73.js +0 -1
- package/dist/entry-74.js +1 -0
- package/dist/entry-75.js +0 -1
- package/dist/entry-76.js +1 -1
- package/dist/entry-77.js +1 -1
- package/dist/entry-78.js +1 -80
- package/dist/entry-79.js +76 -17
- package/dist/entry-80.js +22 -2
- package/dist/entry-81.js +2 -1
- package/dist/entry-82.js +1 -1
- package/dist/entry-83.js +1 -1
- package/dist/entry-84.js +1 -3
- package/dist/entry-85.js +3 -1
- package/dist/entry-86.js +1 -1
- package/dist/entry-87.js +1 -1
- package/dist/entry-88.js +1 -0
- package/dist/pi-agent-ide.js +53 -24
- package/docs/agent-guides/search-code.md +3 -1
- package/docs/agent-guides/ssh.md +1 -1
- package/docs/configuration.md +18 -6
- package/docs/development.md +1 -13
- package/docs/extensions.md +1 -1
- package/docs/releases.md +1 -1
- package/docs/settings-help.md +39 -0
- package/docs/tools.md +1 -0
- package/docs/user-hooks.md +3 -1
- package/node_modules/pi-agent-doctor/package.json +7 -10
- package/node_modules/pi-agent-documentation/package.json +2 -2
- package/node_modules/pi-agent-documentation/runtime/entry-26.js +1 -0
- package/node_modules/pi-agent-filesystem/package.json +8 -8
- package/node_modules/pi-agent-filesystem-image/package.json +4 -4
- package/node_modules/pi-agent-filesystem-jq/package.json +6 -7
- package/node_modules/pi-agent-filesystem-pdf/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/runtime/entry-31.js +2 -0
- package/node_modules/pi-agent-ide-ast/package.json +15 -41
- package/node_modules/pi-agent-ide-ast/runtime/entry-32.js +0 -1
- package/node_modules/pi-agent-ide-ast/runtime/entry-33.js +2 -0
- package/node_modules/pi-agent-ide-changes/package.json +10 -11
- package/node_modules/pi-agent-ide-changes/runtime/entry-34.js +0 -1
- package/node_modules/pi-agent-ide-formatter/package.json +4 -4
- package/node_modules/pi-agent-ide-languages/package.json +3 -3
- package/node_modules/pi-agent-ide-lint/package.json +8 -8
- package/node_modules/pi-agent-ide-lsp/package.json +10 -13
- package/node_modules/pi-agent-ide-lsp/runtime/entry-39.js +2 -0
- package/node_modules/pi-agent-image/package.json +3 -3
- package/node_modules/pi-agent-invariant/package.json +2 -2
- package/node_modules/pi-agent-pdf/package.json +3 -4
- package/node_modules/pi-agent-read/package.json +12 -12
- package/node_modules/pi-agent-read/runtime/entry-46.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-47.js +2 -0
- package/node_modules/pi-agent-resource/package.json +2 -2
- package/node_modules/pi-agent-resource/src/result-targets.ts +9 -0
- package/node_modules/pi-agent-search/package.json +9 -9
- package/node_modules/pi-agent-search/runtime/entry-51.js +0 -1
- package/node_modules/pi-agent-search/src/api/plugin-protocol.ts +1 -1
- package/node_modules/pi-agent-search/src/api/presentation.ts +10 -2
- package/node_modules/pi-agent-search/src/api/search-parameters.ts +1 -1
- package/node_modules/pi-agent-search/src/api/search.ts +7 -0
- package/node_modules/pi-agent-search/src/core/search-core.ts +23 -3
- package/node_modules/pi-agent-search-text/index.ts +2 -0
- package/node_modules/pi-agent-search-text/package.json +14 -14
- package/node_modules/pi-agent-search-text/runtime/entry-53.js +1 -0
- package/node_modules/pi-agent-search-text/src/search-backend.ts +18 -10
- package/node_modules/pi-agent-search-text/src/search-session.ts +68 -9
- package/node_modules/pi-agent-text/package.json +3 -3
- package/node_modules/pi-agent-text/runtime/entry-57.js +1 -0
- package/node_modules/pi-agent-text-anchor-constant/package.json +4 -4
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-58.js +2 -0
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -6
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-59.js +0 -1
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-60.js +2 -0
- package/node_modules/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-61.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-62.js +2 -0
- package/node_modules/pi-agent-text-editor/package.json +26 -34
- package/node_modules/pi-agent-text-editor/runtime/entry-78.js +0 -1
- package/node_modules/pi-agent-text-editor/src/api/delete-guard.ts +1 -1
- package/node_modules/pi-agent-text-editor/src/api/native-edit-batch-event.ts +2 -2
- package/node_modules/pi-agent-text-editor/src/core/delete-policy.ts +6 -12
- package/node_modules/pi-agent-text-editor/src/core/extension.ts +1 -0
- package/node_modules/pi-agent-text-editor/src/core/file-operation-tools.ts +49 -21
- package/node_modules/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +18 -9
- package/node_modules/pi-agent-text-editor/src/core/native-text-edit-batch.ts +2 -2
- package/node_modules/pi-agent-text-editor/src/core/temporary-directories.ts +13 -9
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +16 -8
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +118 -36
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch.ts +7 -4
- package/node_modules/pi-agent-text-editor/src/core/text-mutation.ts +6 -8
- package/node_modules/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +22 -1
- package/node_modules/pi-agent-text-editor-renderer/package.json +6 -8
- package/node_modules/pi-agent-text-editor-renderer/src/renderer.ts +22 -0
- package/node_modules/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-81.js +2 -0
- package/node_modules/pi-agent-tool-call-interception/package.json +3 -3
- package/node_modules/pi-agent-tool-ui/package.json +2 -2
- package/node_modules/pi-agent-tool-ui/runtime/entry-83.js +1 -0
- package/node_modules/pi-agent-web/package.json +8 -11
- package/node_modules/pi-agent-web-html/package.json +3 -5
- package/node_modules/pi-agent-web-image/package.json +4 -4
- package/node_modules/pi-agent-web-pdf/package.json +4 -4
- package/node_modules/pi-agent-web-text/package.json +4 -4
- package/node_modules/pi-agent-web-text/runtime/entry-88.js +2 -0
- package/package.json +43 -39
- package/skills/configure-agent-ide/SKILL.md +38 -0
- package/src/api/content.ts +6 -0
- package/src/api/tips.ts +3 -0
- package/src/composite/nested-tool-rendering.ts +16 -5
- package/src/composite/preferences.ts +13 -0
- package/src/composite/settings-documentation.ts +59 -0
- package/src/composite/settings-help.ts +106 -0
- package/src/composite/text-results.ts +50 -22
- package/src/documentation/extension.ts +12 -0
- package/src/documentation/search.ts +166 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +8 -8
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/package.json +6 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/runtime/entry-31.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-27.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +8 -11
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +3 -5
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/runtime/entry-88.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-84.js +2 -0
- package/src/extensions/pi-agent-read/package.json +12 -12
- package/src/extensions/pi-agent-read/runtime/entry-46.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-47.js +2 -0
- package/src/extensions/pi-agent-search/package.json +9 -9
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/index.ts +2 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +14 -14
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-53.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-56.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-backend.ts +18 -10
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-session.ts +68 -9
- package/src/extensions/pi-agent-search/runtime/entry-51.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-52.js +2 -0
- package/src/extensions/pi-agent-search/src/api/plugin-protocol.ts +1 -1
- package/src/extensions/pi-agent-search/src/api/presentation.ts +10 -2
- package/src/extensions/pi-agent-search/src/api/search-parameters.ts +1 -1
- package/src/extensions/pi-agent-search/src/api/search.ts +7 -0
- package/src/extensions/pi-agent-search/src/core/search-core.ts +23 -3
- package/src/extensions/pi-agent-text-editor/package.json +26 -34
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +4 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-58.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +5 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-59.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-60.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-61.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-62.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +6 -8
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/renderer.ts +22 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-81.js +2 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-78.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-79.js +2 -0
- package/src/extensions/pi-agent-text-editor/src/api/delete-guard.ts +1 -1
- package/src/extensions/pi-agent-text-editor/src/api/native-edit-batch-event.ts +2 -2
- package/src/extensions/pi-agent-text-editor/src/core/delete-policy.ts +6 -12
- package/src/extensions/pi-agent-text-editor/src/core/extension.ts +1 -0
- package/src/extensions/pi-agent-text-editor/src/core/file-operation-tools.ts +49 -21
- package/src/extensions/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +18 -9
- package/src/extensions/pi-agent-text-editor/src/core/native-text-edit-batch.ts +2 -2
- package/src/extensions/pi-agent-text-editor/src/core/temporary-directories.ts +13 -9
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +16 -8
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +118 -36
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch.ts +7 -4
- package/src/extensions/pi-agent-text-editor/src/core/text-mutation.ts +6 -8
- package/src/extensions/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +22 -1
- package/src/pi-agent-ide.ts +14 -2
- package/src/plugins/pi-agent-ide-ast/package.json +15 -41
- package/src/plugins/pi-agent-ide-ast/runtime/entry-32.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-33.js +2 -0
- package/src/plugins/pi-agent-ide-changes/package.json +10 -11
- package/src/plugins/pi-agent-ide-changes/runtime/entry-34.js +0 -1
- package/src/plugins/pi-agent-ide-formatter/package.json +4 -4
- package/src/plugins/pi-agent-ide-languages/package.json +3 -3
- package/src/plugins/pi-agent-ide-lint/package.json +8 -8
- package/src/plugins/pi-agent-ide-lsp/package.json +10 -13
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-39.js +2 -0
- package/src/tips/core.ts +5 -2
- package/src/tips/extension.ts +30 -2
- package/src/tips/persistence.ts +29 -27
- package/src/tips/setup-hint.ts +19 -0
- package/dist/chunk-5KFVDYCI.js +0 -1
- package/dist/chunk-ABFCAOU5.js +0 -1
- package/dist/chunk-BIG45IPN.js +0 -2
- package/dist/chunk-BMOJTJJJ.js +0 -3
- package/dist/chunk-BQ67M4NC.js +0 -3
- package/dist/chunk-IH5NW5JX.js +0 -11
- package/dist/chunk-NRZO5KJT.js +0 -9
- package/dist/chunk-O36UC74T.js +0 -1
- package/dist/chunk-SSWUUBIR.js +0 -1
- package/dist/entry-19.js +0 -1
- package/docs/research/apply-native-capability-matrix.md +0 -174
- package/docs/research/apply-read-latency.md +0 -221
- package/docs/research/codemode-write-context.md +0 -56
- package/docs/research/lpt-393-fuzzy-results/file.json +0 -152
- package/docs/research/lpt-393-fuzzy-results/repo.json +0 -122
- package/docs/research/lpt-393-search-fuzzy-fallback.md +0 -97
- package/docs/research/native-codemode-batch-decision.md +0 -31
- package/docs/research/native-codemode-batching.md +0 -65
- package/node_modules/pi-agent-doctor/runtime/entry-19.js +0 -1
- package/node_modules/pi-agent-filesystem/runtime/entry-26.js +0 -2
- package/node_modules/pi-agent-ide-ast/runtime/entry-31.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-33.js +0 -1
- package/node_modules/pi-agent-image/runtime/entry-39.js +0 -1
- package/node_modules/pi-agent-resource/runtime/entry-47.js +0 -1
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-57.js +0 -2
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-58.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-60.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-62.js +0 -1
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-81.js +0 -1
- package/node_modules/pi-agent-web/runtime/entry-83.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-27.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-26.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-84.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-83.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-42.js +0 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-52.js +0 -2
- package/src/extensions/pi-agent-search/runtime/entry-48.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-57.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-58.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-60.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/runtime/entry-79.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-62.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-31.js +0 -1
- package/src/plugins/pi-agent-ide-changes/runtime/entry-33.js +0 -1
- /package/node_modules/{pi-agent-documentation → pi-agent-doctor}/runtime/entry-25.js +0 -0
- /package/node_modules/{pi-agent-filesystem-image → pi-agent-filesystem}/runtime/entry-27.js +0 -0
- /package/node_modules/{pi-agent-filesystem-jq → pi-agent-filesystem-image}/runtime/entry-28.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-jq}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-30.js +0 -0
- /package/node_modules/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-36.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-37.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-38.js +0 -0
- /package/node_modules/{pi-agent-invariant → pi-agent-image}/runtime/entry-40.js +0 -0
- /package/node_modules/{pi-agent-pdf → pi-agent-invariant}/runtime/entry-41.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-pdf}/runtime/entry-42.js +0 -0
- /package/node_modules/{pi-agent-search → pi-agent-resource}/runtime/entry-48.js +0 -0
- /package/node_modules/{pi-agent-search-text → pi-agent-search}/runtime/entry-52.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-56.js +0 -0
- /package/node_modules/{pi-agent-text-editor-renderer → pi-agent-text-editor}/runtime/entry-79.js +0 -0
- /package/node_modules/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-80.js +0 -0
- /package/node_modules/{pi-agent-tool-ui → pi-agent-tool-call-interception}/runtime/entry-82.js +0 -0
- /package/node_modules/{pi-agent-web-html → pi-agent-web}/runtime/entry-84.js +0 -0
- /package/node_modules/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-85.js +0 -0
- /package/node_modules/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-86.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-87.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-jq → pi-agent-filesystem-image}/runtime/entry-28.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-pdf → pi-agent-filesystem-jq}/runtime/entry-29.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-30.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-85.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-86.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-87.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-80.js +0 -0
- /package/src/plugins/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-35.js +0 -0
- /package/src/plugins/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-36.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-37.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-38.js +0 -0
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"scope": "file",
|
|
3
|
-
"request": {
|
|
4
|
-
"query": "generateHintStrings",
|
|
5
|
-
"path": "tests/integration/extensions/pi-agent-search/fixtures/fuzzy-vimium/link_hints.js"
|
|
6
|
-
},
|
|
7
|
-
"node": "v24.20.0",
|
|
8
|
-
"baselineRssBytes": 147570688,
|
|
9
|
-
"baselineHeapBytes": 52466544,
|
|
10
|
-
"peakNodeRssKiB": 156064,
|
|
11
|
-
"runs": [
|
|
12
|
-
{
|
|
13
|
-
"repetition": 0,
|
|
14
|
-
"invocation": "first in this process",
|
|
15
|
-
"resolveMs": 48.63072999999986,
|
|
16
|
-
"registrationMs": 4.892467000000124,
|
|
17
|
-
"totalMs": 53.52319699999998,
|
|
18
|
-
"ordinaryMs": 6.71617399999991,
|
|
19
|
-
"status": "ready",
|
|
20
|
-
"candidates": [
|
|
21
|
-
{
|
|
22
|
-
"identifier": "hintStrings",
|
|
23
|
-
"matchCount": 5,
|
|
24
|
-
"complete": true
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"identifier": "generateHintString",
|
|
28
|
-
"matchCount": 2,
|
|
29
|
-
"complete": true
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"rssBytes": 152731648,
|
|
33
|
-
"heapBytes": 43699128
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"repetition": 1,
|
|
37
|
-
"invocation": "repeat; fresh name scan",
|
|
38
|
-
"resolveMs": 30.852624000000105,
|
|
39
|
-
"registrationMs": 2.1712270000000444,
|
|
40
|
-
"totalMs": 33.02385100000015,
|
|
41
|
-
"ordinaryMs": 7.320789000000104,
|
|
42
|
-
"status": "ready",
|
|
43
|
-
"candidates": [
|
|
44
|
-
{
|
|
45
|
-
"identifier": "hintStrings",
|
|
46
|
-
"matchCount": 5,
|
|
47
|
-
"complete": true
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"identifier": "generateHintString",
|
|
51
|
-
"matchCount": 2,
|
|
52
|
-
"complete": true
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"rssBytes": 152862720,
|
|
56
|
-
"heapBytes": 49453640
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"repetition": 2,
|
|
60
|
-
"invocation": "repeat; fresh name scan",
|
|
61
|
-
"resolveMs": 30.69540700000016,
|
|
62
|
-
"registrationMs": 1.7809270000000197,
|
|
63
|
-
"totalMs": 32.47633400000018,
|
|
64
|
-
"ordinaryMs": 7.036112000000003,
|
|
65
|
-
"status": "ready",
|
|
66
|
-
"candidates": [
|
|
67
|
-
{
|
|
68
|
-
"identifier": "hintStrings",
|
|
69
|
-
"matchCount": 5,
|
|
70
|
-
"complete": true
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"identifier": "generateHintString",
|
|
74
|
-
"matchCount": 2,
|
|
75
|
-
"complete": true
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"rssBytes": 152862720,
|
|
79
|
-
"heapBytes": 53448504
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"repetition": 3,
|
|
83
|
-
"invocation": "repeat; fresh name scan",
|
|
84
|
-
"resolveMs": 25.92471099999989,
|
|
85
|
-
"registrationMs": 1.7080989999999474,
|
|
86
|
-
"totalMs": 27.632809999999836,
|
|
87
|
-
"ordinaryMs": 6.778381999999965,
|
|
88
|
-
"status": "ready",
|
|
89
|
-
"candidates": [
|
|
90
|
-
{
|
|
91
|
-
"identifier": "hintStrings",
|
|
92
|
-
"matchCount": 5,
|
|
93
|
-
"complete": true
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"identifier": "generateHintString",
|
|
97
|
-
"matchCount": 2,
|
|
98
|
-
"complete": true
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"rssBytes": 152862720,
|
|
102
|
-
"heapBytes": 57350904
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"repetition": 4,
|
|
106
|
-
"invocation": "repeat; fresh name scan",
|
|
107
|
-
"resolveMs": 30.013942999999927,
|
|
108
|
-
"registrationMs": 2.700010999999904,
|
|
109
|
-
"totalMs": 32.71395399999983,
|
|
110
|
-
"ordinaryMs": 7.596590999999989,
|
|
111
|
-
"status": "ready",
|
|
112
|
-
"candidates": [
|
|
113
|
-
{
|
|
114
|
-
"identifier": "hintStrings",
|
|
115
|
-
"matchCount": 5,
|
|
116
|
-
"complete": true
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"identifier": "generateHintString",
|
|
120
|
-
"matchCount": 2,
|
|
121
|
-
"complete": true
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"rssBytes": 155746304,
|
|
125
|
-
"heapBytes": 61306432
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"repetition": 5,
|
|
129
|
-
"invocation": "repeat; fresh name scan",
|
|
130
|
-
"resolveMs": 30.76448000000005,
|
|
131
|
-
"registrationMs": 2.2739610000000994,
|
|
132
|
-
"totalMs": 33.03844100000015,
|
|
133
|
-
"ordinaryMs": 7.54132699999991,
|
|
134
|
-
"status": "ready",
|
|
135
|
-
"candidates": [
|
|
136
|
-
{
|
|
137
|
-
"identifier": "hintStrings",
|
|
138
|
-
"matchCount": 5,
|
|
139
|
-
"complete": true
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"identifier": "generateHintString",
|
|
143
|
-
"matchCount": 2,
|
|
144
|
-
"complete": true
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"rssBytes": 159809536,
|
|
148
|
-
"heapBytes": 65303264
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"note": "First invocation is not a flushed OS cache. Resolve includes ordinary search, name collection and exact verification. Registration includes bounded snapshots. RSS includes imported runtime modules; it is not the vocabulary size and does not include child-process RSS."
|
|
152
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"scope": "repo",
|
|
3
|
-
"request": {
|
|
4
|
-
"query": "planSearchPresentations",
|
|
5
|
-
"path": "src"
|
|
6
|
-
},
|
|
7
|
-
"node": "v24.20.0",
|
|
8
|
-
"baselineRssBytes": 149012480,
|
|
9
|
-
"baselineHeapBytes": 52543264,
|
|
10
|
-
"peakNodeRssKiB": 253136,
|
|
11
|
-
"runs": [
|
|
12
|
-
{
|
|
13
|
-
"repetition": 0,
|
|
14
|
-
"invocation": "first in this process",
|
|
15
|
-
"resolveMs": 197.02866299999994,
|
|
16
|
-
"registrationMs": 5.886676999999963,
|
|
17
|
-
"totalMs": 202.9153399999999,
|
|
18
|
-
"ordinaryMs": 11.027428999999984,
|
|
19
|
-
"status": "ready",
|
|
20
|
-
"candidates": [
|
|
21
|
-
{
|
|
22
|
-
"identifier": "planSearchPresentation",
|
|
23
|
-
"matchCount": 10,
|
|
24
|
-
"complete": true
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"rssBytes": 192319488,
|
|
28
|
-
"heapBytes": 42126184
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"repetition": 1,
|
|
32
|
-
"invocation": "repeat; fresh name scan",
|
|
33
|
-
"resolveMs": 153.16502000000014,
|
|
34
|
-
"registrationMs": 2.6196299999999155,
|
|
35
|
-
"totalMs": 155.78465000000006,
|
|
36
|
-
"ordinaryMs": 13.262361000000055,
|
|
37
|
-
"status": "ready",
|
|
38
|
-
"candidates": [
|
|
39
|
-
{
|
|
40
|
-
"identifier": "planSearchPresentation",
|
|
41
|
-
"matchCount": 10,
|
|
42
|
-
"complete": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"rssBytes": 193245184,
|
|
46
|
-
"heapBytes": 43182040
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"repetition": 2,
|
|
50
|
-
"invocation": "repeat; fresh name scan",
|
|
51
|
-
"resolveMs": 140.010812,
|
|
52
|
-
"registrationMs": 2.463557999999921,
|
|
53
|
-
"totalMs": 142.4743699999999,
|
|
54
|
-
"ordinaryMs": 13.206528999999819,
|
|
55
|
-
"status": "ready",
|
|
56
|
-
"candidates": [
|
|
57
|
-
{
|
|
58
|
-
"identifier": "planSearchPresentation",
|
|
59
|
-
"matchCount": 10,
|
|
60
|
-
"complete": true
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"rssBytes": 194007040,
|
|
64
|
-
"heapBytes": 44272152
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"repetition": 3,
|
|
68
|
-
"invocation": "repeat; fresh name scan",
|
|
69
|
-
"resolveMs": 155.73641399999997,
|
|
70
|
-
"registrationMs": 2.2927649999999176,
|
|
71
|
-
"totalMs": 158.02917899999989,
|
|
72
|
-
"ordinaryMs": 13.180634999999938,
|
|
73
|
-
"status": "ready",
|
|
74
|
-
"candidates": [
|
|
75
|
-
{
|
|
76
|
-
"identifier": "planSearchPresentation",
|
|
77
|
-
"matchCount": 10,
|
|
78
|
-
"complete": true
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"rssBytes": 194613248,
|
|
82
|
-
"heapBytes": 45255216
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"repetition": 4,
|
|
86
|
-
"invocation": "repeat; fresh name scan",
|
|
87
|
-
"resolveMs": 155.2331959999999,
|
|
88
|
-
"registrationMs": 2.0157530000001316,
|
|
89
|
-
"totalMs": 157.24894900000004,
|
|
90
|
-
"ordinaryMs": 12.454251000000113,
|
|
91
|
-
"status": "ready",
|
|
92
|
-
"candidates": [
|
|
93
|
-
{
|
|
94
|
-
"identifier": "planSearchPresentation",
|
|
95
|
-
"matchCount": 10,
|
|
96
|
-
"complete": true
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"rssBytes": 195268608,
|
|
100
|
-
"heapBytes": 46803240
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"repetition": 5,
|
|
104
|
-
"invocation": "repeat; fresh name scan",
|
|
105
|
-
"resolveMs": 147.09523799999988,
|
|
106
|
-
"registrationMs": 2.65529800000013,
|
|
107
|
-
"totalMs": 149.750536,
|
|
108
|
-
"ordinaryMs": 11.426179999999931,
|
|
109
|
-
"status": "ready",
|
|
110
|
-
"candidates": [
|
|
111
|
-
{
|
|
112
|
-
"identifier": "planSearchPresentation",
|
|
113
|
-
"matchCount": 10,
|
|
114
|
-
"complete": true
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"rssBytes": 195883008,
|
|
118
|
-
"heapBytes": 47151672
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"note": "First invocation is not a flushed OS cache. Resolve includes ordinary search, name collection and exact verification. Registration includes bounded snapshots. RSS includes imported runtime modules; it is not the vocabulary size and does not include child-process RSS."
|
|
122
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# LPT-393: zero-result fuzzy Search verification
|
|
2
|
-
|
|
3
|
-
Search can now suggest nearby identifier spellings after a complete zero-result search. This is a spelling fallback, not semantic search. No model, new dependency, service, or persistent index is needed.
|
|
4
|
-
|
|
5
|
-
## How to use it
|
|
6
|
-
|
|
7
|
-
Call Search as usual with an unquoted identifier and a useful scope:
|
|
8
|
-
|
|
9
|
-
```js
|
|
10
|
-
search({ query: "generateHintStrings", path: "content_scripts/link_hints.js" });
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
The original result stays empty. On the pinned Vimium fixture, two separate groups follow:
|
|
14
|
-
|
|
15
|
-
- `hintStrings`: remove the leading `generate` component; 5 exact spans.
|
|
16
|
-
- `generateHintString`: one character edit; 2 exact spans.
|
|
17
|
-
|
|
18
|
-
These counts are occurrences, not implementations. Read the suggested source before deciding which name is relevant. Local groups provide their own Search references. Each all-reference repeats only that exact spelling if the files change, not the fuzzy ranking. Individual references become stale normally.
|
|
19
|
-
|
|
20
|
-
Inside native Codemode, the original `data.matches` remains empty. Use `data.fuzzy.candidates`, inspect each `selection.complete`, and read its `selection.all.line` when available. `selection.truncated` only describes the three-location public preview, not capture completeness. URL groups instead provide the requested URL and line ranges, with no editable Search references.
|
|
21
|
-
|
|
22
|
-
The fallback applies only to suitable unquoted ASCII identifiers, 5–80 characters long, after the ordinary search completes with zero results. Quoted queries, Boolean queries, explicit protocols, nonzero results, and incomplete searches keep their existing behavior. Ranking puts case/separator normalization first, one missing or extra edge component next, and one character edit last. Digits are not corrected. Suggestions do not claim synonyms or equivalent behavior.
|
|
23
|
-
|
|
24
|
-
## User TUI and agent results are separate
|
|
25
|
-
|
|
26
|
-
The local Search card now reports `0 exact · 10 fuzzy matches · 4 files` for the repository typo case. Below it, each candidate has a mechanical reason and a bounded source preview: file, line number and highlighted code. The preview uses at most three captured spans per name, with short context around the first highlighted span of each line. Shared source files count once in the header. Incomplete totals carry `+`; compact panels keep their expansion hint.
|
|
27
|
-
|
|
28
|
-
These previews are private renderer metadata, not agent-facing text or structured data. The agent still receives the original zero and separate exact candidate groups with Read references. URL results keep their existing URL/line output; this user-requested card revision changes the native local/repository panel.
|
|
29
|
-
|
|
30
|
-
The screenshot that showed only `No matches` came from restoring the older global renderer before merging this branch. That older renderer does not understand the new groups. Live verification uses the branch loader; global deployment still requires acceptance and merge.
|
|
31
|
-
|
|
32
|
-
## Bounds and freshness
|
|
33
|
-
|
|
34
|
-
Local collection streams unique names using the ordinary ripgrep scope and ignore/glob rules. It does not retain all occurrences just to build a vocabulary. Every invocation scans fresh names; there is no cache to invalidate after edits or checkout changes.
|
|
35
|
-
|
|
36
|
-
- At most 20,000 unique names and 8 MiB of name-stream input.
|
|
37
|
-
- At most 5 candidate groups.
|
|
38
|
-
- Exact verification captures at most 200 spans and 4 MiB of output per candidate.
|
|
39
|
-
- Collection and verification share a two-second deadline. Registration has a separate two-second phase budget and bounded snapshot reads.
|
|
40
|
-
- Source-size checks bound candidate snapshots to 8 MiB across the captured sources; registration and refresh also retain byte limits.
|
|
41
|
-
- Budget skips and extra-branch failures preserve the original zero and explain why suggestions are unavailable. Parent cancellation still aborts the call.
|
|
42
|
-
- Incomplete groups have no complete all-reference. A source race can leave readable locations without stable references; the result explains this.
|
|
43
|
-
|
|
44
|
-
URL search reuses the already fetched and converted body, with an 8 MiB content budget. It does not fetch the URL again for each candidate.
|
|
45
|
-
|
|
46
|
-
## Measured file and repository cases
|
|
47
|
-
|
|
48
|
-
Measured with Node 24.20.0 on this checkout. Each scope ran once, then five more times with a fresh name scan. Total time includes the ordinary search, vocabulary scan, exact verification, and reference registration. The ordinary backend was measured separately as a baseline.
|
|
49
|
-
|
|
50
|
-
| Scope / query | First total | Median of five repeats | Ordinary median | Node RSS before calls | Peak Node RSS |
|
|
51
|
-
| -------------------------------------------- | ----------: | ---------------------: | --------------: | --------------------: | ------------: |
|
|
52
|
-
| Pinned Vimium file / `generateHintStrings` | 53.52 ms | 32.71 ms | 7.18 ms | 140.73 MiB | 152.41 MiB |
|
|
53
|
-
| Repository `src` / `planSearchPresentations` | 202.92 ms | 155.78 ms | 12.82 ms | 142.11 MiB | 247.20 MiB |
|
|
54
|
-
|
|
55
|
-
All six file runs returned the same 5/2 groups. All six repository runs returned `planSearchPresentation` with 10 exact spans. This repository case scans `src`, not every file in the repository.
|
|
56
|
-
|
|
57
|
-
The first call is not a flushed OS-cache measurement. RSS includes imported Node/runtime modules and process allocations, not just the vocabulary, and excludes child-process RSS. These are two measured cases, not a latency or memory guarantee for arbitrary repositories. Raw measurements: [file](lpt-393-fuzzy-results/file.json) and [repository](lpt-393-fuzzy-results/repo.json).
|
|
58
|
-
|
|
59
|
-
## Verification evidence
|
|
60
|
-
|
|
61
|
-
- 18 relevant unit files, 133 tests passed; focused type-aware lint passed.
|
|
62
|
-
- Four real-Pi integration files, 11 tests passed, covering fuzzy fallback, ordinary hybrid Search, web Search, and structured results. The two fuzzy integrations were rerun after the last renderer change and passed.
|
|
63
|
-
- Contracts cover query guards, scope/ignore rules, edits/removals/checkouts, byte and capture limits, cancellation, source races, bounded refresh, dollar identifier boundaries, typed results, and persisted rendering.
|
|
64
|
-
- Native local and URL Search plus native Codemode-to-Read were exercised after reloading the working extension. `hintStrings` Read returned four unique lines containing the five spans, including the method declaration at line 886.
|
|
65
|
-
- Actual `inspect_tui` captures of Herdr pane `w3GX:p1`, 123×108 cells, revision 147, live bottom: local groups showed both names, counts, reasons and locations without raw anchors or clipping. The URL compact result showed both names/counts and its expansion hint; remaining detail is available with Ctrl+O.
|
|
66
|
-
- After the user requested explicit fuzzy status and highlighted source previews, actual viewport captures of the same pane at revisions 606 and 635 showed the new `0 exact` header, distinct fuzzy/file totals, candidate names, file/line rows and highlighted code. Renderer persistence, bounded previews, partial totals, shared-file counting and isolation from agent output are covered by tests.
|
|
67
|
-
- Normal configured startup loaded exactly one IDE extension without errors or warnings, both with the temporary worktree loader and after restoring global loading. No model prompt was sent.
|
|
68
|
-
- Full source typecheck, package boundaries, machine-path check, catalog generation/check, public package build, and diff whitespace check passed.
|
|
69
|
-
- The effective Read/Search interface was exported and read completely. New workflow guidance lives in `docs:search-code`; callable parameter schemas are unchanged.
|
|
70
|
-
|
|
71
|
-
The temporary local settings/loader and local HTTP server were removed after verification. The global runtime was restored. The user explicitly accepted the feature after the live demo and a separate real-Pi recording of the card. Acceptance authorizes the PR into develop; it does not itself deploy the feature.
|
|
72
|
-
|
|
73
|
-
## Repeat the checks
|
|
74
|
-
|
|
75
|
-
```sh
|
|
76
|
-
pnpm exec vitest run src/extensions/pi-agent-search \
|
|
77
|
-
src/extensions/pi-agent-read/extensions/pi-agent-web/test/search.test.ts
|
|
78
|
-
pnpm exec pi-test run -- pnpm exec vitest run --config vitest.integration.config.mjs \
|
|
79
|
-
tests/integration/extensions/pi-agent-search/fuzzy-fallback.integration.test.ts
|
|
80
|
-
pnpm exec oxnode scripts/dev/check-normal-startup.ts
|
|
81
|
-
pnpm typecheck
|
|
82
|
-
pnpm check:boundaries
|
|
83
|
-
pnpm check:paths
|
|
84
|
-
pnpm docs:catalog
|
|
85
|
-
pnpm check:catalog
|
|
86
|
-
pnpm check:package
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
To repeat the measured cases, bundle the tracked profiler into the ignored temporary directory, then run each scope:
|
|
90
|
-
|
|
91
|
-
```sh
|
|
92
|
-
pnpm exec esbuild dev/performance/fuzzy-search.ts --bundle --platform=node \
|
|
93
|
-
--format=esm --target=node24 --external:@earendil-works/* \
|
|
94
|
-
--external:typebox --external:typebox/* --outfile=.tmp/fuzzy-verification/profile.mjs
|
|
95
|
-
node .tmp/fuzzy-verification/profile.mjs file
|
|
96
|
-
node .tmp/fuzzy-verification/profile.mjs repo
|
|
97
|
-
```
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Solution decision: accumulate sequential Codemode text edits
|
|
2
|
-
|
|
3
|
-
This records the original batching decision. LPT-403 later removed Apply without changing the native batching policy.
|
|
4
|
-
|
|
5
|
-
LPT-439 later made Write immediate: pending edits commit before Write, and Write saves and finishes its post-edit processing before returning. If an existing file already matches the supplied content, Write returns its whole-file selection without writing or running post-edit handlers. A missing empty file is still created. Write does not join the pending batch. The policy below still applies to other eligible text edits.
|
|
6
|
-
|
|
7
|
-
## Question
|
|
8
|
-
|
|
9
|
-
Should sequential editor calls in native Codemode share only original coordinates, or also one combined write, and where should that batch end?
|
|
10
|
-
|
|
11
|
-
## Decision
|
|
12
|
-
|
|
13
|
-
The user chose an original snapshot and one combined write, not immediate writes with coordinate translation.
|
|
14
|
-
|
|
15
|
-
Sequential text-edit calls accept checked changes into a pending batch. Before commit, their results must say the changes are accepted and not yet applied. They must not present a final written file or claim the operation is committed.
|
|
16
|
-
|
|
17
|
-
The batch ends before another tool runs or when the script finishes. A read, search or terminal call after edits must see committed files. Later edits start a new batch with a new snapshot. A mode of an editor tool that cannot join the text batch also needs a boundary before its own effects.
|
|
18
|
-
|
|
19
|
-
An ordinary script exception does not discard accepted independent edits. Finish those edits and report both their commit result and the script failure. A rejected operation does not become an accepted edit.
|
|
20
|
-
|
|
21
|
-
Do not replace or re-register native Codemode, change Apply exposure, bypass Pi's tool pipeline, or silently repair stale anchors by searching for similar text. Preserve the existing direct-call batch behavior.
|
|
22
|
-
|
|
23
|
-
The user approved end-to-end implementation after this discussion. Pending edits are discarded on abort or script deadline. The parent Codemode result reports final file effects separately from child acceptance, while preserving native child call IDs and results.
|
|
24
|
-
|
|
25
|
-
## Why
|
|
26
|
-
|
|
27
|
-
The user wants the same original-snapshot approach as the direct editor batch. Translating coordinates while writing after every call would preserve only part of that behavior. Waiting for future awaited calls would deadlock the script, so earlier calls must return before the combined write.
|
|
28
|
-
|
|
29
|
-
Flushing before another tool gives that tool real committed files rather than an invisible virtual workspace. Keeping accepted independent edits after an ordinary script error follows the user's explicit choice.
|
|
30
|
-
|
|
31
|
-
[Research and source evidence](native-codemode-batching.md) records the existing mechanisms and the unproven boundaries. The [sequential real-Pi suite](https://github.com/alexshpunt/pi-agent-ide/blob/develop/tests/integration/native-codemode.integration.test.ts) checks this contract against real files. The original red reproduction is preserved in commit de82738.
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Context research: native Codemode edit batching
|
|
2
|
-
|
|
3
|
-
This records the investigation at revision ce8e0bc, before implementation. Keep its red-probe findings as historical evidence. The [solution decision](native-codemode-batch-decision.md) describes the agreed behavior; the linked suite now tests the implementation.
|
|
4
|
-
|
|
5
|
-
## Question
|
|
6
|
-
|
|
7
|
-
Can sequential calls to the existing editor tools share an original file snapshot and one combined write through native Pi Codemode, without replacing Codemode or bypassing Pi's tool pipeline?
|
|
8
|
-
|
|
9
|
-
## Findings
|
|
10
|
-
|
|
11
|
-
### Sequential calls currently write immediately
|
|
12
|
-
|
|
13
|
-
The real-Pi probe reads anchors, awaits an insertion, then awaits a replacement and a deletion using the original anchors. The insertion writes immediately. The replacement rejects its now-stale line anchor, so the deletion is never called. The real file contains only the insertion. The stale-anchor guard works; the requested sequential batch does not.
|
|
14
|
-
|
|
15
|
-
**Evidence:** [`native-codemode.integration.test.ts`](https://github.com/alexshpunt/pi-agent-ide/blob/de82738/tests/integration/native-codemode.integration.test.ts), revision `de82738`. `pnpm test:integration tests/integration/native-codemode.integration.test.ts` returned one failing test. Its stale-error and partial-file checks passed before the batch-success assertion failed.
|
|
16
|
-
|
|
17
|
-
### The current coordinator needs all calls before execution
|
|
18
|
-
|
|
19
|
-
`rewriteMessage()` discovers adjacent editor calls in an assistant message and builds a complete plan at `message_end`. `executeWithBatchCoordinator()` executes that plan once and splits its results between the original calls. A native Codemode message contains one script call, not the editor calls the script will later issue. Those child calls therefore have no precomputed plan.
|
|
20
|
-
|
|
21
|
-
`executeRegisteredTextBatch()` resolves each operation against the same text map, rejects overlapping edits and passes the combined changes to `core.editTexts()`.
|
|
22
|
-
|
|
23
|
-
**Evidence:** [`text-edit-batch-coordinator.ts`](../../src/extensions/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts), `rewriteMessage`, `ensureBatchExecution`, `executeWithBatchCoordinator`; [`text-edit-batch-registrar.ts`](../../src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts), `executeRegisteredTextBatch`.
|
|
24
|
-
|
|
25
|
-
### Waiting for future awaited calls would deadlock
|
|
26
|
-
|
|
27
|
-
Native Codemode awaits `ctx.executeTool()` and returns its outcome to the sandbox. In a sequential script, the next child call does not exist until the previous promise resolves. Holding the first promise open until the complete batch is known would stop the script from issuing the rest of the batch.
|
|
28
|
-
|
|
29
|
-
This means an accumulating batch must return a truthful acceptance result before the combined write. It cannot return the current final-file result from the first call.
|
|
30
|
-
|
|
31
|
-
**Evidence:** Pi `v0.99.1` [`execute.ts`](https://github.com/earendil-works/pi/blob/v0.99.1/packages/coding-agent/src/extensions/codemode/execute.ts), `executeCodemode`; [`native Codemode contract`](https://github.com/earendil-works/pi/blob/v0.99.1/packages/coding-agent/src/extensions/codemode/tool.ts).
|
|
32
|
-
|
|
33
|
-
### Public hooks expose the parent and child boundaries
|
|
34
|
-
|
|
35
|
-
Pi's `tool_call`, `tool_result` and `tool_execution_*` events carry `parentToolCallId` for nested calls. Child IDs belong to the calling tool, but the coordinator should use the parent field rather than parse the ID string. These hooks offer a place to associate editor invocations with a script and to finish pending work before another tool or the parent result is returned.
|
|
36
|
-
|
|
37
|
-
A `tool_result` handler can replace content, details and error status. Execution-end notifications alone are not a substitute for reporting a failed commit through the parent result. A hook that merely throws is also not sufficient: Pi reports handler failures and may continue.
|
|
38
|
-
|
|
39
|
-
The public events make this approach plausible. They do not prove a working deferred batch; no implementation or live commit-boundary probe has been added yet.
|
|
40
|
-
|
|
41
|
-
**Evidence:** Pi `v0.99.1` [`extension contracts`](https://github.com/earendil-works/pi/blob/v0.99.1/packages/coding-agent/docs/extensions.md), Tools and Errors and cleanup; [`event types`](https://github.com/earendil-works/pi/blob/v0.99.1/packages/coding-agent/src/core/extensions/types.ts); [`nested runner`](https://github.com/earendil-works/pi/blob/v0.99.1/packages/coding-agent/src/core/nested-tool-calls.ts).
|
|
42
|
-
|
|
43
|
-
### The editor already separates planning data from writing
|
|
44
|
-
|
|
45
|
-
Mutation registrations return `TextChange` entries and optional `afterWrite` actions. The existing batch path gathers those changes before writing. `core.editTexts()` prepares resources, resolves anchors, applies combined changes, runs mutation guards and writes through the owning resource resolvers under its mutation queue.
|
|
46
|
-
|
|
47
|
-
A deferred batch can reuse these mechanisms, but the existing executor is not an appendable session. Planning must be separated from committing. Accepted operations should not be rerun to rebuild their plans at commit: that could repeat plugin work or change which selection was accepted. Resource content must be checked again at commit so external changes do not get overwritten.
|
|
48
|
-
|
|
49
|
-
Not every invocation of an editor-named tool is a text edit. Direct transactions, whole-file operations and semantic resource actions have separate execution paths. They cannot be silently treated as ordinary queued text changes.
|
|
50
|
-
|
|
51
|
-
**Evidence:** [`mutation-tool.ts`](../../src/extensions/pi-agent-text-editor/src/api/mutation-tool.ts), `TextMutation`, `TextMutationToolRegistration`; [`text-mutation.ts`](../../src/extensions/pi-agent-text-editor/src/core/text-mutation.ts), `createTextTool`; [`text-editor-core.ts`](../../src/extensions/pi-agent-text-editor/src/core/text-editor-core.ts), `editTexts`, `editTextResources`; [`batch registrar`](../../src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts), `expectedContent` checks and `textChangesConflict`.
|
|
52
|
-
|
|
53
|
-
### Final processing can reuse an existing scope, but it is not a pending-write batch
|
|
54
|
-
|
|
55
|
-
`createPostEditScope()` already collects final processing per resource. Its writes remain immediate, so using it alone would not fix the failing snapshot test. It is a possible reuse point for formatting and notifications after a combined write, not a replacement for the batch planner.
|
|
56
|
-
|
|
57
|
-
**Evidence:** [`post-edit-scope.ts`](../../src/extensions/pi-agent-text-editor/src/core/post-edit-scope.ts), `createPostEditScope`; [`Apply execution`](https://github.com/alexshpunt/pi-agent-ide/blob/c4ccbf9e8620976b5130e6f351f2678ce1d1a067/src/extensions/pi-agent-text-editor/src/core/apply/execution.ts), `finish`. This is an internal reuse observation, not a request to make Apply callable from Codemode.
|
|
58
|
-
|
|
59
|
-
### Some failure boundaries still need proof
|
|
60
|
-
|
|
61
|
-
Deferred work changes when disk failures can reach the script. A child promise can report acceptance, while a later commit may fail. The parent result must distinguish accepted, applied and rejected operations; child success alone cannot mean the file was written.
|
|
62
|
-
|
|
63
|
-
Native Codemode records successful script store writes before returning its own result. Finalizing edits in a later parent-result hook cannot assume those store writes are rolled back if the edit commit fails. Cancellation also differs from an ordinary JavaScript exception: queued work must not silently keep writing after an aborted parent. Concurrent scripts, interrupted child work and cleanup need dedicated runtime checks before this direction can be called safe.
|
|
64
|
-
|
|
65
|
-
**Evidence:** Pi `v0.99.1` [`execute.ts`](https://github.com/earendil-works/pi/blob/v0.99.1/packages/coding-agent/src/extensions/codemode/execute.ts), sandbox result handling and `appendEntry`; [`nested runner`](https://github.com/earendil-works/pi/blob/v0.99.1/packages/coding-agent/src/core/nested-tool-calls.ts), nested call lifetime. These cases are not covered by the existing sequential probe.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-19.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-31.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-33.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-39.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-47.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-58.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-60.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-62.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../dist/entry-81.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../../dist/entry-42.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../../dist/entry-48.js";
|
package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-58.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../../../../dist/entry-58.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../../../../dist/entry-60.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../../dist/entry-62.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../../dist/entry-31.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../../dist/entry-33.js";
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{pi-agent-filesystem-jq → pi-agent-filesystem-image}/runtime/entry-28.js
RENAMED
|
File without changes
|
/package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-jq}/runtime/entry-29.js
RENAMED
|
File without changes
|
/package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-30.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{pi-agent-text-editor-renderer → pi-agent-text-editor}/runtime/entry-79.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{pi-agent-tool-ui → pi-agent-tool-call-interception}/runtime/entry-82.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|