@camstack/types 1.2.315 → 1.2.317
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.js +5 -1
- package/dist/addon.mjs +5 -1
- package/dist/capabilities/composer.cap.d.ts +1 -1
- package/dist/capabilities/core-blocks.cap.d.ts +8 -8
- package/dist/capabilities/pipeline-executor.cap.d.ts +73 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +460 -0
- package/dist/client.js +3 -0
- package/dist/client.mjs +3 -0
- package/dist/composition/composition-report.d.ts +3 -3
- package/dist/generated/addon-api.d.ts +21 -0
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1186 -48
- package/dist/index.mjs +1154 -49
- package/dist/pipeline/best-settings/demand.d.ts +78 -0
- package/dist/pipeline/best-settings/detector-performance.d.ts +34 -0
- package/dist/pipeline/best-settings/hardware-class.d.ts +40 -0
- package/dist/pipeline/best-settings/index.d.ts +10 -0
- package/dist/pipeline/best-settings/plan-schemas.d.ts +859 -0
- package/dist/pipeline/best-settings/recommend.d.ts +54 -0
- package/dist/pipeline/model-bound-settings.d.ts +7 -0
- package/dist/types/models.d.ts +45 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -16,7 +16,7 @@ const require_err_msg = require("./err-msg-Dx2Kor0g.js");
|
|
|
16
16
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
17
17
|
* (~144MB RSS per runner — D28).
|
|
18
18
|
*
|
|
19
|
-
* Coverage:
|
|
19
|
+
* Coverage: 25 caps, 60 methods with defaults.
|
|
20
20
|
*/
|
|
21
21
|
var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
22
22
|
"addons": { "getLogs": { "limit": 100 } },
|
|
@@ -155,6 +155,10 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
155
155
|
"reclaimDebugMedia": { "mode": "report" },
|
|
156
156
|
"searchObjectEvents": { "limit": 50 }
|
|
157
157
|
},
|
|
158
|
+
"pipeline-orchestrator": {
|
|
159
|
+
"applyBestSettings": { "headroom": .4 },
|
|
160
|
+
"planBestSettings": { "headroom": .4 }
|
|
161
|
+
},
|
|
158
162
|
"pipeline-runner": {
|
|
159
163
|
"attachCamera": {
|
|
160
164
|
"detectionMode": "on-motion",
|
package/dist/addon.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { a as DeviceType, t as errMsg } from "./err-msg-DX6i_MY4.mjs";
|
|
|
15
15
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
16
16
|
* (~144MB RSS per runner — D28).
|
|
17
17
|
*
|
|
18
|
-
* Coverage:
|
|
18
|
+
* Coverage: 25 caps, 60 methods with defaults.
|
|
19
19
|
*/
|
|
20
20
|
var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
21
21
|
"addons": { "getLogs": { "limit": 100 } },
|
|
@@ -154,6 +154,10 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
154
154
|
"reclaimDebugMedia": { "mode": "report" },
|
|
155
155
|
"searchObjectEvents": { "limit": 50 }
|
|
156
156
|
},
|
|
157
|
+
"pipeline-orchestrator": {
|
|
158
|
+
"applyBestSettings": { "headroom": .4 },
|
|
159
|
+
"planBestSettings": { "headroom": .4 }
|
|
160
|
+
},
|
|
157
161
|
"pipeline-runner": {
|
|
158
162
|
"attachCamera": {
|
|
159
163
|
"detectionMode": "on-motion",
|
|
@@ -419,9 +419,9 @@ export declare const composerCapability: {
|
|
|
419
419
|
label: z.ZodString;
|
|
420
420
|
}, z.core.$strip>>;
|
|
421
421
|
state: z.ZodEnum<{
|
|
422
|
+
stale: "stale";
|
|
422
423
|
unavailable: "unavailable";
|
|
423
424
|
fresh: "fresh";
|
|
424
|
-
stale: "stale";
|
|
425
425
|
}>;
|
|
426
426
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
427
427
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -572,9 +572,9 @@ export declare const CompositionStateReadSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
572
572
|
label: z.ZodString;
|
|
573
573
|
}, z.core.$strip>>;
|
|
574
574
|
state: z.ZodEnum<{
|
|
575
|
+
stale: "stale";
|
|
575
576
|
unavailable: "unavailable";
|
|
576
577
|
fresh: "fresh";
|
|
577
|
-
stale: "stale";
|
|
578
578
|
}>;
|
|
579
579
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
580
580
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -771,9 +771,9 @@ export declare const CompositionViewSchema: z.ZodObject<{
|
|
|
771
771
|
label: z.ZodString;
|
|
772
772
|
}, z.core.$strip>>;
|
|
773
773
|
state: z.ZodEnum<{
|
|
774
|
+
stale: "stale";
|
|
774
775
|
unavailable: "unavailable";
|
|
775
776
|
fresh: "fresh";
|
|
776
|
-
stale: "stale";
|
|
777
777
|
}>;
|
|
778
778
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
779
779
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -972,9 +972,9 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
972
972
|
label: z.ZodString;
|
|
973
973
|
}, z.core.$strip>>;
|
|
974
974
|
state: z.ZodEnum<{
|
|
975
|
+
stale: "stale";
|
|
975
976
|
unavailable: "unavailable";
|
|
976
977
|
fresh: "fresh";
|
|
977
|
-
stale: "stale";
|
|
978
978
|
}>;
|
|
979
979
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
980
980
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -1177,9 +1177,9 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1177
1177
|
label: z.ZodString;
|
|
1178
1178
|
}, z.core.$strip>>;
|
|
1179
1179
|
state: z.ZodEnum<{
|
|
1180
|
+
stale: "stale";
|
|
1180
1181
|
unavailable: "unavailable";
|
|
1181
1182
|
fresh: "fresh";
|
|
1182
|
-
stale: "stale";
|
|
1183
1183
|
}>;
|
|
1184
1184
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1185
1185
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -1383,9 +1383,9 @@ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion
|
|
|
1383
1383
|
label: z.ZodString;
|
|
1384
1384
|
}, z.core.$strip>>;
|
|
1385
1385
|
state: z.ZodEnum<{
|
|
1386
|
+
stale: "stale";
|
|
1386
1387
|
unavailable: "unavailable";
|
|
1387
1388
|
fresh: "fresh";
|
|
1388
|
-
stale: "stale";
|
|
1389
1389
|
}>;
|
|
1390
1390
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1391
1391
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3274,9 +3274,9 @@ export declare const coreBlocksCapability: {
|
|
|
3274
3274
|
label: z.ZodString;
|
|
3275
3275
|
}, z.core.$strip>>;
|
|
3276
3276
|
state: z.ZodEnum<{
|
|
3277
|
+
stale: "stale";
|
|
3277
3278
|
unavailable: "unavailable";
|
|
3278
3279
|
fresh: "fresh";
|
|
3279
|
-
stale: "stale";
|
|
3280
3280
|
}>;
|
|
3281
3281
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3282
3282
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3478,9 +3478,9 @@ export declare const coreBlocksCapability: {
|
|
|
3478
3478
|
label: z.ZodString;
|
|
3479
3479
|
}, z.core.$strip>>;
|
|
3480
3480
|
state: z.ZodEnum<{
|
|
3481
|
+
stale: "stale";
|
|
3481
3482
|
unavailable: "unavailable";
|
|
3482
3483
|
fresh: "fresh";
|
|
3483
|
-
stale: "stale";
|
|
3484
3484
|
}>;
|
|
3485
3485
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3486
3486
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3689,9 +3689,9 @@ export declare const coreBlocksCapability: {
|
|
|
3689
3689
|
label: z.ZodString;
|
|
3690
3690
|
}, z.core.$strip>>;
|
|
3691
3691
|
state: z.ZodEnum<{
|
|
3692
|
+
stale: "stale";
|
|
3692
3693
|
unavailable: "unavailable";
|
|
3693
3694
|
fresh: "fresh";
|
|
3694
|
-
stale: "stale";
|
|
3695
3695
|
}>;
|
|
3696
3696
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3697
3697
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -199,6 +199,16 @@ declare const PipelineModelOptionSchema: z.ZodObject<{
|
|
|
199
199
|
formats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
200
200
|
downloaded: z.ZodBoolean;
|
|
201
201
|
sizeMB: z.ZodNumber;
|
|
202
|
+
onDisk: z.ZodOptional<z.ZodEnum<{
|
|
203
|
+
missing: "missing";
|
|
204
|
+
current: "current";
|
|
205
|
+
stale: "stale";
|
|
206
|
+
}>>;
|
|
207
|
+
precision: z.ZodOptional<z.ZodEnum<{
|
|
208
|
+
fp32: "fp32";
|
|
209
|
+
fp16: "fp16";
|
|
210
|
+
int8: "int8";
|
|
211
|
+
}>>;
|
|
202
212
|
}, z.core.$strip>>;
|
|
203
213
|
group: z.ZodOptional<z.ZodObject<{
|
|
204
214
|
family: z.ZodString;
|
|
@@ -278,6 +288,16 @@ declare const PipelineAddonSchemaSchema: z.ZodObject<{
|
|
|
278
288
|
formats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
279
289
|
downloaded: z.ZodBoolean;
|
|
280
290
|
sizeMB: z.ZodNumber;
|
|
291
|
+
onDisk: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
missing: "missing";
|
|
293
|
+
current: "current";
|
|
294
|
+
stale: "stale";
|
|
295
|
+
}>>;
|
|
296
|
+
precision: z.ZodOptional<z.ZodEnum<{
|
|
297
|
+
fp32: "fp32";
|
|
298
|
+
fp16: "fp16";
|
|
299
|
+
int8: "int8";
|
|
300
|
+
}>>;
|
|
281
301
|
}, z.core.$strip>>;
|
|
282
302
|
group: z.ZodOptional<z.ZodObject<{
|
|
283
303
|
family: z.ZodString;
|
|
@@ -382,6 +402,16 @@ declare const PipelineSlotSchemaSchema: z.ZodObject<{
|
|
|
382
402
|
formats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
383
403
|
downloaded: z.ZodBoolean;
|
|
384
404
|
sizeMB: z.ZodNumber;
|
|
405
|
+
onDisk: z.ZodOptional<z.ZodEnum<{
|
|
406
|
+
missing: "missing";
|
|
407
|
+
current: "current";
|
|
408
|
+
stale: "stale";
|
|
409
|
+
}>>;
|
|
410
|
+
precision: z.ZodOptional<z.ZodEnum<{
|
|
411
|
+
fp32: "fp32";
|
|
412
|
+
fp16: "fp16";
|
|
413
|
+
int8: "int8";
|
|
414
|
+
}>>;
|
|
385
415
|
}, z.core.$strip>>;
|
|
386
416
|
group: z.ZodOptional<z.ZodObject<{
|
|
387
417
|
family: z.ZodString;
|
|
@@ -522,6 +552,16 @@ declare const PipelineSchemaSchema: z.ZodObject<{
|
|
|
522
552
|
formats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
523
553
|
downloaded: z.ZodBoolean;
|
|
524
554
|
sizeMB: z.ZodNumber;
|
|
555
|
+
onDisk: z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
missing: "missing";
|
|
557
|
+
current: "current";
|
|
558
|
+
stale: "stale";
|
|
559
|
+
}>>;
|
|
560
|
+
precision: z.ZodOptional<z.ZodEnum<{
|
|
561
|
+
fp32: "fp32";
|
|
562
|
+
fp16: "fp16";
|
|
563
|
+
int8: "int8";
|
|
564
|
+
}>>;
|
|
525
565
|
}, z.core.$strip>>;
|
|
526
566
|
group: z.ZodOptional<z.ZodObject<{
|
|
527
567
|
family: z.ZodString;
|
|
@@ -781,6 +821,29 @@ export declare const pipelineExecutorCapability: {
|
|
|
781
821
|
success: z.ZodLiteral<true>;
|
|
782
822
|
clearedDevices: z.ZodNumber;
|
|
783
823
|
}, z.core.$strip>, "mutation">;
|
|
824
|
+
/**
|
|
825
|
+
* Best settings (D745): the MODEL-BOUND thresholds (`bindsToModel` keys of
|
|
826
|
+
* the object-detection root, and their binding keys) stored in THIS node's
|
|
827
|
+
* per-camera detector settings — and, unless `dryRun`, remove them so the
|
|
828
|
+
* running model's own defaults apply. Every other key of a camera's store
|
|
829
|
+
* is kept. `nodeId` is the ROUTING key. `deviceIds` absent ⇒ every camera
|
|
830
|
+
* with a store. A camera whose store could not be read is `refused`, never
|
|
831
|
+
* reported as clean.
|
|
832
|
+
*/
|
|
833
|
+
readonly clearModelBoundDeviceOverrides: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
834
|
+
nodeId: z.ZodString;
|
|
835
|
+
deviceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
836
|
+
dryRun: z.ZodBoolean;
|
|
837
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
838
|
+
entries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
839
|
+
deviceId: z.ZodNumber;
|
|
840
|
+
keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
841
|
+
}, z.core.$strip>>>;
|
|
842
|
+
refused: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
843
|
+
deviceId: z.ZodNumber;
|
|
844
|
+
reason: z.ZodString;
|
|
845
|
+
}, z.core.$strip>>>;
|
|
846
|
+
}, z.core.$strip>, "mutation">;
|
|
784
847
|
/**
|
|
785
848
|
* Which of THIS node's inference devices the executor currently refuses,
|
|
786
849
|
* and why. `nodeId` is the ROUTING key (stripped by the generated router).
|
|
@@ -908,6 +971,16 @@ export declare const pipelineExecutorCapability: {
|
|
|
908
971
|
formats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
909
972
|
downloaded: z.ZodBoolean;
|
|
910
973
|
sizeMB: z.ZodNumber;
|
|
974
|
+
onDisk: z.ZodOptional<z.ZodEnum<{
|
|
975
|
+
missing: "missing";
|
|
976
|
+
current: "current";
|
|
977
|
+
stale: "stale";
|
|
978
|
+
}>>;
|
|
979
|
+
precision: z.ZodOptional<z.ZodEnum<{
|
|
980
|
+
fp32: "fp32";
|
|
981
|
+
fp16: "fp16";
|
|
982
|
+
int8: "int8";
|
|
983
|
+
}>>;
|
|
911
984
|
}, z.core.$strip>>;
|
|
912
985
|
group: z.ZodOptional<z.ZodObject<{
|
|
913
986
|
family: z.ZodString;
|