From dc5048026c61dc745b18504fbab39d103b2f1d66 Mon Sep 17 00:00:00 2001 From: ra1nzzz Date: Wed, 10 Jun 2026 11:46:18 +0800 Subject: [PATCH] fix: avoid package LICENSE extraction failure on Windows --- CHANGELOG.md | 1 + CONTRIBUTING.md | 2 +- CONTRIBUTING_CN.md | 2 +- LICENSE => LICENSE-MIT | 0 README.md | 4 ++-- README_CN.md | 4 ++-- package.json | 2 +- 7 files changed, 8 insertions(+), 7 deletions(-) rename LICENSE => LICENSE-MIT (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ad6ed0..c19cc1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ - **场景文件名含空格导致 Persona Scene Navigation 引用失效**:LLM 在 L2 偶发用 `Daily Rhythm in Shanghai.md` 这类含空格的名字创建 scene block,导致 `persona.md` 中 `### Path: scene_blocks/.md` 引用无法被下游 `\S+\.md` 风格解析器(health-checker 等)识别,soak 后健康检查必报 `Scene Navigation 存在但无场景引用`。修复:(1) `scene-extraction` prompt 增加"📛 文件命名规范(强制)"段,禁止空格 / 括号 / 引号等标点;(2) 新增 `core/scene/filename-normalizer.ts`,在 `SceneExtractor.extract` Phase 5b(cleanup 后、`syncSceneIndex` 前)自动归一化文件名(空格 → `-`、剥离危险标点、冲突时追加 `-2` 后缀),下游 PersonaGenerator / recall / profile-sync 自动使用干净名,无需改动。 #### OpenClaw 宿主兼容 +- **Windows OpenClaw npm archive extraction compatibility** ([#148](https://github.com/TencentCloud/TencentDB-Agent-Memory/issues/148)): rename the packaged license file from `LICENSE` to `LICENSE-MIT` so npm tarballs no longer contain `package/LICENSE`, avoiding the Windows extraction failure while still shipping the MIT license text. - **`api.runtime.state` 在新版 OpenClaw 上为 `undefined` 导致注册时崩溃** ([#78](https://github.com/Tencent/TencentDB-Agent-Memory/issues/78) / [#85](https://github.com/Tencent/TencentDB-Agent-Memory/pull/85) / [#79](https://github.com/Tencent/TencentDB-Agent-Memory/pull/79)):为两处调用点加可选链 + fallback,优先调用宿主 `runtimeState.resolveStateDir()`,缺失时退到 `OPENCLAW_STATE_DIR` 环境变量,再退到 `~/.openclaw`。同时修复 cli-metadata 注册模式下 `runtime` 为空对象 `{}` 仍会触发 `TypeError` 的问题(在该模式下提前 return,只调用 `registerCli`)。 - **`contextEngine` slot ID 与插件名不一致**:`registerContextEngine` 的 ID 从 `openclaw-context-offload` 改为 `memory-tencentdb`,避免 `openclaw doctor --fix` 把 slot 重置;`setup-offload.sh` 中的 `CONTEXT_ENGINE_ID` 同步更新。 - **L1.5 settle 永不返回导致 L2 卡死**:在 L2 poll 中为 L1.5 settle 增加 60s 超时,当未配置 Context Engine slot 导致 `assemble` 永不被调用时,自动 force-settle 解锁 L2。 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c584f52..cef029b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -126,7 +126,7 @@ If you discover a security vulnerability, please report it via the email agentme ## License -By submitting a contribution, you agree that your code will be licensed under the [MIT License](./LICENSE). +By submitting a contribution, you agree that your code will be licensed under the [MIT License](./LICENSE-MIT). --- diff --git a/CONTRIBUTING_CN.md b/CONTRIBUTING_CN.md index db32fa6..b49f6ad 100644 --- a/CONTRIBUTING_CN.md +++ b/CONTRIBUTING_CN.md @@ -126,7 +126,7 @@ git commit -s -m "feat(store): add batch insert support" ## 许可证 -提交贡献即表示你同意你的代码将在 [MIT License](./LICENSE) 下许可。 +提交贡献即表示你同意你的代码将在 [MIT License](./LICENSE-MIT) 下许可。 --- diff --git a/LICENSE b/LICENSE-MIT similarity index 100% rename from LICENSE rename to LICENSE-MIT diff --git a/README.md b/README.md index 5b412cd..a16f51a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ### Agents remember,Humans innovate. [![npm](https://img.shields.io/npm/v/@tencentdb-agent-memory/memory-tencentdb?color=blue)](https://www.npmjs.com/package/@tencentdb-agent-memory/memory-tencentdb) -[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE) +[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE-MIT) [![Node](https://img.shields.io/badge/node-%3E=22.16-brightgreen)](https://nodejs.org/) [![OpenClaw](https://img.shields.io/badge/OpenClaw-%3E=2026.3.13-orange)](https://github.com/openclaw/openclaw) [![Hermes](https://img.shields.io/badge/Hermes-Gateway-7B61FF)](https://hermes-agent.nousresearch.com/docs/) @@ -440,4 +440,4 @@ We welcome every kind of contribution — bug reports, feature ideas, doc fixes, -[MIT](./LICENSE) © TencentDB Agent Memory Team +[MIT](./LICENSE-MIT) © TencentDB Agent Memory Team diff --git a/README_CN.md b/README_CN.md index 46cf341..afbf1f2 100644 --- a/README_CN.md +++ b/README_CN.md @@ -7,7 +7,7 @@ [![npm](https://img.shields.io/npm/v/@tencentdb-agent-memory/memory-tencentdb?color=blue)](https://www.npmjs.com/package/@tencentdb-agent-memory/memory-tencentdb) -[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE) +[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE-MIT) [![Node](https://img.shields.io/badge/node-%3E=22.16-brightgreen)](https://nodejs.org/) [![OpenClaw](https://img.shields.io/badge/OpenClaw-%3E=2026.3.13-orange)](https://github.com/openclaw/openclaw) [![Hermes](https://img.shields.io/badge/Hermes-Gateway-7B61FF)](https://hermes-agent.nousresearch.com/docs/) @@ -445,4 +445,4 @@ export MEMORY_TENCENTDB_GATEWAY_API_KEY="<与 Gateway 同一份密钥>" -[MIT](./LICENSE) © TencentDB Agent Memory Team +[MIT](./LICENSE-MIT) © TencentDB Agent Memory Team diff --git a/package.json b/package.json index 09abe4d..c4b4df5 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "openclaw.plugin.json", "README.md", "CHANGELOG.md", - "LICENSE", + "LICENSE-MIT", "!src/**/*.test.ts", "!src/**/*.spec.ts", "!src/**/__tests__/"