image-optimizer-node 0.0.0-stage → 0.1.0
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/README.md +224 -2
- package/action.yml +257 -0
- package/dist/cli.cjs +3155 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +3128 -0
- package/dist/index.cjs +2899 -0
- package/dist/index.d.cts +414 -0
- package/dist/index.d.ts +414 -0
- package/dist/index.js +2807 -0
- package/docs/AI/SKILL.md +73 -0
- package/package.json +83 -4
- package/schemas/imgopt.config.schema.json +236 -0
- package/templates/workflows/optimize-images.yml +64 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
type PresetName = 'balanced' | 'maximum' | 'aggressive';
|
|
2
|
+
type FormatPolicy = 'preserve' | 'webp' | 'avif' | 'auto' | 'jpeg' | 'png' | 'gif' | 'force-webp' | 'force-avif';
|
|
3
|
+
type ResizeMode = 'scale-down' | 'contain' | 'cover' | 'exact';
|
|
4
|
+
type BackupStrategy = 'preserve-first' | 'keep-initial';
|
|
5
|
+
interface CliConfig {
|
|
6
|
+
repo: string;
|
|
7
|
+
version: string;
|
|
8
|
+
autoDownload: boolean;
|
|
9
|
+
autoUpdate: boolean;
|
|
10
|
+
cacheDir?: string;
|
|
11
|
+
binPath?: string;
|
|
12
|
+
downloadBaseUrl?: string;
|
|
13
|
+
}
|
|
14
|
+
interface TargetConfig {
|
|
15
|
+
dir: string;
|
|
16
|
+
include?: string[];
|
|
17
|
+
exclude?: string[];
|
|
18
|
+
}
|
|
19
|
+
interface BackupConfig {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
dir: string;
|
|
22
|
+
strategy: BackupStrategy;
|
|
23
|
+
}
|
|
24
|
+
interface ResizeConfig {
|
|
25
|
+
maxWidth?: number;
|
|
26
|
+
maxHeight?: number;
|
|
27
|
+
mode?: ResizeMode;
|
|
28
|
+
}
|
|
29
|
+
interface OptimizationOptions {
|
|
30
|
+
preset: PresetName;
|
|
31
|
+
quality?: number;
|
|
32
|
+
effort?: number;
|
|
33
|
+
format: FormatPolicy;
|
|
34
|
+
preserveMetadata: boolean;
|
|
35
|
+
preserveIcc: boolean;
|
|
36
|
+
convertToSrgb: boolean;
|
|
37
|
+
resize?: ResizeConfig;
|
|
38
|
+
concurrency?: number;
|
|
39
|
+
minBytes: number;
|
|
40
|
+
minSavingsPercent: number;
|
|
41
|
+
removeSourceOnFormatChange: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface RuleConfig {
|
|
44
|
+
match: string | string[];
|
|
45
|
+
optimization: Partial<OptimizationOptions>;
|
|
46
|
+
}
|
|
47
|
+
interface BudgetConfig {
|
|
48
|
+
maxFileSizeKb?: number;
|
|
49
|
+
maxWidth?: number;
|
|
50
|
+
maxHeight?: number;
|
|
51
|
+
}
|
|
52
|
+
interface ImgoptConfig {
|
|
53
|
+
$schema?: string;
|
|
54
|
+
version: 1;
|
|
55
|
+
cli: CliConfig;
|
|
56
|
+
targets: TargetConfig[];
|
|
57
|
+
backup: BackupConfig;
|
|
58
|
+
manifest: string;
|
|
59
|
+
optimization: OptimizationOptions;
|
|
60
|
+
rules: RuleConfig[];
|
|
61
|
+
budgets?: BudgetConfig;
|
|
62
|
+
}
|
|
63
|
+
interface UserImgoptConfig {
|
|
64
|
+
$schema?: string;
|
|
65
|
+
version?: 1;
|
|
66
|
+
cli?: Partial<CliConfig>;
|
|
67
|
+
targets: TargetConfig[];
|
|
68
|
+
backup?: Partial<BackupConfig>;
|
|
69
|
+
manifest?: string;
|
|
70
|
+
optimization?: Partial<OptimizationOptions>;
|
|
71
|
+
rules?: RuleConfig[];
|
|
72
|
+
budgets?: BudgetConfig;
|
|
73
|
+
}
|
|
74
|
+
type ManifestEntryStatus = 'optimized' | 'unchanged';
|
|
75
|
+
interface ManifestEntry {
|
|
76
|
+
sourcePath: string;
|
|
77
|
+
outputPath: string;
|
|
78
|
+
originalSha256: string;
|
|
79
|
+
optimizedSha256: string;
|
|
80
|
+
configHash: string;
|
|
81
|
+
originalBytes: number;
|
|
82
|
+
optimizedBytes: number;
|
|
83
|
+
format: string;
|
|
84
|
+
qualityScore?: number;
|
|
85
|
+
backupPath?: string;
|
|
86
|
+
status: ManifestEntryStatus;
|
|
87
|
+
cliVersion: string;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
}
|
|
90
|
+
interface ManifestFile {
|
|
91
|
+
version: 1;
|
|
92
|
+
entries: Record<string, ManifestEntry>;
|
|
93
|
+
}
|
|
94
|
+
type FileActionStatus = 'optimized' | 'reoptimized-from-backup' | 'skipped-cached' | 'skipped-small' | 'skipped-no-savings' | 'skipped-config-changed-no-backup' | 'failed';
|
|
95
|
+
interface OptimizeFileResult {
|
|
96
|
+
sourcePath: string;
|
|
97
|
+
outputPath: string;
|
|
98
|
+
status: FileActionStatus;
|
|
99
|
+
originalBytes: number;
|
|
100
|
+
optimizedBytes: number;
|
|
101
|
+
savedBytes: number;
|
|
102
|
+
savedPercent: number;
|
|
103
|
+
format?: string;
|
|
104
|
+
qualityScore?: number;
|
|
105
|
+
backupPath?: string;
|
|
106
|
+
error?: string;
|
|
107
|
+
}
|
|
108
|
+
interface OptimizeSummary {
|
|
109
|
+
totalScanned: number;
|
|
110
|
+
optimized: number;
|
|
111
|
+
reoptimizedFromBackup: number;
|
|
112
|
+
skippedCached: number;
|
|
113
|
+
skippedSmall: number;
|
|
114
|
+
skippedNoSavings: number;
|
|
115
|
+
skippedConfigChangedNoBackup: number;
|
|
116
|
+
failed: number;
|
|
117
|
+
originalBytes: number;
|
|
118
|
+
optimizedBytes: number;
|
|
119
|
+
savedBytes: number;
|
|
120
|
+
savedPercent: number;
|
|
121
|
+
elapsedMs: number;
|
|
122
|
+
dryRun: boolean;
|
|
123
|
+
cliVersion: string;
|
|
124
|
+
}
|
|
125
|
+
interface OptimizeRunReport {
|
|
126
|
+
summary: OptimizeSummary;
|
|
127
|
+
items: OptimizeFileResult[];
|
|
128
|
+
budgetWarnings: BudgetViolation[];
|
|
129
|
+
}
|
|
130
|
+
interface BudgetViolation {
|
|
131
|
+
path: string;
|
|
132
|
+
rule: 'maxFileSizeKb' | 'maxWidth' | 'maxHeight';
|
|
133
|
+
actual: number;
|
|
134
|
+
limit: number;
|
|
135
|
+
}
|
|
136
|
+
interface CheckPendingItem {
|
|
137
|
+
path: string;
|
|
138
|
+
reason: 'new-or-modified' | 'config-changed-with-backup';
|
|
139
|
+
bytes: number;
|
|
140
|
+
}
|
|
141
|
+
interface CheckResult {
|
|
142
|
+
ok: boolean;
|
|
143
|
+
totalScanned: number;
|
|
144
|
+
upToDate: number;
|
|
145
|
+
pending: CheckPendingItem[];
|
|
146
|
+
budgetViolations: BudgetViolation[];
|
|
147
|
+
}
|
|
148
|
+
interface RestoreItemResult {
|
|
149
|
+
sourcePath: string;
|
|
150
|
+
backupPath: string;
|
|
151
|
+
removedOutputPath?: string;
|
|
152
|
+
restoredBytes: number;
|
|
153
|
+
status: 'restored' | 'missing-backup' | 'skipped';
|
|
154
|
+
}
|
|
155
|
+
interface RestoreResult {
|
|
156
|
+
dryRun: boolean;
|
|
157
|
+
restoredCount: number;
|
|
158
|
+
missingCount: number;
|
|
159
|
+
items: RestoreItemResult[];
|
|
160
|
+
}
|
|
161
|
+
interface CleanResult {
|
|
162
|
+
dryRun: boolean;
|
|
163
|
+
removedBackups: string[];
|
|
164
|
+
removedManifestEntries: string[];
|
|
165
|
+
removedCacheVersions: string[];
|
|
166
|
+
reclaimedBytes: number;
|
|
167
|
+
}
|
|
168
|
+
interface DoctorCheck {
|
|
169
|
+
name: string;
|
|
170
|
+
status: 'ok' | 'warn' | 'error';
|
|
171
|
+
message: string;
|
|
172
|
+
}
|
|
173
|
+
interface DoctorReport {
|
|
174
|
+
ok: boolean;
|
|
175
|
+
checks: DoctorCheck[];
|
|
176
|
+
}
|
|
177
|
+
interface CliBinaryInfo {
|
|
178
|
+
binPath: string;
|
|
179
|
+
tag: string;
|
|
180
|
+
version: string;
|
|
181
|
+
source: 'env' | 'config' | 'cache' | 'path' | 'downloaded';
|
|
182
|
+
cacheDir: string;
|
|
183
|
+
}
|
|
184
|
+
interface CliStatusReport {
|
|
185
|
+
repo: string;
|
|
186
|
+
configuredVersion: string;
|
|
187
|
+
resolvedBinPath: string | null;
|
|
188
|
+
installedTag: string | null;
|
|
189
|
+
installedVersion: string | null;
|
|
190
|
+
source: CliBinaryInfo['source'] | 'missing';
|
|
191
|
+
latestRemoteVersion: string | null;
|
|
192
|
+
updateAvailable: boolean;
|
|
193
|
+
cacheDir: string;
|
|
194
|
+
cachedVersions: string[];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare const DEFAULT_CONFIG_FILENAME = "imgopt.config.json";
|
|
198
|
+
declare const CONFIG_FILENAMES: readonly ["imgopt.config.json", ".imgoptrc.json"];
|
|
199
|
+
declare const DEFAULT_CLI_REPO = "xzsean666/Image-Optimizer-Cli";
|
|
200
|
+
declare const DEFAULT_CLI_VERSION = "latest";
|
|
201
|
+
declare const DEFAULT_BACKUP_DIR = ".imgopt/originals";
|
|
202
|
+
declare const DEFAULT_MANIFEST_PATH = ".imgopt/manifest.json";
|
|
203
|
+
declare const DEFAULT_INCLUDE_GLOBS: string[];
|
|
204
|
+
declare const DEFAULT_EXCLUDE_GLOBS: string[];
|
|
205
|
+
declare const SUPPORTED_IMAGE_EXTENSIONS: Set<string>;
|
|
206
|
+
declare const IGNORED_DIR_NAMES: Set<string>;
|
|
207
|
+
declare const DEFAULT_CLI_CONFIG: CliConfig;
|
|
208
|
+
declare const DEFAULT_BACKUP_CONFIG: BackupConfig;
|
|
209
|
+
declare const DEFAULT_OPTIMIZATION_OPTIONS: OptimizationOptions;
|
|
210
|
+
declare const DEFAULT_SCHEMA_REF = "https://raw.githubusercontent.com/xzsean666/image-optimizer-node/main/schemas/imgopt.config.schema.json";
|
|
211
|
+
declare function createDefaultConfig(targets: ImgoptConfig['targets']): ImgoptConfig;
|
|
212
|
+
declare const CANDIDATE_ASSET_DIRS: ReadonlyArray<{
|
|
213
|
+
dir: string;
|
|
214
|
+
stacks: string[];
|
|
215
|
+
}>;
|
|
216
|
+
declare const LATEST_CACHE_TTL_MS: number;
|
|
217
|
+
|
|
218
|
+
interface LoadedConfigResult {
|
|
219
|
+
configPath: string;
|
|
220
|
+
projectRoot: string;
|
|
221
|
+
config: ImgoptConfig;
|
|
222
|
+
}
|
|
223
|
+
declare function findConfigPath(projectRoot: string, explicitPath?: string): Promise<string>;
|
|
224
|
+
declare function normalizeConfig(raw: UserImgoptConfig, projectRoot: string): ImgoptConfig;
|
|
225
|
+
declare function loadConfig(projectRoot?: string, explicitConfigPath?: string): Promise<LoadedConfigResult>;
|
|
226
|
+
declare function saveConfig(configPath: string, config: ImgoptConfig): Promise<void>;
|
|
227
|
+
declare function resolveEffectiveOptimization(config: ImgoptConfig, relPosixPath: string): OptimizationOptions;
|
|
228
|
+
declare function computeOptimizationConfigHash(opt: OptimizationOptions): string;
|
|
229
|
+
|
|
230
|
+
interface DetectedDirectory {
|
|
231
|
+
dir: string;
|
|
232
|
+
imageCount: number;
|
|
233
|
+
source: 'standard' | 'monorepo' | 'custom';
|
|
234
|
+
}
|
|
235
|
+
interface ProjectDetectionResult {
|
|
236
|
+
projectRoot: string;
|
|
237
|
+
stacks: string[];
|
|
238
|
+
isMonorepo: boolean;
|
|
239
|
+
detectedDirs: DetectedDirectory[];
|
|
240
|
+
suggestedTargets: TargetConfig[];
|
|
241
|
+
}
|
|
242
|
+
declare function detectProject(projectRoot?: string, customDirs?: string[]): Promise<ProjectDetectionResult>;
|
|
243
|
+
|
|
244
|
+
interface EnsureCliOptions {
|
|
245
|
+
cliConfig?: Partial<CliConfig>;
|
|
246
|
+
forceUpdate?: boolean;
|
|
247
|
+
versionOverride?: string;
|
|
248
|
+
}
|
|
249
|
+
declare function resolveCacheDir(cliConfig?: Partial<CliConfig>): string;
|
|
250
|
+
declare function probeBinaryVersion(binPath: string): Promise<string>;
|
|
251
|
+
declare function fetchLatestReleaseTag(repo: string): Promise<string>;
|
|
252
|
+
declare function listCachedVersions(cacheDir: string): Promise<string[]>;
|
|
253
|
+
declare function downloadCliRelease(options: {
|
|
254
|
+
repo?: string;
|
|
255
|
+
version?: string;
|
|
256
|
+
cacheDir?: string;
|
|
257
|
+
downloadBaseUrl?: string;
|
|
258
|
+
force?: boolean;
|
|
259
|
+
}): Promise<CliBinaryInfo>;
|
|
260
|
+
declare function ensureCli(options?: EnsureCliOptions): Promise<CliBinaryInfo>;
|
|
261
|
+
declare function getCliStatus(cliConfig?: Partial<CliConfig>, checkRemote?: boolean): Promise<CliStatusReport>;
|
|
262
|
+
|
|
263
|
+
interface ReleaseAssetSpec {
|
|
264
|
+
platformKey: string;
|
|
265
|
+
assetName: string;
|
|
266
|
+
checksumAssetName: string;
|
|
267
|
+
archiveType: 'tar.gz' | 'zip';
|
|
268
|
+
binaryName: string;
|
|
269
|
+
}
|
|
270
|
+
declare function resolveReleaseAsset(platform?: NodeJS.Platform, arch?: string): ReleaseAssetSpec;
|
|
271
|
+
|
|
272
|
+
interface ScannedImageFile {
|
|
273
|
+
/** Path relative to project root (POSIX style, e.g. "src/assets/hero.png") */
|
|
274
|
+
relPath: string;
|
|
275
|
+
/** Absolute path on disk */
|
|
276
|
+
absPath: string;
|
|
277
|
+
/** File size in bytes */
|
|
278
|
+
byteSize: number;
|
|
279
|
+
/** Matched target dir relative to project root */
|
|
280
|
+
targetDir: string;
|
|
281
|
+
}
|
|
282
|
+
declare function scanProjectImages(projectRoot: string, config: ImgoptConfig, onlyRelPaths?: Set<string>): Promise<ScannedImageFile[]>;
|
|
283
|
+
|
|
284
|
+
declare function createEmptyManifest(): ManifestFile;
|
|
285
|
+
declare function loadManifest(projectRoot: string, manifestRelPath: string): Promise<ManifestFile>;
|
|
286
|
+
declare function saveManifest(projectRoot: string, manifestRelPath: string, manifest: ManifestFile): Promise<string>;
|
|
287
|
+
interface ManifestIndex {
|
|
288
|
+
bySourcePath: Map<string, ManifestEntry>;
|
|
289
|
+
byOutputPath: Map<string, ManifestEntry>;
|
|
290
|
+
}
|
|
291
|
+
declare function buildManifestIndex(manifest: ManifestFile): ManifestIndex;
|
|
292
|
+
declare function findEntryForDiskPath(index: ManifestIndex, relPath: string): ManifestEntry | undefined;
|
|
293
|
+
|
|
294
|
+
declare function getBackupRelPath(backupDir: string, sourceRelPath: string): string;
|
|
295
|
+
declare function ensureOriginalBackup(options: {
|
|
296
|
+
projectRoot: string;
|
|
297
|
+
backupConfig: BackupConfig;
|
|
298
|
+
sourceRelPath: string;
|
|
299
|
+
sourceAbsPath: string;
|
|
300
|
+
isNewSourceVersion: boolean;
|
|
301
|
+
}): Promise<string | undefined>;
|
|
302
|
+
declare function hasValidBackup(options: {
|
|
303
|
+
projectRoot: string;
|
|
304
|
+
backupRelPath?: string;
|
|
305
|
+
expectedSha256?: string;
|
|
306
|
+
}): Promise<{
|
|
307
|
+
exists: boolean;
|
|
308
|
+
absPath?: string;
|
|
309
|
+
}>;
|
|
310
|
+
declare function listBackupFiles(projectRoot: string, backupDir: string): Promise<Array<{
|
|
311
|
+
backupRelPath: string;
|
|
312
|
+
sourceRelPath: string;
|
|
313
|
+
absPath: string;
|
|
314
|
+
}>>;
|
|
315
|
+
|
|
316
|
+
declare function sha256File(filePath: string): Promise<string>;
|
|
317
|
+
declare function sha256Buffer(data: Uint8Array | string): string;
|
|
318
|
+
|
|
319
|
+
interface InitOptions {
|
|
320
|
+
projectRoot?: string;
|
|
321
|
+
configPath?: string;
|
|
322
|
+
dirs?: string[];
|
|
323
|
+
template?: 'general' | 'web';
|
|
324
|
+
backup?: boolean;
|
|
325
|
+
backupDir?: string;
|
|
326
|
+
cliVersion?: string;
|
|
327
|
+
preset?: PresetName;
|
|
328
|
+
quality?: number;
|
|
329
|
+
effort?: number;
|
|
330
|
+
format?: FormatPolicy;
|
|
331
|
+
ci?: boolean;
|
|
332
|
+
gitignore?: boolean;
|
|
333
|
+
force?: boolean;
|
|
334
|
+
}
|
|
335
|
+
interface InitResult {
|
|
336
|
+
configPath: string;
|
|
337
|
+
config: ImgoptConfig;
|
|
338
|
+
stacks: string[];
|
|
339
|
+
detectedDirs: Array<{
|
|
340
|
+
dir: string;
|
|
341
|
+
imageCount: number;
|
|
342
|
+
source: string;
|
|
343
|
+
}>;
|
|
344
|
+
ciWorkflowPath?: string;
|
|
345
|
+
gitignoreUpdated: boolean;
|
|
346
|
+
}
|
|
347
|
+
declare function initProject(options?: InitOptions): Promise<InitResult>;
|
|
348
|
+
|
|
349
|
+
interface OptimizeCommandOptions {
|
|
350
|
+
projectRoot?: string;
|
|
351
|
+
configPath?: string;
|
|
352
|
+
dryRun?: boolean;
|
|
353
|
+
staged?: boolean;
|
|
354
|
+
force?: boolean;
|
|
355
|
+
reprocessOnConfigChange?: boolean;
|
|
356
|
+
updateCli?: boolean;
|
|
357
|
+
cliVersion?: string;
|
|
358
|
+
concurrency?: number;
|
|
359
|
+
}
|
|
360
|
+
declare function optimizeProject(options?: OptimizeCommandOptions): Promise<OptimizeRunReport>;
|
|
361
|
+
declare function evaluateBudgets(config: ImgoptConfig, binPath: string | null, projectRoot: string, diskAbsPaths: string[], results?: OptimizeFileResult[]): Promise<BudgetViolation[]>;
|
|
362
|
+
|
|
363
|
+
interface CheckCommandOptions {
|
|
364
|
+
projectRoot?: string;
|
|
365
|
+
configPath?: string;
|
|
366
|
+
checkDimensions?: boolean;
|
|
367
|
+
}
|
|
368
|
+
declare function checkProject(options?: CheckCommandOptions): Promise<CheckResult>;
|
|
369
|
+
|
|
370
|
+
interface RestoreCommandOptions {
|
|
371
|
+
projectRoot?: string;
|
|
372
|
+
configPath?: string;
|
|
373
|
+
patterns?: string[];
|
|
374
|
+
all?: boolean;
|
|
375
|
+
dryRun?: boolean;
|
|
376
|
+
deleteBackup?: boolean;
|
|
377
|
+
}
|
|
378
|
+
declare function restoreOriginals(options?: RestoreCommandOptions): Promise<RestoreResult>;
|
|
379
|
+
|
|
380
|
+
interface CleanCommandOptions {
|
|
381
|
+
projectRoot?: string;
|
|
382
|
+
configPath?: string;
|
|
383
|
+
dryRun?: boolean;
|
|
384
|
+
cache?: boolean;
|
|
385
|
+
}
|
|
386
|
+
declare function cleanProject(options?: CleanCommandOptions): Promise<CleanResult>;
|
|
387
|
+
|
|
388
|
+
interface DoctorCommandOptions {
|
|
389
|
+
projectRoot?: string;
|
|
390
|
+
configPath?: string;
|
|
391
|
+
checkRemote?: boolean;
|
|
392
|
+
}
|
|
393
|
+
declare function doctorProject(options?: DoctorCommandOptions): Promise<DoctorReport>;
|
|
394
|
+
|
|
395
|
+
interface ImgoptInspectEntry {
|
|
396
|
+
path: string;
|
|
397
|
+
format?: string;
|
|
398
|
+
dimensions?: {
|
|
399
|
+
width: number;
|
|
400
|
+
height: number;
|
|
401
|
+
pixel_count: number;
|
|
402
|
+
};
|
|
403
|
+
byte_size?: number;
|
|
404
|
+
error?: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
interface InspectCommandOptions {
|
|
408
|
+
projectRoot?: string;
|
|
409
|
+
configPath?: string;
|
|
410
|
+
targetPath?: string;
|
|
411
|
+
}
|
|
412
|
+
declare function inspectProject(options?: InspectCommandOptions): Promise<ImgoptInspectEntry[]>;
|
|
413
|
+
|
|
414
|
+
export { type BackupConfig, type BackupStrategy, type BudgetConfig, type BudgetViolation, CANDIDATE_ASSET_DIRS, CONFIG_FILENAMES, type CheckCommandOptions, type CheckPendingItem, type CheckResult, type CleanCommandOptions, type CleanResult, type CliBinaryInfo, type CliConfig, type CliStatusReport, DEFAULT_BACKUP_CONFIG, DEFAULT_BACKUP_DIR, DEFAULT_CLI_CONFIG, DEFAULT_CLI_REPO, DEFAULT_CLI_VERSION, DEFAULT_CONFIG_FILENAME, DEFAULT_EXCLUDE_GLOBS, DEFAULT_INCLUDE_GLOBS, DEFAULT_MANIFEST_PATH, DEFAULT_OPTIMIZATION_OPTIONS, DEFAULT_SCHEMA_REF, type DetectedDirectory, type DoctorCheck, type DoctorCommandOptions, type DoctorReport, type EnsureCliOptions, type FileActionStatus, type FormatPolicy, IGNORED_DIR_NAMES, type ImgoptConfig, type InitOptions, type InitResult, type InspectCommandOptions, LATEST_CACHE_TTL_MS, type LoadedConfigResult, type ManifestEntry, type ManifestEntryStatus, type ManifestFile, type ManifestIndex, type OptimizationOptions, type OptimizeCommandOptions, type OptimizeFileResult, type OptimizeRunReport, type OptimizeSummary, type PresetName, type ProjectDetectionResult, type ReleaseAssetSpec, type ResizeConfig, type ResizeMode, type RestoreCommandOptions, type RestoreItemResult, type RestoreResult, type RuleConfig, SUPPORTED_IMAGE_EXTENSIONS, type ScannedImageFile, type TargetConfig, type UserImgoptConfig, buildManifestIndex, checkProject, cleanProject, computeOptimizationConfigHash, createDefaultConfig, createEmptyManifest, detectProject, doctorProject, downloadCliRelease, ensureCli, ensureOriginalBackup, evaluateBudgets, fetchLatestReleaseTag, findConfigPath, findEntryForDiskPath, getBackupRelPath, getCliStatus, hasValidBackup, initProject, inspectProject, listBackupFiles, listCachedVersions, loadConfig, loadManifest, normalizeConfig, optimizeProject, probeBinaryVersion, resolveCacheDir, resolveEffectiveOptimization, resolveReleaseAsset, restoreOriginals, saveConfig, saveManifest, scanProjectImages, sha256Buffer, sha256File };
|