loadOrDeriveManifest (core/skill-manifest.ts)

gbrain · src/core/skill-manifest.ts · typescript · MIT
crm

* skill-manifest.ts — unified manifest loader for resolver checks. Two call sites converge here (D-CX-12, F-ENG-1): - `src/core/check-resolvable.ts` — reachability check - `src/core/dry-fix.ts` — auto-fix walker Both previously had their own `loadManifest` returning `[]` on missi

// Source: https://github.com/garrytan/gbrain | License: MIT | Copyright 2026 Garry Tan
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * skill-manifest.ts — unified manifest loader for resolver checks.
 *
 * Two call sites converge here (D-CX-12, F-ENG-1):
 *   - `src/core/check-resolvable.ts` — reachability check
 *   - `src/core/dry-fix.ts`          — auto-fix walker
 *
 * Both previously had their own `loadManifest` returning `[]` on missing
 * manifest.json. That silently disabled reachability + auto-fix for any
 * workspace (like an OpenClaw deployment) that doesn't ship a manifest
 * alongside its skills — the exact scenario this release unblocks.
 *
 * Behavior:
 *   1. If `skillsDir/manifest.json` exists and parses, use it verbatim.
 *   2. Otherwise, walk `s

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key