@lmzhen/dsh-evolution-skill-history 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
- if (record.ok === false && typeof record.message === "string" && record.message !== "") return {
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: typeof record.code === "string" && record.code !== "" ? record.code : "refused",
102
- message: record.message
111
+ code,
112
+ message
103
113
  }
104
114
  };
105
115
  }
@@ -1016,6 +1026,7 @@ window.__ModuleLoader__.load({
1016
1026
  approval: { command: "/evolution pending … /evolution approve <id> … /evolution reject <id> … /evolution release <id>" },
1017
1027
  "skill-history": { command: "/evolution restore <name> [v](查看:/evolution skills history <name>)" },
1018
1028
  "skill-health": { command: "/evolution skills refresh(健康行:/evolution doctor)" },
1029
+ merge: { command: "/evolution merge status / pending / approve <id> / report" },
1019
1030
  diagnostics: {
1020
1031
  command: "/evolution doctor",
1021
1032
  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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-skill-history",
3
3
  "description": "Web surface for skill content history: loopback host routes plus the sidebar panel (community build)",
4
- "version": "0.27.3",
4
+ "version": "0.29.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -30,22 +30,22 @@
30
30
  ],
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@lmzhen/dsh-evolution-core": "^0.27.3"
33
+ "@lmzhen/dsh-evolution-core": "^0.29.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@deepseek-ai/cordis": "^4.0.5",
37
37
  "react": "^18.2.0",
38
- "@lmzhen/dsh-evolution-core": "^0.27.3",
39
- "@lmzhen/dsh-evolution-curator": "^0.27.3"
38
+ "@lmzhen/dsh-evolution-core": "^0.29.0",
39
+ "@lmzhen/dsh-evolution-curator": "^0.29.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@deepseek-ai/cordis": "^4.0.5",
43
43
  "@types/react": "~18.3.1",
44
44
  "react": "^18.2.0",
45
- "@lmzhen/dsh-evolution-core": "^0.27.3",
46
- "@lmzhen/dsh-evolution-curator": "^0.27.3",
47
- "@lmzhen/dsh-evolution-io": "^0.27.3",
48
- "@lmzhen/dsh-evolution-io-node": "^0.27.3"
45
+ "@lmzhen/dsh-evolution-core": "^0.29.0",
46
+ "@lmzhen/dsh-evolution-curator": "^0.29.0",
47
+ "@lmzhen/dsh-evolution-io": "^0.29.0",
48
+ "@lmzhen/dsh-evolution-io-node": "^0.29.0"
49
49
  },
50
50
  "dsh": {
51
51
  "client": {