@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.
- package/dist/src/provider.js +4 -4
- package/package.json +1 -1
package/dist/src/provider.js
CHANGED
|
@@ -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) 提取
|
|
111
|
-
const skillsMatch = sp.match(
|
|
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) 提取
|
|
114
|
-
const soulMatch = sp.match(/(
|
|
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
|
// 从原始位置删除已提取的部分
|