@camstack/types 1.2.75 → 1.2.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.d.ts +19 -18
- package/dist/addon.js +59 -56
- package/dist/addon.mjs +59 -57
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/battery.cap.d.ts +4 -4
- package/dist/capabilities/custom-model-registry.cap.d.ts +4 -4
- package/dist/capabilities/decoder.cap.d.ts +2 -2
- package/dist/capabilities/face-gallery.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/lawn-mower-control.cap.d.ts +4 -4
- package/dist/capabilities/llm-runtime.cap.d.ts +121 -3
- package/dist/capabilities/llm.cap.d.ts +189 -4
- package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +6 -6
- package/dist/capabilities/model-distributor.cap.d.ts +4 -4
- package/dist/capabilities/notification-output.cap.d.ts +9 -9
- package/dist/capabilities/notification-rules.cap.d.ts +11 -11
- package/dist/capabilities/osd-manager.cap.d.ts +6 -6
- package/dist/capabilities/pipeline-analytics.cap.d.ts +39 -39
- package/dist/capabilities/pipeline-executor.cap.d.ts +7 -7
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +6 -6
- package/dist/capabilities/pipeline-runner.cap.d.ts +2 -0
- package/dist/capabilities/platform-probe.cap.d.ts +2 -2
- package/dist/capabilities/recording.cap.d.ts +3 -3
- package/dist/capabilities/stream-broker.cap.d.ts +6 -6
- package/dist/device/base-device-provider.d.ts +9 -0
- package/dist/encode-profile.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +188 -7
- package/dist/index.mjs +185 -8
- package/dist/interfaces/recording-config.d.ts +2 -2
- package/dist/interfaces/stream-broker.d.ts +9 -1
- package/dist/{sleep-CQayd2Su.mjs → sleep-BfRjZ3C3.mjs} +37 -1
- package/dist/{sleep-B-mRsuDp.js → sleep-DslGLq5_.js} +42 -0
- package/dist/types/models.d.ts +7 -7
- package/dist/util/boot-recovery-backoff.d.ts +26 -0
- package/package.json +1 -1
|
@@ -11,6 +11,19 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
import { type InferProvider } from './capability-definition.js';
|
|
14
|
+
/**
|
|
15
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
16
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
17
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
18
|
+
* the preview is exactly what the node downloads.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ManagedModelExtraFileSchema: z.ZodObject<{
|
|
21
|
+
url: z.ZodString;
|
|
22
|
+
filename: z.ZodString;
|
|
23
|
+
sizeBytes: z.ZodNumber;
|
|
24
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type ManagedModelExtraFile = z.infer<typeof ManagedModelExtraFileSchema>;
|
|
14
27
|
export declare const ManagedModelRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
28
|
kind: z.ZodLiteral<"catalog">;
|
|
16
29
|
catalogId: z.ZodString;
|
|
@@ -18,6 +31,14 @@ export declare const ManagedModelRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
18
31
|
kind: z.ZodLiteral<"url">;
|
|
19
32
|
url: z.ZodString;
|
|
20
33
|
sha256: z.ZodOptional<z.ZodString>;
|
|
34
|
+
label: z.ZodOptional<z.ZodString>;
|
|
35
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
filename: z.ZodString;
|
|
39
|
+
sizeBytes: z.ZodNumber;
|
|
40
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
21
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
43
|
kind: z.ZodLiteral<"path">;
|
|
23
44
|
path: z.ZodString;
|
|
@@ -35,6 +56,14 @@ export declare const ManagedRuntimeConfigSchema: z.ZodObject<{
|
|
|
35
56
|
kind: z.ZodLiteral<"url">;
|
|
36
57
|
url: z.ZodString;
|
|
37
58
|
sha256: z.ZodOptional<z.ZodString>;
|
|
59
|
+
label: z.ZodOptional<z.ZodString>;
|
|
60
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
url: z.ZodString;
|
|
63
|
+
filename: z.ZodString;
|
|
64
|
+
sizeBytes: z.ZodNumber;
|
|
65
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>>>;
|
|
38
67
|
}, z.core.$strip>, z.ZodObject<{
|
|
39
68
|
kind: z.ZodLiteral<"path">;
|
|
40
69
|
path: z.ZodString;
|
|
@@ -66,10 +95,29 @@ export declare const ManagedRuntimeConfigSchema: z.ZodObject<{
|
|
|
66
95
|
q4_1: "q4_1";
|
|
67
96
|
q4_0: "q4_0";
|
|
68
97
|
}>>;
|
|
98
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
69
99
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
70
100
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
71
101
|
}, z.core.$strip>;
|
|
72
102
|
export type ManagedRuntimeConfig = z.infer<typeof ManagedRuntimeConfigSchema>;
|
|
103
|
+
/**
|
|
104
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
105
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
106
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
107
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
108
|
+
*/
|
|
109
|
+
export declare const LlmDownloadProgressSchema: z.ZodObject<{
|
|
110
|
+
phase: z.ZodEnum<{
|
|
111
|
+
verifying: "verifying";
|
|
112
|
+
downloading: "downloading";
|
|
113
|
+
}>;
|
|
114
|
+
file: z.ZodString;
|
|
115
|
+
fileIndex: z.ZodNumber;
|
|
116
|
+
fileCount: z.ZodNumber;
|
|
117
|
+
downloadedBytes: z.ZodNumber;
|
|
118
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type LlmDownloadProgress = z.infer<typeof LlmDownloadProgressSchema>;
|
|
73
121
|
export declare const LlmRuntimeStatusSchema: z.ZodObject<{
|
|
74
122
|
nodeId: z.ZodString;
|
|
75
123
|
state: z.ZodEnum<{
|
|
@@ -77,14 +125,25 @@ export declare const LlmRuntimeStatusSchema: z.ZodObject<{
|
|
|
77
125
|
stopped: "stopped";
|
|
78
126
|
starting: "starting";
|
|
79
127
|
ready: "ready";
|
|
80
|
-
downloading: "downloading";
|
|
81
128
|
crashed: "crashed";
|
|
129
|
+
downloading: "downloading";
|
|
82
130
|
}>;
|
|
83
131
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
84
132
|
port: z.ZodOptional<z.ZodNumber>;
|
|
85
133
|
modelPath: z.ZodOptional<z.ZodString>;
|
|
86
134
|
modelId: z.ZodOptional<z.ZodString>;
|
|
87
135
|
downloadProgress: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
download: z.ZodOptional<z.ZodObject<{
|
|
137
|
+
phase: z.ZodEnum<{
|
|
138
|
+
verifying: "verifying";
|
|
139
|
+
downloading: "downloading";
|
|
140
|
+
}>;
|
|
141
|
+
file: z.ZodString;
|
|
142
|
+
fileIndex: z.ZodNumber;
|
|
143
|
+
fileCount: z.ZodNumber;
|
|
144
|
+
downloadedBytes: z.ZodNumber;
|
|
145
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
88
147
|
lastError: z.ZodOptional<z.ZodString>;
|
|
89
148
|
crashesInWindow: z.ZodNumber;
|
|
90
149
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -96,6 +155,7 @@ export declare const LlmNodeModelSchema: z.ZodObject<{
|
|
|
96
155
|
sizeBytes: z.ZodNumber;
|
|
97
156
|
catalogId: z.ZodOptional<z.ZodString>;
|
|
98
157
|
installedAt: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
path: z.ZodOptional<z.ZodString>;
|
|
99
159
|
}, z.core.$strip>;
|
|
100
160
|
export type LlmNodeModel = z.infer<typeof LlmNodeModelSchema>;
|
|
101
161
|
export declare const LlmRuntimeDiskUsageSchema: z.ZodObject<{
|
|
@@ -136,6 +196,14 @@ export declare const LlmRuntimeCompleteInputSchema: z.ZodObject<{
|
|
|
136
196
|
kind: z.ZodLiteral<"url">;
|
|
137
197
|
url: z.ZodString;
|
|
138
198
|
sha256: z.ZodOptional<z.ZodString>;
|
|
199
|
+
label: z.ZodOptional<z.ZodString>;
|
|
200
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
202
|
+
url: z.ZodString;
|
|
203
|
+
filename: z.ZodString;
|
|
204
|
+
sizeBytes: z.ZodNumber;
|
|
205
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>>>;
|
|
139
207
|
}, z.core.$strip>, z.ZodObject<{
|
|
140
208
|
kind: z.ZodLiteral<"path">;
|
|
141
209
|
path: z.ZodString;
|
|
@@ -167,6 +235,7 @@ export declare const LlmRuntimeCompleteInputSchema: z.ZodObject<{
|
|
|
167
235
|
q4_1: "q4_1";
|
|
168
236
|
q4_0: "q4_0";
|
|
169
237
|
}>>;
|
|
238
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
170
239
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
171
240
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
172
241
|
}, z.core.$strip>;
|
|
@@ -211,6 +280,14 @@ export declare const llmRuntimeCapability: {
|
|
|
211
280
|
kind: z.ZodLiteral<"url">;
|
|
212
281
|
url: z.ZodString;
|
|
213
282
|
sha256: z.ZodOptional<z.ZodString>;
|
|
283
|
+
label: z.ZodOptional<z.ZodString>;
|
|
284
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
286
|
+
url: z.ZodString;
|
|
287
|
+
filename: z.ZodString;
|
|
288
|
+
sizeBytes: z.ZodNumber;
|
|
289
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
290
|
+
}, z.core.$strip>>>;
|
|
214
291
|
}, z.core.$strip>, z.ZodObject<{
|
|
215
292
|
kind: z.ZodLiteral<"path">;
|
|
216
293
|
path: z.ZodString;
|
|
@@ -242,6 +319,7 @@ export declare const llmRuntimeCapability: {
|
|
|
242
319
|
q4_1: "q4_1";
|
|
243
320
|
q4_0: "q4_0";
|
|
244
321
|
}>>;
|
|
322
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
245
323
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
246
324
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
247
325
|
}, z.core.$strip>;
|
|
@@ -285,6 +363,14 @@ export declare const llmRuntimeCapability: {
|
|
|
285
363
|
kind: z.ZodLiteral<"url">;
|
|
286
364
|
url: z.ZodString;
|
|
287
365
|
sha256: z.ZodOptional<z.ZodString>;
|
|
366
|
+
label: z.ZodOptional<z.ZodString>;
|
|
367
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
368
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
369
|
+
url: z.ZodString;
|
|
370
|
+
filename: z.ZodString;
|
|
371
|
+
sizeBytes: z.ZodNumber;
|
|
372
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strip>>>;
|
|
288
374
|
}, z.core.$strip>, z.ZodObject<{
|
|
289
375
|
kind: z.ZodLiteral<"path">;
|
|
290
376
|
path: z.ZodString;
|
|
@@ -316,6 +402,7 @@ export declare const llmRuntimeCapability: {
|
|
|
316
402
|
q4_1: "q4_1";
|
|
317
403
|
q4_0: "q4_0";
|
|
318
404
|
}>>;
|
|
405
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
319
406
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
320
407
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
321
408
|
}, z.core.$strip>;
|
|
@@ -326,14 +413,25 @@ export declare const llmRuntimeCapability: {
|
|
|
326
413
|
stopped: "stopped";
|
|
327
414
|
starting: "starting";
|
|
328
415
|
ready: "ready";
|
|
329
|
-
downloading: "downloading";
|
|
330
416
|
crashed: "crashed";
|
|
417
|
+
downloading: "downloading";
|
|
331
418
|
}>;
|
|
332
419
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
333
420
|
port: z.ZodOptional<z.ZodNumber>;
|
|
334
421
|
modelPath: z.ZodOptional<z.ZodString>;
|
|
335
422
|
modelId: z.ZodOptional<z.ZodString>;
|
|
336
423
|
downloadProgress: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
download: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
phase: z.ZodEnum<{
|
|
426
|
+
verifying: "verifying";
|
|
427
|
+
downloading: "downloading";
|
|
428
|
+
}>;
|
|
429
|
+
file: z.ZodString;
|
|
430
|
+
fileIndex: z.ZodNumber;
|
|
431
|
+
fileCount: z.ZodNumber;
|
|
432
|
+
downloadedBytes: z.ZodNumber;
|
|
433
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
}, z.core.$strip>>;
|
|
337
435
|
lastError: z.ZodOptional<z.ZodString>;
|
|
338
436
|
crashesInWindow: z.ZodNumber;
|
|
339
437
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -347,14 +445,25 @@ export declare const llmRuntimeCapability: {
|
|
|
347
445
|
stopped: "stopped";
|
|
348
446
|
starting: "starting";
|
|
349
447
|
ready: "ready";
|
|
350
|
-
downloading: "downloading";
|
|
351
448
|
crashed: "crashed";
|
|
449
|
+
downloading: "downloading";
|
|
352
450
|
}>;
|
|
353
451
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
354
452
|
port: z.ZodOptional<z.ZodNumber>;
|
|
355
453
|
modelPath: z.ZodOptional<z.ZodString>;
|
|
356
454
|
modelId: z.ZodOptional<z.ZodString>;
|
|
357
455
|
downloadProgress: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
download: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
phase: z.ZodEnum<{
|
|
458
|
+
verifying: "verifying";
|
|
459
|
+
downloading: "downloading";
|
|
460
|
+
}>;
|
|
461
|
+
file: z.ZodString;
|
|
462
|
+
fileIndex: z.ZodNumber;
|
|
463
|
+
fileCount: z.ZodNumber;
|
|
464
|
+
downloadedBytes: z.ZodNumber;
|
|
465
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
}, z.core.$strip>>;
|
|
358
467
|
lastError: z.ZodOptional<z.ZodString>;
|
|
359
468
|
crashesInWindow: z.ZodNumber;
|
|
360
469
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -368,6 +477,14 @@ export declare const llmRuntimeCapability: {
|
|
|
368
477
|
kind: z.ZodLiteral<"url">;
|
|
369
478
|
url: z.ZodString;
|
|
370
479
|
sha256: z.ZodOptional<z.ZodString>;
|
|
480
|
+
label: z.ZodOptional<z.ZodString>;
|
|
481
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
482
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
483
|
+
url: z.ZodString;
|
|
484
|
+
filename: z.ZodString;
|
|
485
|
+
sizeBytes: z.ZodNumber;
|
|
486
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, z.core.$strip>>>;
|
|
371
488
|
}, z.core.$strip>, z.ZodObject<{
|
|
372
489
|
kind: z.ZodLiteral<"path">;
|
|
373
490
|
path: z.ZodString;
|
|
@@ -381,6 +498,7 @@ export declare const llmRuntimeCapability: {
|
|
|
381
498
|
sizeBytes: z.ZodNumber;
|
|
382
499
|
catalogId: z.ZodOptional<z.ZodString>;
|
|
383
500
|
installedAt: z.ZodOptional<z.ZodNumber>;
|
|
501
|
+
path: z.ZodOptional<z.ZodString>;
|
|
384
502
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
385
503
|
readonly getDiskUsage: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
386
504
|
nodeId: z.ZodString;
|
|
@@ -64,6 +64,14 @@ export declare const LlmProfileSchema: z.ZodObject<{
|
|
|
64
64
|
kind: z.ZodLiteral<"url">;
|
|
65
65
|
url: z.ZodString;
|
|
66
66
|
sha256: z.ZodOptional<z.ZodString>;
|
|
67
|
+
label: z.ZodOptional<z.ZodString>;
|
|
68
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
url: z.ZodString;
|
|
71
|
+
filename: z.ZodString;
|
|
72
|
+
sizeBytes: z.ZodNumber;
|
|
73
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
67
75
|
}, z.core.$strip>, z.ZodObject<{
|
|
68
76
|
kind: z.ZodLiteral<"path">;
|
|
69
77
|
path: z.ZodString;
|
|
@@ -95,6 +103,7 @@ export declare const LlmProfileSchema: z.ZodObject<{
|
|
|
95
103
|
q4_1: "q4_1";
|
|
96
104
|
q4_0: "q4_0";
|
|
97
105
|
}>>;
|
|
106
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
107
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
99
108
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
100
109
|
}, z.core.$strip>>;
|
|
@@ -168,6 +177,53 @@ export declare const ManagedModelCatalogEntrySchema: z.ZodObject<{
|
|
|
168
177
|
mmprojUrl: z.ZodOptional<z.ZodString>;
|
|
169
178
|
}, z.core.$strip>;
|
|
170
179
|
export type ManagedModelCatalogEntry = z.infer<typeof ManagedModelCatalogEntrySchema>;
|
|
180
|
+
/**
|
|
181
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
182
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
183
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
184
|
+
* exception.
|
|
185
|
+
*
|
|
186
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
187
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
188
|
+
*/
|
|
189
|
+
export declare const HfModelResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
|
+
ok: z.ZodLiteral<true>;
|
|
191
|
+
model: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
|
+
kind: z.ZodLiteral<"catalog">;
|
|
193
|
+
catalogId: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
kind: z.ZodLiteral<"url">;
|
|
196
|
+
url: z.ZodString;
|
|
197
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
198
|
+
label: z.ZodOptional<z.ZodString>;
|
|
199
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
201
|
+
url: z.ZodString;
|
|
202
|
+
filename: z.ZodString;
|
|
203
|
+
sizeBytes: z.ZodNumber;
|
|
204
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>>>;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
kind: z.ZodLiteral<"path">;
|
|
208
|
+
path: z.ZodString;
|
|
209
|
+
}, z.core.$strip>], "kind">;
|
|
210
|
+
label: z.ZodString;
|
|
211
|
+
repo: z.ZodString;
|
|
212
|
+
quantization: z.ZodString;
|
|
213
|
+
purpose: z.ZodEnum<{
|
|
214
|
+
text: "text";
|
|
215
|
+
vision: "vision";
|
|
216
|
+
}>;
|
|
217
|
+
totalBytes: z.ZodNumber;
|
|
218
|
+
extraFilenames: z.ZodArray<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
ok: z.ZodLiteral<false>;
|
|
221
|
+
code: z.ZodString;
|
|
222
|
+
message: z.ZodString;
|
|
223
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
}, z.core.$strip>], "ok">;
|
|
226
|
+
export type HfModelResolution = z.infer<typeof HfModelResolutionSchema>;
|
|
171
227
|
export declare const LlmRuntimeNodeSchema: z.ZodObject<{
|
|
172
228
|
nodeId: z.ZodString;
|
|
173
229
|
reachable: z.ZodBoolean;
|
|
@@ -178,14 +234,25 @@ export declare const LlmRuntimeNodeSchema: z.ZodObject<{
|
|
|
178
234
|
stopped: "stopped";
|
|
179
235
|
starting: "starting";
|
|
180
236
|
ready: "ready";
|
|
181
|
-
downloading: "downloading";
|
|
182
237
|
crashed: "crashed";
|
|
238
|
+
downloading: "downloading";
|
|
183
239
|
}>;
|
|
184
240
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
185
241
|
port: z.ZodOptional<z.ZodNumber>;
|
|
186
242
|
modelPath: z.ZodOptional<z.ZodString>;
|
|
187
243
|
modelId: z.ZodOptional<z.ZodString>;
|
|
188
244
|
downloadProgress: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
download: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
phase: z.ZodEnum<{
|
|
247
|
+
verifying: "verifying";
|
|
248
|
+
downloading: "downloading";
|
|
249
|
+
}>;
|
|
250
|
+
file: z.ZodString;
|
|
251
|
+
fileIndex: z.ZodNumber;
|
|
252
|
+
fileCount: z.ZodNumber;
|
|
253
|
+
downloadedBytes: z.ZodNumber;
|
|
254
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
}, z.core.$strip>>;
|
|
189
256
|
lastError: z.ZodOptional<z.ZodString>;
|
|
190
257
|
crashesInWindow: z.ZodNumber;
|
|
191
258
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -366,6 +433,14 @@ export declare const llmCapability: {
|
|
|
366
433
|
kind: z.ZodLiteral<"url">;
|
|
367
434
|
url: z.ZodString;
|
|
368
435
|
sha256: z.ZodOptional<z.ZodString>;
|
|
436
|
+
label: z.ZodOptional<z.ZodString>;
|
|
437
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
438
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
439
|
+
url: z.ZodString;
|
|
440
|
+
filename: z.ZodString;
|
|
441
|
+
sizeBytes: z.ZodNumber;
|
|
442
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
443
|
+
}, z.core.$strip>>>;
|
|
369
444
|
}, z.core.$strip>, z.ZodObject<{
|
|
370
445
|
kind: z.ZodLiteral<"path">;
|
|
371
446
|
path: z.ZodString;
|
|
@@ -397,6 +472,7 @@ export declare const llmCapability: {
|
|
|
397
472
|
q4_1: "q4_1";
|
|
398
473
|
q4_0: "q4_0";
|
|
399
474
|
}>>;
|
|
475
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
400
476
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
401
477
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
402
478
|
}, z.core.$strip>>;
|
|
@@ -446,6 +522,14 @@ export declare const llmCapability: {
|
|
|
446
522
|
kind: z.ZodLiteral<"url">;
|
|
447
523
|
url: z.ZodString;
|
|
448
524
|
sha256: z.ZodOptional<z.ZodString>;
|
|
525
|
+
label: z.ZodOptional<z.ZodString>;
|
|
526
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
528
|
+
url: z.ZodString;
|
|
529
|
+
filename: z.ZodString;
|
|
530
|
+
sizeBytes: z.ZodNumber;
|
|
531
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
532
|
+
}, z.core.$strip>>>;
|
|
449
533
|
}, z.core.$strip>, z.ZodObject<{
|
|
450
534
|
kind: z.ZodLiteral<"path">;
|
|
451
535
|
path: z.ZodString;
|
|
@@ -477,6 +561,7 @@ export declare const llmCapability: {
|
|
|
477
561
|
q4_1: "q4_1";
|
|
478
562
|
q4_0: "q4_0";
|
|
479
563
|
}>>;
|
|
564
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
480
565
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
481
566
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
482
567
|
}, z.core.$strip>>;
|
|
@@ -525,6 +610,14 @@ export declare const llmCapability: {
|
|
|
525
610
|
kind: z.ZodLiteral<"url">;
|
|
526
611
|
url: z.ZodString;
|
|
527
612
|
sha256: z.ZodOptional<z.ZodString>;
|
|
613
|
+
label: z.ZodOptional<z.ZodString>;
|
|
614
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
616
|
+
url: z.ZodString;
|
|
617
|
+
filename: z.ZodString;
|
|
618
|
+
sizeBytes: z.ZodNumber;
|
|
619
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
620
|
+
}, z.core.$strip>>>;
|
|
528
621
|
}, z.core.$strip>, z.ZodObject<{
|
|
529
622
|
kind: z.ZodLiteral<"path">;
|
|
530
623
|
path: z.ZodString;
|
|
@@ -556,6 +649,7 @@ export declare const llmCapability: {
|
|
|
556
649
|
q4_1: "q4_1";
|
|
557
650
|
q4_0: "q4_0";
|
|
558
651
|
}>>;
|
|
652
|
+
extraArgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
559
653
|
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
560
654
|
idleStopMinutes: z.ZodDefault<z.ZodNumber>;
|
|
561
655
|
}, z.core.$strip>>;
|
|
@@ -662,14 +756,25 @@ export declare const llmCapability: {
|
|
|
662
756
|
stopped: "stopped";
|
|
663
757
|
starting: "starting";
|
|
664
758
|
ready: "ready";
|
|
665
|
-
downloading: "downloading";
|
|
666
759
|
crashed: "crashed";
|
|
760
|
+
downloading: "downloading";
|
|
667
761
|
}>;
|
|
668
762
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
669
763
|
port: z.ZodOptional<z.ZodNumber>;
|
|
670
764
|
modelPath: z.ZodOptional<z.ZodString>;
|
|
671
765
|
modelId: z.ZodOptional<z.ZodString>;
|
|
672
766
|
downloadProgress: z.ZodOptional<z.ZodNumber>;
|
|
767
|
+
download: z.ZodOptional<z.ZodObject<{
|
|
768
|
+
phase: z.ZodEnum<{
|
|
769
|
+
verifying: "verifying";
|
|
770
|
+
downloading: "downloading";
|
|
771
|
+
}>;
|
|
772
|
+
file: z.ZodString;
|
|
773
|
+
fileIndex: z.ZodNumber;
|
|
774
|
+
fileCount: z.ZodNumber;
|
|
775
|
+
downloadedBytes: z.ZodNumber;
|
|
776
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
777
|
+
}, z.core.$strip>>;
|
|
673
778
|
lastError: z.ZodOptional<z.ZodString>;
|
|
674
779
|
crashesInWindow: z.ZodNumber;
|
|
675
780
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -689,7 +794,57 @@ export declare const llmCapability: {
|
|
|
689
794
|
sizeBytes: z.ZodNumber;
|
|
690
795
|
catalogId: z.ZodOptional<z.ZodString>;
|
|
691
796
|
installedAt: z.ZodOptional<z.ZodNumber>;
|
|
797
|
+
path: z.ZodOptional<z.ZodString>;
|
|
692
798
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
799
|
+
/**
|
|
800
|
+
* One typed Hugging Face reference → a pinned, verified `ManagedModelRef`.
|
|
801
|
+
*
|
|
802
|
+
* Runs on the HUB, not on the target node: resolution needs egress to
|
|
803
|
+
* huggingface.co, and an agent that cannot reach it still installs fine
|
|
804
|
+
* through the model-distributor relay. Nothing is downloaded here — this is
|
|
805
|
+
* a tree read plus a HEAD, so the operator sees the size, the quantization
|
|
806
|
+
* and the mmproj BEFORE approving a multi-GB pull.
|
|
807
|
+
*/
|
|
808
|
+
readonly resolveModelRef: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
809
|
+
ref: z.ZodString;
|
|
810
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
811
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
812
|
+
ok: z.ZodLiteral<true>;
|
|
813
|
+
model: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
814
|
+
kind: z.ZodLiteral<"catalog">;
|
|
815
|
+
catalogId: z.ZodString;
|
|
816
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
817
|
+
kind: z.ZodLiteral<"url">;
|
|
818
|
+
url: z.ZodString;
|
|
819
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
820
|
+
label: z.ZodOptional<z.ZodString>;
|
|
821
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
822
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
823
|
+
url: z.ZodString;
|
|
824
|
+
filename: z.ZodString;
|
|
825
|
+
sizeBytes: z.ZodNumber;
|
|
826
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
827
|
+
}, z.core.$strip>>>;
|
|
828
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
829
|
+
kind: z.ZodLiteral<"path">;
|
|
830
|
+
path: z.ZodString;
|
|
831
|
+
}, z.core.$strip>], "kind">;
|
|
832
|
+
label: z.ZodString;
|
|
833
|
+
repo: z.ZodString;
|
|
834
|
+
quantization: z.ZodString;
|
|
835
|
+
purpose: z.ZodEnum<{
|
|
836
|
+
text: "text";
|
|
837
|
+
vision: "vision";
|
|
838
|
+
}>;
|
|
839
|
+
totalBytes: z.ZodNumber;
|
|
840
|
+
extraFilenames: z.ZodArray<z.ZodString>;
|
|
841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
842
|
+
ok: z.ZodLiteral<false>;
|
|
843
|
+
code: z.ZodString;
|
|
844
|
+
message: z.ZodString;
|
|
845
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
846
|
+
requiredBytes: z.ZodOptional<z.ZodNumber>;
|
|
847
|
+
}, z.core.$strip>], "ok">, "mutation">;
|
|
693
848
|
readonly installModel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
694
849
|
nodeId: z.ZodString;
|
|
695
850
|
model: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -699,6 +854,14 @@ export declare const llmCapability: {
|
|
|
699
854
|
kind: z.ZodLiteral<"url">;
|
|
700
855
|
url: z.ZodString;
|
|
701
856
|
sha256: z.ZodOptional<z.ZodString>;
|
|
857
|
+
label: z.ZodOptional<z.ZodString>;
|
|
858
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
859
|
+
extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
860
|
+
url: z.ZodString;
|
|
861
|
+
filename: z.ZodString;
|
|
862
|
+
sizeBytes: z.ZodNumber;
|
|
863
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
864
|
+
}, z.core.$strip>>>;
|
|
702
865
|
}, z.core.$strip>, z.ZodObject<{
|
|
703
866
|
kind: z.ZodLiteral<"path">;
|
|
704
867
|
path: z.ZodString;
|
|
@@ -718,14 +881,25 @@ export declare const llmCapability: {
|
|
|
718
881
|
stopped: "stopped";
|
|
719
882
|
starting: "starting";
|
|
720
883
|
ready: "ready";
|
|
721
|
-
downloading: "downloading";
|
|
722
884
|
crashed: "crashed";
|
|
885
|
+
downloading: "downloading";
|
|
723
886
|
}>;
|
|
724
887
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
725
888
|
port: z.ZodOptional<z.ZodNumber>;
|
|
726
889
|
modelPath: z.ZodOptional<z.ZodString>;
|
|
727
890
|
modelId: z.ZodOptional<z.ZodString>;
|
|
728
891
|
downloadProgress: z.ZodOptional<z.ZodNumber>;
|
|
892
|
+
download: z.ZodOptional<z.ZodObject<{
|
|
893
|
+
phase: z.ZodEnum<{
|
|
894
|
+
verifying: "verifying";
|
|
895
|
+
downloading: "downloading";
|
|
896
|
+
}>;
|
|
897
|
+
file: z.ZodString;
|
|
898
|
+
fileIndex: z.ZodNumber;
|
|
899
|
+
fileCount: z.ZodNumber;
|
|
900
|
+
downloadedBytes: z.ZodNumber;
|
|
901
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
902
|
+
}, z.core.$strip>>;
|
|
729
903
|
lastError: z.ZodOptional<z.ZodString>;
|
|
730
904
|
crashesInWindow: z.ZodNumber;
|
|
731
905
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -741,14 +915,25 @@ export declare const llmCapability: {
|
|
|
741
915
|
stopped: "stopped";
|
|
742
916
|
starting: "starting";
|
|
743
917
|
ready: "ready";
|
|
744
|
-
downloading: "downloading";
|
|
745
918
|
crashed: "crashed";
|
|
919
|
+
downloading: "downloading";
|
|
746
920
|
}>;
|
|
747
921
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
748
922
|
port: z.ZodOptional<z.ZodNumber>;
|
|
749
923
|
modelPath: z.ZodOptional<z.ZodString>;
|
|
750
924
|
modelId: z.ZodOptional<z.ZodString>;
|
|
751
925
|
downloadProgress: z.ZodOptional<z.ZodNumber>;
|
|
926
|
+
download: z.ZodOptional<z.ZodObject<{
|
|
927
|
+
phase: z.ZodEnum<{
|
|
928
|
+
verifying: "verifying";
|
|
929
|
+
downloading: "downloading";
|
|
930
|
+
}>;
|
|
931
|
+
file: z.ZodString;
|
|
932
|
+
fileIndex: z.ZodNumber;
|
|
933
|
+
fileCount: z.ZodNumber;
|
|
934
|
+
downloadedBytes: z.ZodNumber;
|
|
935
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
936
|
+
}, z.core.$strip>>;
|
|
752
937
|
lastError: z.ZodOptional<z.ZodString>;
|
|
753
938
|
crashesInWindow: z.ZodNumber;
|
|
754
939
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -172,8 +172,8 @@ declare const AddonInstanceSchema: z.ZodObject<{
|
|
|
172
172
|
running: "running";
|
|
173
173
|
stopped: "stopped";
|
|
174
174
|
starting: "starting";
|
|
175
|
-
crashed: "crashed";
|
|
176
175
|
stopping: "stopping";
|
|
176
|
+
crashed: "crashed";
|
|
177
177
|
}>;
|
|
178
178
|
uptimeSec: z.ZodNumber;
|
|
179
179
|
}, z.core.$strip>;
|
|
@@ -468,8 +468,8 @@ export declare const metricsProviderCapability: {
|
|
|
468
468
|
running: "running";
|
|
469
469
|
stopped: "stopped";
|
|
470
470
|
starting: "starting";
|
|
471
|
-
crashed: "crashed";
|
|
472
471
|
stopping: "stopping";
|
|
472
|
+
crashed: "crashed";
|
|
473
473
|
}>;
|
|
474
474
|
uptimeSec: z.ZodNumber;
|
|
475
475
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
@@ -21,19 +21,19 @@ export declare const ModelConvertInputSchema: z.ZodObject<{
|
|
|
21
21
|
nhwc: "nhwc";
|
|
22
22
|
}>>;
|
|
23
23
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
none: "none";
|
|
24
25
|
"zero-one": "zero-one";
|
|
25
26
|
imagenet: "imagenet";
|
|
26
|
-
none: "none";
|
|
27
27
|
}>>;
|
|
28
28
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
29
29
|
letterbox: "letterbox";
|
|
30
30
|
resize: "resize";
|
|
31
31
|
}>>;
|
|
32
32
|
outputFormat: z.ZodEnum<{
|
|
33
|
+
classification: "classification";
|
|
33
34
|
yolo: "yolo";
|
|
34
35
|
ssd: "ssd";
|
|
35
36
|
embedding: "embedding";
|
|
36
|
-
classification: "classification";
|
|
37
37
|
ocr: "ocr";
|
|
38
38
|
segmentation: "segmentation";
|
|
39
39
|
}>;
|
|
@@ -79,19 +79,19 @@ export declare const modelConvertCapability: {
|
|
|
79
79
|
nhwc: "nhwc";
|
|
80
80
|
}>>;
|
|
81
81
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
none: "none";
|
|
82
83
|
"zero-one": "zero-one";
|
|
83
84
|
imagenet: "imagenet";
|
|
84
|
-
none: "none";
|
|
85
85
|
}>>;
|
|
86
86
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
87
87
|
letterbox: "letterbox";
|
|
88
88
|
resize: "resize";
|
|
89
89
|
}>>;
|
|
90
90
|
outputFormat: z.ZodEnum<{
|
|
91
|
+
classification: "classification";
|
|
91
92
|
yolo: "yolo";
|
|
92
93
|
ssd: "ssd";
|
|
93
94
|
embedding: "embedding";
|
|
94
|
-
classification: "classification";
|
|
95
95
|
ocr: "ocr";
|
|
96
96
|
segmentation: "segmentation";
|
|
97
97
|
}>;
|
|
@@ -192,9 +192,9 @@ export declare const modelConvertCapability: {
|
|
|
192
192
|
nhwc: "nhwc";
|
|
193
193
|
}>>;
|
|
194
194
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
195
|
+
none: "none";
|
|
195
196
|
"zero-one": "zero-one";
|
|
196
197
|
imagenet: "imagenet";
|
|
197
|
-
none: "none";
|
|
198
198
|
}>>;
|
|
199
199
|
outputProbabilities: z.ZodOptional<z.ZodBoolean>;
|
|
200
200
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -222,8 +222,8 @@ export declare const modelConvertCapability: {
|
|
|
222
222
|
int8: "int8";
|
|
223
223
|
}>>;
|
|
224
224
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
225
|
-
standard: "standard";
|
|
226
225
|
fast: "fast";
|
|
226
|
+
standard: "standard";
|
|
227
227
|
}>>;
|
|
228
228
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
229
229
|
}, z.core.$strip>>;
|