lingshu-skill 4.6.0 → 4.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # 更新日志
2
2
 
3
+ ## v4.7(2026-11-24)
4
+
5
+ > 主题:**面板左上角图标换成真图标**——原来那个是 CSS 画的渐变圆点,跟桌面/标签页不是同一个东西。
6
+
7
+ - `make_icon.py` 额外产出 `assets/lingshu-icon.png`:**直接按 128px 绘制**(不是把 256 缩下来),边缘更锐。
8
+ - `panel_server` 新增 `/icon.png` 路由(独立文件而非内联 data-URI——图标可能被替换,独立文件能用缓存头区分新旧)。
9
+ - `index.html`:`<div class="orb">` → `<img class="orb" src="/icon.png">`。
10
+ - `base.css`:`.orb` 从 `radial-gradient` 圆点改成图片样式(26×26、圆角 7px、`object-fit:contain`、保留琥珀外发光)。
11
+
12
+ 验证:`/icon.png` 返回 200 / 12930 字节 / `image/png` / PNG 魔数正确;页面无残留空 `div.orb`;无头 Edge 截图 + 视觉核对确认"深色圆角底 + 琥珀圆核 + 周围小光点、与文字垂直居中对齐"。
13
+
3
14
  ## v4.6(2026-11-24)
4
15
 
5
16
  > 主题:**图标换新 + 装完自动建快捷方式 + GitHub CI 全红修复**。
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > 名字取自《黄帝内经》:**算力给思考,人格给灵魂,记忆给生命。**
4
4
 
5
- > 当前版本 **v4.6**(变更见 [CHANGELOG.md](CHANGELOG.md))
5
+ > 当前版本 **v4.7**(变更见 [CHANGELOG.md](CHANGELOG.md))
6
6
 
7
7
  > 🔁 **双仓库镜像**:GitHub(主)与 Gitee(镜像)保持同步——[gitee.com/htmcwy_0/lingshu-skill](https://gitee.com/htmcwy_0/lingshu-skill)。灵枢的更新检查会探测两边最新提交,**谁更新就自动从谁拉取**;任一边不可达(Gitee 匿名风控 / GitHub 限额)时走另一边兜底。
8
8
 
package/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lingshu
3
3
  title: 灵枢
4
- version: 4.6
4
+ version: 4.7
5
5
  description: 类脑持久记忆、人格与成长系统——跨会话记住事情、长出自己的人格、上下文将满时做梦式整理记忆。用户提到记忆/记住/上次/人格/设定/性格/知识库/笔记/日志/成长/自我进化/工作记忆,或新会话开始需要恢复关系与上下文时使用。纯本地零依赖。
6
6
  ---
7
7
 
Binary file
package/assets/panel.html CHANGED
@@ -44,10 +44,11 @@
44
44
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
45
45
  }
46
46
  .brand{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:.5px;font-weight:600;padding:0 8px}
