Files
Muhammad Zakir Ramadhan 8eebc0f4d6 release 1.0.1: fix resume showing a blank transcript
A resumed session loaded its wire messages but never rebuilt the on-screen
history, so -r/-c and /resume rendered a blank transcript. Convert the stored
messages back into transcript lines and seed the panel with them at mount and
after /resume.
2026-09-17 19:26:42 +07:00

19 lines
682 B
TypeScript

/**
* Single source of truth for the version.
*
* `bun build --compile` does not embed package.json, so reading it at runtime
* fails inside the shipped binary. A constant is compiled in and always correct.
* `scripts/release.ts` checks it against the release tag so the two cannot drift.
*/
export const VERSION = '1.0.1';
/** What `--version` prints: enough to identify a build from a bug report. */
export function versionLine(): string {
return [
`shiro-neko ${VERSION}`,
`bun ${Bun.version}`,
`${process.platform}-${process.arch}`,
import.meta.path.startsWith('/$bunfs/') || import.meta.path.includes('~BUN') ? 'compiled' : 'source',
].join(' ');
}