@dungle-scrubs/tallow 0.8.23 → 0.8.25
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/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/workspace-transition-interactive.d.ts +1 -0
- package/dist/workspace-transition-interactive.d.ts.map +1 -1
- package/dist/workspace-transition-interactive.js +3 -0
- package/dist/workspace-transition-interactive.js.map +1 -1
- package/extensions/_shared/__tests__/shell-policy.test.ts +16 -13
- package/extensions/_shared/shell-policy.ts +8 -3
- package/extensions/hooks/__tests__/stale-cwd.test.ts +108 -0
- package/extensions/hooks/index.ts +52 -2
- package/extensions/plan-mode-tool/__tests__/index.test.ts +0 -1
- package/extensions/plan-mode-tool/__tests__/utils.test.ts +0 -57
- package/extensions/plan-mode-tool/extension.json +1 -10
- package/extensions/plan-mode-tool/index.ts +11 -284
- package/extensions/plan-mode-tool/utils.ts +0 -29
- package/extensions/skill-commands/__tests__/shared-skills-dirs.test.ts +113 -0
- package/extensions/skill-commands/index.ts +62 -5
- package/node_modules/.bun/mime-types@3.0.2/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/.bun/mime-types@3.0.2/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/.bun/mime-types@3.0.2/node_modules/mime-db/README.md +109 -0
- package/node_modules/.bun/mime-types@3.0.2/node_modules/mime-db/db.json +9342 -0
- package/node_modules/.bun/mime-types@3.0.2/node_modules/mime-db/index.js +12 -0
- package/node_modules/.bun/mime-types@3.0.2/node_modules/mime-db/package.json +56 -0
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/keys.d.ts.map +1 -1
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/keys.js +59 -7
- package/node_modules/@mariozechner/pi-tui/dist/keys.js.map +1 -0
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/tui.d.ts +13 -0
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/tui.d.ts.map +1 -1
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/tui.js +22 -2
- package/node_modules/@mariozechner/pi-tui/dist/tui.js.map +1 -0
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/package.json +1 -1
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/tui-diff-regression.test.ts +52 -0
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/keys.ts +71 -7
- package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/tui.ts +23 -2
- package/package.json +11 -9
- package/packages/tallow-tui/node_modules/@types/mime-types/LICENSE +21 -0
- package/packages/tallow-tui/node_modules/@types/mime-types/README.md +28 -0
- package/packages/tallow-tui/node_modules/@types/mime-types/index.d.ts +9 -0
- package/packages/tallow-tui/node_modules/@types/mime-types/package.json +25 -0
- package/packages/tallow-tui/node_modules/chalk/license +9 -0
- package/packages/tallow-tui/node_modules/chalk/package.json +83 -0
- package/packages/tallow-tui/node_modules/chalk/readme.md +297 -0
- package/packages/tallow-tui/node_modules/chalk/source/index.d.ts +325 -0
- package/packages/tallow-tui/node_modules/chalk/source/index.js +225 -0
- package/packages/tallow-tui/node_modules/chalk/source/utilities.js +33 -0
- package/packages/tallow-tui/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/packages/tallow-tui/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/packages/tallow-tui/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/packages/tallow-tui/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/packages/tallow-tui/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/packages/tallow-tui/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/packages/tallow-tui/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/packages/tallow-tui/node_modules/get-east-asian-width/index.js +30 -0
- package/packages/tallow-tui/node_modules/get-east-asian-width/license +9 -0
- package/packages/tallow-tui/node_modules/get-east-asian-width/lookup.js +403 -0
- package/packages/tallow-tui/node_modules/get-east-asian-width/package.json +70 -0
- package/packages/tallow-tui/node_modules/get-east-asian-width/readme.md +65 -0
- package/packages/tallow-tui/node_modules/marked/LICENSE.md +44 -0
- package/packages/tallow-tui/node_modules/marked/README.md +106 -0
- package/packages/tallow-tui/node_modules/marked/bin/main.js +282 -0
- package/packages/tallow-tui/node_modules/marked/bin/marked.js +15 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.cjs +2211 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.cjs.map +7 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.d.cts +728 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.d.ts +728 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.esm.js +2189 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.esm.js.map +7 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.umd.js +2213 -0
- package/packages/tallow-tui/node_modules/marked/lib/marked.umd.js.map +7 -0
- package/packages/tallow-tui/node_modules/marked/man/marked.1 +111 -0
- package/packages/tallow-tui/node_modules/marked/man/marked.1.md +92 -0
- package/packages/tallow-tui/node_modules/marked/marked.min.js +69 -0
- package/packages/tallow-tui/node_modules/marked/package.json +111 -0
- package/packages/tallow-tui/node_modules/mime-types/HISTORY.md +428 -0
- package/packages/tallow-tui/node_modules/mime-types/LICENSE +23 -0
- package/packages/tallow-tui/node_modules/mime-types/README.md +126 -0
- package/packages/tallow-tui/node_modules/mime-types/index.js +211 -0
- package/packages/tallow-tui/node_modules/mime-types/mimeScore.js +57 -0
- package/packages/tallow-tui/node_modules/mime-types/package.json +49 -0
- package/extensions/__integration__/plan-rejection-feedback.test.ts +0 -272
- package/extensions/plan-mode-tool/__tests__/agent-end-execution.test.ts +0 -373
- package/packages/tallow-tui/dist/keys.js.map +0 -1
- package/packages/tallow-tui/dist/tui.js.map +0 -1
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/README.md +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/autocomplete.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/autocomplete.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/autocomplete.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/autocomplete.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/border-styles.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/border-styles.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/border-styles.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/border-styles.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/bordered-box.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/bordered-box.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/bordered-box.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/bordered-box.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/box.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/box.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/box.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/box.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/cancellable-loader.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/cancellable-loader.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/cancellable-loader.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/cancellable-loader.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/editor.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/editor.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/editor.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/editor.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/image.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/image.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/image.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/image.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/input.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/input.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/input.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/input.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/loader.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/loader.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/loader.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/loader.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/markdown.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/markdown.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/markdown.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/markdown.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/select-list.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/select-list.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/select-list.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/select-list.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/settings-list.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/settings-list.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/settings-list.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/settings-list.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/spacer.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/spacer.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/spacer.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/spacer.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/text.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/text.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/text.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/text.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/truncated-text.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/truncated-text.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/truncated-text.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/components/truncated-text.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/editor-component.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/editor-component.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/editor-component.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/editor-component.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/fuzzy.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/fuzzy.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/fuzzy.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/fuzzy.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/index.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/index.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/index.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/index.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/keybindings.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/keybindings.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/keybindings.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/keybindings.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/keys.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/kill-ring.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/kill-ring.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/kill-ring.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/kill-ring.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/stdin-buffer.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/stdin-buffer.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/stdin-buffer.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/stdin-buffer.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal-image.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal-image.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal-image.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal-image.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/terminal.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/test-utils/capability-env.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/test-utils/capability-env.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/test-utils/capability-env.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/test-utils/capability-env.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/undo-stack.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/undo-stack.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/undo-stack.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/undo-stack.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/utils.d.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/utils.d.ts.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/utils.js +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/dist/utils.js.map +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/__snapshots__/render.test.ts.snap +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/editor-border.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/editor-change-listener.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/editor-ghost-text.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/fuzzy.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/image-component.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/keys.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/render.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/stdin-buffer.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/terminal-image.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/tui-render-scheduling.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/__tests__/utils.test.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/autocomplete.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/border-styles.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/bordered-box.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/box.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/cancellable-loader.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/editor.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/image.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/input.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/loader.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/markdown.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/select-list.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/settings-list.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/spacer.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/text.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/components/truncated-text.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/editor-component.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/fuzzy.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/index.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/keybindings.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/kill-ring.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/stdin-buffer.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/terminal-image.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/terminal.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/test-utils/capability-env.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/undo-stack.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/src/utils.ts +0 -0
- /package/{packages/tallow-tui → node_modules/@mariozechner/pi-tui}/tsconfig.build.json +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
import os from 'node:os';
|
|
3
|
+
import tty from 'node:tty';
|
|
4
|
+
|
|
5
|
+
// From: https://github.com/sindresorhus/has-flag/blob/main/index.js
|
|
6
|
+
/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {
|
|
7
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
|
|
8
|
+
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
|
9
|
+
const position = argv.indexOf(prefix + flag);
|
|
10
|
+
const terminatorPosition = argv.indexOf('--');
|
|
11
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const {env} = process;
|
|
15
|
+
|
|
16
|
+
let flagForceColor;
|
|
17
|
+
if (
|
|
18
|
+
hasFlag('no-color')
|
|
19
|
+
|| hasFlag('no-colors')
|
|
20
|
+
|| hasFlag('color=false')
|
|
21
|
+
|| hasFlag('color=never')
|
|
22
|
+
) {
|
|
23
|
+
flagForceColor = 0;
|
|
24
|
+
} else if (
|
|
25
|
+
hasFlag('color')
|
|
26
|
+
|| hasFlag('colors')
|
|
27
|
+
|| hasFlag('color=true')
|
|
28
|
+
|| hasFlag('color=always')
|
|
29
|
+
) {
|
|
30
|
+
flagForceColor = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function envForceColor() {
|
|
34
|
+
if ('FORCE_COLOR' in env) {
|
|
35
|
+
if (env.FORCE_COLOR === 'true') {
|
|
36
|
+
return 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (env.FORCE_COLOR === 'false') {
|
|
40
|
+
return 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function translateLevel(level) {
|
|
48
|
+
if (level === 0) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return {
|
|
53
|
+
level,
|
|
54
|
+
hasBasic: true,
|
|
55
|
+
has256: level >= 2,
|
|
56
|
+
has16m: level >= 3,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
|
|
61
|
+
const noFlagForceColor = envForceColor();
|
|
62
|
+
if (noFlagForceColor !== undefined) {
|
|
63
|
+
flagForceColor = noFlagForceColor;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
67
|
+
|
|
68
|
+
if (forceColor === 0) {
|
|
69
|
+
return 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (sniffFlags) {
|
|
73
|
+
if (hasFlag('color=16m')
|
|
74
|
+
|| hasFlag('color=full')
|
|
75
|
+
|| hasFlag('color=truecolor')) {
|
|
76
|
+
return 3;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (hasFlag('color=256')) {
|
|
80
|
+
return 2;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Check for Azure DevOps pipelines.
|
|
85
|
+
// Has to be above the `!streamIsTTY` check.
|
|
86
|
+
if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
|
|
87
|
+
return 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const min = forceColor || 0;
|
|
95
|
+
|
|
96
|
+
if (env.TERM === 'dumb') {
|
|
97
|
+
return min;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (process.platform === 'win32') {
|
|
101
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
102
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
103
|
+
const osRelease = os.release().split('.');
|
|
104
|
+
if (
|
|
105
|
+
Number(osRelease[0]) >= 10
|
|
106
|
+
&& Number(osRelease[2]) >= 10_586
|
|
107
|
+
) {
|
|
108
|
+
return Number(osRelease[2]) >= 14_931 ? 3 : 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if ('CI' in env) {
|
|
115
|
+
if (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {
|
|
116
|
+
return 3;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
120
|
+
return 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return min;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
127
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (env.COLORTERM === 'truecolor') {
|
|
131
|
+
return 3;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (env.TERM === 'xterm-kitty') {
|
|
135
|
+
return 3;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (env.TERM === 'xterm-ghostty') {
|
|
139
|
+
return 3;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (env.TERM === 'wezterm') {
|
|
143
|
+
return 3;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if ('TERM_PROGRAM' in env) {
|
|
147
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
148
|
+
|
|
149
|
+
switch (env.TERM_PROGRAM) {
|
|
150
|
+
case 'iTerm.app': {
|
|
151
|
+
return version >= 3 ? 3 : 2;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
case 'Apple_Terminal': {
|
|
155
|
+
return 2;
|
|
156
|
+
}
|
|
157
|
+
// No default
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
162
|
+
return 2;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
166
|
+
return 1;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if ('COLORTERM' in env) {
|
|
170
|
+
return 1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return min;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function createSupportsColor(stream, options = {}) {
|
|
177
|
+
const level = _supportsColor(stream, {
|
|
178
|
+
streamIsTTY: stream && stream.isTTY,
|
|
179
|
+
...options,
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
return translateLevel(level);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const supportsColor = {
|
|
186
|
+
stdout: createSupportsColor({isTTY: tty.isatty(1)}),
|
|
187
|
+
stderr: createSupportsColor({isTTY: tty.isatty(2)}),
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export default supportsColor;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type WidthType = 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous';
|
|
2
|
+
|
|
3
|
+
export type Options = {
|
|
4
|
+
/**
|
|
5
|
+
Whether to treat an `'ambiguous'` character as wide.
|
|
6
|
+
|
|
7
|
+
@default true
|
|
8
|
+
|
|
9
|
+
@example
|
|
10
|
+
```
|
|
11
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
12
|
+
|
|
13
|
+
const codePoint = '⛣'.codePointAt(0);
|
|
14
|
+
|
|
15
|
+
console.log(eastAsianWidth(codePoint));
|
|
16
|
+
//=> 1
|
|
17
|
+
|
|
18
|
+
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
19
|
+
//=> 2
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). __If the context cannot be established reliably, they should be treated as narrow characters by default.__
|
|
23
|
+
> - http://www.unicode.org/reports/tr11/
|
|
24
|
+
*/
|
|
25
|
+
readonly ambiguousAsWide?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
Returns the width as a number for the given code point.
|
|
30
|
+
|
|
31
|
+
@param codePoint - A Unicode code point.
|
|
32
|
+
|
|
33
|
+
@example
|
|
34
|
+
```
|
|
35
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
36
|
+
|
|
37
|
+
const codePoint = '字'.codePointAt(0);
|
|
38
|
+
|
|
39
|
+
console.log(eastAsianWidth(codePoint));
|
|
40
|
+
//=> 2
|
|
41
|
+
```
|
|
42
|
+
*/
|
|
43
|
+
export function eastAsianWidth(codePoint: number, options?: Options): 1 | 2;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
Returns the type of “East Asian Width” for the given code point.
|
|
47
|
+
|
|
48
|
+
@param codePoint - A Unicode code point.
|
|
49
|
+
|
|
50
|
+
@example
|
|
51
|
+
```
|
|
52
|
+
import {eastAsianWidthType} from 'get-east-asian-width';
|
|
53
|
+
|
|
54
|
+
const codePoint = '字'.codePointAt(0);
|
|
55
|
+
|
|
56
|
+
console.log(eastAsianWidthType(codePoint));
|
|
57
|
+
//=> 'wide'
|
|
58
|
+
```
|
|
59
|
+
*/
|
|
60
|
+
export function eastAsianWidthType(codePoint: number): WidthType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {getCategory, isAmbiguous, isFullWidth, isWide} from './lookup.js';
|
|
2
|
+
|
|
3
|
+
function validate(codePoint) {
|
|
4
|
+
if (!Number.isSafeInteger(codePoint)) {
|
|
5
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function eastAsianWidthType(codePoint) {
|
|
10
|
+
validate(codePoint);
|
|
11
|
+
|
|
12
|
+
return getCategory(codePoint);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
|
|
16
|
+
validate(codePoint);
|
|
17
|
+
|
|
18
|
+
if (
|
|
19
|
+
isFullWidth(codePoint)
|
|
20
|
+
|| isWide(codePoint)
|
|
21
|
+
|| (ambiguousAsWide && isAmbiguous(codePoint))
|
|
22
|
+
) {
|
|
23
|
+
return 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Private exports for https://github.com/sindresorhus/is-fullwidth-code-point
|
|
30
|
+
export {isFullWidth as _isFullWidth, isWide as _isWide} from './lookup.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
// Generated code.
|
|
2
|
+
|
|
3
|
+
function isAmbiguous(x) {
|
|
4
|
+
return x === 0xA1
|
|
5
|
+
|| x === 0xA4
|
|
6
|
+
|| x === 0xA7
|
|
7
|
+
|| x === 0xA8
|
|
8
|
+
|| x === 0xAA
|
|
9
|
+
|| x === 0xAD
|
|
10
|
+
|| x === 0xAE
|
|
11
|
+
|| x >= 0xB0 && x <= 0xB4
|
|
12
|
+
|| x >= 0xB6 && x <= 0xBA
|
|
13
|
+
|| x >= 0xBC && x <= 0xBF
|
|
14
|
+
|| x === 0xC6
|
|
15
|
+
|| x === 0xD0
|
|
16
|
+
|| x === 0xD7
|
|
17
|
+
|| x === 0xD8
|
|
18
|
+
|| x >= 0xDE && x <= 0xE1
|
|
19
|
+
|| x === 0xE6
|
|
20
|
+
|| x >= 0xE8 && x <= 0xEA
|
|
21
|
+
|| x === 0xEC
|
|
22
|
+
|| x === 0xED
|
|
23
|
+
|| x === 0xF0
|
|
24
|
+
|| x === 0xF2
|
|
25
|
+
|| x === 0xF3
|
|
26
|
+
|| x >= 0xF7 && x <= 0xFA
|
|
27
|
+
|| x === 0xFC
|
|
28
|
+
|| x === 0xFE
|
|
29
|
+
|| x === 0x101
|
|
30
|
+
|| x === 0x111
|
|
31
|
+
|| x === 0x113
|
|
32
|
+
|| x === 0x11B
|
|
33
|
+
|| x === 0x126
|
|
34
|
+
|| x === 0x127
|
|
35
|
+
|| x === 0x12B
|
|
36
|
+
|| x >= 0x131 && x <= 0x133
|
|
37
|
+
|| x === 0x138
|
|
38
|
+
|| x >= 0x13F && x <= 0x142
|
|
39
|
+
|| x === 0x144
|
|
40
|
+
|| x >= 0x148 && x <= 0x14B
|
|
41
|
+
|| x === 0x14D
|
|
42
|
+
|| x === 0x152
|
|
43
|
+
|| x === 0x153
|
|
44
|
+
|| x === 0x166
|
|
45
|
+
|| x === 0x167
|
|
46
|
+
|| x === 0x16B
|
|
47
|
+
|| x === 0x1CE
|
|
48
|
+
|| x === 0x1D0
|
|
49
|
+
|| x === 0x1D2
|
|
50
|
+
|| x === 0x1D4
|
|
51
|
+
|| x === 0x1D6
|
|
52
|
+
|| x === 0x1D8
|
|
53
|
+
|| x === 0x1DA
|
|
54
|
+
|| x === 0x1DC
|
|
55
|
+
|| x === 0x251
|
|
56
|
+
|| x === 0x261
|
|
57
|
+
|| x === 0x2C4
|
|
58
|
+
|| x === 0x2C7
|
|
59
|
+
|| x >= 0x2C9 && x <= 0x2CB
|
|
60
|
+
|| x === 0x2CD
|
|
61
|
+
|| x === 0x2D0
|
|
62
|
+
|| x >= 0x2D8 && x <= 0x2DB
|
|
63
|
+
|| x === 0x2DD
|
|
64
|
+
|| x === 0x2DF
|
|
65
|
+
|| x >= 0x300 && x <= 0x36F
|
|
66
|
+
|| x >= 0x391 && x <= 0x3A1
|
|
67
|
+
|| x >= 0x3A3 && x <= 0x3A9
|
|
68
|
+
|| x >= 0x3B1 && x <= 0x3C1
|
|
69
|
+
|| x >= 0x3C3 && x <= 0x3C9
|
|
70
|
+
|| x === 0x401
|
|
71
|
+
|| x >= 0x410 && x <= 0x44F
|
|
72
|
+
|| x === 0x451
|
|
73
|
+
|| x === 0x2010
|
|
74
|
+
|| x >= 0x2013 && x <= 0x2016
|
|
75
|
+
|| x === 0x2018
|
|
76
|
+
|| x === 0x2019
|
|
77
|
+
|| x === 0x201C
|
|
78
|
+
|| x === 0x201D
|
|
79
|
+
|| x >= 0x2020 && x <= 0x2022
|
|
80
|
+
|| x >= 0x2024 && x <= 0x2027
|
|
81
|
+
|| x === 0x2030
|
|
82
|
+
|| x === 0x2032
|
|
83
|
+
|| x === 0x2033
|
|
84
|
+
|| x === 0x2035
|
|
85
|
+
|| x === 0x203B
|
|
86
|
+
|| x === 0x203E
|
|
87
|
+
|| x === 0x2074
|
|
88
|
+
|| x === 0x207F
|
|
89
|
+
|| x >= 0x2081 && x <= 0x2084
|
|
90
|
+
|| x === 0x20AC
|
|
91
|
+
|| x === 0x2103
|
|
92
|
+
|| x === 0x2105
|
|
93
|
+
|| x === 0x2109
|
|
94
|
+
|| x === 0x2113
|
|
95
|
+
|| x === 0x2116
|
|
96
|
+
|| x === 0x2121
|
|
97
|
+
|| x === 0x2122
|
|
98
|
+
|| x === 0x2126
|
|
99
|
+
|| x === 0x212B
|
|
100
|
+
|| x === 0x2153
|
|
101
|
+
|| x === 0x2154
|
|
102
|
+
|| x >= 0x215B && x <= 0x215E
|
|
103
|
+
|| x >= 0x2160 && x <= 0x216B
|
|
104
|
+
|| x >= 0x2170 && x <= 0x2179
|
|
105
|
+
|| x === 0x2189
|
|
106
|
+
|| x >= 0x2190 && x <= 0x2199
|
|
107
|
+
|| x === 0x21B8
|
|
108
|
+
|| x === 0x21B9
|
|
109
|
+
|| x === 0x21D2
|
|
110
|
+
|| x === 0x21D4
|
|
111
|
+
|| x === 0x21E7
|
|
112
|
+
|| x === 0x2200
|
|
113
|
+
|| x === 0x2202
|
|
114
|
+
|| x === 0x2203
|
|
115
|
+
|| x === 0x2207
|
|
116
|
+
|| x === 0x2208
|
|
117
|
+
|| x === 0x220B
|
|
118
|
+
|| x === 0x220F
|
|
119
|
+
|| x === 0x2211
|
|
120
|
+
|| x === 0x2215
|
|
121
|
+
|| x === 0x221A
|
|
122
|
+
|| x >= 0x221D && x <= 0x2220
|
|
123
|
+
|| x === 0x2223
|
|
124
|
+
|| x === 0x2225
|
|
125
|
+
|| x >= 0x2227 && x <= 0x222C
|
|
126
|
+
|| x === 0x222E
|
|
127
|
+
|| x >= 0x2234 && x <= 0x2237
|
|
128
|
+
|| x === 0x223C
|
|
129
|
+
|| x === 0x223D
|
|
130
|
+
|| x === 0x2248
|
|
131
|
+
|| x === 0x224C
|
|
132
|
+
|| x === 0x2252
|
|
133
|
+
|| x === 0x2260
|
|
134
|
+
|| x === 0x2261
|
|
135
|
+
|| x >= 0x2264 && x <= 0x2267
|
|
136
|
+
|| x === 0x226A
|
|
137
|
+
|| x === 0x226B
|
|
138
|
+
|| x === 0x226E
|
|
139
|
+
|| x === 0x226F
|
|
140
|
+
|| x === 0x2282
|
|
141
|
+
|| x === 0x2283
|
|
142
|
+
|| x === 0x2286
|
|
143
|
+
|| x === 0x2287
|
|
144
|
+
|| x === 0x2295
|
|
145
|
+
|| x === 0x2299
|
|
146
|
+
|| x === 0x22A5
|
|
147
|
+
|| x === 0x22BF
|
|
148
|
+
|| x === 0x2312
|
|
149
|
+
|| x >= 0x2460 && x <= 0x24E9
|
|
150
|
+
|| x >= 0x24EB && x <= 0x254B
|
|
151
|
+
|| x >= 0x2550 && x <= 0x2573
|
|
152
|
+
|| x >= 0x2580 && x <= 0x258F
|
|
153
|
+
|| x >= 0x2592 && x <= 0x2595
|
|
154
|
+
|| x === 0x25A0
|
|
155
|
+
|| x === 0x25A1
|
|
156
|
+
|| x >= 0x25A3 && x <= 0x25A9
|
|
157
|
+
|| x === 0x25B2
|
|
158
|
+
|| x === 0x25B3
|
|
159
|
+
|| x === 0x25B6
|
|
160
|
+
|| x === 0x25B7
|
|
161
|
+
|| x === 0x25BC
|
|
162
|
+
|| x === 0x25BD
|
|
163
|
+
|| x === 0x25C0
|
|
164
|
+
|| x === 0x25C1
|
|
165
|
+
|| x >= 0x25C6 && x <= 0x25C8
|
|
166
|
+
|| x === 0x25CB
|
|
167
|
+
|| x >= 0x25CE && x <= 0x25D1
|
|
168
|
+
|| x >= 0x25E2 && x <= 0x25E5
|
|
169
|
+
|| x === 0x25EF
|
|
170
|
+
|| x === 0x2605
|
|
171
|
+
|| x === 0x2606
|
|
172
|
+
|| x === 0x2609
|
|
173
|
+
|| x === 0x260E
|
|
174
|
+
|| x === 0x260F
|
|
175
|
+
|| x === 0x261C
|
|
176
|
+
|| x === 0x261E
|
|
177
|
+
|| x === 0x2640
|
|
178
|
+
|| x === 0x2642
|
|
179
|
+
|| x === 0x2660
|
|
180
|
+
|| x === 0x2661
|
|
181
|
+
|| x >= 0x2663 && x <= 0x2665
|
|
182
|
+
|| x >= 0x2667 && x <= 0x266A
|
|
183
|
+
|| x === 0x266C
|
|
184
|
+
|| x === 0x266D
|
|
185
|
+
|| x === 0x266F
|
|
186
|
+
|| x === 0x269E
|
|
187
|
+
|| x === 0x269F
|
|
188
|
+
|| x === 0x26BF
|
|
189
|
+
|| x >= 0x26C6 && x <= 0x26CD
|
|
190
|
+
|| x >= 0x26CF && x <= 0x26D3
|
|
191
|
+
|| x >= 0x26D5 && x <= 0x26E1
|
|
192
|
+
|| x === 0x26E3
|
|
193
|
+
|| x === 0x26E8
|
|
194
|
+
|| x === 0x26E9
|
|
195
|
+
|| x >= 0x26EB && x <= 0x26F1
|
|
196
|
+
|| x === 0x26F4
|
|
197
|
+
|| x >= 0x26F6 && x <= 0x26F9
|
|
198
|
+
|| x === 0x26FB
|
|
199
|
+
|| x === 0x26FC
|
|
200
|
+
|| x === 0x26FE
|
|
201
|
+
|| x === 0x26FF
|
|
202
|
+
|| x === 0x273D
|
|
203
|
+
|| x >= 0x2776 && x <= 0x277F
|
|
204
|
+
|| x >= 0x2B56 && x <= 0x2B59
|
|
205
|
+
|| x >= 0x3248 && x <= 0x324F
|
|
206
|
+
|| x >= 0xE000 && x <= 0xF8FF
|
|
207
|
+
|| x >= 0xFE00 && x <= 0xFE0F
|
|
208
|
+
|| x === 0xFFFD
|
|
209
|
+
|| x >= 0x1F100 && x <= 0x1F10A
|
|
210
|
+
|| x >= 0x1F110 && x <= 0x1F12D
|
|
211
|
+
|| x >= 0x1F130 && x <= 0x1F169
|
|
212
|
+
|| x >= 0x1F170 && x <= 0x1F18D
|
|
213
|
+
|| x === 0x1F18F
|
|
214
|
+
|| x === 0x1F190
|
|
215
|
+
|| x >= 0x1F19B && x <= 0x1F1AC
|
|
216
|
+
|| x >= 0xE0100 && x <= 0xE01EF
|
|
217
|
+
|| x >= 0xF0000 && x <= 0xFFFFD
|
|
218
|
+
|| x >= 0x100000 && x <= 0x10FFFD;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function isFullWidth(x) {
|
|
222
|
+
return x === 0x3000
|
|
223
|
+
|| x >= 0xFF01 && x <= 0xFF60
|
|
224
|
+
|| x >= 0xFFE0 && x <= 0xFFE6;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function isWide(x) {
|
|
228
|
+
return x >= 0x1100 && x <= 0x115F
|
|
229
|
+
|| x === 0x231A
|
|
230
|
+
|| x === 0x231B
|
|
231
|
+
|| x === 0x2329
|
|
232
|
+
|| x === 0x232A
|
|
233
|
+
|| x >= 0x23E9 && x <= 0x23EC
|
|
234
|
+
|| x === 0x23F0
|
|
235
|
+
|| x === 0x23F3
|
|
236
|
+
|| x === 0x25FD
|
|
237
|
+
|| x === 0x25FE
|
|
238
|
+
|| x === 0x2614
|
|
239
|
+
|| x === 0x2615
|
|
240
|
+
|| x >= 0x2630 && x <= 0x2637
|
|
241
|
+
|| x >= 0x2648 && x <= 0x2653
|
|
242
|
+
|| x === 0x267F
|
|
243
|
+
|| x >= 0x268A && x <= 0x268F
|
|
244
|
+
|| x === 0x2693
|
|
245
|
+
|| x === 0x26A1
|
|
246
|
+
|| x === 0x26AA
|
|
247
|
+
|| x === 0x26AB
|
|
248
|
+
|| x === 0x26BD
|
|
249
|
+
|| x === 0x26BE
|
|
250
|
+
|| x === 0x26C4
|
|
251
|
+
|| x === 0x26C5
|
|
252
|
+
|| x === 0x26CE
|
|
253
|
+
|| x === 0x26D4
|
|
254
|
+
|| x === 0x26EA
|
|
255
|
+
|| x === 0x26F2
|
|
256
|
+
|| x === 0x26F3
|
|
257
|
+
|| x === 0x26F5
|
|
258
|
+
|| x === 0x26FA
|
|
259
|
+
|| x === 0x26FD
|
|
260
|
+
|| x === 0x2705
|
|
261
|
+
|| x === 0x270A
|
|
262
|
+
|| x === 0x270B
|
|
263
|
+
|| x === 0x2728
|
|
264
|
+
|| x === 0x274C
|
|
265
|
+
|| x === 0x274E
|
|
266
|
+
|| x >= 0x2753 && x <= 0x2755
|
|
267
|
+
|| x === 0x2757
|
|
268
|
+
|| x >= 0x2795 && x <= 0x2797
|
|
269
|
+
|| x === 0x27B0
|
|
270
|
+
|| x === 0x27BF
|
|
271
|
+
|| x === 0x2B1B
|
|
272
|
+
|| x === 0x2B1C
|
|
273
|
+
|| x === 0x2B50
|
|
274
|
+
|| x === 0x2B55
|
|
275
|
+
|| x >= 0x2E80 && x <= 0x2E99
|
|
276
|
+
|| x >= 0x2E9B && x <= 0x2EF3
|
|
277
|
+
|| x >= 0x2F00 && x <= 0x2FD5
|
|
278
|
+
|| x >= 0x2FF0 && x <= 0x2FFF
|
|
279
|
+
|| x >= 0x3001 && x <= 0x303E
|
|
280
|
+
|| x >= 0x3041 && x <= 0x3096
|
|
281
|
+
|| x >= 0x3099 && x <= 0x30FF
|
|
282
|
+
|| x >= 0x3105 && x <= 0x312F
|
|
283
|
+
|| x >= 0x3131 && x <= 0x318E
|
|
284
|
+
|| x >= 0x3190 && x <= 0x31E5
|
|
285
|
+
|| x >= 0x31EF && x <= 0x321E
|
|
286
|
+
|| x >= 0x3220 && x <= 0x3247
|
|
287
|
+
|| x >= 0x3250 && x <= 0xA48C
|
|
288
|
+
|| x >= 0xA490 && x <= 0xA4C6
|
|
289
|
+
|| x >= 0xA960 && x <= 0xA97C
|
|
290
|
+
|| x >= 0xAC00 && x <= 0xD7A3
|
|
291
|
+
|| x >= 0xF900 && x <= 0xFAFF
|
|
292
|
+
|| x >= 0xFE10 && x <= 0xFE19
|
|
293
|
+
|| x >= 0xFE30 && x <= 0xFE52
|
|
294
|
+
|| x >= 0xFE54 && x <= 0xFE66
|
|
295
|
+
|| x >= 0xFE68 && x <= 0xFE6B
|
|
296
|
+
|| x >= 0x16FE0 && x <= 0x16FE4
|
|
297
|
+
|| x >= 0x16FF0 && x <= 0x16FF6
|
|
298
|
+
|| x >= 0x17000 && x <= 0x18CD5
|
|
299
|
+
|| x >= 0x18CFF && x <= 0x18D1E
|
|
300
|
+
|| x >= 0x18D80 && x <= 0x18DF2
|
|
301
|
+
|| x >= 0x1AFF0 && x <= 0x1AFF3
|
|
302
|
+
|| x >= 0x1AFF5 && x <= 0x1AFFB
|
|
303
|
+
|| x === 0x1AFFD
|
|
304
|
+
|| x === 0x1AFFE
|
|
305
|
+
|| x >= 0x1B000 && x <= 0x1B122
|
|
306
|
+
|| x === 0x1B132
|
|
307
|
+
|| x >= 0x1B150 && x <= 0x1B152
|
|
308
|
+
|| x === 0x1B155
|
|
309
|
+
|| x >= 0x1B164 && x <= 0x1B167
|
|
310
|
+
|| x >= 0x1B170 && x <= 0x1B2FB
|
|
311
|
+
|| x >= 0x1D300 && x <= 0x1D356
|
|
312
|
+
|| x >= 0x1D360 && x <= 0x1D376
|
|
313
|
+
|| x === 0x1F004
|
|
314
|
+
|| x === 0x1F0CF
|
|
315
|
+
|| x === 0x1F18E
|
|
316
|
+
|| x >= 0x1F191 && x <= 0x1F19A
|
|
317
|
+
|| x >= 0x1F200 && x <= 0x1F202
|
|
318
|
+
|| x >= 0x1F210 && x <= 0x1F23B
|
|
319
|
+
|| x >= 0x1F240 && x <= 0x1F248
|
|
320
|
+
|| x === 0x1F250
|
|
321
|
+
|| x === 0x1F251
|
|
322
|
+
|| x >= 0x1F260 && x <= 0x1F265
|
|
323
|
+
|| x >= 0x1F300 && x <= 0x1F320
|
|
324
|
+
|| x >= 0x1F32D && x <= 0x1F335
|
|
325
|
+
|| x >= 0x1F337 && x <= 0x1F37C
|
|
326
|
+
|| x >= 0x1F37E && x <= 0x1F393
|
|
327
|
+
|| x >= 0x1F3A0 && x <= 0x1F3CA
|
|
328
|
+
|| x >= 0x1F3CF && x <= 0x1F3D3
|
|
329
|
+
|| x >= 0x1F3E0 && x <= 0x1F3F0
|
|
330
|
+
|| x === 0x1F3F4
|
|
331
|
+
|| x >= 0x1F3F8 && x <= 0x1F43E
|
|
332
|
+
|| x === 0x1F440
|
|
333
|
+
|| x >= 0x1F442 && x <= 0x1F4FC
|
|
334
|
+
|| x >= 0x1F4FF && x <= 0x1F53D
|
|
335
|
+
|| x >= 0x1F54B && x <= 0x1F54E
|
|
336
|
+
|| x >= 0x1F550 && x <= 0x1F567
|
|
337
|
+
|| x === 0x1F57A
|
|
338
|
+
|| x === 0x1F595
|
|
339
|
+
|| x === 0x1F596
|
|
340
|
+
|| x === 0x1F5A4
|
|
341
|
+
|| x >= 0x1F5FB && x <= 0x1F64F
|
|
342
|
+
|| x >= 0x1F680 && x <= 0x1F6C5
|
|
343
|
+
|| x === 0x1F6CC
|
|
344
|
+
|| x >= 0x1F6D0 && x <= 0x1F6D2
|
|
345
|
+
|| x >= 0x1F6D5 && x <= 0x1F6D8
|
|
346
|
+
|| x >= 0x1F6DC && x <= 0x1F6DF
|
|
347
|
+
|| x === 0x1F6EB
|
|
348
|
+
|| x === 0x1F6EC
|
|
349
|
+
|| x >= 0x1F6F4 && x <= 0x1F6FC
|
|
350
|
+
|| x >= 0x1F7E0 && x <= 0x1F7EB
|
|
351
|
+
|| x === 0x1F7F0
|
|
352
|
+
|| x >= 0x1F90C && x <= 0x1F93A
|
|
353
|
+
|| x >= 0x1F93C && x <= 0x1F945
|
|
354
|
+
|| x >= 0x1F947 && x <= 0x1F9FF
|
|
355
|
+
|| x >= 0x1FA70 && x <= 0x1FA7C
|
|
356
|
+
|| x >= 0x1FA80 && x <= 0x1FA8A
|
|
357
|
+
|| x >= 0x1FA8E && x <= 0x1FAC6
|
|
358
|
+
|| x === 0x1FAC8
|
|
359
|
+
|| x >= 0x1FACD && x <= 0x1FADC
|
|
360
|
+
|| x >= 0x1FADF && x <= 0x1FAEA
|
|
361
|
+
|| x >= 0x1FAEF && x <= 0x1FAF8
|
|
362
|
+
|| x >= 0x20000 && x <= 0x2FFFD
|
|
363
|
+
|| x >= 0x30000 && x <= 0x3FFFD;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function getCategory(x) {
|
|
367
|
+
if (isAmbiguous(x)) return 'ambiguous';
|
|
368
|
+
|
|
369
|
+
if (isFullWidth(x)) return 'fullwidth';
|
|
370
|
+
|
|
371
|
+
if (
|
|
372
|
+
x === 0x20A9
|
|
373
|
+
|| x >= 0xFF61 && x <= 0xFFBE
|
|
374
|
+
|| x >= 0xFFC2 && x <= 0xFFC7
|
|
375
|
+
|| x >= 0xFFCA && x <= 0xFFCF
|
|
376
|
+
|| x >= 0xFFD2 && x <= 0xFFD7
|
|
377
|
+
|| x >= 0xFFDA && x <= 0xFFDC
|
|
378
|
+
|| x >= 0xFFE8 && x <= 0xFFEE
|
|
379
|
+
) {
|
|
380
|
+
return 'halfwidth';
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
if (
|
|
384
|
+
x >= 0x20 && x <= 0x7E
|
|
385
|
+
|| x === 0xA2
|
|
386
|
+
|| x === 0xA3
|
|
387
|
+
|| x === 0xA5
|
|
388
|
+
|| x === 0xA6
|
|
389
|
+
|| x === 0xAC
|
|
390
|
+
|| x === 0xAF
|
|
391
|
+
|| x >= 0x27E6 && x <= 0x27ED
|
|
392
|
+
|| x === 0x2985
|
|
393
|
+
|| x === 0x2986
|
|
394
|
+
) {
|
|
395
|
+
return 'narrow';
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
if (isWide(x)) return 'wide';
|
|
399
|
+
|
|
400
|
+
return 'neutral';
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export {isAmbiguous, isFullWidth, isWide, getCategory};
|