Files
unkernel/web/src/env.d.ts
Pooya Parsa 96598464f9 Build the CPU worker into the package and split the page's kernel
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).
2026-11-17 10:44:16 +00:00

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;
}