@lmzhen/dsh-evolution-settings-ui 0.28.0 → 0.30.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
@@ -31,8 +31,8 @@ window.__ModuleLoader__.load({
31
31
  merge: {
32
32
  view: "/api/dsh-evolution/merge/view",
33
33
  rows: "/api/dsh-evolution/merge/rows",
34
- run: "/api/dsh-evolution/merge/run",
35
- runs: "/api/dsh-evolution/merge/runs"
34
+ body: "/api/dsh-evolution/merge/body",
35
+ history: "/api/dsh-evolution/merge/history"
36
36
  },
37
37
  diagnostics: { view: "/api/dsh-evolution/diagnostics" }
38
38
  };
@@ -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
  }
@@ -703,6 +707,7 @@ window.__ModuleLoader__.load({
703
707
  "evolution-approval",
704
708
  "evolution-commands",
705
709
  "evolution-curator",
710
+ "evolution-merge",
706
711
  "evolution-review",
707
712
  "memory-files"
708
713
  ]
@@ -713,6 +718,7 @@ window.__ModuleLoader__.load({
713
718
  "evolution-approval",
714
719
  "evolution-commands",
715
720
  "evolution-curator",
721
+ "evolution-merge",
716
722
  "evolution-review",
717
723
  "memory-files",
718
724
  "tool-memory",
@@ -2118,7 +2124,7 @@ window.__ModuleLoader__.load({
2118
2124
  * @returns the section element.
2119
2125
  */
2120
2126
  function SettingsSection(face) {
2121
- return (0, react.createElement)("div", { className: "evolution-params" }, (0, react.createElement)("h2", { className: "evolution-params-title" }, face.t("title")), (0, react.createElement)("p", { className: "evolution-params-subtitle" }, face.t("subtitle")), (0, react.createElement)("p", { className: "evolution-params-about" }, "0.28.0 · Web settings cards for the evolution family's parameter namespaces"), (0, react.createElement)("div", {
2127
+ return (0, react.createElement)("div", { className: "evolution-params" }, (0, react.createElement)("h2", { className: "evolution-params-title" }, face.t("title")), (0, react.createElement)("p", { className: "evolution-params-subtitle" }, face.t("subtitle")), (0, react.createElement)("p", { className: "evolution-params-about" }, "0.30.0 · Web settings cards for the evolution family's parameter namespaces"), (0, react.createElement)("div", {
2122
2128
  key: PENDING_CARD_KEY,
2123
2129
  className: "evolution-params-group"
2124
2130
  }, face.renderSlot(CARD_SLOT, {}, { entryKey: PENDING_CARD_KEY })), (0, react.createElement)("div", {
@@ -5,7 +5,7 @@
5
5
  * description, so the settings surface can state both without a hand-written copy.
6
6
  */
7
7
  /** The family version this surface belongs to. */
8
- export declare const FAMILY_VERSION = "0.28.0";
8
+ export declare const FAMILY_VERSION = "0.30.0";
9
9
  /** What this surface is for, in one line. */
10
10
  export declare const PACKAGE_PURPOSE = "Web settings cards for the evolution family's parameter namespaces";
11
11
  //# sourceMappingURL=generated-about.d.ts.map
@@ -27,8 +27,8 @@ export declare const ROUTES: {
27
27
  readonly merge: {
28
28
  readonly view: "/api/dsh-evolution/merge/view";
29
29
  readonly rows: "/api/dsh-evolution/merge/rows";
30
- readonly run: "/api/dsh-evolution/merge/run";
31
- readonly runs: "/api/dsh-evolution/merge/runs";
30
+ readonly body: "/api/dsh-evolution/merge/body";
31
+ readonly history: "/api/dsh-evolution/merge/history";
32
32
  };
33
33
  readonly diagnostics: {
34
34
  readonly view: "/api/dsh-evolution/diagnostics";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-settings-ui",
3
3
  "description": "Web settings cards for the evolution family's parameter namespaces (community build)",
4
- "version": "0.28.0",
4
+ "version": "0.30.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },