Files
lab/bastion/src/shared/src/index.ts
Michal e87edfcfbd
Some checks failed
CI/CD / lint (pull_request) Failing after 11s
CI/CD / test (pull_request) Failing after 9s
CI/CD / typecheck (pull_request) Failing after 22s
CI/CD / build (pull_request) Has been skipped
CI/CD / publish-rpm (pull_request) Has been skipped
CI/CD / publish-deb (pull_request) Has been skipped
feat: PXE debug boot mode for rescue/diagnostics
New `labctl provision debug <target>` command that PXE boots a machine
into Fedora rescue mode (inst.rescue) for live debugging. Auto-clears
after one boot so next reboot returns to normal.

Adds debug state to BastionState, dispatch routing, API endpoints,
labd command routing, and CLI with rescue workflow guide.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 22:25:44 +01:00

47 lines
982 B
TypeScript

export type {
OsId,
Arch,
Role,
HardwareInfo,
InstallConfig,
InstalledInfo,
DebugConfig,
BastionState,
BastionConfig,
} from "./types/index.js";
export { SUPPORTED_OS, SUPPORTED_ROLES, ROLE_REGISTRY, isValidOsId } from "./types/index.js";
export type { RoleInfo } from "./types/index.js";
export { APP_NAME, APP_VERSION } from "./constants/index.js";
export {
type AgentMessage,
type ServerMessage,
type BastionMessage,
type LabdBastionMessage,
type JournalOptions,
type AgentMessageType,
type ServerMessageType,
type BastionMessageType,
type LabdBastionMessageType,
isAgentMessage,
isServerMessage,
isBastionMessage,
isLabdBastionMessage,
parseAgentMessage,
parseServerMessage,
parseBastionMessage,
parseLabdBastionMessage,
generateRequestId,
} from "./protocol/index.js";
export {
LabError,
NotFoundError,
PermissionDeniedError,
ValidationError,
AgentNotConnectedError,
isLabError,
} from "./errors/index.js";