builder.io 1.11.45 → 1.11.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,6 +89,31 @@ export declare class CodeGenSession {
89
89
  getAiBranch(): string;
90
90
  git(args: string[], opts?: string | RunCommandOptions): Promise<string>;
91
91
  setDebug(debug: boolean): void;
92
+ createTerminal(options?: {
93
+ cwd?: string;
94
+ env?: Record<string, string | undefined>;
95
+ cols?: number;
96
+ rows?: number;
97
+ shell?: string;
98
+ }): {
99
+ terminalId: string;
100
+ };
101
+ writeTerminal({ terminalId, data }: {
102
+ terminalId: string;
103
+ data: string;
104
+ }): boolean;
105
+ signalTerminal({ terminalId, signal, }: {
106
+ terminalId: string;
107
+ signal: "SIGINT" | "SIGTERM" | "SIGKILL";
108
+ }): boolean;
109
+ disposeTerminal({ terminalId }: {
110
+ terminalId: string;
111
+ }): boolean;
112
+ subscribeTerminal({ terminalId, onData, onExit, }: {
113
+ terminalId: string;
114
+ onData: (chunk: string) => void;
115
+ onExit?: (code?: number) => void;
116
+ }): boolean;
92
117
  getAllFiles(options?: {
93
118
  getDotFiles?: boolean;
94
119
  globbyPattern?: string;
@@ -81,6 +81,7 @@ export interface DevServerOrchestrator {
81
81
  }>;
82
82
  close: () => Promise<void>;
83
83
  }
84
+ export declare const importPty: (sys: DevToolsSys) => typeof import("@lydell/node-pty") | undefined;
84
85
  export declare function devServerOrchestrator(sys: DevToolsSys, fusionConfig: FusionConfig, initialSetupState: "installed" | "not-installed" | "install-failed"): Promise<DevServerOrchestrator>;
85
86
  export declare const checkPortsListenedByPid: (pid: number) => number[];
86
87
  export declare function killProcess(sys: DevToolsSys, proc: ChildProcess | DevCommandProcess | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<boolean>;