dsh-plugin-update-checker 0.1.5 → 0.1.6
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 +13 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -59,6 +59,7 @@ window.__ModuleLoader__.load({
|
|
|
59
59
|
"updating": "更新中…",
|
|
60
60
|
"updated": "已更新",
|
|
61
61
|
"updateFailed": "更新失败",
|
|
62
|
+
"updateBlocked": "profile 未变更:很可能是发布年龄策略尚未放行该版本。请执行",
|
|
62
63
|
"linked": "源码链接(请从源码更新)",
|
|
63
64
|
"linkedHint": "该插件以源码软链方式安装,无法一键更新;请到源码目录拉取最新代码后重启 DSH。",
|
|
64
65
|
"sourceLink": "前往源码仓库",
|
|
@@ -102,6 +103,7 @@ window.__ModuleLoader__.load({
|
|
|
102
103
|
"updating": "Updating…",
|
|
103
104
|
"updated": "Updated",
|
|
104
105
|
"updateFailed": "Update failed",
|
|
106
|
+
"updateBlocked": "the profile was not modified. Most likely the release-age policy has not admitted that version yet — install it explicitly with",
|
|
105
107
|
"linked": "Source-linked (update from source)",
|
|
106
108
|
"linkedHint": "This plugin is installed as a source symlink and cannot be updated in one click. Pull the latest from its source repo, then restart DSH.",
|
|
107
109
|
"sourceLink": "Open source repository",
|
|
@@ -245,7 +247,17 @@ window.__ModuleLoader__.load({
|
|
|
245
247
|
// still report ok without changing anything (e.g. a bare spec
|
|
246
248
|
// against an already-pinned version), so surface that.
|
|
247
249
|
const changed = value.changed === true;
|
|
248
|
-
if (!changed)
|
|
250
|
+
if (!changed) {
|
|
251
|
+
// ok:false would mean the install failed; ok:true with changed:false
|
|
252
|
+
// means pnpm accepted the command but the profile already satisfied it.
|
|
253
|
+
// The common cause is the profile release-age policy: a version
|
|
254
|
+
// published minutes ago is not admitted until it is old enough, and
|
|
255
|
+
// installBundle does not register the exclusion the App CLI adds.
|
|
256
|
+
// "registry returned no newer version" was misleading: the registry
|
|
257
|
+
// did have it, the local policy refused it.
|
|
258
|
+
const target = typeof latest === "string" && latest !== "" ? `${name}@${latest}` : name;
|
|
259
|
+
throw new Error(`${t("updateBlocked")} dsh install-plugin ${target}`);
|
|
260
|
+
}
|
|
249
261
|
setOutcome((s) => ({ ...s, [name]: { ok: true, restartRequired: application === "restart-required", application } }));
|
|
250
262
|
// When the change is live immediately, re-scan so the row flips
|
|
251
263
|
// to "up to date" instead of still showing "update available".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-update-checker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "A DeepSeek Harness plugin that adds a \"Check updates\" button to the Plugins settings section: it scans every installed plugin bundle for published updates and evaluates its peer-dependency compatibility against the running DSH runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek",
|