@dan-ai-studio/dshopencodego 0.1.75 → 0.1.76
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/lib/index.js +14 -4
- package/package.json +25 -25
package/lib/index.js
CHANGED
|
@@ -76251,7 +76251,13 @@ async function toPiContext(options, images, onReplayDegrade) {
|
|
|
76251
76251
|
continue;
|
|
76252
76252
|
}
|
|
76253
76253
|
if (message.role === "system") {
|
|
76254
|
-
|
|
76254
|
+
const text2 = flattenText(message);
|
|
76255
|
+
if (text2.length > 0) {
|
|
76256
|
+
const reminder = text2.replaceAll("</system-reminder>", "<\\/system-reminder>");
|
|
76257
|
+
messages.push({ role: "user", content: `<system-reminder>
|
|
76258
|
+
${reminder}
|
|
76259
|
+
</system-reminder>`, timestamp: 0 });
|
|
76260
|
+
}
|
|
76255
76261
|
continue;
|
|
76256
76262
|
}
|
|
76257
76263
|
if (message.role === "assistant") {
|
|
@@ -76786,8 +76792,12 @@ var OpencodeGoAdapter = class extends LlmAdapter {
|
|
|
76786
76792
|
baseURL: assertBaseURL(config.baseURL),
|
|
76787
76793
|
refreshMs: config.refreshMinutes * 6e4,
|
|
76788
76794
|
defaults: {
|
|
76789
|
-
|
|
76790
|
-
|
|
76795
|
+
// A guess for a model no source sizes, kept in step with the
|
|
76796
|
+
// llm-pi-ai route defaults: modern models are roomier than the
|
|
76797
|
+
// 2026-era numbers these replace, and undersizing one fails a
|
|
76798
|
+
// request the gateway would have served.
|
|
76799
|
+
contextWindow: 1e6,
|
|
76800
|
+
maxTokens: 128e3,
|
|
76791
76801
|
input: ["text"]
|
|
76792
76802
|
},
|
|
76793
76803
|
overrides: config.modelProtocols,
|
|
@@ -78085,7 +78095,7 @@ function createUpdateChecker(deps) {
|
|
|
78085
78095
|
}
|
|
78086
78096
|
|
|
78087
78097
|
// src/update/version.ts
|
|
78088
|
-
var PLUGIN_VERSION = true ? "0.1.
|
|
78098
|
+
var PLUGIN_VERSION = true ? "0.1.76" : "0.0.0-dev";
|
|
78089
78099
|
|
|
78090
78100
|
// src/update/service.ts
|
|
78091
78101
|
import { TypertRemoteService as TypertRemoteService4 } from "@deepseek-ai/dsh-typert-protocol";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dan-ai-studio/dshopencodego",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.76",
|
|
4
4
|
"description": "OpenCode Go provider for DeepSeek Harness: live gateway catalog, per-conversation session header, usage",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -123,30 +123,30 @@
|
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
125
|
"@deepseek-ai/cordis": "4.0.5",
|
|
126
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.
|
|
127
|
-
"@deepseek-ai/dsh-attachment": "0.2.1-rc.
|
|
128
|
-
"@deepseek-ai/dsh-brand": "0.2.1-rc.
|
|
129
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.
|
|
130
|
-
"@deepseek-ai/dsh-client-store": "0.2.1-rc.
|
|
131
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.
|
|
132
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.
|
|
133
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.1-rc.
|
|
134
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.
|
|
135
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.
|
|
136
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.
|
|
137
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.
|
|
138
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.
|
|
139
|
-
"@deepseek-ai/dsh-credentials": "0.2.1-rc.
|
|
140
|
-
"@deepseek-ai/dsh-fs": "0.2.1-rc.
|
|
141
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.1-rc.
|
|
142
|
-
"@deepseek-ai/dsh-llm": "0.2.1-rc.
|
|
143
|
-
"@deepseek-ai/dsh-sandbox": "0.2.1-rc.
|
|
144
|
-
"@deepseek-ai/dsh-scope": "0.2.1-rc.
|
|
145
|
-
"@deepseek-ai/dsh-session": "0.2.1-rc.
|
|
146
|
-
"@deepseek-ai/dsh-settings": "0.2.1-rc.
|
|
147
|
-
"@deepseek-ai/dsh-timeout": "0.2.1-rc.
|
|
148
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.
|
|
149
|
-
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.
|
|
126
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.4",
|
|
127
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.4",
|
|
128
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.4",
|
|
129
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.4",
|
|
130
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.4",
|
|
131
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.4",
|
|
132
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.4",
|
|
133
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.1-rc.4",
|
|
134
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.4",
|
|
135
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.4",
|
|
136
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.4",
|
|
137
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.4",
|
|
138
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.4",
|
|
139
|
+
"@deepseek-ai/dsh-credentials": "0.2.1-rc.4",
|
|
140
|
+
"@deepseek-ai/dsh-fs": "0.2.1-rc.4",
|
|
141
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.1-rc.4",
|
|
142
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.4",
|
|
143
|
+
"@deepseek-ai/dsh-sandbox": "0.2.1-rc.4",
|
|
144
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.4",
|
|
145
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.4",
|
|
146
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.4",
|
|
147
|
+
"@deepseek-ai/dsh-timeout": "0.2.1-rc.4",
|
|
148
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.4",
|
|
149
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.4",
|
|
150
150
|
"@deepseek-ai/schemastery": "~3.18.5-alpha.2",
|
|
151
151
|
"@earendil-works/pi-ai": "~1.4.0",
|
|
152
152
|
"@testing-library/dom": "^10.4.1",
|