@goodandready/dsh-opencode-provider 0.5.15 → 0.5.16
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/CHANGELOG.md +6 -0
- package/README.md +4 -4
- package/README.ru.md +3 -3
- package/README.zh.md +3 -3
- package/lib/index.js +1 -1
- package/package.json +125 -124
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.16
|
|
4
|
+
|
|
5
|
+
- **Current DSH core compatibility**: added `0.2.1-rc.3` (the current Desktop runtime) to `engines.dsh`, peer ranges and `dsh.compatibility.dshReleases`, while retaining `0.2.0-rc.2` and `0.2.1-rc.2` for DSH Web 111.
|
|
6
|
+
- Development/typecheck dependencies moved to `@deepseek-ai/*@0.2.1-rc.3`; typecheck, build, and 102 tests pass against rc.3.
|
|
7
|
+
- 102 tests.
|
|
8
|
+
|
|
3
9
|
## 0.5.15
|
|
4
10
|
|
|
5
11
|
- **Write security**: all write endpoints now require a same-origin `Origin` or `Referer` whose host matches `Host`; a request with neither is rejected with 403 instead of being treated as local. Regression tests cover missing headers, Referer fallback and the DSH LAN bridge path.
|
package/README.md
CHANGED
|
@@ -130,12 +130,12 @@ npm pack
|
|
|
130
130
|
Install the **packed tarball** into a profile:
|
|
131
131
|
|
|
132
132
|
```bash
|
|
133
|
-
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.
|
|
133
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.16.tgz
|
|
134
134
|
# DSH Desktop:
|
|
135
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.
|
|
135
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.16.tgz
|
|
136
136
|
|
|
137
137
|
# Or install the published package:
|
|
138
|
-
dsh plugin --profile web add @goodandready/dsh-opencode-provider@0.5.
|
|
138
|
+
dsh plugin --profile web add @goodandready/dsh-opencode-provider@0.5.16
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
Restart dsh (or DSH Desktop), then pick **OpenCode (plugin)** or **OpenCode Go (plugin)** in the model picker.
|
|
@@ -147,7 +147,7 @@ Restart dsh (or DSH Desktop), then pick **OpenCode (plugin)** or **OpenCode Go (
|
|
|
147
147
|
|
|
148
148
|
## Verified in DSH Desktop
|
|
149
149
|
|
|
150
|
-
Tested against DSH Desktop **0.2.1-rc.2
|
|
150
|
+
Tested against DSH Desktop **0.2.1-rc.3** (and DSH Web **0.2.1-rc.2**):
|
|
151
151
|
|
|
152
152
|
- the plugin loads and `/dsh-opencode/state` returns `200`;
|
|
153
153
|
- the key is picked up from `~/.local/share/opencode/auth.json`;
|
package/README.ru.md
CHANGED
|
@@ -129,12 +129,12 @@ npm pack
|
|
|
129
129
|
Установка из **упакованного tarball**:
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
|
-
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.
|
|
132
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.16.tgz
|
|
133
133
|
# DSH Desktop:
|
|
134
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.
|
|
134
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.16.tgz
|
|
135
135
|
|
|
136
136
|
# Либо установка опубликованного пакета из npm:
|
|
137
|
-
dsh plugin --profile web add @goodandready/dsh-opencode-provider@0.5.
|
|
137
|
+
dsh plugin --profile web add @goodandready/dsh-opencode-provider@0.5.16
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
После установки перезапустите dsh (или DSH Desktop) и выберите **OpenCode (plugin)** или **OpenCode Go (plugin)** в списке моделей.
|
package/README.zh.md
CHANGED
|
@@ -124,12 +124,12 @@ npm pack
|
|
|
124
124
|
通过**打包文件 (.tgz)**安装:
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
|
-
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.
|
|
127
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.16.tgz
|
|
128
128
|
# DSH 桌面端:
|
|
129
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.
|
|
129
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-opencode-provider-0.5.16.tgz
|
|
130
130
|
|
|
131
131
|
# 或从 npm 安装已发布版本:
|
|
132
|
-
dsh plugin --profile web add @goodandready/dsh-opencode-provider@0.5.
|
|
132
|
+
dsh plugin --profile web add @goodandready/dsh-opencode-provider@0.5.16
|
|
133
133
|
```
|
|
134
134
|
|
|
135
135
|
安装完成后重启 dsh 或 DSH 桌面端,在模型选择器中选择 **OpenCode (plugin)** 或 **OpenCode Go (plugin)** 即可。
|
package/lib/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const DEFAULT_GO_API_BASE = "https://opencode.ai/inference/go";
|
|
|
18
18
|
const DEFAULT_GO_ZEN_BASE = "https://opencode.ai/zen/go/v1";
|
|
19
19
|
const DEFAULT_USAGE_URL = "https://opencode.ai/zen/go/v1/usage";
|
|
20
20
|
const DEFAULT_AUTH_ENTRY = "opencode-go";
|
|
21
|
-
const DEFAULT_USER_AGENT = "dsh-opencode-provider/0.5.
|
|
21
|
+
const DEFAULT_USER_AGENT = "dsh-opencode-provider/0.5.16";
|
|
22
22
|
const DEFAULT_CONTEXT_WINDOW = 262144;
|
|
23
23
|
const DEFAULT_MAX_TOKENS = 32768;
|
|
24
24
|
const DEFAULT_GENERATE_MAX_TOKENS = 32768;
|
package/package.json
CHANGED
|
@@ -1,124 +1,125 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@goodandready/dsh-opencode-provider",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "OpenCode / OpenCode Go LLM provider plugin for DeepSeek Harness (dsh).",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
|
-
"types": "./lib/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./lib/index.d.ts",
|
|
12
|
-
"default": "./lib/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./client": {
|
|
15
|
-
"default": "./lib/client.js"
|
|
16
|
-
},
|
|
17
|
-
"./package.json": "./package.json",
|
|
18
|
-
"./cordis.patch.yml": "./cordis.patch.yml"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"lib",
|
|
22
|
-
"!lib/**/*.map",
|
|
23
|
-
"cordis.patch.yml",
|
|
24
|
-
"README.md",
|
|
25
|
-
"README.zh.md",
|
|
26
|
-
"README.ru.md",
|
|
27
|
-
"CHANGELOG.md",
|
|
28
|
-
"LICENSE",
|
|
29
|
-
"NOTICE",
|
|
30
|
-
"media/visual-verification.png"
|
|
31
|
-
],
|
|
32
|
-
"publishConfig": {
|
|
33
|
-
"access": "public"
|
|
34
|
-
},
|
|
35
|
-
"repository": {
|
|
36
|
-
"type": "git",
|
|
37
|
-
"url": "git+https://github.com/GooDAnDReaDY/dsh-opencode-provider.git"
|
|
38
|
-
},
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/GooDAnDReaDY/dsh-opencode-provider/issues"
|
|
41
|
-
},
|
|
42
|
-
"homepage": "https://github.com/GooDAnDReaDY/dsh-opencode-provider#readme",
|
|
43
|
-
"dsh": {
|
|
44
|
-
"bundle": {
|
|
45
|
-
"patch": "./cordis.patch.yml"
|
|
46
|
-
},
|
|
47
|
-
"client": {
|
|
48
|
-
"platform": "web",
|
|
49
|
-
"inject": [
|
|
50
|
-
"@deepseek-ai/dsh-client-locale",
|
|
51
|
-
"@deepseek-ai/dsh-client-ui-renderer",
|
|
52
|
-
"@deepseek-ai/dsh-client-ui-settings"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"compatibility": {
|
|
56
|
-
"dshReleases": {
|
|
57
|
-
"0.2.0-rc.2": "compatible",
|
|
58
|
-
"0.2.1-rc.2": "compatible"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"dsh
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"opencode
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"@deepseek-ai/
|
|
87
|
-
"@deepseek-ai/dsh-
|
|
88
|
-
"@deepseek-ai/dsh-client-
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-
|
|
91
|
-
"@deepseek-ai/dsh-
|
|
92
|
-
"@deepseek-ai/dsh-
|
|
93
|
-
"@deepseek-ai/dsh-
|
|
94
|
-
"@deepseek-ai/dsh-
|
|
95
|
-
"@deepseek-ai/dsh-
|
|
96
|
-
"@deepseek-ai/dsh-
|
|
97
|
-
"@deepseek-ai/
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"@deepseek-ai/
|
|
103
|
-
"@deepseek-ai/dsh-
|
|
104
|
-
"@deepseek-ai/dsh-
|
|
105
|
-
"@deepseek-ai/dsh-client-
|
|
106
|
-
"@deepseek-ai/dsh-client-ui-
|
|
107
|
-
"@deepseek-ai/dsh-client-ui-
|
|
108
|
-
"@deepseek-ai/dsh-
|
|
109
|
-
"@deepseek-ai/dsh-
|
|
110
|
-
"@deepseek-ai/dsh-
|
|
111
|
-
"@deepseek-ai/dsh-
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
113
|
-
"@deepseek-ai/dsh-
|
|
114
|
-
"@deepseek-ai/
|
|
115
|
-
"@
|
|
116
|
-
"@types/
|
|
117
|
-
"@types/react
|
|
118
|
-
"react": "^18.3.
|
|
119
|
-
"react
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@goodandready/dsh-opencode-provider",
|
|
3
|
+
"version": "0.5.16",
|
|
4
|
+
"description": "OpenCode / OpenCode Go LLM provider plugin for DeepSeek Harness (dsh).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./lib/index.js",
|
|
8
|
+
"types": "./lib/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"default": "./lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./client": {
|
|
15
|
+
"default": "./lib/client.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json",
|
|
18
|
+
"./cordis.patch.yml": "./cordis.patch.yml"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"lib",
|
|
22
|
+
"!lib/**/*.map",
|
|
23
|
+
"cordis.patch.yml",
|
|
24
|
+
"README.md",
|
|
25
|
+
"README.zh.md",
|
|
26
|
+
"README.ru.md",
|
|
27
|
+
"CHANGELOG.md",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"NOTICE",
|
|
30
|
+
"media/visual-verification.png"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/GooDAnDReaDY/dsh-opencode-provider.git"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/GooDAnDReaDY/dsh-opencode-provider/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/GooDAnDReaDY/dsh-opencode-provider#readme",
|
|
43
|
+
"dsh": {
|
|
44
|
+
"bundle": {
|
|
45
|
+
"patch": "./cordis.patch.yml"
|
|
46
|
+
},
|
|
47
|
+
"client": {
|
|
48
|
+
"platform": "web",
|
|
49
|
+
"inject": [
|
|
50
|
+
"@deepseek-ai/dsh-client-locale",
|
|
51
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
52
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"compatibility": {
|
|
56
|
+
"dshReleases": {
|
|
57
|
+
"0.2.0-rc.2": "compatible",
|
|
58
|
+
"0.2.1-rc.2": "compatible",
|
|
59
|
+
"0.2.1-rc.3": "compatible"
|
|
60
|
+
},
|
|
61
|
+
"dsh": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=22",
|
|
66
|
+
"dsh": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3"
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "tsdown",
|
|
70
|
+
"prepare": "tsdown 1>&2",
|
|
71
|
+
"typecheck": "tsc --noEmit",
|
|
72
|
+
"test": "node --import tsx --test tests/core.test.ts tests/routes.test.ts tests/limits.test.ts tests/analytics.test.ts tests/adapter.test.ts tests/usage.test.ts tests/request-log.test.ts tests/account-rules.test.ts tests/commands.test.ts tests/tool-schema.test.ts tests/tui-settings.test.ts tests/plan-filter.test.ts tests/image-budget.test.ts tests/tools.test.ts tests/plugin-updater.test.ts tests/client-render.test.tsx",
|
|
73
|
+
"check": "npm run typecheck && npm test && npm run build",
|
|
74
|
+
"release": "npm run check && npm pack",
|
|
75
|
+
"sync:models": "node scripts/sync-models.mjs"
|
|
76
|
+
},
|
|
77
|
+
"keywords": [
|
|
78
|
+
"dsh",
|
|
79
|
+
"dsh-plugin",
|
|
80
|
+
"deepseek-harness",
|
|
81
|
+
"opencode",
|
|
82
|
+
"opencode-go",
|
|
83
|
+
"llm-provider"
|
|
84
|
+
],
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"@deepseek-ai/cordis": "~4.0.4 || ~4.0.5",
|
|
87
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
88
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
92
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
93
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
94
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
95
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
96
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
97
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2 || 0.2.1-rc.2 || 0.2.1-rc.3",
|
|
98
|
+
"@deepseek-ai/schemastery": "~3.18.4 || ~3.18.5",
|
|
99
|
+
"react": "^18.2.0"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@deepseek-ai/cordis": "~4.0.5",
|
|
103
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.3",
|
|
104
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.3",
|
|
105
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.3",
|
|
106
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.3",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.3",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.3",
|
|
109
|
+
"@deepseek-ai/dsh-commands": "0.2.1-rc.3",
|
|
110
|
+
"@deepseek-ai/dsh-credentials": "0.2.1-rc.3",
|
|
111
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.3",
|
|
112
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.1-rc.3",
|
|
113
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.3",
|
|
114
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.3",
|
|
115
|
+
"@deepseek-ai/schemastery": "~3.18.5",
|
|
116
|
+
"@types/node": "^22.0.0",
|
|
117
|
+
"@types/react": "^18.3.1",
|
|
118
|
+
"@types/react-dom": "^18.3.0",
|
|
119
|
+
"react": "^18.3.1",
|
|
120
|
+
"react-dom": "^18.3.1",
|
|
121
|
+
"tsdown": "^0.22.2",
|
|
122
|
+
"tsx": "^4.23.12",
|
|
123
|
+
"typescript": "^5.7.2"
|
|
124
|
+
}
|
|
125
|
+
}
|