chore: generate

This commit is contained in:
opencode-agent[bot]
2026-02-09 19:57:32 +00:00
parent 274bb948e7
commit 389afef336
65 changed files with 823 additions and 793 deletions

View File

@@ -15,38 +15,38 @@ description: 使用 OpenCode 构建的项目和集成。
## 插件
| 名稱 | 描述 |
| --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [Opencode-Daytona](https://github.com/jamesmurdza/daytona/blob/main/guides/typescript/opencode/README.md) | 在隔离的 Daytona 沙箱中自动运行 OpenCode 会话,并使用 git 同步和实时预览 |
| [opencode-helicone-会话](https://github.com/H2Shami/opencode-helicone-session) | 自动注入 Helicone 会话标头以进行请求包 |
| [打开代码类型注入](https://github.com/nick-vi/opencode-type-inject) | 使用查找工具将 TypeScript/Svelte 类型自动注入到文件读取中 |
| [opencode-openai-codex-auth](https://github.com/numman-ali/opencode-openai-codex-auth) | 使用您的 ChatGPT Plus/Pro 订阅而不是 API 积分 |
| [opencode-gemini-auth](https://github.com/jenslys/opencode-gemini-auth) | 使用您现有的 Gemini 计划而不是 API 设备 |
| [opencode-反重力-auth](https://github.com/NoeFabris/opencode-antigravity-auth) | 使用反重力的免费模型代替API |
| [opencode-devcontainers 开放代码开发容器](https://github.com/athal7/opencode-devcontainers) | 具有浅克隆和自动分配端口的多分支开发容器隔离 |
| [opencode-google-antigravity-auth](https://github.com/shekohex/opencode-google-antigravity-auth) | Google Antigravity OAuth 插件,支持 Google 搜索和更强大的 API 处理 |
| [opencode-动态宽度修剪](https://github.com/Tarquinen/opencode-dynamic-context-pruning) | 通过修剪过时的工具输出来优化代币使用 |
| [opencode-websearch-引用](https://github.com/ghoulr/opencode-websearch-cited.git) | 为具有Google接地风格的受支持增加本机网络搜索支持 |
| [opencode-pty](https://github.com/shekohex/opencode-pty.git) | 使AI代理能够在PTY中运行后台进程末端发送其交互输入。 |
| [opencode-shell-策略](https://github.com/JRedeker/opencode-shell-strategy) | 非吸引力 shell 命令说明 - 阻止依赖 TTY 的操作挂起 |
| [opencode-wakatime](https://github.com/angristan/opencode-wakatime) | 使用 Wakatime 跟踪 OpenCode 使用情况 |
| [opencode-md-表清理程序](https://github.com/franlol/opencode-md-table-formatter/tree/main) | 清理法学大师生成的降价表 |
| [开放代码变形快速应用](https://github.com/JRedeker/opencode-morph-fast-apply) | 使用Morph Fast Apply API和取消编辑标记将代码编辑速度提高10倍 |
| [哦我的开放代码](https://github.com/code-yeongyu/oh-my-opencode) | 后台代理、预构建的LSP/AST/MCP工具、精选代理、兼容Claude代码 |
| [开放代码通知器](https://github.com/panta82/opencode-notificator) | OpenCode 会话的桌面通知和声音警报 |
| [开放代码通知程序](https://github.com/mohak34/opencode-notifier) | 针对权限、完成和错误事件的桌面通知和声音警报 |
| [opencode-zellij-namer](https://github.com/24601/opencode-zellij-namer) | 基于 OpenCode 上下文的 AI 支持的自动 Zellij 会话命名 |
| [开放代码技巧](https://github.com/zenobi-us/opencode-skillful) | 允许OpenCode代理通过技能发现和注入失败延迟加载提示 |
| [开放代码超级内存](https://github.com/supermemoryai/opencode-supermemory) | 使用超级内存跨会话持久内存 |
| [@ZZPH0ZZ](https://github.com/backnotprop/plannotator/tree/main/apps/opencode-plugin) | 具有視覺註釋和私人/離線共享的交互式計劃審查 |
| [@ZZPH0ZZ](https://github.com/spoons-and-mirrors/subtask2) | 將開放代碼/命令擴展為具有精細流程控制的強大編排系統 |
| [开放代码调度程序](https://github.com/different-ai/opencode-scheduler) | 使用带 cron 语法的 launchd (Mac) 或 systemd (Linux) 安排重复作业 |
| [微码](https://github.com/vtemian/micode) | 塑造头脑风暴 → 计划 → 实施具有会议连续性的工作流程 |
| [奥克托](https://github.com/vtemian/octto) | 用于通过多问题形式进行AI头痛风暴的交互式浏览器UI |
| [opencode-后台代理](https://github.com/kdcokenny/opencode-background-agents) | 具有异步委托和上下文持久性的Claude Code风格后台代理 |
| [打开代码通知](https://github.com/kdcokenny/opencode-notify) | OpenCode 的本机操作系统通知 了解任务何时完成 |
| [开放代码工作区](https://github.com/kdcokenny/opencode-workspace) | 一堆多代理编排工具 16个组件一次安装 |
| [开放代码工作树](https://github.com/kdcokenny/opencode-worktree) | OpenCode 的零难度 git 工作树 |
| 名稱 | 描述 |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [Opencode-Daytona](https://github.com/jamesmurdza/daytona/blob/main/guides/typescript/opencode/README.md) | 在隔离的 Daytona 沙箱中自动运行 OpenCode 会话,并使用 git 同步和实时预览 |
| [opencode-helicone-会话](https://github.com/H2Shami/opencode-helicone-session) | 自动注入 Helicone 会话标头以进行请求包 |
| [打开代码类型注入](https://github.com/nick-vi/opencode-type-inject) | 使用查找工具将 TypeScript/Svelte 类型自动注入到文件读取中 |
| [opencode-openai-codex-auth](https://github.com/numman-ali/opencode-openai-codex-auth) | 使用您的 ChatGPT Plus/Pro 订阅而不是 API 积分 |
| [opencode-gemini-auth](https://github.com/jenslys/opencode-gemini-auth) | 使用您现有的 Gemini 计划而不是 API 设备 |
| [opencode-反重力-auth](https://github.com/NoeFabris/opencode-antigravity-auth) | 使用反重力的免费模型代替API |
| [opencode-devcontainers 开放代码开发容器](https://github.com/athal7/opencode-devcontainers) | 具有浅克隆和自动分配端口的多分支开发容器隔离 |
| [opencode-google-antigravity-auth](https://github.com/shekohex/opencode-google-antigravity-auth) | Google Antigravity OAuth 插件,支持 Google 搜索和更强大的 API 处理 |
| [opencode-动态宽度修剪](https://github.com/Tarquinen/opencode-dynamic-context-pruning) | 通过修剪过时的工具输出来优化代币使用 |
| [opencode-websearch-引用](https://github.com/ghoulr/opencode-websearch-cited.git) | 为具有Google接地风格的受支持增加本机网络搜索支持 |
| [opencode-pty](https://github.com/shekohex/opencode-pty.git) | 使AI代理能够在PTY中运行后台进程末端发送其交互输入。 |
| [opencode-shell-策略](https://github.com/JRedeker/opencode-shell-strategy) | 非吸引力 shell 命令说明 - 阻止依赖 TTY 的操作挂起 |
| [opencode-wakatime](https://github.com/angristan/opencode-wakatime) | 使用 Wakatime 跟踪 OpenCode 使用情况 |
| [opencode-md-表清理程序](https://github.com/franlol/opencode-md-table-formatter/tree/main) | 清理法学大师生成的降价表 |
| [开放代码变形快速应用](https://github.com/JRedeker/opencode-morph-fast-apply) | 使用Morph Fast Apply API和取消编辑标记将代码编辑速度提高10倍 |
| [哦我的开放代码](https://github.com/code-yeongyu/oh-my-opencode) | 后台代理、预构建的LSP/AST/MCP工具、精选代理、兼容Claude代码 |
| [开放代码通知器](https://github.com/panta82/opencode-notificator) | OpenCode 会话的桌面通知和声音警报 |
| [开放代码通知程序](https://github.com/mohak34/opencode-notifier) | 针对权限、完成和错误事件的桌面通知和声音警报 |
| [opencode-zellij-namer](https://github.com/24601/opencode-zellij-namer) | 基于 OpenCode 上下文的 AI 支持的自动 Zellij 会话命名 |
| [开放代码技巧](https://github.com/zenobi-us/opencode-skillful) | 允许OpenCode代理通过技能发现和注入失败延迟加载提示 |
| [开放代码超级内存](https://github.com/supermemoryai/opencode-supermemory) | 使用超级内存跨会话持久内存 |
| [@ZZPH0ZZ](https://github.com/backnotprop/plannotator/tree/main/apps/opencode-plugin) | 具有視覺註釋和私人/離線共享的交互式計劃審查 |
| [@ZZPH0ZZ](https://github.com/spoons-and-mirrors/subtask2) | 將開放代碼/命令擴展為具有精細流程控制的強大編排系統 |
| [开放代码调度程序](https://github.com/different-ai/opencode-scheduler) | 使用带 cron 语法的 launchd (Mac) 或 systemd (Linux) 安排重复作业 |
| [微码](https://github.com/vtemian/micode) | 塑造头脑风暴 → 计划 → 实施具有会议连续性的工作流程 |
| [奥克托](https://github.com/vtemian/octto) | 用于通过多问题形式进行AI头痛风暴的交互式浏览器UI |
| [opencode-后台代理](https://github.com/kdcokenny/opencode-background-agents) | 具有异步委托和上下文持久性的Claude Code风格后台代理 |
| [打开代码通知](https://github.com/kdcokenny/opencode-notify) | OpenCode 的本机操作系统通知 了解任务何时完成 |
| [开放代码工作区](https://github.com/kdcokenny/opencode-workspace) | 一堆多代理编排工具 16个组件一次安装 |
| [开放代码工作树](https://github.com/kdcokenny/opencode-worktree) | OpenCode 的零难度 git 工作树 |
---

View File

@@ -11,32 +11,32 @@ description: OpenCode 使用特定于语言的清理程序。
OpenCode附带了多个适用于流行语言和框架的内置初始化程序。下面是格式化程序、支持的文件扩展名以及所需的命令或配置选项的列表。
| 格式化程序 | 擴展 | 要求 |
| ------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| 政府 | .go | `gofmt` 命令可用 |
| 混合 | .ex、.exs、.eex、.heex、.leex、.neex、.sface | `mix` 命令可用 |
| 更漂亮 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://prettier.io/docs/en/index.html) | 在 `package.json` 中有 `prettier` 依赖 |
| 生物群系 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://biomejs.dev/) | `biome.json(c)` 配置文件 |
| 之字形 | .zig、.zon | `zig` 命令可用 |
| clang 格式 | .c、.cpp、.h、.hpp、.ino 和 [更多的](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` 配置文件 |
| 克特林特 | .kt、.kts | `ktlint` 命令可用 |
| 领子 | .py, .pyi | `ruff` 命令可通过配置 |
| 生锈 | .rs | `rustfmt` 命令可用 |
| 货物运输 | .rs | `cargo fmt` 命令可用 |
| 美丽 | .py, .pyi | `uv` 命令可用 |
| 鲁博科普 | .rb、.rake、.gemspec、.ru | `rubocop` 命令可用 |
| 标准rb | .rb、.rake、.gemspec、.ru | `standardrb` 命令可用 |
| html美化器 | .erb、.html.erb | `htmlbeautifier` 命令可用 |
| 空气 | .R | `air` 命令可用 |
| 飞镖 | .dart | `dart` 命令可用 |
| ocaml 格式 | .ml、.mli | `ocamlformat` 可用命令和 `.ocamlformat` 配置文件 |
| 地形 | .tf、.tfvars | `terraform` 命令可用 |
| 微光 | .gleam | `gleam` 命令可用 |
| 尼克斯夫MTT | .nix | `nixfmt` 命令可用 |
| sfmt | .sh、.bash | `shfmt` 命令可用 |
| 品脱 | .php | 在 `composer.json` 中有 `laravel/pint` 依赖 |
| 格式化程序 | 擴展 | 要求 |
| ------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| 政府 | .go | `gofmt` 命令可用 |
| 混合 | .ex、.exs、.eex、.heex、.leex、.neex、.sface | `mix` 命令可用 |
| 更漂亮 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://prettier.io/docs/en/index.html) | 在 `package.json` 中有 `prettier` 依赖 |
| 生物群系 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://biomejs.dev/) | `biome.json(c)` 配置文件 |
| 之字形 | .zig、.zon | `zig` 命令可用 |
| clang 格式 | .c、.cpp、.h、.hpp、.ino 和 [更多的](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` 配置文件 |
| 克特林特 | .kt、.kts | `ktlint` 命令可用 |
| 领子 | .py, .pyi | `ruff` 命令可通过配置 |
| 生锈 | .rs | `rustfmt` 命令可用 |
| 货物运输 | .rs | `cargo fmt` 命令可用 |
| 美丽 | .py, .pyi | `uv` 命令可用 |
| 鲁博科普 | .rb、.rake、.gemspec、.ru | `rubocop` 命令可用 |
| 标准rb | .rb、.rake、.gemspec、.ru | `standardrb` 命令可用 |
| html美化器 | .erb、.html.erb | `htmlbeautifier` 命令可用 |
| 空气 | .R | `air` 命令可用 |
| 飞镖 | .dart | `dart` 命令可用 |
| ocaml 格式 | .ml、.mli | `ocamlformat` 可用命令和 `.ocamlformat` 配置文件 |
| 地形 | .tf、.tfvars | `terraform` 命令可用 |
| 微光 | .gleam | `gleam` 命令可用 |
| 尼克斯夫MTT | .nix | `nixfmt` 命令可用 |
| sfmt | .sh、.bash | `shfmt` 命令可用 |
| 品脱 | .php | 在 `composer.json` 中有 `laravel/pint` 依赖 |
| oxfmt实验 | .js、.jsx、.ts、.tsx | 在 `package.json` 中有 `oxfmt` 依赖并启用[实验环境变量标记](/docs/cli/#experimental) |
| 奥尔莫鲁 | .hs | `ormolu` 命令可用 |
| 奥尔莫鲁 | .hs | `ormolu` 命令可用 |
因此,如果您的项目的`package.json`或`prettier`OpenCode将自动使用它。

View File

@@ -152,14 +152,14 @@ use the mcp_everything tool to add the number 3 and 4
#### 選項
| 選項 | 類型 | 必填 | 描述 |
| --------- | ------ | ------ | -------------------------------------------------------------- |
| `type` | 字符串 | 是 | MCP 服务器连接类型,必须是`"remote"`。 |
| `url` | 字符串 | 是 | 远程 MCP 服务器的 URL。 |
| `enabled` | 布尔 | | 在启动时启用或禁用MCP 服务器。 |
| `headers` | 对象 | | 随请求一起发送的标头。 |
| `oauth` | 对象 | | OAuth 身份验证。请参阅下面的配置[开放认证](#oauth) 部分。 |
| `timeout` | 数量 | | 从MCP服务器获取工具的超时以毫秒为单位。默认为50005秒。 |
| 選項 | 類型 | 必填 | 描述 |
| --------- | ------ | ---- | -------------------------------------------------------------- |
| `type` | 字符串 | 是 | MCP 服务器连接类型,必须是`"remote"`。 |
| `url` | 字符串 | 是 | 远程 MCP 服务器的 URL。 |
| `enabled` | 布尔 | | 在启动时启用或禁用MCP 服务器。 |
| `headers` | 对象 | | 随请求一起发送的标头。 |
| `oauth` | 对象 | | OAuth 身份验证。请参阅下面的配置[开放认证](#oauth) 部分。 |
| `timeout` | 数量 | | 从MCP服务器获取工具的超时以毫秒为单位。默认为50005秒。 |
---
@@ -266,12 +266,12 @@ opencode mcp logout my-oauth-server
#### OAuth 选项
| 選項 | 類型 | 描述 |
| -------------- | -------- | --------------------------------------------------- |
| 選項 | 類型 | 描述 |
| -------------- | --------------- | --------------------------------------------------- |
| `oauth` | 对象 \| `false` | OAuth 配置对象,或 `false` 以取消 OAuth 自动检测。 |
| `clientId` | 字符串 | OAuth 客户端 ID。如果未提供将尝试动态客户端注册。 |
| `clientSecret` | 字符串 | OAuth客户端密钥如果需要授权服务器。 |
| `scope` | 字符串 | 授权期间请求的 OAuth 范围。 |
| `clientId` | 字符串 | OAuth 客户端 ID。如果未提供将尝试动态客户端注册。 |
| `clientSecret` | 字符串 | OAuth客户端密钥如果需要授权服务器。 |
| `scope` | 字符串 | 授权期间请求的 OAuth 范围。 |
#### 偵錯

View File

@@ -283,13 +283,13 @@ await client.session.prompt({
### 檔案
| 方法 | 描述 | 回應 |
| ------------------------- | -------------------- | ------------------------------------------------------------------ |
| 方法 | 描述 | 回應 |
| ------------------------- | -------------------- | ----------------------------------------------------------------------------------- |
| `find.text({ query })` | 搜索档案中文字 | 具有 `path`、`lines`、`line_number`、`absolute_offset`、`submatches` 的匹配对象数组 |
| `find.files({ query })` | 按名称查询档案和目录 | `string[]`(路径) |
| `find.symbols({ query })` | 查詢工作區符號 | <a href={typesUrl}><code>符號[]</code></a> |
| `file.read({ query })` | 读取档案 | `{ type: "raw" \| "patch", content: string }` |
| `file.status({ query? })` | 獲取跟蹤檔案的狀態 | <a href={typesUrl}><code>檔案[]</code></a> |
| `find.files({ query })` | 按名称查询档案和目录 | `string[]`(路径) |
| `find.symbols({ query })` | 查詢工作區符號 | <a href={typesUrl}><code>符號[]</code></a> |
| `file.read({ query })` | 读取档案 | `{ type: "raw" \| "patch", content: string }` |
| `file.status({ query? })` | 獲取跟蹤檔案的狀態 | <a href={typesUrl}><code>檔案[]</code></a> |
`find.files` 支持一些可选的查询栏位:

View File

@@ -274,8 +274,8 @@ opencode服务器公开以下API。
### 活動
| 方法 | 路徑 | 描述 | 回應 |
| ----- | -------- | ------------------------------------------------------------------- | -------------------- |
| 方法 | 路徑 | 描述 | 回應 |
| ----- | -------- | ------------------------------------------------------------------- | ------------------ |
| `GET` | `/event` | 服务器发送事件流。第一个事件是 `server.connected`,之后是总线事件。 | 服务器发送事件流。 |
---