bailian-memo-dsh 2.3.2 → 2.5.1

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/README.md CHANGED
@@ -6,7 +6,7 @@ Bailian personal memory plugin for [DeepSeek Harness](https://github.com/deepsee
6
6
 
7
7
  It adds automatic recall on top-level turns, silent auxiliary curation with recoverable async writes, explicit remember/forget tools, and a Plugins settings page. Identity and consent live in `~/.bailian/personal-memory/config.json` (shared with the `bailian-memory` skill). API keys use dsh credentials (`BAILIAN_MEMO_API_KEY`).
8
8
 
9
- > **Release gate:** stable publish requires Memory GA, verified profile-value delete (`need_detail` + `PATCH profile_values`), and a live dsh 0.2.1 install check. Until then, treat this package as internal / channel-only.
9
+ > **2.5.0 validation scope:** this plugin follows the unified CLI release. Actual dsh/Skill host validation is outside this release preparation scope; CI build and unit checks do not establish a successful host install, Memory service GA, or live profile-value deletion. Those checks must not be reported as passed without separate evidence.
10
10
 
11
11
  ## Install
12
12
 
package/README.zh.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  提供顶层回合自动召回、静默辅助筛选与可恢复异步写入、显式记住/遗忘工具,以及 Plugins 设置页。身份与授权保存在 `~/.bailian/personal-memory/config.json`(与 `bailian-memory` skill 共享)。API Key 使用 dsh credentials(`BAILIAN_MEMO_API_KEY`)。
8
8
 
9
- > **发布门槛:** stable 发布前需确认 Memory 主能力上线、画像值精确删除(`need_detail` + `PATCH profile_values`)实链路,以及 dsh 0.2.1 实机安装验证。此前仅用于内部 / channel 验证。
9
+ > **2.5.0验收范围:** 本插件跟随CLI统一发布,本轮发布准备不包含dsh/Skill实际宿主验收。CI构建及单测不代表宿主安装、Memory服务GA或画像值精确删除live已验证;没有独立证据时不能将这些检查标记为通过。
10
10
 
11
11
  ## 安装
12
12
 
@@ -215,8 +215,8 @@ window.__ModuleLoader__.load({
215
215
  };
216
216
  }
217
217
  //#endregion
218
- //#region \0dsh-css:/Users/zeyufeng/Documents/Code/workspace/cli/packages/bailian-memo-dsh/src/web/MemoCard.module.css.mjs
219
- const css = ".UBUnva_root{flex-direction:column;gap:16px;width:min(100%,760px);display:flex}.UBUnva_section{border:1px solid color-mix(in srgb, currentColor 12%, transparent);background:color-mix(in srgb, currentColor 2%, transparent);border-radius:12px;flex-direction:column;gap:14px;padding:18px;display:flex}.UBUnva_sectionHeading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.UBUnva_sectionHeading h2{margin:0;font-size:15px;font-weight:650}.UBUnva_sectionHeading p{opacity:.68;margin:4px 0 0;font-size:12px;line-height:1.5}.UBUnva_consent{background:color-mix(in srgb, currentColor 5%, transparent);border-radius:8px;margin:0;padding:12px;font-size:13px;line-height:1.55}.UBUnva_status{border-radius:999px;flex:none;padding:4px 9px;font-size:11px;font-weight:650}.UBUnva_setupRequired,.UBUnva_initializing,.UBUnva_automaticDisabled{color:#8a5700;background:#f2a90029}.UBUnva_active{color:#137548;background:#1a9b6224}.UBUnva_paused{color:#666;background:color-mix(in srgb, currentColor 8%, transparent)}.UBUnva_factGrid{grid-template-columns:minmax(120px,.5fr) minmax(0,1fr);align-items:baseline;gap:9px 16px;font-size:12px;display:grid}.UBUnva_factGrid>span{opacity:.65}.UBUnva_factGrid code{overflow-wrap:anywhere;font-size:11px}.UBUnva_inputGroup{flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.UBUnva_inputGroup small{opacity:.65;font-weight:400}.UBUnva_fieldHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.UBUnva_fieldTitle{align-items:center;gap:8px;min-width:0;display:flex}.UBUnva_getLink{white-space:nowrap;font-size:12px;font-weight:500}.UBUnva_badge,.UBUnva_badgeMuted{border-radius:999px;flex:none;padding:3px 8px;font-size:11px;font-weight:650}.UBUnva_badge{color:#137548;background:#1a9b6224}.UBUnva_badgeMuted{opacity:.72;background:color-mix(in srgb, currentColor 8%, transparent)}.UBUnva_autofillRow{align-items:center;gap:10px;display:flex}.UBUnva_autofillStatus{opacity:.68;font-size:12px;font-weight:400;line-height:1.45}.UBUnva_autofillStatusSuccess{color:#137548;font-size:12px;font-weight:400;line-height:1.45}.UBUnva_input{box-sizing:border-box;border:1px solid color-mix(in srgb, currentColor 20%, transparent);width:100%;color:inherit;background:0 0;border-radius:8px;padding:9px 10px}.UBUnva_input:disabled{opacity:.65}.UBUnva_actions{flex-wrap:wrap;gap:8px;display:flex}.UBUnva_primaryButton,.UBUnva_secondaryButton,.UBUnva_resetButton{border:1px solid color-mix(in srgb, currentColor 30%, transparent);color:inherit;cursor:pointer;border-radius:7px;padding:7px 12px}.UBUnva_primaryButton{color:#fff;background:#3377e5;border-color:#3377e5}.UBUnva_secondaryButton,.UBUnva_resetButton{background:0 0}.UBUnva_resetButton{opacity:.72;border:0;padding:4px 7px;font-size:11px}.UBUnva_primaryButton:disabled,.UBUnva_secondaryButton:disabled,.UBUnva_resetButton:disabled{opacity:.5;cursor:not-allowed}.UBUnva_message{color:#c0392b;background:#c0392b14;border-radius:7px;padding:9px 10px;font-size:12px}.UBUnva_flowStatus{color:#137548;background:#1a9b621a;border-radius:7px;padding:9px 10px;font-size:12px}.UBUnva_settingRow{border-bottom:1px solid color-mix(in srgb, currentColor 8%, transparent);justify-content:space-between;align-items:center;gap:20px;padding:10px 0;display:flex}.UBUnva_settingCopy{flex-direction:column;flex:1;gap:3px;display:flex}.UBUnva_settingTitle{align-items:center;gap:8px;font-size:13px;font-weight:600;display:flex}.UBUnva_settingControl{align-items:center;gap:5px;display:flex}.UBUnva_hint{opacity:.65;font-size:11px;line-height:1.4}.UBUnva_overridden{background:color-mix(in srgb, currentColor 8%, transparent);border-radius:4px;padding:2px 5px;font-size:9px;font-weight:500}.UBUnva_tasks{flex-direction:column;gap:8px;font-size:12px;display:flex}.UBUnva_task{background:color-mix(in srgb, currentColor 4%, transparent);border-radius:7px;grid-template-columns:minmax(90px,auto) 1fr;gap:4px 12px;padding:9px 10px;display:grid}.UBUnva_task span{overflow-wrap:anywhere;opacity:.7}.UBUnva_taskError{color:#c0392b;grid-column:1/-1}@media (width<=560px){.UBUnva_sectionHeading,.UBUnva_settingRow{flex-direction:column;align-items:stretch}.UBUnva_factGrid{grid-template-columns:1fr;gap:4px}.UBUnva_factGrid>strong,.UBUnva_factGrid>code{margin-bottom:6px}}";
218
+ //#region \0dsh-css:/home/runner/work/cli/cli/packages/bailian-memo-dsh/src/web/MemoCard.module.css.mjs
219
+ const css = ".S6UY6a_root{flex-direction:column;gap:16px;width:min(100%,760px);display:flex}.S6UY6a_section{border:1px solid color-mix(in srgb, currentColor 12%, transparent);background:color-mix(in srgb, currentColor 2%, transparent);border-radius:12px;flex-direction:column;gap:14px;padding:18px;display:flex}.S6UY6a_sectionHeading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.S6UY6a_sectionHeading h2{margin:0;font-size:15px;font-weight:650}.S6UY6a_sectionHeading p{opacity:.68;margin:4px 0 0;font-size:12px;line-height:1.5}.S6UY6a_consent{background:color-mix(in srgb, currentColor 5%, transparent);border-radius:8px;margin:0;padding:12px;font-size:13px;line-height:1.55}.S6UY6a_status{border-radius:999px;flex:none;padding:4px 9px;font-size:11px;font-weight:650}.S6UY6a_setupRequired,.S6UY6a_initializing,.S6UY6a_automaticDisabled{color:#8a5700;background:#f2a90029}.S6UY6a_active{color:#137548;background:#1a9b6224}.S6UY6a_paused{color:#666;background:color-mix(in srgb, currentColor 8%, transparent)}.S6UY6a_factGrid{grid-template-columns:minmax(120px,.5fr) minmax(0,1fr);align-items:baseline;gap:9px 16px;font-size:12px;display:grid}.S6UY6a_factGrid>span{opacity:.65}.S6UY6a_factGrid code{overflow-wrap:anywhere;font-size:11px}.S6UY6a_inputGroup{flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.S6UY6a_inputGroup small{opacity:.65;font-weight:400}.S6UY6a_fieldHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.S6UY6a_fieldTitle{align-items:center;gap:8px;min-width:0;display:flex}.S6UY6a_getLink{white-space:nowrap;font-size:12px;font-weight:500}.S6UY6a_badge,.S6UY6a_badgeMuted{border-radius:999px;flex:none;padding:3px 8px;font-size:11px;font-weight:650}.S6UY6a_badge{color:#137548;background:#1a9b6224}.S6UY6a_badgeMuted{opacity:.72;background:color-mix(in srgb, currentColor 8%, transparent)}.S6UY6a_autofillRow{align-items:center;gap:10px;display:flex}.S6UY6a_autofillStatus{opacity:.68;font-size:12px;font-weight:400;line-height:1.45}.S6UY6a_autofillStatusSuccess{color:#137548;font-size:12px;font-weight:400;line-height:1.45}.S6UY6a_input{box-sizing:border-box;border:1px solid color-mix(in srgb, currentColor 20%, transparent);width:100%;color:inherit;background:0 0;border-radius:8px;padding:9px 10px}.S6UY6a_input:disabled{opacity:.65}.S6UY6a_actions{flex-wrap:wrap;gap:8px;display:flex}.S6UY6a_primaryButton,.S6UY6a_secondaryButton,.S6UY6a_resetButton{border:1px solid color-mix(in srgb, currentColor 30%, transparent);color:inherit;cursor:pointer;border-radius:7px;padding:7px 12px}.S6UY6a_primaryButton{color:#fff;background:#3377e5;border-color:#3377e5}.S6UY6a_secondaryButton,.S6UY6a_resetButton{background:0 0}.S6UY6a_resetButton{opacity:.72;border:0;padding:4px 7px;font-size:11px}.S6UY6a_primaryButton:disabled,.S6UY6a_secondaryButton:disabled,.S6UY6a_resetButton:disabled{opacity:.5;cursor:not-allowed}.S6UY6a_message{color:#c0392b;background:#c0392b14;border-radius:7px;padding:9px 10px;font-size:12px}.S6UY6a_flowStatus{color:#137548;background:#1a9b621a;border-radius:7px;padding:9px 10px;font-size:12px}.S6UY6a_settingRow{border-bottom:1px solid color-mix(in srgb, currentColor 8%, transparent);justify-content:space-between;align-items:center;gap:20px;padding:10px 0;display:flex}.S6UY6a_settingCopy{flex-direction:column;flex:1;gap:3px;display:flex}.S6UY6a_settingTitle{align-items:center;gap:8px;font-size:13px;font-weight:600;display:flex}.S6UY6a_settingControl{align-items:center;gap:5px;display:flex}.S6UY6a_hint{opacity:.65;font-size:11px;line-height:1.4}.S6UY6a_overridden{background:color-mix(in srgb, currentColor 8%, transparent);border-radius:4px;padding:2px 5px;font-size:9px;font-weight:500}.S6UY6a_tasks{flex-direction:column;gap:8px;font-size:12px;display:flex}.S6UY6a_task{background:color-mix(in srgb, currentColor 4%, transparent);border-radius:7px;grid-template-columns:minmax(90px,auto) 1fr;gap:4px 12px;padding:9px 10px;display:grid}.S6UY6a_task span{overflow-wrap:anywhere;opacity:.7}.S6UY6a_taskError{color:#c0392b;grid-column:1/-1}@media (width<=560px){.S6UY6a_sectionHeading,.S6UY6a_settingRow{flex-direction:column;align-items:stretch}.S6UY6a_factGrid{grid-template-columns:1fr;gap:4px}.S6UY6a_factGrid>strong,.S6UY6a_factGrid>code{margin-bottom:6px}}";
220
220
  const tagId = "bailian-memo-dsh/MemoCard.module.css";
221
221
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
222
222
  const tag = document.createElement("style");
@@ -226,42 +226,42 @@ window.__ModuleLoader__.load({
226
226
  document.head.appendChild(tag);
227
227
  }
228
228
  var MemoCard_module_css_default = {
229
- "section": "UBUnva_section",
230
- "autofillRow": "UBUnva_autofillRow",
231
- "autofillStatusSuccess": "UBUnva_autofillStatusSuccess",
232
- "settingTitle": "UBUnva_settingTitle",
233
- "paused": "UBUnva_paused",
234
- "flowStatus": "UBUnva_flowStatus",
235
- "primaryButton": "UBUnva_primaryButton",
236
- "settingCopy": "UBUnva_settingCopy",
237
- "hint": "UBUnva_hint",
238
- "fieldTitle": "UBUnva_fieldTitle",
239
- "badgeMuted": "UBUnva_badgeMuted",
240
- "factGrid": "UBUnva_factGrid",
241
- "resetButton": "UBUnva_resetButton",
242
- "getLink": "UBUnva_getLink",
243
- "secondaryButton": "UBUnva_secondaryButton",
244
- "taskError": "UBUnva_taskError",
245
- "consent": "UBUnva_consent",
246
- "overridden": "UBUnva_overridden",
247
- "sectionHeading": "UBUnva_sectionHeading",
248
- "autofillStatus": "UBUnva_autofillStatus",
249
- "status": "UBUnva_status",
250
- "automaticDisabled": "UBUnva_automaticDisabled",
251
- "input": "UBUnva_input",
252
- "badge": "UBUnva_badge",
253
- "root": "UBUnva_root",
254
- "message": "UBUnva_message",
255
- "settingControl": "UBUnva_settingControl",
256
- "tasks": "UBUnva_tasks",
257
- "task": "UBUnva_task",
258
- "settingRow": "UBUnva_settingRow",
259
- "inputGroup": "UBUnva_inputGroup",
260
- "fieldHead": "UBUnva_fieldHead",
261
- "actions": "UBUnva_actions",
262
- "setupRequired": "UBUnva_setupRequired",
263
- "initializing": "UBUnva_initializing",
264
- "active": "UBUnva_active"
229
+ "sectionHeading": "S6UY6a_sectionHeading",
230
+ "factGrid": "S6UY6a_factGrid",
231
+ "autofillStatusSuccess": "S6UY6a_autofillStatusSuccess",
232
+ "autofillRow": "S6UY6a_autofillRow",
233
+ "inputGroup": "S6UY6a_inputGroup",
234
+ "consent": "S6UY6a_consent",
235
+ "primaryButton": "S6UY6a_primaryButton",
236
+ "secondaryButton": "S6UY6a_secondaryButton",
237
+ "overridden": "S6UY6a_overridden",
238
+ "autofillStatus": "S6UY6a_autofillStatus",
239
+ "getLink": "S6UY6a_getLink",
240
+ "settingCopy": "S6UY6a_settingCopy",
241
+ "tasks": "S6UY6a_tasks",
242
+ "badgeMuted": "S6UY6a_badgeMuted",
243
+ "actions": "S6UY6a_actions",
244
+ "hint": "S6UY6a_hint",
245
+ "fieldTitle": "S6UY6a_fieldTitle",
246
+ "automaticDisabled": "S6UY6a_automaticDisabled",
247
+ "paused": "S6UY6a_paused",
248
+ "task": "S6UY6a_task",
249
+ "setupRequired": "S6UY6a_setupRequired",
250
+ "section": "S6UY6a_section",
251
+ "badge": "S6UY6a_badge",
252
+ "input": "S6UY6a_input",
253
+ "active": "S6UY6a_active",
254
+ "resetButton": "S6UY6a_resetButton",
255
+ "settingControl": "S6UY6a_settingControl",
256
+ "taskError": "S6UY6a_taskError",
257
+ "root": "S6UY6a_root",
258
+ "fieldHead": "S6UY6a_fieldHead",
259
+ "message": "S6UY6a_message",
260
+ "flowStatus": "S6UY6a_flowStatus",
261
+ "status": "S6UY6a_status",
262
+ "settingRow": "S6UY6a_settingRow",
263
+ "initializing": "S6UY6a_initializing",
264
+ "settingTitle": "S6UY6a_settingTitle"
265
265
  };
266
266
  //#endregion
267
267
  //#region src/web/MemoCard.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bailian-memo-dsh",
3
- "version": "2.3.2",
3
+ "version": "2.5.1",
4
4
  "description": "Bailian personal memory for DeepSeek Harness: automatic recall, silent curation, and user-controlled remember/forget.",
5
5
  "keywords": [
6
6
  "alibaba-cloud",
@@ -45,12 +45,6 @@
45
45
  "access": "public",
46
46
  "registry": "https://registry.npmjs.org/"
47
47
  },
48
- "scripts": {
49
- "build": "tsc -b tsconfig.build.json && tsc -p tsconfig.web.json && tsdown",
50
- "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.web.json",
51
- "test": "vp test",
52
- "check": "vp check"
53
- },
54
48
  "dependencies": {
55
49
  "zod": "^4.4.3"
56
50
  },
@@ -77,13 +71,13 @@
77
71
  "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.1",
78
72
  "@deepseek-ai/dsh-util-values": "0.2.1-alpha.1",
79
73
  "@deepseek-ai/schemastery": "3.18.5-alpha.1",
80
- "@types/node": "catalog:",
74
+ "@types/node": "^24",
81
75
  "@types/react": "~18.3.1",
82
76
  "lightningcss": "^1.32.0",
83
77
  "react": "^18.2.0",
84
78
  "tsdown": "^0.22.2",
85
- "typescript": "catalog:",
86
- "vite-plus": "catalog:"
79
+ "typescript": "^5",
80
+ "vite-plus": "0.3.3"
87
81
  },
88
82
  "peerDependencies": {
89
83
  "@deepseek-ai/cordis": "4.0.5-alpha.1",
@@ -140,5 +134,11 @@
140
134
  ],
141
135
  "platform": "web"
142
136
  }
137
+ },
138
+ "scripts": {
139
+ "build": "tsc -b tsconfig.build.json && tsc -p tsconfig.web.json && tsdown",
140
+ "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.web.json",
141
+ "test": "vp test",
142
+ "check": "vp check"
143
143
  }
144
- }
144
+ }