agent-bypass 2.11.3 → 2.11.5
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/SKILL.md +1 -1
- package/bin/install.js +6 -3
- package/package.json +1 -1
package/SKILL.md
CHANGED
package/bin/install.js
CHANGED
|
@@ -314,7 +314,7 @@ function uninstallGrok() {
|
|
|
314
314
|
// 技能库主副本(SSOT)两种位置(设置里可选):
|
|
315
315
|
// A. ~/.agents/skills/agent-bypass/(Agent Skills 开放标准,Grok 等直读)
|
|
316
316
|
// B. ~/.cc-switch/skills/agent-bypass/(CC Switch 默认)
|
|
317
|
-
// 策略:主副本已存在(已纳管)→
|
|
317
|
+
// 策略:主副本已存在(已纳管)→ 覆盖更新(软链自动穿透到真身);不存在 → 首次建立主副本,随后在 CC Switch 中导入纳管。
|
|
318
318
|
function ccswitchSso() {
|
|
319
319
|
const cands = [path.join(HOME, '.agents', 'skills', 'agent-bypass'), path.join(HOME, '.cc-switch', 'skills', 'agent-bypass')];
|
|
320
320
|
for (const p of cands) if (exists(p)) return p;
|
|
@@ -329,8 +329,11 @@ function installCcswitch() {
|
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
if (exists(path.join(HOME, '.cc-switch'))) {
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
// 首次建立 SSOT:技能库位置按设置选 ~/.agents/skills(Agent Skills 开放标准)——直接写入主副本
|
|
333
|
+
const init = path.join(HOME, '.agents', 'skills', 'agent-bypass');
|
|
334
|
+
installSkills(init);
|
|
335
|
+
info('已在 CC Switch 技能库位置建立 agent-bypass 主副本(~/.agents/skills)');
|
|
336
|
+
info('下一步:在 CC Switch \u2192 Skills 中对 agent-bypass 执行导入/纳管;此后本命令一步同步全平台');
|
|
334
337
|
} else {
|
|
335
338
|
info('未检测到 ~/.cc-switch,跳过');
|
|
336
339
|
}
|