pi-agent-ide 0.9.5 → 0.9.6

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.
Files changed (683) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{chunk-BU7IZLKB.js → chunk-2DSY4U73.js} +1 -1
  3. package/dist/chunk-2YO6RVX4.js +1 -0
  4. package/dist/{chunk-CJPS4GXD.js → chunk-34IYWKY5.js} +1 -1
  5. package/dist/{chunk-TL4PHMAU.js → chunk-4CSNQX54.js} +1 -1
  6. package/dist/{chunk-I7AGYUPS.js → chunk-53IV6EKV.js} +1 -1
  7. package/dist/{chunk-K2G3IMXR.js → chunk-5DN2XBVI.js} +1 -1
  8. package/dist/{chunk-D45H2PNW.js → chunk-6W4OJLCJ.js} +1 -1
  9. package/dist/{chunk-JDAH3IXR.js → chunk-6ZYCTWQE.js} +1 -1
  10. package/dist/{chunk-BB4A5UI3.js → chunk-7JWZPJI5.js} +1 -1
  11. package/dist/{chunk-ULO3YOBE.js → chunk-AMSNDWBT.js} +1 -1
  12. package/dist/{chunk-DMHLIVN6.js → chunk-APWMLLSE.js} +6 -6
  13. package/dist/{chunk-U2ROTQLD.js → chunk-B5UJCNQU.js} +1 -1
  14. package/dist/{chunk-VWP2HLFT.js → chunk-BMSAVDRD.js} +6 -6
  15. package/dist/{chunk-A75GMLA4.js → chunk-BRJIXNFU.js} +1 -1
  16. package/dist/{chunk-IMMOFDTW.js → chunk-C2GZLLSP.js} +2 -2
  17. package/dist/{chunk-KUPYPCRL.js → chunk-DHOIQZUF.js} +1 -1
  18. package/dist/{chunk-DFUGBEHK.js → chunk-ECSMTGVM.js} +3 -3
  19. package/dist/{chunk-DEP55R35.js → chunk-EHFWODRT.js} +1 -1
  20. package/dist/{chunk-UCTBXRGA.js → chunk-FBR7ZLLN.js} +1 -1
  21. package/dist/{chunk-ANTYGMDR.js → chunk-FGN2ZMEN.js} +1 -1
  22. package/dist/{chunk-QBA36YEN.js → chunk-FJSYWOE6.js} +1 -1
  23. package/dist/chunk-H6FEBUAP.js +1 -0
  24. package/dist/{chunk-Y6FXFXCN.js → chunk-HFF4GY7R.js} +1 -1
  25. package/dist/{chunk-WPATZK4Y.js → chunk-HJXSEPO7.js} +1 -1
  26. package/dist/{chunk-7IYO2R47.js → chunk-HSEDKYH4.js} +1 -1
  27. package/dist/{chunk-VNCQGBM6.js → chunk-II7AOJNH.js} +1 -1
  28. package/dist/{chunk-GFITSPSQ.js → chunk-J6CDIH3S.js} +15 -15
  29. package/dist/{chunk-V6IPWCPS.js → chunk-JHWLRL4U.js} +1 -1
  30. package/dist/{chunk-FNJ6X7OP.js → chunk-JMQ67UNK.js} +1 -1
  31. package/dist/{chunk-KMFQBEIR.js → chunk-JRIP33PC.js} +1 -1
  32. package/dist/chunk-JYITLCXC.js +1 -0
  33. package/dist/{chunk-7D4ZCPH4.js → chunk-LIGOOMJS.js} +3 -3
  34. package/dist/{chunk-FUOB54RU.js → chunk-LY2UANKU.js} +3 -3
  35. package/dist/chunk-M7P7V4WI.js +25 -0
  36. package/dist/{chunk-W4IAODWI.js → chunk-NF74ITWT.js} +2 -2
  37. package/dist/{chunk-EL4KJ3Q2.js → chunk-NQYUIQRH.js} +1 -1
  38. package/dist/{chunk-MZW7L37L.js → chunk-OIEA4QWF.js} +2 -2
  39. package/dist/{chunk-3E7YABYT.js → chunk-ON5HDFNL.js} +1 -1
  40. package/dist/{chunk-G3OPALJH.js → chunk-P43GGKUC.js} +5 -5
  41. package/dist/{chunk-GCJHOMSI.js → chunk-P7FUD4WY.js} +1 -1
  42. package/dist/{chunk-72YIFABM.js → chunk-QGXZ4RWX.js} +1 -1
  43. package/dist/{chunk-ALZV2EYT.js → chunk-S7E2D5K7.js} +2 -2
  44. package/dist/{chunk-5GASXMD2.js → chunk-T5ACAOKJ.js} +3 -3
  45. package/dist/{chunk-7GKCQCMS.js → chunk-TWJINFQB.js} +4 -4
  46. package/dist/{chunk-2WQFGBV2.js → chunk-TWQ6ACOI.js} +1 -1
  47. package/dist/chunk-UDVVKVG4.js +1 -0
  48. package/dist/{chunk-NFXS3E2A.js → chunk-V2D5MLGE.js} +1 -1
  49. package/dist/{chunk-6TOFURDG.js → chunk-VDSSAP6Y.js} +1 -1
  50. package/dist/{chunk-AVJVTF5H.js → chunk-VHYJTAXX.js} +1 -1
  51. package/dist/{chunk-6UGSUMTI.js → chunk-WCSWQDJ2.js} +1 -1
  52. package/dist/{chunk-X6VMRL6L.js → chunk-WQTF6Q2X.js} +1 -1
  53. package/dist/{chunk-Q6JB5VAP.js → chunk-YFPU2LRR.js} +7 -7
  54. package/dist/{chunk-ISNWEIUW.js → chunk-YLEERRX3.js} +13 -13
  55. package/dist/{chunk-6BAGTM7U.js → chunk-YOJHCARZ.js} +1 -1
  56. package/dist/chunk-YPTDPMK5.js +1 -0
  57. package/dist/{chunk-37UNDG6V.js → chunk-YZTVC7ME.js} +1 -1
  58. package/dist/entry-0.js +1 -1
  59. package/dist/entry-10.js +1 -1
  60. package/dist/entry-11.js +1 -1
  61. package/dist/entry-14.js +1 -1
  62. package/dist/entry-15.js +1 -1
  63. package/dist/entry-17.js +1 -1
  64. package/dist/entry-21.js +1 -1
  65. package/dist/entry-22.js +1 -1
  66. package/dist/entry-25.js +1 -1
  67. package/dist/entry-31.js +1 -1
  68. package/dist/entry-33.js +1 -1
  69. package/dist/entry-34.js +1 -1
  70. package/dist/entry-36.js +1 -1
  71. package/dist/entry-37.js +1 -1
  72. package/dist/entry-38.js +3 -3
  73. package/dist/entry-39.js +1 -1
  74. package/dist/entry-4.js +1 -1
  75. package/dist/entry-40.js +1 -1
  76. package/dist/entry-41.js +1 -1
  77. package/dist/entry-42.js +1 -1
  78. package/dist/entry-43.js +1 -1
  79. package/dist/entry-44.js +1 -1
  80. package/dist/entry-48.js +1 -1
  81. package/dist/entry-49.js +1 -1
  82. package/dist/entry-50.js +1 -1
  83. package/dist/entry-51.js +1 -1
  84. package/dist/entry-52.js +1 -1
  85. package/dist/entry-57.js +1 -1
  86. package/dist/entry-58.js +1 -1
  87. package/dist/entry-59.js +1 -1
  88. package/dist/entry-60.js +1 -1
  89. package/dist/entry-62.js +1 -1
  90. package/dist/entry-63.js +1 -1
  91. package/dist/entry-64.js +1 -1
  92. package/dist/entry-65.js +1 -1
  93. package/dist/entry-66.js +1 -1
  94. package/dist/entry-67.js +1 -1
  95. package/dist/entry-69.js +1 -1
  96. package/dist/entry-72.js +1 -1
  97. package/dist/entry-74.js +1 -1
  98. package/dist/entry-75.js +1 -1
  99. package/dist/entry-79.js +1 -1
  100. package/dist/entry-84.js +1 -1
  101. package/dist/entry-85.js +1 -1
  102. package/dist/entry-86.js +1 -1
  103. package/dist/entry-90.js +1 -1
  104. package/dist/entry-94.js +1 -1
  105. package/dist/pi-agent-ide.js +6 -6
  106. package/docs/development.md +2 -0
  107. package/node_modules/pi-agent-doctor/package.json +1 -1
  108. package/node_modules/pi-agent-doctor/src/connect-plugin.ts +2 -2
  109. package/node_modules/pi-agent-doctor/src/evidence.ts +1 -1
  110. package/node_modules/pi-agent-doctor/src/fixtures/executable-probe.ts +2 -2
  111. package/node_modules/pi-agent-doctor/src/plugin-protocol.ts +4 -4
  112. package/node_modules/pi-agent-doctor/src/project-probes.ts +2 -2
  113. package/node_modules/pi-agent-doctor/src/workspace.ts +2 -2
  114. package/node_modules/pi-agent-documentation/package.json +1 -1
  115. package/node_modules/pi-agent-filesystem/index.ts +2 -2
  116. package/node_modules/pi-agent-filesystem/package.json +7 -7
  117. package/node_modules/pi-agent-filesystem/src/resolver.ts +2 -2
  118. package/node_modules/pi-agent-filesystem-image/package.json +3 -3
  119. package/node_modules/pi-agent-filesystem-jq/index.ts +1 -1
  120. package/node_modules/pi-agent-filesystem-jq/package.json +5 -5
  121. package/node_modules/pi-agent-filesystem-jq/src/api/jq.ts +1 -1
  122. package/node_modules/pi-agent-filesystem-pdf/package.json +3 -3
  123. package/node_modules/pi-agent-filesystem-text/package.json +3 -3
  124. package/node_modules/pi-agent-ide-ast/index.ts +1 -1
  125. package/node_modules/pi-agent-ide-ast/package.json +13 -13
  126. package/node_modules/pi-agent-ide-ast/src/api/scope.ts +1 -1
  127. package/node_modules/pi-agent-ide-ast/src/ast/manager.ts +2 -2
  128. package/node_modules/pi-agent-ide-ast/src/ast/native-parser.ts +1 -1
  129. package/node_modules/pi-agent-ide-ast/src/ast/outline.ts +5 -5
  130. package/node_modules/pi-agent-ide-ast/src/doctor-plugin.ts +1 -1
  131. package/node_modules/pi-agent-ide-ast/src/extension.ts +8 -8
  132. package/node_modules/pi-agent-ide-ast/src/outline-resolver.ts +3 -3
  133. package/node_modules/pi-agent-ide-ast/src/overflow-handler.ts +1 -1
  134. package/node_modules/pi-agent-ide-ast/src/scope-handler.ts +1 -1
  135. package/node_modules/pi-agent-ide-ast/src/scope-resolver.ts +1 -1
  136. package/node_modules/pi-agent-ide-ast/src/search-resolver.ts +1 -1
  137. package/node_modules/pi-agent-ide-ast/src/tool-ast-search.ts +1 -1
  138. package/node_modules/pi-agent-ide-changes/index.ts +9 -9
  139. package/node_modules/pi-agent-ide-changes/package.json +8 -8
  140. package/node_modules/pi-agent-ide-changes/src/change-anchor.ts +4 -4
  141. package/node_modules/pi-agent-ide-changes/src/changes/change-groups.ts +1 -1
  142. package/node_modules/pi-agent-ide-changes/src/changes/change-service.ts +4 -4
  143. package/node_modules/pi-agent-ide-changes/src/changes/git-changes-backend.ts +1 -1
  144. package/node_modules/pi-agent-ide-changes/src/current-change-presenter.ts +4 -4
  145. package/node_modules/pi-agent-ide-changes/src/tool-index-change.ts +5 -5
  146. package/node_modules/pi-agent-ide-changes/src/tool-text-undo.ts +6 -6
  147. package/node_modules/pi-agent-ide-formatter/index.ts +5 -5
  148. package/node_modules/pi-agent-ide-formatter/package.json +3 -3
  149. package/node_modules/pi-agent-ide-formatter/src/doctor-plugin.ts +2 -2
  150. package/node_modules/pi-agent-ide-formatter/src/formatter.ts +2 -2
  151. package/node_modules/pi-agent-ide-formatter/src/registry.ts +1 -1
  152. package/node_modules/pi-agent-ide-languages/index.ts +1 -1
  153. package/node_modules/pi-agent-ide-languages/package.json +2 -2
  154. package/node_modules/pi-agent-ide-lint/index.ts +9 -9
  155. package/node_modules/pi-agent-ide-lint/package.json +7 -7
  156. package/node_modules/pi-agent-ide-lint/src/command-linter.ts +2 -2
  157. package/node_modules/pi-agent-ide-lint/src/doctor-plugin.ts +3 -3
  158. package/node_modules/pi-agent-ide-lint/src/registry.ts +1 -1
  159. package/node_modules/pi-agent-ide-lsp/index.ts +17 -17
  160. package/node_modules/pi-agent-ide-lsp/package.json +12 -12
  161. package/node_modules/pi-agent-ide-lsp/src/declaration-targets.ts +3 -3
  162. package/node_modules/pi-agent-ide-lsp/src/diagnostic-source.ts +3 -3
  163. package/node_modules/pi-agent-ide-lsp/src/doctor-plugin.ts +4 -4
  164. package/node_modules/pi-agent-ide-lsp/src/lsp/client.ts +7 -7
  165. package/node_modules/pi-agent-ide-lsp/src/lsp/code-views.ts +9 -9
  166. package/node_modules/pi-agent-ide-lsp/src/lsp/diagnostic-adapters.ts +1 -1
  167. package/node_modules/pi-agent-ide-lsp/src/lsp/diagnostics.ts +4 -4
  168. package/node_modules/pi-agent-ide-lsp/src/lsp/document-leases.ts +1 -1
  169. package/node_modules/pi-agent-ide-lsp/src/lsp/index.ts +19 -19
  170. package/node_modules/pi-agent-ide-lsp/src/lsp/language-map.ts +1 -1
  171. package/node_modules/pi-agent-ide-lsp/src/lsp/lsp-compiler.ts +4 -4
  172. package/node_modules/pi-agent-ide-lsp/src/lsp/manager.ts +13 -13
  173. package/node_modules/pi-agent-ide-lsp/src/lsp/navigation.ts +3 -3
  174. package/node_modules/pi-agent-ide-lsp/src/lsp/owner-transport.ts +1 -1
  175. package/node_modules/pi-agent-ide-lsp/src/lsp/position-map.ts +1 -1
  176. package/node_modules/pi-agent-ide-lsp/src/lsp/project.ts +1 -1
  177. package/node_modules/pi-agent-ide-lsp/src/lsp/registry.ts +2 -2
  178. package/node_modules/pi-agent-ide-lsp/src/lsp/rename.ts +2 -2
  179. package/node_modules/pi-agent-ide-lsp/src/lsp/shared-server-host.mjs +17 -5
  180. package/node_modules/pi-agent-ide-lsp/src/lsp/symbol-search.ts +7 -7
  181. package/node_modules/pi-agent-ide-lsp/src/lsp/symbols.ts +3 -3
  182. package/node_modules/pi-agent-ide-lsp/src/lsp/workspace-owner.ts +1 -1
  183. package/node_modules/pi-agent-ide-lsp/src/manager-provider.ts +1 -1
  184. package/node_modules/pi-agent-ide-lsp/src/rename-plan.ts +8 -8
  185. package/node_modules/pi-agent-ide-lsp/src/search-resolver.ts +4 -4
  186. package/node_modules/pi-agent-ide-lsp/src/tool-lsp-search.ts +1 -1
  187. package/node_modules/pi-agent-image/package.json +2 -2
  188. package/node_modules/pi-agent-image/src/index.ts +1 -1
  189. package/node_modules/pi-agent-invariant/package.json +1 -1
  190. package/node_modules/pi-agent-pdf/package.json +2 -2
  191. package/node_modules/pi-agent-pdf/src/index.ts +1 -1
  192. package/node_modules/pi-agent-read/index.ts +1 -1
  193. package/node_modules/pi-agent-read/package.json +7 -7
  194. package/node_modules/pi-agent-read/src/api/connect-plugin.ts +1 -1
  195. package/node_modules/pi-agent-read/src/api/plugin-protocol.ts +1 -1
  196. package/node_modules/pi-agent-read/src/api/read-parameters.ts +1 -1
  197. package/node_modules/pi-agent-read/src/api/rendering.ts +2 -2
  198. package/node_modules/pi-agent-read/src/api/tools/read.ts +2 -2
  199. package/node_modules/pi-agent-read/src/core/extension.ts +4 -4
  200. package/node_modules/pi-agent-read/src/core/read-core.ts +4 -4
  201. package/node_modules/pi-agent-read/src/core/tools/read/output-truncation.ts +2 -2
  202. package/node_modules/pi-agent-read/src/core/tools/read/persisted-result.ts +1 -1
  203. package/node_modules/pi-agent-read/src/core/tools/read/raw-read.ts +3 -3
  204. package/node_modules/pi-agent-read/src/core/tools/read/read-renderer.ts +4 -4
  205. package/node_modules/pi-agent-read/src/core/tools/read/read-result.ts +1 -1
  206. package/node_modules/pi-agent-read/src/core/tools/read/result-target.ts +1 -1
  207. package/node_modules/pi-agent-read/src/core/tools/read/structured-result.ts +2 -2
  208. package/node_modules/pi-agent-read/src/core/tools/tool-read.ts +7 -7
  209. package/node_modules/pi-agent-resource/package.json +1 -1
  210. package/node_modules/pi-agent-resource/src/content-conversion/connect-plugin.ts +4 -4
  211. package/node_modules/pi-agent-resource/src/content-conversion/content-converter.ts +1 -1
  212. package/node_modules/pi-agent-resource/src/content-conversion/content-description.ts +1 -1
  213. package/node_modules/pi-agent-resource/src/content-conversion/content-host.ts +4 -4
  214. package/node_modules/pi-agent-resource/src/content-conversion/content-runner.ts +3 -3
  215. package/node_modules/pi-agent-resource/src/content-conversion/plugin-protocol.ts +2 -2
  216. package/node_modules/pi-agent-resource/src/content-conversion/validation.ts +2 -2
  217. package/node_modules/pi-agent-resource/src/index.ts +19 -19
  218. package/node_modules/pi-agent-resource/src/resolver.ts +1 -1
  219. package/node_modules/pi-agent-resource/src/resource-access.ts +1 -1
  220. package/node_modules/pi-agent-resource/src/resource-error.ts +1 -1
  221. package/node_modules/pi-agent-resource/src/resource.ts +1 -1
  222. package/node_modules/pi-agent-resource/src/result-images.ts +1 -1
  223. package/node_modules/pi-agent-resource/src/temp-resource-store.ts +2 -2
  224. package/node_modules/pi-agent-resource/src/tool-result.ts +2 -2
  225. package/node_modules/pi-agent-resource/src/validation.ts +3 -3
  226. package/node_modules/pi-agent-search/index.ts +1 -1
  227. package/node_modules/pi-agent-search/package.json +5 -5
  228. package/node_modules/pi-agent-search/src/api/connect-plugin.ts +1 -1
  229. package/node_modules/pi-agent-search/src/api/fuzzy.ts +2 -2
  230. package/node_modules/pi-agent-search/src/api/plugin-protocol.ts +1 -1
  231. package/node_modules/pi-agent-search/src/api/presentation.ts +1 -1
  232. package/node_modules/pi-agent-search/src/api/search-scope.ts +1 -1
  233. package/node_modules/pi-agent-search/src/api/search.ts +7 -7
  234. package/node_modules/pi-agent-search/src/core/extension.ts +7 -7
  235. package/node_modules/pi-agent-search/src/core/search-core.ts +3 -3
  236. package/node_modules/pi-agent-search-text/index.ts +8 -8
  237. package/node_modules/pi-agent-search-text/package.json +10 -10
  238. package/node_modules/pi-agent-search-text/src/doctor-plugin.ts +1 -1
  239. package/node_modules/pi-agent-search-text/src/file-search.ts +1 -1
  240. package/node_modules/pi-agent-search-text/src/fuzzy-search.ts +2 -2
  241. package/node_modules/pi-agent-search-text/src/persisted-result.ts +1 -1
  242. package/node_modules/pi-agent-search-text/src/resolvers.ts +9 -9
  243. package/node_modules/pi-agent-search-text/src/scoped-search.ts +4 -4
  244. package/node_modules/pi-agent-search-text/src/search-backend.ts +3 -3
  245. package/node_modules/pi-agent-search-text/src/search-presentation.ts +1 -1
  246. package/node_modules/pi-agent-search-text/src/search-recipe.ts +2 -2
  247. package/node_modules/pi-agent-search-text/src/search-renderer.ts +3 -3
  248. package/node_modules/pi-agent-search-text/src/search-result.ts +2 -2
  249. package/node_modules/pi-agent-search-text/src/search-session.ts +1 -1
  250. package/node_modules/pi-agent-search-text/src/tool-file-search.ts +1 -1
  251. package/node_modules/pi-agent-text/package.json +2 -2
  252. package/node_modules/pi-agent-text/src/index.ts +7 -7
  253. package/node_modules/pi-agent-text/src/source-line.ts +1 -1
  254. package/node_modules/pi-agent-text/src/text-document.ts +1 -1
  255. package/node_modules/pi-agent-text-anchor-constant/index.ts +1 -1
  256. package/node_modules/pi-agent-text-anchor-constant/package.json +3 -3
  257. package/node_modules/pi-agent-text-anchor-exact/index.ts +2 -2
  258. package/node_modules/pi-agent-text-anchor-exact/package.json +3 -3
  259. package/node_modules/pi-agent-text-anchor-exact/src/anchor.ts +2 -2
  260. package/node_modules/pi-agent-text-anchor-exact/src/recovery.ts +3 -3
  261. package/node_modules/pi-agent-text-anchor-line-hash/index.ts +2 -2
  262. package/node_modules/pi-agent-text-anchor-line-hash/package.json +5 -5
  263. package/node_modules/pi-agent-text-anchor-line-hash/src/read-handler.ts +1 -1
  264. package/node_modules/pi-agent-text-editor/index.ts +5 -5
  265. package/node_modules/pi-agent-text-editor/package.json +9 -9
  266. package/node_modules/pi-agent-text-editor/src/api/connect-plugin.ts +1 -1
  267. package/node_modules/pi-agent-text-editor/src/api/edit-pipeline.ts +2 -2
  268. package/node_modules/pi-agent-text-editor/src/api/file-operations.ts +2 -2
  269. package/node_modules/pi-agent-text-editor/src/api/file-transfers.ts +1 -1
  270. package/node_modules/pi-agent-text-editor/src/api/mutation-guard.ts +4 -4
  271. package/node_modules/pi-agent-text-editor/src/api/mutation-result.ts +3 -3
  272. package/node_modules/pi-agent-text-editor/src/api/mutation-tool.ts +2 -2
  273. package/node_modules/pi-agent-text-editor/src/api/native-edit-batch-event.ts +1 -1
  274. package/node_modules/pi-agent-text-editor/src/api/native-files.ts +1 -1
  275. package/node_modules/pi-agent-text-editor/src/api/plugin-protocol.ts +14 -14
  276. package/node_modules/pi-agent-text-editor/src/api/post-edit.ts +3 -3
  277. package/node_modules/pi-agent-text-editor/src/api/tool-call-interceptor.ts +1 -1
  278. package/node_modules/pi-agent-text-editor/src/api/tool-renderer.ts +2 -2
  279. package/node_modules/pi-agent-text-editor/src/core/delete-policy.ts +3 -3
  280. package/node_modules/pi-agent-text-editor/src/core/diff-tool.ts +3 -3
  281. package/node_modules/pi-agent-text-editor/src/core/extension.ts +13 -13
  282. package/node_modules/pi-agent-text-editor/src/core/file-operation-guards.ts +2 -2
  283. package/node_modules/pi-agent-text-editor/src/core/file-operation-tools.ts +6 -6
  284. package/node_modules/pi-agent-text-editor/src/core/file-operations.ts +5 -5
  285. package/node_modules/pi-agent-text-editor/src/core/file-result-targets.ts +1 -1
  286. package/node_modules/pi-agent-text-editor/src/core/file-transfers.ts +3 -3
  287. package/node_modules/pi-agent-text-editor/src/core/image-write.ts +1 -1
  288. package/node_modules/pi-agent-text-editor/src/core/mutation-result/agent-diff.ts +3 -3
  289. package/node_modules/pi-agent-text-editor/src/core/mutation-result/file-mutation-agent-result.ts +4 -4
  290. package/node_modules/pi-agent-text-editor/src/core/mutation-result/final-state-fragment.ts +2 -2
  291. package/node_modules/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +1 -1
  292. package/node_modules/pi-agent-text-editor/src/core/mutation-result/inline-hints.ts +1 -1
  293. package/node_modules/pi-agent-text-editor/src/core/mutation-result-targets.ts +6 -6
  294. package/node_modules/pi-agent-text-editor/src/core/native-text-edit-batch.ts +22 -22
  295. package/node_modules/pi-agent-text-editor/src/core/post-edit-scope.ts +1 -1
  296. package/node_modules/pi-agent-text-editor/src/core/read-fragment-resolver.ts +3 -3
  297. package/node_modules/pi-agent-text-editor/src/core/result-input.ts +1 -1
  298. package/node_modules/pi-agent-text-editor/src/core/result-target-anchors.ts +2 -2
  299. package/node_modules/pi-agent-text-editor/src/core/result-transfer.ts +4 -4
  300. package/node_modules/pi-agent-text-editor/src/core/source-change-retry.ts +1 -1
  301. package/node_modules/pi-agent-text-editor/src/core/structured-result.ts +2 -2
  302. package/node_modules/pi-agent-text-editor/src/core/temporary-directories.ts +2 -2
  303. package/node_modules/pi-agent-text-editor/src/core/text-anchor-recovery.ts +1 -1
  304. package/node_modules/pi-agent-text-editor/src/core/text-anchor-registry.ts +3 -3
  305. package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +2 -2
  306. package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-recovery.ts +2 -2
  307. package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +19 -19
  308. package/node_modules/pi-agent-text-editor/src/core/text-edit-batch.ts +4 -4
  309. package/node_modules/pi-agent-text-editor/src/core/text-edit-origin.ts +1 -1
  310. package/node_modules/pi-agent-text-editor/src/core/text-editor-core.ts +19 -19
  311. package/node_modules/pi-agent-text-editor/src/core/text-mutation-anchor-error.ts +1 -1
  312. package/node_modules/pi-agent-text-editor/src/core/text-mutation.ts +29 -29
  313. package/node_modules/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +4 -4
  314. package/node_modules/pi-agent-text-editor/src/core/tool-call-interceptor/streaming-provider.ts +1 -1
  315. package/node_modules/pi-agent-text-editor/src/core/write-agent-result.ts +3 -3
  316. package/node_modules/pi-agent-text-editor/src/tools/extension.ts +7 -7
  317. package/node_modules/pi-agent-text-editor/src/tools/text-selection.ts +2 -2
  318. package/node_modules/pi-agent-text-editor/src/tools/tool-text-copy.ts +4 -4
  319. package/node_modules/pi-agent-text-editor/src/tools/tool-text-delete.ts +4 -4
  320. package/node_modules/pi-agent-text-editor/src/tools/tool-text-insert.ts +3 -3
  321. package/node_modules/pi-agent-text-editor/src/tools/tool-text-move.ts +5 -5
  322. package/node_modules/pi-agent-text-editor/src/tools/tool-text-replace.ts +4 -4
  323. package/node_modules/pi-agent-text-editor/src/tools/tool-text-write.ts +1 -1
  324. package/node_modules/pi-agent-text-editor-renderer/index.ts +5 -5
  325. package/node_modules/pi-agent-text-editor-renderer/package.json +5 -5
  326. package/node_modules/pi-agent-text-editor-renderer/src/diff-renderer.ts +3 -3
  327. package/node_modules/pi-agent-text-editor-renderer/src/diff-viewport.ts +1 -1
  328. package/node_modules/pi-agent-text-editor-renderer/src/frozen-viewport.ts +2 -2
  329. package/node_modules/pi-agent-text-editor-renderer/src/mutation-panel.ts +4 -4
  330. package/node_modules/pi-agent-text-editor-renderer/src/mutation-projection.ts +2 -2
  331. package/node_modules/pi-agent-text-editor-renderer/src/mutation-result.ts +3 -3
  332. package/node_modules/pi-agent-text-editor-renderer/src/persisted-result.ts +2 -2
  333. package/node_modules/pi-agent-text-editor-renderer/src/render-resource.ts +1 -1
  334. package/node_modules/pi-agent-text-editor-renderer/src/renderer.ts +7 -7
  335. package/node_modules/pi-agent-text-editor-stale-anchor/package.json +5 -5
  336. package/node_modules/pi-agent-tool-call-interception/package.json +2 -2
  337. package/node_modules/pi-agent-tool-ui/package.json +1 -1
  338. package/node_modules/pi-agent-tool-ui/src/index.ts +1 -1
  339. package/node_modules/pi-agent-tool-ui/src/result-panel.ts +1 -1
  340. package/node_modules/pi-agent-web/index.ts +3 -3
  341. package/node_modules/pi-agent-web/package.json +7 -7
  342. package/node_modules/pi-agent-web/src/doctor-plugin.ts +1 -1
  343. package/node_modules/pi-agent-web/src/resolver.ts +1 -1
  344. package/node_modules/pi-agent-web-html/index.ts +1 -1
  345. package/node_modules/pi-agent-web-html/package.json +2 -2
  346. package/node_modules/pi-agent-web-html/src/html-converter.ts +1 -1
  347. package/node_modules/pi-agent-web-image/package.json +3 -3
  348. package/node_modules/pi-agent-web-pdf/package.json +3 -3
  349. package/node_modules/pi-agent-web-text/package.json +3 -3
  350. package/package.json +35 -35
  351. package/src/api/code-view.ts +3 -3
  352. package/src/api/connect-plugin.ts +1 -1
  353. package/src/api/connect-tip-provider.ts +2 -2
  354. package/src/api/doctor-runtime.ts +1 -1
  355. package/src/api/doctor.ts +1 -1
  356. package/src/api/hooks.ts +2 -2
  357. package/src/api/plugin-protocol.ts +1 -1
  358. package/src/api/standalone.ts +1 -1
  359. package/src/api/tips.ts +1 -1
  360. package/src/api/toolchain.ts +3 -3
  361. package/src/backend/config.ts +2 -2
  362. package/src/backend/configured-process.ts +5 -5
  363. package/src/backend/dap-java-transport.ts +6 -6
  364. package/src/backend/dap-node-transport.ts +5 -5
  365. package/src/backend/dap-tcp-transport.ts +3 -3
  366. package/src/backend/dap-transport.ts +5 -5
  367. package/src/backend/debugger-registration.ts +7 -7
  368. package/src/backend/debugger-workspace-owner.ts +10 -10
  369. package/src/backend/doctor-registration.ts +5 -5
  370. package/src/backend/doctor-workspace.ts +13 -13
  371. package/src/backend/file-operation-resolver.ts +5 -5
  372. package/src/backend/file-revision.ts +1 -1
  373. package/src/backend/file-transfer.ts +4 -4
  374. package/src/backend/formatter-registration.ts +11 -11
  375. package/src/backend/git-registration.ts +4 -4
  376. package/src/backend/index.ts +3 -3
  377. package/src/backend/lint-registration.ts +11 -11
  378. package/src/backend/lsp-file-watchers.ts +5 -5
  379. package/src/backend/lsp-registration.ts +11 -11
  380. package/src/backend/lsp-transport.ts +7 -7
  381. package/src/backend/lsp-workspace-owner.ts +4 -4
  382. package/src/backend/object-transfer.ts +5 -5
  383. package/src/backend/owned-command.ts +2 -2
  384. package/src/backend/owned-process-stop.ts +4 -4
  385. package/src/backend/owned-read-command.ts +2 -2
  386. package/src/backend/process-environment.ts +2 -2
  387. package/src/backend/process-metadata.ts +2 -2
  388. package/src/backend/recipe-evidence.ts +2 -2
  389. package/src/backend/registration.ts +8 -8
  390. package/src/backend/registry.ts +2 -2
  391. package/src/backend/resource-resolver.ts +2 -2
  392. package/src/backend/search-environment.ts +3 -3
  393. package/src/backend/ssh-channel.ts +3 -3
  394. package/src/backend/ssh-transport.ts +2 -2
  395. package/src/backend/ssh.ts +6 -6
  396. package/src/backend/tool-config-access.ts +4 -4
  397. package/src/backend/tool-project.ts +5 -5
  398. package/src/backend/web-browser.ts +3 -3
  399. package/src/backend/web-http.ts +2 -2
  400. package/src/backend/web-owner.ts +5 -5
  401. package/src/backend/web-registration.ts +5 -5
  402. package/src/code-review/extension.ts +3 -3
  403. package/src/code-review/reviewer.ts +2 -2
  404. package/src/code-view/diagnostic-view.ts +4 -4
  405. package/src/composite/builtin-extensions.ts +37 -37
  406. package/src/composite/capabilities.ts +2 -2
  407. package/src/composite/capability-schemas.ts +1 -1
  408. package/src/composite/extensions-config.ts +2 -2
  409. package/src/composite/module-settings-store.ts +2 -2
  410. package/src/composite/module-settings.ts +12 -12
  411. package/src/composite/nested-tool-rendering.ts +3 -3
  412. package/src/composite/output-limits.ts +6 -1
  413. package/src/composite/presets.ts +1 -1
  414. package/src/composite/reload-required.ts +6 -6
  415. package/src/composite/settings-documentation.ts +5 -5
  416. package/src/composite/settings-registry.ts +4 -4
  417. package/src/composite/text-results.ts +2 -2
  418. package/src/core/diagnostic-entry.ts +2 -2
  419. package/src/core/diagnostic-store.ts +3 -3
  420. package/src/core/extension.ts +8 -8
  421. package/src/core/ide-core.ts +4 -4
  422. package/src/doctor/config-writer.ts +3 -3
  423. package/src/doctor/core.ts +2 -2
  424. package/src/doctor/discovery.ts +4 -4
  425. package/src/doctor/extension.ts +7 -7
  426. package/src/doctor/index.ts +1 -1
  427. package/src/doctor/inventory.ts +1 -1
  428. package/src/doctor/run.ts +6 -6
  429. package/src/doctor/tip-provider.ts +2 -2
  430. package/src/documentation/extension.ts +3 -3
  431. package/src/documentation/registry.ts +1 -1
  432. package/src/documentation/search.ts +1 -1
  433. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/index.ts +2 -2
  434. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +7 -7
  435. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +3 -3
  436. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/index.ts +1 -1
  437. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/package.json +5 -5
  438. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/src/api/jq.ts +1 -1
  439. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/package.json +3 -3
  440. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/package.json +3 -3
  441. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/src/resolver.ts +2 -2
  442. package/src/extensions/pi-agent-read/extensions/pi-agent-web/index.ts +3 -3
  443. package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +7 -7
  444. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/index.ts +1 -1
  445. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +2 -2
  446. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/src/html-converter.ts +1 -1
  447. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +3 -3
  448. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +3 -3
  449. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +3 -3
  450. package/src/extensions/pi-agent-read/extensions/pi-agent-web/src/doctor-plugin.ts +1 -1
  451. package/src/extensions/pi-agent-read/extensions/pi-agent-web/src/resolver.ts +1 -1
  452. package/src/extensions/pi-agent-read/index.ts +1 -1
  453. package/src/extensions/pi-agent-read/package.json +7 -7
  454. package/src/extensions/pi-agent-read/src/api/connect-plugin.ts +1 -1
  455. package/src/extensions/pi-agent-read/src/api/plugin-protocol.ts +1 -1
  456. package/src/extensions/pi-agent-read/src/api/read-parameters.ts +1 -1
  457. package/src/extensions/pi-agent-read/src/api/rendering.ts +2 -2
  458. package/src/extensions/pi-agent-read/src/api/tools/read.ts +2 -2
  459. package/src/extensions/pi-agent-read/src/core/extension.ts +4 -4
  460. package/src/extensions/pi-agent-read/src/core/read-core.ts +4 -4
  461. package/src/extensions/pi-agent-read/src/core/tools/read/output-truncation.ts +2 -2
  462. package/src/extensions/pi-agent-read/src/core/tools/read/persisted-result.ts +1 -1
  463. package/src/extensions/pi-agent-read/src/core/tools/read/raw-read.ts +3 -3
  464. package/src/extensions/pi-agent-read/src/core/tools/read/read-renderer.ts +4 -4
  465. package/src/extensions/pi-agent-read/src/core/tools/read/read-result.ts +1 -1
  466. package/src/extensions/pi-agent-read/src/core/tools/read/result-target.ts +1 -1
  467. package/src/extensions/pi-agent-read/src/core/tools/read/structured-result.ts +2 -2
  468. package/src/extensions/pi-agent-read/src/core/tools/tool-read.ts +7 -7
  469. package/src/extensions/pi-agent-search/index.ts +1 -1
  470. package/src/extensions/pi-agent-search/package.json +5 -5
  471. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/index.ts +8 -8
  472. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +10 -10
  473. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/doctor-plugin.ts +1 -1
  474. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/file-search.ts +1 -1
  475. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/fuzzy-search.ts +2 -2
  476. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/persisted-result.ts +1 -1
  477. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/resolvers.ts +9 -9
  478. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/scoped-search.ts +4 -4
  479. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-backend.ts +3 -3
  480. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-presentation.ts +1 -1
  481. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-recipe.ts +2 -2
  482. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-renderer.ts +3 -3
  483. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-result.ts +2 -2
  484. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-session.ts +1 -1
  485. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/tool-file-search.ts +1 -1
  486. package/src/extensions/pi-agent-search/src/api/connect-plugin.ts +1 -1
  487. package/src/extensions/pi-agent-search/src/api/fuzzy.ts +2 -2
  488. package/src/extensions/pi-agent-search/src/api/plugin-protocol.ts +1 -1
  489. package/src/extensions/pi-agent-search/src/api/presentation.ts +1 -1
  490. package/src/extensions/pi-agent-search/src/api/search-scope.ts +1 -1
  491. package/src/extensions/pi-agent-search/src/api/search.ts +7 -7
  492. package/src/extensions/pi-agent-search/src/core/extension.ts +7 -7
  493. package/src/extensions/pi-agent-search/src/core/search-core.ts +3 -3
  494. package/src/extensions/pi-agent-text-editor/index.ts +5 -5
  495. package/src/extensions/pi-agent-text-editor/package.json +9 -9
  496. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/index.ts +1 -1
  497. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +3 -3
  498. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/index.ts +2 -2
  499. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +3 -3
  500. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/src/anchor.ts +2 -2
  501. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/src/recovery.ts +3 -3
  502. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/index.ts +2 -2
  503. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json +5 -5
  504. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/src/read-handler.ts +1 -1
  505. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/index.ts +5 -5
  506. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +5 -5
  507. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/diff-renderer.ts +3 -3
  508. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/diff-viewport.ts +1 -1
  509. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/frozen-viewport.ts +2 -2
  510. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/mutation-panel.ts +4 -4
  511. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/mutation-projection.ts +2 -2
  512. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/mutation-result.ts +3 -3
  513. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/persisted-result.ts +2 -2
  514. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/render-resource.ts +1 -1
  515. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/renderer.ts +7 -7
  516. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +5 -5
  517. package/src/extensions/pi-agent-text-editor/src/api/connect-plugin.ts +1 -1
  518. package/src/extensions/pi-agent-text-editor/src/api/edit-pipeline.ts +2 -2
  519. package/src/extensions/pi-agent-text-editor/src/api/file-operations.ts +2 -2
  520. package/src/extensions/pi-agent-text-editor/src/api/file-transfers.ts +1 -1
  521. package/src/extensions/pi-agent-text-editor/src/api/mutation-guard.ts +4 -4
  522. package/src/extensions/pi-agent-text-editor/src/api/mutation-result.ts +3 -3
  523. package/src/extensions/pi-agent-text-editor/src/api/mutation-tool.ts +2 -2
  524. package/src/extensions/pi-agent-text-editor/src/api/native-edit-batch-event.ts +1 -1
  525. package/src/extensions/pi-agent-text-editor/src/api/native-files.ts +1 -1
  526. package/src/extensions/pi-agent-text-editor/src/api/plugin-protocol.ts +14 -14
  527. package/src/extensions/pi-agent-text-editor/src/api/post-edit.ts +3 -3
  528. package/src/extensions/pi-agent-text-editor/src/api/tool-call-interceptor.ts +1 -1
  529. package/src/extensions/pi-agent-text-editor/src/api/tool-renderer.ts +2 -2
  530. package/src/extensions/pi-agent-text-editor/src/core/delete-policy.ts +3 -3
  531. package/src/extensions/pi-agent-text-editor/src/core/diff-tool.ts +3 -3
  532. package/src/extensions/pi-agent-text-editor/src/core/extension.ts +13 -13
  533. package/src/extensions/pi-agent-text-editor/src/core/file-operation-guards.ts +2 -2
  534. package/src/extensions/pi-agent-text-editor/src/core/file-operation-tools.ts +6 -6
  535. package/src/extensions/pi-agent-text-editor/src/core/file-operations.ts +5 -5
  536. package/src/extensions/pi-agent-text-editor/src/core/file-result-targets.ts +1 -1
  537. package/src/extensions/pi-agent-text-editor/src/core/file-transfers.ts +3 -3
  538. package/src/extensions/pi-agent-text-editor/src/core/image-write.ts +1 -1
  539. package/src/extensions/pi-agent-text-editor/src/core/mutation-result/agent-diff.ts +3 -3
  540. package/src/extensions/pi-agent-text-editor/src/core/mutation-result/file-mutation-agent-result.ts +4 -4
  541. package/src/extensions/pi-agent-text-editor/src/core/mutation-result/final-state-fragment.ts +2 -2
  542. package/src/extensions/pi-agent-text-editor/src/core/mutation-result/grouped-replacements.ts +1 -1
  543. package/src/extensions/pi-agent-text-editor/src/core/mutation-result/inline-hints.ts +1 -1
  544. package/src/extensions/pi-agent-text-editor/src/core/mutation-result-targets.ts +6 -6
  545. package/src/extensions/pi-agent-text-editor/src/core/native-text-edit-batch.ts +22 -22
  546. package/src/extensions/pi-agent-text-editor/src/core/post-edit-scope.ts +1 -1
  547. package/src/extensions/pi-agent-text-editor/src/core/read-fragment-resolver.ts +3 -3
  548. package/src/extensions/pi-agent-text-editor/src/core/result-input.ts +1 -1
  549. package/src/extensions/pi-agent-text-editor/src/core/result-target-anchors.ts +2 -2
  550. package/src/extensions/pi-agent-text-editor/src/core/result-transfer.ts +4 -4
  551. package/src/extensions/pi-agent-text-editor/src/core/source-change-retry.ts +1 -1
  552. package/src/extensions/pi-agent-text-editor/src/core/structured-result.ts +2 -2
  553. package/src/extensions/pi-agent-text-editor/src/core/temporary-directories.ts +2 -2
  554. package/src/extensions/pi-agent-text-editor/src/core/text-anchor-recovery.ts +1 -1
  555. package/src/extensions/pi-agent-text-editor/src/core/text-anchor-registry.ts +3 -3
  556. package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-coordinator.ts +2 -2
  557. package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-recovery.ts +2 -2
  558. package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +19 -19
  559. package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch.ts +4 -4
  560. package/src/extensions/pi-agent-text-editor/src/core/text-edit-origin.ts +1 -1
  561. package/src/extensions/pi-agent-text-editor/src/core/text-editor-core.ts +19 -19
  562. package/src/extensions/pi-agent-text-editor/src/core/text-mutation-anchor-error.ts +1 -1
  563. package/src/extensions/pi-agent-text-editor/src/core/text-mutation.ts +29 -29
  564. package/src/extensions/pi-agent-text-editor/src/core/tool-call-interceptor/coordinator.ts +4 -4
  565. package/src/extensions/pi-agent-text-editor/src/core/tool-call-interceptor/streaming-provider.ts +1 -1
  566. package/src/extensions/pi-agent-text-editor/src/core/write-agent-result.ts +3 -3
  567. package/src/extensions/pi-agent-text-editor/src/tools/extension.ts +7 -7
  568. package/src/extensions/pi-agent-text-editor/src/tools/text-selection.ts +2 -2
  569. package/src/extensions/pi-agent-text-editor/src/tools/tool-text-copy.ts +4 -4
  570. package/src/extensions/pi-agent-text-editor/src/tools/tool-text-delete.ts +4 -4
  571. package/src/extensions/pi-agent-text-editor/src/tools/tool-text-insert.ts +3 -3
  572. package/src/extensions/pi-agent-text-editor/src/tools/tool-text-move.ts +5 -5
  573. package/src/extensions/pi-agent-text-editor/src/tools/tool-text-replace.ts +4 -4
  574. package/src/extensions/pi-agent-text-editor/src/tools/tool-text-write.ts +1 -1
  575. package/src/index.ts +1 -1
  576. package/src/pi-agent-ide.ts +21 -21
  577. package/src/plugins/pi-agent-ide-ast/index.ts +1 -1
  578. package/src/plugins/pi-agent-ide-ast/package.json +13 -13
  579. package/src/plugins/pi-agent-ide-ast/src/api/scope.ts +1 -1
  580. package/src/plugins/pi-agent-ide-ast/src/ast/manager.ts +2 -2
  581. package/src/plugins/pi-agent-ide-ast/src/ast/native-parser.ts +1 -1
  582. package/src/plugins/pi-agent-ide-ast/src/ast/outline.ts +5 -5
  583. package/src/plugins/pi-agent-ide-ast/src/doctor-plugin.ts +1 -1
  584. package/src/plugins/pi-agent-ide-ast/src/extension.ts +8 -8
  585. package/src/plugins/pi-agent-ide-ast/src/outline-resolver.ts +3 -3
  586. package/src/plugins/pi-agent-ide-ast/src/overflow-handler.ts +1 -1
  587. package/src/plugins/pi-agent-ide-ast/src/scope-handler.ts +1 -1
  588. package/src/plugins/pi-agent-ide-ast/src/scope-resolver.ts +1 -1
  589. package/src/plugins/pi-agent-ide-ast/src/search-resolver.ts +1 -1
  590. package/src/plugins/pi-agent-ide-ast/src/tool-ast-search.ts +1 -1
  591. package/src/plugins/pi-agent-ide-changes/index.ts +9 -9
  592. package/src/plugins/pi-agent-ide-changes/package.json +8 -8
  593. package/src/plugins/pi-agent-ide-changes/src/change-anchor.ts +4 -4
  594. package/src/plugins/pi-agent-ide-changes/src/changes/change-groups.ts +1 -1
  595. package/src/plugins/pi-agent-ide-changes/src/changes/change-service.ts +4 -4
  596. package/src/plugins/pi-agent-ide-changes/src/changes/git-changes-backend.ts +1 -1
  597. package/src/plugins/pi-agent-ide-changes/src/current-change-presenter.ts +4 -4
  598. package/src/plugins/pi-agent-ide-changes/src/tool-index-change.ts +5 -5
  599. package/src/plugins/pi-agent-ide-changes/src/tool-text-undo.ts +6 -6
  600. package/src/plugins/pi-agent-ide-debugger/index.ts +11 -11
  601. package/src/plugins/pi-agent-ide-debugger/src/breakpoint-view.ts +1 -1
  602. package/src/plugins/pi-agent-ide-debugger/src/doctor-plugin.ts +4 -4
  603. package/src/plugins/pi-agent-ide-debugger/src/java-runtime.ts +2 -2
  604. package/src/plugins/pi-agent-ide-debugger/src/process-provider.ts +3 -3
  605. package/src/plugins/pi-agent-ide-debugger/src/renderer.ts +1 -1
  606. package/src/plugins/pi-agent-ide-debugger/src/session-manager.ts +5 -5
  607. package/src/plugins/pi-agent-ide-debugger/src/ui.ts +1 -1
  608. package/src/plugins/pi-agent-ide-debugger/src/vscode-backend.ts +1 -1
  609. package/src/plugins/pi-agent-ide-debugger/src/workspace-owner.ts +2 -2
  610. package/src/plugins/pi-agent-ide-diagnostics/index.ts +1 -1
  611. package/src/plugins/pi-agent-ide-formatter/index.ts +5 -5
  612. package/src/plugins/pi-agent-ide-formatter/package.json +3 -3
  613. package/src/plugins/pi-agent-ide-formatter/src/doctor-plugin.ts +2 -2
  614. package/src/plugins/pi-agent-ide-formatter/src/formatter.ts +2 -2
  615. package/src/plugins/pi-agent-ide-formatter/src/registry.ts +1 -1
  616. package/src/plugins/pi-agent-ide-languages/index.ts +1 -1
  617. package/src/plugins/pi-agent-ide-languages/package.json +2 -2
  618. package/src/plugins/pi-agent-ide-lint/index.ts +9 -9
  619. package/src/plugins/pi-agent-ide-lint/package.json +7 -7
  620. package/src/plugins/pi-agent-ide-lint/src/command-linter.ts +2 -2
  621. package/src/plugins/pi-agent-ide-lint/src/doctor-plugin.ts +3 -3
  622. package/src/plugins/pi-agent-ide-lint/src/registry.ts +1 -1
  623. package/src/plugins/pi-agent-ide-lsp/index.ts +17 -17
  624. package/src/plugins/pi-agent-ide-lsp/package.json +12 -12
  625. package/src/plugins/pi-agent-ide-lsp/src/declaration-targets.ts +3 -3
  626. package/src/plugins/pi-agent-ide-lsp/src/diagnostic-source.ts +3 -3
  627. package/src/plugins/pi-agent-ide-lsp/src/doctor-plugin.ts +4 -4
  628. package/src/plugins/pi-agent-ide-lsp/src/lsp/client.ts +7 -7
  629. package/src/plugins/pi-agent-ide-lsp/src/lsp/code-views.ts +9 -9
  630. package/src/plugins/pi-agent-ide-lsp/src/lsp/diagnostic-adapters.ts +1 -1
  631. package/src/plugins/pi-agent-ide-lsp/src/lsp/diagnostics.ts +4 -4
  632. package/src/plugins/pi-agent-ide-lsp/src/lsp/document-leases.ts +1 -1
  633. package/src/plugins/pi-agent-ide-lsp/src/lsp/index.ts +19 -19
  634. package/src/plugins/pi-agent-ide-lsp/src/lsp/language-map.ts +1 -1
  635. package/src/plugins/pi-agent-ide-lsp/src/lsp/lsp-compiler.ts +4 -4
  636. package/src/plugins/pi-agent-ide-lsp/src/lsp/manager.ts +13 -13
  637. package/src/plugins/pi-agent-ide-lsp/src/lsp/navigation.ts +3 -3
  638. package/src/plugins/pi-agent-ide-lsp/src/lsp/owner-transport.ts +1 -1
  639. package/src/plugins/pi-agent-ide-lsp/src/lsp/position-map.ts +1 -1
  640. package/src/plugins/pi-agent-ide-lsp/src/lsp/project.ts +1 -1
  641. package/src/plugins/pi-agent-ide-lsp/src/lsp/registry.ts +2 -2
  642. package/src/plugins/pi-agent-ide-lsp/src/lsp/rename.ts +2 -2
  643. package/src/plugins/pi-agent-ide-lsp/src/lsp/shared-server-host.mjs +17 -5
  644. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbol-search.ts +7 -7
  645. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbols.ts +3 -3
  646. package/src/plugins/pi-agent-ide-lsp/src/lsp/workspace-owner.ts +1 -1
  647. package/src/plugins/pi-agent-ide-lsp/src/manager-provider.ts +1 -1
  648. package/src/plugins/pi-agent-ide-lsp/src/rename-plan.ts +8 -8
  649. package/src/plugins/pi-agent-ide-lsp/src/search-resolver.ts +4 -4
  650. package/src/plugins/pi-agent-ide-lsp/src/tool-lsp-search.ts +1 -1
  651. package/src/plugins/pi-agent-ide-processes/index.ts +4 -4
  652. package/src/plugins/pi-agent-ide-processes/src/ui.ts +1 -1
  653. package/src/plugins/pi-agent-ide-semantic/src/vera-backend.ts +2 -2
  654. package/src/plugins/pi-agent-ide-terminal/index.ts +17 -17
  655. package/src/plugins/pi-agent-ide-terminal/src/origin.ts +1 -1
  656. package/src/plugins/pi-agent-ide-terminal/src/output-limits.ts +1 -1
  657. package/src/plugins/pi-agent-ide-terminal/src/process-provider.ts +3 -3
  658. package/src/plugins/pi-agent-ide-terminal/src/renderer.ts +3 -3
  659. package/src/plugins/pi-agent-ide-terminal/src/resources.ts +5 -5
  660. package/src/plugins/pi-agent-ide-terminal/src/screen-image.ts +1 -1
  661. package/src/plugins/pi-agent-ide-terminal/src/search.ts +2 -2
  662. package/src/plugins/pi-agent-ide-terminal/src/session-manager.ts +3 -3
  663. package/src/plugins/pi-agent-ide-terminal/src/shell-profile.ts +1 -1
  664. package/src/plugins/pi-agent-ide-terminal/src/shell-result.ts +1 -1
  665. package/src/plugins/pi-agent-ide-terminal/src/tools.ts +9 -9
  666. package/src/plugins/pi-agent-ide-terminal/src/types.ts +1 -1
  667. package/src/plugins/pi-agent-ide-terminal/src/ui.ts +3 -3
  668. package/src/post-edit/gate.ts +1 -1
  669. package/src/semantic/extension.ts +2 -2
  670. package/src/semantic/index.ts +4 -4
  671. package/src/standalone/resource-host.ts +13 -13
  672. package/src/standalone/scoped-api.ts +2 -2
  673. package/src/tips/core.ts +1 -1
  674. package/src/tips/extension.ts +6 -6
  675. package/src/tips/setup-hint.ts +1 -1
  676. package/src/toolchain/diagnostic.ts +1 -1
  677. package/src/toolchain/registry.ts +1 -1
  678. package/dist/chunk-57F5GTHO.js +0 -1
  679. package/dist/chunk-6LAHSOAH.js +0 -25
  680. package/dist/chunk-DDLNVJHJ.js +0 -1
  681. package/dist/chunk-FEZLTM4L.js +0 -1
  682. package/dist/chunk-MDD5ORB6.js +0 -1
  683. package/dist/chunk-S5PL5DFQ.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { requiredValue } from "pi-agent-invariant";
2
- import { LinePositionMap } from "./position-map.js";
3
- import { retryWhileSourceChanges, sourceChanged } from "./source-changes.js";
2
+ import { LinePositionMap } from "./position-map.ts";
3
+ import { retryWhileSourceChanges, sourceChanged } from "./source-changes.ts";
4
4
  import path from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
6
 
@@ -10,20 +10,20 @@ import {
10
10
  formatSymbolSelector,
11
11
  } from "pi-agent-ide/api/code-view";
12
12
 
13
- import { requestCallHierarchy, requestReferences } from "./navigation.js";
14
- import { requestDocumentSymbols, symbolKindName } from "./symbols.js";
13
+ import { requestCallHierarchy, requestReferences } from "./navigation.ts";
14
+ import { requestDocumentSymbols, symbolKindName } from "./symbols.ts";
15
15
 
16
- import type { LspClient } from "./client.js";
17
- import type { LspManager } from "./manager.js";
16
+ import type { LspClient } from "./client.ts";
17
+ import type { LspManager } from "./manager.ts";
18
18
  import type {
19
19
  LspCallDirection,
20
20
  LspCallHierarchyResult,
21
21
  LspIncomingCall,
22
22
  LspLocation,
23
23
  LspOutgoingCall,
24
- } from "./navigation.js";
25
- import type { LspDocumentSymbol } from "./symbols.js";
26
- import type { LspRange } from "./types.js";
24
+ } from "./navigation.ts";
25
+ import type { LspDocumentSymbol } from "./symbols.ts";
26
+ import type { LspRange } from "./types.ts";
27
27
 
