@dan-ai-studio/dshopencodego 0.1.44 → 0.1.45
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 +1 -34
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -45707,7 +45707,7 @@ function createUpdateChecker(deps) {
|
|
|
45707
45707
|
}
|
|
45708
45708
|
|
|
45709
45709
|
// src/update/version.ts
|
|
45710
|
-
var PLUGIN_VERSION = true ? "0.1.
|
|
45710
|
+
var PLUGIN_VERSION = true ? "0.1.45" : "0.0.0-dev";
|
|
45711
45711
|
|
|
45712
45712
|
// src/update/service.ts
|
|
45713
45713
|
import { TypertRemoteService as TypertRemoteService2 } from "@deepseek-ai/dsh-typert-protocol";
|
|
@@ -45850,36 +45850,6 @@ function apply(ctx, raw) {
|
|
|
45850
45850
|
const current = () => live === void 0 ? constant : readConfig(live);
|
|
45851
45851
|
assertBaseURL(current().baseURL);
|
|
45852
45852
|
const settingsNs = ctx.fiber?.entry?.options.id ?? name;
|
|
45853
|
-
let directory;
|
|
45854
|
-
let directoryError;
|
|
45855
|
-
let directoryRetired = false;
|
|
45856
|
-
const directoryEntry = (error) => ({
|
|
45857
|
-
provider: PROVIDER_ID,
|
|
45858
|
-
displayName: DISPLAY_NAME,
|
|
45859
|
-
settingsNs,
|
|
45860
|
-
// This plugin's profile is the entry's whole `config:` mapping — the
|
|
45861
|
-
// bundled `cordis.patch.yml` inserts `id: dshopencodego` with the route's
|
|
45862
|
-
// fields directly under `config`, and `src/config.ts` owns exactly those
|
|
45863
|
-
// fields — so there is no path from the section root to a nested profile.
|
|
45864
|
-
settingsPath: [],
|
|
45865
|
-
defaultBaseURL: DEFAULT_BASE_URL,
|
|
45866
|
-
...error === void 0 ? {} : { error }
|
|
45867
|
-
});
|
|
45868
|
-
const publishDirectory = (error) => {
|
|
45869
|
-
if (directoryRetired || directory !== void 0 && error === directoryError) return;
|
|
45870
|
-
directoryError = error;
|
|
45871
|
-
const entry = directoryEntry(error);
|
|
45872
|
-
try {
|
|
45873
|
-
if (directory === void 0) directory = ctx.llm.registerConfigurableProviders([entry]);
|
|
45874
|
-
else directory.replace([entry]);
|
|
45875
|
-
} catch (failure) {
|
|
45876
|
-
directoryRetired = true;
|
|
45877
|
-
ctx.logger.error(
|
|
45878
|
-
`dshopencodego: could not publish the "${PROVIDER_ID}" configurable-provider entry; the Models page will not offer this route's model discovery (${String(failure)})`
|
|
45879
|
-
);
|
|
45880
|
-
}
|
|
45881
|
-
};
|
|
45882
|
-
publishDirectory(void 0);
|
|
45883
45853
|
const resolveApiKey = async () => {
|
|
45884
45854
|
const ref = current().apiKeyEnv;
|
|
45885
45855
|
const credentials = ctx.get("credentials");
|
|
@@ -45948,7 +45918,6 @@ function apply(ctx, raw) {
|
|
|
45948
45918
|
ctx.logger.info("dshopencodego: disabled by configuration; the route and its models are withdrawn");
|
|
45949
45919
|
}
|
|
45950
45920
|
}
|
|
45951
|
-
publishDirectory(enabled && !credentialConfigured ? `the route is withheld until ${current().apiKeyEnv} is stored through the credentials service` : void 0);
|
|
45952
45921
|
};
|
|
45953
45922
|
const syncRoute = () => {
|
|
45954
45923
|
try {
|
|
@@ -45990,8 +45959,6 @@ function apply(ctx, raw) {
|
|
|
45990
45959
|
ctx.effect(() => () => {
|
|
45991
45960
|
registration?.();
|
|
45992
45961
|
undiscover();
|
|
45993
|
-
directory?.();
|
|
45994
|
-
directoryRetired = true;
|
|
45995
45962
|
});
|
|
45996
45963
|
ctx.on("internal/config", function(_raw, next) {
|
|
45997
45964
|
const value = next();
|
package/package.json
CHANGED