mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
p2 (Pi Mobile on Chord v2) moves from pi-private into pi as one commit. Root scripts that loop all workspaces use --if-present; npm test, ./test.sh and the release script cover packages/* only (p2: cd apps/p2 && npm test); sync-versions also updates apps' workspace pins.
13 lines
741 B
TypeScript
13 lines
741 B
TypeScript
import { defineRegistry, local } from "@p2/app/v1";
|
|
import type { RadiusBrain } from "./brain.ts";
|
|
import type { RelayAccess } from "./relay-access.ts";
|
|
|
|
/** The Radius connection (server, host-internal); its relay credentials never leave the `RadiusConnections` native. */
|
|
export const RadiusService = local("p2.radius-service", { version: 2, params: {}, members: {} });
|
|
|
|
/** The open `RadiusService`'s relay and brain: read `.connection` at each use. */
|
|
export type RadiusConnection = { readonly relay: RelayAccess; readonly brain: RadiusBrain };
|
|
export const RadiusConnections = defineRegistry<
|
|
{ readonly connection: RadiusConnection },
|
|
{ readonly connection: RadiusConnection } | undefined
|
|
>("p2.radius-connections", { version: 1 });
|