dsh-daoing-memory 0.1.1 → 0.1.2

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
@@ -7735,8 +7735,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7735
7735
  document.head.appendChild(tag);
7736
7736
  }
7737
7737
  var MemoryFooterAction_module_css_default = {
7738
- "action": "O-5X5a_action",
7739
- "label": "O-5X5a_label"
7738
+ "label": "O-5X5a_label",
7739
+ "action": "O-5X5a_action"
7740
7740
  };
7741
7741
  //#endregion
7742
7742
  //#region src/client/MemoryFooterAction.tsx
@@ -7765,6 +7765,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7765
7765
  });
7766
7766
  }
7767
7767
  //#endregion
7768
+ //#region ../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
7769
+ function r(e) {
7770
+ var t, f, n = "";
7771
+ if ("string" == typeof e || "number" == typeof e) n += e;
7772
+ else if ("object" == typeof e) if (Array.isArray(e)) {
7773
+ var o = e.length;
7774
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
7775
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
7776
+ return n;
7777
+ }
7778
+ function clsx() {
7779
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
7780
+ return n;
7781
+ }
7782
+ //#endregion
7768
7783
  //#region src/client/actions.ts
7769
7784
  /** Curry the session id away so the pages keep calling the bound face. */
7770
7785
  function bindMemoryActions(remote, session) {
@@ -7861,7 +7876,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7861
7876
  }
7862
7877
  //#endregion
7863
7878
  //#region \0dsh-css:D:\DSH 插件项目\项目源码\deepseek-harness-master\packages\memory\dsh-daoing-memory\src\client\Workbench.module.css.mjs
7864
- const css = ".KAfEAG_panel{background:var(--dsw-alias-bg-base);border-left:1px solid var(--dsw-alias-border-l2);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0;overflow:hidden}.KAfEAG_header{border-bottom:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);flex-wrap:wrap;align-items:center;gap:16px;padding:10px 16px;display:flex}.KAfEAG_titleBlock{flex-direction:column;gap:2px;min-width:180px;display:flex}.KAfEAG_title{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600}.KAfEAG_subtitle{color:var(--dsw-alias-label-caption);font-size:11px}.KAfEAG_statline{color:var(--dsw-alias-label-tertiary);margin-left:auto;font-size:11px}.KAfEAG_body{flex:1;padding:12px 16px 24px;overflow:auto}.KAfEAG_page{flex-direction:column;gap:10px;display:flex}.KAfEAG_toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.KAfEAG_tabs{border-bottom:1px solid var(--dsw-alias-border-l2);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:12px;padding-bottom:8px;display:flex}.KAfEAG_tab{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;border-radius:999px;padding:6px 12px;font-size:12px}.KAfEAG_tab:hover{background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_tabActive{background:var(--dsw-alias-interactive-bg-active,var(--dsw-alias-bg-module-platform));color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-border-l3,var(--dsw-alias-border-l2));font-weight:600}.KAfEAG_field{color:var(--dsw-alias-label-caption);flex-direction:column;gap:3px;font-size:11px;display:flex}.KAfEAG_field input,.KAfEAG_field select,.KAfEAG_field textarea{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);border-radius:6px;min-width:140px;padding:5px 8px;font-size:12px}.KAfEAG_field textarea{resize:vertical}.KAfEAG_check{color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;font-size:12px;display:flex}.KAfEAG_btn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;border-radius:6px;padding:5px 10px;font-size:12px}.KAfEAG_btn:hover{background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_btn:disabled{opacity:.5;cursor:default}.KAfEAG_btnDanger{color:var(--dsw-alias-state-error-primary)}.KAfEAG_btnDanger:hover{background:var(--dsw-alias-interactive-bg-hover-danger)}.KAfEAG_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.KAfEAG_okLine{color:var(--dsw-alias-state-success-primary);font-size:12px}.KAfEAG_warnLine{color:var(--dsw-alias-state-warn-label);margin-bottom:6px;font-size:12px}.KAfEAG_empty{color:var(--dsw-alias-label-caption);padding:14px 4px;font-size:12px}.KAfEAG_list{flex-direction:column;gap:8px;display:flex}.KAfEAG_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);border-radius:8px;padding:8px 12px}.KAfEAG_cardHead{cursor:pointer;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.KAfEAG_cardTitle{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500}.KAfEAG_cardMeta{color:var(--dsw-alias-label-caption);font-size:11px}.KAfEAG_cardSub{align-items:center;gap:12px;margin-top:4px;display:flex}.KAfEAG_concernBg{color:var(--dsw-alias-label-caption);margin-top:3px;font-size:11px;line-height:1.5}.KAfEAG_cardDetail{border-top:1px solid var(--dsw-alias-border-l2);flex-direction:column;gap:5px;margin-top:8px;padding-top:8px;display:flex}.KAfEAG_detailRow{color:var(--dsw-alias-label-secondary);font-size:12px}.KAfEAG_detailLabel{min-width:64px;color:var(--dsw-alias-label-caption);display:inline-block}.KAfEAG_actions{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.KAfEAG_historyTitle{color:var(--dsw-alias-label-secondary);margin-top:10px;font-size:12px;font-weight:600}.KAfEAG_table{border-collapse:collapse;width:100%;color:var(--dsw-alias-label-secondary);font-size:12px}.KAfEAG_table th{text-align:left;color:var(--dsw-alias-label-caption);border-bottom:1px solid var(--dsw-alias-border-l2);padding:5px 8px;font-weight:500}.KAfEAG_table td{border-bottom:1px solid var(--dsw-alias-border-l2);vertical-align:top;padding:5px 8px}.KAfEAG_valueCell{text-overflow:ellipsis;white-space:nowrap;max-width:320px;overflow:hidden}.KAfEAG_payloadFull{white-space:pre-wrap;word-break:break-all;max-width:480px}.KAfEAG_payloadToggle{cursor:pointer;color:var(--ds-color-accent,#4c8dff);user-select:none;margin-left:6px;font-size:12px}.KAfEAG_payloadToggle:hover{text-decoration:underline}.KAfEAG_cellActions{flex-wrap:wrap;gap:4px;display:flex}.KAfEAG_badge{white-space:nowrap;border-radius:9px;padding:1px 7px;font-size:11px}.KAfEAG_badgePositive{background:var(--dsw-alias-state-success-tertiary);color:var(--dsw-alias-state-success-primary)}.KAfEAG_badgeNegative{background:var(--dsw-alias-state-warn-tertiary);color:var(--dsw-alias-state-warn-label)}.KAfEAG_badgePinned{background:var(--dsw-alias-state-business-tertiary);color:var(--dsw-alias-state-business-primary)}.KAfEAG_badgeConflict{background:var(--dsw-alias-state-warn-tertiary);color:var(--dsw-alias-state-warn-label)}.KAfEAG_statusLive{background:var(--dsw-alias-state-success-tertiary);color:var(--dsw-alias-state-success-primary)}.KAfEAG_statusCandidate{background:var(--dsw-alias-interactive-bg-active);color:var(--dsw-alias-label-secondary)}.KAfEAG_statusChallenged{background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.KAfEAG_statusOther{background:var(--dsw-alias-bg-skeleton);color:var(--dsw-alias-label-caption)}.KAfEAG_trust{color:var(--dsw-alias-label-tertiary);font-size:11px}.KAfEAG_columns{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:16px;display:grid}.KAfEAG_column{flex-direction:column;gap:8px;min-width:0;display:flex}.KAfEAG_sectionTitle{color:var(--dsw-alias-label-primary);margin-top:6px;font-size:13px;font-weight:600}.KAfEAG_form{border:1px solid var(--dsw-alias-border-l2);border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.KAfEAG_form .KAfEAG_btn{align-self:flex-start}.KAfEAG_rules{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:12px;display:flex}";
7879
+ const css = ".KAfEAG_panel{background:var(--dsw-alias-bg-base);border-left:1px solid var(--dsw-alias-border-l2);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0;overflow:hidden}.KAfEAG_header{border-bottom:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);flex-wrap:wrap;align-items:center;gap:16px;padding:10px 16px;display:flex}.KAfEAG_titleBlock{flex-direction:column;gap:2px;min-width:180px;display:flex}.KAfEAG_title{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600}.KAfEAG_subtitle{color:var(--dsw-alias-label-caption);font-size:11px}.KAfEAG_statline{color:var(--dsw-alias-label-tertiary);margin-left:auto;font-size:11px}.KAfEAG_body{flex:1;padding:12px 16px 24px;overflow:auto}.KAfEAG_workbenchTabs{border-bottom:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);align-items:center;gap:2px;padding:0 16px;display:flex}.KAfEAG_workbenchTab{color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:10px 14px;font-size:13px;line-height:20px;position:relative}.KAfEAG_workbenchTab:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_workbenchTabActive{color:var(--dsw-alias-label-primary);font-weight:600}.KAfEAG_workbenchTabActive:after{content:\"\";background:var(--ds-color-accent,#4c8dff);border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:-1px;left:14px;right:14px}.KAfEAG_page{flex-direction:column;gap:10px;display:flex}.KAfEAG_toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.KAfEAG_tabs{border-bottom:1px solid var(--dsw-alias-border-l2);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:12px;padding-bottom:8px;display:flex}.KAfEAG_tab{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;border-radius:999px;padding:6px 12px;font-size:12px}.KAfEAG_tab:hover{background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_tabActive{background:var(--dsw-alias-interactive-bg-active,var(--dsw-alias-bg-module-platform));color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-border-l3,var(--dsw-alias-border-l2));font-weight:600}.KAfEAG_field{color:var(--dsw-alias-label-caption);flex-direction:column;gap:3px;font-size:11px;display:flex}.KAfEAG_field input,.KAfEAG_field select,.KAfEAG_field textarea{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);border-radius:6px;min-width:140px;padding:5px 8px;font-size:12px}.KAfEAG_field textarea{resize:vertical}.KAfEAG_check{color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;font-size:12px;display:flex}.KAfEAG_btn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;border-radius:6px;padding:5px 10px;font-size:12px}.KAfEAG_btn:hover{background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_btn:disabled{opacity:.5;cursor:default}.KAfEAG_btnDanger{color:var(--dsw-alias-state-error-primary)}.KAfEAG_btnDanger:hover{background:var(--dsw-alias-interactive-bg-hover-danger)}.KAfEAG_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.KAfEAG_okLine{color:var(--dsw-alias-state-success-primary);font-size:12px}.KAfEAG_warnLine{color:var(--dsw-alias-state-warn-label);margin-bottom:6px;font-size:12px}.KAfEAG_empty{color:var(--dsw-alias-label-caption);padding:14px 4px;font-size:12px}.KAfEAG_list{flex-direction:column;gap:8px;display:flex}.KAfEAG_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);border-radius:8px;padding:8px 12px}.KAfEAG_cardHead{cursor:pointer;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.KAfEAG_cardTitle{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500}.KAfEAG_cardMeta{color:var(--dsw-alias-label-caption);font-size:11px}.KAfEAG_cardSub{align-items:center;gap:12px;margin-top:4px;display:flex}.KAfEAG_concernBg{color:var(--dsw-alias-label-caption);margin-top:3px;font-size:11px;line-height:1.5}.KAfEAG_cardDetail{border-top:1px solid var(--dsw-alias-border-l2);flex-direction:column;gap:5px;margin-top:8px;padding-top:8px;display:flex}.KAfEAG_detailRow{color:var(--dsw-alias-label-secondary);font-size:12px}.KAfEAG_detailLabel{min-width:64px;color:var(--dsw-alias-label-caption);display:inline-block}.KAfEAG_actions{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.KAfEAG_historyTitle{color:var(--dsw-alias-label-secondary);margin-top:10px;font-size:12px;font-weight:600}.KAfEAG_table{border-collapse:collapse;width:100%;color:var(--dsw-alias-label-secondary);font-size:12px}.KAfEAG_table th{text-align:left;color:var(--dsw-alias-label-caption);border-bottom:1px solid var(--dsw-alias-border-l2);padding:5px 8px;font-weight:500}.KAfEAG_table td{border-bottom:1px solid var(--dsw-alias-border-l2);vertical-align:top;padding:5px 8px}.KAfEAG_valueCell{text-overflow:ellipsis;white-space:nowrap;max-width:320px;overflow:hidden}.KAfEAG_payloadFull{white-space:pre-wrap;word-break:break-all;max-width:480px}.KAfEAG_payloadToggle{cursor:pointer;color:var(--ds-color-accent,#4c8dff);user-select:none;margin-left:6px;font-size:12px}.KAfEAG_payloadToggle:hover{text-decoration:underline}.KAfEAG_cellActions{flex-wrap:wrap;gap:4px;display:flex}.KAfEAG_badge{white-space:nowrap;border-radius:9px;padding:1px 7px;font-size:11px}.KAfEAG_badgePositive{background:var(--dsw-alias-state-success-tertiary);color:var(--dsw-alias-state-success-primary)}.KAfEAG_badgeNegative{background:var(--dsw-alias-state-warn-tertiary);color:var(--dsw-alias-state-warn-label)}.KAfEAG_badgePinned{background:var(--dsw-alias-state-business-tertiary);color:var(--dsw-alias-state-business-primary)}.KAfEAG_badgeConflict{background:var(--dsw-alias-state-warn-tertiary);color:var(--dsw-alias-state-warn-label)}.KAfEAG_statusLive{background:var(--dsw-alias-state-success-tertiary);color:var(--dsw-alias-state-success-primary)}.KAfEAG_statusCandidate{background:var(--dsw-alias-interactive-bg-active);color:var(--dsw-alias-label-secondary)}.KAfEAG_statusChallenged{background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.KAfEAG_statusOther{background:var(--dsw-alias-bg-skeleton);color:var(--dsw-alias-label-caption)}.KAfEAG_trust{color:var(--dsw-alias-label-tertiary);font-size:11px}.KAfEAG_columns{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:16px;display:grid}.KAfEAG_column{flex-direction:column;gap:8px;min-width:0;display:flex}.KAfEAG_sectionTitle{color:var(--dsw-alias-label-primary);margin-top:6px;font-size:13px;font-weight:600}.KAfEAG_form{border:1px solid var(--dsw-alias-border-l2);border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.KAfEAG_form .KAfEAG_btn{align-self:flex-start}.KAfEAG_rules{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:12px;display:flex}";
7865
7880
  const tagId = "dsh-daoing-memory/Workbench.module.css";
7866
7881
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
7867
7882
  const tag = document.createElement("style");
@@ -7871,58 +7886,61 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7871
7886
  document.head.appendChild(tag);
7872
7887
  }
