memory-eternal 0.10.54 → 0.11.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/web.js CHANGED
@@ -192,6 +192,22 @@ export function startWebServer({ port = DEFAULT_WEB_PORT, vaultRoot = defaultVau
192
192
  return res.end(missingIndexHtml({ missing, webRoot, version: VERSION }))
193
193
  }
194
194
  }
195
+ if (p.startsWith('/support/')) {
196
+ const name = p.slice('/support/'.length)
197
+ if (!/^[a-z0-9-]+\.(jpg|jpeg|png)$/i.test(name)) {
198
+ res.writeHead(404, { 'Content-Type': 'text/plain; charset=utf-8' })
199
+ return res.end('not found')
200
+ }
201
+ try {
202
+ const buf = await fs.readFile(path.join(webRoot, 'support', name))
203
+ res.writeHead(200, { 'Content-Type': /\.png$/i.test(name) ? 'image/png' : 'image/jpeg', 'Cache-Control': 'public, max-age=3600' })
204
+ return res.end(buf)
205
+ } catch (error) {
206
+ if (!isMissingFile(error)) throw error
207
+ res.writeHead(404, { 'Content-Type': 'text/plain; charset=utf-8' })
208
+ return res.end('not found')
209
+ }
210
+ }
195
211
  if (p === '/app.js') {
196
212
  let buf
197
213
  try {
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "memory-eternal",
3
- "version": "0.10.54",
3
+ "version": "0.11.0",
4
4
  "description": "记忆核心(Memory Eternal):自研的 DeepSeek Harness 记忆插件,不移植任何既有记忆框架——对话结束后自动沉淀知识卡到本地 Markdown Vault(自研去重、自研 CJK 检索、可 git 管理),设置页提供图形化知识库(统计 / 搜索 / 知识图谱 + 侧边栏一键弹窗),Agent 通过 memory_recall 工具按需召回历史上下文。零人工干预。",
5
+ "icon": "assets/icon.png",
5
6
  "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
@@ -32,6 +33,7 @@
32
33
  "web",
33
34
  "hooks",
34
35
  "skills",
36
+ "assets/icon.png",
35
37
  ".claude-plugin",
36
38
  ".codex-plugin",
37
39
  ".cursor-plugin",