@camstack/addon-post-analysis 1.2.131 → 1.2.133
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/{dist-B8_nKey5.js → dist-Dqa0bdV6.js} +409 -30
- package/dist/{dist-C8JUWFmR.mjs → dist-DruBvw_u.mjs} +409 -30
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/pipeline-analytics/_stub.js +1 -1
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CaoDYCwF.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CJn5xy9l.mjs} +3 -3
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CZJ4DupR.mjs +26 -0
- package/dist/pipeline-analytics/{hostInit-c_jfj7E4.mjs → hostInit-y4mecoXI.mjs} +3 -3
- package/dist/pipeline-analytics/index.js +156 -27
- package/dist/pipeline-analytics/index.mjs +156 -27
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-D09rnimL.mjs +0 -26
|
@@ -7660,6 +7660,111 @@ var CameraSwitchGroupSchema = object({
|
|
|
7660
7660
|
*/
|
|
7661
7661
|
var DETECTION_PIPELINE_CAP_NAME = "detection-pipeline";
|
|
7662
7662
|
/**
|
|
7663
|
+
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
7664
|
+
* an addon declares its channels in.
|
|
7665
|
+
*
|
|
7666
|
+
* ## Two axes, deliberately separated
|
|
7667
|
+
*
|
|
7668
|
+
* - **DECLARATION** — which channels exist. Only the addon knows:
|
|
7669
|
+
* `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
|
|
7670
|
+
* baichuan/handshake. A hand-wired central list rots at the first addition,
|
|
7671
|
+
* and rots silently. So a channel is declared where it is consulted, and the
|
|
7672
|
+
* `log-channels` capability enumerates the declarations.
|
|
7673
|
+
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
7674
|
+
* thing: the logging settings document on the `system` cap. Two authorities
|
|
7675
|
+
* over the values is the exact defect
|
|
7676
|
+
* `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
|
|
7677
|
+
* remove; re-introducing it from the cure side would be grotesque.
|
|
7678
|
+
*
|
|
7679
|
+
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
7680
|
+
* a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
|
|
7681
|
+
* the hot path with a value somebody actually read, and by
|
|
7682
|
+
* {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
|
|
7683
|
+
* never reaches here, so it can neither disarm an armed channel nor arm a
|
|
7684
|
+
* disarmed one (D49).
|
|
7685
|
+
*
|
|
7686
|
+
* ## The canonical call shape
|
|
7687
|
+
*
|
|
7688
|
+
* ```ts
|
|
7689
|
+
* if (CH_RTP.on && CH_RTP.wants(deviceId)) {
|
|
7690
|
+
* CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
|
|
7691
|
+
* }
|
|
7692
|
+
* ```
|
|
7693
|
+
*
|
|
7694
|
+
* `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
|
|
7695
|
+
* read. Disarmed, a call site costs one load and one branch, and the `extras`
|
|
7696
|
+
* object literal is never constructed because it lives inside the branch. It
|
|
7697
|
+
* is the same shape already proven in production at `stream-broker.ts:1650`,
|
|
7698
|
+
* and the same discipline `LoggingGate.allowsDestination` uses for the
|
|
7699
|
+
* destination floor (measured at 1.93 ns/call when off).
|
|
7700
|
+
*
|
|
7701
|
+
* ## Why a channel emits at `info`
|
|
7702
|
+
*
|
|
7703
|
+
* `loki-logging.addon.ts` pins the destination default at `info` and
|
|
7704
|
+
* `loki-destination.ts` drops everything below it, so a line emitted at
|
|
7705
|
+
* `debug` never reaches Loki and the hub's in-memory ring only holds ~35
|
|
7706
|
+
* minutes. A diagnostic that cannot be read an hour later is worse than no
|
|
7707
|
+
* diagnostic, because it looks done. {@link LogChannelGate.log} therefore
|
|
7708
|
+
* emits at the channel's declared level, whose schema floor is `info`.
|
|
7709
|
+
*/
|
|
7710
|
+
/**
|
|
7711
|
+
* The level a channel writes at once armed.
|
|
7712
|
+
*
|
|
7713
|
+
* `debug` is absent ON PURPOSE and not by omission: below `info` the line does
|
|
7714
|
+
* not leave the process for Loki, and the whole point of arming a channel is
|
|
7715
|
+
* to read it later.
|
|
7716
|
+
*/
|
|
7717
|
+
var LogChannelLevelSchema = _enum([
|
|
7718
|
+
"info",
|
|
7719
|
+
"warn",
|
|
7720
|
+
"error"
|
|
7721
|
+
]);
|
|
7722
|
+
/**
|
|
7723
|
+
* What an addon declares about one channel. No value, no state — a
|
|
7724
|
+
* declaration is inert.
|
|
7725
|
+
*/
|
|
7726
|
+
var LogChannelDescriptorSchema = object({
|
|
7727
|
+
/**
|
|
7728
|
+
* Dotted `area.thing`, unique across the workspace. `area` is conventionally
|
|
7729
|
+
* the addon's short name so an operator reading a channel list can tell who
|
|
7730
|
+
* owns it without a second lookup.
|
|
7731
|
+
*/
|
|
7732
|
+
name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
|
|
7733
|
+
/** One sentence: what the operator will SEE after arming it. */
|
|
7734
|
+
description: string().min(1),
|
|
7735
|
+
/** The level its lines are emitted at. Never below `info`. */
|
|
7736
|
+
defaultLevel: LogChannelLevelSchema,
|
|
7737
|
+
/**
|
|
7738
|
+
* Whether this channel can be narrowed to a camera.
|
|
7739
|
+
*
|
|
7740
|
+
* `true` is a PROMISE with two halves, and both must hold: the gate is
|
|
7741
|
+
* consulted with the numeric device id, AND every line the channel admits
|
|
7742
|
+
* carries `tags: { deviceId }` with that same numeric id. The second half is
|
|
7743
|
+
* what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
|
|
7744
|
+
* keeps `deviceId` out of the stream labels for cardinality, so the tag in
|
|
7745
|
+
* the body is the only way to filter.
|
|
7746
|
+
*
|
|
7747
|
+
* A channel whose lines carry the device only in `meta` (or not at all) is
|
|
7748
|
+
* declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
|
|
7749
|
+
* the operator narrows to one camera, sees nothing, and concludes the code
|
|
7750
|
+
* path was never taken.
|
|
7751
|
+
*/
|
|
7752
|
+
perDevice: boolean()
|
|
7753
|
+
});
|
|
7754
|
+
/**
|
|
7755
|
+
* An armed window over one channel, as the document hands it to a mirror.
|
|
7756
|
+
*
|
|
7757
|
+
* A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
|
|
7758
|
+
* expires by itself, which is the one failure a boolean cannot avoid.
|
|
7759
|
+
*/
|
|
7760
|
+
var LogChannelWindowSchema = object({
|
|
7761
|
+
channel: string().min(1),
|
|
7762
|
+
/** Epoch ms the window closes at. */
|
|
7763
|
+
armedUntilMs: number(),
|
|
7764
|
+
/** `null` = every camera. A non-empty list narrows to those numeric ids. */
|
|
7765
|
+
deviceIds: array(number().int()).readonly().nullable()
|
|
7766
|
+
});
|
|
7767
|
+
/**
|
|
7663
7768
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
7664
7769
|
* recordings and events management surfaces.
|
|
7665
7770
|
*
|
|
@@ -11373,6 +11478,35 @@ var MutationFilterSchema = object({
|
|
|
11373
11478
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
11374
11479
|
whereNot: record(string(), unknown()).optional()
|
|
11375
11480
|
});
|
|
11481
|
+
/**
|
|
11482
|
+
* One scalar an {@link settingsStoreCapability.methods.aggregate} call asks for.
|
|
11483
|
+
*
|
|
11484
|
+
* `as` names the slot in the result, so the SAME column may be asked twice with
|
|
11485
|
+
* two operations (`MIN(startMs)` and `MAX(startMs)` in one round trip) — which
|
|
11486
|
+
* a `Record<column, op>` shape could not express.
|
|
11487
|
+
*/
|
|
11488
|
+
var AggregateFieldSchema = object({
|
|
11489
|
+
/** Result key. */
|
|
11490
|
+
as: string().min(1),
|
|
11491
|
+
/** Column to aggregate. Must be a real column of a declared collection. */
|
|
11492
|
+
field: string().min(1),
|
|
11493
|
+
op: _enum([
|
|
11494
|
+
"sum",
|
|
11495
|
+
"min",
|
|
11496
|
+
"max"
|
|
11497
|
+
])
|
|
11498
|
+
});
|
|
11499
|
+
/**
|
|
11500
|
+
* `COUNT(*)` plus one number per requested field.
|
|
11501
|
+
*
|
|
11502
|
+
* `null` means NO ROW MATCHED, never zero: a `SUM` over an empty set and a sum
|
|
11503
|
+
* that really is 0 are different facts, and an accounting caller that renders
|
|
11504
|
+
* "0 bytes, oldest = 0" for "nothing here" reports a lie about a disk.
|
|
11505
|
+
*/
|
|
11506
|
+
var AggregateResultSchema = object({
|
|
11507
|
+
count: number().int(),
|
|
11508
|
+
values: record(string(), number().nullable())
|
|
11509
|
+
});
|
|
11376
11510
|
/** A single stored record: `{ id, data }`. */
|
|
11377
11511
|
var SettingsRecordSchema = object({
|
|
11378
11512
|
id: string(),
|
|
@@ -11457,6 +11591,11 @@ method(object({
|
|
|
11457
11591
|
collection: string(),
|
|
11458
11592
|
filter: QueryFilterSchema.optional()
|
|
11459
11593
|
}), number()), method(object({
|
|
11594
|
+
namespace: string().optional(),
|
|
11595
|
+
collection: string(),
|
|
11596
|
+
fields: array(AggregateFieldSchema).readonly(),
|
|
11597
|
+
filter: QueryFilterSchema.optional()
|
|
11598
|
+
}), AggregateResultSchema), method(object({
|
|
11460
11599
|
namespace: string().optional(),
|
|
11461
11600
|
collection: string(),
|
|
11462
11601
|
field: string(),
|
|
@@ -11573,6 +11712,11 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
11573
11712
|
collection: string(),
|
|
11574
11713
|
filter: QueryFilterSchema.optional()
|
|
11575
11714
|
}), number(), { auth: "admin" }), method(object({
|
|
11715
|
+
namespace: string().optional(),
|
|
11716
|
+
collection: string(),
|
|
11717
|
+
fields: array(AggregateFieldSchema).readonly(),
|
|
11718
|
+
filter: QueryFilterSchema.optional()
|
|
11719
|
+
}), AggregateResultSchema, { auth: "admin" }), method(object({
|
|
11576
11720
|
namespace: string().optional(),
|
|
11577
11721
|
collection: string(),
|
|
11578
11722
|
field: string(),
|
|
@@ -12241,24 +12385,6 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12241
12385
|
kind: "mutation",
|
|
12242
12386
|
auth: "admin"
|
|
12243
12387
|
});
|
|
12244
|
-
/**
|
|
12245
|
-
* Device Manager capability — hub-side singleton that unifies device persistence,
|
|
12246
|
-
* live registry access, and all management operations into a single tRPC surface.
|
|
12247
|
-
*
|
|
12248
|
-
* Replaces:
|
|
12249
|
-
* - `device-persistence` capability (persistence methods absorbed here)
|
|
12250
|
-
* - `device-management.router.ts` (deleted in Phase 2)
|
|
12251
|
-
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
12252
|
-
*
|
|
12253
|
-
* All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
|
|
12254
|
-
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
12255
|
-
* - No nodeId routing needed — this is a pure hub singleton.
|
|
12256
|
-
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
12257
|
-
* - No shadow registry or cross-node aggregation required.
|
|
12258
|
-
*
|
|
12259
|
-
* Forked workers register devices back to the hub via `ctx.devices`
|
|
12260
|
-
* (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
|
|
12261
|
-
*/
|
|
12262
12388
|
/** One child-placement directive on a container's `childLayout`. Structurally
|
|
12263
12389
|
* identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
|
|
12264
12390
|
* shape for the same field. The child is identified by its re-sync-stable
|
|
@@ -12627,7 +12753,7 @@ method(object({
|
|
|
12627
12753
|
* it answers today and the caller filters as it already does.
|
|
12628
12754
|
*/
|
|
12629
12755
|
deviceIds: array(number()).optional()
|
|
12630
|
-
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12756
|
+
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ parentDeviceIds: array(number()).max(256) }), record(string(), array(DeviceInfoSchema))), method(object({ deviceId: number() }), object({
|
|
12631
12757
|
mode: LinkedDevicesModeSchema,
|
|
12632
12758
|
devices: array(LinkedDeviceSchema)
|
|
12633
12759
|
})), method(object({ deviceIds: array(number()) }), array(LinkedDevicesForDeviceSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
@@ -13368,6 +13494,59 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13368
13494
|
kind: "mutation",
|
|
13369
13495
|
auth: "admin"
|
|
13370
13496
|
});
|
|
13497
|
+
/**
|
|
13498
|
+
* `log-channels` — the capability an addon DECLARES its diagnostic channels
|
|
13499
|
+
* through. It stores nothing.
|
|
13500
|
+
*
|
|
13501
|
+
* ## Why a capability at all, and why this shape
|
|
13502
|
+
*
|
|
13503
|
+
* Which channels exist is knowledge only the addon has: `stream-broker` knows
|
|
13504
|
+
* webrtc/ICE/RTP, `provider-reolink` knows baichuan/handshake. A central list
|
|
13505
|
+
* maintained by hand rots at the first addition and rots INVISIBLY — nothing
|
|
13506
|
+
* fails, an operator just never sees the channel somebody added. So the list
|
|
13507
|
+
* is assembled from declarations at runtime.
|
|
13508
|
+
*
|
|
13509
|
+
* The shape is copied from `log-destination.cap.ts`, which already does
|
|
13510
|
+
* exactly this job: `mode: 'collection'`, `internal: true`,
|
|
13511
|
+
* `mount: { kind: 'skip' }` — no tRPC route, no generated hooks — while
|
|
13512
|
+
* `addons.listCapabilityProviders` still enumerates it, and the hub's
|
|
13513
|
+
* `CapabilityRegistry` still holds an RPC proxy per provider so a forked
|
|
13514
|
+
* runner's declarations reach hub-main over the transport that already exists.
|
|
13515
|
+
* No new UDS message, no second registry.
|
|
13516
|
+
*
|
|
13517
|
+
* ## What it deliberately does NOT own
|
|
13518
|
+
*
|
|
13519
|
+
* The VALUES — which channel is armed, for which cameras, until when — live in
|
|
13520
|
+
* ONE place: the logging settings document on the `system` cap
|
|
13521
|
+
* (`getLoggingSettings` / `setLoggingSettings`). Two authorities over the same
|
|
13522
|
+
* value is the defect the plan behind this work exists to remove, and
|
|
13523
|
+
* `setRequestCensus` was retired (D245) rather than allowed to be a second
|
|
13524
|
+
* one. {@link logChannelsCapability} therefore has no getter for a level, no
|
|
13525
|
+
* setter for a window and no persistence of any kind.
|
|
13526
|
+
*
|
|
13527
|
+
* ## Why `apply` is here even so
|
|
13528
|
+
*
|
|
13529
|
+
* The gate lives in the addon's PROCESS; the document lives in hub-main. Some
|
|
13530
|
+
* seam has to carry the value from the authority to the mirror, and a channel
|
|
13531
|
+
* that cannot be reached is precisely the dead knob this whole slice exists to
|
|
13532
|
+
* make impossible (D62 — `audioThresholdDbfs`, the HA entities with no source).
|
|
13533
|
+
* `apply` is that seam and nothing more: it writes an in-memory mirror, it
|
|
13534
|
+
* persists nothing, it is never the source of a value, and it is called only
|
|
13535
|
+
* with a set the hub actually read (D49 — a read that fails does not call it
|
|
13536
|
+
* at all, so no channel is silently disarmed by a bad read).
|
|
13537
|
+
*/
|
|
13538
|
+
/** What `apply` reports back — enough to log, not enough to be a second state. */
|
|
13539
|
+
var LogChannelApplyResultSchema = object({
|
|
13540
|
+
/** How many declared channels are armed in this process after the call. */
|
|
13541
|
+
armed: number().int().min(0),
|
|
13542
|
+
/**
|
|
13543
|
+
* Names the document armed that this process does not declare. Reported
|
|
13544
|
+
* rather than swallowed: a name here is either a typo or an addon that has
|
|
13545
|
+
* not booted, and both deserve a line instead of silence.
|
|
13546
|
+
*/
|
|
13547
|
+
unknown: array(string()).readonly()
|
|
13548
|
+
});
|
|
13549
|
+
method(_void(), array(LogChannelDescriptorSchema).readonly()), method(object({ windows: array(LogChannelWindowSchema).readonly() }), LogChannelApplyResultSchema, { kind: "mutation" });
|
|
13371
13550
|
var LogLevelSchema = _enum([
|
|
13372
13551
|
"debug",
|
|
13373
13552
|
"info",
|
|
@@ -29845,17 +30024,60 @@ var SetSiteLocationInputSchema = object({
|
|
|
29845
30024
|
longitude: number().min(-180).max(180)
|
|
29846
30025
|
}).nullable();
|
|
29847
30026
|
/**
|
|
29848
|
-
*
|
|
30027
|
+
* The TRANSPORT a call arrived on.
|
|
30028
|
+
*
|
|
30029
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
30030
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
30031
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
30032
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
30033
|
+
* checkable rather than asserted.
|
|
30034
|
+
*
|
|
30035
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
30036
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
30037
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
30038
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
30039
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
30040
|
+
* never touches a socket and therefore never touched a census.
|
|
30041
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
30042
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
30043
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
30044
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
30045
|
+
*/
|
|
30046
|
+
var TransportPlaneSchema = _enum([
|
|
30047
|
+
"http",
|
|
30048
|
+
"ws",
|
|
30049
|
+
"mesh",
|
|
30050
|
+
"unknown"
|
|
30051
|
+
]);
|
|
30052
|
+
/**
|
|
30053
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
30054
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
30055
|
+
* make an operator wonder about.
|
|
30056
|
+
*/
|
|
30057
|
+
var TransportPlaneCountsSchema = object({
|
|
30058
|
+
http: number(),
|
|
30059
|
+
ws: number(),
|
|
30060
|
+
mesh: number(),
|
|
30061
|
+
unknown: number()
|
|
30062
|
+
});
|
|
30063
|
+
/**
|
|
30064
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
29849
30065
|
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
29850
30066
|
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
29851
30067
|
* already prints - never a token, never an `Authorization` header.
|
|
30068
|
+
*
|
|
30069
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
30070
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
30071
|
+
* stream look like a storm.
|
|
29852
30072
|
*/
|
|
29853
30073
|
var RequestCensusGroupSchema = object({
|
|
30074
|
+
plane: TransportPlaneSchema,
|
|
29854
30075
|
procedure: string(),
|
|
29855
30076
|
userAgent: string(),
|
|
29856
30077
|
ip: string(),
|
|
29857
30078
|
principal: string(),
|
|
29858
30079
|
calls: number(),
|
|
30080
|
+
subscriptions: number(),
|
|
29859
30081
|
perMin: number()
|
|
29860
30082
|
});
|
|
29861
30083
|
/**
|
|
@@ -29868,6 +30090,14 @@ var RequestCensusGroupSchema = object({
|
|
|
29868
30090
|
var RequestCensusProcedureSchema = object({
|
|
29869
30091
|
procedure: string(),
|
|
29870
30092
|
calls: number(),
|
|
30093
|
+
/**
|
|
30094
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
30095
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
30096
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
30097
|
+
*/
|
|
30098
|
+
planes: TransportPlaneCountsSchema,
|
|
30099
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
30100
|
+
subscriptions: number(),
|
|
29871
30101
|
perMin: number()
|
|
29872
30102
|
});
|
|
29873
30103
|
/**
|
|
@@ -29895,14 +30125,45 @@ var RequestCensusStatusSchema = object({
|
|
|
29895
30125
|
*/
|
|
29896
30126
|
procedureCalls: number(),
|
|
29897
30127
|
/**
|
|
30128
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
30129
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
30130
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
30131
|
+
*/
|
|
30132
|
+
planes: TransportPlaneCountsSchema,
|
|
30133
|
+
/**
|
|
30134
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
30135
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
30136
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
30137
|
+
*/
|
|
30138
|
+
planesExplainTotal: boolean(),
|
|
30139
|
+
/**
|
|
29898
30140
|
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
29899
|
-
*
|
|
29900
|
-
*
|
|
30141
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
30142
|
+
* count of zero against 37 open connections says something different from a
|
|
30143
|
+
* plane with no connections at all.
|
|
29901
30144
|
*/
|
|
29902
30145
|
wsConnections: number(),
|
|
30146
|
+
/**
|
|
30147
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
30148
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
30149
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
30150
|
+
*/
|
|
30151
|
+
wsMessages: number(),
|
|
30152
|
+
/**
|
|
30153
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
30154
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
30155
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
30156
|
+
* masquerade as the storm.
|
|
30157
|
+
*/
|
|
30158
|
+
subscriptions: number(),
|
|
30159
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
30160
|
+
subscriptionStops: number(),
|
|
29903
30161
|
distinctGroups: number(),
|
|
29904
|
-
/**
|
|
29905
|
-
*
|
|
30162
|
+
/**
|
|
30163
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
30164
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
30165
|
+
* which transport they arrived on, they just lost their group row.
|
|
30166
|
+
*/
|
|
29906
30167
|
unattributedCalls: number(),
|
|
29907
30168
|
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
29908
30169
|
groups: array(RequestCensusGroupSchema).readonly()
|
|
@@ -29925,10 +30186,11 @@ var DiagnosticIdSchema = _enum(["request-census"]);
|
|
|
29925
30186
|
* The layers of the level hierarchy, general → specific. The most specific
|
|
29926
30187
|
* layer that carries an explicit value wins.
|
|
29927
30188
|
*
|
|
29928
|
-
* `component`
|
|
29929
|
-
*
|
|
29930
|
-
*
|
|
29931
|
-
*
|
|
30189
|
+
* `component` became RESOLVABLE on 2026-08-27: a component is a declared log
|
|
30190
|
+
* CHANNEL (`stream-broker.webrtc`, `provider-reolink.baichuan`), named by
|
|
30191
|
+
* `scopeComponent`. It was declared-but-dark in the first slice precisely so
|
|
30192
|
+
* that turning it on would not force every consumer of this document to widen
|
|
30193
|
+
* a `levelSource` enum — which is what has now not happened.
|
|
29932
30194
|
*/
|
|
29933
30195
|
var LoggingScopeKindSchema = _enum([
|
|
29934
30196
|
"cluster",
|
|
@@ -29955,6 +30217,14 @@ var LoggingLevelLayerSchema = object({
|
|
|
29955
30217
|
scope: LoggingScopeKindSchema,
|
|
29956
30218
|
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
29957
30219
|
nodeId: string().nullable(),
|
|
30220
|
+
/**
|
|
30221
|
+
* The declared channel this layer speaks for; `null` on every layer but
|
|
30222
|
+
* `component`. Never folded into `nodeId`: a component level is CLUSTER-WIDE
|
|
30223
|
+
* by design — the convention this repo settled on is one orchestrator-wide
|
|
30224
|
+
* setting, never per node (D52) — so a component layer that carried a node
|
|
30225
|
+
* would invite a per-node copy of a value that has no per-node meaning.
|
|
30226
|
+
*/
|
|
30227
|
+
component: string().nullable(),
|
|
29958
30228
|
/** Explicitly set here, or `null` when this layer inherits. */
|
|
29959
30229
|
level: LogLevelSchema$1.nullable()
|
|
29960
30230
|
});
|
|
@@ -29996,6 +30266,49 @@ var DiagnosticWindowPatchSchema = object({
|
|
|
29996
30266
|
reportEveryMs: number().int().positive().optional()
|
|
29997
30267
|
});
|
|
29998
30268
|
/**
|
|
30269
|
+
* A channel ARMED, as the document reports it.
|
|
30270
|
+
*
|
|
30271
|
+
* `armMs` is not echoed back: what an operator needs to see is the deadline
|
|
30272
|
+
* and the time left, because a diagnostic left running is itself an incident
|
|
30273
|
+
* and "armed for 10 minutes" said an hour ago is not an answer.
|
|
30274
|
+
*/
|
|
30275
|
+
var LogChannelWindowStateSchema = object({
|
|
30276
|
+
channel: string(),
|
|
30277
|
+
armed: boolean(),
|
|
30278
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
30279
|
+
armedUntilMs: number(),
|
|
30280
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
30281
|
+
remainingMs: number(),
|
|
30282
|
+
/**
|
|
30283
|
+
* The cameras it is narrowed to, or `null` for every camera.
|
|
30284
|
+
*
|
|
30285
|
+
* A channel declared `perDevice: false` can only ever report `null` here:
|
|
30286
|
+
* its lines do not carry `tags: { deviceId }`, so narrowing them would
|
|
30287
|
+
* produce a filter that silently matches nothing. The server REFUSES such a
|
|
30288
|
+
* patch rather than quietly widening it — ignoring the request would teach
|
|
30289
|
+
* the operator that per-camera filtering works on that channel when it does
|
|
30290
|
+
* not.
|
|
30291
|
+
*/
|
|
30292
|
+
deviceIds: array(number().int()).readonly().nullable()
|
|
30293
|
+
});
|
|
30294
|
+
/**
|
|
30295
|
+
* `armMs: 0` DISARMS. Same grammar as {@link DiagnosticWindowPatchSchema}, and
|
|
30296
|
+
* for the same reason: a channel is a window with a deadline, never a switch.
|
|
30297
|
+
*/
|
|
30298
|
+
var LogChannelWindowPatchSchema = object({
|
|
30299
|
+
channel: string().min(1),
|
|
30300
|
+
armMs: number().int().min(0),
|
|
30301
|
+
/**
|
|
30302
|
+
* Narrow to these numeric device ids. Absent or `null` = every camera.
|
|
30303
|
+
*
|
|
30304
|
+
* Numeric because the repo's own rule makes it possible: every log line
|
|
30305
|
+
* about a device carries `tags: { deviceId }` with the numeric id. That rule
|
|
30306
|
+
* was paid for with a 22% thumbnail gap and a 3-hour media blackout both
|
|
30307
|
+
* diagnosed by hand, and this is the first thing that collects on it.
|
|
30308
|
+
*/
|
|
30309
|
+
deviceIds: array(number().int()).readonly().nullable().optional()
|
|
30310
|
+
});
|
|
30311
|
+
/**
|
|
29999
30312
|
* A PATCH, and patches MERGE.
|
|
30000
30313
|
*
|
|
30001
30314
|
* A field absent from the patch is left exactly as it was — arming a
|
|
@@ -30014,7 +30327,14 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30014
30327
|
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
30015
30328
|
* keeps running — a patch is never a full replacement.
|
|
30016
30329
|
*/
|
|
30017
|
-
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
30330
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional(),
|
|
30331
|
+
/**
|
|
30332
|
+
* Only the channels NAMED here change. An armed channel that is not listed
|
|
30333
|
+
* keeps running — same rule as `diagnostics`, because a patch that silently
|
|
30334
|
+
* disarmed the channels it did not mention would make the Levels page and
|
|
30335
|
+
* the Diagnostics page fight over the same value.
|
|
30336
|
+
*/
|
|
30337
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30018
30338
|
});
|
|
30019
30339
|
/**
|
|
30020
30340
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30027,9 +30347,22 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30027
30347
|
* authority over the whole hierarchy and answers for every layer, so the
|
|
30028
30348
|
* layer selector needs a name the transport does not already own.
|
|
30029
30349
|
*/
|
|
30030
|
-
var GetLoggingSettingsInputSchema = object({
|
|
30350
|
+
var GetLoggingSettingsInputSchema = object({
|
|
30351
|
+
scopeNodeId: string().optional(),
|
|
30352
|
+
/**
|
|
30353
|
+
* The declared CHANNEL this document is addressed at, when the caller wants
|
|
30354
|
+
* the `component` layer. Absent = the node/cluster hierarchy only.
|
|
30355
|
+
*
|
|
30356
|
+
* Naming it separately rather than overloading `scopeNodeId` keeps the two
|
|
30357
|
+
* axes from collapsing: a component level is cluster-wide, a node level is
|
|
30358
|
+
* not, and one selector for both would make "which of these two did I just
|
|
30359
|
+
* set" unanswerable — the exact ambiguity `explicit` exists to remove.
|
|
30360
|
+
*/
|
|
30361
|
+
scopeComponent: string().optional()
|
|
30362
|
+
});
|
|
30031
30363
|
var SetLoggingSettingsInputSchema = object({
|
|
30032
30364
|
scopeNodeId: string().optional(),
|
|
30365
|
+
scopeComponent: string().optional(),
|
|
30033
30366
|
patch: LoggingSettingsPatchSchema
|
|
30034
30367
|
});
|
|
30035
30368
|
/**
|
|
@@ -30044,9 +30377,20 @@ var SetLoggingSettingsInputSchema = object({
|
|
|
30044
30377
|
var LoggingSettingsStateSchema = object({
|
|
30045
30378
|
/** The layer this document was read at. `null` = the cluster layer. */
|
|
30046
30379
|
scopeNodeId: string().nullable(),
|
|
30380
|
+
/** The channel this document was read at. `null` = no component layer. */
|
|
30381
|
+
scopeComponent: string().nullable(),
|
|
30047
30382
|
effective: LoggingEffectiveSchema,
|
|
30048
30383
|
explicit: LoggingExplicitSchema,
|
|
30049
30384
|
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
30385
|
+
/**
|
|
30386
|
+
* Every channel the cluster's addons DECLARE, gathered from the
|
|
30387
|
+
* `log-channels` providers. Not stored anywhere: assembled per read, so a
|
|
30388
|
+
* channel added by a redeployed addon appears without anybody editing a
|
|
30389
|
+
* list, and a channel whose addon is gone stops being offered.
|
|
30390
|
+
*/
|
|
30391
|
+
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30392
|
+
/** The channels ARMED right now, each with its deadline. */
|
|
30393
|
+
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30050
30394
|
persisted: boolean()
|
|
30051
30395
|
});
|
|
30052
30396
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
@@ -33083,6 +33427,12 @@ Object.freeze({
|
|
|
33083
33427
|
addonId: null,
|
|
33084
33428
|
access: "view"
|
|
33085
33429
|
},
|
|
33430
|
+
"dataStoreProvider.aggregate": {
|
|
33431
|
+
capName: "data-store-provider",
|
|
33432
|
+
capScope: "system",
|
|
33433
|
+
addonId: null,
|
|
33434
|
+
access: "view"
|
|
33435
|
+
},
|
|
33086
33436
|
"dataStoreProvider.count": {
|
|
33087
33437
|
capName: "data-store-provider",
|
|
33088
33438
|
capScope: "system",
|
|
@@ -33497,6 +33847,12 @@ Object.freeze({
|
|
|
33497
33847
|
addonId: null,
|
|
33498
33848
|
access: "view"
|
|
33499
33849
|
},
|
|
33850
|
+
"deviceManager.getChildrenBatch": {
|
|
33851
|
+
capName: "device-manager",
|
|
33852
|
+
capScope: "system",
|
|
33853
|
+
addonId: null,
|
|
33854
|
+
access: "view"
|
|
33855
|
+
},
|
|
33500
33856
|
"deviceManager.getConfigSchema": {
|
|
33501
33857
|
capName: "device-manager",
|
|
33502
33858
|
capScope: "system",
|
|
@@ -34547,6 +34903,18 @@ Object.freeze({
|
|
|
34547
34903
|
addonId: null,
|
|
34548
34904
|
access: "create"
|
|
34549
34905
|
},
|
|
34906
|
+
"logChannels.apply": {
|
|
34907
|
+
capName: "log-channels",
|
|
34908
|
+
capScope: "system",
|
|
34909
|
+
addonId: null,
|
|
34910
|
+
access: "create"
|
|
34911
|
+
},
|
|
34912
|
+
"logChannels.list": {
|
|
34913
|
+
capName: "log-channels",
|
|
34914
|
+
capScope: "system",
|
|
34915
|
+
addonId: null,
|
|
34916
|
+
access: "view"
|
|
34917
|
+
},
|
|
34550
34918
|
"logDestination.query": {
|
|
34551
34919
|
capName: "log-destination",
|
|
34552
34920
|
capScope: "system",
|
|
@@ -36701,6 +37069,12 @@ Object.freeze({
|
|
|
36701
37069
|
addonId: null,
|
|
36702
37070
|
access: "create"
|
|
36703
37071
|
},
|
|
37072
|
+
"settingsStore.aggregate": {
|
|
37073
|
+
capName: "settings-store",
|
|
37074
|
+
capScope: "system",
|
|
37075
|
+
addonId: null,
|
|
37076
|
+
access: "view"
|
|
37077
|
+
},
|
|
36704
37078
|
"settingsStore.count": {
|
|
36705
37079
|
capName: "settings-store",
|
|
36706
37080
|
capScope: "system",
|
|
@@ -38280,6 +38654,11 @@ Object.freeze({
|
|
|
38280
38654
|
form: "single",
|
|
38281
38655
|
optional: false
|
|
38282
38656
|
}],
|
|
38657
|
+
"deviceManager.getChildrenBatch": [{
|
|
38658
|
+
name: "parentDeviceIds",
|
|
38659
|
+
form: "array",
|
|
38660
|
+
optional: false
|
|
38661
|
+
}],
|
|
38283
38662
|
"deviceManager.getConfigSchema": [{
|
|
38284
38663
|
name: "deviceId",
|
|
38285
38664
|
form: "single",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-Dqa0bdV6.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let node_fs$1 = require_dist.__toESM(node_fs, 1);
|
|
8
8
|
node_fs = require_dist.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as PoolMemoryWatchdog, at as hfModelUrl, gt as resolvePoolMemoryPolicy, nt as embeddingEncoderCapability, ut as parseProcStatus, wt as BaseAddon } from "../dist-
|
|
1
|
+
import { M as PoolMemoryWatchdog, at as hfModelUrl, gt as resolvePoolMemoryPolicy, nt as embeddingEncoderCapability, ut as parseProcStatus, wt as BaseAddon } from "../dist-DruBvw_u.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react__loadShare__.js-C0AuF9av.mjs";
|
|
2
2
|
import { t as o } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-B3Wx5J80.mjs";
|
|
3
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
3
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CZJ4DupR.mjs";
|
|
4
4
|
import { n as m, r as h, t as g } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Bm-iyjmq.mjs";
|
|
5
5
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6
6
|
var _ = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), v = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), y = (e) => {
|
|
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
|
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
5
5
|
name: "@camstack/sdk",
|
|
6
|
-
version: "1.2.
|
|
6
|
+
version: "1.2.37",
|
|
7
7
|
scope: ["default"],
|
|
8
8
|
loaded: !1,
|
|
9
9
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.115",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.78",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_analytics_widgets",
|