@lmzhen/dsh-evolution-skill-health 0.27.3 → 0.29.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/client.js
CHANGED
|
@@ -28,6 +28,12 @@ window.__ModuleLoader__.load({
|
|
|
28
28
|
health: "/api/dsh-evolution/skill-history/health"
|
|
29
29
|
},
|
|
30
30
|
"skill-health": { rows: "/api/dsh-evolution/skill-health/rows" },
|
|
31
|
+
merge: {
|
|
32
|
+
view: "/api/dsh-evolution/merge/view",
|
|
33
|
+
rows: "/api/dsh-evolution/merge/rows",
|
|
34
|
+
run: "/api/dsh-evolution/merge/run",
|
|
35
|
+
runs: "/api/dsh-evolution/merge/runs"
|
|
36
|
+
},
|
|
31
37
|
diagnostics: { view: "/api/dsh-evolution/diagnostics" }
|
|
32
38
|
};
|
|
33
39
|
//#endregion
|
|
@@ -94,12 +100,16 @@ window.__ModuleLoader__.load({
|
|
|
94
100
|
ok: true,
|
|
95
101
|
data: record.data
|
|
96
102
|
};
|
|
97
|
-
|
|
103
|
+
const nested = record.error;
|
|
104
|
+
const errorRecord = typeof nested === "object" && nested !== null ? nested : void 0;
|
|
105
|
+
const code = typeof record.code === "string" && record.code !== "" ? record.code : typeof errorRecord?.code === "string" ? errorRecord.code : void 0;
|
|
106
|
+
const message = typeof record.message === "string" && record.message !== "" ? record.message : typeof errorRecord?.message === "string" ? errorRecord.message : void 0;
|
|
107
|
+
if (record.ok === false && code !== void 0 && message !== void 0 && message !== "") return {
|
|
98
108
|
ok: false,
|
|
99
109
|
failure: {
|
|
100
110
|
kind: "refused",
|
|
101
|
-
code
|
|
102
|
-
message
|
|
111
|
+
code,
|
|
112
|
+
message
|
|
103
113
|
}
|
|
104
114
|
};
|
|
105
115
|
}
|
|
@@ -318,6 +328,7 @@ window.__ModuleLoader__.load({
|
|
|
318
328
|
approval: { command: "/evolution pending … /evolution approve <id> … /evolution reject <id> … /evolution release <id>" },
|
|
319
329
|
"skill-history": { command: "/evolution restore <name> [v](查看:/evolution skills history <name>)" },
|
|
320
330
|
"skill-health": { command: "/evolution skills refresh(健康行:/evolution doctor)" },
|
|
331
|
+
merge: { command: "/evolution merge status / pending / approve <id> / report" },
|
|
321
332
|
diagnostics: {
|
|
322
333
|
command: "/evolution doctor",
|
|
323
334
|
platformCli: "dsh --json /evolution doctor"
|
|
@@ -4,5 +4,5 @@ import type { FallbackHint } from './contracts.generated.ts';
|
|
|
4
4
|
* COMMAND_FALLBACKS (the ONE home). When the platform's connection carrier is absent (E-325) the
|
|
5
5
|
* panels render this hint instead of a bare HTTP failure — same use case, command face.
|
|
6
6
|
*/
|
|
7
|
-
export declare const FALLBACKS: Readonly<Record<'approval' | 'skill-history' | 'skill-health' | 'diagnostics', FallbackHint>>;
|
|
7
|
+
export declare const FALLBACKS: Readonly<Record<'approval' | 'skill-history' | 'skill-health' | 'merge' | 'diagnostics', FallbackHint>>;
|
|
8
8
|
//# sourceMappingURL=fallbacks.generated.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** One host data-plane surface the browser half can call. */
|
|
2
|
-
export type SurfaceId = 'approval' | 'skill-history' | 'skill-health' | 'diagnostics';
|
|
2
|
+
export type SurfaceId = 'approval' | 'skill-history' | 'skill-health' | 'merge' | 'diagnostics';
|
|
3
3
|
/**
|
|
4
4
|
* Every family host path, generated from evolution-core's HOST_ROUTES (the ONE declaration).
|
|
5
5
|
* A browser half cannot import the host package at runtime (client bundles keep @deepseek-ai/*
|
|
@@ -24,6 +24,12 @@ export declare const ROUTES: {
|
|
|
24
24
|
readonly 'skill-health': {
|
|
25
25
|
readonly rows: "/api/dsh-evolution/skill-health/rows";
|
|
26
26
|
};
|
|
27
|
+
readonly merge: {
|
|
28
|
+
readonly view: "/api/dsh-evolution/merge/view";
|
|
29
|
+
readonly rows: "/api/dsh-evolution/merge/rows";
|
|
30
|
+
readonly run: "/api/dsh-evolution/merge/run";
|
|
31
|
+
readonly runs: "/api/dsh-evolution/merge/runs";
|
|
32
|
+
};
|
|
27
33
|
readonly diagnostics: {
|
|
28
34
|
readonly view: "/api/dsh-evolution/diagnostics";
|
|
29
35
|
};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
]
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.29.0",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
46
|
-
"@lmzhen/dsh-evolution-curator": "^0.
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.29.0",
|
|
46
|
+
"@lmzhen/dsh-evolution-curator": "^0.29.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
50
50
|
"@types/react": "~18.3.1",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
53
|
-
"@lmzhen/dsh-evolution-curator": "^0.
|
|
52
|
+
"@lmzhen/dsh-evolution-core": "^0.29.0",
|
|
53
|
+
"@lmzhen/dsh-evolution-curator": "^0.29.0"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"dsh": ">=0.2.1-rc.1 <0.2.2-0"
|