7873
7888
  var Workbench_module_css_default = {
7874
- "cardDetail": "KAfEAG_cardDetail",
7875
- "historyTitle": "KAfEAG_historyTitle",
7876
- "table": "KAfEAG_table",
7877
- "valueCell": "KAfEAG_valueCell",
7878
- "actions": "KAfEAG_actions",
7879
- "badgePinned": "KAfEAG_badgePinned",
7880
7889
  "check": "KAfEAG_check",
7881
- "badgeConflict": "KAfEAG_badgeConflict",
7882
- "cardMeta": "KAfEAG_cardMeta",
7883
- "statusLive": "KAfEAG_statusLive",
7884
- "statusChallenged": "KAfEAG_statusChallenged",
7885
- "header": "KAfEAG_header",
7886
- "cardHead": "KAfEAG_cardHead",
7887
- "error": "KAfEAG_error",
7888
- "payloadFull": "KAfEAG_payloadFull",
7889
- "tabActive": "KAfEAG_tabActive",
7890
- "statusOther": "KAfEAG_statusOther",
7891
- "empty": "KAfEAG_empty",
7892
- "cardTitle": "KAfEAG_cardTitle",
7893
- "badge": "KAfEAG_badge",
7894
- "sectionTitle": "KAfEAG_sectionTitle",
7895
- "concernBg": "KAfEAG_concernBg",
7896
- "rules": "KAfEAG_rules",
7897
- "toolbar": "KAfEAG_toolbar",
7898
- "field": "KAfEAG_field",
7899
- "payloadToggle": "KAfEAG_payloadToggle",
7900
- "card": "KAfEAG_card",
7901
7890
  "body": "KAfEAG_body",
7902
- "cellActions": "KAfEAG_cellActions",
7903
- "detailRow": "KAfEAG_detailRow",
7904
- "columns": "KAfEAG_columns",
7905
- "cardSub": "KAfEAG_cardSub",
7906
- "title": "KAfEAG_title",
7891
+ "tab": "KAfEAG_tab",
7892
+ "cardHead": "KAfEAG_cardHead",
7893
+ "valueCell": "KAfEAG_valueCell",
7894
+ "workbenchTabs": "KAfEAG_workbenchTabs",
7907
7895
  "tabs": "KAfEAG_tabs",
7896
+ "card": "KAfEAG_card",
7908
7897
  "panel": "KAfEAG_panel",
7909
- "page": "KAfEAG_page",
7898
+ "cellActions": "KAfEAG_cellActions",
7899
+ "badge": "KAfEAG_badge",
7900
+ "statline": "KAfEAG_statline",
7910
7901
  "badgeNegative": "KAfEAG_badgeNegative",
7911
- "statusCandidate": "KAfEAG_statusCandidate",
7912
- "badgePositive": "KAfEAG_badgePositive",
7913
- "form": "KAfEAG_form",
7914
- "okLine": "KAfEAG_okLine",
7902
+ "btn": "KAfEAG_btn",
7903
+ "badgePinned": "KAfEAG_badgePinned",
7904
+ "columns": "KAfEAG_columns",
7915
7905
  "column": "KAfEAG_column",
7906
+ "form": "KAfEAG_form",
7916
7907
  "trust": "KAfEAG_trust",
7917
- "btnDanger": "KAfEAG_btnDanger",
7918
- "detailLabel": "KAfEAG_detailLabel",
7908
+ "table": "KAfEAG_table",
7909
+ "warnLine": "KAfEAG_warnLine",
7910
+ "sectionTitle": "KAfEAG_sectionTitle",
7911
+ "title": "KAfEAG_title",
7912
+ "payloadToggle": "KAfEAG_payloadToggle",
7919
7913
  "subtitle": "KAfEAG_subtitle",
7914
+ "cardSub": "KAfEAG_cardSub",
7915
+ "detailLabel": "KAfEAG_detailLabel",
7916
+ "workbenchTabActive": "KAfEAG_workbenchTabActive",
7917
+ "historyTitle": "KAfEAG_historyTitle",
7918
+ "statusLive": "KAfEAG_statusLive",
7919
+ "statusOther": "KAfEAG_statusOther",
7920
+ "rules": "KAfEAG_rules",
7921
+ "concernBg": "KAfEAG_concernBg",
7922
+ "page": "KAfEAG_page",
7923
+ "btnDanger": "KAfEAG_btnDanger",
7924
+ "error": "KAfEAG_error",
7925
+ "payloadFull": "KAfEAG_payloadFull",
7926
+ "okLine": "KAfEAG_okLine",
7927
+ "statusChallenged": "KAfEAG_statusChallenged",
7928
+ "detailRow": "KAfEAG_detailRow",
7929
+ "tabActive": "KAfEAG_tabActive",
7930
+ "field": "KAfEAG_field",
7920
7931
  "titleBlock": "KAfEAG_titleBlock",
7921
- "statline": "KAfEAG_statline",
7932
+ "empty": "KAfEAG_empty",
7933
+ "header": "KAfEAG_header",
7922
7934
  "list": "KAfEAG_list",
7923
- "tab": "KAfEAG_tab",
7924
- "btn": "KAfEAG_btn",
7925
- "warnLine": "KAfEAG_warnLine"
7935
+ "cardTitle": "KAfEAG_cardTitle",
7936
+ "cardMeta": "KAfEAG_cardMeta",
7937
+ "cardDetail": "KAfEAG_cardDetail",
7938
+ "statusCandidate": "KAfEAG_statusCandidate",
7939
+ "badgeConflict": "KAfEAG_badgeConflict",
7940
+ "badgePositive": "KAfEAG_badgePositive",
7941
+ "toolbar": "KAfEAG_toolbar",
7942
+ "workbenchTab": "KAfEAG_workbenchTab",
7943
+ "actions": "KAfEAG_actions"
7926
7944
  };
