Use a GitHub release asset

Use a GitHub release asset when you want the built JavaScript, TypeScript declarations, and Wasm files without a Rust toolchain.

Download and extract

Get agent-adversary-0.1.0.tar.gz or agent-adversary-0.1.0.zip from the v0.1.0 GitHub release page.

Extract the archive.

Verify the checksum

Each v0.1.0 release includes agent-adversary-0.1.0.sha256.

Compare the SHA-256 of the downloaded archive with the matching line in that file.

Run the CLI

node dist/cli.js validate examples/authenticated-user-baseline.json
          node dist/cli.js check examples/authenticated-user-baseline.json --json

The first command validates one supplied record. The second command validates the trusted baseline and the three derived adverse variants.

Use the bundled Wasm from JavaScript

Import from the local dist/ directory inside the extracted release asset:

import { deriveAdversarialOperations } from "./dist/index.js";
          import { loadBundledAdversary } from "./dist/node.js";

loadBundledAdversary() reads the prebuilt Wasm file that ships in the same release asset. You do not need Rust for this step.