dsh-mnemon 0.5.7 → 0.5.9

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
@@ -1460,6 +1460,9 @@ window.__ModuleLoader__.load({
1460
1460
  "status.title": "系统状态",
1461
1461
  "status.description": "聚焦 dsh-mnemon、各记忆 Provider、三层存储和当前读写目录;连接配置由 DSH 部署统一管理。",
1462
1462
  "status.nominal": "系统正常",
1463
+ "status.reviewFailed": "后台审查失败",
1464
+ "status.reviewFailedDetail": "本轮记忆检查未完成;候选内容会保留到后续符合条件的审查。",
1465
+ "status.reviewContextWindow": "请在 Mnemon 设置中选择上下文窗口足以覆盖父会话的任务模型。后台审查需要继承父会话。",
1463
1466
  "status.checkRequired": "需要检查",
1464
1467
  "status.rechecking": "检查中…",
1465
1468
  "status.recheck": "重新检查",
@@ -1982,6 +1985,9 @@ window.__ModuleLoader__.load({
1982
1985
  "status.title": "System Status",
1983
1986
  "status.description": "dsh-mnemon, memory providers, three-tier storage, and the current read/write root. DSH deployment owns connection configuration.",
1984
1987
  "status.nominal": "System nominal",
1988
+ "status.reviewFailed": "Background review failed",
1989
+ "status.reviewFailedDetail": "This memory checkpoint did not complete. Candidates remain pending for a later eligible review.",
1990
+ "status.reviewContextWindow": "Choose a task model in Mnemon settings whose context window covers the parent conversation. Background review inherits the parent conversation.",
1985
1991
  "status.checkRequired": "Check required",
1986
1992
  "status.rechecking": "Checking…",
1987
1993
  "status.recheck": "Check again",
@@ -6765,6 +6771,7 @@ window.__ModuleLoader__.load({
6765
6771
  const t = useT();
6766
6772
  const [versionsOpen, setVersionsOpen] = (0, react.useState)(false);
6767
6773
  const status = props.status;
6774
+ const reviewError = status?.lifecycle?.current?.lastError;
6768
6775
  const documents = status?.documents;
6769
6776
  const catalogKnown = status?.memoryBodies !== void 0;
6770
6777
  const memorySpaces = (0, react.useMemo)(() => status?.memoryBodies ?? [], [status]);
@@ -6781,7 +6788,7 @@ window.__ModuleLoader__.load({
6781
6788
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PageHeader, {
6782
6789
  title: t("status.title"),
6783
6790
  description: t("status.description"),
6784
- meta: status === null && props.loading ? t("common.loading") : status === null ? t("status.checkRequired") : t("status.nominal"),
6791
+ meta: status === null && props.loading ? t("common.loading") : status === null || reviewError !== void 0 ? t("status.checkRequired") : t("status.nominal"),
6785
6792
  ...props.loading ? { loadingLabel: t("status.rechecking") } : {},
6786
6793
  action: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6787
6794
  className: MnemonView_module_css_default.statusHeaderActions,
@@ -7435,6 +7442,17 @@ window.__ModuleLoader__.load({
7435
7442
  role: "alert",
7436
7443
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("header.notReady") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: statusError ?? status?.error })]
7437
7444
  }),
7445
+ status?.lifecycle?.current?.lastError !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7446
+ className: MnemonView_module_css_default.alert,
7447
+ role: "alert",
7448
+ "aria-label": t("status.reviewFailed"),
7449
+ children: [
7450
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("status.reviewFailed") }),
7451
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: status.lifecycle.current.lastError }),
7452
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("status.reviewFailedDetail") }),
7453
+ /CONTEXT_WINDOW_EXCEEDED|exceed(?:s|ed)? (?:the )?(?:available )?context (?:size|window)/iu.test(status.lifecycle.current.lastError) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("status.reviewContextWindow") })
7454
+ ]
7455
+ }),
7438
7456
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7439
7457
  className: MnemonView_module_css_default.workspace,
7440
7458
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkspaceNavigation, {
@@ -7465,7 +7483,7 @@ window.__ModuleLoader__.load({
7465
7483
  }
7466
7484
  //#endregion
7467
7485
  //#region \0dsh-mnemon-css:/home/runner/work/dsh-mnemon/dsh-mnemon/src/client/MnemonWorkspace.module.css.mjs
7468
- const css = ".NS3bAW_workspacePanel{box-sizing:border-box;background:var(--dsw-alias-bg-overlay,var(--dsw-alias-bg-base));pointer-events:auto;min-width:0;min-height:0;display:flex;position:fixed;overflow:hidden}.NS3bAW_workspacePanel>*{flex:auto;width:100%;min-width:0}.NS3bAW_betterSidebarSeat{width:100%;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.NS3bAW_betterSidebarSeat>*{flex:auto;min-width:0}.NS3bAW_entry{box-sizing:border-box;width:100%;min-height:36px;color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;padding:0 10px;font-size:13px;display:flex}.NS3bAW_entry:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.NS3bAW_entry[data-active]{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-active);font-weight:600}.NS3bAW_entryIcon{flex:none;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.NS3bAW_entryIcon svg{width:18px;height:18px;display:block}.NS3bAW_entryLabel{text-overflow:ellipsis;overflow:hidden}[data-sidebar-collapsed] .NS3bAW_entry{width:36px;min-height:36px;color:var(--dsw-alias-label-primary);border-radius:50%;justify-content:center;margin:0 auto 12px;padding:0}[data-sidebar-collapsed] .NS3bAW_entryIcon svg{width:20px;height:20px}[data-sidebar-collapsed] .NS3bAW_entryLabel{display:none}";
7486
+ const css = ".NS3bAW_workspacePanel{box-sizing:border-box;background:var(--dsw-alias-bg-overlay,var(--dsw-alias-bg-base));pointer-events:auto;min-width:0;min-height:0;display:flex;position:fixed;overflow:hidden}.NS3bAW_workspacePanel>*{flex:auto;width:100%;min-width:0}.NS3bAW_betterSidebarSeat{width:100%;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.NS3bAW_betterSidebarSeat>*{flex:auto;min-width:0}.NS3bAW_entry{box-sizing:border-box;width:100%;min-height:36px;color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:8px;padding:0 10px;font-size:13px;display:flex}.NS3bAW_entry:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.NS3bAW_entry[data-active]{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-active);font-weight:600}.NS3bAW_entryIcon{flex:none;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.NS3bAW_entryIcon svg{width:18px;height:18px;display:block}.NS3bAW_entryLabel{text-overflow:ellipsis;overflow:hidden}[data-sidebar-collapsed] .NS3bAW_entry{width:36px;min-height:36px;color:var(--dsw-alias-label-primary);border-radius:50%;justify-content:center;margin:0 auto 12px;padding:0}[data-sidebar-collapsed] .NS3bAW_entryIcon svg{width:20px;height:20px}[data-sidebar-collapsed] .NS3bAW_entryLabel{display:none}";
7469
7487
  const tagId = "dsh-mnemon/src/client/MnemonWorkspace.module.css";
7470
7488
  if (typeof document !== "undefined") {
7471
7489
  let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]");
@@ -7522,6 +7540,8 @@ window.__ModuleLoader__.load({
7522
7540
  const entry = document.createElement("button");
7523
7541
  entry.type = "button";
7524
7542
  entry.dataset.dshMnemonEntry = "";
7543
+ entry.dataset.dshPlugin = "dsh-mnemon";
7544
+ entry.dataset.dshPart = "sidebar-entry";
7525
7545
  entry.className = MnemonWorkspace_module_css_default.entry ?? "";
7526
7546
  const icon = document.createElement("span");
7527
7547
  icon.className = MnemonWorkspace_module_css_default.entryIcon ?? "";