@camstack/addon-ai 0.4.112 → 0.4.114
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 +54 -2
- package/dist/addon.mjs +54 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12466,7 +12466,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12466
12466
|
* This is what lets one picker serve both the bypass and the full source
|
|
12467
12467
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12468
12468
|
*/
|
|
12469
|
-
allowTranscode: boolean().optional()
|
|
12469
|
+
allowTranscode: boolean().optional(),
|
|
12470
|
+
/**
|
|
12471
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12472
|
+
*
|
|
12473
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12474
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12475
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12476
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12477
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12478
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12479
|
+
*
|
|
12480
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12481
|
+
* here when it decides which source to BIND to a slot
|
|
12482
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12483
|
+
* could never bind them.
|
|
12484
|
+
*/
|
|
12485
|
+
requireProfileBound: boolean().optional()
|
|
12470
12486
|
}).readonly();
|
|
12471
12487
|
var PickStreamPreferencesSchema = object({
|
|
12472
12488
|
/**
|
|
@@ -12507,7 +12523,43 @@ var PickedCamStreamSchema = object({
|
|
|
12507
12523
|
*/
|
|
12508
12524
|
transcodes: boolean(),
|
|
12509
12525
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12510
|
-
reason: string()
|
|
12526
|
+
reason: string(),
|
|
12527
|
+
/**
|
|
12528
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12529
|
+
*
|
|
12530
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12531
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12532
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12533
|
+
* the same function a second time.
|
|
12534
|
+
*
|
|
12535
|
+
* Absent when the source has no slot, which a caller passing
|
|
12536
|
+
* `requireProfileBound` can never see.
|
|
12537
|
+
*/
|
|
12538
|
+
profile: CamProfileSchema.optional(),
|
|
12539
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12540
|
+
brokerId: string().optional(),
|
|
12541
|
+
/**
|
|
12542
|
+
* The broker restream URL to dial for this stream.
|
|
12543
|
+
*
|
|
12544
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12545
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12546
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12547
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12548
|
+
*/
|
|
12549
|
+
url: string().optional(),
|
|
12550
|
+
/**
|
|
12551
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12552
|
+
* from.
|
|
12553
|
+
*
|
|
12554
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12555
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12556
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12557
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12558
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12559
|
+
* are not interchangeable.
|
|
12560
|
+
*/
|
|
12561
|
+
fps: number$1().positive().optional(),
|
|
12562
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12511
12563
|
});
|
|
12512
12564
|
DeviceType.Camera, method(object({ deviceId: number$1().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number$1().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12513
12565
|
deviceId: number$1().int().nonnegative(),
|
package/dist/addon.mjs
CHANGED
|
@@ -12493,7 +12493,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12493
12493
|
* This is what lets one picker serve both the bypass and the full source
|
|
12494
12494
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12495
12495
|
*/
|
|
12496
|
-
allowTranscode: boolean().optional()
|
|
12496
|
+
allowTranscode: boolean().optional(),
|
|
12497
|
+
/**
|
|
12498
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12499
|
+
*
|
|
12500
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12501
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12502
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12503
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12504
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12505
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12506
|
+
*
|
|
12507
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12508
|
+
* here when it decides which source to BIND to a slot
|
|
12509
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12510
|
+
* could never bind them.
|
|
12511
|
+
*/
|
|
12512
|
+
requireProfileBound: boolean().optional()
|
|
12497
12513
|
}).readonly();
|
|
12498
12514
|
var PickStreamPreferencesSchema = object({
|
|
12499
12515
|
/**
|
|
@@ -12534,7 +12550,43 @@ var PickedCamStreamSchema = object({
|
|
|
12534
12550
|
*/
|
|
12535
12551
|
transcodes: boolean(),
|
|
12536
12552
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12537
|
-
reason: string()
|
|
12553
|
+
reason: string(),
|
|
12554
|
+
/**
|
|
12555
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12556
|
+
*
|
|
12557
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12558
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12559
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12560
|
+
* the same function a second time.
|
|
12561
|
+
*
|
|
12562
|
+
* Absent when the source has no slot, which a caller passing
|
|
12563
|
+
* `requireProfileBound` can never see.
|
|
12564
|
+
*/
|
|
12565
|
+
profile: CamProfileSchema.optional(),
|
|
12566
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12567
|
+
brokerId: string().optional(),
|
|
12568
|
+
/**
|
|
12569
|
+
* The broker restream URL to dial for this stream.
|
|
12570
|
+
*
|
|
12571
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12572
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12573
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12574
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12575
|
+
*/
|
|
12576
|
+
url: string().optional(),
|
|
12577
|
+
/**
|
|
12578
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12579
|
+
* from.
|
|
12580
|
+
*
|
|
12581
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12582
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12583
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12584
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12585
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12586
|
+
* are not interchangeable.
|
|
12587
|
+
*/
|
|
12588
|
+
fps: number$1().positive().optional(),
|
|
12589
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12538
12590
|
});
|
|
12539
12591
|
DeviceType.Camera, method(object({ deviceId: number$1().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number$1().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12540
12592
|
deviceId: number$1().int().nonnegative(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.114",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|