@camstack/addon-export-hap 1.2.149 → 1.2.150
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/hap-export.addon.js +156 -7
- package/dist/hap-export.addon.mjs +156 -7
- package/package.json +2 -2
package/dist/hap-export.addon.js
CHANGED
|
@@ -11388,6 +11388,15 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
11388
11388
|
"balanced",
|
|
11389
11389
|
"strict"
|
|
11390
11390
|
]);
|
|
11391
|
+
/** Steps whose effect a root label can BE. */
|
|
11392
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
11393
|
+
"animal-classifier",
|
|
11394
|
+
"vehicle-classifier",
|
|
11395
|
+
"package-detection"
|
|
11396
|
+
];
|
|
11397
|
+
/** Steps whose box a root detection can BE. */
|
|
11398
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
11399
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
11391
11400
|
var MODEL_FORMATS = [
|
|
11392
11401
|
"onnx",
|
|
11393
11402
|
"coreml",
|
|
@@ -11520,6 +11529,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
11520
11529
|
/** True when the weights or their data forbid commercial use. */
|
|
11521
11530
|
nonCommercial: boolean().optional()
|
|
11522
11531
|
}));
|
|
11532
|
+
/**
|
|
11533
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
11534
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
11535
|
+
*
|
|
11536
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
11537
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
11538
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
11539
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
11540
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
11541
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
11542
|
+
*/
|
|
11543
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [object({
|
|
11544
|
+
kind: literal("label"),
|
|
11545
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
11546
|
+
labelToEffect: record(string(), string()),
|
|
11547
|
+
uncovered: array(string()).readonly()
|
|
11548
|
+
}), object({
|
|
11549
|
+
kind: literal("crop"),
|
|
11550
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
11551
|
+
rootLabels: array(string()).readonly(),
|
|
11552
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
11553
|
+
childClass: _enum(["plate", "face"]),
|
|
11554
|
+
/**
|
|
11555
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
11556
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
11557
|
+
* stored by an import.
|
|
11558
|
+
*/
|
|
11559
|
+
rootInputPx: number().int().positive().optional()
|
|
11560
|
+
})]);
|
|
11523
11561
|
var ModelCatalogEntrySchema = object({
|
|
11524
11562
|
id: string(),
|
|
11525
11563
|
name: string(),
|
|
@@ -11646,6 +11684,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
11646
11684
|
*/
|
|
11647
11685
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
11648
11686
|
/**
|
|
11687
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
11688
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
11689
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
11690
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
11691
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
11692
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
11693
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
11694
|
+
*/
|
|
11695
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
11696
|
+
/**
|
|
11649
11697
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
11650
11698
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
11651
11699
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -19449,6 +19497,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
19449
19497
|
"stream-offline",
|
|
19450
19498
|
"node-online",
|
|
19451
19499
|
"node-offline",
|
|
19500
|
+
"node-restarting",
|
|
19501
|
+
"node-updating",
|
|
19452
19502
|
"node-inference-unavailable",
|
|
19453
19503
|
"detection-blind",
|
|
19454
19504
|
"addon-crash-loop",
|
|
@@ -23966,6 +24016,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23966
24016
|
timestamp: number()
|
|
23967
24017
|
});
|
|
23968
24018
|
/**
|
|
24019
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
24020
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
24021
|
+
*/
|
|
24022
|
+
var SuppliedRootOutputSchema = object({
|
|
24023
|
+
stepId: string(),
|
|
24024
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
24025
|
+
modelId: string(),
|
|
24026
|
+
detections: array(object({
|
|
24027
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
24028
|
+
bbox: tuple([
|
|
24029
|
+
number(),
|
|
24030
|
+
number(),
|
|
24031
|
+
number(),
|
|
24032
|
+
number()
|
|
24033
|
+
]),
|
|
24034
|
+
score: number(),
|
|
24035
|
+
/**
|
|
24036
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
24037
|
+
* detector already re-found inside a root face box (D730), so its
|
|
24038
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
24039
|
+
*/
|
|
24040
|
+
landmarks: array(object({
|
|
24041
|
+
x: number(),
|
|
24042
|
+
y: number()
|
|
24043
|
+
})).optional()
|
|
24044
|
+
})).min(1)
|
|
24045
|
+
});
|
|
24046
|
+
/**
|
|
23969
24047
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23970
24048
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23971
24049
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -24095,7 +24173,8 @@ var PipelineModelOptionSchema = object({
|
|
|
24095
24173
|
group: ModelVariantGroupSchema.optional(),
|
|
24096
24174
|
legacy: boolean().optional(),
|
|
24097
24175
|
provider: ModelProviderIdSchema.optional(),
|
|
24098
|
-
defaultConfidence: number().optional()
|
|
24176
|
+
defaultConfidence: number().optional(),
|
|
24177
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
24099
24178
|
});
|
|
24100
24179
|
var ConfigFieldBridge = custom();
|
|
24101
24180
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -24363,7 +24442,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24363
24442
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
24364
24443
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
24365
24444
|
*/
|
|
24366
|
-
replay: literal(true).optional()
|
|
24445
|
+
replay: literal(true).optional(),
|
|
24446
|
+
/**
|
|
24447
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
24448
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
24449
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
24450
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
24451
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
24452
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
24453
|
+
*/
|
|
24454
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
24367
24455
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
24368
24456
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24369
24457
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -25465,7 +25553,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
25465
25553
|
*/
|
|
25466
25554
|
cropJpeg: string().optional(),
|
|
25467
25555
|
parent: DetailParentSchema,
|
|
25468
|
-
steps: array(string()).optional()
|
|
25556
|
+
steps: array(string()).optional(),
|
|
25557
|
+
/**
|
|
25558
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25559
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25560
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25561
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25562
|
+
* requested step infers as before.
|
|
25563
|
+
*/
|
|
25564
|
+
supplied: object({
|
|
25565
|
+
stepId: string(),
|
|
25566
|
+
modelId: string(),
|
|
25567
|
+
boxes: array(object({
|
|
25568
|
+
bbox: NativeCropBboxSchema,
|
|
25569
|
+
score: number()
|
|
25570
|
+
})).min(1)
|
|
25571
|
+
}).optional()
|
|
25469
25572
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
25470
25573
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
25471
25574
|
stepId: string(),
|
|
@@ -31772,6 +31875,27 @@ var ViewerEndpointsSchema = object({
|
|
|
31772
31875
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
31773
31876
|
resolved: array(string()).readonly()
|
|
31774
31877
|
});
|
|
31878
|
+
/**
|
|
31879
|
+
* One audience's hub address (see `hub-address.ts`): the operator's stored
|
|
31880
|
+
* override, the address in use, and where it came from.
|
|
31881
|
+
*/
|
|
31882
|
+
var HubAddressSnapshotSchema = object({
|
|
31883
|
+
/** The operator's override, or null for automatic. */
|
|
31884
|
+
override: string().nullable(),
|
|
31885
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
31886
|
+
resolved: string().nullable(),
|
|
31887
|
+
source: _enum([
|
|
31888
|
+
"override",
|
|
31889
|
+
"auto",
|
|
31890
|
+
"none"
|
|
31891
|
+
])
|
|
31892
|
+
});
|
|
31893
|
+
var HubAddressesSchema = object({
|
|
31894
|
+
/** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
|
|
31895
|
+
cluster: HubAddressSnapshotSchema,
|
|
31896
|
+
/** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
|
|
31897
|
+
browser: HubAddressSnapshotSchema
|
|
31898
|
+
});
|
|
31775
31899
|
var AllowedAddressesSchema = object({
|
|
31776
31900
|
/**
|
|
31777
31901
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -31818,7 +31942,13 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
31818
31942
|
* an address notification links can be flagged with, not a hub
|
|
31819
31943
|
* route. Default `false`: racers and rankers never see it. */
|
|
31820
31944
|
includeAppLink: boolean().optional()
|
|
31821
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(),
|
|
31945
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), HubAddressesSchema), method(object({
|
|
31946
|
+
audience: _enum(["cluster", "browser"]),
|
|
31947
|
+
baseUrl: string().nullable()
|
|
31948
|
+
}), HubAddressesSchema, {
|
|
31949
|
+
kind: "mutation",
|
|
31950
|
+
auth: "admin"
|
|
31951
|
+
}), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
31822
31952
|
kind: "mutation",
|
|
31823
31953
|
auth: "admin"
|
|
31824
31954
|
}), method(object({
|
|
@@ -32208,7 +32338,8 @@ var MotionStatusSchema = object({
|
|
|
32208
32338
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32209
32339
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32210
32340
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32211
|
-
* A provider's `isDetected`
|
|
32341
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
32342
|
+
* (`hubMotionNativeProvider`).
|
|
32212
32343
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32213
32344
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32214
32345
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -40310,6 +40441,12 @@ Object.freeze({
|
|
|
40310
40441
|
addonId: null,
|
|
40311
40442
|
access: "view"
|
|
40312
40443
|
},
|
|
40444
|
+
"localNetwork.getHubAddresses": {
|
|
40445
|
+
capName: "local-network",
|
|
40446
|
+
capScope: "system",
|
|
40447
|
+
addonId: null,
|
|
40448
|
+
access: "view"
|
|
40449
|
+
},
|
|
40313
40450
|
"localNetwork.getNotificationEndpoint": {
|
|
40314
40451
|
capName: "local-network",
|
|
40315
40452
|
capScope: "system",
|
|
@@ -40364,6 +40501,12 @@ Object.freeze({
|
|
|
40364
40501
|
addonId: null,
|
|
40365
40502
|
access: "create"
|
|
40366
40503
|
},
|
|
40504
|
+
"localNetwork.setHubAddress": {
|
|
40505
|
+
capName: "local-network",
|
|
40506
|
+
capScope: "system",
|
|
40507
|
+
addonId: null,
|
|
40508
|
+
access: "create"
|
|
40509
|
+
},
|
|
40367
40510
|
"localNetwork.setNotificationEndpoint": {
|
|
40368
40511
|
capName: "local-network",
|
|
40369
40512
|
capScope: "system",
|
|
@@ -48763,6 +48906,8 @@ new Map(Object.entries({
|
|
|
48763
48906
|
"detection-blind": "device-events",
|
|
48764
48907
|
"node-online": "system",
|
|
48765
48908
|
"node-offline": "system",
|
|
48909
|
+
"node-restarting": "system",
|
|
48910
|
+
"node-updating": "system",
|
|
48766
48911
|
"node-inference-unavailable": "system",
|
|
48767
48912
|
"addon-crash-loop": "system",
|
|
48768
48913
|
"addon-update-available": "system",
|
|
@@ -48840,6 +48985,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48840
48985
|
kinds: [
|
|
48841
48986
|
"node-offline",
|
|
48842
48987
|
"node-online",
|
|
48988
|
+
"node-restarting",
|
|
48843
48989
|
"node-inference-unavailable"
|
|
48844
48990
|
]
|
|
48845
48991
|
},
|
|
@@ -48861,6 +49007,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48861
49007
|
label: "Server & container updates",
|
|
48862
49008
|
kinds: [
|
|
48863
49009
|
"server-update-available",
|
|
49010
|
+
"node-updating",
|
|
48864
49011
|
"server-updated",
|
|
48865
49012
|
"wrapper-update-available"
|
|
48866
49013
|
]
|
|
@@ -49008,6 +49155,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
49008
49155
|
kinds: [
|
|
49009
49156
|
"node-offline",
|
|
49010
49157
|
"node-online",
|
|
49158
|
+
"node-restarting",
|
|
49011
49159
|
"node-inference-unavailable"
|
|
49012
49160
|
]
|
|
49013
49161
|
},
|
|
@@ -49029,6 +49177,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
49029
49177
|
example: "server 1.2.377 → 1.2.378",
|
|
49030
49178
|
kinds: [
|
|
49031
49179
|
"server-update-available",
|
|
49180
|
+
"node-updating",
|
|
49032
49181
|
"server-updated",
|
|
49033
49182
|
"wrapper-update-available"
|
|
49034
49183
|
]
|
|
@@ -49061,7 +49210,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
49061
49210
|
{
|
|
49062
49211
|
name: "summarySection",
|
|
49063
49212
|
label: "Summary: this section",
|
|
49064
|
-
description: "The section a per-section summary row is about
|
|
49213
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
49065
49214
|
example: "Batterie scariche",
|
|
49066
49215
|
group: "system",
|
|
49067
49216
|
families: ["rule"],
|
|
@@ -96754,7 +96903,7 @@ function createBoundedFfmpegRunner(input) {
|
|
|
96754
96903
|
code: null,
|
|
96755
96904
|
timedOut: false,
|
|
96756
96905
|
spawnFailed: true,
|
|
96757
|
-
stderr: `no pinned ffmpeg on this node
|
|
96906
|
+
stderr: `no pinned ffmpeg on this node: ${err instanceof Error ? err.message : String(err)}`
|
|
96758
96907
|
};
|
|
96759
96908
|
}
|
|
96760
96909
|
return await new Promise((resolve) => {
|
|
@@ -11378,6 +11378,15 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
11378
11378
|
"balanced",
|
|
11379
11379
|
"strict"
|
|
11380
11380
|
]);
|
|
11381
|
+
/** Steps whose effect a root label can BE. */
|
|
11382
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
11383
|
+
"animal-classifier",
|
|
11384
|
+
"vehicle-classifier",
|
|
11385
|
+
"package-detection"
|
|
11386
|
+
];
|
|
11387
|
+
/** Steps whose box a root detection can BE. */
|
|
11388
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
11389
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
11381
11390
|
var MODEL_FORMATS = [
|
|
11382
11391
|
"onnx",
|
|
11383
11392
|
"coreml",
|
|
@@ -11510,6 +11519,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
11510
11519
|
/** True when the weights or their data forbid commercial use. */
|
|
11511
11520
|
nonCommercial: boolean().optional()
|
|
11512
11521
|
}));
|
|
11522
|
+
/**
|
|
11523
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
11524
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
11525
|
+
*
|
|
11526
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
11527
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
11528
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
11529
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
11530
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
11531
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
11532
|
+
*/
|
|
11533
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [object({
|
|
11534
|
+
kind: literal("label"),
|
|
11535
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
11536
|
+
labelToEffect: record(string(), string()),
|
|
11537
|
+
uncovered: array(string()).readonly()
|
|
11538
|
+
}), object({
|
|
11539
|
+
kind: literal("crop"),
|
|
11540
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
11541
|
+
rootLabels: array(string()).readonly(),
|
|
11542
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
11543
|
+
childClass: _enum(["plate", "face"]),
|
|
11544
|
+
/**
|
|
11545
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
11546
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
11547
|
+
* stored by an import.
|
|
11548
|
+
*/
|
|
11549
|
+
rootInputPx: number().int().positive().optional()
|
|
11550
|
+
})]);
|
|
11513
11551
|
var ModelCatalogEntrySchema = object({
|
|
11514
11552
|
id: string(),
|
|
11515
11553
|
name: string(),
|
|
@@ -11636,6 +11674,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
11636
11674
|
*/
|
|
11637
11675
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
11638
11676
|
/**
|
|
11677
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
11678
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
11679
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
11680
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
11681
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
11682
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
11683
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
11684
|
+
*/
|
|
11685
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
11686
|
+
/**
|
|
11639
11687
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
11640
11688
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
11641
11689
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -19439,6 +19487,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
19439
19487
|
"stream-offline",
|
|
19440
19488
|
"node-online",
|
|
19441
19489
|
"node-offline",
|
|
19490
|
+
"node-restarting",
|
|
19491
|
+
"node-updating",
|
|
19442
19492
|
"node-inference-unavailable",
|
|
19443
19493
|
"detection-blind",
|
|
19444
19494
|
"addon-crash-loop",
|
|
@@ -23956,6 +24006,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23956
24006
|
timestamp: number()
|
|
23957
24007
|
});
|
|
23958
24008
|
/**
|
|
24009
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
24010
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
24011
|
+
*/
|
|
24012
|
+
var SuppliedRootOutputSchema = object({
|
|
24013
|
+
stepId: string(),
|
|
24014
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
24015
|
+
modelId: string(),
|
|
24016
|
+
detections: array(object({
|
|
24017
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
24018
|
+
bbox: tuple([
|
|
24019
|
+
number(),
|
|
24020
|
+
number(),
|
|
24021
|
+
number(),
|
|
24022
|
+
number()
|
|
24023
|
+
]),
|
|
24024
|
+
score: number(),
|
|
24025
|
+
/**
|
|
24026
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
24027
|
+
* detector already re-found inside a root face box (D730), so its
|
|
24028
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
24029
|
+
*/
|
|
24030
|
+
landmarks: array(object({
|
|
24031
|
+
x: number(),
|
|
24032
|
+
y: number()
|
|
24033
|
+
})).optional()
|
|
24034
|
+
})).min(1)
|
|
24035
|
+
});
|
|
24036
|
+
/**
|
|
23959
24037
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23960
24038
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23961
24039
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -24085,7 +24163,8 @@ var PipelineModelOptionSchema = object({
|
|
|
24085
24163
|
group: ModelVariantGroupSchema.optional(),
|
|
24086
24164
|
legacy: boolean().optional(),
|
|
24087
24165
|
provider: ModelProviderIdSchema.optional(),
|
|
24088
|
-
defaultConfidence: number().optional()
|
|
24166
|
+
defaultConfidence: number().optional(),
|
|
24167
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
24089
24168
|
});
|
|
24090
24169
|
var ConfigFieldBridge = custom();
|
|
24091
24170
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -24353,7 +24432,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24353
24432
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
24354
24433
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
24355
24434
|
*/
|
|
24356
|
-
replay: literal(true).optional()
|
|
24435
|
+
replay: literal(true).optional(),
|
|
24436
|
+
/**
|
|
24437
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
24438
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
24439
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
24440
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
24441
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
24442
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
24443
|
+
*/
|
|
24444
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
24357
24445
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
24358
24446
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24359
24447
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -25455,7 +25543,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
25455
25543
|
*/
|
|
25456
25544
|
cropJpeg: string().optional(),
|
|
25457
25545
|
parent: DetailParentSchema,
|
|
25458
|
-
steps: array(string()).optional()
|
|
25546
|
+
steps: array(string()).optional(),
|
|
25547
|
+
/**
|
|
25548
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25549
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25550
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25551
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25552
|
+
* requested step infers as before.
|
|
25553
|
+
*/
|
|
25554
|
+
supplied: object({
|
|
25555
|
+
stepId: string(),
|
|
25556
|
+
modelId: string(),
|
|
25557
|
+
boxes: array(object({
|
|
25558
|
+
bbox: NativeCropBboxSchema,
|
|
25559
|
+
score: number()
|
|
25560
|
+
})).min(1)
|
|
25561
|
+
}).optional()
|
|
25459
25562
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
25460
25563
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
25461
25564
|
stepId: string(),
|
|
@@ -31762,6 +31865,27 @@ var ViewerEndpointsSchema = object({
|
|
|
31762
31865
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
31763
31866
|
resolved: array(string()).readonly()
|
|
31764
31867
|
});
|
|
31868
|
+
/**
|
|
31869
|
+
* One audience's hub address (see `hub-address.ts`): the operator's stored
|
|
31870
|
+
* override, the address in use, and where it came from.
|
|
31871
|
+
*/
|
|
31872
|
+
var HubAddressSnapshotSchema = object({
|
|
31873
|
+
/** The operator's override, or null for automatic. */
|
|
31874
|
+
override: string().nullable(),
|
|
31875
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
31876
|
+
resolved: string().nullable(),
|
|
31877
|
+
source: _enum([
|
|
31878
|
+
"override",
|
|
31879
|
+
"auto",
|
|
31880
|
+
"none"
|
|
31881
|
+
])
|
|
31882
|
+
});
|
|
31883
|
+
var HubAddressesSchema = object({
|
|
31884
|
+
/** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
|
|
31885
|
+
cluster: HubAddressSnapshotSchema,
|
|
31886
|
+
/** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
|
|
31887
|
+
browser: HubAddressSnapshotSchema
|
|
31888
|
+
});
|
|
31765
31889
|
var AllowedAddressesSchema = object({
|
|
31766
31890
|
/**
|
|
31767
31891
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -31808,7 +31932,13 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
31808
31932
|
* an address notification links can be flagged with, not a hub
|
|
31809
31933
|
* route. Default `false`: racers and rankers never see it. */
|
|
31810
31934
|
includeAppLink: boolean().optional()
|
|
31811
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(),
|
|
31935
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), HubAddressesSchema), method(object({
|
|
31936
|
+
audience: _enum(["cluster", "browser"]),
|
|
31937
|
+
baseUrl: string().nullable()
|
|
31938
|
+
}), HubAddressesSchema, {
|
|
31939
|
+
kind: "mutation",
|
|
31940
|
+
auth: "admin"
|
|
31941
|
+
}), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
31812
31942
|
kind: "mutation",
|
|
31813
31943
|
auth: "admin"
|
|
31814
31944
|
}), method(object({
|
|
@@ -32198,7 +32328,8 @@ var MotionStatusSchema = object({
|
|
|
32198
32328
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32199
32329
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32200
32330
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32201
|
-
* A provider's `isDetected`
|
|
32331
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
32332
|
+
* (`hubMotionNativeProvider`).
|
|
32202
32333
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32203
32334
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32204
32335
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -40300,6 +40431,12 @@ Object.freeze({
|
|
|
40300
40431
|
addonId: null,
|
|
40301
40432
|
access: "view"
|
|
40302
40433
|
},
|
|
40434
|
+
"localNetwork.getHubAddresses": {
|
|
40435
|
+
capName: "local-network",
|
|
40436
|
+
capScope: "system",
|
|
40437
|
+
addonId: null,
|
|
40438
|
+
access: "view"
|
|
40439
|
+
},
|
|
40303
40440
|
"localNetwork.getNotificationEndpoint": {
|
|
40304
40441
|
capName: "local-network",
|
|
40305
40442
|
capScope: "system",
|
|
@@ -40354,6 +40491,12 @@ Object.freeze({
|
|
|
40354
40491
|
addonId: null,
|
|
40355
40492
|
access: "create"
|
|
40356
40493
|
},
|
|
40494
|
+
"localNetwork.setHubAddress": {
|
|
40495
|
+
capName: "local-network",
|
|
40496
|
+
capScope: "system",
|
|
40497
|
+
addonId: null,
|
|
40498
|
+
access: "create"
|
|
40499
|
+
},
|
|
40357
40500
|
"localNetwork.setNotificationEndpoint": {
|
|
40358
40501
|
capName: "local-network",
|
|
40359
40502
|
capScope: "system",
|
|
@@ -48753,6 +48896,8 @@ new Map(Object.entries({
|
|
|
48753
48896
|
"detection-blind": "device-events",
|
|
48754
48897
|
"node-online": "system",
|
|
48755
48898
|
"node-offline": "system",
|
|
48899
|
+
"node-restarting": "system",
|
|
48900
|
+
"node-updating": "system",
|
|
48756
48901
|
"node-inference-unavailable": "system",
|
|
48757
48902
|
"addon-crash-loop": "system",
|
|
48758
48903
|
"addon-update-available": "system",
|
|
@@ -48830,6 +48975,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48830
48975
|
kinds: [
|
|
48831
48976
|
"node-offline",
|
|
48832
48977
|
"node-online",
|
|
48978
|
+
"node-restarting",
|
|
48833
48979
|
"node-inference-unavailable"
|
|
48834
48980
|
]
|
|
48835
48981
|
},
|
|
@@ -48851,6 +48997,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48851
48997
|
label: "Server & container updates",
|
|
48852
48998
|
kinds: [
|
|
48853
48999
|
"server-update-available",
|
|
49000
|
+
"node-updating",
|
|
48854
49001
|
"server-updated",
|
|
48855
49002
|
"wrapper-update-available"
|
|
48856
49003
|
]
|
|
@@ -48998,6 +49145,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
48998
49145
|
kinds: [
|
|
48999
49146
|
"node-offline",
|
|
49000
49147
|
"node-online",
|
|
49148
|
+
"node-restarting",
|
|
49001
49149
|
"node-inference-unavailable"
|
|
49002
49150
|
]
|
|
49003
49151
|
},
|
|
@@ -49019,6 +49167,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
49019
49167
|
example: "server 1.2.377 → 1.2.378",
|
|
49020
49168
|
kinds: [
|
|
49021
49169
|
"server-update-available",
|
|
49170
|
+
"node-updating",
|
|
49022
49171
|
"server-updated",
|
|
49023
49172
|
"wrapper-update-available"
|
|
49024
49173
|
]
|
|
@@ -49051,7 +49200,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
49051
49200
|
{
|
|
49052
49201
|
name: "summarySection",
|
|
49053
49202
|
label: "Summary: this section",
|
|
49054
|
-
description: "The section a per-section summary row is about
|
|
49203
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
49055
49204
|
example: "Batterie scariche",
|
|
49056
49205
|
group: "system",
|
|
49057
49206
|
families: ["rule"],
|
|
@@ -96744,7 +96893,7 @@ function createBoundedFfmpegRunner(input) {
|
|
|
96744
96893
|
code: null,
|
|
96745
96894
|
timedOut: false,
|
|
96746
96895
|
spawnFailed: true,
|
|
96747
|
-
stderr: `no pinned ffmpeg on this node
|
|
96896
|
+
stderr: `no pinned ffmpeg on this node: ${err instanceof Error ? err.message : String(err)}`
|
|
96748
96897
|
};
|
|
96749
96898
|
}
|
|
96750
96899
|
return await new Promise((resolve) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.150",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
{
|
|
45
45
|
"id": "homekitClips",
|
|
46
46
|
"displayName": "HomeKit Clips",
|
|
47
|
-
"description": "Copies of the clips CamStack SENT to HomeKit Secure Video. HomeKit is a sink — HAP has no read-back — so a clip is only ever ours if we teed it while sending it
|
|
47
|
+
"description": "Copies of the clips CamStack SENT to HomeKit Secure Video. HomeKit is a sink — HAP has no read-back — so a clip is only ever ours if we teed it while sending it. Its own location because a teed clip has no track, detection or event behind it, so it is not event media and no media-class retention may attach to it: the age is per camera (14 days by default) with fixed per-camera and whole-store rails. Exactly ONE location; repoint it to choose the disk. Written under the `homekit-clips/` subtree so occupancy is the class subtree even when it shares a root.",
|
|
48
48
|
"cardinality": "single",
|
|
49
49
|
"access": "local-path",
|
|
50
50
|
"defaultsTo": "recordings"
|