refactor(oidb): migrate web.ts OIDB cmds to namespaces
2 OIDB cmds moved (the only OIDB calls in this file — the rest are
HTTP cookie / qun.qq.com / qzone web requests):
- ForceFetchClientKey (0x102A_1) — used by ptlogin2 jump flow to
swap clientKey → cookie jar
- GetPskey (0x102A_0) — p_skey fallback when ptlogin2
omits it
The private `forceFetchClientKeyInner` / `getPSkey` helpers in
WebApi are now one-line forwarders into the namespaces. Facade
methods (`getCookies`, `getCsrfToken`, `getCredentials`, etc.) and
all HTTP-only cmds untouched.
12 new namespace-level tests covering deserialize edge cases
(empty server response, missing fields, dropped invalid items)
and e2e wire routing.
Verification:
- typecheck green
- @snowluma/bridge: 20 files / 165 tests
- @snowluma/core: 302 tests
Wire bytes unchanged.
This commit is contained in:
6 files changed
+233
-44
No files matched your search
@@ -107,6 +107,14 @@
|
||||
"types": "./src/oidb-services/misc/send-group-sign.ts",
|
||||
"default": "./src/oidb-services/misc/send-group-sign.ts"
|
||||
},
|
||||
"./oidb-services/web/force-fetch-client-key": {
|
||||
"types": "./src/oidb-services/web/force-fetch-client-key.ts",
|
||||
"default": "./src/oidb-services/web/force-fetch-client-key.ts"
|
||||
},
|
||||
"./oidb-services/web/get-pskey": {
|
||||
"types": "./src/oidb-services/web/get-pskey.ts",
|
||||
"default": "./src/oidb-services/web/get-pskey.ts"
|
||||
},
|
||||
"./bridge-context": {
|
||||
"types": "./src/bridge-context.ts",
|
||||
"default": "./src/bridge-context.ts"
|
||||
|
||||
Reference in new issue
Block a user