gsd-pi 2.8.3 → 2.10.0
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 +2 -1
- package/dist/cli.js +5 -0
- package/dist/loader.js +1 -1
- package/dist/update-check.d.ts +24 -0
- package/dist/update-check.js +93 -0
- package/node_modules/@gsd/native/package.json +59 -0
- package/node_modules/@gsd/native/src/__tests__/clipboard.test.mjs +79 -0
- package/node_modules/@gsd/native/src/__tests__/fd.test.mjs +164 -0
- package/node_modules/@gsd/native/src/__tests__/glob.test.mjs +237 -0
- package/node_modules/@gsd/native/src/__tests__/grep.test.mjs +162 -0
- package/node_modules/@gsd/native/src/__tests__/highlight.test.mjs +156 -0
- package/node_modules/@gsd/native/src/__tests__/html.test.mjs +98 -0
- package/node_modules/@gsd/native/src/__tests__/image.test.mjs +137 -0
- package/node_modules/@gsd/native/src/__tests__/ps.test.mjs +109 -0
- package/node_modules/@gsd/native/src/__tests__/text.test.mjs +262 -0
- package/node_modules/@gsd/native/src/ast/index.ts +12 -0
- package/node_modules/@gsd/native/src/ast/types.ts +75 -0
- package/node_modules/@gsd/native/src/clipboard/index.ts +40 -0
- package/node_modules/@gsd/native/src/clipboard/types.ts +7 -0
- package/node_modules/@gsd/native/src/fd/index.ts +35 -0
- package/node_modules/@gsd/native/src/fd/types.ts +31 -0
- package/node_modules/@gsd/native/src/glob/index.ts +44 -0
- package/node_modules/@gsd/native/src/glob/types.ts +53 -0
- package/node_modules/@gsd/native/src/grep/index.ts +48 -0
- package/node_modules/@gsd/native/src/grep/types.ts +105 -0
- package/node_modules/@gsd/native/src/highlight/index.ts +44 -0
- package/node_modules/@gsd/native/src/highlight/types.ts +25 -0
- package/node_modules/@gsd/native/src/html/index.ts +24 -0
- package/node_modules/@gsd/native/src/html/types.ts +7 -0
- package/node_modules/@gsd/native/src/image/index.ts +28 -0
- package/node_modules/@gsd/native/src/image/types.ts +41 -0
- package/node_modules/@gsd/native/src/index.ts +88 -0
- package/node_modules/@gsd/native/src/native.ts +94 -0
- package/node_modules/@gsd/native/src/ps/index.ts +52 -0
- package/node_modules/@gsd/native/src/ps/types.ts +5 -0
- package/node_modules/@gsd/native/src/text/index.ts +125 -0
- package/node_modules/@gsd/native/src/text/types.ts +29 -0
- package/node_modules/@gsd/native/src/ttsr/index.ts +39 -0
- package/node_modules/@gsd/native/src/ttsr/types.ts +10 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/client.d.ts +46 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/client.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/client.js +758 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/client.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/config.d.ts +23 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/config.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/config.js +267 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/config.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/defaults.json +456 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/edits.d.ts +17 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/edits.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/edits.js +101 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/edits.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/helpers.d.ts +15 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/helpers.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/helpers.js +46 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/helpers.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/index.d.ts +35 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/index.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/index.js +709 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/index.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lsp-integration.test.d.ts +2 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lsp-integration.test.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lsp-integration.test.js +308 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lsp-integration.test.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lsp.md +33 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lspmux.d.ts +34 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lspmux.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lspmux.js +136 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lspmux.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/types.d.ts +262 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/types.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/types.js +64 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/types.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/utils.d.ts +50 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/utils.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/utils.js +574 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/utils.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/slash-commands.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/core/slash-commands.js +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/slash-commands.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.d.ts +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.js +12 -77
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.d.ts +60 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.js +247 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.d.ts +43 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.js +146 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.d.ts +114 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.js +522 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.d.ts +2 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.d.ts.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.js +376 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.js.map +1 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.d.ts +38 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.js +27 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +10 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +2 -2
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +6 -3
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +2 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.js +54 -10
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/theme/theme.js +25 -40
- package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-image.js +17 -21
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.d.ts +7 -6
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.js +7 -13
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard.js +3 -56
- package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/image-convert.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/image-convert.js +7 -17
- package/node_modules/@gsd/pi-coding-agent/dist/utils/image-convert.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.d.ts +1 -2
- package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.js +21 -29
- package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.js.map +1 -1
- package/node_modules/@gsd/pi-coding-agent/package.json +2 -5
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/client.ts +880 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/config.ts +325 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/defaults.json +456 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/edits.ts +109 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/helpers.ts +54 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/index.ts +943 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/lsp-integration.test.ts +407 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/lsp.md +33 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/lspmux.ts +199 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/types.ts +421 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/lsp/utils.ts +682 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/slash-commands.ts +1 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/tools/find.ts +13 -88
- package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline-edit.ts +318 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline-read.ts +196 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline.test.ts +456 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline.ts +594 -0
- package/node_modules/@gsd/pi-coding-agent/src/core/tools/index.ts +63 -0
- package/node_modules/@gsd/pi-coding-agent/src/modes/interactive/components/settings-selector.ts +2 -2
- package/node_modules/@gsd/pi-coding-agent/src/modes/interactive/components/tool-execution.ts +5 -3
- package/node_modules/@gsd/pi-coding-agent/src/modes/interactive/interactive-mode.ts +66 -12
- package/node_modules/@gsd/pi-coding-agent/src/modes/interactive/theme/theme.ts +26 -42
- package/node_modules/@gsd/pi-coding-agent/src/utils/clipboard-image.ts +17 -24
- package/node_modules/@gsd/pi-coding-agent/src/utils/clipboard-native.ts +11 -21
- package/node_modules/@gsd/pi-coding-agent/src/utils/clipboard.ts +3 -51
- package/node_modules/@gsd/pi-coding-agent/src/utils/image-convert.ts +7 -17
- package/node_modules/@gsd/pi-coding-agent/src/utils/image-resize.ts +28 -34
- package/node_modules/@gsd/pi-tui/dist/autocomplete.d.ts +1 -3
- package/node_modules/@gsd/pi-tui/dist/autocomplete.d.ts.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/autocomplete.js +16 -95
- package/node_modules/@gsd/pi-tui/dist/autocomplete.js.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/components/image.d.ts +7 -0
- package/node_modules/@gsd/pi-tui/dist/components/image.d.ts.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/components/image.js +20 -1
- package/node_modules/@gsd/pi-tui/dist/components/image.js.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/index.d.ts +1 -1
- package/node_modules/@gsd/pi-tui/dist/index.d.ts.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/index.js +1 -1
- package/node_modules/@gsd/pi-tui/dist/index.js.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/terminal-image.d.ts +5 -5
- package/node_modules/@gsd/pi-tui/dist/terminal-image.d.ts.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/terminal-image.js +9 -120
- package/node_modules/@gsd/pi-tui/dist/terminal-image.js.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/utils.d.ts +23 -26
- package/node_modules/@gsd/pi-tui/dist/utils.d.ts.map +1 -1
- package/node_modules/@gsd/pi-tui/dist/utils.js +47 -716
- package/node_modules/@gsd/pi-tui/dist/utils.js.map +1 -1
- package/node_modules/@gsd/pi-tui/package.json +1 -0
- package/node_modules/@gsd/pi-tui/src/autocomplete.ts +17 -112
- package/node_modules/@gsd/pi-tui/src/components/image.ts +23 -1
- package/node_modules/@gsd/pi-tui/src/index.ts +0 -4
- package/node_modules/@gsd/pi-tui/src/terminal-image.ts +9 -135
- package/node_modules/@gsd/pi-tui/src/utils.ts +51 -775
- package/package.json +4 -1
- package/packages/native/package.json +59 -0
- package/packages/native/src/__tests__/clipboard.test.mjs +79 -0
- package/packages/native/src/__tests__/fd.test.mjs +164 -0
- package/packages/native/src/__tests__/glob.test.mjs +237 -0
- package/packages/native/src/__tests__/grep.test.mjs +162 -0
- package/packages/native/src/__tests__/highlight.test.mjs +156 -0
- package/packages/native/src/__tests__/html.test.mjs +98 -0
- package/packages/native/src/__tests__/image.test.mjs +137 -0
- package/packages/native/src/__tests__/ps.test.mjs +109 -0
- package/packages/native/src/__tests__/text.test.mjs +262 -0
- package/packages/native/src/ast/index.ts +12 -0
- package/packages/native/src/ast/types.ts +75 -0
- package/packages/native/src/clipboard/index.ts +40 -0
- package/packages/native/src/clipboard/types.ts +7 -0
- package/packages/native/src/fd/index.ts +35 -0
- package/packages/native/src/fd/types.ts +31 -0
- package/packages/native/src/glob/index.ts +44 -0
- package/packages/native/src/glob/types.ts +53 -0
- package/packages/native/src/grep/index.ts +48 -0
- package/packages/native/src/grep/types.ts +105 -0
- package/packages/native/src/highlight/index.ts +44 -0
- package/packages/native/src/highlight/types.ts +25 -0
- package/packages/native/src/html/index.ts +24 -0
- package/packages/native/src/html/types.ts +7 -0
- package/packages/native/src/image/index.ts +28 -0
- package/packages/native/src/image/types.ts +41 -0
- package/packages/native/src/index.ts +88 -0
- package/packages/native/src/native.ts +94 -0
- package/packages/native/src/ps/index.ts +52 -0
- package/packages/native/src/ps/types.ts +5 -0
- package/packages/native/src/text/index.ts +125 -0
- package/packages/native/src/text/types.ts +29 -0
- package/packages/native/src/ttsr/index.ts +39 -0
- package/packages/native/src/ttsr/types.ts +10 -0
- package/packages/native/tsconfig.json +8 -0
- package/packages/pi-coding-agent/dist/core/lsp/client.d.ts +46 -0
- package/packages/pi-coding-agent/dist/core/lsp/client.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/client.js +758 -0
- package/packages/pi-coding-agent/dist/core/lsp/client.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/config.d.ts +23 -0
- package/packages/pi-coding-agent/dist/core/lsp/config.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/config.js +267 -0
- package/packages/pi-coding-agent/dist/core/lsp/config.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/defaults.json +456 -0
- package/packages/pi-coding-agent/dist/core/lsp/edits.d.ts +17 -0
- package/packages/pi-coding-agent/dist/core/lsp/edits.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/edits.js +101 -0
- package/packages/pi-coding-agent/dist/core/lsp/edits.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/helpers.d.ts +15 -0
- package/packages/pi-coding-agent/dist/core/lsp/helpers.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/helpers.js +46 -0
- package/packages/pi-coding-agent/dist/core/lsp/helpers.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/index.d.ts +35 -0
- package/packages/pi-coding-agent/dist/core/lsp/index.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/index.js +709 -0
- package/packages/pi-coding-agent/dist/core/lsp/index.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/lsp-integration.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/lsp/lsp-integration.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/lsp-integration.test.js +308 -0
- package/packages/pi-coding-agent/dist/core/lsp/lsp-integration.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/lsp.md +33 -0
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.d.ts +34 -0
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.js +136 -0
- package/packages/pi-coding-agent/dist/core/lsp/lspmux.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/types.d.ts +262 -0
- package/packages/pi-coding-agent/dist/core/lsp/types.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/types.js +64 -0
- package/packages/pi-coding-agent/dist/core/lsp/types.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/utils.d.ts +50 -0
- package/packages/pi-coding-agent/dist/core/lsp/utils.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/lsp/utils.js +574 -0
- package/packages/pi-coding-agent/dist/core/lsp/utils.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/slash-commands.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/slash-commands.js +1 -0
- package/packages/pi-coding-agent/dist/core/slash-commands.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/tools/find.d.ts +1 -1
- package/packages/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/tools/find.js +12 -77
- package/packages/pi-coding-agent/dist/core/tools/find.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/tools/hashline-edit.d.ts +60 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline-edit.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline-edit.js +247 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline-edit.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline-read.d.ts +43 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline-read.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline-read.js +146 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline-read.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.d.ts +114 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.js +522 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.test.js +376 -0
- package/packages/pi-coding-agent/dist/core/tools/hashline.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/tools/index.d.ts +38 -0
- package/packages/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/tools/index.js +27 -0
- package/packages/pi-coding-agent/dist/core/tools/index.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +10 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +2 -2
- package/packages/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +6 -3
- package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +2 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js +54 -10
- package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js +25 -40
- package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-image.js +17 -21
- package/packages/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-native.d.ts +7 -6
- package/packages/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard-native.js +7 -13
- package/packages/pi-coding-agent/dist/utils/clipboard-native.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/clipboard.js +3 -56
- package/packages/pi-coding-agent/dist/utils/clipboard.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/image-convert.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/image-convert.js +7 -17
- package/packages/pi-coding-agent/dist/utils/image-convert.js.map +1 -1
- package/packages/pi-coding-agent/dist/utils/image-resize.d.ts +1 -2
- package/packages/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/utils/image-resize.js +21 -29
- package/packages/pi-coding-agent/dist/utils/image-resize.js.map +1 -1
- package/packages/pi-coding-agent/package.json +2 -5
- package/packages/pi-coding-agent/src/core/lsp/client.ts +880 -0
- package/packages/pi-coding-agent/src/core/lsp/config.ts +325 -0
- package/packages/pi-coding-agent/src/core/lsp/defaults.json +456 -0
- package/packages/pi-coding-agent/src/core/lsp/edits.ts +109 -0
- package/packages/pi-coding-agent/src/core/lsp/helpers.ts +54 -0
- package/packages/pi-coding-agent/src/core/lsp/index.ts +943 -0
- package/packages/pi-coding-agent/src/core/lsp/lsp-integration.test.ts +407 -0
- package/packages/pi-coding-agent/src/core/lsp/lsp.md +33 -0
- package/packages/pi-coding-agent/src/core/lsp/lspmux.ts +199 -0
- package/packages/pi-coding-agent/src/core/lsp/types.ts +421 -0
- package/packages/pi-coding-agent/src/core/lsp/utils.ts +682 -0
- package/packages/pi-coding-agent/src/core/slash-commands.ts +1 -0
- package/packages/pi-coding-agent/src/core/tools/find.ts +13 -88
- package/packages/pi-coding-agent/src/core/tools/hashline-edit.ts +318 -0
- package/packages/pi-coding-agent/src/core/tools/hashline-read.ts +196 -0
- package/packages/pi-coding-agent/src/core/tools/hashline.test.ts +456 -0
- package/packages/pi-coding-agent/src/core/tools/hashline.ts +594 -0
- package/packages/pi-coding-agent/src/core/tools/index.ts +63 -0
- package/packages/pi-coding-agent/src/modes/interactive/components/settings-selector.ts +2 -2
- package/packages/pi-coding-agent/src/modes/interactive/components/tool-execution.ts +5 -3
- package/packages/pi-coding-agent/src/modes/interactive/interactive-mode.ts +66 -12
- package/packages/pi-coding-agent/src/modes/interactive/theme/theme.ts +26 -42
- package/packages/pi-coding-agent/src/utils/clipboard-image.ts +17 -24
- package/packages/pi-coding-agent/src/utils/clipboard-native.ts +11 -21
- package/packages/pi-coding-agent/src/utils/clipboard.ts +3 -51
- package/packages/pi-coding-agent/src/utils/image-convert.ts +7 -17
- package/packages/pi-coding-agent/src/utils/image-resize.ts +28 -34
- package/packages/pi-tui/dist/autocomplete.d.ts +1 -3
- package/packages/pi-tui/dist/autocomplete.d.ts.map +1 -1
- package/packages/pi-tui/dist/autocomplete.js +16 -95
- package/packages/pi-tui/dist/autocomplete.js.map +1 -1
- package/packages/pi-tui/dist/components/image.d.ts +7 -0
- package/packages/pi-tui/dist/components/image.d.ts.map +1 -1
- package/packages/pi-tui/dist/components/image.js +20 -1
- package/packages/pi-tui/dist/components/image.js.map +1 -1
- package/packages/pi-tui/dist/index.d.ts +1 -1
- package/packages/pi-tui/dist/index.d.ts.map +1 -1
- package/packages/pi-tui/dist/index.js +1 -1
- package/packages/pi-tui/dist/index.js.map +1 -1
- package/packages/pi-tui/dist/terminal-image.d.ts +5 -5
- package/packages/pi-tui/dist/terminal-image.d.ts.map +1 -1
- package/packages/pi-tui/dist/terminal-image.js +9 -120
- package/packages/pi-tui/dist/terminal-image.js.map +1 -1
- package/packages/pi-tui/dist/utils.d.ts +23 -26
- package/packages/pi-tui/dist/utils.d.ts.map +1 -1
- package/packages/pi-tui/dist/utils.js +47 -716
- package/packages/pi-tui/dist/utils.js.map +1 -1
- package/packages/pi-tui/package.json +1 -0
- package/packages/pi-tui/src/autocomplete.ts +17 -112
- package/packages/pi-tui/src/components/image.ts +23 -1
- package/packages/pi-tui/src/index.ts +0 -4
- package/packages/pi-tui/src/terminal-image.ts +9 -135
- package/packages/pi-tui/src/utils.ts +51 -775
- package/pkg/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/pkg/dist/modes/interactive/theme/theme.js +25 -40
- package/pkg/dist/modes/interactive/theme/theme.js.map +1 -1
- package/src/resources/extensions/ask-user-questions.ts +2 -2
- package/src/resources/extensions/bg-shell/index.ts +377 -51
- package/src/resources/extensions/browser-tools/core.d.ts +205 -0
- package/src/resources/extensions/browser-tools/index.ts +2 -2
- package/src/resources/extensions/browser-tools/refs.ts +1 -1
- package/src/resources/extensions/browser-tools/tools/session.ts +1 -1
- package/src/resources/extensions/context7/index.ts +2 -2
- package/src/resources/extensions/get-secrets-from-user.ts +3 -2
- package/src/resources/extensions/google-search/index.ts +1 -1
- package/src/resources/extensions/gsd/auto.ts +41 -4
- package/src/resources/extensions/gsd/commands.ts +218 -3
- package/src/resources/extensions/gsd/doctor.ts +1 -1
- package/src/resources/extensions/gsd/git-service.ts +129 -5
- package/src/resources/extensions/gsd/guided-flow.ts +19 -9
- package/src/resources/extensions/gsd/index.ts +17 -7
- package/src/resources/extensions/gsd/preferences.ts +1 -1
- package/src/resources/extensions/gsd/tests/git-service.test.ts +226 -0
- package/src/resources/extensions/gsd/tests/migrate-command.test.ts +2 -2
- package/src/resources/extensions/gsd/tests/migrate-transformer.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/migrate-writer-integration.test.ts +10 -10
- package/src/resources/extensions/gsd/tests/next-milestone-id.test.ts +87 -0
- package/src/resources/extensions/gsd/tests/worktree.test.ts +352 -0
- package/src/resources/extensions/gsd/types.ts +1 -0
- package/src/resources/extensions/gsd/worktree.ts +20 -1
- package/src/resources/extensions/mac-tools/index.ts +1 -1
- package/src/resources/extensions/search-the-web/format.ts +1 -1
- package/src/resources/extensions/search-the-web/index.ts +5 -5
- package/src/resources/extensions/search-the-web/tool-fetch-page.ts +7 -7
- package/src/resources/extensions/search-the-web/tool-llm-context.ts +11 -11
- package/src/resources/extensions/search-the-web/tool-search.ts +10 -10
- package/src/resources/extensions/shared/interview-ui.ts +2 -2
- package/src/resources/extensions/universal-config/discovery.ts +78 -0
- package/src/resources/extensions/universal-config/format.ts +160 -0
- package/src/resources/extensions/universal-config/index.ts +118 -0
- package/src/resources/extensions/universal-config/package.json +11 -0
- package/src/resources/extensions/universal-config/scanners.ts +579 -0
- package/src/resources/extensions/universal-config/tests/discovery.test.ts +111 -0
- package/src/resources/extensions/universal-config/tests/format.test.ts +111 -0
- package/src/resources/extensions/universal-config/tests/scanners.test.ts +438 -0
- package/src/resources/extensions/universal-config/tools.ts +60 -0
- package/src/resources/extensions/universal-config/types.ts +116 -0
- package/node_modules/@mariozechner/clipboard/.yarnrc.yml +0 -1
- package/node_modules/@mariozechner/clipboard/Cargo.toml +0 -26
- package/node_modules/@mariozechner/clipboard/README.md +0 -58
- package/node_modules/@mariozechner/clipboard/build.rs +0 -5
- package/node_modules/@mariozechner/clipboard/exp.ts +0 -12
- package/node_modules/@mariozechner/clipboard/index.d.ts +0 -23
- package/node_modules/@mariozechner/clipboard/index.js +0 -317
- package/node_modules/@mariozechner/clipboard/package.json +0 -56
- package/node_modules/@mariozechner/clipboard/src/lib.rs +0 -191
- package/node_modules/@mariozechner/clipboard-darwin-arm64/README.md +0 -3
- package/node_modules/@mariozechner/clipboard-darwin-arm64/clipboard.darwin-arm64.node +0 -0
- package/node_modules/@mariozechner/clipboard-darwin-arm64/package.json +0 -22
- package/node_modules/@mariozechner/clipboard-darwin-universal/README.md +0 -3
- package/node_modules/@mariozechner/clipboard-darwin-universal/clipboard.darwin-universal.node +0 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/package.json +0 -19
- package/node_modules/ansi-styles/index.d.ts +0 -345
- package/node_modules/ansi-styles/index.js +0 -163
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/package.json +0 -56
- package/node_modules/ansi-styles/readme.md +0 -152
- package/node_modules/any-promise/.jshintrc +0 -4
- package/node_modules/any-promise/.npmignore +0 -7
- package/node_modules/any-promise/LICENSE +0 -19
- package/node_modules/any-promise/README.md +0 -161
- package/node_modules/any-promise/implementation.d.ts +0 -3
- package/node_modules/any-promise/implementation.js +0 -1
- package/node_modules/any-promise/index.d.ts +0 -73
- package/node_modules/any-promise/index.js +0 -1
- package/node_modules/any-promise/loader.js +0 -78
- package/node_modules/any-promise/optional.js +0 -6
- package/node_modules/any-promise/package.json +0 -45
- package/node_modules/any-promise/register/bluebird.d.ts +0 -1
- package/node_modules/any-promise/register/bluebird.js +0 -2
- package/node_modules/any-promise/register/es6-promise.d.ts +0 -1
- package/node_modules/any-promise/register/es6-promise.js +0 -2
- package/node_modules/any-promise/register/lie.d.ts +0 -1
- package/node_modules/any-promise/register/lie.js +0 -2
- package/node_modules/any-promise/register/native-promise-only.d.ts +0 -1
- package/node_modules/any-promise/register/native-promise-only.js +0 -2
- package/node_modules/any-promise/register/pinkie.d.ts +0 -1
- package/node_modules/any-promise/register/pinkie.js +0 -2
- package/node_modules/any-promise/register/promise.d.ts +0 -1
- package/node_modules/any-promise/register/promise.js +0 -2
- package/node_modules/any-promise/register/q.d.ts +0 -1
- package/node_modules/any-promise/register/q.js +0 -2
- package/node_modules/any-promise/register/rsvp.d.ts +0 -1
- package/node_modules/any-promise/register/rsvp.js +0 -2
- package/node_modules/any-promise/register/vow.d.ts +0 -1
- package/node_modules/any-promise/register/vow.js +0 -2
- package/node_modules/any-promise/register/when.d.ts +0 -1
- package/node_modules/any-promise/register/when.js +0 -2
- package/node_modules/any-promise/register-shim.js +0 -18
- package/node_modules/any-promise/register.d.ts +0 -17
- package/node_modules/any-promise/register.js +0 -94
- package/node_modules/cli-highlight/LICENSE.txt +0 -15
- package/node_modules/cli-highlight/README.md +0 -88
- package/node_modules/cli-highlight/bin/highlight +0 -2
- package/node_modules/cli-highlight/dist/cli.d.ts +0 -1
- package/node_modules/cli-highlight/dist/cli.js +0 -102
- package/node_modules/cli-highlight/dist/cli.js.map +0 -1
- package/node_modules/cli-highlight/dist/index.d.ts +0 -53
- package/node_modules/cli-highlight/dist/index.js +0 -112
- package/node_modules/cli-highlight/dist/index.js.map +0 -1
- package/node_modules/cli-highlight/dist/test/test.d.ts +0 -1
- package/node_modules/cli-highlight/dist/test/test.js +0 -62
- package/node_modules/cli-highlight/dist/test/test.js.map +0 -1
- package/node_modules/cli-highlight/dist/theme.d.ts +0 -270
- package/node_modules/cli-highlight/dist/theme.js +0 -265
- package/node_modules/cli-highlight/dist/theme.js.map +0 -1
- package/node_modules/cli-highlight/node_modules/chalk/index.d.ts +0 -415
- package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
- package/node_modules/cli-highlight/node_modules/chalk/package.json +0 -68
- package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
- package/node_modules/cli-highlight/node_modules/chalk/source/index.js +0 -229
- package/node_modules/cli-highlight/node_modules/chalk/source/templates.js +0 -134
- package/node_modules/cli-highlight/node_modules/chalk/source/util.js +0 -39
- package/node_modules/cli-highlight/package.json +0 -129
- package/node_modules/cliui/CHANGELOG.md +0 -121
- package/node_modules/cliui/LICENSE.txt +0 -14
- package/node_modules/cliui/README.md +0 -141
- package/node_modules/cliui/build/index.cjs +0 -302
- package/node_modules/cliui/build/lib/index.js +0 -287
- package/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/node_modules/cliui/index.mjs +0 -13
- package/node_modules/cliui/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/cliui/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
- package/node_modules/cliui/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/cliui/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/cliui/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
- package/node_modules/cliui/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/cliui/package.json +0 -83
- package/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color-convert/README.md +0 -68
- package/node_modules/color-convert/conversions.js +0 -839
- package/node_modules/color-convert/index.js +0 -81
- package/node_modules/color-convert/package.json +0 -48
- package/node_modules/color-convert/route.js +0 -97
- package/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color-name/README.md +0 -11
- package/node_modules/color-name/index.js +0 -152
- package/node_modules/color-name/package.json +0 -28
- package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/emoji-regex/README.md +0 -73
- package/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/emoji-regex/index.d.ts +0 -23
- package/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/emoji-regex/package.json +0 -50
- package/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/escalade/dist/index.js +0 -22
- package/node_modules/escalade/dist/index.mjs +0 -22
- package/node_modules/escalade/index.d.mts +0 -11
- package/node_modules/escalade/index.d.ts +0 -15
- package/node_modules/escalade/license +0 -9
- package/node_modules/escalade/package.json +0 -74
- package/node_modules/escalade/readme.md +0 -211
- package/node_modules/escalade/sync/index.d.mts +0 -9
- package/node_modules/escalade/sync/index.d.ts +0 -13
- package/node_modules/escalade/sync/index.js +0 -18
- package/node_modules/escalade/sync/index.mjs +0 -18
- package/node_modules/esprima/ChangeLog +0 -235
- package/node_modules/get-caller-file/LICENSE.md +0 -6
- package/node_modules/get-caller-file/README.md +0 -41
- package/node_modules/get-caller-file/index.d.ts +0 -2
- package/node_modules/get-caller-file/index.js +0 -22
- package/node_modules/get-caller-file/index.js.map +0 -1
- package/node_modules/get-caller-file/package.json +0 -42
- package/node_modules/has-flag/index.d.ts +0 -39
- package/node_modules/has-flag/index.js +0 -8
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/package.json +0 -46
- package/node_modules/has-flag/readme.md +0 -89
- package/node_modules/highlight.js/LICENSE +0 -29
- package/node_modules/highlight.js/README.md +0 -371
- package/node_modules/highlight.js/lib/core.js +0 -2517
- package/node_modules/highlight.js/lib/highlight.js +0 -2
- package/node_modules/highlight.js/lib/index.js +0 -195
- package/node_modules/highlight.js/lib/languages/1c.js +0 -521
- package/node_modules/highlight.js/lib/languages/abnf.js +0 -103
- package/node_modules/highlight.js/lib/languages/accesslog.js +0 -127
- package/node_modules/highlight.js/lib/languages/actionscript.js +0 -113
- package/node_modules/highlight.js/lib/languages/ada.js +0 -194
- package/node_modules/highlight.js/lib/languages/angelscript.js +0 -123
- package/node_modules/highlight.js/lib/languages/apache.js +0 -89
- package/node_modules/highlight.js/lib/languages/applescript.js +0 -189
- package/node_modules/highlight.js/lib/languages/arcade.js +0 -165
- package/node_modules/highlight.js/lib/languages/arduino.js +0 -576
- package/node_modules/highlight.js/lib/languages/armasm.js +0 -131
- package/node_modules/highlight.js/lib/languages/asciidoc.js +0 -303
- package/node_modules/highlight.js/lib/languages/aspectj.js +0 -186
- package/node_modules/highlight.js/lib/languages/autohotkey.js +0 -84
- package/node_modules/highlight.js/lib/languages/autoit.js +0 -183
- package/node_modules/highlight.js/lib/languages/avrasm.js +0 -80
- package/node_modules/highlight.js/lib/languages/awk.js +0 -73
- package/node_modules/highlight.js/lib/languages/axapta.js +0 -179
- package/node_modules/highlight.js/lib/languages/bash.js +0 -169
- package/node_modules/highlight.js/lib/languages/basic.js +0 -65
- package/node_modules/highlight.js/lib/languages/bnf.js +0 -38
- package/node_modules/highlight.js/lib/languages/brainfuck.js +0 -46
- package/node_modules/highlight.js/lib/languages/c-like.js +0 -501
- package/node_modules/highlight.js/lib/languages/c.js +0 -309
- package/node_modules/highlight.js/lib/languages/cal.js +0 -104
- package/node_modules/highlight.js/lib/languages/capnproto.js +0 -64
- package/node_modules/highlight.js/lib/languages/ceylon.js +0 -82
- package/node_modules/highlight.js/lib/languages/clean.js +0 -40
- package/node_modules/highlight.js/lib/languages/clojure-repl.js +0 -27
- package/node_modules/highlight.js/lib/languages/clojure.js +0 -158
- package/node_modules/highlight.js/lib/languages/cmake.js +0 -64
- package/node_modules/highlight.js/lib/languages/coffeescript.js +0 -356
- package/node_modules/highlight.js/lib/languages/coq.js +0 -79
- package/node_modules/highlight.js/lib/languages/cos.js +0 -138
- package/node_modules/highlight.js/lib/languages/cpp.js +0 -464
- package/node_modules/highlight.js/lib/languages/crmsh.js +0 -102
- package/node_modules/highlight.js/lib/languages/crystal.js +0 -326
- package/node_modules/highlight.js/lib/languages/csharp.js +0 -441
- package/node_modules/highlight.js/lib/languages/csp.js +0 -37
- package/node_modules/highlight.js/lib/languages/css.js +0 -608
- package/node_modules/highlight.js/lib/languages/d.js +0 -271
- package/node_modules/highlight.js/lib/languages/dart.js +0 -199
- package/node_modules/highlight.js/lib/languages/delphi.js +0 -126
- package/node_modules/highlight.js/lib/languages/diff.js +0 -85
- package/node_modules/highlight.js/lib/languages/django.js +0 -77
- package/node_modules/highlight.js/lib/languages/dns.js +0 -46
- package/node_modules/highlight.js/lib/languages/dockerfile.js +0 -34
- package/node_modules/highlight.js/lib/languages/dos.js +0 -70
- package/node_modules/highlight.js/lib/languages/dsconfig.js +0 -66
- package/node_modules/highlight.js/lib/languages/dts.js +0 -153
- package/node_modules/highlight.js/lib/languages/dust.js +0 -45
- package/node_modules/highlight.js/lib/languages/ebnf.js +0 -53
- package/node_modules/highlight.js/lib/languages/elixir.js +0 -259
- package/node_modules/highlight.js/lib/languages/elm.js +0 -129
- package/node_modules/highlight.js/lib/languages/erb.js +0 -29
- package/node_modules/highlight.js/lib/languages/erlang-repl.js +0 -86
- package/node_modules/highlight.js/lib/languages/erlang.js +0 -199
- package/node_modules/highlight.js/lib/languages/excel.js +0 -64
- package/node_modules/highlight.js/lib/languages/fix.js +0 -37
- package/node_modules/highlight.js/lib/languages/flix.js +0 -54
- package/node_modules/highlight.js/lib/languages/fortran.js +0 -159
- package/node_modules/highlight.js/lib/languages/fsharp.js +0 -86
- package/node_modules/highlight.js/lib/languages/gams.js +0 -208
- package/node_modules/highlight.js/lib/languages/gauss.js +0 -316
- package/node_modules/highlight.js/lib/languages/gcode.js +0 -88
- package/node_modules/highlight.js/lib/languages/gherkin.js +0 -49
- package/node_modules/highlight.js/lib/languages/glsl.js +0 -128
- package/node_modules/highlight.js/lib/languages/gml.js +0 -885
- package/node_modules/highlight.js/lib/languages/go.js +0 -74
- package/node_modules/highlight.js/lib/languages/golo.js +0 -33
- package/node_modules/highlight.js/lib/languages/gradle.js +0 -44
- package/node_modules/highlight.js/lib/languages/groovy.js +0 -174
- package/node_modules/highlight.js/lib/languages/haml.js +0 -117
- package/node_modules/highlight.js/lib/languages/handlebars.js +0 -324
- package/node_modules/highlight.js/lib/languages/haskell.js +0 -173
- package/node_modules/highlight.js/lib/languages/haxe.js +0 -157
- package/node_modules/highlight.js/lib/languages/hsp.js +0 -65
- package/node_modules/highlight.js/lib/languages/htmlbars.js +0 -352
- package/node_modules/highlight.js/lib/languages/http.js +0 -121
- package/node_modules/highlight.js/lib/languages/hy.js +0 -109
- package/node_modules/highlight.js/lib/languages/inform7.js +0 -70
- package/node_modules/highlight.js/lib/languages/ini.js +0 -173
- package/node_modules/highlight.js/lib/languages/irpf90.js +0 -141
- package/node_modules/highlight.js/lib/languages/isbl.js +0 -3207
- package/node_modules/highlight.js/lib/languages/java.js +0 -181
- package/node_modules/highlight.js/lib/languages/javascript.js +0 -604
- package/node_modules/highlight.js/lib/languages/jboss-cli.js +0 -63
- package/node_modules/highlight.js/lib/languages/json.js +0 -63
- package/node_modules/highlight.js/lib/languages/julia-repl.js +0 -50
- package/node_modules/highlight.js/lib/languages/julia.js +0 -416
- package/node_modules/highlight.js/lib/languages/kotlin.js +0 -284
- package/node_modules/highlight.js/lib/languages/lasso.js +0 -187
- package/node_modules/highlight.js/lib/languages/latex.js +0 -276
- package/node_modules/highlight.js/lib/languages/ldif.js +0 -42
- package/node_modules/highlight.js/lib/languages/leaf.js +0 -49
- package/node_modules/highlight.js/lib/languages/less.js +0 -666
- package/node_modules/highlight.js/lib/languages/lisp.js +0 -111
- package/node_modules/highlight.js/lib/languages/livecodeserver.js +0 -189
- package/node_modules/highlight.js/lib/languages/livescript.js +0 -374
- package/node_modules/highlight.js/lib/languages/llvm.js +0 -154
- package/node_modules/highlight.js/lib/languages/lsl.js +0 -95
- package/node_modules/highlight.js/lib/languages/lua.js +0 -82
- package/node_modules/highlight.js/lib/languages/makefile.js +0 -92
- package/node_modules/highlight.js/lib/languages/markdown.js +0 -258
- package/node_modules/highlight.js/lib/languages/mathematica.js +0 -6797
- package/node_modules/highlight.js/lib/languages/matlab.js +0 -106
- package/node_modules/highlight.js/lib/languages/maxima.js +0 -417
- package/node_modules/highlight.js/lib/languages/mel.js +0 -236
- package/node_modules/highlight.js/lib/languages/mercury.js +0 -121
- package/node_modules/highlight.js/lib/languages/mipsasm.js +0 -109
- package/node_modules/highlight.js/lib/languages/mizar.js +0 -29
- package/node_modules/highlight.js/lib/languages/mojolicious.js +0 -36
- package/node_modules/highlight.js/lib/languages/monkey.js +0 -89
- package/node_modules/highlight.js/lib/languages/moonscript.js +0 -147
- package/node_modules/highlight.js/lib/languages/n1ql.js +0 -77
- package/node_modules/highlight.js/lib/languages/nginx.js +0 -140
- package/node_modules/highlight.js/lib/languages/nim.js +0 -79
- package/node_modules/highlight.js/lib/languages/nix.js +0 -65
- package/node_modules/highlight.js/lib/languages/node-repl.js +0 -37
- package/node_modules/highlight.js/lib/languages/nsis.js +0 -119
- package/node_modules/highlight.js/lib/languages/objectivec.js +0 -121
- package/node_modules/highlight.js/lib/languages/ocaml.js +0 -82
- package/node_modules/highlight.js/lib/languages/openscad.js +0 -81
- package/node_modules/highlight.js/lib/languages/oxygene.js +0 -101
- package/node_modules/highlight.js/lib/languages/parser3.js +0 -57
- package/node_modules/highlight.js/lib/languages/perl.js +0 -515
- package/node_modules/highlight.js/lib/languages/pf.js +0 -59
- package/node_modules/highlight.js/lib/languages/pgsql.js +0 -630
- package/node_modules/highlight.js/lib/languages/php-template.js +0 -54
- package/node_modules/highlight.js/lib/languages/php.js +0 -204
- package/node_modules/highlight.js/lib/languages/plaintext.js +0 -19
- package/node_modules/highlight.js/lib/languages/pony.js +0 -89
- package/node_modules/highlight.js/lib/languages/powershell.js +0 -331
- package/node_modules/highlight.js/lib/languages/processing.js +0 -58
- package/node_modules/highlight.js/lib/languages/profile.js +0 -43
- package/node_modules/highlight.js/lib/languages/prolog.js +0 -102
- package/node_modules/highlight.js/lib/languages/properties.js +0 -85
- package/node_modules/highlight.js/lib/languages/protobuf.js +0 -47
- package/node_modules/highlight.js/lib/languages/puppet.js +0 -147
- package/node_modules/highlight.js/lib/languages/purebasic.js +0 -101
- package/node_modules/highlight.js/lib/languages/python-repl.js +0 -36
- package/node_modules/highlight.js/lib/languages/python.js +0 -446
- package/node_modules/highlight.js/lib/languages/q.js +0 -37
- package/node_modules/highlight.js/lib/languages/qml.js +0 -225
- package/node_modules/highlight.js/lib/languages/r.js +0 -231
- package/node_modules/highlight.js/lib/languages/reasonml.js +0 -321
- package/node_modules/highlight.js/lib/languages/rib.js +0 -37
- package/node_modules/highlight.js/lib/languages/roboconf.js +0 -82
- package/node_modules/highlight.js/lib/languages/routeros.js +0 -172
- package/node_modules/highlight.js/lib/languages/rsl.js +0 -49
- package/node_modules/highlight.js/lib/languages/ruby.js +0 -387
- package/node_modules/highlight.js/lib/languages/ruleslanguage.js +0 -78
- package/node_modules/highlight.js/lib/languages/rust.js +0 -146
- package/node_modules/highlight.js/lib/languages/sas.js +0 -133
- package/node_modules/highlight.js/lib/languages/scala.js +0 -140
- package/node_modules/highlight.js/lib/languages/scheme.js +0 -207
- package/node_modules/highlight.js/lib/languages/scilab.js +0 -73
- package/node_modules/highlight.js/lib/languages/scss.js +0 -545
- package/node_modules/highlight.js/lib/languages/shell.js +0 -30
- package/node_modules/highlight.js/lib/languages/smali.js +0 -135
- package/node_modules/highlight.js/lib/languages/smalltalk.js +0 -63
- package/node_modules/highlight.js/lib/languages/sml.js +0 -81
- package/node_modules/highlight.js/lib/languages/sqf.js +0 -448
- package/node_modules/highlight.js/lib/languages/sql.js +0 -699
- package/node_modules/highlight.js/lib/languages/sql_more.js +0 -183
- package/node_modules/highlight.js/lib/languages/stan.js +0 -548
- package/node_modules/highlight.js/lib/languages/stata.js +0 -60
- package/node_modules/highlight.js/lib/languages/step21.js +0 -66
- package/node_modules/highlight.js/lib/languages/stylus.js +0 -609
- package/node_modules/highlight.js/lib/languages/subunit.js +0 -51
- package/node_modules/highlight.js/lib/languages/swift.js +0 -873
- package/node_modules/highlight.js/lib/languages/taggerscript.js +0 -52
- package/node_modules/highlight.js/lib/languages/tap.js +0 -55
- package/node_modules/highlight.js/lib/languages/tcl.js +0 -115
- package/node_modules/highlight.js/lib/languages/thrift.js +0 -51
- package/node_modules/highlight.js/lib/languages/tp.js +0 -95
- package/node_modules/highlight.js/lib/languages/twig.js +0 -77
- package/node_modules/highlight.js/lib/languages/typescript.js +0 -697
- package/node_modules/highlight.js/lib/languages/vala.js +0 -61
- package/node_modules/highlight.js/lib/languages/vbnet.js +0 -214
- package/node_modules/highlight.js/lib/languages/vbscript-html.js +0 -24
- package/node_modules/highlight.js/lib/languages/vbscript.js +0 -109
- package/node_modules/highlight.js/lib/languages/verilog.js +0 -131
- package/node_modules/highlight.js/lib/languages/vhdl.js +0 -71
- package/node_modules/highlight.js/lib/languages/vim.js +0 -123
- package/node_modules/highlight.js/lib/languages/x86asm.js +0 -163
- package/node_modules/highlight.js/lib/languages/xl.js +0 -92
- package/node_modules/highlight.js/lib/languages/xml.js +0 -287
- package/node_modules/highlight.js/lib/languages/xquery.js +0 -197
- package/node_modules/highlight.js/lib/languages/yaml.js +0 -176
- package/node_modules/highlight.js/lib/languages/zephir.js +0 -140
- package/node_modules/highlight.js/package.json +0 -86
- package/node_modules/highlight.js/scss/a11y-dark.scss +0 -99
- package/node_modules/highlight.js/scss/a11y-light.scss +0 -99
- package/node_modules/highlight.js/scss/agate.scss +0 -108
- package/node_modules/highlight.js/scss/an-old-hope.scss +0 -89
- package/node_modules/highlight.js/scss/androidstudio.scss +0 -66
- package/node_modules/highlight.js/scss/arduino-light.scss +0 -87
- package/node_modules/highlight.js/scss/arta.scss +0 -73
- package/node_modules/highlight.js/scss/ascetic.scss +0 -45
- package/node_modules/highlight.js/scss/atelier-cave-dark.scss +0 -83
- package/node_modules/highlight.js/scss/atelier-cave-light.scss +0 -85
- package/node_modules/highlight.js/scss/atelier-dune-dark.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-dune-light.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-estuary-dark.scss +0 -84
- package/node_modules/highlight.js/scss/atelier-estuary-light.scss +0 -84
- package/node_modules/highlight.js/scss/atelier-forest-dark.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-forest-light.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-heath-dark.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-heath-light.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-lakeside-dark.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-lakeside-light.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-plateau-dark.scss +0 -84
- package/node_modules/highlight.js/scss/atelier-plateau-light.scss +0 -84
- package/node_modules/highlight.js/scss/atelier-savanna-dark.scss +0 -84
- package/node_modules/highlight.js/scss/atelier-savanna-light.scss +0 -84
- package/node_modules/highlight.js/scss/atelier-seaside-dark.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-seaside-light.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-sulphurpool-dark.scss +0 -69
- package/node_modules/highlight.js/scss/atelier-sulphurpool-light.scss +0 -69
- package/node_modules/highlight.js/scss/atom-one-dark-reasonable.scss +0 -75
- package/node_modules/highlight.js/scss/atom-one-dark.scss +0 -96
- package/node_modules/highlight.js/scss/atom-one-light.scss +0 -96
- package/node_modules/highlight.js/scss/brown-paper.scss +0 -64
- package/node_modules/highlight.js/scss/brown-papersq.png +0 -0
- package/node_modules/highlight.js/scss/codepen-embed.scss +0 -60
- package/node_modules/highlight.js/scss/color-brewer.scss +0 -71
- package/node_modules/highlight.js/scss/darcula.scss +0 -74
- package/node_modules/highlight.js/scss/dark.scss +0 -63
- package/node_modules/highlight.js/scss/default.scss +0 -99
- package/node_modules/highlight.js/scss/docco.scss +0 -97
- package/node_modules/highlight.js/scss/dracula.scss +0 -76
- package/node_modules/highlight.js/scss/far.scss +0 -71
- package/node_modules/highlight.js/scss/foundation.scss +0 -89
- package/node_modules/highlight.js/scss/github-gist.scss +0 -79
- package/node_modules/highlight.js/scss/github.scss +0 -99
- package/node_modules/highlight.js/scss/gml.scss +0 -78
- package/node_modules/highlight.js/scss/googlecode.scss +0 -89
- package/node_modules/highlight.js/scss/gradient-dark.scss +0 -122
- package/node_modules/highlight.js/scss/gradient-light.scss +0 -130
- package/node_modules/highlight.js/scss/grayscale.scss +0 -101
- package/node_modules/highlight.js/scss/gruvbox-dark.scss +0 -108
- package/node_modules/highlight.js/scss/gruvbox-light.scss +0 -108
- package/node_modules/highlight.js/scss/hopscotch.scss +0 -84
- package/node_modules/highlight.js/scss/hybrid.scss +0 -102
- package/node_modules/highlight.js/scss/idea.scss +0 -97
- package/node_modules/highlight.js/scss/ir-black.scss +0 -73
- package/node_modules/highlight.js/scss/isbl-editor-dark.scss +0 -112
- package/node_modules/highlight.js/scss/isbl-editor-light.scss +0 -111
- package/node_modules/highlight.js/scss/kimbie.dark.scss +0 -74
- package/node_modules/highlight.js/scss/kimbie.light.scss +0 -74
- package/node_modules/highlight.js/scss/lightfair.scss +0 -88
- package/node_modules/highlight.js/scss/lioshi.scss +0 -88
- package/node_modules/highlight.js/scss/magula.scss +0 -70
- package/node_modules/highlight.js/scss/mono-blue.scss +0 -56
- package/node_modules/highlight.js/scss/monokai-sublime.scss +0 -83
- package/node_modules/highlight.js/scss/monokai.scss +0 -71
- package/node_modules/highlight.js/scss/night-owl.scss +0 -182
- package/node_modules/highlight.js/scss/nnfx-dark.scss +0 -106
- package/node_modules/highlight.js/scss/nnfx.scss +0 -106
- package/node_modules/highlight.js/scss/nord.scss +0 -309
- package/node_modules/highlight.js/scss/obsidian.scss +0 -88
- package/node_modules/highlight.js/scss/ocean.scss +0 -74
- package/node_modules/highlight.js/scss/paraiso-dark.scss +0 -72
- package/node_modules/highlight.js/scss/paraiso-light.scss +0 -72
- package/node_modules/highlight.js/scss/pojoaque.jpg +0 -0
- package/node_modules/highlight.js/scss/pojoaque.scss +0 -83
- package/node_modules/highlight.js/scss/purebasic.scss +0 -96
- package/node_modules/highlight.js/scss/qtcreator_dark.scss +0 -83
- package/node_modules/highlight.js/scss/qtcreator_light.scss +0 -83
- package/node_modules/highlight.js/scss/railscasts.scss +0 -106
- package/node_modules/highlight.js/scss/rainbow.scss +0 -85
- package/node_modules/highlight.js/scss/routeros.scss +0 -108
- package/node_modules/highlight.js/scss/school-book.png +0 -0
- package/node_modules/highlight.js/scss/school-book.scss +0 -69
- package/node_modules/highlight.js/scss/shades-of-purple.scss +0 -96
- package/node_modules/highlight.js/scss/solarized-dark.scss +0 -84
- package/node_modules/highlight.js/scss/solarized-light.scss +0 -84
- package/node_modules/highlight.js/scss/srcery.scss +0 -78
- package/node_modules/highlight.js/scss/stackoverflow-dark.scss +0 -78
- package/node_modules/highlight.js/scss/stackoverflow-light.scss +0 -78
- package/node_modules/highlight.js/scss/sunburst.scss +0 -102
- package/node_modules/highlight.js/scss/tomorrow-night-blue.scss +0 -75
- package/node_modules/highlight.js/scss/tomorrow-night-bright.scss +0 -74
- package/node_modules/highlight.js/scss/tomorrow-night-eighties.scss +0 -74
- package/node_modules/highlight.js/scss/tomorrow-night.scss +0 -75
- package/node_modules/highlight.js/scss/tomorrow.scss +0 -72
- package/node_modules/highlight.js/scss/vs.scss +0 -68
- package/node_modules/highlight.js/scss/vs2015.scss +0 -115
- package/node_modules/highlight.js/scss/xcode.scss +0 -104
- package/node_modules/highlight.js/scss/xt256.scss +0 -92
- package/node_modules/highlight.js/scss/zenburn.scss +0 -80
- package/node_modules/highlight.js/styles/a11y-dark.css +0 -99
- package/node_modules/highlight.js/styles/a11y-light.css +0 -99
- package/node_modules/highlight.js/styles/agate.css +0 -108
- package/node_modules/highlight.js/styles/an-old-hope.css +0 -89
- package/node_modules/highlight.js/styles/androidstudio.css +0 -66
- package/node_modules/highlight.js/styles/arduino-light.css +0 -87
- package/node_modules/highlight.js/styles/arta.css +0 -73
- package/node_modules/highlight.js/styles/ascetic.css +0 -45
- package/node_modules/highlight.js/styles/atelier-cave-dark.css +0 -83
- package/node_modules/highlight.js/styles/atelier-cave-light.css +0 -85
- package/node_modules/highlight.js/styles/atelier-dune-dark.css +0 -69
- package/node_modules/highlight.js/styles/atelier-dune-light.css +0 -69
- package/node_modules/highlight.js/styles/atelier-estuary-dark.css +0 -84
- package/node_modules/highlight.js/styles/atelier-estuary-light.css +0 -84
- package/node_modules/highlight.js/styles/atelier-forest-dark.css +0 -69
- package/node_modules/highlight.js/styles/atelier-forest-light.css +0 -69
- package/node_modules/highlight.js/styles/atelier-heath-dark.css +0 -69
- package/node_modules/highlight.js/styles/atelier-heath-light.css +0 -69
- package/node_modules/highlight.js/styles/atelier-lakeside-dark.css +0 -69
- package/node_modules/highlight.js/styles/atelier-lakeside-light.css +0 -69
- package/node_modules/highlight.js/styles/atelier-plateau-dark.css +0 -84
- package/node_modules/highlight.js/styles/atelier-plateau-light.css +0 -84
- package/node_modules/highlight.js/styles/atelier-savanna-dark.css +0 -84
- package/node_modules/highlight.js/styles/atelier-savanna-light.css +0 -84
- package/node_modules/highlight.js/styles/atelier-seaside-dark.css +0 -69
- package/node_modules/highlight.js/styles/atelier-seaside-light.css +0 -69
- package/node_modules/highlight.js/styles/atelier-sulphurpool-dark.css +0 -69
- package/node_modules/highlight.js/styles/atelier-sulphurpool-light.css +0 -69
- package/node_modules/highlight.js/styles/atom-one-dark-reasonable.css +0 -75
- package/node_modules/highlight.js/styles/atom-one-dark.css +0 -96
- package/node_modules/highlight.js/styles/atom-one-light.css +0 -96
- package/node_modules/highlight.js/styles/brown-paper.css +0 -64
- package/node_modules/highlight.js/styles/brown-papersq.png +0 -0
- package/node_modules/highlight.js/styles/codepen-embed.css +0 -60
- package/node_modules/highlight.js/styles/color-brewer.css +0 -71
- package/node_modules/highlight.js/styles/darcula.css +0 -74
- package/node_modules/highlight.js/styles/dark.css +0 -63
- package/node_modules/highlight.js/styles/default.css +0 -99
- package/node_modules/highlight.js/styles/docco.css +0 -97
- package/node_modules/highlight.js/styles/dracula.css +0 -76
- package/node_modules/highlight.js/styles/far.css +0 -71
- package/node_modules/highlight.js/styles/foundation.css +0 -89
- package/node_modules/highlight.js/styles/github-gist.css +0 -79
- package/node_modules/highlight.js/styles/github.css +0 -99
- package/node_modules/highlight.js/styles/gml.css +0 -78
- package/node_modules/highlight.js/styles/googlecode.css +0 -89
- package/node_modules/highlight.js/styles/gradient-dark.css +0 -122
- package/node_modules/highlight.js/styles/gradient-light.css +0 -130
- package/node_modules/highlight.js/styles/grayscale.css +0 -101
- package/node_modules/highlight.js/styles/gruvbox-dark.css +0 -108
- package/node_modules/highlight.js/styles/gruvbox-light.css +0 -108
- package/node_modules/highlight.js/styles/hopscotch.css +0 -84
- package/node_modules/highlight.js/styles/hybrid.css +0 -102
- package/node_modules/highlight.js/styles/idea.css +0 -97
- package/node_modules/highlight.js/styles/ir-black.css +0 -73
- package/node_modules/highlight.js/styles/isbl-editor-dark.css +0 -112
- package/node_modules/highlight.js/styles/isbl-editor-light.css +0 -111
- package/node_modules/highlight.js/styles/kimbie.dark.css +0 -74
- package/node_modules/highlight.js/styles/kimbie.light.css +0 -74
- package/node_modules/highlight.js/styles/lightfair.css +0 -88
- package/node_modules/highlight.js/styles/lioshi.css +0 -88
- package/node_modules/highlight.js/styles/magula.css +0 -70
- package/node_modules/highlight.js/styles/mono-blue.css +0 -56
- package/node_modules/highlight.js/styles/monokai-sublime.css +0 -83
- package/node_modules/highlight.js/styles/monokai.css +0 -71
- package/node_modules/highlight.js/styles/night-owl.css +0 -182
- package/node_modules/highlight.js/styles/nnfx-dark.css +0 -106
- package/node_modules/highlight.js/styles/nnfx.css +0 -106
- package/node_modules/highlight.js/styles/nord.css +0 -309
- package/node_modules/highlight.js/styles/obsidian.css +0 -88
- package/node_modules/highlight.js/styles/ocean.css +0 -74
- package/node_modules/highlight.js/styles/paraiso-dark.css +0 -72
- package/node_modules/highlight.js/styles/paraiso-light.css +0 -72
- package/node_modules/highlight.js/styles/pojoaque.css +0 -83
- package/node_modules/highlight.js/styles/pojoaque.jpg +0 -0
- package/node_modules/highlight.js/styles/purebasic.css +0 -96
- package/node_modules/highlight.js/styles/qtcreator_dark.css +0 -83
- package/node_modules/highlight.js/styles/qtcreator_light.css +0 -83
- package/node_modules/highlight.js/styles/railscasts.css +0 -106
- package/node_modules/highlight.js/styles/rainbow.css +0 -85
- package/node_modules/highlight.js/styles/routeros.css +0 -108
- package/node_modules/highlight.js/styles/school-book.css +0 -69
- package/node_modules/highlight.js/styles/school-book.png +0 -0
- package/node_modules/highlight.js/styles/shades-of-purple.css +0 -96
- package/node_modules/highlight.js/styles/solarized-dark.css +0 -84
- package/node_modules/highlight.js/styles/solarized-light.css +0 -84
- package/node_modules/highlight.js/styles/srcery.css +0 -78
- package/node_modules/highlight.js/styles/stackoverflow-dark.css +0 -78
- package/node_modules/highlight.js/styles/stackoverflow-light.css +0 -78
- package/node_modules/highlight.js/styles/sunburst.css +0 -102
- package/node_modules/highlight.js/styles/tomorrow-night-blue.css +0 -75
- package/node_modules/highlight.js/styles/tomorrow-night-bright.css +0 -74
- package/node_modules/highlight.js/styles/tomorrow-night-eighties.css +0 -74
- package/node_modules/highlight.js/styles/tomorrow-night.css +0 -75
- package/node_modules/highlight.js/styles/tomorrow.css +0 -72
- package/node_modules/highlight.js/styles/vs.css +0 -68
- package/node_modules/highlight.js/styles/vs2015.css +0 -115
- package/node_modules/highlight.js/styles/xcode.css +0 -104
- package/node_modules/highlight.js/styles/xt256.css +0 -92
- package/node_modules/highlight.js/styles/zenburn.css +0 -80
- package/node_modules/highlight.js/types/index.d.ts +0 -261
- package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/mz/HISTORY.md +0 -66
- package/node_modules/mz/LICENSE +0 -22
- package/node_modules/mz/README.md +0 -106
- package/node_modules/mz/child_process.js +0 -8
- package/node_modules/mz/crypto.js +0 -9
- package/node_modules/mz/dns.js +0 -16
- package/node_modules/mz/fs.js +0 -62
- package/node_modules/mz/index.js +0 -8
- package/node_modules/mz/package.json +0 -44
- package/node_modules/mz/readline.js +0 -64
- package/node_modules/mz/zlib.js +0 -13
- package/node_modules/object-assign/index.js +0 -90
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/package.json +0 -42
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5/README.md +0 -38
- package/node_modules/parse5/lib/common/doctype.js +0 -162
- package/node_modules/parse5/lib/common/error-codes.js +0 -65
- package/node_modules/parse5/lib/common/foreign-content.js +0 -265
- package/node_modules/parse5/lib/common/html.js +0 -272
- package/node_modules/parse5/lib/common/unicode.js +0 -109
- package/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
- package/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
- package/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
- package/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
- package/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
- package/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -222
- package/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
- package/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
- package/node_modules/parse5/lib/index.js +0 -29
- package/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
- package/node_modules/parse5/lib/parser/index.js +0 -2956
- package/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
- package/node_modules/parse5/lib/serializer/index.js +0 -176
- package/node_modules/parse5/lib/tokenizer/index.js +0 -2196
- package/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
- package/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
- package/node_modules/parse5/lib/tree-adapters/default.js +0 -217
- package/node_modules/parse5/lib/utils/merge-options.js +0 -13
- package/node_modules/parse5/lib/utils/mixin.js +0 -39
- package/node_modules/parse5/package.json +0 -35
- package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/README.md +0 -34
- package/node_modules/parse5-htmlparser2-tree-adapter/lib/index.js +0 -348
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/doctype.js +0 -162
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/error-codes.js +0 -65
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/foreign-content.js +0 -265
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/html.js +0 -272
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/unicode.js +0 -109
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -223
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/index.js +0 -29
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/index.js +0 -2956
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/serializer/index.js +0 -176
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/index.js +0 -2196
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tree-adapters/default.js +0 -221
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/merge-options.js +0 -13
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/mixin.js +0 -39
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/package.json +0 -35
- package/node_modules/parse5-htmlparser2-tree-adapter/package.json +0 -27
- package/node_modules/proper-lockfile/CHANGELOG.md +0 -108
- package/node_modules/require-directory/.jshintrc +0 -67
- package/node_modules/require-directory/.npmignore +0 -1
- package/node_modules/require-directory/.travis.yml +0 -3
- package/node_modules/require-directory/LICENSE +0 -22
- package/node_modules/require-directory/README.markdown +0 -184
- package/node_modules/require-directory/index.js +0 -86
- package/node_modules/require-directory/package.json +0 -40
- package/node_modules/source-map/CHANGELOG.md +0 -301
- package/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/string-width/index.js +0 -47
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/string-width/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/string-width/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/string-width/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
- package/node_modules/string-width/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/string-width/package.json +0 -56
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/supports-color/browser.js +0 -5
- package/node_modules/supports-color/index.js +0 -135
- package/node_modules/supports-color/license +0 -9
- package/node_modules/supports-color/package.json +0 -53
- package/node_modules/supports-color/readme.md +0 -76
- package/node_modules/thenify/History.md +0 -11
- package/node_modules/thenify/LICENSE +0 -22
- package/node_modules/thenify/README.md +0 -120
- package/node_modules/thenify/index.js +0 -77
- package/node_modules/thenify/package.json +0 -31
- package/node_modules/thenify-all/History.md +0 -11
- package/node_modules/thenify-all/LICENSE +0 -22
- package/node_modules/thenify-all/README.md +0 -66
- package/node_modules/thenify-all/index.js +0 -73
- package/node_modules/thenify-all/package.json +0 -34
- package/node_modules/wrap-ansi/index.js +0 -216
- package/node_modules/wrap-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/wrap-ansi/package.json +0 -62
- package/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/y18n/CHANGELOG.md +0 -100
- package/node_modules/y18n/LICENSE +0 -13
- package/node_modules/y18n/README.md +0 -127
- package/node_modules/y18n/build/index.cjs +0 -203
- package/node_modules/y18n/build/lib/cjs.js +0 -6
- package/node_modules/y18n/build/lib/index.js +0 -174
- package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
- package/node_modules/y18n/index.mjs +0 -8
- package/node_modules/y18n/package.json +0 -70
- package/node_modules/yargs/CHANGELOG.md +0 -88
- package/node_modules/yargs/LICENSE +0 -21
- package/node_modules/yargs/README.md +0 -202
- package/node_modules/yargs/browser.mjs +0 -7
- package/node_modules/yargs/build/index.cjs +0 -2920
- package/node_modules/yargs/build/lib/argsert.js +0 -62
- package/node_modules/yargs/build/lib/command.js +0 -382
- package/node_modules/yargs/build/lib/completion-templates.js +0 -47
- package/node_modules/yargs/build/lib/completion.js +0 -128
- package/node_modules/yargs/build/lib/middleware.js +0 -53
- package/node_modules/yargs/build/lib/parse-command.js +0 -32
- package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
- package/node_modules/yargs/build/lib/usage.js +0 -548
- package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
- package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
- package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -26
- package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
- package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
- package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
- package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
- package/node_modules/yargs/build/lib/validation.js +0 -308
- package/node_modules/yargs/build/lib/yargs-factory.js +0 -1143
- package/node_modules/yargs/build/lib/yerror.js +0 -7
- package/node_modules/yargs/helpers/helpers.mjs +0 -10
- package/node_modules/yargs/helpers/index.js +0 -14
- package/node_modules/yargs/helpers/package.json +0 -3
- package/node_modules/yargs/index.cjs +0 -39
- package/node_modules/yargs/index.mjs +0 -8
- package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -92
- package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -67
- package/node_modules/yargs/locales/be.json +0 -46
- package/node_modules/yargs/locales/de.json +0 -46
- package/node_modules/yargs/locales/en.json +0 -51
- package/node_modules/yargs/locales/es.json +0 -46
- package/node_modules/yargs/locales/fi.json +0 -49
- package/node_modules/yargs/locales/fr.json +0 -53
- package/node_modules/yargs/locales/hi.json +0 -49
- package/node_modules/yargs/locales/hu.json +0 -46
- package/node_modules/yargs/locales/id.json +0 -50
- package/node_modules/yargs/locales/it.json +0 -46
- package/node_modules/yargs/locales/ja.json +0 -51
- package/node_modules/yargs/locales/ko.json +0 -49
- package/node_modules/yargs/locales/nb.json +0 -44
- package/node_modules/yargs/locales/nl.json +0 -49
- package/node_modules/yargs/locales/nn.json +0 -44
- package/node_modules/yargs/locales/pirate.json +0 -13
- package/node_modules/yargs/locales/pl.json +0 -49
- package/node_modules/yargs/locales/pt.json +0 -45
- package/node_modules/yargs/locales/pt_BR.json +0 -48
- package/node_modules/yargs/locales/ru.json +0 -46
- package/node_modules/yargs/locales/th.json +0 -46
- package/node_modules/yargs/locales/tr.json +0 -48
- package/node_modules/yargs/locales/zh_CN.json +0 -48
- package/node_modules/yargs/locales/zh_TW.json +0 -47
- package/node_modules/yargs/package.json +0 -122
- package/node_modules/yargs/yargs +0 -9
- package/node_modules/yargs-parser/CHANGELOG.md +0 -263
- package/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/yargs-parser/README.md +0 -518
- package/node_modules/yargs-parser/browser.js +0 -29
- package/node_modules/yargs-parser/build/index.cjs +0 -1042
- package/node_modules/yargs-parser/build/lib/index.js +0 -59
- package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
- package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
- package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
- package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1037
- package/node_modules/yargs-parser/package.json +0 -87
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
import * as fsPromises from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { glob } from "glob";
|
|
4
|
+
import { isEnoent } from "./helpers.js";
|
|
5
|
+
// =============================================================================
|
|
6
|
+
// Language Detection
|
|
7
|
+
// =============================================================================
|
|
8
|
+
const LANGUAGE_MAP = {
|
|
9
|
+
// TypeScript/JavaScript
|
|
10
|
+
".ts": "typescript",
|
|
11
|
+
".tsx": "typescriptreact",
|
|
12
|
+
".js": "javascript",
|
|
13
|
+
".jsx": "javascriptreact",
|
|
14
|
+
".mjs": "javascript",
|
|
15
|
+
".cjs": "javascript",
|
|
16
|
+
".mts": "typescript",
|
|
17
|
+
".cts": "typescript",
|
|
18
|
+
// Systems languages
|
|
19
|
+
".rs": "rust",
|
|
20
|
+
".go": "go",
|
|
21
|
+
".c": "c",
|
|
22
|
+
".h": "c",
|
|
23
|
+
".cpp": "cpp",
|
|
24
|
+
".cc": "cpp",
|
|
25
|
+
".cxx": "cpp",
|
|
26
|
+
".hpp": "cpp",
|
|
27
|
+
".hxx": "cpp",
|
|
28
|
+
".zig": "zig",
|
|
29
|
+
// Scripting languages
|
|
30
|
+
".py": "python",
|
|
31
|
+
".rb": "ruby",
|
|
32
|
+
".lua": "lua",
|
|
33
|
+
".sh": "shellscript",
|
|
34
|
+
".bash": "shellscript",
|
|
35
|
+
".zsh": "shellscript",
|
|
36
|
+
".fish": "fish",
|
|
37
|
+
".pl": "perl",
|
|
38
|
+
".php": "php",
|
|
39
|
+
// JVM languages
|
|
40
|
+
".java": "java",
|
|
41
|
+
".kt": "kotlin",
|
|
42
|
+
".kts": "kotlin",
|
|
43
|
+
".scala": "scala",
|
|
44
|
+
".groovy": "groovy",
|
|
45
|
+
".clj": "clojure",
|
|
46
|
+
// .NET languages
|
|
47
|
+
".cs": "csharp",
|
|
48
|
+
".fs": "fsharp",
|
|
49
|
+
".vb": "vb",
|
|
50
|
+
// Web
|
|
51
|
+
".html": "html",
|
|
52
|
+
".htm": "html",
|
|
53
|
+
".css": "css",
|
|
54
|
+
".scss": "scss",
|
|
55
|
+
".sass": "sass",
|
|
56
|
+
".less": "less",
|
|
57
|
+
".vue": "vue",
|
|
58
|
+
".svelte": "svelte",
|
|
59
|
+
// Data formats
|
|
60
|
+
".json": "json",
|
|
61
|
+
".jsonc": "jsonc",
|
|
62
|
+
".yaml": "yaml",
|
|
63
|
+
".yml": "yaml",
|
|
64
|
+
".toml": "toml",
|
|
65
|
+
".xml": "xml",
|
|
66
|
+
".ini": "ini",
|
|
67
|
+
// Documentation
|
|
68
|
+
".md": "markdown",
|
|
69
|
+
".markdown": "markdown",
|
|
70
|
+
".rst": "restructuredtext",
|
|
71
|
+
".adoc": "asciidoc",
|
|
72
|
+
".tex": "latex",
|
|
73
|
+
// Other
|
|
74
|
+
".sql": "sql",
|
|
75
|
+
".graphql": "graphql",
|
|
76
|
+
".gql": "graphql",
|
|
77
|
+
".proto": "protobuf",
|
|
78
|
+
".dockerfile": "dockerfile",
|
|
79
|
+
".tf": "terraform",
|
|
80
|
+
".hcl": "hcl",
|
|
81
|
+
".nix": "nix",
|
|
82
|
+
".ex": "elixir",
|
|
83
|
+
".exs": "elixir",
|
|
84
|
+
".erl": "erlang",
|
|
85
|
+
".hrl": "erlang",
|
|
86
|
+
".hs": "haskell",
|
|
87
|
+
".ml": "ocaml",
|
|
88
|
+
".mli": "ocaml",
|
|
89
|
+
".swift": "swift",
|
|
90
|
+
".r": "r",
|
|
91
|
+
".R": "r",
|
|
92
|
+
".jl": "julia",
|
|
93
|
+
".dart": "dart",
|
|
94
|
+
".elm": "elm",
|
|
95
|
+
".v": "v",
|
|
96
|
+
".nim": "nim",
|
|
97
|
+
".cr": "crystal",
|
|
98
|
+
".d": "d",
|
|
99
|
+
".pas": "pascal",
|
|
100
|
+
".pp": "pascal",
|
|
101
|
+
".lisp": "lisp",
|
|
102
|
+
".lsp": "lisp",
|
|
103
|
+
".rkt": "racket",
|
|
104
|
+
".scm": "scheme",
|
|
105
|
+
".ps1": "powershell",
|
|
106
|
+
".psm1": "powershell",
|
|
107
|
+
".bat": "bat",
|
|
108
|
+
".cmd": "bat",
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Detect language ID from file path.
|
|
112
|
+
*/
|
|
113
|
+
export function detectLanguageId(filePath) {
|
|
114
|
+
const ext = path.extname(filePath).toLowerCase();
|
|
115
|
+
const basename = path.basename(filePath).toLowerCase();
|
|
116
|
+
if (basename === "dockerfile" || basename.startsWith("dockerfile.")) {
|
|
117
|
+
return "dockerfile";
|
|
118
|
+
}
|
|
119
|
+
if (basename === "makefile" || basename === "gnumakefile") {
|
|
120
|
+
return "makefile";
|
|
121
|
+
}
|
|
122
|
+
if (basename === "cmakelists.txt" || ext === ".cmake") {
|
|
123
|
+
return "cmake";
|
|
124
|
+
}
|
|
125
|
+
return LANGUAGE_MAP[ext] ?? "plaintext";
|
|
126
|
+
}
|
|
127
|
+
// =============================================================================
|
|
128
|
+
// URI Handling (Cross-Platform)
|
|
129
|
+
// =============================================================================
|
|
130
|
+
export function fileToUri(filePath) {
|
|
131
|
+
const resolved = path.resolve(filePath);
|
|
132
|
+
if (process.platform === "win32") {
|
|
133
|
+
return `file:///${resolved.replace(/\\/g, "/")}`;
|
|
134
|
+
}
|
|
135
|
+
return `file://${resolved}`;
|
|
136
|
+
}
|
|
137
|
+
export function uriToFile(uri) {
|
|
138
|
+
if (!uri.startsWith("file://")) {
|
|
139
|
+
return uri;
|
|
140
|
+
}
|
|
141
|
+
let filePath = decodeURIComponent(uri.slice(7));
|
|
142
|
+
if (process.platform === "win32" && filePath.startsWith("/") && /^[A-Za-z]:/.test(filePath.slice(1))) {
|
|
143
|
+
filePath = filePath.slice(1);
|
|
144
|
+
}
|
|
145
|
+
return filePath;
|
|
146
|
+
}
|
|
147
|
+
// =============================================================================
|
|
148
|
+
// Diagnostic Formatting
|
|
149
|
+
// =============================================================================
|
|
150
|
+
const SEVERITY_NAMES = {
|
|
151
|
+
1: "error",
|
|
152
|
+
2: "warning",
|
|
153
|
+
3: "info",
|
|
154
|
+
4: "hint",
|
|
155
|
+
};
|
|
156
|
+
export function severityToString(severity) {
|
|
157
|
+
return SEVERITY_NAMES[severity ?? 1] ?? "unknown";
|
|
158
|
+
}
|
|
159
|
+
export function sortDiagnostics(diagnostics) {
|
|
160
|
+
return diagnostics.sort((a, b) => {
|
|
161
|
+
const aSeverity = a.severity ?? 1;
|
|
162
|
+
const bSeverity = b.severity ?? 1;
|
|
163
|
+
if (aSeverity !== bSeverity)
|
|
164
|
+
return aSeverity - bSeverity;
|
|
165
|
+
const aLine = a.range.start.line;
|
|
166
|
+
const bLine = b.range.start.line;
|
|
167
|
+
if (aLine !== bLine)
|
|
168
|
+
return aLine - bLine;
|
|
169
|
+
const aCol = a.range.start.character;
|
|
170
|
+
const bCol = b.range.start.character;
|
|
171
|
+
if (aCol !== bCol)
|
|
172
|
+
return aCol - bCol;
|
|
173
|
+
return a.message.localeCompare(b.message);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export function severityToIcon(severity) {
|
|
177
|
+
switch (severity ?? 1) {
|
|
178
|
+
case 1:
|
|
179
|
+
return "[E]";
|
|
180
|
+
case 2:
|
|
181
|
+
return "[W]";
|
|
182
|
+
case 3:
|
|
183
|
+
return "[I]";
|
|
184
|
+
case 4:
|
|
185
|
+
return "[H]";
|
|
186
|
+
default:
|
|
187
|
+
return "[E]";
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
function stripDiagnosticNoise(message) {
|
|
191
|
+
return message
|
|
192
|
+
.split("\n")
|
|
193
|
+
.filter(line => {
|
|
194
|
+
const trimmed = line.trim();
|
|
195
|
+
if (trimmed.startsWith("for further information visit"))
|
|
196
|
+
return false;
|
|
197
|
+
if (/^https?:\/\//.test(trimmed))
|
|
198
|
+
return false;
|
|
199
|
+
return true;
|
|
200
|
+
})
|
|
201
|
+
.join("\n")
|
|
202
|
+
.trim();
|
|
203
|
+
}
|
|
204
|
+
export function formatDiagnostic(diagnostic, filePath) {
|
|
205
|
+
const severity = severityToString(diagnostic.severity);
|
|
206
|
+
const line = diagnostic.range.start.line + 1;
|
|
207
|
+
const col = diagnostic.range.start.character + 1;
|
|
208
|
+
const source = diagnostic.source ? `[${diagnostic.source}] ` : "";
|
|
209
|
+
const code = diagnostic.code !== undefined ? ` (${diagnostic.code})` : "";
|
|
210
|
+
const message = stripDiagnosticNoise(diagnostic.message);
|
|
211
|
+
return `${filePath}:${line}:${col} [${severity}] ${source}${message}${code}`;
|
|
212
|
+
}
|
|
213
|
+
const DIAG_PATH_RE = /^(.+?):(\d+:\d+\s+.*)$/;
|
|
214
|
+
export function formatGroupedDiagnosticMessages(messages) {
|
|
215
|
+
const diagnosticsByFile = new Map();
|
|
216
|
+
const fileOrder = [];
|
|
217
|
+
const ungrouped = [];
|
|
218
|
+
for (const msg of messages) {
|
|
219
|
+
const match = DIAG_PATH_RE.exec(msg);
|
|
220
|
+
if (!match) {
|
|
221
|
+
ungrouped.push(msg);
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
const [, rawFilePath, rest] = match;
|
|
225
|
+
const filePath = rawFilePath.replace(/\\/g, "/");
|
|
226
|
+
if (!diagnosticsByFile.has(filePath)) {
|
|
227
|
+
diagnosticsByFile.set(filePath, []);
|
|
228
|
+
fileOrder.push(filePath);
|
|
229
|
+
}
|
|
230
|
+
diagnosticsByFile.get(filePath)?.push(rest);
|
|
231
|
+
}
|
|
232
|
+
if (diagnosticsByFile.size === 0) {
|
|
233
|
+
return ungrouped.join("\n");
|
|
234
|
+
}
|
|
235
|
+
const filesByDirectory = new Map();
|
|
236
|
+
for (const filePath of fileOrder) {
|
|
237
|
+
const directory = path.dirname(filePath).replace(/\\/g, "/");
|
|
238
|
+
if (!filesByDirectory.has(directory)) {
|
|
239
|
+
filesByDirectory.set(directory, []);
|
|
240
|
+
}
|
|
241
|
+
filesByDirectory.get(directory)?.push(filePath);
|
|
242
|
+
}
|
|
243
|
+
const lines = [];
|
|
244
|
+
for (const [directory, directoryFiles] of filesByDirectory) {
|
|
245
|
+
if (directory === ".") {
|
|
246
|
+
for (const filePath of directoryFiles) {
|
|
247
|
+
if (lines.length > 0) {
|
|
248
|
+
lines.push("");
|
|
249
|
+
}
|
|
250
|
+
lines.push(`# ${path.basename(filePath)}`);
|
|
251
|
+
for (const diagnostic of diagnosticsByFile.get(filePath) ?? []) {
|
|
252
|
+
lines.push(` ${diagnostic}`);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
if (lines.length > 0) {
|
|
258
|
+
lines.push("");
|
|
259
|
+
}
|
|
260
|
+
lines.push(`# ${directory}`);
|
|
261
|
+
for (const filePath of directoryFiles) {
|
|
262
|
+
lines.push(`## └─ ${path.basename(filePath)}`);
|
|
263
|
+
for (const diagnostic of diagnosticsByFile.get(filePath) ?? []) {
|
|
264
|
+
lines.push(` ${diagnostic}`);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if (ungrouped.length > 0) {
|
|
269
|
+
lines.push("");
|
|
270
|
+
for (const msg of ungrouped) {
|
|
271
|
+
lines.push(msg);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return lines.join("\n");
|
|
275
|
+
}
|
|
276
|
+
export function formatDiagnosticsSummary(diagnostics) {
|
|
277
|
+
const counts = { error: 0, warning: 0, info: 0, hint: 0 };
|
|
278
|
+
for (const d of diagnostics) {
|
|
279
|
+
const sev = severityToString(d.severity);
|
|
280
|
+
if (sev in counts) {
|
|
281
|
+
counts[sev]++;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
const parts = [];
|
|
285
|
+
if (counts.error > 0)
|
|
286
|
+
parts.push(`${counts.error} error(s)`);
|
|
287
|
+
if (counts.warning > 0)
|
|
288
|
+
parts.push(`${counts.warning} warning(s)`);
|
|
289
|
+
if (counts.info > 0)
|
|
290
|
+
parts.push(`${counts.info} info(s)`);
|
|
291
|
+
if (counts.hint > 0)
|
|
292
|
+
parts.push(`${counts.hint} hint(s)`);
|
|
293
|
+
return parts.length > 0 ? parts.join(", ") : "no issues";
|
|
294
|
+
}
|
|
295
|
+
// =============================================================================
|
|
296
|
+
// Location Formatting
|
|
297
|
+
// =============================================================================
|
|
298
|
+
export function formatLocation(location, cwd) {
|
|
299
|
+
const file = path.relative(cwd, uriToFile(location.uri));
|
|
300
|
+
const line = location.range.start.line + 1;
|
|
301
|
+
const col = location.range.start.character + 1;
|
|
302
|
+
return `${file}:${line}:${col}`;
|
|
303
|
+
}
|
|
304
|
+
export function formatPosition(line, col) {
|
|
305
|
+
return `${line}:${col}`;
|
|
306
|
+
}
|
|
307
|
+
// =============================================================================
|
|
308
|
+
// WorkspaceEdit Formatting
|
|
309
|
+
// =============================================================================
|
|
310
|
+
export function formatWorkspaceEdit(edit, cwd) {
|
|
311
|
+
const results = [];
|
|
312
|
+
if (edit.changes) {
|
|
313
|
+
for (const [uri, textEdits] of Object.entries(edit.changes)) {
|
|
314
|
+
const file = path.relative(cwd, uriToFile(uri));
|
|
315
|
+
results.push(`${file}: ${textEdits.length} edit${textEdits.length > 1 ? "s" : ""}`);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
if (edit.documentChanges) {
|
|
319
|
+
for (const change of edit.documentChanges) {
|
|
320
|
+
if ("edits" in change && change.textDocument) {
|
|
321
|
+
const file = path.relative(cwd, uriToFile(change.textDocument.uri));
|
|
322
|
+
results.push(`${file}: ${change.edits.length} edit${change.edits.length > 1 ? "s" : ""}`);
|
|
323
|
+
}
|
|
324
|
+
else if ("kind" in change) {
|
|
325
|
+
switch (change.kind) {
|
|
326
|
+
case "create":
|
|
327
|
+
results.push(`CREATE: ${path.relative(cwd, uriToFile(change.uri))}`);
|
|
328
|
+
break;
|
|
329
|
+
case "rename":
|
|
330
|
+
results.push(`RENAME: ${path.relative(cwd, uriToFile(change.oldUri))} -> ${path.relative(cwd, uriToFile(change.newUri))}`);
|
|
331
|
+
break;
|
|
332
|
+
case "delete":
|
|
333
|
+
results.push(`DELETE: ${path.relative(cwd, uriToFile(change.uri))}`);
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return results;
|
|
340
|
+
}
|
|
341
|
+
export function formatTextEdit(edit, maxLength = 50) {
|
|
342
|
+
const range = `${edit.range.start.line + 1}:${edit.range.start.character + 1}`;
|
|
343
|
+
const preview = edit.newText.length > maxLength
|
|
344
|
+
? `${edit.newText.slice(0, maxLength).replace(/\n/g, "\\n")}…`
|
|
345
|
+
: edit.newText.replace(/\n/g, "\\n");
|
|
346
|
+
return `line ${range} -> "${preview}"`;
|
|
347
|
+
}
|
|
348
|
+
// =============================================================================
|
|
349
|
+
// Symbol Formatting
|
|
350
|
+
// =============================================================================
|
|
351
|
+
const SYMBOL_KIND_LABELS = {
|
|
352
|
+
1: "File",
|
|
353
|
+
2: "Module",
|
|
354
|
+
3: "Namespace",
|
|
355
|
+
4: "Package",
|
|
356
|
+
5: "Class",
|
|
357
|
+
6: "Method",
|
|
358
|
+
7: "Property",
|
|
359
|
+
8: "Field",
|
|
360
|
+
9: "Constructor",
|
|
361
|
+
10: "Enum",
|
|
362
|
+
11: "Interface",
|
|
363
|
+
12: "Function",
|
|
364
|
+
13: "Variable",
|
|
365
|
+
14: "Constant",
|
|
366
|
+
15: "String",
|
|
367
|
+
16: "Number",
|
|
368
|
+
17: "Boolean",
|
|
369
|
+
18: "Array",
|
|
370
|
+
19: "Object",
|
|
371
|
+
20: "Key",
|
|
372
|
+
21: "Null",
|
|
373
|
+
22: "EnumMember",
|
|
374
|
+
23: "Struct",
|
|
375
|
+
24: "Event",
|
|
376
|
+
25: "Operator",
|
|
377
|
+
26: "TypeParameter",
|
|
378
|
+
};
|
|
379
|
+
export function symbolKindToIcon(kind) {
|
|
380
|
+
return `[${SYMBOL_KIND_LABELS[kind] ?? "?"}]`;
|
|
381
|
+
}
|
|
382
|
+
export function symbolKindToName(kind) {
|
|
383
|
+
return SYMBOL_KIND_LABELS[kind] ?? "Unknown";
|
|
384
|
+
}
|
|
385
|
+
export function formatDocumentSymbol(symbol, indent = 0) {
|
|
386
|
+
const prefix = " ".repeat(indent);
|
|
387
|
+
const icon = symbolKindToIcon(symbol.kind);
|
|
388
|
+
const line = symbol.range.start.line + 1;
|
|
389
|
+
const detail = symbol.detail ? ` ${symbol.detail}` : "";
|
|
390
|
+
const results = [`${prefix}${icon} ${symbol.name}${detail} @ line ${line}`];
|
|
391
|
+
if (symbol.children) {
|
|
392
|
+
for (const child of symbol.children) {
|
|
393
|
+
results.push(...formatDocumentSymbol(child, indent + 1));
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return results;
|
|
397
|
+
}
|
|
398
|
+
export function formatSymbolInformation(symbol, cwd) {
|
|
399
|
+
const icon = symbolKindToIcon(symbol.kind);
|
|
400
|
+
const location = formatLocation(symbol.location, cwd);
|
|
401
|
+
const container = symbol.containerName ? ` (${symbol.containerName})` : "";
|
|
402
|
+
return `${icon} ${symbol.name}${container} @ ${location}`;
|
|
403
|
+
}
|
|
404
|
+
export function filterWorkspaceSymbols(symbols, query) {
|
|
405
|
+
const needle = query.trim().toLowerCase();
|
|
406
|
+
if (!needle)
|
|
407
|
+
return symbols;
|
|
408
|
+
return symbols.filter(symbol => {
|
|
409
|
+
const fields = [symbol.name, symbol.containerName ?? "", uriToFile(symbol.location.uri)];
|
|
410
|
+
return fields.some(field => field.toLowerCase().includes(needle));
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
export function dedupeWorkspaceSymbols(symbols) {
|
|
414
|
+
const seen = new Set();
|
|
415
|
+
const unique = [];
|
|
416
|
+
for (const symbol of symbols) {
|
|
417
|
+
const key = [
|
|
418
|
+
symbol.name,
|
|
419
|
+
symbol.containerName ?? "",
|
|
420
|
+
symbol.kind,
|
|
421
|
+
symbol.location.uri,
|
|
422
|
+
symbol.location.range.start.line,
|
|
423
|
+
symbol.location.range.start.character,
|
|
424
|
+
].join(":");
|
|
425
|
+
if (seen.has(key))
|
|
426
|
+
continue;
|
|
427
|
+
seen.add(key);
|
|
428
|
+
unique.push(symbol);
|
|
429
|
+
}
|
|
430
|
+
return unique;
|
|
431
|
+
}
|
|
432
|
+
export function formatCodeAction(action, index) {
|
|
433
|
+
const kind = "kind" in action && action.kind ? action.kind : "action";
|
|
434
|
+
const preferred = "isPreferred" in action && action.isPreferred ? " (preferred)" : "";
|
|
435
|
+
const disabled = "disabled" in action && action.disabled ? ` (disabled: ${action.disabled.reason})` : "";
|
|
436
|
+
return `${index}: [${kind}] ${action.title}${preferred}${disabled}`;
|
|
437
|
+
}
|
|
438
|
+
function isCommandItem(action) {
|
|
439
|
+
return typeof action.command === "string";
|
|
440
|
+
}
|
|
441
|
+
export async function applyCodeAction(action, dependencies) {
|
|
442
|
+
if (isCommandItem(action)) {
|
|
443
|
+
await dependencies.executeCommand(action);
|
|
444
|
+
return { title: action.title, edits: [], executedCommands: [action.command] };
|
|
445
|
+
}
|
|
446
|
+
let resolvedAction = action;
|
|
447
|
+
if (!resolvedAction.edit && dependencies.resolveCodeAction) {
|
|
448
|
+
try {
|
|
449
|
+
resolvedAction = await dependencies.resolveCodeAction(resolvedAction);
|
|
450
|
+
}
|
|
451
|
+
catch {
|
|
452
|
+
// Resolve is optional; continue with unresolved action.
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
const edits = resolvedAction.edit ? await dependencies.applyWorkspaceEdit(resolvedAction.edit) : [];
|
|
456
|
+
const executedCommands = [];
|
|
457
|
+
if (resolvedAction.command) {
|
|
458
|
+
await dependencies.executeCommand(resolvedAction.command);
|
|
459
|
+
executedCommands.push(resolvedAction.command.command);
|
|
460
|
+
}
|
|
461
|
+
if (edits.length === 0 && executedCommands.length === 0) {
|
|
462
|
+
return null;
|
|
463
|
+
}
|
|
464
|
+
return { title: resolvedAction.title, edits, executedCommands };
|
|
465
|
+
}
|
|
466
|
+
const GLOB_PATTERN_CHARS = /[*?[{]/;
|
|
467
|
+
export function hasGlobPattern(value) {
|
|
468
|
+
return GLOB_PATTERN_CHARS.test(value);
|
|
469
|
+
}
|
|
470
|
+
export async function collectGlobMatches(pattern, cwd, maxMatches) {
|
|
471
|
+
const normalizedLimit = Number.isFinite(maxMatches) ? Math.max(1, Math.trunc(maxMatches)) : 1;
|
|
472
|
+
const allMatches = await glob(pattern, { cwd });
|
|
473
|
+
if (allMatches.length > normalizedLimit) {
|
|
474
|
+
return { matches: allMatches.slice(0, normalizedLimit), truncated: true };
|
|
475
|
+
}
|
|
476
|
+
return { matches: allMatches, truncated: false };
|
|
477
|
+
}
|
|
478
|
+
// =============================================================================
|
|
479
|
+
// Hover Content Extraction
|
|
480
|
+
// =============================================================================
|
|
481
|
+
export function extractHoverText(contents) {
|
|
482
|
+
if (typeof contents === "string") {
|
|
483
|
+
return contents;
|
|
484
|
+
}
|
|
485
|
+
if (Array.isArray(contents)) {
|
|
486
|
+
return contents.map(c => extractHoverText(c)).join("\n\n");
|
|
487
|
+
}
|
|
488
|
+
if (typeof contents === "object" && contents !== null) {
|
|
489
|
+
if ("value" in contents && typeof contents.value === "string") {
|
|
490
|
+
return contents.value;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return String(contents);
|
|
494
|
+
}
|
|
495
|
+
// =============================================================================
|
|
496
|
+
// General Utilities
|
|
497
|
+
// =============================================================================
|
|
498
|
+
function firstNonWhitespaceColumn(lineText) {
|
|
499
|
+
const match = lineText.match(/\S/);
|
|
500
|
+
return match ? (match.index ?? 0) : 0;
|
|
501
|
+
}
|
|
502
|
+
function findSymbolMatchIndexes(lineText, symbol, caseInsensitive = false) {
|
|
503
|
+
if (symbol.length === 0)
|
|
504
|
+
return [];
|
|
505
|
+
const haystack = caseInsensitive ? lineText.toLowerCase() : lineText;
|
|
506
|
+
const needle = caseInsensitive ? symbol.toLowerCase() : symbol;
|
|
507
|
+
const indexes = [];
|
|
508
|
+
let fromIndex = 0;
|
|
509
|
+
while (fromIndex <= haystack.length - needle.length) {
|
|
510
|
+
const matchIndex = haystack.indexOf(needle, fromIndex);
|
|
511
|
+
if (matchIndex === -1)
|
|
512
|
+
break;
|
|
513
|
+
indexes.push(matchIndex);
|
|
514
|
+
fromIndex = matchIndex + needle.length;
|
|
515
|
+
}
|
|
516
|
+
return indexes;
|
|
517
|
+
}
|
|
518
|
+
function normalizeOccurrence(occurrence) {
|
|
519
|
+
if (occurrence === undefined || !Number.isFinite(occurrence))
|
|
520
|
+
return 1;
|
|
521
|
+
return Math.max(1, Math.trunc(occurrence));
|
|
522
|
+
}
|
|
523
|
+
export async function resolveSymbolColumn(filePath, line, symbol, occurrence) {
|
|
524
|
+
const lineNumber = Math.max(1, line);
|
|
525
|
+
const matchOccurrence = normalizeOccurrence(occurrence);
|
|
526
|
+
try {
|
|
527
|
+
const fileText = await fsPromises.readFile(filePath, "utf-8");
|
|
528
|
+
const lines = fileText.split("\n");
|
|
529
|
+
const targetLine = lines[lineNumber - 1] ?? "";
|
|
530
|
+
if (!symbol) {
|
|
531
|
+
return firstNonWhitespaceColumn(targetLine);
|
|
532
|
+
}
|
|
533
|
+
const exactIndexes = findSymbolMatchIndexes(targetLine, symbol);
|
|
534
|
+
const fallbackIndexes = exactIndexes.length > 0 ? exactIndexes : findSymbolMatchIndexes(targetLine, symbol, true);
|
|
535
|
+
if (fallbackIndexes.length === 0) {
|
|
536
|
+
throw new Error(`Symbol "${symbol}" not found on line ${lineNumber}`);
|
|
537
|
+
}
|
|
538
|
+
if (matchOccurrence > fallbackIndexes.length) {
|
|
539
|
+
throw new Error(`Symbol "${symbol}" occurrence ${matchOccurrence} is out of bounds on line ${lineNumber} (found ${fallbackIndexes.length})`);
|
|
540
|
+
}
|
|
541
|
+
return fallbackIndexes[matchOccurrence - 1];
|
|
542
|
+
}
|
|
543
|
+
catch (error) {
|
|
544
|
+
if (isEnoent(error)) {
|
|
545
|
+
throw new Error(`File not found: ${filePath}`);
|
|
546
|
+
}
|
|
547
|
+
throw error;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
export async function readLocationContext(filePath, line, contextLines = 1) {
|
|
551
|
+
const targetLine = Math.max(1, line);
|
|
552
|
+
const surrounding = Math.max(0, contextLines);
|
|
553
|
+
try {
|
|
554
|
+
const fileText = await fsPromises.readFile(filePath, "utf-8");
|
|
555
|
+
const lines = fileText.split("\n");
|
|
556
|
+
if (lines.length === 0)
|
|
557
|
+
return [];
|
|
558
|
+
const startLine = Math.max(1, targetLine - surrounding);
|
|
559
|
+
const endLine = Math.min(lines.length, targetLine + surrounding);
|
|
560
|
+
const context = [];
|
|
561
|
+
for (let currentLine = startLine; currentLine <= endLine; currentLine++) {
|
|
562
|
+
const content = lines[currentLine - 1] ?? "";
|
|
563
|
+
context.push(`${currentLine}: ${content}`);
|
|
564
|
+
}
|
|
565
|
+
return context;
|
|
566
|
+
}
|
|
567
|
+
catch (error) {
|
|
568
|
+
if (isEnoent(error)) {
|
|
569
|
+
return [];
|
|
570
|
+
}
|
|
571
|
+
throw error;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/core/lsp/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAcxC,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF,MAAM,YAAY,GAA2B;IAC5C,wBAAwB;IACxB,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,iBAAiB;IACzB,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IAEpB,oBAAoB;IACpB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,MAAM,EAA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\"./helpers.js\";\nimport type {\n\tCodeAction,\n\tCommand,\n\tDiagnostic,\n\tDiagnosticSeverity,\n\tDocumentSymbol,\n\tLocation,\n\tSymbolInformation,\n\tSymbolKind,\n\tTextEdit,\n\tWorkspaceEdit,\n} from \"./types.js\";\n\n// =============================================================================\n// Language Detection\n// =============================================================================\n\nconst LANGUAGE_MAP: Record<string, string> = {\n\t// TypeScript/JavaScript\n\t\".ts\": \"typescript\",\n\t\".tsx\": \"typescriptreact\",\n\t\".js\": \"javascript\",\n\t\".jsx\": \"javascriptreact\",\n\t\".mjs\": \"javascript\",\n\t\".cjs\": \"javascript\",\n\t\".mts\": \"typescript\",\n\t\".cts\": \"typescript\",\n\n\t// Systems languages\n\t\".rs\": \"rust\",\n\t\".go\": \"go\",\n\t\".c\": \"c\",\n\t\".h\": \"c\",\n\t\".cpp\": \"cpp\",\n\t\".cc\": \"cpp\",\n\t\".cxx\": \"cpp\",\n\t\".hpp\": \"cpp\",\n\t\".hxx\": \"cpp\",\n\t\".zig\": \"zig\",\n\n\t// Scripting languages\n\t\".py\": \"python\",\n\t\".rb\": \"ruby\",\n\t\".lua\": \"lua\",\n\t\".sh\": \"shellscript\",\n\t\".bash\": \"shellscript\",\n\t\".zsh\": \"shellscript\",\n\t\".fish\": \"fish\",\n\t\".pl\": \"perl\",\n\t\".php\": \"php\",\n\n\t// JVM languages\n\t\".java\": \"java\",\n\t\".kt\": \"kotlin\",\n\t\".kts\": \"kotlin\",\n\t\".scala\": \"scala\",\n\t\".groovy\": \"groovy\",\n\t\".clj\": \"clojure\",\n\n\t// .NET languages\n\t\".cs\": \"csharp\",\n\t\".fs\": \"fsharp\",\n\t\".vb\": \"vb\",\n\n\t// Web\n\t\".html\": \"html\",\n\t\".htm\": \"html\",\n\t\".css\": \"css\",\n\t\".scss\": \"scss\",\n\t\".sass\": \"sass\",\n\t\".less\": \"less\",\n\t\".vue\": \"vue\",\n\t\".svelte\": \"svelte\",\n\n\t// Data formats\n\t\".json\": \"json\",\n\t\".jsonc\": \"jsonc\",\n\t\".yaml\": \"yaml\",\n\t\".yml\": \"yaml\",\n\t\".toml\": \"toml\",\n\t\".xml\": \"xml\",\n\t\".ini\": \"ini\",\n\n\t// Documentation\n\t\".md\": \"markdown\",\n\t\".markdown\": \"markdown\",\n\t\".rst\": \"restructuredtext\",\n\t\".adoc\": \"asciidoc\",\n\t\".tex\": \"latex\",\n\n\t// Other\n\t\".sql\": \"sql\",\n\t\".graphql\": \"graphql\",\n\t\".gql\": \"graphql\",\n\t\".proto\": \"protobuf\",\n\t\".dockerfile\": \"dockerfile\",\n\t\".tf\": \"terraform\",\n\t\".hcl\": \"hcl\",\n\t\".nix\": \"nix\",\n\t\".ex\": \"elixir\",\n\t\".exs\": \"elixir\",\n\t\".erl\": \"erlang\",\n\t\".hrl\": \"erlang\",\n\t\".hs\": \"haskell\",\n\t\".ml\": \"ocaml\",\n\t\".mli\": \"ocaml\",\n\t\".swift\": \"swift\",\n\t\".r\": \"r\",\n\t\".R\": \"r\",\n\t\".jl\": \"julia\",\n\t\".dart\": \"dart\",\n\t\".elm\": \"elm\",\n\t\".v\": \"v\",\n\t\".nim\": \"nim\",\n\t\".cr\": \"crystal\",\n\t\".d\": \"d\",\n\t\".pas\": \"pascal\",\n\t\".pp\": \"pascal\",\n\t\".lisp\": \"lisp\",\n\t\".lsp\": \"lisp\",\n\t\".rkt\": \"racket\",\n\t\".scm\": \"scheme\",\n\t\".ps1\": \"powershell\",\n\t\".psm1\": \"powershell\",\n\t\".bat\": \"bat\",\n\t\".cmd\": \"bat\",\n};\n\n/**\n * Detect language ID from file path.\n */\nexport function detectLanguageId(filePath: string): string {\n\tconst ext = path.extname(filePath).toLowerCase();\n\tconst basename = path.basename(filePath).toLowerCase();\n\n\tif (basename === \"dockerfile\" || basename.startsWith(\"dockerfile.\")) {\n\t\treturn \"dockerfile\";\n\t}\n\tif (basename === \"makefile\" || basename === \"gnumakefile\") {\n\t\treturn \"makefile\";\n\t}\n\tif (basename === \"cmakelists.txt\" || ext === \".cmake\") {\n\t\treturn \"cmake\";\n\t}\n\n\treturn LANGUAGE_MAP[ext] ?? \"plaintext\";\n}\n\n// =============================================================================\n// URI Handling (Cross-Platform)\n// =============================================================================\n\nexport function fileToUri(filePath: string): string {\n\tconst resolved = path.resolve(filePath);\n\n\tif (process.platform === \"win32\") {\n\t\treturn `file:///${resolved.replace(/\\\\/g, \"/\")}`;\n\t}\n\n\treturn `file://${resolved}`;\n}\n\nexport function uriToFile(uri: string): string {\n\tif (!uri.startsWith(\"file://\")) {\n\t\treturn uri;\n\t}\n\n\tlet filePath = decodeURIComponent(uri.slice(7));\n\n\tif (process.platform === \"win32\" && filePath.startsWith(\"/\") && /^[A-Za-z]:/.test(filePath.slice(1))) {\n\t\tfilePath = filePath.slice(1);\n\t}\n\n\treturn filePath;\n}\n\n// =============================================================================\n// Diagnostic Formatting\n// =============================================================================\n\nconst SEVERITY_NAMES: Record<DiagnosticSeverity, string> = {\n\t1: \"error\",\n\t2: \"warning\",\n\t3: \"info\",\n\t4: \"hint\",\n};\n\nexport function severityToString(severity?: DiagnosticSeverity): string {\n\treturn SEVERITY_NAMES[severity ?? 1] ?? \"unknown\";\n}\n\nexport function sortDiagnostics(diagnostics: Diagnostic[]): Diagnostic[] {\n\treturn diagnostics.sort((a, b) => {\n\t\tconst aSeverity = a.severity ?? 1;\n\t\tconst bSeverity = b.severity ?? 1;\n\t\tif (aSeverity !== bSeverity) return aSeverity - bSeverity;\n\t\tconst aLine = a.range.start.line;\n\t\tconst bLine = b.range.start.line;\n\t\tif (aLine !== bLine) return aLine - bLine;\n\t\tconst aCol = a.range.start.character;\n\t\tconst bCol = b.range.start.character;\n\t\tif (aCol !== bCol) return aCol - bCol;\n\t\treturn a.message.localeCompare(b.message);\n\t});\n}\n\nexport function severityToIcon(severity?: DiagnosticSeverity): string {\n\tswitch (severity ?? 1) {\n\t\tcase 1:\n\t\t\treturn \"[E]\";\n\t\tcase 2:\n\t\t\treturn \"[W]\";\n\t\tcase 3:\n\t\t\treturn \"[I]\";\n\t\tcase 4:\n\t\t\treturn \"[H]\";\n\t\tdefault:\n\t\t\treturn \"[E]\";\n\t}\n}\n\nfunction stripDiagnosticNoise(message: string): string {\n\treturn message\n\t\t.split(\"\\n\")\n\t\t.filter(line => {\n\t\t\tconst trimmed = line.trim();\n\t\t\tif (trimmed.startsWith(\"for further information visit\")) return false;\n\t\t\tif (/^https?:\\/\\//.test(trimmed)) return false;\n\t\t\treturn true;\n\t\t})\n\t\t.join(\"\\n\")\n\t\t.trim();\n}\n\nexport function formatDiagnostic(diagnostic: Diagnostic, filePath: string): string {\n\tconst severity = severityToString(diagnostic.severity);\n\tconst line = diagnostic.range.start.line + 1;\n\tconst col = diagnostic.range.start.character + 1;\n\tconst source = diagnostic.source ? `[${diagnostic.source}] ` : \"\";\n\tconst code = diagnostic.code !== undefined ? ` (${diagnostic.code})` : \"\";\n\tconst message = stripDiagnosticNoise(diagnostic.message);\n\n\treturn `${filePath}:${line}:${col} [${severity}] ${source}${message}${code}`;\n}\n\nconst DIAG_PATH_RE = /^(.+?):(\\d+:\\d+\\s+.*)$/;\n\nexport function formatGroupedDiagnosticMessages(messages: string[]): string {\n\tconst diagnosticsByFile = new Map<string, string[]>();\n\tconst fileOrder: string[] = [];\n\tconst ungrouped: string[] = [];\n\n\tfor (const msg of messages) {\n\t\tconst match = DIAG_PATH_RE.exec(msg);\n\t\tif (!match) {\n\t\t\tungrouped.push(msg);\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst [, rawFilePath, rest] = match;\n\t\tconst filePath = rawFilePath.replace(/\\\\/g, \"/\");\n\t\tif (!diagnosticsByFile.has(filePath)) {\n\t\t\tdiagnosticsByFile.set(filePath, []);\n\t\t\tfileOrder.push(filePath);\n\t\t}\n\t\tdiagnosticsByFile.get(filePath)?.push(rest);\n\t}\n\n\tif (diagnosticsByFile.size === 0) {\n\t\treturn ungrouped.join(\"\\n\");\n\t}\n\n\tconst filesByDirectory = new Map<string, string[]>();\n\tfor (const filePath of fileOrder) {\n\t\tconst directory = path.dirname(filePath).replace(/\\\\/g, \"/\");\n\t\tif (!filesByDirectory.has(directory)) {\n\t\t\tfilesByDirectory.set(directory, []);\n\t\t}\n\t\tfilesByDirectory.get(directory)?.push(filePath);\n\t}\n\n\tconst lines: string[] = [];\n\tfor (const [directory, directoryFiles] of filesByDirectory) {\n\t\tif (directory === \".\") {\n\t\t\tfor (const filePath of directoryFiles) {\n\t\t\t\tif (lines.length > 0) {\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t}\n\t\t\t\tlines.push(`# ${path.basename(filePath)}`);\n\t\t\t\tfor (const diagnostic of diagnosticsByFile.get(filePath) ?? []) {\n\t\t\t\t\tlines.push(` ${diagnostic}`);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (lines.length > 0) {\n\t\t\tlines.push(\"\");\n\t\t}\n\t\tlines.push(`# ${directory}`);\n\t\tfor (const filePath of directoryFiles) {\n\t\t\tlines.push(`## └─ ${path.basename(filePath)}`);\n\t\t\tfor (const diagnostic of diagnosticsByFile.get(filePath) ?? []) {\n\t\t\t\tlines.push(` ${diagnostic}`);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (ungrouped.length > 0) {\n\t\tlines.push(\"\");\n\t\tfor (const msg of ungrouped) {\n\t\t\tlines.push(msg);\n\t\t}\n\t}\n\n\treturn lines.join(\"\\n\");\n}\n\nexport function formatDiagnosticsSummary(diagnostics: Diagnostic[]): string {\n\tconst counts = { error: 0, warning: 0, info: 0, hint: 0 };\n\n\tfor (const d of diagnostics) {\n\t\tconst sev = severityToString(d.severity);\n\t\tif (sev in counts) {\n\t\t\tcounts[sev as keyof typeof counts]++;\n\t\t}\n\t}\n\n\tconst parts: string[] = [];\n\tif (counts.error > 0) parts.push(`${counts.error} error(s)`);\n\tif (counts.warning > 0) parts.push(`${counts.warning} warning(s)`);\n\tif (counts.info > 0) parts.push(`${counts.info} info(s)`);\n\tif (counts.hint > 0) parts.push(`${counts.hint} hint(s)`);\n\n\treturn parts.length > 0 ? parts.join(\", \") : \"no issues\";\n}\n\n// =============================================================================\n// Location Formatting\n// =============================================================================\n\nexport function formatLocation(location: Location, cwd: string): string {\n\tconst file = path.relative(cwd, uriToFile(location.uri));\n\tconst line = location.range.start.line + 1;\n\tconst col = location.range.start.character + 1;\n\treturn `${file}:${line}:${col}`;\n}\n\nexport function formatPosition(line: number, col: number): string {\n\treturn `${line}:${col}`;\n}\n\n// =============================================================================\n// WorkspaceEdit Formatting\n// =============================================================================\n\nexport function formatWorkspaceEdit(edit: WorkspaceEdit, cwd: string): string[] {\n\tconst results: string[] = [];\n\n\tif (edit.changes) {\n\t\tfor (const [uri, textEdits] of Object.entries(edit.changes)) {\n\t\t\tconst file = path.relative(cwd, uriToFile(uri));\n\t\t\tresults.push(`${file}: ${textEdits.length} edit${textEdits.length > 1 ? \"s\" : \"\"}`);\n\t\t}\n\t}\n\n\tif (edit.documentChanges) {\n\t\tfor (const change of edit.documentChanges) {\n\t\t\tif (\"edits\" in change && change.textDocument) {\n\t\t\t\tconst file = path.relative(cwd, uriToFile(change.textDocument.uri));\n\t\t\t\tresults.push(`${file}: ${change.edits.length} edit${change.edits.length > 1 ? \"s\" : \"\"}`);\n\t\t\t} else if (\"kind\" in change) {\n\t\t\t\tswitch (change.kind) {\n\t\t\t\t\tcase \"create\":\n\t\t\t\t\t\tresults.push(`CREATE: ${path.relative(cwd, uriToFile(change.uri))}`);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"rename\":\n\t\t\t\t\t\tresults.push(\n\t\t\t\t\t\t\t`RENAME: ${path.relative(cwd, uriToFile(change.oldUri))} -> ${path.relative(cwd, uriToFile(change.newUri))}`,\n\t\t\t\t\t\t);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"delete\":\n\t\t\t\t\t\tresults.push(`DELETE: ${path.relative(cwd, uriToFile(change.uri))}`);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn results;\n}\n\nexport function formatTextEdit(edit: TextEdit, maxLength = 50): string {\n\tconst range = `${edit.range.start.line + 1}:${edit.range.start.character + 1}`;\n\tconst preview =\n\t\tedit.newText.length > maxLength\n\t\t\t? `${edit.newText.slice(0, maxLength).replace(/\\n/g, \"\\\\n\")}…`\n\t\t\t: edit.newText.replace(/\\n/g, \"\\\\n\");\n\treturn `line ${range} -> \"${preview}\"`;\n}\n\n// =============================================================================\n// Symbol Formatting\n// =============================================================================\n\nconst SYMBOL_KIND_LABELS: Record<number, string> = {\n\t1: \"File\",\n\t2: \"Module\",\n\t3: \"Namespace\",\n\t4: \"Package\",\n\t5: \"Class\",\n\t6: \"Method\",\n\t7: \"Property\",\n\t8: \"Field\",\n\t9: \"Constructor\",\n\t10: \"Enum\",\n\t11: \"Interface\",\n\t12: \"Function\",\n\t13: \"Variable\",\n\t14: \"Constant\",\n\t15: \"String\",\n\t16: \"Number\",\n\t17: \"Boolean\",\n\t18: \"Array\",\n\t19: \"Object\",\n\t20: \"Key\",\n\t21: \"Null\",\n\t22: \"EnumMember\",\n\t23: \"Struct\",\n\t24: \"Event\",\n\t25: \"Operator\",\n\t26: \"TypeParameter\",\n};\n\nexport function symbolKindToIcon(kind: SymbolKind): string {\n\treturn `[${SYMBOL_KIND_LABELS[kind] ?? \"?\"}]`;\n}\n\nexport function symbolKindToName(kind: SymbolKind): string {\n\treturn SYMBOL_KIND_LABELS[kind] ?? \"Unknown\";\n}\n\nexport function formatDocumentSymbol(symbol: DocumentSymbol, indent = 0): string[] {\n\tconst prefix = \" \".repeat(indent);\n\tconst icon = symbolKindToIcon(symbol.kind);\n\tconst line = symbol.range.start.line + 1;\n\tconst detail = symbol.detail ? ` ${symbol.detail}` : \"\";\n\tconst results = [`${prefix}${icon} ${symbol.name}${detail} @ line ${line}`];\n\n\tif (symbol.children) {\n\t\tfor (const child of symbol.children) {\n\t\t\tresults.push(...formatDocumentSymbol(child, indent + 1));\n\t\t}\n\t}\n\n\treturn results;\n}\n\nexport function formatSymbolInformation(symbol: SymbolInformation, cwd: string): string {\n\tconst icon = symbolKindToIcon(symbol.kind);\n\tconst location = formatLocation(symbol.location, cwd);\n\tconst container = symbol.containerName ? ` (${symbol.containerName})` : \"\";\n\treturn `${icon} ${symbol.name}${container} @ ${location}`;\n}\n\nexport function filterWorkspaceSymbols(symbols: SymbolInformation[], query: string): SymbolInformation[] {\n\tconst needle = query.trim().toLowerCase();\n\tif (!needle) return symbols;\n\treturn symbols.filter(symbol => {\n\t\tconst fields = [symbol.name, symbol.containerName ?? \"\", uriToFile(symbol.location.uri)];\n\t\treturn fields.some(field => field.toLowerCase().includes(needle));\n\t});\n}\n\nexport function dedupeWorkspaceSymbols(symbols: SymbolInformation[]): SymbolInformation[] {\n\tconst seen = new Set<string>();\n\tconst unique: SymbolInformation[] = [];\n\tfor (const symbol of symbols) {\n\t\tconst key = [\n\t\t\tsymbol.name,\n\t\t\tsymbol.containerName ?? \"\",\n\t\t\tsymbol.kind,\n\t\t\tsymbol.location.uri,\n\t\t\tsymbol.location.range.start.line,\n\t\t\tsymbol.location.range.start.character,\n\t\t].join(\":\");\n\t\tif (seen.has(key)) continue;\n\t\tseen.add(key);\n\t\tunique.push(symbol);\n\t}\n\treturn unique;\n}\n\nexport function formatCodeAction(action: CodeAction | Command, index: number): string {\n\tconst kind = \"kind\" in action && action.kind ? action.kind : \"action\";\n\tconst preferred = \"isPreferred\" in action && action.isPreferred ? \" (preferred)\" : \"\";\n\tconst disabled = \"disabled\" in action && action.disabled ? ` (disabled: ${action.disabled.reason})` : \"\";\n\treturn `${index}: [${kind}] ${action.title}${preferred}${disabled}`;\n}\n\nexport interface CodeActionApplyDependencies {\n\tresolveCodeAction?: (action: CodeAction) => Promise<CodeAction>;\n\tapplyWorkspaceEdit: (edit: WorkspaceEdit) => Promise<string[]>;\n\texecuteCommand: (command: Command) => Promise<void>;\n}\n\nexport interface AppliedCodeActionResult {\n\ttitle: string;\n\tedits: string[];\n\texecutedCommands: string[];\n}\n\nfunction isCommandItem(action: CodeAction | Command): action is Command {\n\treturn typeof action.command === \"string\";\n}\n\nexport async function applyCodeAction(\n\taction: CodeAction | Command,\n\tdependencies: CodeActionApplyDependencies,\n): Promise<AppliedCodeActionResult | null> {\n\tif (isCommandItem(action)) {\n\t\tawait dependencies.executeCommand(action);\n\t\treturn { title: action.title, edits: [], executedCommands: [action.command] };\n\t}\n\n\tlet resolvedAction = action;\n\tif (!resolvedAction.edit && dependencies.resolveCodeAction) {\n\t\ttry {\n\t\t\tresolvedAction = await dependencies.resolveCodeAction(resolvedAction);\n\t\t} catch {\n\t\t\t// Resolve is optional; continue with unresolved action.\n\t\t}\n\t}\n\n\tconst edits = resolvedAction.edit ? await dependencies.applyWorkspaceEdit(resolvedAction.edit) : [];\n\tconst executedCommands: string[] = [];\n\tif (resolvedAction.command) {\n\t\tawait dependencies.executeCommand(resolvedAction.command);\n\t\texecutedCommands.push(resolvedAction.command.command);\n\t}\n\n\tif (edits.length === 0 && executedCommands.length === 0) {\n\t\treturn null;\n\t}\n\n\treturn { title: resolvedAction.title, edits, executedCommands };\n}\n\nconst GLOB_PATTERN_CHARS = /[*?[{]/;\n\nexport function hasGlobPattern(value: string): boolean {\n\treturn GLOB_PATTERN_CHARS.test(value);\n}\n\nexport async function collectGlobMatches(\n\tpattern: string,\n\tcwd: string,\n\tmaxMatches: number,\n): Promise<{ matches: string[]; truncated: boolean }> {\n\tconst normalizedLimit = Number.isFinite(maxMatches) ? Math.max(1, Math.trunc(maxMatches)) : 1;\n\tconst allMatches = await glob(pattern, { cwd });\n\tif (allMatches.length > normalizedLimit) {\n\t\treturn { matches: allMatches.slice(0, normalizedLimit), truncated: true };\n\t}\n\treturn { matches: allMatches, truncated: false };\n}\n\n// =============================================================================\n// Hover Content Extraction\n// =============================================================================\n\nexport function extractHoverText(\n\tcontents: string | { kind: string; value: string } | { language: string; value: string } | unknown[],\n): string {\n\tif (typeof contents === \"string\") {\n\t\treturn contents;\n\t}\n\n\tif (Array.isArray(contents)) {\n\t\treturn contents.map(c => extractHoverText(c as string | { kind: string; value: string })).join(\"\\n\\n\");\n\t}\n\n\tif (typeof contents === \"object\" && contents !== null) {\n\t\tif (\"value\" in contents && typeof contents.value === \"string\") {\n\t\t\treturn contents.value;\n\t\t}\n\t}\n\n\treturn String(contents);\n}\n\n// =============================================================================\n// General Utilities\n// =============================================================================\n\nfunction firstNonWhitespaceColumn(lineText: string): number {\n\tconst match = lineText.match(/\\S/);\n\treturn match ? (match.index ?? 0) : 0;\n}\n\nfunction findSymbolMatchIndexes(lineText: string, symbol: string, caseInsensitive = false): number[] {\n\tif (symbol.length === 0) return [];\n\tconst haystack = caseInsensitive ? lineText.toLowerCase() : lineText;\n\tconst needle = caseInsensitive ? symbol.toLowerCase() : symbol;\n\tconst indexes: number[] = [];\n\tlet fromIndex = 0;\n\twhile (fromIndex <= haystack.length - needle.length) {\n\t\tconst matchIndex = haystack.indexOf(needle, fromIndex);\n\t\tif (matchIndex === -1) break;\n\t\tindexes.push(matchIndex);\n\t\tfromIndex = matchIndex + needle.length;\n\t}\n\treturn indexes;\n}\n\nfunction normalizeOccurrence(occurrence?: number): number {\n\tif (occurrence === undefined || !Number.isFinite(occurrence)) return 1;\n\treturn Math.max(1, Math.trunc(occurrence));\n}\n\nexport async function resolveSymbolColumn(\n\tfilePath: string,\n\tline: number,\n\tsymbol?: string,\n\toccurrence?: number,\n): Promise<number> {\n\tconst lineNumber = Math.max(1, line);\n\tconst matchOccurrence = normalizeOccurrence(occurrence);\n\ttry {\n\t\tconst fileText = await fsPromises.readFile(filePath, \"utf-8\");\n\t\tconst lines = fileText.split(\"\\n\");\n\t\tconst targetLine = lines[lineNumber - 1] ?? \"\";\n\t\tif (!symbol) {\n\t\t\treturn firstNonWhitespaceColumn(targetLine);\n\t\t}\n\n\t\tconst exactIndexes = findSymbolMatchIndexes(targetLine, symbol);\n\t\tconst fallbackIndexes = exactIndexes.length > 0 ? exactIndexes : findSymbolMatchIndexes(targetLine, symbol, true);\n\t\tif (fallbackIndexes.length === 0) {\n\t\t\tthrow new Error(`Symbol \"${symbol}\" not found on line ${lineNumber}`);\n\t\t}\n\t\tif (matchOccurrence > fallbackIndexes.length) {\n\t\t\tthrow new Error(\n\t\t\t\t`Symbol \"${symbol}\" occurrence ${matchOccurrence} is out of bounds on line ${lineNumber} (found ${fallbackIndexes.length})`,\n\t\t\t);\n\t\t}\n\t\treturn fallbackIndexes[matchOccurrence - 1];\n\t} catch (error: unknown) {\n\t\tif (isEnoent(error)) {\n\t\t\tthrow new Error(`File not found: ${filePath}`);\n\t\t}\n\t\tthrow error;\n\t}\n}\n\nexport async function readLocationContext(filePath: string, line: number, contextLines = 1): Promise<string[]> {\n\tconst targetLine = Math.max(1, line);\n\tconst surrounding = Math.max(0, contextLines);\n\ttry {\n\t\tconst fileText = await fsPromises.readFile(filePath, \"utf-8\");\n\t\tconst lines = fileText.split(\"\\n\");\n\t\tif (lines.length === 0) return [];\n\n\t\tconst startLine = Math.max(1, targetLine - surrounding);\n\t\tconst endLine = Math.min(lines.length, targetLine + surrounding);\n\t\tconst context: string[] = [];\n\t\tfor (let currentLine = startLine; currentLine <= endLine; currentLine++) {\n\t\t\tconst content = lines[currentLine - 1] ?? \"\";\n\t\t\tcontext.push(`${currentLine}: ${content}`);\n\t\t}\n\t\treturn context;\n\t} catch (error: unknown) {\n\t\tif (isEnoent(error)) {\n\t\t\treturn [];\n\t\t}\n\t\tthrow error;\n\t}\n}\n"]}
|