@lmzhen/dsh-evolution-commands 0.61.2 → 0.62.0
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/index.js +3745 -1652
- package/lib/types/diagnostics-route.d.ts +3 -0
- package/lib/types/doctor-view.d.ts +4 -2
- package/lib/types/doctor.d.ts +1 -0
- package/lib/types/generated/host-commands.d.ts +1940 -0
- package/lib/types/index.d.ts +0 -2
- package/lib/types/params.d.ts +9 -1
- package/package.json +6 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ConnectionFetchRouteLike } from '@lmzhen/dsh-evolution-core/http-routes';
|
|
2
|
+
import type { HostLocale } from '@lmzhen/dsh-evolution-core';
|
|
2
3
|
import { type DoctorInputs } from './doctor-view.ts';
|
|
3
4
|
/** Read-lifecycle knobs; every one has a production default and none reads the environment. */
|
|
4
5
|
export interface DiagnosticsRouteOptions {
|
|
@@ -13,6 +14,8 @@ export interface DiagnosticsRouteOptions {
|
|
|
13
14
|
readonly timeoutMs?: number;
|
|
14
15
|
/** Clock seam for tests. */
|
|
15
16
|
readonly now?: () => number;
|
|
17
|
+
/** Locale for the two failure views this route answers itself (the assembled view carries its own). */
|
|
18
|
+
readonly locale?: () => HostLocale;
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* Build the diagnostics route over one input producer.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @module @lmzhen/dsh-evolution-commands/doctor-view
|
|
10
10
|
*/
|
|
11
11
|
import type { Context } from '@deepseek-ai/cordis';
|
|
12
|
-
import { type ChannelState, type DiagnosticsView } from '@lmzhen/dsh-evolution-core';
|
|
12
|
+
import { type ChannelState, type DiagnosticsView, type HostLocale } from '@lmzhen/dsh-evolution-core';
|
|
13
13
|
/** The install form the running profile was classified as (the seven values DoctorReport uses). */
|
|
14
14
|
export type InstallFormId = 'full' | 'human-gated' | 'preset' | 'host' | 'layered' | 'preset-only' | 'none';
|
|
15
15
|
/** The ONE install-form decision; callers only supply the facts their detection read. */
|
|
@@ -75,6 +75,8 @@ export interface DoctorInputs {
|
|
|
75
75
|
readonly mounted: number;
|
|
76
76
|
readonly total: number;
|
|
77
77
|
} | undefined;
|
|
78
|
+
/** Locale for every reader-facing string this view carries (host human-output locale). */
|
|
79
|
+
readonly locale?: HostLocale | undefined;
|
|
78
80
|
}
|
|
79
81
|
/**
|
|
80
82
|
* Compare two platform versions, prerelease suffixes included (`0.2.2-rc.0 < 0.2.2-rc.1 <
|
|
@@ -98,7 +100,7 @@ export declare function pairingOf(version: string | undefined, line: {
|
|
|
98
100
|
*/
|
|
99
101
|
export declare function buildDoctorView(inputs: DoctorInputs): DiagnosticsView;
|
|
100
102
|
/** A safe view for a host whose inputs could not be assembled: every row names the failure. */
|
|
101
|
-
export declare function unavailableDoctorView(now: Date, reason: string): DiagnosticsView;
|
|
103
|
+
export declare function unavailableDoctorView(now: Date, reason: string, locale?: HostLocale): DiagnosticsView;
|
|
102
104
|
/** The family version this build carries (nearest package.json above the running module). */
|
|
103
105
|
export declare function familyVersion(): string;
|
|
104
106
|
/**
|
package/lib/types/doctor.d.ts
CHANGED