@yixinkj/priority-buyer-alert-cli 0.1.0 → 0.1.2
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/index.js +4 -2
- package/package.json +1 -1
- package/skill/SKILL.md +2 -2
- package/skills.json +2 -2
package/index.js
CHANGED
|
@@ -287,12 +287,14 @@ function syncSkillInstallation(skillPath, { bundledSkillPath = BUNDLED_SKILL_PAT
|
|
|
287
287
|
if (!bundledMetadata.name || !bundledMetadata.description) {
|
|
288
288
|
throw new Error('内置 SKILL.md 缺少 name 或 description');
|
|
289
289
|
}
|
|
290
|
-
if (bundledMetadata.name !==
|
|
290
|
+
if (bundledMetadata.name !== SKILL_DISPLAY_NAME) {
|
|
291
291
|
throw new Error('内置 SKILL.md 名称不匹配');
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
const currentSkill = fs.readFileSync(resolvedSkillPath, 'utf8');
|
|
295
|
-
|
|
295
|
+
const currentSkillName = parseSkillMetadata(currentSkill).name;
|
|
296
|
+
// 旧版 frontmatter 使用内部 ID 作为 name;允许它被新展示名平滑升级,避免 OTA 被自身名称校验挡住。
|
|
297
|
+
if (currentSkillName !== SKILL_ID && currentSkillName !== SKILL_DISPLAY_NAME) {
|
|
296
298
|
throw new Error(`--skill-path 指向的不是${SKILL_DISPLAY_NAME} Skill,已拒绝覆盖`);
|
|
297
299
|
}
|
|
298
300
|
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: 哨兵预警-0812
|
|
3
3
|
description: 重点买家未回复预警。只读扫描阿里国际站询盘列表,挑出 L2 及以上(出口通店铺为 L1+)的重点买家,判断买家最后一句是否超过 SLA 仍没有真人业务员回复,并输出中文预警清单;机器人自动接待不算人工回复。Use when 用户要求检查重点买家有没有超时未回复、查询盘超时提醒、看 L3/L4 有没有快凉的,或要求运行重点买家预警。
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.2"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# 重点买家预警
|
package/skills.json
CHANGED