@camstack/addon-decoder-ffmpeg 1.2.31 → 1.2.32

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 CHANGED
@@ -26243,17 +26243,60 @@ var SetSiteLocationInputSchema = object({
26243
26243
  longitude: number().min(-180).max(180)
26244
26244
  }).nullable();
26245
26245
  /**
26246
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
26246
+ * The TRANSPORT a call arrived on.
26247
+ *
26248
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
26249
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
26250
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
26251
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
26252
+ * checkable rather than asserted.
26253
+ *
26254
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
26255
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
26256
+ * connection; the viewer talks to the hub over `wsLink`
26257
+ * exclusively, so this is the plane the HTTP census could not see.
26258
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
26259
+ * never touches a socket and therefore never touched a census.
26260
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
26261
+ * that is exactly what its `0` asserts: every plane the hub has can name
26262
+ * itself. It is an output bucket, never a knob — a call that arrives on a
26263
+ * plane nobody instrumented lands here instead of vanishing from the total.
26264
+ */
26265
+ var TransportPlaneSchema = _enum([
26266
+ "http",
26267
+ "ws",
26268
+ "mesh",
26269
+ "unknown"
26270
+ ]);
26271
+ /**
26272
+ * Calls per plane. Every key is always present, `0` included — an absent plane
26273
+ * reads as "not instrumented", which is the one thing this census must never
26274
+ * make an operator wonder about.
26275
+ */
26276
+ var TransportPlaneCountsSchema = object({
26277
+ http: number(),
26278
+ ws: number(),
26279
+ mesh: number(),
26280
+ unknown: number()
26281
+ });
26282
+ /**
26283
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
26247
26284
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
26248
26285
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
26249
26286
  * already prints - never a token, never an `Authorization` header.
26287
+ *
26288
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
26289
+ * and lives for hours, so folding it into a call count makes one long-lived
26290
+ * stream look like a storm.
26250
26291
  */
26251
26292
  var RequestCensusGroupSchema = object({
26293
+ plane: TransportPlaneSchema,
26252
26294
  procedure: string(),
26253
26295
  userAgent: string(),
26254
26296
  ip: string(),
26255
26297
  principal: string(),
26256
26298
  calls: number(),
26299
+ subscriptions: number(),
26257
26300
  perMin: number()
26258
26301
  });
26259
26302
  /**
@@ -26266,6 +26309,14 @@ var RequestCensusGroupSchema = object({
26266
26309
  var RequestCensusProcedureSchema = object({
26267
26310
  procedure: string(),
26268
26311
  calls: number(),
26312
+ /**
26313
+ * The same total, split by transport. THIS is the row that answers the
26314
+ * question the census exists for: one look at `deviceManager.listAll` says
26315
+ * which plane carried the 4 960, without joining two log lines by eye.
26316
+ */
26317
+ planes: TransportPlaneCountsSchema,
26318
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
26319
+ subscriptions: number(),
26269
26320
  perMin: number()
26270
26321
  });
26271
26322
  /**
@@ -26293,14 +26344,45 @@ var RequestCensusStatusSchema = object({
26293
26344
  */
26294
26345
  procedureCalls: number(),
26295
26346
  /**
26347
+ * `procedureCalls` split by transport. The four keys sum to
26348
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
26349
+ * `planesExplainTotal` is that identity, checked rather than assumed.
26350
+ */
26351
+ planes: TransportPlaneCountsSchema,
26352
+ /**
26353
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
26354
+ * on no plane at all - which is a RESULT (a plane is missing from the
26355
+ * instrument), not a failure, and it has to be visible to be read as one.
26356
+ */
26357
+ planesExplainTotal: boolean(),
26358
+ /**
26296
26359
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
26297
- * transport resolves one context per connection - but the number that says
26298
- * whether a plane this census cannot see was busy while HTTP was quiet.
26360
+ * adapter resolves one context per connection - kept because a plane's call
26361
+ * count of zero against 37 open connections says something different from a
26362
+ * plane with no connections at all.
26299
26363
  */
26300
26364
  wsConnections: number(),
26365
+ /**
26366
+ * Client frames the WS plane looked at. `wsMessages` far above
26367
+ * `planes.ws + subscriptions` means most traffic is not operations
26368
+ * (keepalives, connection params) - which is itself an answer.
26369
+ */
26370
+ wsMessages: number(),
26371
+ /**
26372
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
26373
+ * purpose: one live-events stream opened at boot and held for six hours is
26374
+ * one subscription, and counting it as a call would let a quiet plane
26375
+ * masquerade as the storm.
26376
+ */
26377
+ subscriptions: number(),
26378
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
26379
+ subscriptionStops: number(),
26301
26380
  distinctGroups: number(),
26302
- /** Calls counted in the totals whose group attribution was shed at the
26303
- * cardinality bound. */
26381
+ /**
26382
+ * Operations counted in the totals whose CALLER attribution was shed at the
26383
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
26384
+ * which transport they arrived on, they just lost their group row.
26385
+ */
26304
26386
  unattributedCalls: number(),
26305
26387
  procedures: array(RequestCensusProcedureSchema).readonly(),
26306
26388
  groups: array(RequestCensusGroupSchema).readonly()
