Skip to content

v1.4.0

Choose a tag to compare

@wenyinos wenyinos released this 03 Nov 09:36
· 7 commits to main since this release

Corporate proxy support, privacy default, and upstream parity

Corporate networks work now

  • Every outgoing request — Huawei OAuth, token refresh, the model catalog, and both OpenAI and Anthropic inference — honours HTTP_PROXY / HTTPS_PROXY / NO_PROXY. Node's built-in fetch ignores these variables, so requests route through undici's EnvHttpProxyAgent when a proxy is configured; without one, the global fetch is used unchanged.
  • Verified against a real CONNECT tunnel to cn.devecostudio.huawei.com: the TLS handshake reaches the backend, NO_PROXY bypasses the proxy, and SSE streaming survives the tunnel.

Improvement telemetry is opt-in

  • X-DevEco-Improvement-Enabled now defaults to false, matching the official client's account-level consent: DEVECO_TOOL_IMPROVEMENT=1 is required to opt in. Existing users who want to keep reporting must set it explicitly.

Login gates happen earlier

  • A non-CN nationalCode is refused during login with a clear message, and no token is stored — no more "sign-in succeeded, first turn 403".
  • A successful login also writes ~/.config/deveco/country.region.xml for DevEco Studio (atomic write, Windows sharing-conflict retry). A failed write is logged and never turns a successful login into a failed one.

Diagnostics and fallback

  • DNS, proxy, TLS and connection failures now explain what to check instead of surfacing a bare fetch failed.
  • The static fallback catalog is refreshed to GLM-5.3 / GLM-5.1; the vision-only model stays out of the public list, as upstream intends.

Verification

164 tests passing, typecheck / lint / build clean, plus live checks: OpenAI non-stream and streaming, Anthropic Messages, the real upstream through a proxy tunnel, NO_PROXY bypass, and SSE through undici.

Note: undici@^6.29.1 is now a runtime dependency (Node 20+). Its EnvHttpProxyAgent prints a one-time experimental warning when a proxy is configured.