@dan-ai-studio/dshopencodego 0.1.41 → 0.1.42
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/client.js +2 -1
- package/lib/index.js +1 -1
- package/lib/types/update/check.d.ts +5 -2
- package/lib/types/update/check.js +5 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -472,6 +472,7 @@ var import_react = require("react");
|
|
|
472
472
|
|
|
473
473
|
// src/update/check.ts
|
|
474
474
|
var PACKAGE_NAME = "@dan-ai-studio/dshopencodego";
|
|
475
|
+
var REPOSITORY = "dan-ai-studio/dshopencodego";
|
|
475
476
|
var REGISTRY_LATEST_URL = `https://registry.npmjs.org/${encodeURIComponent(PACKAGE_NAME)}/latest`;
|
|
476
477
|
var CHECK_CACHE_MS = 6 * 60 * 60 * 1e3;
|
|
477
478
|
|
|
@@ -948,7 +949,7 @@ function quotaLabel(model, t) {
|
|
|
948
949
|
function UpdateBanner({ controller, t, busy, act, update }) {
|
|
949
950
|
if (update.phase === "idle") return null;
|
|
950
951
|
const status = update.status;
|
|
951
|
-
const notes = `https://
|
|
952
|
+
const notes = status?.latest === void 0 ? `https://github.com/${REPOSITORY}/releases` : `https://github.com/${REPOSITORY}/releases/tag/v${status.latest}`;
|
|
952
953
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: section_default.block, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: section_default.row, children: [
|
|
953
954
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: t("updateTitle") }),
|
|
954
955
|
update.phase === "checking" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: section_default.hint, children: t("updateChecking") }),
|
package/lib/index.js
CHANGED
|
@@ -45505,7 +45505,7 @@ function createUpdateChecker(deps) {
|
|
|
45505
45505
|
}
|
|
45506
45506
|
|
|
45507
45507
|
// src/update/version.ts
|
|
45508
|
-
var PLUGIN_VERSION = true ? "0.1.
|
|
45508
|
+
var PLUGIN_VERSION = true ? "0.1.42" : "0.0.0-dev";
|
|
45509
45509
|
|
|
45510
45510
|
// src/update/service.ts
|
|
45511
45511
|
import { TypertRemoteService as TypertRemoteService2 } from "@deepseek-ai/dsh-typert-protocol";
|
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* HMR lifecycle, so it is deliberately not implemented here.
|
|
11
11
|
*
|
|
12
12
|
* The check runs only when the settings page asks (page open or manual
|
|
13
|
-
* refresh), never on the model-request path
|
|
14
|
-
*
|
|
13
|
+
* refresh), never on the model-request path. An unreachable registry is
|
|
14
|
+
* reported as exactly that: `UpdateStatus.checked` stays false so the page
|
|
15
|
+
* says the lookup failed instead of presenting it as "already up to date".
|
|
15
16
|
*
|
|
16
17
|
* @module @dan-ai-studio/dshopencodego/update/check
|
|
17
18
|
*/
|
|
18
19
|
/** This package as addressed on the registry. */
|
|
19
20
|
export declare const PACKAGE_NAME = "@dan-ai-studio/dshopencodego";
|
|
21
|
+
/** The GitHub repository, used to link a release's own notes. */
|
|
22
|
+
export declare const REPOSITORY = "dan-ai-studio/dshopencodego";
|
|
20
23
|
/** Document address answering `{ "version": "x.y.z", ... }`. */
|
|
21
24
|
export declare const REGISTRY_LATEST_URL: string;
|
|
22
25
|
/** How long one lookup answers for before the registry is asked again. */
|
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* HMR lifecycle, so it is deliberately not implemented here.
|
|
11
11
|
*
|
|
12
12
|
* The check runs only when the settings page asks (page open or manual
|
|
13
|
-
* refresh), never on the model-request path
|
|
14
|
-
*
|
|
13
|
+
* refresh), never on the model-request path. An unreachable registry is
|
|
14
|
+
* reported as exactly that: `UpdateStatus.checked` stays false so the page
|
|
15
|
+
* says the lookup failed instead of presenting it as "already up to date".
|
|
15
16
|
*
|
|
16
17
|
* @module @dan-ai-studio/dshopencodego/update/check
|
|
17
18
|
*/
|
|
18
19
|
/** This package as addressed on the registry. */
|
|
19
20
|
export const PACKAGE_NAME = '@dan-ai-studio/dshopencodego';
|
|
21
|
+
/** The GitHub repository, used to link a release's own notes. */
|
|
22
|
+
export const REPOSITORY = 'dan-ai-studio/dshopencodego';
|
|
20
23
|
/** Document address answering `{ "version": "x.y.z", ... }`. */
|
|
21
24
|
export const REGISTRY_LATEST_URL = `https://registry.npmjs.org/${encodeURIComponent(PACKAGE_NAME)}/latest`;
|
|
22
25
|
/** How long one lookup answers for before the registry is asked again. */
|
package/package.json
CHANGED