fix(coding-agent): add earendil startup announcement
This commit is contained in:
@@ -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)
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user