@builder.io/dev-tools 1.18.31-dev.202512040610.ca7703d22 → 1.18.33-dev.202512040930.ffc3e5487

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.
@@ -341,26 +341,6 @@ export declare class CodeGenSession {
341
341
  newContent: string | null;
342
342
  action: "create" | "update" | "delete";
343
343
  }>;
344
- /**
345
- * Discards changes for a specific file, restoring it to the merge-base state
346
- * Creates a commit after discarding so changes can be reverted
347
- * @param filePath - The file path to discard changes for
348
- * @returns success status, commit hash for reverting, and optional error message
349
- */
350
- discardFileChanges(filePath: string): Promise<{
351
- success: boolean;
352
- commitHash?: string;
353
- error?: string;
354
- }>;
355
- /**
356
- * Reverts a commit by its hash
357
- * @param commitHash - The commit hash to revert
358
- * @returns success status and optional error message
359
- */
360
- revertCommit(commitHash: string): Promise<{
361
- success: boolean;
362
- error?: string;
363
- }>;
364
344
  /**
365
345
  * Checks if a file exists in the workspace
366
346
  * @param filePath A file path that may include a workspace prefix
@@ -1,6 +1,8 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { ProxyMiddleware } from "../../types/proxy-middleware";
3
- export declare const createProxy: (serverUrl: string, sys: DevToolsSys) => ProxyMiddleware;
3
+ import type { IncomingMessage } from "http";
4
+ export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<typeof IncomingMessage, typeof import("http").ServerResponse, Error>;
5
+ export declare const createProxyMiddleware: (serverUrl: string, sys: DevToolsSys) => ProxyMiddleware;
4
6
  /**
5
7
  * Detects if HTML was server-side rendered by checking for framework-specific markers.
6
8
  * Returns whether SSR was used and whether the header/head was server-rendered.
@@ -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): "number" | "boolean" | "string" | "object" | "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;
@@ -19,7 +19,7 @@ export declare function clone<T>(obj: T): T;
19
19
  export declare function shouldSkipFolder(sys: DevToolsSys, skipFolders: Set<string>, fileName: string): boolean;
20
20
  export declare function getPackageManager(): string;
21
21
  export declare function isWindows(): boolean;
22
- export declare function builderNpxPackage(): "\"@builder.io/dev-tools\"" | "builder.io";
22
+ export declare function builderNpxPackage(): "builder.io" | "\"@builder.io/dev-tools\"";
23
23
  /**
24
24
  * Sanitizes a component name for use in filesystem paths by replacing invalid characters with underscores
25
25
  * @param name The component name to sanitize