@mrclrchtr/supi-code-intelligence 1.8.0 → 1.9.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/README.md +17 -1
- package/node_modules/@mrclrchtr/supi-code-runtime/README.md +13 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/README.md +97 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +53 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/api.ts +30 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config/config-settings.ts +76 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config/config.ts +186 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config.ts +11 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-messages.ts +119 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-provider-registry.ts +36 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +31 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context.ts +16 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +255 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/index.ts +30 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/path-utils.ts +40 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/path.ts +2 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/project-roots.ts +170 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/project.ts +15 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/registry-utils.ts +86 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/session-utils.ts +29 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/session.ts +4 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-command.ts +15 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-registry.ts +41 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-ui.ts +226 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings-ui.ts +2 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings.ts +9 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/substrate-types.ts +11 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/terminal.ts +60 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/tool-framework.ts +116 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/types.ts +2 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/package.json +40 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +35 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/src/capability/types.ts +68 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/src/index.ts +31 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/src/types.ts +110 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/src/workspace/context.ts +41 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/src/workspace/runtime.ts +170 -0
- package/node_modules/@mrclrchtr/supi-core/README.md +3 -13
- package/node_modules/@mrclrchtr/supi-core/package.json +1 -7
- package/node_modules/@mrclrchtr/supi-lsp/README.md +20 -2
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/README.md +13 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/README.md +97 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +57 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/api.ts +30 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config/config-settings.ts +76 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config/config.ts +186 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config.ts +11 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-messages.ts +119 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-provider-registry.ts +36 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +31 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context.ts +16 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +255 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/index.ts +30 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/path-utils.ts +40 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/path.ts +2 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/project-roots.ts +170 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/project.ts +15 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/registry-utils.ts +86 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/session-utils.ts +29 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/session.ts +4 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-command.ts +15 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-registry.ts +41 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-ui.ts +226 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings-ui.ts +2 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings.ts +9 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/substrate-types.ts +11 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/terminal.ts +60 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/tool-framework.ts +116 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/types.ts +2 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/package.json +40 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +35 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/capability/types.ts +68 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/index.ts +31 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/types.ts +110 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/workspace/context.ts +41 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/workspace/runtime.ts +170 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/README.md +3 -13
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/package.json +1 -7
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/ignore/README.md +452 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/ignore/index.d.ts +81 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/ignore/index.js +784 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/ignore/legacy.js +681 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/ignore/package.json +87 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/LICENSE.txt +55 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/README.md +50 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/SECURITY.md +39 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/bin/tsc +2 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/bin/tsserver +2 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/_tsc.js +134465 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/_tsserver.js +659 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.d.ts +20 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.decorators.d.ts +382 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.decorators.legacy.d.ts +20 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +18 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.dom.d.ts +45125 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.dom.iterable.d.ts +18 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.collection.d.ts +150 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.core.d.ts +595 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.d.ts +26 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.generator.d.ts +75 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.iterable.d.ts +603 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.promise.d.ts +79 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.proxy.d.ts +126 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.reflect.d.ts +142 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.symbol.d.ts +44 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2016.array.include.d.ts +114 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2016.d.ts +19 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2016.full.d.ts +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2016.intl.d.ts +29 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.d.ts +24 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.date.d.ts +29 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.full.d.ts +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.intl.d.ts +42 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.object.d.ts +47 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.string.d.ts +43 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2018.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2018.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2018.intl.d.ts +81 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2018.promise.d.ts +28 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2018.regexp.d.ts +35 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2019.array.d.ts +77 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2019.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2019.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2019.intl.d.ts +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2019.object.d.ts +31 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2019.string.d.ts +35 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2019.symbol.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.bigint.d.ts +763 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.d.ts +25 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.date.d.ts +40 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.intl.d.ts +472 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.number.d.ts +26 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.promise.d.ts +45 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.string.d.ts +42 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2021.d.ts +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2021.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2021.intl.d.ts +164 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2021.promise.d.ts +46 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2021.string.d.ts +31 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2021.weakref.d.ts +76 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.array.d.ts +119 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.d.ts +23 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.error.d.ts +73 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.intl.d.ts +143 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.object.d.ts +24 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.regexp.d.ts +37 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2022.string.d.ts +23 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2023.array.d.ts +922 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2023.collection.d.ts +19 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2023.d.ts +20 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2023.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2023.intl.d.ts +62 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.collection.d.ts +27 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.d.ts +24 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.object.d.ts +27 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.promise.d.ts +33 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.regexp.d.ts +23 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2024.string.d.ts +27 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.collection.d.ts +94 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.d.ts +23 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.float16.d.ts +443 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.intl.d.ts +200 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.iterator.d.ts +146 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.promise.d.ts +32 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es2025.regexp.d.ts +30 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es5.d.ts +4599 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.es6.d.ts +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.array.d.ts +33 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.collection.d.ts +47 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.d.ts +27 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.date.d.ts +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.decorators.d.ts +26 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.disposable.d.ts +191 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.error.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.full.d.ts +22 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.intl.d.ts +107 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.temporal.d.ts +485 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.scripthost.d.ts +320 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.webworker.d.ts +15606 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/lib.webworker.iterable.d.ts +18 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/tsc.js +8 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/tsserver.js +8 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/typesMap.json +497 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/typescript.d.ts +11448 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/typescript.js +201039 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/watchGuard.js +53 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/typescript/package.json +118 -0
- package/node_modules/@mrclrchtr/supi-lsp/package.json +11 -6
- package/node_modules/@mrclrchtr/supi-lsp/src/handlers/session-lifecycle.ts +17 -7
- package/node_modules/@mrclrchtr/supi-lsp/src/lsp.ts +3 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/capability-index.ts +24 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/client-pool.ts +33 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/diagnostic-store.ts +51 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/recovery-coordinator.ts +37 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/workspace-router.ts +44 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/provider/lsp-semantic-provider.ts +156 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-registration.ts +39 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/tool/register-tools.ts +0 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/README.md +18 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/README.md +13 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/README.md +97 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +57 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/api.ts +30 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config/config-settings.ts +76 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config/config.ts +186 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/config.ts +11 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-messages.ts +119 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-provider-registry.ts +36 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +31 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/context.ts +16 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +255 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/index.ts +30 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/path-utils.ts +40 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/path.ts +2 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/project-roots.ts +170 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/project.ts +15 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/registry-utils.ts +86 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/session-utils.ts +29 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/session.ts +4 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-command.ts +15 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-registry.ts +41 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-ui.ts +226 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings-ui.ts +2 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/settings.ts +9 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/substrate-types.ts +11 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/terminal.ts +60 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/tool-framework.ts +116 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/src/types.ts +2 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/package.json +40 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +35 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/capability/types.ts +68 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/index.ts +31 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/types.ts +110 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/workspace/context.ts +41 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/workspace/runtime.ts +170 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/README.md +3 -13
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/package.json +1 -7
- package/node_modules/@mrclrchtr/supi-tree-sitter/package.json +9 -6
- package/node_modules/@mrclrchtr/supi-tree-sitter/src/provider/tree-sitter-provider.ts +144 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/src/session/runtime-registration.ts +37 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/src/tree-sitter.ts +18 -8
- package/package.json +8 -6
- package/src/api.ts +31 -16
- package/src/brief-focused.ts +2 -2
- package/src/brief.ts +2 -2
- package/src/code-intelligence.ts +13 -1
- package/src/index.ts +29 -16
- package/src/{architecture.ts → model.ts} +20 -61
- package/src/presentation/markdown/brief.ts +2 -2
- package/src/substrates/types.ts +22 -105
- package/src/targeting/resolve-file.ts +4 -7
- package/src/tool/execute-affected.ts +25 -1
- package/src/tool/execute-brief.ts +5 -4
- package/src/tool/execute-pattern.ts +4 -3
- package/src/tool/execute-relations.ts +22 -1
- package/src/types.ts +101 -3
- package/src/use-case/build-overview.ts +1 -1
- package/src/use-case/generate-affected.ts +25 -7
- package/src/use-case/generate-brief.ts +31 -14
- package/src/use-case/generate-pattern.ts +9 -9
- package/src/use-case/generate-relations.ts +66 -20
- package/src/use-case/types.ts +3 -3
- package/src/workspace/request-context.ts +139 -0
- package/node_modules/@mrclrchtr/supi-core/src/extension.ts +0 -1
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/extension.ts +0 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/extension.ts +0 -1
- package/src/substrates/lsp-adapter.ts +0 -197
- package/src/substrates/tree-sitter-adapter.ts +0 -173
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typescript",
|
|
3
|
+
"author": "Microsoft Corp.",
|
|
4
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
+
"version": "6.0.3",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript"
|
|
14
|
+
],
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/microsoft/TypeScript/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/microsoft/TypeScript.git"
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/typescript.js",
|
|
23
|
+
"typings": "./lib/typescript.d.ts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"tsc": "./bin/tsc",
|
|
26
|
+
"tsserver": "./bin/tsserver"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=14.17"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin",
|
|
33
|
+
"lib",
|
|
34
|
+
"!lib/enu",
|
|
35
|
+
"LICENSE.txt",
|
|
36
|
+
"README.md",
|
|
37
|
+
"SECURITY.md",
|
|
38
|
+
"ThirdPartyNoticeText.txt",
|
|
39
|
+
"!**/.gitattributes"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@dprint/formatter": "^0.4.1",
|
|
43
|
+
"@dprint/typescript": "0.93.4",
|
|
44
|
+
"@esfx/canceltoken": "^1.0.0",
|
|
45
|
+
"@eslint/js": "^10.0.1",
|
|
46
|
+
"@octokit/rest": "^22.0.1",
|
|
47
|
+
"@types/chai": "^4.3.20",
|
|
48
|
+
"@types/minimist": "^1.2.5",
|
|
49
|
+
"@types/mocha": "^10.0.10",
|
|
50
|
+
"@types/ms": "^2.1.0",
|
|
51
|
+
"@types/node": "latest",
|
|
52
|
+
"@types/source-map-support": "^0.5.10",
|
|
53
|
+
"@types/which": "^3.0.4",
|
|
54
|
+
"@typescript-eslint/rule-tester": "^8.56.1",
|
|
55
|
+
"@typescript-eslint/type-utils": "^8.56.1",
|
|
56
|
+
"@typescript-eslint/utils": "^8.56.1",
|
|
57
|
+
"azure-devops-node-api": "^15.1.3",
|
|
58
|
+
"c8": "^10.1.3",
|
|
59
|
+
"chai": "^4.5.0",
|
|
60
|
+
"chokidar": "^4.0.3",
|
|
61
|
+
"diff": "^8.0.3",
|
|
62
|
+
"dprint": "^0.49.1",
|
|
63
|
+
"esbuild": "^0.27.3",
|
|
64
|
+
"eslint": "^10.0.2",
|
|
65
|
+
"eslint-plugin-regexp": "^3.0.0",
|
|
66
|
+
"fast-xml-parser": "^5.4.1",
|
|
67
|
+
"glob": "^10.5.0",
|
|
68
|
+
"globals": "^17.4.0",
|
|
69
|
+
"hereby": "^1.12.0",
|
|
70
|
+
"jsonc-parser": "^3.3.1",
|
|
71
|
+
"knip": "^5.85.0",
|
|
72
|
+
"minimist": "^1.2.8",
|
|
73
|
+
"mocha": "^10.8.2",
|
|
74
|
+
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
75
|
+
"monocart-coverage-reports": "^2.12.9",
|
|
76
|
+
"ms": "^2.1.3",
|
|
77
|
+
"picocolors": "^1.1.1",
|
|
78
|
+
"playwright": "^1.58.2",
|
|
79
|
+
"source-map-support": "^0.5.21",
|
|
80
|
+
"tslib": "^2.8.1",
|
|
81
|
+
"typescript": "^5.9.3",
|
|
82
|
+
"typescript-eslint": "^8.56.1",
|
|
83
|
+
"which": "^3.0.1"
|
|
84
|
+
},
|
|
85
|
+
"overrides": {
|
|
86
|
+
"typescript@*": "$typescript"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"test": "hereby runtests-parallel --light=false",
|
|
90
|
+
"test:eslint-rules": "hereby run-eslint-rules-tests",
|
|
91
|
+
"build": "npm run build:compiler && npm run build:tests",
|
|
92
|
+
"build:compiler": "hereby local",
|
|
93
|
+
"build:tests": "hereby tests",
|
|
94
|
+
"build:tests:notypecheck": "hereby tests --no-typecheck",
|
|
95
|
+
"clean": "hereby clean",
|
|
96
|
+
"gulp": "hereby",
|
|
97
|
+
"lint": "hereby lint",
|
|
98
|
+
"knip": "hereby knip",
|
|
99
|
+
"format": "dprint fmt",
|
|
100
|
+
"setup-hooks": "node scripts/link-hooks.mjs"
|
|
101
|
+
},
|
|
102
|
+
"browser": {
|
|
103
|
+
"fs": false,
|
|
104
|
+
"os": false,
|
|
105
|
+
"path": false,
|
|
106
|
+
"crypto": false,
|
|
107
|
+
"buffer": false,
|
|
108
|
+
"source-map-support": false,
|
|
109
|
+
"inspector": false,
|
|
110
|
+
"perf_hooks": false
|
|
111
|
+
},
|
|
112
|
+
"packageManager": "npm@8.19.4",
|
|
113
|
+
"volta": {
|
|
114
|
+
"node": "22.22.0",
|
|
115
|
+
"npm": "8.19.4"
|
|
116
|
+
},
|
|
117
|
+
"gitHead": "050880ce59e30b356b686bd3144efe24f875ebc8"
|
|
118
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-lsp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "SuPi LSP extension — Language Server Protocol integration for pi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,10 +26,14 @@
|
|
|
26
26
|
"vscode-jsonrpc": "^8.2.1",
|
|
27
27
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
28
28
|
"vscode-languageserver-types": "^3.17.5",
|
|
29
|
-
"@mrclrchtr/supi-
|
|
29
|
+
"@mrclrchtr/supi-code-runtime": "1.9.1",
|
|
30
|
+
"@mrclrchtr/supi-core": "1.9.1"
|
|
30
31
|
},
|
|
31
32
|
"bundledDependencies": [
|
|
33
|
+
"@mrclrchtr/supi-code-runtime",
|
|
32
34
|
"@mrclrchtr/supi-core",
|
|
35
|
+
"ignore",
|
|
36
|
+
"typescript",
|
|
33
37
|
"vscode-jsonrpc",
|
|
34
38
|
"vscode-languageserver-protocol",
|
|
35
39
|
"vscode-languageserver-types"
|
|
@@ -56,14 +60,15 @@
|
|
|
56
60
|
},
|
|
57
61
|
"pi": {
|
|
58
62
|
"extensions": [
|
|
59
|
-
"./src/extension.ts"
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
"./src/extension.ts"
|
|
64
|
+
],
|
|
65
|
+
"image": "https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-lsp/assets/logo.png"
|
|
62
66
|
},
|
|
63
67
|
"main": "src/api.ts",
|
|
64
68
|
"exports": {
|
|
65
69
|
"./api": "./src/api.ts",
|
|
66
70
|
"./extension": "./src/extension.ts",
|
|
67
|
-
"./package.json": "./package.json"
|
|
71
|
+
"./package.json": "./package.json",
|
|
72
|
+
"./provider/lsp-semantic-provider": "./src/provider/lsp-semantic-provider.ts"
|
|
68
73
|
}
|
|
69
74
|
}
|
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
ExtensionContext,
|
|
9
9
|
SessionStartEvent,
|
|
10
10
|
} from "@earendil-works/pi-coding-agent";
|
|
11
|
+
import type { WorkspaceRuntime } from "@mrclrchtr/supi-code-runtime/api";
|
|
11
12
|
import { loadConfig, resolveLanguageAlias } from "../config/config.ts";
|
|
12
13
|
import { clearTsconfigCache } from "../config/tsconfig-scope.ts";
|
|
13
14
|
import { scanWorkspaceSentinels } from "../diagnostics/workspace-sentinels.ts";
|
|
@@ -18,6 +19,10 @@ import {
|
|
|
18
19
|
type LspRuntimeState,
|
|
19
20
|
refreshProjectServers,
|
|
20
21
|
} from "../session/lsp-state.ts";
|
|
22
|
+
import {
|
|
23
|
+
registerLspCapabilities,
|
|
24
|
+
unregisterLspCapabilities,
|
|
25
|
+
} from "../session/runtime-registration.ts";
|
|
21
26
|
import {
|
|
22
27
|
scanMissingServers,
|
|
23
28
|
scanProjectCapabilities,
|
|
@@ -38,11 +43,15 @@ import { updateLspUi } from "../ui/ui.ts";
|
|
|
38
43
|
* Register session lifecycle handlers (start, shutdown, and agent-end cleanup).
|
|
39
44
|
*
|
|
40
45
|
* - `session_start`: initialises the LspManager, starts detected servers, wires
|
|
41
|
-
* dynamic tool guidance, and syncs UI state.
|
|
46
|
+
* dynamic tool guidance, publishes runtime capabilities, and syncs UI state.
|
|
42
47
|
* - `session_shutdown`: tears down the manager and clears runtime state.
|
|
43
48
|
* - `agent_end`: refreshes project-server info and updates the LSP status UI.
|
|
44
49
|
*/
|
|
45
|
-
export function registerSessionLifecycleHandlers(
|
|
50
|
+
export function registerSessionLifecycleHandlers(
|
|
51
|
+
pi: ExtensionAPI,
|
|
52
|
+
state: LspRuntimeState,
|
|
53
|
+
runtime: WorkspaceRuntime,
|
|
54
|
+
): void {
|
|
46
55
|
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: session_start orchestrates setup, server detection, settings, and persistence.
|
|
47
56
|
pi.on("session_start", async (_event: SessionStartEvent, ctx: ExtensionContext) => {
|
|
48
57
|
if (state.manager) {
|
|
@@ -100,10 +109,9 @@ export function registerSessionLifecycleHandlers(pi: ExtensionAPI, state: LspRun
|
|
|
100
109
|
state.lastDiagnosticsFingerprint = null;
|
|
101
110
|
state.currentContextToken = null;
|
|
102
111
|
state.lspActive = true;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
});
|
|
112
|
+
const service = new SessionLspService(state.manager);
|
|
113
|
+
setSessionLspServiceState(cwd, { kind: "ready", service });
|
|
114
|
+
registerLspCapabilities(runtime, cwd, service);
|
|
107
115
|
registerLspTools(pi, buildLspToolPromptSurfaces(state.projectServers, cwd));
|
|
108
116
|
ensureLspToolsActive(pi);
|
|
109
117
|
persistLspActiveState(pi, state);
|
|
@@ -113,7 +121,9 @@ export function registerSessionLifecycleHandlers(pi: ExtensionAPI, state: LspRun
|
|
|
113
121
|
pi.on("session_shutdown", async () => {
|
|
114
122
|
clearTsconfigCache();
|
|
115
123
|
if (state.manager) {
|
|
116
|
-
|
|
124
|
+
const cwd = state.manager.getCwd();
|
|
125
|
+
unregisterLspCapabilities(runtime, cwd);
|
|
126
|
+
clearSessionLspService(cwd);
|
|
117
127
|
await state.manager.shutdownAll();
|
|
118
128
|
state.manager = null;
|
|
119
129
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// modules so each orchestration concern lives in its own file.
|
|
4
4
|
|
|
5
5
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
6
|
+
import { getDefaultWorkspaceRuntime } from "@mrclrchtr/supi-code-runtime/api";
|
|
6
7
|
import { registerDiagnosticInjectionHandlers } from "./handlers/diagnostic-injection.ts";
|
|
7
8
|
import { registerSessionLifecycleHandlers } from "./handlers/session-lifecycle.ts";
|
|
8
9
|
import { registerLspStatusCommand } from "./handlers/status-command.ts";
|
|
@@ -18,6 +19,7 @@ import { registerLspMessageRenderer } from "./ui/renderer.ts";
|
|
|
18
19
|
export default function lspExtension(pi: ExtensionAPI) {
|
|
19
20
|
registerLspSettings();
|
|
20
21
|
const state = createRuntimeState();
|
|
22
|
+
const runtime = getDefaultWorkspaceRuntime();
|
|
21
23
|
|
|
22
24
|
registerLspAwareToolOverrides(pi, {
|
|
23
25
|
getInlineSeverity: () => state.inlineSeverity,
|
|
@@ -26,7 +28,7 @@ export default function lspExtension(pi: ExtensionAPI) {
|
|
|
26
28
|
});
|
|
27
29
|
|
|
28
30
|
registerLspTools(pi, defaultLspToolPromptSurfaces);
|
|
29
|
-
registerSessionLifecycleHandlers(pi, state);
|
|
31
|
+
registerSessionLifecycleHandlers(pi, state, runtime);
|
|
30
32
|
registerDiagnosticInjectionHandlers(pi, state);
|
|
31
33
|
registerWorkspaceRecoveryHandler(pi, state);
|
|
32
34
|
registerTreePersistHandlers(pi, state);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Capability index — indexes and queries server capabilities.
|
|
2
|
+
|
|
3
|
+
import type { ServerCapabilities } from "../config/types.ts";
|
|
4
|
+
import { getSupportedLspServerActions } from "../tool/tool-specs.ts";
|
|
5
|
+
import type { LspManager } from "./manager.ts";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Indexes and queries what each server supports.
|
|
9
|
+
*/
|
|
10
|
+
export interface CapabilityIndex {
|
|
11
|
+
/** Get the list of supported LSP actions for a server's capabilities. */
|
|
12
|
+
getSupportedActions(capabilities: ServerCapabilities | null | undefined): string[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Create a CapabilityIndex for a workspace.
|
|
17
|
+
*/
|
|
18
|
+
export function createCapabilityIndex(_manager: LspManager): CapabilityIndex {
|
|
19
|
+
return {
|
|
20
|
+
getSupportedActions(capabilities) {
|
|
21
|
+
return getSupportedLspServerActions(capabilities);
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Client pool — manages LSP client lifecycle (start, stop, reconnect).
|
|
2
|
+
|
|
3
|
+
import type { LspManager } from "./manager.ts";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Manages the lifecycle of LSP client instances for a workspace.
|
|
7
|
+
* Currently delegates to LspManager; the extraction will grow
|
|
8
|
+
* as responsibilities are migrated from manager.ts.
|
|
9
|
+
*/
|
|
10
|
+
export interface ClientPool {
|
|
11
|
+
/**
|
|
12
|
+
* Ensure a file has an active client and return it.
|
|
13
|
+
* Returns null if no server can serve the file.
|
|
14
|
+
*/
|
|
15
|
+
ensureFileOpen(filePath: string): ReturnType<LspManager["ensureFileOpen"]>;
|
|
16
|
+
|
|
17
|
+
/** Shut down all active clients. */
|
|
18
|
+
shutdownAll(): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a ClientPool backed by LspManager.
|
|
23
|
+
*/
|
|
24
|
+
export function createClientPool(manager: LspManager): ClientPool {
|
|
25
|
+
return {
|
|
26
|
+
async ensureFileOpen(filePath: string) {
|
|
27
|
+
return manager.ensureFileOpen(filePath);
|
|
28
|
+
},
|
|
29
|
+
async shutdownAll() {
|
|
30
|
+
return manager.shutdownAll();
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Diagnostic store — stores, aggregates, and queries diagnostics.
|
|
2
|
+
|
|
3
|
+
import type { Diagnostic } from "../config/types.ts";
|
|
4
|
+
import type { LspManager } from "./manager.ts";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Stores and queries diagnostics per file.
|
|
8
|
+
* Currently delegates to LspManager methods.
|
|
9
|
+
*/
|
|
10
|
+
export interface DiagnosticStore {
|
|
11
|
+
/** Get workspace diagnostic summary grouped by file. */
|
|
12
|
+
getDiagnosticSummary(): Array<{ file: string; errors: number; warnings: number }>;
|
|
13
|
+
|
|
14
|
+
/** Get outstanding diagnostics at or above severity. */
|
|
15
|
+
getOutstandingDiagnostics(
|
|
16
|
+
maxSeverity?: number,
|
|
17
|
+
): Array<{ file: string; diagnostics: Diagnostic[] }>;
|
|
18
|
+
|
|
19
|
+
/** Get outstanding diagnostic summary grouped by file. */
|
|
20
|
+
getOutstandingDiagnosticSummary(maxSeverity?: number): Array<{
|
|
21
|
+
file: string;
|
|
22
|
+
total: number;
|
|
23
|
+
errors: number;
|
|
24
|
+
warnings: number;
|
|
25
|
+
information: number;
|
|
26
|
+
hints: number;
|
|
27
|
+
}>;
|
|
28
|
+
|
|
29
|
+
/** Sync a file and return its diagnostics. */
|
|
30
|
+
syncAndGetDiagnostics(filePath: string, maxSeverity?: number): Promise<Diagnostic[] | null>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a DiagnosticStore backed by LspManager.
|
|
35
|
+
*/
|
|
36
|
+
export function createDiagnosticStore(manager: LspManager): DiagnosticStore {
|
|
37
|
+
return {
|
|
38
|
+
getDiagnosticSummary() {
|
|
39
|
+
return manager.getDiagnosticSummary();
|
|
40
|
+
},
|
|
41
|
+
getOutstandingDiagnostics(maxSeverity = 1) {
|
|
42
|
+
return manager.getOutstandingDiagnostics(maxSeverity);
|
|
43
|
+
},
|
|
44
|
+
getOutstandingDiagnosticSummary(maxSeverity = 1) {
|
|
45
|
+
return manager.getOutstandingDiagnosticSummary(maxSeverity);
|
|
46
|
+
},
|
|
47
|
+
async syncAndGetDiagnostics(filePath: string, maxSeverity = 4) {
|
|
48
|
+
return manager.syncFileAndGetDiagnostics(filePath, maxSeverity);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Recovery coordinator — orchestrates stale diagnostic recovery.
|
|
2
|
+
|
|
3
|
+
import type { LspManager } from "./manager.ts";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Orchestrates stale diagnostic detection and recovery.
|
|
7
|
+
*/
|
|
8
|
+
export interface RecoveryCoordinator {
|
|
9
|
+
/**
|
|
10
|
+
* Trigger a workspace-wide diagnostics refresh.
|
|
11
|
+
* Returns info about refreshed/restarted clients and stale assessment.
|
|
12
|
+
*/
|
|
13
|
+
recover(options?: {
|
|
14
|
+
restartIfStillStale?: boolean;
|
|
15
|
+
maxWaitMs?: number;
|
|
16
|
+
quietMs?: number;
|
|
17
|
+
}): Promise<{
|
|
18
|
+
refreshedClients: number;
|
|
19
|
+
restartedClients: number;
|
|
20
|
+
staleAssessment: {
|
|
21
|
+
suspected: boolean;
|
|
22
|
+
matchedFiles: Array<{ file: string; diagnostics: unknown[] }>;
|
|
23
|
+
warning: string | null;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Create a RecoveryCoordinator backed by LspManager.
|
|
30
|
+
*/
|
|
31
|
+
export function createRecoveryCoordinator(manager: LspManager): RecoveryCoordinator {
|
|
32
|
+
return {
|
|
33
|
+
async recover(options) {
|
|
34
|
+
return manager.recoverWorkspaceDiagnostics(options);
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Workspace router — routes files to the correct LSP client based on project root.
|
|
2
|
+
|
|
3
|
+
import type { ProjectServerInfo } from "../config/server-config.ts";
|
|
4
|
+
import type { LspManager } from "./manager.ts";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Routes file paths to the correct LSP client and tracks
|
|
8
|
+
* which project roots are known.
|
|
9
|
+
*/
|
|
10
|
+
export interface WorkspaceRouter {
|
|
11
|
+
/** Check whether a file can be served by any active server. */
|
|
12
|
+
canServeFile(filePath: string): boolean;
|
|
13
|
+
|
|
14
|
+
/** Check whether a source file type is supported. */
|
|
15
|
+
isSupportedSourceFile(filePath: string): boolean;
|
|
16
|
+
|
|
17
|
+
/** Get known project server info. */
|
|
18
|
+
getProjectServers(): ProjectServerInfo[];
|
|
19
|
+
|
|
20
|
+
/** Register detected servers from the workspace scan. */
|
|
21
|
+
registerDetectedServers(servers: Array<{ language: string; root: string }>): void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Create a WorkspaceRouter backed by LspManager.
|
|
26
|
+
*/
|
|
27
|
+
export function createWorkspaceRouter(manager: LspManager): WorkspaceRouter {
|
|
28
|
+
return {
|
|
29
|
+
canServeFile(filePath: string) {
|
|
30
|
+
return manager.canServeFile(filePath);
|
|
31
|
+
},
|
|
32
|
+
isSupportedSourceFile(filePath: string) {
|
|
33
|
+
return manager.isSupportedSourceFile(filePath);
|
|
34
|
+
},
|
|
35
|
+
getProjectServers(): ProjectServerInfo[] {
|
|
36
|
+
return manager.getKnownProjectServers([]);
|
|
37
|
+
},
|
|
38
|
+
registerDetectedServers(servers: Array<{ language: string; root: string }>) {
|
|
39
|
+
manager.registerDetectedServers(
|
|
40
|
+
servers as unknown as Parameters<typeof manager.registerDetectedServers>[0],
|
|
41
|
+
);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// LSP semantic provider adapter — wraps SessionLspService into the shared
|
|
2
|
+
// SemanticProvider contract from supi-code-runtime.
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
CodeLocation,
|
|
6
|
+
CodePosition,
|
|
7
|
+
CodeSymbol,
|
|
8
|
+
SemanticProvider,
|
|
9
|
+
} from "@mrclrchtr/supi-code-runtime/api";
|
|
10
|
+
import type { DocumentSymbol, Location, LocationLink, SymbolInformation } from "../config/types.ts";
|
|
11
|
+
import type { SessionLspService } from "../session/service-registry.ts";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create a SemanticProvider backed by a SessionLspService.
|
|
15
|
+
* Maps LSP types into the shared code-runtime types.
|
|
16
|
+
*/
|
|
17
|
+
export function createLspSemanticProvider(lsp: SessionLspService): SemanticProvider {
|
|
18
|
+
return {
|
|
19
|
+
async references(filePath: string, position: CodePosition): Promise<CodeLocation[] | null> {
|
|
20
|
+
const refResult = await lsp.references(filePath, position);
|
|
21
|
+
if (!refResult) return null;
|
|
22
|
+
const mapped: CodeLocation[] = [];
|
|
23
|
+
for (const item of refResult) {
|
|
24
|
+
const loc = toCodeLocation(item);
|
|
25
|
+
if (loc) mapped.push(loc);
|
|
26
|
+
}
|
|
27
|
+
return mapped;
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
async implementation(filePath: string, position: CodePosition): Promise<CodeLocation[] | null> {
|
|
31
|
+
const implResult = await lsp.implementation(filePath, position);
|
|
32
|
+
if (!implResult) return null;
|
|
33
|
+
const normalized = Array.isArray(implResult) ? implResult : [implResult];
|
|
34
|
+
const mapped: CodeLocation[] = [];
|
|
35
|
+
for (const item of normalized) {
|
|
36
|
+
const loc = toCodeLocation(item);
|
|
37
|
+
if (loc) mapped.push(loc);
|
|
38
|
+
}
|
|
39
|
+
return mapped;
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
async documentSymbols(filePath: string): Promise<CodeSymbol[] | null> {
|
|
43
|
+
const symbols = await lsp.documentSymbols(filePath);
|
|
44
|
+
if (!symbols) return null;
|
|
45
|
+
return flattenDocumentSymbols(symbols, filePath);
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
async workspaceSymbols(query: string): Promise<CodeSymbol[] | null> {
|
|
49
|
+
const results = await lsp.workspaceSymbol(query);
|
|
50
|
+
if (!results) return null;
|
|
51
|
+
return results.map((sym) => toCodeSymbol(sym as SymbolInformation));
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ── Type conversion helpers ───────────────────────────────────────────
|
|
57
|
+
|
|
58
|
+
function toCodeLocation(item: Location | LocationLink): CodeLocation | null {
|
|
59
|
+
const loc = item as Record<string, unknown>;
|
|
60
|
+
const uri = loc.uri ?? loc.targetUri;
|
|
61
|
+
if (typeof uri !== "string") return null;
|
|
62
|
+
|
|
63
|
+
// Prefer targetSelectionRange > targetRange > range
|
|
64
|
+
const range = loc.targetSelectionRange ?? loc.targetRange ?? loc.range;
|
|
65
|
+
if (!range || typeof range !== "object") return null;
|
|
66
|
+
|
|
67
|
+
const r = range as { start: Record<string, unknown>; end: Record<string, unknown> };
|
|
68
|
+
const start = r.start;
|
|
69
|
+
const end = r.end;
|
|
70
|
+
if (!start || !end) return null;
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
uri,
|
|
74
|
+
range: {
|
|
75
|
+
start: { line: (start.line as number) ?? 0, character: (start.character as number) ?? 0 },
|
|
76
|
+
end: { line: (end.line as number) ?? 0, character: (end.character as number) ?? 0 },
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const SYMBOL_KIND_NAMES: Record<number, string> = {
|
|
82
|
+
1: "File",
|
|
83
|
+
2: "Module",
|
|
84
|
+
3: "Namespace",
|
|
85
|
+
4: "Package",
|
|
86
|
+
5: "Class",
|
|
87
|
+
6: "Method",
|
|
88
|
+
7: "Property",
|
|
89
|
+
8: "Field",
|
|
90
|
+
9: "Constructor",
|
|
91
|
+
10: "Enum",
|
|
92
|
+
11: "Interface",
|
|
93
|
+
12: "Function",
|
|
94
|
+
13: "Variable",
|
|
95
|
+
14: "Constant",
|
|
96
|
+
15: "String",
|
|
97
|
+
16: "Number",
|
|
98
|
+
17: "Boolean",
|
|
99
|
+
18: "Array",
|
|
100
|
+
19: "Object",
|
|
101
|
+
20: "Key",
|
|
102
|
+
21: "Null",
|
|
103
|
+
22: "EnumMember",
|
|
104
|
+
23: "Struct",
|
|
105
|
+
24: "Event",
|
|
106
|
+
25: "Operator",
|
|
107
|
+
26: "TypeParameter",
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
function symbolKindName(kind: number): string {
|
|
111
|
+
return SYMBOL_KIND_NAMES[kind] ?? "Unknown";
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function flattenDocumentSymbols(
|
|
115
|
+
symbols: DocumentSymbol[] | SymbolInformation[],
|
|
116
|
+
filePath: string,
|
|
117
|
+
container: string | null = null,
|
|
118
|
+
): CodeSymbol[] {
|
|
119
|
+
const result: CodeSymbol[] = [];
|
|
120
|
+
|
|
121
|
+
for (const sym of symbols) {
|
|
122
|
+
// DocumentSymbol has selectionRange; SymbolInformation has location
|
|
123
|
+
const ds = sym as DocumentSymbol;
|
|
124
|
+
const si = sym as SymbolInformation;
|
|
125
|
+
const start = ds.selectionRange?.start ?? si.location?.range?.start;
|
|
126
|
+
if (!start) continue;
|
|
127
|
+
|
|
128
|
+
result.push({
|
|
129
|
+
name: sym.name,
|
|
130
|
+
kind: symbolKindName(sym.kind),
|
|
131
|
+
file: filePath,
|
|
132
|
+
line: start.line + 1,
|
|
133
|
+
character: start.character + 1,
|
|
134
|
+
container,
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
if (Array.isArray(ds.children) && ds.children.length > 0) {
|
|
138
|
+
result.push(...flattenDocumentSymbols(ds.children, filePath, sym.name));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return result;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function toCodeSymbol(sym: SymbolInformation): CodeSymbol {
|
|
146
|
+
const uri = sym.location?.uri ?? "";
|
|
147
|
+
const start = sym.location?.range?.start;
|
|
148
|
+
return {
|
|
149
|
+
name: sym.name,
|
|
150
|
+
kind: symbolKindName(sym.kind),
|
|
151
|
+
file: uri.startsWith("file://") ? decodeURIComponent(uri.slice(7)) : uri,
|
|
152
|
+
line: start ? start.line + 1 : 0,
|
|
153
|
+
character: start ? start.character + 1 : 0,
|
|
154
|
+
container: sym.containerName ?? null,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LSP-to-runtime capability registration.
|
|
3
|
+
*
|
|
4
|
+
* Adapts a SessionLspService into the runtime's SemanticProvider interface
|
|
5
|
+
* and registers/unregisters it with the shared WorkspaceRuntime at session
|
|
6
|
+
* lifecycle boundaries.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { WorkspaceRuntime } from "@mrclrchtr/supi-code-runtime/api";
|
|
10
|
+
import { createLspSemanticProvider } from "../provider/lsp-semantic-provider.ts";
|
|
11
|
+
import type { SessionLspService } from "./service-registry.ts";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Register LSP capabilities for a workspace cwd.
|
|
15
|
+
*
|
|
16
|
+
* Wraps SessionLspService into a SemanticProvider via the existing
|
|
17
|
+
* semantic adapter and publishes it into the shared workspace runtime
|
|
18
|
+
* so that code-intelligence and other consumers can discover semantic
|
|
19
|
+
* analysis availability.
|
|
20
|
+
*/
|
|
21
|
+
export function registerLspCapabilities(
|
|
22
|
+
runtime: WorkspaceRuntime,
|
|
23
|
+
cwd: string,
|
|
24
|
+
service: SessionLspService,
|
|
25
|
+
): void {
|
|
26
|
+
const provider = createLspSemanticProvider(service);
|
|
27
|
+
runtime.registerSemantic(cwd, provider);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Unregister LSP capabilities for a workspace cwd.
|
|
32
|
+
*
|
|
33
|
+
* Clears only the semantic capability slot — structural (tree-sitter)
|
|
34
|
+
* state is left intact so that a later tree-sitter session_start does
|
|
35
|
+
* not needlessly wipe LSP state on its own restart path.
|
|
36
|
+
*/
|
|
37
|
+
export function unregisterLspCapabilities(runtime: WorkspaceRuntime, cwd: string): void {
|
|
38
|
+
runtime.clearSemantic(cwd);
|
|
39
|
+
}
|