@camstack/types 1.2.259 → 1.2.261
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/base-addon.d.ts +9 -1
- package/dist/addon.js +15 -7
- package/dist/addon.mjs +15 -7
- package/dist/capabilities/camera-streams.cap.d.ts +5 -5
- package/dist/capabilities/capability-definition.d.ts +9 -0
- package/dist/capabilities/custom-model-registry.cap.d.ts +18 -12
- package/dist/capabilities/decoder.cap.d.ts +12 -12
- package/dist/capabilities/device-extension.cap.d.ts +370 -0
- package/dist/capabilities/device-manager.cap.d.ts +45 -5
- package/dist/capabilities/doorbell.cap.d.ts +41 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts +175 -0
- package/dist/capabilities/index.d.ts +17 -14
- package/dist/capabilities/llm-runtime.cap.d.ts +4 -4
- package/dist/capabilities/llm-shared.d.ts +6 -6
- package/dist/capabilities/llm.cap.d.ts +6 -6
- package/dist/capabilities/load-contribution.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +9 -6
- package/dist/capabilities/model-distributor.cap.d.ts +18 -12
- package/dist/capabilities/motion-detection.cap.d.ts +4 -4
- package/dist/capabilities/notification-rules.cap.d.ts +603 -31
- package/dist/capabilities/osd-manager.cap.d.ts +7 -7
- package/dist/capabilities/pipeline-analytics.cap.d.ts +130 -129
- package/dist/capabilities/pipeline-executor.cap.d.ts +78 -120
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +78 -65
- package/dist/capabilities/pipeline-runner.cap.d.ts +30 -6
- package/dist/capabilities/platform-probe.cap.d.ts +4 -13
- package/dist/capabilities/recording-export.cap.d.ts +7 -7
- package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
- package/dist/capabilities/schemas/streaming-shared.d.ts +8 -8
- package/dist/capabilities/stream-broker.cap.d.ts +9 -9
- package/dist/capabilities/system.cap.d.ts +2 -2
- package/dist/capabilities/vacuum-control.cap.d.ts +13 -13
- package/dist/capabilities/vector-store.cap.d.ts +14 -0
- package/dist/capabilities/videoclips.cap.d.ts +5 -5
- package/dist/capabilities/webrtc-session.cap.d.ts +2 -2
- package/dist/device-extension/index.d.ts +3 -0
- package/dist/device-extension/slot-descriptor.d.ts +62 -0
- package/dist/device-extension/slot-provider.d.ts +68 -0
- package/dist/generated/addon-api.d.ts +59 -9
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/device-proxy.d.ts +7 -7
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/extension-slots.d.ts +39 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +4 -2
- package/dist/index.d.ts +8 -3
- package/dist/index.js +3125 -1792
- package/dist/index.mjs +3049 -1788
- package/dist/interfaces/addon.d.ts +41 -0
- package/dist/interfaces/event-bus.d.ts +11 -1
- package/dist/interfaces/pipeline-executor-capability.d.ts +15 -6
- package/dist/interfaces/platform.d.ts +2 -2
- package/dist/interfaces/stream-broker.d.ts +2 -2
- package/dist/node.d.ts +1 -0
- package/dist/node.js +73 -7
- package/dist/node.mjs +73 -8
- package/dist/notification/system-event-summary.d.ts +83 -0
- package/dist/notification/template-vars.d.ts +15 -0
- package/dist/pipeline/cluster-model-scope.d.ts +59 -3
- package/dist/{sleep-DU7mu4wb.mjs → sleep-BXv0ZcRa.mjs} +49 -33
- package/dist/{sleep-DtomDrRW.js → sleep-QxyLiUId.js} +54 -32
- package/dist/storage/atomic-write.d.ts +25 -0
- package/dist/types/clip-model.d.ts +64 -0
- package/dist/types/detection.d.ts +9 -0
- package/dist/types/models.d.ts +18 -19
- package/dist/types/pipeline-step.d.ts +9 -1
- package/dist/types/pipeline.d.ts +2 -1
- package/dist/utils/background-run-registry.d.ts +69 -0
- package/dist/utils/runtime-mapping.d.ts +9 -54
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@ export declare const NativeCropRefSchema: z.ZodObject<{
|
|
|
17
17
|
width: z.ZodNumber;
|
|
18
18
|
height: z.ZodNumber;
|
|
19
19
|
format: z.ZodEnum<{
|
|
20
|
-
rgb: "rgb";
|
|
21
|
-
gray: "gray";
|
|
22
20
|
jpeg: "jpeg";
|
|
21
|
+
rgb: "rgb";
|
|
23
22
|
bgr: "bgr";
|
|
24
23
|
yuv420: "yuv420";
|
|
24
|
+
gray: "gray";
|
|
25
25
|
}>;
|
|
26
26
|
pts: z.ZodNumber;
|
|
27
27
|
byteLength: z.ZodNumber;
|
|
@@ -52,9 +52,9 @@ export declare const FrameViewSpecSchema: z.ZodObject<{
|
|
|
52
52
|
contain: "contain";
|
|
53
53
|
}>;
|
|
54
54
|
format: z.ZodEnum<{
|
|
55
|
+
jpeg: "jpeg";
|
|
55
56
|
rgb: "rgb";
|
|
56
57
|
gray: "gray";
|
|
57
|
-
jpeg: "jpeg";
|
|
58
58
|
}>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
export type FrameViewSpec = z.infer<typeof FrameViewSpecSchema>;
|
|
@@ -77,10 +77,7 @@ export declare const FrameRefSchema: z.ZodObject<{
|
|
|
77
77
|
}, z.core.$strip>;
|
|
78
78
|
export type FrameRef = z.infer<typeof FrameRefSchema>;
|
|
79
79
|
declare const PipelineEngineChoiceSchema: z.ZodObject<{
|
|
80
|
-
runtime: z.
|
|
81
|
-
node: "node";
|
|
82
|
-
python: "python";
|
|
83
|
-
}>;
|
|
80
|
+
runtime: z.ZodLiteral<"python">;
|
|
84
81
|
backend: z.ZodString;
|
|
85
82
|
format: z.ZodEnum<{
|
|
86
83
|
onnx: "onnx";
|
|
@@ -92,6 +89,26 @@ declare const PipelineEngineChoiceSchema: z.ZodObject<{
|
|
|
92
89
|
}>;
|
|
93
90
|
device: z.ZodOptional<z.ZodString>;
|
|
94
91
|
}, z.core.$strip>;
|
|
92
|
+
/**
|
|
93
|
+
* One pool's resolved provisioning (`getEffectiveTuning`). `numWorkers` is the
|
|
94
|
+
* knob that lifts a saturated pool (`inference-devices.md`); `concurrency` is
|
|
95
|
+
* per-worker in-flight requests. `deviceKey` echoes the pool asked about —
|
|
96
|
+
* `null` for the node-default pool.
|
|
97
|
+
*/
|
|
98
|
+
export declare const EffectiveTuningSchema: z.ZodObject<{
|
|
99
|
+
deviceKey: z.ZodNullable<z.ZodString>;
|
|
100
|
+
runtime: z.ZodString;
|
|
101
|
+
batchMode: z.ZodString;
|
|
102
|
+
windowMs: z.ZodNumber;
|
|
103
|
+
maxBatchSize: z.ZodNumber;
|
|
104
|
+
concurrency: z.ZodNumber;
|
|
105
|
+
numWorkers: z.ZodNumber;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type EffectiveTuning = z.infer<typeof EffectiveTuningSchema>;
|
|
108
|
+
/** Input of `getEffectiveTuning` — absent `deviceKey` ⇒ the node-default pool. */
|
|
109
|
+
export interface EffectiveTuningInput {
|
|
110
|
+
readonly deviceKey?: string;
|
|
111
|
+
}
|
|
95
112
|
declare const EngineDeviceInfoSchema: z.ZodObject<{
|
|
96
113
|
id: z.ZodString;
|
|
97
114
|
label: z.ZodString;
|
|
@@ -99,10 +116,7 @@ declare const EngineDeviceInfoSchema: z.ZodObject<{
|
|
|
99
116
|
}, z.core.$strip>;
|
|
100
117
|
declare const AvailableEngineSchema: z.ZodObject<{
|
|
101
118
|
engine: z.ZodObject<{
|
|
102
|
-
runtime: z.
|
|
103
|
-
node: "node";
|
|
104
|
-
python: "python";
|
|
105
|
-
}>;
|
|
119
|
+
runtime: z.ZodLiteral<"python">;
|
|
106
120
|
backend: z.ZodString;
|
|
107
121
|
format: z.ZodEnum<{
|
|
108
122
|
onnx: "onnx";
|
|
@@ -148,10 +162,7 @@ declare const PipelineTemplateSchema: z.ZodObject<{
|
|
|
148
162
|
createdAt: z.ZodString;
|
|
149
163
|
updatedAt: z.ZodString;
|
|
150
164
|
engine: z.ZodObject<{
|
|
151
|
-
runtime: z.
|
|
152
|
-
node: "node";
|
|
153
|
-
python: "python";
|
|
154
|
-
}>;
|
|
165
|
+
runtime: z.ZodLiteral<"python">;
|
|
155
166
|
backend: z.ZodString;
|
|
156
167
|
format: z.ZodEnum<{
|
|
157
168
|
onnx: "onnx";
|
|
@@ -324,10 +335,7 @@ declare const PipelineSlotSchemaSchema: z.ZodObject<{
|
|
|
324
335
|
declare const PipelineSchemaSchema: z.ZodObject<{
|
|
325
336
|
availableEngines: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
326
337
|
engine: z.ZodObject<{
|
|
327
|
-
runtime: z.
|
|
328
|
-
node: "node";
|
|
329
|
-
python: "python";
|
|
330
|
-
}>;
|
|
338
|
+
runtime: z.ZodLiteral<"python">;
|
|
331
339
|
backend: z.ZodString;
|
|
332
340
|
format: z.ZodEnum<{
|
|
333
341
|
onnx: "onnx";
|
|
@@ -347,10 +355,7 @@ declare const PipelineSchemaSchema: z.ZodObject<{
|
|
|
347
355
|
defaultDevice: z.ZodString;
|
|
348
356
|
}, z.core.$strip>>>;
|
|
349
357
|
selectedEngine: z.ZodObject<{
|
|
350
|
-
runtime: z.
|
|
351
|
-
node: "node";
|
|
352
|
-
python: "python";
|
|
353
|
-
}>;
|
|
358
|
+
runtime: z.ZodLiteral<"python">;
|
|
354
359
|
backend: z.ZodString;
|
|
355
360
|
format: z.ZodEnum<{
|
|
356
361
|
onnx: "onnx";
|
|
@@ -486,6 +491,7 @@ declare const PipelineValidationIssueSchema: z.ZodObject<{
|
|
|
486
491
|
kind: z.ZodEnum<{
|
|
487
492
|
"unknown-addon": "unknown-addon";
|
|
488
493
|
"no-format-build": "no-format-build";
|
|
494
|
+
"unknown-device": "unknown-device";
|
|
489
495
|
}>;
|
|
490
496
|
detail: z.ZodString;
|
|
491
497
|
}, z.core.$strip>;
|
|
@@ -496,6 +502,7 @@ declare const PipelineValidationResultSchema: z.ZodObject<{
|
|
|
496
502
|
kind: z.ZodEnum<{
|
|
497
503
|
"unknown-addon": "unknown-addon";
|
|
498
504
|
"no-format-build": "no-format-build";
|
|
505
|
+
"unknown-device": "unknown-device";
|
|
499
506
|
}>;
|
|
500
507
|
detail: z.ZodString;
|
|
501
508
|
}, z.core.$strip>>>;
|
|
@@ -528,10 +535,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
528
535
|
readonly mode: "singleton";
|
|
529
536
|
readonly methods: {
|
|
530
537
|
readonly getAvailableEngines: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodArray<z.ZodObject<{
|
|
531
|
-
runtime: z.
|
|
532
|
-
node: "node";
|
|
533
|
-
python: "python";
|
|
534
|
-
}>;
|
|
538
|
+
runtime: z.ZodLiteral<"python">;
|
|
535
539
|
backend: z.ZodString;
|
|
536
540
|
format: z.ZodEnum<{
|
|
537
541
|
onnx: "onnx";
|
|
@@ -544,10 +548,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
544
548
|
device: z.ZodOptional<z.ZodString>;
|
|
545
549
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
546
550
|
readonly getSelectedEngine: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
547
|
-
runtime: z.
|
|
548
|
-
node: "node";
|
|
549
|
-
python: "python";
|
|
550
|
-
}>;
|
|
551
|
+
runtime: z.ZodLiteral<"python">;
|
|
551
552
|
backend: z.ZodString;
|
|
552
553
|
format: z.ZodEnum<{
|
|
553
554
|
onnx: "onnx";
|
|
@@ -560,10 +561,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
560
561
|
device: z.ZodOptional<z.ZodString>;
|
|
561
562
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
562
563
|
readonly getDefaultSteps: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
563
|
-
runtime: z.
|
|
564
|
-
node: "node";
|
|
565
|
-
python: "python";
|
|
566
|
-
}>;
|
|
564
|
+
runtime: z.ZodLiteral<"python">;
|
|
567
565
|
backend: z.ZodString;
|
|
568
566
|
format: z.ZodEnum<{
|
|
569
567
|
onnx: "onnx";
|
|
@@ -691,10 +689,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
691
689
|
readonly getSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
692
690
|
availableEngines: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
693
691
|
engine: z.ZodObject<{
|
|
694
|
-
runtime: z.
|
|
695
|
-
node: "node";
|
|
696
|
-
python: "python";
|
|
697
|
-
}>;
|
|
692
|
+
runtime: z.ZodLiteral<"python">;
|
|
698
693
|
backend: z.ZodString;
|
|
699
694
|
format: z.ZodEnum<{
|
|
700
695
|
onnx: "onnx";
|
|
@@ -714,10 +709,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
714
709
|
defaultDevice: z.ZodString;
|
|
715
710
|
}, z.core.$strip>>>;
|
|
716
711
|
selectedEngine: z.ZodObject<{
|
|
717
|
-
runtime: z.
|
|
718
|
-
node: "node";
|
|
719
|
-
python: "python";
|
|
720
|
-
}>;
|
|
712
|
+
runtime: z.ZodLiteral<"python">;
|
|
721
713
|
backend: z.ZodString;
|
|
722
714
|
format: z.ZodEnum<{
|
|
723
715
|
onnx: "onnx";
|
|
@@ -817,9 +809,14 @@ export declare const pipelineExecutorCapability: {
|
|
|
817
809
|
* `unknown-addon` and `no-format-build` are HARD issues); `substitutions`
|
|
818
810
|
* is informational (a degraded-but-loadable model swap) and never
|
|
819
811
|
* affects `ok`. Never throws.
|
|
812
|
+
*
|
|
813
|
+
* `deviceKey` validates against THAT device pool's format instead of the
|
|
814
|
+
* node default (D646) — the cheap question a pinned replay asks before it
|
|
815
|
+
* reads any media: can this (node, deviceKey) run exactly this model?
|
|
820
816
|
*/
|
|
821
817
|
readonly validatePipeline: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
822
818
|
steps: z.ZodArray<z.ZodType<PipelineStepInputOutput, unknown, z.core.$ZodTypeInternals<PipelineStepInputOutput, unknown>>>;
|
|
819
|
+
deviceKey: z.ZodOptional<z.ZodString>;
|
|
823
820
|
}, z.core.$strip>, z.ZodObject<{
|
|
824
821
|
ok: z.ZodBoolean;
|
|
825
822
|
issues: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -827,6 +824,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
827
824
|
kind: z.ZodEnum<{
|
|
828
825
|
"unknown-addon": "unknown-addon";
|
|
829
826
|
"no-format-build": "no-format-build";
|
|
827
|
+
"unknown-device": "unknown-device";
|
|
830
828
|
}>;
|
|
831
829
|
detail: z.ZodString;
|
|
832
830
|
}, z.core.$strip>>>;
|
|
@@ -844,10 +842,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
844
842
|
createdAt: z.ZodString;
|
|
845
843
|
updatedAt: z.ZodString;
|
|
846
844
|
engine: z.ZodObject<{
|
|
847
|
-
runtime: z.
|
|
848
|
-
node: "node";
|
|
849
|
-
python: "python";
|
|
850
|
-
}>;
|
|
845
|
+
runtime: z.ZodLiteral<"python">;
|
|
851
846
|
backend: z.ZodString;
|
|
852
847
|
format: z.ZodEnum<{
|
|
853
848
|
onnx: "onnx";
|
|
@@ -865,10 +860,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
865
860
|
name: z.ZodString;
|
|
866
861
|
steps: z.ZodReadonly<z.ZodArray<z.ZodType<PipelineTemplateStepOutput, unknown, z.core.$ZodTypeInternals<PipelineTemplateStepOutput, unknown>>>>;
|
|
867
862
|
engine: z.ZodObject<{
|
|
868
|
-
runtime: z.
|
|
869
|
-
node: "node";
|
|
870
|
-
python: "python";
|
|
871
|
-
}>;
|
|
863
|
+
runtime: z.ZodLiteral<"python">;
|
|
872
864
|
backend: z.ZodString;
|
|
873
865
|
format: z.ZodEnum<{
|
|
874
866
|
onnx: "onnx";
|
|
@@ -886,10 +878,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
886
878
|
createdAt: z.ZodString;
|
|
887
879
|
updatedAt: z.ZodString;
|
|
888
880
|
engine: z.ZodObject<{
|
|
889
|
-
runtime: z.
|
|
890
|
-
node: "node";
|
|
891
|
-
python: "python";
|
|
892
|
-
}>;
|
|
881
|
+
runtime: z.ZodLiteral<"python">;
|
|
893
882
|
backend: z.ZodString;
|
|
894
883
|
format: z.ZodEnum<{
|
|
895
884
|
onnx: "onnx";
|
|
@@ -913,10 +902,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
913
902
|
createdAt: z.ZodString;
|
|
914
903
|
updatedAt: z.ZodString;
|
|
915
904
|
engine: z.ZodObject<{
|
|
916
|
-
runtime: z.
|
|
917
|
-
node: "node";
|
|
918
|
-
python: "python";
|
|
919
|
-
}>;
|
|
905
|
+
runtime: z.ZodLiteral<"python">;
|
|
920
906
|
backend: z.ZodString;
|
|
921
907
|
format: z.ZodEnum<{
|
|
922
908
|
onnx: "onnx";
|
|
@@ -969,12 +955,14 @@ export declare const pipelineExecutorCapability: {
|
|
|
969
955
|
}, z.core.$strip>, "mutation">;
|
|
970
956
|
/**
|
|
971
957
|
* Stateless single-frame execution. Callers (runner, benchmark) pass
|
|
972
|
-
* the complete `
|
|
973
|
-
*
|
|
958
|
+
* the complete `steps` tree; the executor holds no state about cameras
|
|
959
|
+
* or saved pipelines. WHICH pool answers is the node's own engine, or the
|
|
960
|
+
* `deviceKey` pool when one is named.
|
|
974
961
|
*
|
|
975
|
-
* `engine`
|
|
976
|
-
*
|
|
977
|
-
*
|
|
962
|
+
* There is no `engine` field (D646). It existed for the benchmark and was
|
|
963
|
+
* honoured by swapping the SHARED provider's engine, factory and executor
|
|
964
|
+
* for the duration of the call, on a node serving live cameras. A caller
|
|
965
|
+
* that still sends the key has it stripped here and changes nothing.
|
|
978
966
|
*
|
|
979
967
|
* Exactly one of `frame`, `frameRef`, `frameHandle`, `imageBase64`,
|
|
980
968
|
* `referenceImage` must be provided:
|
|
@@ -994,31 +982,15 @@ export declare const pipelineExecutorCapability: {
|
|
|
994
982
|
* - `referenceImage`: named file from the reference-image store.
|
|
995
983
|
*/
|
|
996
984
|
readonly runPipeline: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
997
|
-
engine: z.ZodOptional<z.ZodObject<{
|
|
998
|
-
runtime: z.ZodEnum<{
|
|
999
|
-
node: "node";
|
|
1000
|
-
python: "python";
|
|
1001
|
-
}>;
|
|
1002
|
-
backend: z.ZodString;
|
|
1003
|
-
format: z.ZodEnum<{
|
|
1004
|
-
onnx: "onnx";
|
|
1005
|
-
coreml: "coreml";
|
|
1006
|
-
openvino: "openvino";
|
|
1007
|
-
tflite: "tflite";
|
|
1008
|
-
pt: "pt";
|
|
1009
|
-
gguf: "gguf";
|
|
1010
|
-
}>;
|
|
1011
|
-
device: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
}, z.core.$strip>>;
|
|
1013
985
|
steps: z.ZodArray<z.ZodType<PipelineStepInputOutput, unknown, z.core.$ZodTypeInternals<PipelineStepInputOutput, unknown>>>;
|
|
1014
986
|
frame: z.ZodOptional<z.ZodObject<{
|
|
1015
987
|
data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
1016
988
|
format: z.ZodEnum<{
|
|
1017
|
-
rgb: "rgb";
|
|
1018
|
-
gray: "gray";
|
|
1019
989
|
jpeg: "jpeg";
|
|
990
|
+
rgb: "rgb";
|
|
1020
991
|
bgr: "bgr";
|
|
1021
992
|
yuv420: "yuv420";
|
|
993
|
+
gray: "gray";
|
|
1022
994
|
}>;
|
|
1023
995
|
width: z.ZodNumber;
|
|
1024
996
|
height: z.ZodNumber;
|
|
@@ -1043,11 +1015,11 @@ export declare const pipelineExecutorCapability: {
|
|
|
1043
1015
|
width: z.ZodNumber;
|
|
1044
1016
|
height: z.ZodNumber;
|
|
1045
1017
|
format: z.ZodEnum<{
|
|
1046
|
-
rgb: "rgb";
|
|
1047
|
-
gray: "gray";
|
|
1048
1018
|
jpeg: "jpeg";
|
|
1019
|
+
rgb: "rgb";
|
|
1049
1020
|
bgr: "bgr";
|
|
1050
1021
|
yuv420: "yuv420";
|
|
1022
|
+
gray: "gray";
|
|
1051
1023
|
}>;
|
|
1052
1024
|
pts: z.ZodNumber;
|
|
1053
1025
|
byteLength: z.ZodNumber;
|
|
@@ -1072,11 +1044,11 @@ export declare const pipelineExecutorCapability: {
|
|
|
1072
1044
|
width: z.ZodNumber;
|
|
1073
1045
|
height: z.ZodNumber;
|
|
1074
1046
|
format: z.ZodEnum<{
|
|
1075
|
-
rgb: "rgb";
|
|
1076
|
-
gray: "gray";
|
|
1077
1047
|
jpeg: "jpeg";
|
|
1048
|
+
rgb: "rgb";
|
|
1078
1049
|
bgr: "bgr";
|
|
1079
1050
|
yuv420: "yuv420";
|
|
1051
|
+
gray: "gray";
|
|
1080
1052
|
}>;
|
|
1081
1053
|
pts: z.ZodNumber;
|
|
1082
1054
|
byteLength: z.ZodNumber;
|
|
@@ -1090,6 +1062,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
1090
1062
|
h: z.ZodNumber;
|
|
1091
1063
|
}, z.core.$strip>;
|
|
1092
1064
|
}, z.core.$strip>>;
|
|
1065
|
+
replay: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1093
1066
|
}, z.core.$strip>, z.ZodCustom<FrameResult, FrameResult>, "mutation">;
|
|
1094
1067
|
/**
|
|
1095
1068
|
* Batched run — N raw frames packed into one cap call. The provider
|
|
@@ -1103,31 +1076,15 @@ export declare const pipelineExecutorCapability: {
|
|
|
1103
1076
|
* N frames in one call to amortise per-call IPC overhead.
|
|
1104
1077
|
*/
|
|
1105
1078
|
readonly runPipelineBatch: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1106
|
-
engine: z.ZodOptional<z.ZodObject<{
|
|
1107
|
-
runtime: z.ZodEnum<{
|
|
1108
|
-
node: "node";
|
|
1109
|
-
python: "python";
|
|
1110
|
-
}>;
|
|
1111
|
-
backend: z.ZodString;
|
|
1112
|
-
format: z.ZodEnum<{
|
|
1113
|
-
onnx: "onnx";
|
|
1114
|
-
coreml: "coreml";
|
|
1115
|
-
openvino: "openvino";
|
|
1116
|
-
tflite: "tflite";
|
|
1117
|
-
pt: "pt";
|
|
1118
|
-
gguf: "gguf";
|
|
1119
|
-
}>;
|
|
1120
|
-
device: z.ZodOptional<z.ZodString>;
|
|
1121
|
-
}, z.core.$strip>>;
|
|
1122
1079
|
steps: z.ZodArray<z.ZodType<PipelineStepInputOutput, unknown, z.core.$ZodTypeInternals<PipelineStepInputOutput, unknown>>>;
|
|
1123
1080
|
frames: z.ZodArray<z.ZodObject<{
|
|
1124
1081
|
data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
1125
1082
|
format: z.ZodEnum<{
|
|
1126
|
-
rgb: "rgb";
|
|
1127
|
-
gray: "gray";
|
|
1128
1083
|
jpeg: "jpeg";
|
|
1084
|
+
rgb: "rgb";
|
|
1129
1085
|
bgr: "bgr";
|
|
1130
1086
|
yuv420: "yuv420";
|
|
1087
|
+
gray: "gray";
|
|
1131
1088
|
}>;
|
|
1132
1089
|
width: z.ZodNumber;
|
|
1133
1090
|
height: z.ZodNumber;
|
|
@@ -1152,8 +1109,8 @@ export declare const pipelineExecutorCapability: {
|
|
|
1152
1109
|
height: z.ZodNumber;
|
|
1153
1110
|
format: z.ZodEnum<{
|
|
1154
1111
|
rgb: "rgb";
|
|
1155
|
-
gray: "gray";
|
|
1156
1112
|
bgr: "bgr";
|
|
1113
|
+
gray: "gray";
|
|
1157
1114
|
}>;
|
|
1158
1115
|
}, z.core.$strip>, z.ZodObject<{
|
|
1159
1116
|
frameId: z.ZodNumber;
|
|
@@ -1175,12 +1132,23 @@ export declare const pipelineExecutorCapability: {
|
|
|
1175
1132
|
readonly uncacheFrame: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1176
1133
|
frameId: z.ZodNumber;
|
|
1177
1134
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
1178
|
-
/**
|
|
1179
|
-
|
|
1135
|
+
/**
|
|
1136
|
+
* The effective provisioning of ONE pool of this node (operator override →
|
|
1137
|
+
* the pool's own runtime row). `deviceKey` names the device pool; absent is
|
|
1138
|
+
* the node-default pool. It answered only for the node default until
|
|
1139
|
+
* D646, so a benchmark on `openvino:npu` recorded the onnx pool's tuning
|
|
1140
|
+
* beside an NPU measurement.
|
|
1141
|
+
*/
|
|
1142
|
+
readonly getEffectiveTuning: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1143
|
+
deviceKey: z.ZodOptional<z.ZodString>;
|
|
1144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1145
|
+
deviceKey: z.ZodNullable<z.ZodString>;
|
|
1146
|
+
runtime: z.ZodString;
|
|
1180
1147
|
batchMode: z.ZodString;
|
|
1181
1148
|
windowMs: z.ZodNumber;
|
|
1182
1149
|
maxBatchSize: z.ZodNumber;
|
|
1183
1150
|
concurrency: z.ZodNumber;
|
|
1151
|
+
numWorkers: z.ZodNumber;
|
|
1184
1152
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1185
1153
|
/**
|
|
1186
1154
|
* List every EngineFactory currently loaded in this executor's RAM,
|
|
@@ -1190,10 +1158,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
1190
1158
|
readonly listLoadedEngines: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1191
1159
|
engineKey: z.ZodString;
|
|
1192
1160
|
engine: z.ZodObject<{
|
|
1193
|
-
runtime: z.
|
|
1194
|
-
node: "node";
|
|
1195
|
-
python: "python";
|
|
1196
|
-
}>;
|
|
1161
|
+
runtime: z.ZodLiteral<"python">;
|
|
1197
1162
|
backend: z.ZodString;
|
|
1198
1163
|
format: z.ZodEnum<{
|
|
1199
1164
|
onnx: "onnx";
|
|
@@ -1209,7 +1174,6 @@ export declare const pipelineExecutorCapability: {
|
|
|
1209
1174
|
inUseByCameras: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
|
|
1210
1175
|
kind: z.ZodEnum<{
|
|
1211
1176
|
runtime: "runtime";
|
|
1212
|
-
"warm-override": "warm-override";
|
|
1213
1177
|
"device-pool": "device-pool";
|
|
1214
1178
|
}>;
|
|
1215
1179
|
poolPid: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1219,10 +1183,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
1219
1183
|
/** Warm up an engine without running a frame. No-op if already loaded. */
|
|
1220
1184
|
readonly spinEngine: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1221
1185
|
engine: z.ZodObject<{
|
|
1222
|
-
runtime: z.
|
|
1223
|
-
node: "node";
|
|
1224
|
-
python: "python";
|
|
1225
|
-
}>;
|
|
1186
|
+
runtime: z.ZodLiteral<"python">;
|
|
1226
1187
|
backend: z.ZodString;
|
|
1227
1188
|
format: z.ZodEnum<{
|
|
1228
1189
|
onnx: "onnx";
|
|
@@ -1244,10 +1205,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
1244
1205
|
*/
|
|
1245
1206
|
readonly killEngine: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1246
1207
|
engine: z.ZodObject<{
|
|
1247
|
-
runtime: z.
|
|
1248
|
-
node: "node";
|
|
1249
|
-
python: "python";
|
|
1250
|
-
}>;
|
|
1208
|
+
runtime: z.ZodLiteral<"python">;
|
|
1251
1209
|
backend: z.ZodString;
|
|
1252
1210
|
format: z.ZodEnum<{
|
|
1253
1211
|
onnx: "onnx";
|