@songtonyli/dsh-cli 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +8 -6
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +8 -6
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +637 -81
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +4 -1
- package/node_modules/@shikijs/core/LICENSE +22 -0
- package/node_modules/@shikijs/core/README.md +5 -0
- package/node_modules/@shikijs/core/dist/index.mjs +1425 -0
- package/node_modules/@shikijs/core/dist/textmate.mjs +2 -0
- package/node_modules/@shikijs/core/dist/types.mjs +2 -0
- package/node_modules/@shikijs/core/package.json +55 -0
- package/node_modules/@shikijs/engine-javascript/LICENSE +22 -0
- package/node_modules/@shikijs/engine-javascript/README.md +9 -0
- package/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +47 -0
- package/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +27 -0
- package/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
- package/node_modules/@shikijs/engine-javascript/dist/scanner-DX8LRFGE.mjs +77 -0
- package/node_modules/@shikijs/engine-javascript/package.json +38 -0
- package/node_modules/@shikijs/engine-oniguruma/LICENSE +22 -0
- package/node_modules/@shikijs/engine-oniguruma/README.md +9 -0
- package/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +449 -0
- package/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
- package/node_modules/@shikijs/engine-oniguruma/package.json +41 -0
- package/node_modules/@shikijs/langs/LICENSE +22 -0
- package/node_modules/@shikijs/langs/README.md +7 -0
- package/node_modules/@shikijs/langs/dist/1c-query.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/1c.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/abap.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/actionscript-3.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/actionscript.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ada.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/adoc.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ahk.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/ahk1.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ahk2.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/angular-expression.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/angular-html.mjs +16 -0
- package/node_modules/@shikijs/langs/dist/angular-inline-style.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/angular-inline-template.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/angular-let-declaration.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/angular-template-blocks.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/angular-template.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/angular-ts.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/apache.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/apex.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/apl.mjs +16 -0
- package/node_modules/@shikijs/langs/dist/applescript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/ara.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/as3.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/asciidoc.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/asm.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/astro.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/awk.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/ballerina.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/bash.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/bat.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/batch.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/be.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/beancount.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/berry.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/bibtex.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/bicep.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/bird.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/bird2.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/blade.mjs +20 -0
- package/node_modules/@shikijs/langs/dist/bsl.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/c.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/c3.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/cadence.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/cairo.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/cdc.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/chapel.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/chpl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/cjs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/clarity.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/clj.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/clojure.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/closure-templates.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/cmake.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/cmd.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/cobol.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/codeowners.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/codeql.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/coffee.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/coffeescript.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/common-lisp.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/console.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/coq.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/cpp-macro.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/cpp.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/cql.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/crystal.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/cs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/csharp.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/css.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/csv.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/cts.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/cue.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/cypher.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/d.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/dart.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/dax.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/desktop.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/diff.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/docker.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/dockerfile.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/dotenv.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/dream-maker.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/edge.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/elisp.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/elixir.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/elm.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/erb.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/erl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/erlang.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/es-tag-css.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/es-tag-glsl.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/es-tag-html.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/es-tag-sql.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/es-tag-xml.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/f.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/f03.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/f08.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/f18.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/f77.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/f90.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/f95.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/fennel.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/fish.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/fluent.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/for.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/fortran-fixed-form.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/fortran-free-form.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/fs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/fsharp.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/fsl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ftl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/gd.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/gdresource.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/gdscript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/gdshader.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/genie.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/gherkin.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/git-commit.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/git-rebase.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/gjs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/gleam.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/glimmer-js.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/glimmer-ts.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/glsl.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/gn.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/gnuplot.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/go.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/gql.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/graphql.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/groovy.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/gts.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/hack.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/haml.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/handlebars.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/haskell.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/haxe.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/hbs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/hcl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/hjson.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/hlsl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/hs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/html.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/http.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/hurl.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/hxml.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/hy.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/imba.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/index.mjs +367 -0
- package/node_modules/@shikijs/langs/dist/ini.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/jade.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/java.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/jinja-html.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/jinja.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/jison.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/jl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/js.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/json.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/json5.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/jsonc.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/jsonl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/jsonnet.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/jssm.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/julia.mjs +16 -0
- package/node_modules/@shikijs/langs/dist/just.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/justfile.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/kdl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/kotlin.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/kql.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/kt.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/kts.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/kusto.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/latex.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/lean.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/lean4.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/less.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/liquid.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/lisp.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/lit.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/llvm.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/log.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/logo.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/lua.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/luau.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/make.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/makefile.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/markdown-nix.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/marko.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/matlab.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/mbt.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/mbti.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/md.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/mdx.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/mediawiki.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/mermaid.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/mips.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/mipsasm.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/mjs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/mmd.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/mojo.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/moonbit.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/move.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/mts.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/nar.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/narrat.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/nextflow-groovy.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/nextflow.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/nf.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/nginx.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/nim.mjs +20 -0
- package/node_modules/@shikijs/langs/dist/nix.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/nsis.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/nu.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/nushell.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/objc.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/objective-c.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/objective-cpp.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/ocaml.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/odin.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/openscad.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/org.mjs +100 -0
- package/node_modules/@shikijs/langs/dist/pascal.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/perl.mjs +16 -0
- package/node_modules/@shikijs/langs/dist/perl6.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/php.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/pkl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/plsql.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/po.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/polar.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/postcss.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/pot.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/potx.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/powerquery.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/powershell.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/prisma.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/prolog.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/properties.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/proto.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/protobuf.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ps.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ps1.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/pug.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/puppet.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/purescript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/pwsh.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/py.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/python.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/ql.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/qml.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/qmldir.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/qss.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/r.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/racket.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/raku.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/razor.mjs +10 -0
- package/node_modules/@shikijs/langs/dist/rb.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/rbs.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/reg.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/regex.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/regexp.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/rel.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/riscv.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/ron.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/rosmsg.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/rs.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/rst.mjs +22 -0
- package/node_modules/@shikijs/langs/dist/ruby-signature.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ruby.mjs +30 -0
- package/node_modules/@shikijs/langs/dist/rust.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/sas.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/sass.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/scad.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/scala.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/scheme.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/scss.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/sdbl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/sh.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/shader.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/shaderlab.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/shell.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/shellsession.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/smalltalk.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/smithy.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/solidity.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/soy.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/sparql.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/spl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/splunk.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/sql.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/ssh-config.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/stata.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/styl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/stylus.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/surql.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/surrealql.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/svelte.mjs +14 -0
- package/node_modules/@shikijs/langs/dist/swift.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/system-verilog.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/systemd.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/talon.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/talonscript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/tasl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/tcl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/templ.mjs +12 -0
- package/node_modules/@shikijs/langs/dist/terraform.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/tex.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/tf.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/tfvars.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/toml.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/tres.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/ts-tags.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/ts.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/tscn.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/tsp.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/tsv.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/turtle.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/twig.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/typ.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/typespec.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/typst.mjs +120 -0
- package/node_modules/@shikijs/langs/dist/v.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/vala.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/vb.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/verilog.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/vhdl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/vim.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/viml.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/vimscript.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/vue-html.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/vue-vine.mjs +18 -0
- package/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
- package/node_modules/@shikijs/langs/dist/vy.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/vyper.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/wasm.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/wenyan.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/wgsl.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/wiki.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/wikitext.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/wit.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/wl.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/wolfram.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/xml.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/xsl.mjs +8 -0
- package/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/yml.mjs +2 -0
- package/node_modules/@shikijs/langs/dist/zenscript.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/zig.mjs +5 -0
- package/node_modules/@shikijs/langs/dist/zsh.mjs +2 -0
- package/node_modules/@shikijs/langs/package.json +398 -0
- package/node_modules/@shikijs/primitive/LICENSE +22 -0
- package/node_modules/@shikijs/primitive/dist/index.mjs +834 -0
- package/node_modules/@shikijs/primitive/dist/textmate.mjs +2 -0
- package/node_modules/@shikijs/primitive/dist/types.mjs +2 -0
- package/node_modules/@shikijs/primitive/package.json +51 -0
- package/node_modules/@shikijs/themes/LICENSE +22 -0
- package/node_modules/@shikijs/themes/README.md +7 -0
- package/node_modules/@shikijs/themes/dist/andromeeda.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/aurora-x.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/ayu-dark.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/ayu-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/ayu-mirage.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/catppuccin-frappe.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/catppuccin-latte.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/catppuccin-macchiato.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/catppuccin-mocha.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/dark-plus.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/dracula-soft.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/dracula.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/everforest-dark.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/everforest-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/github-dark-default.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/github-dark-dimmed.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/github-dark-high-contrast.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/github-light-default.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/github-light-high-contrast.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/gruvbox-light-hard.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/gruvbox-light-medium.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/gruvbox-light-soft.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/horizon-bright.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/horizon.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/houston.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/index.mjs +67 -0
- package/node_modules/@shikijs/themes/dist/kanagawa-dragon.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/kanagawa-lotus.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/kanagawa-wave.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/laserwave.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/light-plus.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/material-theme-darker.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/material-theme-lighter.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/material-theme-ocean.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/material-theme-palenight.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/material-theme.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/min-dark.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/min-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/monokai.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/night-owl-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/night-owl.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/nord.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/one-dark-pro.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/one-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/plastic.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/poimandres.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/red.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/rose-pine-dawn.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/rose-pine-moon.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/rose-pine.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/slack-dark.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/slack-ochin.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/snazzy-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/solarized-dark.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/solarized-light.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/synthwave-84.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/tokyo-night.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/vesper.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/vitesse-black.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/vitesse-dark.mjs +2 -0
- package/node_modules/@shikijs/themes/dist/vitesse-light.mjs +2 -0
- package/node_modules/@shikijs/themes/package.json +103 -0
- package/node_modules/@shikijs/types/LICENSE +22 -0
- package/node_modules/@shikijs/types/README.md +7 -0
- package/node_modules/@shikijs/types/dist/index.mjs +9 -0
- package/node_modules/@shikijs/types/package.json +35 -0
- package/node_modules/@shikijs/vscode-textmate/LICENSE.md +21 -0
- package/node_modules/@shikijs/vscode-textmate/README.md +9 -0
- package/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
- package/node_modules/@shikijs/vscode-textmate/package.json +35 -0
- package/node_modules/@types/hast/LICENSE +21 -0
- package/node_modules/@types/hast/README.md +15 -0
- package/node_modules/@types/hast/package.json +47 -0
- package/node_modules/@types/mdast/LICENSE +21 -0
- package/node_modules/@types/mdast/README.md +15 -0
- package/node_modules/@types/mdast/package.json +46 -0
- package/node_modules/@types/unist/LICENSE +21 -0
- package/node_modules/@types/unist/README.md +15 -0
- package/node_modules/@types/unist/package.json +59 -0
- package/node_modules/@ungap/structured-clone/.github/workflows/node.js.yml +31 -0
- package/node_modules/@ungap/structured-clone/LICENSE +15 -0
- package/node_modules/@ungap/structured-clone/README.md +95 -0
- package/node_modules/@ungap/structured-clone/cjs/deserialize.js +112 -0
- package/node_modules/@ungap/structured-clone/cjs/index.js +27 -0
- package/node_modules/@ungap/structured-clone/cjs/json.js +24 -0
- package/node_modules/@ungap/structured-clone/cjs/package.json +1 -0
- package/node_modules/@ungap/structured-clone/cjs/serialize.js +174 -0
- package/node_modules/@ungap/structured-clone/cjs/types.js +22 -0
- package/node_modules/@ungap/structured-clone/esm/deserialize.js +113 -0
- package/node_modules/@ungap/structured-clone/esm/index.js +25 -0
- package/node_modules/@ungap/structured-clone/esm/json.js +21 -0
- package/node_modules/@ungap/structured-clone/esm/serialize.js +175 -0
- package/node_modules/@ungap/structured-clone/esm/types.js +11 -0
- package/node_modules/@ungap/structured-clone/package.json +52 -0
- package/node_modules/@ungap/structured-clone/structured-json.js +1 -0
- package/node_modules/ccount/index.js +27 -0
- package/node_modules/ccount/license +22 -0
- package/node_modules/ccount/package.json +63 -0
- package/node_modules/ccount/readme.md +149 -0
- package/node_modules/character-entities-html4/index.js +259 -0
- package/node_modules/character-entities-html4/license +22 -0
- package/node_modules/character-entities-html4/package.json +70 -0
- package/node_modules/character-entities-html4/readme.md +153 -0
- package/node_modules/character-entities-legacy/index.js +113 -0
- package/node_modules/character-entities-legacy/license +22 -0
- package/node_modules/character-entities-legacy/package.json +68 -0
- package/node_modules/character-entities-legacy/readme.md +157 -0
- package/node_modules/comma-separated-tokens/index.js +74 -0
- package/node_modules/comma-separated-tokens/license +22 -0
- package/node_modules/comma-separated-tokens/package.json +64 -0
- package/node_modules/comma-separated-tokens/readme.md +167 -0
- package/node_modules/dequal/dist/index.js +86 -0
- package/node_modules/dequal/dist/index.min.js +1 -0
- package/node_modules/dequal/dist/index.mjs +84 -0
- package/node_modules/dequal/license +21 -0
- package/node_modules/dequal/lite/index.js +31 -0
- package/node_modules/dequal/lite/index.min.js +1 -0
- package/node_modules/dequal/lite/index.mjs +29 -0
- package/node_modules/dequal/package.json +51 -0
- package/node_modules/dequal/readme.md +112 -0
- package/node_modules/devlop/lib/default.js +9 -0
- package/node_modules/devlop/lib/development.js +238 -0
- package/node_modules/devlop/license +22 -0
- package/node_modules/devlop/package.json +70 -0
- package/node_modules/devlop/readme.md +360 -0
- package/node_modules/hast-util-to-html/index.js +8 -0
- package/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
- package/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
- package/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
- package/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
- package/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
- package/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
- package/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
- package/node_modules/hast-util-to-html/lib/index.js +257 -0
- package/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
- package/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
- package/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
- package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
- package/node_modules/hast-util-to-html/license +22 -0
- package/node_modules/hast-util-to-html/package.json +99 -0
- package/node_modules/hast-util-to-html/readme.md +486 -0
- package/node_modules/hast-util-whitespace/index.js +1 -0
- package/node_modules/hast-util-whitespace/lib/index.js +34 -0
- package/node_modules/hast-util-whitespace/license +22 -0
- package/node_modules/hast-util-whitespace/package.json +75 -0
- package/node_modules/hast-util-whitespace/readme.md +231 -0
- package/node_modules/html-void-elements/index.js +27 -0
- package/node_modules/html-void-elements/license +22 -0
- package/node_modules/html-void-elements/package.json +70 -0
- package/node_modules/html-void-elements/readme.md +164 -0
- package/node_modules/mdast-util-to-hast/index.js +7 -0
- package/node_modules/mdast-util-to-hast/lib/footer.js +250 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +27 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/break.js +22 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/code.js +49 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/delete.js +27 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +27 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +70 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/heading.js +27 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/html.js +28 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +39 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/image.js +35 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/index.js +68 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +31 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +44 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/link.js +36 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +119 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/list.js +52 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +27 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/root.js +22 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/strong.js +27 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +29 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +63 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/table.js +61 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/text.js +24 -0
- package/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +27 -0
- package/node_modules/mdast-util-to-hast/lib/index.js +106 -0
- package/node_modules/mdast-util-to-hast/lib/revert.js +49 -0
- package/node_modules/mdast-util-to-hast/lib/state.js +476 -0
- package/node_modules/mdast-util-to-hast/license +22 -0
- package/node_modules/mdast-util-to-hast/package.json +111 -0
- package/node_modules/mdast-util-to-hast/readme.md +1725 -0
- package/node_modules/micromark-util-character/dev/index.js +252 -0
- package/node_modules/micromark-util-character/index.js +246 -0
- package/node_modules/micromark-util-character/license +22 -0
- package/node_modules/micromark-util-character/package.json +54 -0
- package/node_modules/micromark-util-character/readme.md +446 -0
- package/node_modules/micromark-util-encode/index.js +33 -0
- package/node_modules/micromark-util-encode/license +22 -0
- package/node_modules/micromark-util-encode/package.json +47 -0
- package/node_modules/micromark-util-encode/readme.md +176 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
- package/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/node_modules/micromark-util-sanitize-uri/license +22 -0
- package/node_modules/micromark-util-sanitize-uri/package.json +56 -0
- package/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
- package/node_modules/micromark-util-symbol/lib/codes.js +158 -0
- package/node_modules/micromark-util-symbol/lib/constants.js +44 -0
- package/node_modules/micromark-util-symbol/lib/default.js +4 -0
- package/node_modules/micromark-util-symbol/lib/types.js +453 -0
- package/node_modules/micromark-util-symbol/lib/values.js +109 -0
- package/node_modules/micromark-util-symbol/license +22 -0
- package/node_modules/micromark-util-symbol/package.json +43 -0
- package/node_modules/micromark-util-symbol/readme.md +168 -0
- package/node_modules/micromark-util-types/index.js +2 -0
- package/node_modules/micromark-util-types/license +22 -0
- package/node_modules/micromark-util-types/package.json +71 -0
- package/node_modules/micromark-util-types/readme.md +151 -0
- package/node_modules/oniguruma-parser/LICENSE +21 -0
- package/node_modules/oniguruma-parser/README.md +310 -0
- package/node_modules/oniguruma-parser/dist/bundle.js +2 -0
- package/node_modules/oniguruma-parser/dist/generator/generate.js +2 -0
- package/node_modules/oniguruma-parser/dist/index.js +2 -0
- package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +904 -0
- package/node_modules/oniguruma-parser/dist/optimizer/optimizations.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/optimize.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/alternation-to-class.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/expose-anchors.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/extract-prefix-2.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/extract-prefix.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/extract-suffix.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/merge-ranges.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/optionalize.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/prevent-redos.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/remove-empty-groups.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/remove-useless-flags.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/simplify-callouts.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/unnest-useless-classes.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/unwrap-negation-wrappers.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/unwrap-useless-classes.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/unwrap-useless-groups.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/use-shorthands.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/use-unicode-aliases.js +2 -0
- package/node_modules/oniguruma-parser/dist/optimizer/transforms/use-unicode-props.js +2 -0
- package/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
- package/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
- package/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
- package/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
- package/node_modules/oniguruma-parser/dist/unicode.js +872 -0
- package/node_modules/oniguruma-parser/dist/utils.js +2 -0
- package/node_modules/oniguruma-parser/package.json +56 -0
- package/node_modules/oniguruma-to-es/LICENSE +21 -0
- package/node_modules/oniguruma-to-es/README.md +1110 -0
- package/node_modules/oniguruma-to-es/dist/cjs/index.js +3145 -0
- package/node_modules/oniguruma-to-es/dist/cjs/package.json +1 -0
- package/node_modules/oniguruma-to-es/dist/esm/index.js +1878 -0
- package/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
- package/node_modules/oniguruma-to-es/dist/index.min.js +142 -0
- package/node_modules/oniguruma-to-es/package.json +49 -0
- package/node_modules/property-information/index.js +17 -0
- package/node_modules/property-information/lib/aria.js +61 -0
- package/node_modules/property-information/lib/find.js +97 -0
- package/node_modules/property-information/lib/hast-to-react.js +30 -0
- package/node_modules/property-information/lib/html.js +332 -0
- package/node_modules/property-information/lib/normalize.js +12 -0
- package/node_modules/property-information/lib/svg.js +569 -0
- package/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
- package/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
- package/node_modules/property-information/lib/util/create.js +69 -0
- package/node_modules/property-information/lib/util/defined-info.js +60 -0
- package/node_modules/property-information/lib/util/info.js +32 -0
- package/node_modules/property-information/lib/util/merge.js +27 -0
- package/node_modules/property-information/lib/util/schema.js +29 -0
- package/node_modules/property-information/lib/util/types.js +13 -0
- package/node_modules/property-information/lib/xlink.js +17 -0
- package/node_modules/property-information/lib/xml.js +9 -0
- package/node_modules/property-information/lib/xmlns.js +9 -0
- package/node_modules/property-information/license +22 -0
- package/node_modules/property-information/package.json +76 -0
- package/node_modules/property-information/readme.md +1073 -0
- package/node_modules/regex/LICENSE +21 -0
- package/node_modules/regex/README.md +972 -0
- package/node_modules/regex/dist/cjs/package.json +1 -0
- package/node_modules/regex/dist/cjs/regex.js +1335 -0
- package/node_modules/regex/dist/esm/package.json +1 -0
- package/node_modules/regex/dist/esm/regex.js +1313 -0
- package/node_modules/regex/dist/regex.min.js +76 -0
- package/node_modules/regex/package.json +49 -0
- package/node_modules/regex/src/atomic.js +224 -0
- package/node_modules/regex/src/backcompat.js +64 -0
- package/node_modules/regex/src/flag-n.js +49 -0
- package/node_modules/regex/src/flag-x.js +198 -0
- package/node_modules/regex/src/internals.js +2 -0
- package/node_modules/regex/src/pattern.js +45 -0
- package/node_modules/regex/src/regex.js +389 -0
- package/node_modules/regex/src/subclass.js +98 -0
- package/node_modules/regex/src/subroutines.js +375 -0
- package/node_modules/regex/src/utils-internals.js +33 -0
- package/node_modules/regex/src/utils.js +401 -0
- package/node_modules/regex-recursion/LICENSE +21 -0
- package/node_modules/regex-recursion/README.md +151 -0
- package/node_modules/regex-recursion/dist/regex-recursion.min.js +2 -0
- package/node_modules/regex-recursion/package.json +39 -0
- package/node_modules/regex-recursion/src/index.js +365 -0
- package/node_modules/regex-utilities/LICENSE +21 -0
- package/node_modules/regex-utilities/README.md +78 -0
- package/node_modules/regex-utilities/package.json +27 -0
- package/node_modules/regex-utilities/src/index.js +170 -0
- package/node_modules/shiki/LICENSE +22 -0
- package/node_modules/shiki/README.md +15 -0
- package/node_modules/shiki/dist/bundle-full.mjs +25 -0
- package/node_modules/shiki/dist/bundle-web.mjs +347 -0
- package/node_modules/shiki/dist/core-unwasm.mjs +10 -0
- package/node_modules/shiki/dist/core.mjs +3 -0
- package/node_modules/shiki/dist/engine-javascript.mjs +2 -0
- package/node_modules/shiki/dist/engine-oniguruma.mjs +8 -0
- package/node_modules/shiki/dist/index.mjs +8 -0
- package/node_modules/shiki/dist/langs/1c-query.mjs +1 -0
- package/node_modules/shiki/dist/langs/1c.mjs +1 -0
- package/node_modules/shiki/dist/langs/abap.mjs +1 -0
- package/node_modules/shiki/dist/langs/actionscript-3.mjs +1 -0
- package/node_modules/shiki/dist/langs/actionscript.mjs +1 -0
- package/node_modules/shiki/dist/langs/ada.mjs +1 -0
- package/node_modules/shiki/dist/langs/adoc.mjs +1 -0
- package/node_modules/shiki/dist/langs/ahk.mjs +1 -0
- package/node_modules/shiki/dist/langs/ahk1.mjs +1 -0
- package/node_modules/shiki/dist/langs/ahk2.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-expression.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-html.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-inline-style.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-inline-template.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-let-declaration.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-template-blocks.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-template.mjs +1 -0
- package/node_modules/shiki/dist/langs/angular-ts.mjs +1 -0
- package/node_modules/shiki/dist/langs/apache.mjs +1 -0
- package/node_modules/shiki/dist/langs/apex.mjs +1 -0
- package/node_modules/shiki/dist/langs/apl.mjs +1 -0
- package/node_modules/shiki/dist/langs/applescript.mjs +1 -0
- package/node_modules/shiki/dist/langs/ara.mjs +1 -0
- package/node_modules/shiki/dist/langs/as3.mjs +1 -0
- package/node_modules/shiki/dist/langs/asciidoc.mjs +1 -0
- package/node_modules/shiki/dist/langs/asm.mjs +1 -0
- package/node_modules/shiki/dist/langs/astro.mjs +1 -0
- package/node_modules/shiki/dist/langs/awk.mjs +1 -0
- package/node_modules/shiki/dist/langs/ballerina.mjs +1 -0
- package/node_modules/shiki/dist/langs/bash.mjs +1 -0
- package/node_modules/shiki/dist/langs/bat.mjs +1 -0
- package/node_modules/shiki/dist/langs/batch.mjs +1 -0
- package/node_modules/shiki/dist/langs/be.mjs +1 -0
- package/node_modules/shiki/dist/langs/beancount.mjs +1 -0
- package/node_modules/shiki/dist/langs/berry.mjs +1 -0
- package/node_modules/shiki/dist/langs/bibtex.mjs +1 -0
- package/node_modules/shiki/dist/langs/bicep.mjs +1 -0
- package/node_modules/shiki/dist/langs/bird.mjs +1 -0
- package/node_modules/shiki/dist/langs/bird2.mjs +1 -0
- package/node_modules/shiki/dist/langs/blade.mjs +1 -0
- package/node_modules/shiki/dist/langs/bsl.mjs +1 -0
- package/node_modules/shiki/dist/langs/c.mjs +1 -0
- package/node_modules/shiki/dist/langs/c3.mjs +1 -0
- package/node_modules/shiki/dist/langs/cadence.mjs +1 -0
- package/node_modules/shiki/dist/langs/cairo.mjs +1 -0
- package/node_modules/shiki/dist/langs/cdc.mjs +1 -0
- package/node_modules/shiki/dist/langs/chapel.mjs +1 -0
- package/node_modules/shiki/dist/langs/chpl.mjs +1 -0
- package/node_modules/shiki/dist/langs/cjs.mjs +1 -0
- package/node_modules/shiki/dist/langs/clarity.mjs +1 -0
- package/node_modules/shiki/dist/langs/clj.mjs +1 -0
- package/node_modules/shiki/dist/langs/clojure.mjs +1 -0
- package/node_modules/shiki/dist/langs/closure-templates.mjs +1 -0
- package/node_modules/shiki/dist/langs/cmake.mjs +1 -0
- package/node_modules/shiki/dist/langs/cmd.mjs +1 -0
- package/node_modules/shiki/dist/langs/cobol.mjs +1 -0
- package/node_modules/shiki/dist/langs/codeowners.mjs +1 -0
- package/node_modules/shiki/dist/langs/codeql.mjs +1 -0
- package/node_modules/shiki/dist/langs/coffee.mjs +1 -0
- package/node_modules/shiki/dist/langs/coffeescript.mjs +1 -0
- package/node_modules/shiki/dist/langs/common-lisp.mjs +1 -0
- package/node_modules/shiki/dist/langs/console.mjs +1 -0
- package/node_modules/shiki/dist/langs/coq.mjs +1 -0
- package/node_modules/shiki/dist/langs/cpp-macro.mjs +1 -0
- package/node_modules/shiki/dist/langs/cpp.mjs +1 -0
- package/node_modules/shiki/dist/langs/cql.mjs +1 -0
- package/node_modules/shiki/dist/langs/crystal.mjs +1 -0
- package/node_modules/shiki/dist/langs/cs.mjs +1 -0
- package/node_modules/shiki/dist/langs/csharp.mjs +1 -0
- package/node_modules/shiki/dist/langs/css.mjs +1 -0
- package/node_modules/shiki/dist/langs/csv.mjs +1 -0
- package/node_modules/shiki/dist/langs/cts.mjs +1 -0
- package/node_modules/shiki/dist/langs/cue.mjs +1 -0
- package/node_modules/shiki/dist/langs/cypher.mjs +1 -0
- package/node_modules/shiki/dist/langs/d.mjs +1 -0
- package/node_modules/shiki/dist/langs/dart.mjs +1 -0
- package/node_modules/shiki/dist/langs/dax.mjs +1 -0
- package/node_modules/shiki/dist/langs/desktop.mjs +1 -0
- package/node_modules/shiki/dist/langs/diff.mjs +1 -0
- package/node_modules/shiki/dist/langs/docker.mjs +1 -0
- package/node_modules/shiki/dist/langs/dockerfile.mjs +1 -0
- package/node_modules/shiki/dist/langs/dotenv.mjs +1 -0
- package/node_modules/shiki/dist/langs/dream-maker.mjs +1 -0
- package/node_modules/shiki/dist/langs/edge.mjs +1 -0
- package/node_modules/shiki/dist/langs/elisp.mjs +1 -0
- package/node_modules/shiki/dist/langs/elixir.mjs +1 -0
- package/node_modules/shiki/dist/langs/elm.mjs +1 -0
- package/node_modules/shiki/dist/langs/emacs-lisp.mjs +1 -0
- package/node_modules/shiki/dist/langs/erb.mjs +1 -0
- package/node_modules/shiki/dist/langs/erl.mjs +1 -0
- package/node_modules/shiki/dist/langs/erlang.mjs +1 -0
- package/node_modules/shiki/dist/langs/es-tag-css.mjs +1 -0
- package/node_modules/shiki/dist/langs/es-tag-glsl.mjs +1 -0
- package/node_modules/shiki/dist/langs/es-tag-html.mjs +1 -0
- package/node_modules/shiki/dist/langs/es-tag-sql.mjs +1 -0
- package/node_modules/shiki/dist/langs/es-tag-xml.mjs +1 -0
- package/node_modules/shiki/dist/langs/f.mjs +1 -0
- package/node_modules/shiki/dist/langs/f03.mjs +1 -0
- package/node_modules/shiki/dist/langs/f08.mjs +1 -0
- package/node_modules/shiki/dist/langs/f18.mjs +1 -0
- package/node_modules/shiki/dist/langs/f77.mjs +1 -0
- package/node_modules/shiki/dist/langs/f90.mjs +1 -0
- package/node_modules/shiki/dist/langs/f95.mjs +1 -0
- package/node_modules/shiki/dist/langs/fennel.mjs +1 -0
- package/node_modules/shiki/dist/langs/fish.mjs +1 -0
- package/node_modules/shiki/dist/langs/fluent.mjs +1 -0
- package/node_modules/shiki/dist/langs/for.mjs +1 -0
- package/node_modules/shiki/dist/langs/fortran-fixed-form.mjs +1 -0
- package/node_modules/shiki/dist/langs/fortran-free-form.mjs +1 -0
- package/node_modules/shiki/dist/langs/fs.mjs +1 -0
- package/node_modules/shiki/dist/langs/fsharp.mjs +1 -0
- package/node_modules/shiki/dist/langs/fsl.mjs +1 -0
- package/node_modules/shiki/dist/langs/ftl.mjs +1 -0
- package/node_modules/shiki/dist/langs/gd.mjs +1 -0
- package/node_modules/shiki/dist/langs/gdresource.mjs +1 -0
- package/node_modules/shiki/dist/langs/gdscript.mjs +1 -0
- package/node_modules/shiki/dist/langs/gdshader.mjs +1 -0
- package/node_modules/shiki/dist/langs/genie.mjs +1 -0
- package/node_modules/shiki/dist/langs/gherkin.mjs +1 -0
- package/node_modules/shiki/dist/langs/git-commit.mjs +1 -0
- package/node_modules/shiki/dist/langs/git-rebase.mjs +1 -0
- package/node_modules/shiki/dist/langs/gjs.mjs +1 -0
- package/node_modules/shiki/dist/langs/gleam.mjs +1 -0
- package/node_modules/shiki/dist/langs/glimmer-js.mjs +1 -0
- package/node_modules/shiki/dist/langs/glimmer-ts.mjs +1 -0
- package/node_modules/shiki/dist/langs/glsl.mjs +1 -0
- package/node_modules/shiki/dist/langs/gn.mjs +1 -0
- package/node_modules/shiki/dist/langs/gnuplot.mjs +1 -0
- package/node_modules/shiki/dist/langs/go.mjs +1 -0
- package/node_modules/shiki/dist/langs/gql.mjs +1 -0
- package/node_modules/shiki/dist/langs/graphql.mjs +1 -0
- package/node_modules/shiki/dist/langs/groovy.mjs +1 -0
- package/node_modules/shiki/dist/langs/gts.mjs +1 -0
- package/node_modules/shiki/dist/langs/hack.mjs +1 -0
- package/node_modules/shiki/dist/langs/haml.mjs +1 -0
- package/node_modules/shiki/dist/langs/handlebars.mjs +1 -0
- package/node_modules/shiki/dist/langs/haskell.mjs +1 -0
- package/node_modules/shiki/dist/langs/haxe.mjs +1 -0
- package/node_modules/shiki/dist/langs/hbs.mjs +1 -0
- package/node_modules/shiki/dist/langs/hcl.mjs +1 -0
- package/node_modules/shiki/dist/langs/hjson.mjs +1 -0
- package/node_modules/shiki/dist/langs/hlsl.mjs +1 -0
- package/node_modules/shiki/dist/langs/hs.mjs +1 -0
- package/node_modules/shiki/dist/langs/html-derivative.mjs +1 -0
- package/node_modules/shiki/dist/langs/html.mjs +1 -0
- package/node_modules/shiki/dist/langs/http.mjs +1 -0
- package/node_modules/shiki/dist/langs/hurl.mjs +1 -0
- package/node_modules/shiki/dist/langs/hxml.mjs +1 -0
- package/node_modules/shiki/dist/langs/hy.mjs +1 -0
- package/node_modules/shiki/dist/langs/imba.mjs +1 -0
- package/node_modules/shiki/dist/langs/ini.mjs +1 -0
- package/node_modules/shiki/dist/langs/jade.mjs +1 -0
- package/node_modules/shiki/dist/langs/java.mjs +1 -0
- package/node_modules/shiki/dist/langs/javascript.mjs +1 -0
- package/node_modules/shiki/dist/langs/jinja-html.mjs +1 -0
- package/node_modules/shiki/dist/langs/jinja.mjs +1 -0
- package/node_modules/shiki/dist/langs/jison.mjs +1 -0
- package/node_modules/shiki/dist/langs/jl.mjs +1 -0
- package/node_modules/shiki/dist/langs/js.mjs +1 -0
- package/node_modules/shiki/dist/langs/json.mjs +1 -0
- package/node_modules/shiki/dist/langs/json5.mjs +1 -0
- package/node_modules/shiki/dist/langs/jsonc.mjs +1 -0
- package/node_modules/shiki/dist/langs/jsonl.mjs +1 -0
- package/node_modules/shiki/dist/langs/jsonnet.mjs +1 -0
- package/node_modules/shiki/dist/langs/jssm.mjs +1 -0
- package/node_modules/shiki/dist/langs/jsx.mjs +1 -0
- package/node_modules/shiki/dist/langs/julia.mjs +1 -0
- package/node_modules/shiki/dist/langs/just.mjs +1 -0
- package/node_modules/shiki/dist/langs/justfile.mjs +1 -0
- package/node_modules/shiki/dist/langs/kdl.mjs +1 -0
- package/node_modules/shiki/dist/langs/kotlin.mjs +1 -0
- package/node_modules/shiki/dist/langs/kql.mjs +1 -0
- package/node_modules/shiki/dist/langs/kt.mjs +1 -0
- package/node_modules/shiki/dist/langs/kts.mjs +1 -0
- package/node_modules/shiki/dist/langs/kusto.mjs +1 -0
- package/node_modules/shiki/dist/langs/latex.mjs +1 -0
- package/node_modules/shiki/dist/langs/lean.mjs +1 -0
- package/node_modules/shiki/dist/langs/lean4.mjs +1 -0
- package/node_modules/shiki/dist/langs/less.mjs +1 -0
- package/node_modules/shiki/dist/langs/liquid.mjs +1 -0
- package/node_modules/shiki/dist/langs/lisp.mjs +1 -0
- package/node_modules/shiki/dist/langs/lit.mjs +1 -0
- package/node_modules/shiki/dist/langs/llvm.mjs +1 -0
- package/node_modules/shiki/dist/langs/log.mjs +1 -0
- package/node_modules/shiki/dist/langs/logo.mjs +1 -0
- package/node_modules/shiki/dist/langs/lua.mjs +1 -0
- package/node_modules/shiki/dist/langs/luau.mjs +1 -0
- package/node_modules/shiki/dist/langs/make.mjs +1 -0
- package/node_modules/shiki/dist/langs/makefile.mjs +1 -0
- package/node_modules/shiki/dist/langs/markdown-nix.mjs +1 -0
- package/node_modules/shiki/dist/langs/markdown-vue.mjs +1 -0
- package/node_modules/shiki/dist/langs/markdown.mjs +1 -0
- package/node_modules/shiki/dist/langs/marko.mjs +1 -0
- package/node_modules/shiki/dist/langs/matlab.mjs +1 -0
- package/node_modules/shiki/dist/langs/mbt.mjs +1 -0
- package/node_modules/shiki/dist/langs/mbti.mjs +1 -0
- package/node_modules/shiki/dist/langs/md.mjs +1 -0
- package/node_modules/shiki/dist/langs/mdc.mjs +1 -0
- package/node_modules/shiki/dist/langs/mdx.mjs +1 -0
- package/node_modules/shiki/dist/langs/mediawiki.mjs +1 -0
- package/node_modules/shiki/dist/langs/mermaid.mjs +1 -0
- package/node_modules/shiki/dist/langs/mips.mjs +1 -0
- package/node_modules/shiki/dist/langs/mipsasm.mjs +1 -0
- package/node_modules/shiki/dist/langs/mjs.mjs +1 -0
- package/node_modules/shiki/dist/langs/mmd.mjs +1 -0
- package/node_modules/shiki/dist/langs/mojo.mjs +1 -0
- package/node_modules/shiki/dist/langs/moonbit.mjs +1 -0
- package/node_modules/shiki/dist/langs/move.mjs +1 -0
- package/node_modules/shiki/dist/langs/mts.mjs +1 -0
- package/node_modules/shiki/dist/langs/nar.mjs +1 -0
- package/node_modules/shiki/dist/langs/narrat.mjs +1 -0
- package/node_modules/shiki/dist/langs/nextflow-groovy.mjs +1 -0
- package/node_modules/shiki/dist/langs/nextflow.mjs +1 -0
- package/node_modules/shiki/dist/langs/nf.mjs +1 -0
- package/node_modules/shiki/dist/langs/nginx.mjs +1 -0
- package/node_modules/shiki/dist/langs/nim.mjs +1 -0
- package/node_modules/shiki/dist/langs/nix.mjs +1 -0
- package/node_modules/shiki/dist/langs/nsis.mjs +1 -0
- package/node_modules/shiki/dist/langs/nu.mjs +1 -0
- package/node_modules/shiki/dist/langs/nushell.mjs +1 -0
- package/node_modules/shiki/dist/langs/objc.mjs +1 -0
- package/node_modules/shiki/dist/langs/objective-c.mjs +1 -0
- package/node_modules/shiki/dist/langs/objective-cpp.mjs +1 -0
- package/node_modules/shiki/dist/langs/ocaml.mjs +1 -0
- package/node_modules/shiki/dist/langs/odin.mjs +1 -0
- package/node_modules/shiki/dist/langs/openscad.mjs +1 -0
- package/node_modules/shiki/dist/langs/org.mjs +1 -0
- package/node_modules/shiki/dist/langs/pascal.mjs +1 -0
- package/node_modules/shiki/dist/langs/perl.mjs +1 -0
- package/node_modules/shiki/dist/langs/perl6.mjs +1 -0
- package/node_modules/shiki/dist/langs/php.mjs +1 -0
- package/node_modules/shiki/dist/langs/pkl.mjs +1 -0
- package/node_modules/shiki/dist/langs/plsql.mjs +1 -0
- package/node_modules/shiki/dist/langs/po.mjs +1 -0
- package/node_modules/shiki/dist/langs/polar.mjs +1 -0
- package/node_modules/shiki/dist/langs/postcss.mjs +1 -0
- package/node_modules/shiki/dist/langs/pot.mjs +1 -0
- package/node_modules/shiki/dist/langs/potx.mjs +1 -0
- package/node_modules/shiki/dist/langs/powerquery.mjs +1 -0
- package/node_modules/shiki/dist/langs/powershell.mjs +1 -0
- package/node_modules/shiki/dist/langs/prisma.mjs +1 -0
- package/node_modules/shiki/dist/langs/prolog.mjs +1 -0
- package/node_modules/shiki/dist/langs/properties.mjs +1 -0
- package/node_modules/shiki/dist/langs/proto.mjs +1 -0
- package/node_modules/shiki/dist/langs/protobuf.mjs +1 -0
- package/node_modules/shiki/dist/langs/ps.mjs +1 -0
- package/node_modules/shiki/dist/langs/ps1.mjs +1 -0
- package/node_modules/shiki/dist/langs/pug.mjs +1 -0
- package/node_modules/shiki/dist/langs/puppet.mjs +1 -0
- package/node_modules/shiki/dist/langs/purescript.mjs +1 -0
- package/node_modules/shiki/dist/langs/pwsh.mjs +1 -0
- package/node_modules/shiki/dist/langs/py.mjs +1 -0
- package/node_modules/shiki/dist/langs/python.mjs +1 -0
- package/node_modules/shiki/dist/langs/ql.mjs +1 -0
- package/node_modules/shiki/dist/langs/qml.mjs +1 -0
- package/node_modules/shiki/dist/langs/qmldir.mjs +1 -0
- package/node_modules/shiki/dist/langs/qss.mjs +1 -0
- package/node_modules/shiki/dist/langs/r.mjs +1 -0
- package/node_modules/shiki/dist/langs/racket.mjs +1 -0
- package/node_modules/shiki/dist/langs/raku.mjs +1 -0
- package/node_modules/shiki/dist/langs/razor.mjs +1 -0
- package/node_modules/shiki/dist/langs/rb.mjs +1 -0
- package/node_modules/shiki/dist/langs/rbs.mjs +1 -0
- package/node_modules/shiki/dist/langs/reg.mjs +1 -0
- package/node_modules/shiki/dist/langs/regex.mjs +1 -0
- package/node_modules/shiki/dist/langs/regexp.mjs +1 -0
- package/node_modules/shiki/dist/langs/rel.mjs +1 -0
- package/node_modules/shiki/dist/langs/riscv.mjs +1 -0
- package/node_modules/shiki/dist/langs/ron.mjs +1 -0
- package/node_modules/shiki/dist/langs/rosmsg.mjs +1 -0
- package/node_modules/shiki/dist/langs/rs.mjs +1 -0
- package/node_modules/shiki/dist/langs/rst.mjs +1 -0
- package/node_modules/shiki/dist/langs/ruby-signature.mjs +1 -0
- package/node_modules/shiki/dist/langs/ruby.mjs +1 -0
- package/node_modules/shiki/dist/langs/rust.mjs +1 -0
- package/node_modules/shiki/dist/langs/sas.mjs +1 -0
- package/node_modules/shiki/dist/langs/sass.mjs +1 -0
- package/node_modules/shiki/dist/langs/scad.mjs +1 -0
- package/node_modules/shiki/dist/langs/scala.mjs +1 -0
- package/node_modules/shiki/dist/langs/scheme.mjs +1 -0
- package/node_modules/shiki/dist/langs/scss.mjs +1 -0
- package/node_modules/shiki/dist/langs/sdbl.mjs +1 -0
- package/node_modules/shiki/dist/langs/sh.mjs +1 -0
- package/node_modules/shiki/dist/langs/shader.mjs +1 -0
- package/node_modules/shiki/dist/langs/shaderlab.mjs +1 -0
- package/node_modules/shiki/dist/langs/shell.mjs +1 -0
- package/node_modules/shiki/dist/langs/shellscript.mjs +1 -0
- package/node_modules/shiki/dist/langs/shellsession.mjs +1 -0
- package/node_modules/shiki/dist/langs/smalltalk.mjs +1 -0
- package/node_modules/shiki/dist/langs/smithy.mjs +1 -0
- package/node_modules/shiki/dist/langs/solidity.mjs +1 -0
- package/node_modules/shiki/dist/langs/soy.mjs +1 -0
- package/node_modules/shiki/dist/langs/sparql.mjs +1 -0
- package/node_modules/shiki/dist/langs/spl.mjs +1 -0
- package/node_modules/shiki/dist/langs/splunk.mjs +1 -0
- package/node_modules/shiki/dist/langs/sql.mjs +1 -0
- package/node_modules/shiki/dist/langs/ssh-config.mjs +1 -0
- package/node_modules/shiki/dist/langs/stata.mjs +1 -0
- package/node_modules/shiki/dist/langs/styl.mjs +1 -0
- package/node_modules/shiki/dist/langs/stylus.mjs +1 -0
- package/node_modules/shiki/dist/langs/surql.mjs +1 -0
- package/node_modules/shiki/dist/langs/surrealql.mjs +1 -0
- package/node_modules/shiki/dist/langs/svelte.mjs +1 -0
- package/node_modules/shiki/dist/langs/swift.mjs +1 -0
- package/node_modules/shiki/dist/langs/system-verilog.mjs +1 -0
- package/node_modules/shiki/dist/langs/systemd.mjs +1 -0
- package/node_modules/shiki/dist/langs/talon.mjs +1 -0
- package/node_modules/shiki/dist/langs/talonscript.mjs +1 -0
- package/node_modules/shiki/dist/langs/tasl.mjs +1 -0
- package/node_modules/shiki/dist/langs/tcl.mjs +1 -0
- package/node_modules/shiki/dist/langs/templ.mjs +1 -0
- package/node_modules/shiki/dist/langs/terraform.mjs +1 -0
- package/node_modules/shiki/dist/langs/tex.mjs +1 -0
- package/node_modules/shiki/dist/langs/tf.mjs +1 -0
- package/node_modules/shiki/dist/langs/tfvars.mjs +1 -0
- package/node_modules/shiki/dist/langs/toml.mjs +1 -0
- package/node_modules/shiki/dist/langs/tres.mjs +1 -0
- package/node_modules/shiki/dist/langs/ts-tags.mjs +1 -0
- package/node_modules/shiki/dist/langs/ts.mjs +1 -0
- package/node_modules/shiki/dist/langs/tscn.mjs +1 -0
- package/node_modules/shiki/dist/langs/tsp.mjs +1 -0
- package/node_modules/shiki/dist/langs/tsv.mjs +1 -0
- package/node_modules/shiki/dist/langs/tsx.mjs +1 -0
- package/node_modules/shiki/dist/langs/turtle.mjs +1 -0
- package/node_modules/shiki/dist/langs/twig.mjs +1 -0
- package/node_modules/shiki/dist/langs/typ.mjs +1 -0
- package/node_modules/shiki/dist/langs/typescript.mjs +1 -0
- package/node_modules/shiki/dist/langs/typespec.mjs +1 -0
- package/node_modules/shiki/dist/langs/typst.mjs +1 -0
- package/node_modules/shiki/dist/langs/v.mjs +1 -0
- package/node_modules/shiki/dist/langs/vala.mjs +1 -0
- package/node_modules/shiki/dist/langs/vb.mjs +1 -0
- package/node_modules/shiki/dist/langs/verilog.mjs +1 -0
- package/node_modules/shiki/dist/langs/vhdl.mjs +1 -0
- package/node_modules/shiki/dist/langs/vim.mjs +1 -0
- package/node_modules/shiki/dist/langs/viml.mjs +1 -0
- package/node_modules/shiki/dist/langs/vimscript.mjs +1 -0
- package/node_modules/shiki/dist/langs/vue-directives.mjs +1 -0
- package/node_modules/shiki/dist/langs/vue-html.mjs +1 -0
- package/node_modules/shiki/dist/langs/vue-interpolations.mjs +1 -0
- package/node_modules/shiki/dist/langs/vue-sfc-style-variable-injection.mjs +1 -0
- package/node_modules/shiki/dist/langs/vue-vine.mjs +1 -0
- package/node_modules/shiki/dist/langs/vue.mjs +1 -0
- package/node_modules/shiki/dist/langs/vy.mjs +1 -0
- package/node_modules/shiki/dist/langs/vyper.mjs +1 -0
- package/node_modules/shiki/dist/langs/wasm.mjs +1 -0
- package/node_modules/shiki/dist/langs/wenyan.mjs +1 -0
- package/node_modules/shiki/dist/langs/wgsl.mjs +1 -0
- package/node_modules/shiki/dist/langs/wiki.mjs +1 -0
- package/node_modules/shiki/dist/langs/wikitext.mjs +1 -0
- package/node_modules/shiki/dist/langs/wit.mjs +1 -0
- package/node_modules/shiki/dist/langs/wl.mjs +1 -0
- package/node_modules/shiki/dist/langs/wolfram.mjs +1 -0
- package/node_modules/shiki/dist/langs/xml.mjs +1 -0
- package/node_modules/shiki/dist/langs/xsl.mjs +1 -0
- package/node_modules/shiki/dist/langs/yaml.mjs +1 -0
- package/node_modules/shiki/dist/langs/yml.mjs +1 -0
- package/node_modules/shiki/dist/langs/zenscript.mjs +1 -0
- package/node_modules/shiki/dist/langs/zig.mjs +1 -0
- package/node_modules/shiki/dist/langs/zsh.mjs +1 -0
- package/node_modules/shiki/dist/langs-bundle-full-xQVO1Cek.mjs +1326 -0
- package/node_modules/shiki/dist/langs.mjs +2 -0
- package/node_modules/shiki/dist/onig.wasm +0 -0
- package/node_modules/shiki/dist/rolldown-runtime-BBjsoOtd.mjs +27 -0
- package/node_modules/shiki/dist/textmate.mjs +2 -0
- package/node_modules/shiki/dist/themes/andromeeda.mjs +1 -0
- package/node_modules/shiki/dist/themes/aurora-x.mjs +1 -0
- package/node_modules/shiki/dist/themes/ayu-dark.mjs +1 -0
- package/node_modules/shiki/dist/themes/ayu-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/ayu-mirage.mjs +1 -0
- package/node_modules/shiki/dist/themes/catppuccin-frappe.mjs +1 -0
- package/node_modules/shiki/dist/themes/catppuccin-latte.mjs +1 -0
- package/node_modules/shiki/dist/themes/catppuccin-macchiato.mjs +1 -0
- package/node_modules/shiki/dist/themes/catppuccin-mocha.mjs +1 -0
- package/node_modules/shiki/dist/themes/dark-plus.mjs +1 -0
- package/node_modules/shiki/dist/themes/dracula-soft.mjs +1 -0
- package/node_modules/shiki/dist/themes/dracula.mjs +1 -0
- package/node_modules/shiki/dist/themes/everforest-dark.mjs +1 -0
- package/node_modules/shiki/dist/themes/everforest-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/github-dark-default.mjs +1 -0
- package/node_modules/shiki/dist/themes/github-dark-dimmed.mjs +1 -0
- package/node_modules/shiki/dist/themes/github-dark-high-contrast.mjs +1 -0
- package/node_modules/shiki/dist/themes/github-dark.mjs +1 -0
- package/node_modules/shiki/dist/themes/github-light-default.mjs +1 -0
- package/node_modules/shiki/dist/themes/github-light-high-contrast.mjs +1 -0
- package/node_modules/shiki/dist/themes/github-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/gruvbox-dark-hard.mjs +1 -0
- package/node_modules/shiki/dist/themes/gruvbox-dark-medium.mjs +1 -0
- package/node_modules/shiki/dist/themes/gruvbox-dark-soft.mjs +1 -0
- package/node_modules/shiki/dist/themes/gruvbox-light-hard.mjs +1 -0
- package/node_modules/shiki/dist/themes/gruvbox-light-medium.mjs +1 -0
- package/node_modules/shiki/dist/themes/gruvbox-light-soft.mjs +1 -0
- package/node_modules/shiki/dist/themes/horizon-bright.mjs +1 -0
- package/node_modules/shiki/dist/themes/horizon.mjs +1 -0
- package/node_modules/shiki/dist/themes/houston.mjs +1 -0
- package/node_modules/shiki/dist/themes/kanagawa-dragon.mjs +1 -0
- package/node_modules/shiki/dist/themes/kanagawa-lotus.mjs +1 -0
- package/node_modules/shiki/dist/themes/kanagawa-wave.mjs +1 -0
- package/node_modules/shiki/dist/themes/laserwave.mjs +1 -0
- package/node_modules/shiki/dist/themes/light-plus.mjs +1 -0
- package/node_modules/shiki/dist/themes/material-theme-darker.mjs +1 -0
- package/node_modules/shiki/dist/themes/material-theme-lighter.mjs +1 -0
- package/node_modules/shiki/dist/themes/material-theme-ocean.mjs +1 -0
- package/node_modules/shiki/dist/themes/material-theme-palenight.mjs +1 -0
- package/node_modules/shiki/dist/themes/material-theme.mjs +1 -0
- package/node_modules/shiki/dist/themes/min-dark.mjs +1 -0
- package/node_modules/shiki/dist/themes/min-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/monokai.mjs +1 -0
- package/node_modules/shiki/dist/themes/night-owl-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/night-owl.mjs +1 -0
- package/node_modules/shiki/dist/themes/nord.mjs +1 -0
- package/node_modules/shiki/dist/themes/one-dark-pro.mjs +1 -0
- package/node_modules/shiki/dist/themes/one-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/plastic.mjs +1 -0
- package/node_modules/shiki/dist/themes/poimandres.mjs +1 -0
- package/node_modules/shiki/dist/themes/red.mjs +1 -0
- package/node_modules/shiki/dist/themes/rose-pine-dawn.mjs +1 -0
- package/node_modules/shiki/dist/themes/rose-pine-moon.mjs +1 -0
- package/node_modules/shiki/dist/themes/rose-pine.mjs +1 -0
- package/node_modules/shiki/dist/themes/slack-dark.mjs +1 -0
- package/node_modules/shiki/dist/themes/slack-ochin.mjs +1 -0
- package/node_modules/shiki/dist/themes/snazzy-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/solarized-dark.mjs +1 -0
- package/node_modules/shiki/dist/themes/solarized-light.mjs +1 -0
- package/node_modules/shiki/dist/themes/synthwave-84.mjs +1 -0
- package/node_modules/shiki/dist/themes/tokyo-night.mjs +1 -0
- package/node_modules/shiki/dist/themes/vesper.mjs +1 -0
- package/node_modules/shiki/dist/themes/vitesse-black.mjs +1 -0
- package/node_modules/shiki/dist/themes/vitesse-dark.mjs +1 -0
- package/node_modules/shiki/dist/themes/vitesse-light.mjs +1 -0
- package/node_modules/shiki/dist/themes.mjs +396 -0
- package/node_modules/shiki/dist/types.mjs +1 -0
- package/node_modules/shiki/dist/wasm.mjs +3 -0
- package/node_modules/shiki/package.json +67 -0
- package/node_modules/space-separated-tokens/index.js +24 -0
- package/node_modules/space-separated-tokens/license +22 -0
- package/node_modules/space-separated-tokens/package.json +59 -0
- package/node_modules/space-separated-tokens/readme.md +156 -0
- package/node_modules/stringify-entities/index.js +6 -0
- package/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
- package/node_modules/stringify-entities/lib/core.js +117 -0
- package/node_modules/stringify-entities/lib/index.js +36 -0
- package/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
- package/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
- package/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
- package/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
- package/node_modules/stringify-entities/lib/util/to-named.js +57 -0
- package/node_modules/stringify-entities/license +22 -0
- package/node_modules/stringify-entities/package.json +77 -0
- package/node_modules/stringify-entities/readme.md +233 -0
- package/node_modules/trim-lines/index.js +69 -0
- package/node_modules/trim-lines/license +22 -0
- package/node_modules/trim-lines/package.json +58 -0
- package/node_modules/trim-lines/readme.md +125 -0
- package/node_modules/unist-util-is/index.js +7 -0
- package/node_modules/unist-util-is/lib/index.js +296 -0
- package/node_modules/unist-util-is/license +22 -0
- package/node_modules/unist-util-is/package.json +95 -0
- package/node_modules/unist-util-is/readme.md +351 -0
- package/node_modules/unist-util-position/index.js +1 -0
- package/node_modules/unist-util-position/lib/index.js +95 -0
- package/node_modules/unist-util-position/license +22 -0
- package/node_modules/unist-util-position/package.json +68 -0
- package/node_modules/unist-util-position/readme.md +243 -0
- package/node_modules/unist-util-stringify-position/index.js +1 -0
- package/node_modules/unist-util-stringify-position/lib/index.js +84 -0
- package/node_modules/unist-util-stringify-position/license +22 -0
- package/node_modules/unist-util-stringify-position/package.json +72 -0
- package/node_modules/unist-util-stringify-position/readme.md +206 -0
- package/node_modules/unist-util-visit/index.js +2 -0
- package/node_modules/unist-util-visit/lib/index.js +312 -0
- package/node_modules/unist-util-visit/license +22 -0
- package/node_modules/unist-util-visit/package.json +100 -0
- package/node_modules/unist-util-visit/readme.md +313 -0
- package/node_modules/unist-util-visit-parents/index.js +2 -0
- package/node_modules/unist-util-visit-parents/lib/color.js +7 -0
- package/node_modules/unist-util-visit-parents/lib/color.node.js +7 -0
- package/node_modules/unist-util-visit-parents/lib/index.js +399 -0
- package/node_modules/unist-util-visit-parents/license +22 -0
- package/node_modules/unist-util-visit-parents/package.json +98 -0
- package/node_modules/unist-util-visit-parents/readme.md +388 -0
- package/node_modules/vfile/index.js +2 -0
- package/node_modules/vfile/lib/index.js +643 -0
- package/node_modules/vfile/lib/minpath.browser.js +426 -0
- package/node_modules/vfile/lib/minpath.js +1 -0
- package/node_modules/vfile/lib/minproc.browser.js +8 -0
- package/node_modules/vfile/lib/minproc.js +1 -0
- package/node_modules/vfile/lib/minurl.browser.js +76 -0
- package/node_modules/vfile/lib/minurl.js +2 -0
- package/node_modules/vfile/lib/minurl.shared.js +31 -0
- package/node_modules/vfile/license +21 -0
- package/node_modules/vfile/package.json +126 -0
- package/node_modules/vfile/readme.md +785 -0
- package/node_modules/vfile-message/index.js +5 -0
- package/node_modules/vfile-message/lib/index.js +314 -0
- package/node_modules/vfile-message/license +22 -0
- package/node_modules/vfile-message/package.json +72 -0
- package/node_modules/vfile-message/readme.md +252 -0
- package/node_modules/zwitch/index.js +118 -0
- package/node_modules/zwitch/license +22 -0
- package/node_modules/zwitch/package.json +64 -0
- package/node_modules/zwitch/readme.md +226 -0
- package/package.json +93 -3
|
@@ -991,17 +991,17 @@ function reportChange(result) {
|
|
|
991
991
|
return text;
|
|
992
992
|
}
|
|
993
993
|
/** Control Sequence Introducer. */
|
|
994
|
-
const CSI = "\x1B[";
|
|
994
|
+
const CSI$1 = "\x1B[";
|
|
995
995
|
/**
|
|
996
996
|
* Ends the foreground color a recolored run set. SGR 39 restores the default
|
|
997
997
|
* foreground only: bold, italic, underline, inverse, and the background set by
|
|
998
998
|
* enclosing markdown styling stay in force.
|
|
999
999
|
*/
|
|
1000
|
-
const RESET_FOREGROUND = `${CSI}39m`;
|
|
1000
|
+
const RESET_FOREGROUND$1 = `${CSI$1}39m`;
|
|
1001
1001
|
/** Faint intensity: the only ramp level the two-level mode draws. */
|
|
1002
|
-
const DIM = `${CSI}2m`;
|
|
1002
|
+
const DIM = `${CSI$1}2m`;
|
|
1003
1003
|
/** Ends faint intensity. SGR 22 also ends bold, which shares the code. */
|
|
1004
|
-
const RESET_INTENSITY = `${CSI}22m`;
|
|
1004
|
+
const RESET_INTENSITY = `${CSI$1}22m`;
|
|
1005
1005
|
/** Ages the two-level mode draws faint; later ages draw as rendered. */
|
|
1006
1006
|
const DIM_AGES = 2;
|
|
1007
1007
|
/** First xterm 256-color grayscale index. */
|
|
@@ -1013,7 +1013,7 @@ const GRAY_FIRST_VALUE = 8;
|
|
|
1013
1013
|
/** Gray value step between consecutive grayscale indices. */
|
|
1014
1014
|
const GRAY_VALUE_STEP = 10;
|
|
1015
1015
|
/** Relative-luminance weights used to pick the nearest gray. */
|
|
1016
|
-
const LUMINANCE = {
|
|
1016
|
+
const LUMINANCE$1 = {
|
|
1017
1017
|
r: .2126,
|
|
1018
1018
|
g: .7152,
|
|
1019
1019
|
b: .0722
|
|
@@ -1075,7 +1075,7 @@ function resolveFadeCapability(input) {
|
|
|
1075
1075
|
* @param steps - brightness levels; defaults to {@link FADE_STEPS}.
|
|
1076
1076
|
* @returns `steps` levels, darkest first.
|
|
1077
1077
|
*/
|
|
1078
|
-
function buildFadeRamp(bg, fg, steps =
|
|
1078
|
+
function buildFadeRamp(bg, fg, steps = 12) {
|
|
1079
1079
|
return Array.from({ length: steps }, (_unused, level) => {
|
|
1080
1080
|
if (level === steps - 1) return {
|
|
1081
1081
|
r: fg.r,
|
|
@@ -1169,7 +1169,7 @@ function fadeSgr(style, age) {
|
|
|
1169
1169
|
* @returns `ESC[38;2;R;G;Bm` with each channel clamped to a byte.
|
|
1170
1170
|
*/
|
|
1171
1171
|
function truecolorSgr(color) {
|
|
1172
|
-
return `${CSI}38;2;${channel(color.r)};${channel(color.g)};${channel(color.b)}m`;
|
|
1172
|
+
return `${CSI$1}38;2;${channel(color.r)};${channel(color.g)};${channel(color.b)}m`;
|
|
1173
1173
|
}
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Encode one level as the nearest xterm grayscale index.
|
|
@@ -1177,9 +1177,9 @@ function truecolorSgr(color) {
|
|
|
1177
1177
|
* @returns `ESC[38;5;Nm` with N in 232..255.
|
|
1178
1178
|
*/
|
|
1179
1179
|
function grayscaleSgr(color) {
|
|
1180
|
-
const luminance = LUMINANCE.r * color.r + LUMINANCE.g * color.g + LUMINANCE.b * color.b;
|
|
1180
|
+
const luminance = LUMINANCE$1.r * color.r + LUMINANCE$1.g * color.g + LUMINANCE$1.b * color.b;
|
|
1181
1181
|
const step = Math.round((luminance - GRAY_FIRST_VALUE) / GRAY_VALUE_STEP);
|
|
1182
|
-
return `${CSI}38;5;${GRAY_FIRST_INDEX + Math.max(0, Math.min(GRAY_LEVELS - 1, step))}m`;
|
|
1182
|
+
return `${CSI$1}38;5;${GRAY_FIRST_INDEX + Math.max(0, Math.min(GRAY_LEVELS - 1, step))}m`;
|
|
1183
1183
|
}
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Clamp one channel to what an SGR byte carries.
|
|
@@ -1196,7 +1196,7 @@ function channel(value) {
|
|
|
1196
1196
|
* `ESC[39m` for the color modes, which set a foreground.
|
|
1197
1197
|
*/
|
|
1198
1198
|
function restoreFor(capability) {
|
|
1199
|
-
return capability === "dim" ? RESET_INTENSITY : RESET_FOREGROUND;
|
|
1199
|
+
return capability === "dim" ? RESET_INTENSITY : RESET_FOREGROUND$1;
|
|
1200
1200
|
}
|
|
1201
1201
|
/** Every SGR sequence, the sequences a block's own palette styling writes. */
|
|
1202
1202
|
const SGR_SEQUENCE = /\u001b\[[0-9;]*m/g;
|
|
@@ -1326,7 +1326,7 @@ const ANSI16 = [
|
|
|
1326
1326
|
* @returns the weighted sum of the channels.
|
|
1327
1327
|
*/
|
|
1328
1328
|
function colorLuminance(color) {
|
|
1329
|
-
return LUMINANCE.r * color.r + LUMINANCE.g * color.g + LUMINANCE.b * color.b;
|
|
1329
|
+
return LUMINANCE$1.r * color.r + LUMINANCE$1.g * color.g + LUMINANCE$1.b * color.b;
|
|
1330
1330
|
}
|
|
1331
1331
|
/**
|
|
1332
1332
|
* The color a float-out starts from: the assumed foreground when that is
|
|
@@ -1367,7 +1367,7 @@ function settledRgb(state, fg) {
|
|
|
1367
1367
|
* @returns the SGR sequence, or empty when the capability cannot encode a mix.
|
|
1368
1368
|
*/
|
|
1369
1369
|
function encodeMix(capability, color) {
|
|
1370
|
-
return capability === "truecolor" ? truecolorSgr(color) : `${CSI}38;5;${String(nearestAnsi256(color))}m`;
|
|
1370
|
+
return capability === "truecolor" ? truecolorSgr(color) : `${CSI$1}38;5;${String(nearestAnsi256(color))}m`;
|
|
1371
1371
|
}
|
|
1372
1372
|
/**
|
|
1373
1373
|
* Rebuild one card row as a per-run float-out mix.
|
|
@@ -1392,7 +1392,7 @@ function floatOutLine(line, t, capability, fg) {
|
|
|
1392
1392
|
last = start + match[0].length;
|
|
1393
1393
|
}
|
|
1394
1394
|
if (last < line.length) out += paintSegment(line.slice(last), state, t, capability, fg);
|
|
1395
|
-
return `${out}${RESET_FOREGROUND}`;
|
|
1395
|
+
return `${out}${RESET_FOREGROUND$1}`;
|
|
1396
1396
|
}
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Overlay one text run with the float-out mix for the SGR in force.
|
|
@@ -1564,7 +1564,7 @@ var FadeTracker = class {
|
|
|
1564
1564
|
chunks = [];
|
|
1565
1565
|
openChunk = void 0;
|
|
1566
1566
|
constructor(options) {
|
|
1567
|
-
this.steps = options.steps ??
|
|
1567
|
+
this.steps = options.steps ?? 12;
|
|
1568
1568
|
this.stepMs = options.stepMs ?? 33;
|
|
1569
1569
|
this.now = options.now;
|
|
1570
1570
|
}
|
|
@@ -1723,10 +1723,14 @@ var FadeRegistry = class {
|
|
|
1723
1723
|
* Whitespace is skipped on both sides while matching, so a chunk still matches
|
|
1724
1724
|
* after the renderer turned its space into a line break or trimmed it.
|
|
1725
1725
|
*
|
|
1726
|
-
* Markdown rewrites text, so a chunk may
|
|
1727
|
-
*
|
|
1728
|
-
*
|
|
1729
|
-
*
|
|
1726
|
+
* Markdown rewrites text, so a chunk's characters may reach the screen without
|
|
1727
|
+
* the syntax around them, or not at all. The rendered text is therefore matched
|
|
1728
|
+
* as a subsequence of what was streamed: a character the renderer consumed is
|
|
1729
|
+
* skipped and the columns keep their alignment, so a delta that closes a bold
|
|
1730
|
+
* run or a code span no longer drops the whole tail to the foreground for one
|
|
1731
|
+
* frame. Matching stops at a chunk fewer than half of whose characters are
|
|
1732
|
+
* there at all - text this tail never reached; that chunk and every older one
|
|
1733
|
+
* then draw at the foreground, unchanged.
|
|
1730
1734
|
*
|
|
1731
1735
|
* Styling inside a recolored run survives. The run reasserts the sequences in
|
|
1732
1736
|
* force at its start, so an enclosing bold or italic continues across it; an
|
|
@@ -1750,7 +1754,7 @@ var FadeRegistry = class {
|
|
|
1750
1754
|
*/
|
|
1751
1755
|
function recolorTail(lines, spans, style, from = 0, mode = "in") {
|
|
1752
1756
|
if (spans.length === 0 || lines.length === 0) return [...lines];
|
|
1753
|
-
const cells = cellsFromEnd(lines);
|
|
1757
|
+
const cells = new CellWalk(cellsFromEnd(lines));
|
|
1754
1758
|
const runs = [];
|
|
1755
1759
|
for (const span of [...spans].reverse()) {
|
|
1756
1760
|
const covered = consumeSpan(cells, span.text);
|
|
@@ -1795,26 +1799,86 @@ function* cellsFromEnd(lines) {
|
|
|
1795
1799
|
}
|
|
1796
1800
|
}
|
|
1797
1801
|
/**
|
|
1802
|
+
* The backwards cell walk with one cell of pushback, so a chunk that hands a
|
|
1803
|
+
* cell back leaves it for the chunk before it rather than eating it.
|
|
1804
|
+
*/
|
|
1805
|
+
var CellWalk = class {
|
|
1806
|
+
cells;
|
|
1807
|
+
pending;
|
|
1808
|
+
/**
|
|
1809
|
+
* @param cells - the backwards walk over the rendered lines.
|
|
1810
|
+
*/
|
|
1811
|
+
constructor(cells) {
|
|
1812
|
+
this.cells = cells;
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* The next cell towards the start of the text.
|
|
1816
|
+
* @returns the cell, or undefined once the walk is spent.
|
|
1817
|
+
*/
|
|
1818
|
+
next() {
|
|
1819
|
+
const held = this.pending;
|
|
1820
|
+
if (held !== void 0) {
|
|
1821
|
+
this.pending = void 0;
|
|
1822
|
+
return held;
|
|
1823
|
+
}
|
|
1824
|
+
const step = this.cells.next();
|
|
1825
|
+
return step.done ? void 0 : step.value;
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* Put one cell back for the next read.
|
|
1829
|
+
* @param cell - the cell the caller did not claim.
|
|
1830
|
+
*/
|
|
1831
|
+
back(cell) {
|
|
1832
|
+
this.pending = cell;
|
|
1833
|
+
}
|
|
1834
|
+
};
|
|
1835
|
+
/**
|
|
1798
1836
|
* Take the cells one chunk covers off the walk.
|
|
1837
|
+
*
|
|
1838
|
+
* Markdown is rendered, not echoed: `**bold**` reaches the screen as `bold`,
|
|
1839
|
+
* a fence and a bullet disappear, and a link keeps its text and drops its
|
|
1840
|
+
* target. A character of the chunk that the renderer consumed therefore has no
|
|
1841
|
+
* cell, and it is skipped rather than failing the whole tail - the rendered
|
|
1842
|
+
* text is matched as a subsequence of what was streamed. Only a chunk whose
|
|
1843
|
+
* cells have run out ends the walk, because past that point the columns
|
|
1844
|
+
* belong to text this tail never appended.
|
|
1799
1845
|
* @param cells - the backwards walk, positioned at the end of the region still unclaimed.
|
|
1800
1846
|
* @param text - the chunk's text as it was appended.
|
|
1801
1847
|
* @returns the cells the chunk covers, whitespace included, or undefined when
|
|
1802
|
-
* the
|
|
1848
|
+
* the walk reached the start of the rendered text mid-chunk.
|
|
1803
1849
|
*/
|
|
1804
1850
|
function consumeSpan(cells, text) {
|
|
1805
1851
|
const wanted = Array.from(GRAPHEMES.segment(text), (part) => part.segment).filter((part) => !isBlank(part)).reverse();
|
|
1806
1852
|
const covered = [];
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1853
|
+
let index = 0;
|
|
1854
|
+
let matched = 0;
|
|
1855
|
+
while (index < wanted.length) {
|
|
1856
|
+
let cell = cells.next();
|
|
1857
|
+
while (cell !== void 0 && isBlank(cell.grapheme)) {
|
|
1858
|
+
covered.push(cell);
|
|
1859
|
+
cell = cells.next();
|
|
1860
|
+
}
|
|
1861
|
+
if (cell === void 0) break;
|
|
1862
|
+
/* v8 ignore next -- the loop condition holds the index inside the list */
|
|
1863
|
+
const want = wanted[index] ?? "";
|
|
1864
|
+
if (cell.grapheme === want) {
|
|
1865
|
+
covered.push(cell);
|
|
1866
|
+
matched += 1;
|
|
1867
|
+
index += 1;
|
|
1868
|
+
} else if (wanted.includes(cell.grapheme, index + 1) || MARKDOWN_SYNTAX.test(want)) {
|
|
1869
|
+
cells.back(cell);
|
|
1870
|
+
index += 1;
|
|
1871
|
+
} else covered.push(cell);
|
|
1872
|
+
}
|
|
1873
|
+
return matched * 2 >= wanted.length ? covered : void 0;
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Characters a Markdown renderer consumes rather than draws: emphasis and code
|
|
1877
|
+
* fences, headings and rules, list and quote markers, and link brackets. A
|
|
1878
|
+
* chunk's own character that the rendered text does not carry is one of these
|
|
1879
|
+
* far more often than it is text the renderer dropped outright.
|
|
1880
|
+
*/
|
|
1881
|
+
const MARKDOWN_SYNTAX = /^[*_`~#>[\]()|\\!+=-]$/u;
|
|
1818
1882
|
/**
|
|
1819
1883
|
* Whether a grapheme draws nothing.
|
|
1820
1884
|
* @param grapheme - one grapheme cluster.
|
|
@@ -2003,10 +2067,13 @@ function colorEnabled(env, isTty) {
|
|
|
2003
2067
|
/**
|
|
2004
2068
|
* The Markdown theme derived from the palette.
|
|
2005
2069
|
* @param palette - the active palette.
|
|
2070
|
+
* @param highlight - colours fenced code; omitted draws every block plain,
|
|
2071
|
+
* which is also what a block whose language has no grammar here draws as.
|
|
2006
2072
|
* @returns a complete pi-tui Markdown theme.
|
|
2007
2073
|
*/
|
|
2008
|
-
function markdownTheme(palette) {
|
|
2074
|
+
function markdownTheme(palette, highlight) {
|
|
2009
2075
|
return {
|
|
2076
|
+
highlightCode: (code, lang) => highlight?.lines(code, lang) ?? code.split("\n"),
|
|
2010
2077
|
heading: (text) => palette.bold(palette.accent(text)),
|
|
2011
2078
|
link: palette.accent,
|
|
2012
2079
|
linkUrl: palette.dim,
|
|
@@ -2322,7 +2389,7 @@ var AssistantBlock = class {
|
|
|
2322
2389
|
this.theme = theme;
|
|
2323
2390
|
this.turn = turn;
|
|
2324
2391
|
const palette = theme.palette;
|
|
2325
|
-
this.markdown = new Markdown("", 0, 0, markdownTheme(palette));
|
|
2392
|
+
this.markdown = new Markdown("", 0, 0, markdownTheme(palette, theme.codeHighlight));
|
|
2326
2393
|
this.reasoningText = new Text("", 0, 0);
|
|
2327
2394
|
}
|
|
2328
2395
|
/**
|
|
@@ -5632,8 +5699,8 @@ const TOO_SMALL = `terminal too small for the reader (needs ${String(24)}×${Str
|
|
|
5632
5699
|
*/
|
|
5633
5700
|
const READER_HINTS = {
|
|
5634
5701
|
list: [
|
|
5635
|
-
"↑↓ turns · → opens · / filters · Esc closes",
|
|
5636
|
-
"↑↓
|
|
5702
|
+
"↑↓ sections · PgUp PgDn turns · → opens · / filters · Esc closes",
|
|
5703
|
+
"↑↓ sections · → opens · Esc closes",
|
|
5637
5704
|
"Esc closes"
|
|
5638
5705
|
],
|
|
5639
5706
|
pane: [
|
|
@@ -5810,6 +5877,40 @@ function readerGeometryFor(state, groups, blocks, width, rows, minColumns) {
|
|
|
5810
5877
|
};
|
|
5811
5878
|
}
|
|
5812
5879
|
/**
|
|
5880
|
+
* The rows the turn list draws: every turn, with the sections of the one being
|
|
5881
|
+
* read listed under it. Only that turn opens, so the list stays a timeline a
|
|
5882
|
+
* long session can still be walked through, and the sections of another turn
|
|
5883
|
+
* are one step away rather than behind a key of their own.
|
|
5884
|
+
* @param state - where the reader is.
|
|
5885
|
+
* @param groups - the turns the list names.
|
|
5886
|
+
* @returns the rows in drawing order, each marked when the cursor holds it.
|
|
5887
|
+
*/
|
|
5888
|
+
function readerOutline(state, groups) {
|
|
5889
|
+
const held = groupIndex(state, groups);
|
|
5890
|
+
return groups.flatMap((group, index) => {
|
|
5891
|
+
const turn = {
|
|
5892
|
+
kind: "turn",
|
|
5893
|
+
group,
|
|
5894
|
+
open: index === held
|
|
5895
|
+
};
|
|
5896
|
+
if (index !== held) return [turn];
|
|
5897
|
+
return [turn, ...group.sections.map((cursor) => ({
|
|
5898
|
+
kind: "section",
|
|
5899
|
+
cursor,
|
|
5900
|
+
held: sameCursor(cursor, state.cursor)
|
|
5901
|
+
}))];
|
|
5902
|
+
});
|
|
5903
|
+
}
|
|
5904
|
+
/**
|
|
5905
|
+
* Every section of every listed turn, in reading order, which is what the
|
|
5906
|
+
* list's own `Up` and `Down` step along.
|
|
5907
|
+
* @param groups - the turns the list names.
|
|
5908
|
+
* @returns one cursor per section.
|
|
5909
|
+
*/
|
|
5910
|
+
function allSections(groups) {
|
|
5911
|
+
return groups.flatMap((group) => [...group.sections]);
|
|
5912
|
+
}
|
|
5913
|
+
/**
|
|
5813
5914
|
* The largest first visible panel row; 0 while the whole turn fits at once.
|
|
5814
5915
|
* @param geometry - the reader's geometry.
|
|
5815
5916
|
* @returns the row the scroll stops at.
|
|
@@ -5844,6 +5945,44 @@ function targetIndex(to, index, count) {
|
|
|
5844
5945
|
}
|
|
5845
5946
|
}
|
|
5846
5947
|
/**
|
|
5948
|
+
* The panel measure of one turn, which is the geometry's own while the cursor
|
|
5949
|
+
* stays in the turn it was measured for and a fresh one once it crosses into
|
|
5950
|
+
* another.
|
|
5951
|
+
* @param group - the turn to measure.
|
|
5952
|
+
* @param held - the turn the geometry was measured for.
|
|
5953
|
+
* @param geometry - the reader's geometry.
|
|
5954
|
+
* @param blocks - the navigable blocks.
|
|
5955
|
+
* @returns where each of that turn's sections starts.
|
|
5956
|
+
*/
|
|
5957
|
+
function measureOf(group, held, geometry, blocks) {
|
|
5958
|
+
if (group === held) return geometry.measure;
|
|
5959
|
+
return geometry.pane === 0 ? EMPTY_MEASURE : measurePane(group, blocks, geometry.pane);
|
|
5960
|
+
}
|
|
5961
|
+
/**
|
|
5962
|
+
* Put the reader on one section, with the panel scrolled to its header.
|
|
5963
|
+
* @param state - where the reader is.
|
|
5964
|
+
* @param cursor - the section to read.
|
|
5965
|
+
* @param groups - the turns the list names.
|
|
5966
|
+
* @param geometry - the reader's geometry.
|
|
5967
|
+
* @param blocks - the navigable blocks.
|
|
5968
|
+
* @returns the state on that section.
|
|
5969
|
+
*/
|
|
5970
|
+
function readSection(state, cursor, groups, geometry, blocks) {
|
|
5971
|
+
const held = groups[groupIndex(state, groups)];
|
|
5972
|
+
const next = groups[turnIndexOf(cursor, groups)];
|
|
5973
|
+
/* v8 ignore next -- every cursor the list steps to comes from a listed turn */
|
|
5974
|
+
if (next === void 0) return state;
|
|
5975
|
+
const measure = measureOf(next, held, geometry, blocks);
|
|
5976
|
+
const index = next.sections.findIndex((section) => sameCursor(section, cursor));
|
|
5977
|
+
/* v8 ignore next -- the cursor came from this turn's own sections, so the measure has its row */
|
|
5978
|
+
const header = measure.headers[index] ?? 0;
|
|
5979
|
+
return {
|
|
5980
|
+
...state,
|
|
5981
|
+
cursor,
|
|
5982
|
+
offset: Math.min(header, Math.max(0, measure.total - geometry.body))
|
|
5983
|
+
};
|
|
5984
|
+
}
|
|
5985
|
+
/**
|
|
5847
5986
|
* The state without its query.
|
|
5848
5987
|
* @param state - where the reader is.
|
|
5849
5988
|
* @returns the same state with the list naming every turn again.
|
|
@@ -5886,7 +6025,7 @@ function readAt(state, offset, groups, geometry) {
|
|
|
5886
6025
|
*/
|
|
5887
6026
|
function selectTurn(state, index, groups) {
|
|
5888
6027
|
const cursor = cursorAt(groups, index, 0);
|
|
5889
|
-
/* v8 ignore next --
|
|
6028
|
+
/* v8 ignore next -- the caller refuses an empty list first */
|
|
5890
6029
|
if (cursor === void 0) return state;
|
|
5891
6030
|
return {
|
|
5892
6031
|
...state,
|
|
@@ -5895,23 +6034,6 @@ function selectTurn(state, index, groups) {
|
|
|
5895
6034
|
};
|
|
5896
6035
|
}
|
|
5897
6036
|
/**
|
|
5898
|
-
* Answer one page key: a page of the panel's rows with one row of overlap, or
|
|
5899
|
-
* a list's worth of turns.
|
|
5900
|
-
* @param state - where the reader is.
|
|
5901
|
-
* @param step - 1 for the next page, -1 for the previous one.
|
|
5902
|
-
* @param groups - the turns the list names.
|
|
5903
|
-
* @param geometry - the reader's geometry.
|
|
5904
|
-
* @returns the state after the page.
|
|
5905
|
-
*/
|
|
5906
|
-
function pageBy(state, step, groups, geometry) {
|
|
5907
|
-
if (state.column === "pane") {
|
|
5908
|
-
const by = Math.max(1, geometry.body - 1);
|
|
5909
|
-
return readAt(state, clamp(state.offset + step * by, 0, maxOffset(geometry)), groups, geometry);
|
|
5910
|
-
}
|
|
5911
|
-
if (groups.length === 0) return state;
|
|
5912
|
-
return selectTurn(state, clamp(groupIndex(state, groups) + step * Math.max(1, geometry.body), 0, groups.length - 1), groups);
|
|
5913
|
-
}
|
|
5914
|
-
/**
|
|
5915
6037
|
* Answer `Escape` on the query line: clear the query, then close the line and
|
|
5916
6038
|
* list every turn again. From either panel the key closes the reader instead,
|
|
5917
6039
|
* which {@link readerClosesOnEscape} reports.
|
|
@@ -5943,13 +6065,22 @@ function readerClosesOnEscape(state) {
|
|
|
5943
6065
|
* @param intent - what the key meant.
|
|
5944
6066
|
* @param groups - the turns the list names, already narrowed by the query.
|
|
5945
6067
|
* @param geometry - the reader's geometry, with the turn panel measured.
|
|
6068
|
+
* @param blocks - the navigable blocks, for the panel rows of a turn the
|
|
6069
|
+
* geometry was not measured for, which is what the list crossing a turn
|
|
6070
|
+
* boundary lands on.
|
|
5946
6071
|
* @returns the state after the press; the state itself when nothing moves.
|
|
5947
6072
|
*/
|
|
5948
|
-
function reduceReader(state, intent, groups, geometry) {
|
|
6073
|
+
function reduceReader(state, intent, groups, geometry, blocks) {
|
|
5949
6074
|
switch (intent.kind) {
|
|
5950
|
-
case "
|
|
6075
|
+
case "section": {
|
|
6076
|
+
const sections = allSections(groups);
|
|
6077
|
+
const at = sections.findIndex((section) => sameCursor(section, state.cursor));
|
|
6078
|
+
const cursor = sections[targetIndex(intent.to, Math.max(0, at), sections.length)];
|
|
6079
|
+
return cursor === void 0 ? state : readSection(state, cursor, groups, geometry, blocks);
|
|
6080
|
+
}
|
|
6081
|
+
case "turn": return groups.length === 0 ? state : selectTurn(state, clamp(groupIndex(state, groups) + intent.step, 0, groups.length - 1), groups);
|
|
5951
6082
|
case "scroll": return readAt(state, targetIndex(intent.to, state.offset, maxOffset(geometry) + 1), groups, geometry);
|
|
5952
|
-
case "page": return
|
|
6083
|
+
case "page": return readAt(state, clamp(state.offset + intent.step * Math.max(1, geometry.body - 1), 0, maxOffset(geometry)), groups, geometry);
|
|
5953
6084
|
case "column": return {
|
|
5954
6085
|
...state,
|
|
5955
6086
|
column: intent.to
|
|
@@ -6035,38 +6166,62 @@ function cell(text, width) {
|
|
|
6035
6166
|
* One row of the turn list: the mark, the turn number, its prompt, and what
|
|
6036
6167
|
* the turn contributed.
|
|
6037
6168
|
* @param group - the turn.
|
|
6038
|
-
* @param
|
|
6169
|
+
* @param open - whether this is the turn being read, whose sections follow it.
|
|
6039
6170
|
* @param focused - whether the list itself has the keyboard.
|
|
6040
6171
|
* @param palette - the palette the row is styled with.
|
|
6041
6172
|
* @param width - the list's columns.
|
|
6042
6173
|
* @returns the row, exactly `width` columns.
|
|
6043
6174
|
*/
|
|
6044
|
-
function listRow(group,
|
|
6175
|
+
function listRow(group, open, focused, palette, width) {
|
|
6045
6176
|
const marks = markerStrip(group.markers);
|
|
6046
6177
|
const room = Math.max(1, width - visibleWidth(marks));
|
|
6047
|
-
const lead =
|
|
6048
|
-
const label = truncateToWidth(group.label, Math.max(1, room - visibleWidth(lead) - (
|
|
6049
|
-
const head = `${lead}${
|
|
6178
|
+
const lead = ` ${String(group.turn)} `;
|
|
6179
|
+
const label = truncateToWidth(group.label, Math.max(1, room - visibleWidth(lead) - (open ? 2 : 0)), ELLIPSIS$1);
|
|
6180
|
+
const head = `${lead}${open ? `[${label}]` : label}`;
|
|
6050
6181
|
const paint = (text) => {
|
|
6051
|
-
if (!
|
|
6182
|
+
if (!open) return palette.dim(text);
|
|
6052
6183
|
return focused ? palette.bold(palette.accent(text)) : palette.accent(text);
|
|
6053
6184
|
};
|
|
6054
6185
|
const text = truncateToWidth(paint(head), room, ELLIPSIS$1);
|
|
6055
6186
|
return `${text}${" ".repeat(Math.max(0, room - visibleWidth(text)))}${palette.dim(marks)}`;
|
|
6056
6187
|
}
|
|
6188
|
+
/** Columns a section row is indented by, so the turn it belongs to reads as its heading. */
|
|
6189
|
+
const SECTION_INDENT = " ";
|
|
6057
6190
|
/**
|
|
6058
|
-
*
|
|
6059
|
-
*
|
|
6060
|
-
* @param
|
|
6191
|
+
* One section row of the turn list: the mark, the indent, and the label the
|
|
6192
|
+
* panel heads that section with.
|
|
6193
|
+
* @param cursor - the section.
|
|
6194
|
+
* @param blocks - the navigable blocks.
|
|
6195
|
+
* @param selected - whether the cursor holds it.
|
|
6196
|
+
* @param focused - whether the list itself has the keyboard.
|
|
6197
|
+
* @param palette - the palette the row is styled with.
|
|
6198
|
+
* @param width - the list's columns.
|
|
6199
|
+
* @returns the row, exactly `width` columns.
|
|
6200
|
+
*/
|
|
6201
|
+
function sectionRow(cursor, blocks, selected, focused, palette, width) {
|
|
6202
|
+
const found = sectionAt(cursor, blocks);
|
|
6203
|
+
const label = found === void 0 ? "" : paneLabel(found.block, found.part);
|
|
6204
|
+
const head = `${selected ? LIST_MARK : " "}${SECTION_INDENT}${label}`;
|
|
6205
|
+
const paint = (text) => {
|
|
6206
|
+
if (!selected) return palette.dim(text);
|
|
6207
|
+
return focused ? palette.bold(palette.accent(text)) : palette.accent(text);
|
|
6208
|
+
};
|
|
6209
|
+
return cell(paint(head), width);
|
|
6210
|
+
}
|
|
6211
|
+
/**
|
|
6212
|
+
* The turn list's rows, windowed so the row the cursor holds is always drawn.
|
|
6213
|
+
* @param rows - the outline the list draws.
|
|
6214
|
+
* @param blocks - the navigable blocks, for each section's own label.
|
|
6061
6215
|
* @param focused - whether the list itself has the keyboard.
|
|
6062
6216
|
* @param palette - the palette the rows are styled with.
|
|
6063
6217
|
* @param width - the list's columns.
|
|
6064
6218
|
* @param body - the rows the body has.
|
|
6065
6219
|
* @returns the rows to draw, oldest first.
|
|
6066
6220
|
*/
|
|
6067
|
-
function listColumn(
|
|
6068
|
-
const
|
|
6069
|
-
|
|
6221
|
+
function listColumn(rows, blocks, focused, palette, width, body) {
|
|
6222
|
+
const cursor = rows.findIndex((row) => row.kind === "section" && row.held);
|
|
6223
|
+
const start = clamp(Math.max(0, cursor) - Math.floor(Math.max(0, body - 1) / 2), 0, Math.max(0, rows.length - body));
|
|
6224
|
+
return rows.slice(start, start + body).map((row) => row.kind === "turn" ? listRow(row.group, row.open, focused, palette, width) : sectionRow(row.cursor, blocks, row.held, focused, palette, width));
|
|
6070
6225
|
}
|
|
6071
6226
|
/**
|
|
6072
6227
|
* One section header inside the turn panel.
|
|
@@ -6176,7 +6331,7 @@ function readerRows(state, groups, render) {
|
|
|
6176
6331
|
const columns = [];
|
|
6177
6332
|
if (geometry.list > 0) columns.push({
|
|
6178
6333
|
width: geometry.list,
|
|
6179
|
-
rows: groups.length === 0 ? [palette.dim(`no turn matches "${state.query ?? ""}"`)] : listColumn(groups,
|
|
6334
|
+
rows: groups.length === 0 ? [palette.dim(`no turn matches "${state.query ?? ""}"`)] : listColumn(readerOutline(state, groups), blocks, state.column !== "pane", palette, geometry.list, geometry.body)
|
|
6180
6335
|
});
|
|
6181
6336
|
if (geometry.pane > 0) columns.push({
|
|
6182
6337
|
width: geometry.pane,
|
|
@@ -6294,7 +6449,7 @@ var ReaderPane = class {
|
|
|
6294
6449
|
const layout = `${String(geometry.pane)}x${String(geometry.body)}`;
|
|
6295
6450
|
if (this.layout !== layout) {
|
|
6296
6451
|
this.layout = layout;
|
|
6297
|
-
this.state = reduceReader(this.state, { kind: "anchor" }, visible, geometry);
|
|
6452
|
+
this.state = reduceReader(this.state, { kind: "anchor" }, visible, geometry, blocks);
|
|
6298
6453
|
}
|
|
6299
6454
|
return readerRows(this.state, visible, {
|
|
6300
6455
|
palette: this.options.palette,
|
|
@@ -6343,7 +6498,7 @@ var ReaderPane = class {
|
|
|
6343
6498
|
}
|
|
6344
6499
|
const intent = this.intentOf(data);
|
|
6345
6500
|
if (intent === void 0) return;
|
|
6346
|
-
this.state = reduceReader(this.state, intent, visible, geometry);
|
|
6501
|
+
this.state = reduceReader(this.state, intent, visible, geometry, blocks);
|
|
6347
6502
|
}
|
|
6348
6503
|
/** Close the reader from outside, which is what quitting and `Ctrl+C` do. */
|
|
6349
6504
|
withdraw() {
|
|
@@ -6417,27 +6572,27 @@ function filterIntent(data) {
|
|
|
6417
6572
|
*/
|
|
6418
6573
|
function listIntent(data) {
|
|
6419
6574
|
if (matchesKey(data, "up")) return {
|
|
6420
|
-
kind: "
|
|
6575
|
+
kind: "section",
|
|
6421
6576
|
to: "previous"
|
|
6422
6577
|
};
|
|
6423
6578
|
if (matchesKey(data, "down")) return {
|
|
6424
|
-
kind: "
|
|
6579
|
+
kind: "section",
|
|
6425
6580
|
to: "next"
|
|
6426
6581
|
};
|
|
6427
6582
|
if (matchesKey(data, "home")) return {
|
|
6428
|
-
kind: "
|
|
6583
|
+
kind: "section",
|
|
6429
6584
|
to: "first"
|
|
6430
6585
|
};
|
|
6431
6586
|
if (matchesKey(data, "end")) return {
|
|
6432
|
-
kind: "
|
|
6587
|
+
kind: "section",
|
|
6433
6588
|
to: "last"
|
|
6434
6589
|
};
|
|
6435
6590
|
if (matchesKey(data, "pageUp")) return {
|
|
6436
|
-
kind: "
|
|
6591
|
+
kind: "turn",
|
|
6437
6592
|
step: -1
|
|
6438
6593
|
};
|
|
6439
6594
|
if (matchesKey(data, "pageDown")) return {
|
|
6440
|
-
kind: "
|
|
6595
|
+
kind: "turn",
|
|
6441
6596
|
step: 1
|
|
6442
6597
|
};
|
|
6443
6598
|
if (matchesKey(data, "right") || matchesKey(data, "tab") || matchesKey(data, "enter")) return {
|
|
@@ -6482,6 +6637,343 @@ function paneIntent(data) {
|
|
|
6482
6637
|
};
|
|
6483
6638
|
}
|
|
6484
6639
|
//#endregion
|
|
6640
|
+
//#region lib/types/highlight.js
|
|
6641
|
+
/**
|
|
6642
|
+
* Syntax colour for fenced code in the transcript: the grammars a fence may
|
|
6643
|
+
* ask for, the theme its colours come from, and the SGR one token is drawn
|
|
6644
|
+
* with.
|
|
6645
|
+
*
|
|
6646
|
+
* Nothing loads at start. A grammar is a few hundred kilobytes of TextMate
|
|
6647
|
+
* patterns and the first tokenisation of one compiles them, so a session that
|
|
6648
|
+
* never renders a fenced block pays neither. The first block of a language
|
|
6649
|
+
* draws plain, its grammar is imported and warmed off the render path, and
|
|
6650
|
+
* the application is told to draw the frame again - the same "render what you
|
|
6651
|
+
* have, correct it when it lands" the rest of this surface uses.
|
|
6652
|
+
*
|
|
6653
|
+
* Colours come from a shiki theme rather than the palette: a theme
|
|
6654
|
+
* distinguishes a keyword from a type from a number, which the nine palette
|
|
6655
|
+
* roles cannot, and the transcript is where the model's code is read. The
|
|
6656
|
+
* theme is chosen from the terminal's own background, so a light terminal is
|
|
6657
|
+
* not given dark-theme colours, and a terminal that answers neither a colour
|
|
6658
|
+
* depth nor a background gets no colour at all.
|
|
6659
|
+
* @module @deepseek-ai/dsh-tui-app/highlight
|
|
6660
|
+
*/
|
|
6661
|
+
/**
|
|
6662
|
+
* The grammars a fence may name, each behind its own import so a language is
|
|
6663
|
+
* paid for only where it is rendered. Exported so one spec can prove every
|
|
6664
|
+
* entry resolves to a module that is really installed. The list is what a coding session
|
|
6665
|
+
* actually shows: the languages of this repository, the shells it runs, the
|
|
6666
|
+
* formats it configures with, and the languages a model most often answers a
|
|
6667
|
+
* question in.
|
|
6668
|
+
*/
|
|
6669
|
+
const GRAMMARS = new Map([
|
|
6670
|
+
["typescript", () => import("@shikijs/langs/typescript")],
|
|
6671
|
+
["shellscript", () => import("@shikijs/langs/shellscript")],
|
|
6672
|
+
["json", () => import("@shikijs/langs/json")],
|
|
6673
|
+
["python", () => import("@shikijs/langs/python")],
|
|
6674
|
+
["yaml", () => import("@shikijs/langs/yaml")],
|
|
6675
|
+
["rust", () => import("@shikijs/langs/rust")],
|
|
6676
|
+
["go", () => import("@shikijs/langs/go")],
|
|
6677
|
+
["java", () => import("@shikijs/langs/java")],
|
|
6678
|
+
["c", () => import("@shikijs/langs/c")],
|
|
6679
|
+
["cpp", () => import("@shikijs/langs/cpp")],
|
|
6680
|
+
["ruby", () => import("@shikijs/langs/ruby")],
|
|
6681
|
+
["sql", () => import("@shikijs/langs/sql")],
|
|
6682
|
+
["html", () => import("@shikijs/langs/html")],
|
|
6683
|
+
["css", () => import("@shikijs/langs/css")],
|
|
6684
|
+
["markdown", () => import("@shikijs/langs/markdown")],
|
|
6685
|
+
["toml", () => import("@shikijs/langs/toml")],
|
|
6686
|
+
["diff", () => import("@shikijs/langs/diff")]
|
|
6687
|
+
]);
|
|
6688
|
+
/**
|
|
6689
|
+
* What a fence's info string resolves to. A `Map`, not an object: the string
|
|
6690
|
+
* comes from the model, so `constructor` or `__proto__` must miss rather than
|
|
6691
|
+
* resolve an inherited property. The JavaScript family resolves to the
|
|
6692
|
+
* TypeScript grammar, which tokenises plain JavaScript exactly and JSX
|
|
6693
|
+
* approximately - one grammar instead of two for the same colours.
|
|
6694
|
+
*/
|
|
6695
|
+
const ALIASES = new Map([
|
|
6696
|
+
["typescript", "typescript"],
|
|
6697
|
+
["ts", "typescript"],
|
|
6698
|
+
["tsx", "typescript"],
|
|
6699
|
+
["javascript", "typescript"],
|
|
6700
|
+
["js", "typescript"],
|
|
6701
|
+
["jsx", "typescript"],
|
|
6702
|
+
["mjs", "typescript"],
|
|
6703
|
+
["shell", "shellscript"],
|
|
6704
|
+
["sh", "shellscript"],
|
|
6705
|
+
["bash", "shellscript"],
|
|
6706
|
+
["zsh", "shellscript"],
|
|
6707
|
+
["console", "shellscript"],
|
|
6708
|
+
["shellscript", "shellscript"],
|
|
6709
|
+
["json", "json"],
|
|
6710
|
+
["jsonc", "json"],
|
|
6711
|
+
["python", "python"],
|
|
6712
|
+
["py", "python"],
|
|
6713
|
+
["yaml", "yaml"],
|
|
6714
|
+
["yml", "yaml"],
|
|
6715
|
+
["rust", "rust"],
|
|
6716
|
+
["rs", "rust"],
|
|
6717
|
+
["go", "go"],
|
|
6718
|
+
["golang", "go"],
|
|
6719
|
+
["java", "java"],
|
|
6720
|
+
["c", "c"],
|
|
6721
|
+
["h", "c"],
|
|
6722
|
+
["cpp", "cpp"],
|
|
6723
|
+
["c++", "cpp"],
|
|
6724
|
+
["cc", "cpp"],
|
|
6725
|
+
["ruby", "ruby"],
|
|
6726
|
+
["rb", "ruby"],
|
|
6727
|
+
["sql", "sql"],
|
|
6728
|
+
["html", "html"],
|
|
6729
|
+
["xml", "html"],
|
|
6730
|
+
["css", "css"],
|
|
6731
|
+
["markdown", "markdown"],
|
|
6732
|
+
["md", "markdown"],
|
|
6733
|
+
["toml", "toml"],
|
|
6734
|
+
["diff", "diff"],
|
|
6735
|
+
["patch", "diff"]
|
|
6736
|
+
]);
|
|
6737
|
+
/** The theme a dark terminal takes, and the one a light terminal takes. */
|
|
6738
|
+
const THEMES = {
|
|
6739
|
+
dark: () => import("@shikijs/themes/github-dark-default"),
|
|
6740
|
+
light: () => import("@shikijs/themes/github-light-default")
|
|
6741
|
+
};
|
|
6742
|
+
/** Relative-luminance weights, as {@link backgroundIsLight} reads a background. */
|
|
6743
|
+
const LUMINANCE = {
|
|
6744
|
+
r: .2126,
|
|
6745
|
+
g: .7152,
|
|
6746
|
+
b: .0722
|
|
6747
|
+
};
|
|
6748
|
+
/** Luminance above which a background counts as light. */
|
|
6749
|
+
const LIGHT_ABOVE = 128;
|
|
6750
|
+
/** Control Sequence Introducer. */
|
|
6751
|
+
const CSI = "\x1B[";
|
|
6752
|
+
/** Ends the foreground a token was drawn with; other styling is left alone. */
|
|
6753
|
+
const RESET_FOREGROUND = `${CSI}39m`;
|
|
6754
|
+
/** Opens bold, for a theme's bold token styles. */
|
|
6755
|
+
const BOLD = `${CSI}1m`;
|
|
6756
|
+
/** Opens italic, for a theme's italic token styles. */
|
|
6757
|
+
const ITALIC = `${CSI}3m`;
|
|
6758
|
+
/** Ends bold. */
|
|
6759
|
+
const RESET_BOLD = `${CSI}22m`;
|
|
6760
|
+
/** Ends italic. */
|
|
6761
|
+
const RESET_ITALIC = `${CSI}23m`;
|
|
6762
|
+
/** shiki's `FontStyle` bits, which its themed tokens carry as a number. */
|
|
6763
|
+
const FONT_STYLE = {
|
|
6764
|
+
italic: 1,
|
|
6765
|
+
bold: 2,
|
|
6766
|
+
underline: 4
|
|
6767
|
+
};
|
|
6768
|
+
/**
|
|
6769
|
+
* Which theme one terminal takes.
|
|
6770
|
+
* @param background - the terminal's background, or undefined when it answered none.
|
|
6771
|
+
* @returns true for a light terminal; a terminal that answered nothing is
|
|
6772
|
+
* treated as dark, which is what a terminal that answers nothing usually is.
|
|
6773
|
+
*/
|
|
6774
|
+
function backgroundIsLight(background) {
|
|
6775
|
+
if (background === void 0) return false;
|
|
6776
|
+
return LUMINANCE.r * background.r + LUMINANCE.g * background.g + LUMINANCE.b * background.b > LIGHT_ABOVE;
|
|
6777
|
+
}
|
|
6778
|
+
/**
|
|
6779
|
+
* Decide how far the terminal encodes a token colour.
|
|
6780
|
+
*
|
|
6781
|
+
* This is the colour depth alone: a user who asked for reduced motion still
|
|
6782
|
+
* gets coloured code, because colour is not motion.
|
|
6783
|
+
* @param input - whether the palette emits SGR at all, and the environment.
|
|
6784
|
+
* @returns the depth {@link tokenSgr} encodes under.
|
|
6785
|
+
*/
|
|
6786
|
+
function resolveColorDepth(input) {
|
|
6787
|
+
if (!input.paletteEnabled) return "none";
|
|
6788
|
+
const term = input.env.TERM ?? "";
|
|
6789
|
+
if (term === "dumb") return "none";
|
|
6790
|
+
const colorterm = (input.env.COLORTERM ?? "").toLowerCase();
|
|
6791
|
+
if (colorterm === "truecolor" || colorterm === "24bit") return "truecolor";
|
|
6792
|
+
return term.includes("256color") ? "ansi256" : "none";
|
|
6793
|
+
}
|
|
6794
|
+
/**
|
|
6795
|
+
* The sequence one token's colour opens with.
|
|
6796
|
+
* @param color - the theme's colour for the token, e.g. `#79c0ff`.
|
|
6797
|
+
* @param depth - how far the terminal encodes it.
|
|
6798
|
+
* @returns the sequence, or the empty string when the colour cannot be read
|
|
6799
|
+
* or the terminal encodes none.
|
|
6800
|
+
*/
|
|
6801
|
+
function tokenSgr(color, depth) {
|
|
6802
|
+
if (depth === "none") return "";
|
|
6803
|
+
const rgb = parseHexColor(color);
|
|
6804
|
+
if (rgb === void 0) return "";
|
|
6805
|
+
return depth === "truecolor" ? `${CSI}38;2;${String(rgb.r)};${String(rgb.g)};${String(rgb.b)}m` : `${CSI}38;5;${String(nearestAnsi256(rgb))}m`;
|
|
6806
|
+
}
|
|
6807
|
+
/**
|
|
6808
|
+
* The grammar registration one module carries.
|
|
6809
|
+
* @param module - the imported grammar module.
|
|
6810
|
+
* @returns the registration array, unwrapped through however many `default`
|
|
6811
|
+
* layers the module system put around it.
|
|
6812
|
+
*/
|
|
6813
|
+
function grammarOf(module) {
|
|
6814
|
+
const first = module.default;
|
|
6815
|
+
if (Array.isArray(first) || typeof first !== "object" || first === null) return first;
|
|
6816
|
+
return first.default ?? first;
|
|
6817
|
+
}
|
|
6818
|
+
/**
|
|
6819
|
+
* Read one `#rgb` or `#rrggbb` colour.
|
|
6820
|
+
* @param color - the theme's colour string.
|
|
6821
|
+
* @returns the channels, or undefined for anything else, which is what a
|
|
6822
|
+
* theme naming a colour this module cannot read yields.
|
|
6823
|
+
*/
|
|
6824
|
+
function parseHexColor(color) {
|
|
6825
|
+
if (color === void 0) return void 0;
|
|
6826
|
+
const body = /^#([0-9a-f]{3}|[0-9a-f]{6})$/iu.exec(color)?.[1];
|
|
6827
|
+
if (body === void 0) return void 0;
|
|
6828
|
+
const wide = body.length === 6 ? body : body.replace(/./gu, (part) => `${part}${part}`);
|
|
6829
|
+
return {
|
|
6830
|
+
r: Number.parseInt(wide.slice(0, 2), 16),
|
|
6831
|
+
g: Number.parseInt(wide.slice(2, 4), 16),
|
|
6832
|
+
b: Number.parseInt(wide.slice(4, 6), 16)
|
|
6833
|
+
};
|
|
6834
|
+
}
|
|
6835
|
+
/**
|
|
6836
|
+
* The transcript's syntax highlighter: one shiki core, built when the first
|
|
6837
|
+
* fence resolves a grammar and grown as further languages are asked for.
|
|
6838
|
+
*/
|
|
6839
|
+
var SyntaxHighlighter = class {
|
|
6840
|
+
options;
|
|
6841
|
+
/** The shiki core, once a theme and one grammar have landed. */
|
|
6842
|
+
core;
|
|
6843
|
+
/**
|
|
6844
|
+
* The core being built, so two fences of different languages on one frame
|
|
6845
|
+
* share it: each would otherwise build a core of its own, and the one that
|
|
6846
|
+
* finished last would be the only one holding a grammar.
|
|
6847
|
+
*/
|
|
6848
|
+
building;
|
|
6849
|
+
/** The theme's own name, which `codeToTokens` resolves it by. */
|
|
6850
|
+
theme = "";
|
|
6851
|
+
/** Grammar ids already registered on the core. */
|
|
6852
|
+
loaded = /* @__PURE__ */ new Set();
|
|
6853
|
+
/** Grammar ids whose import is in flight, so each is asked for once. */
|
|
6854
|
+
pending = /* @__PURE__ */ new Set();
|
|
6855
|
+
/**
|
|
6856
|
+
* @param options - the colour depth, the terminal background, and the redraw request.
|
|
6857
|
+
*/
|
|
6858
|
+
constructor(options) {
|
|
6859
|
+
this.options = options;
|
|
6860
|
+
}
|
|
6861
|
+
/**
|
|
6862
|
+
* Colour one fenced block.
|
|
6863
|
+
* @param code - the block's source, newline separated.
|
|
6864
|
+
* @param lang - the fence's info string, or undefined for a bare fence.
|
|
6865
|
+
* @returns one styled line per source line, or undefined while the language
|
|
6866
|
+
* has no grammar here, its grammar is still loading, or the terminal takes
|
|
6867
|
+
* no colour - all of which the Markdown renderer draws plain.
|
|
6868
|
+
*/
|
|
6869
|
+
lines(code, lang) {
|
|
6870
|
+
if (this.options.depth === "none") return void 0;
|
|
6871
|
+
const resolved = ALIASES.get((lang ?? "").toLowerCase());
|
|
6872
|
+
if (resolved === void 0) return void 0;
|
|
6873
|
+
if (!this.loaded.has(resolved)) {
|
|
6874
|
+
this.load(resolved);
|
|
6875
|
+
return;
|
|
6876
|
+
}
|
|
6877
|
+
const core = this.core;
|
|
6878
|
+
/* v8 ignore next -- a loaded grammar means the core is built */
|
|
6879
|
+
if (core === void 0) return void 0;
|
|
6880
|
+
try {
|
|
6881
|
+
const { tokens } = core.codeToTokens(code, {
|
|
6882
|
+
lang: resolved,
|
|
6883
|
+
theme: this.theme
|
|
6884
|
+
});
|
|
6885
|
+
return tokens.map((line) => line.map((token) => this.paint(token)).join("") + RESET_FOREGROUND);
|
|
6886
|
+
} catch {
|
|
6887
|
+
this.loaded.delete(resolved);
|
|
6888
|
+
return;
|
|
6889
|
+
}
|
|
6890
|
+
}
|
|
6891
|
+
/**
|
|
6892
|
+
* Draw one token with the theme's colour and font style.
|
|
6893
|
+
* @param token - the themed token.
|
|
6894
|
+
* @returns the token's text, wrapped in the sequences it is drawn with.
|
|
6895
|
+
*/
|
|
6896
|
+
paint(token) {
|
|
6897
|
+
const color = tokenSgr(token.color, this.options.depth);
|
|
6898
|
+
/* v8 ignore next -- shiki writes a style of 0 rather than leaving it out */
|
|
6899
|
+
const style = token.fontStyle ?? 0;
|
|
6900
|
+
const bold = (style & FONT_STYLE.bold) === 0 ? "" : BOLD;
|
|
6901
|
+
const italic = (style & FONT_STYLE.italic) === 0 ? "" : ITALIC;
|
|
6902
|
+
const closeBold = bold === "" ? "" : RESET_BOLD;
|
|
6903
|
+
const closeItalic = italic === "" ? "" : RESET_ITALIC;
|
|
6904
|
+
return `${color}${bold}${italic}${token.content}${closeItalic}${closeBold}`;
|
|
6905
|
+
}
|
|
6906
|
+
/**
|
|
6907
|
+
* Bring up the core for one grammar, then ask for the frame again.
|
|
6908
|
+
* @param id - the grammar to register.
|
|
6909
|
+
*/
|
|
6910
|
+
async load(id) {
|
|
6911
|
+
if (this.pending.has(id)) return;
|
|
6912
|
+
const grammar = GRAMMARS.get(id);
|
|
6913
|
+
/* v8 ignore next -- every alias resolves to a grammar in the same table */
|
|
6914
|
+
if (grammar === void 0) return;
|
|
6915
|
+
this.pending.add(id);
|
|
6916
|
+
try {
|
|
6917
|
+
const module = await (this.options.import ?? ((load) => load()))(grammar);
|
|
6918
|
+
if (!await this.register(id, module)) return;
|
|
6919
|
+
} catch {
|
|
6920
|
+
this.loaded.delete(id);
|
|
6921
|
+
return;
|
|
6922
|
+
} finally {
|
|
6923
|
+
this.pending.delete(id);
|
|
6924
|
+
}
|
|
6925
|
+
this.options.changed();
|
|
6926
|
+
}
|
|
6927
|
+
/**
|
|
6928
|
+
* Put one grammar on the core, building the core and its theme first.
|
|
6929
|
+
* @param id - the grammar's id.
|
|
6930
|
+
* @param module - the grammar module.
|
|
6931
|
+
* @returns whether the core now resolves that id.
|
|
6932
|
+
*/
|
|
6933
|
+
async register(id, module) {
|
|
6934
|
+
const core = await this.ensureCore();
|
|
6935
|
+
await core.loadLanguage(grammarOf(module));
|
|
6936
|
+
if (!core.getLoadedLanguages().includes(id)) return false;
|
|
6937
|
+
this.loaded.add(id);
|
|
6938
|
+
core.codeToTokens("", {
|
|
6939
|
+
lang: id,
|
|
6940
|
+
theme: this.theme
|
|
6941
|
+
});
|
|
6942
|
+
return true;
|
|
6943
|
+
}
|
|
6944
|
+
/**
|
|
6945
|
+
* The core, built once however many languages ask for it at the same time.
|
|
6946
|
+
* @returns the core.
|
|
6947
|
+
*/
|
|
6948
|
+
async ensureCore() {
|
|
6949
|
+
const built = this.core;
|
|
6950
|
+
if (built !== void 0) return built;
|
|
6951
|
+
this.building ??= this.buildCore();
|
|
6952
|
+
return this.building;
|
|
6953
|
+
}
|
|
6954
|
+
/**
|
|
6955
|
+
* Build the core with the theme the terminal's background asks for.
|
|
6956
|
+
* @returns the core, which every later grammar registers on.
|
|
6957
|
+
*/
|
|
6958
|
+
async buildCore() {
|
|
6959
|
+
const run = this.options.import ?? ((load) => load());
|
|
6960
|
+
const [{ createHighlighterCoreSync }, { createJavaScriptRegexEngine }, theme] = await Promise.all([
|
|
6961
|
+
import("shiki/core"),
|
|
6962
|
+
import("shiki/engine/javascript"),
|
|
6963
|
+
run(THEMES[backgroundIsLight(this.options.background()) ? "light" : "dark"])
|
|
6964
|
+
]);
|
|
6965
|
+
/* v8 ignore next -- every bundled theme carries its own name */
|
|
6966
|
+
this.theme = theme.default.name ?? "";
|
|
6967
|
+
const core = createHighlighterCoreSync({
|
|
6968
|
+
themes: [theme.default],
|
|
6969
|
+
langs: [],
|
|
6970
|
+
engine: createJavaScriptRegexEngine({ forgiving: true })
|
|
6971
|
+
});
|
|
6972
|
+
this.core = core;
|
|
6973
|
+
return core;
|
|
6974
|
+
}
|
|
6975
|
+
};
|
|
6976
|
+
//#endregion
|
|
6485
6977
|
//#region lib/types/screen.js
|
|
6486
6978
|
/**
|
|
6487
6979
|
* The main screen this application renders through, and the repaint rule the
|
|
@@ -6523,6 +7015,40 @@ function repaintFloor(start, viewportTop) {
|
|
|
6523
7015
|
return Math.max(0, viewportTop - start);
|
|
6524
7016
|
}
|
|
6525
7017
|
/**
|
|
7018
|
+
* Blank rows at the foot of the frame, which a surface mounts while it needs
|
|
7019
|
+
* the whole viewport.
|
|
7020
|
+
*
|
|
7021
|
+
* The renderer repaints a line only at or after {@link repaintFloor}'s own
|
|
7022
|
+
* `viewportTop`, a high-water mark a taller frame raises for good. A frame
|
|
7023
|
+
* that has since shrunk therefore leaves the top of the viewport out of
|
|
7024
|
+
* reach, and an overlay that may not draw there stops short of the screen.
|
|
7025
|
+
* These rows push the frame back up to that mark: the terminal scrolls by
|
|
7026
|
+
* exactly the shortfall, every line of the viewport becomes repaintable
|
|
7027
|
+
* again, and an overlay composited into the frame's last `terminal.rows`
|
|
7028
|
+
* lines covers all of them. They are never seen - the overlay is drawn over
|
|
7029
|
+
* them, and they are gone before it is.
|
|
7030
|
+
*
|
|
7031
|
+
* pi-tui's `Text` drops blank lines, so the rows are a component of their own.
|
|
7032
|
+
*/
|
|
7033
|
+
var ViewportPad = class {
|
|
7034
|
+
rows;
|
|
7035
|
+
/**
|
|
7036
|
+
* @param rows - how many blank lines to draw, read on every render.
|
|
7037
|
+
*/
|
|
7038
|
+
constructor(rows) {
|
|
7039
|
+
this.rows = rows;
|
|
7040
|
+
}
|
|
7041
|
+
invalidate() {}
|
|
7042
|
+
/**
|
|
7043
|
+
* Draw the pad.
|
|
7044
|
+
* @returns that many empty lines, and none at all where the frame already
|
|
7045
|
+
* reaches the mark.
|
|
7046
|
+
*/
|
|
7047
|
+
render() {
|
|
7048
|
+
return Array.from({ length: Math.max(0, this.rows()) }, () => "");
|
|
7049
|
+
}
|
|
7050
|
+
};
|
|
7051
|
+
/**
|
|
6526
7052
|
* The main screen that settles each frame between building it and writing it.
|
|
6527
7053
|
*
|
|
6528
7054
|
* The guard is handed the frame's first repaintable line: the higher of the
|
|
@@ -7161,6 +7687,12 @@ var TuiApp = class {
|
|
|
7161
7687
|
editor;
|
|
7162
7688
|
/** Holds {@link panel} exactly while the bound session has subagent rows. */
|
|
7163
7689
|
panelSlot = new Container();
|
|
7690
|
+
/** Blank rows that give the mounted reader the whole viewport; see {@link ViewportPad}. */
|
|
7691
|
+
pad = new ViewportPad(() => this.readerPad);
|
|
7692
|
+
/** Colours fenced code in replies; see {@link SyntaxHighlighter}. */
|
|
7693
|
+
codeHighlight;
|
|
7694
|
+
/** The terminal's background once it answered; undefined until then, and on a terminal that answers none. */
|
|
7695
|
+
background;
|
|
7164
7696
|
panel;
|
|
7165
7697
|
footer;
|
|
7166
7698
|
modals;
|
|
@@ -7230,6 +7762,8 @@ var TuiApp = class {
|
|
|
7230
7762
|
panelLift = 0;
|
|
7231
7763
|
/** The reader on screen right now, while one is open. */
|
|
7232
7764
|
reader;
|
|
7765
|
+
/** Blank rows {@link ViewportPad} draws so the mounted reader covers the whole viewport. */
|
|
7766
|
+
readerPad = 0;
|
|
7233
7767
|
/** The motion growing the open reader into place; settled or absent draws it whole. */
|
|
7234
7768
|
readerOpening;
|
|
7235
7769
|
/** The reader shrinking away, still mounted until its motion settles. */
|
|
@@ -7269,10 +7803,22 @@ var TuiApp = class {
|
|
|
7269
7803
|
this.deps = deps;
|
|
7270
7804
|
const palette = deps.palette;
|
|
7271
7805
|
this.bound = deps.initial;
|
|
7806
|
+
this.codeHighlight = new SyntaxHighlighter({
|
|
7807
|
+
depth: deps.codeHighlight ? resolveColorDepth({
|
|
7808
|
+
paletteEnabled: palette.enabled,
|
|
7809
|
+
env: deps.env
|
|
7810
|
+
}) : "none",
|
|
7811
|
+
background: () => this.background,
|
|
7812
|
+
changed: () => {
|
|
7813
|
+
this.chat.invalidate();
|
|
7814
|
+
this.tui.requestRender();
|
|
7815
|
+
}
|
|
7816
|
+
});
|
|
7272
7817
|
this.theme = {
|
|
7273
7818
|
palette,
|
|
7274
7819
|
toolPreviewLines: deps.toolPreviewLines,
|
|
7275
|
-
contextPreviewLines: deps.contextPreviewLines
|
|
7820
|
+
contextPreviewLines: deps.contextPreviewLines,
|
|
7821
|
+
codeHighlight: this.codeHighlight
|
|
7276
7822
|
};
|
|
7277
7823
|
this.tui = new GuardedMainScreen(deps.terminal, true, (viewportTop, width, frameLines) => {
|
|
7278
7824
|
return this.settleFrame(viewportTop, width, frameLines);
|
|
@@ -7316,7 +7862,8 @@ var TuiApp = class {
|
|
|
7316
7862
|
this.inspector,
|
|
7317
7863
|
this.editor,
|
|
7318
7864
|
this.panelSlot,
|
|
7319
|
-
this.footer
|
|
7865
|
+
this.footer,
|
|
7866
|
+
this.pad
|
|
7320
7867
|
];
|
|
7321
7868
|
for (const child of tree) this.tui.addChild(child);
|
|
7322
7869
|
}
|
|
@@ -7393,6 +7940,7 @@ var TuiApp = class {
|
|
|
7393
7940
|
async resolveFadeRamp(capability) {
|
|
7394
7941
|
const background = await this.tui.queryTerminalBackgroundColor({ timeoutMs: BACKGROUND_QUERY_TIMEOUT_MS });
|
|
7395
7942
|
if (this.stopped) return;
|
|
7943
|
+
this.background = background;
|
|
7396
7944
|
this.fadeStyle = background === void 0 ? {
|
|
7397
7945
|
capability: "dim",
|
|
7398
7946
|
ramp: []
|
|
@@ -9425,7 +9973,13 @@ var TuiApp = class {
|
|
|
9425
9973
|
*/
|
|
9426
9974
|
settleFrame(viewportTop, width, frameLines) {
|
|
9427
9975
|
const rows = this.deps.terminal.rows;
|
|
9428
|
-
|
|
9976
|
+
const floor = repaintFloor(Math.max(frameLines - this.readerPad, rows) - rows, viewportTop);
|
|
9977
|
+
const pad = this.reader === void 0 && this.readerClosing === void 0 ? 0 : floor;
|
|
9978
|
+
this.viewportFloor = floor - pad;
|
|
9979
|
+
if (pad !== this.readerPad) {
|
|
9980
|
+
this.readerPad = pad;
|
|
9981
|
+
return true;
|
|
9982
|
+
}
|
|
9429
9983
|
const section = this.focusedSection();
|
|
9430
9984
|
const wanted = section !== void 0 && this.focus === "transcript" ? {
|
|
9431
9985
|
block: section.block,
|
|
@@ -9763,9 +10317,10 @@ const Config = z.object({
|
|
|
9763
10317
|
contextPreviewLines: z.natural().min(1).default(4),
|
|
9764
10318
|
focusPreviewLines: z.natural().min(1).default(12),
|
|
9765
10319
|
readerMinColumns: z.natural().min(40).default(60),
|
|
10320
|
+
codeHighlight: z.boolean().default(true),
|
|
9766
10321
|
toastMs: z.natural().min(500).default(TOAST_MS),
|
|
9767
10322
|
liveRefreshMs: z.natural().min(100).default(1e3),
|
|
9768
|
-
streamFadeSteps: z.natural().min(2).default(
|
|
10323
|
+
streamFadeSteps: z.natural().min(2).default(12),
|
|
9769
10324
|
streamFadeStepMs: z.natural().min(16).default(33),
|
|
9770
10325
|
reducedMotion: z.boolean().default(false),
|
|
9771
10326
|
openBrowser: z.boolean().default(true)
|
|
@@ -9942,6 +10497,7 @@ async function run(ctx, config, host) {
|
|
|
9942
10497
|
contextPreviewLines: config.contextPreviewLines,
|
|
9943
10498
|
focusPreviewLines: config.focusPreviewLines,
|
|
9944
10499
|
readerMinColumns: config.readerMinColumns,
|
|
10500
|
+
codeHighlight: config.codeHighlight,
|
|
9945
10501
|
toastMs: config.toastMs,
|
|
9946
10502
|
liveRefreshMs: config.liveRefreshMs,
|
|
9947
10503
|
fadeSteps: config.streamFadeSteps,
|