153 lines
5.3 KiB
TypeScript
153 lines
5.3 KiB
TypeScript
|
|
|
||
|
|
declare global {
|
||
|
|
interface NetcattyBridge {
|
||
|
|
probeSystemCapabilities?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
pending?: boolean;
|
||
|
|
error?: string;
|
||
|
|
capabilities?: import("../../domain/systemManager/types").SessionCapabilities;
|
||
|
|
}>;
|
||
|
|
listSystemProcesses?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
pending?: boolean;
|
||
|
|
error?: string;
|
||
|
|
processes?: import("../../domain/systemManager/types").SystemProcessInfo[];
|
||
|
|
}>;
|
||
|
|
signalSystemProcess?(options: {
|
||
|
|
sessionId: string;
|
||
|
|
pid: number;
|
||
|
|
signal?: string;
|
||
|
|
nice?: number;
|
||
|
|
}): Promise<{ success: boolean; pending?: boolean; error?: string; code?: number }>;
|
||
|
|
setupOsc7Tracking?(sessionId: string, command: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
pending?: boolean;
|
||
|
|
stdout?: string;
|
||
|
|
stderr?: string;
|
||
|
|
code?: number | null;
|
||
|
|
error?: string;
|
||
|
|
}>;
|
||
|
|
listTmuxSessions?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
tmuxVersion?: string;
|
||
|
|
sessions?: import("../../domain/systemManager/types").TmuxSessionInfo[];
|
||
|
|
}>;
|
||
|
|
createTmuxSession?(options: { sessionId: string; name: string; command?: string }): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
name?: string;
|
||
|
|
}>;
|
||
|
|
listTmuxWindows?(options: { sessionId: string; sessionName: string }): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
debug?: {
|
||
|
|
lastOutput?: string;
|
||
|
|
tried?: string[];
|
||
|
|
sockets?: Array<string | null>;
|
||
|
|
};
|
||
|
|
windows?: import("../../domain/systemManager/types").TmuxWindowInfo[];
|
||
|
|
}>;
|
||
|
|
listTmuxPanes?(options: {
|
||
|
|
sessionId: string;
|
||
|
|
sessionName: string;
|
||
|
|
windowIndex: number;
|
||
|
|
}): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
debug?: {
|
||
|
|
lastOutput?: string;
|
||
|
|
tried?: string[];
|
||
|
|
sockets?: Array<string | null>;
|
||
|
|
};
|
||
|
|
panes?: import("../../domain/systemManager/types").TmuxPaneInfo[];
|
||
|
|
}>;
|
||
|
|
listTmuxClients?(options: { sessionId: string; sessionName?: string }): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
clients?: import("../../domain/systemManager/types").TmuxClientInfo[];
|
||
|
|
}>;
|
||
|
|
tmuxAction?(options: {
|
||
|
|
sessionId: string;
|
||
|
|
} & import("../../domain/systemManager/types").TmuxManageAction): Promise<{ success: boolean; error?: string }>;
|
||
|
|
listDockerContainers?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
containers?: import("../../domain/systemManager/types").DockerContainerInfo[];
|
||
|
|
}>;
|
||
|
|
listDockerImages?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
images?: import("../../domain/systemManager/types").DockerImageInfo[];
|
||
|
|
}>;
|
||
|
|
getDockerStats?(options: { sessionId: string; ids?: string[] }): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
stats?: import("../../domain/systemManager/types").DockerStatInfo[];
|
||
|
|
}>;
|
||
|
|
listAccelerators?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
pending?: boolean;
|
||
|
|
error?: string;
|
||
|
|
devices?: import("../../domain/systemManager/types").AcceleratorDeviceInfo[];
|
||
|
|
processes?: import("../../domain/systemManager/types").AcceleratorProcessInfo[];
|
||
|
|
nvidiaDriverVersion?: string | null;
|
||
|
|
probedAt?: number;
|
||
|
|
}>;
|
||
|
|
listListeningPorts?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
pending?: boolean;
|
||
|
|
error?: string;
|
||
|
|
ports?: import("../../domain/systemManager/types").ListeningPortInfo[];
|
||
|
|
}>;
|
||
|
|
listSystemServices?(sessionId: string): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
pending?: boolean;
|
||
|
|
error?: string;
|
||
|
|
units?: import("../../domain/systemManager/types").SystemdUnitInfo[];
|
||
|
|
}>;
|
||
|
|
systemServiceAction?(options: {
|
||
|
|
sessionId: string;
|
||
|
|
unitName: string;
|
||
|
|
action: import("../../domain/systemManager/types").SystemdUnitAction;
|
||
|
|
scope?: import("../../domain/systemManager/types").SystemdUnitInfo['scope'];
|
||
|
|
}): Promise<{ success: boolean; pending?: boolean; error?: string }>;
|
||
|
|
dockerInspect?(options: { sessionId: string; containerId: string }): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
inspect?: Record<string, unknown>;
|
||
|
|
}>;
|
||
|
|
dockerImageInspect?(options: { sessionId: string; imageId: string }): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
inspect?: Record<string, unknown>;
|
||
|
|
}>;
|
||
|
|
dockerAction?(options: {
|
||
|
|
sessionId: string;
|
||
|
|
containerId: string;
|
||
|
|
action: import("../../domain/systemManager/types").DockerContainerAction;
|
||
|
|
newName?: string;
|
||
|
|
}): Promise<{ success: boolean; error?: string }>;
|
||
|
|
dockerImageAction?(options: {
|
||
|
|
sessionId: string;
|
||
|
|
} & import("../../domain/systemManager/types").DockerImageManageAction): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
output?: string;
|
||
|
|
}>;
|
||
|
|
openTerminalPopup?(payload: import("../../domain/systemManager/types").TerminalPopupPayload): Promise<{
|
||
|
|
success: boolean;
|
||
|
|
error?: string;
|
||
|
|
popupId?: string;
|
||
|
|
}>;
|
||
|
|
logDiagnostic?(payload: {
|
||
|
|
source: string;
|
||
|
|
message: string;
|
||
|
|
extra?: Record<string, unknown>;
|
||
|
|
}): Promise<{ success: boolean; error?: string }>;
|
||
|
|
onTerminalPopupConfig?(cb: (payload: import("../../domain/systemManager/types").TerminalPopupPayload) => void): () => void;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export {};
|