mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-06 20:17:24 +08:00
pnpm build inlines js/node/cpu-entry.ts where js/node/cpu.ts starts it, in the Node entries and inside the inlined Node kernel worker (WORKERS nested), so the package starts SMP CPUs without source files. The page build serves web/kernel/page/: the bundle without its SMP patch section (the same bytes when there is none) and, only with a patch, the SMP bundle it makes as a second hashed asset (kernelSmpUrl, unused until the page has CPU threads).
20 lines
701 B
TypeScript
20 lines
701 B
TypeScript
// SPDX-License-Identifier: MIT
|
|
// Copyright (C) 2026 Pooya Parsa <pooya@pi0.io>
|
|
// Build-time constants from vite.config.ts (define).
|
|
|
|
/** The About dialog's build details; empty strings where unknown. */
|
|
declare const __KW_BUILD__: {
|
|
/** Linux release from the kernel's banner (7.3.4+). */
|
|
linux: string;
|
|
/** The kernel's GitHub release tag (web/scripts/kernel.ts), or "local" (KW_KERNEL). */
|
|
kernel: string;
|
|
/** The page's commit hash and its date (ISO 8601). */
|
|
commit: string;
|
|
date: string;
|
|
};
|
|
|
|
/** The page's SMP bundle (vite.config.ts, web/scripts/kernel.ts splitKernel()), or null without one. */
|
|
declare module "virtual:unkernel-smp-kernel" {
|
|
export const kernelSmpUrl: URL | null;
|
|
}
|