opencode-qwen-auth 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +203 -0
- package/README.md +252 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/src/constants.d.ts +7 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +12 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/plugin/account.d.ts +40 -0
- package/dist/src/plugin/account.d.ts.map +1 -0
- package/dist/src/plugin/account.js +237 -0
- package/dist/src/plugin/account.js.map +1 -0
- package/dist/src/plugin/auth.d.ts +5 -0
- package/dist/src/plugin/auth.d.ts.map +1 -0
- package/dist/src/plugin/auth.js +16 -0
- package/dist/src/plugin/auth.js.map +1 -0
- package/dist/src/plugin/config/index.d.ts +4 -0
- package/dist/src/plugin/config/index.d.ts.map +1 -0
- package/dist/src/plugin/config/index.js +3 -0
- package/dist/src/plugin/config/index.js.map +1 -0
- package/dist/src/plugin/config/loader.d.ts +3 -0
- package/dist/src/plugin/config/loader.d.ts.map +1 -0
- package/dist/src/plugin/config/loader.js +69 -0
- package/dist/src/plugin/config/loader.js.map +1 -0
- package/dist/src/plugin/config/schema.d.ts +31 -0
- package/dist/src/plugin/config/schema.d.ts.map +1 -0
- package/dist/src/plugin/config/schema.js +15 -0
- package/dist/src/plugin/config/schema.js.map +1 -0
- package/dist/src/plugin/logger.d.ts +12 -0
- package/dist/src/plugin/logger.d.ts.map +1 -0
- package/dist/src/plugin/logger.js +74 -0
- package/dist/src/plugin/logger.js.map +1 -0
- package/dist/src/plugin/token.d.ts +8 -0
- package/dist/src/plugin/token.d.ts.map +1 -0
- package/dist/src/plugin/token.js +29 -0
- package/dist/src/plugin/token.js.map +1 -0
- package/dist/src/plugin/types.d.ts +96 -0
- package/dist/src/plugin/types.d.ts.map +1 -0
- package/dist/src/plugin/types.js +2 -0
- package/dist/src/plugin/types.js.map +1 -0
- package/dist/src/plugin.d.ts +11 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/plugin.js +439 -0
- package/dist/src/plugin.js.map +1 -0
- package/dist/src/qwen/oauth.d.ts +29 -0
- package/dist/src/qwen/oauth.d.ts.map +1 -0
- package/dist/src/qwen/oauth.js +151 -0
- package/dist/src/qwen/oauth.js.map +1 -0
- package/dist/src/transform/index.d.ts +4 -0
- package/dist/src/transform/index.d.ts.map +1 -0
- package/dist/src/transform/index.js +4 -0
- package/dist/src/transform/index.js.map +1 -0
- package/dist/src/transform/request.d.ts +4 -0
- package/dist/src/transform/request.d.ts.map +1 -0
- package/dist/src/transform/request.js +106 -0
- package/dist/src/transform/request.js.map +1 -0
- package/dist/src/transform/response.d.ts +10 -0
- package/dist/src/transform/response.d.ts.map +1 -0
- package/dist/src/transform/response.js +52 -0
- package/dist/src/transform/response.js.map +1 -0
- package/dist/src/transform/sse.d.ts +10 -0
- package/dist/src/transform/sse.d.ts.map +1 -0
- package/dist/src/transform/sse.js +230 -0
- package/dist/src/transform/sse.js.map +1 -0
- package/package.json +78 -0
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "opencode-qwen-auth",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Qwen OAuth authentication plugin for OpenCode with multi-account rotation and API translation",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"bun": "./src/index.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"license": "Apache-2.0",
|
|
16
|
+
"author": "OpenCode Qwen Auth Contributors",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/foxswat/opencode-qwen-auth.git"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/foxswat/opencode-qwen-auth#readme",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/foxswat/opencode-qwen-auth/issues"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"opencode",
|
|
27
|
+
"opencode-plugin",
|
|
28
|
+
"opencode-plugins",
|
|
29
|
+
"qwen",
|
|
30
|
+
"qwen-auth",
|
|
31
|
+
"alibaba",
|
|
32
|
+
"oauth",
|
|
33
|
+
"authentication",
|
|
34
|
+
"ai",
|
|
35
|
+
"llm",
|
|
36
|
+
"api-translation",
|
|
37
|
+
"device-flow"
|
|
38
|
+
],
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=20.0.0",
|
|
41
|
+
"bun": ">=1.0.0"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist/",
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE"
|
|
50
|
+
],
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsc -p tsconfig.build.json",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"test": "bun test",
|
|
55
|
+
"test:watch": "bun test --watch",
|
|
56
|
+
"test:e2e": "bun scripts/e2e-test.ts",
|
|
57
|
+
"test:coverage": "bun test --coverage",
|
|
58
|
+
"lint": "biome check .",
|
|
59
|
+
"lint:fix": "biome check --write .",
|
|
60
|
+
"prepublishOnly": "bun run build"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@opencode-ai/plugin": "^1.0.150",
|
|
64
|
+
"typescript": "^5"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@biomejs/biome": "^2.3.11",
|
|
68
|
+
"@opencode-ai/plugin": "^1.0.150",
|
|
69
|
+
"@types/bun": "^1.3.6",
|
|
70
|
+
"@types/node": "^24.10.1",
|
|
71
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
72
|
+
"typescript": "^5.0.0"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"proper-lockfile": "^4.1.2",
|
|
76
|
+
"zod": "^3.24.0"
|
|
77
|
+
}
|
|
78
|
+
}
|