shenyebuwu (Discord #general) signs in to WorkBuddy with 企业微信 (WeCom), and the plugin's sign-in page offered no WeCom entry. The plugin opened www.workbuddy.cn/login with version=2.0.0. WorkBuddy desktop opens the same /v2/plugin/auth/state page with version set to its own app version (openAuthUrl: version = CLIENT_INFO_PLUGIN_VERSION, which the desktop sets to the app's version; read from WorkBuddy.app's app.asar). The login page's signin-callback chunk shows WeCom to platform workbuddy only at version >= "5.8.0" (Le/tn, Jt="5.8.0"), so 2.0.0 hid it. The page now opens with site.app (5.9.3, the version the requests already carry), for both builds, as the desktop does. Run (mote, bun 1.4.2, HOME=$(mktemp -d)): packages/workbuddy bun test, 321 pass 0 fail; bun scripts/check.mjs workbuddy ok. Broken by hand: version put back to "2.0.0", wecom.test.mjs 3 of 3 red. Real page (Playwright Chromium on mote, a fresh state from copilot.tencent.com): version=2.0.0 lists 微信 手机号 SSO QQ 邮箱; version=5.9.3 lists 企业微信 too. Not tried: a real WeCom sign-in to the end (no WeCom account, no credentials entered); the WorkBuddy AI page with WeCom (its gate is the China platform's only).
27 lines
669 B
JSON
27 lines
669 B
JSON
{
|
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
"version": "0.2.21",
|
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": [
|
|
"index.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"README.md"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"workbuddy",
|
|
"codebuddy"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/workbuddy"
|
|
}
|
|
}
|