dsh-opencode-go 0.1.14 → 0.1.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/README.en.md +39 -7
- package/README.md +39 -7
- package/docs/development.md +64 -0
- package/docs/fork-review-2026-09-25.md +191 -0
- package/docs/independent-package.md +2 -0
- package/docs/verification.md +84 -0
- package/lib/client.js +343 -241
- package/lib/index.js +176 -48
- package/lib/types/adapter.d.ts +2 -0
- package/lib/types/catalog.d.ts +12 -1
- package/lib/types/client/Section.d.ts +6 -5
- package/lib/types/client/locales.d.ts +13 -1
- package/lib/types/client/section-controller.d.ts +4 -0
- package/lib/types/client/staged-form.d.ts +4 -3
- package/lib/types/config.d.ts +2 -0
- package/lib/types/conversion/context.d.ts +3 -1
- package/lib/types/conversion/image-offload.d.ts +1 -0
- package/lib/types/metadata-cache.d.ts +12 -0
- package/lib/types/model-metadata.d.ts +3 -1
- package/lib/types/models-contract.d.ts +15 -0
- package/package.json +26 -17
|
@@ -7,9 +7,24 @@ export interface GoModel {
|
|
|
7
7
|
maxTokens?: number;
|
|
8
8
|
deprecated?: boolean;
|
|
9
9
|
releaseDate?: string;
|
|
10
|
+
/** Input modalities models.dev declares, in {@link INPUT_MODALITIES} order. */
|
|
11
|
+
inputModalities?: readonly InputModality[];
|
|
10
12
|
/** Advertised by the gateway but lacking a usable protocol and capability configuration. */
|
|
11
13
|
configurationMissing?: boolean;
|
|
12
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Input modalities this page can name. models.dev uses these same five tokens, so
|
|
17
|
+
* an unknown token is dropped rather than rendered as an untranslatable chip.
|
|
18
|
+
*/
|
|
19
|
+
export declare const INPUT_MODALITIES: readonly ["text", "image", "audio", "video", "pdf"];
|
|
20
|
+
export type InputModality = typeof INPUT_MODALITIES[number];
|
|
21
|
+
/**
|
|
22
|
+
* Normalize one `modalities.input` array into display order.
|
|
23
|
+
* @param value - the raw declaration read from models.dev or from a Host response.
|
|
24
|
+
* @returns the declared modalities in {@link INPUT_MODALITIES} order, or
|
|
25
|
+
* `undefined` when nothing recognizable was declared.
|
|
26
|
+
*/
|
|
27
|
+
export declare function normalizeInputModalities(value: unknown): readonly InputModality[] | undefined;
|
|
13
28
|
/** Last successful check of one catalog source, plus any current refresh failure. */
|
|
14
29
|
export interface GoCatalogSourceStatus {
|
|
15
30
|
readonly updatedAt?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-opencode-go",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "OpenCode Go model provider and settings UI for DeepSeek Harness",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,13 +51,18 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"
|
|
54
|
+
"compile": "node scripts/build.mjs",
|
|
55
|
+
"check:dist": "node scripts/build.mjs --check",
|
|
55
56
|
"typecheck": "tsc -p tsconfig.host.json --noEmit && tsc -p tsconfig.client.json --noEmit",
|
|
56
57
|
"test": "vitest run",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
58
|
+
"pretest": "npm run compile",
|
|
59
|
+
"test:ci": "npm run check:dist && vitest run",
|
|
59
60
|
"verify:installed": "node --expose-internals scripts/installed-smoke.mjs",
|
|
60
|
-
"verify:headless": "node scripts/headless-smoke.mjs"
|
|
61
|
+
"verify:headless": "node scripts/headless-smoke.mjs",
|
|
62
|
+
"prepublishOnly": "npm run check:dist",
|
|
63
|
+
"test:compat": "node scripts/test-compat.mjs",
|
|
64
|
+
"test:install": "node scripts/test-install.mjs",
|
|
65
|
+
"verify": "npm run test:ci && npm run test:compat && npm run test:install"
|
|
61
66
|
},
|
|
62
67
|
"peerDependencies": {
|
|
63
68
|
"@deepseek-ai/cordis": ">=4.0.2",
|
|
@@ -90,9 +95,12 @@
|
|
|
90
95
|
"@deepseek-ai/cordis": "4.0.2",
|
|
91
96
|
"@deepseek-ai/cordis-plugin-include": "1.0.7",
|
|
92
97
|
"@deepseek-ai/cordis-plugin-loader": "1.0.3",
|
|
98
|
+
"@deepseek-ai/dsh-agent": "0.1.6-alpha.1",
|
|
99
|
+
"@deepseek-ai/dsh-agent-presets": "0.1.6-alpha.1",
|
|
93
100
|
"@deepseek-ai/dsh-api-gateway": "0.1.6-alpha.1",
|
|
94
101
|
"@deepseek-ai/dsh-api-remotes": "0.1.6-alpha.1",
|
|
95
102
|
"@deepseek-ai/dsh-api-settings-controller": "0.1.6-alpha.1",
|
|
103
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.6-alpha.1",
|
|
96
104
|
"@deepseek-ai/dsh-attachment": "0.1.6-alpha.1",
|
|
97
105
|
"@deepseek-ai/dsh-attachment-local": "0.1.6-alpha.1",
|
|
98
106
|
"@deepseek-ai/dsh-brand": "0.1.6-alpha.1",
|
|
@@ -106,16 +114,29 @@
|
|
|
106
114
|
"@deepseek-ai/dsh-client-ui-slots": "0.1.6-alpha.1",
|
|
107
115
|
"@deepseek-ai/dsh-credentials": "0.1.6-alpha.1",
|
|
108
116
|
"@deepseek-ai/dsh-credentials-local": "0.1.6-alpha.1",
|
|
117
|
+
"@deepseek-ai/dsh-deque": "0.1.6-alpha.1",
|
|
109
118
|
"@deepseek-ai/dsh-fs": "0.1.6-alpha.1",
|
|
110
119
|
"@deepseek-ai/dsh-home-paths": "0.1.6-alpha.1",
|
|
120
|
+
"@deepseek-ai/dsh-invariants": "0.1.6-alpha.1",
|
|
111
121
|
"@deepseek-ai/dsh-launch-environment": "0.1.6-alpha.1",
|
|
112
122
|
"@deepseek-ai/dsh-llm": "0.1.6-alpha.1",
|
|
123
|
+
"@deepseek-ai/dsh-native-command": "0.1.6-alpha.1",
|
|
124
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.1.6-alpha.1",
|
|
125
|
+
"@deepseek-ai/dsh-sandbox": "0.1.6-alpha.1",
|
|
126
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.6-alpha.1",
|
|
127
|
+
"@deepseek-ai/dsh-scope": "0.1.6-alpha.1",
|
|
113
128
|
"@deepseek-ai/dsh-session": "0.1.6-alpha.1",
|
|
129
|
+
"@deepseek-ai/dsh-session-projection": "0.1.6-alpha.1",
|
|
114
130
|
"@deepseek-ai/dsh-settings": "0.1.6-alpha.1",
|
|
115
131
|
"@deepseek-ai/dsh-settings-file": "0.1.6-alpha.1",
|
|
132
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.6-alpha.1",
|
|
116
133
|
"@deepseek-ai/dsh-timeout": "0.1.6-alpha.1",
|
|
134
|
+
"@deepseek-ai/dsh-tools": "0.1.6-alpha.1",
|
|
117
135
|
"@deepseek-ai/dsh-typert-protocol": "0.1.6-alpha.1",
|
|
118
136
|
"@deepseek-ai/dsh-typert-registry": "0.1.6-alpha.1",
|
|
137
|
+
"@deepseek-ai/dsh-user-approval": "0.1.6-alpha.1",
|
|
138
|
+
"@deepseek-ai/dsh-util-crypto": "0.1.6-alpha.1",
|
|
139
|
+
"@deepseek-ai/dsh-util-values": "0.1.6-alpha.1",
|
|
119
140
|
"@shikijs/langs": "^4.3.1",
|
|
120
141
|
"@testing-library/dom": "^10.4.2",
|
|
121
142
|
"@testing-library/react": "^16.3.2",
|
|
@@ -127,15 +148,6 @@
|
|
|
127
148
|
"anser": "^2.3.5",
|
|
128
149
|
"clsx": "^2.0.0",
|
|
129
150
|
"diff": "^9.0.0",
|
|
130
|
-
"dsh-attachment-local-v015-rc1": "npm:@deepseek-ai/dsh-attachment-local@0.1.5-rc.1",
|
|
131
|
-
"dsh-attachment-local-v015-rc2": "npm:@deepseek-ai/dsh-attachment-local@0.1.5-rc.2",
|
|
132
|
-
"dsh-attachment-local-v016-alpha2": "npm:@deepseek-ai/dsh-attachment-local@0.1.6-alpha.2",
|
|
133
|
-
"dsh-attachment-v015-rc1": "npm:@deepseek-ai/dsh-attachment@0.1.5-rc.1",
|
|
134
|
-
"dsh-attachment-v015-rc2": "npm:@deepseek-ai/dsh-attachment@0.1.5-rc.2",
|
|
135
|
-
"dsh-attachment-v016-alpha2": "npm:@deepseek-ai/dsh-attachment@0.1.6-alpha.2",
|
|
136
|
-
"dsh-llm-v015-rc1": "npm:@deepseek-ai/dsh-llm@0.1.5-rc.1",
|
|
137
|
-
"dsh-llm-v015-rc2": "npm:@deepseek-ai/dsh-llm@0.1.5-rc.2",
|
|
138
|
-
"dsh-llm-v016-alpha2": "npm:@deepseek-ai/dsh-llm@0.1.6-alpha.2",
|
|
139
151
|
"esbuild": "^0.25.0",
|
|
140
152
|
"immer": "^10.1.1",
|
|
141
153
|
"jsdom": "29.1.1",
|
|
@@ -208,8 +220,5 @@
|
|
|
208
220
|
"opencode-go",
|
|
209
221
|
"llm",
|
|
210
222
|
"cordis"
|
|
211
|
-
],
|
|
212
|
-
"workspaces": [
|
|
213
|
-
"tests/hosts/*"
|
|
214
223
|
]
|
|
215
224
|
}
|