Files
unkernel/js/node/cli-imports.ts
Pooya Parsa d80c033106 net: drop the default Wisp server from the SDK
The SDK named the project's Wisp server (DEFAULT_WISP_SERVERS), and the
Node entry sent Origin: http://localhost to pass that server's allow
list (NODE_WISP_HEADERS). The server accepts only the page's origins,
so both are gone: wispBackend() takes the caller's server, and Node
sends handshake headers only when `headers` asks for them. The page
keeps wss://wisp.unkernel.dev:6680/ as its own default (web/src/net.ts).

The live Wisp test takes its server from UNKERNEL_TEST_WISP.
2026-11-27 22:24:02 +00:00

22 lines
1.1 KiB
TypeScript

// SPDX-License-Identifier: MIT
// Copyright (C) 2026 Pooya Parsa <pooya@pi0.io>
// What js/cli.ts uses of the SDK, in one module that it imports dynamically
// (after turning on Node's compile cache there).
export { frameToPpm } from "../core/display.ts";
export { BTN_LEFT, BTN_MIDDLE, BTN_RIGHT, domCodeToLinux } from "../core/input.ts";
export { KernelInstance, createKernelOn } from "../core/instance.ts";
export { decodeSnapshot, encodeSnapshot } from "../core/snapshot.ts";
export { bundledBoot, moduleIsMemory64 } from "../core/kernel.ts";
export { smpKernelFromBundle } from "../core/kpatch.ts";
export { NetStack } from "../core/net.ts";
export { formatProfile, symbolizeProfile } from "../core/profile.ts";
export { createImageFromKwsparse, openDisk } from "./disk.ts";
export { distroFetcher, isCheckout } from "./distro-fetch.ts";
export { wispBackend } from "../core/net-wisp.ts";
export { directBackend } from "./net.ts";
export { nodeFs } from "./nodefs.ts";
export { nodePlatform } from "./platform.ts";
export { cliSound } from "./sound.ts";
export { serveWasiPrograms } from "./wasi.ts";