@ceralive/cerastream 2026.9.9 → 2026.9.10
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/README.md +6 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/events.d.ts +15 -0
- package/dist/events.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ceralive/cerastream
|
|
2
2
|
|
|
3
|
+
Prepared `2026.9.10` / schema `0.20.0` carries optional
|
|
4
|
+
`active_encode.skip_to_live` alongside encoder health counters. It counts
|
|
5
|
+
age-based RAM backlog discards in the current session, not outages or lost frames.
|
|
6
|
+
Absence is unknown; zero is not loss-free delivery. Reconnect preserves the count,
|
|
7
|
+
and session replacement resets it. Publish before consumer use.
|
|
8
|
+
|
|
3
9
|
Prepared **2026.9.9 / schema 0.19.0** adds `raw_video` and `unknown` capture
|
|
4
10
|
classifications. They do not promise a selectable capture mode. `camlink` remains
|
|
5
11
|
unchanged for identified Elgato hardware. Publish before consumer merge: older
|
package/dist/constants.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const PROTOCOL_VERSION: 'cerastream-ipc/1';
|
|
|
8
8
|
* additive-only within protocol major `cerastream-ipc/1` (ADR-0002 §4); this value
|
|
9
9
|
* only moves when the wire schema itself does, in lockstep across both languages.
|
|
10
10
|
*/
|
|
11
|
-
export declare const SCHEMA_VERSION: '0.
|
|
11
|
+
export declare const SCHEMA_VERSION: '0.20.0';
|
|
12
12
|
/** Runtime dir holding both control + preview sockets. systemd `RuntimeDirectory=cerastream`. */
|
|
13
13
|
export declare const DEFAULT_IPC_DIR: '/run/cerastream';
|
|
14
14
|
/** Env override for the IPC dir (tests/dev). Defaults to {@link DEFAULT_IPC_DIR}. */
|
package/dist/constants.js
CHANGED
|
@@ -11,7 +11,7 @@ export const PROTOCOL_VERSION = 'cerastream-ipc/1';
|
|
|
11
11
|
* additive-only within protocol major `cerastream-ipc/1` (ADR-0002 §4); this value
|
|
12
12
|
* only moves when the wire schema itself does, in lockstep across both languages.
|
|
13
13
|
*/
|
|
14
|
-
export const SCHEMA_VERSION = '0.
|
|
14
|
+
export const SCHEMA_VERSION = '0.20.0';
|
|
15
15
|
/** Runtime dir holding both control + preview sockets. systemd `RuntimeDirectory=cerastream`. */
|
|
16
16
|
export const DEFAULT_IPC_DIR = '/run/cerastream';
|
|
17
17
|
/** Env override for the IPC dir (tests/dev). Defaults to {@link DEFAULT_IPC_DIR}. */
|
package/dist/events.d.ts
CHANGED
|
@@ -26,6 +26,9 @@ export declare const activeEncodeSchema: z.ZodObject<{
|
|
|
26
26
|
gop_probe_ms: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
frames_emitted: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
pipeline_playing: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
encoder_restarts: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
kernel_faults: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
skip_to_live: z.ZodOptional<z.ZodNumber>;
|
|
29
32
|
}, z.core.$strip>;
|
|
30
33
|
export type ActiveEncode = z.infer<typeof activeEncodeSchema>;
|
|
31
34
|
/**
|
|
@@ -107,6 +110,9 @@ export declare const statusEventSchema: z.ZodObject<{
|
|
|
107
110
|
gop_probe_ms: z.ZodOptional<z.ZodNumber>;
|
|
108
111
|
frames_emitted: z.ZodOptional<z.ZodNumber>;
|
|
109
112
|
pipeline_playing: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
encoder_restarts: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
kernel_faults: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
skip_to_live: z.ZodOptional<z.ZodNumber>;
|
|
110
116
|
}, z.core.$strip>>;
|
|
111
117
|
preview_encoder_realized: z.ZodOptional<z.ZodObject<{
|
|
112
118
|
selected_element: z.ZodOptional<z.ZodString>;
|
|
@@ -377,6 +383,9 @@ export declare const eventParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
377
383
|
gop_probe_ms: z.ZodOptional<z.ZodNumber>;
|
|
378
384
|
frames_emitted: z.ZodOptional<z.ZodNumber>;
|
|
379
385
|
pipeline_playing: z.ZodOptional<z.ZodBoolean>;
|
|
386
|
+
encoder_restarts: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
kernel_faults: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
skip_to_live: z.ZodOptional<z.ZodNumber>;
|
|
380
389
|
}, z.core.$strip>>;
|
|
381
390
|
preview_encoder_realized: z.ZodOptional<z.ZodObject<{
|
|
382
391
|
selected_element: z.ZodOptional<z.ZodString>;
|
|
@@ -594,6 +603,9 @@ export declare const cerastreamEventSchema: z.ZodObject<{
|
|
|
594
603
|
gop_probe_ms: z.ZodOptional<z.ZodNumber>;
|
|
595
604
|
frames_emitted: z.ZodOptional<z.ZodNumber>;
|
|
596
605
|
pipeline_playing: z.ZodOptional<z.ZodBoolean>;
|
|
606
|
+
encoder_restarts: z.ZodOptional<z.ZodNumber>;
|
|
607
|
+
kernel_faults: z.ZodOptional<z.ZodNumber>;
|
|
608
|
+
skip_to_live: z.ZodOptional<z.ZodNumber>;
|
|
597
609
|
}, z.core.$strip>>;
|
|
598
610
|
preview_encoder_realized: z.ZodOptional<z.ZodObject<{
|
|
599
611
|
selected_element: z.ZodOptional<z.ZodString>;
|
|
@@ -815,6 +827,9 @@ export declare const eventSchemas: {
|
|
|
815
827
|
gop_probe_ms: z.ZodOptional<z.ZodNumber>;
|
|
816
828
|
frames_emitted: z.ZodOptional<z.ZodNumber>;
|
|
817
829
|
pipeline_playing: z.ZodOptional<z.ZodBoolean>;
|
|
830
|
+
encoder_restarts: z.ZodOptional<z.ZodNumber>;
|
|
831
|
+
kernel_faults: z.ZodOptional<z.ZodNumber>;
|
|
832
|
+
skip_to_live: z.ZodOptional<z.ZodNumber>;
|
|
818
833
|
}, z.core.$strip>>;
|
|
819
834
|
preview_encoder_realized: z.ZodOptional<z.ZodObject<{
|
|
820
835
|
selected_element: z.ZodOptional<z.ZodString>;
|
package/dist/events.js
CHANGED
|
@@ -26,6 +26,9 @@ export const activeEncodeSchema = z.object({
|
|
|
26
26
|
gop_probe_ms: z.number().int().nonnegative().optional(), // 0.5.0: GOP preflight duration in ms when a probe ran
|
|
27
27
|
frames_emitted: z.number().int().nonnegative().optional(), // 0.7.0: monotonic egress-buffer counter; advances across status heartbeats while frames flow
|
|
28
28
|
pipeline_playing: z.boolean().optional(), // 0.7.0: pipeline is in GStreamer PLAYING (false during an in-process reconnect)
|
|
29
|
+
encoder_restarts: z.number().int().nonnegative().optional(), // 0.20.0: bounded MPP context restarts this session (any cause); ABSENT = not asked, Some(0) = asked and clean
|
|
30
|
+
kernel_faults: z.number().int().nonnegative().optional(), // 0.20.0: the kernel-attributed subset; 0 is weak evidence — the plugin fault bridge is opt-in and ships off
|
|
31
|
+
skip_to_live: z.number().int().nonnegative().optional(),
|
|
29
32
|
});
|
|
30
33
|
/**
|
|
31
34
|
* What this session's PREVIEW branch is actually encoding with (additive),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceralive/cerastream",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.10",
|
|
4
4
|
"description": "Type-safe TypeScript schema + IPC client for the cerastream streaming engine (JSON-RPC 2.0 / NDJSON over a Unix domain socket).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|