@camstack/server 1.2.11 → 1.2.12

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.
@@ -28,7 +28,14 @@ class LoggingService extends system_1.LogManager {
28
28
  // keep their sparse history. `eventBus.ringBufferSize` still sizes the
29
29
  // separate system-event ring; logs get their own per-addon cap.
30
30
  const perAddonCapacity = configService.get('eventBus.perAddonLogBufferSize') ?? 5000;
31
- super(perAddonCapacity);
31
+ // Soft total ceiling across all buckets, null (unbounded) by default so this
32
+ // changes nothing until an operator opts in. `?? null` rather than a numeric
33
+ // default on purpose: the per-addon rings are already a hard bound, and picking
34
+ // a total for someone would silently start discarding their debug history.
35
+ const maxTotalEntries = configService.get('eventBus.maxTotalLogBufferSize') ?? null;
36
+ // Only entries at or below this level are ever discarded to meet the total.
37
+ const pruneLevel = configService.get('eventBus.logBufferPruneLevel') ?? 'debug';
38
+ super(perAddonCapacity, { maxTotalEntries, pruneLevel });
32
39
  // Enriches every emitted LogEntry with `tags.deviceName` before
33
40
  // destinations / subscribers see it — works across bundled copies
34
41
  // of `@camstack/system` (addon packages) because the mutation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -33,19 +33,19 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@camstack/addon-admin-ui": "1.2.9",
36
+ "@camstack/addon-admin-ui": "1.2.12",
37
37
  "@camstack/addon-agent-ui": "1.2.5",
38
38
  "@camstack/addon-auth": "1.2.5",
39
39
  "@camstack/addon-decoder-nodeav": "1.2.5",
40
40
  "@camstack/addon-notifiers": "1.2.6",
41
- "@camstack/addon-pipeline": "1.2.9",
41
+ "@camstack/addon-pipeline": "1.2.10",
42
42
  "@camstack/addon-pipeline-orchestrator": "1.2.10",
43
43
  "@camstack/addon-post-analysis": "1.2.9",
44
44
  "@camstack/sdk": "1.2.5",
45
45
  "@camstack/shm-ring": "1.1.5",
46
- "@camstack/system": "1.2.13",
47
- "@camstack/types": "1.2.10",
48
- "@camstack/ui-library": "1.2.8",
46
+ "@camstack/system": "1.2.14",
47
+ "@camstack/types": "1.2.11",
48
+ "@camstack/ui-library": "1.2.9",
49
49
  "@fastify/compress": "^9.0.0",
50
50
  "@fastify/cookie": "^11.0.2",
51
51
  "@fastify/cors": "^11.2.0",