builder.io 1.18.34 → 1.18.36

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,6 +341,27 @@ 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 by creating a revert commit
346
+ * @param filePath - The file path to discard changes for
347
+ * @returns success status, commit hash for reverting, and optional error message
348
+ */
349
+ discardFileChanges(filePath: string): Promise<{
350
+ success: boolean;
351
+ commitHash?: string;
352
+ error?: string;
353
+ }>;
354
+ /**
355
+ * Reverts a discard commit using git revert
356
+ * @param commitHash - The commit hash to revert
357
+ * @returns success status and optional error message
358
+ */
359
+ revertDiscard(options: {
360
+ commitHash: string;
361
+ }): Promise<{
362
+ success: boolean;
363
+ error?: string;
364
+ }>;
344
365
  /**
345
366
  * Checks if a file exists in the workspace
346
367
  * @param filePath A file path that may include a workspace prefix
@@ -100,6 +100,6 @@ export interface DevServerOrchestrator {
100
100
  close: () => Promise<void>;
101
101
  }
102
102
  export declare const importPty: (sys: DevToolsSys) => typeof import("@lydell/node-pty") | undefined;
103
- export declare function safeParseUrl(serverUrl: string | undefined): URL | undefined;
103
+ export declare function safeParseUrl(serverUrl: any): URL | undefined;
104
104
  export declare function devServerOrchestrator(sys: DevToolsSys, fusionConfig: FusionConfig, initialSetupState: "installed" | "not-installed" | "install-failed"): Promise<DevServerOrchestrator>;
105
105
  export declare const checkPortsListenedByPid: (pid: number) => number[];
@@ -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: URL, sys: DevToolsSys) => ProxyMiddleware | undefined;
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.
@@ -9,3 +11,4 @@ export declare const detectSSR: (body: string) => {
9
11
  hasSSR: boolean;
10
12
  hasHeaderSSR: boolean;
11
13
  };
14
+ export declare const permissiveHTTPS: any;