camstack 1.2.47 → 1.2.48

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.
@@ -36581,17 +36581,39 @@ var SetSiteLocationInputSchema = external_exports.object({
36581
36581
  latitude: external_exports.number().min(-90).max(90),
36582
36582
  longitude: external_exports.number().min(-180).max(180)
36583
36583
  }).nullable();
36584
+ var TransportPlaneSchema = external_exports.enum([
36585
+ "http",
36586
+ "ws",
36587
+ "mesh",
36588
+ "unknown"
36589
+ ]);
36590
+ var TransportPlaneCountsSchema = external_exports.object({
36591
+ http: external_exports.number(),
36592
+ ws: external_exports.number(),
36593
+ mesh: external_exports.number(),
36594
+ unknown: external_exports.number()
36595
+ });
36584
36596
  var RequestCensusGroupSchema = external_exports.object({
36597
+ plane: TransportPlaneSchema,
36585
36598
  procedure: external_exports.string(),
36586
36599
  userAgent: external_exports.string(),
36587
36600
  ip: external_exports.string(),
36588
36601
  principal: external_exports.string(),
36589
36602
  calls: external_exports.number(),
36603
+ subscriptions: external_exports.number(),
36590
36604
  perMin: external_exports.number()
36591
36605
  });
36592
36606
  var RequestCensusProcedureSchema = external_exports.object({
36593
36607
  procedure: external_exports.string(),
36594
36608
  calls: external_exports.number(),
36609
+ /**
36610
+ * The same total, split by transport. THIS is the row that answers the
36611
+ * question the census exists for: one look at `deviceManager.listAll` says
36612
+ * which plane carried the 4 960, without joining two log lines by eye.
36613
+ */
36614
+ planes: TransportPlaneCountsSchema,
36615
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
36616
+ subscriptions: external_exports.number(),
36595
36617
  perMin: external_exports.number()
36596
36618
  });
36597
36619
  var RequestCensusSnapshotSchema = external_exports.object({
@@ -36611,14 +36633,45 @@ var RequestCensusSnapshotSchema = external_exports.object({
36611
36633
  */
36612
36634
  procedureCalls: external_exports.number(),
36613
36635
  /**
36636
+ * `procedureCalls` split by transport. The four keys sum to
36637
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
36638
+ * `planesExplainTotal` is that identity, checked rather than assumed.
36639
+ */
36640
+ planes: TransportPlaneCountsSchema,
36641
+ /**
36642
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
36643
+ * on no plane at all - which is a RESULT (a plane is missing from the
36644
+ * instrument), not a failure, and it has to be visible to be read as one.
36645
+ */
36646
+ planesExplainTotal: external_exports.boolean(),
36647
+ /**
36614
36648
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
36615
- * transport resolves one context per connection - but the number that says
36616
- * whether a plane this census cannot see was busy while HTTP was quiet.
36649
+ * adapter resolves one context per connection - kept because a plane's call
36650
+ * count of zero against 37 open connections says something different from a
36651
+ * plane with no connections at all.
36617
36652
  */
36618
36653
  wsConnections: external_exports.number(),
36654
+ /**
36655
+ * Client frames the WS plane looked at. `wsMessages` far above
36656
+ * `planes.ws + subscriptions` means most traffic is not operations
36657
+ * (keepalives, connection params) - which is itself an answer.
36658
+ */
36659
+ wsMessages: external_exports.number(),
36660
+ /**
36661
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
36662
+ * purpose: one live-events stream opened at boot and held for six hours is
36663
+ * one subscription, and counting it as a call would let a quiet plane
36664
+ * masquerade as the storm.
36665
+ */
36666
+ subscriptions: external_exports.number(),
36667
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
36668
+ subscriptionStops: external_exports.number(),
36619
36669
  distinctGroups: external_exports.number(),
36620
- /** Calls counted in the totals whose group attribution was shed at the
36621
- * cardinality bound. */
36670
+ /**
36671
+ * Operations counted in the totals whose CALLER attribution was shed at the
36672
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
36673
+ * which transport they arrived on, they just lost their group row.
36674
+ */
36622
36675
  unattributedCalls: external_exports.number(),
36623
36676
  procedures: external_exports.array(RequestCensusProcedureSchema).readonly(),
36624
36677
  groups: external_exports.array(RequestCensusGroupSchema).readonly()
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runDiscover
4
- } from "./chunk-AOLS4UFV.js";
4
+ } from "./chunk-4E6GZ4AC.js";
5
5
  import "./chunk-LMMQX4CK.js";
6
6
 
7
7
  // src/cli.ts
@@ -38,7 +38,7 @@ async function runServe(args) {
38
38
  ...typeof values.data === "string" ? { data: values.data } : {}
39
39
  };
40
40
  Object.assign(process.env, buildServeEnv(opts));
41
- await import("./launcher-GJBWLSRW.js");
41
+ await import("./launcher-MNOEQWRN.js");
42
42
  }
43
43
 
44
44
  // src/commands/agent.ts
@@ -83,7 +83,7 @@ async function runAgent(args) {
83
83
  ...typeof values.port === "string" ? { port: values.port } : {}
84
84
  };
85
85
  Object.assign(process.env, buildAgentEnv(opts));
86
- await import("./launcher-GJBWLSRW.js");
86
+ await import("./launcher-MNOEQWRN.js");
87
87
  }
88
88
 
89
89
  // src/commands/setup.ts
@@ -1130,7 +1130,7 @@ function isUnknown(_value) {
1130
1130
  return true;
1131
1131
  }
1132
1132
  async function resolveServerInteractive(presetNamespace) {
1133
- const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-2BTHVGDZ.js");
1133
+ const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-LCFU2BSJ.js");
1134
1134
  if (presetNamespace) {
1135
1135
  const spinner4 = clack.spinner();
1136
1136
  spinner4.start(`Discovering hub on LAN (namespace "${presetNamespace}")`);
@@ -5,7 +5,7 @@ import {
5
5
  filterHubNodes,
6
6
  resolveHubFromDiscovered,
7
7
  runDiscover
8
- } from "./chunk-AOLS4UFV.js";
8
+ } from "./chunk-4E6GZ4AC.js";
9
9
  import "./chunk-LMMQX4CK.js";
10
10
  export {
11
11
  DEFAULT_HUB_HTTPS_PORT,