@builder.io/dev-tools 1.11.46 → 1.11.47-dev.202510010530.e9d27e2bb

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>;
@@ -0,0 +1,17 @@
1
+ import type { DevToolsSys } from "../types";
2
+ import type { CLIArgs } from "./index";
3
+ export interface RepoIndexingDoc {
4
+ name: string;
5
+ content: string | {
6
+ name: string;
7
+ description: string;
8
+ components: string[];
9
+ relevantFiles: string[];
10
+ }[];
11
+ createdDate: string;
12
+ description: string;
13
+ id: string;
14
+ ownerId: string;
15
+ userId: string;
16
+ }
17
+ export declare const runRepoIndexing: (sys: DevToolsSys, args: CLIArgs) => Promise<void>;
@@ -0,0 +1,5 @@
1
+ export declare const mockDeps: {
2
+ getStoredComponentDocs: () => Promise<never[]>;
3
+ storeComponentDocs: () => Promise<{}>;
4
+ runCodeGen: () => Promise<string>;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const REPO_INDEXING_GROUP_PROMPT: string;
@@ -17,7 +17,7 @@ export declare const NUMBER_TYPES: string[];
17
17
  export declare const BOOLEAN_TYPES: string[];
18
18
  export declare const ARRAY_TYPES: string[];
19
19
  export declare const OBJECT_TYPES: string[];
20
- export declare function getPrimitiveType(t: string): "number" | "string" | "boolean" | "object" | "array";
20
+ export declare function getPrimitiveType(t: string): "string" | "object" | "number" | "boolean" | "array";
21
21
  export declare function removeQuotes(text: string): string;
22
22
  export declare const resolveType: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string[] | undefined;
23
23
  export declare const typeToString: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string;