7927
7945
  //#endregion
7928
7946
  //#region src/client/ExperiencePage.tsx
@@ -10028,10 +10046,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10028
10046
  //#region src/client/Workbench.tsx
10029
10047
  /**
10030
10048
  * Memory workbench takeover: covers the frame area to the right of the
10031
- * sidebar while a monitoring page is selected in the left-sidebar memory nav
10032
- * group. The header title follows the selected page; opening a session row
10033
- * clears the selection and returns to the native conversation view. All human
10034
- * mutations go through the audited Remote callbacks.
10049
+ * sidebar while a monitoring page is selected. The entry point is the
10050
+ * sidebar.footer.action button (MemoryFooterAction); page switching lives
10051
+ * inside this panel as a tab bar so all four pages remain reachable without
10052
+ * relying on a sidebar nav group. Opening a session row clears the selection
10053
+ * and returns to the native conversation view. All human mutations go through
10054
+ * the audited Remote callbacks.
10035
10055
  */
10036
10056
  /** Format an epoch-ms timestamp as a compact local string. */
10037
10057
  function formatTs(ts) {
@@ -10133,39 +10153,55 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10133
10153
  className: Workbench_module_css_default.panel,
10134
10154
  style: { left: `${String(sidebarWidth)}px` },
10135
10155
  "data-memory-workbench": true,
10136
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
10137
- className: Workbench_module_css_default.header,
10138
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10139
- className: Workbench_module_css_default.titleBlock,
10140
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10141
- className: Workbench_module_css_default.title,
10142
- children: title
10143
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10144
- className: Workbench_module_css_default.subtitle,
10145
- children: "自进化记忆 · 生用修记 · 全局共享记忆库"
10156
+ children: [
10157
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
10158
+ className: Workbench_module_css_default.header,
10159
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10160
+ className: Workbench_module_css_default.titleBlock,
10161
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10162
+ className: Workbench_module_css_default.title,
10163
+ children: title
10164
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10165
+ className: Workbench_module_css_default.subtitle,
10166
+ children: "自进化记忆 · 生用修记 · 全局共享记忆库"
10167
+ })]
10168
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10169
+ className: Workbench_module_css_default.statline,
10170
+ children: stats === null ? "加载中…" : `经验 ${String(stats.experiences.total)}(live ${String(stats.experiences.byStatus.live)} / 隔离 ${String(stats.experiences.byStatus.challenged)})· 画像 ${String(stats.facts.current)} · 日记 ${String(stats.diary.total)}(待提取 ${String(stats.diary.unextracted)})· 账本 ${String(stats.ledgerBlocks)} 块`
10146
10171
  })]
