Files
NetMesh/types/global/netcatty-bridge-system.d.ts
zhaolei 3c72efcb7f
Some checks failed
build-packages / resolve bundled mosh-client (push) Has been cancelled
build-packages / resolve bundled et-client (push) Has been cancelled
build-packages / build-macos (push) Has been cancelled
build-packages / build-windows (push) Has been cancelled
build-packages / build-linux-x64 (push) Has been cancelled
build-packages / build-linux-arm64 (push) Has been cancelled
build-packages / release (push) Has been cancelled
build-packages / update Nix release metadata (push) Has been cancelled
build-packages / bump homebrew tap (push) Has been cancelled
test / lint-and-test (push) Has been cancelled
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
build-et-binaries / build-linux-x64 (push) Has been cancelled
build-et-binaries / build-linux-arm64 (push) Has been cancelled
build-et-binaries / build-macos-universal (push) Has been cancelled
build-et-binaries / build-windows-x64 (push) Has been cancelled
build-et-binaries / release (push) Has been cancelled
[Init] Initial commit - NetMesh terminal manager
2026-09-13 18:24:01 +08:00

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 {};