@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.
- package/cli/index.cjs +485 -713
- 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 +33 -33
- package/server/index.mjs +33 -33
- package/types/cli/codegen.d.ts +0 -20
- package/types/cli/launch/proxy.d.ts +3 -1
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/utils.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types/proxy-middleware.d.ts +3 -2
- package/types/cli/auto-update.d.ts +0 -22
- package/types/cli/auto-update.test.d.ts +0 -1
- package/types/cli/indexing.d.ts +0 -5
- package/types/cli/launch/github.d.ts +0 -3
- package/types/cli/repo-indexing-utils.d.ts +0 -2
- package/types/cli/repo-indexing.d.ts +0 -17
- package/types/cli/repo-indexing.mock.d.ts +0 -5
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +0 -1
- package/types/scripts/analyze-projects.d.ts +0 -18
- package/types/scripts/call-ensure-container.d.ts +0 -5
- package/types/scripts/cli.d.ts +0 -1
- package/types/scripts/db.d.ts +0 -3
- package/types/scripts/download-projects.d.ts +0 -12
package/types/cli/codegen.d.ts
CHANGED
|
@@ -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
|
-
|
|
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" | "
|
|
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;
|
package/types/common/utils.d.ts
CHANGED
|
@@ -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\""
|
|
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
|