Feature/provider onboarding stack - #38
Open
HarriethWiKk wants to merge 27 commits into
Open
Conversation
- secrets-store:~/.rivet/secrets.json 0600 存储,write/read/delete - manager:内联 apiKey 一次性迁移为 keyRef;loadConfig 内存物化、saveConfig 剥离明文 - factory/provider-cli:密钥解析链首位插入 keyRef - 首启 readline 向导降级为最小 preset 接入(TUI 走 /connect,自定义走 provider add)
…y 头 + base-url 落库规范化
…接再探测,密钥不必重输;探测失败「返回修改地址」同样预填并免重走密钥步
…失败只留原因建议);型号选取智能回退优先别名表认识的识图/多模态档;报告页补全失败新增「换个模型重探」
(cherry picked from commit 608399f7d7dee21987f3ec85402499d537faab83)
(cherry picked from commit 9a689d09be832de44ff863efc01e33a2008f4e0f)
HarriethWiKk
marked this pull request as draft
August 14, 2026 13:26
HarriethWiKk
marked this pull request as ready for review
August 14, 2026 13:43
HarriethWiKk
force-pushed
the
feature/provider-onboarding-stack
branch
from
August 14, 2026 14:07
8161dc2 to
a67422f
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.
变更摘要
统一 Provider onboarding 流程,新增 probe-first 接入、凭证安全存储、TUI
/connect配置向导,以及独立视觉模型/visiononboarding 闭环。动机
现有 Provider 配置路径分散在旧版 readline wizard、预设逻辑和通用配置接口中,存在以下问题:
本 PR 将这些路径收敛为统一、可验证、可恢复的 Provider onboarding 流程。
主要改动
Provider API 与模型能力
/models;x-api-key认证和 Provider-specific request metadata。配置与凭证
secrets.json,config.json只保存keyRef。apiKey与apiKeyEnv同时提交。keyRef或半成品 Provider。supportsVision、tier、pricing等已有元数据。TUI onboarding
/connect替代旧 readline Provider wizard。provider-wizard.ts及其测试路径。独立视觉模型 onboarding
/visionTUI 流程。POST /config/vision-model/discoverPOST /config/vision-model/onboard/models并验证候选模型归属。文档
src/config/provider-wizard.ts的现行文档引用。测试
已通过:
/connectflow、草稿、列表、光标和恢复测试;/visionflow 与 overlay 测试;npm run typecheck通过;git diff --check origin/main...HEAD通过。完整
npm test尚未在本 PR 分支上得到可确认的稳定汇总结果。此前完整测试运行存在聚合进程异常,因此不将其宣称为全部通过;检查清单
npm test通过 //此问题在PR#36得到解决npm run typecheck无类型错误相关 Issue
暂无。
基线合并说明
本 PR 已合并最新
upstream/main(截至3618261),并处理了 Provider 相关冲突。合并保留了本 PR 的核心 Provider onboarding 能力:
secrets.json/keyRef凭证存储;/connectonboarding、草稿恢复和错误重试;/vision视觉模型发现、验证与持久化;同时吸收基线中的运行时与配置改进:
slowThinking显式配置及 provider 名称/base URL 启发式;slowThinking、firstByteTimeoutMs、thinkingStallTimeoutMs;requestTimeoutMs硬超时;冲突处理原则:
registerProvider()统一写入核心,未回退到旧单模型setupCustomProvider()路径;provider-wizard没有被恢复。验证:
npm run typecheck通过;已知基线问题:
upstream/main自身在公开构建中存在一个 computer-use Pro gate 测试失败(闭源src/pro/computer-use模块缺席时测试预期不一致)。该失败可在干净upstream/main复现,与本 PR 的 Provider 合并无关。Reviewer 可以按以下四个阶段审查:
80f71c5–eba9268:Provider 基础与探测;
2256880–c9fa861:TUI /connect 主流程;
7f10847–c99708d:生命周期、凭证安全和旧 wizard 清理;
6161601–bf7d63e:视觉 onboarding、回滚修复和文档收尾。