@dan-ai-studio/dshopencodego 0.1.92 → 0.1.94

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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Raising this package's own LLM failures.
3
+ *
4
+ * `LlmError`'s constructor narrowed `code` to DSH's built-in union in
5
+ * `0.2.2-rc.2`, and that release added `LlmError.fromFailure` for a code any
6
+ * provider may have chosen. This package's side-channel codes
7
+ * (`USAGE_UNAVAILABLE`, `DOCUMENT_UNAVAILABLE`, `MODEL_METADATA_UNAVAILABLE`)
8
+ * are deliberately outside that union: they describe a usage probe or a
9
+ * document fetch, not a model request, and the built-in taxonomy has no word
10
+ * for them.
11
+ *
12
+ * Both paths are tried, because the declared peer range reaches back before
13
+ * `fromFailure` existed: the running build's method wins when present, and the
14
+ * constructor otherwise — its runtime check only requires a non-empty string,
15
+ * which is what `0.2.0-rc.1` through `0.2.2-rc.1` relied on.
16
+ *
17
+ * @module @dan-ai-studio/dshopencodego/llm-error
18
+ */
19
+ import { LlmError } from '@deepseek-ai/dsh-llm';
20
+ /**
21
+ * Build an {@link LlmError} carrying a code this package chose.
22
+ * @param message - human-readable failure text.
23
+ * @param code - this package's stable machine code.
24
+ * @param options - optional cause.
25
+ * @returns the error to throw.
26
+ */
27
+ export declare function llmFailure(message: string, code: string, options?: ErrorOptions): LlmError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dan-ai-studio/dshopencodego",
3
- "version": "0.1.92",
3
+ "version": "0.1.94",
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",
@@ -126,30 +126,30 @@
126
126
  "@deepseek-ai/cordis": "4.1.0",
127
127
  "@deepseek-ai/cordis-plugin-include": "1.1.0",
128
128
  "@deepseek-ai/cordis-plugin-loader": "1.1.0",
129
- "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.1",
130
- "@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
131
- "@deepseek-ai/dsh-brand": "0.2.2-rc.1",
132
- "@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
133
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
134
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
135
- "@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.1",
136
- "@deepseek-ai/dsh-client-ui-model-selection": "0.2.2-rc.1",
137
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
138
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
139
- "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
140
- "@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.1",
141
- "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
142
- "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
143
- "@deepseek-ai/dsh-fs": "0.2.2-rc.1",
144
- "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.1",
145
- "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
146
- "@deepseek-ai/dsh-sandbox": "0.2.2-rc.1",
147
- "@deepseek-ai/dsh-scope": "0.2.2-rc.1",
148
- "@deepseek-ai/dsh-session": "0.2.2-rc.1",
149
- "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
150
- "@deepseek-ai/dsh-timeout": "0.2.2-rc.1",
151
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
152
- "@deepseek-ai/dsh-typert-registry": "0.2.2-rc.1",
129
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.3",
130
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.3",
131
+ "@deepseek-ai/dsh-brand": "0.2.2-rc.3",
132
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.3",
133
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.3",
134
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.3",
135
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.3",
136
+ "@deepseek-ai/dsh-client-ui-model-selection": "0.2.2-rc.3",
137
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.3",
138
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.3",
139
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.3",
140
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.3",
141
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.3",
142
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.3",
143
+ "@deepseek-ai/dsh-fs": "0.2.2-rc.3",
144
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.3",
145
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.3",
146
+ "@deepseek-ai/dsh-sandbox": "0.2.2-rc.3",
147
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.3",
148
+ "@deepseek-ai/dsh-session": "0.2.2-rc.3",
149
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.3",
150
+ "@deepseek-ai/dsh-timeout": "0.2.2-rc.3",
151
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.3",
152
+ "@deepseek-ai/dsh-typert-registry": "0.2.2-rc.3",
153
153
  "@deepseek-ai/schemastery": "~3.19.0",
154
154
  "@earendil-works/pi-ai": "1.5.0",
155
155
  "@testing-library/dom": "^10.4.1",