@openspecui/core 3.11.0 → 3.11.1

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.
Files changed (76) hide show
  1. package/dist/{document-translation-BZ5QKjN0.d.mts → document-translation-AlZtjOt5.d.mts} +10 -7
  2. package/dist/{document-translation-BrE402YR.mjs → document-translation-Dnl1lz2K.mjs} +1 -1
  3. package/dist/document-translation.d.mts +2 -2
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/hosted-app.d.mts +1 -1
  6. package/dist/hosted-app.mjs +1 -1
  7. package/dist/index.d.mts +19 -18
  8. package/dist/index.mjs +113 -55
  9. package/dist/{local-download-profiles-BppI_PAq.mjs → local-download-profiles-CNDtMG2s.mjs} +7 -3
  10. package/dist/{local-download-profiles-BdHk_i54.d.mts → local-download-profiles-DISrU0mw.d.mts} +5 -1
  11. package/dist/local-download-profiles.d.mts +2 -2
  12. package/dist/local-download-profiles.mjs +1 -1
  13. package/dist/markdown-facts.d.mts +1 -1
  14. package/dist/markdown-facts.mjs +1 -1
  15. package/dist/{markdown-reading-DvLPaaY1.d.mts → markdown-reading-BaHZTf5f.d.mts} +1 -1
  16. package/dist/{markdown-reading-DYBp7qoI.mjs → markdown-reading-DSlcirYV.mjs} +1 -1
  17. package/dist/markdown-reading.d.mts +2 -2
  18. package/dist/markdown-reading.mjs +2 -2
  19. package/dist/{notifications-9vbSJQ8N.mjs → notifications-Xs9VPFWD.mjs} +2 -2
  20. package/dist/{notifications-B4GiAnmn.d.mts → notifications-gGjGaYsF.d.mts} +3 -3
  21. package/dist/notifications.d.mts +2 -2
  22. package/dist/notifications.mjs +3 -3
  23. package/dist/{openspec-annotations-DVbFBz5J.d.mts → openspec-annotations-DYyP_HQh.d.mts} +2 -2
  24. package/dist/{openspec-annotations-BxBoWlyv.mjs → openspec-annotations-dNJentSE.mjs} +2 -2
  25. package/dist/openspec-annotations.d.mts +3 -3
  26. package/dist/openspec-annotations.mjs +3 -3
  27. package/dist/{openspec-projection-Df5C6CFv.d.mts → openspec-projection-BojcJ9zl.d.mts} +3 -3
  28. package/dist/{openspec-projection-Cd6oydiK.mjs → openspec-projection-yqwKIKnp.mjs} +2 -2
  29. package/dist/openspec-projection.d.mts +5 -5
  30. package/dist/openspec-projection.mjs +4 -4
  31. package/dist/opsx-display-path.d.mts +1 -1
  32. package/dist/opsx-display-path.mjs +1 -1
  33. package/dist/{opsx-entity-DHidvJcx.d.mts → opsx-entity-BdyGTVs_.d.mts} +7 -7
  34. package/dist/opsx-entity.d.mts +2 -2
  35. package/dist/opsx-entity.mjs +1 -1
  36. package/dist/{opsx-schema-detail-VyCbvX1I.d.mts → opsx-schema-detail-Cf8YIflR.d.mts} +1 -1
  37. package/dist/opsx-schema-detail.d.mts +3 -3
  38. package/dist/opsx-schema-detail.mjs +1 -1
  39. package/dist/{schemas-3VC51gAF.d.mts → schemas-DV6yABO9.d.mts} +2 -2
  40. package/dist/{sounds-CQJ1eD1u.d.mts → sounds-C906qHTJ.d.mts} +4 -4
  41. package/dist/sounds.d.mts +1 -1
  42. package/dist/sounds.mjs +1 -1
  43. package/dist/{terminal-audio-DVz0HA2H.mjs → terminal-audio-CUs0sqEO.mjs} +1 -1
  44. package/dist/{terminal-audio-BrmM5FX_.d.mts → terminal-audio-D6dE8O1_.d.mts} +1 -1
  45. package/dist/terminal-audio.d.mts +2 -2
  46. package/dist/terminal-audio.mjs +2 -2
  47. package/dist/terminal-control.d.mts +2 -2
  48. package/dist/terminal-control.mjs +1 -1
  49. package/dist/terminal-invocation.d.mts +1 -1
  50. package/dist/terminal-invocation.mjs +1 -1
  51. package/dist/terminal-theme.d.mts +1 -1
  52. package/dist/terminal-theme.mjs +1 -1
  53. package/dist/translation-language-pair-D6f5u70K.mjs +51 -0
  54. package/dist/translation-language-pair-DaSvW83F.d.mts +18 -0
  55. package/dist/translation-language-pair.d.mts +2 -0
  56. package/dist/translation-language-pair.mjs +3 -0
  57. package/dist/{translator-C3LT7PqW.mjs → translator-B0T5VL9k.mjs} +94 -2
  58. package/dist/translator-tTXEGRdz.d.mts +1884 -0
  59. package/dist/translator.d.mts +2 -2
  60. package/dist/translator.mjs +2 -2
  61. package/package.json +9 -3
  62. package/dist/translator-BSPMDjZy.d.mts +0 -780
  63. /package/dist/{hosted-app-CxpQvD1s.mjs → hosted-app-CNZhVLM_.mjs} +0 -0
  64. /package/dist/{hosted-app-FuxG4-qA.d.mts → hosted-app-CegGJlNp.d.mts} +0 -0
  65. /package/dist/{markdown-facts-B5RvYPKF.mjs → markdown-facts-DbE1F2LD.mjs} +0 -0
  66. /package/dist/{markdown-facts-DUsbNcjh.d.mts → markdown-facts-DempqdIX.d.mts} +0 -0
  67. /package/dist/{opsx-display-path-Bf89ZyM5.mjs → opsx-display-path-Cw-5MTRg.mjs} +0 -0
  68. /package/dist/{opsx-display-path-CbO6K0Qq.d.mts → opsx-display-path-Ky9qnntM.d.mts} +0 -0
  69. /package/dist/{opsx-entity-BR_6djiM.mjs → opsx-entity-C_51ZEuP.mjs} +0 -0
  70. /package/dist/{opsx-schema-detail-5Wv1oWLT.mjs → opsx-schema-detail-Bu415_NB.mjs} +0 -0
  71. /package/dist/{sounds-CB_gpY-y.mjs → sounds-50cYk5b0.mjs} +0 -0
  72. /package/dist/{terminal-control-CNcEd9Rl.mjs → terminal-control-CYZhk7FM.mjs} +0 -0
  73. /package/dist/{terminal-invocation-Z0xbyZ1V.d.mts → terminal-invocation-Cz0vfgkw.d.mts} +0 -0
  74. /package/dist/{terminal-invocation-wUmtJMPl.mjs → terminal-invocation-IopdwXKL.mjs} +0 -0
  75. /package/dist/{terminal-theme-CHkfTDk4.mjs → terminal-theme-BquTqZIO.mjs} +0 -0
  76. /package/dist/{terminal-theme-x_vAHvok.d.mts → terminal-theme-CH-VSrAq.d.mts} +0 -0
