chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.3.1 Latest 5 packages
0
0
// The runs a server-resolved tree's text is drawn as: plain text, links,
// mentions and tags, each with its formatting.
import type { Opener } from './open';
/** The formatting that covers a run of text: `alt` a picture's alt text,
* shown in its place. Each is there only when it is true. */
export type Marks = {
bold?: boolean;
italic?: boolean;
code?: boolean;
strike?: boolean;
underline?: boolean;
highlight?: boolean;
alt?: boolean;
};
/** A run of faceted text: plain, or a link, a mention (its account's DID,
* or the handle a text with no facets names it by) or a tag,
* and with `marks`, its formatting. */
export type Run = (
| { kind: 'text'; text: string }
| { kind: 'link'; text: string; url: string }
| { kind: 'mention'; text: string; actor: string }
| { kind: 'tag'; text: string; tag: string; open?: Opener }
) & { marks?: Marks };