@linxin666/dsh-client-ui-task-board 0.4.20 → 0.4.21

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
@@ -2729,12 +2729,13 @@ window.__ModuleLoader__.load({
2729
2729
  function normalizeExecutionSummary(value) {
2730
2730
  if (typeof value !== "object" || value === null) return void 0;
2731
2731
  const row = value;
2732
- if (typeof row.text !== "string" || typeof row.seq !== "number" || !Number.isFinite(row.seq)) return void 0;
2732
+ if (typeof row.text !== "string") return void 0;
2733
+ if (row.seq !== void 0 && (typeof row.seq !== "number" || !Number.isFinite(row.seq))) return void 0;
2733
2734
  const text = row.text.trim();
2734
2735
  if (text === "") return void 0;
2735
2736
  return {
2736
2737
  text: truncateExecutionSummary(text),
2737
- seq: row.seq
2738
+ ...row.seq === void 0 ? {} : { seq: row.seq }
2738
2739
  };
2739
2740
  }
2740
2741
  /** Marker replacing every sensitive match. */
@@ -3196,7 +3197,9 @@ window.__ModuleLoader__.load({
3196
3197
  ownError: typeof execution.ownError === "string" ? execution.ownError : void 0,
3197
3198
  summary: normalizeExecutionSummary(execution.summary),
3198
3199
  rework: normalizeExecutionRework(execution.rework),
3199
- external: execution.external === true ? true : void 0
3200
+ external: execution.external === true ? true : void 0,
3201
+ errorCode: typeof execution.errorCode === "string" && execution.errorCode !== "" ? execution.errorCode : void 0,
3202
+ retryHint: typeof execution.retryHint === "string" && execution.retryHint !== "" ? execution.retryHint : void 0
3200
3203
  }));
3201
3204
  task.workspaceId = normalizeTargetId(row.workspaceId);
3202
3205
  task.mode = normalizeTargetId(row.mode);
@@ -9897,6 +9900,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9897
9900
  const result = execution.result;
9898
9901
  const external = execution.external === true;
9899
9902
  const recordedConclusion = external && result === "succeeded";
9903
+ const conclusion = execution.summary?.text;
9900
9904
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
9901
9905
  className: board_module_css_default.executionRow,
9902
9906
  "data-result": result,
@@ -9942,6 +9946,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9942
9946
  title: execution.initiatedBy,
9943
9947
  children: t("detail.execution.initiator", { session: execution.initiatedBy })
9944
9948
  }),
9949
+ conclusion !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9950
+ className: board_module_css_default.executionTimes,
9951
+ children: conclusion
9952
+ }),
9945
9953
  execution.error !== void 0 && execution.error !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9946
9954
  className: recordedConclusion ? board_module_css_default.executionTimes : board_module_css_default.executionError,
9947
9955
  children: recordedConclusion ? execution.error : failureText(execution.error)
@@ -14140,7 +14148,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
14140
14148
  /** The building package's version, when the bundle carries it. */
14141
14149
  function bakedVersion() {
14142
14150
  try {
14143
- return "0.4.20";
14151
+ return "0.4.21";
14144
14152
  } catch {
14145
14153
  return;
14146
14154
  }