pi-agent-ide 0.2.0 → 0.2.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 -0
- package/dist/chunk-2XYXV5HS.js +4 -0
- package/dist/{chunk-YQTLJ5ZV.js → chunk-6XQQBKPE.js} +1 -1
- package/dist/{chunk-VUNCBASK.js → chunk-KH5KPBCR.js} +3 -3
- package/dist/chunk-L4FA6OD4.js +1 -0
- package/dist/chunk-LGN7EJYR.js +13 -0
- package/dist/chunk-MTQSGWZJ.js +1 -0
- package/dist/chunk-N34ATN52.js +1 -0
- package/dist/{chunk-52BM6J6I.js → chunk-NXHPO7ER.js} +3 -3
- package/dist/{chunk-QW5O42QJ.js → chunk-OFHVDY4Q.js} +1 -1
- package/dist/{chunk-E4SECPF4.js → chunk-ONWUJXUR.js} +1 -1
- package/dist/chunk-QZANC2IG.js +1 -0
- package/dist/{chunk-QNZVPFSP.js → chunk-SMSIT3CE.js} +1 -1
- package/dist/{chunk-KP37XTDI.js → chunk-UTTW55S2.js} +1 -1
- package/dist/chunk-VEJGSURY.js +8 -0
- package/dist/chunk-WZI4YC2O.js +1 -0
- package/dist/{chunk-5A25RATC.js → chunk-ZIHEF6K3.js} +3 -3
- package/dist/entry-0.js +1 -1
- package/dist/entry-18.js +1 -1
- package/dist/entry-19.js +1 -1
- 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 -1
- package/dist/entry-27.js +1 -1
- package/dist/entry-28.js +1 -1
- package/dist/entry-29.js +1 -1
- package/dist/entry-30.js +1 -1
- package/dist/entry-31.js +1 -1
- package/dist/entry-32.js +1 -1
- package/dist/entry-33.js +1 -1
- package/dist/entry-34.js +1 -1
- package/dist/entry-35.js +1 -1
- package/dist/entry-36.js +1 -1
- package/dist/entry-37.js +1 -1
- package/dist/entry-38.js +1 -1
- package/dist/entry-39.js +1 -1
- package/dist/entry-4.js +1 -1
- package/dist/entry-40.js +1 -1
- package/dist/entry-41.js +1 -1
- package/dist/entry-42.js +1 -1
- package/dist/entry-43.js +1 -1
- package/dist/entry-44.js +1 -1
- package/dist/entry-45.js +1 -1
- package/dist/entry-46.js +1 -1
- package/dist/entry-47.js +1 -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 -1
- package/dist/entry-52.js +1 -1
- package/dist/entry-53.js +1 -0
- package/dist/entry-54.js +0 -1
- package/dist/entry-55.js +1 -0
- package/dist/entry-56.js +0 -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-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-70.js +1 -1
- package/dist/entry-71.js +1 -1
- package/dist/entry-72.js +1 -1
- package/dist/entry-73.js +1 -1
- package/dist/entry-74.js +1 -1
- package/dist/entry-75.js +1 -1
- package/dist/entry-76.js +1 -1
- package/dist/entry-77.js +1 -1
- package/dist/entry-78.js +1 -1
- package/dist/entry-79.js +1 -1
- package/dist/entry-80.js +1 -0
- package/dist/pi-agent-ide.js +12 -12
- package/docs/configuration.md +32 -1
- package/docs/generated/tool-catalog/cmake.md +5 -5
- package/docs/generated/tool-catalog/csharp.md +5 -5
- package/docs/generated/tool-catalog/css.md +7 -7
- package/docs/generated/tool-catalog/dart.md +9 -0
- package/docs/generated/tool-catalog/dockerfile.md +5 -5
- package/docs/generated/tool-catalog/elixir.md +9 -0
- package/docs/generated/tool-catalog/html.md +7 -6
- package/docs/generated/tool-catalog/index.md +9 -0
- package/docs/generated/tool-catalog/javascript.md +8 -8
- package/docs/generated/tool-catalog/json.md +7 -7
- package/docs/generated/tool-catalog/julia.md +8 -0
- package/docs/generated/tool-catalog/kotlin.md +6 -5
- package/docs/generated/tool-catalog/markdown.md +6 -6
- package/docs/generated/tool-catalog/powershell.md +9 -0
- package/docs/generated/tool-catalog/python.md +6 -6
- package/docs/generated/tool-catalog/r.md +9 -0
- package/docs/generated/tool-catalog/scala.md +9 -0
- package/docs/generated/tool-catalog/svelte.md +9 -0
- package/docs/generated/tool-catalog/typescript.md +9 -8
- package/docs/generated/tool-catalog/vue.md +9 -0
- package/docs/generated/tool-catalog/yaml.md +6 -6
- package/docs/generated/tool-catalog/zig.md +9 -0
- package/node_modules/pi-agent-doctor/package.json +10 -3
- package/node_modules/pi-agent-doctor/runtime/entry-20.js +1 -0
- package/node_modules/pi-agent-doctor/src/catalog.ts +27 -1
- package/node_modules/pi-agent-doctor/src/evidence.ts +118 -0
- package/node_modules/pi-agent-doctor/src/executable.ts +63 -17
- package/node_modules/pi-agent-filesystem/package.json +7 -7
- package/node_modules/pi-agent-filesystem-image/package.json +4 -4
- 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-24.js +2 -0
- package/node_modules/pi-agent-ide-ast/package.json +11 -11
- package/node_modules/pi-agent-ide-ast/runtime/entry-25.js +0 -1
- package/node_modules/pi-agent-ide-ast/runtime/entry-26.js +2 -0
- package/node_modules/pi-agent-ide-ast/src/ast/manager.ts +3 -0
- package/node_modules/pi-agent-ide-ast/src/ast/outline.ts +3 -0
- package/node_modules/pi-agent-ide-changes/package.json +8 -8
- package/node_modules/pi-agent-ide-changes/runtime/entry-27.js +0 -1
- package/node_modules/pi-agent-ide-formatter/package.json +4 -4
- package/node_modules/pi-agent-ide-formatter/src/catalog.ts +131 -13
- package/node_modules/pi-agent-ide-formatter/src/registry.ts +20 -8
- package/node_modules/pi-agent-ide-languages/package.json +3 -3
- package/node_modules/pi-agent-ide-languages/src/languages.ts +15 -0
- package/node_modules/pi-agent-ide-lint/package.json +8 -8
- package/node_modules/pi-agent-ide-lint/src/catalog.ts +196 -39
- package/node_modules/pi-agent-ide-lint/src/command-linter.ts +23 -3
- package/node_modules/pi-agent-ide-lint/src/diagnostics.ts +73 -33
- package/node_modules/pi-agent-ide-lint/src/registry.ts +20 -8
- package/node_modules/pi-agent-ide-lsp/package.json +9 -9
- package/node_modules/pi-agent-ide-lsp/runtime/entry-32.js +2 -0
- package/node_modules/pi-agent-ide-lsp/src/catalog.ts +161 -7
- package/node_modules/pi-agent-ide-lsp/src/diagnostic-source.ts +3 -6
- package/node_modules/pi-agent-ide-lsp/src/doctor-plugin.ts +2 -4
- package/node_modules/pi-agent-ide-lsp/src/lsp/client.ts +154 -11
- package/node_modules/pi-agent-ide-lsp/src/lsp/file-watchers.ts +88 -0
- package/node_modules/pi-agent-ide-lsp/src/lsp/initialization-options.ts +14 -0
- package/node_modules/pi-agent-ide-lsp/src/lsp/manager.ts +8 -4
- package/node_modules/pi-agent-ide-lsp/src/lsp/registry.ts +69 -34
- package/node_modules/pi-agent-ide-lsp/src/lsp/transport-writer.ts +24 -0
- package/node_modules/pi-agent-ide-lsp/src/lsp/types.ts +5 -0
- package/node_modules/pi-agent-image/package.json +3 -3
- package/node_modules/pi-agent-invariant/package.json +2 -2
- package/node_modules/pi-agent-pdf/package.json +3 -3
- package/node_modules/pi-agent-read/package.json +11 -11
- package/node_modules/pi-agent-read/runtime/entry-39.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-40.js +2 -0
- package/node_modules/pi-agent-resource/package.json +2 -2
- package/node_modules/pi-agent-search/package.json +7 -7
- package/node_modules/pi-agent-search/runtime/entry-44.js +0 -1
- package/node_modules/pi-agent-search-text/package.json +9 -9
- package/node_modules/pi-agent-search-text/runtime/entry-46.js +1 -0
- package/node_modules/pi-agent-text/package.json +3 -3
- package/node_modules/pi-agent-text/runtime/entry-48.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-49.js +2 -0
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -5
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-50.js +0 -1
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-51.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-52.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-53.js +2 -0
- package/node_modules/pi-agent-text-editor/package.json +22 -22
- package/node_modules/pi-agent-text-editor/runtime/entry-68.js +0 -1
- package/node_modules/pi-agent-text-editor-argument-order/package.json +3 -3
- package/node_modules/pi-agent-text-editor-overwrite/package.json +4 -4
- package/node_modules/pi-agent-text-editor-renderer/package.json +6 -6
- package/node_modules/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-73.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-75.js +1 -0
- package/node_modules/pi-agent-web/package.json +7 -7
- package/node_modules/pi-agent-web-html/package.json +3 -3
- package/node_modules/pi-agent-web-image/package.json +4 -4
- package/node_modules/pi-agent-web-pdf/package.json +4 -4
- package/node_modules/pi-agent-web-text/package.json +4 -4
- package/node_modules/pi-agent-web-text/runtime/entry-80.js +2 -0
- package/package.json +35 -35
- package/src/api/tool-config/formatters.json +70 -12
- package/src/api/tool-config/linters.json +148 -66
- package/src/api/tool-config/lsp-servers.json +142 -7
- package/src/api/tool-config.ts +56 -24
- package/src/code-view/diagnostic-view.ts +14 -10
- package/src/doctor/config-writer.ts +14 -1
- package/src/doctor/discovery.ts +13 -68
- package/src/doctor/run.ts +33 -1
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +7 -7
- 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-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-24.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-21.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +7 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +3 -3
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/runtime/entry-80.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-76.js +2 -0
- package/src/extensions/pi-agent-read/package.json +11 -11
- package/src/extensions/pi-agent-read/runtime/entry-39.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-40.js +2 -0
- package/src/extensions/pi-agent-search/package.json +7 -7
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +9 -9
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-46.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-47.js +1 -0
- package/src/extensions/pi-agent-search/runtime/entry-44.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-45.js +2 -0
- package/src/extensions/pi-agent-text-editor/package.json +22 -22
- 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-49.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-50.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-51.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-52.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-53.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-argument-order/package.json +3 -3
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-overwrite/package.json +4 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +6 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-73.js +2 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-68.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-69.js +2 -0
- package/src/plugins/pi-agent-ide-ast/package.json +11 -11
- package/src/plugins/pi-agent-ide-ast/runtime/entry-25.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-26.js +2 -0
- package/src/plugins/pi-agent-ide-ast/src/ast/manager.ts +3 -0
- package/src/plugins/pi-agent-ide-ast/src/ast/outline.ts +3 -0
- package/src/plugins/pi-agent-ide-changes/package.json +8 -8
- package/src/plugins/pi-agent-ide-changes/runtime/entry-27.js +0 -1
- package/src/plugins/pi-agent-ide-diagnostics/src/extension.ts +8 -0
- package/src/plugins/pi-agent-ide-formatter/package.json +4 -4
- package/src/plugins/pi-agent-ide-formatter/src/catalog.ts +131 -13
- package/src/plugins/pi-agent-ide-formatter/src/registry.ts +20 -8
- package/src/plugins/pi-agent-ide-languages/package.json +3 -3
- package/src/plugins/pi-agent-ide-languages/src/languages.ts +15 -0
- package/src/plugins/pi-agent-ide-lint/package.json +8 -8
- package/src/plugins/pi-agent-ide-lint/src/catalog.ts +196 -39
- package/src/plugins/pi-agent-ide-lint/src/command-linter.ts +23 -3
- package/src/plugins/pi-agent-ide-lint/src/diagnostics.ts +73 -33
- package/src/plugins/pi-agent-ide-lint/src/registry.ts +20 -8
- package/src/plugins/pi-agent-ide-lsp/package.json +9 -9
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-32.js +2 -0
- package/src/plugins/pi-agent-ide-lsp/src/catalog.ts +161 -7
- package/src/plugins/pi-agent-ide-lsp/src/diagnostic-source.ts +3 -6
- package/src/plugins/pi-agent-ide-lsp/src/doctor-plugin.ts +2 -4
- package/src/plugins/pi-agent-ide-lsp/src/lsp/client.ts +154 -11
- package/src/plugins/pi-agent-ide-lsp/src/lsp/file-watchers.ts +88 -0
- package/src/plugins/pi-agent-ide-lsp/src/lsp/initialization-options.ts +14 -0
- package/src/plugins/pi-agent-ide-lsp/src/lsp/manager.ts +8 -4
- package/src/plugins/pi-agent-ide-lsp/src/lsp/registry.ts +69 -34
- package/src/plugins/pi-agent-ide-lsp/src/lsp/transport-writer.ts +24 -0
- package/src/plugins/pi-agent-ide-lsp/src/lsp/types.ts +5 -0
- package/src/toolchain/types.ts +2 -0
- package/dist/chunk-476MR2QB.js +0 -1
- package/dist/chunk-4KQOODGE.js +0 -13
- package/dist/chunk-7NDBZ4WX.js +0 -1
- package/dist/chunk-AP7Z3VWC.js +0 -1
- package/dist/chunk-TNWYEXFG.js +0 -1
- package/dist/chunk-U4D6FT66.js +0 -1
- package/dist/chunk-VWVLBOMU.js +0 -8
- package/node_modules/pi-agent-filesystem/runtime/entry-20.js +0 -2
- package/node_modules/pi-agent-ide-ast/runtime/entry-24.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-26.js +0 -1
- package/node_modules/pi-agent-image/runtime/entry-32.js +0 -1
- package/node_modules/pi-agent-resource/runtime/entry-40.js +0 -1
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-48.js +0 -2
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-49.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-51.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-53.js +0 -1
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-73.js +0 -1
- package/node_modules/pi-agent-web/runtime/entry-75.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-21.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-20.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-76.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-75.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-35.js +0 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-45.js +0 -2
- package/src/extensions/pi-agent-search/runtime/entry-41.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-48.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-49.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-51.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-argument-order/runtime/entry-69.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-53.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-24.js +0 -1
- package/src/plugins/pi-agent-ide-changes/runtime/entry-26.js +0 -1
- /package/node_modules/{pi-agent-filesystem-image → pi-agent-filesystem}/runtime/entry-21.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-22.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-23.js +0 -0
- /package/node_modules/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-28.js +0 -0
- /package/node_modules/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-30.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-31.js +0 -0
- /package/node_modules/{pi-agent-invariant → pi-agent-image}/runtime/entry-33.js +0 -0
- /package/node_modules/{pi-agent-pdf → pi-agent-invariant}/runtime/entry-34.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-pdf}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-search → pi-agent-resource}/runtime/entry-41.js +0 -0
- /package/node_modules/{pi-agent-search-text → pi-agent-search}/runtime/entry-45.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-47.js +0 -0
- /package/node_modules/{pi-agent-text-editor-argument-order → pi-agent-text-editor}/runtime/entry-69.js +0 -0
- /package/node_modules/{pi-agent-text-editor-overwrite → pi-agent-text-editor-argument-order}/runtime/entry-70.js +0 -0
- /package/node_modules/{pi-agent-text-editor-renderer → pi-agent-text-editor-overwrite}/runtime/entry-71.js +0 -0
- /package/node_modules/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-72.js +0 -0
- /package/node_modules/{pi-agent-tool-ui → pi-agent-tool-call-interception}/runtime/entry-74.js +0 -0
- /package/node_modules/{pi-agent-web-html → pi-agent-web}/runtime/entry-76.js +0 -0
- /package/node_modules/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-77.js +0 -0
- /package/node_modules/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-78.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-79.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-22.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-23.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-77.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-78.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-79.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-overwrite → pi-agent-text-editor-argument-order}/runtime/entry-70.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-renderer → pi-agent-text-editor-overwrite}/runtime/entry-71.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-72.js +0 -0
- /package/src/plugins/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-28.js +0 -0
- /package/src/plugins/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-29.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-30.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-31.js +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{a as ve}from"./chunk-ERVMDQGX.js";import{a as he,b as ye}from"./chunk-VFBLX4TG.js";import{c as Se}from"./chunk-SSZB66C3.js";import{a as Le}from"./chunk-ORAPGW7W.js";import{a as be,b as we}from"./chunk-JASLOB2X.js";import{a as ke}from"./chunk-E2RESHYR.js";import{a as Re,b as _e}from"./chunk-T2RPMEM2.js";import{a as oe,b as ae,c as E,d as R,j as ce,k as le,l as pe}from"./chunk-ZIHEF6K3.js";import{a as ge}from"./chunk-OBWZ5RYN.js";import{a as de,b as ue}from"./chunk-KZBAJFCV.js";import{e as me,h as A,m as fe}from"./chunk-L4FA6OD4.js";import{a as h}from"./chunk-ZC65Z3CK.js";import{a as c}from"./chunk-EI7MMDWY.js";import st from"node:path";import it from"cross-spawn";import{createMessageConnection as ot,CancellationTokenSource as at,StreamMessageReader as ct}from"vscode-jsonrpc/node";import{URI as Pe}from"vscode-uri";import{watch as et}from"node:fs";import{readdir as tt,stat as rt}from"node:fs/promises";import C from"node:path";import{URI as F}from"vscode-uri";var O=class{constructor(e,t,n){this.root=e;this.changed=t;this.failed=n}static{c(this,"LspFileWatchers")}registrations=new Map;disposed=!1;async register(e,t){let n=[];try{for(let s of t){let i=s.globPattern,o=typeof i=="string"?this.root:F.parse(typeof i.baseUri=="string"?i.baseUri:i.baseUri.uri).fsPath,l=typeof i=="string"?i:i.pattern,a=c(m=>C.matchesGlob(C.isAbsolute(l)?C.join(o,m):m,l),"matches"),p=new Set((await tt(o,{recursive:!0})).filter(a));if(this.disposed)throw new Error("Language server file watchers are disposed");let d=et(o,{recursive:!0},(m,f)=>{!f||!a(f)||rt(C.join(o,f)).then(()=>{if(!this.registrations.get(e)?.includes(d))return;let g=p.has(f)?2:1;p.add(f),(s.kind??7)&(g===1?1:2)&&this.changed({uri:F.file(C.join(o,f)).toString(),type:g})},g=>{if(this.registrations.get(e)?.includes(d)){if(g.code!=="ENOENT"){this.failed(g);return}p.delete(f)&&(s.kind??7)&4&&this.changed({uri:F.file(C.join(o,f)).toString(),type:3})}})});d.on("error",this.failed),n.push(d)}}catch(s){for(let i of n)i.close();throw s}this.unregister(e),this.registrations.set(e,n)}unregister(e){for(let t of this.registrations.get(e)??[])t.close();this.registrations.delete(e)}dispose(){this.disposed=!0;for(let e of this.registrations.keys())this.unregister(e)}};import{StreamMessageWriter as nt}from"vscode-jsonrpc/node";var T=class extends nt{constructor(t,n){super(t);this.fail=n}static{c(this,"TransportWriter")}async write(t){try{await super.write(t)}catch(n){this.fail(n)}}};var _=class{static{c(this,"LspClient")}_process=null;_connection=null;_initialized=!1;_serverCapabilities=null;_disposed=!1;_crashed=!1;_stderr="";_fileWatchers;_handlers=new Map;_documentVersions=new Map;_documentContents=new Map;_diagnosticPublications=new Map;_diagnosticMode="unknown";_activeDiagnosticRequests=new Set;serverId;rootUri;_command;_args;_env;_initOptions;_settings;_timeoutMs;constructor(e){this.serverId=e.serverId,this.rootUri=e.rootUri,this._command=e.command,this._args=e.command.slice(1),this._env=e.env??{},this._initOptions=e.initOptions,this._settings=e.settings,this._timeoutMs=e.timeoutMs??3e4}get ready(){return this._initialized&&!this._disposed}get crashed(){return this._crashed}get pid(){return this._process?.pid??null}get diagnosticMode(){return this._diagnosticMode}setDiagnosticMode(e){this._diagnosticMode=e}get timeoutMs(){return this._timeoutMs}supportsCommand(e){let t=this._serverCapabilities?.executeCommandProvider;return Array.isArray(t?.commands)&&t.commands.includes(e)}get hasFoldingRangeCapability(){let e=this._serverCapabilities?.foldingRangeProvider;return e===!0||typeof e=="object"&&e!==null}documentVersion(e){return this._documentVersions.get(e)}diagnosticPublication(e){return this._diagnosticPublications.get(e)}beginDiagnosticRequest(e){this._activeDiagnosticRequests.add(e)}endDiagnosticRequest(e){this._activeDiagnosticRequests.delete(e)}hasActiveDiagnosticRequest(e){return this._activeDiagnosticRequests.has(e)}async start(){if(this._initialized)return;if(this._disposed)throw new Error(`[lsp] ${this.serverId}: disposed`);let e=h(this._command[0]),t=Pe.parse(this.rootUri).fsPath,n=[{uri:this.rootUri,name:st.basename(t)||t}],s=it(e,this._args,{stdio:["pipe","pipe","pipe"],cwd:t,env:fe({command:this._command,env:this._env},t,process.env)});this._process=s;let i=lt(s);s.stdin?.on("error",()=>{}),s.stdout?.on("error",()=>{}),s.stderr?.on("error",()=>{}),this._stderr="",s.stderr?.setEncoding("utf8"),s.stderr?.on("data",a=>{this._stderr=(this._stderr+a).slice(-4096)}),s.on("error",a=>{("code"in a?a.code:void 0)!=="ENOENT"&&console.error(`[lsp] ${this.serverId}: spawn failed:`,a),this._crashed=!0,this._connection?.dispose(),this._connection=null,this._process=null}),s.on("exit",(a,p)=>{this._fileWatchers?.dispose(),!this._disposed&&a!==0&&a!==null&&(this._crashed=!0),this._connection?.dispose(),this._connection=null,this._process=null,this._initialized=!1}),await i;let o=ot(new ct(h(s.stdout)),new T(h(s.stdin),a=>{this._connection!==o||this._disposed||(this._crashed=!0,this._initialized=!1,this._fileWatchers?.dispose(),o.dispose(),console.error(`[lsp] ${this.serverId}: transport write failed:`,a))}));this._connection=o,this._connection.onError(a=>{console.error(`[lsp] ${this.serverId}: connection error:`,a)}),this._fileWatchers=new O(t,a=>{this._sendNotification("workspace/didChangeWatchedFiles",{changes:[a]})},a=>console.error(`[lsp] ${this.serverId}: file watcher failed:`,a)),this._connection.onRequest("client/registerCapability",async a=>{for(let p of a.registrations)if(p.method!=="workspace/didChangeConfiguration"){if(p.method!=="workspace/didChangeWatchedFiles")throw new Error(`Unsupported dynamic capability: ${p.method}`);await this._fileWatchers?.register(p.id,p.registerOptions?.watchers??[])}return null}),this._connection.onRequest("client/unregisterCapability",a=>{for(let p of a.unregisterations)this._fileWatchers?.unregister(p.id);return null}),this._connection.onRequest("window/workDoneProgress/create",()=>null),this._connection.onRequest("workspace/configuration",a=>a.items.map(p=>{let d=this._settings??null;for(let m of p.section?.split(".").filter(Boolean)??[])d=typeof d=="object"&&d!==null?d[m]??null:null;return d})),this._connection.listen(),this._connection.onNotification((a,...p)=>{if(a==="textDocument/publishDiagnostics"){let d=p[0];d&&typeof d.uri=="string"&&Array.isArray(d.diagnostics)&&this._documentVersions.has(d.uri)&&(d.version===void 0||d.version===this.documentVersion(d.uri))&&this._diagnosticPublications.set(d.uri,{diagnostics:d.diagnostics,...typeof d.version=="number"&&{version:d.version}})}for(let d of this._handlers.get(a)??[])d(p[0])}),this._connection.onRequest("workspace/workspaceFolders",()=>n);let l=await Ce(this._connection.sendRequest("initialize",{processId:process.pid,rootUri:this.rootUri,workspaceFolders:n,capabilities:{workspace:{applyEdit:!1,configuration:!0,workspaceFolders:!0,didChangeWatchedFiles:{dynamicRegistration:!0,relativePatternSupport:!0},symbol:{dynamicRegistration:!1}},textDocument:{synchronization:{didOpen:!0,didChange:!0,didClose:!0},publishDiagnostics:{relatedInformation:!0},diagnostic:{dynamicRegistration:!1,relatedDocumentSupport:!1},documentSymbol:{hierarchicalDocumentSymbolSupport:!0},foldingRange:{lineFoldingOnly:!0}}},initializationOptions:this._initOptions}),this._timeoutMs,`[lsp] ${this.serverId}: initialize timed out`).catch(a=>{let p=this._stderr.trim();throw p?new Error(`[lsp] ${this.serverId}: ${p}`,{cause:a}):a});if(await this._connection.sendNotification("initialized",{capabilities:l.capabilities}),this._settings!==void 0&&await this._connection.sendNotification("workspace/didChangeConfiguration",{settings:this._settings}),this._crashed)throw new Error(`[lsp] ${this.serverId}: transport failed during initialization`);this._initialized=!0,this._serverCapabilities=l.capabilities,this._diagnosticMode=l.capabilities.diagnosticProvider?"pull":"push"}touch(){}async restart(){this._fileWatchers?.dispose(),this._connection?.dispose(),this._connection=null,this._process=null,this._initialized=!1,this._crashed=!1,this._disposed=!1,this._documentVersions.clear(),this._documentContents.clear(),this._diagnosticPublications.clear(),this._diagnosticMode="unknown",this._activeDiagnosticRequests.clear(),this._serverCapabilities=null,await this.start()}async sendRequest(e,t,n){if(this._assertReady(),n?.throwIfAborted(),!n)return h(this._connection).sendRequest(e,t);let s=new at,i;try{let o=h(this._connection).sendRequest(e,t,s.token);return await Promise.race([o,new Promise((l,a)=>{i=c(()=>{s.cancel(),a(n.reason)},"onAbort"),n.addEventListener("abort",i,{once:!0})})])}finally{i&&n.removeEventListener("abort",i),s.dispose()}}sendNotification(e,t){this._assertReady(),this._sendNotification(e,t)}_sendNotification(e,t){let n=this._connection;n&&n.sendNotification(e,t).catch(s=>{this._connection!==n||this._disposed||(this._crashed=!0,this._initialized=!1,this._fileWatchers?.dispose(),n.dispose(),console.error(`[lsp] ${this.serverId}: notification ${e} failed:`,s))})}onNotification(e,t){let n=this._handlers.get(e)??[];return n.push(t),this._handlers.set(e,n),()=>{let s=n.indexOf(t);s!==-1&&n.splice(s,1)}}toUri(e){return e.startsWith("file://")?e:Pe.file(e).toString()}openDocument(e,t,n,s=1){let i=this._documentVersions.get(e);if(i!==void 0){this.changeDocument(e,t,Math.max(s,i+1));return}this._diagnosticPublications.delete(e),this.sendNotification("textDocument/didOpen",{textDocument:{uri:e,languageId:n,version:s,text:t}}),this._documentVersions.set(e,s),this._documentContents.set(e,t)}syncDocument(e,t,n,s=!1){if(this._documentContents.get(e)===t)return;let i=this._documentVersions.get(e);i===void 0?this.openDocument(e,t,n):this.changeDocument(e,t,i+1);let o=this._serverCapabilities?.textDocumentSync,l=typeof o=="object"&&o!==null?o.save:void 0;s&&l&&this.sendNotification("textDocument/didSave",{textDocument:{uri:e},...typeof l=="object"&&l.includeText&&{text:t}})}changeDocument(e,t,n){let s=this._documentVersions.get(e),i=Math.max(n,(s??0)+1);this._diagnosticPublications.delete(e),this.sendNotification("textDocument/didChange",{textDocument:{uri:e,version:i},contentChanges:[{text:t}]}),this._documentVersions.set(e,i),this._documentContents.set(e,t)}closeDocument(e){this.sendNotification("textDocument/didClose",{textDocument:{uri:e}}),this._documentVersions.delete(e),this._documentContents.delete(e),this._diagnosticPublications.delete(e)}async shutdown(){if(!this._disposed){if(this._disposed=!0,this._fileWatchers?.dispose(),this._connection&&this._initialized)try{await Ce(this._connection.sendRequest("shutdown"),Math.min(this._timeoutMs,1e3),`[lsp] ${this.serverId}: shutdown timed out`),await this._connection.sendNotification("exit").catch(()=>{})}catch{}this._connection?.dispose(),this._connection=null,this._process&&!this._process.killed&&(this._process.kill("SIGTERM"),setTimeout(()=>{this._process&&!this._process.killed&&this._process.kill("SIGKILL")},2e3).unref()),this._initialized=!1,this._documentVersions.clear(),this._documentContents.clear(),this._diagnosticPublications.clear(),this._diagnosticMode="unknown",this._activeDiagnosticRequests.clear(),this._serverCapabilities=null}}dispose(){this.shutdown()}_assertReady(){if(this._disposed)throw new Error(`[lsp] ${this.serverId}: disposed`);if(this._crashed)throw new Error(`[lsp] ${this.serverId}: crashed \u2014 call restart()`);if(!this._initialized)throw new Error(`[lsp] ${this.serverId}: not started \u2014 call start()`);if(!this._connection)throw new Error(`[lsp] ${this.serverId}: connection lost`)}};function lt(r){return new Promise((e,t)=>{let n=c(()=>{r.off("spawn",s),r.off("error",i)},"cleanup"),s=c(()=>{n(),e()},"onSpawn"),i=c(o=>{n(),t(o)},"onError");r.once("spawn",s),r.once("error",i)})}c(lt,"waitForSpawn");function Ce(r,e,t){return new Promise((n,s)=>{let i=setTimeout(()=>{s(new Error(t))},e);r.then(o=>{clearTimeout(i),n(o)}).catch(o=>{clearTimeout(i),s(o instanceof Error?o:new Error(String(o)))})})}c(Ce,"withTimeout");import{readFile as De}from"node:fs/promises";import{URI as Ee}from"vscode-uri";var I={Error:1,Warning:2,Information:3,Hint:4};var xe={command:"typescript.tsserverRequest",async request(r,e,t){return(await Promise.all(["syntacticDiagnosticsSync","semanticDiagnosticsSync","suggestionDiagnosticsSync"].map(async s=>{let i=await r.sendRequest("workspace/executeCommand",{command:"typescript.tsserverRequest",arguments:[s,{file:e,includeLinePosition:!0},{isAsync:!1,expectsResult:!0}]},t);if(!W(i)||i.success!==!0||!Array.isArray(i.body))throw new Error(`Invalid completed TypeScript diagnostic report: ${s}`);return i.body.map(pt)}))).flat()}};function q(r){return r.supportsCommand(xe.command)?xe:void 0}c(q,"completedDiagnosticAdapter");function pt(r){if(!W(r)||typeof r.message!="string"||typeof r.code!="number"&&typeof r.code!="string"||!W(r.startLocation)||!Number.isInteger(r.startLocation.line)||!Number.isInteger(r.startLocation.offset)||Number(r.startLocation.line)<1||Number(r.startLocation.offset)<1||!["error","warning","suggestion","message"].includes(String(r.category)))throw new Error("Invalid TypeScript diagnostic entry");return{code:String(r.code),message:r.message,line:Number(r.startLocation.line),column:Number(r.startLocation.offset),severity:r.category==="error"?"error":r.category==="warning"?"warning":r.category==="suggestion"?"hint":"info"}}c(pt,"convertTypeScriptDiagnostic");function W(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}c(W,"isRecord");async function j(r,e,t,n={}){let s=new AbortController,i=AbortSignal.any([s.signal,...n.signal?[n.signal]:[]]),o=setTimeout(()=>s.abort(new Error(`[lsp] ${r.serverId}: diagnostics timed out for ${e}`)),r.timeoutMs);try{return await dt(r,e,t,n.content,i)}finally{clearTimeout(o)}}c(j,"requestDiagnostics");async function dt(r,e,t,n,s){if(s.throwIfAborted(),r.diagnosticMode!=="push"){let a=r.documentVersion(e);try{let p=await r.sendRequest("textDocument/diagnostic",{textDocument:{uri:e}},s);if(p.kind!=="full"||!Array.isArray(p.items))throw new Error("Invalid full diagnostic report");if(r.documentVersion(e)!==a)throw new Error("Document changed during diagnostic request");return r.setDiagnosticMode("pull"),Ie(p.items,!1,!0)}catch(p){if(!ut(p))throw p;r.setDiagnosticMode("push")}}let i=q(r);if(i){r.documentVersion(e)===void 0&&r.syncDocument(e,n??await De(Ee.parse(e).fsPath,"utf8"),t??"plaintext");let a=r.documentVersion(e),p=await i.request(r,e,s);if(s.throwIfAborted(),r.documentVersion(e)!==a)throw new Error("Document changed during diagnostic request");return{diagnostics:p,syntaxErrors:[],otherDiagnostics:p,unversioned:!1,complete:!0}}s.throwIfAborted();let o=r.documentVersion(e)!==void 0,l=o?void 0:n??await De(Ee.parse(e).fsPath,"utf8");s.throwIfAborted(),r.beginDiagnosticRequest(e);try{return await new Promise((a,p)=>{let d=r.documentVersion(e)??1,m=c(w=>{let v=w;v.uri!==e||!Array.isArray(v.diagnostics)||v.version!==void 0&&v.version!==d||r.documentVersion(e)===d&&(b(),a(Ie(v.diagnostics,v.version===void 0)))},"receive"),f=r.onNotification("textDocument/publishDiagnostics",m),g=c(()=>{b(),p(s.reason)},"onAbort");function b(){f(),s.removeEventListener("abort",g)}c(b,"cleanup"),s.addEventListener("abort",g,{once:!0});try{o||r.syncDocument(e,l??"",t??"plaintext");let w=r.diagnosticPublication(e);w&&m({uri:e,...w})}catch(w){b(),p(w)}})}finally{r.endDiagnosticRequest(e)}}c(dt,"requestCurrentDiagnostics");function z(r){return{code:String(r.code??"LSP"),message:r.message,line:r.range.start.line+1,column:r.range.start.character+1,severity:r.severity===I.Warning?"warning":r.severity===I.Information?"info":r.severity===I.Hint?"hint":"error"}}c(z,"toDiagnostic");function Ie(r,e,t=!1){let n=r.map(z);return{diagnostics:n,syntaxErrors:[],otherDiagnostics:n,unversioned:e,complete:t}}c(Ie,"classify");function ut(r){return r!==null&&typeof r=="object"&&"code"in r&&r.code===-32601}c(ut,"isMethodNotFound");var gt={1:"File",2:"Module",3:"Namespace",4:"Package",5:"Class",6:"Method",7:"Property",8:"Field",9:"Constructor",10:"Enum",11:"Interface",12:"Function",13:"Variable",14:"Constant",15:"String",16:"Number",17:"Boolean",18:"Array",19:"Object",20:"Key",21:"Null",22:"EnumMember",23:"Struct",24:"Event",25:"Operator",26:"TypeParameter"};function L(r){return gt[r]??`SymbolKind(${r})`}c(L,"symbolKindName");async function H(r,e){return await r.sendRequest("textDocument/documentSymbol",{textDocument:{uri:e}})??[]}c(H,"requestDocumentSymbols");async function U(r,e,t=100){return(await r.sendRequest("workspace/symbol",{query:e})??[]).slice(0,t)}c(U,"requestWorkspaceSymbols");import ht from"node:path";import{URI as yt}from"vscode-uri";import{readdir as mt}from"node:fs/promises";import N from"node:path";import{URI as G}from"vscode-uri";function je(r,e){let t=c(n=>typeof n=="string"?n.replaceAll("{project}",()=>e):Array.isArray(n)?n.map(t):n!==null&&typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[s,t(i)])):n,"expand");return Object.fromEntries(Object.entries(r).map(([n,s])=>[n,t(s)]))}c(je,"resolveInitializationOptions");var k=class r{constructor(e){this._registry=e}static{c(this,"LspManager")}_clients=new Map;_clientStarts=new Map;_openDocs=new Set;_pushUnsubscribers=new Map;_pushHandlers=new Set;_pushFingerprints=new Map;_disposed=!1;static _instance=null;static getInstance(){if(!r._instance)throw new Error("[lsp] LspManager not initialized");return r._instance}static getInstanceOrNull(){return r._instance}static init(e){let t=r._instance;return t?._disposed?(t._registry=e,t._disposed=!1,t):(r._instance=new r(e),r._instance)}static async resetForTest(){r._instance&&(await r._instance.shutdownAll(),r._instance=null)}get clientCount(){return this._clients.size}onPushDiagnostics(e){return this._pushHandlers.add(e),()=>this._pushHandlers.delete(e)}async getOrStart(e,t,n){if(this._disposed)return null;let s=this._registry.resolve(e),i=n==="symbols"?s[0]:s.find(m=>m.config.capabilities.includes(n));if(!i)return null;let o=G.file(t).toString(),l=`${i.serverId}:${o}`,a=this._clientStarts.get(l);if(a)return a;let p=this._clients.get(l);if(p?.ready)return p;let d=this._startClient(l,o,i,p);this._clientStarts.set(l,d);try{return await d}finally{this._clientStarts.get(l)===d&&this._clientStarts.delete(l)}}async _startClient(e,t,n,s){let i=s??new _({serverId:n.serverId,rootUri:t,command:n.config.command,...n.config.env&&{env:n.config.env},...n.config.initializationOptions&&{initOptions:je(n.config.initializationOptions,G.parse(t).fsPath)},...n.config.settings&&{settings:n.config.settings},...n.config.timeoutMs&&{timeoutMs:n.config.timeoutMs}});try{s?await s.restart():await i.start()}catch(o){throw await i.shutdown().catch(()=>{}),o}if(this._disposed)throw await i.shutdown(),new Error(`[lsp] ${n.serverId}: manager disposed during startup`);return this._clients.set(e,i),this._subscribeToPushDiagnostics(e,i),i}async getWorkspaceClients(e,t="symbols"){let n=new Set;for(let s of this._registry.knownExtensions)try{let i=await this.getOrStart(s,e,t);i&&n.add(i)}catch{}return[...n]}async prepareWorkspaceSymbols(e){let t=await this.getWorkspaceClients(e),n=new Set(this._registry.knownExtensions),s=new Set([".git",".cache","node_modules","dist","build"]),i=c(async o=>{if(n.size===0)return;let l;try{l=await mt(o,{withFileTypes:!0})}catch{return}for(let a of l){if(n.size===0)return;if(a.isDirectory()){s.has(a.name)||await i(N.join(o,a.name));continue}if(!a.isFile())continue;let p=N.extname(a.name).toLowerCase();if(!n.has(p))continue;let d=N.join(o,a.name);await this.openFile(d,e,"symbols").catch(()=>null)&&n.delete(p)}},"visit");return await i(e),t}hasServerFor(e){return this._registry.resolve(e).length>0}languageId(e){return this._registry.languageId(e)}isOpen(e){return this._openDocs.has(e)}async openFile(e,t,n="diagnostics"){let s=N.resolve(t,e),i=await this.getOrStart(s,t,n);if(!i)return null;let o=i.toUri(s),a=this._registry.resolve(s)[0]?.languageId??"plaintext";try{let{readFile:p}=await import("node:fs/promises"),d=await p(s,"utf8");i.openDocument(o,d,a),this._openDocs.add(o)}catch{}return{client:i,uri:o,languageId:a}}_subscribeToPushDiagnostics(e,t){if(this._pushUnsubscribers.has(e))return;let n=t.onNotification("textDocument/publishDiagnostics",s=>{let i=ft(s);if(!i||t.hasActiveDiagnosticRequest(i.uri))return;let o=t.documentVersion(i.uri);if(i.version!==void 0&&o!==void 0&&i.version<o)return;let l=`${e}:${i.uri}`,a=i.diagnostics.map(z),p=JSON.stringify([i.version,o,a]);if(this._pushFingerprints.get(l)===p)return;this._pushFingerprints.set(l,p);let d={cwd:G.parse(t.rootUri).fsPath,serverId:t.serverId,uri:i.uri,diagnostics:a,...i.version!==void 0&&{version:i.version}};for(let m of this._pushHandlers)m(d)});this._pushUnsubscribers.set(e,n)}async shutdownAll(){this._disposed=!0,await Promise.allSettled(this._clientStarts.values());let e=[...this._clients.values()];await Promise.all(e.map(t=>t.shutdown()));for(let t of this._pushUnsubscribers.values())t();this._pushUnsubscribers.clear(),this._clientStarts.clear(),this._pushFingerprints.clear(),this._pushHandlers.clear(),this._clients.clear()}dispose(){this.shutdownAll()}};function ft(r){if(r===null||typeof r!="object")return;let e=r;if(!(typeof e.uri!="string"||!Array.isArray(e.diagnostics)))return{uri:e.uri,diagnostics:e.diagnostics,...typeof e.version=="number"&&{version:e.version}}}c(ft,"parsePushNotification");async function M(r,e,t){return await r.sendRequest("textDocument/references",{textDocument:{uri:e},position:t,context:{includeDeclaration:!0}})??[]}c(M,"requestReferences");async function B(r,e,t){let n=await r.sendRequest("textDocument/prepareCallHierarchy",{textDocument:{uri:e},position:t}),s=n?.[0];if(!s)return{items:[],incoming:[],outgoing:[]};let[i,o]=await Promise.all([r.sendRequest("callHierarchy/incomingCalls",{item:s}).catch(()=>[]),r.sendRequest("callHierarchy/outgoingCalls",{item:s}).catch(()=>[])]);return{items:n,incoming:i??[],outgoing:o??[]}}c(B,"requestCallHierarchy");function $e(r){try{return yt.parse(r).fsPath}catch{return r.startsWith("file://")?decodeURIComponent(r.slice(7)):r}}c($e,"uriToFilePath");function Me(r,e,t,n,s){let i=$e(t),o=ht.relative(r,i);return{filePath:o.startsWith("..")?i:o,lineNumber:n+1,column:s+1,kind:String(e.kind),name:e.name}}c(Me,"toHit");async function J(r,e,t,n){if(n?.aborted)throw new Error("Operation aborted");let s=k.getInstance(),i=await s.prepareWorkspaceSymbols(e),o=[];for(let p of i){if(n?.aborted)throw new Error("Operation aborted");try{o.push(...await U(p,r,t))}catch{}}let l=new Set,a=[];for(let p of o){if(n?.aborted)throw new Error("Operation aborted");if(a.length>=t)break;let d=p.location,m=Me(e,p,d.uri,d.range.start.line,d.range.start.character),f=`${m.filePath}:${m.lineNumber}:${m.column}`;if(l.has(f)||(l.add(f),a.push(m)),a.length>=t)break;let g=$e(d.uri),b=await s.openFile(g,e,"symbols").catch(()=>null);if(!b)continue;let w=await M(b.client,b.uri,d.range.start).catch(()=>[]);for(let v of w){let $=Me(e,p,v.uri,v.range.start.line,v.range.start.character),ie=`${$.filePath}:${$.lineNumber}:${$.column}`;if(l.has(ie)||(l.add(ie),a.push($)),a.length>=t)break}}return a}c(J,"searchSymbols");import{readFile as vt}from"node:fs/promises";import x from"node:path";import{fileURLToPath as bt}from"node:url";var wt={failureLabel:"SYMBOL_READ_FAILED",emptyReason:"no symbol source was produced."},K=10,Y=5,D=10;async function Z(r,e,t,n,s){P(s);let i=await ne(r,e,n),o=re(i.symbols,t,i.displayPath),l=await Pt(i.filePath);P(s);let a=o.range.start.line+1,p=Math.min(o.range.end.line+1,l.lines.length),d=l.lines.slice(Math.max(0,a-1),Math.max(0,p)).map((f,g)=>{let b=a+g;return ce({content:f,sourceLine:{source:i.filePath,lineNumber:b,content:f}})}),m={path:i.displayPath,heading:`symbol: ${R(o.selector)}`,details:[`defined in: ${i.displayPath}:${a}-${p} (${L(o.kind)})`],startLine:a,endLine:p,totalLines:l.lines.length,renderedLines:d};return le([m],wt)}c(Z,"readLspSymbolBody");async function ee(r,e,t,n,s){P(s);let i=await ne(r,e,n),o=re(i.symbols,t,i.displayPath),l=await Ve(i,o,s),a=new V(n);return await Lt(i,o,l,a)}c(ee,"readLspSymbolGraph");async function te(r,e,t,n){P(n);let s=await ne(r,e,t),i=new V(t),o=[`## file graph: ${s.displayPath}`,`Top-level declarations: ${s.symbols.length}`];for(let l of s.symbols){P(n);let a=await Ve(s,l,n);o.push("",...await kt(s,l,a,i))}return o.join(`
|
|
2
|
+
`)}c(te,"readLspFileGraph");function re(r,e,t){if(e.length===0)throw new TypeError("A symbol selector must contain at least one segment.");if(e.length===1){let i=Ne(r,h(e[0]));if(i.length===1)return h(i[0]);throw i.length>1?new Error(`Symbol selector "${R(e)}" is ambiguous in ${t}; use parent/child.`):Ae(e,t)}let n=r,s;for(let i of e){let o=n.filter(l=>l.name===i);if(o.length===0)throw Ae(e,t);if(o.length>1)throw new Error(`Symbol selector "${R(e)}" is ambiguous at "${i}" in ${t}.`);s=h(o[0]),n=s.children}return h(s)}c(re,"resolveLspCodeSymbol");async function ne(r,e,t){let n=x.isAbsolute(e)?x.normalize(e):x.resolve(t,e),s=await r.openFile(n,t,"symbols");if(!s)throw new Error(`No LSP server with symbol support is configured for ${Q(n,t)}.`);let i=await H(s.client,s.uri),o=Te(i).sort(qe);return{client:s.client,uri:s.uri,filePath:n,displayPath:Q(n,t),symbols:o}}c(ne,"openCodeDocument");function Te(r,e=[]){return r.flatMap(t=>{let n=t.selectionRange??t.range;if(!n)return[];let s=t.range??n,i=[...e,t.name];return[{name:t.name,kind:t.kind,range:s,selectionRange:n,selector:i,children:Te(t.children??[],i).sort(qe)}]})}c(Te,"normalizeDocumentSymbols");function qe(r,e){return r.range.start.line-e.range.start.line||r.range.start.character-e.range.start.character||r.name.localeCompare(e.name)}c(qe,"compareSymbols");function Ne(r,e){return r.flatMap(t=>[...t.name===e?[t]:[],...Ne(t.children,e)])}c(Ne,"collectNamedSymbols");function Ae(r,e){return new Error(`Symbol "${R(r)}" was not found in ${e}.`)}c(Ae,"symbolNotFound");async function Ve(r,e,t){let n=e.selectionRange.start,[s,i]=await Promise.all([Oe(M(r.client,r.uri,n),[],t),Oe(B(r.client,r.uri,n),{items:[],incoming:[],outgoing:[]},t)]);return P(t),{references:s,calls:i}}c(Ve,"queryRelations");async function Oe(r,e,t){try{let n=await r;return P(t),n}catch(n){if(t?.aborted===!0)throw We(t,n);return e}}c(Oe,"optionalRequest");async function Lt(r,e,t,n){let s=R(e.selector),i=await n.line(r.uri,e.selectionRange.start.line+1);return[`## graph: ${s}`,`Definition: ${r.displayPath} ${i} (${L(e.kind)})`,`Source: ${E("graph",r.displayPath,e.selector)}`,"",...await St(t.references,n),"",...await Rt(t.calls.incoming,n),"",...await _t(t.calls.outgoing,n)].join(`
|
|
3
|
+
`)}c(Lt,"formatSymbolGraph");async function St(r,e){let t=Fe(r),n=[`References: ${r.length} in ${t.length} file(s)`];for(let[s,i]of t.slice(0,K)){n.push(`- ${e.display(s)} (${i.length})`);for(let o of i.slice(0,Y))n.push(` - ${await e.line(s,o.range.start.line+1)}`);i.length>Y&&n.push(` - ... ${i.length-Y} more`)}return t.length>K&&n.push(`- ... ${t.length-K} more file(s)`),n}c(St,"formatReferences");async function Rt(r,e){let t=[`Incoming calls: ${r.length}`];for(let n of r.slice(0,D)){let s=n.fromRanges[0]?.start.line??n.from.selectionRange.start.line,i=await e.line(n.from.uri,s+1);t.push(`- ${L(n.from.kind)} ${n.from.name} \u2014 ${e.display(n.from.uri)} ${i}`)}return r.length>D&&t.push(`- ... ${r.length-D} more`),t}c(Rt,"formatIncomingCalls");async function _t(r,e){let t=[`Outgoing calls: ${r.length}`];for(let n of r.slice(0,D)){let s=await e.line(n.to.uri,n.to.selectionRange.start.line+1);t.push(`- ${L(n.to.kind)} ${n.to.name} \u2014 ${e.display(n.to.uri)} ${s}`)}return r.length>D&&t.push(`- ... ${r.length-D} more`),t}c(_t,"formatOutgoingCalls");async function kt(r,e,t,n){let s=L(e.kind),i=await n.line(r.uri,e.selectionRange.start.line+1),o=Fe(t.references).map(([d,m])=>`${n.display(d)} (${m.length})`),l=t.calls.incoming.map(d=>`${d.from.name} (${n.display(d.from.uri)})`),a=t.calls.outgoing.map(d=>`${d.to.name} (${n.display(d.to.uri)})`),p=[`### ${s} ${e.name}`,`Selector: ${R(e.selector)}`,`Definition: ${i}`,`Used by: ${X(o)}`,`Incoming calls: ${X(l)}`,`Outgoing calls: ${X(a)}`];if(e.children.length>0){p.push("Members:");for(let d of e.children){let m=E("graph",r.displayPath,d.selector);p.push(`- ${L(d.kind)} ${d.name} \u2014 ${m}`)}}return p}c(kt,"formatFileGraphSymbol");function X(r,e=5){if(r.length===0)return"none";let t=r.slice(0,e).join(", ");return r.length>e?`${t}, ... ${r.length-e} more`:t}c(X,"summarize");function Fe(r){let e=new Map;for(let t of r){let n=e.get(t.uri)??[];n.push(t),e.set(t.uri,n)}return[...e].map(([t,n])=>[t,n.sort((s,i)=>s.range.start.line-i.range.start.line||s.range.start.character-i.range.start.character)]).sort(([t],[n])=>t.localeCompare(n))}c(Fe,"groupLocationsByUri");async function Pt(r){let e=await vt(r);if(e.byteLength>256*1024)throw new Error(`File exceeds the 262144-byte code-view limit: ${r}`);if(e.includes(0))throw new Error(`File appears to be binary and cannot be read as text: ${r}`);let t=e.toString("utf8").replaceAll(`\r
|
|
4
|
+
`,`
|
|
5
|
+
`),n=t.endsWith(`
|
|
6
|
+
`)?t.slice(0,-1):t,s=n.length===0?[]:n.split(`
|
|
7
|
+
`);return{content:t,lines:s}}c(Pt,"readTextFile");var V=class{static{c(this,"LocationPresenter")}#e;constructor(e){this.#e=e}display(e){return Q(Ct(e),this.#e)}line(e,t){return Promise.resolve(String(t))}};function Ct(r){if(!r.startsWith("file://"))return r;try{return bt(r)}catch{return decodeURIComponent(r.slice(7))}}c(Ct,"filePathFromUri");function Q(r,e){let t=x.relative(e,r);return t.length===0||t.startsWith("..")||x.isAbsolute(t)?r:t.replaceAll(x.sep,"/")}c(Q,"displayFilePath");function P(r){if(r?.aborted===!0)throw We(r)}c(P,"throwIfAborted");function We(r,e){if(r.reason instanceof Error)return r.reason;if(e instanceof Error)return e;let t=new Error("The operation was aborted");return t.name="AbortError",t}c(We,"abortReason");function se(r){let e=null;return{kind:"compiler",name:"lsp",priority:100,extensions:["*"],detect:c(()=>Promise.resolve(!0),"detect"),async compile({filePath:t},n){let s=await xt(t,n,r);if(!s)return Dt();let{client:i,diagnostics:o,syntaxErrors:l,otherDiagnostics:a}=s;return e=i,{ok:!o.some(p=>p.severity==="error"),diagnostics:o,syntaxErrors:l,otherDiagnostics:a}},async restart(){e&&(await e.restart(),e=null)}}}c(se,"createLspCompiler");async function xt(r,e,t){let n=await t.openFile(r,e.cwd);if(!n)return null;let s=await j(n.client,n.uri,n.languageId);return{client:n.client,...s}}c(xt,"openAndDiagnose");function Dt(){return{ok:!0,diagnostics:[],syntaxErrors:[],otherDiagnostics:[]}}c(Dt,"skipOk");import y from"node:path";import{existsSync as Et}from"node:fs";function ze(r){let e=new Map,t=new Map;for(let[n,s]of Object.entries(r))for(let[i,o]of Object.entries(s.languages))for(let l of o.extensions){let a=l.toLowerCase(),p=e.get(a);if(p!==void 0&&p!==i)throw new Error(`[lsp] extension conflict: "${a}" claimed by "${p}" and "${i}"`);e.set(a,i);let d=t.get(a)??[];d.push(n),t.set(a,d)}return{extToLanguageId:e,extToServerIds:t}}c(ze,"buildLanguageLookup");var S=class r{constructor(e,t,n){this._projectRoot=n;this._entries=e;let s=e.filter(i=>i.layer!=="built-in"||t.has(i.id));this._servers=Object.fromEntries(s.map(i=>[i.id,i.config])),this._lookup=ze(this._servers)}static{c(this,"LspServerRegistry")}_servers;_entries;_lookup;static async fromPackageDir(e,t={}){let n=await me(e,"lsp-servers",o=>It(o).servers,t),s=t.environment??process.env,i=await Promise.all(n.entries.filter(o=>o.layer==="built-in").map(async o=>({id:o.id,available:await A(o.config,e,s)})));return new r(n.entries,new Set(i.filter(o=>o.available).map(o=>o.id)),y.resolve(e))}static fromConfig(e,t=process.cwd()){return new r(Object.entries(e.servers).map(([n,s])=>({id:n,config:s,layer:"project",sourcePath:"<memory>"})),new Set,y.resolve(t))}resolve(e){let t=y.basename(e),n=y.extname(e)||(e.startsWith(".")?e:`.${e}`),s=c(o=>process.platform==="win32"?o.toLowerCase():o,"normalizeName"),i=[];for(let o of this._entries)if(this._servers[o.id]&&!(o.config.requireRootMarker&&!this.hasRootMarker(e,o.config.rootMarkers))){for(let[l,a]of Object.entries(o.config.languages))if(a.extensions.some(p=>p.toLowerCase()===n.toLowerCase())||a.fileNames?.some(p=>s(p)===s(t))){i.push({serverId:o.id,config:o.config,languageId:l,layer:o.layer,sourcePath:o.sourcePath});break}}return i}hasRootMarker(e,t){let n=y.dirname(y.resolve(this._projectRoot,e));for(e.startsWith(".")&&!e.includes(y.sep)&&(n=this._projectRoot);;){let s=y.relative(this._projectRoot,n);if(s===".."||s.startsWith(`..${y.sep}`)||y.isAbsolute(s))return!1;if(t.some(i=>Et(y.join(n,i))))return!0;if(n===this._projectRoot)return!1;n=y.dirname(n)}}get servers(){return this._servers}get entries(){return this._entries}get knownExtensions(){return new Set(this._lookup.extToLanguageId.keys())}languageId(e){return this.resolve(e)[0]?.languageId??e.slice(1)}};function It(r){if(typeof r!="object"||r===null||Array.isArray(r))throw new Error("LSP config must be an object");let e=r;if(e.version!==1)throw new Error("LSP config version must be 1");if(typeof e.servers!="object"||e.servers===null||Array.isArray(e.servers))throw new Error("LSP config servers must be an object");for(let[t,n]of Object.entries(e.servers)){if(typeof n!="object"||n===null||Array.isArray(n))throw new Error(`LSP server ${t} must be an object`);let s=n;if(!Array.isArray(s.command)||s.command.length===0||s.command.some(i=>typeof i!="string"||i.length===0))throw new Error(`LSP server ${t}.command must be a non-empty string array`);if(s.transport!==void 0&&s.transport!=="stdio")throw new Error(`LSP server ${t} only supports stdio transport`);if(!Array.isArray(s.rootMarkers)||s.rootMarkers.some(i=>typeof i!="string"))throw new Error(`LSP server ${t}.rootMarkers must be a string array`);if(s.requireRootMarker!==void 0&&typeof s.requireRootMarker!="boolean")throw new TypeError(`LSP server ${t}.requireRootMarker must be a boolean`);if(s.requireRootMarker&&s.rootMarkers.length===0)throw new Error(`LSP server ${t}.requireRootMarker requires rootMarkers`);if(typeof s.languages!="object"||s.languages===null||Array.isArray(s.languages))throw new Error(`LSP server ${t}.languages must be an object`);for(let[i,o]of Object.entries(s.languages)){let l=typeof o=="object"&&o!==null&&!Array.isArray(o)?o.extensions:void 0;if(!Array.isArray(l)||l.length===0||l.some(p=>typeof p!="string"))throw new Error(`LSP server ${t} language ${i} requires extensions`);let a=o.fileNames;if(a!==void 0&&(!Array.isArray(a)||a.some(p=>typeof p!="string"||p.length===0||/[/\\]/u.test(p))))throw new Error(`LSP server ${t} language ${i}.fileNames must contain basenames`)}if(!Array.isArray(s.capabilities))throw new TypeError(`LSP server ${t}.capabilities must be an array`)}return r}c(It,"parseLspConfig");function He(r){return Ge("symbol","lsp-symbol",r,async e=>await Z(e.manager,e.filePath,h(e.selector),e.cwd,e.signal))}c(He,"createLspSymbolResolver");function Ue(r){return Ge("graph","lsp-graph",r,async e=>e.selector===void 0?await te(e.manager,e.filePath,e.cwd,e.signal):await ee(e.manager,e.filePath,e.selector,e.cwd,e.signal))}c(Ue,"createLspGraphResolver");function Ge(r,e,t,n){return{id:e,tryResolve(s,i){return Promise.resolve(jt(s,i,r,t,n))}}}c(Ge,"createCodeViewResolver");function jt(r,e,t,n,s){let i;try{i=oe(r,t)}catch(a){return{kind:"failed",error:a}}if(i===void 0)return{kind:"not-handled"};let o;try{o=ae(i.path,e.cwd)}catch(a){return{kind:"failed",error:a}}return{kind:"resolved",resource:{source:E(t,o,i.selector),async read(a){let p=await n(e.cwd),d=await s({manager:p,filePath:o,cwd:e.cwd,...Mt(i.selector),...$t(a.signal)});return[typeof d=="string"?{type:"text",text:d}:d]}}}}c(jt,"resolveCodeViewSource");function Mt(r){return r===void 0?{}:{selector:r}}c(Mt,"optionalSelector");function $t(r){return r===void 0?{}:{signal:r}}c($t,"optionalSignal");function Je(r){return{id:"lsp",async diagnose(e,t){let n=await r(t.cwd);t.signal.throwIfAborted();let s=await n.getOrStart(e,t.cwd,"diagnostics");if(t.signal.throwIfAborted(),!s)return{status:"unavailable",diagnostics:[],reason:"No language server configured for this file"};let i=s.toUri(e),o=n.languageId(e);s.syncDocument(i,t.content,o,!0);let l=s.documentVersion(i),a={active:!0,queued:!1},p=c(()=>!t.signal.aborted&&s.documentVersion(i)===l,"current"),d=c(()=>j(s,i,o,{signal:t.signal,content:t.content}),"request"),m=c(async()=>{if(a.queued=!0,!a.active){a.active=!0;try{for(;a.queued&&p();){a.queued=!1;let g=await d();p()&&t.publish(Be(g))}}catch(g){p()&&t.publish({status:"unavailable",diagnostics:[],reason:g instanceof Error?g.message:String(g)})}finally{a.active=!1}}},"refresh"),f=n.onPushDiagnostics(g=>{!p()||g.uri!==i||g.serverId!==s.serverId||g.cwd!==t.cwd||g.version!==void 0&&g.version!==l||(s.diagnosticMode==="pull"||q(s)?m():t.publish({status:"snapshot",diagnostics:g.diagnostics,reason:Ke(g.version===void 0)}))});t.signal.addEventListener("abort",f,{once:!0});try{let g=await d();return l=s.documentVersion(i),Be(g)}catch(g){throw a.queued=!1,f(),t.signal.removeEventListener("abort",f),g}finally{a.active=!1,a.queued&&p()&&queueMicrotask(()=>{m()})}}}}c(Je,"createLspDiagnosticSource");function Ke(r){return`Latest push snapshot; completion is unknown${r?"; language server omitted the document version":""}`}c(Ke,"snapshotReason");function Be(r){return r.complete?{status:"ready",diagnostics:r.diagnostics}:{status:"snapshot",diagnostics:r.diagnostics,reason:Ke(r.unversioned)}}c(Be,"toReport");import{URI as At}from"vscode-uri";var Ye=[{id:"vue-typescript-language-server",name:"vue-typescript-language-server",kind:"lsp",languages:["vue"],executables:["typescript-language-server"],dependencies:["typescript-language-server","@vue/typescript-plugin"],configFiles:["tsconfig.json"],documentation:"https://github.com/vuejs/language-tools/tree/master/packages/typescript-plugin",lsp:{command:["typescript-language-server","--stdio"],rootMarkers:["tsconfig.json","package.json"],languageIds:{vue:[".vue"]},initializationOptions:{plugins:[{name:"@vue/typescript-plugin",location:"{project}/node_modules/@vue/typescript-plugin",languages:["vue"]}]}}},u("elixir-ls",["elixir"],["elixir-ls"],["mix.exs"],{elixir:[".ex",".exs"]},["elixir-ls"],"https://github.com/elixir-lsp/elixir-ls",void 0,void 0,{elixirLS:{mcpEnabled:!1}}),u("metals",["scala"],["metals"],["build.sbt","project.scala",".bsp"],{scala:[".scala",".sc"]},["metals"],"https://scalameta.org/metals/"),{id:"angular-language-server",name:"angular-language-server",kind:"lsp",languages:["typescript","html"],executables:["ngserver"],dependencies:["@angular/language-server"],configFiles:["angular.json"],documentation:"https://github.com/angular/vscode-ng-language-service",lsp:{command:["ngserver","--stdio","--tsProbeLocations",".","--ngProbeLocations","."],rootMarkers:["angular.json"],requireRootMarker:!0,languageIds:{typescript:[".ts"],html:[".html"]}}},u("svelte-language-server",["svelte"],["svelteserver"],["svelte.config.js","package.json"],{svelte:[".svelte"]},["svelteserver","--stdio"],"https://github.com/sveltejs/language-tools/tree/master/packages/language-server",["svelte-language-server"]),u("dart-language-server",["dart"],["dart"],["pubspec.yaml","analysis_options.yaml"],{dart:[".dart"]},["dart","language-server","--protocol=lsp"],"https://dart.dev/tools/dart-language-server"),u("r-language-server",["r"],["Rscript"],["DESCRIPTION",".lintr",".Rprofile"],{r:[".r"]},["Rscript","-e","languageserver::run()"],"https://github.com/REditorSupport/languageserver"),u("zls",["zig"],["zls"],["build.zig","build.zig.zon","zls.json"],{zig:[".zig",".zon"]},["zls"],"https://zigtools.org/zls/"),u("clangd",["c","cpp"],["clangd"],[".clangd","compile_commands.json","CMakeLists.txt"],{c:[".c",".h"],cpp:[".cc",".cpp",".cxx",".hh",".hpp",".hxx"]},["clangd"],"https://clangd.llvm.org/"),u("typescript-language-server",["javascript","typescript"],["typescript-language-server"],["tsconfig.json","jsconfig.json","package.json"],{javascript:[".js",".mjs",".cjs"],javascriptreact:[".jsx"],typescript:[".ts",".mts",".cts"],typescriptreact:[".tsx"]},["typescript-language-server","--stdio"],"https://github.com/typescript-language-server/typescript-language-server",["typescript-language-server"]),u("basedpyright",["python"],["basedpyright-langserver","pyright-langserver"],["pyproject.toml","pyrightconfig.json"],{python:[".py",".pyi"]},["basedpyright-langserver","--stdio"],"https://docs.basedpyright.com/",["basedpyright"]),u("gopls",["go"],["gopls"],["go.mod","go.work"],{go:[".go"]},["gopls"],"https://go.dev/gopls/"),u("rust-analyzer",["rust"],["rust-analyzer"],["Cargo.toml","rust-project.json"],{rust:[".rs"]},["rust-analyzer"],"https://rust-analyzer.github.io/"),u("csharp-ls",["csharp"],["csharp-ls"],[".sln",".csproj"],{csharp:[".cs"]},["csharp-ls"],"https://github.com/razzmatazz/csharp-language-server"),u("jdtls",["java"],["jdtls"],["pom.xml","build.gradle",".project"],{java:[".java"]},["jdtls"],"https://projects.eclipse.org/projects/eclipse.jdt.ls"),u("kotlin-language-server",["kotlin"],["kotlin-language-server"],["build.gradle.kts","pom.xml"],{kotlin:[".kt",".kts"]},["kotlin-language-server"],"https://github.com/fwcd/kotlin-language-server"),u("solargraph",["ruby"],["solargraph"],["Gemfile",".solargraph.yml"],{ruby:[".rb",".rake"]},["solargraph","stdio"],"https://solargraph.org/"),u("intelephense",["php"],["intelephense"],["composer.json"],{php:[".php"]},["intelephense","--stdio"],"https://intelephense.com/"),u("sourcekit-lsp",["swift"],["sourcekit-lsp"],["Package.swift"],{swift:[".swift"]},["sourcekit-lsp"],"https://github.com/swiftlang/sourcekit-lsp"),u("lua-language-server",["lua"],["lua-language-server"],[".luarc.json",".luarc.jsonc"],{lua:[".lua"]},["lua-language-server"],"https://luals.github.io/"),u("bash-language-server",["shell"],["bash-language-server"],[".shellcheckrc"],{shell:[".sh",".bash"]},["bash-language-server","start"],"https://github.com/bash-lsp/bash-language-server"),u("vscode-css-language-server",["css"],["vscode-css-language-server"],["package.json"],{css:[".css",".scss",".less"]},["vscode-css-language-server","--stdio"],"https://github.com/microsoft/vscode-css-languageservice",void 0,void 0,{css:{},scss:{},less:{}}),u("vscode-html-language-server",["html"],["vscode-html-language-server"],["package.json"],{html:[".html",".htm"]},["vscode-html-language-server","--stdio"],"https://github.com/microsoft/vscode-html-languageservice"),u("yaml-language-server",["yaml"],["yaml-language-server"],[".yamllint","package.json"],{yaml:[".yaml",".yml"]},["yaml-language-server","--stdio"],"https://github.com/redhat-developer/yaml-language-server"),u("taplo-lsp",["toml"],["taplo"],["taplo.toml"],{toml:[".toml"]},["taplo","lsp","stdio"],"https://taplo.tamasfe.dev/"),u("marksman",["markdown"],["marksman"],[".marksman.toml"],{markdown:[".md",".mdx"]},["marksman","server"],"https://github.com/artempyanykh/marksman"),u("terraform-ls",["terraform"],["terraform-ls"],[".terraform.lock.hcl"],{terraform:[".tf",".tfvars"]},["terraform-ls","serve"],"https://github.com/hashicorp/terraform-ls"),u("kotlin-lsp",["kotlin"],["intellij-server"],["build.gradle.kts","build.gradle","pom.xml","settings.gradle.kts"],{kotlin:[".kt",".kts"]},["intellij-server","--stdio"],"https://github.com/Kotlin/kotlin-lsp"),u("julia-language-server",["julia"],["julia"],["Project.toml","JuliaProject.toml"],{julia:[".jl"]},["julia","--startup-file=no","--history-file=no","-e","using LanguageServer; runserver()"],"https://github.com/julia-vscode/LanguageServer.jl"),u("powershell-editor-services",["powershell"],["pwsh"],["PSScriptAnalyzerSettings.psd1"],{powershell:[".ps1",".psm1",".psd1"]},["pwsh","-NoProfile","-NonInteractive","-Command",'$ErrorActionPreference="Stop";Import-Module PowerShellEditorServices;$d=Join-Path (Get-Location) ".agents/tmp/powershell-lsp-$PID";[IO.Directory]::CreateDirectory($d)|Out-Null;Start-EditorServices -HostName Pi -HostProfileId Pi -HostVersion 1.0.0 -Stdio -LanguageServiceOnly -LogPath (Join-Path $d "server.log") -SessionDetailsPath (Join-Path $d "session.json")'],"https://github.com/PowerShell/PowerShellEditorServices"),u("neocmakelsp",["cmake"],["neocmakelsp"],["CMakeLists.txt",".neocmake.toml",".neocmakelint.toml"],{cmake:[".cmake"]},["neocmakelsp","stdio"],"https://github.com/neocmakelsp/neocmakelsp",void 0,{cmake:["CMakeLists.txt"]}),u("vscode-json-language-server",["json"],["vscode-json-language-server"],["package.json"],{json:[".json",".jsonc"]},["vscode-json-language-server","--stdio"],"https://github.com/microsoft/vscode-json-languageservice"),u("lemminx",["xml"],["lemminx"],[".lemminx.json"],{xml:[".xml",".xsd",".xsl"]},["lemminx"],"https://github.com/eclipse-lemminx/lemminx"),u("sqls",["sql"],["sqls"],[".sqls.yml"],{sql:[".sql"]},["sqls"],"https://github.com/sqls-server/sqls"),u("docker-langserver",["dockerfile"],["docker-langserver"],["Dockerfile"],{dockerfile:[".dockerfile"]},["docker-langserver","--stdio"],"https://github.com/rcjsuen/dockerfile-language-server-nodejs",void 0,{dockerfile:["Dockerfile","Containerfile"]})];function u(r,e,t,n,s,i,o,l,a,p){return{id:r,name:r,kind:"lsp",languages:e,executables:t,configFiles:n,documentation:o,...l&&{dependencies:l},lsp:{command:i,rootMarkers:n,languageIds:s,...a&&{fileNames:a},...p&&{settings:p}}}}c(u,"recipe");var Xe={protocol:he,apiVersion:1,id:"lsp",setup(r){for(let e of Ye)r.addToolRecipe(e);r.addSetupCheck({id:"effective-config",inspect:Ot}),r.addCheck({id:"config",title:"LSP",async run(e){try{let t=await S.fromPackageDir(e.cwd,{environment:e.env}),n=Tt(t,e.files);return n.length===0?[{status:"skip",message:"No language server matches the inspected project files"}]:await Promise.all(n.map(async s=>{let i=`${s.serverId} [${s.layer}] command ${JSON.stringify(s.config.command)}`,o=new _({serverId:s.serverId,rootUri:At.file(e.cwd).toString(),command:s.config.command,env:qt(e.env,s.config.env),...s.config.initializationOptions&&{initOptions:s.config.initializationOptions},...s.config.settings&&{settings:s.config.settings},...s.config.timeoutMs&&{timeoutMs:s.config.timeoutMs}});try{return await o.start(),{status:"pass",message:`${i}: initialized`,detail:s.sourcePath}}catch(l){return{status:"fail",message:`${i}: ${l instanceof Error?l.message:String(l)}`,detail:s.sourcePath}}finally{await o.shutdown().catch(()=>{})}}))}catch(t){return[{status:"fail",message:t instanceof Error?t.message:String(t)}]}}})}};async function Ot(r){try{let e=await S.fromPackageDir(r.cwd,{environment:r.env}),t=[],n=new Map;for(let[s,i]of r.detectedLanguages){let o=i.flatMap(l=>e.resolve(l)).find(l=>l.languageId===s);o!==void 0&&(t.push({kind:"lsp",languageId:s,toolId:o.serverId}),await A(o.config,r.cwd,r.env)||n.set(o.serverId,{id:`lsp-${o.serverId}-unavailable`,message:`Configured language server ${o.serverId} cannot run ${JSON.stringify(o.config.command)}`}))}return{selections:t,actions:[...n.values()]}}catch(e){return{actions:[{id:"lsp-config-invalid",message:`Language server configuration cannot load: ${e instanceof Error?e.message:String(e)}`}]}}}c(Ot,"inspectLspSetup");function Tt(r,e){let t=new Map;for(let n of e){let s=r.resolve(n)[0];s!==void 0&&!t.has(s.serverId)&&t.set(s.serverId,s)}return[...t.values()]}c(Tt,"applicableServers");function qt(r,e){return Object.fromEntries(Object.entries({...r,...e}).filter(t=>t[1]!==void 0))}c(qt,"definedEnvironment");function Qe(r){return{id:"symbols",async tryResolve(e,t){if(!e.query.startsWith("symbols:"))return{kind:"not-handled"};let n=e.query.slice(8).trim();if(n.length===0)return{kind:"failed",error:new Error("symbols: query must not be empty")};await r(t.cwd);let s=await J(n,t.cwd,e.limit??100,t.signal);return{kind:"resolved",payload:{query:n,hits:s}}},format(e){let{query:t,hits:n}=e;return{content:[{type:"text",text:n.length===0?"No symbols found.":n.map((i,o)=>`${String(o+1)}. ${i.filePath}:${String(i.lineNumber)}:${String(i.column)} ${i.kind} ${i.name}`).join(`
|
|
8
|
+
`)}],details:{query:t,hits:n}}}}}c(Qe,"createLspSearchResolver");var Ze=Se({kind:"code-view",label:"LSP"});async function Nt(r){let e=new Map,t=!1,n=c(l=>{if(t)return Promise.reject(new Error("LSP session has ended"));let a=e.get(l);return a||(a=Vt(l).then(p=>{if(t)throw new Error("LSP session has ended");return k.init(p)}),e.set(l,a)),a},"managerFor"),s={kind:"compiler",name:"pi-agent-ide-lsp",priority:200,extensions:["*"],detect:c(async l=>(await n(l.cwd),!0),"detect"),async compile(l,a){let p=await n(a.cwd);return se(p).compile(l,a)}},i={protocol:de,apiVersion:3,id:"lsp",setup(l){l.addTool(s),l.addDiagnosticSource(Je(n))}};r.on("session_shutdown",async()=>{t=!0,await Promise.allSettled([...e.values()].map(async l=>(await l).shutdownAll())),e.clear()});let o={protocol:be,apiVersion:we,id:"lsp",setup(l){l.addResolver({resolver:He(n),renderResult:Ze}),l.addResolver({resolver:Ue(n),renderResult:Ze}),l.addHandler({stage:"read",when:{resolvedBy:"any",contentKind:"text"},handler:pe()}),l.describe("Provides `symbol:<path>#<selector>` for a symbol's implementation, `graph:<path>` for relationships of top-level declarations, and `graph:<path>#<selector>` for one symbol's relationships."),l.addPromptGuideline("You can use read with `symbol:<path>#<selector>` to inspect a known symbol's implementation without searching for it or reading the whole file."),l.addPromptGuideline("You can use read with `graph:<path>` to inspect each top-level declaration's definition, referencing files, and incoming and outgoing calls. Members are listed with selectors; their relationships are not expanded. You can append `#<selector>` to inspect one symbol's references and calls, including a nested method.")}};await Promise.all([ge(r,i),Le(r,o),ve(r,Xe),ke(r,{protocol:Re,apiVersion:_e,id:"symbols",setup(l){l.addResolver({resolver:Qe(n)}),l.describe("Use `symbols:<query>` to search workspace symbols and their references through configured language servers."),l.addPromptGuideline("You can use search with `symbols:<query>` to find workspace symbols and their references through configured language servers.")}})])}c(Nt,"registerLsp");async function Vt(r){let e=process.env.PI_AGENT_IDE_CONFIG_DIR??r;return S.fromPackageDir(e)}c(Vt,"loadRegistry");export{Nt as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-EI7MMDWY.js";import{access as R,readFile as b,readdir as P}from"node:fs/promises";import u from"node:path";async function D(e,t){let o=new Map,c=s(i=>{let n=o.get(i);return n===void 0&&(n=b(u.join(e,i),"utf8").catch(()=>{}),o.set(i,n)),n},"content"),w=y(await c("package.json")),l=new Set;for(let i of["dependencies","devDependencies","peerDependencies","optionalDependencies"]){let n=w?.[i];if(p(n))for(let d of Object.keys(n))l.add(d)}let k=await Promise.all(t.map(async i=>{let n;for(let r of i.configFiles??[])if(await v(e,r)){n=r;break}if(n===void 0)for(let[r,h]of Object.entries(i.configSections??{})){let a=await c(r);if(a===void 0)continue;let g=r.endsWith(".json")?y(a):void 0;if(h.some(f=>g===void 0?a.split(/\r?\n/).some(j=>{let m=/^\s*\[([^\]]+)\]/.exec(j)?.[1]?.trim();return m===f||m?.startsWith(`${f}.`)===!0}):x(g,f)!==void 0)){n=r;break}}let d=i.dependencies?.find(r=>l.has(r));return[i.id,{score:(n===void 0?0:6)+(d===void 0?0:4),...n!==void 0&&{config:n},...d!==void 0&&{dependency:d}}]}));return new Map(k)}s(D,"inspectRecipeEvidence");async function v(e,t){if(!t.includes("*"))try{return await R(u.join(e,t)),!0}catch{return!1}try{return(await P(e)).some(c=>u.matchesGlob(c,t))}catch{return!1}}s(v,"hasProjectMarker");function p(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(p,"isRecord");function y(e){try{let t=JSON.parse(e??"");return p(t)?t:void 0}catch{return}}s(y,"parseJson");function x(e,t){let o=e;for(let c of t.split("."))o=p(o)?o[c]:void 0;return o}s(x,"jsonSection");export{D as a,v as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{j as V}from"./chunk-2SKAED2I.js";import{a as m}from"./chunk-KINKBPPX.js";import{a as y}from"./chunk-ZC65Z3CK.js";import{a}from"./chunk-EI7MMDWY.js";import x from"node:path";import{fileURLToPath as R}from"node:url";function T(e,n){let t=`${n}:`;if(!e.startsWith(t))return;let o=e.slice(t.length),r=o.indexOf("#"),i=r===-1?o:o.slice(0,r);if(i.length===0)throw new TypeError(`${n}: requires a file path.`);let s=$(i,`${n}: path`),c=r===-1?void 0:o.slice(r+1);if(n==="ast"){if(c!==void 0)throw new TypeError("ast: accepts only a file path and does not accept a symbol selector.");return{scheme:n,path:s}}if(n==="symbol"&&c===void 0)throw new TypeError("symbol: requires #<symbol-selector> after the file path.");if(c===void 0)return{scheme:n,path:s};if(c.length===0)throw new TypeError(`${n}: symbol selector must not be empty.`);let d=c.split("/").map(f=>{if(f.length===0)throw new TypeError(`${n}: symbol selector contains an empty segment.`);return $(f,`${n}: symbol selector`)});return{scheme:n,path:s,selector:d}}a(T,"parseCodeViewReference");function
|
|
2
|
-
`),sourceLines:S}}a(j,"createDiagnosticViewContent");function O(e,n){let t=b(n,e.lines.length),o=e.lines.map(r=>{let i=t.get(r.lineNumber);if(i===void 0)return r;let s=i.map(({diagnostic:c,source:d})=>`<!-- ${d}: ${m(c,d)} -->`).join(" ");return{...r,presentation:{...r.presentation,suffix:`${r.presentation?.suffix??""} ${s}`}}});return{...e,lines:o}}a(O,"addDiagnosticAnnotations");function w(e){return e.filter(n=>n.status&&n.status!=="ready").map(n=>`${n.source}: ${n.status}${n.reason?` (${n.reason})`:""}.`).join(" ")}a(w,"diagnosticStatus");function b(e,n){let
|
|
3
|
-
`),sourceLines:n}}a(L,"sourceMappedContent");function A(e){if(typeof e!="object"||e===null||!("sourceLines"in e))return;let n=e.sourceLines;if(!(typeof n!="object"||n===null)){for(let t of Object.values(n))if(!I(t))return;return n}}a(A,"sourceLineMap");function I(e){if(typeof e!="object"||e===null)return!1;let n=e;return typeof n.source=="string"&&n.source.length>0&&Number.isInteger(n.lineNumber)&&(n.lineNumber??0)>0&&typeof n.content=="string"}a(I,"isTextSourceLine");export{T as a,
|
|
1
|
+
import{j as V}from"./chunk-2SKAED2I.js";import{a as m}from"./chunk-KINKBPPX.js";import{a as y}from"./chunk-ZC65Z3CK.js";import{a}from"./chunk-EI7MMDWY.js";import x from"node:path";import{fileURLToPath as R}from"node:url";function T(e,n){let t=`${n}:`;if(!e.startsWith(t))return;let o=e.slice(t.length),r=o.indexOf("#"),i=r===-1?o:o.slice(0,r);if(i.length===0)throw new TypeError(`${n}: requires a file path.`);let s=$(i,`${n}: path`),c=r===-1?void 0:o.slice(r+1);if(n==="ast"){if(c!==void 0)throw new TypeError("ast: accepts only a file path and does not accept a symbol selector.");return{scheme:n,path:s}}if(n==="symbol"&&c===void 0)throw new TypeError("symbol: requires #<symbol-selector> after the file path.");if(c===void 0)return{scheme:n,path:s};if(c.length===0)throw new TypeError(`${n}: symbol selector must not be empty.`);let d=c.split("/").map(f=>{if(f.length===0)throw new TypeError(`${n}: symbol selector contains an empty segment.`);return $(f,`${n}: symbol selector`)});return{scheme:n,path:s,selector:d}}a(T,"parseCodeViewReference");function D(e,n){return e.startsWith("file://")?R(new URL(e)):x.isAbsolute(e)?x.normalize(e):x.resolve(n,e)}a(D,"resolveCodeViewPath");function C(e,n,t){let o=n.replaceAll("%","%25").replaceAll("#","%23"),r=t===void 0?"":`#${t.map(i=>encodeURIComponent(i)).join("/")}`;return`${e}:${o}${r}`}a(C,"formatCodeViewReference");function k(e){return e.map(n=>encodeURIComponent(n)).join("/")}a(k,"formatSymbolSelector");function $(e,n){try{return decodeURIComponent(e)}catch(t){throw new TypeError(`${n} contains invalid percent encoding.`,{cause:t})}}a($,"decodePart");import v from"node:path";function N(e,n,t){let o=`${n}:`;if(!e.startsWith(o))return;let r=e.slice(o.length);if(r.length===0)throw new Error(`${n}: requires a file path.`);return v.resolve(t,r)}a(N,"resolveDiagnosticViewPath");function M(e,n){return`${e}:${n}`}a(M,"formatDiagnosticViewSource");function j(e,n,t,o={}){let r=n.split(/\r\n|\r|\n/u),i=b(t,r.length);if(i.size===0)return{type:"text",text:w(t)||"No diagnostics.",sourceLines:{}};let s=o.contextLines??5;if(!Number.isInteger(s)||s<0)throw new TypeError("Diagnostic contextLines must be a non-negative integer.");let c=new Set;for(let l of i.keys()){let u=Math.max(1,l-s),p=Math.min(r.length,l+s);for(let g=u;g<=p;g+=1)c.add(g)}let d=w(t),f=d?[d]:[],S={};for(let l of[...c].sort((u,p)=>u-p)){let u=r[l-1]??"",p=(i.get(l)??[]).map(({diagnostic:g,source:h})=>`<!-- ${h}: ${m(g,h)} -->`).join(" ");f.push(p.length===0?u:`${u} ${p}`),S[String(f.length)]={source:e,lineNumber:l,content:u}}return{type:"text",text:f.join(`
|
|
2
|
+
`),sourceLines:S}}a(j,"createDiagnosticViewContent");function O(e,n){let t=b(n,e.lines.length,/[\r\n]$/u.test(e.content)),o=e.lines.map(r=>{let i=t.get(r.lineNumber);if(i===void 0)return r;let s=i.map(({diagnostic:c,source:d})=>`<!-- ${d}: ${m(c,d)}${c.line===r.lineNumber?"":` @${c.line}:${c.column}`} -->`).join(" ");return{...r,presentation:{...r.presentation,suffix:`${r.presentation?.suffix??""} ${s}`}}});return{...e,lines:o}}a(O,"addDiagnosticAnnotations");function w(e){return e.filter(n=>n.status&&n.status!=="ready").map(n=>`${n.source}: ${n.status}${n.reason?` (${n.reason})`:""}.`).join(" ")}a(w,"diagnosticStatus");function b(e,n,t=!1){let o=new Map;for(let{diagnostics:r,source:i}of e)for(let s of r){let c=t&&s.line===n+1?n:s.line;if(!Number.isInteger(s.line)||c<1||c>n)continue;let d=o.get(c)??[];d.push({diagnostic:s,source:i}),o.set(c,d)}return o}a(b,"diagnosticsByValidLine");function B(e){return{text:`${e.content}${e.suffix??""}`,...e.sourceLine!==void 0&&{sourceLine:e.sourceLine}}}a(B,"renderSourceViewLine");function E(e,n){if(e.length===0)return L([{text:"<empty-result>"}]);if(e.length===1&&y(e[0]).status==="failed"&&y(e[0]).path===""){let o=y(e[0]),r=n.recovery===void 0?[]:["","Recovery:",...n.recovery],i=n.includeNoChange===!0?["","No file was changed."]:[];return L([o.code??n.failureLabel,"",`Reason: ${o.error??n.unknownFailure??"unknown failure"}`,...i,...r].map(s=>({text:s})))}let t=[];for(let[o,r]of e.entries())o>0&&t.push({text:""},{text:""}),t.push(...P(r,n));return L(t)}a(E,"formatSourceViewResults");function F(){return e=>{let n=e.state;if(n?.contentKind!=="text")return{kind:"continue",context:e};let t=A(n.content[0]);if(t===void 0)return{kind:"continue",context:e};let o=n.text.lines.map(r=>{let i=t[String(r.lineNumber)];return i===void 0?r:V(r,i)});return{kind:"continue",context:{...e,state:{...n,text:{...n.text,lines:o}}}}}}a(F,"createSourceMappedTextReadHandler");function P(e,n){if(e.status==="failed")return[...e.heading===void 0?[`## file: ${e.path||"<unknown>"}`]:[`## ${e.heading}`,...e.details??[]],`${n.failureLabel} | ${e.error??n.unknownFailure??"unknown failure"}`].map(s=>({text:s}));let t=e.heading===void 0?[`## file: ${e.path}`]:[`## ${e.heading}`,...e.details??[]],o=e.continuation??"",r=e.warning===void 0?[]:[{text:""},{text:e.warning}];return[...t.map(i=>({text:i})),{text:`Lines: ${e.startLine}-${e.endLine} of ${e.totalLines}${o}`},{text:""},...e.renderedLines,...r]}a(P,"formatSourceViewBlock");function L(e){let n={};for(let[t,o]of e.entries())o.sourceLine!==void 0&&(n[String(t+1)]=o.sourceLine);return{type:"text",text:e.map(t=>t.text).join(`
|
|
3
|
+
`),sourceLines:n}}a(L,"sourceMappedContent");function A(e){if(typeof e!="object"||e===null||!("sourceLines"in e))return;let n=e.sourceLines;if(!(typeof n!="object"||n===null)){for(let t of Object.values(n))if(!I(t))return;return n}}a(A,"sourceLineMap");function I(e){if(typeof e!="object"||e===null)return!1;let n=e;return typeof n.source=="string"&&n.source.length>0&&Number.isInteger(n.lineNumber)&&(n.lineNumber??0)>0&&typeof n.content=="string"}a(I,"isTextSourceLine");export{T as a,D as b,C as c,k as d,N as e,M as f,j as g,O as h,w as i,B as j,E as k,F as l};
|
package/dist/entry-0.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l}from"./chunk-ZIHEF6K3.js";import"./chunk-2SKAED2I.js";import"./chunk-KINKBPPX.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{h as addDiagnosticAnnotations,g as createDiagnosticViewContent,l as createSourceMappedTextReadHandler,i as diagnosticStatus,c as formatCodeViewReference,f as formatDiagnosticViewSource,k as formatSourceViewResults,d as formatSymbolSelector,a as parseCodeViewReference,j as renderSourceViewLine,b as resolveCodeViewPath,e as resolveDiagnosticViewPath};
|
package/dist/entry-18.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-WZI4YC2O.js";import"./chunk-EI7MMDWY.js";export{b as hasProjectMarker,a as inspectRecipeEvidence};
|
package/dist/entry-19.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-N34ATN52.js";import"./chunk-EI7MMDWY.js";export{d as isExecutableAvailable,b as normalizeProcessEnvironment,e as probeExecutable,a as projectExecutableDirectories,c as projectProcessEnvironment};
|
package/dist/entry-20.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"./chunk-VFBLX4TG.js";import"./chunk-EI7MMDWY.js";export{b as DOCTOR_API_VERSION,c as DOCTOR_CORE_READY_EVENT,d as DOCTOR_PLUGIN_REGISTER_EVENT,a as DOCTOR_PROTOCOL,e as isDoctorCoreReady,f as isDoctorPluginRegistrationRequest};
|
package/dist/entry-21.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-MB6VVVAF.js";import"./chunk-NNCZYO4Q.js";import"./chunk-SSZB66C3.js";import"./chunk-YHUTTZC6.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-22.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-NI2NK4JU.js";import"./chunk-GTK5AREE.js";import"./chunk-EW2KVKCN.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-23.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-W3XYKJ5H.js";import"./chunk-PODWLGNO.js";import"./chunk-EW2KVKCN.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-24.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-XGUAL3CA.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-25.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a as e,b as o}from"./chunk-SMSIT3CE.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{o as AstScopeManager,e as parseDocument};
|
package/dist/entry-26.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-NXHPO7ER.js";import"./chunk-SMSIT3CE.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-NNCZYO4Q.js";import"./chunk-SSZB66C3.js";import"./chunk-YHUTTZC6.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-E2RESHYR.js";import"./chunk-T2RPMEM2.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-ZIHEF6K3.js";import"./chunk-2SKAED2I.js";import"./chunk-KINKBPPX.js";import"./chunk-L4FA6OD4.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-27.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c}from"./chunk-DEP55R35.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as createChangeGroups,c as replaceHeadRangeInIndex,b as reverseChangeGroup};
|
package/dist/entry-28.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-ONWUJXUR.js";import"./chunk-DEP55R35.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-29.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-MTQSGWZJ.js";import"./chunk-WZI4YC2O.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-OBWZ5RYN.js";import"./chunk-KZBAJFCV.js";import"./chunk-L4FA6OD4.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-30.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-QZANC2IG.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-31.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-2XYXV5HS.js";import"./chunk-WZI4YC2O.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-OBWZ5RYN.js";import"./chunk-KZBAJFCV.js";import"./chunk-L4FA6OD4.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-32.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-VEJGSURY.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-NNCZYO4Q.js";import"./chunk-SSZB66C3.js";import"./chunk-YHUTTZC6.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-E2RESHYR.js";import"./chunk-T2RPMEM2.js";import"./chunk-ZIHEF6K3.js";import"./chunk-2SKAED2I.js";import"./chunk-OBWZ5RYN.js";import"./chunk-KZBAJFCV.js";import"./chunk-KINKBPPX.js";import"./chunk-L4FA6OD4.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-33.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c}from"./chunk-GTK5AREE.js";import"./chunk-EI7MMDWY.js";export{c as createImageContent,a as createImageContentConverter,b as detectSupportedImageMimeType};
|
package/dist/entry-34.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as requiredValue};
|
package/dist/entry-35.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c}from"./chunk-PODWLGNO.js";import"./chunk-EI7MMDWY.js";export{c as createPdfContent,a as createPdfContentConverter,b as isPdf};
|
package/dist/entry-36.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{a}from"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-EI7MMDWY.js";export{a as connectReadPlugin};
|
package/dist/entry-37.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import"./chunk-NNCZYO4Q.js";import{c as a}from"./chunk-SSZB66C3.js";import"./chunk-YHUTTZC6.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as createReadResultRenderer};
|
package/dist/entry-38.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"./chunk-JASLOB2X.js";import"./chunk-EI7MMDWY.js";export{b as READ_API_VERSION,c as READ_CORE_READY_EVENT,d as READ_PLUGIN_REGISTER_EVENT,a as READ_PROTOCOL,e as isReadCoreReady,f as isReadPlugin,g as isReadPluginRegistrationRequest};
|
package/dist/entry-39.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"./chunk-2ZMYT6ZC.js";import"./chunk-EW2KVKCN.js";import"./chunk-EI7MMDWY.js";export{e as isFragmentResolverRegistration,f as isReadFragmentResolution,c as isReadHandlerRegistration,d as isReadViewRegistration,b as isResourceResolverRegistration,a as isTextTargetResolverRegistration};
|
package/dist/entry-4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"./chunk-L4FA6OD4.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as TOOL_CONFIG_VERSION,m as createConfiguredProcessEnvironment,h as hasConfiguredExecutable,e as loadLayeredToolConfig,f as matchesConfiguredFile,k as parseFormattersConfig,l as parseLintersConfig,b as projectIdeConfigDirectory,c as projectIdeConfigPath,d as resolveToolConfigPaths,j as runConfiguredFormatter,i as runConfiguredProcess,g as selectConfiguredEntry};
|
package/dist/entry-40.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-4SQQKEVD.js";import"./chunk-VSP2QQPQ.js";import"./chunk-2ZMYT6ZC.js";import"./chunk-SSZB66C3.js";import"./chunk-YHUTTZC6.js";import"./chunk-JASLOB2X.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-41.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"./chunk-EW2KVKCN.js";import"./chunk-EI7MMDWY.js";export{p as CONTENT_API_VERSION,r as CONTENT_CONVERTER_REGISTER_EVENT,q as CONTENT_HOST_READY_EVENT,o as CONTENT_PROTOCOL,l as UnsupportedContentError,v as connectContentConverter,u as createContentHost,m as createContentRunner,b as isAgentContent,j as isContentConversionAttempt,h as isContentConversionContext,i as isContentConverter,k as isContentConverterRegistration,t as isContentConverterRegistrationRequest,s as isContentHostReady,g as isContentInput,f as isContentTarget,c as isResource,e as isResourceResolutionAttempt,d as isResourceResolver,a as renderContentDescription,n as targetsEqual};
|
package/dist/entry-42.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-E2RESHYR.js";import"./chunk-T2RPMEM2.js";import"./chunk-EI7MMDWY.js";export{a as connectSearchPlugin};
|
package/dist/entry-43.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"./chunk-T2RPMEM2.js";import"./chunk-EI7MMDWY.js";export{b as SEARCH_API_VERSION,c as SEARCH_CORE_READY_EVENT,d as SEARCH_PLUGIN_REGISTER_EVENT,a as SEARCH_PROTOCOL,e as isSearchCoreReady,f as isSearchPlugin,g as isSearchPluginRegistrationRequest};
|
package/dist/entry-44.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./chunk-3H2EU7VQ.js";
|
package/dist/entry-45.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-BYWAG6X3.js";import"./chunk-VSP2QQPQ.js";import"./chunk-YHUTTZC6.js";import"./chunk-T2RPMEM2.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-46.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as b}from"./chunk-KH5KPBCR.js";import{d as a}from"./chunk-34ZQTTU2.js";import"./chunk-MTTKFJV6.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-E2RESHYR.js";import"./chunk-T2RPMEM2.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as createSearchSessionId,b as default};
|
package/dist/entry-47.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d
|
|
1
|
+
import{d as a,e as b,f as c,g as d}from"./chunk-34ZQTTU2.js";import"./chunk-MTTKFJV6.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{d as SearchSessionStore,c as allocateSearchSessionId,a as createSearchSessionId,b as createSearchSessionIdentity};
|
package/dist/entry-48.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as TextAnchor,b as attachTextAnchorRenderer,p as createTextContentConverter,m as createTextDocument,c as getTextAnchorRenderer,i as getTextSourceLine,g as isTextAnchorRecoveryOutcome,f as isTextAnchorResolutionAttempt,e as isTextAnchorResolver,k as isTextLinePresenter,l as isTextPresenterRegistration,s as isTextTargetResolutionAttempt,q as isTextualMediaType,o as renderPresentedTextDocument,h as renderPresentedTextRows,d as renderTextAnchor,n as renderTextDocument,u as restoreText,t as storeText,r as textFromAgentContent,j as withTextSourceLine};
|
package/dist/entry-49.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-5BWUVAR4.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-50.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c}from"./chunk-SJYDLHEF.js";import"./chunk-MTTKFJV6.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as createExactTextAnchorResolver,c as findExactTextMatches,b as resolveExactTextAnchor};
|
package/dist/entry-51.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-HOBTFFQR.js";import"./chunk-SJYDLHEF.js";import"./chunk-MTTKFJV6.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-52.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-PETQCA7G.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{b as createLineHashAnchor,e as createLineHashAnchorResolver,c as formatLineHashAnchor,a as hashLine,d as renderLineHashLines};
|
package/dist/entry-53.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-6SMFVLTY.js";import"./chunk-PETQCA7G.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-54.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as connectTextEditorPlugin};
|
package/dist/entry-55.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as connectTextEditorPlugin};
|
package/dist/entry-56.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-STUZZM5B.js";import"./chunk-EI7MMDWY.js";export{a as isTextEditHandlerRegistration};
|
package/dist/entry-57.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-STUZZM5B.js";import"./chunk-EI7MMDWY.js";export{a as isTextEditHandlerRegistration};
|
package/dist/entry-58.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{b as TEXT_EDITOR_API_VERSION,e as TEXT_EDITOR_CORE_READY_EVENT,f as TEXT_EDITOR_PLUGIN_REGISTER_EVENT,a as TEXT_EDITOR_PROTOCOL,c as TEXT_POSITION_ANCHOR_KIND,d as TEXT_SEARCH_ANCHOR_KIND,h as isResourceResolverRegistration,i as isTextAnchorResolverRegistration,j as isTextAnchorResourceResolutionAttempt,k as isTextEditorCoreReady,l as isTextEditorPlugin,m as isTextEditorPluginRegistrationRequest,g as isTextEditorToolId};
|
package/dist/entry-59.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-MBUXFKIW.js";import"./chunk-EI7MMDWY.js";export{a as formatStaleAnchorMessage};
|
package/dist/entry-60.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-MTTKFJV6.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as TextSelectionAnchor};
|
package/dist/entry-61.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,d
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-TG6H6EOI.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as TEXT_EDITOR_POST_EDIT_REGISTER_EVENT,e as connectTextEditorPostEditHandler,d as isTextMutationResultContributionData,b as isTextPostEditHandlerRegistration,c as isTextPostEditHandlerRegistrationRequest};
|
package/dist/entry-62.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,d as c}from"./chunk-KNMWCDDK.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{b as FileMutationResult,a as FileRange,c as computeChangedRanges};
|
package/dist/entry-63.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-OVUYPHDE.js";import"./chunk-EI7MMDWY.js";export{b as assertTextMutationToolRegistration,a as isMutationAnchorValue,c as mutationSource};
|
package/dist/entry-64.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"./chunk-OVUYPHDE.js";import"./chunk-EI7MMDWY.js";export{b as assertTextMutationToolRegistration,a as isMutationAnchorValue,c as mutationSource};
|
package/dist/entry-65.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-YPHXLAQF.js";import"./chunk-EI7MMDWY.js";export{c as clearLastResolvedResource,b as getLastResolvedResource,a as rememberLastResolvedResource};
|
package/dist/entry-66.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a,b,c}from"./chunk-YPHXLAQF.js";import"./chunk-EI7MMDWY.js";export{c as clearLastResolvedResource,b as getLastResolvedResource,a as rememberLastResolvedResource};
|
package/dist/entry-67.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a as b,b as c}from"./chunk-XNXQYPVT.js";import{c as a}from"./chunk-VSP2QQPQ.js";import"./chunk-YHUTTZC6.js";import"./chunk-EI7MMDWY.js";export{a as getToolCallInterception,c as registerToolCallAnnotationSink,b as registerToolCallInterceptor};
|
package/dist/entry-68.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-VCCMVQXU.js";import"./chunk-EI7MMDWY.js";export{a as isTextEditorToolRendererRegistration};
|
package/dist/entry-69.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-6XQQBKPE.js";import"./chunk-OVUYPHDE.js";import"./chunk-YPHXLAQF.js";import"./chunk-VCCMVQXU.js";import"./chunk-XNXQYPVT.js";import"./chunk-STUZZM5B.js";import"./chunk-MBUXFKIW.js";import"./chunk-TG6H6EOI.js";import"./chunk-KNMWCDDK.js";import"./chunk-VSP2QQPQ.js";import"./chunk-MTTKFJV6.js";import"./chunk-YHUTTZC6.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-70.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-F6SESI3P.js";import"./chunk-XNXQYPVT.js";import"./chunk-VSP2QQPQ.js";import"./chunk-YHUTTZC6.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-71.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-KYVOMBO5.js";import"./chunk-XNXQYPVT.js";import"./chunk-VSP2QQPQ.js";import"./chunk-YHUTTZC6.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{b as createOverwriteGuard,a as default};
|
package/dist/entry-72.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-OIL6BB2S.js";import"./chunk-KNMWCDDK.js";import"./chunk-VSP2QQPQ.js";import"./chunk-YHUTTZC6.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-73.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-OFHVDY4Q.js";import"./chunk-OVUYPHDE.js";import"./chunk-YPHXLAQF.js";import"./chunk-XNXQYPVT.js";import"./chunk-MBUXFKIW.js";import"./chunk-VSP2QQPQ.js";import"./chunk-YHUTTZC6.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-EEH4WYI7.js";import"./chunk-266RH77Z.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-74.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"./chunk-YHUTTZC6.js";import"./chunk-EI7MMDWY.js";export{b as
|
|
1
|
+
import{a,b,c,d,e,f,g,h}from"./chunk-VSP2QQPQ.js";import"./chunk-YHUTTZC6.js";import"./chunk-EI7MMDWY.js";export{b as TOOL_CALL_INTERCEPTION_ANCHOR_RENDER_PATCH,a as TOOL_CALL_INTERCEPTION_DETAILS_KEY,f as ToolCallInterceptionRenderStore,c as getToolCallInterception,h as isToolCallAnnotation,e as withBlockedToolResult,d as withToolCallInterceptionDetails,g as withToolCallInterceptionRendering};
|
package/dist/entry-75.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"./chunk-YHUTTZC6.js";import"./chunk-EI7MMDWY.js";export{b as ToolCallHeader,f as preserveEnclosingBackground,e as renderToolCallDetails,d as renderToolCallHeader,g as singleLine,a as toolBackgroundAnsi,c as toolCallHeader};
|
package/dist/entry-76.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-UTTW55S2.js";import"./chunk-ERVMDQGX.js";import"./chunk-VFBLX4TG.js";import"./chunk-NNCZYO4Q.js";import"./chunk-SSZB66C3.js";import"./chunk-YHUTTZC6.js";import"./chunk-ORAPGW7W.js";import"./chunk-JASLOB2X.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-N34ATN52.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-77.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-IMVCVPMP.js";import"./chunk-EW2KVKCN.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-78.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-LFV6G5Z3.js";import"./chunk-GTK5AREE.js";import"./chunk-EW2KVKCN.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-79.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-IOCABSRL.js";import"./chunk-PODWLGNO.js";import"./chunk-EW2KVKCN.js";import"./chunk-EI7MMDWY.js";export{a as default};
|
package/dist/entry-80.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-6DN7NO7L.js";import"./chunk-EW2KVKCN.js";import"./chunk-2SKAED2I.js";import"./chunk-EI7MMDWY.js";export{a as default};
|