UNPKG

kestrel.markets

Version:

A typed, token-efficient language + runtime for agentic trading: agents author bounded plans, the runtime fires them at the tick. CLI + typed library + MCP server.

26 lines (24 loc) 1.17 kB
/** * # tooling — the portable, framework-neutral formatter + highlighter core * * ONE core, THREE front-ends (ARCHITECTURE — "portability is the point"). This barrel exports * a zero-dependency tokenizer + formatter that imports ONLY `src/lang` and pure TS, so it runs * unchanged in Node/Bun, the browser (Next.js), and a terminal: * * - {@link format} / {@link formatMarkdown} — canonicalization as `print ∘ parse` (ADR-0004), * idempotent + byte-stable, fail-closed on text that does not parse. * - {@link tokenize} — a thin highlight projection over the real lexer; tiles the source. * - {@link highlightToHtml} / {@link highlightToAnsi} — pure token → string renderers for the * web view and the terminal (no DOM, no ANSI lib). * - {@link kestrelBlocks} — locate `kestrel` fences in Markdown (shared by the editor). * * The VS Code extension (editors/vscode/) IMPORTS this core; it does not reimplement it. */ export { format, formatMarkdown, kestrelBlocks, type KestrelBlock } from "./format.ts"; export { tokenize, highlightToHtml, highlightToAnsi, type HighlightKind, type HighlightToken, } from "./highlight.ts";