@builder.io/dev-tools 1.31.0-dev.202603092107.4c4e8f23e → 1.31.0-dev.202603100528.281570c5c

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { DevToolsSys } from "../types";
2
+ import type { CLIArgs } from "./index";
3
+ import { type Credentials } from "./credentials";
4
+ export declare const runCodeIndexing: (_sys: DevToolsSys, _args: CLIArgs) => Promise<void>;
5
+ export declare const codeIndexing: (sys: DevToolsSys, credentials: Credentials) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ export declare const getKVHiddenComment: (key: string, value: string) => string;
2
+ export declare const getPreviewUrl: (projectId: string, branchName: string) => string;
3
+ export declare const getInitialDescription: (projectId: string, branchName: string) => string;
@@ -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 function uploadFrameToCDN(base64Data: string, mediaType: string, imageId: string, signal?: AbortSignal): Promise<string | null>;
@@ -0,0 +1,12 @@
1
+ export interface DevServerUrlInfo {
2
+ url: string;
3
+ port: number;
4
+ }
5
+ /**
6
+ * Parse dev server output to extract URL and port information
7
+ *
8
+ * @param output - The command output string to parse
9
+ * @param customPatterns - Optional array of custom regex patterns to try first
10
+ * @returns Object with url and port, or null if no valid URL found
11
+ */
12
+ export declare function parseDevServerOutput(output: string, customPatterns?: string[]): DevServerUrlInfo | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Parse multi-repo snapshot: "folder1:hash1,folder2:hash2" → { folder1: "hash1", ... }
3
+ * Backward compat: "abc123" (no colon) → { [primaryFolderName]: "abc123" }
4
+ */
5
+ export declare function parseGitSnapshot(snapshot: string | undefined, primaryFolderName?: string): Record<string, string>;
6
+ /**
7
+ * Serialize commits: { folder1: "hash1", ... } → "folder1:hash1,folder2:hash2"
8
+ * For single-repo, returns the full format with folder name
9
+ */
10
+ export declare function serializeGitSnapshot(commits: Record<string, string>): string;
11
+ /**
12
+ * Get commit for specific folder from snapshot
13
+ * @param snapshot - The snapshot string to parse
14
+ * @param folderName - The folder name to look up
15
+ * @param primaryFolderName - The primary folder name for parsing old format (optional, defaults to "code")
16
+ */
17
+ export declare function getCommitFromSnapshot(snapshot: string | undefined, folderName: string, primaryFolderName?: string): string | undefined;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const REPO_INDEXING_GROUP_PROMPT: string;
@@ -0,0 +1,75 @@
1
+ import type { ContentMessageItemImage, ContentMessageItemText, RecordFrameToolInput, TimelineEventCategory, TimelineRecording } from "$/ai-utils";
2
+ export type CursorPositionReader = () => Promise<{
3
+ x: number | null;
4
+ y: number | null;
5
+ viewportWidth: number;
6
+ viewportHeight: number;
7
+ } | null>;
8
+ interface TimelineCollectorOptions {
9
+ framesDir: string;
10
+ debug?: boolean;
11
+ enableCdnUpload?: boolean;
12
+ readCursorPosition?: CursorPositionReader;
13
+ }
14
+ interface CollectedFrame {
15
+ image: ContentMessageItemImage;
16
+ title: string;
17
+ category: TimelineEventCategory;
18
+ eventId: number;
19
+ explicit: boolean;
20
+ timestamp: number;
21
+ fileName: string;
22
+ imageUrl?: string;
23
+ uploadPromise?: Promise<void>;
24
+ cursorX?: number | null;
25
+ cursorY?: number | null;
26
+ viewportWidth?: number;
27
+ viewportHeight?: number;
28
+ }
29
+ interface ProgressSnapshot {
30
+ eventCount: number;
31
+ frameCount: number;
32
+ lastLabel: string;
33
+ lastFrameFileName?: string;
34
+ lastThinking?: string;
35
+ }
36
+ export declare class TimelineCollector {
37
+ #private;
38
+ constructor(sessionId: string, options: TimelineCollectorOptions);
39
+ onToolCall(name: string, id: string, input: string): void;
40
+ onToolResult(result: {
41
+ tool_use_id?: string;
42
+ tool_name?: string;
43
+ tool_input?: string;
44
+ content: string | (ContentMessageItemText | ContentMessageItemImage)[];
45
+ }): void;
46
+ onRecordFrame(input: RecordFrameToolInput): void;
47
+ onThinking(content: string): void;
48
+ getLastCapturedImage(): ContentMessageItemImage | null;
49
+ getExplicitFrames(): Array<{
50
+ image: ContentMessageItemImage | null;
51
+ title: string;
52
+ }>;
53
+ getExplicitImages(): ContentMessageItemImage[];
54
+ getAllImages(): ContentMessageItemImage[];
55
+ getLegacyMetadataFrames(): Array<{
56
+ hasImage: boolean;
57
+ title: string;
58
+ }>;
59
+ getExplicitFrameDurations(): string[];
60
+ getProgressSnapshot(): ProgressSnapshot;
61
+ getEventCount(): number;
62
+ getFrameCount(): number;
63
+ getLastLabel(): string;
64
+ hasExplicitFrames(): boolean;
65
+ hasAnyFrames(): boolean;
66
+ getHighlightFrames(): CollectedFrame[];
67
+ getHighlightImages(): ContentMessageItemImage[];
68
+ getHighlightMetadataFrames(): Array<{
69
+ hasImage: boolean;
70
+ title: string;
71
+ }>;
72
+ getHighlightFrameDurations(): string[];
73
+ finalize(): Promise<TimelineRecording>;
74
+ }
75
+ export {};
@@ -0,0 +1,18 @@
1
+ export declare function analyzeProjects(inputPath?: string): Promise<{
2
+ success: boolean;
3
+ error: string;
4
+ projectsCount?: undefined;
5
+ branchesCount?: undefined;
6
+ csvRowsCount?: undefined;
7
+ outputPath?: undefined;
8
+ } | {
9
+ success: boolean;
10
+ projectsCount: number;
11
+ branchesCount: number;
12
+ csvRowsCount: number;
13
+ outputPath: string;
14
+ error?: undefined;
15
+ }>;
16
+ export declare function handleAnalyzeProjects(args: {
17
+ inputPath?: string;
18
+ }): Promise<void>;
@@ -0,0 +1,4 @@
1
+ export declare function handleCallEnsureContainer(args: {
2
+ appName: string;
3
+ branchName: string;
4
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function handleCheckBackup(): Promise<void>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare function downloadProjects(): Promise<{
2
+ success: boolean;
3
+ count: number;
4
+ outputPath: string;
5
+ error?: undefined;
6
+ } | {
7
+ success: boolean;
8
+ error: string;
9
+ count?: undefined;
10
+ outputPath?: undefined;
11
+ }>;
12
+ export declare function handleDownloadProjects(): Promise<void>;
@@ -0,0 +1,3 @@
1
+ import admin from "firebase-admin";
2
+ export declare const db: admin.firestore.Firestore;
3
+ export declare const storage: admin.storage.Storage;
@@ -0,0 +1,7 @@
1
+ export declare function ensureContainer(projectId: string, branchName: string): Promise<{
2
+ success: boolean;
3
+ error?: undefined;
4
+ } | {
5
+ success: boolean;
6
+ error: any;
7
+ }>;
@@ -0,0 +1,5 @@
1
+ export declare function forceRemoveMachineAndVolume({ projectId, branchName, shouldDeleteVolume, }: {
2
+ projectId: string;
3
+ branchName: string;
4
+ shouldDeleteVolume?: boolean;
5
+ }): Promise<void>;