fix(coding-agent): add earendil startup announcement

This commit is contained in:
Mario Zechner
2026-04-08 11:13:40 +02:00
parent f10cce9435
commit 6d2d03dcc9
6 changed files with 121 additions and 29 deletions

View File

@@ -158,6 +158,26 @@ export function getChangelogPath(): string {
return resolve(join(getPackageDir(), "CHANGELOG.md"));
}
/**
* Get path to built-in interactive assets directory.
* - For Bun binary: assets/ next to executable
* - For Node.js (dist/): dist/modes/interactive/assets/
* - For tsx (src/): src/modes/interactive/assets/
*/
export function getInteractiveAssetsDir(): string {
if (isBunBinary) {
return join(dirname(process.execPath), "assets");
}
const packageDir = getPackageDir();
const srcOrDist = existsSync(join(packageDir, "src")) ? "src" : "dist";
return join(packageDir, srcOrDist, "modes", "interactive", "assets");
}
/** Get path to a bundled interactive asset */
export function getBundledInteractiveAssetPath(name: string): string {
return join(getInteractiveAssetsDir(), name);
}
// =============================================================================
// App Config (from package.json piConfig)
// =============================================================================