singularity-forge/src/logo.ts
Mikael Hugo b24f426f2b batch: snapshot of in-flight v2 work
This commit captures uncommitted modifications that accumulated in the
working tree across multiple in-progress workstreams. It is a snapshot
to clear the deck before sf v3 work begins; individual workstreams
should land separately on top of this.

Notable additions:
- trace-collector.ts, traces.ts, src/tests/trace-export.test.ts —
  trace export plumbing
- biome.json — Biome linter configuration
- .gitignore — exclude native/npm/**/*.node compiled binaries

The bulk of the diff is across src/resources/extensions/sf/ (301 files)
and src/resources/extensions/sf/tests/ (277 files), reflecting the
ongoing sf extension work. Specific feature commits should follow this
snapshot rather than being archaeology'd out of it.

The 76MB native/npm/linux-x64-gnu/forge_engine.node compiled binary
was left out of the commit — it's now gitignored and built locally.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 12:42:31 +02:00

27 lines
934 B
TypeScript

/**
* Shared SF block-letter ASCII logo.
*
* Single source of truth — imported by:
* - scripts/postinstall.js (via dist/logo.js)
* - src/loader.ts (via ./logo.js)
*/
/** Raw logo lines — no ANSI codes, no leading newline. */
export const SF_LOGO: readonly string[] = [
" ███████╗ ███████╗",
" ██╔════╝ ██╔════╝",
" ███████╗ █████╗ ",
" ╚════██║ ██╔══╝ ",
" ███████║ ██║ ",
" ╚══════╝ ╚═╝ ",
];
/**
* Render the logo block with a color function applied to each line.
*
* @param color — e.g. `(s) => `\x1b[36m${s}\x1b[0m`` or chalk.cyan
* @returns Ready-to-write string with leading/trailing newlines.
*/
export function renderLogo(color: (s: string) => string): string {
return "\n" + SF_LOGO.map(color).join("\n") + "\n";
}