@camstack/addon-admin-ui 1.2.117 → 1.2.119

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.
Files changed (113) hide show
  1. package/dist/assets/{AddLocationWizard-Bob-o0Kv.js → AddLocationWizard-BcscyeiT.js} +1 -1
  2. package/dist/assets/{AddonCollectionPage-BRZ5wnDA.js → AddonCollectionPage-B03rWwOK.js} +1 -1
  3. package/dist/assets/Addons-BDWcu7bj.js +1 -0
  4. package/dist/assets/{AdminTabs-DVhMhCwB.js → AdminTabs-BhVFfu-V.js} +1 -1
  5. package/dist/assets/AiProfiles-CmIRcCjv.js +3 -0
  6. package/dist/assets/{BrokerForm-DUIN2thN.js → BrokerForm-CGbxdxp0.js} +1 -1
  7. package/dist/assets/Build-Bneqa83Z.js +32 -0
  8. package/dist/assets/{Capabilities-Dy5fksAD.js → Capabilities-Bd7XskC7.js} +1 -1
  9. package/dist/assets/{CapabilityBadges-KzSV_NH7.js → CapabilityBadges-KMhMCn1k.js} +1 -1
  10. package/dist/assets/Cluster-CS-NJ6OS.js +11 -0
  11. package/dist/assets/{Data-DujVsgdF.js → Data-Dr3p27zg.js} +1 -1
  12. package/dist/assets/{DetectionIntelligence-CM7P-dMx.js → DetectionIntelligence-BziKZgjR.js} +1 -1
  13. package/dist/assets/{DeviceAggregateSection-Bsi6p5YO.js → DeviceAggregateSection-CheBdbsr.js} +1 -1
  14. package/dist/assets/DeviceDetail-Br1qPJ6r.js +2 -0
  15. package/dist/assets/{Devices-BJcC70V3.js → Devices-BV1t7-g5.js} +1 -1
  16. package/dist/assets/{EmbedPlayerPage-CSY1rShh.js → EmbedPlayerPage-n4oktMWk.js} +1 -1
  17. package/dist/assets/Events-CkGijCDG.js +1 -0
  18. package/dist/assets/{FormBuilder-Cl04f_JD.js → FormBuilder-D7eVmgZJ.js} +1 -1
  19. package/dist/assets/{Identity-DwP0DWZT.js → Identity-Cb2GAD5w.js} +1 -1
  20. package/dist/assets/{IntegrationDetail-DrtquA7G.js → IntegrationDetail-B4uov2Kt.js} +1 -1
  21. package/dist/assets/{Integrations-D3WabD9o.js → Integrations-SNPkOFhA.js} +1 -1
  22. package/dist/assets/Integrations-_7bjpG_5.js +1 -0
  23. package/dist/assets/{Logs-CprZOubd.js → Logs-pNO26-_g.js} +1 -1
  24. package/dist/assets/{MotionZonesSettings-CJ739aet.js → MotionZonesSettings-DikN9JEQ.js} +1 -1
  25. package/dist/assets/{MyAccess-eCoyemMZ.js → MyAccess-BnULhZgR.js} +1 -1
  26. package/dist/assets/{Network-GD5AYiiW.js → Network-Bv3jrJ1-.js} +1 -1
  27. package/dist/assets/{NodeAddonsSettingsPanel-BKGrAKXv.js → NodeAddonsSettingsPanel-DvTRBvQl.js} +1 -1
  28. package/dist/assets/{NodeInferenceDevices-BCYhY7nQ.js → NodeInferenceDevices-BaRmgURr.js} +1 -1
  29. package/dist/assets/Notifications-DXzfB7Iv.js +1 -0
  30. package/dist/assets/{Pipeline-Jv-H2NAp.js → Pipeline-DCSX_1o6.js} +1 -1
  31. package/dist/assets/Plates-BEU4sAqP.js +1 -0
  32. package/dist/assets/PrivacyMaskSettings-CZLQzQgv.js +1 -0
  33. package/dist/assets/{ProviderIcon-O1y41-9_.js → ProviderIcon-aFjOxP4_.js} +1 -1
  34. package/dist/assets/Recordings-b6zC1cWE.js +1 -0
  35. package/dist/assets/{ScanNetworkModal-Bkpvy3_p.js → ScanNetworkModal-DFZ9sM0F.js} +1 -1
  36. package/dist/assets/SceneMonitorEditor-BN655weg.js +1 -0
  37. package/dist/assets/{Scenes-5wMKZRPv.js → Scenes-C0y2uk0j.js} +1 -1
  38. package/dist/assets/{Settings-DWYKhvBB.js → Settings-DpIKYRlm.js} +1 -1
  39. package/dist/assets/{Showroom-CUXHrY5P.js → Showroom-CWbwspFj.js} +1 -1
  40. package/dist/assets/{Terminal-BlZVC9iW.js → Terminal-ykBOga6k.js} +1 -1
  41. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CAribm2M.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BYhH6kE0.js} +1 -1
  42. package/dist/assets/{bell-ring-BLQ-V73q.js → bell-ring-CXoCKJnn.js} +1 -1
  43. package/dist/assets/{boxes-Dypj31sZ.js → boxes-Bw4b1Wc1.js} +1 -1
  44. package/dist/assets/circle-check-big-D_Kt6W2W.js +1 -0
  45. package/dist/assets/{circle-x-B3MSB8Og.js → circle-x-DDabN2KD.js} +1 -1
  46. package/dist/assets/clock-BeIF3nWG.js +1 -0
  47. package/dist/assets/{copy-D55okrt8.js → copy-C-EqjmDP.js} +1 -1
  48. package/dist/assets/{debounced-invalidate-Bq_-Ngtg.js → debounced-invalidate-Bfd2Qzzn.js} +1 -1
  49. package/dist/assets/dist-D-Tiwsk7.js +349 -0
  50. package/dist/assets/{dist-BKLAovWG.js → dist-D_lTK4xz.js} +1 -1
  51. package/dist/assets/{download-DPaR139q.js → download-Cuj1maBm.js} +1 -1
  52. package/dist/assets/{face-bbox-Dl112HSj.js → face-bbox-y-km4dI8.js} +1 -1
  53. package/dist/assets/{hostInit-BEpzKY8C.js → hostInit-Cym8Rr5d.js} +1 -1
  54. package/dist/assets/index-BTGQKEEA.js +4 -0
  55. package/dist/assets/{key-round-DUZWZ_rI.js → key-round-DvhPSBSH.js} +1 -1
  56. package/dist/assets/{layers-Czk9MtAZ.js → layers-B7No2bw_.js} +1 -1
  57. package/dist/assets/{mf-entry-bootstrap-0-bb1142ed.js → mf-entry-bootstrap-0-ae9b3119.js} +2 -2
  58. package/dist/assets/{pencil-DtuLbgSG.js → pencil-BJxboIbx.js} +1 -1
  59. package/dist/assets/play-CeohfaKf.js +1 -0
  60. package/dist/assets/player-overlays-RwoCa548.js +1 -0
  61. package/dist/assets/plus-Brv4i72u.js +1 -0
  62. package/dist/assets/power-DmJawhTF.js +1 -0
  63. package/dist/assets/{radio-B_dQ98Hi.js → radio-klp_ubdd.js} +1 -1
  64. package/dist/assets/{refresh-cw-DsTF0HtQ.js → refresh-cw-OR1QZ198.js} +1 -1
  65. package/dist/assets/remoteEntry-CRo49mol.js +1 -0
  66. package/dist/assets/rotate-ccw-Dzp5z5a_.js +1 -0
  67. package/dist/assets/rotate-cw-6dMVo8-E.js +1 -0
  68. package/dist/assets/{send-BP6R0rRO.js → send-vc4Psyt4.js} +1 -1
  69. package/dist/assets/{server-D37fa07L.js → server-BXgYajYr.js} +1 -1
  70. package/dist/assets/{shield-B6cq5CW6.js → shield-Y4WSkvsK.js} +1 -1
  71. package/dist/assets/square-Dd2LMGtj.js +1 -0
  72. package/dist/assets/{square-check-big-Jbtwig6c.js → square-check-big-hQzwD37R.js} +1 -1
  73. package/dist/assets/src-CDVm70oc.js +67 -0
  74. package/dist/assets/src-ijaeX4aR.js +349 -0
  75. package/dist/assets/{star-f_-GYi1D.js → star-BM5cPk35.js} +1 -1
  76. package/dist/assets/{undo-2-S6HqaEGy.js → undo-2-C4NHExfy.js} +1 -1
  77. package/dist/assets/{use-scenes-feed-C5C2RGwJ.js → use-scenes-feed-BsYnn_Rq.js} +1 -1
  78. package/dist/assets/useEventInvalidation-D4KUD_Rr.js +1 -0
  79. package/dist/assets/useNodeUrlSelection-DbuPo174.js +1 -0
  80. package/dist/assets/{video-CxvKF_Ar.js → video-DIbJOXgM.js} +1 -1
  81. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-B11mjU62.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DbvhoXKV.js} +2 -2
  82. package/dist/assets/{wifi-B9yskYca.js → wifi-CMg5tM5x.js} +1 -1
  83. package/dist/assets/{zap-8iaR87i8.js → zap-Dnw48_IY.js} +1 -1
  84. package/dist/index.html +5 -5
  85. package/dist/server/addon.js +314 -182
  86. package/package.json +1 -1
  87. package/dist/assets/Addons-C7ugoYzx.js +0 -1
  88. package/dist/assets/AiProfiles-BOumh8Sy.js +0 -3
  89. package/dist/assets/Build-CKeeP86Z.js +0 -32
  90. package/dist/assets/Cluster-BviBUX6y.js +0 -11
  91. package/dist/assets/DeviceDetail-DQMiHdyF.js +0 -2
  92. package/dist/assets/Events-BTAz2irZ.js +0 -1
  93. package/dist/assets/Integrations-sedJLouZ.js +0 -1
  94. package/dist/assets/Notifications-f42HlHqJ.js +0 -1
  95. package/dist/assets/Plates-DNXJ0ZGd.js +0 -1
  96. package/dist/assets/PrivacyMaskSettings-0i9ff8gY.js +0 -1
  97. package/dist/assets/Recordings-BLl9b2uJ.js +0 -1
  98. package/dist/assets/SceneMonitorEditor-CRrYOWn_.js +0 -1
  99. package/dist/assets/circle-check-big-xsZd2yKi.js +0 -1
  100. package/dist/assets/clock-BtMlIKiK.js +0 -1
  101. package/dist/assets/dist-vBVTdcJV.js +0 -349
  102. package/dist/assets/index-C5g8h6ZU.js +0 -4
  103. package/dist/assets/play-BJCc4fGn.js +0 -1
  104. package/dist/assets/player-overlays-Bx-E68JT.js +0 -1
  105. package/dist/assets/plus-D5JVg6nA.js +0 -1
  106. package/dist/assets/power-BjgBAjFq.js +0 -1
  107. package/dist/assets/remoteEntry-BWuMimQ_.js +0 -1
  108. package/dist/assets/rotate-ccw-CFqgYAHl.js +0 -1
  109. package/dist/assets/rotate-cw-D7RHGKK4.js +0 -1
  110. package/dist/assets/square-CZw5Ock3.js +0 -1
  111. package/dist/assets/src-BoA1cQeV.js +0 -67
  112. package/dist/assets/src-Hd2A_xp6.js +0 -349
  113. package/dist/assets/useEventInvalidation-2W9yFdBU.js +0 -1
