@builder.io/dev-tools 1.18.30-dev.202512030730.8490c5730 → 1.18.31-dev.202512040610.ca7703d22
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 +258 -11
- package/cli/index.cjs.map +3 -3
- 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 +2 -2
- package/server/index.mjs +2 -2
- package/types/cli/codegen.d.ts +20 -0
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -341,6 +341,26 @@ 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
|
+
}>;
|
|
344
364
|
/**
|
|
345
365
|
* Checks if a file exists in the workspace
|
|
346
366
|
* @param filePath A file path that may include a workspace prefix
|