@camstack/addon-decoder-ffmpeg 1.2.39 → 1.2.41
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/index.js +63 -4
- package/dist/index.mjs +63 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13749,6 +13749,50 @@ var NodeProcessSchema = object({
|
|
|
13749
13749
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13750
13750
|
uptimeSec: number()
|
|
13751
13751
|
});
|
|
13752
|
+
/**
|
|
13753
|
+
* One retained container-memory reading.
|
|
13754
|
+
*
|
|
13755
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13756
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13757
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13758
|
+
* sampled at different instants.
|
|
13759
|
+
*
|
|
13760
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13761
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13762
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13763
|
+
*/
|
|
13764
|
+
var ContainerMemoryPointSchema = object({
|
|
13765
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13766
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13767
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13768
|
+
currentBytes: number(),
|
|
13769
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13770
|
+
limitBytes: number().nullable(),
|
|
13771
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13772
|
+
anonBytes: number().nullable(),
|
|
13773
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13774
|
+
fileBytes: number().nullable(),
|
|
13775
|
+
/**
|
|
13776
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13777
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13778
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13779
|
+
* nowhere in a `ps` scan.
|
|
13780
|
+
*/
|
|
13781
|
+
shmemBytes: number().nullable(),
|
|
13782
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13783
|
+
slabBytes: number().nullable(),
|
|
13784
|
+
/**
|
|
13785
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13786
|
+
*
|
|
13787
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13788
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13789
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13790
|
+
*
|
|
13791
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13792
|
+
* container today — and on any node with no Intel GPU.
|
|
13793
|
+
*/
|
|
13794
|
+
gpuShmemBytes: number().nullable()
|
|
13795
|
+
}).extend({ atMs: number() });
|
|
13752
13796
|
var DumpHeapSnapshotInputSchema = object({
|
|
13753
13797
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13754
13798
|
addonId: string() });
|
|
@@ -13812,6 +13856,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13812
13856
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13813
13857
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13814
13858
|
/**
|
|
13859
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13860
|
+
*
|
|
13861
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13862
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13863
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13864
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13865
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13866
|
+
*
|
|
13867
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13868
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13869
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13870
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13871
|
+
*/
|
|
13872
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13873
|
+
/**
|
|
13815
13874
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13816
13875
|
* reduction was needed — so a caller can always say what one point covers
|
|
13817
13876
|
* without having to know whether it was reduced.
|
|
@@ -25741,10 +25800,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25741
25800
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25742
25801
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25743
25802
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25744
|
-
* rows)
|
|
25745
|
-
*
|
|
25746
|
-
*
|
|
25747
|
-
* (`interfaces/recording-config.ts`).
|
|
25803
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25804
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25805
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25806
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25748
25807
|
*/
|
|
25749
25808
|
var RecordingStatusSchema = object({
|
|
25750
25809
|
deviceId: number(),
|
package/dist/index.mjs
CHANGED
|
@@ -13745,6 +13745,50 @@ var NodeProcessSchema = object({
|
|
|
13745
13745
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13746
13746
|
uptimeSec: number()
|
|
13747
13747
|
});
|
|
13748
|
+
/**
|
|
13749
|
+
* One retained container-memory reading.
|
|
13750
|
+
*
|
|
13751
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13752
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13753
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13754
|
+
* sampled at different instants.
|
|
13755
|
+
*
|
|
13756
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13757
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13758
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13759
|
+
*/
|
|
13760
|
+
var ContainerMemoryPointSchema = object({
|
|
13761
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13762
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13763
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13764
|
+
currentBytes: number(),
|
|
13765
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13766
|
+
limitBytes: number().nullable(),
|
|
13767
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13768
|
+
anonBytes: number().nullable(),
|
|
13769
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13770
|
+
fileBytes: number().nullable(),
|
|
13771
|
+
/**
|
|
13772
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13773
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13774
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13775
|
+
* nowhere in a `ps` scan.
|
|
13776
|
+
*/
|
|
13777
|
+
shmemBytes: number().nullable(),
|
|
13778
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13779
|
+
slabBytes: number().nullable(),
|
|
13780
|
+
/**
|
|
13781
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13782
|
+
*
|
|
13783
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13784
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13785
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13786
|
+
*
|
|
13787
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13788
|
+
* container today — and on any node with no Intel GPU.
|
|
13789
|
+
*/
|
|
13790
|
+
gpuShmemBytes: number().nullable()
|
|
13791
|
+
}).extend({ atMs: number() });
|
|
13748
13792
|
var DumpHeapSnapshotInputSchema = object({
|
|
13749
13793
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13750
13794
|
addonId: string() });
|
|
@@ -13808,6 +13852,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13808
13852
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13809
13853
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13810
13854
|
/**
|
|
13855
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13856
|
+
*
|
|
13857
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13858
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13859
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13860
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13861
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13862
|
+
*
|
|
13863
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13864
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13865
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13866
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13867
|
+
*/
|
|
13868
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13869
|
+
/**
|
|
13811
13870
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13812
13871
|
* reduction was needed — so a caller can always say what one point covers
|
|
13813
13872
|
* without having to know whether it was reduced.
|
|
@@ -25737,10 +25796,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25737
25796
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25738
25797
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25739
25798
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25740
|
-
* rows)
|
|
25741
|
-
*
|
|
25742
|
-
*
|
|
25743
|
-
* (`interfaces/recording-config.ts`).
|
|
25799
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25800
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25801
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25802
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25744
25803
|
*/
|
|
25745
25804
|
var RecordingStatusSchema = object({
|
|
25746
25805
|
deviceId: number(),
|