codecSource
The codec as a browser module, built from the functions' own source text, so it is the same code wherever tcm itself runs from (its source, a built package, or a codebase's .tcm/cache).
import { decode, encode, fromWire, toWire } from "#codebase/tcmts/cli/codec"; export function codecSource(): string { return `${toWire}\n${fromWire}\nexport ${encode}\nexport ${decode}\n`; }