@xyne/xyne-cli-darwin-x64 0.1.10 → 0.1.12
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/@opentui/core/3d/SpriteResourceManager.d.ts +74 -0
- package/node_modules/@opentui/core/3d/SpriteUtils.d.ts +13 -0
- package/node_modules/@opentui/core/3d/TextureUtils.d.ts +24 -0
- package/node_modules/@opentui/core/3d/ThreeRenderable.d.ts +40 -0
- package/node_modules/@opentui/core/3d/WGPURenderer.d.ts +61 -0
- package/node_modules/@opentui/core/3d/animation/ExplodingSpriteEffect.d.ts +71 -0
- package/node_modules/@opentui/core/3d/animation/PhysicsExplodingSpriteEffect.d.ts +76 -0
- package/node_modules/@opentui/core/3d/animation/SpriteAnimator.d.ts +124 -0
- package/node_modules/@opentui/core/3d/animation/SpriteParticleGenerator.d.ts +62 -0
- package/node_modules/@opentui/core/3d/canvas.d.ts +44 -0
- package/node_modules/@opentui/core/3d/index.d.ts +12 -0
- package/node_modules/@opentui/core/3d/physics/PlanckPhysicsAdapter.d.ts +19 -0
- package/node_modules/@opentui/core/3d/physics/RapierPhysicsAdapter.d.ts +19 -0
- package/node_modules/@opentui/core/3d/physics/physics-interface.d.ts +27 -0
- package/node_modules/@opentui/core/3d.d.ts +2 -0
- package/node_modules/@opentui/core/3d.js +34041 -0
- package/node_modules/@opentui/core/3d.js.map +155 -0
- package/node_modules/@opentui/core/LICENSE +21 -0
- package/node_modules/@opentui/core/NativeSpanFeed.d.ts +41 -0
- package/node_modules/@opentui/core/README.md +62 -0
- package/node_modules/@opentui/core/Renderable.d.ts +334 -0
- package/node_modules/@opentui/core/animation/Timeline.d.ts +126 -0
- package/node_modules/@opentui/core/ansi.d.ts +13 -0
- package/node_modules/@opentui/core/assets/javascript/highlights.scm +205 -0
- package/node_modules/@opentui/core/assets/javascript/tree-sitter-javascript.wasm +0 -0
- package/node_modules/@opentui/core/assets/markdown/highlights.scm +150 -0
- package/node_modules/@opentui/core/assets/markdown/injections.scm +27 -0
- package/node_modules/@opentui/core/assets/markdown/tree-sitter-markdown.wasm +0 -0
- package/node_modules/@opentui/core/assets/markdown_inline/highlights.scm +115 -0
- package/node_modules/@opentui/core/assets/markdown_inline/tree-sitter-markdown_inline.wasm +0 -0
- package/node_modules/@opentui/core/assets/typescript/highlights.scm +604 -0
- package/node_modules/@opentui/core/assets/typescript/tree-sitter-typescript.wasm +0 -0
- package/node_modules/@opentui/core/assets/zig/highlights.scm +284 -0
- package/node_modules/@opentui/core/assets/zig/tree-sitter-zig.wasm +0 -0
- package/node_modules/@opentui/core/buffer.d.ts +109 -0
- package/node_modules/@opentui/core/console.d.ts +143 -0
- package/node_modules/@opentui/core/edit-buffer.d.ts +98 -0
- package/node_modules/@opentui/core/editor-view.d.ts +73 -0
- package/node_modules/@opentui/core/index-4kfx7p6q.js +19143 -0
- package/node_modules/@opentui/core/index-4kfx7p6q.js.map +64 -0
- package/node_modules/@opentui/core/index-adp83v70.js +13345 -0
- package/node_modules/@opentui/core/index-adp83v70.js.map +45 -0
- package/node_modules/@opentui/core/index-bhw3bbqb.js +188 -0
- package/node_modules/@opentui/core/index-bhw3bbqb.js.map +10 -0
- package/node_modules/@opentui/core/index.d.ts +23 -0
- package/node_modules/@opentui/core/index.js +472 -0
- package/node_modules/@opentui/core/index.js.map +9 -0
- package/node_modules/@opentui/core/lib/KeyHandler.d.ts +61 -0
- package/node_modules/@opentui/core/lib/RGBA.d.ts +25 -0
- package/node_modules/@opentui/core/lib/ascii.font.d.ts +508 -0
- package/node_modules/@opentui/core/lib/border.d.ts +49 -0
- package/node_modules/@opentui/core/lib/bunfs.d.ts +7 -0
- package/node_modules/@opentui/core/lib/clipboard.d.ts +17 -0
- package/node_modules/@opentui/core/lib/clock.d.ts +15 -0
- package/node_modules/@opentui/core/lib/data-paths.d.ts +26 -0
- package/node_modules/@opentui/core/lib/debounce.d.ts +42 -0
- package/node_modules/@opentui/core/lib/detect-links.d.ts +6 -0
- package/node_modules/@opentui/core/lib/env.d.ts +42 -0
- package/node_modules/@opentui/core/lib/extmarks-history.d.ts +17 -0
- package/node_modules/@opentui/core/lib/extmarks.d.ts +89 -0
- package/node_modules/@opentui/core/lib/hast-styled-text.d.ts +17 -0
- package/node_modules/@opentui/core/lib/index.d.ts +21 -0
- package/node_modules/@opentui/core/lib/keymapping.d.ts +25 -0
- package/node_modules/@opentui/core/lib/objects-in-viewport.d.ts +24 -0
- package/node_modules/@opentui/core/lib/output.capture.d.ts +24 -0
- package/node_modules/@opentui/core/lib/parse.keypress-kitty.d.ts +2 -0
- package/node_modules/@opentui/core/lib/parse.keypress.d.ts +26 -0
- package/node_modules/@opentui/core/lib/parse.mouse.d.ts +30 -0
- package/node_modules/@opentui/core/lib/paste.d.ts +7 -0
- package/node_modules/@opentui/core/lib/queue.d.ts +15 -0
- package/node_modules/@opentui/core/lib/renderable.validations.d.ts +12 -0
- package/node_modules/@opentui/core/lib/scroll-acceleration.d.ts +43 -0
- package/node_modules/@opentui/core/lib/selection.d.ts +63 -0
- package/node_modules/@opentui/core/lib/singleton.d.ts +7 -0
- package/node_modules/@opentui/core/lib/stdin-parser.d.ts +86 -0
- package/node_modules/@opentui/core/lib/styled-text.d.ts +63 -0
- package/node_modules/@opentui/core/lib/terminal-capability-detection.d.ts +30 -0
- package/node_modules/@opentui/core/lib/terminal-palette.d.ts +50 -0
- package/node_modules/@opentui/core/lib/tree-sitter/assets/update.d.ts +11 -0
- package/node_modules/@opentui/core/lib/tree-sitter/client.d.ts +47 -0
- package/node_modules/@opentui/core/lib/tree-sitter/default-parsers.d.ts +2 -0
- package/node_modules/@opentui/core/lib/tree-sitter/download-utils.d.ts +21 -0
- package/node_modules/@opentui/core/lib/tree-sitter/index.d.ts +8 -0
- package/node_modules/@opentui/core/lib/tree-sitter/parser.worker.d.ts +1 -0
- package/node_modules/@opentui/core/lib/tree-sitter/parsers-config.d.ts +53 -0
- package/node_modules/@opentui/core/lib/tree-sitter/resolve-ft.d.ts +5 -0
- package/node_modules/@opentui/core/lib/tree-sitter/types.d.ts +82 -0
- package/node_modules/@opentui/core/lib/tree-sitter-styled-text.d.ts +14 -0
- package/node_modules/@opentui/core/lib/validate-dir-name.d.ts +1 -0
- package/node_modules/@opentui/core/lib/yoga.options.d.ts +32 -0
- package/node_modules/@opentui/core/node_modules/diff/CONTRIBUTING.md +28 -0
- package/node_modules/@opentui/core/node_modules/diff/LICENSE +29 -0
- package/node_modules/@opentui/core/node_modules/diff/README.md +378 -0
- package/node_modules/@opentui/core/node_modules/diff/dist/diff.js +1674 -0
- package/node_modules/@opentui/core/node_modules/diff/dist/diff.min.js +1 -0
- package/node_modules/@opentui/core/node_modules/diff/eslint.config.mjs +182 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/dmp.d.ts +8 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/dmp.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/dmp.js +24 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/xml.d.ts +6 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/xml.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/convert/xml.js +34 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/array.d.ts +19 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/array.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/array.js +40 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/base.d.ts +20 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/base.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/base.js +265 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/character.d.ts +19 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/character.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/character.js +31 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/css.d.ts +18 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/css.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/css.js +34 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/json.d.ts +24 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/json.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/json.js +105 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/line.d.ts +24 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/line.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/line.js +89 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/sentence.d.ts +21 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/sentence.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/sentence.js +67 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/word.d.ts +35 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/word.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/diff/word.js +307 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/index.d.ts +20 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/index.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/index.js +61 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/package.json +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/apply.d.ts +62 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/apply.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/apply.js +267 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/create.d.ts +100 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/create.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/create.js +223 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/line-endings.d.ts +17 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/line-endings.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/line-endings.js +61 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/parse.d.ts +8 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/parse.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/parse.js +133 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/reverse.d.ts +9 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/reverse.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/patch/reverse.js +37 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/types.d.ts +213 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/types.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/types.js +2 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/array.d.ts +3 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/array.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/array.js +21 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/distance-iterator.d.ts +2 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/distance-iterator.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/distance-iterator.js +40 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/params.d.ts +4 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/params.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/params.js +17 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/string.d.ts +18 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/string.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libcjs/util/string.js +141 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/convert/dmp.d.ts +8 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/convert/dmp.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/convert/dmp.js +21 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/convert/xml.d.ts +6 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/convert/xml.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/convert/xml.js +31 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/array.d.ts +19 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/array.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/array.js +16 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/base.d.ts +20 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/base.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/base.js +253 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/character.d.ts +19 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/character.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/character.js +7 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/css.d.ts +18 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/css.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/css.js +10 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/json.d.ts +24 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/json.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/json.js +78 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/line.d.ts +24 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/line.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/line.js +65 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/sentence.d.ts +21 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/sentence.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/sentence.js +43 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/word.d.ts +35 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/word.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/diff/word.js +276 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/index.d.ts +20 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/index.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/index.js +30 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/package.json +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/apply.d.ts +62 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/apply.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/apply.js +257 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/create.d.ts +100 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/create.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/create.js +201 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/line-endings.d.ts +17 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/line-endings.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/line-endings.js +44 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/parse.d.ts +8 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/parse.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/parse.js +130 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/reverse.d.ts +9 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/reverse.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/patch/reverse.js +23 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/types.d.ts +213 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/types.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/types.js +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/array.d.ts +3 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/array.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/array.js +17 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/distance-iterator.d.ts +2 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/distance-iterator.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/distance-iterator.js +37 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/params.d.ts +4 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/params.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/params.js +14 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/string.d.ts +18 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/string.d.ts.map +1 -0
- package/node_modules/@opentui/core/node_modules/diff/libesm/util/string.js +128 -0
- package/node_modules/@opentui/core/node_modules/diff/package.json +131 -0
- package/node_modules/@opentui/core/node_modules/diff/release-notes.md +397 -0
- package/node_modules/@opentui/core/node_modules/marked/LICENSE.md +44 -0
- package/node_modules/@opentui/core/node_modules/marked/README.md +107 -0
- package/node_modules/@opentui/core/node_modules/marked/bin/main.js +283 -0
- package/node_modules/@opentui/core/node_modules/marked/bin/marked.js +16 -0
- package/node_modules/@opentui/core/node_modules/marked/lib/marked.d.ts +756 -0
- package/node_modules/@opentui/core/node_modules/marked/lib/marked.esm.js +72 -0
- package/node_modules/@opentui/core/node_modules/marked/lib/marked.esm.js.map +7 -0
- package/node_modules/@opentui/core/node_modules/marked/lib/marked.umd.js +74 -0
- package/node_modules/@opentui/core/node_modules/marked/lib/marked.umd.js.map +7 -0
- package/node_modules/@opentui/core/node_modules/marked/man/marked.1 +113 -0
- package/node_modules/@opentui/core/node_modules/marked/man/marked.1.md +93 -0
- package/node_modules/@opentui/core/node_modules/marked/package.json +103 -0
- package/node_modules/@opentui/core/package.json +77 -0
- package/node_modules/@opentui/core/parser.worker.js +891 -0
- package/node_modules/@opentui/core/parser.worker.js.map +12 -0
- package/node_modules/@opentui/core/plugins/core-slot.d.ts +72 -0
- package/node_modules/@opentui/core/plugins/registry.d.ts +42 -0
- package/node_modules/@opentui/core/plugins/types.d.ts +34 -0
- package/node_modules/@opentui/core/post/effects.d.ts +147 -0
- package/node_modules/@opentui/core/post/filters.d.ts +65 -0
- package/node_modules/@opentui/core/post/matrices.d.ts +20 -0
- package/node_modules/@opentui/core/renderables/ASCIIFont.d.ts +52 -0
- package/node_modules/@opentui/core/renderables/Box.d.ts +72 -0
- package/node_modules/@opentui/core/renderables/Code.d.ts +78 -0
- package/node_modules/@opentui/core/renderables/Diff.d.ts +142 -0
- package/node_modules/@opentui/core/renderables/EditBufferRenderable.d.ts +162 -0
- package/node_modules/@opentui/core/renderables/FrameBuffer.d.ts +16 -0
- package/node_modules/@opentui/core/renderables/Input.d.ts +67 -0
- package/node_modules/@opentui/core/renderables/LineNumberRenderable.d.ts +78 -0
- package/node_modules/@opentui/core/renderables/Markdown.d.ts +181 -0
- package/node_modules/@opentui/core/renderables/ScrollBar.d.ts +77 -0
- package/node_modules/@opentui/core/renderables/ScrollBox.d.ts +124 -0
- package/node_modules/@opentui/core/renderables/Select.d.ts +115 -0
- package/node_modules/@opentui/core/renderables/Slider.d.ts +44 -0
- package/node_modules/@opentui/core/renderables/TabSelect.d.ts +96 -0
- package/node_modules/@opentui/core/renderables/Text.d.ts +36 -0
- package/node_modules/@opentui/core/renderables/TextBufferRenderable.d.ts +105 -0
- package/node_modules/@opentui/core/renderables/TextNode.d.ts +91 -0
- package/node_modules/@opentui/core/renderables/TextTable.d.ts +140 -0
- package/node_modules/@opentui/core/renderables/Textarea.d.ts +114 -0
- package/node_modules/@opentui/core/renderables/TimeToFirstDraw.d.ts +24 -0
- package/node_modules/@opentui/core/renderables/__tests__/renderable-test-utils.d.ts +12 -0
- package/node_modules/@opentui/core/renderables/composition/VRenderable.d.ts +16 -0
- package/node_modules/@opentui/core/renderables/composition/constructs.d.ts +35 -0
- package/node_modules/@opentui/core/renderables/composition/vnode.d.ts +46 -0
- package/node_modules/@opentui/core/renderables/index.d.ts +22 -0
- package/node_modules/@opentui/core/renderables/markdown-parser.d.ts +10 -0
- package/node_modules/@opentui/core/renderer.d.ts +416 -0
- package/node_modules/@opentui/core/runtime-plugin-support.d.ts +3 -0
- package/node_modules/@opentui/core/runtime-plugin-support.js +29 -0
- package/node_modules/@opentui/core/runtime-plugin-support.js.map +10 -0
- package/node_modules/@opentui/core/runtime-plugin.d.ts +11 -0
- package/node_modules/@opentui/core/runtime-plugin.js +16 -0
- package/node_modules/@opentui/core/runtime-plugin.js.map +9 -0
- package/node_modules/@opentui/core/syntax-style.d.ts +54 -0
- package/node_modules/@opentui/core/testing/manual-clock.d.ts +17 -0
- package/node_modules/@opentui/core/testing/mock-keys.d.ts +81 -0
- package/node_modules/@opentui/core/testing/mock-mouse.d.ts +38 -0
- package/node_modules/@opentui/core/testing/mock-tree-sitter-client.d.ts +23 -0
- package/node_modules/@opentui/core/testing/spy.d.ts +7 -0
- package/node_modules/@opentui/core/testing/test-recorder.d.ts +61 -0
- package/node_modules/@opentui/core/testing/test-renderer.d.ts +23 -0
- package/node_modules/@opentui/core/testing.d.ts +6 -0
- package/node_modules/@opentui/core/testing.js +692 -0
- package/node_modules/@opentui/core/testing.js.map +15 -0
- package/node_modules/@opentui/core/text-buffer-view.d.ts +42 -0
- package/node_modules/@opentui/core/text-buffer.d.ts +67 -0
- package/node_modules/@opentui/core/types.d.ts +136 -0
- package/node_modules/@opentui/core/utils.d.ts +14 -0
- package/node_modules/@opentui/core/zig-structs.d.ts +155 -0
- package/node_modules/@opentui/core/zig.d.ts +353 -0
- package/node_modules/@opentui/core-darwin-arm64/LICENSE +21 -0
- package/node_modules/@opentui/core-darwin-arm64/README.md +3 -0
- package/node_modules/@opentui/core-darwin-arm64/index.ts +3 -0
- package/node_modules/@opentui/core-darwin-arm64/libopentui.dylib +0 -0
- package/node_modules/@opentui/core-darwin-arm64/package.json +23 -0
- package/node_modules/@opentui/core-darwin-x64/LICENSE +21 -0
- package/node_modules/@opentui/core-darwin-x64/README.md +3 -0
- package/node_modules/@opentui/core-darwin-x64/index.ts +3 -0
- package/node_modules/@opentui/core-darwin-x64/libopentui.dylib +0 -0
- package/node_modules/@opentui/core-darwin-x64/package.json +23 -0
- package/node_modules/@opentui/core-linux-arm64/LICENSE +21 -0
- package/node_modules/@opentui/core-linux-arm64/README.md +3 -0
- package/node_modules/@opentui/core-linux-arm64/index.ts +3 -0
- package/node_modules/@opentui/core-linux-arm64/libopentui.so +0 -0
- package/node_modules/@opentui/core-linux-arm64/package.json +23 -0
- package/node_modules/@opentui/core-linux-x64/LICENSE +21 -0
- package/node_modules/@opentui/core-linux-x64/README.md +3 -0
- package/node_modules/@opentui/core-linux-x64/index.ts +3 -0
- package/node_modules/@opentui/core-linux-x64/libopentui.so +0 -0
- package/node_modules/@opentui/core-linux-x64/package.json +23 -0
- package/node_modules/@opentui/core-win32-x64/LICENSE +21 -0
- package/node_modules/@opentui/core-win32-x64/README.md +3 -0
- package/node_modules/@opentui/core-win32-x64/index.ts +3 -0
- package/node_modules/@opentui/core-win32-x64/opentui.dll +0 -0
- package/node_modules/@opentui/core-win32-x64/package.json +23 -0
- package/node_modules/web-tree-sitter/LICENSE +21 -0
- package/node_modules/web-tree-sitter/README.md +269 -0
- package/node_modules/web-tree-sitter/debug/tree-sitter.cjs +4558 -0
- package/node_modules/web-tree-sitter/debug/tree-sitter.cjs.map +7 -0
- package/node_modules/web-tree-sitter/debug/tree-sitter.js +4516 -0
- package/node_modules/web-tree-sitter/debug/tree-sitter.js.map +7 -0
- package/node_modules/web-tree-sitter/debug/tree-sitter.wasm +0 -0
- package/node_modules/web-tree-sitter/debug/tree-sitter.wasm.map +31 -0
- package/node_modules/web-tree-sitter/lib/alloc.c +48 -0
- package/node_modules/web-tree-sitter/lib/alloc.h +41 -0
- package/node_modules/web-tree-sitter/lib/array.h +291 -0
- package/node_modules/web-tree-sitter/lib/atomic.h +68 -0
- package/node_modules/web-tree-sitter/lib/clock.h +146 -0
- package/node_modules/web-tree-sitter/lib/error_costs.h +11 -0
- package/node_modules/web-tree-sitter/lib/get_changed_ranges.c +523 -0
- package/node_modules/web-tree-sitter/lib/get_changed_ranges.h +36 -0
- package/node_modules/web-tree-sitter/lib/host.h +21 -0
- package/node_modules/web-tree-sitter/lib/language.c +293 -0
- package/node_modules/web-tree-sitter/lib/language.h +293 -0
- package/node_modules/web-tree-sitter/lib/length.h +52 -0
- package/node_modules/web-tree-sitter/lib/lexer.c +483 -0
- package/node_modules/web-tree-sitter/lib/lexer.h +54 -0
- package/node_modules/web-tree-sitter/lib/lib.c +12 -0
- package/node_modules/web-tree-sitter/lib/node.c +875 -0
- package/node_modules/web-tree-sitter/lib/parser.c +2297 -0
- package/node_modules/web-tree-sitter/lib/parser.h +286 -0
- package/node_modules/web-tree-sitter/lib/point.h +48 -0
- package/node_modules/web-tree-sitter/lib/query.c +4347 -0
- package/node_modules/web-tree-sitter/lib/reduce_action.h +34 -0
- package/node_modules/web-tree-sitter/lib/reusable_node.h +95 -0
- package/node_modules/web-tree-sitter/lib/stack.c +912 -0
- package/node_modules/web-tree-sitter/lib/stack.h +133 -0
- package/node_modules/web-tree-sitter/lib/subtree.c +1034 -0
- package/node_modules/web-tree-sitter/lib/subtree.h +399 -0
- package/node_modules/web-tree-sitter/lib/tree-sitter.c +987 -0
- package/node_modules/web-tree-sitter/lib/tree-sitter.cjs +2988 -0
- package/node_modules/web-tree-sitter/lib/tree-sitter.wasm +0 -0
- package/node_modules/web-tree-sitter/lib/tree-sitter.wasm.map +1 -0
- package/node_modules/web-tree-sitter/lib/tree.c +170 -0
- package/node_modules/web-tree-sitter/lib/tree.h +31 -0
- package/node_modules/web-tree-sitter/lib/tree_cursor.c +716 -0
- package/node_modules/web-tree-sitter/lib/tree_cursor.h +48 -0
- package/node_modules/web-tree-sitter/lib/ts_assert.h +11 -0
- package/node_modules/web-tree-sitter/lib/unicode.h +75 -0
- package/node_modules/web-tree-sitter/lib/wasm_store.c +1937 -0
- package/node_modules/web-tree-sitter/lib/wasm_store.h +31 -0
- package/node_modules/web-tree-sitter/package.json +98 -0
- package/node_modules/web-tree-sitter/src/bindings.ts +26 -0
- package/node_modules/web-tree-sitter/src/constants.ts +133 -0
- package/node_modules/web-tree-sitter/src/index.ts +31 -0
- package/node_modules/web-tree-sitter/src/language.ts +291 -0
- package/node_modules/web-tree-sitter/src/lookahead_iterator.ts +75 -0
- package/node_modules/web-tree-sitter/src/marshal.ts +176 -0
- package/node_modules/web-tree-sitter/src/node.ts +646 -0
- package/node_modules/web-tree-sitter/src/parser.ts +325 -0
- package/node_modules/web-tree-sitter/src/query.ts +973 -0
- package/node_modules/web-tree-sitter/src/tree.ts +145 -0
- package/node_modules/web-tree-sitter/src/tree_cursor.ts +318 -0
- package/node_modules/web-tree-sitter/tree-sitter.cjs +4031 -0
- package/node_modules/web-tree-sitter/tree-sitter.cjs.map +7 -0
- package/node_modules/web-tree-sitter/tree-sitter.js +3980 -0
- package/node_modules/web-tree-sitter/tree-sitter.js.map +7 -0
- package/node_modules/web-tree-sitter/tree-sitter.wasm +0 -0
- package/node_modules/web-tree-sitter/tree-sitter.wasm.map +30 -0
- package/node_modules/web-tree-sitter/web-tree-sitter.d.ts +1030 -0
- package/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +56 -0
- package/package.json +9 -3
- package/xyne-macos-intel +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { TextChunk } from "../text-buffer.js";
|
|
2
|
+
import { type ColorInput } from "./RGBA.js";
|
|
3
|
+
declare const BrandedStyledText: unique symbol;
|
|
4
|
+
export type Color = ColorInput;
|
|
5
|
+
export interface StyleAttrs {
|
|
6
|
+
fg?: Color;
|
|
7
|
+
bg?: Color;
|
|
8
|
+
bold?: boolean;
|
|
9
|
+
italic?: boolean;
|
|
10
|
+
underline?: boolean;
|
|
11
|
+
strikethrough?: boolean;
|
|
12
|
+
dim?: boolean;
|
|
13
|
+
reverse?: boolean;
|
|
14
|
+
blink?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function isStyledText(obj: any): obj is StyledText;
|
|
17
|
+
export declare class StyledText {
|
|
18
|
+
[BrandedStyledText]: boolean;
|
|
19
|
+
chunks: TextChunk[];
|
|
20
|
+
constructor(chunks: TextChunk[]);
|
|
21
|
+
}
|
|
22
|
+
export declare function stringToStyledText(content: string): StyledText;
|
|
23
|
+
export type StylableInput = string | number | boolean | TextChunk;
|
|
24
|
+
export declare const black: (input: StylableInput) => TextChunk;
|
|
25
|
+
export declare const red: (input: StylableInput) => TextChunk;
|
|
26
|
+
export declare const green: (input: StylableInput) => TextChunk;
|
|
27
|
+
export declare const yellow: (input: StylableInput) => TextChunk;
|
|
28
|
+
export declare const blue: (input: StylableInput) => TextChunk;
|
|
29
|
+
export declare const magenta: (input: StylableInput) => TextChunk;
|
|
30
|
+
export declare const cyan: (input: StylableInput) => TextChunk;
|
|
31
|
+
export declare const white: (input: StylableInput) => TextChunk;
|
|
32
|
+
export declare const brightBlack: (input: StylableInput) => TextChunk;
|
|
33
|
+
export declare const brightRed: (input: StylableInput) => TextChunk;
|
|
34
|
+
export declare const brightGreen: (input: StylableInput) => TextChunk;
|
|
35
|
+
export declare const brightYellow: (input: StylableInput) => TextChunk;
|
|
36
|
+
export declare const brightBlue: (input: StylableInput) => TextChunk;
|
|
37
|
+
export declare const brightMagenta: (input: StylableInput) => TextChunk;
|
|
38
|
+
export declare const brightCyan: (input: StylableInput) => TextChunk;
|
|
39
|
+
export declare const brightWhite: (input: StylableInput) => TextChunk;
|
|
40
|
+
export declare const bgBlack: (input: StylableInput) => TextChunk;
|
|
41
|
+
export declare const bgRed: (input: StylableInput) => TextChunk;
|
|
42
|
+
export declare const bgGreen: (input: StylableInput) => TextChunk;
|
|
43
|
+
export declare const bgYellow: (input: StylableInput) => TextChunk;
|
|
44
|
+
export declare const bgBlue: (input: StylableInput) => TextChunk;
|
|
45
|
+
export declare const bgMagenta: (input: StylableInput) => TextChunk;
|
|
46
|
+
export declare const bgCyan: (input: StylableInput) => TextChunk;
|
|
47
|
+
export declare const bgWhite: (input: StylableInput) => TextChunk;
|
|
48
|
+
export declare const bold: (input: StylableInput) => TextChunk;
|
|
49
|
+
export declare const italic: (input: StylableInput) => TextChunk;
|
|
50
|
+
export declare const underline: (input: StylableInput) => TextChunk;
|
|
51
|
+
export declare const strikethrough: (input: StylableInput) => TextChunk;
|
|
52
|
+
export declare const dim: (input: StylableInput) => TextChunk;
|
|
53
|
+
export declare const reverse: (input: StylableInput) => TextChunk;
|
|
54
|
+
export declare const blink: (input: StylableInput) => TextChunk;
|
|
55
|
+
export declare const fg: (color: Color) => (input: StylableInput) => TextChunk;
|
|
56
|
+
export declare const bg: (color: Color) => (input: StylableInput) => TextChunk;
|
|
57
|
+
export declare const link: (url: string) => (input: StylableInput) => TextChunk;
|
|
58
|
+
/**
|
|
59
|
+
* Template literal handler for styled text (non-cached version).
|
|
60
|
+
* Returns a StyledText object containing chunks of text with optional styles.
|
|
61
|
+
*/
|
|
62
|
+
export declare function t(strings: TemplateStringsArray, ...values: StylableInput[]): StyledText;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terminal capability response detection utilities.
|
|
3
|
+
*
|
|
4
|
+
* Detects various terminal capability response sequences:
|
|
5
|
+
* - DECRPM (DEC Request Mode): ESC[?...;N$y where N is 0,1,2,3,4
|
|
6
|
+
* - CPR (Cursor Position Report): ESC[row;colR (used for width detection)
|
|
7
|
+
* - XTVersion: ESC P >| ... ESC \
|
|
8
|
+
* - Kitty Graphics: ESC _ G ... ESC \
|
|
9
|
+
* - Kitty Keyboard Query: ESC[?Nu where N is 0,1,2,etc
|
|
10
|
+
* - DA1 (Device Attributes): ESC[?...c
|
|
11
|
+
* - Pixel Resolution: ESC[4;height;widtht
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Check if a sequence is a terminal capability response.
|
|
15
|
+
* Returns true if the sequence matches any known capability response pattern.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isCapabilityResponse(sequence: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a sequence is a pixel resolution response.
|
|
20
|
+
* Format: ESC[4;height;widtht
|
|
21
|
+
*/
|
|
22
|
+
export declare function isPixelResolutionResponse(sequence: string): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Parse pixel resolution from response sequence.
|
|
25
|
+
* Returns { width, height } or null if not a valid resolution response.
|
|
26
|
+
*/
|
|
27
|
+
export declare function parsePixelResolution(sequence: string): {
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
} | null;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type Clock } from "./clock.js";
|
|
2
|
+
type Hex = string | null;
|
|
3
|
+
export type WriteFunction = (data: string | Buffer) => boolean;
|
|
4
|
+
export interface TerminalColors {
|
|
5
|
+
palette: Hex[];
|
|
6
|
+
defaultForeground: Hex;
|
|
7
|
+
defaultBackground: Hex;
|
|
8
|
+
cursorColor: Hex;
|
|
9
|
+
mouseForeground: Hex;
|
|
10
|
+
mouseBackground: Hex;
|
|
11
|
+
tekForeground: Hex;
|
|
12
|
+
tekBackground: Hex;
|
|
13
|
+
highlightBackground: Hex;
|
|
14
|
+
highlightForeground: Hex;
|
|
15
|
+
}
|
|
16
|
+
export interface GetPaletteOptions {
|
|
17
|
+
timeout?: number;
|
|
18
|
+
size?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface TerminalPaletteDetector {
|
|
21
|
+
detect(options?: GetPaletteOptions): Promise<TerminalColors>;
|
|
22
|
+
detectOSCSupport(timeoutMs?: number): Promise<boolean>;
|
|
23
|
+
cleanup(): void;
|
|
24
|
+
}
|
|
25
|
+
export type OscSubscriptionSource = {
|
|
26
|
+
subscribeOsc(handler: (sequence: string) => void): () => void;
|
|
27
|
+
};
|
|
28
|
+
export declare class TerminalPalette implements TerminalPaletteDetector {
|
|
29
|
+
private stdin;
|
|
30
|
+
private stdout;
|
|
31
|
+
private writeFn;
|
|
32
|
+
private activeQuerySessions;
|
|
33
|
+
private inLegacyTmux;
|
|
34
|
+
private oscSource?;
|
|
35
|
+
private readonly clock;
|
|
36
|
+
constructor(stdin: NodeJS.ReadStream, stdout: NodeJS.WriteStream, writeFn?: WriteFunction, isLegacyTmux?: boolean, oscSource?: OscSubscriptionSource, clock?: Clock);
|
|
37
|
+
/**
|
|
38
|
+
* Write an OSC sequence, wrapping for tmux if needed
|
|
39
|
+
*/
|
|
40
|
+
private writeOsc;
|
|
41
|
+
cleanup(): void;
|
|
42
|
+
private subscribeInput;
|
|
43
|
+
private createQuerySession;
|
|
44
|
+
detectOSCSupport(timeoutMs?: number): Promise<boolean>;
|
|
45
|
+
private queryPalette;
|
|
46
|
+
private querySpecialColors;
|
|
47
|
+
detect(options?: GetPaletteOptions): Promise<TerminalColors>;
|
|
48
|
+
}
|
|
49
|
+
export declare function createTerminalPalette(stdin: NodeJS.ReadStream, stdout: NodeJS.WriteStream, writeFn?: WriteFunction, isLegacyTmux?: boolean, oscSource?: OscSubscriptionSource, clock?: Clock): TerminalPaletteDetector;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
export interface UpdateOptions {
|
|
3
|
+
/** Path to parsers-config.json */
|
|
4
|
+
configPath: string;
|
|
5
|
+
/** Directory where .wasm and .scm files will be downloaded */
|
|
6
|
+
assetsDir: string;
|
|
7
|
+
/** Path where the generated TypeScript file will be written */
|
|
8
|
+
outputPath: string;
|
|
9
|
+
}
|
|
10
|
+
declare function main(options?: Partial<UpdateOptions>): Promise<void>;
|
|
11
|
+
export { main as updateAssets };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import type { TreeSitterClientOptions, TreeSitterClientEvents, BufferState, FiletypeParserOptions, Edit, PerformanceStats, SimpleHighlight } from "./types.js";
|
|
3
|
+
declare global {
|
|
4
|
+
const OTUI_TREE_SITTER_WORKER_PATH: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function addDefaultParsers(parsers: FiletypeParserOptions[]): void;
|
|
7
|
+
export declare class TreeSitterClient extends EventEmitter<TreeSitterClientEvents> {
|
|
8
|
+
private initialized;
|
|
9
|
+
private worker;
|
|
10
|
+
private buffers;
|
|
11
|
+
private initializePromise;
|
|
12
|
+
private initializeResolvers;
|
|
13
|
+
private messageCallbacks;
|
|
14
|
+
private messageIdCounter;
|
|
15
|
+
private editQueues;
|
|
16
|
+
private debouncer;
|
|
17
|
+
private options;
|
|
18
|
+
constructor(options: TreeSitterClientOptions);
|
|
19
|
+
private emitError;
|
|
20
|
+
private emitWarning;
|
|
21
|
+
private startWorker;
|
|
22
|
+
private stopWorker;
|
|
23
|
+
private handleReset;
|
|
24
|
+
initialize(): Promise<void>;
|
|
25
|
+
private registerDefaultParsers;
|
|
26
|
+
private resolvePath;
|
|
27
|
+
addFiletypeParser(filetypeParser: FiletypeParserOptions): void;
|
|
28
|
+
getPerformance(): Promise<PerformanceStats>;
|
|
29
|
+
highlightOnce(content: string, filetype: string): Promise<{
|
|
30
|
+
highlights?: SimpleHighlight[];
|
|
31
|
+
warning?: string;
|
|
32
|
+
error?: string;
|
|
33
|
+
}>;
|
|
34
|
+
private handleWorkerMessage;
|
|
35
|
+
preloadParser(filetype: string): Promise<boolean>;
|
|
36
|
+
createBuffer(id: number, content: string, filetype: string, version?: number, autoInitialize?: boolean): Promise<boolean>;
|
|
37
|
+
updateBuffer(id: number, edits: Edit[], newContent: string, version: number): Promise<void>;
|
|
38
|
+
private processEdit;
|
|
39
|
+
removeBuffer(bufferId: number): Promise<void>;
|
|
40
|
+
destroy(): Promise<void>;
|
|
41
|
+
resetBuffer(bufferId: number, version: number, content: string): Promise<void>;
|
|
42
|
+
getBuffer(bufferId: number): BufferState | undefined;
|
|
43
|
+
getAllBuffers(): BufferState[];
|
|
44
|
+
isInitialized(): boolean;
|
|
45
|
+
setDataPath(dataPath: string): Promise<void>;
|
|
46
|
+
clearCache(): Promise<void>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DownloadResult {
|
|
2
|
+
content?: Buffer;
|
|
3
|
+
filePath?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class DownloadUtils {
|
|
7
|
+
private static hashUrl;
|
|
8
|
+
/**
|
|
9
|
+
* Download a file from URL or load from local path, with caching support
|
|
10
|
+
*/
|
|
11
|
+
static downloadOrLoad(source: string, cacheDir: string, cacheSubdir: string, fileExtension: string, useHashForCache?: boolean, filetype?: string): Promise<DownloadResult>;
|
|
12
|
+
/**
|
|
13
|
+
* Download and save a file to a specific target path
|
|
14
|
+
*/
|
|
15
|
+
static downloadToPath(source: string, targetPath: string): Promise<DownloadResult>;
|
|
16
|
+
/**
|
|
17
|
+
* Fetch multiple highlight queries and concatenate them
|
|
18
|
+
*/
|
|
19
|
+
static fetchHighlightQueries(sources: string[], cacheDir: string, filetype: string): Promise<string>;
|
|
20
|
+
private static fetchHighlightQuery;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TreeSitterClient } from "./client.js";
|
|
2
|
+
export * from "./client.js";
|
|
3
|
+
export * from "../tree-sitter-styled-text.js";
|
|
4
|
+
export * from "./types.js";
|
|
5
|
+
export * from "./resolve-ft.js";
|
|
6
|
+
export type { UpdateOptions } from "./assets/update.js";
|
|
7
|
+
export { updateAssets } from "./assets/update.js";
|
|
8
|
+
export declare function getTreeSitterClient(): TreeSitterClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the configuration for the defaulttree-sitter parsers.
|
|
3
|
+
* It is used by ./assets/update.ts to generate the default-parsers.ts file.
|
|
4
|
+
* For changes here to be reflected in the default-parsers.ts file, you need to run `bun run ./assets/update.ts`
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: {
|
|
7
|
+
parsers: ({
|
|
8
|
+
filetype: string;
|
|
9
|
+
aliases: string[];
|
|
10
|
+
wasm: string;
|
|
11
|
+
queries: {
|
|
12
|
+
highlights: string[];
|
|
13
|
+
injections?: undefined;
|
|
14
|
+
};
|
|
15
|
+
injectionMapping?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
filetype: string;
|
|
18
|
+
wasm: string;
|
|
19
|
+
queries: {
|
|
20
|
+
highlights: string[];
|
|
21
|
+
injections: string[];
|
|
22
|
+
};
|
|
23
|
+
injectionMapping: {
|
|
24
|
+
nodeTypes: {
|
|
25
|
+
inline: string;
|
|
26
|
+
pipe_table_cell: string;
|
|
27
|
+
};
|
|
28
|
+
infoStringMap: {
|
|
29
|
+
javascript: string;
|
|
30
|
+
js: string;
|
|
31
|
+
jsx: string;
|
|
32
|
+
javascriptreact: string;
|
|
33
|
+
typescript: string;
|
|
34
|
+
ts: string;
|
|
35
|
+
tsx: string;
|
|
36
|
+
typescriptreact: string;
|
|
37
|
+
markdown: string;
|
|
38
|
+
md: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
aliases?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
filetype: string;
|
|
44
|
+
wasm: string;
|
|
45
|
+
queries: {
|
|
46
|
+
highlights: string[];
|
|
47
|
+
injections?: undefined;
|
|
48
|
+
};
|
|
49
|
+
aliases?: undefined;
|
|
50
|
+
injectionMapping?: undefined;
|
|
51
|
+
})[];
|
|
52
|
+
};
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const extensionToFiletype: Map<string, string>;
|
|
2
|
+
export declare const basenameToFiletype: Map<string, string>;
|
|
3
|
+
export declare function extToFiletype(extension: string): string | undefined;
|
|
4
|
+
export declare function pathToFiletype(path: string): string | undefined;
|
|
5
|
+
export declare function infoStringToFiletype(infoString: string): string | undefined;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export interface HighlightRange {
|
|
2
|
+
startCol: number;
|
|
3
|
+
endCol: number;
|
|
4
|
+
group: string;
|
|
5
|
+
}
|
|
6
|
+
export interface HighlightResponse {
|
|
7
|
+
line: number;
|
|
8
|
+
highlights: HighlightRange[];
|
|
9
|
+
droppedHighlights: HighlightRange[];
|
|
10
|
+
}
|
|
11
|
+
export interface HighlightMeta {
|
|
12
|
+
isInjection?: boolean;
|
|
13
|
+
injectionLang?: string;
|
|
14
|
+
containsInjection?: boolean;
|
|
15
|
+
conceal?: string | null;
|
|
16
|
+
concealLines?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export type SimpleHighlight = [number, number, string, HighlightMeta?];
|
|
19
|
+
export interface InjectionMapping {
|
|
20
|
+
nodeTypes?: {
|
|
21
|
+
[nodeType: string]: string;
|
|
22
|
+
};
|
|
23
|
+
infoStringMap?: {
|
|
24
|
+
[infoString: string]: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface FiletypeParserOptions {
|
|
28
|
+
filetype: string;
|
|
29
|
+
aliases?: string[];
|
|
30
|
+
queries: {
|
|
31
|
+
highlights: string[];
|
|
32
|
+
injections?: string[];
|
|
33
|
+
};
|
|
34
|
+
wasm: string;
|
|
35
|
+
injectionMapping?: InjectionMapping;
|
|
36
|
+
}
|
|
37
|
+
export interface BufferState {
|
|
38
|
+
id: number;
|
|
39
|
+
version: number;
|
|
40
|
+
content: string;
|
|
41
|
+
filetype: string;
|
|
42
|
+
hasParser: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface ParsedBuffer extends BufferState {
|
|
45
|
+
hasParser: true;
|
|
46
|
+
}
|
|
47
|
+
export interface TreeSitterClientEvents {
|
|
48
|
+
"highlights:response": [bufferId: number, version: number, highlights: HighlightResponse[]];
|
|
49
|
+
"buffer:initialized": [bufferId: number, hasParser: boolean];
|
|
50
|
+
"buffer:disposed": [bufferId: number];
|
|
51
|
+
"worker:log": [logType: "log" | "error", message: string];
|
|
52
|
+
error: [error: string, bufferId?: number];
|
|
53
|
+
warning: [warning: string, bufferId?: number];
|
|
54
|
+
}
|
|
55
|
+
export interface TreeSitterClientOptions {
|
|
56
|
+
dataPath: string;
|
|
57
|
+
workerPath?: string | URL;
|
|
58
|
+
initTimeout?: number;
|
|
59
|
+
}
|
|
60
|
+
export interface Edit {
|
|
61
|
+
startIndex: number;
|
|
62
|
+
oldEndIndex: number;
|
|
63
|
+
newEndIndex: number;
|
|
64
|
+
startPosition: {
|
|
65
|
+
row: number;
|
|
66
|
+
column: number;
|
|
67
|
+
};
|
|
68
|
+
oldEndPosition: {
|
|
69
|
+
row: number;
|
|
70
|
+
column: number;
|
|
71
|
+
};
|
|
72
|
+
newEndPosition: {
|
|
73
|
+
row: number;
|
|
74
|
+
column: number;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export interface PerformanceStats {
|
|
78
|
+
averageParseTime: number;
|
|
79
|
+
parseTimes: number[];
|
|
80
|
+
averageQueryTime: number;
|
|
81
|
+
queryTimes: number[];
|
|
82
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TextChunk } from "../text-buffer.js";
|
|
2
|
+
import { StyledText } from "./styled-text.js";
|
|
3
|
+
import { SyntaxStyle } from "../syntax-style.js";
|
|
4
|
+
import { TreeSitterClient } from "./tree-sitter/client.js";
|
|
5
|
+
import type { SimpleHighlight } from "./tree-sitter/types.js";
|
|
6
|
+
interface ConcealOptions {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function treeSitterToTextChunks(content: string, highlights: SimpleHighlight[], syntaxStyle: SyntaxStyle, options?: ConcealOptions): TextChunk[];
|
|
10
|
+
export interface TreeSitterToStyledTextOptions {
|
|
11
|
+
conceal?: ConcealOptions;
|
|
12
|
+
}
|
|
13
|
+
export declare function treeSitterToStyledText(content: string, filetype: string, syntaxStyle: SyntaxStyle, client: TreeSitterClient, options?: TreeSitterToStyledTextOptions): Promise<StyledText>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isValidDirectoryName(name: string): boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BoxSizing, Align, Dimension, Direction, Display, Edge, FlexDirection, Gutter, Justify, LogLevel, MeasureMode, Overflow, PositionType, Unit, Wrap } from "yoga-layout";
|
|
2
|
+
export type AlignString = "auto" | "flex-start" | "center" | "flex-end" | "stretch" | "baseline" | "space-between" | "space-around" | "space-evenly";
|
|
3
|
+
export type BoxSizingString = "border-box" | "content-box";
|
|
4
|
+
export type DimensionString = "width" | "height";
|
|
5
|
+
export type DirectionString = "inherit" | "ltr" | "rtl";
|
|
6
|
+
export type DisplayString = "flex" | "none" | "contents";
|
|
7
|
+
export type EdgeString = "left" | "top" | "right" | "bottom" | "start" | "end" | "horizontal" | "vertical" | "all";
|
|
8
|
+
export type FlexDirectionString = "column" | "column-reverse" | "row" | "row-reverse";
|
|
9
|
+
export type GutterString = "column" | "row" | "all";
|
|
10
|
+
export type JustifyString = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
11
|
+
export type LogLevelString = "error" | "warn" | "info" | "debug" | "verbose" | "fatal";
|
|
12
|
+
export type MeasureModeString = "undefined" | "exactly" | "at-most";
|
|
13
|
+
export type OverflowString = "visible" | "hidden" | "scroll";
|
|
14
|
+
export type PositionTypeString = "static" | "relative" | "absolute";
|
|
15
|
+
export type UnitString = "undefined" | "point" | "percent" | "auto";
|
|
16
|
+
export type WrapString = "no-wrap" | "wrap" | "wrap-reverse";
|
|
17
|
+
export declare function parseAlign(value: string | null | undefined): Align;
|
|
18
|
+
export declare function parseAlignItems(value: string | null | undefined): Align;
|
|
19
|
+
export declare function parseBoxSizing(value: string): BoxSizing;
|
|
20
|
+
export declare function parseDimension(value: string): Dimension;
|
|
21
|
+
export declare function parseDirection(value: string): Direction;
|
|
22
|
+
export declare function parseDisplay(value: string): Display;
|
|
23
|
+
export declare function parseEdge(value: string): Edge;
|
|
24
|
+
export declare function parseFlexDirection(value: string | null | undefined): FlexDirection;
|
|
25
|
+
export declare function parseGutter(value: string): Gutter;
|
|
26
|
+
export declare function parseJustify(value: string | null | undefined): Justify;
|
|
27
|
+
export declare function parseLogLevel(value: string): LogLevel;
|
|
28
|
+
export declare function parseMeasureMode(value: string): MeasureMode;
|
|
29
|
+
export declare function parseOverflow(value: string | null | undefined): Overflow;
|
|
30
|
+
export declare function parsePositionType(value: string | null | undefined): PositionType;
|
|
31
|
+
export declare function parseUnit(value: string): Unit;
|
|
32
|
+
export declare function parseWrap(value: string | null | undefined): Wrap;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## Building and testing
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
yarn
|
|
5
|
+
yarn test
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
To run tests in a *browser* (for instance to test compatibility with Firefox, with Safari, or with old browser versions), run `yarn karma start`, then open http://localhost:9876/ in the browser you want to test in. Results of the test run will appear in the terminal where `yarn karma start` is running.
|
|
9
|
+
|
|
10
|
+
If you notice any problems, please report them to the GitHub issue tracker at
|
|
11
|
+
[http://github.com/kpdecker/jsdiff/issues](http://github.com/kpdecker/jsdiff/issues).
|
|
12
|
+
|
|
13
|
+
## Releasing
|
|
14
|
+
|
|
15
|
+
Run a test in Firefox via the procedure above before releasing.
|
|
16
|
+
|
|
17
|
+
A full release may be completed by first updating the `"version"` property in package.json, then running the following:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
yarn clean
|
|
21
|
+
yarn build
|
|
22
|
+
yarn publish
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
After releasing, remember to:
|
|
26
|
+
* commit the `package.json` change and push it to GitHub
|
|
27
|
+
* create a new version tag on GitHub
|
|
28
|
+
* update `diff.js` on the `gh-pages` branch to the latest built version from the `dist/` folder.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|