need dist for plugins
Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
22
dist/features/tmux-subagent/session-created-handler.d.ts
vendored
Normal file
22
dist/features/tmux-subagent/session-created-handler.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
import type { TmuxConfig } from "../../config/schema";
|
||||
import type { CapacityConfig, TrackedSession } from "./types";
|
||||
import { type SessionMapping } from "./decision-engine";
|
||||
import type { SessionCreatedEvent } from "./session-created-event";
|
||||
type OpencodeClient = PluginInput["client"];
|
||||
export interface SessionCreatedHandlerDeps {
|
||||
client: OpencodeClient;
|
||||
tmuxConfig: TmuxConfig;
|
||||
serverUrl: string;
|
||||
sourcePaneId: string | undefined;
|
||||
sessions: Map<string, TrackedSession>;
|
||||
pendingSessions: Set<string>;
|
||||
isInsideTmux: () => boolean;
|
||||
isEnabled: () => boolean;
|
||||
getCapacityConfig: () => CapacityConfig;
|
||||
getSessionMappings: () => SessionMapping[];
|
||||
waitForSessionReady: (sessionId: string) => Promise<boolean>;
|
||||
startPolling: () => void;
|
||||
}
|
||||
export declare function handleSessionCreated(deps: SessionCreatedHandlerDeps, event: SessionCreatedEvent): Promise<void>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user