dsh-plugin-opencode2api 0.0.0-stage → 1.2.0
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 +21 -0
- package/README.md +138 -2
- package/THIRD_PARTY_NOTICES.md +38 -0
- package/cordis.patch.yml +4 -0
- package/lib/client.js +468 -0
- package/lib/index.js +915 -0
- package/package.json +98 -4
package/package.json
CHANGED
|
@@ -1,6 +1,100 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-opencode2api",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Unofficial one-click installer and auto-runner for opencode2api — a local free OpenAI-compatible API gateway — inside DSH, with a desktop settings UI and a dsh-go native panel (Windows, macOS, Linux, Android).",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/king-andthe-nice/dsh-plugin-opencode2api.git"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/king-andthe-nice/dsh-plugin-opencode2api#readme",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./lib/index.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./lib/index.js",
|
|
15
|
+
"./client": "./lib/client.js",
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
"./cordis.patch.yml": "./cordis.patch.yml"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"lib",
|
|
21
|
+
"cordis.patch.yml",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"THIRD_PARTY_NOTICES.md"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"dsh-plugin",
|
|
28
|
+
"dsh-go",
|
|
29
|
+
"opencode",
|
|
30
|
+
"opencode2api",
|
|
31
|
+
"gateway",
|
|
32
|
+
"openai-compatible",
|
|
33
|
+
"free-api"
|
|
34
|
+
],
|
|
35
|
+
"private": false,
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"dsh": {
|
|
40
|
+
"bundle": {
|
|
41
|
+
"patch": "./cordis.patch.yml"
|
|
42
|
+
},
|
|
43
|
+
"client": {
|
|
44
|
+
"platform": "web",
|
|
45
|
+
"immediately": true,
|
|
46
|
+
"inject": []
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"dsh": ">=0.2.1-rc.2 <0.3.0-0"
|
|
51
|
+
},
|
|
52
|
+
"dshGo": {
|
|
53
|
+
"v": 1,
|
|
54
|
+
"title": {
|
|
55
|
+
"zh": "本地免费 API",
|
|
56
|
+
"en": "Local Free API"
|
|
57
|
+
},
|
|
58
|
+
"icon": "server",
|
|
59
|
+
"contributes": {
|
|
60
|
+
"composer.actions": [
|
|
61
|
+
{
|
|
62
|
+
"id": "open-gateway",
|
|
63
|
+
"label": {
|
|
64
|
+
"zh": "本地API",
|
|
65
|
+
"en": "Local API"
|
|
66
|
+
},
|
|
67
|
+
"icon": "server",
|
|
68
|
+
"effect": [
|
|
69
|
+
{
|
|
70
|
+
"type": "open",
|
|
71
|
+
"page": "panel:gateway"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"composer.strip": [
|
|
77
|
+
{
|
|
78
|
+
"id": "status",
|
|
79
|
+
"icon": "server",
|
|
80
|
+
"panel": "gateway"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"panels": [
|
|
84
|
+
{
|
|
85
|
+
"id": "gateway",
|
|
86
|
+
"title": {
|
|
87
|
+
"zh": "本地免费 API",
|
|
88
|
+
"en": "Local Free API"
|
|
89
|
+
},
|
|
90
|
+
"icon": "server",
|
|
91
|
+
"placement": [
|
|
92
|
+
"session.tab",
|
|
93
|
+
"features",
|
|
94
|
+
"plugin"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|