@builder.io/dev-tools 1.21.7 → 1.21.8
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.
- package/cli/index.cjs +444 -460
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +32 -32
- package/server/index.mjs +37 -37
- package/types/cli/codegen.d.ts +11 -0
- package/types/cli/sync-utils.d.ts +5 -0
- package/types/cli/utils/agent-discovery.test.d.ts +1 -0
- package/types/cli/utils/discovery-test-utils.d.ts +7 -0
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -240,6 +240,17 @@ export declare class CodeGenSession {
|
|
|
240
240
|
updateMessage(opts: MessageUpdateOptions): void;
|
|
241
241
|
flushMessageQueue(): Promise<void>;
|
|
242
242
|
sendMessage(message: GenerateUserMessage | GenerateUserMessage[]): Promise<string | null>;
|
|
243
|
+
/**
|
|
244
|
+
* Waits for the setup command to finish if it's currently running.
|
|
245
|
+
* Returns information about the setup command state.
|
|
246
|
+
*
|
|
247
|
+
* @param signal - Optional abort signal
|
|
248
|
+
* @returns Object with setup command state information
|
|
249
|
+
*/
|
|
250
|
+
waitForSetupCommand(signal?: AbortSignal): Promise<{
|
|
251
|
+
state: "installed" | "not-installed" | "install-failed" | "install-aborted";
|
|
252
|
+
shouldProceed: boolean;
|
|
253
|
+
}>;
|
|
243
254
|
spawnAgent(options: {
|
|
244
255
|
subagent_type: string;
|
|
245
256
|
prompt: string;
|
|
@@ -18,6 +18,11 @@ export declare function getAllProjectFiles({ basePath, globPattern, extraIgnoreP
|
|
|
18
18
|
export declare function findBuilderFiles(basePath: string, targetContentId: string, targetSessionKey: string): Promise<FileNode[]>;
|
|
19
19
|
export declare function filterNonImportantFiles(files: string[]): string[];
|
|
20
20
|
export declare function getIgnorePatterns(basePath: string): (path: string) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Async version of getIgnorePatterns that works with DevToolsSys
|
|
23
|
+
* Used for testing and when sys is available
|
|
24
|
+
*/
|
|
25
|
+
export declare function getIgnorePatternsAsync(basePath: string, sys: DevToolsSys): Promise<(path: string) => boolean>;
|
|
21
26
|
export declare function watchDirectory(basePath: string, syncInfo: SyncInfo, onChange: (updatedSyncInfo: SyncInfo) => void): () => Promise<void>;
|
|
22
27
|
export declare function setupSyncServer(sys: DevToolsSys, initialSyncInfo?: SyncInfo): Promise<void>;
|
|
23
28
|
export declare function syncCommand(opts: AddCliOptions): Promise<SyncInfo | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Helper to create a mock file system for testing discovery functions
|
|
4
|
+
* @param files - Object mapping file paths to file contents
|
|
5
|
+
* @returns Mock DevToolsSys instance
|
|
6
|
+
*/
|
|
7
|
+
export declare function createMockSys(files: Record<string, string>): DevToolsSys;
|