@facet-llc/protocol
v0.2.1
Published
agents.txt v0.2 parser and Facet Terminal protocol types.
Readme
@facet/protocol
agents.txt v0.2 parser and Facet Terminal protocol types.
The authoritative spec lives in specs/agents.txt.md.
This package is the reference TypeScript implementation of that spec, published under Apache 2.0 so any agent operator, site operator, or third-party integrator can parse agents.txt without adopting the proprietary parts of Facet.
Usage
import { parseAgentsTxt } from "@facet/protocol";
const manifest = parseAgentsTxt(
await fetch("https://acme.com/.well-known/agents.txt").then((r) => r.text()),
);
console.log(manifest.terminal, manifest.kyaIssuers);Pass { strict: false } if you want to round-trip a partial manifest without triggering required-field errors.
License
Apache License, Version 2.0 — see LICENSE.
