Skip to content

Open-source, local-first AI agent for real work.

478 B
Raw Blame
/** Minimal hast-like nodes for the markdown rehype plugins. */
export interface HastPosition {
	start: { offset?: number };
	end: { offset?: number };
}
export interface HastText {
	type: "text";
	value: string;
	position?: HastPosition;
}
export interface HastElement {
	type: "element";
	tagName: string;
	properties?: Record<string, unknown>;
	children: Array<HastText | HastElement>;
}
export interface HastRoot {
	type: "root";
	children: Array<HastText | HastElement>;
}