@act-spec/validator
v0.2.0-rc.1
Published
PRD-600 conformance validator for the ACT (Agent Content Tree) v0.1 wire format. Library + CLI + hosted SPA.
Readme
@act-spec/validator
Conformance validator for ACT (Agent Content Tree).
When implemented, this package ships:
validateManifest,validateNode,validateIndex,validateNdjsonIndex,validateSubtree,validateError,validateSite(TypeScript library).act-validateCLI.- A static SPA at
/validator/on the ACT spec's GitHub Pages site.
The reporter shape (Gap, Warning, AchievedLevel, ConformanceReport) lives in @act-spec/core.
Status
ACT v0.1 internal hand-test candidate. Public release lands at v0.2.
Install
Unpublished in v0.1. Consume via the workspace:
// package.json
{ "dependencies": { "@act-spec/validator": "workspace:*" } }Usage
import { validateSite, validateManifest, validateNode } from '@act-spec/validator';
const report = await validateSite('https://example.com/');
if (report.gaps.length === 0) {
console.log(`Achieved level: ${report.achievedLevel}`);
}CLI:
act-validate https://example.com/Browser UI (boots the validator SPA on http://localhost:5174/validator/, paste any
URL — including http://localhost:<port> for a locally-running ACT site):
pnpm -F @act-spec/validator startLinks
- Reporter types:
@act-spec/core - Repository: https://github.com/act-spec/act
