@ynhcj/xiaoyi-channel 0.0.83-beta → 0.0.84-beta

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.
@@ -107,11 +107,11 @@ export const xiaoyiProvider = {
107
107
  const beforeLen = sp.length;
108
108
  // 删除 ## Tooling 与 TOOLS.md 声明之间的内容
109
109
  sp = sp.replace(/(## Tooling)[\s\S]*?(TOOLS\.md does not control tool availability; it is user guidance for how to use external tools\.)/, "$1\n\n$2");
110
- // (1) 提取 <available_skills>...</available_skills> 作为第一部分
111
- const skillsMatch = sp.match(/<available_skills>[\s\S]*?<\/available_skills>/);
110
+ // (1) 提取 ## Skills (mandatory) 到 </available_skills> 作为第一部分
111
+ const skillsMatch = sp.match(/(## Skills \(mandatory\)[\s\S]*?<\/available_skills>)/);
112
112
  const part1 = skillsMatch ? skillsMatch[0] : '';
113
- // (2) 提取 # SOUL.md - Who You Are # TOOLS.md - Local Notes 之前的内容作为第二部分
114
- const soulMatch = sp.match(/(# SOUL\.md - Who You Are[\s\S]*?)(?=# TOOLS\.md - Local Notes)/);
113
+ // (2) 提取 ## /home/sandbox/.openclaw/workspace/SOUL.md 到 ## /home/sandbox/.openclaw/workspace/TOOLS.md 之前的内容作为第二部分
114
+ const soulMatch = sp.match(/(## \/home\/sandbox\/\.openclaw\/workspace\/SOUL\.md[\s\S]*?)(?=## \/home\/sandbox\/\.openclaw\/workspace\/TOOLS\.md)/);
115
115
  const part2 = soulMatch ? soulMatch[1].trim() : '';
116
116
  if (part1 || part2) {
117
117
  // 从原始位置删除已提取的部分
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.83-beta",
3
+ "version": "0.0.84-beta",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",