@circuit-llm/bundle
v0.2.4
Published
Circuit SDK agent bundles — build, sign, verify, and unpack content-addressed (sha256) signed agent bundles. The canonical codec shared by the Circuit agent cloud and the circuit CLI.
Readme
@circuit-llm/bundle
Build, sign, verify, and unpack content-addressed (sha256) signed agent bundles — the canonical codec shared by the Circuit agent cloud and the
circuitCLI. Zero runtime dependencies.
Part of the Circuit SDK. Packages →
Install
npm install @circuit-llm/bundleUsage
import { packDir, createBundle, verifyBundle, unpackTo, fromSeed } from '@circuit-llm/bundle';
const resources = await packDir('./my-agent'); // read + hash a folder
const bundle = createBundle(resources, { entry: 'index.js' }, fromSeed(seed)); // signed manifest
verifyBundle(bundle); // checks hashes + signature
await unpackTo(bundle, './out');Every file is content-addressed and the manifest is signed, so a bundle can't be silently altered between author and host. isSafeEntry blocks path traversal.
