@clawforge/build-index
v0.0.1
Published
Build the clawforge registry index from registry/**/entry.json.
Readme
@clawforge/build-index
Builds CDN-ready artefacts from the clawforge registry tree.
Usage (CLI)
clawforge-build-index \
--registry ./registry \
--out ./dist \
--cdn-base https://cdn.clawforge.dev \
--site-base https://clawforge.devOutputs (inside --out):
registry.json— full indexskills.json,agents.json,commands.json,hooks.json,mcp.json,presets.json— per-kind shardssitemap.xml,feed.xmltombstones.json
Usage (programmatic)
import { buildIndex, ExecaGitReader } from "@clawforge/build-index";
const result = await buildIndex({
registryRoot: "./registry",
distDir: "./dist",
cdnBase: "https://cdn.clawforge.dev",
siteBase: "https://clawforge.dev",
generatedAt: new Date().toISOString(),
git: new ExecaGitReader(process.cwd()),
});CI requirement
actions/checkout@v4 must set fetch-depth: 0 so that git log can resolve createdAt / updatedAt / sourceCommit.
License: MIT.
