Files
shiro-neko/src/version.ts
T
Muhammad Zakir RamadhanandSisyphus 6452299a45
ci / check (macos-latest) (push) Canceled after 0s
ci / check (ubuntu-latest) (push) Canceled after 0s
ci / check (windows-latest) (push) Canceled after 0s
release 0.1.0-beta.4
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-09-03 16:54:49 +07:00

19 lines
689 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 = '0.1.0-beta.4';
/** 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(' ');
}