@linxin666/dsh-client-ui-plugin-manager 0.4.21 → 0.4.22

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,15 @@
1
+ /** Browser-local exact-version update ignore rules (issue #2078). */
2
+ import type { PluginUpdateItem } from '../core/protocol.ts';
3
+ import { type IgnoredPluginUpdate } from '../core/updates.ts';
4
+ /** localStorage key for the versioned ignore-list document. */
5
+ export declare const IGNORED_UPDATES_STORAGE_KEY = "dsh.plugin-manager.ignored-updates.v1";
6
+ type StorageLike = Pick<Storage, 'getItem' | 'setItem'>;
7
+ /** Read valid unique rules; malformed or unavailable storage yields an empty list. */
8
+ export declare function loadIgnoredUpdates(storage?: StorageLike | undefined): IgnoredPluginUpdate[];
9
+ /** Persist the list when storage permits; the in-memory answer remains usable either way. */
10
+ export declare function saveIgnoredUpdates(ignored: readonly IgnoredPluginUpdate[], storage?: StorageLike | undefined): void;
11
+ /** Ignore one exact offer and persist the resulting independent list. */
12
+ export declare function rememberIgnoredUpdate(current: readonly IgnoredPluginUpdate[], item: PluginUpdateItem): IgnoredPluginUpdate[];
13
+ /** Restore one exact offer and persist the resulting independent list. */
14
+ export declare function forgetIgnoredUpdate(current: readonly IgnoredPluginUpdate[], item: PluginUpdateItem): IgnoredPluginUpdate[];
15
+ export {};
@@ -32,6 +32,10 @@ declare const STATIC_ZH: {
32
32
  updateFailedUnknown: string;
33
33
  updateRestartRequired: string;
34
34
  updatesPanelTitle: string;
35
+ ignoreUpdate: string;
36
+ ignoredUpdate: string;
37
+ ignoredUpdates: string;
38
+ restoreUpdate: string;
35
39
  thirdPartyOnly: string;
36
40
  restartNow: string;
37
41
  restarting: string;
@@ -112,6 +116,10 @@ export declare const zh: {
112
116
  updateFailedUnknown: string;
113
117
  updateRestartRequired: string;
114
118
  updatesPanelTitle: string;
119
+ ignoreUpdate: string;
120
+ ignoredUpdate: string;
121
+ ignoredUpdates: string;
122
+ restoreUpdate: string;
115
123
  thirdPartyOnly: string;
116
124
  restartNow: string;
117
125
  restarting: string;
@@ -192,6 +200,10 @@ export declare const en: {
192
200
  updateFailedUnknown: string;
193
201
  updateRestartRequired: string;
194
202
  updatesPanelTitle: string;
203
+ ignoreUpdate: string;
204
+ ignoredUpdate: string;
205
+ ignoredUpdates: string;
206
+ restoreUpdate: string;
195
207
  thirdPartyOnly: string;
196
208
  restartNow: string;
197
209
  restarting: string;
@@ -20,6 +20,21 @@
20
20
  import type { PluginUpdateItem } from './protocol.ts';
21
21
  /** The npm scope DSH's own packages are published under. */
22
22
  export declare const OFFICIAL_SCOPE = "@deepseek-ai/";
23
+ /** One exact registry version the user chose not to install. */
24
+ export interface IgnoredPluginUpdate {
25
+ id: string;
26
+ version: string;
27
+ }
28
+ /** Whether this exact offer is ignored; a newer version does not match. */
29
+ export declare function isUpdateIgnored(item: PluginUpdateItem, ignored: readonly IgnoredPluginUpdate[]): boolean;
30
+ /** Rows still offered to the user and to the bulk-update queue. */
31
+ export declare function unignoredUpdates(items: readonly PluginUpdateItem[], ignored: readonly IgnoredPluginUpdate[]): PluginUpdateItem[];
32
+ /** Rows currently hidden by an exact-version ignore rule. */
33
+ export declare function ignoredUpdates(items: readonly PluginUpdateItem[], ignored: readonly IgnoredPluginUpdate[]): PluginUpdateItem[];
34
+ /** Add an idempotent exact-version ignore rule. */
35
+ export declare function withIgnoredUpdate(current: readonly IgnoredPluginUpdate[], item: PluginUpdateItem): IgnoredPluginUpdate[];
36
+ /** Remove this exact offer's ignore rule, leaving other plugins untouched. */
37
+ export declare function withoutIgnoredUpdate(current: readonly IgnoredPluginUpdate[], item: PluginUpdateItem): IgnoredPluginUpdate[];
23
38
  /** Whether a package id is a third-party plugin rather than a DSH-shipped one. */
24
39
  export declare function isThirdPartyPlugin(id: string): boolean;
25
40
  /** The third-party update rows, in host order. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-client-ui-plugin-manager",
3
3
  "description": "Update checking for the dsh web GUI's official Plugins page: compares installed plugins against the version their registry source serves, gates the update on the DSH runtime minimum the release declares, and drives the update through the official installer channel or this package's loopback CLI gateway.",
4
- "version": "0.4.21",
4
+ "version": "0.4.22",
5
5
  "icon": "icon.svg",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dsh": {
24
24
  "engines": {
25
- "dsh": ">=0.2.2-rc.3"
25
+ "dsh": ">=0.2.3-alpha.2"
26
26
  },
27
27
  "bundle": {
28
28
  "patch": "./cordis.patch.yml"
@@ -36,21 +36,21 @@
36
36
  }
37
37
  },
38
38
  "peerDependencies": {
39
- "@deepseek-ai/dsh": ">=0.2.2-rc.3",
39
+ "@deepseek-ai/dsh": ">=0.2.3-alpha.2",
40
40
  "react": "^18.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@deepseek-ai/cordis": "^4.1.0",
44
- "@deepseek-ai/dsh-api-session-controller": "^0.2.2-rc.3",
45
- "@deepseek-ai/dsh-api-workspace-controller": "^0.2.2-rc.3",
46
- "@deepseek-ai/dsh-client-connection": "^0.2.2-rc.3",
47
- "@deepseek-ai/dsh-client-locale": "^0.2.2-rc.3",
48
- "@deepseek-ai/dsh-client-ui-primitives": "^0.2.2-rc.3",
49
- "@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.3",
50
- "@deepseek-ai/dsh-client-ui-settings": "^0.2.2-rc.3",
51
- "@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.3",
52
- "@deepseek-ai/dsh-client-ui-workspace": "^0.2.2-rc.3",
53
- "@deepseek-ai/dsh-host-webserver": "^0.2.2-rc.3",
43
+ "@deepseek-ai/cordis": "~4.2.0-alpha.1",
44
+ "@deepseek-ai/dsh-api-session-controller": "^0.2.3-alpha.2",
45
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.2.3-alpha.2",
46
+ "@deepseek-ai/dsh-client-connection": "^0.2.3-alpha.2",
47
+ "@deepseek-ai/dsh-client-locale": "^0.2.3-alpha.2",
48
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.2.3-alpha.2",
49
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.3-alpha.2",
50
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.3-alpha.2",
51
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.3-alpha.2",
52
+ "@deepseek-ai/dsh-client-ui-workspace": "^0.2.3-alpha.2",
53
+ "@deepseek-ai/dsh-host-webserver": "^0.2.3-alpha.2",
54
54
  "@testing-library/react": "^16.1.0",
55
55
  "@types/node": "^22.20.0",
56
56
  "@types/react": "~18.3.1",