@pitchfork-and-torch/ascent
v2.0.1
Published
ASCENT wire codec (browser/Node) - frozen Cont packing, agent/MM frames, RS(255,223) ASCENT-D lab
Maintainers
Readme
@pitchfork/ascent
Browser / Node codec for the ASCENT wire standard (Nexus 2.0.0).
Install (from monorepo)
cd packages/ascent-js
npm testPublished npm name is reserved for when the public registry publish is approved. Until then, copy these files or depend on the GitHub path.
API
const { AscentCodec, AscentRS, AscentDLab } = require("@pitchfork/ascent");
const wire = AscentCodec.encodeText("Hello, Universe.\n", {
header: true,
roleName: "guide",
nonAscii: "v",
});
const events = AscentCodec.decodeStream(wire);
const frame = AscentDLab.encodeP9(wire);Sources are kept in lockstep with site/public/ via npm run sync-from-site.
Golden lock
node ../../tests/run_js_lock.jsMust stay bit-identical with Python ref/ packing.