@@ -8006,6 +8006,21 @@ var RelocateJobSchema = object({
8006
8006
  bytesMoved: number().int(),
8007
8007
  /** Total files discovered up front; null while (or when) unknown. */
8008
8008
  filesTotal: number().int().nullable(),
8009
+ /**
8010
+ * Rows this run CORRECTED while moving them — a durable mutation the move
8011
+ * made that nobody asked for, so it is reported where the operator reads the
8012
+ * job rather than only in a log line.
8013
+ *
8014
+ * A footage segment records its byte count in its own NAME, and the durable
8015
+ * hour row derives its aggregates from those names. A file that does not
8016
+ * match its name therefore makes the ledger's sums — and with them quota and
8017
+ * pressure eviction — wrong by the difference, and only a rename can fix it.
8018
+ * On 2026-08-30 one such row also stalled a 110 749-file drain permanently.
8019
+ *
8020
+ * Absent on lanes where the question has no meaning: a media blob's size is
8021
+ * in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
8022
+ */
8023
+ rowsReconciled: number().int().nonnegative().optional(),
8009
8024
  startedAt: number(),
8010
8025
  finishedAt: number().nullable(),
8011
8026
  error: string().nullable()
@@ -8074,14 +8089,42 @@ var RelocateMediaInputSchema = object({
8074
8089
  /** Omitted = `move`, the pre-existing behaviour. */
8075
8090
  mode: MediaRelocateModeSchema.optional()
8076
8091
  });
8077
- /** How many rows still carry NO `locationId` — the population a repoint would
8078
- * silently re-aim at a disk that does not hold their bytes. Zero is the only
8079
- * value that permits a non-blocking `eventMedia` cutover. */
8080
- var UnstampedEventMediaCountSchema = object({
8081
- media: number().int().nonnegative(),
8082
- retrainFrames: number().int().nonnegative(),
8083
- total: number().int().nonnegative()
8092
+ /**
8093
+ * The unstamped population of ONE collection split, because the gate and the
8094
+ * operator ask two different questions and only one of them has to be cheap.
8095
+ *
8096
+ * `present` is the GATE: "is there at least one row that would be orphaned by a
8097
+ * repoint". It is a single indexed seek to the first matching row, so it stays
8098
+ * answerable on a saturated disk and answers in O(log n) precisely in the state
8099
+ * that matters — after a seal, when the population is empty.
8100
+ *
8101
+ * `rows` is the NUMBER, for the refusal message and the operator's sense of
8102
+ * scale. It is a second, indexed `COUNT(*)`, and `null` means **not
8103
+ * measurable** — never zero. `{ present: true, rows: null }` is a legitimate
8104
+ * and useful answer: "there are some, and this read could not say how many"
8105
+ * still refuses the cutover, which is the whole job.
8106
+ */
8107
+ var UnstampedRowsSchema = object({
8108
+ present: boolean(),
8109
+ rows: number().int().nonnegative().nullable()
8084
8110
  });
8111
+ /**
8112
+ * How many rows still carry NO `locationId` — the population a repoint would
8113
+ * silently re-aim at a disk that does not hold their bytes.
8114
+ *
8115
+ * **`null` = the count could not be taken**, and it is NOT permission to cut
8116
+ * over. The gate opens on a measured absence and on nothing else; an unread
8117
+ * collection and an empty one are different facts, and this repo has already
8118
+ * paid for conflating them (`RelocateResidueSchema`, D295).
8119
+ */
8120
+ var UnstampedEventMediaCountSchema = object({
8121
+ media: UnstampedRowsSchema,
8122
+ retrainFrames: UnstampedRowsSchema,
8123
+ /** True when EITHER collection holds one. The refusal reads this. */
8124
+ anyPresent: boolean(),
8125
+ /** Sum across both, or `null` when either lane could not be counted. */
8126
+ total: number().int().nonnegative().nullable()
8127
+ }).nullable();
8085
8128
  var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
8086
8129
  /** The independently selectable logical storage classes — every class
8087
8130
  * `storage.listLocationDeclarations` reports, so an operator never meets a
@@ -8192,6 +8235,10 @@ var StorageMigrationMoveProgressSchema = object({
8192
8235
  /** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
8193
8236
  filesTotal: number().int().nonnegative().nullable(),
8194
8237
  bytesMoved: number().int().nonnegative(),
8238
+ /** Rows the mover corrected while moving them — see `RelocateJob`. Absent on
8239
+ * a lane that cannot reconcile. A migration that silently rewrote durable
8240
+ * rows would be the same failure as one that silently skipped them. */
8241
+ rowsReconciled: number().int().nonnegative().optional(),
8195
8242
  /** The MOVER's start, not the migration's: a drain restarted after an addon
8196
8243
  * crash gets a new mover, and a rate computed from the migration's start
8197
8244
  * would silently average in the time nothing was running. */
@@ -12876,6 +12923,114 @@ method(object({
12876
12923
  height: number()
12877
12924
  }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12878
12925
  /**
12926
+ * `failure-contribution` — the capability an addon reports its OWN losses
12927
+ * through, per camera, with the denominator attached. It stores nothing.
12928
+ *
12929
+ * ## The twin of `load-contribution`, and why it is a twin and not a field
12930
+ *
12931
+ * `load-contribution` answers *what did this camera COST*. This answers *what
12932
+ * did this camera LOSE*. The reporting discipline is identical and deliberately
12933
+ * copied: the contributor reports what it already knows, hub-main adds only
12934
+ * `addonId`, nothing needs global knowledge, and there is no central list for
12935
+ * somebody to forget to edit.
12936
+ *
12937
+ * They are not merged, because their invariants are opposites:
12938
+ *
12939
+ * - a `load-contribution` measurement is **absent, never zero** — a zero would
12940
+ * claim a camera cost nothing, which is a measurement nobody made;
12941
+ * - a `failure-contribution` zero is the **most valuable value on the
12942
+ * surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
12943
+ * and it is exactly what an absent entry cannot say.
12944
+ *
12945
+ * Putting a loss counter on a cost entry would also break the reconciliation
12946
+ * that gives `load-contribution` its point: contributions are subtracted from
12947
+ * `metrics.node-processes-snapshot` to find processes nobody claims. A failure
12948
+ * has no process.
12949
+ *
12950
+ * ## Why not a log line, since the counters already exist
12951
+ *
12952
+ * Several of these paths already counted themselves — `CaptureScheduler`'s
12953
+ * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
12954
+ * ends in a log line, and a log line is the thing the operator asked to stop
12955
+ * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
12956
+ * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
12957
+ * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
12958
+ * media blackout were both diagnosed. The counters stay; this is where they can
12959
+ * be READ.
12960
+ *
12961
+ * ## The rate is served with its denominator or not at all
12962
+ *
12963
+ * Every entry carries `attempts` and `succeeded`. A miss count alone is
12964
+ * unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
12965
+ * than yesterday" and was **flat across twelve hours** once divided by the
12966
+ * successes on the same path. A surface that publishes only the numerator
12967
+ * reproduces that mistake on every read.
12968
+ *
12969
+ * ## Shape
12970
+ *
12971
+ * Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
12972
+ * `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
12973
+ * generated hooks, while `addons.listCapabilityProviders` still enumerates it
12974
+ * and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
12975
+ * a forked runner's entries reach hub-main over transport that already exists.
12976
+ * No new UDS message, no second registry (D3). The operator reads the assembled
12977
+ * result through `system.getFailureContributions`.
12978
+ */
12979
+ var FailureReasonCountSchema = object({
12980
+ /**
12981
+ * Why the attempt did not land, in the contributor's own vocabulary —
12982
+ * `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
12983
+ * strings that already appear in this repo's logs and, where one exists, the
12984
+ * same string the per-track `previewMissReason` records (D276): a second
12985
+ * vocabulary for the same loss would make the row and the counter
12986
+ * un-joinable.
12987
+ */
12988
+ reason: string(),
12989
+ count: number().int().nonnegative()
12990
+ });
12991
+ var FailureContributionSchema = object({
12992
+ /**
12993
+ * The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
12994
+ * `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
12995
+ * `unit` free: the families are owned by different addons and a shared enum
12996
+ * is a central list that rots invisibly.
12997
+ */
12998
+ family: string(),
12999
+ /**
13000
+ * The NUMERIC device id — the same value every log line carries as
13001
+ * `tags.deviceId`. Never nullable and never absent: a contributor that
13002
+ * cannot name the camera must not emit the entry, because a fleet total
13003
+ * cannot answer the only question anybody asks of this surface.
13004
+ */
13005
+ deviceId: number().int().positive(),
13006
+ /**
13007
+ * A second dimension inside the family: the model / step id for an inference
13008
+ * timeout, so "which camera AND which model" is one read. Absent when the
13009
+ * family has a single variant.
13010
+ */
13011
+ variant: string().optional(),
13012
+ /**
13013
+ * Epoch ms this counter started — the INCARNATION MARKER. A consumer
13014
+ * differencing two reads must drop the interval when it changes, because the
13015
+ * counter restarted from zero in a respawned runner. Same discipline as
13016
+ * `LoadContribution.startedAtMs`.
13017
+ */
13018
+ sinceMs: number(),
13019
+ /** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
13020
+ atMs: number(),
13021
+ /**
13022
+ * THE DENOMINATOR — every attempt on this path for this camera in the
13023
+ * window. A failure count published without it is the mistake this schema
13024
+ * exists to make impossible.
13025
+ */
13026
+ attempts: number().int().nonnegative(),
13027
+ /** Attempts that landed. `attempts - succeeded` is the loss. */
13028
+ succeeded: number().int().nonnegative(),
13029
+ /** The loss, partitioned. Sums to `attempts - succeeded`. */
13030
+ reasons: array(FailureReasonCountSchema).readonly()
13031
+ });
13032
+ method(_void(), array(FailureContributionSchema).readonly());
13033
+ /**
12879
13034
  * filesystem-browse — per-node capability for browsing the node's local
12880
13035
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
12881
13036
  * are sandboxed to operator-configured allowed roots (D115). Used by the
@@ -13397,6 +13552,68 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
13397
13552
  kind: "mutation",
13398
13553
  auth: "admin"
13399
13554
  });
13555
+ var LoadContributionSchema = object({
13556
+ role: _enum([
13557
+ "decode",
13558
+ "transcode",
13559
+ "recording",
13560
+ "streaming",
13561
+ "detection"
13562
+ ]),
13563
+ /**
13564
+ * The NUMERIC device id — the same value every log line carries as
13565
+ * `tags.deviceId`. `null` means this cost genuinely belongs to no single
13566
+ * camera (a shared pool), NOT that the contributor forgot to look it up: a
13567
+ * contributor that cannot name its camera must not emit the entry at all,
13568
+ * because an unnamed per-camera entry is indistinguishable from a shared one
13569
+ * and would quietly turn one camera's cost into everybody's.
13570
+ */
13571
+ deviceId: number().int().positive().nullable(),
13572
+ attribution: _enum([
13573
+ "measured",
13574
+ "accounted",
13575
+ "unattributable"
13576
+ ]),
13577
+ /**
13578
+ * What ONE entry is, in the contributor's own words — `615/high`,
13579
+ * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
13580
+ * family and inventing a common one would lose the only information that
13581
+ * makes two entries for the same camera distinguishable.
13582
+ */
13583
+ unit: string(),
13584
+ /**
13585
+ * The OS process this cost lives in, when there is one. Present so a
13586
+ * consumer can (a) tell two generations of the same unit apart across a
13587
+ * restart, and (b) subtract claimed processes from the node's process
13588
+ * snapshot to see what NOBODY claimed. Absent for an entry that owns no
13589
+ * process of its own.
13590
+ */
13591
+ pid: number().int().positive().optional(),
13592
+ /**
13593
+ * When this generation started. The pid's incarnation marker: a consumer
13594
+ * differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
13595
+ * window when this changes, because the counter restarted from zero in a new
13596
+ * process.
13597
+ */
13598
+ startedAtMs: number().optional(),
13599
+ /**
13600
+ * CUMULATIVE CPU seconds this unit has consumed since it started — user +
13601
+ * system, read from the child's own `/proc/<pid>/stat` at the moment the
13602
+ * contribution is asked for.
13603
+ *
13604
+ * Cumulative and not a rate on purpose: a rate needs a window, a window
13605
+ * needs a sampler, and a new per-node sampler is the defect half of
13606
+ * `docs/architecture/load-ledger.md` documents. A counter can be differenced
13607
+ * by whoever already keeps a history; a rate cannot be un-averaged.
13608
+ *
13609
+ * Absent — never zero — on a node with no `/proc`, on a read failure, and on
13610
+ * an entry with no process.
13611
+ */
13612
+ cpuSeconds: number().optional(),
13613
+ /** Resident bytes of this unit's process, same source and same rules. */
13614
+ rssBytes: number().optional()
13615
+ });
13616
+ method(_void(), array(LoadContributionSchema).readonly());
13400
13617
  /**
13401
13618
  * `log-channels` — the capability an addon DECLARES its diagnostic channels
13402
13619
  * through. It stores nothing.
@@ -13473,176 +13690,6 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
13473
13690
  tags: record(string(), string()).optional()
13474
13691
  }), array(LogEntrySchema).readonly());
13475
13692
  /**
13476
- * `failure-contribution` — the capability an addon reports its OWN losses
13477
- * through, per camera, with the denominator attached. It stores nothing.
13478
- *
13479
- * ## The twin of `load-contribution`, and why it is a twin and not a field
13480
- *
13481
- * `load-contribution` answers *what did this camera COST*. This answers *what
13482
- * did this camera LOSE*. The reporting discipline is identical and deliberately
13483
- * copied: the contributor reports what it already knows, hub-main adds only
13484
- * `addonId`, nothing needs global knowledge, and there is no central list for
13485
- * somebody to forget to edit.
13486
- *
13487
- * They are not merged, because their invariants are opposites:
13488
- *
13489
- * - a `load-contribution` measurement is **absent, never zero** — a zero would
13490
- * claim a camera cost nothing, which is a measurement nobody made;
13491
- * - a `failure-contribution` zero is the **most valuable value on the
13492
- * surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
13493
- * and it is exactly what an absent entry cannot say.
13494
- *
13495
- * Putting a loss counter on a cost entry would also break the reconciliation
13496
- * that gives `load-contribution` its point: contributions are subtracted from
13497
- * `metrics.node-processes-snapshot` to find processes nobody claims. A failure
13498
- * has no process.
13499
- *
13500
- * ## Why not a log line, since the counters already exist
13501
- *
13502
- * Several of these paths already counted themselves — `CaptureScheduler`'s
13503
- * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
13504
- * ends in a log line, and a log line is the thing the operator asked to stop
13505
- * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
13506
- * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
13507
- * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
13508
- * media blackout were both diagnosed. The counters stay; this is where they can
13509
- * be READ.
13510
- *
13511
- * ## The rate is served with its denominator or not at all
13512
- *
13513
- * Every entry carries `attempts` and `succeeded`. A miss count alone is
13514
- * unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
13515
- * than yesterday" and was **flat across twelve hours** once divided by the
13516
- * successes on the same path. A surface that publishes only the numerator
13517
- * reproduces that mistake on every read.
13518
- *
13519
- * ## Shape
13520
- *
13521
- * Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
13522
- * `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
13523
- * generated hooks, while `addons.listCapabilityProviders` still enumerates it
13524
- * and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
13525
- * a forked runner's entries reach hub-main over transport that already exists.
13526
- * No new UDS message, no second registry (D3). The operator reads the assembled
13527
- * result through `system.getFailureContributions`.
13528
- */
13529
- var FailureReasonCountSchema = object({
13530
- /**
13531
- * Why the attempt did not land, in the contributor's own vocabulary —
13532
- * `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
13533
- * strings that already appear in this repo's logs and, where one exists, the
13534
- * same string the per-track `previewMissReason` records (D276): a second
13535
- * vocabulary for the same loss would make the row and the counter
13536
- * un-joinable.
13537
- */
13538
- reason: string(),
13539
- count: number().int().nonnegative()
13540
- });
13541
- var FailureContributionSchema = object({
13542
- /**
13543
- * The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
13544
- * `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
13545
- * `unit` free: the families are owned by different addons and a shared enum
13546
- * is a central list that rots invisibly.
13547
- */
13548
- family: string(),
13549
- /**
13550
- * The NUMERIC device id — the same value every log line carries as
13551
- * `tags.deviceId`. Never nullable and never absent: a contributor that
13552
- * cannot name the camera must not emit the entry, because a fleet total
13553
- * cannot answer the only question anybody asks of this surface.
13554
- */
13555
- deviceId: number().int().positive(),
13556
- /**
13557
- * A second dimension inside the family: the model / step id for an inference
13558
- * timeout, so "which camera AND which model" is one read. Absent when the
13559
- * family has a single variant.
13560
- */
13561
- variant: string().optional(),
13562
- /**
13563
- * Epoch ms this counter started — the INCARNATION MARKER. A consumer
13564
- * differencing two reads must drop the interval when it changes, because the
13565
- * counter restarted from zero in a respawned runner. Same discipline as
13566
- * `LoadContribution.startedAtMs`.
13567
- */
13568
- sinceMs: number(),
13569
- /** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
13570
- atMs: number(),
13571
- /**
13572
- * THE DENOMINATOR — every attempt on this path for this camera in the
13573
- * window. A failure count published without it is the mistake this schema
13574
- * exists to make impossible.
13575
- */
13576
- attempts: number().int().nonnegative(),
13577
- /** Attempts that landed. `attempts - succeeded` is the loss. */
13578
- succeeded: number().int().nonnegative(),
13579
- /** The loss, partitioned. Sums to `attempts - succeeded`. */
13580
- reasons: array(FailureReasonCountSchema).readonly()
13581
- });
13582
- method(_void(), array(FailureContributionSchema).readonly());
13583
- var LoadContributionSchema = object({
13584
- role: _enum([
13585
- "decode",
13586
- "transcode",
13587
- "recording",
13588
- "streaming",
13589
- "detection"
13590
- ]),
13591
- /**
13592
- * The NUMERIC device id — the same value every log line carries as
13593
- * `tags.deviceId`. `null` means this cost genuinely belongs to no single
13594
- * camera (a shared pool), NOT that the contributor forgot to look it up: a
13595
- * contributor that cannot name its camera must not emit the entry at all,
13596
- * because an unnamed per-camera entry is indistinguishable from a shared one
13597
- * and would quietly turn one camera's cost into everybody's.
13598
- */
13599
- deviceId: number().int().positive().nullable(),
13600
- attribution: _enum([
13601
- "measured",
13602
- "accounted",
13603
- "unattributable"
13604
- ]),
13605
- /**
13606
- * What ONE entry is, in the contributor's own words — `615/high`,
13607
- * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
13608
- * family and inventing a common one would lose the only information that
13609
- * makes two entries for the same camera distinguishable.
13610
- */
13611
- unit: string(),
13612
- /**
13613
- * The OS process this cost lives in, when there is one. Present so a
13614
- * consumer can (a) tell two generations of the same unit apart across a
13615
- * restart, and (b) subtract claimed processes from the node's process
13616
- * snapshot to see what NOBODY claimed. Absent for an entry that owns no
13617
- * process of its own.
13618
- */
13619
- pid: number().int().positive().optional(),
13620
- /**
13621
- * When this generation started. The pid's incarnation marker: a consumer
13622
- * differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
13623
- * window when this changes, because the counter restarted from zero in a new
13624
- * process.
13625
- */
13626
- startedAtMs: number().optional(),
13627
- /**
13628
- * CUMULATIVE CPU seconds this unit has consumed since it started — user +
13629
- * system, read from the child's own `/proc/<pid>/stat` at the moment the
13630
- * contribution is asked for.
13631
- *
13632
- * Cumulative and not a rate on purpose: a rate needs a window, a window
13633
- * needs a sampler, and a new per-node sampler is the defect half of
13634
- * `docs/architecture/load-ledger.md` documents. A counter can be differenced
13635
- * by whoever already keeps a history; a rate cannot be un-averaged.
13636
- *
13637
- * Absent — never zero — on a node with no `/proc`, on a read failure, and on
13638
- * an entry with no process.
13639
- */
13640
- cpuSeconds: number().optional(),
13641
- /** Resident bytes of this unit's process, same source and same rules. */
13642
- rssBytes: number().optional()
13643
- });
13644
- method(_void(), array(LoadContributionSchema).readonly());
13645
- /**
13646
13693
  * `login-method` — collection cap through which auth addons contribute
13647
13694
  * their pre-auth login surfaces to the login page. This is the SINGLE,
13648
13695
  * generic mechanism that supersedes the dead `auth.listProviders` reader:
@@ -18302,12 +18349,53 @@ var MediaFileKindEnum = _enum([
18302
18349
  "keyFrameSmall",
18303
18350
  "thumbnailSmall"
18304
18351
  ]);
18352
+ /**
18353
+ * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
18354
+ * ARE — never the bytes themselves.
18355
+ *
18356
+ * ## Why `url` and not `base64`
18357
+ *
18358
+ * Measured on the live hub 2026-08-30: `getTrackMedia {trackId, deviceId}`
18359
+ * with no `kinds` returned 6 rows / **3 597 219 B**, of which `keyFrame` alone
18360
+ * was **2 824 077 B** — one full-resolution frame, base64, so +33 % on the
18361
+ * wire. Forty events is ~144 MB. Every byte of it was read off disk,
18362
+ * base64-encoded, held whole in a unary tRPC envelope, and materialised in
18363
+ * hub-main's heap on the way past — for an `<img>` that would have cached it.
18364
+ *
18365
+ * `url` points at the `event-media` data plane
18366
+ * (`/addon/<addonId>/event-media/<storedKey>`), which serves the same blob
18367
+ * with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
18368
+ * render a `?variant=thumb`, and streams. The hub gate in front of it requires
18369
+ * a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
18370
+ * no less protected than they were inside a `view`-level cap response — see
18371
+ * `data-plane-access.ts` for the rule and the one gap it does not close
18372
+ * (per-device scoping).
18373
+ *
18374
+ * The URL is built from the row's **stored** key, which is not always its
18375
+ * published `kind`: a track's face/plate crop is stored as `crop` under
18376
+ * `('face'|'plate', '<prefix>-<trackId>')` and published as
18377
+ * `faceCrop`/`plateCrop`. `MediaStore.getByKey` knows only the stored key.
18378
+ *
18379
+ * ## `base64` is TRANSITIONAL and is going away
18380
+ *
18381
+ * It is still populated for one reason: the deployed viewer's track-detail
18382
+ * HERO tile reads it (`use-track-media-entry.ts` → `parseMediaFiles`, which
18383
+ * REQUIRES the field), and a row without it parses as a FAILED read — the red
18384
+ * triangle — not as absence. Removing the field before that viewer ships is an
18385
+ * outage, not a cleanup. Once the viewer takes its hero bytes from `url`,
18386
+ * delete this line and the `withBytes` pass-through in
18387
+ * `analytics-query-facade.ts`; nothing else reads it.
18388
+ */
18305
18389
  var MediaFileSchema = object({
18306
18390
  key: string(),
18307
18391
  kind: MediaFileKindEnum,
18308
- base64: string(),
18309
18392
  sizeBytes: number(),
18310
18393
  timestamp: number()
18394
+ }).extend({
18395
+ /** `/addon/<addonId>/event-media/<encoded stored key>`. Always present. */
18396
+ url: string(),
18397
+ /** @deprecated Transitional — see the schema docblock. Use {@link url}. */
18398
+ base64: string()
18311
18399
  });
18312
18400
  /**
18313
18401
  * One media row WITHOUT its bytes.
@@ -18319,7 +18407,9 @@ var MediaFileSchema = object({
18319
18407
  * blocks the whole view.
18320
18408
  *
18321
18409
  * `sizeBytes` is carried because it is what lets a client decide between the
18322
- * stored blob and a `?variant=thumb` rendering without fetching either.
18410
+ * stored blob and a `?variant=thumb` rendering without fetching either, and
18411
+ * `url` because a client that had to build the plane path itself is a second
18412
+ * copy of a route — the embed, the viewer and the admin UI each grew one.
18323
18413
  */
18324
18414
  var MediaFileInfoSchema = MediaFileSchema.omit({ base64: true });
18325
18415
  /**
@@ -19008,6 +19098,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19008
19098
  }), array(MediaFileSchema).readonly()), method(object({
19009
19099
  trackId: string(),
19010
19100
  deviceId: number()
19101
+ }), array(MediaFileInfoSchema).readonly()), method(object({
19102
+ eventId: string(),
19103
+ deviceId: number()
19011
19104
  }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
19012
19105
  kind: "mutation",
19013
19106
  auth: "admin"
@@ -23268,10 +23361,24 @@ var FaceClusterSchema = object({
23268
23361
  size: number().int(),
23269
23362
  cohesion: number()
23270
23363
  });
23364
+ /**
23365
+ * One gallery media row: what the crop is, how big it is, and WHERE its bytes
23366
+ * are — never the bytes.
23367
+ *
23368
+ * `base64` was deleted here rather than deprecated. `MediaFile.base64` (the
23369
+ * track/event contract) is still populated because a deployed viewer requires
23370
+ * the field to parse a row at all; this method has no such reader. Its ONE
23371
+ * caller is the admin UI's detail modal, which was building
23372
+ * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
23373
+ * dialog already rendering its key FRAME from the `event-media` plane.
23374
+ *
23375
+ * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
23376
+ * media key directly, so this needed no new plane and no new access decision.
23377
+ */
23271
23378
  var MediaFileLiteSchema$1 = object({
23272
23379
  key: string(),
23273
23380
  kind: string(),
23274
- base64: string(),
23381
+ url: string(),
23275
23382
  sizeBytes: number(),
23276
23383
  timestamp: number()
23277
23384
  });
@@ -25523,10 +25630,24 @@ var PlateInfoSchema = object({
25523
25630
  */
25524
25631
  cropUrl: string().optional()
25525
25632
  });
25633
+ /**
25634
+ * One gallery media row: what the crop is, how big it is, and WHERE its bytes
25635
+ * are — never the bytes.
25636
+ *
25637
+ * `base64` was deleted here rather than deprecated. `MediaFile.base64` (the
25638
+ * track/event contract) is still populated because a deployed viewer requires
25639
+ * the field to parse a row at all; this method has no such reader. Its ONE
25640
+ * caller is the admin UI's detail modal, which was building
25641
+ * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
25642
+ * dialog already rendering its key FRAME from the `event-media` plane.
25643
+ *
25644
+ * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
25645
+ * media key directly, so this needed no new plane and no new access decision.
25646
+ */
25526
25647
  var MediaFileLiteSchema = object({
25527
25648
  key: string(),
25528
25649
  kind: string(),
25529
- base64: string(),
25650
+ url: string(),
25530
25651
  sizeBytes: number(),
25531
25652
  timestamp: number()
25532
25653
  });
@@ -31539,6 +31660,12 @@ Object.freeze({
31539
31660
  addonId: null,
31540
31661
  access: "view"
31541
31662
  },
31663
+ "pipelineAnalytics.listEventMedia": {
31664
+ capName: "pipeline-analytics",
31665
+ capScope: "device",
31666
+ addonId: null,
31667
+ access: "view"
31668
+ },
31542
31669
  "pipelineAnalytics.listGroups": {
31543
31670
  capName: "pipeline-analytics",
31544
31671
  capScope: "device",
@@ -35162,6 +35289,11 @@ Object.freeze({
35162
35289
  form: "array",
35163
35290
  optional: false
35164
35291
  }],
35292
+ "pipelineAnalytics.listEventMedia": [{
35293
+ name: "deviceId",
35294
+ form: "single",
35295
+ optional: false
35296
+ }],
35165
35297
  "pipelineAnalytics.listGroups": [{
35166
35298
  name: "deviceIds",
35167
35299
  form: "array",
@@ -36424,7 +36556,7 @@ var AdminUIAddon = class extends BaseAddon {
36424
36556
  capability: adminUiCapability,
36425
36557
  provider: {
36426
36558
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
36427
- getVersion: async () => ({ version: "1.2.117" })
36559
+ getVersion: async () => ({ version: "1.2.119" })
36428
36560
  }
36429
36561
  }];
36430
36562
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-admin-ui",
3
- "version": "1.2.117",
3
+ "version": "1.2.119",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Admin UI — Vite frontend build and server-side addon",