@@ -0,0 +1,1884 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/translator.d.ts
4
+ declare const TRANSLATOR_CONTRACT_VERSION = 2;
5
+ declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "openai"];
6
+ declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "openai"]>;
7
+ type TranslationEngineId = z.infer<typeof TranslationEngineIdSchema>;
8
+ declare const DEFAULT_TRANSLATION_ENGINE_ID: TranslationEngineId;
9
+ declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "openai"];
10
+ declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "openai"]>;
11
+ type ServiceTranslationEngineId = z.infer<typeof ServiceTranslationEngineIdSchema>;
12
+ interface TranslatorOptions {
13
+ instructions?: string;
14
+ context?: string;
15
+ signal?: AbortSignal;
16
+ }
17
+ interface BatchTranslationResult {
18
+ index: number;
19
+ output: string;
20
+ }
21
+ interface Translator {
22
+ batchTranslate(inputs: string[], options?: TranslatorOptions): AsyncGenerator<BatchTranslationResult>;
23
+ destroy?(): void;
24
+ }
25
+ interface TranslatorCreateMonitor {
26
+ setStatus(input: {
27
+ message: string;
28
+ progress?: number;
29
+ }): void;
30
+ }
31
+ interface TranslatorPrepareMonitor {
32
+ setStatus(input: {
33
+ message: string;
34
+ progress?: number;
35
+ }): void;
36
+ }
37
+ interface TranslationModelSearchInput {
38
+ engineId: ServiceTranslationEngineId;
39
+ requestId?: string;
40
+ query?: string;
41
+ sourceLanguage?: string;
42
+ targetLanguage?: string;
43
+ limit?: number;
44
+ cursor?: string;
45
+ }
46
+ type TranslationModelSearchPhase = 'candidates' | 'enriched' | 'complete' | 'error';
47
+ interface TranslationDownloadFilePlan {
48
+ path: string;
49
+ sizeBytes?: number;
50
+ required: boolean;
51
+ etag?: string;
52
+ revision?: string;
53
+ sourceUrl?: string;
54
+ raw?: unknown;
55
+ }
56
+ interface TranslationDownloadGroupPlan {
57
+ id: string;
58
+ label: string;
59
+ description?: string;
60
+ profile?: string;
61
+ dtype?: string;
62
+ estimatedTotalBytes?: number;
63
+ baseGroupId?: string;
64
+ commitHash?: string;
65
+ shortCommitHash?: string;
66
+ rootDir?: string;
67
+ status?: LocalModelDownloadStatus;
68
+ progress?: number;
69
+ bytesDownloaded?: number;
70
+ totalBytes?: number;
71
+ resumable?: boolean;
72
+ error?: string;
73
+ selectable: boolean;
74
+ selected: boolean;
75
+ files: TranslationDownloadFilePlan[];
76
+ }
77
+ interface TranslationModelDownloadPlan {
78
+ modelId: string;
79
+ estimatedTotalBytes?: number;
80
+ files: TranslationDownloadFilePlan[];
81
+ selectedGroupId?: string;
82
+ groups?: TranslationDownloadGroupPlan[];
83
+ }
84
+ interface TranslationModelCandidate {
85
+ id: string;
86
+ label: string;
87
+ summary: string;
88
+ downloads: number;
89
+ likes: number;
90
+ trendingScore?: number;
91
+ lastModified?: string;
92
+ pipelineTag?: string;
93
+ tags: string[];
94
+ compatibility: {
95
+ transformersJs: boolean;
96
+ onnx: boolean;
97
+ localRuntimeVerified: boolean;
98
+ };
99
+ size: {
100
+ estimatedTotalBytes?: number;
101
+ primaryBytes?: number;
102
+ };
103
+ downloadGroups?: TranslationDownloadGroupPlan[];
104
+ languageMatch: {
105
+ sourceMatched: boolean;
106
+ targetMatched: boolean;
107
+ directionalScore: number;
108
+ };
109
+ }
110
+ interface TranslationModelSearchResult {
111
+ items: TranslationModelCandidate[];
112
+ nextCursor?: string;
113
+ }
114
+ interface TranslationModelSearchEvent {
115
+ requestId: string;
116
+ phase: TranslationModelSearchPhase;
117
+ items?: TranslationModelCandidate[];
118
+ nextCursor?: string;
119
+ message?: string;
120
+ }
121
+ declare const LocalModelDownloadStatusSchema: z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>;
122
+ type LocalModelDownloadStatus = z.infer<typeof LocalModelDownloadStatusSchema>;
123
+ declare const TranslationDownloadFilePlanSchema: z.ZodObject<{
124
+ path: z.ZodString;
125
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
126
+ required: z.ZodBoolean;
127
+ etag: z.ZodOptional<z.ZodString>;
128
+ revision: z.ZodOptional<z.ZodString>;
129
+ sourceUrl: z.ZodOptional<z.ZodString>;
130
+ raw: z.ZodOptional<z.ZodUnknown>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ path: string;
133
+ required: boolean;
134
+ sizeBytes?: number | undefined;
135
+ etag?: string | undefined;
136
+ revision?: string | undefined;
137
+ sourceUrl?: string | undefined;
138
+ raw?: unknown;
139
+ }, {
140
+ path: string;
141
+ required: boolean;
142
+ sizeBytes?: number | undefined;
143
+ etag?: string | undefined;
144
+ revision?: string | undefined;
145
+ sourceUrl?: string | undefined;
146
+ raw?: unknown;
147
+ }>;
148
+ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
149
+ id: z.ZodString;
150
+ label: z.ZodString;
151
+ description: z.ZodOptional<z.ZodString>;
152
+ profile: z.ZodOptional<z.ZodString>;
153
+ dtype: z.ZodOptional<z.ZodString>;
154
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
155
+ baseGroupId: z.ZodOptional<z.ZodString>;
156
+ commitHash: z.ZodOptional<z.ZodString>;
157
+ shortCommitHash: z.ZodOptional<z.ZodString>;
158
+ rootDir: z.ZodOptional<z.ZodString>;
159
+ status: z.ZodOptional<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
160
+ progress: z.ZodOptional<z.ZodNumber>;
161
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
162
+ totalBytes: z.ZodOptional<z.ZodNumber>;
163
+ resumable: z.ZodOptional<z.ZodBoolean>;
164
+ error: z.ZodOptional<z.ZodString>;
165
+ selectable: z.ZodBoolean;
166
+ selected: z.ZodBoolean;
167
+ files: z.ZodArray<z.ZodObject<{
168
+ path: z.ZodString;
169
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
170
+ required: z.ZodBoolean;
171
+ etag: z.ZodOptional<z.ZodString>;
172
+ revision: z.ZodOptional<z.ZodString>;
173
+ sourceUrl: z.ZodOptional<z.ZodString>;
174
+ raw: z.ZodOptional<z.ZodUnknown>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ path: string;
177
+ required: boolean;
178
+ sizeBytes?: number | undefined;
179
+ etag?: string | undefined;
180
+ revision?: string | undefined;
181
+ sourceUrl?: string | undefined;
182
+ raw?: unknown;
183
+ }, {
184
+ path: string;
185
+ required: boolean;
186
+ sizeBytes?: number | undefined;
187
+ etag?: string | undefined;
188
+ revision?: string | undefined;
189
+ sourceUrl?: string | undefined;
190
+ raw?: unknown;
191
+ }>, "many">;
192
+ }, "strip", z.ZodTypeAny, {
193
+ id: string;
194
+ label: string;
195
+ selectable: boolean;
196
+ selected: boolean;
197
+ files: {
198
+ path: string;
199
+ required: boolean;
200
+ sizeBytes?: number | undefined;
201
+ etag?: string | undefined;
202
+ revision?: string | undefined;
203
+ sourceUrl?: string | undefined;
204
+ raw?: unknown;
205
+ }[];
206
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
207
+ error?: string | undefined;
208
+ description?: string | undefined;
209
+ profile?: string | undefined;
210
+ dtype?: string | undefined;
211
+ estimatedTotalBytes?: number | undefined;
212
+ baseGroupId?: string | undefined;
213
+ commitHash?: string | undefined;
214
+ shortCommitHash?: string | undefined;
215
+ rootDir?: string | undefined;
216
+ progress?: number | undefined;
217
+ bytesDownloaded?: number | undefined;
218
+ totalBytes?: number | undefined;
219
+ resumable?: boolean | undefined;
220
+ }, {
221
+ id: string;
222
+ label: string;
223
+ selectable: boolean;
224
+ selected: boolean;
225
+ files: {
226
+ path: string;
227
+ required: boolean;
228
+ sizeBytes?: number | undefined;
229
+ etag?: string | undefined;
230
+ revision?: string | undefined;
231
+ sourceUrl?: string | undefined;
232
+ raw?: unknown;
233
+ }[];
234
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
235
+ error?: string | undefined;
236
+ description?: string | undefined;
237
+ profile?: string | undefined;
238
+ dtype?: string | undefined;
239
+ estimatedTotalBytes?: number | undefined;
240
+ baseGroupId?: string | undefined;
241
+ commitHash?: string | undefined;
242
+ shortCommitHash?: string | undefined;
243
+ rootDir?: string | undefined;
244
+ progress?: number | undefined;
245
+ bytesDownloaded?: number | undefined;
246
+ totalBytes?: number | undefined;
247
+ resumable?: boolean | undefined;
248
+ }>;
249
+ declare const LocalModelProfileStatusSchema: z.ZodEnum<["idle", "loading", "ready", "error"]>;
250
+ type LocalModelProfileStatus = z.infer<typeof LocalModelProfileStatusSchema>;
251
+ declare const LocalModelProfileManifestFileSchema: z.ZodObject<{
252
+ path: z.ZodString;
253
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
254
+ required: z.ZodBoolean;
255
+ etag: z.ZodOptional<z.ZodString>;
256
+ revision: z.ZodOptional<z.ZodString>;
257
+ sourceUrl: z.ZodOptional<z.ZodString>;
258
+ raw: z.ZodOptional<z.ZodUnknown>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ path: string;
261
+ required: boolean;
262
+ sizeBytes?: number | undefined;
263
+ etag?: string | undefined;
264
+ revision?: string | undefined;
265
+ sourceUrl?: string | undefined;
266
+ raw?: unknown;
267
+ }, {
268
+ path: string;
269
+ required: boolean;
270
+ sizeBytes?: number | undefined;
271
+ etag?: string | undefined;
272
+ revision?: string | undefined;
273
+ sourceUrl?: string | undefined;
274
+ raw?: unknown;
275
+ }>;
276
+ type LocalModelProfileManifestFile = z.infer<typeof LocalModelProfileManifestFileSchema>;
277
+ declare const LocalModelProfileManifestGroupSchema: z.ZodObject<{
278
+ id: z.ZodString;
279
+ baseGroupId: z.ZodString;
280
+ label: z.ZodString;
281
+ displayLabel: z.ZodString;
282
+ description: z.ZodOptional<z.ZodString>;
283
+ profile: z.ZodOptional<z.ZodString>;
284
+ dtype: z.ZodOptional<z.ZodString>;
285
+ commitHash: z.ZodString;
286
+ shortCommitHash: z.ZodString;
287
+ rootDir: z.ZodString;
288
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
289
+ selectable: z.ZodBoolean;
290
+ files: z.ZodArray<z.ZodObject<{
291
+ path: z.ZodString;
292
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
293
+ required: z.ZodBoolean;
294
+ etag: z.ZodOptional<z.ZodString>;
295
+ revision: z.ZodOptional<z.ZodString>;
296
+ sourceUrl: z.ZodOptional<z.ZodString>;
297
+ raw: z.ZodOptional<z.ZodUnknown>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ path: string;
300
+ required: boolean;
301
+ sizeBytes?: number | undefined;
302
+ etag?: string | undefined;
303
+ revision?: string | undefined;
304
+ sourceUrl?: string | undefined;
305
+ raw?: unknown;
306
+ }, {
307
+ path: string;
308
+ required: boolean;
309
+ sizeBytes?: number | undefined;
310
+ etag?: string | undefined;
311
+ revision?: string | undefined;
312
+ sourceUrl?: string | undefined;
313
+ raw?: unknown;
314
+ }>, "many">;
315
+ }, "strip", z.ZodTypeAny, {
316
+ id: string;
317
+ label: string;
318
+ baseGroupId: string;
319
+ commitHash: string;
320
+ shortCommitHash: string;
321
+ rootDir: string;
322
+ selectable: boolean;
323
+ files: {
324
+ path: string;
325
+ required: boolean;
326
+ sizeBytes?: number | undefined;
327
+ etag?: string | undefined;
328
+ revision?: string | undefined;
329
+ sourceUrl?: string | undefined;
330
+ raw?: unknown;
331
+ }[];
332
+ displayLabel: string;
333
+ description?: string | undefined;
334
+ profile?: string | undefined;
335
+ dtype?: string | undefined;
336
+ estimatedTotalBytes?: number | undefined;
337
+ }, {
338
+ id: string;
339
+ label: string;
340
+ baseGroupId: string;
341
+ commitHash: string;
342
+ shortCommitHash: string;
343
+ rootDir: string;
344
+ selectable: boolean;
345
+ files: {
346
+ path: string;
347
+ required: boolean;
348
+ sizeBytes?: number | undefined;
349
+ etag?: string | undefined;
350
+ revision?: string | undefined;
351
+ sourceUrl?: string | undefined;
352
+ raw?: unknown;
353
+ }[];
354
+ displayLabel: string;
355
+ description?: string | undefined;
356
+ profile?: string | undefined;
357
+ dtype?: string | undefined;
358
+ estimatedTotalBytes?: number | undefined;
359
+ }>;
360
+ type LocalModelProfileManifestGroup = z.infer<typeof LocalModelProfileManifestGroupSchema>;
361
+ declare const LocalModelProfileManifestSchema: z.ZodObject<{
362
+ modelId: z.ZodString;
363
+ source: z.ZodLiteral<"huggingface">;
364
+ endpoint: z.ZodDefault<z.ZodString>;
365
+ revision: z.ZodString;
366
+ commitHash: z.ZodString;
367
+ shortCommitHash: z.ZodString;
368
+ fetchedAt: z.ZodNumber;
369
+ updatedAt: z.ZodNumber;
370
+ raw: z.ZodOptional<z.ZodUnknown>;
371
+ groups: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
372
+ id: z.ZodString;
373
+ baseGroupId: z.ZodString;
374
+ label: z.ZodString;
375
+ displayLabel: z.ZodString;
376
+ description: z.ZodOptional<z.ZodString>;
377
+ profile: z.ZodOptional<z.ZodString>;
378
+ dtype: z.ZodOptional<z.ZodString>;
379
+ commitHash: z.ZodString;
380
+ shortCommitHash: z.ZodString;
381
+ rootDir: z.ZodString;
382
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
383
+ selectable: z.ZodBoolean;
384
+ files: z.ZodArray<z.ZodObject<{
385
+ path: z.ZodString;
386
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
387
+ required: z.ZodBoolean;
388
+ etag: z.ZodOptional<z.ZodString>;
389
+ revision: z.ZodOptional<z.ZodString>;
390
+ sourceUrl: z.ZodOptional<z.ZodString>;
391
+ raw: z.ZodOptional<z.ZodUnknown>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ path: string;
394
+ required: boolean;
395
+ sizeBytes?: number | undefined;
396
+ etag?: string | undefined;
397
+ revision?: string | undefined;
398
+ sourceUrl?: string | undefined;
399
+ raw?: unknown;
400
+ }, {
401
+ path: string;
402
+ required: boolean;
403
+ sizeBytes?: number | undefined;
404
+ etag?: string | undefined;
405
+ revision?: string | undefined;
406
+ sourceUrl?: string | undefined;
407
+ raw?: unknown;
408
+ }>, "many">;
409
+ }, "strip", z.ZodTypeAny, {
410
+ id: string;
411
+ label: string;
412
+ baseGroupId: string;
413
+ commitHash: string;
414
+ shortCommitHash: string;
415
+ rootDir: string;
416
+ selectable: boolean;
417
+ files: {
418
+ path: string;
419
+ required: boolean;
420
+ sizeBytes?: number | undefined;
421
+ etag?: string | undefined;
422
+ revision?: string | undefined;
423
+ sourceUrl?: string | undefined;
424
+ raw?: unknown;
425
+ }[];
426
+ displayLabel: string;
427
+ description?: string | undefined;
428
+ profile?: string | undefined;
429
+ dtype?: string | undefined;
430
+ estimatedTotalBytes?: number | undefined;
431
+ }, {
432
+ id: string;
433
+ label: string;
434
+ baseGroupId: string;
435
+ commitHash: string;
436
+ shortCommitHash: string;
437
+ rootDir: string;
438
+ selectable: boolean;
439
+ files: {
440
+ path: string;
441
+ required: boolean;
442
+ sizeBytes?: number | undefined;
443
+ etag?: string | undefined;
444
+ revision?: string | undefined;
445
+ sourceUrl?: string | undefined;
446
+ raw?: unknown;
447
+ }[];
448
+ displayLabel: string;
449
+ description?: string | undefined;
450
+ profile?: string | undefined;
451
+ dtype?: string | undefined;
452
+ estimatedTotalBytes?: number | undefined;
453
+ }>>>;
454
+ groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ updatedAt: number;
457
+ source: "huggingface";
458
+ revision: string;
459
+ commitHash: string;
460
+ shortCommitHash: string;
461
+ modelId: string;
462
+ endpoint: string;
463
+ fetchedAt: number;
464
+ groups: Record<string, {
465
+ id: string;
466
+ label: string;
467
+ baseGroupId: string;
468
+ commitHash: string;
469
+ shortCommitHash: string;
470
+ rootDir: string;
471
+ selectable: boolean;
472
+ files: {
473
+ path: string;
474
+ required: boolean;
475
+ sizeBytes?: number | undefined;
476
+ etag?: string | undefined;
477
+ revision?: string | undefined;
478
+ sourceUrl?: string | undefined;
479
+ raw?: unknown;
480
+ }[];
481
+ displayLabel: string;
482
+ description?: string | undefined;
483
+ profile?: string | undefined;
484
+ dtype?: string | undefined;
485
+ estimatedTotalBytes?: number | undefined;
486
+ }>;
487
+ groupOrder: string[];
488
+ raw?: unknown;
489
+ }, {
490
+ updatedAt: number;
491
+ source: "huggingface";
492
+ revision: string;
493
+ commitHash: string;
494
+ shortCommitHash: string;
495
+ modelId: string;
496
+ fetchedAt: number;
497
+ raw?: unknown;
498
+ endpoint?: string | undefined;
499
+ groups?: Record<string, {
500
+ id: string;
501
+ label: string;
502
+ baseGroupId: string;
503
+ commitHash: string;
504
+ shortCommitHash: string;
505
+ rootDir: string;
506
+ selectable: boolean;
507
+ files: {
508
+ path: string;
509
+ required: boolean;
510
+ sizeBytes?: number | undefined;
511
+ etag?: string | undefined;
512
+ revision?: string | undefined;
513
+ sourceUrl?: string | undefined;
514
+ raw?: unknown;
515
+ }[];
516
+ displayLabel: string;
517
+ description?: string | undefined;
518
+ profile?: string | undefined;
519
+ dtype?: string | undefined;
520
+ estimatedTotalBytes?: number | undefined;
521
+ }> | undefined;
522
+ groupOrder?: string[] | undefined;
523
+ }>;
524
+ type LocalModelProfileManifest = z.infer<typeof LocalModelProfileManifestSchema>;
525
+ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
526
+ path: z.ZodString;
527
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
528
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
529
+ required: z.ZodDefault<z.ZodBoolean>;
530
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
531
+ updatedAt: z.ZodOptional<z.ZodNumber>;
532
+ error: z.ZodOptional<z.ZodString>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ path: string;
535
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
536
+ required: boolean;
537
+ updatedAt?: number | undefined;
538
+ error?: string | undefined;
539
+ sizeBytes?: number | undefined;
540
+ downloadedBytes?: number | undefined;
541
+ }, {
542
+ path: string;
543
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
544
+ updatedAt?: number | undefined;
545
+ required?: boolean | undefined;
546
+ error?: string | undefined;
547
+ sizeBytes?: number | undefined;
548
+ downloadedBytes?: number | undefined;
549
+ }>;
550
+ type LocalModelLifecycleFileState = z.infer<typeof LocalModelLifecycleFileStateSchema>;
551
+ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
552
+ groupId: z.ZodString;
553
+ baseGroupId: z.ZodOptional<z.ZodString>;
554
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
555
+ rootDir: z.ZodOptional<z.ZodString>;
556
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
557
+ totalBytes: z.ZodOptional<z.ZodNumber>;
558
+ progress: z.ZodOptional<z.ZodNumber>;
559
+ resumable: z.ZodDefault<z.ZodBoolean>;
560
+ error: z.ZodOptional<z.ZodString>;
561
+ installedAt: z.ZodOptional<z.ZodNumber>;
562
+ updatedAt: z.ZodOptional<z.ZodNumber>;
563
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
564
+ path: z.ZodString;
565
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
566
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
567
+ required: z.ZodDefault<z.ZodBoolean>;
568
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
569
+ updatedAt: z.ZodOptional<z.ZodNumber>;
570
+ error: z.ZodOptional<z.ZodString>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ path: string;
573
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
574
+ required: boolean;
575
+ updatedAt?: number | undefined;
576
+ error?: string | undefined;
577
+ sizeBytes?: number | undefined;
578
+ downloadedBytes?: number | undefined;
579
+ }, {
580
+ path: string;
581
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
582
+ updatedAt?: number | undefined;
583
+ required?: boolean | undefined;
584
+ error?: string | undefined;
585
+ sizeBytes?: number | undefined;
586
+ downloadedBytes?: number | undefined;
587
+ }>, "many">>;
588
+ }, "strip", z.ZodTypeAny, {
589
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
590
+ groupId: string;
591
+ resumable: boolean;
592
+ files: {
593
+ path: string;
594
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
595
+ required: boolean;
596
+ updatedAt?: number | undefined;
597
+ error?: string | undefined;
598
+ sizeBytes?: number | undefined;
599
+ downloadedBytes?: number | undefined;
600
+ }[];
601
+ updatedAt?: number | undefined;
602
+ error?: string | undefined;
603
+ baseGroupId?: string | undefined;
604
+ rootDir?: string | undefined;
605
+ progress?: number | undefined;
606
+ bytesDownloaded?: number | undefined;
607
+ totalBytes?: number | undefined;
608
+ installedAt?: number | undefined;
609
+ }, {
610
+ groupId: string;
611
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
612
+ updatedAt?: number | undefined;
613
+ error?: string | undefined;
614
+ baseGroupId?: string | undefined;
615
+ rootDir?: string | undefined;
616
+ progress?: number | undefined;
617
+ bytesDownloaded?: number | undefined;
618
+ totalBytes?: number | undefined;
619
+ resumable?: boolean | undefined;
620
+ files?: {
621
+ path: string;
622
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
623
+ updatedAt?: number | undefined;
624
+ required?: boolean | undefined;
625
+ error?: string | undefined;
626
+ sizeBytes?: number | undefined;
627
+ downloadedBytes?: number | undefined;
628
+ }[] | undefined;
629
+ installedAt?: number | undefined;
630
+ }>;
631
+ type LocalModelLifecycleGroupState = z.infer<typeof LocalModelLifecycleGroupStateSchema>;
632
+ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
633
+ status: z.ZodDefault<z.ZodEnum<["idle", "loading", "ready", "error"]>>;
634
+ message: z.ZodOptional<z.ZodString>;
635
+ error: z.ZodOptional<z.ZodString>;
636
+ updatedAt: z.ZodOptional<z.ZodNumber>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ status: "error" | "idle" | "loading" | "ready";
639
+ message?: string | undefined;
640
+ updatedAt?: number | undefined;
641
+ error?: string | undefined;
642
+ }, {
643
+ message?: string | undefined;
644
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
645
+ updatedAt?: number | undefined;
646
+ error?: string | undefined;
647
+ }>;
648
+ type LocalModelProfileLoadState = z.infer<typeof LocalModelProfileLoadStateSchema>;
649
+ declare const LocalModelAssetLogSchema: z.ZodObject<{
650
+ engineId: z.ZodLiteral<"local">;
651
+ modelId: z.ZodString;
652
+ selectedGroupId: z.ZodOptional<z.ZodString>;
653
+ groupId: z.ZodOptional<z.ZodString>;
654
+ status: z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>;
655
+ message: z.ZodString;
656
+ progress: z.ZodOptional<z.ZodNumber>;
657
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
658
+ totalBytes: z.ZodOptional<z.ZodNumber>;
659
+ sessionId: z.ZodOptional<z.ZodString>;
660
+ resumable: z.ZodOptional<z.ZodBoolean>;
661
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
662
+ path: z.ZodString;
663
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
664
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ path: string;
667
+ sizeBytes?: number | undefined;
668
+ downloadedBytes?: number | undefined;
669
+ }, {
670
+ path: string;
671
+ sizeBytes?: number | undefined;
672
+ downloadedBytes?: number | undefined;
673
+ }>, "many">>;
674
+ updatedAt: z.ZodNumber;
675
+ }, "strip", z.ZodTypeAny, {
676
+ message: string;
677
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
678
+ engineId: "local";
679
+ updatedAt: number;
680
+ modelId: string;
681
+ selectedGroupId?: string | undefined;
682
+ sessionId?: string | undefined;
683
+ groupId?: string | undefined;
684
+ progress?: number | undefined;
685
+ bytesDownloaded?: number | undefined;
686
+ totalBytes?: number | undefined;
687
+ resumable?: boolean | undefined;
688
+ files?: {
689
+ path: string;
690
+ sizeBytes?: number | undefined;
691
+ downloadedBytes?: number | undefined;
692
+ }[] | undefined;
693
+ }, {
694
+ message: string;
695
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
696
+ engineId: "local";
697
+ updatedAt: number;
698
+ modelId: string;
699
+ selectedGroupId?: string | undefined;
700
+ sessionId?: string | undefined;
701
+ groupId?: string | undefined;
702
+ progress?: number | undefined;
703
+ bytesDownloaded?: number | undefined;
704
+ totalBytes?: number | undefined;
705
+ resumable?: boolean | undefined;
706
+ files?: {
707
+ path: string;
708
+ sizeBytes?: number | undefined;
709
+ downloadedBytes?: number | undefined;
710
+ }[] | undefined;
711
+ }>;
712
+ type LocalModelAssetLog = z.infer<typeof LocalModelAssetLogSchema>;
713
+ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
714
+ modelId: z.ZodString;
715
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
716
+ files: z.ZodArray<z.ZodObject<{
717
+ path: z.ZodString;
718
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
719
+ required: z.ZodBoolean;
720
+ etag: z.ZodOptional<z.ZodString>;
721
+ revision: z.ZodOptional<z.ZodString>;
722
+ sourceUrl: z.ZodOptional<z.ZodString>;
723
+ raw: z.ZodOptional<z.ZodUnknown>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ path: string;
726
+ required: boolean;
727
+ sizeBytes?: number | undefined;
728
+ etag?: string | undefined;
729
+ revision?: string | undefined;
730
+ sourceUrl?: string | undefined;
731
+ raw?: unknown;
732
+ }, {
733
+ path: string;
734
+ required: boolean;
735
+ sizeBytes?: number | undefined;
736
+ etag?: string | undefined;
737
+ revision?: string | undefined;
738
+ sourceUrl?: string | undefined;
739
+ raw?: unknown;
740
+ }>, "many">;
741
+ profile: z.ZodOptional<z.ZodString>;
742
+ selectedGroupId: z.ZodOptional<z.ZodString>;
743
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
744
+ id: z.ZodString;
745
+ label: z.ZodString;
746
+ description: z.ZodOptional<z.ZodString>;
747
+ profile: z.ZodOptional<z.ZodString>;
748
+ dtype: z.ZodOptional<z.ZodString>;
749
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
750
+ baseGroupId: z.ZodOptional<z.ZodString>;
751
+ commitHash: z.ZodOptional<z.ZodString>;
752
+ shortCommitHash: z.ZodOptional<z.ZodString>;
753
+ rootDir: z.ZodOptional<z.ZodString>;
754
+ status: z.ZodOptional<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
755
+ progress: z.ZodOptional<z.ZodNumber>;
756
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
757
+ totalBytes: z.ZodOptional<z.ZodNumber>;
758
+ resumable: z.ZodOptional<z.ZodBoolean>;
759
+ error: z.ZodOptional<z.ZodString>;
760
+ selectable: z.ZodBoolean;
761
+ selected: z.ZodBoolean;
762
+ files: z.ZodArray<z.ZodObject<{
763
+ path: z.ZodString;
764
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
765
+ required: z.ZodBoolean;
766
+ etag: z.ZodOptional<z.ZodString>;
767
+ revision: z.ZodOptional<z.ZodString>;
768
+ sourceUrl: z.ZodOptional<z.ZodString>;
769
+ raw: z.ZodOptional<z.ZodUnknown>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ path: string;
772
+ required: boolean;
773
+ sizeBytes?: number | undefined;
774
+ etag?: string | undefined;
775
+ revision?: string | undefined;
776
+ sourceUrl?: string | undefined;
777
+ raw?: unknown;
778
+ }, {
779
+ path: string;
780
+ required: boolean;
781
+ sizeBytes?: number | undefined;
782
+ etag?: string | undefined;
783
+ revision?: string | undefined;
784
+ sourceUrl?: string | undefined;
785
+ raw?: unknown;
786
+ }>, "many">;
787
+ }, "strip", z.ZodTypeAny, {
788
+ id: string;
789
+ label: string;
790
+ selectable: boolean;
791
+ selected: boolean;
792
+ files: {
793
+ path: string;
794
+ required: boolean;
795
+ sizeBytes?: number | undefined;
796
+ etag?: string | undefined;
797
+ revision?: string | undefined;
798
+ sourceUrl?: string | undefined;
799
+ raw?: unknown;
800
+ }[];
801
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
802
+ error?: string | undefined;
803
+ description?: string | undefined;
804
+ profile?: string | undefined;
805
+ dtype?: string | undefined;
806
+ estimatedTotalBytes?: number | undefined;
807
+ baseGroupId?: string | undefined;
808
+ commitHash?: string | undefined;
809
+ shortCommitHash?: string | undefined;
810
+ rootDir?: string | undefined;
811
+ progress?: number | undefined;
812
+ bytesDownloaded?: number | undefined;
813
+ totalBytes?: number | undefined;
814
+ resumable?: boolean | undefined;
815
+ }, {
816
+ id: string;
817
+ label: string;
818
+ selectable: boolean;
819
+ selected: boolean;
820
+ files: {
821
+ path: string;
822
+ required: boolean;
823
+ sizeBytes?: number | undefined;
824
+ etag?: string | undefined;
825
+ revision?: string | undefined;
826
+ sourceUrl?: string | undefined;
827
+ raw?: unknown;
828
+ }[];
829
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
830
+ error?: string | undefined;
831
+ description?: string | undefined;
832
+ profile?: string | undefined;
833
+ dtype?: string | undefined;
834
+ estimatedTotalBytes?: number | undefined;
835
+ baseGroupId?: string | undefined;
836
+ commitHash?: string | undefined;
837
+ shortCommitHash?: string | undefined;
838
+ rootDir?: string | undefined;
839
+ progress?: number | undefined;
840
+ bytesDownloaded?: number | undefined;
841
+ totalBytes?: number | undefined;
842
+ resumable?: boolean | undefined;
843
+ }>, "many">>;
844
+ }, "strip", z.ZodTypeAny, {
845
+ files: {
846
+ path: string;
847
+ required: boolean;
848
+ sizeBytes?: number | undefined;
849
+ etag?: string | undefined;
850
+ revision?: string | undefined;
851
+ sourceUrl?: string | undefined;
852
+ raw?: unknown;
853
+ }[];
854
+ modelId: string;
855
+ selectedGroupId?: string | undefined;
856
+ profile?: string | undefined;
857
+ estimatedTotalBytes?: number | undefined;
858
+ groups?: {
859
+ id: string;
860
+ label: string;
861
+ selectable: boolean;
862
+ selected: boolean;
863
+ files: {
864
+ path: string;
865
+ required: boolean;
866
+ sizeBytes?: number | undefined;
867
+ etag?: string | undefined;
868
+ revision?: string | undefined;
869
+ sourceUrl?: string | undefined;
870
+ raw?: unknown;
871
+ }[];
872
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
873
+ error?: string | undefined;
874
+ description?: string | undefined;
875
+ profile?: string | undefined;
876
+ dtype?: string | undefined;
877
+ estimatedTotalBytes?: number | undefined;
878
+ baseGroupId?: string | undefined;
879
+ commitHash?: string | undefined;
880
+ shortCommitHash?: string | undefined;
881
+ rootDir?: string | undefined;
882
+ progress?: number | undefined;
883
+ bytesDownloaded?: number | undefined;
884
+ totalBytes?: number | undefined;
885
+ resumable?: boolean | undefined;
886
+ }[] | undefined;
887
+ }, {
888
+ files: {
889
+ path: string;
890
+ required: boolean;
891
+ sizeBytes?: number | undefined;
892
+ etag?: string | undefined;
893
+ revision?: string | undefined;
894
+ sourceUrl?: string | undefined;
895
+ raw?: unknown;
896
+ }[];
897
+ modelId: string;
898
+ selectedGroupId?: string | undefined;
899
+ profile?: string | undefined;
900
+ estimatedTotalBytes?: number | undefined;
901
+ groups?: {
902
+ id: string;
903
+ label: string;
904
+ selectable: boolean;
905
+ selected: boolean;
906
+ files: {
907
+ path: string;
908
+ required: boolean;
909
+ sizeBytes?: number | undefined;
910
+ etag?: string | undefined;
911
+ revision?: string | undefined;
912
+ sourceUrl?: string | undefined;
913
+ raw?: unknown;
914
+ }[];
915
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
916
+ error?: string | undefined;
917
+ description?: string | undefined;
918
+ profile?: string | undefined;
919
+ dtype?: string | undefined;
920
+ estimatedTotalBytes?: number | undefined;
921
+ baseGroupId?: string | undefined;
922
+ commitHash?: string | undefined;
923
+ shortCommitHash?: string | undefined;
924
+ rootDir?: string | undefined;
925
+ progress?: number | undefined;
926
+ bytesDownloaded?: number | undefined;
927
+ totalBytes?: number | undefined;
928
+ resumable?: boolean | undefined;
929
+ }[] | undefined;
930
+ }>;
931
+ type LocalModelAssetPlanSnapshot = z.infer<typeof LocalModelAssetPlanSnapshotSchema>;
932
+ declare const LocalModelAssetStateSchema: z.ZodObject<{
933
+ modelId: z.ZodString;
934
+ version: z.ZodDefault<z.ZodLiteral<2>>;
935
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
936
+ selected: z.ZodDefault<z.ZodBoolean>;
937
+ selectedGroupId: z.ZodOptional<z.ZodString>;
938
+ installedAt: z.ZodOptional<z.ZodNumber>;
939
+ updatedAt: z.ZodOptional<z.ZodNumber>;
940
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
941
+ totalBytes: z.ZodOptional<z.ZodNumber>;
942
+ progress: z.ZodOptional<z.ZodNumber>;
943
+ resumable: z.ZodDefault<z.ZodBoolean>;
944
+ error: z.ZodOptional<z.ZodString>;
945
+ profileLoad: z.ZodDefault<z.ZodObject<{
946
+ status: z.ZodDefault<z.ZodEnum<["idle", "loading", "ready", "error"]>>;
947
+ message: z.ZodOptional<z.ZodString>;
948
+ error: z.ZodOptional<z.ZodString>;
949
+ updatedAt: z.ZodOptional<z.ZodNumber>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ status: "error" | "idle" | "loading" | "ready";
952
+ message?: string | undefined;
953
+ updatedAt?: number | undefined;
954
+ error?: string | undefined;
955
+ }, {
956
+ message?: string | undefined;
957
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
958
+ updatedAt?: number | undefined;
959
+ error?: string | undefined;
960
+ }>>;
961
+ profileManifest: z.ZodOptional<z.ZodObject<{
962
+ modelId: z.ZodString;
963
+ source: z.ZodLiteral<"huggingface">;
964
+ endpoint: z.ZodDefault<z.ZodString>;
965
+ revision: z.ZodString;
966
+ commitHash: z.ZodString;
967
+ shortCommitHash: z.ZodString;
968
+ fetchedAt: z.ZodNumber;
969
+ updatedAt: z.ZodNumber;
970
+ raw: z.ZodOptional<z.ZodUnknown>;
971
+ groups: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
972
+ id: z.ZodString;
973
+ baseGroupId: z.ZodString;
974
+ label: z.ZodString;
975
+ displayLabel: z.ZodString;
976
+ description: z.ZodOptional<z.ZodString>;
977
+ profile: z.ZodOptional<z.ZodString>;
978
+ dtype: z.ZodOptional<z.ZodString>;
979
+ commitHash: z.ZodString;
980
+ shortCommitHash: z.ZodString;
981
+ rootDir: z.ZodString;
982
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
983
+ selectable: z.ZodBoolean;
984
+ files: z.ZodArray<z.ZodObject<{
985
+ path: z.ZodString;
986
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
987
+ required: z.ZodBoolean;
988
+ etag: z.ZodOptional<z.ZodString>;
989
+ revision: z.ZodOptional<z.ZodString>;
990
+ sourceUrl: z.ZodOptional<z.ZodString>;
991
+ raw: z.ZodOptional<z.ZodUnknown>;
992
+ }, "strip", z.ZodTypeAny, {
993
+ path: string;
994
+ required: boolean;
995
+ sizeBytes?: number | undefined;
996
+ etag?: string | undefined;
997
+ revision?: string | undefined;
998
+ sourceUrl?: string | undefined;
999
+ raw?: unknown;
1000
+ }, {
1001
+ path: string;
1002
+ required: boolean;
1003
+ sizeBytes?: number | undefined;
1004
+ etag?: string | undefined;
1005
+ revision?: string | undefined;
1006
+ sourceUrl?: string | undefined;
1007
+ raw?: unknown;
1008
+ }>, "many">;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ id: string;
1011
+ label: string;
1012
+ baseGroupId: string;
1013
+ commitHash: string;
1014
+ shortCommitHash: string;
1015
+ rootDir: string;
1016
+ selectable: boolean;
1017
+ files: {
1018
+ path: string;
1019
+ required: boolean;
1020
+ sizeBytes?: number | undefined;
1021
+ etag?: string | undefined;
1022
+ revision?: string | undefined;
1023
+ sourceUrl?: string | undefined;
1024
+ raw?: unknown;
1025
+ }[];
1026
+ displayLabel: string;
1027
+ description?: string | undefined;
1028
+ profile?: string | undefined;
1029
+ dtype?: string | undefined;
1030
+ estimatedTotalBytes?: number | undefined;
1031
+ }, {
1032
+ id: string;
1033
+ label: string;
1034
+ baseGroupId: string;
1035
+ commitHash: string;
1036
+ shortCommitHash: string;
1037
+ rootDir: string;
1038
+ selectable: boolean;
1039
+ files: {
1040
+ path: string;
1041
+ required: boolean;
1042
+ sizeBytes?: number | undefined;
1043
+ etag?: string | undefined;
1044
+ revision?: string | undefined;
1045
+ sourceUrl?: string | undefined;
1046
+ raw?: unknown;
1047
+ }[];
1048
+ displayLabel: string;
1049
+ description?: string | undefined;
1050
+ profile?: string | undefined;
1051
+ dtype?: string | undefined;
1052
+ estimatedTotalBytes?: number | undefined;
1053
+ }>>>;
1054
+ groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ updatedAt: number;
1057
+ source: "huggingface";
1058
+ revision: string;
1059
+ commitHash: string;
1060
+ shortCommitHash: string;
1061
+ modelId: string;
1062
+ endpoint: string;
1063
+ fetchedAt: number;
1064
+ groups: Record<string, {
1065
+ id: string;
1066
+ label: string;
1067
+ baseGroupId: string;
1068
+ commitHash: string;
1069
+ shortCommitHash: string;
1070
+ rootDir: string;
1071
+ selectable: boolean;
1072
+ files: {
1073
+ path: string;
1074
+ required: boolean;
1075
+ sizeBytes?: number | undefined;
1076
+ etag?: string | undefined;
1077
+ revision?: string | undefined;
1078
+ sourceUrl?: string | undefined;
1079
+ raw?: unknown;
1080
+ }[];
1081
+ displayLabel: string;
1082
+ description?: string | undefined;
1083
+ profile?: string | undefined;
1084
+ dtype?: string | undefined;
1085
+ estimatedTotalBytes?: number | undefined;
1086
+ }>;
1087
+ groupOrder: string[];
1088
+ raw?: unknown;
1089
+ }, {
1090
+ updatedAt: number;
1091
+ source: "huggingface";
1092
+ revision: string;
1093
+ commitHash: string;
1094
+ shortCommitHash: string;
1095
+ modelId: string;
1096
+ fetchedAt: number;
1097
+ raw?: unknown;
1098
+ endpoint?: string | undefined;
1099
+ groups?: Record<string, {
1100
+ id: string;
1101
+ label: string;
1102
+ baseGroupId: string;
1103
+ commitHash: string;
1104
+ shortCommitHash: string;
1105
+ rootDir: string;
1106
+ selectable: boolean;
1107
+ files: {
1108
+ path: string;
1109
+ required: boolean;
1110
+ sizeBytes?: number | undefined;
1111
+ etag?: string | undefined;
1112
+ revision?: string | undefined;
1113
+ sourceUrl?: string | undefined;
1114
+ raw?: unknown;
1115
+ }[];
1116
+ displayLabel: string;
1117
+ description?: string | undefined;
1118
+ profile?: string | undefined;
1119
+ dtype?: string | undefined;
1120
+ estimatedTotalBytes?: number | undefined;
1121
+ }> | undefined;
1122
+ groupOrder?: string[] | undefined;
1123
+ }>>;
1124
+ groupsState: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1125
+ groupId: z.ZodString;
1126
+ baseGroupId: z.ZodOptional<z.ZodString>;
1127
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
1128
+ rootDir: z.ZodOptional<z.ZodString>;
1129
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
1130
+ totalBytes: z.ZodOptional<z.ZodNumber>;
1131
+ progress: z.ZodOptional<z.ZodNumber>;
1132
+ resumable: z.ZodDefault<z.ZodBoolean>;
1133
+ error: z.ZodOptional<z.ZodString>;
1134
+ installedAt: z.ZodOptional<z.ZodNumber>;
1135
+ updatedAt: z.ZodOptional<z.ZodNumber>;
1136
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
1137
+ path: z.ZodString;
1138
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1139
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
1140
+ required: z.ZodDefault<z.ZodBoolean>;
1141
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
1142
+ updatedAt: z.ZodOptional<z.ZodNumber>;
1143
+ error: z.ZodOptional<z.ZodString>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ path: string;
1146
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1147
+ required: boolean;
1148
+ updatedAt?: number | undefined;
1149
+ error?: string | undefined;
1150
+ sizeBytes?: number | undefined;
1151
+ downloadedBytes?: number | undefined;
1152
+ }, {
1153
+ path: string;
1154
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1155
+ updatedAt?: number | undefined;
1156
+ required?: boolean | undefined;
1157
+ error?: string | undefined;
1158
+ sizeBytes?: number | undefined;
1159
+ downloadedBytes?: number | undefined;
1160
+ }>, "many">>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1163
+ groupId: string;
1164
+ resumable: boolean;
1165
+ files: {
1166
+ path: string;
1167
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1168
+ required: boolean;
1169
+ updatedAt?: number | undefined;
1170
+ error?: string | undefined;
1171
+ sizeBytes?: number | undefined;
1172
+ downloadedBytes?: number | undefined;
1173
+ }[];
1174
+ updatedAt?: number | undefined;
1175
+ error?: string | undefined;
1176
+ baseGroupId?: string | undefined;
1177
+ rootDir?: string | undefined;
1178
+ progress?: number | undefined;
1179
+ bytesDownloaded?: number | undefined;
1180
+ totalBytes?: number | undefined;
1181
+ installedAt?: number | undefined;
1182
+ }, {
1183
+ groupId: string;
1184
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1185
+ updatedAt?: number | undefined;
1186
+ error?: string | undefined;
1187
+ baseGroupId?: string | undefined;
1188
+ rootDir?: string | undefined;
1189
+ progress?: number | undefined;
1190
+ bytesDownloaded?: number | undefined;
1191
+ totalBytes?: number | undefined;
1192
+ resumable?: boolean | undefined;
1193
+ files?: {
1194
+ path: string;
1195
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1196
+ updatedAt?: number | undefined;
1197
+ required?: boolean | undefined;
1198
+ error?: string | undefined;
1199
+ sizeBytes?: number | undefined;
1200
+ downloadedBytes?: number | undefined;
1201
+ }[] | undefined;
1202
+ installedAt?: number | undefined;
1203
+ }>>>;
1204
+ plan: z.ZodOptional<z.ZodObject<{
1205
+ modelId: z.ZodString;
1206
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
1207
+ files: z.ZodArray<z.ZodObject<{
1208
+ path: z.ZodString;
1209
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1210
+ required: z.ZodBoolean;
1211
+ etag: z.ZodOptional<z.ZodString>;
1212
+ revision: z.ZodOptional<z.ZodString>;
1213
+ sourceUrl: z.ZodOptional<z.ZodString>;
1214
+ raw: z.ZodOptional<z.ZodUnknown>;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ path: string;
1217
+ required: boolean;
1218
+ sizeBytes?: number | undefined;
1219
+ etag?: string | undefined;
1220
+ revision?: string | undefined;
1221
+ sourceUrl?: string | undefined;
1222
+ raw?: unknown;
1223
+ }, {
1224
+ path: string;
1225
+ required: boolean;
1226
+ sizeBytes?: number | undefined;
1227
+ etag?: string | undefined;
1228
+ revision?: string | undefined;
1229
+ sourceUrl?: string | undefined;
1230
+ raw?: unknown;
1231
+ }>, "many">;
1232
+ profile: z.ZodOptional<z.ZodString>;
1233
+ selectedGroupId: z.ZodOptional<z.ZodString>;
1234
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
1235
+ id: z.ZodString;
1236
+ label: z.ZodString;
1237
+ description: z.ZodOptional<z.ZodString>;
1238
+ profile: z.ZodOptional<z.ZodString>;
1239
+ dtype: z.ZodOptional<z.ZodString>;
1240
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
1241
+ baseGroupId: z.ZodOptional<z.ZodString>;
1242
+ commitHash: z.ZodOptional<z.ZodString>;
1243
+ shortCommitHash: z.ZodOptional<z.ZodString>;
1244
+ rootDir: z.ZodOptional<z.ZodString>;
1245
+ status: z.ZodOptional<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
1246
+ progress: z.ZodOptional<z.ZodNumber>;
1247
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
1248
+ totalBytes: z.ZodOptional<z.ZodNumber>;
1249
+ resumable: z.ZodOptional<z.ZodBoolean>;
1250
+ error: z.ZodOptional<z.ZodString>;
1251
+ selectable: z.ZodBoolean;
1252
+ selected: z.ZodBoolean;
1253
+ files: z.ZodArray<z.ZodObject<{
1254
+ path: z.ZodString;
1255
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1256
+ required: z.ZodBoolean;
1257
+ etag: z.ZodOptional<z.ZodString>;
1258
+ revision: z.ZodOptional<z.ZodString>;
1259
+ sourceUrl: z.ZodOptional<z.ZodString>;
1260
+ raw: z.ZodOptional<z.ZodUnknown>;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ path: string;
1263
+ required: boolean;
1264
+ sizeBytes?: number | undefined;
1265
+ etag?: string | undefined;
1266
+ revision?: string | undefined;
1267
+ sourceUrl?: string | undefined;
1268
+ raw?: unknown;
1269
+ }, {
1270
+ path: string;
1271
+ required: boolean;
1272
+ sizeBytes?: number | undefined;
1273
+ etag?: string | undefined;
1274
+ revision?: string | undefined;
1275
+ sourceUrl?: string | undefined;
1276
+ raw?: unknown;
1277
+ }>, "many">;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ id: string;
1280
+ label: string;
1281
+ selectable: boolean;
1282
+ selected: boolean;
1283
+ files: {
1284
+ path: string;
1285
+ required: boolean;
1286
+ sizeBytes?: number | undefined;
1287
+ etag?: string | undefined;
1288
+ revision?: string | undefined;
1289
+ sourceUrl?: string | undefined;
1290
+ raw?: unknown;
1291
+ }[];
1292
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1293
+ error?: string | undefined;
1294
+ description?: string | undefined;
1295
+ profile?: string | undefined;
1296
+ dtype?: string | undefined;
1297
+ estimatedTotalBytes?: number | undefined;
1298
+ baseGroupId?: string | undefined;
1299
+ commitHash?: string | undefined;
1300
+ shortCommitHash?: string | undefined;
1301
+ rootDir?: string | undefined;
1302
+ progress?: number | undefined;
1303
+ bytesDownloaded?: number | undefined;
1304
+ totalBytes?: number | undefined;
1305
+ resumable?: boolean | undefined;
1306
+ }, {
1307
+ id: string;
1308
+ label: string;
1309
+ selectable: boolean;
1310
+ selected: boolean;
1311
+ files: {
1312
+ path: string;
1313
+ required: boolean;
1314
+ sizeBytes?: number | undefined;
1315
+ etag?: string | undefined;
1316
+ revision?: string | undefined;
1317
+ sourceUrl?: string | undefined;
1318
+ raw?: unknown;
1319
+ }[];
1320
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1321
+ error?: string | undefined;
1322
+ description?: string | undefined;
1323
+ profile?: string | undefined;
1324
+ dtype?: string | undefined;
1325
+ estimatedTotalBytes?: number | undefined;
1326
+ baseGroupId?: string | undefined;
1327
+ commitHash?: string | undefined;
1328
+ shortCommitHash?: string | undefined;
1329
+ rootDir?: string | undefined;
1330
+ progress?: number | undefined;
1331
+ bytesDownloaded?: number | undefined;
1332
+ totalBytes?: number | undefined;
1333
+ resumable?: boolean | undefined;
1334
+ }>, "many">>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ files: {
1337
+ path: string;
1338
+ required: boolean;
1339
+ sizeBytes?: number | undefined;
1340
+ etag?: string | undefined;
1341
+ revision?: string | undefined;
1342
+ sourceUrl?: string | undefined;
1343
+ raw?: unknown;
1344
+ }[];
1345
+ modelId: string;
1346
+ selectedGroupId?: string | undefined;
1347
+ profile?: string | undefined;
1348
+ estimatedTotalBytes?: number | undefined;
1349
+ groups?: {
1350
+ id: string;
1351
+ label: string;
1352
+ selectable: boolean;
1353
+ selected: boolean;
1354
+ files: {
1355
+ path: string;
1356
+ required: boolean;
1357
+ sizeBytes?: number | undefined;
1358
+ etag?: string | undefined;
1359
+ revision?: string | undefined;
1360
+ sourceUrl?: string | undefined;
1361
+ raw?: unknown;
1362
+ }[];
1363
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1364
+ error?: string | undefined;
1365
+ description?: string | undefined;
1366
+ profile?: string | undefined;
1367
+ dtype?: string | undefined;
1368
+ estimatedTotalBytes?: number | undefined;
1369
+ baseGroupId?: string | undefined;
1370
+ commitHash?: string | undefined;
1371
+ shortCommitHash?: string | undefined;
1372
+ rootDir?: string | undefined;
1373
+ progress?: number | undefined;
1374
+ bytesDownloaded?: number | undefined;
1375
+ totalBytes?: number | undefined;
1376
+ resumable?: boolean | undefined;
1377
+ }[] | undefined;
1378
+ }, {
1379
+ files: {
1380
+ path: string;
1381
+ required: boolean;
1382
+ sizeBytes?: number | undefined;
1383
+ etag?: string | undefined;
1384
+ revision?: string | undefined;
1385
+ sourceUrl?: string | undefined;
1386
+ raw?: unknown;
1387
+ }[];
1388
+ modelId: string;
1389
+ selectedGroupId?: string | undefined;
1390
+ profile?: string | undefined;
1391
+ estimatedTotalBytes?: number | undefined;
1392
+ groups?: {
1393
+ id: string;
1394
+ label: string;
1395
+ selectable: boolean;
1396
+ selected: boolean;
1397
+ files: {
1398
+ path: string;
1399
+ required: boolean;
1400
+ sizeBytes?: number | undefined;
1401
+ etag?: string | undefined;
1402
+ revision?: string | undefined;
1403
+ sourceUrl?: string | undefined;
1404
+ raw?: unknown;
1405
+ }[];
1406
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1407
+ error?: string | undefined;
1408
+ description?: string | undefined;
1409
+ profile?: string | undefined;
1410
+ dtype?: string | undefined;
1411
+ estimatedTotalBytes?: number | undefined;
1412
+ baseGroupId?: string | undefined;
1413
+ commitHash?: string | undefined;
1414
+ shortCommitHash?: string | undefined;
1415
+ rootDir?: string | undefined;
1416
+ progress?: number | undefined;
1417
+ bytesDownloaded?: number | undefined;
1418
+ totalBytes?: number | undefined;
1419
+ resumable?: boolean | undefined;
1420
+ }[] | undefined;
1421
+ }>>;
1422
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
1423
+ path: z.ZodString;
1424
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1425
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ path: string;
1428
+ sizeBytes?: number | undefined;
1429
+ downloadedBytes?: number | undefined;
1430
+ }, {
1431
+ path: string;
1432
+ sizeBytes?: number | undefined;
1433
+ downloadedBytes?: number | undefined;
1434
+ }>, "many">>;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1437
+ resumable: boolean;
1438
+ selected: boolean;
1439
+ files: {
1440
+ path: string;
1441
+ sizeBytes?: number | undefined;
1442
+ downloadedBytes?: number | undefined;
1443
+ }[];
1444
+ modelId: string;
1445
+ version: 2;
1446
+ profileLoad: {
1447
+ status: "error" | "idle" | "loading" | "ready";
1448
+ message?: string | undefined;
1449
+ updatedAt?: number | undefined;
1450
+ error?: string | undefined;
1451
+ };
1452
+ groupsState: Record<string, {
1453
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1454
+ groupId: string;
1455
+ resumable: boolean;
1456
+ files: {
1457
+ path: string;
1458
+ status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1459
+ required: boolean;
1460
+ updatedAt?: number | undefined;
1461
+ error?: string | undefined;
1462
+ sizeBytes?: number | undefined;
1463
+ downloadedBytes?: number | undefined;
1464
+ }[];
1465
+ updatedAt?: number | undefined;
1466
+ error?: string | undefined;
1467
+ baseGroupId?: string | undefined;
1468
+ rootDir?: string | undefined;
1469
+ progress?: number | undefined;
1470
+ bytesDownloaded?: number | undefined;
1471
+ totalBytes?: number | undefined;
1472
+ installedAt?: number | undefined;
1473
+ }>;
1474
+ selectedGroupId?: string | undefined;
1475
+ updatedAt?: number | undefined;
1476
+ error?: string | undefined;
1477
+ progress?: number | undefined;
1478
+ bytesDownloaded?: number | undefined;
1479
+ totalBytes?: number | undefined;
1480
+ installedAt?: number | undefined;
1481
+ profileManifest?: {
1482
+ updatedAt: number;
1483
+ source: "huggingface";
1484
+ revision: string;
1485
+ commitHash: string;
1486
+ shortCommitHash: string;
1487
+ modelId: string;
1488
+ endpoint: string;
1489
+ fetchedAt: number;
1490
+ groups: Record<string, {
1491
+ id: string;
1492
+ label: string;
1493
+ baseGroupId: string;
1494
+ commitHash: string;
1495
+ shortCommitHash: string;
1496
+ rootDir: string;
1497
+ selectable: boolean;
1498
+ files: {
1499
+ path: string;
1500
+ required: boolean;
1501
+ sizeBytes?: number | undefined;
1502
+ etag?: string | undefined;
1503
+ revision?: string | undefined;
1504
+ sourceUrl?: string | undefined;
1505
+ raw?: unknown;
1506
+ }[];
1507
+ displayLabel: string;
1508
+ description?: string | undefined;
1509
+ profile?: string | undefined;
1510
+ dtype?: string | undefined;
1511
+ estimatedTotalBytes?: number | undefined;
1512
+ }>;
1513
+ groupOrder: string[];
1514
+ raw?: unknown;
1515
+ } | undefined;
1516
+ plan?: {
1517
+ files: {
1518
+ path: string;
1519
+ required: boolean;
1520
+ sizeBytes?: number | undefined;
1521
+ etag?: string | undefined;
1522
+ revision?: string | undefined;
1523
+ sourceUrl?: string | undefined;
1524
+ raw?: unknown;
1525
+ }[];
1526
+ modelId: string;
1527
+ selectedGroupId?: string | undefined;
1528
+ profile?: string | undefined;
1529
+ estimatedTotalBytes?: number | undefined;
1530
+ groups?: {
1531
+ id: string;
1532
+ label: string;
1533
+ selectable: boolean;
1534
+ selected: boolean;
1535
+ files: {
1536
+ path: string;
1537
+ required: boolean;
1538
+ sizeBytes?: number | undefined;
1539
+ etag?: string | undefined;
1540
+ revision?: string | undefined;
1541
+ sourceUrl?: string | undefined;
1542
+ raw?: unknown;
1543
+ }[];
1544
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1545
+ error?: string | undefined;
1546
+ description?: string | undefined;
1547
+ profile?: string | undefined;
1548
+ dtype?: string | undefined;
1549
+ estimatedTotalBytes?: number | undefined;
1550
+ baseGroupId?: string | undefined;
1551
+ commitHash?: string | undefined;
1552
+ shortCommitHash?: string | undefined;
1553
+ rootDir?: string | undefined;
1554
+ progress?: number | undefined;
1555
+ bytesDownloaded?: number | undefined;
1556
+ totalBytes?: number | undefined;
1557
+ resumable?: boolean | undefined;
1558
+ }[] | undefined;
1559
+ } | undefined;
1560
+ }, {
1561
+ modelId: string;
1562
+ selectedGroupId?: string | undefined;
1563
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1564
+ updatedAt?: number | undefined;
1565
+ error?: string | undefined;
1566
+ progress?: number | undefined;
1567
+ bytesDownloaded?: number | undefined;
1568
+ totalBytes?: number | undefined;
1569
+ resumable?: boolean | undefined;
1570
+ selected?: boolean | undefined;
1571
+ files?: {
1572
+ path: string;
1573
+ sizeBytes?: number | undefined;
1574
+ downloadedBytes?: number | undefined;
1575
+ }[] | undefined;
1576
+ installedAt?: number | undefined;
1577
+ version?: 2 | undefined;
1578
+ profileLoad?: {
1579
+ message?: string | undefined;
1580
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
1581
+ updatedAt?: number | undefined;
1582
+ error?: string | undefined;
1583
+ } | undefined;
1584
+ profileManifest?: {
1585
+ updatedAt: number;
1586
+ source: "huggingface";
1587
+ revision: string;
1588
+ commitHash: string;
1589
+ shortCommitHash: string;
1590
+ modelId: string;
1591
+ fetchedAt: number;
1592
+ raw?: unknown;
1593
+ endpoint?: string | undefined;
1594
+ groups?: Record<string, {
1595
+ id: string;
1596
+ label: string;
1597
+ baseGroupId: string;
1598
+ commitHash: string;
1599
+ shortCommitHash: string;
1600
+ rootDir: string;
1601
+ selectable: boolean;
1602
+ files: {
1603
+ path: string;
1604
+ required: boolean;
1605
+ sizeBytes?: number | undefined;
1606
+ etag?: string | undefined;
1607
+ revision?: string | undefined;
1608
+ sourceUrl?: string | undefined;
1609
+ raw?: unknown;
1610
+ }[];
1611
+ displayLabel: string;
1612
+ description?: string | undefined;
1613
+ profile?: string | undefined;
1614
+ dtype?: string | undefined;
1615
+ estimatedTotalBytes?: number | undefined;
1616
+ }> | undefined;
1617
+ groupOrder?: string[] | undefined;
1618
+ } | undefined;
1619
+ groupsState?: Record<string, {
1620
+ groupId: string;
1621
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1622
+ updatedAt?: number | undefined;
1623
+ error?: string | undefined;
1624
+ baseGroupId?: string | undefined;
1625
+ rootDir?: string | undefined;
1626
+ progress?: number | undefined;
1627
+ bytesDownloaded?: number | undefined;
1628
+ totalBytes?: number | undefined;
1629
+ resumable?: boolean | undefined;
1630
+ files?: {
1631
+ path: string;
1632
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1633
+ updatedAt?: number | undefined;
1634
+ required?: boolean | undefined;
1635
+ error?: string | undefined;
1636
+ sizeBytes?: number | undefined;
1637
+ downloadedBytes?: number | undefined;
1638
+ }[] | undefined;
1639
+ installedAt?: number | undefined;
1640
+ }> | undefined;
1641
+ plan?: {
1642
+ files: {
1643
+ path: string;
1644
+ required: boolean;
1645
+ sizeBytes?: number | undefined;
1646
+ etag?: string | undefined;
1647
+ revision?: string | undefined;
1648
+ sourceUrl?: string | undefined;
1649
+ raw?: unknown;
1650
+ }[];
1651
+ modelId: string;
1652
+ selectedGroupId?: string | undefined;
1653
+ profile?: string | undefined;
1654
+ estimatedTotalBytes?: number | undefined;
1655
+ groups?: {
1656
+ id: string;
1657
+ label: string;
1658
+ selectable: boolean;
1659
+ selected: boolean;
1660
+ files: {
1661
+ path: string;
1662
+ required: boolean;
1663
+ sizeBytes?: number | undefined;
1664
+ etag?: string | undefined;
1665
+ revision?: string | undefined;
1666
+ sourceUrl?: string | undefined;
1667
+ raw?: unknown;
1668
+ }[];
1669
+ status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1670
+ error?: string | undefined;
1671
+ description?: string | undefined;
1672
+ profile?: string | undefined;
1673
+ dtype?: string | undefined;
1674
+ estimatedTotalBytes?: number | undefined;
1675
+ baseGroupId?: string | undefined;
1676
+ commitHash?: string | undefined;
1677
+ shortCommitHash?: string | undefined;
1678
+ rootDir?: string | undefined;
1679
+ progress?: number | undefined;
1680
+ bytesDownloaded?: number | undefined;
1681
+ totalBytes?: number | undefined;
1682
+ resumable?: boolean | undefined;
1683
+ }[] | undefined;
1684
+ } | undefined;
1685
+ }>;
1686
+ type LocalModelAssetState = z.infer<typeof LocalModelAssetStateSchema>;
1687
+ interface LocalModelCatalogItem extends TranslationModelCandidate {
1688
+ asset: LocalModelAssetState;
1689
+ selectable: boolean;
1690
+ local: boolean;
1691
+ }
1692
+ interface LocalModelCatalogResult {
1693
+ items: LocalModelCatalogItem[];
1694
+ nextCursor?: string;
1695
+ }
1696
+ interface LocalModelCatalogSearchEvent {
1697
+ requestId: string;
1698
+ phase: TranslationModelSearchPhase;
1699
+ items?: LocalModelCatalogItem[];
1700
+ nextCursor?: string;
1701
+ message?: string;
1702
+ }
1703
+ interface LocalModelCatalogLocalResult {
1704
+ items: LocalModelCatalogItem[];
1705
+ }
1706
+ interface TranslatorFactoryPrepareOptions extends TranslatorFactoryCreateOptions {
1707
+ monitor?: TranslatorPrepareMonitor;
1708
+ }
1709
+ interface TranslatorFactoryCreateOptions {
1710
+ sourceLanguage: string;
1711
+ targetLanguage: string;
1712
+ model?: string;
1713
+ dtype?: string;
1714
+ runtimeConfig?: Record<string, unknown>;
1715
+ signal?: AbortSignal;
1716
+ monitor?: TranslatorCreateMonitor;
1717
+ }
1718
+ interface TranslatorFactory {
1719
+ prepare?(options: TranslatorFactoryPrepareOptions): Promise<void>;
1720
+ create(options: TranslatorFactoryCreateOptions): Promise<Translator>;
1721
+ }
1722
+ type TranslationEngineRuntime = 'browser' | 'server';
1723
+ interface TranslationEngineManifest {
1724
+ id: TranslationEngineId;
1725
+ label: string;
1726
+ description: string;
1727
+ technicalSummary: string;
1728
+ runtime: TranslationEngineRuntime;
1729
+ moduleName?: string;
1730
+ factoryExport?: string;
1731
+ }
1732
+ declare const TRANSLATION_ENGINE_MANIFESTS: readonly [{
1733
+ readonly id: "browser";
1734
+ readonly label: "Browser";
1735
+ readonly description: "Uses the browser Translator API and future browser-side providers.";
1736
+ readonly technicalSummary: "Browser-native Web Translator adapter. Package payload is about 5 KB; browser language packs are managed by the browser.";
1737
+ readonly runtime: "browser";
1738
+ readonly moduleName: "@openspecui/browser-translator";
1739
+ readonly factoryExport: "createBrowserTranslatorFactory";
1740
+ }, {
1741
+ readonly id: "local";
1742
+ readonly label: "Local-Transformers";
1743
+ readonly description: "Runs a bundled local Transformers.js translation runtime with managed model files.";
1744
+ readonly technicalSummary: "Server-side Transformers.js local adapter. Package payload is about 5 KB; selected model groups are downloaded separately and can range from tens to hundreds of MB.";
1745
+ readonly runtime: "server";
1746
+ readonly moduleName: "@openspecui/local-translator";
1747
+ readonly factoryExport: "createLocalTranslatorFactory";
1748
+ }, {
1749
+ readonly id: "openai";
1750
+ readonly label: "OpenAI-Completion";
1751
+ readonly description: "Uses an OpenAI-compatible TanStack AI completion provider for context-aware translation.";
1752
+ readonly technicalSummary: "Server-side TanStack AI adapter for OpenAI-compatible APIs. Package payload is about 5 KB; model size stays with the remote provider.";
1753
+ readonly runtime: "server";
1754
+ readonly moduleName: "@openspecui/openai-completion-translator";
1755
+ readonly factoryExport: "createOpenAICompletionTranslatorFactory";
1756
+ }];
1757
+ declare function getTranslationEngineManifest(engineId: TranslationEngineId): TranslationEngineManifest;
1758
+ declare const TranslationOpenAISettingsSchema: z.ZodObject<{
1759
+ baseUrl: z.ZodDefault<z.ZodString>;
1760
+ token: z.ZodDefault<z.ZodString>;
1761
+ model: z.ZodDefault<z.ZodString>;
1762
+ }, "strip", z.ZodTypeAny, {
1763
+ model: string;
1764
+ baseUrl: string;
1765
+ token: string;
1766
+ }, {
1767
+ model?: string | undefined;
1768
+ baseUrl?: string | undefined;
1769
+ token?: string | undefined;
1770
+ }>;
1771
+ type TranslationOpenAISettings = z.infer<typeof TranslationOpenAISettingsSchema>;
1772
+ declare const TranslationLocalSettingsSchema: z.ZodObject<{
1773
+ model: z.ZodDefault<z.ZodString>;
1774
+ selectedGroupId: z.ZodOptional<z.ZodString>;
1775
+ hfEndpoint: z.ZodDefault<z.ZodString>;
1776
+ }, "strip", z.ZodTypeAny, {
1777
+ model: string;
1778
+ hfEndpoint: string;
1779
+ selectedGroupId?: string | undefined;
1780
+ }, {
1781
+ model?: string | undefined;
1782
+ selectedGroupId?: string | undefined;
1783
+ hfEndpoint?: string | undefined;
1784
+ }>;
1785
+ type TranslationLocalSettings = z.infer<typeof TranslationLocalSettingsSchema>;
1786
+ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
1787
+ openai: z.ZodDefault<z.ZodObject<{
1788
+ baseUrl: z.ZodDefault<z.ZodString>;
1789
+ token: z.ZodDefault<z.ZodString>;
1790
+ model: z.ZodDefault<z.ZodString>;
1791
+ }, "strip", z.ZodTypeAny, {
1792
+ model: string;
1793
+ baseUrl: string;
1794
+ token: string;
1795
+ }, {
1796
+ model?: string | undefined;
1797
+ baseUrl?: string | undefined;
1798
+ token?: string | undefined;
1799
+ }>>;
1800
+ local: z.ZodDefault<z.ZodObject<{
1801
+ model: z.ZodDefault<z.ZodString>;
1802
+ selectedGroupId: z.ZodOptional<z.ZodString>;
1803
+ hfEndpoint: z.ZodDefault<z.ZodString>;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ model: string;
1806
+ hfEndpoint: string;
1807
+ selectedGroupId?: string | undefined;
1808
+ }, {
1809
+ model?: string | undefined;
1810
+ selectedGroupId?: string | undefined;
1811
+ hfEndpoint?: string | undefined;
1812
+ }>>;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ local: {
1815
+ model: string;
1816
+ hfEndpoint: string;
1817
+ selectedGroupId?: string | undefined;
1818
+ };
1819
+ openai: {
1820
+ model: string;
1821
+ baseUrl: string;
1822
+ token: string;
1823
+ };
1824
+ }, {
1825
+ local?: {
1826
+ model?: string | undefined;
1827
+ selectedGroupId?: string | undefined;
1828
+ hfEndpoint?: string | undefined;
1829
+ } | undefined;
1830
+ openai?: {
1831
+ model?: string | undefined;
1832
+ baseUrl?: string | undefined;
1833
+ token?: string | undefined;
1834
+ } | undefined;
1835
+ }>;
1836
+ type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
1837
+ type TranslationEngineGlobalSettingsUpdate = {
1838
+ openai?: Partial<TranslationOpenAISettings>;
1839
+ local?: Partial<Omit<TranslationLocalSettings, 'selectedGroupId'>> & {
1840
+ selectedGroupId?: TranslationLocalSettings['selectedGroupId'] | null;
1841
+ };
1842
+ };
1843
+ declare const BatchTranslateInputSchema: z.ZodObject<{
1844
+ engineId: z.ZodEnum<["browser", "local", "openai"]>;
1845
+ sourceLanguage: z.ZodString;
1846
+ targetLanguage: z.ZodString;
1847
+ model: z.ZodOptional<z.ZodString>;
1848
+ selectedGroupId: z.ZodOptional<z.ZodString>;
1849
+ inputs: z.ZodArray<z.ZodString, "many">;
1850
+ instructions: z.ZodOptional<z.ZodString>;
1851
+ context: z.ZodOptional<z.ZodString>;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ targetLanguage: string;
1854
+ engineId: "local" | "openai" | "browser";
1855
+ sourceLanguage: string;
1856
+ inputs: string[];
1857
+ model?: string | undefined;
1858
+ selectedGroupId?: string | undefined;
1859
+ instructions?: string | undefined;
1860
+ context?: string | undefined;
1861
+ }, {
1862
+ targetLanguage: string;
1863
+ engineId: "local" | "openai" | "browser";
1864
+ sourceLanguage: string;
1865
+ inputs: string[];
1866
+ model?: string | undefined;
1867
+ selectedGroupId?: string | undefined;
1868
+ instructions?: string | undefined;
1869
+ context?: string | undefined;
1870
+ }>;
1871
+ type BatchTranslateInput = z.infer<typeof BatchTranslateInputSchema>;
1872
+ declare const BatchTranslateEventSchema: z.ZodObject<{
1873
+ index: z.ZodNumber;
1874
+ output: z.ZodString;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ index: number;
1877
+ output: string;
1878
+ }, {
1879
+ index: number;
1880
+ output: string;
1881
+ }>;
1882
+ type BatchTranslateEvent = z.infer<typeof BatchTranslateEventSchema>;
1883
+ //#endregion
1884
+ export { TranslationModelDownloadPlan as $, LocalModelProfileManifestSchema as A, TranslationDownloadFilePlanSchema as B, LocalModelProfileLoadState as C, LocalModelProfileManifestFileSchema as D, LocalModelProfileManifestFile as E, ServiceTranslationEngineIdSchema as F, TranslationEngineGlobalSettingsUpdate as G, TranslationDownloadGroupPlanSchema as H, TRANSLATION_ENGINE_IDS as I, TranslationEngineManifest as J, TranslationEngineId as K, TRANSLATION_ENGINE_MANIFESTS as L, LocalModelProfileStatusSchema as M, SERVICE_TRANSLATION_ENGINE_IDS as N, LocalModelProfileManifestGroup as O, ServiceTranslationEngineId as P, TranslationModelCandidate as Q, TRANSLATOR_CONTRACT_VERSION as R, LocalModelLifecycleGroupStateSchema as S, LocalModelProfileManifest as T, TranslationEngineGlobalSettings as U, TranslationDownloadGroupPlan as V, TranslationEngineGlobalSettingsSchema as W, TranslationLocalSettings as X, TranslationEngineRuntime as Y, TranslationLocalSettingsSchema as Z, LocalModelDownloadStatus as _, BatchTranslationResult as a, TranslationOpenAISettingsSchema as at, LocalModelLifecycleFileStateSchema as b, LocalModelAssetLogSchema as c, TranslatorFactory as ct, LocalModelAssetState as d, TranslatorOptions as dt, TranslationModelSearchEvent as et, LocalModelAssetStateSchema as f, TranslatorPrepareMonitor as ft, LocalModelCatalogSearchEvent as g, LocalModelCatalogResult as h, BatchTranslateInputSchema as i, TranslationOpenAISettings as it, LocalModelProfileStatus as j, LocalModelProfileManifestGroupSchema as k, LocalModelAssetPlanSnapshot as l, TranslatorFactoryCreateOptions as lt, LocalModelCatalogLocalResult as m, BatchTranslateEventSchema as n, TranslationModelSearchPhase as nt, DEFAULT_TRANSLATION_ENGINE_ID as o, Translator as ot, LocalModelCatalogItem as p, getTranslationEngineManifest as pt, TranslationEngineIdSchema as q, BatchTranslateInput as r, TranslationModelSearchResult as rt, LocalModelAssetLog as s, TranslatorCreateMonitor as st, BatchTranslateEvent as t, TranslationModelSearchInput as tt, LocalModelAssetPlanSnapshotSchema as u, TranslatorFactoryPrepareOptions as ut, LocalModelDownloadStatusSchema as v, LocalModelProfileLoadStateSchema as w, LocalModelLifecycleGroupState as x, LocalModelLifecycleFileState as y, TranslationDownloadFilePlan as z };