47
+ /* 左上角图标:改用真图标(assets/lingshu-icon.png),不再用 CSS 画的渐变圆点 */
47
48
  .brand .orb{
48
- width:26px;height:26px;border-radius:50%;
49
- background:radial-gradient(circle at 35% 30%, #f0c479, #b57a24 55%, #5c3f18);
50
- box-shadow:0 0 18px rgba(217,164,65,.35);
49
+ width:26px;height:26px;border-radius:7px;flex-shrink:0;
50
+ object-fit:contain;display:block;
51
+ box-shadow:0 0 14px rgba(217,164,65,.28);
51
52
  }
52
53
  .brand small{display:block;font-weight:400;font-size:10px;color:var(--faint);letter-spacing:1.4px}
53
54
  nav{display:flex;flex-direction:column;gap:4px}
@@ -321,7 +322,7 @@
321
322
  <div class="app">
322
323
  <aside>
323
324
  <div class="brand">
324
- <div class="orb"></div>
325
+ <img class="orb" src="/icon.png" alt="" aria-hidden="true">
325
326
  <div>灵枢<small>类脑记忆</small></div>
326
327
  </div>
327
328
  <nav>
@@ -497,6 +497,10 @@ startup 注入的记忆块与 cron 的瞬态提醒**同名**,于是 cron 的 p
497
497
  - **修**:① `_icon_path()` 改为把图标复制到 `~/.brain-memory/lingshu.ico`(纯 ASCII、稳定存在)再设 `IconLocation`;② `/favicon.ico` 改为返回真 ICO(找不到才退回占位 PNG),并在 `index.html` 里声明 `rel="icon"`;③ 重建快捷方式 + `ie4uinit -show` 刷图标缓存。
498
498
  - **教训**:Windows 图标路径尽量避开非 ASCII;"透明占位 PNG"这类省事写法会直接表现成"图标白了"。
499
499
 
500
+ 84. **【已做 v4.7】面板左上角 brand 图标换成真图标**(用户要求):原来侧栏顶部那个 `.orb` 是**纯 CSS 画的渐变圆点**(`radial-gradient` + 外发光),跟桌面/标签页的图标不是同一个东西。
501
+ - **改**:① `make_icon.py` 额外产出 `assets/lingshu-icon.png`(**直接按 128px 绘制**,不是把 256 缩下来,边缘更锐);② `panel_server` 新增 `/icon.png` 路由(走独立文件而不是内联 data-URI:图标可能被替换,独立文件能用缓存头区分新旧);③ `index.html` 的 `<div class="orb">` 改成 `<img class="orb" src="/icon.png">`;④ CSS 从渐变圆点改成图片样式(26×26、圆角 7px、`object-fit:contain`、保留琥珀外发光)。
502
+ - **验证**:`/icon.png` 实测 200 + 12930 字节 + `image/png` + PNG 魔数正确;页面里无残留空 `div.orb`;无头 Edge 截图 + 视觉核对确认"深色圆角底 + 琥珀圆核 + 周围小光点、与文字垂直居中对齐"。
503
+
500
504
  ## 三、已知问题与风险
501
505
 
502
506
  | # | 现象 | 影响 | 处置 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lingshu-skill",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "Brain-inspired persistent memory, persona and growth system for AI coding agents. Local-only, zero-dependency Python. Requires Python 3.10+.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "PATCH_NOTES.md": "9296e524f743f358fd11115598398a754cfd69534526dde9c8ad85f14a418f89",
3
3
  "README.md": "3d634d743b085eebd2cbb5dd3a00edfa728ed23947e20cc29e7c3b29087ec043",
4
- "engine/CHANGELOG.md": "73cef10aa404c5b5206adff47d82b337428f1f8b64f80a167753084c491b9043",
5
- "engine/README.md": "a07dc56aa271a65237195e4ed92fb92e55f259a2a7f7f51b8abdde7726361a6d",
4
+ "engine/CHANGELOG.md": "366aa60c64d0e2f53d3f715e7caecaaf7f584ff1589391cce3e130bc9f7c24c2",
5
+ "engine/README.md": "299b3484897ef8b1b610b1c5de73a79994b90296674b83ac44c8226cd75ab903",
6
6
  "engine/SKILL-lite.md": "04b87789232a0f7537c861c857888b4a0e947bcf92a461cbad5328af05361c58",
7
7
  "engine/SKILL-tiny.md": "74e1955cc5bf4ec0ca28d52030f799f039283de27a52345a33ce783d6ee0c608",
8
- "engine/SKILL.md": "29b0d281fe82cc1559ebbd254218d683946c4d0b8881f88fde0783df3c5cae5c",
9
- "engine/assets/panel.html": "4613dc80c6e08fb7679ce6751ff8231d7dd478440c3081e25f195a1ff9516fff",
8
+ "engine/SKILL.md": "e4c940700d0a405b9c668b682705a0b3f4c58ccfd2fa843e6b894aa5a5cbec39",
9
+ "engine/assets/panel.html": "cdb54b41c363e37d3e85daa971a7d4cb1fd971f1788808ae451e2fac5a21ee8b",
10
10
  "engine/docs/commands.md": "ede9351a28478bcb8f5a8af2b63fccb1965d5e995fda1eecb470c72e7b8a69c5",
11
11
  "engine/docs/mechanics.md": "e8a6602a434ed5b78cac64a98884f65a6888eb48daa7a1c0be1f6c3984041b34",
12
12
  "engine/docs/models.md": "596bc1a3414f2de5569dcb41a0c494acae7daa534efd5a91dbcc3c4cb308d695",
@@ -31,7 +31,7 @@
31
31
  "engine/scripts/growth_parts.py": "d8f8d1808d4097630e7a0425d1ad9bc8f3826c11a64625304e25336f2a8aa592",
32
32
  "engine/scripts/insights.py": "3ed8d8aedb79b7c578985285e5838cc93a58163383ac83caf0e45eb343e9c27e",
33
33
  "engine/scripts/make_dsh_tgz.py": "d7371a4e521925d9b0cafee374c940baf5b2d5d96f4971f941b57fe46be355b2",
34
- "engine/scripts/make_icon.py": "0bc823c4061e5d281db9d7e042c2e5a39dc5b7b4102dedea57514e4b38baf60a",
34
+ "engine/scripts/make_icon.py": "68516eecaf77ee44d1e9ccf08c8ce6b7af11686e67e5434623c68a5fa5409235",
35
35
  "engine/scripts/mem_dialogue.py": "825de9096245a45f115ab4fdb15eb5b13fc47edb952529b948764b6dafe979b2",
36
36
  "engine/scripts/mem_embed.py": "b98478243237221a5bce491a5cbf4ca2753de29285086abfb0a855e3473c27a8",
37
37
  "engine/scripts/mem_lesson.py": "e1520786315f3e41c829909c739e5af3eee89397da7db5026d106710b2b3c118",
@@ -42,7 +42,7 @@
42
42
  "engine/scripts/panel_build.py": "6394c1d74d203093e43b2106d7acca6e0ca9db61ca1cd6cd3a1616053653414b",
43
43
  "engine/scripts/panel_cloud.py": "fff72888123d45bbf05ab329a06b2126f1c0b972c76283ecff32454bc4155c58",
44
44
  "engine/scripts/panel_data.py": "5788aaee9b4e56e73587c4d0474687cecaa40dd7e507f02c27dd07aa208ba237",
45
- "engine/scripts/panel_server.py": "a1e2bf96a5ffc7ae2ea2e23175d9cfef1990d3217e84b8b91012a8984654f15e",
45
+ "engine/scripts/panel_server.py": "7a217c6c29fdd18fd1351ec4135b713245170830fdff38ec2ed7f6b21e2f08b2",
46
46
  "engine/scripts/panel_settings.py": "e0e41e59365944a4df9d803648b4a0e7e52e8ea1b796979d59ba141f4d59e83a",
47
47
  "engine/scripts/panel_update.py": "06f1c3c0362a49532dcd24651cc2e85ca1a1b3ba05fff6eb6f6566a72e876e2a",
48
48
  "engine/scripts/panels.py": "87dfce47693340af7c9bc6010a593256331e32c2e8504a0ac0745cf2ef992fd6",
@@ -1,5 +1,16 @@
1
1
  # 更新日志
2
2
 
3
+ ## v4.7(2026-11-24)
4
+
5
+ > 主题:**面板左上角图标换成真图标**——原来那个是 CSS 画的渐变圆点,跟桌面/标签页不是同一个东西。
6
+
7
+ - `make_icon.py` 额外产出 `assets/lingshu-icon.png`:**直接按 128px 绘制**(不是把 256 缩下来),边缘更锐。
8
+ - `panel_server` 新增 `/icon.png` 路由(独立文件而非内联 data-URI——图标可能被替换,独立文件能用缓存头区分新旧)。
9
+ - `index.html`:`<div class="orb">` → `<img class="orb" src="/icon.png">`。
10
+ - `base.css`:`.orb` 从 `radial-gradient` 圆点改成图片样式(26×26、圆角 7px、`object-fit:contain`、保留琥珀外发光)。
11
+
12
+ 验证:`/icon.png` 返回 200 / 12930 字节 / `image/png` / PNG 魔数正确;页面无残留空 `div.orb`;无头 Edge 截图 + 视觉核对确认"深色圆角底 + 琥珀圆核 + 周围小光点、与文字垂直居中对齐"。
13
+
3
14
  ## v4.6(2026-11-24)
4
15
 
5
16
  > 主题:**图标换新 + 装完自动建快捷方式 + GitHub CI 全红修复**。
@@ -2,7 +2,7 @@
2
2
 
3
3
  > 名字取自《黄帝内经》:**算力给思考,人格给灵魂,记忆给生命。**
4
4
 
5
- > 当前版本 **v4.6**(变更见 [CHANGELOG.md](CHANGELOG.md))
5
+ > 当前版本 **v4.7**(变更见 [CHANGELOG.md](CHANGELOG.md))
6
6
 
7
7
  > 🔁 **双仓库镜像**:GitHub(主)与 Gitee(镜像)保持同步——[gitee.com/htmcwy_0/lingshu-skill](https://gitee.com/htmcwy_0/lingshu-skill)。灵枢的更新检查会探测两边最新提交,**谁更新就自动从谁拉取**;任一边不可达(Gitee 匿名风控 / GitHub 限额)时走另一边兜底。
8
8
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lingshu
3
3
  title: 灵枢
4
- version: 4.6
4
+ version: 4.7
5
5
  description: 类脑持久记忆、人格与成长系统——跨会话记住事情、长出自己的人格、上下文将满时做梦式整理记忆。用户提到记忆/记住/上次/人格/设定/性格/知识库/笔记/日志/成长/自我进化/工作记忆,或新会话开始需要恢复关系与上下文时使用。纯本地零依赖。
6
6
  ---
7
7
 
@@ -44,10 +44,11 @@
44
44
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
45
45
  }
46
46
  .brand{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:.5px;font-weight:600;padding:0 8px}
47
+ /* 左上角图标:改用真图标(assets/lingshu-icon.png),不再用 CSS 画的渐变圆点 */
47
48
  .brand .orb{
48
- width:26px;height:26px;border-radius:50%;
49
- background:radial-gradient(circle at 35% 30%, #f0c479, #b57a24 55%, #5c3f18);
50
- box-shadow:0 0 18px rgba(217,164,65,.35);
49
+ width:26px;height:26px;border-radius:7px;flex-shrink:0;
50
+ object-fit:contain;display:block;
51
+ box-shadow:0 0 14px rgba(217,164,65,.28);
51
52
  }
52
53
  .brand small{display:block;font-weight:400;font-size:10px;color:var(--faint);letter-spacing:1.4px}
53
54
  nav{display:flex;flex-direction:column;gap:4px}
@@ -321,7 +322,7 @@
321
322
  <div class="app">
322
323
  <aside>
323
324
  <div class="brand">
324
- <div class="orb"></div>
325
+ <img class="orb" src="/icon.png" alt="" aria-hidden="true">
325
326
  <div>灵枢<small>类脑记忆</small></div>
326
327
  </div>
327
328
  <nav>
@@ -134,6 +134,11 @@ def main() -> int:
134
134
  pp = Path(a.preview)
135
135
  prev.save(pp, format="PNG")
136
136
  print(f"已生成预览 {pp}")
137
+
138
+ # 面板左上角 brand 用的 PNG(直接按 128px 绘制,不是把 256 缩下来,边缘更锐)
139
+ brand_png = Path(a.out).with_name("lingshu-icon.png")
140
+ draw_icon(128).save(brand_png, format="PNG")
141
+ print(f"已生成面板图标 {brand_png}({brand_png.stat().st_size} bytes)")
137
142
  return 0
138
143
 
139
144
 
@@ -627,6 +627,18 @@ class Handler(BaseHTTPRequestHandler):
627
627
  content = content.replace("/*__PANEL_TOKEN__*/", TOKEN)
628
628
  self._send(200, content.encode("utf-8"), "text/html; charset=utf-8")
629
629
  return
630
+ if path == "/icon.png":
631
+ # 面板左上角 brand 图标(由 make_icon.py 生成)。走独立路由而不是内联
632
+ # data-URI:图标可能被替换,独立文件能靠缓存头区分新旧。
633
+ icon = ASSETS / "lingshu-icon.png"
634
+ try:
635
+ if icon.is_file():
636
+ self._send(200, icon.read_bytes(), "image/png")
637
+ return
638
+ except OSError:
639
+ pass
640
+ self._send(404, b"icon missing", "text/plain; charset=utf-8")
641
+ return
630
642
  if path in ("/favicon.ico", "/apple-touch-icon.png"):
631
643
  # 浏览器自动请求。优先返回真图标(assets/lingshu.ico,由 make_icon.py 生成),
632
644
  # 没有才退回透明 1x1 PNG(避免控制台刷 404)。
@@ -134,6 +134,11 @@ def main() -> int:
134
134
  pp = Path(a.preview)
135
135
  prev.save(pp, format="PNG")
136
136
  print(f"已生成预览 {pp}")
137
+
138
+ # 面板左上角 brand 用的 PNG(直接按 128px 绘制,不是把 256 缩下来,边缘更锐)
139
+ brand_png = Path(a.out).with_name("lingshu-icon.png")
140
+ draw_icon(128).save(brand_png, format="PNG")
141
+ print(f"已生成面板图标 {brand_png}({brand_png.stat().st_size} bytes)")
137
142
  return 0
138
143
 
139
144
 
@@ -627,6 +627,18 @@ class Handler(BaseHTTPRequestHandler):
627
627
  content = content.replace("/*__PANEL_TOKEN__*/", TOKEN)
628
628
  self._send(200, content.encode("utf-8"), "text/html; charset=utf-8")
629
629
  return
630
+ if path == "/icon.png":
631
+ # 面板左上角 brand 图标(由 make_icon.py 生成)。走独立路由而不是内联
632
+ # data-URI:图标可能被替换,独立文件能靠缓存头区分新旧。
633
+ icon = ASSETS / "lingshu-icon.png"
634
+ try:
635
+ if icon.is_file():
636
+ self._send(200, icon.read_bytes(), "image/png")
637
+ return
638
+ except OSError:
639
+ pass
640
+ self._send(404, b"icon missing", "text/plain; charset=utf-8")
641
+ return
630
642
  if path in ("/favicon.ico", "/apple-touch-icon.png"):
631
643
  # 浏览器自动请求。优先返回真图标(assets/lingshu.ico,由 make_icon.py 生成),
632
644
  # 没有才退回透明 1x1 PNG(避免控制台刷 404)。