gsd-pi 2.9.0 → 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/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/defaults.json +456 -0
- package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lsp.md +33 -0
- 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 +25 -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 +23 -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/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 +0 -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 +8 -9
- 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/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 +53 -0
- 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 +7 -10
- 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/defaults.json +456 -0
- package/packages/pi-coding-agent/dist/core/lsp/lsp.md +33 -0
- 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 +25 -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 +23 -0
- package/packages/pi-coding-agent/dist/core/tools/index.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 +0 -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 +8 -9
- 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/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 +53 -0
- 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 +7 -10
- 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/bg-shell/index.ts +343 -14
- package/src/resources/extensions/gsd/git-service.ts +13 -1
- 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
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { YError } from './yerror.js';
|
|
2
|
-
import { parseCommand } from './parse-command.js';
|
|
3
|
-
const positionName = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth'];
|
|
4
|
-
export function argsert(arg1, arg2, arg3) {
|
|
5
|
-
function parseArgs() {
|
|
6
|
-
return typeof arg1 === 'object'
|
|
7
|
-
? [{ demanded: [], optional: [] }, arg1, arg2]
|
|
8
|
-
: [
|
|
9
|
-
parseCommand(`cmd ${arg1}`),
|
|
10
|
-
arg2,
|
|
11
|
-
arg3,
|
|
12
|
-
];
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
let position = 0;
|
|
16
|
-
const [parsed, callerArguments, _length] = parseArgs();
|
|
17
|
-
const args = [].slice.call(callerArguments);
|
|
18
|
-
while (args.length && args[args.length - 1] === undefined)
|
|
19
|
-
args.pop();
|
|
20
|
-
const length = _length || args.length;
|
|
21
|
-
if (length < parsed.demanded.length) {
|
|
22
|
-
throw new YError(`Not enough arguments provided. Expected ${parsed.demanded.length} but received ${args.length}.`);
|
|
23
|
-
}
|
|
24
|
-
const totalCommands = parsed.demanded.length + parsed.optional.length;
|
|
25
|
-
if (length > totalCommands) {
|
|
26
|
-
throw new YError(`Too many arguments provided. Expected max ${totalCommands} but received ${length}.`);
|
|
27
|
-
}
|
|
28
|
-
parsed.demanded.forEach(demanded => {
|
|
29
|
-
const arg = args.shift();
|
|
30
|
-
const observedType = guessType(arg);
|
|
31
|
-
const matchingTypes = demanded.cmd.filter(type => type === observedType || type === '*');
|
|
32
|
-
if (matchingTypes.length === 0)
|
|
33
|
-
argumentTypeError(observedType, demanded.cmd, position);
|
|
34
|
-
position += 1;
|
|
35
|
-
});
|
|
36
|
-
parsed.optional.forEach(optional => {
|
|
37
|
-
if (args.length === 0)
|
|
38
|
-
return;
|
|
39
|
-
const arg = args.shift();
|
|
40
|
-
const observedType = guessType(arg);
|
|
41
|
-
const matchingTypes = optional.cmd.filter(type => type === observedType || type === '*');
|
|
42
|
-
if (matchingTypes.length === 0)
|
|
43
|
-
argumentTypeError(observedType, optional.cmd, position);
|
|
44
|
-
position += 1;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
catch (err) {
|
|
48
|
-
console.warn(err.stack);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function guessType(arg) {
|
|
52
|
-
if (Array.isArray(arg)) {
|
|
53
|
-
return 'array';
|
|
54
|
-
}
|
|
55
|
-
else if (arg === null) {
|
|
56
|
-
return 'null';
|
|
57
|
-
}
|
|
58
|
-
return typeof arg;
|
|
59
|
-
}
|
|
60
|
-
function argumentTypeError(observedType, allowedTypes, position) {
|
|
61
|
-
throw new YError(`Invalid ${positionName[position] || 'manyith'} argument. Expected ${allowedTypes.join(' or ')} but received ${observedType}.`);
|
|
62
|
-
}
|
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
import { assertNotStrictEqual, } from './typings/common-types.js';
|
|
2
|
-
import { isPromise } from './utils/is-promise.js';
|
|
3
|
-
import { applyMiddleware, commandMiddlewareFactory, } from './middleware.js';
|
|
4
|
-
import { parseCommand } from './parse-command.js';
|
|
5
|
-
import { isYargsInstance, } from './yargs-factory.js';
|
|
6
|
-
import whichModule from './utils/which-module.js';
|
|
7
|
-
const DEFAULT_MARKER = /(^\*)|(^\$0)/;
|
|
8
|
-
export function command(yargs, usage, validation, globalMiddleware = [], shim) {
|
|
9
|
-
const self = {};
|
|
10
|
-
let handlers = {};
|
|
11
|
-
let aliasMap = {};
|
|
12
|
-
let defaultCommand;
|
|
13
|
-
self.addHandler = function addHandler(cmd, description, builder, handler, commandMiddleware, deprecated) {
|
|
14
|
-
let aliases = [];
|
|
15
|
-
const middlewares = commandMiddlewareFactory(commandMiddleware);
|
|
16
|
-
handler = handler || (() => { });
|
|
17
|
-
if (Array.isArray(cmd)) {
|
|
18
|
-
if (isCommandAndAliases(cmd)) {
|
|
19
|
-
[cmd, ...aliases] = cmd;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
for (const command of cmd) {
|
|
23
|
-
self.addHandler(command);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
else if (isCommandHandlerDefinition(cmd)) {
|
|
28
|
-
let command = Array.isArray(cmd.command) || typeof cmd.command === 'string'
|
|
29
|
-
? cmd.command
|
|
30
|
-
: moduleName(cmd);
|
|
31
|
-
if (cmd.aliases)
|
|
32
|
-
command = [].concat(command).concat(cmd.aliases);
|
|
33
|
-
self.addHandler(command, extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
else if (isCommandBuilderDefinition(builder)) {
|
|
37
|
-
self.addHandler([cmd].concat(aliases), description, builder.builder, builder.handler, builder.middlewares, builder.deprecated);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
if (typeof cmd === 'string') {
|
|
41
|
-
const parsedCommand = parseCommand(cmd);
|
|
42
|
-
aliases = aliases.map(alias => parseCommand(alias).cmd);
|
|
43
|
-
let isDefault = false;
|
|
44
|
-
const parsedAliases = [parsedCommand.cmd].concat(aliases).filter(c => {
|
|
45
|
-
if (DEFAULT_MARKER.test(c)) {
|
|
46
|
-
isDefault = true;
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
return true;
|
|
50
|
-
});
|
|
51
|
-
if (parsedAliases.length === 0 && isDefault)
|
|
52
|
-
parsedAliases.push('$0');
|
|
53
|
-
if (isDefault) {
|
|
54
|
-
parsedCommand.cmd = parsedAliases[0];
|
|
55
|
-
aliases = parsedAliases.slice(1);
|
|
56
|
-
cmd = cmd.replace(DEFAULT_MARKER, parsedCommand.cmd);
|
|
57
|
-
}
|
|
58
|
-
aliases.forEach(alias => {
|
|
59
|
-
aliasMap[alias] = parsedCommand.cmd;
|
|
60
|
-
});
|
|
61
|
-
if (description !== false) {
|
|
62
|
-
usage.command(cmd, description, isDefault, aliases, deprecated);
|
|
63
|
-
}
|
|
64
|
-
handlers[parsedCommand.cmd] = {
|
|
65
|
-
original: cmd,
|
|
66
|
-
description,
|
|
67
|
-
handler,
|
|
68
|
-
builder: builder || {},
|
|
69
|
-
middlewares,
|
|
70
|
-
deprecated,
|
|
71
|
-
demanded: parsedCommand.demanded,
|
|
72
|
-
optional: parsedCommand.optional,
|
|
73
|
-
};
|
|
74
|
-
if (isDefault)
|
|
75
|
-
defaultCommand = handlers[parsedCommand.cmd];
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
self.addDirectory = function addDirectory(dir, context, req, callerFile, opts) {
|
|
79
|
-
opts = opts || {};
|
|
80
|
-
if (typeof opts.recurse !== 'boolean')
|
|
81
|
-
opts.recurse = false;
|
|
82
|
-
if (!Array.isArray(opts.extensions))
|
|
83
|
-
opts.extensions = ['js'];
|
|
84
|
-
const parentVisit = typeof opts.visit === 'function' ? opts.visit : (o) => o;
|
|
85
|
-
opts.visit = function visit(obj, joined, filename) {
|
|
86
|
-
const visited = parentVisit(obj, joined, filename);
|
|
87
|
-
if (visited) {
|
|
88
|
-
if (~context.files.indexOf(joined))
|
|
89
|
-
return visited;
|
|
90
|
-
context.files.push(joined);
|
|
91
|
-
self.addHandler(visited);
|
|
92
|
-
}
|
|
93
|
-
return visited;
|
|
94
|
-
};
|
|
95
|
-
shim.requireDirectory({ require: req, filename: callerFile }, dir, opts);
|
|
96
|
-
};
|
|
97
|
-
function moduleName(obj) {
|
|
98
|
-
const mod = whichModule(obj);
|
|
99
|
-
if (!mod)
|
|
100
|
-
throw new Error(`No command name given for module: ${shim.inspect(obj)}`);
|
|
101
|
-
return commandFromFilename(mod.filename);
|
|
102
|
-
}
|
|
103
|
-
function commandFromFilename(filename) {
|
|
104
|
-
return shim.path.basename(filename, shim.path.extname(filename));
|
|
105
|
-
}
|
|
106
|
-
function extractDesc({ describe, description, desc, }) {
|
|
107
|
-
for (const test of [describe, description, desc]) {
|
|
108
|
-
if (typeof test === 'string' || test === false)
|
|
109
|
-
return test;
|
|
110
|
-
assertNotStrictEqual(test, true, shim);
|
|
111
|
-
}
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
114
|
-
self.getCommands = () => Object.keys(handlers).concat(Object.keys(aliasMap));
|
|
115
|
-
self.getCommandHandlers = () => handlers;
|
|
116
|
-
self.hasDefaultCommand = () => !!defaultCommand;
|
|
117
|
-
self.runCommand = function runCommand(command, yargs, parsed, commandIndex) {
|
|
118
|
-
let aliases = parsed.aliases;
|
|
119
|
-
const commandHandler = handlers[command] || handlers[aliasMap[command]] || defaultCommand;
|
|
120
|
-
const currentContext = yargs.getContext();
|
|
121
|
-
let numFiles = currentContext.files.length;
|
|
122
|
-
const parentCommands = currentContext.commands.slice();
|
|
123
|
-
let innerArgv = parsed.argv;
|
|
124
|
-
let positionalMap = {};
|
|
125
|
-
if (command) {
|
|
126
|
-
currentContext.commands.push(command);
|
|
127
|
-
currentContext.fullCommands.push(commandHandler.original);
|
|
128
|
-
}
|
|
129
|
-
const builder = commandHandler.builder;
|
|
130
|
-
if (isCommandBuilderCallback(builder)) {
|
|
131
|
-
const builderOutput = builder(yargs.reset(parsed.aliases));
|
|
132
|
-
const innerYargs = isYargsInstance(builderOutput) ? builderOutput : yargs;
|
|
133
|
-
if (shouldUpdateUsage(innerYargs)) {
|
|
134
|
-
innerYargs
|
|
135
|
-
.getUsageInstance()
|
|
136
|
-
.usage(usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.description);
|
|
137
|
-
}
|
|
138
|
-
innerArgv = innerYargs._parseArgs(null, null, true, commandIndex);
|
|
139
|
-
aliases = innerYargs.parsed.aliases;
|
|
140
|
-
}
|
|
141
|
-
else if (isCommandBuilderOptionDefinitions(builder)) {
|
|
142
|
-
const innerYargs = yargs.reset(parsed.aliases);
|
|
143
|
-
if (shouldUpdateUsage(innerYargs)) {
|
|
144
|
-
innerYargs
|
|
145
|
-
.getUsageInstance()
|
|
146
|
-
.usage(usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.description);
|
|
147
|
-
}
|
|
148
|
-
Object.keys(commandHandler.builder).forEach(key => {
|
|
149
|
-
innerYargs.option(key, builder[key]);
|
|
150
|
-
});
|
|
151
|
-
innerArgv = innerYargs._parseArgs(null, null, true, commandIndex);
|
|
152
|
-
aliases = innerYargs.parsed.aliases;
|
|
153
|
-
}
|
|
154
|
-
if (!yargs._hasOutput()) {
|
|
155
|
-
positionalMap = populatePositionals(commandHandler, innerArgv, currentContext);
|
|
156
|
-
}
|
|
157
|
-
const middlewares = globalMiddleware
|
|
158
|
-
.slice(0)
|
|
159
|
-
.concat(commandHandler.middlewares);
|
|
160
|
-
applyMiddleware(innerArgv, yargs, middlewares, true);
|
|
161
|
-
if (!yargs._hasOutput()) {
|
|
162
|
-
yargs._runValidation(innerArgv, aliases, positionalMap, yargs.parsed.error, !command);
|
|
163
|
-
}
|
|
164
|
-
if (commandHandler.handler && !yargs._hasOutput()) {
|
|
165
|
-
yargs._setHasOutput();
|
|
166
|
-
const populateDoubleDash = !!yargs.getOptions().configuration['populate--'];
|
|
167
|
-
yargs._postProcess(innerArgv, populateDoubleDash);
|
|
168
|
-
innerArgv = applyMiddleware(innerArgv, yargs, middlewares, false);
|
|
169
|
-
let handlerResult;
|
|
170
|
-
if (isPromise(innerArgv)) {
|
|
171
|
-
handlerResult = innerArgv.then(argv => commandHandler.handler(argv));
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
handlerResult = commandHandler.handler(innerArgv);
|
|
175
|
-
}
|
|
176
|
-
const handlerFinishCommand = yargs.getHandlerFinishCommand();
|
|
177
|
-
if (isPromise(handlerResult)) {
|
|
178
|
-
yargs.getUsageInstance().cacheHelpMessage();
|
|
179
|
-
handlerResult
|
|
180
|
-
.then(value => {
|
|
181
|
-
if (handlerFinishCommand) {
|
|
182
|
-
handlerFinishCommand(value);
|
|
183
|
-
}
|
|
184
|
-
})
|
|
185
|
-
.catch(error => {
|
|
186
|
-
try {
|
|
187
|
-
yargs.getUsageInstance().fail(null, error);
|
|
188
|
-
}
|
|
189
|
-
catch (err) {
|
|
190
|
-
}
|
|
191
|
-
})
|
|
192
|
-
.then(() => {
|
|
193
|
-
yargs.getUsageInstance().clearCachedHelpMessage();
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
if (handlerFinishCommand) {
|
|
198
|
-
handlerFinishCommand(handlerResult);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
if (command) {
|
|
203
|
-
currentContext.commands.pop();
|
|
204
|
-
currentContext.fullCommands.pop();
|
|
205
|
-
}
|
|
206
|
-
numFiles = currentContext.files.length - numFiles;
|
|
207
|
-
if (numFiles > 0)
|
|
208
|
-
currentContext.files.splice(numFiles * -1, numFiles);
|
|
209
|
-
return innerArgv;
|
|
210
|
-
};
|
|
211
|
-
function shouldUpdateUsage(yargs) {
|
|
212
|
-
return (!yargs.getUsageInstance().getUsageDisabled() &&
|
|
213
|
-
yargs.getUsageInstance().getUsage().length === 0);
|
|
214
|
-
}
|
|
215
|
-
function usageFromParentCommandsCommandHandler(parentCommands, commandHandler) {
|
|
216
|
-
const c = DEFAULT_MARKER.test(commandHandler.original)
|
|
217
|
-
? commandHandler.original.replace(DEFAULT_MARKER, '').trim()
|
|
218
|
-
: commandHandler.original;
|
|
219
|
-
const pc = parentCommands.filter(c => {
|
|
220
|
-
return !DEFAULT_MARKER.test(c);
|
|
221
|
-
});
|
|
222
|
-
pc.push(c);
|
|
223
|
-
return `$0 ${pc.join(' ')}`;
|
|
224
|
-
}
|
|
225
|
-
self.runDefaultBuilderOn = function (yargs) {
|
|
226
|
-
assertNotStrictEqual(defaultCommand, undefined, shim);
|
|
227
|
-
if (shouldUpdateUsage(yargs)) {
|
|
228
|
-
const commandString = DEFAULT_MARKER.test(defaultCommand.original)
|
|
229
|
-
? defaultCommand.original
|
|
230
|
-
: defaultCommand.original.replace(/^[^[\]<>]*/, '$0 ');
|
|
231
|
-
yargs.getUsageInstance().usage(commandString, defaultCommand.description);
|
|
232
|
-
}
|
|
233
|
-
const builder = defaultCommand.builder;
|
|
234
|
-
if (isCommandBuilderCallback(builder)) {
|
|
235
|
-
builder(yargs);
|
|
236
|
-
}
|
|
237
|
-
else if (!isCommandBuilderDefinition(builder)) {
|
|
238
|
-
Object.keys(builder).forEach(key => {
|
|
239
|
-
yargs.option(key, builder[key]);
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
function populatePositionals(commandHandler, argv, context) {
|
|
244
|
-
argv._ = argv._.slice(context.commands.length);
|
|
245
|
-
const demanded = commandHandler.demanded.slice(0);
|
|
246
|
-
const optional = commandHandler.optional.slice(0);
|
|
247
|
-
const positionalMap = {};
|
|
248
|
-
validation.positionalCount(demanded.length, argv._.length);
|
|
249
|
-
while (demanded.length) {
|
|
250
|
-
const demand = demanded.shift();
|
|
251
|
-
populatePositional(demand, argv, positionalMap);
|
|
252
|
-
}
|
|
253
|
-
while (optional.length) {
|
|
254
|
-
const maybe = optional.shift();
|
|
255
|
-
populatePositional(maybe, argv, positionalMap);
|
|
256
|
-
}
|
|
257
|
-
argv._ = context.commands.concat(argv._.map(a => '' + a));
|
|
258
|
-
postProcessPositionals(argv, positionalMap, self.cmdToParseOptions(commandHandler.original));
|
|
259
|
-
return positionalMap;
|
|
260
|
-
}
|
|
261
|
-
function populatePositional(positional, argv, positionalMap) {
|
|
262
|
-
const cmd = positional.cmd[0];
|
|
263
|
-
if (positional.variadic) {
|
|
264
|
-
positionalMap[cmd] = argv._.splice(0).map(String);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
if (argv._.length)
|
|
268
|
-
positionalMap[cmd] = [String(argv._.shift())];
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
function postProcessPositionals(argv, positionalMap, parseOptions) {
|
|
272
|
-
const options = Object.assign({}, yargs.getOptions());
|
|
273
|
-
options.default = Object.assign(parseOptions.default, options.default);
|
|
274
|
-
for (const key of Object.keys(parseOptions.alias)) {
|
|
275
|
-
options.alias[key] = (options.alias[key] || []).concat(parseOptions.alias[key]);
|
|
276
|
-
}
|
|
277
|
-
options.array = options.array.concat(parseOptions.array);
|
|
278
|
-
options.config = {};
|
|
279
|
-
const unparsed = [];
|
|
280
|
-
Object.keys(positionalMap).forEach(key => {
|
|
281
|
-
positionalMap[key].map(value => {
|
|
282
|
-
if (options.configuration['unknown-options-as-args'])
|
|
283
|
-
options.key[key] = true;
|
|
284
|
-
unparsed.push(`--${key}`);
|
|
285
|
-
unparsed.push(value);
|
|
286
|
-
});
|
|
287
|
-
});
|
|
288
|
-
if (!unparsed.length)
|
|
289
|
-
return;
|
|
290
|
-
const config = Object.assign({}, options.configuration, {
|
|
291
|
-
'populate--': true,
|
|
292
|
-
});
|
|
293
|
-
const parsed = shim.Parser.detailed(unparsed, Object.assign({}, options, {
|
|
294
|
-
configuration: config,
|
|
295
|
-
}));
|
|
296
|
-
if (parsed.error) {
|
|
297
|
-
yargs.getUsageInstance().fail(parsed.error.message, parsed.error);
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
const positionalKeys = Object.keys(positionalMap);
|
|
301
|
-
Object.keys(positionalMap).forEach(key => {
|
|
302
|
-
positionalKeys.push(...parsed.aliases[key]);
|
|
303
|
-
});
|
|
304
|
-
Object.keys(parsed.argv).forEach(key => {
|
|
305
|
-
if (positionalKeys.indexOf(key) !== -1) {
|
|
306
|
-
if (!positionalMap[key])
|
|
307
|
-
positionalMap[key] = parsed.argv[key];
|
|
308
|
-
argv[key] = parsed.argv[key];
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
self.cmdToParseOptions = function (cmdString) {
|
|
314
|
-
const parseOptions = {
|
|
315
|
-
array: [],
|
|
316
|
-
default: {},
|
|
317
|
-
alias: {},
|
|
318
|
-
demand: {},
|
|
319
|
-
};
|
|
320
|
-
const parsed = parseCommand(cmdString);
|
|
321
|
-
parsed.demanded.forEach(d => {
|
|
322
|
-
const [cmd, ...aliases] = d.cmd;
|
|
323
|
-
if (d.variadic) {
|
|
324
|
-
parseOptions.array.push(cmd);
|
|
325
|
-
parseOptions.default[cmd] = [];
|
|
326
|
-
}
|
|
327
|
-
parseOptions.alias[cmd] = aliases;
|
|
328
|
-
parseOptions.demand[cmd] = true;
|
|
329
|
-
});
|
|
330
|
-
parsed.optional.forEach(o => {
|
|
331
|
-
const [cmd, ...aliases] = o.cmd;
|
|
332
|
-
if (o.variadic) {
|
|
333
|
-
parseOptions.array.push(cmd);
|
|
334
|
-
parseOptions.default[cmd] = [];
|
|
335
|
-
}
|
|
336
|
-
parseOptions.alias[cmd] = aliases;
|
|
337
|
-
});
|
|
338
|
-
return parseOptions;
|
|
339
|
-
};
|
|
340
|
-
self.reset = () => {
|
|
341
|
-
handlers = {};
|
|
342
|
-
aliasMap = {};
|
|
343
|
-
defaultCommand = undefined;
|
|
344
|
-
return self;
|
|
345
|
-
};
|
|
346
|
-
const frozens = [];
|
|
347
|
-
self.freeze = () => {
|
|
348
|
-
frozens.push({
|
|
349
|
-
handlers,
|
|
350
|
-
aliasMap,
|
|
351
|
-
defaultCommand,
|
|
352
|
-
});
|
|
353
|
-
};
|
|
354
|
-
self.unfreeze = () => {
|
|
355
|
-
const frozen = frozens.pop();
|
|
356
|
-
assertNotStrictEqual(frozen, undefined, shim);
|
|
357
|
-
({ handlers, aliasMap, defaultCommand } = frozen);
|
|
358
|
-
};
|
|
359
|
-
return self;
|
|
360
|
-
}
|
|
361
|
-
export function isCommandBuilderDefinition(builder) {
|
|
362
|
-
return (typeof builder === 'object' &&
|
|
363
|
-
!!builder.builder &&
|
|
364
|
-
typeof builder.handler === 'function');
|
|
365
|
-
}
|
|
366
|
-
function isCommandAndAliases(cmd) {
|
|
367
|
-
if (cmd.every(c => typeof c === 'string')) {
|
|
368
|
-
return true;
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
return false;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
export function isCommandBuilderCallback(builder) {
|
|
375
|
-
return typeof builder === 'function';
|
|
376
|
-
}
|
|
377
|
-
function isCommandBuilderOptionDefinitions(builder) {
|
|
378
|
-
return typeof builder === 'object';
|
|
379
|
-
}
|
|
380
|
-
export function isCommandHandlerDefinition(cmd) {
|
|
381
|
-
return typeof cmd === 'object' && !Array.isArray(cmd);
|
|
382
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export const completionShTemplate = `###-begin-{{app_name}}-completions-###
|
|
2
|
-
#
|
|
3
|
-
# yargs command completion script
|
|
4
|
-
#
|
|
5
|
-
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
|
|
6
|
-
# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
|
|
7
|
-
#
|
|
8
|
-
_yargs_completions()
|
|
9
|
-
{
|
|
10
|
-
local cur_word args type_list
|
|
11
|
-
|
|
12
|
-
cur_word="\${COMP_WORDS[COMP_CWORD]}"
|
|
13
|
-
args=("\${COMP_WORDS[@]}")
|
|
14
|
-
|
|
15
|
-
# ask yargs to generate completions.
|
|
16
|
-
type_list=$({{app_path}} --get-yargs-completions "\${args[@]}")
|
|
17
|
-
|
|
18
|
-
COMPREPLY=( $(compgen -W "\${type_list}" -- \${cur_word}) )
|
|
19
|
-
|
|
20
|
-
# if no match was found, fall back to filename completion
|
|
21
|
-
if [ \${#COMPREPLY[@]} -eq 0 ]; then
|
|
22
|
-
COMPREPLY=()
|
|
23
|
-
fi
|
|
24
|
-
|
|
25
|
-
return 0
|
|
26
|
-
}
|
|
27
|
-
complete -o default -F _yargs_completions {{app_name}}
|
|
28
|
-
###-end-{{app_name}}-completions-###
|
|
29
|
-
`;
|
|
30
|
-
export const completionZshTemplate = `###-begin-{{app_name}}-completions-###
|
|
31
|
-
#
|
|
32
|
-
# yargs command completion script
|
|
33
|
-
#
|
|
34
|
-
# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
|
|
35
|
-
# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.
|
|
36
|
-
#
|
|
37
|
-
_{{app_name}}_yargs_completions()
|
|
38
|
-
{
|
|
39
|
-
local reply
|
|
40
|
-
local si=$IFS
|
|
41
|
-
IFS=$'\n' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
|
|
42
|
-
IFS=$si
|
|
43
|
-
_describe 'values' reply
|
|
44
|
-
}
|
|
45
|
-
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
46
|
-
###-end-{{app_name}}-completions-###
|
|
47
|
-
`;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { isCommandBuilderCallback } from './command.js';
|
|
2
|
-
import { assertNotStrictEqual } from './typings/common-types.js';
|
|
3
|
-
import * as templates from './completion-templates.js';
|
|
4
|
-
import { isPromise } from './utils/is-promise.js';
|
|
5
|
-
import { parseCommand } from './parse-command.js';
|
|
6
|
-
export function completion(yargs, usage, command, shim) {
|
|
7
|
-
const self = {
|
|
8
|
-
completionKey: 'get-yargs-completions',
|
|
9
|
-
};
|
|
10
|
-
let aliases;
|
|
11
|
-
self.setParsed = function setParsed(parsed) {
|
|
12
|
-
aliases = parsed.aliases;
|
|
13
|
-
};
|
|
14
|
-
const zshShell = (shim.getEnv('SHELL') && shim.getEnv('SHELL').indexOf('zsh') !== -1) ||
|
|
15
|
-
(shim.getEnv('ZSH_NAME') && shim.getEnv('ZSH_NAME').indexOf('zsh') !== -1);
|
|
16
|
-
self.getCompletion = function getCompletion(args, done) {
|
|
17
|
-
const completions = [];
|
|
18
|
-
const current = args.length ? args[args.length - 1] : '';
|
|
19
|
-
const argv = yargs.parse(args, true);
|
|
20
|
-
const parentCommands = yargs.getContext().commands;
|
|
21
|
-
function runCompletionFunction(argv) {
|
|
22
|
-
assertNotStrictEqual(completionFunction, null, shim);
|
|
23
|
-
if (isSyncCompletionFunction(completionFunction)) {
|
|
24
|
-
const result = completionFunction(current, argv);
|
|
25
|
-
if (isPromise(result)) {
|
|
26
|
-
return result
|
|
27
|
-
.then(list => {
|
|
28
|
-
shim.process.nextTick(() => {
|
|
29
|
-
done(list);
|
|
30
|
-
});
|
|
31
|
-
})
|
|
32
|
-
.catch(err => {
|
|
33
|
-
shim.process.nextTick(() => {
|
|
34
|
-
throw err;
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return done(result);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return completionFunction(current, argv, completions => {
|
|
42
|
-
done(completions);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if (completionFunction) {
|
|
47
|
-
return isPromise(argv)
|
|
48
|
-
? argv.then(runCompletionFunction)
|
|
49
|
-
: runCompletionFunction(argv);
|
|
50
|
-
}
|
|
51
|
-
const handlers = command.getCommandHandlers();
|
|
52
|
-
for (let i = 0, ii = args.length; i < ii; ++i) {
|
|
53
|
-
if (handlers[args[i]] && handlers[args[i]].builder) {
|
|
54
|
-
const builder = handlers[args[i]].builder;
|
|
55
|
-
if (isCommandBuilderCallback(builder)) {
|
|
56
|
-
const y = yargs.reset();
|
|
57
|
-
builder(y);
|
|
58
|
-
return y.argv;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (!current.match(/^-/) &&
|
|
63
|
-
parentCommands[parentCommands.length - 1] !== current) {
|
|
64
|
-
usage.getCommands().forEach(usageCommand => {
|
|
65
|
-
const commandName = parseCommand(usageCommand[0]).cmd;
|
|
66
|
-
if (args.indexOf(commandName) === -1) {
|
|
67
|
-
if (!zshShell) {
|
|
68
|
-
completions.push(commandName);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
const desc = usageCommand[1] || '';
|
|
72
|
-
completions.push(commandName.replace(/:/g, '\\:') + ':' + desc);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
if (current.match(/^-/) || (current === '' && completions.length === 0)) {
|
|
78
|
-
const descs = usage.getDescriptions();
|
|
79
|
-
const options = yargs.getOptions();
|
|
80
|
-
Object.keys(options.key).forEach(key => {
|
|
81
|
-
const negable = !!options.configuration['boolean-negation'] &&
|
|
82
|
-
options.boolean.includes(key);
|
|
83
|
-
let keyAndAliases = [key].concat(aliases[key] || []);
|
|
84
|
-
if (negable)
|
|
85
|
-
keyAndAliases = keyAndAliases.concat(keyAndAliases.map(key => `no-${key}`));
|
|
86
|
-
function completeOptionKey(key) {
|
|
87
|
-
const notInArgs = keyAndAliases.every(val => args.indexOf(`--${val}`) === -1);
|
|
88
|
-
if (notInArgs) {
|
|
89
|
-
const startsByTwoDashes = (s) => /^--/.test(s);
|
|
90
|
-
const isShortOption = (s) => /^[^0-9]$/.test(s);
|
|
91
|
-
const dashes = !startsByTwoDashes(current) && isShortOption(key) ? '-' : '--';
|
|
92
|
-
if (!zshShell) {
|
|
93
|
-
completions.push(dashes + key);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
const desc = descs[key] || '';
|
|
97
|
-
completions.push(dashes +
|
|
98
|
-
`${key.replace(/:/g, '\\:')}:${desc.replace('__yargsString__:', '')}`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
completeOptionKey(key);
|
|
103
|
-
if (negable && !!options.default[key])
|
|
104
|
-
completeOptionKey(`no-${key}`);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
done(completions);
|
|
108
|
-
};
|
|
109
|
-
self.generateCompletionScript = function generateCompletionScript($0, cmd) {
|
|
110
|
-
let script = zshShell
|
|
111
|
-
? templates.completionZshTemplate
|
|
112
|
-
: templates.completionShTemplate;
|
|
113
|
-
const name = shim.path.basename($0);
|
|
114
|
-
if ($0.match(/\.js$/))
|
|
115
|
-
$0 = `./${$0}`;
|
|
116
|
-
script = script.replace(/{{app_name}}/g, name);
|
|
117
|
-
script = script.replace(/{{completion_command}}/g, cmd);
|
|
118
|
-
return script.replace(/{{app_path}}/g, $0);
|
|
119
|
-
};
|
|
120
|
-
let completionFunction = null;
|
|
121
|
-
self.registerFunction = fn => {
|
|
122
|
-
completionFunction = fn;
|
|
123
|
-
};
|
|
124
|
-
return self;
|
|
125
|
-
}
|
|
126
|
-
function isSyncCompletionFunction(completionFunction) {
|
|
127
|
-
return completionFunction.length < 3;
|
|
128
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { argsert } from './argsert.js';
|
|
2
|
-
import { isPromise } from './utils/is-promise.js';
|
|
3
|
-
export function globalMiddlewareFactory(globalMiddleware, context) {
|
|
4
|
-
return function (callback, applyBeforeValidation = false) {
|
|
5
|
-
argsert('<array|function> [boolean]', [callback, applyBeforeValidation], arguments.length);
|
|
6
|
-
if (Array.isArray(callback)) {
|
|
7
|
-
for (let i = 0; i < callback.length; i++) {
|
|
8
|
-
if (typeof callback[i] !== 'function') {
|
|
9
|
-
throw Error('middleware must be a function');
|
|
10
|
-
}
|
|
11
|
-
callback[i].applyBeforeValidation = applyBeforeValidation;
|
|
12
|
-
}
|
|
13
|
-
Array.prototype.push.apply(globalMiddleware, callback);
|
|
14
|
-
}
|
|
15
|
-
else if (typeof callback === 'function') {
|
|
16
|
-
callback.applyBeforeValidation = applyBeforeValidation;
|
|
17
|
-
globalMiddleware.push(callback);
|
|
18
|
-
}
|
|
19
|
-
return context;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export function commandMiddlewareFactory(commandMiddleware) {
|
|
23
|
-
if (!commandMiddleware)
|
|
24
|
-
return [];
|
|
25
|
-
return commandMiddleware.map(middleware => {
|
|
26
|
-
middleware.applyBeforeValidation = false;
|
|
27
|
-
return middleware;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
export function applyMiddleware(argv, yargs, middlewares, beforeValidation) {
|
|
31
|
-
const beforeValidationError = new Error('middleware cannot return a promise when applyBeforeValidation is true');
|
|
32
|
-
return middlewares.reduce((acc, middleware) => {
|
|
33
|
-
if (middleware.applyBeforeValidation !== beforeValidation) {
|
|
34
|
-
return acc;
|
|
35
|
-
}
|
|
36
|
-
if (isPromise(acc)) {
|
|
37
|
-
return acc
|
|
38
|
-
.then(initialObj => Promise.all([
|
|
39
|
-
initialObj,
|
|
40
|
-
middleware(initialObj, yargs),
|
|
41
|
-
]))
|
|
42
|
-
.then(([initialObj, middlewareObj]) => Object.assign(initialObj, middlewareObj));
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const result = middleware(acc, yargs);
|
|
46
|
-
if (beforeValidation && isPromise(result))
|
|
47
|
-
throw beforeValidationError;
|
|
48
|
-
return isPromise(result)
|
|
49
|
-
? result.then(middlewareObj => Object.assign(acc, middlewareObj))
|
|
50
|
-
: Object.assign(acc, result);
|
|
51
|
-
}
|
|
52
|
-
}, argv);
|
|
53
|
-
}
|