chore: release v1.118.0

This commit is contained in:
Jim Liu 宝玉
2026-05-21 16:56:17 -05:00
parent 6026b619f0
commit adbfa3036b
8 changed files with 84 additions and 51 deletions
+2
View File
@@ -1,5 +1,6 @@
export interface CliOptions {
prompt: string;
promptFile: string | null;
outputPath: string;
aspect: string;
refImages: string[];
@@ -70,6 +71,7 @@ export const RETRYABLE: ReadonlySet<ErrorKind> = new Set([
]);
export class GenError extends Error {
attempts?: number;
constructor(public kind: ErrorKind, message: string, public retryable?: boolean) {
super(message);
this.retryable = retryable ?? RETRYABLE.has(kind);