@sng2c/pi-the-giver 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@earendil-works/pi-tui/README.md +779 -0
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +54 -0
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +632 -0
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +22 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js +104 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +22 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js +35 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +249 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +1916 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +28 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/image.js +76 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +37 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js +426 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +31 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +69 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +95 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +688 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +50 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +159 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +50 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +185 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +12 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.js +23 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +19 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js +89 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +13 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js +51 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +39 -0
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.js +2 -0
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +16 -0
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +110 -0
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +23 -0
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/index.js +32 -0
- package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +193 -0
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +174 -0
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/keys.d.ts +184 -0
- package/node_modules/@earendil-works/pi-tui/dist/keys.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/keys.js +1173 -0
- package/node_modules/@earendil-works/pi-tui/dist/keys.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts +28 -0
- package/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/kill-ring.js +44 -0
- package/node_modules/@earendil-works/pi-tui/dist/kill-ring.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +50 -0
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +339 -0
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +85 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +324 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +88 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +315 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +227 -0
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/tui.js +1077 -0
- package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts +17 -0
- package/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/undo-stack.js +25 -0
- package/node_modules/@earendil-works/pi-tui/dist/undo-stack.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +79 -0
- package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +1017 -0
- package/node_modules/@earendil-works/pi-tui/dist/utils.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/license +9 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/package.json +83 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/readme.md +297 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/index.js +225 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/@earendil-works/pi-tui/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/@earendil-works/pi-tui/package.json +52 -0
- package/node_modules/@types/mime-types/LICENSE +21 -0
- package/node_modules/@types/mime-types/README.md +28 -0
- package/node_modules/@types/mime-types/index.d.ts +9 -0
- package/node_modules/@types/mime-types/package.json +25 -0
- package/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/node_modules/get-east-asian-width/index.js +30 -0
- package/node_modules/get-east-asian-width/license +9 -0
- package/node_modules/get-east-asian-width/lookup-data.js +21 -0
- package/node_modules/get-east-asian-width/lookup.js +138 -0
- package/node_modules/get-east-asian-width/package.json +71 -0
- package/node_modules/get-east-asian-width/readme.md +65 -0
- package/node_modules/get-east-asian-width/utilities.js +24 -0
- package/node_modules/jiti/LICENSE +21 -0
- package/node_modules/jiti/README.md +258 -0
- package/node_modules/jiti/dist/babel.cjs +257 -0
- package/node_modules/jiti/dist/jiti.cjs +1 -0
- package/node_modules/jiti/lib/jiti-cli.mjs +34 -0
- package/node_modules/jiti/lib/jiti-hooks.mjs +124 -0
- package/node_modules/jiti/lib/jiti-native.mjs +121 -0
- package/node_modules/jiti/lib/jiti-register.d.mts +1 -0
- package/node_modules/jiti/lib/jiti-register.mjs +4 -0
- package/node_modules/jiti/lib/jiti-static.mjs +23 -0
- package/node_modules/jiti/lib/jiti.cjs +30 -0
- package/node_modules/jiti/lib/jiti.d.cts +8 -0
- package/node_modules/jiti/lib/jiti.d.mts +8 -0
- package/node_modules/jiti/lib/jiti.mjs +29 -0
- package/node_modules/jiti/lib/types.d.ts +420 -0
- package/node_modules/jiti/package.json +146 -0
- package/node_modules/koffi/CHANGELOG.md +1093 -0
- package/node_modules/koffi/LICENSE.txt +22 -0
- package/node_modules/koffi/README.md +43 -0
- package/node_modules/koffi/build/koffi/darwin_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/darwin_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_armhf/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_loong64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_riscv64d/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/musl_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/musl_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/openbsd_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/openbsd_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.node +0 -0
- package/node_modules/koffi/doc/benchmarks.md +126 -0
- package/node_modules/koffi/doc/callbacks.md +210 -0
- package/node_modules/koffi/doc/contribute.md +148 -0
- package/node_modules/koffi/doc/functions.md +250 -0
- package/node_modules/koffi/doc/index.md +61 -0
- package/node_modules/koffi/doc/input.md +471 -0
- package/node_modules/koffi/doc/migration.md +159 -0
- package/node_modules/koffi/doc/misc.md +180 -0
- package/node_modules/koffi/doc/output.md +305 -0
- package/node_modules/koffi/doc/packaging.md +88 -0
- package/node_modules/koffi/doc/platforms.md +36 -0
- package/node_modules/koffi/doc/pointers.md +328 -0
- package/node_modules/koffi/doc/start.md +118 -0
- package/node_modules/koffi/doc/unions.md +186 -0
- package/node_modules/koffi/doc/variables.md +102 -0
- package/node_modules/koffi/index.d.ts +288 -0
- package/node_modules/koffi/index.js +634 -0
- package/node_modules/koffi/indirect.js +533 -0
- package/node_modules/koffi/lib/native/base/base.cc +11015 -0
- package/node_modules/koffi/lib/native/base/base.hh +6003 -0
- package/node_modules/koffi/lib/native/base/crc.inc +2214 -0
- package/node_modules/koffi/lib/native/base/crc_gen.py +72 -0
- package/node_modules/koffi/lib/native/base/mimetypes.inc +1248 -0
- package/node_modules/koffi/lib/native/base/mimetypes_gen.py +58 -0
- package/node_modules/koffi/lib/native/base/tower.cc +821 -0
- package/node_modules/koffi/lib/native/base/tower.hh +81 -0
- package/node_modules/koffi/lib/native/base/unicode.inc +408 -0
- package/node_modules/koffi/lib/native/base/unicode_gen.py +152 -0
- package/node_modules/koffi/package.json +38 -0
- package/node_modules/koffi/src/cnoke/LICENSE.txt +22 -0
- package/node_modules/koffi/src/cnoke/README.md +99 -0
- package/node_modules/koffi/src/cnoke/assets/FindCNoke.cmake +127 -0
- package/node_modules/koffi/src/cnoke/assets/toolchains.json +126 -0
- package/node_modules/koffi/src/cnoke/assets/win_delay_hook.c +36 -0
- package/node_modules/koffi/src/cnoke/cnoke.js +170 -0
- package/node_modules/koffi/src/cnoke/package.json +24 -0
- package/node_modules/koffi/src/cnoke/src/builder.js +511 -0
- package/node_modules/koffi/src/cnoke/src/index.js +10 -0
- package/node_modules/koffi/src/cnoke/src/tools.js +407 -0
- package/node_modules/koffi/src/koffi/CMakeLists.txt +182 -0
- package/node_modules/koffi/src/koffi/src/abi_arm32.cc +1018 -0
- package/node_modules/koffi/src/koffi/src/abi_arm32_asm.S +169 -0
- package/node_modules/koffi/src/koffi/src/abi_arm64.cc +1295 -0
- package/node_modules/koffi/src/koffi/src/abi_arm64_asm.S +195 -0
- package/node_modules/koffi/src/koffi/src/abi_arm64_asm.asm +174 -0
- package/node_modules/koffi/src/koffi/src/abi_loong64.cc +5 -0
- package/node_modules/koffi/src/koffi/src/abi_loong64_asm.S +204 -0
- package/node_modules/koffi/src/koffi/src/abi_riscv64.cc +915 -0
- package/node_modules/koffi/src/koffi/src/abi_riscv64_asm.S +203 -0
- package/node_modules/koffi/src/koffi/src/abi_x64_sysv.cc +939 -0
- package/node_modules/koffi/src/koffi/src/abi_x64_sysv_asm.S +231 -0
- package/node_modules/koffi/src/koffi/src/abi_x64_win.cc +715 -0
- package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.S +166 -0
- package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.asm +192 -0
- package/node_modules/koffi/src/koffi/src/abi_x86.cc +860 -0
- package/node_modules/koffi/src/koffi/src/abi_x86_asm.S +193 -0
- package/node_modules/koffi/src/koffi/src/abi_x86_asm.asm +177 -0
- package/node_modules/koffi/src/koffi/src/call.cc +1326 -0
- package/node_modules/koffi/src/koffi/src/call.hh +179 -0
- package/node_modules/koffi/src/koffi/src/errno.inc +462 -0
- package/node_modules/koffi/src/koffi/src/ffi.cc +2702 -0
- package/node_modules/koffi/src/koffi/src/ffi.hh +354 -0
- package/node_modules/koffi/src/koffi/src/init.js +105 -0
- package/node_modules/koffi/src/koffi/src/parser.cc +220 -0
- package/node_modules/koffi/src/koffi/src/parser.hh +54 -0
- package/node_modules/koffi/src/koffi/src/util.cc +1807 -0
- package/node_modules/koffi/src/koffi/src/util.hh +221 -0
- package/node_modules/koffi/src/koffi/src/uv.cc +193 -0
- package/node_modules/koffi/src/koffi/src/uv.def +10 -0
- package/node_modules/koffi/src/koffi/src/uv.hh +40 -0
- package/node_modules/koffi/src/koffi/src/win32.cc +198 -0
- package/node_modules/koffi/src/koffi/src/win32.hh +119 -0
- package/node_modules/koffi/src/koffi/tools/write_trampolines.js +77 -0
- package/node_modules/koffi/vendor/node-addon-api/LICENSE.md +9 -0
- package/node_modules/koffi/vendor/node-addon-api/README.md +95 -0
- package/node_modules/koffi/vendor/node-addon-api/napi-inl.deprecated.h +186 -0
- package/node_modules/koffi/vendor/node-addon-api/napi-inl.h +7033 -0
- package/node_modules/koffi/vendor/node-addon-api/napi.h +3309 -0
- package/node_modules/koffi/vendor/node-api-headers/LICENSE +21 -0
- package/node_modules/koffi/vendor/node-api-headers/README.md +95 -0
- package/node_modules/koffi/vendor/node-api-headers/def/js_native_api.def +125 -0
- package/node_modules/koffi/vendor/node-api-headers/def/node_api.def +157 -0
- package/node_modules/koffi/vendor/node-api-headers/include/js_native_api.h +591 -0
- package/node_modules/koffi/vendor/node-api-headers/include/js_native_api_types.h +210 -0
- package/node_modules/koffi/vendor/node-api-headers/include/node_api.h +265 -0
- package/node_modules/koffi/vendor/node-api-headers/include/node_api_types.h +58 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/aix.h +32 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/bsd.h +34 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/darwin.h +61 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/errno.h +483 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/linux.h +34 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/os390.h +33 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/posix.h +31 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/sunos.h +44 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/threadpool.h +37 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/tree.h +521 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/unix.h +512 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/version.h +43 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv/win.h +698 -0
- package/node_modules/koffi/vendor/node-api-headers/include/uv.h +1990 -0
- package/node_modules/marked/LICENSE.md +44 -0
- package/node_modules/marked/README.md +106 -0
- package/node_modules/marked/bin/main.js +282 -0
- package/node_modules/marked/bin/marked.js +15 -0
- package/node_modules/marked/lib/marked.cjs +2211 -0
- package/node_modules/marked/lib/marked.cjs.map +7 -0
- package/node_modules/marked/lib/marked.d.cts +728 -0
- package/node_modules/marked/lib/marked.d.ts +728 -0
- package/node_modules/marked/lib/marked.esm.js +2189 -0
- package/node_modules/marked/lib/marked.esm.js.map +7 -0
- package/node_modules/marked/lib/marked.umd.js +2213 -0
- package/node_modules/marked/lib/marked.umd.js.map +7 -0
- package/node_modules/marked/man/marked.1 +111 -0
- package/node_modules/marked/man/marked.1.md +92 -0
- package/node_modules/marked/marked.min.js +69 -0
- package/node_modules/marked/package.json +111 -0
- package/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +109 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +126 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/pi-subagents/CHANGELOG.md +1179 -0
- package/node_modules/pi-subagents/README.md +1380 -0
- package/node_modules/pi-subagents/agents/context-builder.md +46 -0
- package/node_modules/pi-subagents/agents/delegate.md +12 -0
- package/node_modules/pi-subagents/agents/oracle.md +73 -0
- package/node_modules/pi-subagents/agents/planner.md +55 -0
- package/node_modules/pi-subagents/agents/researcher.md +52 -0
- package/node_modules/pi-subagents/agents/reviewer.md +79 -0
- package/node_modules/pi-subagents/agents/scout.md +50 -0
- package/node_modules/pi-subagents/agents/worker.md +55 -0
- package/node_modules/pi-subagents/install.mjs +92 -0
- package/node_modules/pi-subagents/package.json +80 -0
- package/node_modules/pi-subagents/prompts/gather-context-and-clarify.md +13 -0
- package/node_modules/pi-subagents/prompts/parallel-cleanup.md +59 -0
- package/node_modules/pi-subagents/prompts/parallel-context-build.md +55 -0
- package/node_modules/pi-subagents/prompts/parallel-handoff-plan.md +61 -0
- package/node_modules/pi-subagents/prompts/parallel-research.md +50 -0
- package/node_modules/pi-subagents/prompts/parallel-review.md +54 -0
- package/node_modules/pi-subagents/prompts/review-loop.md +41 -0
- package/node_modules/pi-subagents/skills/pi-subagents/SKILL.md +860 -0
- package/node_modules/pi-subagents/src/agents/agent-management.ts +880 -0
- package/node_modules/pi-subagents/src/agents/agent-scope.ts +6 -0
- package/node_modules/pi-subagents/src/agents/agent-selection.ts +25 -0
- package/node_modules/pi-subagents/src/agents/agent-serializer.ts +110 -0
- package/node_modules/pi-subagents/src/agents/agents.ts +1423 -0
- package/node_modules/pi-subagents/src/agents/chain-serializer.ts +252 -0
- package/node_modules/pi-subagents/src/agents/frontmatter.ts +93 -0
- package/node_modules/pi-subagents/src/agents/identity.ts +30 -0
- package/node_modules/pi-subagents/src/agents/proactive-skills.ts +191 -0
- package/node_modules/pi-subagents/src/agents/skills.ts +729 -0
- package/node_modules/pi-subagents/src/extension/companion-suggestions.ts +359 -0
- package/node_modules/pi-subagents/src/extension/config.ts +39 -0
- package/node_modules/pi-subagents/src/extension/control-notices.ts +92 -0
- package/node_modules/pi-subagents/src/extension/doctor.ts +222 -0
- package/node_modules/pi-subagents/src/extension/fanout-child.ts +172 -0
- package/node_modules/pi-subagents/src/extension/index.ts +681 -0
- package/node_modules/pi-subagents/src/extension/schemas.ts +265 -0
- package/node_modules/pi-subagents/src/intercom/intercom-bridge.ts +412 -0
- package/node_modules/pi-subagents/src/intercom/result-intercom.ts +377 -0
- package/node_modules/pi-subagents/src/profiles/profiles.ts +637 -0
- package/node_modules/pi-subagents/src/runs/background/async-execution.ts +1021 -0
- package/node_modules/pi-subagents/src/runs/background/async-job-tracker.ts +431 -0
- package/node_modules/pi-subagents/src/runs/background/async-resume.ts +391 -0
- package/node_modules/pi-subagents/src/runs/background/async-status.ts +370 -0
- package/node_modules/pi-subagents/src/runs/background/chain-append.ts +282 -0
- package/node_modules/pi-subagents/src/runs/background/chain-root-attachment.ts +191 -0
- package/node_modules/pi-subagents/src/runs/background/completion-dedupe.ts +63 -0
- package/node_modules/pi-subagents/src/runs/background/control-channel.ts +227 -0
- package/node_modules/pi-subagents/src/runs/background/notify.ts +108 -0
- package/node_modules/pi-subagents/src/runs/background/parallel-groups.ts +45 -0
- package/node_modules/pi-subagents/src/runs/background/result-watcher.ts +316 -0
- package/node_modules/pi-subagents/src/runs/background/run-id-resolver.ts +83 -0
- package/node_modules/pi-subagents/src/runs/background/run-status.ts +274 -0
- package/node_modules/pi-subagents/src/runs/background/stale-run-reconciler.ts +368 -0
- package/node_modules/pi-subagents/src/runs/background/subagent-runner.ts +2797 -0
- package/node_modules/pi-subagents/src/runs/background/top-level-async.ts +13 -0
- package/node_modules/pi-subagents/src/runs/foreground/chain-clarify.ts +1333 -0
- package/node_modules/pi-subagents/src/runs/foreground/chain-execution.ts +1239 -0
- package/node_modules/pi-subagents/src/runs/foreground/execution.ts +1110 -0
- package/node_modules/pi-subagents/src/runs/foreground/subagent-executor.ts +3299 -0
- package/node_modules/pi-subagents/src/runs/shared/acceptance.ts +879 -0
- package/node_modules/pi-subagents/src/runs/shared/chain-outputs.ts +116 -0
- package/node_modules/pi-subagents/src/runs/shared/completion-guard.ts +147 -0
- package/node_modules/pi-subagents/src/runs/shared/dynamic-fanout.ts +295 -0
- package/node_modules/pi-subagents/src/runs/shared/long-running-guard.ts +175 -0
- package/node_modules/pi-subagents/src/runs/shared/mcp-direct-tool-allowlist.ts +365 -0
- package/node_modules/pi-subagents/src/runs/shared/model-fallback.ts +145 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-events.ts +877 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-path.ts +52 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-render.ts +115 -0
- package/node_modules/pi-subagents/src/runs/shared/parallel-utils.ts +197 -0
- package/node_modules/pi-subagents/src/runs/shared/pi-args.ts +242 -0
- package/node_modules/pi-subagents/src/runs/shared/pi-spawn.ts +147 -0
- package/node_modules/pi-subagents/src/runs/shared/run-history.ts +60 -0
- package/node_modules/pi-subagents/src/runs/shared/single-output.ts +180 -0
- package/node_modules/pi-subagents/src/runs/shared/structured-output.ts +77 -0
- package/node_modules/pi-subagents/src/runs/shared/subagent-control.ts +223 -0
- package/node_modules/pi-subagents/src/runs/shared/subagent-prompt-runtime.ts +222 -0
- package/node_modules/pi-subagents/src/runs/shared/workflow-graph.ts +206 -0
- package/node_modules/pi-subagents/src/runs/shared/worktree.ts +600 -0
- package/node_modules/pi-subagents/src/shared/artifacts.ts +112 -0
- package/node_modules/pi-subagents/src/shared/atomic-json.ts +73 -0
- package/node_modules/pi-subagents/src/shared/file-coalescer.ts +40 -0
- package/node_modules/pi-subagents/src/shared/fork-context.ts +187 -0
- package/node_modules/pi-subagents/src/shared/formatters.ts +133 -0
- package/node_modules/pi-subagents/src/shared/jsonl-writer.ts +81 -0
- package/node_modules/pi-subagents/src/shared/model-info.ts +78 -0
- package/node_modules/pi-subagents/src/shared/post-exit-stdio-guard.ts +85 -0
- package/node_modules/pi-subagents/src/shared/session-identity.ts +10 -0
- package/node_modules/pi-subagents/src/shared/session-tokens.ts +44 -0
- package/node_modules/pi-subagents/src/shared/settings.ts +448 -0
- package/node_modules/pi-subagents/src/shared/status-format.ts +49 -0
- package/node_modules/pi-subagents/src/shared/types.ts +1142 -0
- package/node_modules/pi-subagents/src/shared/utils.ts +554 -0
- package/node_modules/pi-subagents/src/slash/prompt-template-bridge.ts +420 -0
- package/node_modules/pi-subagents/src/slash/slash-bridge.ts +176 -0
- package/node_modules/pi-subagents/src/slash/slash-commands.ts +1282 -0
- package/node_modules/pi-subagents/src/slash/slash-live-state.ts +292 -0
- package/node_modules/pi-subagents/src/tui/render-helpers.ts +80 -0
- package/node_modules/pi-subagents/src/tui/render.ts +1740 -0
- package/node_modules/typebox/build/compile/code.d.mts +12 -0
- package/node_modules/typebox/build/compile/code.mjs +65 -0
- package/node_modules/typebox/build/compile/compile.d.mts +6 -0
- package/node_modules/typebox/build/compile/compile.mjs +12 -0
- package/node_modules/typebox/build/compile/index.d.mts +8 -0
- package/node_modules/typebox/build/compile/index.mjs +14 -0
- package/node_modules/typebox/build/compile/validator.d.mts +42 -0
- package/node_modules/typebox/build/compile/validator.mjs +116 -0
- package/node_modules/typebox/build/error/errors.d.mts +214 -0
- package/node_modules/typebox/build/error/errors.mjs +18 -0
- package/node_modules/typebox/build/error/index.d.mts +1 -0
- package/node_modules/typebox/build/error/index.mjs +1 -0
- package/node_modules/typebox/build/format/_idna.d.mts +2 -0
- package/node_modules/typebox/build/format/_idna.mjs +216 -0
- package/node_modules/typebox/build/format/_puny.d.mts +1 -0
- package/node_modules/typebox/build/format/_puny.mjs +74 -0
- package/node_modules/typebox/build/format/_registry.d.mts +15 -0
- package/node_modules/typebox/build/format/_registry.mjs +96 -0
- package/node_modules/typebox/build/format/date-time.d.mts +6 -0
- package/node_modules/typebox/build/format/date-time.mjs +11 -0
- package/node_modules/typebox/build/format/date.d.mts +6 -0
- package/node_modules/typebox/build/format/date.mjs +19 -0
- package/node_modules/typebox/build/format/duration.d.mts +5 -0
- package/node_modules/typebox/build/format/duration.mjs +8 -0
- package/node_modules/typebox/build/format/email.d.mts +5 -0
- package/node_modules/typebox/build/format/email.mjs +8 -0
- package/node_modules/typebox/build/format/format.d.mts +22 -0
- package/node_modules/typebox/build/format/format.mjs +22 -0
- package/node_modules/typebox/build/format/hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/hostname.mjs +18 -0
- package/node_modules/typebox/build/format/idn-email.d.mts +5 -0
- package/node_modules/typebox/build/format/idn-email.mjs +8 -0
- package/node_modules/typebox/build/format/idn-hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/idn-hostname.mjs +19 -0
- package/node_modules/typebox/build/format/index.d.mts +4 -0
- package/node_modules/typebox/build/format/index.mjs +4 -0
- package/node_modules/typebox/build/format/ipv4.d.mts +6 -0
- package/node_modules/typebox/build/format/ipv4.mjs +38 -0
- package/node_modules/typebox/build/format/ipv6.d.mts +5 -0
- package/node_modules/typebox/build/format/ipv6.mjs +67 -0
- package/node_modules/typebox/build/format/iri-reference.d.mts +5 -0
- package/node_modules/typebox/build/format/iri-reference.mjs +60 -0
- package/node_modules/typebox/build/format/iri.d.mts +5 -0
- package/node_modules/typebox/build/format/iri.mjs +13 -0
- package/node_modules/typebox/build/format/json-pointer-uri-fragment.d.mts +6 -0
- package/node_modules/typebox/build/format/json-pointer-uri-fragment.mjs +9 -0
- package/node_modules/typebox/build/format/json-pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/json-pointer.mjs +9 -0
- package/node_modules/typebox/build/format/regex.d.mts +6 -0
- package/node_modules/typebox/build/format/regex.mjs +17 -0
- package/node_modules/typebox/build/format/relative-json-pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/relative-json-pointer.mjs +9 -0
- package/node_modules/typebox/build/format/time.d.mts +5 -0
- package/node_modules/typebox/build/format/time.mjs +27 -0
- package/node_modules/typebox/build/format/uri-reference.d.mts +5 -0
- package/node_modules/typebox/build/format/uri-reference.mjs +9 -0
- package/node_modules/typebox/build/format/uri-template.d.mts +6 -0
- package/node_modules/typebox/build/format/uri-template.mjs +10 -0
- package/node_modules/typebox/build/format/uri.d.mts +5 -0
- package/node_modules/typebox/build/format/uri.mjs +135 -0
- package/node_modules/typebox/build/format/url.d.mts +6 -0
- package/node_modules/typebox/build/format/url.mjs +9 -0
- package/node_modules/typebox/build/format/uuid.d.mts +6 -0
- package/node_modules/typebox/build/format/uuid.mjs +9 -0
- package/node_modules/typebox/build/guard/emit.d.mts +58 -0
- package/node_modules/typebox/build/guard/emit.mjs +194 -0
- package/node_modules/typebox/build/guard/globals.d.mts +35 -0
- package/node_modules/typebox/build/guard/globals.mjs +90 -0
- package/node_modules/typebox/build/guard/guard.d.mts +63 -0
- package/node_modules/typebox/build/guard/guard.mjs +208 -0
- package/node_modules/typebox/build/guard/index.d.mts +6 -0
- package/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/typebox/build/guard/native.d.mts +20 -0
- package/node_modules/typebox/build/guard/native.mjs +60 -0
- package/node_modules/typebox/build/guard/string.d.mts +6 -0
- package/node_modules/typebox/build/guard/string.mjs +164 -0
- package/node_modules/typebox/build/index.d.mts +8 -0
- package/node_modules/typebox/build/index.mjs +14 -0
- package/node_modules/typebox/build/schema/build.d.mts +35 -0
- package/node_modules/typebox/build/schema/build.mjs +99 -0
- package/node_modules/typebox/build/schema/check.d.mts +6 -0
- package/node_modules/typebox/build/schema/check.mjs +14 -0
- package/node_modules/typebox/build/schema/compile.d.mts +22 -0
- package/node_modules/typebox/build/schema/compile.mjs +46 -0
- package/node_modules/typebox/build/schema/engine/_context.d.mts +35 -0
- package/node_modules/typebox/build/schema/engine/_context.mjs +129 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +20 -0
- package/node_modules/typebox/build/schema/engine/_externals.d.mts +7 -0
- package/node_modules/typebox/build/schema/engine/_externals.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_functions.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_guard.mjs +26 -0
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +4 -0
- package/node_modules/typebox/build/schema/engine/_reducer.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_refine.mjs +29 -0
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +18 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +107 -0
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -0
- package/node_modules/typebox/build/schema/engine/_unique.mjs +5 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +50 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +110 -0
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/allOf.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +52 -0
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +5 -0
- package/node_modules/typebox/build/schema/engine/boolean.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/const.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/const.mjs +30 -0
- package/node_modules/typebox/build/schema/engine/contains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/contains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +40 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +38 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/enum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/enum.mjs +33 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/format.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/format.mjs +26 -0
- package/node_modules/typebox/build/schema/engine/if.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/if.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/index.d.mts +49 -0
- package/node_modules/typebox/build/schema/engine/index.mjs +55 -0
- package/node_modules/typebox/build/schema/engine/items.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/items.mjs +68 -0
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minContains.mjs +41 -0
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/not.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/not.mjs +37 -0
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/pattern.mjs +28 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +44 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +35 -0
- package/node_modules/typebox/build/schema/engine/properties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/properties.mjs +75 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +39 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/ref.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/ref.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/required.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/required.mjs +32 -0
- package/node_modules/typebox/build/schema/engine/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/schema.mjs +352 -0
- package/node_modules/typebox/build/schema/engine/type.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/type.mjs +74 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +51 -0
- package/node_modules/typebox/build/schema/errors.d.mts +6 -0
- package/node_modules/typebox/build/schema/errors.mjs +24 -0
- package/node_modules/typebox/build/schema/index.d.mts +3 -0
- package/node_modules/typebox/build/schema/index.mjs +9 -0
- package/node_modules/typebox/build/schema/parse.d.mts +13 -0
- package/node_modules/typebox/build/schema/parse.mjs +27 -0
- package/node_modules/typebox/build/schema/pointer/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/pointer/index.mjs +2 -0
- package/node_modules/typebox/build/schema/pointer/pointer-get.d.mts +9 -0
- package/node_modules/typebox/build/schema/pointer/pointer-get.mjs +2 -0
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +10 -0
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +96 -0
- package/node_modules/typebox/build/schema/resolve/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/index.mjs +1 -0
- package/node_modules/typebox/build/schema/resolve/ref.d.mts +3 -0
- package/node_modules/typebox/build/schema/resolve/ref.mjs +146 -0
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +1 -0
- package/node_modules/typebox/build/schema/schema.d.mts +10 -0
- package/node_modules/typebox/build/schema/schema.mjs +10 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/static/allOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/allOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/anyOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/anyOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/const.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/const.mjs +2 -0
- package/node_modules/typebox/build/schema/static/enum.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/enum.mjs +2 -0
- package/node_modules/typebox/build/schema/static/if.d.mts +15 -0
- package/node_modules/typebox/build/schema/static/if.mjs +2 -0
- package/node_modules/typebox/build/schema/static/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/index.mjs +1 -0
- package/node_modules/typebox/build/schema/static/items.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/items.mjs +2 -0
- package/node_modules/typebox/build/schema/static/oneOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/oneOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/patternProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/patternProperties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/prefixItems.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/prefixItems.mjs +2 -0
- package/node_modules/typebox/build/schema/static/properties.d.mts +11 -0
- package/node_modules/typebox/build/schema/static/properties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/ref.d.mts +8 -0
- package/node_modules/typebox/build/schema/static/ref.mjs +3 -0
- package/node_modules/typebox/build/schema/static/required.d.mts +13 -0
- package/node_modules/typebox/build/schema/static/required.mjs +3 -0
- package/node_modules/typebox/build/schema/static/schema.d.mts +55 -0
- package/node_modules/typebox/build/schema/static/schema.mjs +2 -0
- package/node_modules/typebox/build/schema/static/static.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/static.mjs +3 -0
- package/node_modules/typebox/build/schema/static/type.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/type.mjs +3 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/static/~comparer.d.mts +6 -0
- package/node_modules/typebox/build/schema/static/~comparer.mjs +2 -0
- package/node_modules/typebox/build/schema/static/~elements.d.mts +18 -0
- package/node_modules/typebox/build/schema/static/~elements.mjs +2 -0
- package/node_modules/typebox/build/schema/static/~non-readonly.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/~non-readonly.mjs +2 -0
- package/node_modules/typebox/build/schema/static/~readonly.d.mts +6 -0
- package/node_modules/typebox/build/schema/static/~readonly.mjs +2 -0
- package/node_modules/typebox/build/schema/types/_guard.d.mts +10 -0
- package/node_modules/typebox/build/schema/types/_guard.mjs +16 -0
- package/node_modules/typebox/build/schema/types/_refine.d.mts +13 -0
- package/node_modules/typebox/build/schema/types/_refine.mjs +18 -0
- package/node_modules/typebox/build/schema/types/additionalItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/allOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/allOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/anchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/anchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/anyOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/anyOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/const.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/const.mjs +12 -0
- package/node_modules/typebox/build/schema/types/contains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contains.mjs +14 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +13 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +13 -0
- package/node_modules/typebox/build/schema/types/default.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/default.mjs +12 -0
- package/node_modules/typebox/build/schema/types/defs.d.mts +6 -0
- package/node_modules/typebox/build/schema/types/defs.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dependencies.d.mts +11 -0
- package/node_modules/typebox/build/schema/types/dependencies.mjs +16 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/else.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/else.mjs +14 -0
- package/node_modules/typebox/build/schema/types/enum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/enum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/format.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/format.mjs +13 -0
- package/node_modules/typebox/build/schema/types/id.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/id.mjs +13 -0
- package/node_modules/typebox/build/schema/types/if.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/if.mjs +14 -0
- package/node_modules/typebox/build/schema/types/index.d.mts +54 -0
- package/node_modules/typebox/build/schema/types/index.mjs +60 -0
- package/node_modules/typebox/build/schema/types/items.d.mts +19 -0
- package/node_modules/typebox/build/schema/types/items.mjs +26 -0
- package/node_modules/typebox/build/schema/types/maxContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/multipleOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/multipleOf.mjs +13 -0
- package/node_modules/typebox/build/schema/types/not.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/not.mjs +14 -0
- package/node_modules/typebox/build/schema/types/oneOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/oneOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/pattern.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/pattern.mjs +14 -0
- package/node_modules/typebox/build/schema/types/patternProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/patternProperties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/prefixItems.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/prefixItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/properties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/properties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/propertyNames.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/propertyNames.mjs +15 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +19 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/ref.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/ref.mjs +13 -0
- package/node_modules/typebox/build/schema/types/required.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/required.mjs +14 -0
- package/node_modules/typebox/build/schema/types/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/schema.mjs +14 -0
- package/node_modules/typebox/build/schema/types/then.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/then.mjs +14 -0
- package/node_modules/typebox/build/schema/types/type.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/type.mjs +15 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.mjs +13 -0
- package/node_modules/typebox/build/system/arguments/arguments.d.mts +5 -0
- package/node_modules/typebox/build/system/arguments/arguments.mjs +9 -0
- package/node_modules/typebox/build/system/arguments/index.d.mts +1 -0
- package/node_modules/typebox/build/system/arguments/index.mjs +1 -0
- package/node_modules/typebox/build/system/environment/environment.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/environment.mjs +1 -0
- package/node_modules/typebox/build/system/environment/evaluate.d.mts +9 -0
- package/node_modules/typebox/build/system/environment/evaluate.mjs +37 -0
- package/node_modules/typebox/build/system/environment/index.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/index.mjs +1 -0
- package/node_modules/typebox/build/system/hashing/hash.d.mts +4 -0
- package/node_modules/typebox/build/system/hashing/hash.mjs +232 -0
- package/node_modules/typebox/build/system/hashing/index.d.mts +1 -0
- package/node_modules/typebox/build/system/hashing/index.mjs +1 -0
- package/node_modules/typebox/build/system/index.d.mts +4 -0
- package/node_modules/typebox/build/system/index.mjs +4 -0
- package/node_modules/typebox/build/system/locale/_config.d.mts +7 -0
- package/node_modules/typebox/build/system/locale/_config.mjs +15 -0
- package/node_modules/typebox/build/system/locale/_locale.d.mts +40 -0
- package/node_modules/typebox/build/system/locale/_locale.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ar_001.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ar_001.mjs +41 -0
- package/node_modules/typebox/build/system/locale/bn_BD.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +41 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +41 -0
- package/node_modules/typebox/build/system/locale/de_DE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/de_DE.mjs +41 -0
- package/node_modules/typebox/build/system/locale/el_GR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/el_GR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/en_US.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/en_US.mjs +40 -0
- package/node_modules/typebox/build/system/locale/es_419.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_419.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_AR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_AR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_ES.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_ES.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_MX.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_MX.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fa_IR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fil_PH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fr_CA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fr_FR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ha_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +41 -0
- package/node_modules/typebox/build/system/locale/hi_IN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +41 -0
- package/node_modules/typebox/build/system/locale/hu_HU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +41 -0
- package/node_modules/typebox/build/system/locale/id_ID.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/id_ID.mjs +41 -0
- package/node_modules/typebox/build/system/locale/index.d.mts +1 -0
- package/node_modules/typebox/build/system/locale/index.mjs +1 -0
- package/node_modules/typebox/build/system/locale/it_IT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/it_IT.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ja_JP.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ko_KR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ms_MY.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +41 -0
- package/node_modules/typebox/build/system/locale/nl_NL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pl_PL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pt_BR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pt_PT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ro_RO.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ru_RU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +41 -0
- package/node_modules/typebox/build/system/locale/sv_SE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +41 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +41 -0
- package/node_modules/typebox/build/system/locale/th_TH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/th_TH.mjs +41 -0
- package/node_modules/typebox/build/system/locale/tr_TR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/uk_UA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ur_PK.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +41 -0
- package/node_modules/typebox/build/system/locale/vi_VN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +41 -0
- package/node_modules/typebox/build/system/locale/yo_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +41 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +41 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +41 -0
- package/node_modules/typebox/build/system/memory/assign.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/assign.mjs +11 -0
- package/node_modules/typebox/build/system/memory/clone.d.mts +6 -0
- package/node_modules/typebox/build/system/memory/clone.mjs +63 -0
- package/node_modules/typebox/build/system/memory/create.d.mts +8 -0
- package/node_modules/typebox/build/system/memory/create.mjs +30 -0
- package/node_modules/typebox/build/system/memory/discard.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/discard.mjs +17 -0
- package/node_modules/typebox/build/system/memory/index.d.mts +1 -0
- package/node_modules/typebox/build/system/memory/index.mjs +1 -0
- package/node_modules/typebox/build/system/memory/memory.d.mts +6 -0
- package/node_modules/typebox/build/system/memory/memory.mjs +7 -0
- package/node_modules/typebox/build/system/memory/metrics.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/metrics.mjs +8 -0
- package/node_modules/typebox/build/system/memory/update.d.mts +7 -0
- package/node_modules/typebox/build/system/memory/update.mjs +32 -0
- package/node_modules/typebox/build/system/settings/index.d.mts +1 -0
- package/node_modules/typebox/build/system/settings/index.mjs +1 -0
- package/node_modules/typebox/build/system/settings/settings.d.mts +56 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +32 -0
- package/node_modules/typebox/build/system/system.d.mts +6 -0
- package/node_modules/typebox/build/system/system.mjs +6 -0
- package/node_modules/typebox/build/system/unreachable/index.d.mts +1 -0
- package/node_modules/typebox/build/system/unreachable/index.mjs +1 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.d.mts +3 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.mjs +6 -0
- package/node_modules/typebox/build/type/action/_optional.d.mts +19 -0
- package/node_modules/typebox/build/type/action/_optional.mjs +40 -0
- package/node_modules/typebox/build/type/action/_readonly.d.mts +19 -0
- package/node_modules/typebox/build/type/action/_readonly.mjs +40 -0
- package/node_modules/typebox/build/type/action/awaited.d.mts +11 -0
- package/node_modules/typebox/build/type/action/awaited.mjs +12 -0
- package/node_modules/typebox/build/type/action/capitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/capitalize.mjs +12 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/conditional.mjs +12 -0
- package/node_modules/typebox/build/type/action/constructor-parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/constructor-parameters.mjs +12 -0
- package/node_modules/typebox/build/type/action/evaluate.d.mts +11 -0
- package/node_modules/typebox/build/type/action/evaluate.mjs +12 -0
- package/node_modules/typebox/build/type/action/exclude.d.mts +11 -0
- package/node_modules/typebox/build/type/action/exclude.mjs +12 -0
- package/node_modules/typebox/build/type/action/extract.d.mts +11 -0
- package/node_modules/typebox/build/type/action/extract.mjs +12 -0
- package/node_modules/typebox/build/type/action/index.d.mts +27 -0
- package/node_modules/typebox/build/type/action/index.mjs +27 -0
- package/node_modules/typebox/build/type/action/indexed.d.mts +14 -0
- package/node_modules/typebox/build/type/action/indexed.mjs +15 -0
- package/node_modules/typebox/build/type/action/instance-type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/instance-type.mjs +12 -0
- package/node_modules/typebox/build/type/action/interface.d.mts +14 -0
- package/node_modules/typebox/build/type/action/interface.mjs +20 -0
- package/node_modules/typebox/build/type/action/keyof.d.mts +11 -0
- package/node_modules/typebox/build/type/action/keyof.mjs +12 -0
- package/node_modules/typebox/build/type/action/lowercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/lowercase.mjs +12 -0
- package/node_modules/typebox/build/type/action/mapped.d.mts +12 -0
- package/node_modules/typebox/build/type/action/mapped.mjs +12 -0
- package/node_modules/typebox/build/type/action/module.d.mts +12 -0
- package/node_modules/typebox/build/type/action/module.mjs +12 -0
- package/node_modules/typebox/build/type/action/non-nullable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/non-nullable.mjs +12 -0
- package/node_modules/typebox/build/type/action/omit.d.mts +14 -0
- package/node_modules/typebox/build/type/action/omit.mjs +15 -0
- package/node_modules/typebox/build/type/action/options.d.mts +12 -0
- package/node_modules/typebox/build/type/action/options.mjs +12 -0
- package/node_modules/typebox/build/type/action/parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/parameters.mjs +12 -0
- package/node_modules/typebox/build/type/action/partial.d.mts +11 -0
- package/node_modules/typebox/build/type/action/partial.mjs +12 -0
- package/node_modules/typebox/build/type/action/pick.d.mts +14 -0
- package/node_modules/typebox/build/type/action/pick.mjs +15 -0
- package/node_modules/typebox/build/type/action/readonly-type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/readonly-type.mjs +12 -0
- package/node_modules/typebox/build/type/action/required.d.mts +11 -0
- package/node_modules/typebox/build/type/action/required.mjs +12 -0
- package/node_modules/typebox/build/type/action/return-type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/return-type.mjs +12 -0
- package/node_modules/typebox/build/type/action/uncapitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uncapitalize.mjs +12 -0
- package/node_modules/typebox/build/type/action/uppercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uppercase.mjs +12 -0
- package/node_modules/typebox/build/type/engine/awaited/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/awaited/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +19 -0
- package/node_modules/typebox/build/type/engine/call/distribute-arguments.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/call/distribute-arguments.mjs +59 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +23 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +48 -0
- package/node_modules/typebox/build/type/engine/call/resolve-arguments.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/call/resolve-arguments.mjs +39 -0
- package/node_modules/typebox/build/type/engine/call/resolve-target.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/call/resolve-target.mjs +27 -0
- package/node_modules/typebox/build/type/engine/conditional/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/conditional/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +19 -0
- package/node_modules/typebox/build/type/engine/constructor-parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/constructor-parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/constructor-parameters/instantiate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/constructor-parameters/instantiate.mjs +22 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +19 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +24 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +54 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +53 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +53 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +30 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.mjs +16 -0
- package/node_modules/typebox/build/type/engine/enum/enum-to-union.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/enum/enum-to-union.mjs +24 -0
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +2 -0
- package/node_modules/typebox/build/type/engine/enum/index.mjs +2 -0
- package/node_modules/typebox/build/type/engine/enum/typescript-enum-to-enum-values.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/enum/typescript-enum-to-enum-values.mjs +9 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +47 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +22 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +63 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +27 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +55 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +27 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +11 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +17 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +11 -0
- package/node_modules/typebox/build/type/engine/exclude/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/exclude/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +37 -0
- package/node_modules/typebox/build/type/engine/extract/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/extract/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +37 -0
- package/node_modules/typebox/build/type/engine/helpers/index.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/index.mjs +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys-to-indexer.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/keys-to-indexer.mjs +15 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.mjs +8 -0
- package/node_modules/typebox/build/type/engine/helpers/union.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/union.mjs +3 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/index.mjs +37 -0
- package/node_modules/typebox/build/type/engine/indexable/from-cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from-cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from-enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from-enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from-intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from-intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from-literal.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/indexable/from-literal.mjs +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from-template-literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from-template-literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from-type.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/indexable/from-type.mjs +22 -0
- package/node_modules/typebox/build/type/engine/indexable/from-union.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/indexable/from-union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/indexable/to-indexable-keys.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/indexable/to-indexable-keys.mjs +12 -0
- package/node_modules/typebox/build/type/engine/indexable/to-indexable.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/indexable/to-indexable.mjs +14 -0
- package/node_modules/typebox/build/type/engine/indexed/array-indexer.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/indexed/array-indexer.mjs +18 -0
- package/node_modules/typebox/build/type/engine/indexed/from-array.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/indexed/from-array.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/from-object.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/indexed/from-object.mjs +18 -0
- package/node_modules/typebox/build/type/engine/indexed/from-tuple.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/indexed/from-tuple.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/indexed/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +21 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +37 -0
- package/node_modules/typebox/build/type/engine/instance-type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/instance-type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/instance-type/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/instance-type/instantiate.mjs +20 -0
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +167 -0
- package/node_modules/typebox/build/type/engine/instantiate.mjs +172 -0
- package/node_modules/typebox/build/type/engine/interface/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/interface/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +19 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-literal.mjs +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-template-literal.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-template-literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-type.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-type.mjs +13 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-union.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from-union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +34 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +48 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from-any.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/keyof/from-any.mjs +8 -0
- package/node_modules/typebox/build/type/engine/keyof/from-array.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from-array.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from-object.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/keyof/from-object.mjs +20 -0
- package/node_modules/typebox/build/type/engine/keyof/from-record.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from-record.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from-tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from-tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/keyof/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/keyof/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +27 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +45 -0
- package/node_modules/typebox/build/type/engine/mapped/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/mapped/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +50 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped-variants.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped-variants.mjs +29 -0
- package/node_modules/typebox/build/type/engine/module/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/module/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +21 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +34 -0
- package/node_modules/typebox/build/type/engine/non-nullable/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/non-nullable/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/non-nullable/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/non-nullable/instantiate.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/collapse.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/collapse.mjs +14 -0
- package/node_modules/typebox/build/type/engine/object/from-cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from-cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from-intersect.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/object/from-intersect.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/from-object.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/object/from-object.mjs +4 -0
- package/node_modules/typebox/build/type/engine/object/from-tuple.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from-tuple.mjs +9 -0
- package/node_modules/typebox/build/type/engine/object/from-type.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/object/from-type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/object/from-union.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/from-union.mjs +26 -0
- package/node_modules/typebox/build/type/engine/object/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/object/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/omit/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +31 -0
- package/node_modules/typebox/build/type/engine/options/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.mjs +13 -0
- package/node_modules/typebox/build/type/engine/parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +22 -0
- package/node_modules/typebox/build/type/engine/partial/from-cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/partial/from-cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from-intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from-intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/partial/from-object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/partial/from-object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from-type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/partial/from-type.mjs +17 -0
- package/node_modules/typebox/build/type/engine/partial/from-union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from-union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/partial/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/partial/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +14 -0
- package/node_modules/typebox/build/type/engine/patterns/index.d.mts +2 -0
- package/node_modules/typebox/build/type/engine/patterns/index.mjs +2 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +11 -0
- package/node_modules/typebox/build/type/engine/patterns/template.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/patterns/template.mjs +20 -0
- package/node_modules/typebox/build/type/engine/pick/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/pick/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +32 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-array.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-array.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-type.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-type.mjs +22 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly-type/from-union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly-type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/readonly-type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/readonly-type/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/readonly-type/instantiate.mjs +14 -0
- package/node_modules/typebox/build/type/engine/record/from-key-any.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/record/from-key-any.mjs +6 -0
- package/node_modules/typebox/build/type/engine/record/from-key-boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/record/from-key-boolean.mjs +5 -0
- package/node_modules/typebox/build/type/engine/record/from-key-enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/record/from-key-enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from-key-integer.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from-key-integer.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from-key-intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from-key-intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from-key-literal.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/record/from-key-literal.mjs +10 -0
- package/node_modules/typebox/build/type/engine/record/from-key-number.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from-key-number.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from-key-string.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from-key-string.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from-key-template-literal.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/record/from-key-template-literal.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from-key-union.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/record/from-key-union.mjs +39 -0
- package/node_modules/typebox/build/type/engine/record/from-key.d.mts +24 -0
- package/node_modules/typebox/build/type/engine/record/from-key.mjs +40 -0
- package/node_modules/typebox/build/type/engine/record/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/record/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/record/record-create.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/record/record-create.mjs +7 -0
- package/node_modules/typebox/build/type/engine/ref/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/ref/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +10 -0
- package/node_modules/typebox/build/type/engine/required/from-cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/required/from-cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from-intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from-intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/required/from-object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/required/from-object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from-type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/required/from-type.mjs +17 -0
- package/node_modules/typebox/build/type/engine/required/from-union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from-union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/required/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/required/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.mjs +14 -0
- package/node_modules/typebox/build/type/engine/rest/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/rest/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/rest/spread.mjs +19 -0
- package/node_modules/typebox/build/type/engine/return-type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/return-type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/return-type/instantiate.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/return-type/instantiate.mjs +18 -0
- package/node_modules/typebox/build/type/engine/template-literal/create.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/template-literal/create.mjs +5 -0
- package/node_modules/typebox/build/type/engine/template-literal/decode.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/template-literal/decode.mjs +87 -0
- package/node_modules/typebox/build/type/engine/template-literal/encode.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/template-literal/encode.mjs +80 -0
- package/node_modules/typebox/build/type/engine/template-literal/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template-literal/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/template-literal/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/template-literal/instantiate.mjs +14 -0
- package/node_modules/typebox/build/type/engine/template-literal/is-finite.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/template-literal/is-finite.mjs +30 -0
- package/node_modules/typebox/build/type/engine/template-literal/is-pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template-literal/is-pattern.mjs +9 -0
- package/node_modules/typebox/build/type/engine/template-literal/static.d.mts +18 -0
- package/node_modules/typebox/build/type/engine/template-literal/static.mjs +2 -0
- package/node_modules/typebox/build/type/engine/tuple/to-object.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/tuple/to-object.mjs +14 -0
- package/node_modules/typebox/build/type/extends/any.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/any.mjs +12 -0
- package/node_modules/typebox/build/type/extends/array.d.mts +20 -0
- package/node_modules/typebox/build/type/extends/array.mjs +21 -0
- package/node_modules/typebox/build/type/extends/async-iterator.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/async-iterator.mjs +9 -0
- package/node_modules/typebox/build/type/extends/bigint.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/bigint.mjs +9 -0
- package/node_modules/typebox/build/type/extends/boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/boolean.mjs +9 -0
- package/node_modules/typebox/build/type/extends/constructor.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/constructor.mjs +17 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/enum.mjs +6 -0
- package/node_modules/typebox/build/type/extends/extends-left.d.mts +55 -0
- package/node_modules/typebox/build/type/extends/extends-left.mjs +83 -0
- package/node_modules/typebox/build/type/extends/extends-right.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/extends-right.mjs +43 -0
- package/node_modules/typebox/build/type/extends/extends.d.mts +11 -0
- package/node_modules/typebox/build/type/extends/extends.mjs +15 -0
- package/node_modules/typebox/build/type/extends/function.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/function.mjs +17 -0
- package/node_modules/typebox/build/type/extends/index.d.mts +2 -0
- package/node_modules/typebox/build/type/extends/index.mjs +2 -0
- package/node_modules/typebox/build/type/extends/inference.d.mts +34 -0
- package/node_modules/typebox/build/type/extends/inference.mjs +62 -0
- package/node_modules/typebox/build/type/extends/integer.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/integer.mjs +10 -0
- package/node_modules/typebox/build/type/extends/intersect.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/intersect.mjs +15 -0
- package/node_modules/typebox/build/type/extends/iterator.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/iterator.mjs +9 -0
- package/node_modules/typebox/build/type/extends/literal.d.mts +18 -0
- package/node_modules/typebox/build/type/extends/literal.mjs +44 -0
- package/node_modules/typebox/build/type/extends/never.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/never.mjs +9 -0
- package/node_modules/typebox/build/type/extends/null.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/null.mjs +9 -0
- package/node_modules/typebox/build/type/extends/number.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/number.mjs +9 -0
- package/node_modules/typebox/build/type/extends/object.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/object.mjs +87 -0
- package/node_modules/typebox/build/type/extends/parameters.d.mts +15 -0
- package/node_modules/typebox/build/type/extends/parameters.mjs +27 -0
- package/node_modules/typebox/build/type/extends/promise.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/promise.mjs +9 -0
- package/node_modules/typebox/build/type/extends/result.d.mts +27 -0
- package/node_modules/typebox/build/type/extends/result.mjs +39 -0
- package/node_modules/typebox/build/type/extends/return-type.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/return-type.mjs +9 -0
- package/node_modules/typebox/build/type/extends/string.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/string.mjs +9 -0
- package/node_modules/typebox/build/type/extends/symbol.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/symbol.mjs +9 -0
- package/node_modules/typebox/build/type/extends/template-literal.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/template-literal.mjs +7 -0
- package/node_modules/typebox/build/type/extends/tuple.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/tuple.mjs +60 -0
- package/node_modules/typebox/build/type/extends/undefined.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/undefined.mjs +10 -0
- package/node_modules/typebox/build/type/extends/union.d.mts +11 -0
- package/node_modules/typebox/build/type/extends/union.mjs +23 -0
- package/node_modules/typebox/build/type/extends/unknown.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/unknown.mjs +12 -0
- package/node_modules/typebox/build/type/extends/void.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/void.mjs +9 -0
- package/node_modules/typebox/build/type/index.d.mts +5 -0
- package/node_modules/typebox/build/type/index.mjs +5 -0
- package/node_modules/typebox/build/type/script/index.d.mts +1 -0
- package/node_modules/typebox/build/type/script/index.mjs +1 -0
- package/node_modules/typebox/build/type/script/mapping.d.mts +365 -0
- package/node_modules/typebox/build/type/script/mapping.mjs +532 -0
- package/node_modules/typebox/build/type/script/parser.d.mts +260 -0
- package/node_modules/typebox/build/type/script/parser.mjs +135 -0
- package/node_modules/typebox/build/type/script/script.d.mts +17 -0
- package/node_modules/typebox/build/type/script/script.mjs +21 -0
- package/node_modules/typebox/build/type/script/token/bigint.d.mts +8 -0
- package/node_modules/typebox/build/type/script/token/bigint.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/const.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/const.mjs +18 -0
- package/node_modules/typebox/build/type/script/token/ident.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/ident.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/index.d.mts +12 -0
- package/node_modules/typebox/build/type/script/token/index.mjs +12 -0
- package/node_modules/typebox/build/type/script/token/integer.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/integer.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/internal/char.d.mts +75 -0
- package/node_modules/typebox/build/type/script/token/internal/char.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +15 -0
- package/node_modules/typebox/build/type/script/token/internal/many.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/internal/many.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/internal/match.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/match.mjs +11 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/internal/take.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +34 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.d.mts +19 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.mjs +34 -0
- package/node_modules/typebox/build/type/script/token/number.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/number.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/rest.d.mts +4 -0
- package/node_modules/typebox/build/type/script/token/rest.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/span.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/span.mjs +24 -0
- package/node_modules/typebox/build/type/script/token/string.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/string.mjs +20 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +38 -0
- package/node_modules/typebox/build/type/script/token/until.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/until.mjs +24 -0
- package/node_modules/typebox/build/type/script/token/until_1.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/until_1.mjs +12 -0
- package/node_modules/typebox/build/type/types/_codec.d.mts +30 -0
- package/node_modules/typebox/build/type/types/_codec.mjs +61 -0
- package/node_modules/typebox/build/type/types/_immutable.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_immutable.mjs +26 -0
- package/node_modules/typebox/build/type/types/_optional.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_optional.mjs +27 -0
- package/node_modules/typebox/build/type/types/_readonly.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_readonly.mjs +26 -0
- package/node_modules/typebox/build/type/types/_refine.d.mts +19 -0
- package/node_modules/typebox/build/type/types/_refine.mjs +20 -0
- package/node_modules/typebox/build/type/types/any.d.mts +10 -0
- package/node_modules/typebox/build/type/types/any.mjs +18 -0
- package/node_modules/typebox/build/type/types/array.d.mts +17 -0
- package/node_modules/typebox/build/type/types/array.mjs +24 -0
- package/node_modules/typebox/build/type/types/async-iterator.d.mts +16 -0
- package/node_modules/typebox/build/type/types/async-iterator.mjs +24 -0
- package/node_modules/typebox/build/type/types/base.d.mts +50 -0
- package/node_modules/typebox/build/type/types/base.mjs +84 -0
- package/node_modules/typebox/build/type/types/bigint.d.mts +12 -0
- package/node_modules/typebox/build/type/types/bigint.mjs +21 -0
- package/node_modules/typebox/build/type/types/boolean.d.mts +11 -0
- package/node_modules/typebox/build/type/types/boolean.mjs +17 -0
- package/node_modules/typebox/build/type/types/call.d.mts +16 -0
- package/node_modules/typebox/build/type/types/call.mjs +22 -0
- package/node_modules/typebox/build/type/types/constructor.d.mts +18 -0
- package/node_modules/typebox/build/type/types/constructor.mjs +24 -0
- package/node_modules/typebox/build/type/types/cyclic.d.mts +16 -0
- package/node_modules/typebox/build/type/types/cyclic.mjs +29 -0
- package/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +16 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +16 -0
- package/node_modules/typebox/build/type/types/enum.mjs +17 -0
- package/node_modules/typebox/build/type/types/function.d.mts +21 -0
- package/node_modules/typebox/build/type/types/function.mjs +25 -0
- package/node_modules/typebox/build/type/types/generic.d.mts +13 -0
- package/node_modules/typebox/build/type/types/generic.mjs +17 -0
- package/node_modules/typebox/build/type/types/identifier.d.mts +11 -0
- package/node_modules/typebox/build/type/types/identifier.mjs +17 -0
- package/node_modules/typebox/build/type/types/index.d.mts +48 -0
- package/node_modules/typebox/build/type/types/index.mjs +54 -0
- package/node_modules/typebox/build/type/types/infer.d.mts +15 -0
- package/node_modules/typebox/build/type/types/infer.mjs +20 -0
- package/node_modules/typebox/build/type/types/integer.d.mts +12 -0
- package/node_modules/typebox/build/type/types/integer.mjs +21 -0
- package/node_modules/typebox/build/type/types/intersect.d.mts +15 -0
- package/node_modules/typebox/build/type/types/intersect.mjs +24 -0
- package/node_modules/typebox/build/type/types/iterator.d.mts +16 -0
- package/node_modules/typebox/build/type/types/iterator.mjs +24 -0
- package/node_modules/typebox/build/type/types/literal.d.mts +31 -0
- package/node_modules/typebox/build/type/types/literal.mjs +62 -0
- package/node_modules/typebox/build/type/types/never.d.mts +12 -0
- package/node_modules/typebox/build/type/types/never.mjs +22 -0
- package/node_modules/typebox/build/type/types/null.d.mts +11 -0
- package/node_modules/typebox/build/type/types/null.mjs +17 -0
- package/node_modules/typebox/build/type/types/number.d.mts +12 -0
- package/node_modules/typebox/build/type/types/number.mjs +21 -0
- package/node_modules/typebox/build/type/types/object.d.mts +18 -0
- package/node_modules/typebox/build/type/types/object.mjs +28 -0
- package/node_modules/typebox/build/type/types/parameter.d.mts +17 -0
- package/node_modules/typebox/build/type/types/parameter.mjs +21 -0
- package/node_modules/typebox/build/type/types/promise.d.mts +16 -0
- package/node_modules/typebox/build/type/types/promise.mjs +24 -0
- package/node_modules/typebox/build/type/types/properties.d.mts +42 -0
- package/node_modules/typebox/build/type/types/properties.mjs +15 -0
- package/node_modules/typebox/build/type/types/record.d.mts +48 -0
- package/node_modules/typebox/build/type/types/record.mjs +64 -0
- package/node_modules/typebox/build/type/types/ref.d.mts +19 -0
- package/node_modules/typebox/build/type/types/ref.mjs +18 -0
- package/node_modules/typebox/build/type/types/rest.d.mts +11 -0
- package/node_modules/typebox/build/type/types/rest.mjs +17 -0
- package/node_modules/typebox/build/type/types/schema.d.mts +176 -0
- package/node_modules/typebox/build/type/types/schema.mjs +15 -0
- package/node_modules/typebox/build/type/types/static.d.mts +48 -0
- package/node_modules/typebox/build/type/types/static.mjs +3 -0
- package/node_modules/typebox/build/type/types/string.d.mts +12 -0
- package/node_modules/typebox/build/type/types/string.mjs +22 -0
- package/node_modules/typebox/build/type/types/symbol.d.mts +11 -0
- package/node_modules/typebox/build/type/types/symbol.mjs +17 -0
- package/node_modules/typebox/build/type/types/template-literal.d.mts +26 -0
- package/node_modules/typebox/build/type/types/template-literal.mjs +31 -0
- package/node_modules/typebox/build/type/types/this.d.mts +14 -0
- package/node_modules/typebox/build/type/types/this.mjs +17 -0
- package/node_modules/typebox/build/type/types/tuple.d.mts +38 -0
- package/node_modules/typebox/build/type/types/tuple.mjs +25 -0
- package/node_modules/typebox/build/type/types/undefined.d.mts +11 -0
- package/node_modules/typebox/build/type/types/undefined.mjs +17 -0
- package/node_modules/typebox/build/type/types/union.d.mts +15 -0
- package/node_modules/typebox/build/type/types/union.mjs +24 -0
- package/node_modules/typebox/build/type/types/unknown.d.mts +10 -0
- package/node_modules/typebox/build/type/types/unknown.mjs +17 -0
- package/node_modules/typebox/build/type/types/unsafe.d.mts +11 -0
- package/node_modules/typebox/build/type/types/unsafe.mjs +18 -0
- package/node_modules/typebox/build/type/types/void.d.mts +11 -0
- package/node_modules/typebox/build/type/types/void.mjs +17 -0
- package/node_modules/typebox/build/typebox.d.mts +73 -0
- package/node_modules/typebox/build/typebox.mjs +89 -0
- package/node_modules/typebox/build/value/assert/assert.d.mts +14 -0
- package/node_modules/typebox/build/value/assert/assert.mjs +28 -0
- package/node_modules/typebox/build/value/assert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/assert/index.mjs +1 -0
- package/node_modules/typebox/build/value/check/check.d.mts +5 -0
- package/node_modules/typebox/build/value/check/check.mjs +11 -0
- package/node_modules/typebox/build/value/check/index.d.mts +1 -0
- package/node_modules/typebox/build/value/check/index.mjs +1 -0
- package/node_modules/typebox/build/value/clean/additional.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/additional.mjs +6 -0
- package/node_modules/typebox/build/value/clean/clean.d.mts +15 -0
- package/node_modules/typebox/build/value/clean/clean.mjs +15 -0
- package/node_modules/typebox/build/value/clean/from-array.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-array.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from-base.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-base.mjs +4 -0
- package/node_modules/typebox/build/value/clean/from-cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/clean/from-intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-intersect.mjs +26 -0
- package/node_modules/typebox/build/value/clean/from-object.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-object.mjs +31 -0
- package/node_modules/typebox/build/value/clean/from-record.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-record.mjs +32 -0
- package/node_modules/typebox/build/value/clean/from-ref.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-ref.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from-tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-tuple.mjs +14 -0
- package/node_modules/typebox/build/value/clean/from-type.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-type.mjs +23 -0
- package/node_modules/typebox/build/value/clean/from-union.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from-union.mjs +13 -0
- package/node_modules/typebox/build/value/clean/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clean/index.mjs +1 -0
- package/node_modules/typebox/build/value/clone/clone.d.mts +5 -0
- package/node_modules/typebox/build/value/clone/clone.mjs +82 -0
- package/node_modules/typebox/build/value/clone/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clone/index.mjs +1 -0
- package/node_modules/typebox/build/value/codec/callback.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/callback.mjs +25 -0
- package/node_modules/typebox/build/value/codec/decode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/decode.mjs +50 -0
- package/node_modules/typebox/build/value/codec/encode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/encode.mjs +50 -0
- package/node_modules/typebox/build/value/codec/from-array.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-array.mjs +38 -0
- package/node_modules/typebox/build/value/codec/from-cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-cyclic.mjs +8 -0
- package/node_modules/typebox/build/value/codec/from-intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-intersect.mjs +58 -0
- package/node_modules/typebox/build/value/codec/from-object.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-object.mjs +45 -0
- package/node_modules/typebox/build/value/codec/from-record.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-record.mjs +44 -0
- package/node_modules/typebox/build/value/codec/from-ref.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-ref.mjs +31 -0
- package/node_modules/typebox/build/value/codec/from-tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-tuple.mjs +35 -0
- package/node_modules/typebox/build/value/codec/from-type.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-type.mjs +22 -0
- package/node_modules/typebox/build/value/codec/from-union.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from-union.mjs +40 -0
- package/node_modules/typebox/build/value/codec/has.d.mts +5 -0
- package/node_modules/typebox/build/value/codec/has.mjs +93 -0
- package/node_modules/typebox/build/value/codec/index.d.mts +3 -0
- package/node_modules/typebox/build/value/codec/index.mjs +3 -0
- package/node_modules/typebox/build/value/convert/convert.d.mts +13 -0
- package/node_modules/typebox/build/value/convert/convert.mjs +15 -0
- package/node_modules/typebox/build/value/convert/from-additional.d.mts +6 -0
- package/node_modules/typebox/build/value/convert/from-additional.mjs +18 -0
- package/node_modules/typebox/build/value/convert/from-array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-array.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from-base.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-base.mjs +4 -0
- package/node_modules/typebox/build/value/convert/from-bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-bigint.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-boolean.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-enum.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-enum.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from-integer.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-integer.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-intersect.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from-literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-literal.mjs +44 -0
- package/node_modules/typebox/build/value/convert/from-null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-null.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-number.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-object.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-object.mjs +28 -0
- package/node_modules/typebox/build/value/convert/from-record.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-record.mjs +23 -0
- package/node_modules/typebox/build/value/convert/from-ref.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-ref.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from-string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-string.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-template-literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-template-literal.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from-tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-tuple.mjs +11 -0
- package/node_modules/typebox/build/value/convert/from-type.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-type.mjs +45 -0
- package/node_modules/typebox/build/value/convert/from-undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-undefined.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from-union.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-union.mjs +13 -0
- package/node_modules/typebox/build/value/convert/from-void.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from-void.mjs +6 -0
- package/node_modules/typebox/build/value/convert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/try/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/try-array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try-array.mjs +6 -0
- package/node_modules/typebox/build/value/convert/try/try-bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try-bigint.mjs +45 -0
- package/node_modules/typebox/build/value/convert/try/try-boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try-boolean.mjs +41 -0
- package/node_modules/typebox/build/value/convert/try/try-null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try-null.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try-number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try-number.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try-result.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try-result.mjs +17 -0
- package/node_modules/typebox/build/value/convert/try/try-string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try-string.mjs +12 -0
- package/node_modules/typebox/build/value/convert/try/try-undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try-undefined.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try.mjs +8 -0
- package/node_modules/typebox/build/value/create/create.d.mts +5 -0
- package/node_modules/typebox/build/value/create/create.mjs +11 -0
- package/node_modules/typebox/build/value/create/error.d.mts +5 -0
- package/node_modules/typebox/build/value/create/error.mjs +7 -0
- package/node_modules/typebox/build/value/create/from-array.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-array.mjs +10 -0
- package/node_modules/typebox/build/value/create/from-async-iterator.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-async-iterator.mjs +5 -0
- package/node_modules/typebox/build/value/create/from-base.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-base.mjs +4 -0
- package/node_modules/typebox/build/value/create/from-bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-bigint.mjs +7 -0
- package/node_modules/typebox/build/value/create/from-boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-boolean.mjs +4 -0
- package/node_modules/typebox/build/value/create/from-constructor.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-constructor.mjs +10 -0
- package/node_modules/typebox/build/value/create/from-cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/create/from-default.d.mts +3 -0
- package/node_modules/typebox/build/value/create/from-default.mjs +10 -0
- package/node_modules/typebox/build/value/create/from-enum.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-enum.mjs +6 -0
- package/node_modules/typebox/build/value/create/from-function.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-function.mjs +6 -0
- package/node_modules/typebox/build/value/create/from-integer.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-integer.mjs +8 -0
- package/node_modules/typebox/build/value/create/from-intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-intersect.mjs +8 -0
- package/node_modules/typebox/build/value/create/from-iterator.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-iterator.mjs +5 -0
- package/node_modules/typebox/build/value/create/from-literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-literal.mjs +4 -0
- package/node_modules/typebox/build/value/create/from-never.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-never.mjs +5 -0
- package/node_modules/typebox/build/value/create/from-null.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-null.mjs +4 -0
- package/node_modules/typebox/build/value/create/from-number.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-number.mjs +8 -0
- package/node_modules/typebox/build/value/create/from-object.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-object.mjs +9 -0
- package/node_modules/typebox/build/value/create/from-promise.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-promise.mjs +5 -0
- package/node_modules/typebox/build/value/create/from-record.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-record.mjs +8 -0
- package/node_modules/typebox/build/value/create/from-ref.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-ref.mjs +9 -0
- package/node_modules/typebox/build/value/create/from-string.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-string.mjs +9 -0
- package/node_modules/typebox/build/value/create/from-symbol.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-symbol.mjs +4 -0
- package/node_modules/typebox/build/value/create/from-template-literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-template-literal.mjs +11 -0
- package/node_modules/typebox/build/value/create/from-tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-tuple.mjs +5 -0
- package/node_modules/typebox/build/value/create/from-type.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-type.mjs +69 -0
- package/node_modules/typebox/build/value/create/from-undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-undefined.mjs +4 -0
- package/node_modules/typebox/build/value/create/from-union.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-union.mjs +9 -0
- package/node_modules/typebox/build/value/create/from-void.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from-void.mjs +4 -0
- package/node_modules/typebox/build/value/create/index.d.mts +2 -0
- package/node_modules/typebox/build/value/create/index.mjs +2 -0
- package/node_modules/typebox/build/value/default/default.d.mts +13 -0
- package/node_modules/typebox/build/value/default/default.mjs +15 -0
- package/node_modules/typebox/build/value/default/from-array.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-array.mjs +12 -0
- package/node_modules/typebox/build/value/default/from-base.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-base.mjs +5 -0
- package/node_modules/typebox/build/value/default/from-cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-cyclic.mjs +7 -0
- package/node_modules/typebox/build/value/default/from-default.d.mts +3 -0
- package/node_modules/typebox/build/value/default/from-default.mjs +13 -0
- package/node_modules/typebox/build/value/default/from-intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-intersect.mjs +9 -0
- package/node_modules/typebox/build/value/default/from-object.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-object.mjs +32 -0
- package/node_modules/typebox/build/value/default/from-record.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-record.mjs +26 -0
- package/node_modules/typebox/build/value/default/from-ref.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-ref.mjs +9 -0
- package/node_modules/typebox/build/value/default/from-tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-tuple.mjs +14 -0
- package/node_modules/typebox/build/value/default/from-type.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-type.mjs +27 -0
- package/node_modules/typebox/build/value/default/from-union.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from-union.mjs +14 -0
- package/node_modules/typebox/build/value/default/index.d.mts +1 -0
- package/node_modules/typebox/build/value/default/index.mjs +1 -0
- package/node_modules/typebox/build/value/delta/diff.d.mts +10 -0
- package/node_modules/typebox/build/value/delta/diff.mjs +129 -0
- package/node_modules/typebox/build/value/delta/edit.d.mts +24 -0
- package/node_modules/typebox/build/value/delta/edit.mjs +17 -0
- package/node_modules/typebox/build/value/delta/index.d.mts +3 -0
- package/node_modules/typebox/build/value/delta/index.mjs +3 -0
- package/node_modules/typebox/build/value/delta/patch.d.mts +8 -0
- package/node_modules/typebox/build/value/delta/patch.mjs +42 -0
- package/node_modules/typebox/build/value/equal/equal.d.mts +2 -0
- package/node_modules/typebox/build/value/equal/equal.mjs +6 -0
- package/node_modules/typebox/build/value/equal/index.d.mts +1 -0
- package/node_modules/typebox/build/value/equal/index.mjs +1 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +16 -0
- package/node_modules/typebox/build/value/errors/errors.mjs +17 -0
- package/node_modules/typebox/build/value/errors/index.d.mts +1 -0
- package/node_modules/typebox/build/value/errors/index.mjs +1 -0
- package/node_modules/typebox/build/value/hash/hash.d.mts +6 -0
- package/node_modules/typebox/build/value/hash/hash.mjs +10 -0
- package/node_modules/typebox/build/value/hash/index.d.mts +1 -0
- package/node_modules/typebox/build/value/hash/index.mjs +1 -0
- package/node_modules/typebox/build/value/index.d.mts +21 -0
- package/node_modules/typebox/build/value/index.mjs +30 -0
- package/node_modules/typebox/build/value/mutate/error.d.mts +3 -0
- package/node_modules/typebox/build/value/mutate/error.mjs +6 -0
- package/node_modules/typebox/build/value/mutate/from-array.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from-array.mjs +16 -0
- package/node_modules/typebox/build/value/mutate/from-object.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from-object.mjs +27 -0
- package/node_modules/typebox/build/value/mutate/from-unknown.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from-unknown.mjs +7 -0
- package/node_modules/typebox/build/value/mutate/from-value.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from-value.mjs +12 -0
- package/node_modules/typebox/build/value/mutate/index.d.mts +1 -0
- package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +9 -0
- package/node_modules/typebox/build/value/mutate/mutate.mjs +39 -0
- package/node_modules/typebox/build/value/parse/index.d.mts +1 -0
- package/node_modules/typebox/build/value/parse/index.mjs +1 -0
- package/node_modules/typebox/build/value/parse/parse.d.mts +11 -0
- package/node_modules/typebox/build/value/parse/parse.mjs +47 -0
- package/node_modules/typebox/build/value/pipeline/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pipeline/index.mjs +1 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.d.mts +10 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.mjs +15 -0
- package/node_modules/typebox/build/value/pointer/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pointer/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/error.d.mts +7 -0
- package/node_modules/typebox/build/value/repair/error.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from-array.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-array.mjs +39 -0
- package/node_modules/typebox/build/value/repair/from-base.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-base.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from-enum.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-enum.mjs +7 -0
- package/node_modules/typebox/build/value/repair/from-intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-intersect.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from-object.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-object.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from-record.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-record.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from-ref.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-ref.mjs +9 -0
- package/node_modules/typebox/build/value/repair/from-template-literal.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-template-literal.mjs +7 -0
- package/node_modules/typebox/build/value/repair/from-tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-tuple.mjs +12 -0
- package/node_modules/typebox/build/value/repair/from-type.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-type.mjs +86 -0
- package/node_modules/typebox/build/value/repair/from-union.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-union.mjs +24 -0
- package/node_modules/typebox/build/value/repair/from-unknown.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from-unknown.mjs +12 -0
- package/node_modules/typebox/build/value/repair/index.d.mts +1 -0
- package/node_modules/typebox/build/value/repair/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/repair.d.mts +17 -0
- package/node_modules/typebox/build/value/repair/repair.mjs +20 -0
- package/node_modules/typebox/build/value/shared/index.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/index.mjs +4 -0
- package/node_modules/typebox/build/value/shared/optional-undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/shared/optional-undefined.mjs +15 -0
- package/node_modules/typebox/build/value/shared/union-priority-sort.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/union-priority-sort.mjs +36 -0
- package/node_modules/typebox/build/value/shared/union-score-select.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/union-score-select.mjs +51 -0
- package/node_modules/typebox/build/value/value.d.mts +16 -0
- package/node_modules/typebox/build/value/value.mjs +16 -0
- package/node_modules/typebox/license +23 -0
- package/node_modules/typebox/package.json +87 -0
- package/node_modules/typebox/readme.md +361 -0
- package/package.json +1 -40
- package/skills/giver/SKILL.md +24 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/components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,CAC5F;CACD","sourcesContent":["import type { AutocompleteProvider, AutocompleteSuggestions } from \"../autocomplete.js\";\nimport { getKeybindings } from \"../keybindings.js\";\nimport { decodePrintableKey, matchesKey } from \"../keys.js\";\nimport { KillRing } from \"../kill-ring.js\";\nimport { type Component, CURSOR_MARKER, type Focusable, type TUI } from \"../tui.js\";\nimport { UndoStack } from \"../undo-stack.js\";\nimport { getSegmenter, isPunctuationChar, isWhitespaceChar, truncateToWidth, visibleWidth } from \"../utils.js\";\nimport { SelectList, type SelectListLayoutOptions, type SelectListTheme } from \"./select-list.js\";\n\nconst baseSegmenter = getSegmenter();\n\n/** Regex matching paste markers like `[paste #1 +123 lines]` or `[paste #2 1234 chars]`. */\nconst PASTE_MARKER_REGEX = /\\[paste #(\\d+)( (\\+\\d+ lines|\\d+ chars))?\\]/g;\n\n/** Non-global version for single-segment testing. */\nconst PASTE_MARKER_SINGLE = /^\\[paste #(\\d+)( (\\+\\d+ lines|\\d+ chars))?\\]$/;\n\n/** Check if a segment is a paste marker (i.e. was merged by segmentWithMarkers). */\nfunction isPasteMarker(segment: string): boolean {\n\treturn segment.length >= 10 && PASTE_MARKER_SINGLE.test(segment);\n}\n\n/**\n * A segmenter that wraps Intl.Segmenter and merges graphemes that fall\n * within paste markers into single atomic segments. This makes cursor\n * movement, deletion, word-wrap, etc. treat paste markers as single units.\n *\n * Only markers whose numeric ID exists in `validIds` are merged.\n */\nfunction segmentWithMarkers(text: string, validIds: Set<number>): Iterable<Intl.SegmentData> {\n\t// Fast path: no paste markers in the text or no valid IDs.\n\tif (validIds.size === 0 || !text.includes(\"[paste #\")) {\n\t\treturn baseSegmenter.segment(text);\n\t}\n\n\t// Find all marker spans with valid IDs.\n\tconst markers: Array<{ start: number; end: number }> = [];\n\tfor (const m of text.matchAll(PASTE_MARKER_REGEX)) {\n\t\tconst id = Number.parseInt(m[1]!, 10);\n\t\tif (!validIds.has(id)) continue;\n\t\tmarkers.push({ start: m.index, end: m.index + m[0].length });\n\t}\n\tif (markers.length === 0) {\n\t\treturn baseSegmenter.segment(text);\n\t}\n\n\t// Build merged segment list.\n\tconst baseSegments = baseSegmenter.segment(text);\n\tconst result: Intl.SegmentData[] = [];\n\tlet markerIdx = 0;\n\n\tfor (const seg of baseSegments) {\n\t\t// Skip past markers that are entirely before this segment.\n\t\twhile (markerIdx < markers.length && markers[markerIdx]!.end <= seg.index) {\n\t\t\tmarkerIdx++;\n\t\t}\n\n\t\tconst marker = markerIdx < markers.length ? markers[markerIdx]! : null;\n\n\t\tif (marker && seg.index >= marker.start && seg.index < marker.end) {\n\t\t\t// This segment falls inside a marker.\n\t\t\t// If this is the first segment of the marker, emit a merged segment.\n\t\t\tif (seg.index === marker.start) {\n\t\t\t\tconst markerText = text.slice(marker.start, marker.end);\n\t\t\t\tresult.push({\n\t\t\t\t\tsegment: markerText,\n\t\t\t\t\tindex: marker.start,\n\t\t\t\t\tinput: text,\n\t\t\t\t});\n\t\t\t}\n\t\t\t// Otherwise skip (already merged into the first segment).\n\t\t} else {\n\t\t\tresult.push(seg);\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Represents a chunk of text for word-wrap layout.\n * Tracks both the text content and its position in the original line.\n */\nexport interface TextChunk {\n\ttext: string;\n\tstartIndex: number;\n\tendIndex: number;\n}\n\n/**\n * Split a line into word-wrapped chunks.\n * Wraps at word boundaries when possible, falling back to character-level\n * wrapping for words longer than the available width.\n *\n * @param line - The text line to wrap\n * @param maxWidth - Maximum visible width per chunk\n * @param preSegmented - Optional pre-segmented graphemes (e.g. with paste-marker awareness).\n * When omitted the default Intl.Segmenter is used.\n * @returns Array of chunks with text and position information\n */\nexport function wordWrapLine(line: string, maxWidth: number, preSegmented?: Intl.SegmentData[]): TextChunk[] {\n\tif (!line || maxWidth <= 0) {\n\t\treturn [{ text: \"\", startIndex: 0, endIndex: 0 }];\n\t}\n\n\tconst lineWidth = visibleWidth(line);\n\tif (lineWidth <= maxWidth) {\n\t\treturn [{ text: line, startIndex: 0, endIndex: line.length }];\n\t}\n\n\tconst chunks: TextChunk[] = [];\n\tconst segments = preSegmented ?? [...baseSegmenter.segment(line)];\n\n\tlet currentWidth = 0;\n\tlet chunkStart = 0;\n\n\t// Wrap opportunity: the position after the last whitespace before a non-whitespace\n\t// grapheme, i.e. where a line break is allowed.\n\tlet wrapOppIndex = -1;\n\tlet wrapOppWidth = 0;\n\n\tfor (let i = 0; i < segments.length; i++) {\n\t\tconst seg = segments[i]!;\n\t\tconst grapheme = seg.segment;\n\t\tconst gWidth = visibleWidth(grapheme);\n\t\tconst charIndex = seg.index;\n\t\tconst isWs = !isPasteMarker(grapheme) && isWhitespaceChar(grapheme);\n\n\t\t// Overflow check before advancing.\n\t\tif (currentWidth + gWidth > maxWidth) {\n\t\t\tif (wrapOppIndex >= 0 && currentWidth - wrapOppWidth + gWidth <= maxWidth) {\n\t\t\t\t// Backtrack to last wrap opportunity (the remaining content\n\t\t\t\t// plus the current grapheme still fits within maxWidth).\n\t\t\t\tchunks.push({ text: line.slice(chunkStart, wrapOppIndex), startIndex: chunkStart, endIndex: wrapOppIndex });\n\t\t\t\tchunkStart = wrapOppIndex;\n\t\t\t\tcurrentWidth -= wrapOppWidth;\n\t\t\t} else if (chunkStart < charIndex) {\n\t\t\t\t// No viable wrap opportunity: force-break at current position.\n\t\t\t\t// This also handles the case where backtracking to a word\n\t\t\t\t// boundary wouldn't help because the remaining content plus\n\t\t\t\t// the current grapheme (e.g. a wide character) still exceeds\n\t\t\t\t// maxWidth.\n\t\t\t\tchunks.push({ text: line.slice(chunkStart, charIndex), startIndex: chunkStart, endIndex: charIndex });\n\t\t\t\tchunkStart = charIndex;\n\t\t\t\tcurrentWidth = 0;\n\t\t\t}\n\t\t\twrapOppIndex = -1;\n\t\t}\n\n\t\tif (gWidth > maxWidth) {\n\t\t\t// Single atomic segment wider than maxWidth (e.g. paste marker\n\t\t\t// in a narrow terminal). Re-wrap it at grapheme granularity.\n\n\t\t\t// The segment remains logically atomic for cursor\n\t\t\t// movement / editing — the split is purely visual for word-wrap layout.\n\t\t\tconst subChunks = wordWrapLine(grapheme, maxWidth);\n\t\t\tfor (let j = 0; j < subChunks.length - 1; j++) {\n\t\t\t\tconst sc = subChunks[j]!;\n\t\t\t\tchunks.push({ text: sc.text, startIndex: charIndex + sc.startIndex, endIndex: charIndex + sc.endIndex });\n\t\t\t}\n\t\t\tconst last = subChunks[subChunks.length - 1]!;\n\t\t\tchunkStart = charIndex + last.startIndex;\n\t\t\tcurrentWidth = visibleWidth(last.text);\n\t\t\twrapOppIndex = -1;\n\t\t\tcontinue;\n\t\t}\n\n\t\t// Advance.\n\t\tcurrentWidth += gWidth;\n\n\t\t// Record wrap opportunity: whitespace followed by non-whitespace.\n\t\t// Multiple spaces join (no break between them); the break point is\n\t\t// after the last space before the next word.\n\t\tconst next = segments[i + 1];\n\t\tif (isWs && next && (isPasteMarker(next.segment) || !isWhitespaceChar(next.segment))) {\n\t\t\twrapOppIndex = next.index;\n\t\t\twrapOppWidth = currentWidth;\n\t\t}\n\t}\n\n\t// Push final chunk.\n\tchunks.push({ text: line.slice(chunkStart), startIndex: chunkStart, endIndex: line.length });\n\n\treturn chunks;\n}\n\n// Kitty CSI-u sequences for printable keys, including optional shifted/base codepoints.\ninterface EditorState {\n\tlines: string[];\n\tcursorLine: number;\n\tcursorCol: number;\n}\n\ninterface LayoutLine {\n\ttext: string;\n\thasCursor: boolean;\n\tcursorPos?: number;\n}\n\nexport interface EditorTheme {\n\tborderColor: (str: string) => string;\n\tselectList: SelectListTheme;\n}\n\nexport interface EditorOptions {\n\tpaddingX?: number;\n\tautocompleteMaxVisible?: number;\n}\n\nconst SLASH_COMMAND_SELECT_LIST_LAYOUT: SelectListLayoutOptions = {\n\tminPrimaryColumnWidth: 12,\n\tmaxPrimaryColumnWidth: 32,\n};\n\nconst ATTACHMENT_AUTOCOMPLETE_DEBOUNCE_MS = 20;\n\nexport class Editor implements Component, Focusable {\n\tprivate state: EditorState = {\n\t\tlines: [\"\"],\n\t\tcursorLine: 0,\n\t\tcursorCol: 0,\n\t};\n\n\t/** Focusable interface - set by TUI when focus changes */\n\tfocused: boolean = false;\n\n\tprotected tui: TUI;\n\tprivate theme: EditorTheme;\n\tprivate paddingX: number = 0;\n\n\t// Store last render width for cursor navigation\n\tprivate lastWidth: number = 80;\n\n\t// Vertical scrolling support\n\tprivate scrollOffset: number = 0;\n\n\t// Border color (can be changed dynamically)\n\tpublic borderColor: (str: string) => string;\n\n\t// Autocomplete support\n\tprivate autocompleteProvider?: AutocompleteProvider;\n\tprivate autocompleteList?: SelectList;\n\tprivate autocompleteState: \"regular\" | \"force\" | null = null;\n\tprivate autocompletePrefix: string = \"\";\n\tprivate autocompleteMaxVisible: number = 5;\n\tprivate autocompleteAbort?: AbortController;\n\tprivate autocompleteDebounceTimer?: ReturnType<typeof setTimeout>;\n\tprivate autocompleteRequestTask: Promise<void> = Promise.resolve();\n\tprivate autocompleteStartToken: number = 0;\n\tprivate autocompleteRequestId: number = 0;\n\n\t// Paste tracking for large pastes\n\tprivate pastes: Map<number, string> = new Map();\n\tprivate pasteCounter: number = 0;\n\n\t// Bracketed paste mode buffering\n\tprivate pasteBuffer: string = \"\";\n\tprivate isInPaste: boolean = false;\n\n\t// Prompt history for up/down navigation\n\tprivate history: string[] = [];\n\tprivate historyIndex: number = -1; // -1 = not browsing, 0 = most recent, 1 = older, etc.\n\n\t// Kill ring for Emacs-style kill/yank operations\n\tprivate killRing = new KillRing();\n\tprivate lastAction: \"kill\" | \"yank\" | \"type-word\" | null = null;\n\n\t// Character jump mode\n\tprivate jumpMode: \"forward\" | \"backward\" | null = null;\n\n\t// Preferred visual column for vertical cursor movement (sticky column)\n\tprivate preferredVisualCol: number | null = null;\n\n\t// When the cursor is snapped to the start of an atomic segment, e.g. a\n\t// paste marker, cursorCol no longer reflects where the cursor would have\n\t// landed. This field stores the pre-snap cursorCol so that the next\n\t// vertical move can resolve it to a visual column on whatever VL it belongs\n\t// to.\n\tprivate snappedFromCursorCol: number | null = null;\n\n\t// Undo support\n\tprivate undoStack = new UndoStack<EditorState>();\n\n\tpublic onSubmit?: (text: string) => void;\n\tpublic onChange?: (text: string) => void;\n\tpublic disableSubmit: boolean = false;\n\n\tconstructor(tui: TUI, theme: EditorTheme, options: EditorOptions = {}) {\n\t\tthis.tui = tui;\n\t\tthis.theme = theme;\n\t\tthis.borderColor = theme.borderColor;\n\t\tconst paddingX = options.paddingX ?? 0;\n\t\tthis.paddingX = Number.isFinite(paddingX) ? Math.max(0, Math.floor(paddingX)) : 0;\n\t\tconst maxVisible = options.autocompleteMaxVisible ?? 5;\n\t\tthis.autocompleteMaxVisible = Number.isFinite(maxVisible) ? Math.max(3, Math.min(20, Math.floor(maxVisible))) : 5;\n\t}\n\n\t/** Set of currently valid paste IDs, for marker-aware segmentation. */\n\tprivate validPasteIds(): Set<number> {\n\t\treturn new Set(this.pastes.keys());\n\t}\n\n\t/** Segment text with paste-marker awareness, only merging markers with valid IDs. */\n\tprivate segment(text: string): Iterable<Intl.SegmentData> {\n\t\treturn segmentWithMarkers(text, this.validPasteIds());\n\t}\n\n\tgetPaddingX(): number {\n\t\treturn this.paddingX;\n\t}\n\n\tsetPaddingX(padding: number): void {\n\t\tconst newPadding = Number.isFinite(padding) ? Math.max(0, Math.floor(padding)) : 0;\n\t\tif (this.paddingX !== newPadding) {\n\t\t\tthis.paddingX = newPadding;\n\t\t\tthis.tui.requestRender();\n\t\t}\n\t}\n\n\tgetAutocompleteMaxVisible(): number {\n\t\treturn this.autocompleteMaxVisible;\n\t}\n\n\tsetAutocompleteMaxVisible(maxVisible: number): void {\n\t\tconst newMaxVisible = Number.isFinite(maxVisible) ? Math.max(3, Math.min(20, Math.floor(maxVisible))) : 5;\n\t\tif (this.autocompleteMaxVisible !== newMaxVisible) {\n\t\t\tthis.autocompleteMaxVisible = newMaxVisible;\n\t\t\tthis.tui.requestRender();\n\t\t}\n\t}\n\n\tsetAutocompleteProvider(provider: AutocompleteProvider): void {\n\t\tthis.cancelAutocomplete();\n\t\tthis.autocompleteProvider = provider;\n\t}\n\n\t/**\n\t * Add a prompt to history for up/down arrow navigation.\n\t * Called after successful submission.\n\t */\n\taddToHistory(text: string): void {\n\t\tconst trimmed = text.trim();\n\t\tif (!trimmed) return;\n\t\t// Don't add consecutive duplicates\n\t\tif (this.history.length > 0 && this.history[0] === trimmed) return;\n\t\tthis.history.unshift(trimmed);\n\t\t// Limit history size\n\t\tif (this.history.length > 100) {\n\t\t\tthis.history.pop();\n\t\t}\n\t}\n\n\tprivate isEditorEmpty(): boolean {\n\t\treturn this.state.lines.length === 1 && this.state.lines[0] === \"\";\n\t}\n\n\tprivate isOnFirstVisualLine(): boolean {\n\t\tconst visualLines = this.buildVisualLineMap(this.lastWidth);\n\t\tconst currentVisualLine = this.findCurrentVisualLine(visualLines);\n\t\treturn currentVisualLine === 0;\n\t}\n\n\tprivate isOnLastVisualLine(): boolean {\n\t\tconst visualLines = this.buildVisualLineMap(this.lastWidth);\n\t\tconst currentVisualLine = this.findCurrentVisualLine(visualLines);\n\t\treturn currentVisualLine === visualLines.length - 1;\n\t}\n\n\tprivate navigateHistory(direction: 1 | -1): void {\n\t\tthis.lastAction = null;\n\t\tif (this.history.length === 0) return;\n\n\t\tconst newIndex = this.historyIndex - direction; // Up(-1) increases index, Down(1) decreases\n\t\tif (newIndex < -1 || newIndex >= this.history.length) return;\n\n\t\t// Capture state when first entering history browsing mode\n\t\tif (this.historyIndex === -1 && newIndex >= 0) {\n\t\t\tthis.pushUndoSnapshot();\n\t\t}\n\n\t\tthis.historyIndex = newIndex;\n\n\t\tif (this.historyIndex === -1) {\n\t\t\t// Returned to \"current\" state - clear editor\n\t\t\tthis.setTextInternal(\"\");\n\t\t} else {\n\t\t\tthis.setTextInternal(this.history[this.historyIndex] || \"\");\n\t\t}\n\t}\n\n\t/** Internal setText that doesn't reset history state - used by navigateHistory */\n\tprivate setTextInternal(text: string): void {\n\t\tconst lines = text.split(\"\\n\");\n\t\tthis.state.lines = lines.length === 0 ? [\"\"] : lines;\n\t\tthis.state.cursorLine = this.state.lines.length - 1;\n\t\tthis.setCursorCol(this.state.lines[this.state.cursorLine]?.length || 0);\n\t\t// Reset scroll - render() will adjust to show cursor\n\t\tthis.scrollOffset = 0;\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(width: number): string[] {\n\t\tconst maxPadding = Math.max(0, Math.floor((width - 1) / 2));\n\t\tconst paddingX = Math.min(this.paddingX, maxPadding);\n\t\tconst contentWidth = Math.max(1, width - paddingX * 2);\n\n\t\t// Layout width: with padding the cursor can overflow into it,\n\t\t// without padding we reserve 1 column for the cursor.\n\t\tconst layoutWidth = Math.max(1, contentWidth - (paddingX ? 0 : 1));\n\n\t\t// Store for cursor navigation (must match wrapping width)\n\t\tthis.lastWidth = layoutWidth;\n\n\t\tconst horizontal = this.borderColor(\"─\");\n\n\t\t// Layout the text\n\t\tconst layoutLines = this.layoutText(layoutWidth);\n\n\t\t// Calculate max visible lines: 30% of terminal height, minimum 5 lines\n\t\tconst terminalRows = this.tui.terminal.rows;\n\t\tconst maxVisibleLines = Math.max(5, Math.floor(terminalRows * 0.3));\n\n\t\t// Find the cursor line index in layoutLines\n\t\tlet cursorLineIndex = layoutLines.findIndex((line) => line.hasCursor);\n\t\tif (cursorLineIndex === -1) cursorLineIndex = 0;\n\n\t\t// Adjust scroll offset to keep cursor visible\n\t\tif (cursorLineIndex < this.scrollOffset) {\n\t\t\tthis.scrollOffset = cursorLineIndex;\n\t\t} else if (cursorLineIndex >= this.scrollOffset + maxVisibleLines) {\n\t\t\tthis.scrollOffset = cursorLineIndex - maxVisibleLines + 1;\n\t\t}\n\n\t\t// Clamp scroll offset to valid range\n\t\tconst maxScrollOffset = Math.max(0, layoutLines.length - maxVisibleLines);\n\t\tthis.scrollOffset = Math.max(0, Math.min(this.scrollOffset, maxScrollOffset));\n\n\t\t// Get visible lines slice\n\t\tconst visibleLines = layoutLines.slice(this.scrollOffset, this.scrollOffset + maxVisibleLines);\n\n\t\tconst result: string[] = [];\n\t\tconst leftPadding = \" \".repeat(paddingX);\n\t\tconst rightPadding = leftPadding;\n\n\t\t// Render top border (with scroll indicator if scrolled down)\n\t\tif (this.scrollOffset > 0) {\n\t\t\tconst indicator = `─── ↑ ${this.scrollOffset} more `;\n\t\t\tconst remaining = width - visibleWidth(indicator);\n\t\t\tif (remaining >= 0) {\n\t\t\t\tresult.push(this.borderColor(indicator + \"─\".repeat(remaining)));\n\t\t\t} else {\n\t\t\t\tresult.push(this.borderColor(truncateToWidth(indicator, width)));\n\t\t\t}\n\t\t} else {\n\t\t\tresult.push(horizontal.repeat(width));\n\t\t}\n\n\t\t// Render each visible layout line\n\t\t// Emit hardware cursor marker only when focused and not showing autocomplete\n\t\tconst emitCursorMarker = this.focused && !this.autocompleteState;\n\n\t\tfor (const layoutLine of visibleLines) {\n\t\t\tlet displayText = layoutLine.text;\n\t\t\tlet lineVisibleWidth = visibleWidth(layoutLine.text);\n\t\t\tlet cursorInPadding = false;\n\n\t\t\t// Add cursor if this line has it\n\t\t\tif (layoutLine.hasCursor && layoutLine.cursorPos !== undefined) {\n\t\t\t\tconst before = displayText.slice(0, layoutLine.cursorPos);\n\t\t\t\tconst after = displayText.slice(layoutLine.cursorPos);\n\n\t\t\t\t// Hardware cursor marker (zero-width, emitted before fake cursor for IME positioning)\n\t\t\t\tconst marker = emitCursorMarker ? CURSOR_MARKER : \"\";\n\n\t\t\t\tif (after.length > 0) {\n\t\t\t\t\t// Cursor is on a character (grapheme) - replace it with highlighted version\n\t\t\t\t\t// Get the first grapheme from 'after'\n\t\t\t\t\tconst afterGraphemes = [...this.segment(after)];\n\t\t\t\t\tconst firstGrapheme = afterGraphemes[0]?.segment || \"\";\n\t\t\t\t\tconst restAfter = after.slice(firstGrapheme.length);\n\t\t\t\t\tconst cursor = `\\x1b[7m${firstGrapheme}\\x1b[0m`;\n\t\t\t\t\tdisplayText = before + marker + cursor + restAfter;\n\t\t\t\t\t// lineVisibleWidth stays the same - we're replacing, not adding\n\t\t\t\t} else {\n\t\t\t\t\t// Cursor is at the end - add highlighted space\n\t\t\t\t\tconst cursor = \"\\x1b[7m \\x1b[0m\";\n\t\t\t\t\tdisplayText = before + marker + cursor;\n\t\t\t\t\tlineVisibleWidth = lineVisibleWidth + 1;\n\t\t\t\t\t// If cursor overflows content width into the padding, flag it\n\t\t\t\t\tif (lineVisibleWidth > contentWidth && paddingX > 0) {\n\t\t\t\t\t\tcursorInPadding = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Calculate padding based on actual visible width\n\t\t\tconst padding = \" \".repeat(Math.max(0, contentWidth - lineVisibleWidth));\n\t\t\tconst lineRightPadding = cursorInPadding ? rightPadding.slice(1) : rightPadding;\n\n\t\t\t// Render the line (no side borders, just horizontal lines above and below)\n\t\t\tresult.push(`${leftPadding}${displayText}${padding}${lineRightPadding}`);\n\t\t}\n\n\t\t// Render bottom border (with scroll indicator if more content below)\n\t\tconst linesBelow = layoutLines.length - (this.scrollOffset + visibleLines.length);\n\t\tif (linesBelow > 0) {\n\t\t\tconst indicator = `─── ↓ ${linesBelow} more `;\n\t\t\tconst remaining = width - visibleWidth(indicator);\n\t\t\tresult.push(this.borderColor(indicator + \"─\".repeat(Math.max(0, remaining))));\n\t\t} else {\n\t\t\tresult.push(horizontal.repeat(width));\n\t\t}\n\n\t\t// Add autocomplete list if active\n\t\tif (this.autocompleteState && this.autocompleteList) {\n\t\t\tconst autocompleteResult = this.autocompleteList.render(contentWidth);\n\t\t\tfor (const line of autocompleteResult) {\n\t\t\t\tconst lineWidth = visibleWidth(line);\n\t\t\t\tconst linePadding = \" \".repeat(Math.max(0, contentWidth - lineWidth));\n\t\t\t\tresult.push(`${leftPadding}${line}${linePadding}${rightPadding}`);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n\n\thandleInput(data: string): void {\n\t\tconst kb = getKeybindings();\n\n\t\t// Handle character jump mode (awaiting next character to jump to)\n\t\tif (this.jumpMode !== null) {\n\t\t\t// Cancel if the hotkey is pressed again\n\t\t\tif (kb.matches(data, \"tui.editor.jumpForward\") || kb.matches(data, \"tui.editor.jumpBackward\")) {\n\t\t\t\tthis.jumpMode = null;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst printable = decodePrintableKey(data) ?? (data.charCodeAt(0) >= 32 ? data : undefined);\n\t\t\tif (printable !== undefined) {\n\t\t\t\t// Printable character - perform the jump\n\t\t\t\tconst direction = this.jumpMode;\n\t\t\t\tthis.jumpMode = null;\n\t\t\t\tthis.jumpToChar(printable, direction);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Control character - cancel and fall through to normal handling\n\t\t\tthis.jumpMode = null;\n\t\t}\n\n\t\t// Handle bracketed paste mode\n\t\tif (data.includes(\"\\x1b[200~\")) {\n\t\t\tthis.isInPaste = true;\n\t\t\tthis.pasteBuffer = \"\";\n\t\t\tdata = data.replace(\"\\x1b[200~\", \"\");\n\t\t}\n\n\t\tif (this.isInPaste) {\n\t\t\tthis.pasteBuffer += data;\n\t\t\tconst endIndex = this.pasteBuffer.indexOf(\"\\x1b[201~\");\n\t\t\tif (endIndex !== -1) {\n\t\t\t\tconst pasteContent = this.pasteBuffer.substring(0, endIndex);\n\t\t\t\tif (pasteContent.length > 0) {\n\t\t\t\t\tthis.handlePaste(pasteContent);\n\t\t\t\t}\n\t\t\t\tthis.isInPaste = false;\n\t\t\t\tconst remaining = this.pasteBuffer.substring(endIndex + 6);\n\t\t\t\tthis.pasteBuffer = \"\";\n\t\t\t\tif (remaining.length > 0) {\n\t\t\t\t\tthis.handleInput(remaining);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// Ctrl+C - let parent handle (exit/clear)\n\t\tif (kb.matches(data, \"tui.input.copy\")) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Undo\n\t\tif (kb.matches(data, \"tui.editor.undo\")) {\n\t\t\tthis.undo();\n\t\t\treturn;\n\t\t}\n\n\t\t// Handle autocomplete mode\n\t\tif (this.autocompleteState && this.autocompleteList) {\n\t\t\tif (kb.matches(data, \"tui.select.cancel\")) {\n\t\t\t\tthis.cancelAutocomplete();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (kb.matches(data, \"tui.select.up\") || kb.matches(data, \"tui.select.down\")) {\n\t\t\t\tthis.autocompleteList.handleInput(data);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (kb.matches(data, \"tui.input.tab\")) {\n\t\t\t\tconst selected = this.autocompleteList.getSelectedItem();\n\t\t\t\tif (selected && this.autocompleteProvider) {\n\t\t\t\t\tthis.pushUndoSnapshot();\n\t\t\t\t\tthis.lastAction = null;\n\t\t\t\t\tconst result = this.autocompleteProvider.applyCompletion(\n\t\t\t\t\t\tthis.state.lines,\n\t\t\t\t\t\tthis.state.cursorLine,\n\t\t\t\t\t\tthis.state.cursorCol,\n\t\t\t\t\t\tselected,\n\t\t\t\t\t\tthis.autocompletePrefix,\n\t\t\t\t\t);\n\t\t\t\t\tthis.state.lines = result.lines;\n\t\t\t\t\tthis.state.cursorLine = result.cursorLine;\n\t\t\t\t\tthis.setCursorCol(result.cursorCol);\n\t\t\t\t\tthis.cancelAutocomplete();\n\t\t\t\t\tif (this.onChange) this.onChange(this.getText());\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (kb.matches(data, \"tui.select.confirm\")) {\n\t\t\t\tconst selected = this.autocompleteList.getSelectedItem();\n\t\t\t\tif (selected && this.autocompleteProvider) {\n\t\t\t\t\tthis.pushUndoSnapshot();\n\t\t\t\t\tthis.lastAction = null;\n\t\t\t\t\tconst result = this.autocompleteProvider.applyCompletion(\n\t\t\t\t\t\tthis.state.lines,\n\t\t\t\t\t\tthis.state.cursorLine,\n\t\t\t\t\t\tthis.state.cursorCol,\n\t\t\t\t\t\tselected,\n\t\t\t\t\t\tthis.autocompletePrefix,\n\t\t\t\t\t);\n\t\t\t\t\tthis.state.lines = result.lines;\n\t\t\t\t\tthis.state.cursorLine = result.cursorLine;\n\t\t\t\t\tthis.setCursorCol(result.cursorCol);\n\n\t\t\t\t\tif (this.autocompletePrefix.startsWith(\"/\")) {\n\t\t\t\t\t\tthis.cancelAutocomplete();\n\t\t\t\t\t\t// Fall through to submit\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.cancelAutocomplete();\n\t\t\t\t\t\tif (this.onChange) this.onChange(this.getText());\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Tab - trigger completion\n\t\tif (kb.matches(data, \"tui.input.tab\") && !this.autocompleteState) {\n\t\t\tthis.handleTabCompletion();\n\t\t\treturn;\n\t\t}\n\n\t\t// Deletion actions\n\t\tif (kb.matches(data, \"tui.editor.deleteToLineEnd\")) {\n\t\t\tthis.deleteToEndOfLine();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.deleteToLineStart\")) {\n\t\t\tthis.deleteToStartOfLine();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.deleteWordBackward\")) {\n\t\t\tthis.deleteWordBackwards();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.deleteWordForward\")) {\n\t\t\tthis.deleteWordForward();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.deleteCharBackward\") || matchesKey(data, \"shift+backspace\")) {\n\t\t\tthis.handleBackspace();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.deleteCharForward\") || matchesKey(data, \"shift+delete\")) {\n\t\t\tthis.handleForwardDelete();\n\t\t\treturn;\n\t\t}\n\n\t\t// Kill ring actions\n\t\tif (kb.matches(data, \"tui.editor.yank\")) {\n\t\t\tthis.yank();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.yankPop\")) {\n\t\t\tthis.yankPop();\n\t\t\treturn;\n\t\t}\n\n\t\t// Cursor movement actions\n\t\tif (kb.matches(data, \"tui.editor.cursorLineStart\")) {\n\t\t\tthis.moveToLineStart();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.cursorLineEnd\")) {\n\t\t\tthis.moveToLineEnd();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.cursorWordLeft\")) {\n\t\t\tthis.moveWordBackwards();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.cursorWordRight\")) {\n\t\t\tthis.moveWordForwards();\n\t\t\treturn;\n\t\t}\n\n\t\t// New line\n\t\tif (\n\t\t\tkb.matches(data, \"tui.input.newLine\") ||\n\t\t\t(data.charCodeAt(0) === 10 && data.length > 1) ||\n\t\t\tdata === \"\\x1b\\r\" ||\n\t\t\tdata === \"\\x1b[13;2~\" ||\n\t\t\t(data.length > 1 && data.includes(\"\\x1b\") && data.includes(\"\\r\")) ||\n\t\t\t(data === \"\\n\" && data.length === 1)\n\t\t) {\n\t\t\tif (this.shouldSubmitOnBackslashEnter(data, kb)) {\n\t\t\t\tthis.handleBackspace();\n\t\t\t\tthis.submitValue();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.addNewLine();\n\t\t\treturn;\n\t\t}\n\n\t\t// Submit (Enter)\n\t\tif (kb.matches(data, \"tui.input.submit\")) {\n\t\t\tif (this.disableSubmit) return;\n\n\t\t\t// Workaround for terminals without Shift+Enter support:\n\t\t\t// If char before cursor is \\, delete it and insert newline instead of submitting.\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tif (this.state.cursorCol > 0 && currentLine[this.state.cursorCol - 1] === \"\\\\\") {\n\t\t\t\tthis.handleBackspace();\n\t\t\t\tthis.addNewLine();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.submitValue();\n\t\t\treturn;\n\t\t}\n\n\t\t// Arrow key navigation (with history support)\n\t\tif (kb.matches(data, \"tui.editor.cursorUp\")) {\n\t\t\tif (this.isEditorEmpty()) {\n\t\t\t\tthis.navigateHistory(-1);\n\t\t\t} else if (this.historyIndex > -1 && this.isOnFirstVisualLine()) {\n\t\t\t\tthis.navigateHistory(-1);\n\t\t\t} else if (this.isOnFirstVisualLine()) {\n\t\t\t\t// Already at top - jump to start of line\n\t\t\t\tthis.moveToLineStart();\n\t\t\t} else {\n\t\t\t\tthis.moveCursor(-1, 0);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.cursorDown\")) {\n\t\t\tif (this.historyIndex > -1 && this.isOnLastVisualLine()) {\n\t\t\t\tthis.navigateHistory(1);\n\t\t\t} else if (this.isOnLastVisualLine()) {\n\t\t\t\t// Already at bottom - jump to end of line\n\t\t\t\tthis.moveToLineEnd();\n\t\t\t} else {\n\t\t\t\tthis.moveCursor(1, 0);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.cursorRight\")) {\n\t\t\tthis.moveCursor(0, 1);\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.cursorLeft\")) {\n\t\t\tthis.moveCursor(0, -1);\n\t\t\treturn;\n\t\t}\n\n\t\t// Page up/down - scroll by page and move cursor\n\t\tif (kb.matches(data, \"tui.editor.pageUp\")) {\n\t\t\tthis.pageScroll(-1);\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.pageDown\")) {\n\t\t\tthis.pageScroll(1);\n\t\t\treturn;\n\t\t}\n\n\t\t// Character jump mode triggers\n\t\tif (kb.matches(data, \"tui.editor.jumpForward\")) {\n\t\t\tthis.jumpMode = \"forward\";\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.jumpBackward\")) {\n\t\t\tthis.jumpMode = \"backward\";\n\t\t\treturn;\n\t\t}\n\n\t\t// Shift+Space - insert regular space\n\t\tif (matchesKey(data, \"shift+space\")) {\n\t\t\tthis.insertCharacter(\" \");\n\t\t\treturn;\n\t\t}\n\n\t\tconst printable = decodePrintableKey(data);\n\t\tif (printable !== undefined) {\n\t\t\tthis.insertCharacter(printable);\n\t\t\treturn;\n\t\t}\n\n\t\t// Regular characters\n\t\tif (data.charCodeAt(0) >= 32) {\n\t\t\tthis.insertCharacter(data);\n\t\t}\n\t}\n\n\tprivate layoutText(contentWidth: number): LayoutLine[] {\n\t\tconst layoutLines: LayoutLine[] = [];\n\n\t\tif (this.state.lines.length === 0 || (this.state.lines.length === 1 && this.state.lines[0] === \"\")) {\n\t\t\t// Empty editor\n\t\t\tlayoutLines.push({\n\t\t\t\ttext: \"\",\n\t\t\t\thasCursor: true,\n\t\t\t\tcursorPos: 0,\n\t\t\t});\n\t\t\treturn layoutLines;\n\t\t}\n\n\t\t// Process each logical line\n\t\tfor (let i = 0; i < this.state.lines.length; i++) {\n\t\t\tconst line = this.state.lines[i] || \"\";\n\t\t\tconst isCurrentLine = i === this.state.cursorLine;\n\t\t\tconst lineVisibleWidth = visibleWidth(line);\n\n\t\t\tif (lineVisibleWidth <= contentWidth) {\n\t\t\t\t// Line fits in one layout line\n\t\t\t\tif (isCurrentLine) {\n\t\t\t\t\tlayoutLines.push({\n\t\t\t\t\t\ttext: line,\n\t\t\t\t\t\thasCursor: true,\n\t\t\t\t\t\tcursorPos: this.state.cursorCol,\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tlayoutLines.push({\n\t\t\t\t\t\ttext: line,\n\t\t\t\t\t\thasCursor: false,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Line needs wrapping - use word-aware wrapping\n\t\t\t\tconst chunks = wordWrapLine(line, contentWidth, [...this.segment(line)]);\n\n\t\t\t\tfor (let chunkIndex = 0; chunkIndex < chunks.length; chunkIndex++) {\n\t\t\t\t\tconst chunk = chunks[chunkIndex];\n\t\t\t\t\tif (!chunk) continue;\n\n\t\t\t\t\tconst cursorPos = this.state.cursorCol;\n\t\t\t\t\tconst isLastChunk = chunkIndex === chunks.length - 1;\n\n\t\t\t\t\t// Determine if cursor is in this chunk\n\t\t\t\t\t// For word-wrapped chunks, we need to handle the case where\n\t\t\t\t\t// cursor might be in trimmed whitespace at end of chunk\n\t\t\t\t\tlet hasCursorInChunk = false;\n\t\t\t\t\tlet adjustedCursorPos = 0;\n\n\t\t\t\t\tif (isCurrentLine) {\n\t\t\t\t\t\tif (isLastChunk) {\n\t\t\t\t\t\t\t// Last chunk: cursor belongs here if >= startIndex\n\t\t\t\t\t\t\thasCursorInChunk = cursorPos >= chunk.startIndex;\n\t\t\t\t\t\t\tadjustedCursorPos = cursorPos - chunk.startIndex;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Non-last chunk: cursor belongs here if in range [startIndex, endIndex)\n\t\t\t\t\t\t\t// But we need to handle the visual position in the trimmed text\n\t\t\t\t\t\t\thasCursorInChunk = cursorPos >= chunk.startIndex && cursorPos < chunk.endIndex;\n\t\t\t\t\t\t\tif (hasCursorInChunk) {\n\t\t\t\t\t\t\t\tadjustedCursorPos = cursorPos - chunk.startIndex;\n\t\t\t\t\t\t\t\t// Clamp to text length (in case cursor was in trimmed whitespace)\n\t\t\t\t\t\t\t\tif (adjustedCursorPos > chunk.text.length) {\n\t\t\t\t\t\t\t\t\tadjustedCursorPos = chunk.text.length;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (hasCursorInChunk) {\n\t\t\t\t\t\tlayoutLines.push({\n\t\t\t\t\t\t\ttext: chunk.text,\n\t\t\t\t\t\t\thasCursor: true,\n\t\t\t\t\t\t\tcursorPos: adjustedCursorPos,\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlayoutLines.push({\n\t\t\t\t\t\t\ttext: chunk.text,\n\t\t\t\t\t\t\thasCursor: false,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn layoutLines;\n\t}\n\n\tgetText(): string {\n\t\treturn this.state.lines.join(\"\\n\");\n\t}\n\n\tprivate expandPasteMarkers(text: string): string {\n\t\tlet result = text;\n\t\tfor (const [pasteId, pasteContent] of this.pastes) {\n\t\t\tconst markerRegex = new RegExp(`\\\\[paste #${pasteId}( (\\\\+\\\\d+ lines|\\\\d+ chars))?\\\\]`, \"g\");\n\t\t\tresult = result.replace(markerRegex, () => pasteContent);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * Get text with paste markers expanded to their actual content.\n\t * Use this when you need the full content (e.g., for external editor).\n\t */\n\tgetExpandedText(): string {\n\t\treturn this.expandPasteMarkers(this.state.lines.join(\"\\n\"));\n\t}\n\n\tgetLines(): string[] {\n\t\treturn [...this.state.lines];\n\t}\n\n\tgetCursor(): { line: number; col: number } {\n\t\treturn { line: this.state.cursorLine, col: this.state.cursorCol };\n\t}\n\n\tsetText(text: string): void {\n\t\tthis.cancelAutocomplete();\n\t\tthis.lastAction = null;\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\t\tconst normalized = this.normalizeText(text);\n\t\t// Push undo snapshot if content differs (makes programmatic changes undoable)\n\t\tif (this.getText() !== normalized) {\n\t\t\tthis.pushUndoSnapshot();\n\t\t}\n\t\tthis.setTextInternal(normalized);\n\t}\n\n\t/**\n\t * Insert text at the current cursor position.\n\t * Used for programmatic insertion (e.g., clipboard image markers).\n\t * This is atomic for undo - single undo restores entire pre-insert state.\n\t */\n\tinsertTextAtCursor(text: string): void {\n\t\tif (!text) return;\n\t\tthis.cancelAutocomplete();\n\t\tthis.pushUndoSnapshot();\n\t\tthis.lastAction = null;\n\t\tthis.historyIndex = -1;\n\t\tthis.insertTextAtCursorInternal(text);\n\t}\n\n\t/**\n\t * Normalize text for editor storage:\n\t * - Normalize line endings (\\r\\n and \\r -> \\n)\n\t * - Expand tabs to 4 spaces\n\t */\n\tprivate normalizeText(text: string): string {\n\t\treturn text.replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\").replace(/\\t/g, \" \");\n\t}\n\n\t/**\n\t * Internal text insertion at cursor. Handles single and multi-line text.\n\t * Does not push undo snapshots or trigger autocomplete - caller is responsible.\n\t * Normalizes line endings and calls onChange once at the end.\n\t */\n\tprivate insertTextAtCursorInternal(text: string): void {\n\t\tif (!text) return;\n\n\t\t// Normalize line endings and tabs\n\t\tconst normalized = this.normalizeText(text);\n\t\tconst insertedLines = normalized.split(\"\\n\");\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\tconst beforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\tconst afterCursor = currentLine.slice(this.state.cursorCol);\n\n\t\tif (insertedLines.length === 1) {\n\t\t\t// Single line - insert at cursor position\n\t\t\tthis.state.lines[this.state.cursorLine] = beforeCursor + normalized + afterCursor;\n\t\t\tthis.setCursorCol(this.state.cursorCol + normalized.length);\n\t\t} else {\n\t\t\t// Multi-line insertion\n\t\t\tthis.state.lines = [\n\t\t\t\t// All lines before current line\n\t\t\t\t...this.state.lines.slice(0, this.state.cursorLine),\n\n\t\t\t\t// The first inserted line merged with text before cursor\n\t\t\t\tbeforeCursor + insertedLines[0],\n\n\t\t\t\t// All middle inserted lines\n\t\t\t\t...insertedLines.slice(1, -1),\n\n\t\t\t\t// The last inserted line with text after cursor\n\t\t\t\tinsertedLines[insertedLines.length - 1] + afterCursor,\n\n\t\t\t\t// All lines after current line\n\t\t\t\t...this.state.lines.slice(this.state.cursorLine + 1),\n\t\t\t];\n\n\t\t\tthis.state.cursorLine += insertedLines.length - 1;\n\t\t\tthis.setCursorCol((insertedLines[insertedLines.length - 1] || \"\").length);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\t// All the editor methods from before...\n\tprivate insertCharacter(char: string, skipUndoCoalescing?: boolean): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\n\t\t// Undo coalescing (fish-style):\n\t\t// - Consecutive word chars coalesce into one undo unit\n\t\t// - Space captures state before itself (so undo removes space+following word together)\n\t\t// - Each space is separately undoable\n\t\t// Skip coalescing when called from atomic operations (e.g., handlePaste)\n\t\tif (!skipUndoCoalescing) {\n\t\t\tif (isWhitespaceChar(char) || this.lastAction !== \"type-word\") {\n\t\t\t\tthis.pushUndoSnapshot();\n\t\t\t}\n\t\t\tthis.lastAction = \"type-word\";\n\t\t}\n\n\t\tconst line = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\tconst before = line.slice(0, this.state.cursorCol);\n\t\tconst after = line.slice(this.state.cursorCol);\n\n\t\tthis.state.lines[this.state.cursorLine] = before + char + after;\n\t\tthis.setCursorCol(this.state.cursorCol + char.length);\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\n\t\t// Check if we should trigger or update autocomplete\n\t\tif (!this.autocompleteState) {\n\t\t\t// Auto-trigger for \"/\" at the start of a line (slash commands)\n\t\t\tif (char === \"/\" && this.isAtStartOfMessage()) {\n\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t}\n\t\t\t// Auto-trigger for symbol-based completion like @ or # at token boundaries\n\t\t\telse if (char === \"@\" || char === \"#\") {\n\t\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\t\tconst textBeforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\t\t\tconst charBeforeSymbol = textBeforeCursor[textBeforeCursor.length - 2];\n\t\t\t\tif (textBeforeCursor.length === 1 || charBeforeSymbol === \" \" || charBeforeSymbol === \"\\t\") {\n\t\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Also auto-trigger when typing letters in a slash command or symbol completion context\n\t\t\telse if (/[a-zA-Z0-9.\\-_]/.test(char)) {\n\t\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\t\tconst textBeforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\t\t\t// Check if we're in a slash command (with or without space for arguments)\n\t\t\t\tif (this.isInSlashCommandContext(textBeforeCursor)) {\n\t\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t\t}\n\t\t\t\t// Check if we're in a symbol-based completion context like @ or #\n\t\t\t\telse if (textBeforeCursor.match(/(?:^|[\\s])[@#][^\\s]*$/)) {\n\t\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthis.updateAutocomplete();\n\t\t}\n\t}\n\n\tprivate handlePaste(pastedText: string): void {\n\t\tthis.cancelAutocomplete();\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\t\tthis.lastAction = null;\n\n\t\tthis.pushUndoSnapshot();\n\n\t\t// Some terminals (e.g. tmux popups with extended-keys-format=csi-u) re-encode\n\t\t// control bytes inside bracketed paste as CSI-u Ctrl+<letter> sequences\n\t\t// (ESC [ <codepoint> ; 5 u). Decode those back to their literal byte so the\n\t\t// per-char filter below preserves newlines instead of stripping ESC and\n\t\t// leaking the printable tail (e.g. \"[106;5u\") into the editor.\n\t\tconst decodedText = pastedText.replace(/\\x1b\\[(\\d+);5u/g, (match, code) => {\n\t\t\tconst cp = Number(code);\n\t\t\tif (cp >= 97 && cp <= 122) return String.fromCharCode(cp - 96);\n\t\t\tif (cp >= 65 && cp <= 90) return String.fromCharCode(cp - 64);\n\t\t\treturn match;\n\t\t});\n\n\t\t// Clean the pasted text: normalize line endings, expand tabs\n\t\tconst cleanText = this.normalizeText(decodedText);\n\n\t\t// Filter out non-printable characters except newlines\n\t\tlet filteredText = cleanText\n\t\t\t.split(\"\")\n\t\t\t.filter((char) => char === \"\\n\" || char.charCodeAt(0) >= 32)\n\t\t\t.join(\"\");\n\n\t\t// If pasting a file path (starts with /, ~, or .) and the character before\n\t\t// the cursor is a word character, prepend a space for better readability\n\t\tif (/^[/~.]/.test(filteredText)) {\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst charBeforeCursor = this.state.cursorCol > 0 ? currentLine[this.state.cursorCol - 1] : \"\";\n\t\t\tif (charBeforeCursor && /\\w/.test(charBeforeCursor)) {\n\t\t\t\tfilteredText = ` ${filteredText}`;\n\t\t\t}\n\t\t}\n\n\t\t// Split into lines to check for large paste\n\t\tconst pastedLines = filteredText.split(\"\\n\");\n\n\t\t// Check if this is a large paste (> 10 lines or > 1000 characters)\n\t\tconst totalChars = filteredText.length;\n\t\tif (pastedLines.length > 10 || totalChars > 1000) {\n\t\t\t// Store the paste and insert a marker\n\t\t\tthis.pasteCounter++;\n\t\t\tconst pasteId = this.pasteCounter;\n\t\t\tthis.pastes.set(pasteId, filteredText);\n\n\t\t\t// Insert marker like \"[paste #1 +123 lines]\" or \"[paste #1 1234 chars]\"\n\t\t\tconst marker =\n\t\t\t\tpastedLines.length > 10\n\t\t\t\t\t? `[paste #${pasteId} +${pastedLines.length} lines]`\n\t\t\t\t\t: `[paste #${pasteId} ${totalChars} chars]`;\n\t\t\tthis.insertTextAtCursorInternal(marker);\n\t\t\treturn;\n\t\t}\n\n\t\tif (pastedLines.length === 1) {\n\t\t\t// Single line - insert atomically (do not trigger autocomplete during paste)\n\t\t\tthis.insertTextAtCursorInternal(filteredText);\n\t\t\treturn;\n\t\t}\n\n\t\t// Multi-line paste - use direct state manipulation\n\t\tthis.insertTextAtCursorInternal(filteredText);\n\t}\n\n\tprivate addNewLine(): void {\n\t\tthis.cancelAutocomplete();\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\t\tthis.lastAction = null;\n\n\t\tthis.pushUndoSnapshot();\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\tconst before = currentLine.slice(0, this.state.cursorCol);\n\t\tconst after = currentLine.slice(this.state.cursorCol);\n\n\t\t// Split current line\n\t\tthis.state.lines[this.state.cursorLine] = before;\n\t\tthis.state.lines.splice(this.state.cursorLine + 1, 0, after);\n\n\t\t// Move cursor to start of new line\n\t\tthis.state.cursorLine++;\n\t\tthis.setCursorCol(0);\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\tprivate shouldSubmitOnBackslashEnter(data: string, kb: ReturnType<typeof getKeybindings>): boolean {\n\t\tif (this.disableSubmit) return false;\n\t\tif (!matchesKey(data, \"enter\")) return false;\n\t\tconst submitKeys = kb.getKeys(\"tui.input.submit\");\n\t\tconst hasShiftEnter = submitKeys.includes(\"shift+enter\") || submitKeys.includes(\"shift+return\");\n\t\tif (!hasShiftEnter) return false;\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\treturn this.state.cursorCol > 0 && currentLine[this.state.cursorCol - 1] === \"\\\\\";\n\t}\n\n\tprivate submitValue(): void {\n\t\tthis.cancelAutocomplete();\n\t\tconst result = this.expandPasteMarkers(this.state.lines.join(\"\\n\")).trim();\n\n\t\tthis.state = { lines: [\"\"], cursorLine: 0, cursorCol: 0 };\n\t\tthis.pastes.clear();\n\t\tthis.pasteCounter = 0;\n\t\tthis.historyIndex = -1;\n\t\tthis.scrollOffset = 0;\n\t\tthis.undoStack.clear();\n\t\tthis.lastAction = null;\n\n\t\tif (this.onChange) this.onChange(\"\");\n\t\tif (this.onSubmit) this.onSubmit(result);\n\t}\n\n\tprivate handleBackspace(): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\t\tthis.lastAction = null;\n\n\t\tif (this.state.cursorCol > 0) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// Delete grapheme before cursor (handles emojis, combining characters, etc.)\n\t\t\tconst line = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst beforeCursor = line.slice(0, this.state.cursorCol);\n\n\t\t\t// Find the last grapheme in the text before cursor\n\t\t\tconst graphemes = [...this.segment(beforeCursor)];\n\t\t\tconst lastGrapheme = graphemes[graphemes.length - 1];\n\t\t\tconst graphemeLength = lastGrapheme ? lastGrapheme.segment.length : 1;\n\n\t\t\tconst before = line.slice(0, this.state.cursorCol - graphemeLength);\n\t\t\tconst after = line.slice(this.state.cursorCol);\n\n\t\t\tthis.state.lines[this.state.cursorLine] = before + after;\n\t\t\tthis.setCursorCol(this.state.cursorCol - graphemeLength);\n\t\t} else if (this.state.cursorLine > 0) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// Merge with previous line\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst previousLine = this.state.lines[this.state.cursorLine - 1] || \"\";\n\n\t\t\tthis.state.lines[this.state.cursorLine - 1] = previousLine + currentLine;\n\t\t\tthis.state.lines.splice(this.state.cursorLine, 1);\n\n\t\t\tthis.state.cursorLine--;\n\t\t\tthis.setCursorCol(previousLine.length);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\n\t\t// Update or re-trigger autocomplete after backspace\n\t\tif (this.autocompleteState) {\n\t\t\tthis.updateAutocomplete();\n\t\t} else {\n\t\t\t// If autocomplete was cancelled (no matches), re-trigger if we're in a completable context\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst textBeforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\t\t// Slash command context\n\t\t\tif (this.isInSlashCommandContext(textBeforeCursor)) {\n\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t}\n\t\t\t// Symbol-based completion context like @ or #\n\t\t\telse if (textBeforeCursor.match(/(?:^|[\\s])[@#][^\\s]*$/)) {\n\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Set cursor column and clear preferredVisualCol.\n\t * Use this for all non-vertical cursor movements to reset sticky column behavior.\n\t */\n\tprivate setCursorCol(col: number): void {\n\t\tthis.state.cursorCol = col;\n\t\tthis.preferredVisualCol = null;\n\t\tthis.snappedFromCursorCol = null;\n\t}\n\n\t/**\n\t * Move cursor to a target visual line, applying sticky column logic.\n\t * Shared by moveCursor() and pageScroll().\n\t */\n\tprivate moveToVisualLine(\n\t\tvisualLines: Array<{ logicalLine: number; startCol: number; length: number }>,\n\t\tcurrentVisualLine: number,\n\t\ttargetVisualLine: number,\n\t): void {\n\t\tconst currentVL = visualLines[currentVisualLine];\n\t\tconst targetVL = visualLines[targetVisualLine];\n\t\tif (!(currentVL && targetVL)) return;\n\n\t\t// When the cursor was snapped to a segment start, resolve the pre-snap\n\t\t// position against the VL it belongs to. This gives the correct visual\n\t\t// column even after a resize reshuffles VLs.\n\t\tlet currentVisualCol: number;\n\t\tif (this.snappedFromCursorCol !== null) {\n\t\t\tconst vlIndex = this.findVisualLineAt(visualLines, currentVL.logicalLine, this.snappedFromCursorCol);\n\t\t\tcurrentVisualCol = this.snappedFromCursorCol - visualLines[vlIndex].startCol;\n\t\t} else {\n\t\t\tcurrentVisualCol = this.state.cursorCol - currentVL.startCol;\n\t\t}\n\n\t\t// For non-last segments, clamp to length-1 to stay within the segment\n\t\tconst isLastSourceSegment =\n\t\t\tcurrentVisualLine === visualLines.length - 1 ||\n\t\t\tvisualLines[currentVisualLine + 1]?.logicalLine !== currentVL.logicalLine;\n\t\tconst sourceMaxVisualCol = isLastSourceSegment ? currentVL.length : Math.max(0, currentVL.length - 1);\n\n\t\tconst isLastTargetSegment =\n\t\t\ttargetVisualLine === visualLines.length - 1 ||\n\t\t\tvisualLines[targetVisualLine + 1]?.logicalLine !== targetVL.logicalLine;\n\t\tconst targetMaxVisualCol = isLastTargetSegment ? targetVL.length : Math.max(0, targetVL.length - 1);\n\n\t\tconst moveToVisualCol = this.computeVerticalMoveColumn(currentVisualCol, sourceMaxVisualCol, targetMaxVisualCol);\n\n\t\t// Set cursor position\n\t\tthis.state.cursorLine = targetVL.logicalLine;\n\t\tconst targetCol = targetVL.startCol + moveToVisualCol;\n\t\tconst logicalLine = this.state.lines[targetVL.logicalLine] || \"\";\n\t\tthis.state.cursorCol = Math.min(targetCol, logicalLine.length);\n\n\t\t// Snap cursor to atomic segment boundary (e.g. paste markers)\n\t\t// so the cursor never lands in the middle of a multi-grapheme unit.\n\t\t// Single-grapheme segments don't need snapping.\n\t\tconst segments = [...this.segment(logicalLine)];\n\t\tfor (const seg of segments) {\n\t\t\tif (seg.index > this.state.cursorCol) break;\n\t\t\tif (seg.segment.length <= 1) continue;\n\t\t\tif (this.state.cursorCol < seg.index + seg.segment.length) {\n\t\t\t\tconst isContinuation = seg.index < targetVL.startCol;\n\t\t\t\tconst isMovingDown = targetVisualLine > currentVisualLine;\n\n\t\t\t\tif (isContinuation && isMovingDown) {\n\t\t\t\t\t// The segment started on a previous visual line, and we\n\t\t\t\t\t// already visited it on the way down. Skip all remaining\n\t\t\t\t\t// continuation VLs and land on the first VL past it.\n\t\t\t\t\tconst segEnd = seg.index + seg.segment.length;\n\t\t\t\t\tlet next = targetVisualLine + 1;\n\t\t\t\t\twhile (\n\t\t\t\t\t\tnext < visualLines.length &&\n\t\t\t\t\t\tvisualLines[next].logicalLine === targetVL.logicalLine &&\n\t\t\t\t\t\tvisualLines[next].startCol < segEnd\n\t\t\t\t\t) {\n\t\t\t\t\t\tnext++;\n\t\t\t\t\t}\n\t\t\t\t\tif (next < visualLines.length) {\n\t\t\t\t\t\tthis.moveToVisualLine(visualLines, currentVisualLine, next);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Snap to the start of the segment so it gets highlighted.\n\t\t\t\t// Store the pre-snap position so the next vertical move can\n\t\t\t\t// resolve it to the correct visual column.\n\t\t\t\tthis.snappedFromCursorCol = this.state.cursorCol;\n\t\t\t\tthis.state.cursorCol = seg.index;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// No snap occurred – we moved out of the atomic segment.\n\t\tthis.snappedFromCursorCol = null;\n\t}\n\n\t/**\n\t * Compute the target visual column for vertical cursor movement.\n\t * Implements the sticky column decision table:\n\t *\n\t * | P | S | T | U | Scenario | Set Preferred | Move To |\n\t * |---|---|---|---| ---------------------------------------------------- |---------------|-------------|\n\t * | 0 | * | 0 | - | Start nav, target fits | null | current |\n\t * | 0 | * | 1 | - | Start nav, target shorter | current | target end |\n\t * | 1 | 0 | 0 | 0 | Clamped, target fits preferred | null | preferred |\n\t * | 1 | 0 | 0 | 1 | Clamped, target longer but still can't fit preferred | keep | target end |\n\t * | 1 | 0 | 1 | - | Clamped, target even shorter | keep | target end |\n\t * | 1 | 1 | 0 | - | Rewrapped, target fits current | null | current |\n\t * | 1 | 1 | 1 | - | Rewrapped, target shorter than current | current | target end |\n\t *\n\t * Where:\n\t * - P = preferred col is set\n\t * - S = cursor in middle of source line (not clamped to end)\n\t * - T = target line shorter than current visual col\n\t * - U = target line shorter than preferred col\n\t */\n\tprivate computeVerticalMoveColumn(\n\t\tcurrentVisualCol: number,\n\t\tsourceMaxVisualCol: number,\n\t\ttargetMaxVisualCol: number,\n\t): number {\n\t\tconst hasPreferred = this.preferredVisualCol !== null; // P\n\t\tconst cursorInMiddle = currentVisualCol < sourceMaxVisualCol; // S\n\t\tconst targetTooShort = targetMaxVisualCol < currentVisualCol; // T\n\n\t\tif (!hasPreferred || cursorInMiddle) {\n\t\t\tif (targetTooShort) {\n\t\t\t\t// Cases 2 and 7\n\t\t\t\tthis.preferredVisualCol = currentVisualCol;\n\t\t\t\treturn targetMaxVisualCol;\n\t\t\t}\n\n\t\t\t// Cases 1 and 6\n\t\t\tthis.preferredVisualCol = null;\n\t\t\treturn currentVisualCol;\n\t\t}\n\n\t\tconst targetCantFitPreferred = targetMaxVisualCol < this.preferredVisualCol!; // U\n\t\tif (targetTooShort || targetCantFitPreferred) {\n\t\t\t// Cases 4 and 5\n\t\t\treturn targetMaxVisualCol;\n\t\t}\n\n\t\t// Case 3\n\t\tconst result = this.preferredVisualCol!;\n\t\tthis.preferredVisualCol = null;\n\t\treturn result;\n\t}\n\n\tprivate moveToLineStart(): void {\n\t\tthis.lastAction = null;\n\t\tthis.setCursorCol(0);\n\t}\n\n\tprivate moveToLineEnd(): void {\n\t\tthis.lastAction = null;\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\tthis.setCursorCol(currentLine.length);\n\t}\n\n\tprivate deleteToStartOfLine(): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\tif (this.state.cursorCol > 0) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// Calculate text to be deleted and save to kill ring (backward deletion = prepend)\n\t\t\tconst deletedText = currentLine.slice(0, this.state.cursorCol);\n\t\t\tthis.killRing.push(deletedText, { prepend: true, accumulate: this.lastAction === \"kill\" });\n\t\t\tthis.lastAction = \"kill\";\n\n\t\t\t// Delete from start of line up to cursor\n\t\t\tthis.state.lines[this.state.cursorLine] = currentLine.slice(this.state.cursorCol);\n\t\t\tthis.setCursorCol(0);\n\t\t} else if (this.state.cursorLine > 0) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// At start of line - merge with previous line, treating newline as deleted text\n\t\t\tthis.killRing.push(\"\\n\", { prepend: true, accumulate: this.lastAction === \"kill\" });\n\t\t\tthis.lastAction = \"kill\";\n\n\t\t\tconst previousLine = this.state.lines[this.state.cursorLine - 1] || \"\";\n\t\t\tthis.state.lines[this.state.cursorLine - 1] = previousLine + currentLine;\n\t\t\tthis.state.lines.splice(this.state.cursorLine, 1);\n\t\t\tthis.state.cursorLine--;\n\t\t\tthis.setCursorCol(previousLine.length);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\tprivate deleteToEndOfLine(): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\tif (this.state.cursorCol < currentLine.length) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// Calculate text to be deleted and save to kill ring (forward deletion = append)\n\t\t\tconst deletedText = currentLine.slice(this.state.cursorCol);\n\t\t\tthis.killRing.push(deletedText, { prepend: false, accumulate: this.lastAction === \"kill\" });\n\t\t\tthis.lastAction = \"kill\";\n\n\t\t\t// Delete from cursor to end of line\n\t\t\tthis.state.lines[this.state.cursorLine] = currentLine.slice(0, this.state.cursorCol);\n\t\t} else if (this.state.cursorLine < this.state.lines.length - 1) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// At end of line - merge with next line, treating newline as deleted text\n\t\t\tthis.killRing.push(\"\\n\", { prepend: false, accumulate: this.lastAction === \"kill\" });\n\t\t\tthis.lastAction = \"kill\";\n\n\t\t\tconst nextLine = this.state.lines[this.state.cursorLine + 1] || \"\";\n\t\t\tthis.state.lines[this.state.cursorLine] = currentLine + nextLine;\n\t\t\tthis.state.lines.splice(this.state.cursorLine + 1, 1);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\tprivate deleteWordBackwards(): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\t// If at start of line, behave like backspace at column 0 (merge with previous line)\n\t\tif (this.state.cursorCol === 0) {\n\t\t\tif (this.state.cursorLine > 0) {\n\t\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t\t// Treat newline as deleted text (backward deletion = prepend)\n\t\t\t\tthis.killRing.push(\"\\n\", { prepend: true, accumulate: this.lastAction === \"kill\" });\n\t\t\t\tthis.lastAction = \"kill\";\n\n\t\t\t\tconst previousLine = this.state.lines[this.state.cursorLine - 1] || \"\";\n\t\t\t\tthis.state.lines[this.state.cursorLine - 1] = previousLine + currentLine;\n\t\t\t\tthis.state.lines.splice(this.state.cursorLine, 1);\n\t\t\t\tthis.state.cursorLine--;\n\t\t\t\tthis.setCursorCol(previousLine.length);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// Save lastAction before cursor movement (moveWordBackwards resets it)\n\t\t\tconst wasKill = this.lastAction === \"kill\";\n\n\t\t\tconst oldCursorCol = this.state.cursorCol;\n\t\t\tthis.moveWordBackwards();\n\t\t\tconst deleteFrom = this.state.cursorCol;\n\t\t\tthis.setCursorCol(oldCursorCol);\n\n\t\t\tconst deletedText = currentLine.slice(deleteFrom, this.state.cursorCol);\n\t\t\tthis.killRing.push(deletedText, { prepend: true, accumulate: wasKill });\n\t\t\tthis.lastAction = \"kill\";\n\n\t\t\tthis.state.lines[this.state.cursorLine] =\n\t\t\t\tcurrentLine.slice(0, deleteFrom) + currentLine.slice(this.state.cursorCol);\n\t\t\tthis.setCursorCol(deleteFrom);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\tprivate deleteWordForward(): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\t// If at end of line, merge with next line (delete the newline)\n\t\tif (this.state.cursorCol >= currentLine.length) {\n\t\t\tif (this.state.cursorLine < this.state.lines.length - 1) {\n\t\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t\t// Treat newline as deleted text (forward deletion = append)\n\t\t\t\tthis.killRing.push(\"\\n\", { prepend: false, accumulate: this.lastAction === \"kill\" });\n\t\t\t\tthis.lastAction = \"kill\";\n\n\t\t\t\tconst nextLine = this.state.lines[this.state.cursorLine + 1] || \"\";\n\t\t\t\tthis.state.lines[this.state.cursorLine] = currentLine + nextLine;\n\t\t\t\tthis.state.lines.splice(this.state.cursorLine + 1, 1);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// Save lastAction before cursor movement (moveWordForwards resets it)\n\t\t\tconst wasKill = this.lastAction === \"kill\";\n\n\t\t\tconst oldCursorCol = this.state.cursorCol;\n\t\t\tthis.moveWordForwards();\n\t\t\tconst deleteTo = this.state.cursorCol;\n\t\t\tthis.setCursorCol(oldCursorCol);\n\n\t\t\tconst deletedText = currentLine.slice(this.state.cursorCol, deleteTo);\n\t\t\tthis.killRing.push(deletedText, { prepend: false, accumulate: wasKill });\n\t\t\tthis.lastAction = \"kill\";\n\n\t\t\tthis.state.lines[this.state.cursorLine] =\n\t\t\t\tcurrentLine.slice(0, this.state.cursorCol) + currentLine.slice(deleteTo);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\tprivate handleForwardDelete(): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\t\tthis.lastAction = null;\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\tif (this.state.cursorCol < currentLine.length) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// Delete grapheme at cursor position (handles emojis, combining characters, etc.)\n\t\t\tconst afterCursor = currentLine.slice(this.state.cursorCol);\n\n\t\t\t// Find the first grapheme at cursor\n\t\t\tconst graphemes = [...this.segment(afterCursor)];\n\t\t\tconst firstGrapheme = graphemes[0];\n\t\t\tconst graphemeLength = firstGrapheme ? firstGrapheme.segment.length : 1;\n\n\t\t\tconst before = currentLine.slice(0, this.state.cursorCol);\n\t\t\tconst after = currentLine.slice(this.state.cursorCol + graphemeLength);\n\t\t\tthis.state.lines[this.state.cursorLine] = before + after;\n\t\t} else if (this.state.cursorLine < this.state.lines.length - 1) {\n\t\t\tthis.pushUndoSnapshot();\n\n\t\t\t// At end of line - merge with next line\n\t\t\tconst nextLine = this.state.lines[this.state.cursorLine + 1] || \"\";\n\t\t\tthis.state.lines[this.state.cursorLine] = currentLine + nextLine;\n\t\t\tthis.state.lines.splice(this.state.cursorLine + 1, 1);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\n\t\t// Update or re-trigger autocomplete after forward delete\n\t\tif (this.autocompleteState) {\n\t\t\tthis.updateAutocomplete();\n\t\t} else {\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst textBeforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\t\t// Slash command context\n\t\t\tif (this.isInSlashCommandContext(textBeforeCursor)) {\n\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t}\n\t\t\t// Symbol-based completion context like @ or #\n\t\t\telse if (textBeforeCursor.match(/(?:^|[\\s])[@#][^\\s]*$/)) {\n\t\t\t\tthis.tryTriggerAutocomplete();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Build a mapping from visual lines to logical positions.\n\t * Returns an array where each element represents a visual line with:\n\t * - logicalLine: index into this.state.lines\n\t * - startCol: starting column in the logical line\n\t * - length: length of this visual line segment\n\t */\n\tprivate buildVisualLineMap(width: number): Array<{ logicalLine: number; startCol: number; length: number }> {\n\t\tconst visualLines: Array<{ logicalLine: number; startCol: number; length: number }> = [];\n\n\t\tfor (let i = 0; i < this.state.lines.length; i++) {\n\t\t\tconst line = this.state.lines[i] || \"\";\n\t\t\tconst lineVisWidth = visibleWidth(line);\n\t\t\tif (line.length === 0) {\n\t\t\t\t// Empty line still takes one visual line\n\t\t\t\tvisualLines.push({ logicalLine: i, startCol: 0, length: 0 });\n\t\t\t} else if (lineVisWidth <= width) {\n\t\t\t\tvisualLines.push({ logicalLine: i, startCol: 0, length: line.length });\n\t\t\t} else {\n\t\t\t\t// Line needs wrapping - use word-aware wrapping\n\t\t\t\tconst chunks = wordWrapLine(line, width, [...this.segment(line)]);\n\t\t\t\tfor (const chunk of chunks) {\n\t\t\t\t\tvisualLines.push({\n\t\t\t\t\t\tlogicalLine: i,\n\t\t\t\t\t\tstartCol: chunk.startIndex,\n\t\t\t\t\t\tlength: chunk.endIndex - chunk.startIndex,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn visualLines;\n\t}\n\n\t/**\n\t * Find the visual line index that contains the given logical position.\n\t */\n\tprivate findVisualLineAt(\n\t\tvisualLines: Array<{ logicalLine: number; startCol: number; length: number }>,\n\t\tline: number,\n\t\tcol: number,\n\t): number {\n\t\tfor (let i = 0; i < visualLines.length; i++) {\n\t\t\tconst vl = visualLines[i];\n\t\t\tif (!vl || vl.logicalLine !== line) continue;\n\t\t\tconst offset = col - vl.startCol;\n\t\t\t// Cursor is in this segment if it's within range. For the last\n\t\t\t// segment of a logical line, cursor can be at length (end position)\n\t\t\tconst isLastSegmentOfLine = i === visualLines.length - 1 || visualLines[i + 1]?.logicalLine !== vl.logicalLine;\n\t\t\tif (offset >= 0 && (offset < vl.length || (isLastSegmentOfLine && offset === vl.length))) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn visualLines.length - 1;\n\t}\n\n\t/**\n\t * Find the visual line index for the current cursor position.\n\t */\n\tprivate findCurrentVisualLine(\n\t\tvisualLines: Array<{ logicalLine: number; startCol: number; length: number }>,\n\t): number {\n\t\treturn this.findVisualLineAt(visualLines, this.state.cursorLine, this.state.cursorCol);\n\t}\n\n\tprivate moveCursor(deltaLine: number, deltaCol: number): void {\n\t\tthis.lastAction = null;\n\t\tconst visualLines = this.buildVisualLineMap(this.lastWidth);\n\t\tconst currentVisualLine = this.findCurrentVisualLine(visualLines);\n\n\t\tif (deltaLine !== 0) {\n\t\t\tconst targetVisualLine = currentVisualLine + deltaLine;\n\n\t\t\tif (targetVisualLine >= 0 && targetVisualLine < visualLines.length) {\n\t\t\t\tthis.moveToVisualLine(visualLines, currentVisualLine, targetVisualLine);\n\t\t\t}\n\t\t}\n\n\t\tif (deltaCol !== 0) {\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\t\tif (deltaCol > 0) {\n\t\t\t\t// Moving right - move by one grapheme (handles emojis, combining characters, etc.)\n\t\t\t\tif (this.state.cursorCol < currentLine.length) {\n\t\t\t\t\tconst afterCursor = currentLine.slice(this.state.cursorCol);\n\t\t\t\t\tconst graphemes = [...this.segment(afterCursor)];\n\t\t\t\t\tconst firstGrapheme = graphemes[0];\n\t\t\t\t\tthis.setCursorCol(this.state.cursorCol + (firstGrapheme ? firstGrapheme.segment.length : 1));\n\t\t\t\t} else if (this.state.cursorLine < this.state.lines.length - 1) {\n\t\t\t\t\t// Wrap to start of next logical line\n\t\t\t\t\tthis.state.cursorLine++;\n\t\t\t\t\tthis.setCursorCol(0);\n\t\t\t\t} else {\n\t\t\t\t\t// At end of last line - can't move, but set preferredVisualCol for up/down navigation\n\t\t\t\t\tconst currentVL = visualLines[currentVisualLine];\n\t\t\t\t\tif (currentVL) {\n\t\t\t\t\t\tthis.preferredVisualCol = this.state.cursorCol - currentVL.startCol;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Moving left - move by one grapheme (handles emojis, combining characters, etc.)\n\t\t\t\tif (this.state.cursorCol > 0) {\n\t\t\t\t\tconst beforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\t\t\t\tconst graphemes = [...this.segment(beforeCursor)];\n\t\t\t\t\tconst lastGrapheme = graphemes[graphemes.length - 1];\n\t\t\t\t\tthis.setCursorCol(this.state.cursorCol - (lastGrapheme ? lastGrapheme.segment.length : 1));\n\t\t\t\t} else if (this.state.cursorLine > 0) {\n\t\t\t\t\t// Wrap to end of previous logical line\n\t\t\t\t\tthis.state.cursorLine--;\n\t\t\t\t\tconst prevLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\t\t\tthis.setCursorCol(prevLine.length);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Scroll by a page (direction: -1 for up, 1 for down).\n\t * Moves cursor by the page size while keeping it in bounds.\n\t */\n\tprivate pageScroll(direction: -1 | 1): void {\n\t\tthis.lastAction = null;\n\t\tconst terminalRows = this.tui.terminal.rows;\n\t\tconst pageSize = Math.max(5, Math.floor(terminalRows * 0.3));\n\n\t\tconst visualLines = this.buildVisualLineMap(this.lastWidth);\n\t\tconst currentVisualLine = this.findCurrentVisualLine(visualLines);\n\t\tconst targetVisualLine = Math.max(0, Math.min(visualLines.length - 1, currentVisualLine + direction * pageSize));\n\n\t\tthis.moveToVisualLine(visualLines, currentVisualLine, targetVisualLine);\n\t}\n\n\tprivate moveWordBackwards(): void {\n\t\tthis.lastAction = null;\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\t// If at start of line, move to end of previous line\n\t\tif (this.state.cursorCol === 0) {\n\t\t\tif (this.state.cursorLine > 0) {\n\t\t\t\tthis.state.cursorLine--;\n\t\t\t\tconst prevLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\t\tthis.setCursorCol(prevLine.length);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst textBeforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\tconst graphemes = [...this.segment(textBeforeCursor)];\n\t\tlet newCol = this.state.cursorCol;\n\n\t\t// Skip trailing whitespace\n\t\twhile (\n\t\t\tgraphemes.length > 0 &&\n\t\t\t!isPasteMarker(graphemes[graphemes.length - 1]?.segment || \"\") &&\n\t\t\tisWhitespaceChar(graphemes[graphemes.length - 1]?.segment || \"\")\n\t\t) {\n\t\t\tnewCol -= graphemes.pop()?.segment.length || 0;\n\t\t}\n\n\t\tif (graphemes.length > 0) {\n\t\t\tconst lastGrapheme = graphemes[graphemes.length - 1]?.segment || \"\";\n\t\t\tif (isPasteMarker(lastGrapheme)) {\n\t\t\t\t// Paste marker is a single atomic word\n\t\t\t\tnewCol -= graphemes.pop()?.segment.length || 0;\n\t\t\t} else if (isPunctuationChar(lastGrapheme)) {\n\t\t\t\t// Skip punctuation run\n\t\t\t\twhile (\n\t\t\t\t\tgraphemes.length > 0 &&\n\t\t\t\t\tisPunctuationChar(graphemes[graphemes.length - 1]?.segment || \"\") &&\n\t\t\t\t\t!isPasteMarker(graphemes[graphemes.length - 1]?.segment || \"\")\n\t\t\t\t) {\n\t\t\t\t\tnewCol -= graphemes.pop()?.segment.length || 0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Skip word run\n\t\t\t\twhile (\n\t\t\t\t\tgraphemes.length > 0 &&\n\t\t\t\t\t!isWhitespaceChar(graphemes[graphemes.length - 1]?.segment || \"\") &&\n\t\t\t\t\t!isPunctuationChar(graphemes[graphemes.length - 1]?.segment || \"\") &&\n\t\t\t\t\t!isPasteMarker(graphemes[graphemes.length - 1]?.segment || \"\")\n\t\t\t\t) {\n\t\t\t\t\tnewCol -= graphemes.pop()?.segment.length || 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.setCursorCol(newCol);\n\t}\n\n\t/**\n\t * Yank (paste) the most recent kill ring entry at cursor position.\n\t */\n\tprivate yank(): void {\n\t\tif (this.killRing.length === 0) return;\n\n\t\tthis.pushUndoSnapshot();\n\n\t\tconst text = this.killRing.peek()!;\n\t\tthis.insertYankedText(text);\n\n\t\tthis.lastAction = \"yank\";\n\t}\n\n\t/**\n\t * Cycle through kill ring (only works immediately after yank or yank-pop).\n\t * Replaces the last yanked text with the previous entry in the ring.\n\t */\n\tprivate yankPop(): void {\n\t\t// Only works if we just yanked and have more than one entry\n\t\tif (this.lastAction !== \"yank\" || this.killRing.length <= 1) return;\n\n\t\tthis.pushUndoSnapshot();\n\n\t\t// Delete the previously yanked text (still at end of ring before rotation)\n\t\tthis.deleteYankedText();\n\n\t\t// Rotate the ring: move end to front\n\t\tthis.killRing.rotate();\n\n\t\t// Insert the new most recent entry (now at end after rotation)\n\t\tconst text = this.killRing.peek()!;\n\t\tthis.insertYankedText(text);\n\n\t\tthis.lastAction = \"yank\";\n\t}\n\n\t/**\n\t * Insert text at cursor position (used by yank operations).\n\t */\n\tprivate insertYankedText(text: string): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\t\tconst lines = text.split(\"\\n\");\n\n\t\tif (lines.length === 1) {\n\t\t\t// Single line - insert at cursor\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst before = currentLine.slice(0, this.state.cursorCol);\n\t\t\tconst after = currentLine.slice(this.state.cursorCol);\n\t\t\tthis.state.lines[this.state.cursorLine] = before + text + after;\n\t\t\tthis.setCursorCol(this.state.cursorCol + text.length);\n\t\t} else {\n\t\t\t// Multi-line insert\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst before = currentLine.slice(0, this.state.cursorCol);\n\t\t\tconst after = currentLine.slice(this.state.cursorCol);\n\n\t\t\t// First line merges with text before cursor\n\t\t\tthis.state.lines[this.state.cursorLine] = before + (lines[0] || \"\");\n\n\t\t\t// Insert middle lines\n\t\t\tfor (let i = 1; i < lines.length - 1; i++) {\n\t\t\t\tthis.state.lines.splice(this.state.cursorLine + i, 0, lines[i] || \"\");\n\t\t\t}\n\n\t\t\t// Last line merges with text after cursor\n\t\t\tconst lastLineIndex = this.state.cursorLine + lines.length - 1;\n\t\t\tthis.state.lines.splice(lastLineIndex, 0, (lines[lines.length - 1] || \"\") + after);\n\n\t\t\t// Update cursor position\n\t\t\tthis.state.cursorLine = lastLineIndex;\n\t\t\tthis.setCursorCol((lines[lines.length - 1] || \"\").length);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\t/**\n\t * Delete the previously yanked text (used by yank-pop).\n\t * The yanked text is derived from killRing[end] since it hasn't been rotated yet.\n\t */\n\tprivate deleteYankedText(): void {\n\t\tconst yankedText = this.killRing.peek();\n\t\tif (!yankedText) return;\n\n\t\tconst yankLines = yankedText.split(\"\\n\");\n\n\t\tif (yankLines.length === 1) {\n\t\t\t// Single line - delete backward from cursor\n\t\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\t\tconst deleteLen = yankedText.length;\n\t\t\tconst before = currentLine.slice(0, this.state.cursorCol - deleteLen);\n\t\t\tconst after = currentLine.slice(this.state.cursorCol);\n\t\t\tthis.state.lines[this.state.cursorLine] = before + after;\n\t\t\tthis.setCursorCol(this.state.cursorCol - deleteLen);\n\t\t} else {\n\t\t\t// Multi-line delete - cursor is at end of last yanked line\n\t\t\tconst startLine = this.state.cursorLine - (yankLines.length - 1);\n\t\t\tconst startCol = (this.state.lines[startLine] || \"\").length - (yankLines[0] || \"\").length;\n\n\t\t\t// Get text after cursor on current line\n\t\t\tconst afterCursor = (this.state.lines[this.state.cursorLine] || \"\").slice(this.state.cursorCol);\n\n\t\t\t// Get text before yank start position\n\t\t\tconst beforeYank = (this.state.lines[startLine] || \"\").slice(0, startCol);\n\n\t\t\t// Remove all lines from startLine to cursorLine and replace with merged line\n\t\t\tthis.state.lines.splice(startLine, yankLines.length, beforeYank + afterCursor);\n\n\t\t\t// Update cursor\n\t\t\tthis.state.cursorLine = startLine;\n\t\t\tthis.setCursorCol(startCol);\n\t\t}\n\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\tprivate pushUndoSnapshot(): void {\n\t\tthis.undoStack.push(this.state);\n\t}\n\n\tprivate undo(): void {\n\t\tthis.historyIndex = -1; // Exit history browsing mode\n\t\tconst snapshot = this.undoStack.pop();\n\t\tif (!snapshot) return;\n\t\tObject.assign(this.state, snapshot);\n\t\tthis.lastAction = null;\n\t\tthis.preferredVisualCol = null;\n\t\tif (this.onChange) {\n\t\t\tthis.onChange(this.getText());\n\t\t}\n\t}\n\n\t/**\n\t * Jump to the first occurrence of a character in the specified direction.\n\t * Multi-line search. Case-sensitive. Skips the current cursor position.\n\t */\n\tprivate jumpToChar(char: string, direction: \"forward\" | \"backward\"): void {\n\t\tthis.lastAction = null;\n\t\tconst isForward = direction === \"forward\";\n\t\tconst lines = this.state.lines;\n\n\t\tconst end = isForward ? lines.length : -1;\n\t\tconst step = isForward ? 1 : -1;\n\n\t\tfor (let lineIdx = this.state.cursorLine; lineIdx !== end; lineIdx += step) {\n\t\t\tconst line = lines[lineIdx] || \"\";\n\t\t\tconst isCurrentLine = lineIdx === this.state.cursorLine;\n\n\t\t\t// Current line: start after/before cursor; other lines: search full line\n\t\t\tconst searchFrom = isCurrentLine\n\t\t\t\t? isForward\n\t\t\t\t\t? this.state.cursorCol + 1\n\t\t\t\t\t: this.state.cursorCol - 1\n\t\t\t\t: undefined;\n\n\t\t\tconst idx = isForward ? line.indexOf(char, searchFrom) : line.lastIndexOf(char, searchFrom);\n\n\t\t\tif (idx !== -1) {\n\t\t\t\tthis.state.cursorLine = lineIdx;\n\t\t\t\tthis.setCursorCol(idx);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// No match found - cursor stays in place\n\t}\n\n\tprivate moveWordForwards(): void {\n\t\tthis.lastAction = null;\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\n\t\t// If at end of line, move to start of next line\n\t\tif (this.state.cursorCol >= currentLine.length) {\n\t\t\tif (this.state.cursorLine < this.state.lines.length - 1) {\n\t\t\t\tthis.state.cursorLine++;\n\t\t\t\tthis.setCursorCol(0);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst textAfterCursor = currentLine.slice(this.state.cursorCol);\n\t\tconst segments = this.segment(textAfterCursor);\n\t\tconst iterator = segments[Symbol.iterator]();\n\t\tlet next = iterator.next();\n\t\tlet newCol = this.state.cursorCol;\n\n\t\t// Skip leading whitespace\n\t\twhile (!next.done && !isPasteMarker(next.value.segment) && isWhitespaceChar(next.value.segment)) {\n\t\t\tnewCol += next.value.segment.length;\n\t\t\tnext = iterator.next();\n\t\t}\n\n\t\tif (!next.done) {\n\t\t\tconst firstGrapheme = next.value.segment;\n\t\t\tif (isPasteMarker(firstGrapheme)) {\n\t\t\t\t// Paste marker is a single atomic word\n\t\t\t\tnewCol += firstGrapheme.length;\n\t\t\t} else if (isPunctuationChar(firstGrapheme)) {\n\t\t\t\t// Skip punctuation run\n\t\t\t\twhile (!next.done && isPunctuationChar(next.value.segment) && !isPasteMarker(next.value.segment)) {\n\t\t\t\t\tnewCol += next.value.segment.length;\n\t\t\t\t\tnext = iterator.next();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Skip word run\n\t\t\t\twhile (\n\t\t\t\t\t!next.done &&\n\t\t\t\t\t!isWhitespaceChar(next.value.segment) &&\n\t\t\t\t\t!isPunctuationChar(next.value.segment) &&\n\t\t\t\t\t!isPasteMarker(next.value.segment)\n\t\t\t\t) {\n\t\t\t\t\tnewCol += next.value.segment.length;\n\t\t\t\t\tnext = iterator.next();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.setCursorCol(newCol);\n\t}\n\n\t// Slash menu only allowed on the first line of the editor\n\tprivate isSlashMenuAllowed(): boolean {\n\t\treturn this.state.cursorLine === 0;\n\t}\n\n\t// Helper method to check if cursor is at start of message (for slash command detection)\n\tprivate isAtStartOfMessage(): boolean {\n\t\tif (!this.isSlashMenuAllowed()) return false;\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\tconst beforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\treturn beforeCursor.trim() === \"\" || beforeCursor.trim() === \"/\";\n\t}\n\n\tprivate isInSlashCommandContext(textBeforeCursor: string): boolean {\n\t\treturn this.isSlashMenuAllowed() && textBeforeCursor.trimStart().startsWith(\"/\");\n\t}\n\n\t// Autocomplete methods\n\t/**\n\t * Find the best autocomplete item index for the given prefix.\n\t * Returns -1 if no match is found.\n\t *\n\t * Match priority:\n\t * 1. Exact match (prefix === item.value) -> always selected\n\t * 2. Prefix match -> first item whose value starts with prefix\n\t * 3. No match -> -1 (keep default highlight)\n\t *\n\t * Matching is case-sensitive and checks item.value only.\n\t */\n\tprivate getBestAutocompleteMatchIndex(items: Array<{ value: string; label: string }>, prefix: string): number {\n\t\tif (!prefix) return -1;\n\n\t\tlet firstPrefixIndex = -1;\n\n\t\tfor (let i = 0; i < items.length; i++) {\n\t\t\tconst value = items[i]!.value;\n\t\t\tif (value === prefix) {\n\t\t\t\treturn i; // Exact match always wins\n\t\t\t}\n\t\t\tif (firstPrefixIndex === -1 && value.startsWith(prefix)) {\n\t\t\t\tfirstPrefixIndex = i;\n\t\t\t}\n\t\t}\n\n\t\treturn firstPrefixIndex;\n\t}\n\n\tprivate createAutocompleteList(\n\t\tprefix: string,\n\t\titems: Array<{ value: string; label: string; description?: string }>,\n\t): SelectList {\n\t\tconst layout = prefix.startsWith(\"/\") ? SLASH_COMMAND_SELECT_LIST_LAYOUT : undefined;\n\t\treturn new SelectList(items, this.autocompleteMaxVisible, this.theme.selectList, layout);\n\t}\n\n\tprivate tryTriggerAutocomplete(explicitTab: boolean = false): void {\n\t\tthis.requestAutocomplete({ force: false, explicitTab });\n\t}\n\n\tprivate handleTabCompletion(): void {\n\t\tif (!this.autocompleteProvider) return;\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\tconst beforeCursor = currentLine.slice(0, this.state.cursorCol);\n\n\t\tif (this.isInSlashCommandContext(beforeCursor) && !beforeCursor.trimStart().includes(\" \")) {\n\t\t\tthis.handleSlashCommandCompletion();\n\t\t} else {\n\t\t\tthis.forceFileAutocomplete(true);\n\t\t}\n\t}\n\n\tprivate handleSlashCommandCompletion(): void {\n\t\tthis.requestAutocomplete({ force: false, explicitTab: true });\n\t}\n\n\tprivate forceFileAutocomplete(explicitTab: boolean = false): void {\n\t\tthis.requestAutocomplete({ force: true, explicitTab });\n\t}\n\n\tprivate requestAutocomplete(options: { force: boolean; explicitTab: boolean }): void {\n\t\tif (!this.autocompleteProvider) return;\n\n\t\tif (options.force) {\n\t\t\tconst shouldTrigger =\n\t\t\t\t!this.autocompleteProvider.shouldTriggerFileCompletion ||\n\t\t\t\tthis.autocompleteProvider.shouldTriggerFileCompletion(\n\t\t\t\t\tthis.state.lines,\n\t\t\t\t\tthis.state.cursorLine,\n\t\t\t\t\tthis.state.cursorCol,\n\t\t\t\t);\n\t\t\tif (!shouldTrigger) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tthis.cancelAutocompleteRequest();\n\t\tconst startToken = ++this.autocompleteStartToken;\n\n\t\tconst debounceMs = this.getAutocompleteDebounceMs(options);\n\t\tif (debounceMs > 0) {\n\t\t\tthis.autocompleteDebounceTimer = setTimeout(() => {\n\t\t\t\tthis.autocompleteDebounceTimer = undefined;\n\t\t\t\tvoid this.startAutocompleteRequest(startToken, options);\n\t\t\t}, debounceMs);\n\t\t\treturn;\n\t\t}\n\n\t\tvoid this.startAutocompleteRequest(startToken, options);\n\t}\n\n\tprivate async startAutocompleteRequest(\n\t\tstartToken: number,\n\t\toptions: { force: boolean; explicitTab: boolean },\n\t): Promise<void> {\n\t\tconst previousTask = this.autocompleteRequestTask;\n\t\tthis.autocompleteRequestTask = (async () => {\n\t\t\tawait previousTask;\n\t\t\tif (startToken !== this.autocompleteStartToken || !this.autocompleteProvider) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst controller = new AbortController();\n\t\t\tthis.autocompleteAbort = controller;\n\t\t\tconst requestId = ++this.autocompleteRequestId;\n\t\t\tconst snapshotText = this.getText();\n\t\t\tconst snapshotLine = this.state.cursorLine;\n\t\t\tconst snapshotCol = this.state.cursorCol;\n\n\t\t\tawait this.runAutocompleteRequest(requestId, controller, snapshotText, snapshotLine, snapshotCol, options);\n\t\t})();\n\t\tawait this.autocompleteRequestTask;\n\t}\n\n\tprivate getAutocompleteDebounceMs(options: { force: boolean; explicitTab: boolean }): number {\n\t\tif (options.explicitTab || options.force) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst currentLine = this.state.lines[this.state.cursorLine] || \"\";\n\t\tconst textBeforeCursor = currentLine.slice(0, this.state.cursorCol);\n\t\tconst isSymbolAutocompleteContext = /(?:^|[ \\t])(?:@(?:\"[^\"]*|[^\\s]*)|#[^\\s]*)$/.test(textBeforeCursor);\n\t\treturn isSymbolAutocompleteContext ? ATTACHMENT_AUTOCOMPLETE_DEBOUNCE_MS : 0;\n\t}\n\n\tprivate async runAutocompleteRequest(\n\t\trequestId: number,\n\t\tcontroller: AbortController,\n\t\tsnapshotText: string,\n\t\tsnapshotLine: number,\n\t\tsnapshotCol: number,\n\t\toptions: { force: boolean; explicitTab: boolean },\n\t): Promise<void> {\n\t\tif (!this.autocompleteProvider) return;\n\n\t\tconst suggestions = await this.autocompleteProvider.getSuggestions(\n\t\t\tthis.state.lines,\n\t\t\tthis.state.cursorLine,\n\t\t\tthis.state.cursorCol,\n\t\t\t{ signal: controller.signal, force: options.force },\n\t\t);\n\n\t\tif (!this.isAutocompleteRequestCurrent(requestId, controller, snapshotText, snapshotLine, snapshotCol)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.autocompleteAbort = undefined;\n\n\t\tif (!suggestions || !Array.isArray(suggestions.items) || suggestions.items.length === 0) {\n\t\t\tthis.cancelAutocomplete();\n\t\t\tthis.tui.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\tif (options.force && options.explicitTab && suggestions.items.length === 1) {\n\t\t\tconst item = suggestions.items[0]!;\n\t\t\tthis.pushUndoSnapshot();\n\t\t\tthis.lastAction = null;\n\t\t\tconst result = this.autocompleteProvider.applyCompletion(\n\t\t\t\tthis.state.lines,\n\t\t\t\tthis.state.cursorLine,\n\t\t\t\tthis.state.cursorCol,\n\t\t\t\titem,\n\t\t\t\tsuggestions.prefix,\n\t\t\t);\n\t\t\tthis.state.lines = result.lines;\n\t\t\tthis.state.cursorLine = result.cursorLine;\n\t\t\tthis.setCursorCol(result.cursorCol);\n\t\t\tif (this.onChange) this.onChange(this.getText());\n\t\t\tthis.tui.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.applyAutocompleteSuggestions(suggestions, options.force ? \"force\" : \"regular\");\n\t\tthis.tui.requestRender();\n\t}\n\n\tprivate isAutocompleteRequestCurrent(\n\t\trequestId: number,\n\t\tcontroller: AbortController,\n\t\tsnapshotText: string,\n\t\tsnapshotLine: number,\n\t\tsnapshotCol: number,\n\t): boolean {\n\t\treturn (\n\t\t\t!controller.signal.aborted &&\n\t\t\trequestId === this.autocompleteRequestId &&\n\t\t\tthis.getText() === snapshotText &&\n\t\t\tthis.state.cursorLine === snapshotLine &&\n\t\t\tthis.state.cursorCol === snapshotCol\n\t\t);\n\t}\n\n\tprivate applyAutocompleteSuggestions(suggestions: AutocompleteSuggestions, state: \"regular\" | \"force\"): void {\n\t\tthis.autocompletePrefix = suggestions.prefix;\n\t\tthis.autocompleteList = this.createAutocompleteList(suggestions.prefix, suggestions.items);\n\n\t\tconst bestMatchIndex = this.getBestAutocompleteMatchIndex(suggestions.items, suggestions.prefix);\n\t\tif (bestMatchIndex >= 0) {\n\t\t\tthis.autocompleteList.setSelectedIndex(bestMatchIndex);\n\t\t}\n\n\t\tthis.autocompleteState = state;\n\t}\n\n\tprivate cancelAutocompleteRequest(): void {\n\t\tthis.autocompleteStartToken += 1;\n\t\tif (this.autocompleteDebounceTimer) {\n\t\t\tclearTimeout(this.autocompleteDebounceTimer);\n\t\t\tthis.autocompleteDebounceTimer = undefined;\n\t\t}\n\t\tthis.autocompleteAbort?.abort();\n\t\tthis.autocompleteAbort = undefined;\n\t}\n\n\tprivate clearAutocompleteUi(): void {\n\t\tthis.autocompleteState = null;\n\t\tthis.autocompleteList = undefined;\n\t\tthis.autocompletePrefix = \"\";\n\t}\n\n\tprivate cancelAutocomplete(): void {\n\t\tthis.cancelAutocompleteRequest();\n\t\tthis.clearAutocompleteUi();\n\t}\n\n\tpublic isShowingAutocomplete(): boolean {\n\t\treturn this.autocompleteState !== null;\n\t}\n\n\tprivate updateAutocomplete(): void {\n\t\tif (!this.autocompleteState || !this.autocompleteProvider) return;\n\t\tthis.requestAutocomplete({ force: this.autocompleteState === \"force\", explicitTab: false });\n\t}\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ImageDimensions } from "../terminal-image.js";
|
|
2
|
+
import type { Component } from "../tui.js";
|
|
3
|
+
export interface ImageTheme {
|
|
4
|
+
fallbackColor: (str: string) => string;
|
|
5
|
+
}
|
|
6
|
+
export interface ImageOptions {
|
|
7
|
+
maxWidthCells?: number;
|
|
8
|
+
maxHeightCells?: number;
|
|
9
|
+
filename?: string;
|
|
10
|
+
/** Kitty image ID. If provided, reuses this ID (for animations/updates). */
|
|
11
|
+
imageId?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class Image implements Component {
|
|
14
|
+
private base64Data;
|
|
15
|
+
private mimeType;
|
|
16
|
+
private dimensions;
|
|
17
|
+
private theme;
|
|
18
|
+
private options;
|
|
19
|
+
private imageId?;
|
|
20
|
+
private cachedLines?;
|
|
21
|
+
private cachedWidth?;
|
|
22
|
+
constructor(base64Data: string, mimeType: string, theme: ImageTheme, options?: ImageOptions, dimensions?: ImageDimensions);
|
|
23
|
+
/** Get the Kitty image ID used by this image (if any). */
|
|
24
|
+
getImageId(): number | undefined;
|
|
25
|
+
invalidate(): void;
|
|
26
|
+
render(width: number): string[];
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/components/image.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,eAAe,EAGpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,WAAW,UAAU;IAC1B,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,KAAM,YAAW,SAAS;IACtC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB,OAAO,CAAC,WAAW,CAAC,CAAW;IAC/B,OAAO,CAAC,WAAW,CAAC,CAAS;IAE7B,YACC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,YAAiB,EAC1B,UAAU,CAAC,EAAE,eAAe,EAQ5B;IAED,0DAA0D;IAC1D,UAAU,IAAI,MAAM,GAAG,SAAS,CAE/B;IAED,UAAU,IAAI,IAAI,CAGjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAoD9B;CACD","sourcesContent":["import {\n\tallocateImageId,\n\tgetCapabilities,\n\tgetImageDimensions,\n\ttype ImageDimensions,\n\timageFallback,\n\trenderImage,\n} from \"../terminal-image.js\";\nimport type { Component } from \"../tui.js\";\n\nexport interface ImageTheme {\n\tfallbackColor: (str: string) => string;\n}\n\nexport interface ImageOptions {\n\tmaxWidthCells?: number;\n\tmaxHeightCells?: number;\n\tfilename?: string;\n\t/** Kitty image ID. If provided, reuses this ID (for animations/updates). */\n\timageId?: number;\n}\n\nexport class Image implements Component {\n\tprivate base64Data: string;\n\tprivate mimeType: string;\n\tprivate dimensions: ImageDimensions;\n\tprivate theme: ImageTheme;\n\tprivate options: ImageOptions;\n\tprivate imageId?: number;\n\n\tprivate cachedLines?: string[];\n\tprivate cachedWidth?: number;\n\n\tconstructor(\n\t\tbase64Data: string,\n\t\tmimeType: string,\n\t\ttheme: ImageTheme,\n\t\toptions: ImageOptions = {},\n\t\tdimensions?: ImageDimensions,\n\t) {\n\t\tthis.base64Data = base64Data;\n\t\tthis.mimeType = mimeType;\n\t\tthis.theme = theme;\n\t\tthis.options = options;\n\t\tthis.dimensions = dimensions || getImageDimensions(base64Data, mimeType) || { widthPx: 800, heightPx: 600 };\n\t\tthis.imageId = options.imageId;\n\t}\n\n\t/** Get the Kitty image ID used by this image (if any). */\n\tgetImageId(): number | undefined {\n\t\treturn this.imageId;\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedLines = undefined;\n\t\tthis.cachedWidth = undefined;\n\t}\n\n\trender(width: number): string[] {\n\t\tif (this.cachedLines && this.cachedWidth === width) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\tconst maxWidth = Math.min(width - 2, this.options.maxWidthCells ?? 60);\n\n\t\tconst caps = getCapabilities();\n\t\tlet lines: string[];\n\n\t\tif (caps.images) {\n\t\t\tif (caps.images === \"kitty\" && this.imageId === undefined) {\n\t\t\t\tthis.imageId = allocateImageId();\n\t\t\t}\n\t\t\tconst result = renderImage(this.base64Data, this.dimensions, {\n\t\t\t\tmaxWidthCells: maxWidth,\n\t\t\t\timageId: this.imageId,\n\t\t\t\tmoveCursor: false,\n\t\t\t});\n\n\t\t\tif (result) {\n\t\t\t\t// Store the image ID for later cleanup\n\t\t\t\tif (result.imageId) {\n\t\t\t\t\tthis.imageId = result.imageId;\n\t\t\t\t}\n\n\t\t\t\t// Return `rows` lines so TUI accounts for image height.\n\t\t\t\t// First (rows-1) lines are empty and cleared before the image is drawn.\n\t\t\t\t// Last line: move cursor back up, draw the image, then move back down\n\t\t\t\t// for Kitty (this component disables Kitty's terminal-side cursor movement)\n\t\t\t\t// so TUI cursor accounting stays inside the scroll area.\n\t\t\t\tlines = [];\n\t\t\t\tfor (let i = 0; i < result.rows - 1; i++) {\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t}\n\t\t\t\tconst rowOffset = result.rows - 1;\n\t\t\t\tconst moveUp = rowOffset > 0 ? `\\x1b[${rowOffset}A` : \"\";\n\t\t\t\tconst moveDown = caps.images === \"kitty\" && rowOffset > 0 ? `\\x1b[${rowOffset}B` : \"\";\n\t\t\t\tlines.push(moveUp + result.sequence + moveDown);\n\t\t\t} else {\n\t\t\t\tconst fallback = imageFallback(this.mimeType, this.dimensions, this.options.filename);\n\t\t\t\tlines = [this.theme.fallbackColor(fallback)];\n\t\t\t}\n\t\t} else {\n\t\t\tconst fallback = imageFallback(this.mimeType, this.dimensions, this.options.filename);\n\t\t\tlines = [this.theme.fallbackColor(fallback)];\n\t\t}\n\n\t\tthis.cachedLines = lines;\n\t\tthis.cachedWidth = width;\n\n\t\treturn lines;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { allocateImageId, getCapabilities, getImageDimensions, imageFallback, renderImage, } from "../terminal-image.js";
|
|
2
|
+
export class Image {
|
|
3
|
+
base64Data;
|
|
4
|
+
mimeType;
|
|
5
|
+
dimensions;
|
|
6
|
+
theme;
|
|
7
|
+
options;
|
|
8
|
+
imageId;
|
|
9
|
+
cachedLines;
|
|
10
|
+
cachedWidth;
|
|
11
|
+
constructor(base64Data, mimeType, theme, options = {}, dimensions) {
|
|
12
|
+
this.base64Data = base64Data;
|
|
13
|
+
this.mimeType = mimeType;
|
|
14
|
+
this.theme = theme;
|
|
15
|
+
this.options = options;
|
|
16
|
+
this.dimensions = dimensions || getImageDimensions(base64Data, mimeType) || { widthPx: 800, heightPx: 600 };
|
|
17
|
+
this.imageId = options.imageId;
|
|
18
|
+
}
|
|
19
|
+
/** Get the Kitty image ID used by this image (if any). */
|
|
20
|
+
getImageId() {
|
|
21
|
+
return this.imageId;
|
|
22
|
+
}
|
|
23
|
+
invalidate() {
|
|
24
|
+
this.cachedLines = undefined;
|
|
25
|
+
this.cachedWidth = undefined;
|
|
26
|
+
}
|
|
27
|
+
render(width) {
|
|
28
|
+
if (this.cachedLines && this.cachedWidth === width) {
|
|
29
|
+
return this.cachedLines;
|
|
30
|
+
}
|
|
31
|
+
const maxWidth = Math.min(width - 2, this.options.maxWidthCells ?? 60);
|
|
32
|
+
const caps = getCapabilities();
|
|
33
|
+
let lines;
|
|
34
|
+
if (caps.images) {
|
|
35
|
+
if (caps.images === "kitty" && this.imageId === undefined) {
|
|
36
|
+
this.imageId = allocateImageId();
|
|
37
|
+
}
|
|
38
|
+
const result = renderImage(this.base64Data, this.dimensions, {
|
|
39
|
+
maxWidthCells: maxWidth,
|
|
40
|
+
imageId: this.imageId,
|
|
41
|
+
moveCursor: false,
|
|
42
|
+
});
|
|
43
|
+
if (result) {
|
|
44
|
+
// Store the image ID for later cleanup
|
|
45
|
+
if (result.imageId) {
|
|
46
|
+
this.imageId = result.imageId;
|
|
47
|
+
}
|
|
48
|
+
// Return `rows` lines so TUI accounts for image height.
|
|
49
|
+
// First (rows-1) lines are empty and cleared before the image is drawn.
|
|
50
|
+
// Last line: move cursor back up, draw the image, then move back down
|
|
51
|
+
// for Kitty (this component disables Kitty's terminal-side cursor movement)
|
|
52
|
+
// so TUI cursor accounting stays inside the scroll area.
|
|
53
|
+
lines = [];
|
|
54
|
+
for (let i = 0; i < result.rows - 1; i++) {
|
|
55
|
+
lines.push("");
|
|
56
|
+
}
|
|
57
|
+
const rowOffset = result.rows - 1;
|
|
58
|
+
const moveUp = rowOffset > 0 ? `\x1b[${rowOffset}A` : "";
|
|
59
|
+
const moveDown = caps.images === "kitty" && rowOffset > 0 ? `\x1b[${rowOffset}B` : "";
|
|
60
|
+
lines.push(moveUp + result.sequence + moveDown);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const fallback = imageFallback(this.mimeType, this.dimensions, this.options.filename);
|
|
64
|
+
lines = [this.theme.fallbackColor(fallback)];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
const fallback = imageFallback(this.mimeType, this.dimensions, this.options.filename);
|
|
69
|
+
lines = [this.theme.fallbackColor(fallback)];
|
|
70
|
+
}
|
|
71
|
+
this.cachedLines = lines;
|
|
72
|
+
this.cachedWidth = width;
|
|
73
|
+
return lines;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/components/image.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,eAAe,EACf,kBAAkB,EAElB,aAAa,EACb,WAAW,GACX,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YACjD,CAAC;iBAAM,CAAC;gBACP,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBACtF,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC9C,CAAC;QACF,CAAC;aAAM,CAAC;YACP,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YACtF,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC9C,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAEzB,OAAO,KAAK,CAAC;IAAA,CACb;CACD","sourcesContent":["import {\n\tallocateImageId,\n\tgetCapabilities,\n\tgetImageDimensions,\n\ttype ImageDimensions,\n\timageFallback,\n\trenderImage,\n} from \"../terminal-image.js\";\nimport type { Component } from \"../tui.js\";\n\nexport interface ImageTheme {\n\tfallbackColor: (str: string) => string;\n}\n\nexport interface ImageOptions {\n\tmaxWidthCells?: number;\n\tmaxHeightCells?: number;\n\tfilename?: string;\n\t/** Kitty image ID. If provided, reuses this ID (for animations/updates). */\n\timageId?: number;\n}\n\nexport class Image implements Component {\n\tprivate base64Data: string;\n\tprivate mimeType: string;\n\tprivate dimensions: ImageDimensions;\n\tprivate theme: ImageTheme;\n\tprivate options: ImageOptions;\n\tprivate imageId?: number;\n\n\tprivate cachedLines?: string[];\n\tprivate cachedWidth?: number;\n\n\tconstructor(\n\t\tbase64Data: string,\n\t\tmimeType: string,\n\t\ttheme: ImageTheme,\n\t\toptions: ImageOptions = {},\n\t\tdimensions?: ImageDimensions,\n\t) {\n\t\tthis.base64Data = base64Data;\n\t\tthis.mimeType = mimeType;\n\t\tthis.theme = theme;\n\t\tthis.options = options;\n\t\tthis.dimensions = dimensions || getImageDimensions(base64Data, mimeType) || { widthPx: 800, heightPx: 600 };\n\t\tthis.imageId = options.imageId;\n\t}\n\n\t/** Get the Kitty image ID used by this image (if any). */\n\tgetImageId(): number | undefined {\n\t\treturn this.imageId;\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedLines = undefined;\n\t\tthis.cachedWidth = undefined;\n\t}\n\n\trender(width: number): string[] {\n\t\tif (this.cachedLines && this.cachedWidth === width) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\tconst maxWidth = Math.min(width - 2, this.options.maxWidthCells ?? 60);\n\n\t\tconst caps = getCapabilities();\n\t\tlet lines: string[];\n\n\t\tif (caps.images) {\n\t\t\tif (caps.images === \"kitty\" && this.imageId === undefined) {\n\t\t\t\tthis.imageId = allocateImageId();\n\t\t\t}\n\t\t\tconst result = renderImage(this.base64Data, this.dimensions, {\n\t\t\t\tmaxWidthCells: maxWidth,\n\t\t\t\timageId: this.imageId,\n\t\t\t\tmoveCursor: false,\n\t\t\t});\n\n\t\t\tif (result) {\n\t\t\t\t// Store the image ID for later cleanup\n\t\t\t\tif (result.imageId) {\n\t\t\t\t\tthis.imageId = result.imageId;\n\t\t\t\t}\n\n\t\t\t\t// Return `rows` lines so TUI accounts for image height.\n\t\t\t\t// First (rows-1) lines are empty and cleared before the image is drawn.\n\t\t\t\t// Last line: move cursor back up, draw the image, then move back down\n\t\t\t\t// for Kitty (this component disables Kitty's terminal-side cursor movement)\n\t\t\t\t// so TUI cursor accounting stays inside the scroll area.\n\t\t\t\tlines = [];\n\t\t\t\tfor (let i = 0; i < result.rows - 1; i++) {\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t}\n\t\t\t\tconst rowOffset = result.rows - 1;\n\t\t\t\tconst moveUp = rowOffset > 0 ? `\\x1b[${rowOffset}A` : \"\";\n\t\t\t\tconst moveDown = caps.images === \"kitty\" && rowOffset > 0 ? `\\x1b[${rowOffset}B` : \"\";\n\t\t\t\tlines.push(moveUp + result.sequence + moveDown);\n\t\t\t} else {\n\t\t\t\tconst fallback = imageFallback(this.mimeType, this.dimensions, this.options.filename);\n\t\t\t\tlines = [this.theme.fallbackColor(fallback)];\n\t\t\t}\n\t\t} else {\n\t\t\tconst fallback = imageFallback(this.mimeType, this.dimensions, this.options.filename);\n\t\t\tlines = [this.theme.fallbackColor(fallback)];\n\t\t}\n\n\t\tthis.cachedLines = lines;\n\t\tthis.cachedWidth = width;\n\n\t\treturn lines;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type Component, type Focusable } from "../tui.js";
|
|
2
|
+
/**
|
|
3
|
+
* Input component - single-line text input with horizontal scrolling
|
|
4
|
+
*/
|
|
5
|
+
export declare class Input implements Component, Focusable {
|
|
6
|
+
private value;
|
|
7
|
+
private cursor;
|
|
8
|
+
onSubmit?: (value: string) => void;
|
|
9
|
+
onEscape?: () => void;
|
|
10
|
+
/** Focusable interface - set by TUI when focus changes */
|
|
11
|
+
focused: boolean;
|
|
12
|
+
private pasteBuffer;
|
|
13
|
+
private isInPaste;
|
|
14
|
+
private killRing;
|
|
15
|
+
private lastAction;
|
|
16
|
+
private undoStack;
|
|
17
|
+
getValue(): string;
|
|
18
|
+
setValue(value: string): void;
|
|
19
|
+
handleInput(data: string): void;
|
|
20
|
+
private insertCharacter;
|
|
21
|
+
private handleBackspace;
|
|
22
|
+
private handleForwardDelete;
|
|
23
|
+
private deleteToLineStart;
|
|
24
|
+
private deleteToLineEnd;
|
|
25
|
+
private deleteWordBackwards;
|
|
26
|
+
private deleteWordForward;
|
|
27
|
+
private yank;
|
|
28
|
+
private yankPop;
|
|
29
|
+
private pushUndo;
|
|
30
|
+
private undo;
|
|
31
|
+
private moveWordBackwards;
|
|
32
|
+
private moveWordForwards;
|
|
33
|
+
private handlePaste;
|
|
34
|
+
invalidate(): void;
|
|
35
|
+
render(width: number): string[];
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAiB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAW1E;;GAEG;AACH,qBAAa,KAAM,YAAW,SAAS,EAAE,SAAS;IACjD,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,MAAM,CAAa;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAE7B,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAS;IAGzB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAA8C;IAGhE,OAAO,CAAC,SAAS,CAA+B;IAEhD,QAAQ,IAAI,MAAM,CAEjB;IAED,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAG5B;IAED,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAmK9B;IAED,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,iBAAiB;IAoBzB,OAAO,CAAC,IAAI;IAWZ,OAAO,CAAC,OAAO;IAkBf,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,IAAI;IAQZ,OAAO,CAAC,iBAAiB;IAkCzB,OAAO,CAAC,gBAAgB;IAmCxB,OAAO,CAAC,WAAW;IAYnB,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAoE9B;CACD","sourcesContent":["import { getKeybindings } from \"../keybindings.js\";\nimport { decodeKittyPrintable } from \"../keys.js\";\nimport { KillRing } from \"../kill-ring.js\";\nimport { type Component, CURSOR_MARKER, type Focusable } from \"../tui.js\";\nimport { UndoStack } from \"../undo-stack.js\";\nimport { getSegmenter, isPunctuationChar, isWhitespaceChar, sliceByColumn, visibleWidth } from \"../utils.js\";\n\nconst segmenter = getSegmenter();\n\ninterface InputState {\n\tvalue: string;\n\tcursor: number;\n}\n\n/**\n * Input component - single-line text input with horizontal scrolling\n */\nexport class Input implements Component, Focusable {\n\tprivate value: string = \"\";\n\tprivate cursor: number = 0; // Cursor position in the value\n\tpublic onSubmit?: (value: string) => void;\n\tpublic onEscape?: () => void;\n\n\t/** Focusable interface - set by TUI when focus changes */\n\tfocused: boolean = false;\n\n\t// Bracketed paste mode buffering\n\tprivate pasteBuffer: string = \"\";\n\tprivate isInPaste: boolean = false;\n\n\t// Kill ring for Emacs-style kill/yank operations\n\tprivate killRing = new KillRing();\n\tprivate lastAction: \"kill\" | \"yank\" | \"type-word\" | null = null;\n\n\t// Undo support\n\tprivate undoStack = new UndoStack<InputState>();\n\n\tgetValue(): string {\n\t\treturn this.value;\n\t}\n\n\tsetValue(value: string): void {\n\t\tthis.value = value;\n\t\tthis.cursor = Math.min(this.cursor, value.length);\n\t}\n\n\thandleInput(data: string): void {\n\t\t// Handle bracketed paste mode\n\t\t// Start of paste: \\x1b[200~\n\t\t// End of paste: \\x1b[201~\n\n\t\t// Check if we're starting a bracketed paste\n\t\tif (data.includes(\"\\x1b[200~\")) {\n\t\t\tthis.isInPaste = true;\n\t\t\tthis.pasteBuffer = \"\";\n\t\t\tdata = data.replace(\"\\x1b[200~\", \"\");\n\t\t}\n\n\t\t// If we're in a paste, buffer the data\n\t\tif (this.isInPaste) {\n\t\t\t// Check if this chunk contains the end marker\n\t\t\tthis.pasteBuffer += data;\n\n\t\t\tconst endIndex = this.pasteBuffer.indexOf(\"\\x1b[201~\");\n\t\t\tif (endIndex !== -1) {\n\t\t\t\t// Extract the pasted content\n\t\t\t\tconst pasteContent = this.pasteBuffer.substring(0, endIndex);\n\n\t\t\t\t// Process the complete paste\n\t\t\t\tthis.handlePaste(pasteContent);\n\n\t\t\t\t// Reset paste state\n\t\t\t\tthis.isInPaste = false;\n\n\t\t\t\t// Handle any remaining input after the paste marker\n\t\t\t\tconst remaining = this.pasteBuffer.substring(endIndex + 6); // 6 = length of \\x1b[201~\n\t\t\t\tthis.pasteBuffer = \"\";\n\t\t\t\tif (remaining) {\n\t\t\t\t\tthis.handleInput(remaining);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst kb = getKeybindings();\n\n\t\t// Escape/Cancel\n\t\tif (kb.matches(data, \"tui.select.cancel\")) {\n\t\t\tif (this.onEscape) this.onEscape();\n\t\t\treturn;\n\t\t}\n\n\t\t// Undo\n\t\tif (kb.matches(data, \"tui.editor.undo\")) {\n\t\t\tthis.undo();\n\t\t\treturn;\n\t\t}\n\n\t\t// Submit\n\t\tif (kb.matches(data, \"tui.input.submit\") || data === \"\\n\") {\n\t\t\tif (this.onSubmit) this.onSubmit(this.value);\n\t\t\treturn;\n\t\t}\n\n\t\t// Deletion\n\t\tif (kb.matches(data, \"tui.editor.deleteCharBackward\")) {\n\t\t\tthis.handleBackspace();\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.deleteCharForward\")) {\n\t\t\tthis.handleForwardDelete();\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.deleteWordBackward\")) {\n\t\t\tthis.deleteWordBackwards();\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.deleteWordForward\")) {\n\t\t\tthis.deleteWordForward();\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.deleteToLineStart\")) {\n\t\t\tthis.deleteToLineStart();\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.deleteToLineEnd\")) {\n\t\t\tthis.deleteToLineEnd();\n\t\t\treturn;\n\t\t}\n\n\t\t// Kill ring actions\n\t\tif (kb.matches(data, \"tui.editor.yank\")) {\n\t\t\tthis.yank();\n\t\t\treturn;\n\t\t}\n\t\tif (kb.matches(data, \"tui.editor.yankPop\")) {\n\t\t\tthis.yankPop();\n\t\t\treturn;\n\t\t}\n\n\t\t// Cursor movement\n\t\tif (kb.matches(data, \"tui.editor.cursorLeft\")) {\n\t\t\tthis.lastAction = null;\n\t\t\tif (this.cursor > 0) {\n\t\t\t\tconst beforeCursor = this.value.slice(0, this.cursor);\n\t\t\t\tconst graphemes = [...segmenter.segment(beforeCursor)];\n\t\t\t\tconst lastGrapheme = graphemes[graphemes.length - 1];\n\t\t\t\tthis.cursor -= lastGrapheme ? lastGrapheme.segment.length : 1;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.cursorRight\")) {\n\t\t\tthis.lastAction = null;\n\t\t\tif (this.cursor < this.value.length) {\n\t\t\t\tconst afterCursor = this.value.slice(this.cursor);\n\t\t\t\tconst graphemes = [...segmenter.segment(afterCursor)];\n\t\t\t\tconst firstGrapheme = graphemes[0];\n\t\t\t\tthis.cursor += firstGrapheme ? firstGrapheme.segment.length : 1;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.cursorLineStart\")) {\n\t\t\tthis.lastAction = null;\n\t\t\tthis.cursor = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.cursorLineEnd\")) {\n\t\t\tthis.lastAction = null;\n\t\t\tthis.cursor = this.value.length;\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.cursorWordLeft\")) {\n\t\t\tthis.moveWordBackwards();\n\t\t\treturn;\n\t\t}\n\n\t\tif (kb.matches(data, \"tui.editor.cursorWordRight\")) {\n\t\t\tthis.moveWordForwards();\n\t\t\treturn;\n\t\t}\n\n\t\t// Kitty CSI-u printable character (e.g. \\x1b[97u for 'a').\n\t\t// Terminals with Kitty protocol flag 1 (disambiguate) send CSI-u for all keys,\n\t\t// including plain printable characters. Decode before the control-char check\n\t\t// since CSI-u sequences contain \\x1b which would be rejected.\n\t\tconst kittyPrintable = decodeKittyPrintable(data);\n\t\tif (kittyPrintable !== undefined) {\n\t\t\tthis.insertCharacter(kittyPrintable);\n\t\t\treturn;\n\t\t}\n\n\t\t// Regular character input - accept printable characters including Unicode,\n\t\t// but reject control characters (C0: 0x00-0x1F, DEL: 0x7F, C1: 0x80-0x9F)\n\t\tconst hasControlChars = [...data].some((ch) => {\n\t\t\tconst code = ch.charCodeAt(0);\n\t\t\treturn code < 32 || code === 0x7f || (code >= 0x80 && code <= 0x9f);\n\t\t});\n\t\tif (!hasControlChars) {\n\t\t\tthis.insertCharacter(data);\n\t\t}\n\t}\n\n\tprivate insertCharacter(char: string): void {\n\t\t// Undo coalescing: consecutive word chars coalesce into one undo unit\n\t\tif (isWhitespaceChar(char) || this.lastAction !== \"type-word\") {\n\t\t\tthis.pushUndo();\n\t\t}\n\t\tthis.lastAction = \"type-word\";\n\n\t\tthis.value = this.value.slice(0, this.cursor) + char + this.value.slice(this.cursor);\n\t\tthis.cursor += char.length;\n\t}\n\n\tprivate handleBackspace(): void {\n\t\tthis.lastAction = null;\n\t\tif (this.cursor > 0) {\n\t\t\tthis.pushUndo();\n\t\t\tconst beforeCursor = this.value.slice(0, this.cursor);\n\t\t\tconst graphemes = [...segmenter.segment(beforeCursor)];\n\t\t\tconst lastGrapheme = graphemes[graphemes.length - 1];\n\t\t\tconst graphemeLength = lastGrapheme ? lastGrapheme.segment.length : 1;\n\t\t\tthis.value = this.value.slice(0, this.cursor - graphemeLength) + this.value.slice(this.cursor);\n\t\t\tthis.cursor -= graphemeLength;\n\t\t}\n\t}\n\n\tprivate handleForwardDelete(): void {\n\t\tthis.lastAction = null;\n\t\tif (this.cursor < this.value.length) {\n\t\t\tthis.pushUndo();\n\t\t\tconst afterCursor = this.value.slice(this.cursor);\n\t\t\tconst graphemes = [...segmenter.segment(afterCursor)];\n\t\t\tconst firstGrapheme = graphemes[0];\n\t\t\tconst graphemeLength = firstGrapheme ? firstGrapheme.segment.length : 1;\n\t\t\tthis.value = this.value.slice(0, this.cursor) + this.value.slice(this.cursor + graphemeLength);\n\t\t}\n\t}\n\n\tprivate deleteToLineStart(): void {\n\t\tif (this.cursor === 0) return;\n\t\tthis.pushUndo();\n\t\tconst deletedText = this.value.slice(0, this.cursor);\n\t\tthis.killRing.push(deletedText, { prepend: true, accumulate: this.lastAction === \"kill\" });\n\t\tthis.lastAction = \"kill\";\n\t\tthis.value = this.value.slice(this.cursor);\n\t\tthis.cursor = 0;\n\t}\n\n\tprivate deleteToLineEnd(): void {\n\t\tif (this.cursor >= this.value.length) return;\n\t\tthis.pushUndo();\n\t\tconst deletedText = this.value.slice(this.cursor);\n\t\tthis.killRing.push(deletedText, { prepend: false, accumulate: this.lastAction === \"kill\" });\n\t\tthis.lastAction = \"kill\";\n\t\tthis.value = this.value.slice(0, this.cursor);\n\t}\n\n\tprivate deleteWordBackwards(): void {\n\t\tif (this.cursor === 0) return;\n\n\t\t// Save lastAction before cursor movement (moveWordBackwards resets it)\n\t\tconst wasKill = this.lastAction === \"kill\";\n\n\t\tthis.pushUndo();\n\n\t\tconst oldCursor = this.cursor;\n\t\tthis.moveWordBackwards();\n\t\tconst deleteFrom = this.cursor;\n\t\tthis.cursor = oldCursor;\n\n\t\tconst deletedText = this.value.slice(deleteFrom, this.cursor);\n\t\tthis.killRing.push(deletedText, { prepend: true, accumulate: wasKill });\n\t\tthis.lastAction = \"kill\";\n\n\t\tthis.value = this.value.slice(0, deleteFrom) + this.value.slice(this.cursor);\n\t\tthis.cursor = deleteFrom;\n\t}\n\n\tprivate deleteWordForward(): void {\n\t\tif (this.cursor >= this.value.length) return;\n\n\t\t// Save lastAction before cursor movement (moveWordForwards resets it)\n\t\tconst wasKill = this.lastAction === \"kill\";\n\n\t\tthis.pushUndo();\n\n\t\tconst oldCursor = this.cursor;\n\t\tthis.moveWordForwards();\n\t\tconst deleteTo = this.cursor;\n\t\tthis.cursor = oldCursor;\n\n\t\tconst deletedText = this.value.slice(this.cursor, deleteTo);\n\t\tthis.killRing.push(deletedText, { prepend: false, accumulate: wasKill });\n\t\tthis.lastAction = \"kill\";\n\n\t\tthis.value = this.value.slice(0, this.cursor) + this.value.slice(deleteTo);\n\t}\n\n\tprivate yank(): void {\n\t\tconst text = this.killRing.peek();\n\t\tif (!text) return;\n\n\t\tthis.pushUndo();\n\n\t\tthis.value = this.value.slice(0, this.cursor) + text + this.value.slice(this.cursor);\n\t\tthis.cursor += text.length;\n\t\tthis.lastAction = \"yank\";\n\t}\n\n\tprivate yankPop(): void {\n\t\tif (this.lastAction !== \"yank\" || this.killRing.length <= 1) return;\n\n\t\tthis.pushUndo();\n\n\t\t// Delete the previously yanked text (still at end of ring before rotation)\n\t\tconst prevText = this.killRing.peek() || \"\";\n\t\tthis.value = this.value.slice(0, this.cursor - prevText.length) + this.value.slice(this.cursor);\n\t\tthis.cursor -= prevText.length;\n\n\t\t// Rotate and insert new entry\n\t\tthis.killRing.rotate();\n\t\tconst text = this.killRing.peek() || \"\";\n\t\tthis.value = this.value.slice(0, this.cursor) + text + this.value.slice(this.cursor);\n\t\tthis.cursor += text.length;\n\t\tthis.lastAction = \"yank\";\n\t}\n\n\tprivate pushUndo(): void {\n\t\tthis.undoStack.push({ value: this.value, cursor: this.cursor });\n\t}\n\n\tprivate undo(): void {\n\t\tconst snapshot = this.undoStack.pop();\n\t\tif (!snapshot) return;\n\t\tthis.value = snapshot.value;\n\t\tthis.cursor = snapshot.cursor;\n\t\tthis.lastAction = null;\n\t}\n\n\tprivate moveWordBackwards(): void {\n\t\tif (this.cursor === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.lastAction = null;\n\t\tconst textBeforeCursor = this.value.slice(0, this.cursor);\n\t\tconst graphemes = [...segmenter.segment(textBeforeCursor)];\n\n\t\t// Skip trailing whitespace\n\t\twhile (graphemes.length > 0 && isWhitespaceChar(graphemes[graphemes.length - 1]?.segment || \"\")) {\n\t\t\tthis.cursor -= graphemes.pop()?.segment.length || 0;\n\t\t}\n\n\t\tif (graphemes.length > 0) {\n\t\t\tconst lastGrapheme = graphemes[graphemes.length - 1]?.segment || \"\";\n\t\t\tif (isPunctuationChar(lastGrapheme)) {\n\t\t\t\t// Skip punctuation run\n\t\t\t\twhile (graphemes.length > 0 && isPunctuationChar(graphemes[graphemes.length - 1]?.segment || \"\")) {\n\t\t\t\t\tthis.cursor -= graphemes.pop()?.segment.length || 0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Skip word run\n\t\t\t\twhile (\n\t\t\t\t\tgraphemes.length > 0 &&\n\t\t\t\t\t!isWhitespaceChar(graphemes[graphemes.length - 1]?.segment || \"\") &&\n\t\t\t\t\t!isPunctuationChar(graphemes[graphemes.length - 1]?.segment || \"\")\n\t\t\t\t) {\n\t\t\t\t\tthis.cursor -= graphemes.pop()?.segment.length || 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate moveWordForwards(): void {\n\t\tif (this.cursor >= this.value.length) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.lastAction = null;\n\t\tconst textAfterCursor = this.value.slice(this.cursor);\n\t\tconst segments = segmenter.segment(textAfterCursor);\n\t\tconst iterator = segments[Symbol.iterator]();\n\t\tlet next = iterator.next();\n\n\t\t// Skip leading whitespace\n\t\twhile (!next.done && isWhitespaceChar(next.value.segment)) {\n\t\t\tthis.cursor += next.value.segment.length;\n\t\t\tnext = iterator.next();\n\t\t}\n\n\t\tif (!next.done) {\n\t\t\tconst firstGrapheme = next.value.segment;\n\t\t\tif (isPunctuationChar(firstGrapheme)) {\n\t\t\t\t// Skip punctuation run\n\t\t\t\twhile (!next.done && isPunctuationChar(next.value.segment)) {\n\t\t\t\t\tthis.cursor += next.value.segment.length;\n\t\t\t\t\tnext = iterator.next();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Skip word run\n\t\t\t\twhile (!next.done && !isWhitespaceChar(next.value.segment) && !isPunctuationChar(next.value.segment)) {\n\t\t\t\t\tthis.cursor += next.value.segment.length;\n\t\t\t\t\tnext = iterator.next();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate handlePaste(pastedText: string): void {\n\t\tthis.lastAction = null;\n\t\tthis.pushUndo();\n\n\t\t// Clean the pasted text - remove newlines and carriage returns\n\t\tconst cleanText = pastedText.replace(/\\r\\n/g, \"\").replace(/\\r/g, \"\").replace(/\\n/g, \"\").replace(/\\t/g, \" \");\n\n\t\t// Insert at cursor position\n\t\tthis.value = this.value.slice(0, this.cursor) + cleanText + this.value.slice(this.cursor);\n\t\tthis.cursor += cleanText.length;\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(width: number): string[] {\n\t\t// Calculate visible window\n\t\tconst prompt = \"> \";\n\t\tconst availableWidth = width - prompt.length;\n\n\t\tif (availableWidth <= 0) {\n\t\t\treturn [prompt];\n\t\t}\n\n\t\tlet visibleText = \"\";\n\t\tlet cursorDisplay = this.cursor;\n\t\tconst totalWidth = visibleWidth(this.value);\n\n\t\tif (totalWidth < availableWidth) {\n\t\t\t// Everything fits (leave room for cursor at end)\n\t\t\tvisibleText = this.value;\n\t\t} else {\n\t\t\t// Need horizontal scrolling\n\t\t\t// Reserve one column for cursor if it's at the end\n\t\t\tconst scrollWidth = this.cursor === this.value.length ? availableWidth - 1 : availableWidth;\n\t\t\tconst cursorCol = visibleWidth(this.value.slice(0, this.cursor));\n\n\t\t\tif (scrollWidth > 0) {\n\t\t\t\tconst halfWidth = Math.floor(scrollWidth / 2);\n\t\t\t\tlet startCol = 0;\n\n\t\t\t\tif (cursorCol < halfWidth) {\n\t\t\t\t\t// Cursor near start\n\t\t\t\t\tstartCol = 0;\n\t\t\t\t} else if (cursorCol > totalWidth - halfWidth) {\n\t\t\t\t\t// Cursor near end\n\t\t\t\t\tstartCol = Math.max(0, totalWidth - scrollWidth);\n\t\t\t\t} else {\n\t\t\t\t\t// Cursor in middle\n\t\t\t\t\tstartCol = Math.max(0, cursorCol - halfWidth);\n\t\t\t\t}\n\n\t\t\t\tvisibleText = sliceByColumn(this.value, startCol, scrollWidth, true);\n\t\t\t\tconst beforeCursor = sliceByColumn(this.value, startCol, Math.max(0, cursorCol - startCol), true);\n\t\t\t\tcursorDisplay = beforeCursor.length;\n\t\t\t} else {\n\t\t\t\tvisibleText = \"\";\n\t\t\t\tcursorDisplay = 0;\n\t\t\t}\n\t\t}\n\n\t\t// Build line with fake cursor\n\t\t// Insert cursor character at cursor position\n\t\tconst graphemes = [...segmenter.segment(visibleText.slice(cursorDisplay))];\n\t\tconst cursorGrapheme = graphemes[0];\n\n\t\tconst beforeCursor = visibleText.slice(0, cursorDisplay);\n\t\tconst atCursor = cursorGrapheme?.segment ?? \" \"; // Character at cursor, or space if at end\n\t\tconst afterCursor = visibleText.slice(cursorDisplay + atCursor.length);\n\n\t\t// Hardware cursor marker (zero-width, emitted before fake cursor for IME positioning)\n\t\tconst marker = this.focused ? CURSOR_MARKER : \"\";\n\n\t\t// Use inverse video to show cursor\n\t\tconst cursorChar = `\\x1b[7m${atCursor}\\x1b[27m`; // ESC[7m = reverse video, ESC[27m = normal\n\t\tconst textWithCursor = beforeCursor + marker + cursorChar + afterCursor;\n\n\t\t// Calculate visual width\n\t\tconst visualLength = visibleWidth(textWithCursor);\n\t\tconst padding = \" \".repeat(Math.max(0, availableWidth - visualLength));\n\t\tconst line = prompt + textWithCursor + padding;\n\n\t\treturn [line];\n\t}\n}\n"]}
|