feat(extensions): add OpenCode prompt command sources - #1586
Merged
Conversation
limityan
force-pushed
the
yanzhn/opencode-command-sources
branch
from
July 16, 2026 17:05
1f7f233 to
c08bffa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
产品体验
/builtin:<name>仍可立即执行。/builtin:<name>、/external:<name>与/external:<provider>:<name>;键盘、鼠标与直接输入共用同一持久化确认路径。保存失败时只执行当前一次,并明确提示下次仍会询问。架构与可靠性边界
product-domains只定义开放生态 ID、来源限定身份、状态/诊断和 Prompt Command provider 契约。assembly/external-sources单点维护 provider-neutral 的代次、冲突谱系、抑制和降级规则,不按生态 ID 分支。独立对抗性复审
验证
pnpm run type-check:webcargo check --workspacepnpm run i18n:audit(0 warnings)git diff --checkpnpm run lint:web(0 errors;12 个既有 warnings)当前范围
本 PR 不执行 OpenCode JS/TS Tool、Hook、MCP、Subagent 或 package plugin,也不声称完整 OpenCode 配置兼容。后续按设计中的 PR2 Tool、PR3 Subagent 渐进接入真实能力 owner,不修改本 PR 已稳定的来源契约与 adapter 边界。
非阻断后续
当前只注册 OpenCode 一个真实 provider;引入第二个真实生态前,为设置页补充“已解决冲突 / 更改选择”入口。当前 CLI 已可通过显式限定别名切换选择。