-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(providers): ZCode — Z.ai Start Plan provider (OAuth login, traceless captcha, client attribution) #4437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
06ec553
116c2ac
07b48da
bcdf559
b0900e5
3970601
bba6322
3d53e5f
eda8754
f9e3515
6f71931
9a60256
9e9b1d3
947bae9
f7f890f
544ebee
d24ff57
9a27e86
62849df
2f3f736
3a3de88
2d4d7a2
cf456e8
c155cc7
95c4875
4d37c35
5f39782
1462efa
da73735
9538af3
57f9cbe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| { | ||||||
| "name": "@bitkyc08/opencodex", | ||||||
| "version": "2.53.0", | ||||||
| "version": "2.52.0", | ||||||
| "description": "Universal provider proxy for OpenAI Codex & Claude Code — use any LLM with Codex CLI/App/SDK and Claude Code", | ||||||
| "type": "module", | ||||||
| "main": "./bin/package-main.mjs", | ||||||
|
|
@@ -71,6 +71,7 @@ | |||||
| "@modelcontextprotocol/sdk": "^1.30.0", | ||||||
| "@napi-rs/keyring": "1.3.0", | ||||||
| "bun": "1.4.2", | ||||||
| "happy-dom": "^20.14.3", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
# Confirm where happy-dom was declared before, and whether the internal paths exist in the pinned version.
rg -n '"happy-dom"' package.json gui/package.json 2>/dev/null
git log --oneline -3 -- package.json
curl -s https://registry.npmjs.org/happy-dom | jq -r '"latest: " + .["dist-tags"].latest, (.versions | keys | map(select(startswith("20."))) | .[-5:] | join(", "))'Repository: lidge-jun/opencodex Length of output: 580 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- package context ---'
sed -n '55,82p' package.json
printf '%s\n' '--- cited solver imports and internals ---'
rg -n -C 4 'WindowBrowserContext|PropertySymbol\.evaluateScript|PropertySymbol\.virtualServerFile|beforeSyncRequest|SyncFetch|body\.toString' src/adapters/zcode-start-plan/captcha-solver.ts
printf '%s\n' '--- direct happy-dom references ---'
rg -n -C 3 'happy-dom|captcha-solver' src gui package.json gui/package.json
printf '%s\n' '--- lockfiles and dependency policy files ---'
git ls-files | rg '(^|/)(package-lock\.json|npm-shrinkwrap\.json|yarn\.lock|pnpm-lock\.yaml|CONTRIBUTING|SECURITY|README|.*guideline.*|.*policy.*)$' | head -80Repository: lidge-jun/opencodex Length of output: 50376 🤖 get_repo_knowledge executed:
Length of output: 13750 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- dependency/security policy references ---'
rg -n -C 3 -i 'dependency changes|explicit security review|security review|dependency-installation|happy-dom' AGENTS.md MAINTAINERS.md .coderabbit.yaml package.json 2>/dev/null || true
printf '%s\n' '--- root lockfiles ---'
git ls-files | rg '(^|/)(bun\.lock|bun\.lockb|package-lock\.json|pnpm-lock\.yaml|yarn\.lock)$' | head -40
printf '%s\n' '--- root package history summary for the dependency hunk ---'
git show --stat --oneline 5f3978297 -- package.json
git show --format= --unified=3 5f3978297 -- package.json | sed -n '1,120p'
printf '%s\n' '--- published metadata for relevant happy-dom versions ---'
python3 - <<'PY'
import json, urllib.request
data=json.load(urllib.request.urlopen('https://registry.npmjs.org/happy-dom'))
for v in ['20.11.2','20.14.3','20.14.4','20.14.5']:
x=data.get('versions',{}).get(v)
print(v, json.dumps({
'version': x.get('version') if x else None,
'engines': x.get('engines') if x else None,
'exports': x.get('exports') if x else None,
'tarball': x.get('dist',{}).get('tarball') if x else None,
}, separators=(',',':')))
PY
printf '%s\n' '--- semver range check ---'
node - <<'JS'
for (const v of ["20.14.3","20.14.4","20.14.5","20.99.0","21.0.0"]) {
const [M,m,p] = v.split(".").map(Number);
const admitted = M === 20 && (m > 14 || (m === 14 && p >= 3));
console.log(v, admitted);
}
JSRepository: lidge-jun/opencodex Length of output: 7856 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- root lockfile happy-dom entries ---'
rg -n -C 2 '"happy-dom"|happy-dom@' bun.lock || true
printf '%s\n' '--- concise registry metadata ---'
curl -fsSk https://registry.npmjs.org/happy-dom | jq -r '
["version","20.14.3",(.versions["20.14.3"].dist.tarball // ""),(.versions["20.14.3"].exports // "no exports")|tostring] | `@tsv`,
["version","20.14.4",(.versions["20.14.4"].dist.tarball // ""),(.versions["20.14.4"].exports // "no exports")|tostring] | `@tsv`,
["version","20.14.5",(.versions["20.14.5"].dist.tarball // ""),(.versions["20.14.5"].exports // "no exports")|tostring] | `@tsv`,
["latest",.["dist-tags"].latest|tostring] | `@tsv`'
printf '%s\n' '--- exact package file presence across adjacent releases ---'
for v in 20.14.3 20.14.4 20.14.5; do
url=$(curl -fsSk https://registry.npmjs.org/happy-dom/$v | jq -r '.dist.tarball')
tmp=$(mktemp -d)
curl -fsSk "$url" -o "$tmp/pkg.tgz"
printf '%s ' "$v"
tar -tzf "$tmp/pkg.tgz" | rg 'package/(lib/window/WindowBrowserContext\.js|lib/PropertySymbol\.js|lib/*PropertySymbol*)$' | sed 's#^package/##' | tr '\n' ' '
printf '\n'
rm -rf "$tmp"
doneRepository: lidge-jun/opencodex Length of output: 1125 Pin The root - "happy-dom": "^20.14.3",
+ "happy-dom": "20.14.3",
📝 Committable suggestion
Suggested change
🤖 Prompt for AI AgentsSource: Coding guidelines |
||||||
| "zod": "4.4.3" | ||||||
| }, | ||||||
| "devDependencies": { | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature commit changes the parent branch's version from
2.53.0back to the already released2.52.0. Builds from this tree consequently identify themselves as an older release, and attempting to release without first repairing the version line is rejected by the release authority's forward-version checks. Preserve2.53.0here and let the release workflow own subsequent bumps.Useful? React with 👍 / 👎.