@ceralive/cerastream 2026.9.1 → 2026.9.2
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 +1 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +6 -1
- package/dist/events.d.ts +4 -0
- package/dist/messages.d.ts +16 -0
- package/dist/messages.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@ engine's JSON-RPC 2.0 / NDJSON control plane over a Unix domain socket.
|
|
|
9
9
|
- The nine server-push event payloads (discriminated union)
|
|
10
10
|
- Two-tier error codes (RPC + runtime)
|
|
11
11
|
- Typed capture-probe causes retained on runtime events and rejected-start exceptions
|
|
12
|
+
- Typed platform capture-converter reporting (`librga`, `v4l2-rga2`, or `none`)
|
|
12
13
|
- A unified engine config schema (= `start` params)
|
|
13
14
|
- A `CerastreamClient` interface + `connect()` factory (UDS transport)
|
|
14
15
|
- Additive `client.getCapabilities()` discovery for platform, source, encoder, and
|
package/dist/errors.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export declare const captureCauseSchema: z.ZodEnum<{
|
|
|
99
99
|
device_busy: "device_busy";
|
|
100
100
|
negotiation_failed: "negotiation_failed";
|
|
101
101
|
no_signal: "no_signal";
|
|
102
|
+
no_silicon_converter: "no_silicon_converter";
|
|
102
103
|
}>;
|
|
103
104
|
export type CaptureCause = z.infer<typeof captureCauseSchema>;
|
|
104
105
|
export declare const captureCauseEntrySchema: z.ZodObject<{
|
|
@@ -107,6 +108,7 @@ export declare const captureCauseEntrySchema: z.ZodObject<{
|
|
|
107
108
|
device_busy: "device_busy";
|
|
108
109
|
negotiation_failed: "negotiation_failed";
|
|
109
110
|
no_signal: "no_signal";
|
|
111
|
+
no_silicon_converter: "no_silicon_converter";
|
|
110
112
|
}>;
|
|
111
113
|
}, z.core.$strip>;
|
|
112
114
|
export type CaptureCauseEntry = z.infer<typeof captureCauseEntrySchema>;
|
package/dist/errors.js
CHANGED
|
@@ -138,7 +138,12 @@ export const processErrorCodeSchema = z.enum([
|
|
|
138
138
|
// would be lying. Always carries a captureUnrecoverableReasonSchema `reason`.
|
|
139
139
|
'capture_unrecoverable',
|
|
140
140
|
]);
|
|
141
|
-
export const captureCauseSchema = z.enum([
|
|
141
|
+
export const captureCauseSchema = z.enum([
|
|
142
|
+
'negotiation_failed',
|
|
143
|
+
'no_signal',
|
|
144
|
+
'device_busy',
|
|
145
|
+
'no_silicon_converter',
|
|
146
|
+
]);
|
|
142
147
|
export const captureCauseEntrySchema = z.object({
|
|
143
148
|
device: z.string(),
|
|
144
149
|
cause: captureCauseSchema,
|
package/dist/events.d.ts
CHANGED
|
@@ -243,6 +243,7 @@ export declare const runtimeErrorEventSchema: z.ZodObject<{
|
|
|
243
243
|
device_busy: "device_busy";
|
|
244
244
|
negotiation_failed: "negotiation_failed";
|
|
245
245
|
no_signal: "no_signal";
|
|
246
|
+
no_silicon_converter: "no_silicon_converter";
|
|
246
247
|
}>>;
|
|
247
248
|
}, z.core.$strip>;
|
|
248
249
|
/** Payload of a {@link runtimeErrorEventSchema} event. */
|
|
@@ -466,6 +467,7 @@ export declare const eventParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
466
467
|
device_busy: "device_busy";
|
|
467
468
|
negotiation_failed: "negotiation_failed";
|
|
468
469
|
no_signal: "no_signal";
|
|
470
|
+
no_silicon_converter: "no_silicon_converter";
|
|
469
471
|
}>>;
|
|
470
472
|
}, z.core.$strip>, z.ZodObject<{
|
|
471
473
|
type: z.ZodLiteral<"preview">;
|
|
@@ -663,6 +665,7 @@ export declare const cerastreamEventSchema: z.ZodObject<{
|
|
|
663
665
|
device_busy: "device_busy";
|
|
664
666
|
negotiation_failed: "negotiation_failed";
|
|
665
667
|
no_signal: "no_signal";
|
|
668
|
+
no_silicon_converter: "no_silicon_converter";
|
|
666
669
|
}>>;
|
|
667
670
|
}, z.core.$strip>, z.ZodObject<{
|
|
668
671
|
type: z.ZodLiteral<"preview">;
|
|
@@ -869,6 +872,7 @@ export declare const eventSchemas: {
|
|
|
869
872
|
device_busy: "device_busy";
|
|
870
873
|
negotiation_failed: "negotiation_failed";
|
|
871
874
|
no_signal: "no_signal";
|
|
875
|
+
no_silicon_converter: "no_silicon_converter";
|
|
872
876
|
}>>;
|
|
873
877
|
}, z.core.$strip>;
|
|
874
878
|
readonly preview: z.ZodObject<{
|
package/dist/messages.d.ts
CHANGED
|
@@ -359,6 +359,12 @@ export declare const encoderCapsSchema: z.ZodObject<{
|
|
|
359
359
|
}, z.core.$strip>;
|
|
360
360
|
}, z.core.$strip>;
|
|
361
361
|
export type EncoderCaps = z.infer<typeof encoderCapsSchema>;
|
|
362
|
+
export declare const platformConverterSchema: z.ZodEnum<{
|
|
363
|
+
librga: "librga";
|
|
364
|
+
none: "none";
|
|
365
|
+
"v4l2-rga2": "v4l2-rga2";
|
|
366
|
+
}>;
|
|
367
|
+
export type PlatformConverter = z.infer<typeof platformConverterSchema>;
|
|
362
368
|
export declare const platformCapsSchema: z.ZodObject<{
|
|
363
369
|
supports_h265: z.ZodBoolean;
|
|
364
370
|
hardware_accelerated: z.ZodBoolean;
|
|
@@ -373,6 +379,11 @@ export declare const platformCapsSchema: z.ZodObject<{
|
|
|
373
379
|
detected: "detected";
|
|
374
380
|
override: "override";
|
|
375
381
|
}>>;
|
|
382
|
+
converter: z.ZodOptional<z.ZodEnum<{
|
|
383
|
+
librga: "librga";
|
|
384
|
+
none: "none";
|
|
385
|
+
"v4l2-rga2": "v4l2-rga2";
|
|
386
|
+
}>>;
|
|
376
387
|
}, z.core.$strip>;
|
|
377
388
|
export type PlatformCaps = z.infer<typeof platformCapsSchema>;
|
|
378
389
|
export declare const previewAvailabilitySchema: z.ZodObject<{
|
|
@@ -397,6 +408,11 @@ export declare const getCapabilitiesResultSchema: z.ZodObject<{
|
|
|
397
408
|
detected: "detected";
|
|
398
409
|
override: "override";
|
|
399
410
|
}>>;
|
|
411
|
+
converter: z.ZodOptional<z.ZodEnum<{
|
|
412
|
+
librga: "librga";
|
|
413
|
+
none: "none";
|
|
414
|
+
"v4l2-rga2": "v4l2-rga2";
|
|
415
|
+
}>>;
|
|
400
416
|
}, z.core.$strip>;
|
|
401
417
|
encoder: z.ZodObject<{
|
|
402
418
|
codecs: z.ZodArray<z.ZodString>;
|
package/dist/messages.js
CHANGED
|
@@ -172,6 +172,7 @@ export const encoderCapsSchema = z.object({
|
|
|
172
172
|
codecs: z.array(z.string()),
|
|
173
173
|
bitrate_range: bitrateRangeCapsSchema,
|
|
174
174
|
});
|
|
175
|
+
export const platformConverterSchema = z.enum(['librga', 'v4l2-rga2', 'none']);
|
|
175
176
|
export const platformCapsSchema = z.object({
|
|
176
177
|
supports_h265: z.boolean(),
|
|
177
178
|
hardware_accelerated: z.boolean(),
|
|
@@ -180,6 +181,7 @@ export const platformCapsSchema = z.object({
|
|
|
180
181
|
// Optional so a pre-field engine (which omits both) still parses.
|
|
181
182
|
hardware_kind: z.enum(['rk3588', 'jetson', 'n100', 'generic']).optional(),
|
|
182
183
|
source: z.enum(['detected', 'override']).optional(),
|
|
184
|
+
converter: platformConverterSchema.optional(),
|
|
183
185
|
});
|
|
184
186
|
// Preview-server availability (0.4.0, additive). Lets the UI tell an unbound /
|
|
185
187
|
// port-conflicted preview (enabled:true, bound:false) from a down engine.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceralive/cerastream",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.2",
|
|
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",
|