@neurocode-ai/web 1.18.8
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 +54 -0
- package/astro.config.mjs +324 -0
- package/config.mjs +14 -0
- package/package.json +44 -0
- package/public/apple-touch-icon-v3.png +1 -0
- package/public/apple-touch-icon.png +1 -0
- package/public/favicon-96x96-v3.png +1 -0
- package/public/favicon-96x96.png +1 -0
- package/public/favicon-v3.ico +1 -0
- package/public/favicon-v3.svg +1 -0
- package/public/favicon.ico +1 -0
- package/public/favicon.svg +1 -0
- package/public/robots.txt +6 -0
- package/public/site.webmanifest +1 -0
- package/public/social-share-zen.png +1 -0
- package/public/social-share.png +1 -0
- package/public/theme.json +183 -0
- package/public/web-app-manifest-192x192.png +1 -0
- package/public/web-app-manifest-512x512.png +1 -0
- package/src/assets/lander/check.svg +2 -0
- package/src/assets/lander/copy.svg +2 -0
- package/src/assets/lander/screenshot-github.png +0 -0
- package/src/assets/lander/screenshot-splash.png +0 -0
- package/src/assets/lander/screenshot-vscode.png +0 -0
- package/src/assets/lander/screenshot.png +0 -0
- package/src/assets/logo-dark.svg +18 -0
- package/src/assets/logo-light.svg +18 -0
- package/src/assets/logo-ornate-dark.svg +18 -0
- package/src/assets/logo-ornate-light.svg +18 -0
- package/src/assets/web/web-homepage-active-session.png +0 -0
- package/src/assets/web/web-homepage-new-session.png +0 -0
- package/src/assets/web/web-homepage-see-servers.png +0 -0
- package/src/components/Footer.astro +125 -0
- package/src/components/Head.astro +54 -0
- package/src/components/Header.astro +136 -0
- package/src/components/Hero.astro +11 -0
- package/src/components/Lander.astro +721 -0
- package/src/components/LanguageSelect.astro +29 -0
- package/src/components/Share.tsx +644 -0
- package/src/components/SiteTitle.astro +59 -0
- package/src/components/icons/custom.tsx +87 -0
- package/src/components/icons/index.tsx +4454 -0
- package/src/components/share/common.tsx +128 -0
- package/src/components/share/content-bash.module.css +85 -0
- package/src/components/share/content-bash.tsx +67 -0
- package/src/components/share/content-code.module.css +26 -0
- package/src/components/share/content-code.tsx +30 -0
- package/src/components/share/content-diff.module.css +153 -0
- package/src/components/share/content-diff.tsx +240 -0
- package/src/components/share/content-error.module.css +64 -0
- package/src/components/share/content-error.tsx +25 -0
- package/src/components/share/content-markdown.module.css +154 -0
- package/src/components/share/content-markdown.tsx +74 -0
- package/src/components/share/content-text.module.css +63 -0
- package/src/components/share/content-text.tsx +38 -0
- package/src/components/share/copy-button.module.css +30 -0
- package/src/components/share/copy-button.tsx +36 -0
- package/src/components/share/part.module.css +428 -0
- package/src/components/share/part.tsx +816 -0
- package/src/components/share.module.css +832 -0
- package/src/content/docs/acp.mdx +156 -0
- package/src/content/docs/agents.mdx +781 -0
- package/src/content/docs/ar/acp.mdx +156 -0
- package/src/content/docs/ar/agents.mdx +754 -0
- package/src/content/docs/ar/cli.mdx +616 -0
- package/src/content/docs/ar/commands.mdx +322 -0
- package/src/content/docs/ar/config.mdx +685 -0
- package/src/content/docs/ar/custom-tools.mdx +196 -0
- package/src/content/docs/ar/ecosystem.mdx +78 -0
- package/src/content/docs/ar/enterprise.mdx +165 -0
- package/src/content/docs/ar/formatters.mdx +131 -0
- package/src/content/docs/ar/github.mdx +321 -0
- package/src/content/docs/ar/gitlab.mdx +195 -0
- package/src/content/docs/ar/go.mdx +224 -0
- package/src/content/docs/ar/ide.mdx +48 -0
- package/src/content/docs/ar/index.mdx +344 -0
- package/src/content/docs/ar/keybinds.mdx +194 -0
- package/src/content/docs/ar/lsp.mdx +207 -0
- package/src/content/docs/ar/mcp-servers.mdx +511 -0
- package/src/content/docs/ar/models.mdx +222 -0
- package/src/content/docs/ar/network.mdx +57 -0
- package/src/content/docs/ar/permissions.mdx +235 -0
- package/src/content/docs/ar/plugins.mdx +385 -0
- package/src/content/docs/ar/providers.mdx +1983 -0
- package/src/content/docs/ar/rules.mdx +180 -0
- package/src/content/docs/ar/sdk.mdx +463 -0
- package/src/content/docs/ar/server.mdx +287 -0
- package/src/content/docs/ar/share.mdx +127 -0
- package/src/content/docs/ar/skills.mdx +222 -0
- package/src/content/docs/ar/themes.mdx +369 -0
- package/src/content/docs/ar/tools.mdx +341 -0
- package/src/content/docs/ar/troubleshooting.mdx +299 -0
- package/src/content/docs/ar/tui.mdx +426 -0
- package/src/content/docs/ar/web.mdx +142 -0
- package/src/content/docs/ar/windows-wsl.mdx +113 -0
- package/src/content/docs/ar/zen.mdx +332 -0
- package/src/content/docs/bs/acp.mdx +156 -0
- package/src/content/docs/bs/agents.mdx +754 -0
- package/src/content/docs/bs/cli.mdx +614 -0
- package/src/content/docs/bs/commands.mdx +316 -0
- package/src/content/docs/bs/config.mdx +685 -0
- package/src/content/docs/bs/custom-tools.mdx +195 -0
- package/src/content/docs/bs/ecosystem.mdx +78 -0
- package/src/content/docs/bs/enterprise.mdx +165 -0
- package/src/content/docs/bs/formatters.mdx +124 -0
- package/src/content/docs/bs/github.mdx +311 -0
- package/src/content/docs/bs/gitlab.mdx +188 -0
- package/src/content/docs/bs/go.mdx +238 -0
- package/src/content/docs/bs/ide.mdx +47 -0
- package/src/content/docs/bs/index.mdx +323 -0
- package/src/content/docs/bs/keybinds.mdx +194 -0
- package/src/content/docs/bs/lsp.mdx +204 -0
- package/src/content/docs/bs/mcp-servers.mdx +482 -0
- package/src/content/docs/bs/models.mdx +201 -0
- package/src/content/docs/bs/network.mdx +51 -0
- package/src/content/docs/bs/permissions.mdx +228 -0
- package/src/content/docs/bs/plugins.mdx +371 -0
- package/src/content/docs/bs/providers.mdx +1993 -0
- package/src/content/docs/bs/rules.mdx +180 -0
- package/src/content/docs/bs/sdk.mdx +463 -0
- package/src/content/docs/bs/server.mdx +284 -0
- package/src/content/docs/bs/share.mdx +127 -0
- package/src/content/docs/bs/skills.mdx +222 -0
- package/src/content/docs/bs/themes.mdx +369 -0
- package/src/content/docs/bs/tools.mdx +341 -0
- package/src/content/docs/bs/troubleshooting.mdx +300 -0
- package/src/content/docs/bs/tui.mdx +432 -0
- package/src/content/docs/bs/web.mdx +142 -0
- package/src/content/docs/bs/windows-wsl.mdx +113 -0
- package/src/content/docs/bs/zen.mdx +350 -0
- package/src/content/docs/cli.mdx +733 -0
- package/src/content/docs/commands.mdx +323 -0
- package/src/content/docs/config.mdx +941 -0
- package/src/content/docs/custom-tools.mdx +196 -0
- package/src/content/docs/da/acp.mdx +156 -0
- package/src/content/docs/da/agents.mdx +755 -0
- package/src/content/docs/da/cli.mdx +617 -0
- package/src/content/docs/da/commands.mdx +323 -0
- package/src/content/docs/da/config.mdx +688 -0
- package/src/content/docs/da/custom-tools.mdx +196 -0
- package/src/content/docs/da/ecosystem.mdx +78 -0
- package/src/content/docs/da/enterprise.mdx +170 -0
- package/src/content/docs/da/formatters.mdx +131 -0
- package/src/content/docs/da/github.mdx +321 -0
- package/src/content/docs/da/gitlab.mdx +195 -0
- package/src/content/docs/da/go.mdx +238 -0
- package/src/content/docs/da/ide.mdx +48 -0
- package/src/content/docs/da/index.mdx +360 -0
- package/src/content/docs/da/keybinds.mdx +194 -0
- package/src/content/docs/da/lsp.mdx +208 -0
- package/src/content/docs/da/mcp-servers.mdx +511 -0
- package/src/content/docs/da/models.mdx +223 -0
- package/src/content/docs/da/network.mdx +57 -0
- package/src/content/docs/da/permissions.mdx +235 -0
- package/src/content/docs/da/plugins.mdx +389 -0
- package/src/content/docs/da/providers.mdx +1981 -0
- package/src/content/docs/da/rules.mdx +180 -0
- package/src/content/docs/da/sdk.mdx +463 -0
- package/src/content/docs/da/server.mdx +287 -0
- package/src/content/docs/da/share.mdx +128 -0
- package/src/content/docs/da/skills.mdx +222 -0
- package/src/content/docs/da/themes.mdx +369 -0
- package/src/content/docs/da/tools.mdx +341 -0
- package/src/content/docs/da/troubleshooting.mdx +300 -0
- package/src/content/docs/da/tui.mdx +426 -0
- package/src/content/docs/da/web.mdx +142 -0
- package/src/content/docs/da/windows-wsl.mdx +113 -0
- package/src/content/docs/da/zen.mdx +345 -0
- package/src/content/docs/de/acp.mdx +156 -0
- package/src/content/docs/de/agents.mdx +741 -0
- package/src/content/docs/de/cli.mdx +616 -0
- package/src/content/docs/de/commands.mdx +323 -0
- package/src/content/docs/de/config.mdx +684 -0
- package/src/content/docs/de/custom-tools.mdx +170 -0
- package/src/content/docs/de/ecosystem.mdx +78 -0
- package/src/content/docs/de/enterprise.mdx +170 -0
- package/src/content/docs/de/formatters.mdx +131 -0
- package/src/content/docs/de/github.mdx +321 -0
- package/src/content/docs/de/gitlab.mdx +195 -0
- package/src/content/docs/de/go.mdx +226 -0
- package/src/content/docs/de/ide.mdx +48 -0
- package/src/content/docs/de/index.mdx +356 -0
- package/src/content/docs/de/keybinds.mdx +194 -0
- package/src/content/docs/de/lsp.mdx +207 -0
- package/src/content/docs/de/mcp-servers.mdx +511 -0
- package/src/content/docs/de/models.mdx +223 -0
- package/src/content/docs/de/network.mdx +57 -0
- package/src/content/docs/de/permissions.mdx +235 -0
- package/src/content/docs/de/plugins.mdx +384 -0
- package/src/content/docs/de/providers.mdx +1987 -0
- package/src/content/docs/de/rules.mdx +190 -0
- package/src/content/docs/de/sdk.mdx +465 -0
- package/src/content/docs/de/server.mdx +291 -0
- package/src/content/docs/de/share.mdx +130 -0
- package/src/content/docs/de/skills.mdx +222 -0
- package/src/content/docs/de/themes.mdx +372 -0
- package/src/content/docs/de/tools.mdx +352 -0
- package/src/content/docs/de/troubleshooting.mdx +300 -0
- package/src/content/docs/de/tui.mdx +429 -0
- package/src/content/docs/de/web.mdx +142 -0
- package/src/content/docs/de/windows-wsl.mdx +115 -0
- package/src/content/docs/de/zen.mdx +327 -0
- package/src/content/docs/ecosystem.mdx +83 -0
- package/src/content/docs/enterprise.mdx +169 -0
- package/src/content/docs/es/acp.mdx +156 -0
- package/src/content/docs/es/agents.mdx +755 -0
- package/src/content/docs/es/cli.mdx +616 -0
- package/src/content/docs/es/commands.mdx +323 -0
- package/src/content/docs/es/config.mdx +685 -0
- package/src/content/docs/es/custom-tools.mdx +196 -0
- package/src/content/docs/es/ecosystem.mdx +78 -0
- package/src/content/docs/es/enterprise.mdx +170 -0
- package/src/content/docs/es/formatters.mdx +131 -0
- package/src/content/docs/es/github.mdx +321 -0
- package/src/content/docs/es/gitlab.mdx +195 -0
- package/src/content/docs/es/go.mdx +238 -0
- package/src/content/docs/es/ide.mdx +48 -0
- package/src/content/docs/es/index.mdx +345 -0
- package/src/content/docs/es/keybinds.mdx +194 -0
- package/src/content/docs/es/lsp.mdx +208 -0
- package/src/content/docs/es/mcp-servers.mdx +511 -0
- package/src/content/docs/es/models.mdx +223 -0
- package/src/content/docs/es/network.mdx +57 -0
- package/src/content/docs/es/permissions.mdx +235 -0
- package/src/content/docs/es/plugins.mdx +389 -0
- package/src/content/docs/es/providers.mdx +1989 -0
- package/src/content/docs/es/rules.mdx +180 -0
- package/src/content/docs/es/sdk.mdx +463 -0
- package/src/content/docs/es/server.mdx +287 -0
- package/src/content/docs/es/share.mdx +128 -0
- package/src/content/docs/es/skills.mdx +222 -0
- package/src/content/docs/es/themes.mdx +369 -0
- package/src/content/docs/es/tools.mdx +341 -0
- package/src/content/docs/es/troubleshooting.mdx +300 -0
- package/src/content/docs/es/tui.mdx +429 -0
- package/src/content/docs/es/web.mdx +142 -0
- package/src/content/docs/es/windows-wsl.mdx +113 -0
- package/src/content/docs/es/zen.mdx +345 -0
- package/src/content/docs/formatters.mdx +143 -0
- package/src/content/docs/fr/acp.mdx +156 -0
- package/src/content/docs/fr/agents.mdx +755 -0
- package/src/content/docs/fr/cli.mdx +617 -0
- package/src/content/docs/fr/commands.mdx +322 -0
- package/src/content/docs/fr/config.mdx +686 -0
- package/src/content/docs/fr/custom-tools.mdx +170 -0
- package/src/content/docs/fr/ecosystem.mdx +78 -0
- package/src/content/docs/fr/enterprise.mdx +165 -0
- package/src/content/docs/fr/formatters.mdx +131 -0
- package/src/content/docs/fr/github.mdx +322 -0
- package/src/content/docs/fr/gitlab.mdx +195 -0
- package/src/content/docs/fr/go.mdx +224 -0
- package/src/content/docs/fr/ide.mdx +48 -0
- package/src/content/docs/fr/index.mdx +344 -0
- package/src/content/docs/fr/keybinds.mdx +194 -0
- package/src/content/docs/fr/lsp.mdx +208 -0
- package/src/content/docs/fr/mcp-servers.mdx +511 -0
- package/src/content/docs/fr/models.mdx +222 -0
- package/src/content/docs/fr/network.mdx +57 -0
- package/src/content/docs/fr/permissions.mdx +235 -0
- package/src/content/docs/fr/plugins.mdx +384 -0
- package/src/content/docs/fr/providers.mdx +1996 -0
- package/src/content/docs/fr/rules.mdx +180 -0
- package/src/content/docs/fr/sdk.mdx +463 -0
- package/src/content/docs/fr/server.mdx +287 -0
- package/src/content/docs/fr/share.mdx +128 -0
- package/src/content/docs/fr/skills.mdx +222 -0
- package/src/content/docs/fr/themes.mdx +369 -0
- package/src/content/docs/fr/tools.mdx +341 -0
- package/src/content/docs/fr/troubleshooting.mdx +300 -0
- package/src/content/docs/fr/tui.mdx +429 -0
- package/src/content/docs/fr/web.mdx +142 -0
- package/src/content/docs/fr/windows-wsl.mdx +113 -0
- package/src/content/docs/fr/zen.mdx +327 -0
- package/src/content/docs/github.mdx +321 -0
- package/src/content/docs/gitlab.mdx +195 -0
- package/src/content/docs/go.mdx +238 -0
- package/src/content/docs/ide.mdx +48 -0
- package/src/content/docs/index.mdx +360 -0
- package/src/content/docs/it/acp.mdx +155 -0
- package/src/content/docs/it/agents.mdx +753 -0
- package/src/content/docs/it/cli.mdx +617 -0
- package/src/content/docs/it/commands.mdx +322 -0
- package/src/content/docs/it/config.mdx +685 -0
- package/src/content/docs/it/custom-tools.mdx +196 -0
- package/src/content/docs/it/ecosystem.mdx +78 -0
- package/src/content/docs/it/enterprise.mdx +165 -0
- package/src/content/docs/it/formatters.mdx +132 -0
- package/src/content/docs/it/github.mdx +321 -0
- package/src/content/docs/it/gitlab.mdx +195 -0
- package/src/content/docs/it/go.mdx +236 -0
- package/src/content/docs/it/ide.mdx +48 -0
- package/src/content/docs/it/index.mdx +344 -0
- package/src/content/docs/it/keybinds.mdx +194 -0
- package/src/content/docs/it/lsp.mdx +208 -0
- package/src/content/docs/it/mcp-servers.mdx +511 -0
- package/src/content/docs/it/models.mdx +222 -0
- package/src/content/docs/it/network.mdx +57 -0
- package/src/content/docs/it/permissions.mdx +235 -0
- package/src/content/docs/it/plugins.mdx +388 -0
- package/src/content/docs/it/providers.mdx +1964 -0
- package/src/content/docs/it/rules.mdx +180 -0
- package/src/content/docs/it/sdk.mdx +463 -0
- package/src/content/docs/it/server.mdx +284 -0
- package/src/content/docs/it/share.mdx +127 -0
- package/src/content/docs/it/skills.mdx +222 -0
- package/src/content/docs/it/themes.mdx +369 -0
- package/src/content/docs/it/tools.mdx +341 -0
- package/src/content/docs/it/troubleshooting.mdx +299 -0
- package/src/content/docs/it/tui.mdx +426 -0
- package/src/content/docs/it/web.mdx +142 -0
- package/src/content/docs/it/windows-wsl.mdx +113 -0
- package/src/content/docs/it/zen.mdx +345 -0
- package/src/content/docs/ja/acp.mdx +155 -0
- package/src/content/docs/ja/agents.mdx +751 -0
- package/src/content/docs/ja/cli.mdx +616 -0
- package/src/content/docs/ja/commands.mdx +322 -0
- package/src/content/docs/ja/config.mdx +684 -0
- package/src/content/docs/ja/custom-tools.mdx +196 -0
- package/src/content/docs/ja/ecosystem.mdx +78 -0
- package/src/content/docs/ja/enterprise.mdx +166 -0
- package/src/content/docs/ja/formatters.mdx +132 -0
- package/src/content/docs/ja/github.mdx +322 -0
- package/src/content/docs/ja/gitlab.mdx +195 -0
- package/src/content/docs/ja/go.mdx +224 -0
- package/src/content/docs/ja/ide.mdx +48 -0
- package/src/content/docs/ja/index.mdx +350 -0
- package/src/content/docs/ja/keybinds.mdx +194 -0
- package/src/content/docs/ja/lsp.mdx +208 -0
- package/src/content/docs/ja/mcp-servers.mdx +511 -0
- package/src/content/docs/ja/models.mdx +221 -0
- package/src/content/docs/ja/network.mdx +55 -0
- package/src/content/docs/ja/permissions.mdx +282 -0
- package/src/content/docs/ja/plugins.mdx +461 -0
- package/src/content/docs/ja/providers.mdx +1998 -0
- package/src/content/docs/ja/rules.mdx +179 -0
- package/src/content/docs/ja/sdk.mdx +463 -0
- package/src/content/docs/ja/server.mdx +282 -0
- package/src/content/docs/ja/share.mdx +128 -0
- package/src/content/docs/ja/skills.mdx +222 -0
- package/src/content/docs/ja/themes.mdx +667 -0
- package/src/content/docs/ja/tools.mdx +341 -0
- package/src/content/docs/ja/troubleshooting.mdx +300 -0
- package/src/content/docs/ja/tui.mdx +423 -0
- package/src/content/docs/ja/web.mdx +143 -0
- package/src/content/docs/ja/windows-wsl.mdx +116 -0
- package/src/content/docs/ja/zen.mdx +327 -0
- package/src/content/docs/keybinds.mdx +299 -0
- package/src/content/docs/ko/acp.mdx +156 -0
- package/src/content/docs/ko/agents.mdx +754 -0
- package/src/content/docs/ko/cli.mdx +616 -0
- package/src/content/docs/ko/commands.mdx +323 -0
- package/src/content/docs/ko/config.mdx +685 -0
- package/src/content/docs/ko/custom-tools.mdx +196 -0
- package/src/content/docs/ko/ecosystem.mdx +78 -0
- package/src/content/docs/ko/enterprise.mdx +165 -0
- package/src/content/docs/ko/formatters.mdx +132 -0
- package/src/content/docs/ko/github.mdx +321 -0
- package/src/content/docs/ko/gitlab.mdx +195 -0
- package/src/content/docs/ko/go.mdx +224 -0
- package/src/content/docs/ko/ide.mdx +48 -0
- package/src/content/docs/ko/index.mdx +344 -0
- package/src/content/docs/ko/keybinds.mdx +194 -0
- package/src/content/docs/ko/lsp.mdx +208 -0
- package/src/content/docs/ko/mcp-servers.mdx +511 -0
- package/src/content/docs/ko/models.mdx +223 -0
- package/src/content/docs/ko/network.mdx +57 -0
- package/src/content/docs/ko/permissions.mdx +235 -0
- package/src/content/docs/ko/plugins.mdx +388 -0
- package/src/content/docs/ko/providers.mdx +1984 -0
- package/src/content/docs/ko/rules.mdx +179 -0
- package/src/content/docs/ko/sdk.mdx +463 -0
- package/src/content/docs/ko/server.mdx +287 -0
- package/src/content/docs/ko/share.mdx +128 -0
- package/src/content/docs/ko/skills.mdx +222 -0
- package/src/content/docs/ko/themes.mdx +369 -0
- package/src/content/docs/ko/tools.mdx +341 -0
- package/src/content/docs/ko/troubleshooting.mdx +303 -0
- package/src/content/docs/ko/tui.mdx +425 -0
- package/src/content/docs/ko/web.mdx +142 -0
- package/src/content/docs/ko/windows-wsl.mdx +119 -0
- package/src/content/docs/ko/zen.mdx +327 -0
- package/src/content/docs/lsp.mdx +214 -0
- package/src/content/docs/mcp-servers.mdx +512 -0
- package/src/content/docs/models.mdx +223 -0
- package/src/content/docs/nb/acp.mdx +156 -0
- package/src/content/docs/nb/agents.mdx +754 -0
- package/src/content/docs/nb/cli.mdx +617 -0
- package/src/content/docs/nb/commands.mdx +323 -0
- package/src/content/docs/nb/config.mdx +688 -0
- package/src/content/docs/nb/custom-tools.mdx +196 -0
- package/src/content/docs/nb/ecosystem.mdx +78 -0
- package/src/content/docs/nb/enterprise.mdx +170 -0
- package/src/content/docs/nb/formatters.mdx +131 -0
- package/src/content/docs/nb/github.mdx +325 -0
- package/src/content/docs/nb/gitlab.mdx +195 -0
- package/src/content/docs/nb/go.mdx +238 -0
- package/src/content/docs/nb/ide.mdx +48 -0
- package/src/content/docs/nb/index.mdx +359 -0
- package/src/content/docs/nb/keybinds.mdx +194 -0
- package/src/content/docs/nb/lsp.mdx +208 -0
- package/src/content/docs/nb/mcp-servers.mdx +624 -0
- package/src/content/docs/nb/models.mdx +223 -0
- package/src/content/docs/nb/network.mdx +57 -0
- package/src/content/docs/nb/permissions.mdx +235 -0
- package/src/content/docs/nb/plugins.mdx +389 -0
- package/src/content/docs/nb/providers.mdx +1956 -0
- package/src/content/docs/nb/rules.mdx +180 -0
- package/src/content/docs/nb/sdk.mdx +463 -0
- package/src/content/docs/nb/server.mdx +287 -0
- package/src/content/docs/nb/share.mdx +128 -0
- package/src/content/docs/nb/skills.mdx +222 -0
- package/src/content/docs/nb/themes.mdx +369 -0
- package/src/content/docs/nb/tools.mdx +341 -0
- package/src/content/docs/nb/troubleshooting.mdx +225 -0
- package/src/content/docs/nb/tui.mdx +429 -0
- package/src/content/docs/nb/web.mdx +105 -0
- package/src/content/docs/nb/windows-wsl.mdx +113 -0
- package/src/content/docs/nb/zen.mdx +345 -0
- package/src/content/docs/network.mdx +57 -0
- package/src/content/docs/permissions.mdx +256 -0
- package/src/content/docs/pl/acp.mdx +158 -0
- package/src/content/docs/pl/agents.mdx +754 -0
- package/src/content/docs/pl/cli.mdx +617 -0
- package/src/content/docs/pl/commands.mdx +323 -0
- package/src/content/docs/pl/config.mdx +680 -0
- package/src/content/docs/pl/custom-tools.mdx +196 -0
- package/src/content/docs/pl/ecosystem.mdx +78 -0
- package/src/content/docs/pl/enterprise.mdx +170 -0
- package/src/content/docs/pl/formatters.mdx +131 -0
- package/src/content/docs/pl/github.mdx +321 -0
- package/src/content/docs/pl/gitlab.mdx +195 -0
- package/src/content/docs/pl/go.mdx +230 -0
- package/src/content/docs/pl/ide.mdx +48 -0
- package/src/content/docs/pl/index.mdx +347 -0
- package/src/content/docs/pl/keybinds.mdx +194 -0
- package/src/content/docs/pl/lsp.mdx +208 -0
- package/src/content/docs/pl/mcp-servers.mdx +511 -0
- package/src/content/docs/pl/models.mdx +223 -0
- package/src/content/docs/pl/network.mdx +57 -0
- package/src/content/docs/pl/permissions.mdx +235 -0
- package/src/content/docs/pl/plugins.mdx +385 -0
- package/src/content/docs/pl/providers.mdx +1986 -0
- package/src/content/docs/pl/rules.mdx +180 -0
- package/src/content/docs/pl/sdk.mdx +463 -0
- package/src/content/docs/pl/server.mdx +287 -0
- package/src/content/docs/pl/share.mdx +128 -0
- package/src/content/docs/pl/skills.mdx +222 -0
- package/src/content/docs/pl/themes.mdx +369 -0
- package/src/content/docs/pl/tools.mdx +341 -0
- package/src/content/docs/pl/troubleshooting.mdx +300 -0
- package/src/content/docs/pl/tui.mdx +429 -0
- package/src/content/docs/pl/web.mdx +142 -0
- package/src/content/docs/pl/windows-wsl.mdx +113 -0
- package/src/content/docs/pl/zen.mdx +344 -0
- package/src/content/docs/plugins.mdx +389 -0
- package/src/content/docs/policies.mdx +137 -0
- package/src/content/docs/providers.mdx +2501 -0
- package/src/content/docs/pt-br/acp.mdx +156 -0
- package/src/content/docs/pt-br/agents.mdx +755 -0
- package/src/content/docs/pt-br/cli.mdx +616 -0
- package/src/content/docs/pt-br/commands.mdx +322 -0
- package/src/content/docs/pt-br/config.mdx +687 -0
- package/src/content/docs/pt-br/custom-tools.mdx +196 -0
- package/src/content/docs/pt-br/ecosystem.mdx +78 -0
- package/src/content/docs/pt-br/enterprise.mdx +166 -0
- package/src/content/docs/pt-br/formatters.mdx +131 -0
- package/src/content/docs/pt-br/github.mdx +321 -0
- package/src/content/docs/pt-br/gitlab.mdx +195 -0
- package/src/content/docs/pt-br/go.mdx +238 -0
- package/src/content/docs/pt-br/ide.mdx +48 -0
- package/src/content/docs/pt-br/index.mdx +344 -0
- package/src/content/docs/pt-br/keybinds.mdx +194 -0
- package/src/content/docs/pt-br/lsp.mdx +208 -0
- package/src/content/docs/pt-br/mcp-servers.mdx +511 -0
- package/src/content/docs/pt-br/models.mdx +222 -0
- package/src/content/docs/pt-br/network.mdx +57 -0
- package/src/content/docs/pt-br/permissions.mdx +235 -0
- package/src/content/docs/pt-br/plugins.mdx +388 -0
- package/src/content/docs/pt-br/providers.mdx +1989 -0
- package/src/content/docs/pt-br/rules.mdx +180 -0
- package/src/content/docs/pt-br/sdk.mdx +463 -0
- package/src/content/docs/pt-br/server.mdx +284 -0
- package/src/content/docs/pt-br/share.mdx +127 -0
- package/src/content/docs/pt-br/skills.mdx +222 -0
- package/src/content/docs/pt-br/themes.mdx +369 -0
- package/src/content/docs/pt-br/tools.mdx +341 -0
- package/src/content/docs/pt-br/troubleshooting.mdx +299 -0
- package/src/content/docs/pt-br/tui.mdx +426 -0
- package/src/content/docs/pt-br/web.mdx +142 -0
- package/src/content/docs/pt-br/windows-wsl.mdx +113 -0
- package/src/content/docs/pt-br/zen.mdx +327 -0
- package/src/content/docs/references.mdx +157 -0
- package/src/content/docs/ru/acp.mdx +156 -0
- package/src/content/docs/ru/agents.mdx +754 -0
- package/src/content/docs/ru/cli.mdx +617 -0
- package/src/content/docs/ru/commands.mdx +323 -0
- package/src/content/docs/ru/config.mdx +685 -0
- package/src/content/docs/ru/custom-tools.mdx +170 -0
- package/src/content/docs/ru/ecosystem.mdx +78 -0
- package/src/content/docs/ru/enterprise.mdx +168 -0
- package/src/content/docs/ru/formatters.mdx +119 -0
- package/src/content/docs/ru/github.mdx +321 -0
- package/src/content/docs/ru/gitlab.mdx +195 -0
- package/src/content/docs/ru/go.mdx +238 -0
- package/src/content/docs/ru/ide.mdx +48 -0
- package/src/content/docs/ru/index.mdx +356 -0
- package/src/content/docs/ru/keybinds.mdx +194 -0
- package/src/content/docs/ru/lsp.mdx +207 -0
- package/src/content/docs/ru/mcp-servers.mdx +511 -0
- package/src/content/docs/ru/models.mdx +223 -0
- package/src/content/docs/ru/network.mdx +57 -0
- package/src/content/docs/ru/permissions.mdx +235 -0
- package/src/content/docs/ru/plugins.mdx +385 -0
- package/src/content/docs/ru/providers.mdx +1987 -0
- package/src/content/docs/ru/rules.mdx +180 -0
- package/src/content/docs/ru/sdk.mdx +463 -0
- package/src/content/docs/ru/server.mdx +287 -0
- package/src/content/docs/ru/share.mdx +128 -0
- package/src/content/docs/ru/skills.mdx +222 -0
- package/src/content/docs/ru/themes.mdx +369 -0
- package/src/content/docs/ru/tools.mdx +341 -0
- package/src/content/docs/ru/troubleshooting.mdx +300 -0
- package/src/content/docs/ru/tui.mdx +429 -0
- package/src/content/docs/ru/web.mdx +142 -0
- package/src/content/docs/ru/windows-wsl.mdx +113 -0
- package/src/content/docs/ru/zen.mdx +345 -0
- package/src/content/docs/rules.mdx +188 -0
- package/src/content/docs/sdk.mdx +463 -0
- package/src/content/docs/server.mdx +287 -0
- package/src/content/docs/share.mdx +128 -0
- package/src/content/docs/skills.mdx +222 -0
- package/src/content/docs/th/acp.mdx +156 -0
- package/src/content/docs/th/agents.mdx +744 -0
- package/src/content/docs/th/cli.mdx +618 -0
- package/src/content/docs/th/commands.mdx +320 -0
- package/src/content/docs/th/config.mdx +690 -0
- package/src/content/docs/th/custom-tools.mdx +196 -0
- package/src/content/docs/th/ecosystem.mdx +78 -0
- package/src/content/docs/th/enterprise.mdx +170 -0
- package/src/content/docs/th/formatters.mdx +131 -0
- package/src/content/docs/th/github.mdx +321 -0
- package/src/content/docs/th/gitlab.mdx +195 -0
- package/src/content/docs/th/go.mdx +224 -0
- package/src/content/docs/th/ide.mdx +48 -0
- package/src/content/docs/th/index.mdx +360 -0
- package/src/content/docs/th/keybinds.mdx +194 -0
- package/src/content/docs/th/lsp.mdx +208 -0
- package/src/content/docs/th/mcp-servers.mdx +511 -0
- package/src/content/docs/th/models.mdx +223 -0
- package/src/content/docs/th/network.mdx +57 -0
- package/src/content/docs/th/permissions.mdx +235 -0
- package/src/content/docs/th/plugins.mdx +389 -0
- package/src/content/docs/th/providers.mdx +2532 -0
- package/src/content/docs/th/rules.mdx +180 -0
- package/src/content/docs/th/sdk.mdx +463 -0
- package/src/content/docs/th/server.mdx +287 -0
- package/src/content/docs/th/share.mdx +128 -0
- package/src/content/docs/th/skills.mdx +222 -0
- package/src/content/docs/th/themes.mdx +369 -0
- package/src/content/docs/th/tools.mdx +341 -0
- package/src/content/docs/th/troubleshooting.mdx +300 -0
- package/src/content/docs/th/tui.mdx +429 -0
- package/src/content/docs/th/web.mdx +142 -0
- package/src/content/docs/th/windows-wsl.mdx +113 -0
- package/src/content/docs/th/zen.mdx +329 -0
- package/src/content/docs/themes.mdx +369 -0
- package/src/content/docs/tools.mdx +345 -0
- package/src/content/docs/tr/acp.mdx +156 -0
- package/src/content/docs/tr/agents.mdx +754 -0
- package/src/content/docs/tr/cli.mdx +617 -0
- package/src/content/docs/tr/commands.mdx +323 -0
- package/src/content/docs/tr/config.mdx +687 -0
- package/src/content/docs/tr/custom-tools.mdx +196 -0
- package/src/content/docs/tr/ecosystem.mdx +78 -0
- package/src/content/docs/tr/enterprise.mdx +170 -0
- package/src/content/docs/tr/formatters.mdx +131 -0
- package/src/content/docs/tr/github.mdx +321 -0
- package/src/content/docs/tr/gitlab.mdx +195 -0
- package/src/content/docs/tr/go.mdx +224 -0
- package/src/content/docs/tr/ide.mdx +48 -0
- package/src/content/docs/tr/index.mdx +347 -0
- package/src/content/docs/tr/keybinds.mdx +194 -0
- package/src/content/docs/tr/lsp.mdx +208 -0
- package/src/content/docs/tr/mcp-servers.mdx +511 -0
- package/src/content/docs/tr/models.mdx +223 -0
- package/src/content/docs/tr/network.mdx +57 -0
- package/src/content/docs/tr/permissions.mdx +235 -0
- package/src/content/docs/tr/plugins.mdx +388 -0
- package/src/content/docs/tr/providers.mdx +1988 -0
- package/src/content/docs/tr/rules.mdx +180 -0
- package/src/content/docs/tr/sdk.mdx +463 -0
- package/src/content/docs/tr/server.mdx +285 -0
- package/src/content/docs/tr/share.mdx +127 -0
- package/src/content/docs/tr/skills.mdx +222 -0
- package/src/content/docs/tr/themes.mdx +369 -0
- package/src/content/docs/tr/tools.mdx +341 -0
- package/src/content/docs/tr/troubleshooting.mdx +299 -0
- package/src/content/docs/tr/tui.mdx +427 -0
- package/src/content/docs/tr/web.mdx +142 -0
- package/src/content/docs/tr/windows-wsl.mdx +113 -0
- package/src/content/docs/tr/zen.mdx +327 -0
- package/src/content/docs/troubleshooting.mdx +314 -0
- package/src/content/docs/tui.mdx +427 -0
- package/src/content/docs/web.mdx +142 -0
- package/src/content/docs/windows-wsl.mdx +112 -0
- package/src/content/docs/zen.mdx +345 -0
- package/src/content/docs/zh-cn/acp.mdx +156 -0
- package/src/content/docs/zh-cn/agents.mdx +754 -0
- package/src/content/docs/zh-cn/cli.mdx +617 -0
- package/src/content/docs/zh-cn/commands.mdx +322 -0
- package/src/content/docs/zh-cn/config.mdx +683 -0
- package/src/content/docs/zh-cn/custom-tools.mdx +196 -0
- package/src/content/docs/zh-cn/ecosystem.mdx +78 -0
- package/src/content/docs/zh-cn/enterprise.mdx +165 -0
- package/src/content/docs/zh-cn/formatters.mdx +132 -0
- package/src/content/docs/zh-cn/github.mdx +321 -0
- package/src/content/docs/zh-cn/gitlab.mdx +194 -0
- package/src/content/docs/zh-cn/go.mdx +224 -0
- package/src/content/docs/zh-cn/ide.mdx +48 -0
- package/src/content/docs/zh-cn/index.mdx +343 -0
- package/src/content/docs/zh-cn/keybinds.mdx +194 -0
- package/src/content/docs/zh-cn/lsp.mdx +208 -0
- package/src/content/docs/zh-cn/mcp-servers.mdx +511 -0
- package/src/content/docs/zh-cn/models.mdx +222 -0
- package/src/content/docs/zh-cn/network.mdx +57 -0
- package/src/content/docs/zh-cn/permissions.mdx +235 -0
- package/src/content/docs/zh-cn/plugins.mdx +388 -0
- package/src/content/docs/zh-cn/providers.mdx +1949 -0
- package/src/content/docs/zh-cn/rules.mdx +180 -0
- package/src/content/docs/zh-cn/sdk.mdx +463 -0
- package/src/content/docs/zh-cn/server.mdx +284 -0
- package/src/content/docs/zh-cn/share.mdx +127 -0
- package/src/content/docs/zh-cn/skills.mdx +222 -0
- package/src/content/docs/zh-cn/themes.mdx +369 -0
- package/src/content/docs/zh-cn/tools.mdx +341 -0
- package/src/content/docs/zh-cn/troubleshooting.mdx +299 -0
- package/src/content/docs/zh-cn/tui.mdx +426 -0
- package/src/content/docs/zh-cn/web.mdx +142 -0
- package/src/content/docs/zh-cn/windows-wsl.mdx +112 -0
- package/src/content/docs/zh-cn/zen.mdx +327 -0
- package/src/content/docs/zh-tw/acp.mdx +156 -0
- package/src/content/docs/zh-tw/agents.mdx +754 -0
- package/src/content/docs/zh-tw/cli.mdx +617 -0
- package/src/content/docs/zh-tw/commands.mdx +322 -0
- package/src/content/docs/zh-tw/config.mdx +687 -0
- package/src/content/docs/zh-tw/custom-tools.mdx +196 -0
- package/src/content/docs/zh-tw/ecosystem.mdx +78 -0
- package/src/content/docs/zh-tw/enterprise.mdx +165 -0
- package/src/content/docs/zh-tw/formatters.mdx +132 -0
- package/src/content/docs/zh-tw/github.mdx +321 -0
- package/src/content/docs/zh-tw/gitlab.mdx +194 -0
- package/src/content/docs/zh-tw/go.mdx +224 -0
- package/src/content/docs/zh-tw/ide.mdx +48 -0
- package/src/content/docs/zh-tw/index.mdx +343 -0
- package/src/content/docs/zh-tw/keybinds.mdx +194 -0
- package/src/content/docs/zh-tw/lsp.mdx +208 -0
- package/src/content/docs/zh-tw/mcp-servers.mdx +511 -0
- package/src/content/docs/zh-tw/models.mdx +222 -0
- package/src/content/docs/zh-tw/network.mdx +57 -0
- package/src/content/docs/zh-tw/permissions.mdx +235 -0
- package/src/content/docs/zh-tw/plugins.mdx +388 -0
- package/src/content/docs/zh-tw/providers.mdx +1970 -0
- package/src/content/docs/zh-tw/rules.mdx +180 -0
- package/src/content/docs/zh-tw/sdk.mdx +463 -0
- package/src/content/docs/zh-tw/server.mdx +284 -0
- package/src/content/docs/zh-tw/share.mdx +127 -0
- package/src/content/docs/zh-tw/skills.mdx +222 -0
- package/src/content/docs/zh-tw/themes.mdx +369 -0
- package/src/content/docs/zh-tw/tools.mdx +341 -0
- package/src/content/docs/zh-tw/troubleshooting.mdx +299 -0
- package/src/content/docs/zh-tw/tui.mdx +426 -0
- package/src/content/docs/zh-tw/web.mdx +142 -0
- package/src/content/docs/zh-tw/windows-wsl.mdx +112 -0
- package/src/content/docs/zh-tw/zen.mdx +333 -0
- package/src/content/i18n/ar.json +75 -0
- package/src/content/i18n/bs.json +75 -0
- package/src/content/i18n/da.json +75 -0
- package/src/content/i18n/de.json +75 -0
- package/src/content/i18n/en.json +75 -0
- package/src/content/i18n/es.json +75 -0
- package/src/content/i18n/fr.json +75 -0
- package/src/content/i18n/it.json +75 -0
- package/src/content/i18n/ja.json +75 -0
- package/src/content/i18n/ko.json +75 -0
- package/src/content/i18n/nb.json +75 -0
- package/src/content/i18n/pl.json +75 -0
- package/src/content/i18n/pt-BR.json +75 -0
- package/src/content/i18n/ru.json +75 -0
- package/src/content/i18n/th.json +75 -0
- package/src/content/i18n/tr.json +75 -0
- package/src/content/i18n/zh-CN.json +75 -0
- package/src/content/i18n/zh-TW.json +75 -0
- package/src/content.config.ts +16 -0
- package/src/i18n/locales.ts +117 -0
- package/src/middleware.ts +94 -0
- package/src/pages/[...slug].md.ts +34 -0
- package/src/pages/s/[id].astro +164 -0
- package/src/styles/custom.css +405 -0
- package/src/types/lang-map.d.ts +27 -0
- package/src/types/starlight-virtual.d.ts +14 -0
- package/sst-env.d.ts +10 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 故障排除
|
|
3
|
+
description: 常见问题及其解决方法。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
要调试 OpenCode 的问题,请先检查其存储在磁盘上的日志和本地数据。
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 日志
|
|
11
|
+
|
|
12
|
+
日志文件写入位置:
|
|
13
|
+
|
|
14
|
+
- **macOS/Linux**: `~/.local/share/opencode/log/`
|
|
15
|
+
- **Windows**: 按 `WIN+R` 并粘贴 `%USERPROFILE%\.local\share\opencode\log`
|
|
16
|
+
|
|
17
|
+
日志文件以时间戳命名(例如 `2025-01-09T123456.log`),并保留最近的 10 个日志文件。
|
|
18
|
+
|
|
19
|
+
你可以通过 `--log-level` 命令行选项设置日志级别以获取更详细的调试信息。例如:`opencode --log-level DEBUG`。
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 存储
|
|
24
|
+
|
|
25
|
+
OpenCode 将会话数据和其他应用数据存储在磁盘上:
|
|
26
|
+
|
|
27
|
+
- **macOS/Linux**: `~/.local/share/opencode/`
|
|
28
|
+
- **Windows**: 按 `WIN+R` 并粘贴 `%USERPROFILE%\.local\share\opencode`
|
|
29
|
+
|
|
30
|
+
该目录包含:
|
|
31
|
+
|
|
32
|
+
- `auth.json` - 身份验证数据,如 API 密钥、OAuth Token
|
|
33
|
+
- `log/` - 应用日志
|
|
34
|
+
- `project/` - 项目特定数据,如会话和消息数据
|
|
35
|
+
- 如果项目位于 Git 仓库中,则存储在 `./<project-slug>/storage/`
|
|
36
|
+
- 如果不是 Git 仓库,则存储在 `./global/storage/`
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 桌面应用
|
|
41
|
+
|
|
42
|
+
OpenCode Desktop 会在后台运行一个本地 OpenCode 服务器(即 `opencode-cli` 附属进程)。大多数问题是由插件异常、缓存损坏或错误的服务器设置引起的。
|
|
43
|
+
|
|
44
|
+
### 快速检查
|
|
45
|
+
|
|
46
|
+
- 完全退出并重新启动应用。
|
|
47
|
+
- 如果应用显示错误页面,请点击**重新启动**并复制错误详情。
|
|
48
|
+
- 仅限 macOS:`OpenCode` 菜单 -> **Reload Webview**(当 UI 空白或冻结时有效)。
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
### 禁用插件
|
|
53
|
+
|
|
54
|
+
如果桌面应用在启动时崩溃、卡住或行为异常,请先禁用插件。
|
|
55
|
+
|
|
56
|
+
#### 检查全局配置
|
|
57
|
+
|
|
58
|
+
打开你的全局配置文件,查找 `plugin` 键。
|
|
59
|
+
|
|
60
|
+
- **macOS/Linux**: `~/.config/opencode/opencode.jsonc`(或 `~/.config/opencode/opencode.json`)
|
|
61
|
+
- **macOS/Linux**(旧版安装): `~/.local/share/opencode/opencode.jsonc`
|
|
62
|
+
- **Windows**: 按 `WIN+R` 并粘贴 `%USERPROFILE%\.config\opencode\opencode.jsonc`
|
|
63
|
+
|
|
64
|
+
如果你配置了插件,请通过移除该键或将其设置为空数组来临时禁用它们:
|
|
65
|
+
|
|
66
|
+
```jsonc
|
|
67
|
+
{
|
|
68
|
+
"$schema": "https://opencode.ai/config.json",
|
|
69
|
+
"plugin": [],
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### 检查插件目录
|
|
74
|
+
|
|
75
|
+
OpenCode 还可以从磁盘加载本地插件。临时将这些插件移走(或重命名文件夹),然后重新启动桌面应用:
|
|
76
|
+
|
|
77
|
+
- **全局插件**
|
|
78
|
+
- **macOS/Linux**: `~/.config/opencode/plugins/`
|
|
79
|
+
- **Windows**: 按 `WIN+R` 并粘贴 `%USERPROFILE%\.config\opencode\plugins`
|
|
80
|
+
- **项目插件**(仅当你使用了项目级配置时)
|
|
81
|
+
- `<your-project>/.opencode/plugins/`
|
|
82
|
+
|
|
83
|
+
如果应用恢复正常,请逐个重新启用插件,找出导致问题的那个。
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
### 清除缓存
|
|
88
|
+
|
|
89
|
+
如果禁用插件没有帮助(或插件安装卡住了),请清除缓存以便 OpenCode 重新构建。
|
|
90
|
+
|
|
91
|
+
1. 完全退出 OpenCode Desktop。
|
|
92
|
+
2. 删除缓存目录:
|
|
93
|
+
|
|
94
|
+
- **macOS**: Finder -> `Cmd+Shift+G` -> 粘贴 `~/.cache/opencode`
|
|
95
|
+
- **Linux**: 删除 `~/.cache/opencode`(或运行 `rm -rf ~/.cache/opencode`)
|
|
96
|
+
- **Windows**: 按 `WIN+R` 并粘贴 `%USERPROFILE%\.cache\opencode`
|
|
97
|
+
|
|
98
|
+
3. 重新启动 OpenCode Desktop。
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
### 修复服务器连接问题
|
|
103
|
+
|
|
104
|
+
OpenCode Desktop 可以启动自己的本地服务器(默认行为),也可以连接到你配置的服务器 URL。
|
|
105
|
+
|
|
106
|
+
如果你看到**"Connection Failed"**对话框(或应用始终停留在启动画面),请检查自定义服务器 URL。
|
|
107
|
+
|
|
108
|
+
#### 清除桌面默认服务器 URL
|
|
109
|
+
|
|
110
|
+
在主页面上,点击服务器名称(带有状态指示点)以打开服务器选择器。在**默认服务器**部分,点击**清除**。
|
|
111
|
+
|
|
112
|
+
#### 从配置中移除 `server.port` / `server.hostname`
|
|
113
|
+
|
|
114
|
+
如果你的 `opencode.json(c)` 包含 `server` 部分,请临时移除该部分并重新启动桌面应用。
|
|
115
|
+
|
|
116
|
+
#### 检查环境变量
|
|
117
|
+
|
|
118
|
+
如果你在环境中设置了 `OPENCODE_PORT`,桌面应用将尝试使用该端口作为本地服务器端口。
|
|
119
|
+
|
|
120
|
+
- 取消设置 `OPENCODE_PORT`(或选择一个空闲端口)并重新启动。
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
### Linux: Wayland / X11 问题
|
|
125
|
+
|
|
126
|
+
在 Linux 上,某些 Wayland 设置可能会导致窗口空白或合成器错误。
|
|
127
|
+
|
|
128
|
+
- 如果你使用 Wayland 且应用出现空白或崩溃,请尝试使用 `OC_ALLOW_WAYLAND=1` 启动。
|
|
129
|
+
- 如果情况变得更糟,请移除该设置并尝试在 X11 会话下启动。
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
### Windows: WebView2 运行时
|
|
134
|
+
|
|
135
|
+
在 Windows 上,OpenCode Desktop 需要 Microsoft Edge **WebView2 Runtime**。如果应用打开后是空白窗口或无法启动,请安装或更新 WebView2 后重试。
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### Windows: 常见性能问题
|
|
140
|
+
|
|
141
|
+
如果你在 Windows 上遇到性能缓慢、文件访问问题或终端问题,请尝试使用 [WSL (Windows Subsystem for Linux)](/docs/windows-wsl)。WSL 提供了一个 Linux 环境,能更好地与 OpenCode 的功能兼容。
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
### 通知不显示
|
|
146
|
+
|
|
147
|
+
OpenCode Desktop 仅在以下情况下显示系统通知:
|
|
148
|
+
|
|
149
|
+
- 在操作系统设置中已为 OpenCode 启用通知,且
|
|
150
|
+
- 应用窗口未处于焦点状态。
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
### 重置桌面应用存储(最后手段)
|
|
155
|
+
|
|
156
|
+
如果应用无法启动且你无法从 UI 内部清除设置,请重置桌面应用的保存状态。
|
|
157
|
+
|
|
158
|
+
1. 退出 OpenCode Desktop。
|
|
159
|
+
2. 找到并删除以下文件(它们位于 OpenCode Desktop 应用数据目录中):
|
|
160
|
+
|
|
161
|
+
- `opencode.settings.dat`(桌面默认服务器 URL)
|
|
162
|
+
- `opencode.global.dat` 和 `opencode.workspace.*.dat`(UI 状态,如最近的服务器/项目)
|
|
163
|
+
|
|
164
|
+
快速找到该目录:
|
|
165
|
+
|
|
166
|
+
- **macOS**: Finder -> `Cmd+Shift+G` -> `~/Library/Application Support`(然后搜索上述文件名)
|
|
167
|
+
- **Linux**: 在 `~/.local/share` 下搜索上述文件名
|
|
168
|
+
- **Windows**: 按 `WIN+R` -> `%APPDATA%`(然后搜索上述文件名)
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## 获取帮助
|
|
173
|
+
|
|
174
|
+
如果你遇到 OpenCode 的问题:
|
|
175
|
+
|
|
176
|
+
1. **在 GitHub 上报告问题**
|
|
177
|
+
|
|
178
|
+
报告 Bug 或请求功能的最佳方式是通过我们的 GitHub 仓库:
|
|
179
|
+
|
|
180
|
+
[**github.com/anomalyco/opencode/issues**](https://github.com/anomalyco/opencode/issues)
|
|
181
|
+
|
|
182
|
+
在创建新 Issue 之前,请先搜索已有的 Issue,看看你的问题是否已被报告。
|
|
183
|
+
|
|
184
|
+
2. **加入我们的 Discord**
|
|
185
|
+
|
|
186
|
+
如需实时帮助和社区讨论,请加入我们的 Discord 服务器:
|
|
187
|
+
|
|
188
|
+
[**opencode.ai/discord**](https://opencode.ai/discord)
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## 常见问题
|
|
193
|
+
|
|
194
|
+
以下是一些常见问题及其解决方法。
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
### OpenCode 无法启动
|
|
199
|
+
|
|
200
|
+
1. 检查日志中的错误消息
|
|
201
|
+
2. 尝试使用 `--print-logs` 运行以在终端中查看输出
|
|
202
|
+
3. 使用 `opencode upgrade` 确保你使用的是最新版本
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
### 身份验证问题
|
|
207
|
+
|
|
208
|
+
1. 尝试在 TUI 中使用 `/connect` 命令重新进行身份验证
|
|
209
|
+
2. 检查你的 API 密钥是否有效
|
|
210
|
+
3. 确保你的网络允许连接到提供商的 API
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
### 模型不可用
|
|
215
|
+
|
|
216
|
+
1. 检查你是否已通过提供商的身份验证
|
|
217
|
+
2. 验证配置中的模型名称是否正确
|
|
218
|
+
3. 某些模型可能需要特定的访问权限或订阅
|
|
219
|
+
|
|
220
|
+
如果你遇到 `ProviderModelNotFoundError`,很可能是在某处错误地引用了模型。
|
|
221
|
+
模型应按如下方式引用:`<providerId>/<modelId>`
|
|
222
|
+
|
|
223
|
+
示例:
|
|
224
|
+
|
|
225
|
+
- `openai/gpt-4.1`
|
|
226
|
+
- `openrouter/google/gemini-2.5-flash`
|
|
227
|
+
- `opencode/kimi-k2`
|
|
228
|
+
|
|
229
|
+
要查看你有权访问哪些模型,请运行 `opencode models`
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
### ProviderInitError
|
|
234
|
+
|
|
235
|
+
如果你遇到 ProviderInitError,很可能是配置无效或已损坏。
|
|
236
|
+
|
|
237
|
+
要解决此问题:
|
|
238
|
+
|
|
239
|
+
1. 首先,按照[提供商指南](/docs/providers)验证你的提供商是否已正确设置
|
|
240
|
+
2. 如果问题仍然存在,请尝试清除已存储的配置:
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
rm -rf ~/.local/share/opencode
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
在 Windows 上,按 `WIN+R` 并删除:`%USERPROFILE%\.local\share\opencode`
|
|
247
|
+
|
|
248
|
+
3. 在 TUI 中使用 `/connect` 命令重新与提供商进行身份验证。
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
### AI_APICallError 和提供商包问题
|
|
253
|
+
|
|
254
|
+
如果你遇到 API 调用错误,可能是由于提供商包过期导致的。OpenCode 会根据需要动态安装提供商包(OpenAI、Anthropic、Google 等)并将它们缓存到本地。
|
|
255
|
+
|
|
256
|
+
要解决提供商包问题:
|
|
257
|
+
|
|
258
|
+
1. 清除提供商包缓存:
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
rm -rf ~/.cache/opencode
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
在 Windows 上,按 `WIN+R` 并删除:`%USERPROFILE%\.cache\opencode`
|
|
265
|
+
|
|
266
|
+
2. 重新启动 OpenCode 以重新安装最新的提供商包
|
|
267
|
+
|
|
268
|
+
这将强制 OpenCode 下载最新版本的提供商包,通常可以解决模型参数和 API 变更带来的兼容性问题。
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
### 在 Linux 上复制/粘贴不可用
|
|
273
|
+
|
|
274
|
+
Linux 用户需要安装以下剪贴板工具之一,复制/粘贴功能才能正常工作:
|
|
275
|
+
|
|
276
|
+
**对于 X11 系统:**
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
apt install -y xclip
|
|
280
|
+
# or
|
|
281
|
+
apt install -y xsel
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
**对于 Wayland 系统:**
|
|
285
|
+
|
|
286
|
+
```bash
|
|
287
|
+
apt install -y wl-clipboard
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**对于无头环境:**
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
apt install -y xvfb
|
|
294
|
+
# and run:
|
|
295
|
+
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
|
296
|
+
export DISPLAY=:99.0
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
OpenCode 会检测你是否正在使用 Wayland 并优先使用 `wl-clipboard`,否则将按以下顺序尝试查找剪贴板工具:`xclip` 和 `xsel`。
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: TUI
|
|
3
|
+
description: 使用 OpenCode 终端用户界面。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Tabs, TabItem } from "@astrojs/starlight/components"
|
|
7
|
+
|
|
8
|
+
OpenCode 提供了一个交互式终端界面(TUI),用于配合 LLM 处理您的项目。
|
|
9
|
+
|
|
10
|
+
运行 OpenCode 即可启动当前目录的 TUI。
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
opencode
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
或者您可以为指定的工作目录启动它。
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
opencode /path/to/project
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
进入 TUI 后,您可以输入消息进行提示。
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
Give me a quick summary of the codebase.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 文件引用
|
|
31
|
+
|
|
32
|
+
您可以使用 `@` 在消息中引用文件。这会在当前工作目录中进行模糊文件搜索。
|
|
33
|
+
|
|
34
|
+
:::tip
|
|
35
|
+
您还可以使用 `@` 来引用消息中的文件。
|
|
36
|
+
:::
|
|
37
|
+
|
|
38
|
+
```text "@packages/functions/src/api/index.ts"
|
|
39
|
+
How is auth handled in @packages/functions/src/api/index.ts?
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
文件的内容会自动添加到对话中。
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Bash 命令
|
|
47
|
+
|
|
48
|
+
以 `!` 开头的消息会作为 shell 命令执行。
|
|
49
|
+
|
|
50
|
+
```bash frame="none"
|
|
51
|
+
!ls -la
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
命令的输出会作为工具结果添加到对话中。
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 命令
|
|
59
|
+
|
|
60
|
+
使用 OpenCode TUI 时,您可以输入 `/` 后跟命令名称来快速执行操作。例如:
|
|
61
|
+
|
|
62
|
+
```bash frame="none"
|
|
63
|
+
/help
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
大多数命令还支持以 `ctrl+x` 作为前导键的快捷键,其中 `ctrl+x` 是默认前导键。[了解更多](/docs/keybinds)。
|
|
67
|
+
|
|
68
|
+
以下是所有可用的斜杠命令:
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### connect
|
|
73
|
+
|
|
74
|
+
将提供商添加到 OpenCode。允许您从可用的提供商中选择并添加其 API 密钥。
|
|
75
|
+
|
|
76
|
+
```bash frame="none"
|
|
77
|
+
/connect
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### compact
|
|
83
|
+
|
|
84
|
+
压缩当前会话。_别名_:`/summarize`
|
|
85
|
+
|
|
86
|
+
```bash frame="none"
|
|
87
|
+
/compact
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**快捷键:** `ctrl+x c`
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### details
|
|
95
|
+
|
|
96
|
+
切换工具执行详情的显示。
|
|
97
|
+
|
|
98
|
+
```bash frame="none"
|
|
99
|
+
/details
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**快捷键:** `ctrl+x d`
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### editor
|
|
107
|
+
|
|
108
|
+
打开外部编辑器来编写消息。使用 `EDITOR` 环境变量中设置的编辑器。[了解更多](#editor-setup)。
|
|
109
|
+
|
|
110
|
+
```bash frame="none"
|
|
111
|
+
/editor
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**快捷键:** `ctrl+x e`
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
### exit
|
|
119
|
+
|
|
120
|
+
退出 OpenCode。_别名_:`/quit`、`/q`
|
|
121
|
+
|
|
122
|
+
```bash frame="none"
|
|
123
|
+
/exit
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**快捷键:** `ctrl+x q`
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
### export
|
|
131
|
+
|
|
132
|
+
将当前对话导出为 Markdown 并在默认编辑器中打开。使用 `EDITOR` 环境变量中设置的编辑器。[了解更多](#editor-setup)。
|
|
133
|
+
|
|
134
|
+
```bash frame="none"
|
|
135
|
+
/export
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**快捷键:** `ctrl+x x`
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### help
|
|
143
|
+
|
|
144
|
+
显示帮助对话框。
|
|
145
|
+
|
|
146
|
+
```bash frame="none"
|
|
147
|
+
/help
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**快捷键:** `ctrl+x h`
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
### init
|
|
155
|
+
|
|
156
|
+
创建或更新 `AGENTS.md` 文件。[了解更多](/docs/rules)。
|
|
157
|
+
|
|
158
|
+
```bash frame="none"
|
|
159
|
+
/init
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**快捷键:** `ctrl+x i`
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### models
|
|
167
|
+
|
|
168
|
+
列出可用模型。
|
|
169
|
+
|
|
170
|
+
```bash frame="none"
|
|
171
|
+
/models
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**快捷键:** `ctrl+x m`
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### new
|
|
179
|
+
|
|
180
|
+
开始新的会话。_别名_:`/clear`
|
|
181
|
+
|
|
182
|
+
```bash frame="none"
|
|
183
|
+
/new
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**快捷键:** `ctrl+x n`
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### redo
|
|
191
|
+
|
|
192
|
+
重做之前撤销的消息。仅在使用 `/undo` 后可用。
|
|
193
|
+
|
|
194
|
+
:::tip
|
|
195
|
+
所有文件更改也会被恢复。
|
|
196
|
+
:::
|
|
197
|
+
|
|
198
|
+
在内部,这使用 Git 来管理文件更改。因此您的项目**需要是一个 Git 仓库**。
|
|
199
|
+
|
|
200
|
+
```bash frame="none"
|
|
201
|
+
/redo
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**快捷键:** `ctrl+x r`
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
### sessions
|
|
209
|
+
|
|
210
|
+
列出会话并在会话之间切换。_别名_:`/resume`、`/continue`
|
|
211
|
+
|
|
212
|
+
```bash frame="none"
|
|
213
|
+
/sessions
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**快捷键:** `ctrl+x l`
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
### share
|
|
221
|
+
|
|
222
|
+
分享当前会话。[了解更多](/docs/share)。
|
|
223
|
+
|
|
224
|
+
```bash frame="none"
|
|
225
|
+
/share
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**快捷键:** `ctrl+x s`
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
### themes
|
|
233
|
+
|
|
234
|
+
列出可用主题。
|
|
235
|
+
|
|
236
|
+
```bash frame="none"
|
|
237
|
+
/themes
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**快捷键:** `ctrl+x t`
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
### thinking
|
|
245
|
+
|
|
246
|
+
切换对话中思考/推理块的可见性。启用后,您可以看到支持扩展思考的模型的推理过程。
|
|
247
|
+
|
|
248
|
+
:::note
|
|
249
|
+
此命令仅控制思考块是否**显示** — 它不会启用或禁用模型的推理能力。要切换实际的推理能力,请使用 `ctrl+t` 循环切换模型变体。
|
|
250
|
+
:::
|
|
251
|
+
|
|
252
|
+
```bash frame="none"
|
|
253
|
+
/thinking
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
### undo
|
|
259
|
+
|
|
260
|
+
撤销对话中的最后一条消息。移除最近的用户消息、所有后续响应以及所有文件更改。
|
|
261
|
+
|
|
262
|
+
:::tip
|
|
263
|
+
所做的任何文件更改也会被还原。
|
|
264
|
+
:::
|
|
265
|
+
|
|
266
|
+
在内部,这使用 Git 来管理文件更改。因此您的项目**需要是一个 Git 仓库**。
|
|
267
|
+
|
|
268
|
+
```bash frame="none"
|
|
269
|
+
/undo
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
**快捷键:** `ctrl+x u`
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
### unshare
|
|
277
|
+
|
|
278
|
+
取消分享当前会话。[了解更多](/docs/share#un-sharing)。
|
|
279
|
+
|
|
280
|
+
```bash frame="none"
|
|
281
|
+
/unshare
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 编辑器设置
|
|
287
|
+
|
|
288
|
+
`/editor` 和 `/export` 命令都使用 `EDITOR` 环境变量中指定的编辑器。
|
|
289
|
+
|
|
290
|
+
<Tabs>
|
|
291
|
+
<TabItem label="Linux/macOS">
|
|
292
|
+
```bash
|
|
293
|
+
# Example for nano or vim
|
|
294
|
+
export EDITOR=nano
|
|
295
|
+
export EDITOR=vim
|
|
296
|
+
|
|
297
|
+
# For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
|
|
298
|
+
# include --wait
|
|
299
|
+
export EDITOR="code --wait"
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
要使其永久生效,请将其添加到您的 shell 配置文件中;
|
|
303
|
+
`~/.bashrc`、`~/.zshrc` 等。
|
|
304
|
+
|
|
305
|
+
</TabItem>
|
|
306
|
+
|
|
307
|
+
<TabItem label="Windows (CMD)">
|
|
308
|
+
```bash
|
|
309
|
+
set EDITOR=notepad
|
|
310
|
+
|
|
311
|
+
# For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
|
|
312
|
+
# include --wait
|
|
313
|
+
set EDITOR=code --wait
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
要使其永久生效,请使用**系统属性** > **环境变量**。
|
|
317
|
+
|
|
318
|
+
</TabItem>
|
|
319
|
+
|
|
320
|
+
<TabItem label="Windows (PowerShell)">
|
|
321
|
+
```powershell
|
|
322
|
+
$env:EDITOR = "notepad"
|
|
323
|
+
|
|
324
|
+
# For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
|
|
325
|
+
# include --wait
|
|
326
|
+
$env:EDITOR = "code --wait"
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
要使其永久生效,请将其添加到您的 PowerShell 配置文件中。
|
|
330
|
+
|
|
331
|
+
</TabItem>
|
|
332
|
+
</Tabs>
|
|
333
|
+
|
|
334
|
+
常用的编辑器选项包括:
|
|
335
|
+
|
|
336
|
+
- `code` - Visual Studio Code
|
|
337
|
+
- `cursor` - Cursor
|
|
338
|
+
- `windsurf` - Windsurf
|
|
339
|
+
- `nvim` - Neovim 编辑器
|
|
340
|
+
- `vim` - Vim 编辑器
|
|
341
|
+
- `nano` - Nano 编辑器
|
|
342
|
+
- `notepad` - Notepad(Windows 记事本)
|
|
343
|
+
- `subl` - Sublime Text
|
|
344
|
+
|
|
345
|
+
:::note
|
|
346
|
+
某些编辑器(如 VS Code)需要以 `--wait` 标志启动。
|
|
347
|
+
:::
|
|
348
|
+
|
|
349
|
+
某些编辑器需要命令行参数才能以阻塞模式运行。`--wait` 标志使编辑器进程阻塞直到关闭。
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## 配置
|
|
354
|
+
|
|
355
|
+
您可以通过 `tui.json`(或 `tui.jsonc`)自定义 TUI 行为。
|
|
356
|
+
|
|
357
|
+
```json title="tui.json"
|
|
358
|
+
{
|
|
359
|
+
"$schema": "https://opencode.ai/tui.json",
|
|
360
|
+
"theme": "opencode",
|
|
361
|
+
"leader_timeout": 2000,
|
|
362
|
+
"keybinds": {
|
|
363
|
+
"leader": "ctrl+x",
|
|
364
|
+
"command_list": "ctrl+p"
|
|
365
|
+
},
|
|
366
|
+
"scroll_speed": 3,
|
|
367
|
+
"scroll_acceleration": {
|
|
368
|
+
"enabled": false
|
|
369
|
+
},
|
|
370
|
+
"diff_style": "auto",
|
|
371
|
+
"mouse": true,
|
|
372
|
+
"attention": {
|
|
373
|
+
"enabled": true,
|
|
374
|
+
"notifications": true,
|
|
375
|
+
"sound": true,
|
|
376
|
+
"volume": 0.4,
|
|
377
|
+
"sound_pack": "opencode.default",
|
|
378
|
+
"sounds": {
|
|
379
|
+
"error": "./sounds/error.mp3"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
这与 `opencode.json` 是分开的;`opencode.json` 用于配置服务器和运行时行为。
|
|
386
|
+
|
|
387
|
+
`keybinds` 会与内置默认值合并,因此你只需要配置想要修改的快捷键。
|
|
388
|
+
|
|
389
|
+
### 选项
|
|
390
|
+
|
|
391
|
+
- `theme` - 设置 UI 主题。[了解更多](/docs/themes)。
|
|
392
|
+
- `keybinds` - 自定义键盘快捷键。[了解更多](/docs/keybinds)。
|
|
393
|
+
- `leader_timeout` - 控制按下 leader key 后 OpenCode 等待后续按键的时间。默认为 `2000`。
|
|
394
|
+
- `scroll_acceleration.enabled` - 启用 macOS 风格的滚动加速,让滚动更平滑自然。启用后,快速滚动时速度会增加,慢速移动时仍保持精确。**此设置优先于 `scroll_speed`,启用时会覆盖它。**
|
|
395
|
+
- `scroll_speed` - 控制使用滚动命令时 TUI 的滚动速度(最小值:`0.001`,支持小数)。默认为 `3`。**注意:如果 `scroll_acceleration.enabled` 设置为 `true`,则此设置会被忽略。**
|
|
396
|
+
- `diff_style` - 控制 diff 的显示方式。`"auto"` 会根据终端宽度自适应,`"stacked"` 始终显示单列布局。
|
|
397
|
+
- `mouse` - 在 TUI 中启用或禁用鼠标捕获(默认:`true`)。禁用后,终端原生的鼠标选择和滚动行为会保留下来。
|
|
398
|
+
- `attention` - 配置 TUI 桌面通知和声音。默认禁用。
|
|
399
|
+
|
|
400
|
+
使用 `OPENCODE_TUI_CONFIG` 可以加载自定义的 TUI 配置文件路径。
|
|
401
|
+
|
|
402
|
+
### Attention
|
|
403
|
+
|
|
404
|
+
当 OpenCode 需要你处理问题、批准权限请求、查看会话错误,或想告知会话已完成时,TUI 可以通过声音和桌面通知提醒你。设置 `attention.enabled` 后会启用这些提醒;内置事件触发时会播放声音。桌面通知只会在终端窗口未聚焦时发送,并且不会用于 subagent 事件。
|
|
405
|
+
|
|
406
|
+
- `enabled` - 开启 Attention 的所有通知和声音。默认为 `false`。
|
|
407
|
+
- `notifications` - 启用 Attention 后,允许 TUI 通过终端发送桌面通知。默认为 `true`。
|
|
408
|
+
- `sound` - 启用 Attention 后,允许播放提示音。默认为 `true`。
|
|
409
|
+
- `volume` - 默认提示音音量,范围从 `0` 到 `1`。默认为 `0.4`。
|
|
410
|
+
- `sound_pack` - 要使用的 sound pack ID。默认为 `opencode.default`。
|
|
411
|
+
- `sounds` - 为 `default`、`question`、`permission`、`error`、`done` 或 `subagent_done` 指定自定义声音文件。路径可以是绝对路径、`file://` URL,或相对于 `tui.json` 的路径。
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## 自定义
|
|
416
|
+
|
|
417
|
+
您可以使用命令面板(`ctrl+x h` 或 `/help`)自定义 TUI 视图的各个方面。这些设置在重启后仍会保留。
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
#### 用户名显示
|
|
422
|
+
|
|
423
|
+
切换您的用户名是否显示在聊天消息中。通过以下方式访问:
|
|
424
|
+
|
|
425
|
+
- 命令面板:搜索 "username" 或 "hide username"
|
|
426
|
+
- 该设置会自动保存,并在各个 TUI 会话中保持记忆
|