mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
- Web: base bundles built from the app's entry at start (content-hashed, served forever), plugin scripts that register themselves and one combined file, WebScripts/TuiScripts showing the current set, startPage with the connection loop, in-place plugin reloads and a reload on a new base bundle. - React bindings: HostProvider, useHold, useWatch, useRegistry, useRefState. - Terminal: startTerminal, a launcher that signs in with a token, a token file or device pairing and always runs the app's terminal code in a sandboxed child process (pipes, empty environment, --permission granting nothing, no SQLite, a builtin allowlist and a frozen process inside); output filter, confirmed copy/open/attach actions; startTerminalRuntime and TuiScope inside. - Themes: the Themes registry, ThemeChoice per principal, CSS variables on the page, terminal colours by role; CSS modules in plugin builds. - App kit: startServer gains web and tui; startApp renamed startServer, exportAddress/importAddress renamed exportData/importData and export no longer stops the worker; ephemeral sessions end with their client's last link. - Examples 56-web, 57-tui, 58-themes, 59-chat.
7 lines
365 B
TypeScript
7 lines
365 B
TypeScript
// The terminal API of the TUI tests (`@test/app/v1/tui`): a registry of lines terminal plugins contribute, which the
|
|
// fixture's entry draws.
|
|
|
|
import { defineRegistry } from "../../../../src/next/index.ts";
|
|
|
|
/** Lines plugins contribute, drawn in plugin-name order. */
|
|
export const Lines = defineRegistry<string, readonly string[]>("test.lines", { version: 1 });
|