@linxin666/dsh-client-ui-plugin-manager 0.4.11 → 0.4.13
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/README.i18n.yaml +2 -2
- package/README.md +4 -0
- package/README.zh.md +4 -0
- package/cordis.patch.yml +9 -0
- package/lib/client.js +755 -4
- package/lib/client.js.map +1 -1
- package/lib/index.js +72 -12
- package/lib/types/client/BuiltinPlugins.d.ts +41 -0
- package/lib/types/client/builtin-plugins-mount.d.ts +42 -0
- package/lib/types/client/index.d.ts +5 -4
- package/lib/types/client/locales.d.ts +90 -0
- package/lib/types/client/native-faces.d.ts +61 -0
- package/lib/types/core/builtin.d.ts +178 -0
- package/lib/types/host/gateway.d.ts +41 -0
- package/lib/types/host/legacy-migration.d.ts +2 -2
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +5 -2
|
@@ -24,6 +24,26 @@ import { type OutputCapture } from './console-output.ts';
|
|
|
24
24
|
* @returns the rejection message, or undefined when the spec is safe.
|
|
25
25
|
*/
|
|
26
26
|
export declare function unsafeSpecReason(spec: string): string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Whether one CLI run's captured output carries the skipped-build-script
|
|
29
|
+
* condition.
|
|
30
|
+
*
|
|
31
|
+
* `dsh plugin` forwards to pnpm, so a non-zero exit is pnpm's own verdict —
|
|
32
|
+
* except this one, which pnpm prints *after* it has written the profile: a
|
|
33
|
+
* dependency that declares a build script is not built until it is approved, and
|
|
34
|
+
* the unapproved one fails the command while the package is already on disk and
|
|
35
|
+
* the profile already carries it. Measured 2026-10-31 against the CLI's bundled
|
|
36
|
+
* pnpm 11.9.0 and against pnpm 11.24.0: `dsh plugin --profile web add
|
|
37
|
+
* cpu-features` exits 1 with its dependency landed, and the family aggregate
|
|
38
|
+
* exits the same way naming cloudflared, cpu-features and ssh2.
|
|
39
|
+
*
|
|
40
|
+
* The condition is necessary and not sufficient: only the profile can say
|
|
41
|
+
* whether the change the caller asked for really landed. The job runner reads it
|
|
42
|
+
* and keeps the exit a failure when it did not.
|
|
43
|
+
* @param output - the captured stdout and stderr of one CLI run.
|
|
44
|
+
* @returns true when pnpm named the build scripts it skipped.
|
|
45
|
+
*/
|
|
46
|
+
export declare function reportsIgnoredBuilds(output: string): boolean;
|
|
27
47
|
/** One CLI-backed operation in flight or settled. */
|
|
28
48
|
export interface GatewayJob {
|
|
29
49
|
id: string;
|
|
@@ -61,6 +81,16 @@ export interface GatewayJob {
|
|
|
61
81
|
* reporting a clean in-place update.
|
|
62
82
|
*/
|
|
63
83
|
restartRequired?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* Conditions a settled run reported while still carrying its change out:
|
|
86
|
+
* pnpm's own words about a non-zero exit the gateway accepted because the
|
|
87
|
+
* profile really moved ({@link reportsIgnoredBuilds}). The job is `done` —
|
|
88
|
+
* the packages are installed — and this rides the same optional string-list
|
|
89
|
+
* fact channel as {@link GatewayJob.restartRequired}, because the `notices`
|
|
90
|
+
* ledger records row-state moves in the conflict-row shape and a build-script
|
|
91
|
+
* diagnostic is neither a row nor a state.
|
|
92
|
+
*/
|
|
93
|
+
warnings?: string[];
|
|
64
94
|
error?: string;
|
|
65
95
|
}
|
|
66
96
|
/** The binary search roots for the dsh CLI. */
|
|
@@ -584,6 +614,17 @@ export declare class CliGateway {
|
|
|
584
614
|
private run;
|
|
585
615
|
/** The mutation body of {@link run}. */
|
|
586
616
|
private runInner;
|
|
617
|
+
/**
|
|
618
|
+
* Carry an accepted non-zero exit to the caller and to the host log.
|
|
619
|
+
*
|
|
620
|
+
* Every post-check passed, so the change landed and the job settles `done`;
|
|
621
|
+
* the pnpm output is kept anyway, because it is the only record that a
|
|
622
|
+
* dependency was installed without its build script — a fact the next boot
|
|
623
|
+
* reports as a missing native module, with nothing left to attribute it to.
|
|
624
|
+
* @param job - the job the run settles.
|
|
625
|
+
* @param tolerated - the exit the profile overruled.
|
|
626
|
+
*/
|
|
627
|
+
private recordToleratedExit;
|
|
587
628
|
/**
|
|
588
629
|
* Post-mutation duplicate-mount safeguard (B9): remove the bundles entries
|
|
589
630
|
* the CLI's reconciliation newly added for packages the before-state
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The runtime identifiers (web-ui-* rows, settings section, API paths,
|
|
5
5
|
* storage keys) stay frozen; only the npm aggregate package name changes.
|
|
6
|
-
* This module is the single migration map
|
|
7
|
-
*
|
|
6
|
+
* This module is the single migration map for the plugin-manager update job,
|
|
7
|
+
* the one official writer that rewrites a user profile.
|
|
8
8
|
*/
|
|
9
9
|
/** The previously published aggregate package name. */
|
|
10
10
|
export declare const LEGACY_AGGREGATE = "@linxin666/dsh-web-ui-all";
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
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.
|
|
4
|
+
"version": "0.4.13",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"default": "./lib/client.js"
|
|
17
17
|
},
|
|
18
18
|
"./src/*": "./src/*",
|
|
19
|
+
"./locale/en.json": "./locale/en.json",
|
|
20
|
+
"./locale/zh.json": "./locale/zh.json",
|
|
19
21
|
"./package.json": "./package.json"
|
|
20
22
|
},
|
|
21
23
|
"dsh": {
|
|
@@ -70,7 +72,8 @@
|
|
|
70
72
|
"README.md",
|
|
71
73
|
"README.zh.md",
|
|
72
74
|
"README.i18n.yaml",
|
|
73
|
-
"icon.svg"
|
|
75
|
+
"icon.svg",
|
|
76
|
+
"locale"
|
|
74
77
|
],
|
|
75
78
|
"license": "BSD-3-Clause",
|
|
76
79
|
"dependencies": {
|