@lmzhen/dsh-evolution-skill-history 0.28.0 → 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.
Files changed (2) hide show
  1. package/lib/client.js +7 -3
  2. package/package.json +8 -8
package/lib/client.js CHANGED
@@ -100,12 +100,16 @@ window.__ModuleLoader__.load({
100
100
  ok: true,
101
101
  data: record.data
102
102
  };
103
- 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 {
104
108
  ok: false,
105
109
  failure: {
106
110
  kind: "refused",
107
- code: typeof record.code === "string" && record.code !== "" ? record.code : "refused",
108
- message: record.message
111
+ code,
112
+ message
109
113
  }
110
114
  };
111
115
  }
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.28.0",
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.28.0"
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.28.0",
39
- "@lmzhen/dsh-evolution-curator": "^0.28.0"
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.28.0",
46
- "@lmzhen/dsh-evolution-curator": "^0.28.0",
47
- "@lmzhen/dsh-evolution-io": "^0.28.0",
48
- "@lmzhen/dsh-evolution-io-node": "^0.28.0"
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": {