@dan-ai-studio/dshopencodego 0.1.58 → 0.1.60
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 +3 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -76176,6 +76176,7 @@ function classifyPiAiError(message) {
|
|
|
76176
76176
|
if (/\b(?:401|403)\b/.test(message)) return "AUTH";
|
|
76177
76177
|
if (isQuotaExceededError(message)) return ACCOUNT_QUOTA_CODE;
|
|
76178
76178
|
if (/server_error/i.test(message)) return "SERVER";
|
|
76179
|
+
if (/internal.?error/i.test(message)) return "SERVER";
|
|
76179
76180
|
if (/\b429\b|rate.?limit/i.test(message)) return "RATE_LIMIT";
|
|
76180
76181
|
if (/\b413\b|payload too large|request body too large|length limit exceeded/i.test(message)) return "INVALID_REQUEST";
|
|
76181
76182
|
if (/\b400\b|invalid.?request/i.test(message)) return "INVALID_REQUEST";
|
|
@@ -77482,7 +77483,7 @@ function createUpdateChecker(deps) {
|
|
|
77482
77483
|
}
|
|
77483
77484
|
|
|
77484
77485
|
// src/update/version.ts
|
|
77485
|
-
var PLUGIN_VERSION = true ? "0.1.
|
|
77486
|
+
var PLUGIN_VERSION = true ? "0.1.60" : "0.0.0-dev";
|
|
77486
77487
|
|
|
77487
77488
|
// src/update/service.ts
|
|
77488
77489
|
import { TypertRemoteService as TypertRemoteService3 } from "@deepseek-ai/dsh-typert-protocol";
|
|
@@ -77795,6 +77796,7 @@ export {
|
|
|
77795
77796
|
apply,
|
|
77796
77797
|
assertBaseURL,
|
|
77797
77798
|
discoverCatalogModels,
|
|
77799
|
+
fetchModelIds,
|
|
77798
77800
|
inject,
|
|
77799
77801
|
isModelEnabled,
|
|
77800
77802
|
name,
|
package/lib/types/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
35
35
|
}
|
|
36
36
|
export { OpencodeGoAdapter } from './adapter.ts';
|
|
37
37
|
export type { OpencodeGoAdapterOptions, OpencodeGoImageAccess } from './adapter.ts';
|
|
38
|
-
export { DEFAULT_BASE_URL, CONSOLE_BASE_URL, DISPLAY_NAME, PROVIDER_ID, OpencodeGoCatalog, discoverCatalogModels } from './catalog/index.ts';
|
|
38
|
+
export { DEFAULT_BASE_URL, CONSOLE_BASE_URL, DISPLAY_NAME, PROVIDER_ID, OpencodeGoCatalog, discoverCatalogModels, fetchModelIds } from './catalog/index.ts';
|
|
39
39
|
export { Config, PlainConfig, assertBaseURL, DEFAULT_API_KEY_ENV } from './config.ts';
|
|
40
40
|
export type { OpencodeGoConfig } from './config.ts';
|
|
41
41
|
export { SESSION_HEADER, SESSION_AFFINITY_HEADER, opencodeSessionValue, providerHeaders } from './session-header.ts';
|
package/package.json
CHANGED