@djangocfg/imgai 1.0.22 → 1.0.24
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/dist/cli/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { i as ImageAICLI } from '../index-
|
|
1
|
+
export { i as ImageAICLI } from '../index-Cb6dYxby.cjs';
|
|
2
2
|
import 'zod';
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { i as ImageAICLI } from '../index-
|
|
1
|
+
export { i as ImageAICLI } from '../index-Cb6dYxby.js';
|
|
2
2
|
import 'zod';
|
|
@@ -1,40 +1,67 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const ImageSizeSchema: z.ZodEnum<
|
|
3
|
+
declare const ImageSizeSchema: z.ZodEnum<{
|
|
4
|
+
"1024x1024": "1024x1024";
|
|
5
|
+
"1792x1024": "1792x1024";
|
|
6
|
+
"1024x1792": "1024x1792";
|
|
7
|
+
}>;
|
|
4
8
|
type ImageSize = z.infer<typeof ImageSizeSchema>;
|
|
5
|
-
declare const ImageQualitySchema: z.ZodEnum<
|
|
9
|
+
declare const ImageQualitySchema: z.ZodEnum<{
|
|
10
|
+
standard: "standard";
|
|
11
|
+
hd: "hd";
|
|
12
|
+
}>;
|
|
6
13
|
type ImageQuality = z.infer<typeof ImageQualitySchema>;
|
|
7
|
-
declare const ImageFormatSchema: z.ZodEnum<
|
|
14
|
+
declare const ImageFormatSchema: z.ZodEnum<{
|
|
15
|
+
webp: "webp";
|
|
16
|
+
jpeg: "jpeg";
|
|
17
|
+
png: "png";
|
|
18
|
+
avif: "avif";
|
|
19
|
+
}>;
|
|
8
20
|
type ImageFormat = z.infer<typeof ImageFormatSchema>;
|
|
9
|
-
declare const AIProviderSchema: z.ZodEnum<
|
|
21
|
+
declare const AIProviderSchema: z.ZodEnum<{
|
|
22
|
+
openai: "openai";
|
|
23
|
+
anthropic: "anthropic";
|
|
24
|
+
}>;
|
|
10
25
|
type AIProvider = z.infer<typeof AIProviderSchema>;
|
|
11
26
|
declare const ResizeOptionsSchema: z.ZodObject<{
|
|
12
27
|
width: z.ZodOptional<z.ZodNumber>;
|
|
13
28
|
height: z.ZodOptional<z.ZodNumber>;
|
|
14
29
|
quality: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
format: z.ZodDefault<z.ZodEnum<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}>;
|
|
30
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
31
|
+
webp: "webp";
|
|
32
|
+
jpeg: "jpeg";
|
|
33
|
+
png: "png";
|
|
34
|
+
avif: "avif";
|
|
35
|
+
}>>;
|
|
36
|
+
fit: z.ZodDefault<z.ZodEnum<{
|
|
37
|
+
cover: "cover";
|
|
38
|
+
contain: "contain";
|
|
39
|
+
fill: "fill";
|
|
40
|
+
inside: "inside";
|
|
41
|
+
outside: "outside";
|
|
42
|
+
}>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
30
44
|
type ResizeOptions = z.infer<typeof ResizeOptionsSchema>;
|
|
31
45
|
declare const ConfigSchema: z.ZodObject<{
|
|
32
|
-
provider: z.ZodDefault<z.ZodEnum<
|
|
46
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
47
|
+
openai: "openai";
|
|
48
|
+
anthropic: "anthropic";
|
|
49
|
+
}>>;
|
|
33
50
|
openaiApiKey: z.ZodOptional<z.ZodString>;
|
|
34
51
|
anthropicApiKey: z.ZodOptional<z.ZodString>;
|
|
35
|
-
size: z.ZodDefault<z.ZodEnum<
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
53
|
+
"1024x1024": "1024x1024";
|
|
54
|
+
"1792x1024": "1792x1024";
|
|
55
|
+
"1024x1792": "1024x1792";
|
|
56
|
+
}>>;
|
|
57
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
58
|
+
standard: "standard";
|
|
59
|
+
hd: "hd";
|
|
60
|
+
}>>;
|
|
61
|
+
dalleStyle: z.ZodDefault<z.ZodEnum<{
|
|
62
|
+
vivid: "vivid";
|
|
63
|
+
natural: "natural";
|
|
64
|
+
}>>;
|
|
38
65
|
prefix: z.ZodOptional<z.ZodString>;
|
|
39
66
|
suffix: z.ZodOptional<z.ZodString>;
|
|
40
67
|
outputDir: z.ZodDefault<z.ZodString>;
|
|
@@ -42,68 +69,25 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
42
69
|
width: z.ZodOptional<z.ZodNumber>;
|
|
43
70
|
height: z.ZodOptional<z.ZodNumber>;
|
|
44
71
|
quality: z.ZodDefault<z.ZodNumber>;
|
|
45
|
-
format: z.ZodDefault<z.ZodEnum<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}>>;
|
|
72
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
webp: "webp";
|
|
74
|
+
jpeg: "jpeg";
|
|
75
|
+
png: "png";
|
|
76
|
+
avif: "avif";
|
|
77
|
+
}>>;
|
|
78
|
+
fit: z.ZodDefault<z.ZodEnum<{
|
|
79
|
+
cover: "cover";
|
|
80
|
+
contain: "contain";
|
|
81
|
+
fill: "fill";
|
|
82
|
+
inside: "inside";
|
|
83
|
+
outside: "outside";
|
|
84
|
+
}>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
60
86
|
projectRoot: z.ZodString;
|
|
61
87
|
srcDir: z.ZodDefault<z.ZodString>;
|
|
62
88
|
publicDir: z.ZodDefault<z.ZodString>;
|
|
63
89
|
configOutputPath: z.ZodDefault<z.ZodString>;
|
|
64
|
-
},
|
|
65
|
-
provider: "openai" | "anthropic";
|
|
66
|
-
size: "1024x1024" | "1792x1024" | "1024x1792";
|
|
67
|
-
quality: "standard" | "hd";
|
|
68
|
-
dalleStyle: "vivid" | "natural";
|
|
69
|
-
outputDir: string;
|
|
70
|
-
projectRoot: string;
|
|
71
|
-
srcDir: string;
|
|
72
|
-
publicDir: string;
|
|
73
|
-
configOutputPath: string;
|
|
74
|
-
openaiApiKey?: string | undefined;
|
|
75
|
-
anthropicApiKey?: string | undefined;
|
|
76
|
-
prefix?: string | undefined;
|
|
77
|
-
suffix?: string | undefined;
|
|
78
|
-
resize?: {
|
|
79
|
-
quality: number;
|
|
80
|
-
format: "webp" | "jpeg" | "png" | "avif";
|
|
81
|
-
fit: "cover" | "contain" | "fill" | "inside" | "outside";
|
|
82
|
-
width?: number | undefined;
|
|
83
|
-
height?: number | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
projectRoot: string;
|
|
87
|
-
provider?: "openai" | "anthropic" | undefined;
|
|
88
|
-
openaiApiKey?: string | undefined;
|
|
89
|
-
anthropicApiKey?: string | undefined;
|
|
90
|
-
size?: "1024x1024" | "1792x1024" | "1024x1792" | undefined;
|
|
91
|
-
quality?: "standard" | "hd" | undefined;
|
|
92
|
-
dalleStyle?: "vivid" | "natural" | undefined;
|
|
93
|
-
prefix?: string | undefined;
|
|
94
|
-
suffix?: string | undefined;
|
|
95
|
-
outputDir?: string | undefined;
|
|
96
|
-
resize?: {
|
|
97
|
-
quality?: number | undefined;
|
|
98
|
-
width?: number | undefined;
|
|
99
|
-
height?: number | undefined;
|
|
100
|
-
format?: "webp" | "jpeg" | "png" | "avif" | undefined;
|
|
101
|
-
fit?: "cover" | "contain" | "fill" | "inside" | "outside" | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
srcDir?: string | undefined;
|
|
104
|
-
publicDir?: string | undefined;
|
|
105
|
-
configOutputPath?: string | undefined;
|
|
106
|
-
}>;
|
|
90
|
+
}, z.core.$strip>;
|
|
107
91
|
type Config = z.infer<typeof ConfigSchema>;
|
|
108
92
|
interface ImageInfo {
|
|
109
93
|
/** Unique identifier (filename without extension) */
|
|
@@ -1,40 +1,67 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const ImageSizeSchema: z.ZodEnum<
|
|
3
|
+
declare const ImageSizeSchema: z.ZodEnum<{
|
|
4
|
+
"1024x1024": "1024x1024";
|
|
5
|
+
"1792x1024": "1792x1024";
|
|
6
|
+
"1024x1792": "1024x1792";
|
|
7
|
+
}>;
|
|
4
8
|
type ImageSize = z.infer<typeof ImageSizeSchema>;
|
|
5
|
-
declare const ImageQualitySchema: z.ZodEnum<
|
|
9
|
+
declare const ImageQualitySchema: z.ZodEnum<{
|
|
10
|
+
standard: "standard";
|
|
11
|
+
hd: "hd";
|
|
12
|
+
}>;
|
|
6
13
|
type ImageQuality = z.infer<typeof ImageQualitySchema>;
|
|
7
|
-
declare const ImageFormatSchema: z.ZodEnum<
|
|
14
|
+
declare const ImageFormatSchema: z.ZodEnum<{
|
|
15
|
+
webp: "webp";
|
|
16
|
+
jpeg: "jpeg";
|
|
17
|
+
png: "png";
|
|
18
|
+
avif: "avif";
|
|
19
|
+
}>;
|
|
8
20
|
type ImageFormat = z.infer<typeof ImageFormatSchema>;
|
|
9
|
-
declare const AIProviderSchema: z.ZodEnum<
|
|
21
|
+
declare const AIProviderSchema: z.ZodEnum<{
|
|
22
|
+
openai: "openai";
|
|
23
|
+
anthropic: "anthropic";
|
|
24
|
+
}>;
|
|
10
25
|
type AIProvider = z.infer<typeof AIProviderSchema>;
|
|
11
26
|
declare const ResizeOptionsSchema: z.ZodObject<{
|
|
12
27
|
width: z.ZodOptional<z.ZodNumber>;
|
|
13
28
|
height: z.ZodOptional<z.ZodNumber>;
|
|
14
29
|
quality: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
format: z.ZodDefault<z.ZodEnum<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}>;
|
|
30
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
31
|
+
webp: "webp";
|
|
32
|
+
jpeg: "jpeg";
|
|
33
|
+
png: "png";
|
|
34
|
+
avif: "avif";
|
|
35
|
+
}>>;
|
|
36
|
+
fit: z.ZodDefault<z.ZodEnum<{
|
|
37
|
+
cover: "cover";
|
|
38
|
+
contain: "contain";
|
|
39
|
+
fill: "fill";
|
|
40
|
+
inside: "inside";
|
|
41
|
+
outside: "outside";
|
|
42
|
+
}>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
30
44
|
type ResizeOptions = z.infer<typeof ResizeOptionsSchema>;
|
|
31
45
|
declare const ConfigSchema: z.ZodObject<{
|
|
32
|
-
provider: z.ZodDefault<z.ZodEnum<
|
|
46
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
47
|
+
openai: "openai";
|
|
48
|
+
anthropic: "anthropic";
|
|
49
|
+
}>>;
|
|
33
50
|
openaiApiKey: z.ZodOptional<z.ZodString>;
|
|
34
51
|
anthropicApiKey: z.ZodOptional<z.ZodString>;
|
|
35
|
-
size: z.ZodDefault<z.ZodEnum<
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
53
|
+
"1024x1024": "1024x1024";
|
|
54
|
+
"1792x1024": "1792x1024";
|
|
55
|
+
"1024x1792": "1024x1792";
|
|
56
|
+
}>>;
|
|
57
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
58
|
+
standard: "standard";
|
|
59
|
+
hd: "hd";
|
|
60
|
+
}>>;
|
|
61
|
+
dalleStyle: z.ZodDefault<z.ZodEnum<{
|
|
62
|
+
vivid: "vivid";
|
|
63
|
+
natural: "natural";
|
|
64
|
+
}>>;
|
|
38
65
|
prefix: z.ZodOptional<z.ZodString>;
|
|
39
66
|
suffix: z.ZodOptional<z.ZodString>;
|
|
40
67
|
outputDir: z.ZodDefault<z.ZodString>;
|
|
@@ -42,68 +69,25 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
42
69
|
width: z.ZodOptional<z.ZodNumber>;
|
|
43
70
|
height: z.ZodOptional<z.ZodNumber>;
|
|
44
71
|
quality: z.ZodDefault<z.ZodNumber>;
|
|
45
|
-
format: z.ZodDefault<z.ZodEnum<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}>>;
|
|
72
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
webp: "webp";
|
|
74
|
+
jpeg: "jpeg";
|
|
75
|
+
png: "png";
|
|
76
|
+
avif: "avif";
|
|
77
|
+
}>>;
|
|
78
|
+
fit: z.ZodDefault<z.ZodEnum<{
|
|
79
|
+
cover: "cover";
|
|
80
|
+
contain: "contain";
|
|
81
|
+
fill: "fill";
|
|
82
|
+
inside: "inside";
|
|
83
|
+
outside: "outside";
|
|
84
|
+
}>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
60
86
|
projectRoot: z.ZodString;
|
|
61
87
|
srcDir: z.ZodDefault<z.ZodString>;
|
|
62
88
|
publicDir: z.ZodDefault<z.ZodString>;
|
|
63
89
|
configOutputPath: z.ZodDefault<z.ZodString>;
|
|
64
|
-
},
|
|
65
|
-
provider: "openai" | "anthropic";
|
|
66
|
-
size: "1024x1024" | "1792x1024" | "1024x1792";
|
|
67
|
-
quality: "standard" | "hd";
|
|
68
|
-
dalleStyle: "vivid" | "natural";
|
|
69
|
-
outputDir: string;
|
|
70
|
-
projectRoot: string;
|
|
71
|
-
srcDir: string;
|
|
72
|
-
publicDir: string;
|
|
73
|
-
configOutputPath: string;
|
|
74
|
-
openaiApiKey?: string | undefined;
|
|
75
|
-
anthropicApiKey?: string | undefined;
|
|
76
|
-
prefix?: string | undefined;
|
|
77
|
-
suffix?: string | undefined;
|
|
78
|
-
resize?: {
|
|
79
|
-
quality: number;
|
|
80
|
-
format: "webp" | "jpeg" | "png" | "avif";
|
|
81
|
-
fit: "cover" | "contain" | "fill" | "inside" | "outside";
|
|
82
|
-
width?: number | undefined;
|
|
83
|
-
height?: number | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
projectRoot: string;
|
|
87
|
-
provider?: "openai" | "anthropic" | undefined;
|
|
88
|
-
openaiApiKey?: string | undefined;
|
|
89
|
-
anthropicApiKey?: string | undefined;
|
|
90
|
-
size?: "1024x1024" | "1792x1024" | "1024x1792" | undefined;
|
|
91
|
-
quality?: "standard" | "hd" | undefined;
|
|
92
|
-
dalleStyle?: "vivid" | "natural" | undefined;
|
|
93
|
-
prefix?: string | undefined;
|
|
94
|
-
suffix?: string | undefined;
|
|
95
|
-
outputDir?: string | undefined;
|
|
96
|
-
resize?: {
|
|
97
|
-
quality?: number | undefined;
|
|
98
|
-
width?: number | undefined;
|
|
99
|
-
height?: number | undefined;
|
|
100
|
-
format?: "webp" | "jpeg" | "png" | "avif" | undefined;
|
|
101
|
-
fit?: "cover" | "contain" | "fill" | "inside" | "outside" | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
srcDir?: string | undefined;
|
|
104
|
-
publicDir?: string | undefined;
|
|
105
|
-
configOutputPath?: string | undefined;
|
|
106
|
-
}>;
|
|
90
|
+
}, z.core.$strip>;
|
|
107
91
|
type Config = z.infer<typeof ConfigSchema>;
|
|
108
92
|
interface ImageInfo {
|
|
109
93
|
/** Unique identifier (filename without extension) */
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Config, G as GenerateOptions, a as GenerationResult, B as BatchGenerateOptions, b as BatchResult, S as ScanOptions, c as ScanResult, I as ImageCatalog, d as ImageInfo } from './index-
|
|
2
|
-
export { A as AIProvider, i as ImageAICLI, h as ImageFormat, e as ImageMetadata, g as ImageQuality, f as ImageSize, R as ResizeOptions } from './index-
|
|
1
|
+
import { C as Config, G as GenerateOptions, a as GenerationResult, B as BatchGenerateOptions, b as BatchResult, S as ScanOptions, c as ScanResult, I as ImageCatalog, d as ImageInfo } from './index-Cb6dYxby.cjs';
|
|
2
|
+
export { A as AIProvider, i as ImageAICLI, h as ImageFormat, e as ImageMetadata, g as ImageQuality, f as ImageSize, R as ResizeOptions } from './index-Cb6dYxby.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare class ImageGenerator {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Config, G as GenerateOptions, a as GenerationResult, B as BatchGenerateOptions, b as BatchResult, S as ScanOptions, c as ScanResult, I as ImageCatalog, d as ImageInfo } from './index-
|
|
2
|
-
export { A as AIProvider, i as ImageAICLI, h as ImageFormat, e as ImageMetadata, g as ImageQuality, f as ImageSize, R as ResizeOptions } from './index-
|
|
1
|
+
import { C as Config, G as GenerateOptions, a as GenerationResult, B as BatchGenerateOptions, b as BatchResult, S as ScanOptions, c as ScanResult, I as ImageCatalog, d as ImageInfo } from './index-Cb6dYxby.js';
|
|
2
|
+
export { A as AIProvider, i as ImageAICLI, h as ImageFormat, e as ImageMetadata, g as ImageQuality, f as ImageSize, R as ResizeOptions } from './index-Cb6dYxby.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare class ImageGenerator {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/imgai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "AI-powered image generation and optimization CLI for Next.js projects using OpenAI DALL-E and Claude Vision",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"fs-extra": "^11.2.0",
|
|
70
70
|
"glob": "^11.0.0",
|
|
71
71
|
"inquirer": "^10.2.2",
|
|
72
|
-
"openai": "^
|
|
72
|
+
"openai": "^6.9.1",
|
|
73
73
|
"ora": "^8.1.1",
|
|
74
74
|
"sharp": "^0.33.5",
|
|
75
|
-
"zod": "^
|
|
75
|
+
"zod": "^4.1.13"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/fs-extra": "^11.0.4",
|
|
79
79
|
"@types/inquirer": "^9.0.7",
|
|
80
|
-
"@types/node": "^
|
|
80
|
+
"@types/node": "^24.7.2",
|
|
81
81
|
"tsup": "^8.3.5",
|
|
82
|
-
"typescript": "^5.
|
|
82
|
+
"typescript": "^5.9.3"
|
|
83
83
|
},
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|