package/dist/index.mjs CHANGED
@@ -26239,17 +26239,60 @@ var SetSiteLocationInputSchema = object({
26239
26239
  longitude: number().min(-180).max(180)
26240
26240
  }).nullable();
26241
26241
  /**
26242
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
26242
+ * The TRANSPORT a call arrived on.
26243
+ *
26244
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
26245
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
26246
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
26247
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
26248
+ * checkable rather than asserted.
26249
+ *
26250
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
26251
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
26252
+ * connection; the viewer talks to the hub over `wsLink`
26253
+ * exclusively, so this is the plane the HTTP census could not see.
26254
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
26255
+ * never touches a socket and therefore never touched a census.
26256
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
26257
+ * that is exactly what its `0` asserts: every plane the hub has can name
26258
+ * itself. It is an output bucket, never a knob — a call that arrives on a
26259
+ * plane nobody instrumented lands here instead of vanishing from the total.
26260
+ */
26261
+ var TransportPlaneSchema = _enum([
26262
+ "http",
26263
+ "ws",
26264
+ "mesh",
26265
+ "unknown"
26266
+ ]);
26267
+ /**
26268
+ * Calls per plane. Every key is always present, `0` included — an absent plane
26269
+ * reads as "not instrumented", which is the one thing this census must never
26270
+ * make an operator wonder about.
26271
+ */
26272
+ var TransportPlaneCountsSchema = object({
26273
+ http: number(),
26274
+ ws: number(),
26275
+ mesh: number(),
26276
+ unknown: number()
26277
+ });
26278
+ /**
26279
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
26243
26280
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
26244
26281
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
26245
26282
  * already prints - never a token, never an `Authorization` header.
26283
+ *
26284
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
26285
+ * and lives for hours, so folding it into a call count makes one long-lived
26286
+ * stream look like a storm.
26246
26287
  */
26247
26288
  var RequestCensusGroupSchema = object({
26289
+ plane: TransportPlaneSchema,
26248
26290
  procedure: string(),
26249
26291
  userAgent: string(),
26250
26292
  ip: string(),
26251
26293
  principal: string(),
26252
26294
  calls: number(),
26295
+ subscriptions: number(),
26253
26296
  perMin: number()
26254
26297
  });
26255
26298
  /**
@@ -26262,6 +26305,14 @@ var RequestCensusGroupSchema = object({
26262
26305
  var RequestCensusProcedureSchema = object({
26263
26306
  procedure: string(),
26264
26307
  calls: number(),
26308
+ /**
26309
+ * The same total, split by transport. THIS is the row that answers the
26310
+ * question the census exists for: one look at `deviceManager.listAll` says
26311
+ * which plane carried the 4 960, without joining two log lines by eye.
26312
+ */
26313
+ planes: TransportPlaneCountsSchema,
26314
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
26315
+ subscriptions: number(),
26265
26316
  perMin: number()
26266
26317
  });
26267
26318
  /**
@@ -26289,14 +26340,45 @@ var RequestCensusStatusSchema = object({
26289
26340
  */
26290
26341
  procedureCalls: number(),
26291
26342
  /**
26343
+ * `procedureCalls` split by transport. The four keys sum to
26344
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
26345
+ * `planesExplainTotal` is that identity, checked rather than assumed.
26346
+ */
26347
+ planes: TransportPlaneCountsSchema,
26348
+ /**
26349
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
26350
+ * on no plane at all - which is a RESULT (a plane is missing from the
26351
+ * instrument), not a failure, and it has to be visible to be read as one.
26352
+ */
26353
+ planesExplainTotal: boolean(),
26354
+ /**
26292
26355
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
26293
- * transport resolves one context per connection - but the number that says
26294
- * whether a plane this census cannot see was busy while HTTP was quiet.
26356
+ * adapter resolves one context per connection - kept because a plane's call
26357
+ * count of zero against 37 open connections says something different from a
26358
+ * plane with no connections at all.
26295
26359
  */
26296
26360
  wsConnections: number(),
26361
+ /**
26362
+ * Client frames the WS plane looked at. `wsMessages` far above
26363
+ * `planes.ws + subscriptions` means most traffic is not operations
26364
+ * (keepalives, connection params) - which is itself an answer.
26365
+ */
26366
+ wsMessages: number(),
26367
+ /**
26368
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
26369
+ * purpose: one live-events stream opened at boot and held for six hours is
26370
+ * one subscription, and counting it as a call would let a quiet plane
26371
+ * masquerade as the storm.
26372
+ */
26373
+ subscriptions: number(),
26374
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
26375
+ subscriptionStops: number(),
26297
26376
  distinctGroups: number(),
26298
- /** Calls counted in the totals whose group attribution was shed at the
26299
- * cardinality bound. */
26377
+ /**
26378
+ * Operations counted in the totals whose CALLER attribution was shed at the
26379
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
26380
+ * which transport they arrived on, they just lost their group row.
26381
+ */
26300
26382
  unattributedCalls: number(),
26301
26383
  procedures: array(RequestCensusProcedureSchema).readonly(),
26302
26384
  groups: array(RequestCensusGroupSchema).readonly()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-ffmpeg",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
4
4
  "description": "Standalone ffmpeg-subprocess decoder fallback addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",