Repository navigation
add bili zed launcher: cert-MITM for the Zed editor + adopt-unlisted-clients docs (#2340) - #2352
Conversation
One-line /bili/ prefix works for any API-key client whose model base URL is editable. Verified entry points (Cline/Roo/Kilo, Continue, OpenHands, Zed, Void, Cursor override, Warp) documented in CLIENTS.md + zh mirror, with a pointer from CONFIGURATION.md's /bili/ prefix section.
Zed's model traffic rides the shared reqwest+rustls client whose roots
resolve through rustls-platform-verifier -> rustls-native-certs ->
openssl-probe — which reads SSL_CERT_FILE first on Linux (unlike goose's
webpki-locked release builds). So the launcher gets the jcode env
contract: HTTPS_PROXY + SSL_CERT_FILE (combined bundle) + NO_PROXY so
loopback providers (ollama/lmstudio) stay direct.
Whitelist = ZED_DEFAULT_MODEL_HOSTS (built-in anthropic/openai/google/
deepseek/xai/mistral/openrouter hosts) + custom provider api_urls
auto-discovered read-only from settings.json
language_models.{openai_compatible,anthropic_compatible}.<id>.api_url
(https only, soft-fail); exotic relays ride --mitm-domain.
macOS/Windows note: their platform verifiers ignore env CA files —
there the settings.json api_url /bili/ prefix path (documented in the
new CLIENTS adoption section) is the cross-platform alternative.
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.2514-pr.2352.aa57984This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr2352.tgz
npm install -g packageInstall instructions are refreshed on each push. |
[bot] 🏷 PR #2352 review 完成(branch ① 原 issue 方向:#2340 计划项 2(Zed)+ 5(文档收养)。实现严格按你 floor-5 复核后的 spike 结论走(Linux openssl-probe 先读 ② 回归清单(触碰路径逐项既有行为):
③ 代码:逻辑干净,几个关键点核实过:
④ 测试有效性:5 个新测试均为有牙真测——buildZedEnv 钉 env 契约全量(含 NO_PROXY 双写);discoverRoutes 钉默认域 + 去重 + https-only(含 not-a-url / http loopback 负例);readZedConfig 用真实 fixture 覆盖 junk/损坏/缺失软失败;runLaunch zed 端到端 env 捕获(combined-ca 路径后缀断言 + 继承代理剥离 + BILI_TEST_MARKER 继承保留)。bug 回归时抓得住,非恒真。 ⑤ diff 整洁度:11 文件每行都与本 PR 目的相关,无跑题文件/空行重排/锁文件 churn。 CI:head 4d7b281 上 10 个 workflow 全绿(含主 CI gate = typecheck + 全量 suite + build)。本地定向复验一致:typecheck rc=0;launcher.test.ts 291 pass / 1 pre-existing skip / 0 fail;cli-parseargs/web-i18n/text-safe/panel-tokens/discover 59/59。 两个非阻断备注:
结构化七问:
判定:可合并。feat 类,按规则由你人工合并:#2352 。合并后 #2340 计划 1/2/5 完成,3 收敛为文档覆盖,4 保持低优先——该 issue 即可关闭。 |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.118-master.126de7a # this exact build
npm install -g billion-context@master # always the newest merged build
|
为什么
#2340 计划第 2 项。Zed spike 结论(issue #2340 计划内验证):
crates/reqwest_client),代理经ProxySettings.proxyenv 兜底(HTTPS_PROXY/https_proxy/…双路生效);SSL_CERT_FILE/SSL_CERT_DIR优先于系统库(Linux)——不是 goose 那种 webpki 焊死(新增 bili copilot / bili amp / bili goose 启动器(第三梯队) #1049),cert-MITM 成立;api_url/bili/前缀路径(跨平台替代)。内容(两个 commit)
/bili/前缀即全功能;已核实入口表(Cline/Roo/Kilo、Continue、OpenHands、Zed、Void、Cursor Override、Warp);CONFIGURATION.md/zh/bili/节加指针。bili zedlauncher — jcode 同款 env 契约(HTTPS_PROXY + SSL_CERT_FILE combined bundle + NO_PROXY 环回旁路,ollama/lmstudio 本地 provider 保持直连);ZED_DEFAULT_MODEL_HOSTS(anthropic/openai/google/deepseek/xai/mistral/openrouter)+readZedConfig只读发现settings.json的language_models.{openai_compatible,anthropic_compatible}.<id>.api_url(仅 https、软失败);MCP 注入排除(纯 wire 模式);cli help/web chips/README 中英表行+badge;CLIENTS 收养节 Zed 行改为指向 launcher。行为变化披露
bili zed启动(README/cli 帮助已写)。验证
Closes #2340(计划 1 Crush、2 Zed、5 文档收养完成;3 Continue=文档覆盖(无 CLI 可 launch,apiBase 路径已列表);4 OpenHands 低优先保持)
Supersedes: none。Stack: 无栈基(master)。