@camstack/system 1.2.264 → 1.2.266
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/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/camera-grid/grid-compositor-child.d.ts +3 -0
- package/dist/builtins/camera-grid/grid-compositor-invocation.d.ts +19 -0
- package/dist/builtins/camera-grid/grid-compositor.d.ts +2 -2
- package/dist/builtins/camera-grid/grid-tile-plan.d.ts +8 -9
- package/dist/builtins/camera-grid/index.js +781 -212
- package/dist/builtins/camera-grid/index.mjs +781 -212
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-BhYweLVr.js → dist-BbPssgI6.js} +12 -1
- package/dist/{dist-CO2O_ddo.mjs → dist-Ck0rjYOQ.mjs} +12 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{retired-settings-keys-BnnHWyfj.mjs → retired-settings-keys-BZpDuJVh.mjs} +1 -1
- package/dist/{retired-settings-keys-CKLI8VmE.js → retired-settings-keys-Dg_69cOY.js} +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BbPssgI6.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as addonPagesCapability, Pn as EventCategory, an as errMsg, sn as BaseAddon } from "../../dist-
|
|
1
|
+
import { P as addonPagesCapability, Pn as EventCategory, an as errMsg, sn as BaseAddon } from "../../dist-Ck0rjYOQ.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BbPssgI6.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as addonWidgetsCapability, Pn as EventCategory, an as errMsg, sn as BaseAddon } from "../../dist-
|
|
1
|
+
import { I as addonWidgetsCapability, Pn as EventCategory, an as errMsg, sn as BaseAddon } from "../../dist-Ck0rjYOQ.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BbPssgI6.js");
|
|
7
7
|
//#region src/builtins/alerts/prune-policy.ts
|
|
8
8
|
/**
|
|
9
9
|
* Ids older than `cutoffMs`, oldest first.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as alertsCapability, Pn as EventCategory, an as errMsg, bn as createEvent, n as AlertSchema, sn as BaseAddon } from "../../dist-
|
|
1
|
+
import { L as alertsCapability, Pn as EventCategory, an as errMsg, bn as createEvent, n as AlertSchema, sn as BaseAddon } from "../../dist-Ck0rjYOQ.mjs";
|
|
2
2
|
//#region src/builtins/alerts/prune-policy.ts
|
|
3
3
|
/**
|
|
4
4
|
* Ids older than `cutoffMs`, oldest first.
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BbPssgI6.js");
|
|
7
7
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
8
8
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
9
9
|
deadZoneFraction: .5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as bareAddonId, En as isEvent, It as ptzAutotrackCapability, Pn as EventCategory, an as errMsg, h as FIRST_LEVEL_MACRO_CLASSES, sn as BaseAddon } from "../../dist-
|
|
1
|
+
import { B as bareAddonId, En as isEvent, It as ptzAutotrackCapability, Pn as EventCategory, an as errMsg, h as FIRST_LEVEL_MACRO_CLASSES, sn as BaseAddon } from "../../dist-Ck0rjYOQ.mjs";
|
|
2
2
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
3
3
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
4
4
|
deadZoneFraction: .5,
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BbPssgI6.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let buffer = require("buffer");
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as mayWriteToLocation, Pn as EventCategory, Zt as storageOccupancyCapability, sn as BaseAddon, z as backupCapability } from "../../dist-
|
|
1
|
+
import { Dt as mayWriteToLocation, Pn as EventCategory, Zt as storageOccupancyCapability, sn as BaseAddon, z as backupCapability } from "../../dist-Ck0rjYOQ.mjs";
|
|
2
2
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
3
3
|
import { Buffer as Buffer$1 } from "buffer";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GridChildContext } from './grid-child.js';
|
|
2
|
+
import { GridSourceHandle, GridStreamChild, GridStreamPlan } from './grid-stream-session.js';
|
|
3
|
+
export declare function startGridCompositorChild(ctx: GridChildContext, plan: GridStreamPlan, sources: readonly GridSourceHandle[], onEnded: (reason: string) => void): Promise<GridStreamChild>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FfmpegInvocation, FfmpegVideoEncoderId } from '@camstack/types';
|
|
2
|
+
import { GridTile } from './grid-tile-plan.js';
|
|
3
|
+
import { PixelSize } from './grid-canvas.js';
|
|
4
|
+
export interface GridTileDecoderInput {
|
|
5
|
+
readonly tile: GridTile;
|
|
6
|
+
/** A broker restream URL, acquired through `streamBroker.getStreamWithCodec`. */
|
|
7
|
+
readonly url: string;
|
|
8
|
+
readonly fps: number;
|
|
9
|
+
}
|
|
10
|
+
/** One tile's decoder: dial in, raw yuv420p frames out. */
|
|
11
|
+
export declare function gridTileDecoderInvocation(input: GridTileDecoderInput): FfmpegInvocation;
|
|
12
|
+
export interface GridCanvasEncoderInput {
|
|
13
|
+
readonly canvas: PixelSize;
|
|
14
|
+
readonly fps: number;
|
|
15
|
+
readonly encoder: FfmpegVideoEncoderId;
|
|
16
|
+
readonly bitrateKbps: number;
|
|
17
|
+
}
|
|
18
|
+
/** The canvas encoder: raw frames on stdin, one compressed stream out. */
|
|
19
|
+
export declare function gridCanvasEncoderInvocation(input: GridCanvasEncoderInput): FfmpegInvocation;
|
|
@@ -11,7 +11,7 @@ export interface GridCompositorDeps {
|
|
|
11
11
|
export declare class GridCompositor {
|
|
12
12
|
private readonly deps;
|
|
13
13
|
private readonly canvas;
|
|
14
|
-
/** Keyed
|
|
14
|
+
/** Keyed by tile id — unique per CELL, because one camera can hold two. */
|
|
15
15
|
private readonly placed;
|
|
16
16
|
private closed;
|
|
17
17
|
constructor(deps: GridCompositorDeps);
|
|
@@ -22,7 +22,7 @@ export declare class GridCompositor {
|
|
|
22
22
|
* child that outlives a layout change would otherwise take the tick down with
|
|
23
23
|
* it, and the tick is what every other cell depends on.
|
|
24
24
|
*/
|
|
25
|
-
onTile(
|
|
25
|
+
onTile(tileId: string, chunk: Buffer): void;
|
|
26
26
|
/**
|
|
27
27
|
* Compose and emit one frame. Returns what the sink said about back-pressure.
|
|
28
28
|
*
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PixelOrigin, PixelSize } from './grid-canvas.js';
|
|
2
2
|
import { NormalizedRect } from './grid-filter-graph.js';
|
|
3
|
+
/** The one pixel format the canvas is in, so a blit is a copy and not a convert. */
|
|
4
|
+
export declare const TILE_PIXEL_FORMAT = "yuv420p";
|
|
3
5
|
export interface GridTilePlanCell {
|
|
4
6
|
readonly deviceId: number;
|
|
5
7
|
/** The part of the source to take, normalized against the SOURCE. */
|
|
@@ -12,21 +14,18 @@ export interface GridTilePlanInput {
|
|
|
12
14
|
readonly cells: readonly GridTilePlanCell[];
|
|
13
15
|
}
|
|
14
16
|
export interface GridTile {
|
|
15
|
-
/**
|
|
16
|
-
readonly
|
|
17
|
+
/** Unique within this composition — the key its frames arrive under. */
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly deviceId: number;
|
|
17
20
|
readonly size: PixelSize;
|
|
18
21
|
readonly origin: PixelOrigin;
|
|
19
22
|
/** Bytes one frame of this tile occupies — the feed's frame length. */
|
|
20
23
|
readonly frameBytes: number;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
readonly deviceId: number;
|
|
24
|
-
/** `-filter_complex` for this source's child: one branch per tile. */
|
|
25
|
-
readonly filterGraph: string;
|
|
26
|
-
readonly tiles: readonly GridTile[];
|
|
24
|
+
/** The `-vf` chain its decoder runs: crop (when cropped), scale, format. */
|
|
25
|
+
readonly filter: string;
|
|
27
26
|
}
|
|
28
27
|
export interface GridTilePlan {
|
|
29
28
|
readonly canvas: PixelSize;
|
|
30
|
-
readonly
|
|
29
|
+
readonly tiles: readonly GridTile[];
|
|
31
30
|
}
|
|
32
31
|
export declare function buildGridTilePlan(input: GridTilePlanInput): GridTilePlan;
|