OpenTUI 技能
规范参考文档位于同级的 docs/**/*.mdx 文件中。
在 OpenTUI 仓库中,此技能根目录为 packages/web/src/content/。从仓库根目录看,相同文件位于 packages/web/src/content/docs/**/*.mdx。
路径不变性
/docs映射到docs/getting-started.mdx。/docs/components映射到docs/components/overview.mdx。- 其他所有
/docs/<slug>URL 映射到相对于此技能根目录的docs/<slug>.mdx。 - 从仓库根目录出发,在每个源路径前添加
packages/web/src/content/。
按区域阅读顺序
- 入门:
/docs、/docs/getting-started/quickstart、/docs/getting-started/runtime-support - 框架:
/docs/bindings/react、/docs/bindings/solid - 核心概念:
/docs/core-concepts/renderer、/docs/core-concepts/layout、/docs/core-concepts/keyboard - 组件:
/docs/components、/docs/components/text、/docs/components/input、/docs/components/image、/docs/components/embedded-terminal - 应用程序 API:
/docs/core-concepts/clipboard、/docs/core-concepts/audio、/docs/application-apis/audio-streaming、/docs/application-apis/audio-capture、/docs/application-apis/animation - 测试与调试:
/docs/core-concepts/testing、/docs/test-and-debug/troubleshooting - 扩展:
/docs/plugins/slots、/docs/extend/runtime-plugins - 键位映射:
/docs/keymap/overview - 集成:
/docs/reference/ssh、/docs/reference/three、/docs/reference/qr-encoder - 发布:
/docs/ship/deploy、/docs/reference/standalone-executables - 参考:
/docs/reference/api-index、/docs/reference/package-entrypoints、/docs/reference/env-vars、/docs/reference/native-image
按意图快速路由
| 意图 | 起始页面 |
|---|---|
getting-started、intro、examples、agent-skill | docs/getting-started.mdx |
installation、quickstart | docs/getting-started/quickstart.mdx |
runtime-support、bun、nodejs、native-artifacts、ffi、permissions、libc、runtime-assets | docs/getting-started/runtime-support.mdx |
react、jsx、hooks、keyboard、paste、focus、blur、selection、animation、testing | docs/bindings/react.mdx |
solid、jsx、signals、hooks、keyboard、animation、testing | docs/bindings/solid.mdx |
core、renderer、terminal、scrollback、lifecycle | docs/core-concepts/renderer.mdx |
layout、flexbox、yoga、positioning | docs/core-concepts/layout.mdx |
keyboard、input、keybindings、paste、focus | docs/core-concepts/keyboard.mdx |
components、component、component-support、support-matrix、react-components、solid-components | docs/components/overview.mdx |
text、styling、content、selection | docs/components/text.mdx |
input、form、editing、focus | docs/components/input.mdx |
image、image-renderable、image-display、kitty、sixel | docs/components/image.mdx |
embedded-terminal、terminal-renderable、ghostty、vt、pty | docs/components/embedded-terminal.mdx |
clipboard、copy、osc52、host-clipboard | docs/core-concepts/clipboard.mdx |
audio、native-audio、sound、playback、mixer、devices、tap | docs/core-concepts/audio.mdx |
audio-streaming、audio-stream、radio、mp3、flac、icy、backpressure、reconnect | docs/application-apis/audio-streaming.mdx |
audio-capture、microphone、pcm、recording、wav、audio-recorder | docs/application-apis/audio-capture.mdx |
animation、timeline、easing、use-timeline | docs/application-apis/animation.mdx |
testing、test-renderer、snapshots、frames | docs/core-concepts/testing.mdx |
troubleshooting、terminal-reset、ffi-errors、native-loading、runtime-plugins、protocols、test-timeouts | docs/test-and-debug/troubleshooting.mdx |
plugins、plugin、slots、registry、extensions | docs/plugins/slots.mdx |
runtime-plugins、dynamic-import、external-modules、bun-plugin、module-maps、plugin-loading | docs/extend/runtime-plugins.mdx |
keymap、keybindings、shortcuts、commands、leader、ex-commands | docs/keymap/overview.mdx |
ssh、remote-tui、ssh-server、authentication、middleware | docs/reference/ssh.mdx |
three、threejs、webgpu、3d、sprites、physics | docs/reference/three.mdx |
qr、qrcode、qr-encoder、svg-qr、gs1、eci、structured-append | docs/reference/qr-encoder.mdx |
deploy、bundle、bun-executable、nodejs-esm、node-sea、ssh-deployment | docs/ship/deploy.mdx |
standalone、executable、bun-compile、node-sea、node-assets | docs/reference/standalone-executables.mdx |
api、symbols、exports、public-api、api-index、lookup | docs/reference/api-index.mdx |
package-exports、entrypoints、subpath-exports、imports | docs/reference/package-entrypoints.mdx |
env、environment、configuration、flags | docs/reference/env-vars.mdx |
native-image、image-decode、png、jpeg、webp、gif、rgba、pixels、resize | docs/reference/native-image.mdx |
对于组件请求,请先阅读 docs/components/overview.mdx,然后打开 docs/components/<name>.mdx。对于插件槽位详情,从 docs/plugins/slots.mdx 开始,然后打开 Core、React 或 Solid 页面。
当前技能入口页面
docs/getting-started.mdxdocs/getting-started/quickstart.mdxdocs/getting-started/runtime-support.mdxdocs/bindings/react.mdxdocs/bindings/solid.mdxdocs/core-concepts/renderer.mdxdocs/core-concepts/layout.mdxdocs/core-concepts/keyboard.mdxdocs/components/overview.mdxdocs/components/text.mdxdocs/components/input.mdxdocs/components/image.mdxdocs/components/embedded-terminal.mdxdocs/core-concepts/clipboard.mdxdocs/core-concepts/audio.mdxdocs/application-apis/audio-streaming.mdxdocs/application-apis/audio-capture.mdxdocs/application-apis/animation.mdxdocs/core-concepts/testing.mdxdocs/test-and-debug/troubleshooting.mdxdocs/plugins/slots.mdxdocs/extend/runtime-plugins.mdxdocs/keymap/overview.mdxdocs/reference/ssh.mdxdocs/reference/three.mdxdocs/reference/qr-encoder.mdxdocs/ship/deploy.mdxdocs/reference/standalone-executables.mdxdocs/reference/api-index.mdxdocs/reference/package-entrypoints.mdxdocs/reference/env-vars.mdxdocs/reference/native-image.mdx
工作规则
- 先阅读入口页面,然后阅读针对该任务的范围更窄的规范页面。
- 直接阅读同级的
docs/**/*.mdx文件。不要将其中的内容复制到此文件中。 - 在交叉引用文档时,使用规范的
/docsURL。