UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

24 lines (23 loc) • 1.09 kB
/** Builds the startup card the dev TUI commits before the first prompt. */ import type { AgentInfoResult } from "#client/index.js"; import type { Theme } from "./theme.js"; export interface AgentHeaderInput { /** Resolved display name used when agent inspection is unavailable. */ name?: string; /** Agent inspection payload, or `undefined` when it could not be fetched. */ info?: AgentInfoResult; theme: Theme; /** Available terminal width. */ width: number; /** Message-of-the-day line rendered below the startup card, when present. */ tip?: string; } /** * The header's message-of-the-day pool. All entries reference local-only * slash commands, so callers only attach a tip to local `eve dev` sessions. */ export declare const AGENT_HEADER_TIPS: readonly string[]; /** Picks one tip; `random` is a test seam over Math.random. */ export declare function pickAgentHeaderTip(random?: () => number): string; /** Returns the styled rows of the startup card and optional tip. */ export declare function buildAgentHeader(input: AgentHeaderInput): string[];