10147
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10148
- className: Workbench_module_css_default.statline,
10149
- children: stats === null ? "加载中…" : `经验 ${String(stats.experiences.total)}(live ${String(stats.experiences.byStatus.live)} / 隔离 ${String(stats.experiences.byStatus.challenged)})· 画像 ${String(stats.facts.current)} · 日记 ${String(stats.diary.total)}(待提取 ${String(stats.diary.unextracted)})· 账本 ${String(stats.ledgerBlocks)} 块`
10150
- })]
10151
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("main", {
10152
- className: Workbench_module_css_default.body,
10153
- children: [
10154
- nav.page === "experience" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExperiencePage, {
10155
- actions: bound,
10156
- onChanged: refreshStats
10157
- }),
10158
- nav.page === "fact" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FactDiaryPage, {
10159
- actions: bound,
10160
- onChanged: refreshStats
10161
- }),
10162
- nav.page === "ledger" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LedgerPage, { actions: bound }),
10163
- nav.page === "human" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HumanOpsPage, {
10164
- actions: bound,
10165
- onChanged: refreshStats
10166
- })
10167
- ]
10168
- })]
10172
+ }),
10173
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
10174
+ className: Workbench_module_css_default.workbenchTabs,
10175
+ "aria-label": "记忆监控页面",
10176
+ children: MEMORY_NAV_ITEMS.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10177
+ type: "button",
10178
+ className: clsx(Workbench_module_css_default.workbenchTab, nav.page === item.key && Workbench_module_css_default.workbenchTabActive),
10179
+ "aria-current": nav.page === item.key ? "page" : void 0,
10180
+ onClick: () => {
10181
+ props.actions.select(item.key);
10182
+ },
10183
+ children: item.label
10184
+ }, item.key))
10185
+ }),
10186
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("main", {
10187
+ className: Workbench_module_css_default.body,
10188
+ children: [
10189
+ nav.page === "experience" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExperiencePage, {
10190
+ actions: bound,
10191
+ onChanged: refreshStats
10192
+ }),
10193
+ nav.page === "fact" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FactDiaryPage, {
10194
+ actions: bound,
10195
+ onChanged: refreshStats
10196
+ }),
10197
+ nav.page === "ledger" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LedgerPage, { actions: bound }),
10198
+ nav.page === "human" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HumanOpsPage, {
10199
+ actions: bound,
10200
+ onChanged: refreshStats
10201
+ })
10202
+ ]
10203
+ })
10204
+ ]
10169
10205
  });
10170
10206
  }
10171
10207
  //#endregion