28
28
  const MAX_GROUPS = 10;
29
29
  const MAX_ITEMS_PER_GROUP = 5;
@@ -1,5 +1,5 @@
1
1
  import type { Diagnostic } from "pi-agent-ide/api/toolchain";
2
- import type { LspClient } from "./client.js";
2
+ import type { LspClient } from "./client.ts";
3
3
 
4
4
  /** A server capability that returns completed diagnostics rather than intermediate pushes. */
5
5
  export interface CompletedDiagnosticAdapter {
@@ -1,10 +1,10 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import { URI } from "vscode-uri";
3
- import { DiagnosticSeverity, type LspDiagnostic } from "./types.js";
4
- import type { LspClient } from "./client.js";
3
+ import { DiagnosticSeverity, type LspDiagnostic } from "./types.ts";
4
+ import type { LspClient } from "./client.ts";
5
5
 
6
- import { completedDiagnosticAdapter } from "./diagnostic-adapters.js";
7
- import { isMethodNotFound } from "./errors.js";
6
+ import { completedDiagnosticAdapter } from "./diagnostic-adapters.ts";
7
+ import { isMethodNotFound } from "./errors.ts";
8
8
  import type { Diagnostic } from "pi-agent-ide/api/toolchain";
9
9
 
10
10
  /** LSP diagnostics do not reliably distinguish parser errors from type errors. */
@@ -1,6 +1,6 @@
1
1
  import { AsyncLocalStorage } from "node:async_hooks";
2
2
 
3
- import type { LspClient } from "./client.js";
3
+ import type { LspClient } from "./client.ts";
4
4
 
5
5
  /** Documents one operation keeps open, released together when it finishes. */
6
6
  type DocumentScope = Map<LspClient, Map<string, () => void>>;
@@ -1,6 +1,6 @@
1
- export { LspClient } from "./client.js";
1
+ export { LspClient } from "./client.ts";
2
2
 
3
- export { requestDiagnostics } from "./diagnostics.js";
3
+ export { requestDiagnostics } from "./diagnostics.ts";
4
4
 
5
5
  export {
6
6
  findDocumentSymbol,
@@ -8,23 +8,23 @@ export {
8
8
  requestDocumentSymbols,
9
9
  requestWorkspaceSymbols,
10
10
  symbolKindName,
11
- } from "./symbols.js";
11
+ } from "./symbols.ts";
12
12
 
13
- export { requestRename, workspaceEditEntries } from "./rename.js";
13
+ export { requestRename, workspaceEditEntries } from "./rename.ts";
14
14
 
15
- export { searchSymbols } from "./symbol-search.js";
15
+ export { searchSymbols } from "./symbol-search.ts";
16
16
 
17
- export type { SymbolHit } from "./symbol-search.js";
17
+ export type { SymbolHit } from "./symbol-search.ts";
18
18
 
19
- export type { LspWorkspaceEdit } from "./rename.js";
19
+ export type { LspWorkspaceEdit } from "./rename.ts";
20
20
 
21
- export type { LspWorkspaceSymbol } from "./symbols.js";
21
+ export type { LspWorkspaceSymbol } from "./symbols.ts";
22
22
 
23
- export { requestCallHierarchy, requestReferences } from "./navigation.js";
23
+ export { requestCallHierarchy, requestReferences } from "./navigation.ts";
24
24
 
25
- export { readLspFileGraph, readLspSymbolGraph, resolveLspCodeSymbol } from "./code-views.js";
25
+ export { readLspFileGraph, readLspSymbolGraph, resolveLspCodeSymbol } from "./code-views.ts";
26
26
 
27
- export type { LspCodeSymbol } from "./code-views.js";
27
+ export type { LspCodeSymbol } from "./code-views.ts";
28
28
 
29
29
  export type {
30
30
  LspCallHierarchyItem,
@@ -32,15 +32,15 @@ export type {
32
32
  LspIncomingCall,
33
33
  LspLocation,
34
34
  LspOutgoingCall,
35
- } from "./navigation.js";
35
+ } from "./navigation.ts";
36
36
 
37
- export { createLspCompiler } from "./lsp-compiler.js";
37
+ export { createLspCompiler } from "./lsp-compiler.ts";
38
38
 
39
- export { LspManager } from "./manager.js";
39
+ export { LspManager } from "./manager.ts";
40
40
 
41
- export type { LspPushDiagnosticsEvent } from "./manager.js";
41
+ export type { LspPushDiagnosticsEvent } from "./manager.ts";
42
42
 
43
- export { LspServerRegistry } from "./registry.js";
43
+ export { LspServerRegistry } from "./registry.ts";
44
44
 
45
45
  export type {
46
46
  DiagnosticSeverity,
@@ -52,8 +52,8 @@ export type {
52
52
  ResolvedServer,
53
53
  ServerCapability,
54
54
  ServerConfig,
55
- } from "./types.js";
55
+ } from "./types.ts";
56
56
 
57
- export { DiagnosticSeverity as LspSeverity } from "./types.js";
57
+ export { DiagnosticSeverity as LspSeverity } from "./types.ts";
58
58
 
59
- export type { LspDocumentSymbol } from "./symbols.js";
59
+ export type { LspDocumentSymbol } from "./symbols.ts";
@@ -1,4 +1,4 @@
1
- import type { ServerConfig } from "./types.js";
1
+ import type { ServerConfig } from "./types.ts";
2
2
 
3
3
  /**
4
4
  * Extension → languageId + serverIds mapping.
@@ -1,8 +1,8 @@
1
- import { requestDiagnostics } from "./diagnostics.js";
2
- import { withLspDocuments } from "./document-leases.js";
1
+ import { requestDiagnostics } from "./diagnostics.ts";
2
+ import { withLspDocuments } from "./document-leases.ts";
3
3
 
4
- import type { LspClient } from "./client.js";
5
- import type { LspManager } from "./manager.js";
4
+ import type { LspClient } from "./client.ts";
5
+ import type { LspManager } from "./manager.ts";
6
6
  import type { Compiler, Diagnostic, ToolContext } from "pi-agent-ide/api/toolchain";
7
7
 
8
8
  /**
@@ -4,19 +4,19 @@ import path from "node:path";
4
4
 
5
5
  import { URI } from "vscode-uri";
6
6
 
7
- import { LspClient } from "./client.js";
8
- import type { LspSharedServers } from "./shared-servers.js";
9
- import { SharedStartup, waitWithSignal } from "./abort.js";
10
- import { documentUri } from "./document-uri.js";
11
- import type { LspWorkspaceOwner } from "./workspace-owner.js";
12
- import { prepareProjectQuery } from "./project.js";
13
- import { retainForCurrentOperation } from "./document-leases.js";
14
-
15
- import { resolveInitializationOptions } from "./initialization-options.js";
16
- import { toDiagnostic } from "./diagnostics.js";
17
- import { type LspDiagnostic, type ResolvedServer } from "./types.js";
18
-
19
- import type { LspServerRegistry } from "./registry.js";
7
+ import { LspClient } from "./client.ts";
8
+ import type { LspSharedServers } from "./shared-servers.ts";
9
+ import { SharedStartup, waitWithSignal } from "./abort.ts";
10
+ import { documentUri } from "./document-uri.ts";
11
+ import type { LspWorkspaceOwner } from "./workspace-owner.ts";
12
+ import { prepareProjectQuery } from "./project.ts";
13
+ import { retainForCurrentOperation } from "./document-leases.ts";
14
+
15
+ import { resolveInitializationOptions } from "./initialization-options.ts";
16
+ import { toDiagnostic } from "./diagnostics.ts";
17
+ import { type LspDiagnostic, type ResolvedServer } from "./types.ts";
18
+
19
+ import type { LspServerRegistry } from "./registry.ts";
20
20
  import type { Diagnostic } from "pi-agent-ide/api/toolchain";
21
21
 
22
22
  /** A workspace-scoped published report; an omitted version leaves freshness unverified. */
@@ -1,6 +1,6 @@
1
- import type { LspClient } from "./client.js";
2
- import { isMethodNotFound } from "./errors.js";
3
- import type { LspPosition, LspRange } from "./types.js";
1
+ import type { LspClient } from "./client.ts";
2
+ import { isMethodNotFound } from "./errors.ts";
3
+ import type { LspPosition, LspRange } from "./types.ts";
4
4
 
5
5
  export interface LspLocation {
6
6
  uri: string;
@@ -1,5 +1,5 @@
1
1
  import type { Readable, Writable } from "node:stream";
2
- import type { LspFileWatcherSubscriptions, WatchedFileChange } from "./file-watchers.js";
2
+ import type { LspFileWatcherSubscriptions, WatchedFileChange } from "./file-watchers.ts";
3
3
 
4
4
  /** A language server process on one owner; its PID is never a local process identifier. */
5
5
  export interface LspOwnedProcess {
@@ -1,6 +1,6 @@
1
1
  import { diffLines } from "diff";
2
2
 
3
- import type { LspRange } from "./types.js";
3
+ import type { LspRange } from "./types.ts";
4
4
 
5
5
  /** Lines of one text that appear unchanged in another, as `[fromLine, toLine, count]` runs. */
6
6
  type UnchangedRuns = readonly (readonly [number, number, number])[];
@@ -1,4 +1,4 @@
1
- import type { LspClient } from "./client.js";
1
+ import type { LspClient } from "./client.ts";
2
2
 
3
3
  /** Load unopened TypeScript project files before a workspace query; other servers keep their own readiness rules. */
4
4
  export async function prepareProjectQuery(client: LspClient, source: string): Promise<void> {
@@ -6,13 +6,13 @@ import { inspectRecipeEvidence, type RecipeEvidence } from "pi-agent-doctor/api/
6
6
  import type { ToolRecipe } from "pi-agent-doctor/api/catalog";
7
7
  import { hasConfiguredExecutable, loadLayeredToolConfig } from "pi-agent-ide/api/tool-config";
8
8
 
9
- import { buildLanguageLookup, type LanguageLookup } from "./language-map.js";
9
+ import { buildLanguageLookup, type LanguageLookup } from "./language-map.ts";
10
10
 
11
11
  import type {
12
12
  EffectiveToolConfigEntry,
13
13
  LayeredToolConfigOptions,
14
14
  } from "pi-agent-ide/api/tool-config";
15
- import type { LspServersConfig, ResolvedServer, ServerConfig } from "./types.js";
15
+ import type { LspServersConfig, ResolvedServer, ServerConfig } from "./types.ts";
16
16
 
17
17
  /**
18
18
  LSP server configuration in project, global, and built-in priority order.
@@ -1,5 +1,5 @@
1
- import type { LspClient } from "./client.js";
2
- import type { LspPosition, LspTextEdit } from "./types.js";
1
+ import type { LspClient } from "./client.ts";
2
+ import type { LspPosition, LspTextEdit } from "./types.ts";
3
3
 
4
4
  export interface LspDocumentChange {
5
5
  textDocument: { uri: string; version?: number | null };
@@ -515,13 +515,21 @@ function openSession(socket, started) {
515
515
  connection.onRequest(async (method, parameters, token) => {
516
516
  const uri = documentUriOf(parameters);
517
517
  if (uri) align(session, uri);
518
+ // The server answers for the text it has now. Another session's text may replace it before
519
+ // the answer arrives, so the versions are mapped as they were when the request was sent.
520
+ const owned = uri === undefined ? undefined : session.documents.get(uri);
521
+ const document = uri === undefined ? undefined : documents.get(uri);
522
+ const sent =
523
+ uri !== undefined && owned && document && document.text === owned.text
524
+ ? { uri, server: document.version, session: owned.version }
525
+ : undefined;
518
526
  const cancellation = new CancellationTokenSource();
519
527
  const forward = token.onCancellationRequested(() => cancellation.cancel());
520
528
  session.requests.add(cancellation);
521
529
  try {
522
530
  /** @type {unknown} */
523
531
  const result = await started.connection.sendRequest(method, parameters, cancellation.token);
524
- return sessionVersions(session, result);
532
+ return sessionVersions(session, result, sent);
525
533
  } finally {
526
534
  forward.dispose();
527
535
  session.requests.delete(cancellation);
@@ -659,17 +667,21 @@ function publishToSessions(method, parameters) {
659
667
  * A version that is not the session's current text never matches one of its versions.
660
668
  * @param {Session} session
661
669
  * @param {unknown} value
670
+ * @param {{ uri: string; server: number; session: number }} [sent] the requested
671
+ * document's server and session versions when the request was sent
662
672
  * @returns {unknown}
663
673
  */
664
- function sessionVersions(session, value) {
665
- if (Array.isArray(value)) return value.map((item) => sessionVersions(session, item));
674
+ function sessionVersions(session, value, sent) {
675
+ if (Array.isArray(value)) return value.map((item) => sessionVersions(session, item, sent));
666
676
  if (typeof value !== "object" || value === null) return value;
667
677
  const mapped = Object.fromEntries(
668
- Object.entries(value).map(([name, item]) => [name, sessionVersions(session, item)]),
678
+ Object.entries(value).map(([name, item]) => [name, sessionVersions(session, item, sent)]),
669
679
  );
670
680
  const identifier = /** @type {{ textDocument?: { uri?: unknown; version?: unknown } }} */ (mapped)
671
681
  .textDocument;
672
- if (typeof identifier?.uri === "string" && typeof identifier.version === "number") {
682
+ if (sent !== undefined && identifier?.uri === sent.uri && identifier.version === sent.server) {
683
+ mapped.textDocument = { ...identifier, version: sent.session };
684
+ } else if (typeof identifier?.uri === "string" && typeof identifier.version === "number") {
673
685
  const owned = session.documents.get(identifier.uri);
674
686
  const document = documents.get(identifier.uri);
675
687
  const current =
@@ -1,9 +1,9 @@
1
1
  import path from "node:path";
2
- import { LinePositionMap } from "./position-map.js";
3
- import { retryWhileSourceChanges, sourceChanged } from "./source-changes.js";
2
+ import { LinePositionMap } from "./position-map.ts";
3
+ import { retryWhileSourceChanges, sourceChanged } from "./source-changes.ts";
4
4
  import { requiredValue } from "pi-agent-invariant";
5
5
  import { URI } from "vscode-uri";
6
- import { documentUri } from "./document-uri.js";
6
+ import { documentUri } from "./document-uri.ts";
7
7
  import { createTextDocument } from "pi-agent-text";
8
8
  import { verifyResultTargets, type ResolvedResultTargets } from "pi-agent-resource";
9
9
  import {
@@ -12,14 +12,14 @@ import {
12
12
  type SearchSelectionMatch,
13
13
  } from "pi-agent-search/api/search";
14
14
 
15
- import { LspManager } from "./manager.js";
16
- import { requestReferences, type LspLocation } from "./navigation.js";
15
+ import { LspManager } from "./manager.ts";
16
+ import { requestReferences, type LspLocation } from "./navigation.ts";
17
17
  import {
18
18
  requestWorkspaceSymbols,
19
19
  requestDocumentSymbols,
20
20
  type LspDocumentSymbol,
21
- } from "./symbols.js";
22
- import type { LspRange } from "./types.js";
21
+ } from "./symbols.ts";
22
+ import type { LspRange } from "./types.ts";
23
23
 
24
24
  /** Strict discovery scope, or an explicit seed scope for reference navigation. */
25
25
  export interface SymbolSearchScope {
@@ -4,9 +4,9 @@
4
4
  * Language-agnostic — works with any LSP server that supports
5
5
  * documentSymbolProvider.
6
6
  */
7
- import type { LspClient } from "./client.js";
8
- import type { LspManager } from "./manager.js";
9
- import type { LspRange } from "./types.js";
7
+ import type { LspClient } from "./client.ts";
8
+ import type { LspManager } from "./manager.ts";
9
+ import type { LspRange } from "./types.ts";
10
10
 
11
11
  // ── Types ────────────────────────────────────────────────────────────
12
12
 
@@ -1,4 +1,4 @@
1
- import type { LspOwnerTransport } from "./owner-transport.js";
1
+ import type { LspOwnerTransport } from "./owner-transport.ts";
2
2
 
3
3
  /** Workspace I/O and process creation supplied by the resource owner. */
4
4
  export interface LspWorkspaceOwner {
@@ -1,4 +1,4 @@
1
- import type { LspManager } from "./lsp/index.js";
1
+ import type { LspManager } from "./lsp/index.ts";
2
2
 
3
3
  /** Resolve the language-server manager that owns a source, starting it on first use. */
4
4
  export type LspManagerProvider = (
@@ -1,14 +1,14 @@
1
1
  import { fileURLToPath } from "node:url";
2
2
  import { parseCodeViewReference, resolveCodeViewPath } from "pi-agent-ide/api/code-view";
3
3
  import type { TextEditPlan, TextPreEditState } from "pi-agent-text-editor/api/edit-pipeline";
4
- import type { LspManagerProvider } from "./manager-provider.js";
5
- import { resolveLspRenameTarget } from "./lsp/code-views.js";
6
- import { withLspDocuments } from "./lsp/document-leases.js";
7
- import { requestRename, type LspWorkspaceEdit } from "./lsp/rename.js";
8
- import type { LspClient } from "./lsp/client.js";
9
- import type { LspPosition } from "./lsp/types.js";
10
- import { documentUri } from "./lsp/document-uri.js";
11
- import { loadQueryProject } from "./lsp/navigation.js";
4
+ import type { LspManagerProvider } from "./manager-provider.ts";
5
+ import { resolveLspRenameTarget } from "./lsp/code-views.ts";
6
+ import { withLspDocuments } from "./lsp/document-leases.ts";
7
+ import { requestRename, type LspWorkspaceEdit } from "./lsp/rename.ts";
8
+ import type { LspClient } from "./lsp/client.ts";
9
+ import type { LspPosition } from "./lsp/types.ts";
10
+ import { documentUri } from "./lsp/document-uri.ts";
11
+ import { loadQueryProject } from "./lsp/navigation.ts";
12
12
 
13
13
  function renameEntries(edit: LspWorkspaceEdit | null, client: LspClient) {
14
14
  if (edit === null)
@@ -10,10 +10,10 @@ import {
10
10
  type SearchSelectionMatch,
11
11
  } from "pi-agent-search/api/search";
12
12
  import path from "node:path";
13
- import { readLspFileGraph, readLspSymbolGraph, resolveLspDeclaration } from "./lsp/code-views.js";
14
- import type { LspManager } from "./lsp/manager.js";
15
- import { searchSymbols, type SymbolHit } from "./lsp/symbol-search.js";
16
- import { withLspDocuments } from "./lsp/document-leases.js";
13
+ import { readLspFileGraph, readLspSymbolGraph, resolveLspDeclaration } from "./lsp/code-views.ts";
14
+ import type { LspManager } from "./lsp/manager.ts";
15
+ import { searchSymbols, type SymbolHit } from "./lsp/symbol-search.ts";
16
+ import { withLspDocuments } from "./lsp/document-leases.ts";
17
17
 
18
18
  /** Options the `lsp_search` tool passes in `SearchRequest.options.lsp`; their presence selects this resolver. */
19
19
  export interface LspSearchOptions {
@@ -14,7 +14,7 @@ import {
14
14
  import { ResultPanel, toolCallHeader } from "pi-agent-tool-ui";
15
15
  import { Type, type Static } from "typebox";
16
16
 
17
- import type { LspSearchOptions } from "./search-resolver.js";
17
+ import type { LspSearchOptions } from "./search-resolver.ts";
18
18
 
19
19
  export const lspSearchSchema = Type.Object(
20
20
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-image",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "type": "module",
5
5
  "types": "./src/index.ts",
6
6
  "exports": {
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "pi-agent-resource": "0.9.5"
13
+ "pi-agent-resource": "0.9.6"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@earendil-works/pi-coding-agent": "*"
@@ -3,4 +3,4 @@ export {
3
3
  createImageContentConverter,
4
4
  detectSupportedImageMimeType,
5
5
  type SupportedImageMimeType,
6
- } from "./image-converter.js";
6
+ } from "./image-converter.ts";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-invariant",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "type": "module",
5
5
  "types": "./src/index.ts",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-pdf",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "type": "module",
5
5
  "types": "./src/index.ts",
6
6
  "exports": {
@@ -10,6 +10,6 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "pi-agent-resource": "0.9.5"
13
+ "pi-agent-resource": "0.9.6"
14
14
  }
15
15
  }
@@ -1 +1 @@
1
- export { createPdfContent, createPdfContentConverter, isPdf } from "./pdf-converter.js";
1
+ export { createPdfContent, createPdfContentConverter, isPdf } from "./pdf-converter.ts";
@@ -1 +1 @@
1
- export { default } from "./src/core/extension.js";
1
+ export { default } from "./src/core/extension.ts";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-read",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -24,12 +24,12 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "pi-agent-documentation": "0.9.5",
28
- "pi-agent-invariant": "0.9.5",
29
- "pi-agent-resource": "0.9.5",
30
- "pi-agent-text": "0.9.5",
31
- "pi-agent-tool-call-interception": "0.9.5",
32
- "pi-agent-tool-ui": "0.9.5"
27
+ "pi-agent-documentation": "0.9.6",
28
+ "pi-agent-invariant": "0.9.6",
29
+ "pi-agent-resource": "0.9.6",
30
+ "pi-agent-text": "0.9.6",
31
+ "pi-agent-tool-call-interception": "0.9.6",
32
+ "pi-agent-tool-ui": "0.9.6"
33
33
  },
34
34
  "pi": {
35
35
  "extensions": [
@@ -6,7 +6,7 @@ import {
6
6
  READ_PLUGIN_REGISTER_EVENT,
7
7
  type ReadPlugin,
8
8
  type ReadPluginRegistrationRequest,
9
- } from "#src/api/plugin-protocol.js";
9
+ } from "#src/api/plugin-protocol.ts";
10
10
 
11
11
  export function connectReadPlugin(pi: ExtensionAPI, plugin: ReadPlugin): void | Promise<void> {
12
12
  const announce = (): Promise<void> | undefined => {
@@ -1,7 +1,7 @@
1
1
  import { Type } from "typebox";
2
2
  import { Value } from "typebox/value";
3
3
 
4
- import type { ReadToolPluginApi } from "#src/api/tools/read.js";
4
+ import type { ReadToolPluginApi } from "#src/api/tools/read.ts";
5
5
 
6
6
  export const READ_PROTOCOL = "pi-agent-read";
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { Type, type TSchema } from "typebox";
2
- import type { ReadRequest } from "#src/api/tools/read.js";
2
+ import type { ReadRequest } from "#src/api/tools/read.ts";
3
3
 
4
4
  /** Canonical arguments shared by standalone and composed operations. */
5
5
  export const readParameters = Type.Object({
@@ -8,6 +8,6 @@ export interface ReadResultRendererOptions {
8
8
  readonly nativeResources?: boolean;
9
9
  }
10
10
 
11
- export { COMPACT_READ_ROWS, createReadResultRenderer } from "#src/core/tools/read/read-renderer.js";
11
+ export { COMPACT_READ_ROWS, createReadResultRenderer } from "#src/core/tools/read/read-renderer.ts";
12
12
 
13
- export type { ReadResultRenderer } from "#src/api/tools/read.js";
13
+ export type { ReadResultRenderer } from "#src/api/tools/read.ts";
@@ -467,9 +467,9 @@ function isRecord(value: unknown): value is Record<string, unknown> {
467
467
  return typeof value === "object" && value !== null;
468
468
  }
469
469
 
470
- export { readParameters } from "#src/api/read-parameters.js";
470
+ export { readParameters } from "#src/api/read-parameters.ts";
471
471
  export {
472
472
  readDataSchema,
473
473
  readOutputSchema,
474
474
  structuredRead,
475
- } from "#src/core/tools/read/structured-result.js";
475
+ } from "#src/core/tools/read/structured-result.ts";
@@ -1,6 +1,6 @@
1
1
  import { type ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
2
  import { connectResultTargets } from "pi-agent-resource";
3
- import { createReadResultTargetHandler } from "#src/core/tools/read/result-target.js";
3
+ import { createReadResultTargetHandler } from "#src/core/tools/read/result-target.ts";
4
4
  import {
5
5
  ToolCallInterceptionRenderStore,
6
6
  withToolCallInterceptionRendering,
@@ -12,10 +12,10 @@ import {
12
12
  READ_CORE_READY_EVENT,
13
13
  READ_PLUGIN_REGISTER_EVENT,
14
14
  READ_PROTOCOL,
15
- } from "#src/api/plugin-protocol.js";
16
- import { createReadCore } from "#src/core/read-core.js";
15
+ } from "#src/api/plugin-protocol.ts";
16
+ import { createReadCore } from "#src/core/read-core.ts";
17
17
 
18
- import { compactReadDetails } from "#src/core/tools/read/persisted-result.js";
18
+ import { compactReadDetails } from "#src/core/tools/read/persisted-result.ts";
19
19
 
20
20
  function isRecord(value: unknown): value is Record<string, unknown> {
21
21
  return typeof value === "object" && value !== null;
@@ -3,7 +3,7 @@ import {
3
3
  READ_PROTOCOL,
4
4
  type ReadPlugin,
5
5
  type ReadPluginApi,
6
- } from "#src/api/plugin-protocol.js";
6
+ } from "#src/api/plugin-protocol.ts";
7
7
  import {
8
8
  isFragmentResolverRegistration,
9
9
  isReadHandlerRegistration,
@@ -19,9 +19,9 @@ import {
19
19
  type ReadViewRegistration,
20
20
  type ResourceResolverRegistration,
21
21
  type TextTargetResolverRegistration,
22
- } from "#src/api/tools/read.js";
23
- import { createReadTool, type ReadTool } from "#src/core/tools/tool-read.js";
24
- import { readParameters, type ReadParameterText } from "#src/api/read-parameters.js";
22
+ } from "#src/api/tools/read.ts";
23
+ import { createReadTool, type ReadTool } from "#src/core/tools/tool-read.ts";
24
+ import { readParameters, type ReadParameterText } from "#src/api/read-parameters.ts";
25
25
 
26
26
  type PluginStatus = "active" | "pending";
27
27
 
@@ -7,8 +7,8 @@ import {
7
7
  type TruncationResult,
8
8
  } from "@earendil-works/pi-coding-agent";
9
9
 
10
- import type { ReadRequest, ReadResultDetails, ReadToolResult } from "#src/api/tools/read.js";
11
- import { anchoredStartLine } from "#src/core/tools/read/read-result.js";
10
+ import type { ReadRequest, ReadResultDetails, ReadToolResult } from "#src/api/tools/read.ts";
11
+ import { anchoredStartLine } from "#src/core/tools/read/read-result.ts";
12
12
 
13
13
  export interface ReadTruncationOptions {
14
14
  /** Absolute 1-based line where an anchored read's window starts. */