@linxin666/dsh-client-ui-plugin-manager 0.2.7 → 0.2.9

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.
@@ -19,11 +19,22 @@ export interface GatewayRouteDeps {
19
19
  gateway: CliGateway;
20
20
  /** Resolve the dsh binary presence (the CLI is the write path). */
21
21
  cliAvailable: () => boolean;
22
- /** Registry fetch seam for update checks (test seam). */
23
- fetchLatest?: (name: string) => Promise<string | undefined>;
22
+ /** Registry fetch seam for update checks (test seam); the default reads the
23
+ * `/<name>/latest` manifest including the `dsh` / `engines` metadata. */
24
+ fetchManifest?: (name: string) => Promise<RegistryVersionManifest | undefined>;
25
+ /** Running DSH host version seam (test seam); the default probes `dsh --version`. */
26
+ dshVersion?: () => Promise<string | undefined>;
24
27
  /** Official-channel detection seam (test seam); defaults to the boot dump probe. */
25
28
  officialChannels?: () => Promise<boolean>;
26
29
  }
30
+ /** The published `/latest` manifest: version plus the compat metadata fields. */
31
+ export interface RegistryVersionManifest {
32
+ version: string;
33
+ /** Untrusted package manifest `dsh` object (bundle / client / engines). */
34
+ dsh?: unknown;
35
+ /** Untrusted package manifest `engines` object (node / dsh). */
36
+ engines?: unknown;
37
+ }
27
38
  /**
28
39
  * Build the gateway routes.
29
40
  * @param deps - profile facts, the CLI gateway, and seams.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-client-ui-plugin-manager",
3
3
  "description": "Plugin manager tab for the dsh web GUI Plugins settings section: installs plugins from npm or git through the official host channels, lists installed plugins with next-start enablement switches, surfaces install-time conflict actions with undo, and hands failures off to repair conversations.",
4
- "version": "0.2.7",
4
+ "version": "0.2.9",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/types/index.d.ts",
@@ -18,6 +18,9 @@
18
18
  "./package.json": "./package.json"
19
19
  },
20
20
  "dsh": {
21
+ "engines": {
22
+ "dsh": ">=0.1.1-rc.1"
23
+ },
21
24
  "bundle": {
22
25
  "patch": "./cordis.patch.yml"
23
26
  },
@@ -35,12 +38,12 @@
35
38
  },
36
39
  "devDependencies": {
37
40
  "@deepseek-ai/cordis": "^4.0.1",
38
- "@deepseek-ai/dsh-client-connection": "^0.1.1-rc.1",
39
- "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.1",
40
- "@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.1",
41
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.1",
42
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.1",
43
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.1",
41
+ "@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2",
42
+ "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
43
+ "@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
44
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2",
45
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2",
46
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2",
44
47
  "@testing-library/react": "^16.1.0",
45
48
  "@types/node": "^22.20.0",
46
49
  "@types/react": "~18.3.1",
@@ -51,7 +54,7 @@
51
54
  "tsdown": "0.22.2",
52
55
  "typescript": "~5.7.2",
53
56
  "vitest": "^4.1.1",
54
- "@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.1"
57
+ "@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2"
55
58
  },
56
59
  "files": [
57
60
  "lib",