need dist for plugins

Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
2026-04-19 19:15:51 -04:00
parent 25291b2ba4
commit 15be750b5c
55 changed files with 29302 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
export type SplitDirection = "-h" | "-v";
export declare function isInsideTmuxEnvironment(environment: Record<string, string | undefined>): boolean;
export declare function isInsideTmux(): boolean;
export declare function getCurrentPaneId(): string | undefined;

18
dist/shared/tmux/tmux-utils/layout.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
import type { TmuxLayout } from "../../../config/schema";
type TmuxSpawnCommand = (args: string[], options: {
stdout: "ignore";
stderr: "ignore";
}) => {
exited: Promise<number>;
};
interface LayoutDeps {
spawnCommand?: TmuxSpawnCommand;
}
interface MainPaneWidthOptions {
mainPaneSize?: number;
mainPaneMinWidth?: number;
agentPaneMinWidth?: number;
}
export declare function applyLayout(tmux: string, layout: TmuxLayout, mainPaneSize: number, deps?: LayoutDeps): Promise<void>;
export declare function enforceMainPaneWidth(mainPaneId: string, windowWidth: number, mainPaneSizeOrOptions?: number | MainPaneWidthOptions): Promise<void>;
export {};

View File

@@ -0,0 +1 @@
export declare function closeTmuxPane(paneId: string): Promise<boolean>;

View File

@@ -0,0 +1,5 @@
export interface PaneDimensions {
paneWidth: number;
windowWidth: number;
}
export declare function getPaneDimensions(paneId: string): Promise<PaneDimensions | null>;

View File

@@ -0,0 +1,3 @@
import type { TmuxConfig } from "../../../config/schema";
import type { SpawnPaneResult } from "../types";
export declare function replaceTmuxPane(paneId: string, sessionId: string, description: string, config: TmuxConfig, serverUrl: string): Promise<SpawnPaneResult>;

View File

@@ -0,0 +1,4 @@
import type { TmuxConfig } from "../../../config/schema";
import type { SpawnPaneResult } from "../types";
import type { SplitDirection } from "./environment";
export declare function spawnTmuxPane(sessionId: string, description: string, config: TmuxConfig, serverUrl: string, targetPaneId?: string, splitDirection?: SplitDirection): Promise<SpawnPaneResult>;

View File

@@ -0,0 +1,2 @@
export declare function isServerRunning(serverUrl: string): Promise<boolean>;
export declare function resetServerCheck(): void;