Spaces:
Sleeping
Sleeping
Commit History
-
refactor: migrate electron from branch to npm workspace
icebear0828Electron code moved from a separate branch into packages/electron/, eliminating the fragile master→electron branch sync that caused frequent merge conflicts (package.json, lockfile, release.yml). - Add npm workspaces to root package.json - Create packages/electron/ with independent deps (electron, electron-builder, esbuild) - Desktop UI imports use @shared/ Vite alias instead of deep relative paths - Rewrite release.yml for workspace-aware build - Delete sync-electron.yml (no longer needed) - Cherry-pick setup-curl.ts fixes from electron branch (GITHUB_TOKEN, dll rename, tar fallback)178e38e -
fix: macOS Electron login error -86 (EBADARCH) due to wrong-arch curl binary (#96) (#98)
icebear +1: icebear0828Unverified signatureCI built both arm64/x64 DMGs on a single arm64 runner, bundling only the arm64 curl-impersonate into both. Intel Mac users got EBADARCH when spawning the binary during OAuth token exchange. - Split macOS CI into per-arch jobs with --arch flag for setup-curl.ts - Add --arch override to setup-curl.ts for cross-compilation - Improve spawn error message to diagnose architecture mismatch Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>6c928c9
-
feat: add libcurl-impersonate FFI transport for Chrome TLS fingerprint
icebear0828 +1: Claude Opus 4.6Windows lacks curl-impersonate CLI, so use koffi FFI to call libcurl-impersonate DLL directly. Introduces TlsTransport abstraction with auto-selection: FFI on Windows, CLI subprocess on macOS/Linux. All three API protocols (OpenAI/Anthropic/Gemini) verified working. - New: src/tls/transport.ts (interface + singleton factory) - New: src/tls/curl-cli-transport.ts (extracted from codex-api.ts) - New: src/tls/libcurl-ffi-transport.ts (koffi FFI, curl_multi streaming) - New: scripts/poc-libcurl-ffi.ts (POC verification script) - Updated: setup-curl.ts auto-downloads DLL + cacert.pem on Windows - Updated: codex-api.ts uses transport abstraction (~200 lines removed) - Updated: curl-fetch.ts delegates to transport singleton Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3d01305
-
feat: auto proxy detection for curl + tighten dashboard layout
icebear0828 +1: Claude Opus 4.6- Add tls.proxy_url config + HTTPS_PROXY env var support - Inject proxy args into both curlPost() and getUsage() curl calls - Explicitly set Accept-Encoding to gzip,deflate for system curl compat - Include setup-curl.ts postinstall script (was gitignored) - Tighten dashboard font sizes and spacing for compact layout - Rename dashboard1.html → dashboard.html, fix web.ts reference Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d85b21d