UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

22 lines • 860 B
import { selectTip } from "./scheduler.js"; export function resolveStartupTipLine(options) { if (!options.tipsEnabled) return undefined; if (options.quietStartup) return undefined; const selectOptions = { keys: options.keys, ...(options.hasCommand ? { hasCommand: options.hasCommand } : {}), ...(options.exclude ? { exclude: options.exclude } : {}), }; const tip = selectTip(options.definitions, options.history, options.now, selectOptions); if (!tip) return undefined; const body = tip .render(options.keys) .replace(/\s*\n\s*/g, " ") .trim(); const pointer = "↳ Want the full story on any tip? Ask about it: the give-me-tips skill has the tour."; return { line: `Tip: ${body}\n${pointer}`, tipId: tip.id }; } //# sourceMappingURL=startup-tip.js.map