#2152·LifeOS

医生的织物探针检查 `which('fabric')`, 但 Homebrew 将其安装为 `fabric-ai` — 正确的安装报告出错, 修复提示指向了错误的包

作者: NAmorim创建于 2026年9月18日更新于 2026年9月18日
  • // Homebrew ships danielmiessler/fabric as fabric-ai, because the fabric
  • // formula is the unrelated ZZTERM4ZZ SSH tool. Accept either name.
  • // Patterns run natively from skills/Fabric/Patterns either way — the binary
  • // is needed only for YouTube transcripts (-y) and URL fallback (-u).
  • probeOffline: async () => {
  •  which('fabric')
  •    ? { ok: true, detail: 'fabric on PATH' }
  •    : { ok: false, detail: 'fabric not on PATH — pattern runs fall back to native prompting' },
  • fixCmd: 'see the fabric project for install',
  •  found = which('fabric');
  •  if (found) {
  •    return { ok: true, detail: 'fabric on PATH' };
  •  }
  •  return { ok: false, detail: 'fabric not on PATH — pattern runs fall back to native prompting' };
  • },
  • fixCmd: 'see the fabric project for install',
  • powers: 'the Fabric skill's pattern library',

内容来源: danielmiessler/LifeOS