@camstack/types 1.2.116 → 1.2.118

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 (32) hide show
  1. package/dist/addon.js +4 -3
  2. package/dist/addon.mjs +4 -3
  3. package/dist/capabilities/data-store-provider.cap.d.ts +11 -0
  4. package/dist/capabilities/index.d.ts +6 -3
  5. package/dist/capabilities/load-contribution.cap.d.ts +146 -0
  6. package/dist/capabilities/metrics-provider.cap.d.ts +156 -38
  7. package/dist/capabilities/settings-store.cap.d.ts +48 -1
  8. package/dist/capabilities/system.cap.d.ts +67 -1
  9. package/dist/constants.d.ts +19 -0
  10. package/dist/enums/event-category.d.ts +1 -1
  11. package/dist/enums.js +1 -1
  12. package/dist/enums.mjs +1 -1
  13. package/dist/{event-category-CIa_iT6b.mjs → event-category-BZL-fdNj.mjs} +1 -1
  14. package/dist/{event-category-EY0GNjV9.js → event-category-BaEgqJNv.js} +1 -1
  15. package/dist/generated/addon-api.d.ts +40 -3
  16. package/dist/generated/capability-router-map.d.ts +5 -2
  17. package/dist/generated/collection-array-methods.d.ts +1 -1
  18. package/dist/generated/method-access-map.d.ts +1 -1
  19. package/dist/generated/system-proxy.d.ts +3 -3
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.js +606 -37
  22. package/dist/index.mjs +595 -38
  23. package/dist/interfaces/event-bus.d.ts +29 -11
  24. package/dist/interfaces/metrics-provider.d.ts +5 -3
  25. package/dist/metrics/load-series-fold.d.ts +142 -0
  26. package/dist/node.d.ts +2 -0
  27. package/dist/node.js +191 -0
  28. package/dist/node.mjs +186 -1
  29. package/dist/process/child-cost-registry.d.ts +105 -0
  30. package/dist/{sleep-CSodb2vQ.js → sleep-9d8tJRbO.js} +1 -1
  31. package/dist/{sleep-CdbM8ge4.mjs → sleep-Dolp38qx.mjs} +1 -1
  32. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-EY0GNjV9.js");
3
- const require_sleep = require("./sleep-CSodb2vQ.js");
2
+ const require_event_category = require("./event-category-BaEgqJNv.js");
3
+ const require_sleep = require("./sleep-9d8tJRbO.js");
4
4
  const require_canonical_hash = require("./canonical-hash-DNV8S5ET.js");
5
5
  const require_enums = require("./enums.js");
6
6
  const require_err_msg = require("./err-msg-COpsHMw2.js");
@@ -2767,6 +2767,145 @@ function pickClosestResolution(entries, target) {
2767
2767
  return bestAbove?.entry ?? bestBelow?.entry;
2768
2768
  }
2769
2769
  //#endregion
2770
+ //#region src/metrics/load-series-fold.ts
2771
+ /** Bucket key for rows no addon owns. Stable, so its series is continuous. */
2772
+ var UNATTRIBUTED_BUCKET_KEY = "__unattributed__";
2773
+ var ROOT_BUCKET_KEY = "__root__";
2774
+ function bucketFor(row) {
2775
+ if (row.addonId !== null) return {
2776
+ key: row.addonId,
2777
+ kind: "addon"
2778
+ };
2779
+ if (row.classification === "root") return {
2780
+ key: ROOT_BUCKET_KEY,
2781
+ kind: "root"
2782
+ };
2783
+ return {
2784
+ key: UNATTRIBUTED_BUCKET_KEY,
2785
+ kind: "unattributed"
2786
+ };
2787
+ }
2788
+ /** Round to one decimal — the precision both producers already emit at. */
2789
+ function deci(value) {
2790
+ return Math.round(value * 10) / 10;
2791
+ }
2792
+ /**
2793
+ * Fold one snapshot into one point per function.
2794
+ *
2795
+ * Produces a ONE-SAMPLE point: `min === max` on every field, `samples === 1`.
2796
+ * That is what lets a live event and a reduced server bucket sit in the same
2797
+ * series without the consumer knowing which is which.
2798
+ */
2799
+ function foldSnapshotByFunction(rows, atMs) {
2800
+ const acc = /* @__PURE__ */ new Map();
2801
+ for (const row of rows) {
2802
+ const { key, kind } = bucketFor(row);
2803
+ const cur = acc.get(key) ?? {
2804
+ kind,
2805
+ main: 0,
2806
+ gc: 0,
2807
+ lifetime: 0,
2808
+ memory: 0,
2809
+ count: 0,
2810
+ splitKnown: true
2811
+ };
2812
+ const known = row.cpuMainPercent !== null && row.cpuGcPercent !== null;
2813
+ acc.set(key, {
2814
+ kind: cur.kind,
2815
+ main: cur.main + (row.cpuMainPercent ?? 0),
2816
+ gc: cur.gc + (row.cpuGcPercent ?? 0),
2817
+ lifetime: cur.lifetime + row.cpuPercent,
2818
+ memory: cur.memory + row.memoryRssBytes,
2819
+ count: cur.count + 1,
2820
+ splitKnown: cur.splitKnown && known
2821
+ });
2822
+ }
2823
+ return [...acc.entries()].map(([key, a]) => {
2824
+ const main = a.splitKnown ? deci(a.main) : null;
2825
+ const gc = a.splitKnown ? deci(a.gc) : null;
2826
+ const lifetime = deci(a.lifetime);
2827
+ return {
2828
+ key,
2829
+ kind: a.kind,
2830
+ point: {
2831
+ atMs,
2832
+ samples: 1,
2833
+ cpuMainPercent: main,
2834
+ cpuMainPercentMin: main,
2835
+ cpuGcPercent: gc,
2836
+ cpuGcPercentMin: gc,
2837
+ cpuLifetimePercent: lifetime,
2838
+ cpuLifetimePercentMin: lifetime,
2839
+ memoryRssBytes: a.memory,
2840
+ memoryRssBytesMin: a.memory,
2841
+ processCount: a.count,
2842
+ processCountMin: a.count
2843
+ }
2844
+ };
2845
+ });
2846
+ }
2847
+ /** The narrower of two bounds, treating `null` (UNKNOWN) as absorbing. */
2848
+ function minNullable(a, b) {
2849
+ if (a === null || b === null) return null;
2850
+ return a < b ? a : b;
2851
+ }
2852
+ function maxNullable(a, b) {
2853
+ if (a === null || b === null) return null;
2854
+ return a > b ? a : b;
2855
+ }
2856
+ /** Merge `next` into `held`, keeping the widest [min, max] of each field. */
2857
+ function mergePoints(held, next, atMs) {
2858
+ return {
2859
+ atMs,
2860
+ samples: held.samples + next.samples,
2861
+ cpuMainPercent: maxNullable(held.cpuMainPercent, next.cpuMainPercent),
2862
+ cpuMainPercentMin: minNullable(held.cpuMainPercentMin, next.cpuMainPercentMin),
2863
+ cpuGcPercent: maxNullable(held.cpuGcPercent, next.cpuGcPercent),
2864
+ cpuGcPercentMin: minNullable(held.cpuGcPercentMin, next.cpuGcPercentMin),
2865
+ cpuLifetimePercent: Math.max(held.cpuLifetimePercent, next.cpuLifetimePercent),
2866
+ cpuLifetimePercentMin: Math.min(held.cpuLifetimePercentMin, next.cpuLifetimePercentMin),
2867
+ memoryRssBytes: Math.max(held.memoryRssBytes, next.memoryRssBytes),
2868
+ memoryRssBytesMin: Math.min(held.memoryRssBytesMin, next.memoryRssBytesMin),
2869
+ processCount: Math.max(held.processCount, next.processCount),
2870
+ processCountMin: Math.min(held.processCountMin, next.processCountMin)
2871
+ };
2872
+ }
2873
+ /**
2874
+ * The bucket width that brings `spanMs` down to at most `maxPoints` points,
2875
+ * snapped up to a whole multiple of the sampling cadence.
2876
+ *
2877
+ * Returns `cadenceMs` (no reduction) when the span already fits. A caller that
2878
+ * asks for a `maxPoints` of 0 or less gets no reduction rather than an
2879
+ * infinite bucket — a nonsensical request must not produce a plausible chart.
2880
+ */
2881
+ function resolveBucketMs(spanMs, cadenceMs, maxPoints) {
2882
+ if (maxPoints <= 0 || cadenceMs <= 0 || spanMs <= 0) return Math.max(cadenceMs, 1);
2883
+ const wanted = spanMs / maxPoints;
2884
+ if (wanted <= cadenceMs) return cadenceMs;
2885
+ return Math.ceil(wanted / cadenceMs) * cadenceMs;
2886
+ }
2887
+ /**
2888
+ * Reduce one function's points into buckets of `bucketMs`, preserving the
2889
+ * extremes.
2890
+ *
2891
+ * Points are expected oldest-first and are returned oldest-first. A bucket
2892
+ * with no samples is ABSENT — not zero, not interpolated, not the previous
2893
+ * value held over.
2894
+ */
2895
+ function reducePoints(points, bucketMs, origin) {
2896
+ if (bucketMs <= 0 || points.length === 0) return points;
2897
+ const buckets = /* @__PURE__ */ new Map();
2898
+ for (const point of points) {
2899
+ const start = origin + Math.floor((point.atMs - origin) / bucketMs) * bucketMs;
2900
+ const held = buckets.get(start);
2901
+ buckets.set(start, held === void 0 ? {
2902
+ ...point,
2903
+ atMs: start
2904
+ } : mergePoints(held, point, start));
2905
+ }
2906
+ return [...buckets.values()].toSorted((a, b) => a.atMs - b.atMs);
2907
+ }
2908
+ //#endregion
2770
2909
  //#region src/types/model-variant-groups.ts
2771
2910
  var FORMAT_KEYS = [
2772
2911
  "onnx",
@@ -7719,6 +7858,19 @@ var SettingsRecordSchema = zod.z.object({
7719
7858
  data: zod.z.record(zod.z.string(), zod.z.unknown())
7720
7859
  });
7721
7860
  /**
7861
+ * One record of a BULK insert — {@link SettingsRecordSchema} with the id made
7862
+ * optional.
7863
+ *
7864
+ * A separate schema rather than loosening the shared one: every other method
7865
+ * on this cap addresses a row BY its id, and making that field optional
7866
+ * everywhere would turn a forgotten key into a silently generated one on
7867
+ * `update` and `delete` as well.
7868
+ */
7869
+ var BulkRecordSchema = zod.z.object({
7870
+ id: zod.z.string().optional(),
7871
+ data: zod.z.record(zod.z.string(), zod.z.unknown())
7872
+ });
7873
+ /**
7722
7874
  * Column declaration for a structured (SQL-backed) collection.
7723
7875
  *
7724
7876
  * Logical types — the backend translates each to the matching SQLite
@@ -7831,6 +7983,34 @@ var settingsStoreCapability = {
7831
7983
  collection: zod.z.string(),
7832
7984
  record: SettingsRecordSchema
7833
7985
  }), zod.z.void(), { kind: "mutation" }),
7986
+ /**
7987
+ * Insert MANY records in ONE transaction, returning how many landed.
7988
+ *
7989
+ * The write-side twin of {@link deleteWhere}, and it exists for the same
7990
+ * reason: without it, appending a batch is N round trips and N COMMITs on
7991
+ * the single shared connection that also serves every cluster-wide
7992
+ * configuration read. The durable load series writes one process row per
7993
+ * process per sample — 76 rows every 10 s on the live fleet — and the
7994
+ * operator's rule for it is *one transaction per sample, never one per
7995
+ * row*. `insert` cannot express that; nothing else could.
7996
+ *
7997
+ * **All or nothing.** A batch that fails on its fifth row leaves none of
7998
+ * the five behind. A half-written sample is worse than a missing one: the
7999
+ * missing one reads as "nobody reported", which is true, while the half
8000
+ * one reads as "these were the only processes running", which is not.
8001
+ *
8002
+ * `id` is OPTIONAL per record, and that is the difference from
8003
+ * {@link insert}. A collection whose primary key is an `INTEGER` rowid
8004
+ * alias has no id to supply — SQLite assigns it, for free, and inventing a
8005
+ * `randomUUID()` for such a column would write a 36-character string into
8006
+ * an integer key. Omitted on a TEXT key, a uuid is generated exactly as
8007
+ * `insert` does.
8008
+ */
8009
+ insertMany: require_sleep.method(zod.z.object({
8010
+ namespace: zod.z.string().optional(),
8011
+ collection: zod.z.string(),
8012
+ records: zod.z.array(BulkRecordSchema).readonly()
8013
+ }), zod.z.object({ inserted: zod.z.number().int() }), { kind: "mutation" }),
7834
8014
  /** Update an existing record by ID. */
7835
8015
  update: require_sleep.method(zod.z.object({
7836
8016
  namespace: zod.z.string().optional(),
@@ -8070,6 +8250,15 @@ var dataStoreProviderCapability = {
8070
8250
  kind: "mutation",
8071
8251
  auth: "admin"
8072
8252
  }),
8253
+ /** Insert many records in ONE transaction. All or nothing. */
8254
+ insertMany: require_sleep.method(zod.z.object({
8255
+ namespace: zod.z.string().optional(),
8256
+ collection: zod.z.string(),
8257
+ records: zod.z.array(BulkRecordSchema).readonly()
8258
+ }), zod.z.object({ inserted: zod.z.number().int() }), {
8259
+ kind: "mutation",
8260
+ auth: "admin"
8261
+ }),
8073
8262
  /** Update an existing record by ID. */
8074
8263
  update: require_sleep.method(zod.z.object({
8075
8264
  namespace: zod.z.string().optional(),
@@ -10957,6 +11146,166 @@ var logDestinationCapability = {
10957
11146
  mount: { kind: "skip" }
10958
11147
  };
10959
11148
  //#endregion
11149
+ //#region src/capabilities/load-contribution.cap.ts
11150
+ /**
11151
+ * `load-contribution` — the capability an addon reports its OWN cost through,
11152
+ * already attributed. It stores nothing.
11153
+ *
11154
+ * ## Why this exists, and why it is not a pid→camera map
11155
+ *
11156
+ * Four of the five load families in
11157
+ * `packages/addon-admin-ui/src/components/cluster/load/camera-load-attribution.ts`
11158
+ * are per-camera by construction — one forked decode worker per decode
11159
+ * session, one ffmpeg per (camera, encode plan), one ffmpeg per (camera,
11160
+ * recording profile), one ffmpeg ingest per camera source — and none could be
11161
+ * READ per camera. The obvious repair is to surface each child's pid so an
11162
+ * observer can join it against the OS process table. That repair is wrong
11163
+ * here, for a reason worth writing down:
11164
+ *
11165
+ * - the join needs an entity with GLOBAL knowledge (which pid belongs to
11166
+ * which camera, for every addon), and every such entity is a list that a
11167
+ * new addon has to be added to — the failure mode of a central list is that
11168
+ * nothing breaks, the operator simply never sees what somebody added;
11169
+ * - the pair has to be shipped somewhere it can outlive the process it
11170
+ * describes, and pids are recycled. A stale entry charges one camera for
11171
+ * another camera's work, silently and plausibly. This repo has already paid
11172
+ * for a registry that answered while the truth was elsewhere (D49).
11173
+ *
11174
+ * The recorder does not need to be told which camera its ffmpeg serves. It
11175
+ * spawned it. So each addon reports what it already knows, and no entity needs
11176
+ * global knowledge. The shape is copied from `log-channels.cap.ts` /
11177
+ * `log-destination.cap.ts` (`mode: 'collection'`, `internal: true`,
11178
+ * `mount: { kind: 'skip' }`): no tRPC route, no generated hooks, while
11179
+ * `addons.listCapabilityProviders` still enumerates it and the hub's
11180
+ * `CapabilityRegistry` still holds an RPC proxy per provider, so a forked
11181
+ * runner's entries reach hub-main over transport that already exists. No new
11182
+ * UDS message, no second registry (D3).
11183
+ *
11184
+ * ## The external observer still has a job
11185
+ *
11186
+ * `metrics.node-processes-snapshot` measures every camstack-shaped process on
11187
+ * the node whether or not anybody claims it. Contributions cover what the
11188
+ * addons know about; the snapshot covers what is actually running. **The
11189
+ * difference is the finding** — a process nobody claims is either a leak or a
11190
+ * cost family nobody has taught to report, and both are worth seeing. So an
11191
+ * unclaimed process stays in an "unattributed" bucket and is never folded into
11192
+ * a neighbour.
11193
+ *
11194
+ * ## Absent, never zero
11195
+ *
11196
+ * Every measurement here is optional. An addon that cannot produce a number
11197
+ * omits it, and the consumer reads UNKNOWN. A zero would say "this camera cost
11198
+ * nothing", which is a measurement, and a measurement nobody made is the one
11199
+ * thing this whole surface exists to prevent.
11200
+ *
11201
+ * ## Detection declares its own renunciation
11202
+ *
11203
+ * The shared inference pool is one process per (node, runtime, hardware
11204
+ * device) serving every camera. It contributes an entry with `deviceId: null`
11205
+ * and `attribution: 'unattributable'` — the giving-up is DATA, reported by the
11206
+ * only component that knows it, rather than a deduction an observer makes.
11207
+ * `isChartablePerCamera` keeps refusing it.
11208
+ */
11209
+ /**
11210
+ * The load families an addon can report. Kept as a tuple so the Zod enum and
11211
+ * the TypeScript union have one source.
11212
+ *
11213
+ * `detection` is a member on purpose — see the module docblock. It is the one
11214
+ * role that reports itself as unattributable.
11215
+ */
11216
+ var LOAD_CONTRIBUTION_ROLES = [
11217
+ "decode",
11218
+ "transcode",
11219
+ "recording",
11220
+ "streaming",
11221
+ "detection"
11222
+ ];
11223
+ /**
11224
+ * How well the reporting addon can tie this entry to ONE camera. The
11225
+ * contributor decides, because the contributor is the only one who knows.
11226
+ *
11227
+ * - `measured` — the numbers on this entry are this camera's, measured. The
11228
+ * entry owns a process (or an equivalent exclusive resource) that serves
11229
+ * exactly one camera.
11230
+ * - `accounted` — per-camera work really is COUNTED (frames submitted,
11231
+ * inference milliseconds), but the cost is shared and can only ever be
11232
+ * apportioned. A consumer must label it as a share, never as a cost.
11233
+ * - `unattributable` — no camera owns this. Reported anyway, with
11234
+ * `deviceId: null`, so the shared cost is visible as shared instead of
11235
+ * invisible.
11236
+ */
11237
+ var LOAD_CONTRIBUTION_ATTRIBUTIONS = [
11238
+ "measured",
11239
+ "accounted",
11240
+ "unattributable"
11241
+ ];
11242
+ var LoadContributionSchema = zod.z.object({
11243
+ role: zod.z.enum(LOAD_CONTRIBUTION_ROLES),
11244
+ /**
11245
+ * The NUMERIC device id — the same value every log line carries as
11246
+ * `tags.deviceId`. `null` means this cost genuinely belongs to no single
11247
+ * camera (a shared pool), NOT that the contributor forgot to look it up: a
11248
+ * contributor that cannot name its camera must not emit the entry at all,
11249
+ * because an unnamed per-camera entry is indistinguishable from a shared one
11250
+ * and would quietly turn one camera's cost into everybody's.
11251
+ */
11252
+ deviceId: zod.z.number().int().positive().nullable(),
11253
+ attribution: zod.z.enum(LOAD_CONTRIBUTION_ATTRIBUTIONS),
11254
+ /**
11255
+ * What ONE entry is, in the contributor's own words — `615/high`,
11256
+ * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
11257
+ * family and inventing a common one would lose the only information that
11258
+ * makes two entries for the same camera distinguishable.
11259
+ */
11260
+ unit: zod.z.string(),
11261
+ /**
11262
+ * The OS process this cost lives in, when there is one. Present so a
11263
+ * consumer can (a) tell two generations of the same unit apart across a
11264
+ * restart, and (b) subtract claimed processes from the node's process
11265
+ * snapshot to see what NOBODY claimed. Absent for an entry that owns no
11266
+ * process of its own.
11267
+ */
11268
+ pid: zod.z.number().int().positive().optional(),
11269
+ /**
11270
+ * When this generation started. The pid's incarnation marker: a consumer
11271
+ * differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
11272
+ * window when this changes, because the counter restarted from zero in a new
11273
+ * process.
11274
+ */
11275
+ startedAtMs: zod.z.number().optional(),
11276
+ /**
11277
+ * CUMULATIVE CPU seconds this unit has consumed since it started — user +
11278
+ * system, read from the child's own `/proc/<pid>/stat` at the moment the
11279
+ * contribution is asked for.
11280
+ *
11281
+ * Cumulative and not a rate on purpose: a rate needs a window, a window
11282
+ * needs a sampler, and a new per-node sampler is the defect half of
11283
+ * `docs/architecture/load-ledger.md` documents. A counter can be differenced
11284
+ * by whoever already keeps a history; a rate cannot be un-averaged.
11285
+ *
11286
+ * Absent — never zero — on a node with no `/proc`, on a read failure, and on
11287
+ * an entry with no process.
11288
+ */
11289
+ cpuSeconds: zod.z.number().optional(),
11290
+ /** Resident bytes of this unit's process, same source and same rules. */
11291
+ rssBytes: zod.z.number().optional()
11292
+ });
11293
+ var loadContributionCapability = {
11294
+ name: "load-contribution",
11295
+ scope: "system",
11296
+ mode: "collection",
11297
+ internal: true,
11298
+ methods: {
11299
+ /**
11300
+ * This addon's own cost entries, computed live from state it already
11301
+ * holds. Inert: no persistence, no sampling, no timer. It is answered on
11302
+ * whatever beat the caller already has.
11303
+ */
11304
+ list: require_sleep.method(zod.z.void(), zod.z.array(LoadContributionSchema).readonly()) },
11305
+ /** In-process only — enumerated through `addons.listCapabilityProviders`. */
11306
+ mount: { kind: "skip" }
11307
+ };
11308
+ //#endregion
10960
11309
  //#region src/capabilities/login-method.cap.ts
10961
11310
  /**
10962
11311
  * `login-method` — collection cap through which auth addons contribute
@@ -11191,8 +11540,7 @@ var NodeProcessSchema = zod.z.object({
11191
11540
  classification: zod.z.enum([
11192
11541
  "root",
11193
11542
  "managed",
11194
- "system",
11195
- "ghost"
11543
+ "system"
11196
11544
  ]),
11197
11545
  /** `$process` addon binding when `managed`, else null. */
11198
11546
  addonId: zod.z.string().nullable(),
@@ -11200,22 +11548,39 @@ var NodeProcessSchema = zod.z.object({
11200
11548
  nodeId: zod.z.string().nullable(),
11201
11549
  /** Truncated command line. */
11202
11550
  command: zod.z.string(),
11551
+ /**
11552
+ * `ps pcpu` — CPU averaged over the process's WHOLE LIFETIME, not a rate.
11553
+ * On a runner up for days it barely moves. Fine as a column, useless as a
11554
+ * series: use `cpuMainPercent + cpuGcPercent` for anything time-varying.
11555
+ */
11203
11556
  cpuPercent: zod.z.number(),
11204
11557
  memoryRssBytes: zod.z.number(),
11558
+ /**
11559
+ * Instantaneous CPU% of the process's own threads over the last
11560
+ * process-snapshot window, from a `/proc/<pid>/task/*` tick delta.
11561
+ *
11562
+ * `null` = UNKNOWN, never zero: no previous sample yet (first tick after
11563
+ * boot), the pid was recycled, or this node is not Linux.
11564
+ */
11565
+ cpuMainPercent: zod.z.number().nullable(),
11566
+ /**
11567
+ * Instantaneous CPU% of V8's `V8Worker` platform pool over the same window.
11568
+ *
11569
+ * This is the number that rewrote the 2026-08-27 diagnosis — hub-main 73%,
11570
+ * `stream-broker` 61% (`docs/architecture/load-ledger.md`). A CPU chart that
11571
+ * does not separate it from `cpuMainPercent` shows "busy" where the truth is
11572
+ * "allocating too much".
11573
+ *
11574
+ * Concurrent GC is the dominant tenant of that pool but not the only one
11575
+ * (background compilation runs there too), so it is reported as
11576
+ * "GC / V8 helpers" rather than as pure collection time. `null` has the same
11577
+ * meaning as on `cpuMainPercent`.
11578
+ */
11579
+ cpuGcPercent: zod.z.number().nullable(),
11580
+ /** Threads seen in the tick scan. `null` under the same conditions. */
11581
+ threadCount: zod.z.number().nullable(),
11205
11582
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
11206
- uptimeSec: zod.z.number(),
11207
- /** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
11208
- orphaned: zod.z.boolean()
11209
- });
11210
- var KillProcessInputSchema = zod.z.object({
11211
- pid: zod.z.number(),
11212
- /** Force = SIGKILL. Default is SIGTERM. */
11213
- force: zod.z.boolean().optional()
11214
- });
11215
- var KillProcessResultSchema = zod.z.object({
11216
- success: zod.z.boolean(),
11217
- reason: zod.z.string().optional(),
11218
- signal: zod.z.enum(["SIGTERM", "SIGKILL"]).optional()
11583
+ uptimeSec: zod.z.number()
11219
11584
  });
11220
11585
  var DumpHeapSnapshotInputSchema = zod.z.object({
11221
11586
  /** The addon whose runner should dump a heap snapshot. */
@@ -11228,6 +11593,104 @@ var DumpHeapSnapshotResultSchema = zod.z.object({
11228
11593
  pid: zod.z.number().optional(),
11229
11594
  reason: zod.z.string().optional()
11230
11595
  });
11596
+ /**
11597
+ * One point of one function's series.
11598
+ *
11599
+ * The unsuffixed fields are the bucket's **MAXIMUM**, and that choice is the
11600
+ * point of the whole surface. The two obvious reductions both lie: a mean per
11601
+ * bucket smears a spike away, and taking every Nth sample skips it outright.
11602
+ * Either would give us a tool built to find peaks that does not show peaks.
11603
+ * `...Min` carries the other end, `samples` says how many raw snapshots folded
11604
+ * into the bucket, and a mean stays derivable where it is wanted.
11605
+ *
11606
+ * An UNREDUCED point is a one-sample bucket: `samples === 1` and each `...Min`
11607
+ * equals its unsuffixed twin. Reduced and unreduced are the same shape, so a
11608
+ * caller cannot tell which it received — which is what "one reader" means.
11609
+ */
11610
+ var LoadPointSchema = zod.z.object({
11611
+ /** Bucket START, or the snapshot's own timestamp when unreduced. */
11612
+ atMs: zod.z.number(),
11613
+ /** Raw snapshots in this bucket. Never 0 — AN EMPTY BUCKET IS ABSENT. */
11614
+ samples: zod.z.number().int(),
11615
+ /**
11616
+ * `null` = UNKNOWN and it PROPAGATES: a bucket is null unless every process
11617
+ * of every snapshot in it reported a thread split. A partial sum is a
11618
+ * smaller number that looks exactly as real as a complete one.
11619
+ */
11620
+ cpuMainPercent: zod.z.number().nullable(),
11621
+ cpuMainPercentMin: zod.z.number().nullable(),
11622
+ cpuGcPercent: zod.z.number().nullable(),
11623
+ cpuGcPercentMin: zod.z.number().nullable(),
11624
+ /** Lifetime-average CPU%, summed. Always known — and never a rate. */
11625
+ cpuLifetimePercent: zod.z.number(),
11626
+ cpuLifetimePercentMin: zod.z.number(),
11627
+ memoryRssBytes: zod.z.number(),
11628
+ memoryRssBytesMin: zod.z.number(),
11629
+ processCount: zod.z.number().int(),
11630
+ processCountMin: zod.z.number().int()
11631
+ });
11632
+ /** One function's series. `key` is an addonId, `__root__` or `__unattributed__`. */
11633
+ var LoadFunctionSeriesSchema = zod.z.object({
11634
+ key: zod.z.string(),
11635
+ kind: zod.z.enum([
11636
+ "addon",
11637
+ "root",
11638
+ "unattributed"
11639
+ ]),
11640
+ /** Oldest-first. A missing interval is MISSING — never zero-filled. */
11641
+ points: zod.z.array(LoadPointSchema).readonly()
11642
+ });
11643
+ var NodeLoadSeriesSchema = zod.z.object({
11644
+ nodeId: zod.z.string(),
11645
+ /** One entry per function seen in the window, heaviest-first. */
11646
+ series: zod.z.array(LoadFunctionSeriesSchema).readonly(),
11647
+ /**
11648
+ * Width of one returned bucket, in ms. Equals the sampling cadence when no
11649
+ * reduction was needed — so a caller can always say what one point covers
11650
+ * without having to know whether it was reduced.
11651
+ */
11652
+ bucketMs: zod.z.number(),
11653
+ /** Raw snapshots that went into this answer, across both tiers. */
11654
+ retainedSamples: zod.z.number(),
11655
+ /** Oldest snapshot represented, or `null` when nothing is retained. */
11656
+ oldestAtMs: zod.z.number().nullable(),
11657
+ /** The fixed sampling cadence in force on the cluster, in ms. */
11658
+ cadenceMs: zod.z.number(),
11659
+ /**
11660
+ * Did the DURABLE tier contribute? `false` means the answer is the hot ring
11661
+ * alone — an agent (which holds no table), or a store that refused.
11662
+ * Reported because "the last hour" and "the last six hours" are different
11663
+ * questions and an operator must not have to guess which was answered.
11664
+ */
11665
+ durable: zod.z.boolean()
11666
+ });
11667
+ var GetLoadSeriesInputSchema = zod.z.object({
11668
+ /**
11669
+ * The node whose series is wanted.
11670
+ *
11671
+ * NOT named `nodeId`: the generated cap router strips a top-level
11672
+ * `nodeId` from every method input and uses it to ROUTE the call to
11673
+ * that node's provider (`generated-cap-routers.ts`). A series target
11674
+ * called `nodeId` would silently become a routing pin and never reach
11675
+ * the provider. The hub holds every node it hears from, so the
11676
+ * ordinary call is unpinned — answered by the hub, for any node.
11677
+ */
11678
+ forNodeId: zod.z.string(),
11679
+ /**
11680
+ * EXCLUSIVE lower bound. A caller passes the newest `atMs` it already
11681
+ * holds and receives only what it is missing, so seeding a live chart
11682
+ * from this method cannot double a point already drawn.
11683
+ */
11684
+ sinceMs: zod.z.number().optional(),
11685
+ /**
11686
+ * Most points the caller wants PER FUNCTION. The window is reduced to fit,
11687
+ * preserving min and max per bucket.
11688
+ *
11689
+ * Absent means NO reduction — legitimate for a short window and a trap for a
11690
+ * long one, which is why a chart passes its own pixel width.
11691
+ */
11692
+ maxPoints: zod.z.number().int().positive().optional()
11693
+ });
11231
11694
  var SystemMetricsSchema = zod.z.object({
11232
11695
  cpuPercent: zod.z.number(),
11233
11696
  memoryPercent: zod.z.number(),
@@ -11273,28 +11736,44 @@ var metricsProviderCapability = {
11273
11736
  getAddonStats: require_sleep.method(zod.z.object({ addonId: zod.z.string() }), PidResourceStatsSchema.nullable()),
11274
11737
  /**
11275
11738
  * Snapshot of every camstack-related process on this node with a
11276
- * ghost/managed/root classification. Powers the Cluster → Agent →
11277
- * Processes tab: cross-references `$process.list` against a `ps` scan
11278
- * so orphaned trees (PPID=1) or unknown children show up as `ghost`
11279
- * and can be killed from the UI.
11739
+ * root/managed/system classification. Powers the Cluster → Agent →
11740
+ * Processes tab: cross-references `$process.list` against a `ps` scan so
11741
+ * per-addon CPU and RSS can be attributed, and so a process the cluster
11742
+ * does not manage is still visible.
11743
+ *
11744
+ * **Read-only, by design.** This cap once carried a `killProcess`
11745
+ * mutation; it was deleted on 2026-08-27. A runner's lifecycle belongs to
11746
+ * `CrashSupervisor` and is driven through `addons.restartAddon` /
11747
+ * `$process.restart` — signalling a raw pid went around the supervisor
11748
+ * (D6), and the one class it was willing to signal turned out to be the
11749
+ * container's own init and the operator's desktop app.
11280
11750
  */
11281
11751
  listNodeProcesses: require_sleep.method(zod.z.void(), zod.z.array(NodeProcessSchema).readonly()),
11282
11752
  /**
11283
- * Send SIGTERM (or SIGKILL when `force`) to a pid inside this node's
11284
- * process tree. The provider refuses pids that aren't in the live
11285
- * `listNodeProcesses()` snapshot callers can't use this endpoint
11286
- * to kill arbitrary system processes.
11753
+ * The retained per-node load series the ONE reader over BOTH tiers.
11754
+ *
11755
+ * The in-memory ring is the HOT window (the last 180 snapshots, held by
11756
+ * every node's `native-metrics`); the hub's `metrics:node-load-samples`
11757
+ * table is the COLD one (the operator's retention, six hours by default).
11758
+ * This method merges them and DEDUPES on `atMs`, so a snapshot present in
11759
+ * both contributes once and the caller never learns which tier a point
11760
+ * came from. There is deliberately no second read surface: two readers is
11761
+ * how two charts start disagreeing about the same node.
11762
+ *
11763
+ * Reads only; nothing is sampled to answer it. Normally called UNPINNED —
11764
+ * the hub hears every node's snapshot and holds every node's rows — and
11765
+ * answers for any `forNodeId`. Pinned to an agent it answers from that
11766
+ * agent's ring alone (`durable: false`). Empty is a legitimate answer: a
11767
+ * node nobody has heard from has no series, and saying so is the truth.
11287
11768
  */
11288
- killProcess: require_sleep.method(KillProcessInputSchema, KillProcessResultSchema, {
11289
- kind: "mutation",
11290
- auth: "admin"
11291
- }),
11769
+ getLoadSeries: require_sleep.method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema),
11292
11770
  /**
11293
11771
  * Tell the addon's forked runner to write a V8 heap snapshot to disk (via
11294
11772
  * SIGUSR2 — the runner's diagnostic handler). Also logs its
11295
- * `process.memoryUsage()` + heap-space breakdown. Refuses pids not in the
11296
- * live `listNodeProcesses()` snapshot. Use for deep per-addon memory
11297
- * attribution; copy the returned path off the node to analyze.
11773
+ * `process.memoryUsage()` + heap-space breakdown. Resolves the pid from
11774
+ * `$process.list`, so it can only reach a runner this node spawned. Use
11775
+ * for deep per-addon memory attribution; copy the returned path off the
11776
+ * node to analyze.
11298
11777
  */
11299
11778
  dumpHeapSnapshot: require_sleep.method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
11300
11779
  kind: "mutation",
@@ -31338,6 +31817,15 @@ var LoggingSettingsPatchSchema = zod.z.object({
31338
31817
  * authority over the whole hierarchy and answers for every layer, so the
31339
31818
  * layer selector needs a name the transport does not already own.
31340
31819
  */
31820
+ /**
31821
+ * One contribution, plus WHO reported it.
31822
+ *
31823
+ * The addon and node are added by the hub as it enumerates providers, never by
31824
+ * the contributor: an addon reporting its own identity could report somebody
31825
+ * else's, and the whole point of this surface is that no claim is made by
31826
+ * anyone but its owner.
31827
+ */
31828
+ var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: zod.z.string() });
31341
31829
  var GetLoggingSettingsInputSchema = zod.z.object({
31342
31830
  scopeNodeId: zod.z.string().optional(),
31343
31831
  /**
@@ -31440,6 +31928,22 @@ var systemCapability = {
31440
31928
  */
31441
31929
  getRequestCensus: require_sleep.method(zod.z.void(), RequestCensusStatusSchema, { auth: "admin" }),
31442
31930
  /**
31931
+ * Every `load-contribution` an addon on this cluster reports — each
31932
+ * addon's OWN cost, already attributed by the addon that owns it.
31933
+ *
31934
+ * There is no central list of what costs what: an addon that spawns a
31935
+ * per-camera child declares it, and one that cannot attribute its cost
31936
+ * (the shared inference pool) declares THAT. So a new cost family appears
31937
+ * here the moment its addon is redeployed, with nobody editing anything.
31938
+ *
31939
+ * What this does NOT do is measure the node. `metrics.node-processes-
31940
+ * snapshot` still does that, and the difference between the two is the
31941
+ * finding: a process no contribution claims is either a leak or a family
31942
+ * nobody has taught to report. Both belong in the unattributed bucket, and
31943
+ * neither may be folded into a camera.
31944
+ */
31945
+ getLoadContributions: require_sleep.method(zod.z.void(), zod.z.array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }),
31946
+ /**
31443
31947
  * The logging settings document — levels and armed diagnostics — resolved
31444
31948
  * for `nodeId`, or for the cluster when `nodeId` is absent.
31445
31949
  *
@@ -32823,6 +33327,25 @@ function evaluateSensorEdge(input) {
32823
33327
  var HF_REPO = "camstack/camstack-models";
32824
33328
  var HF_BASE_URL = `https://huggingface.co/${HF_REPO}/resolve/main`;
32825
33329
  /**
33330
+ * The ONE default session-JWT lifetime.
33331
+ *
33332
+ * There used to be three, and they disagreed: the `system-config` schema said
33333
+ * `30d`, `RUNTIME_DEFAULTS['auth.tokenExpiry']` said `7d`, and
33334
+ * `AuthManager.signToken` hardcoded `30d` as its own fallback. Because the
33335
+ * production signer (`AuthService extends AuthManager`, wired to
33336
+ * `ConfigManager`) resolves through `RUNTIME_DEFAULTS` BEFORE it can ever
33337
+ * reach the hardcoded fallback, the value actually in force was `7d` while
33338
+ * every surface an operator could read advertised `30d`.
33339
+ *
33340
+ * `30d` is the value the product documents and the one an operator decided on
33341
+ * (2026-07-17: the viewer's silent refresh rotates tokens long before expiry,
33342
+ * so a long lifetime only covers devices left unopened for weeks). It is
33343
+ * declared here once and imported by the schema, by the runtime defaults and
33344
+ * by the signer's fallback — a second default that disagrees with the first is
33345
+ * the same defect in miniature.
33346
+ */
33347
+ var DEFAULT_TOKEN_EXPIRY = "30d";
33348
+ /**
32826
33349
  * Runtime defaults -- used by ConfigManager.get() for backward compatibility
32827
33350
  * until Plan B wires all runtime settings to the system_settings SQL table.
32828
33351
  *
@@ -32857,7 +33380,7 @@ var RUNTIME_DEFAULTS = {
32857
33380
  "ffmpeg.binaryPath": "ffmpeg",
32858
33381
  "ffmpeg.hwAccel": "auto",
32859
33382
  "ffmpeg.threadCount": 0,
32860
- "auth.tokenExpiry": "7d"
33383
+ "auth.tokenExpiry": "30d"
32861
33384
  };
32862
33385
  //#endregion
32863
33386
  //#region src/device/accessory.ts
@@ -35769,6 +36292,7 @@ var CAPABILITY_NAMES = {
35769
36292
  lawnMowerControl: "lawn-mower-control",
35770
36293
  llm: "llm",
35771
36294
  llmRuntime: "llm-runtime",
36295
+ loadContribution: "load-contribution",
35772
36296
  localNetwork: "local-network",
35773
36297
  lockControl: "lock-control",
35774
36298
  logChannels: "log-channels",
@@ -36135,6 +36659,10 @@ var CAPABILITY_ROUTER_KEYS = [
36135
36659
  key: "llmRuntime",
36136
36660
  name: "llm-runtime"
36137
36661
  },
36662
+ {
36663
+ key: "loadContribution",
36664
+ name: "load-contribution"
36665
+ },
36138
36666
  {
36139
36667
  key: "localNetwork",
36140
36668
  name: "local-network"
@@ -36533,6 +37061,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
36533
37061
  lawnMowerControlCapability,
36534
37062
  llmCapability,
36535
37063
  llmRuntimeCapability,
37064
+ loadContributionCapability,
36536
37065
  localNetworkCapability,
36537
37066
  lockControlCapability,
36538
37067
  logChannelsCapability,
@@ -37558,6 +38087,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
37558
38087
  addonId: null,
37559
38088
  access: "create"
37560
38089
  },
38090
+ "dataStoreProvider.insertMany": {
38091
+ capName: "data-store-provider",
38092
+ capScope: "system",
38093
+ addonId: null,
38094
+ access: "create"
38095
+ },
37561
38096
  "dataStoreProvider.isEmpty": {
37562
38097
  capName: "data-store-provider",
37563
38098
  capScope: "system",
@@ -38872,6 +39407,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
38872
39407
  addonId: null,
38873
39408
  access: "create"
38874
39409
  },
39410
+ "loadContribution.list": {
39411
+ capName: "load-contribution",
39412
+ capScope: "system",
39413
+ addonId: null,
39414
+ access: "view"
39415
+ },
38875
39416
  "localNetwork.downloadCa": {
38876
39417
  capName: "local-network",
38877
39418
  capScope: "system",
@@ -39172,17 +39713,17 @@ var METHOD_ACCESS_MAP = Object.freeze({
39172
39713
  addonId: null,
39173
39714
  access: "view"
39174
39715
  },
39175
- "metricsProvider.getProcessStats": {
39716
+ "metricsProvider.getLoadSeries": {
39176
39717
  capName: "metrics-provider",
39177
39718
  capScope: "system",
39178
39719
  addonId: null,
39179
39720
  access: "view"
39180
39721
  },
39181
- "metricsProvider.killProcess": {
39722
+ "metricsProvider.getProcessStats": {
39182
39723
  capName: "metrics-provider",
39183
39724
  capScope: "system",
39184
39725
  addonId: null,
39185
- access: "create"
39726
+ access: "view"
39186
39727
  },
39187
39728
  "metricsProvider.listAddonInstances": {
39188
39729
  capName: "metrics-provider",
@@ -41194,6 +41735,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
41194
41735
  addonId: null,
41195
41736
  access: "create"
41196
41737
  },
41738
+ "settingsStore.insertMany": {
41739
+ capName: "settings-store",
41740
+ capScope: "system",
41741
+ addonId: null,
41742
+ access: "create"
41743
+ },
41197
41744
  "settingsStore.isEmpty": {
41198
41745
  capName: "settings-store",
41199
41746
  capScope: "system",
@@ -41806,6 +42353,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
41806
42353
  addonId: null,
41807
42354
  access: "create"
41808
42355
  },
42356
+ "system.getLoadContributions": {
42357
+ capName: "system",
42358
+ capScope: "system",
42359
+ addonId: null,
42360
+ access: "view"
42361
+ },
41809
42362
  "system.getLoggingSettings": {
41810
42363
  capName: "system",
41811
42364
  capScope: "system",
@@ -42499,6 +43052,7 @@ var KNOWN_CAP_NAMES = [
42499
43052
  "lawn-mower-control",
42500
43053
  "llm",
42501
43054
  "llm-runtime",
43055
+ "load-contribution",
42502
43056
  "local-network",
42503
43057
  "lock-control",
42504
43058
  "log-channels",
@@ -42659,6 +43213,7 @@ var SYSTEM_CAP_NAMES = [
42659
43213
  "integrations",
42660
43214
  "llm",
42661
43215
  "llm-runtime",
43216
+ "load-contribution",
42662
43217
  "local-network",
42663
43218
  "log-channels",
42664
43219
  "log-destination",
@@ -45340,7 +45895,7 @@ function createSystemProxy(api) {
45340
45895
  listAddonInstances: (input) => dispatch("metricsProvider", "listAddonInstances", "query", input),
45341
45896
  getAddonStats: (input) => dispatch("metricsProvider", "getAddonStats", "query", input),
45342
45897
  listNodeProcesses: (input) => dispatch("metricsProvider", "listNodeProcesses", "query", input),
45343
- killProcess: (input) => dispatch("metricsProvider", "killProcess", "mutation", input),
45898
+ getLoadSeries: (input) => dispatch("metricsProvider", "getLoadSeries", "query", input),
45344
45899
  dumpHeapSnapshot: (input) => dispatch("metricsProvider", "dumpHeapSnapshot", "mutation", input)
45345
45900
  },
45346
45901
  mqttBroker: {
@@ -45519,6 +46074,7 @@ function createSystemProxy(api) {
45519
46074
  set: (input) => dispatch("settingsStore", "set", "mutation", input),
45520
46075
  query: (input) => dispatch("settingsStore", "query", "query", input),
45521
46076
  insert: (input) => dispatch("settingsStore", "insert", "mutation", input),
46077
+ insertMany: (input) => dispatch("settingsStore", "insertMany", "mutation", input),
45522
46078
  update: (input) => dispatch("settingsStore", "update", "mutation", input),
45523
46079
  delete: (input) => dispatch("settingsStore", "delete", "mutation", input),
45524
46080
  deleteWhere: (input) => dispatch("settingsStore", "deleteWhere", "mutation", input),
@@ -45599,6 +46155,7 @@ function createSystemProxy(api) {
45599
46155
  setSiteLocation: (input) => dispatch("system", "setSiteLocation", "mutation", input),
45600
46156
  detectSiteLocation: (input) => dispatch("system", "detectSiteLocation", "mutation", input),
45601
46157
  getRequestCensus: (input) => dispatch("system", "getRequestCensus", "query", input),
46158
+ getLoadContributions: (input) => dispatch("system", "getLoadContributions", "query", input),
45602
46159
  getLoggingSettings: (input) => dispatch("system", "getLoggingSettings", "query", input),
45603
46160
  setLoggingSettings: (input) => dispatch("system", "setLoggingSettings", "mutation", input)
45604
46161
  },
@@ -49702,6 +50259,7 @@ exports.BrokerSubscribeInputSchema = SubscribeInputSchema;
49702
50259
  exports.BrokerSubscribeResultSchema = SubscribeResultSchema;
49703
50260
  exports.BrokerTestConnectionResultSchema = TestConnectionResultSchema;
49704
50261
  exports.BrokerUnsubscribeInputSchema = UnsubscribeInputSchema;
50262
+ exports.BulkRecordSchema = BulkRecordSchema;
49705
50263
  exports.CAMERA_SWITCH_CATALOG = CAMERA_SWITCH_CATALOG;
49706
50264
  exports.CAMERA_SWITCH_ORDER = CAMERA_SWITCH_ORDER;
49707
50265
  exports.CAM_PROFILE_ORDER = require_sleep.CAM_PROFILE_ORDER;
@@ -49816,6 +50374,7 @@ exports.DEFAULT_RECORDING_PROFILES = DEFAULT_RECORDING_PROFILES;
49816
50374
  exports.DEFAULT_RETENTION = DEFAULT_RETENTION;
49817
50375
  exports.DEFAULT_RUNTIME_STATE_DURABILITY = require_sleep.DEFAULT_RUNTIME_STATE_DURABILITY;
49818
50376
  exports.DEFAULT_TIMELAPSE_PREVIEW_TEXT = DEFAULT_TIMELAPSE_PREVIEW_TEXT;
50377
+ exports.DEFAULT_TOKEN_EXPIRY = DEFAULT_TOKEN_EXPIRY;
49819
50378
  exports.DETAIL_CROP_PADDING_FIELD = DETAIL_CROP_PADDING_FIELD;
49820
50379
  exports.DETAIL_CROP_PADDING_KEY = DETAIL_CROP_PADDING_KEY;
49821
50380
  exports.DETAIL_CROP_SECTION_ID = DETAIL_CROP_SECTION_ID;
@@ -49975,6 +50534,8 @@ exports.IntercomAbilitySchema = IntercomAbilitySchema;
49975
50534
  exports.IntercomStatusSchema = IntercomStatusSchema;
49976
50535
  exports.KNOWN_CAP_NAMES = KNOWN_CAP_NAMES;
49977
50536
  exports.KeyEventSchema = KeyEventSchema;
50537
+ exports.LOAD_CONTRIBUTION_ATTRIBUTIONS = LOAD_CONTRIBUTION_ATTRIBUTIONS;
50538
+ exports.LOAD_CONTRIBUTION_ROLES = LOAD_CONTRIBUTION_ROLES;
49978
50539
  exports.LOG_CHANNEL_TICK_MS = LOG_CHANNEL_TICK_MS;
49979
50540
  exports.LOG_LEVEL_RANK = LOG_LEVEL_RANK;
49980
50541
  exports.LabelAttributionSchema = LabelAttributionSchema;
@@ -50007,6 +50568,7 @@ exports.LlmRuntimeStatusSchema = LlmRuntimeStatusSchema;
50007
50568
  exports.LlmTimeoutDefaults = LlmTimeoutDefaults;
50008
50569
  exports.LlmUsageRollupSchema = LlmUsageRollupSchema;
50009
50570
  exports.LlmUsageSchema = LlmUsageSchema;
50571
+ exports.LoadContributionSchema = LoadContributionSchema;
50010
50572
  exports.LocateSegmentResultSchema = LocateSegmentResultSchema;
50011
50573
  exports.LocationStatSchema = LocationStatSchema;
50012
50574
  exports.LockControlStatusSchema = LockControlStatusSchema;
@@ -50289,6 +50851,7 @@ exports.RECOGNITION_TYPES = RECOGNITION_TYPES;
50289
50851
  exports.RECORDING_EXPORT_MAX_READ_BYTES = RECORDING_EXPORT_MAX_READ_BYTES;
50290
50852
  exports.RESERVED_BINDING_NAMES = RESERVED_BINDING_NAMES;
50291
50853
  exports.RESTORED_CAP_NAMES = RESTORED_CAP_NAMES;
50854
+ exports.ROOT_BUCKET_KEY = ROOT_BUCKET_KEY;
50292
50855
  exports.RUNTIME_DEFAULTS = RUNTIME_DEFAULTS;
50293
50856
  exports.RUNTIME_STATE_POLICY = RUNTIME_STATE_POLICY;
50294
50857
  exports.RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS = RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS;
@@ -50331,6 +50894,7 @@ exports.RelocateJobStateSchema = RelocateJobStateSchema;
50331
50894
  exports.RelocateMediaInputSchema = RelocateMediaInputSchema;
50332
50895
  exports.RenderedAsSchema = RenderedAsSchema;
50333
50896
  exports.ReportMotionInputSchema = ReportMotionInputSchema;
50897
+ exports.ReportedLoadContributionSchema = ReportedLoadContributionSchema;
50334
50898
  exports.RequestCensusGroupSchema = RequestCensusGroupSchema;
50335
50899
  exports.RequestCensusProcedureSchema = RequestCensusProcedureSchema;
50336
50900
  exports.RequestCensusSnapshotSchema = RequestCensusSnapshotSchema;
@@ -50514,6 +51078,7 @@ exports.TrainingExportSummarySchema = TrainingExportSummarySchema;
50514
51078
  exports.TransportPlaneCountsSchema = TransportPlaneCountsSchema;
50515
51079
  exports.TransportPlaneSchema = TransportPlaneSchema;
50516
51080
  exports.TurnServerSchema = TurnServerSchema;
51081
+ exports.UNATTRIBUTED_BUCKET_KEY = UNATTRIBUTED_BUCKET_KEY;
50517
51082
  exports.UNIT_TABLE = UNIT_TABLE;
50518
51083
  exports.UnifiedBrokerInfoSchema = BrokerInfoSchema$1;
50519
51084
  exports.UnitConversionError = UnitConversionError;
@@ -50732,6 +51297,7 @@ exports.featureProbeCapability = featureProbeCapability;
50732
51297
  exports.filesystemBrowseCapability = filesystemBrowseCapability;
50733
51298
  exports.findTimezone = findTimezone;
50734
51299
  exports.floodCapability = floodCapability;
51300
+ exports.foldSnapshotByFunction = foldSnapshotByFunction;
50735
51301
  exports.formatForBackend = formatForBackend;
50736
51302
  exports.formatForRuntime = formatForRuntime;
50737
51303
  exports.gasCapability = gasCapability;
@@ -50789,6 +51355,7 @@ exports.lifecycleJobStateSchema = lifecycleJobStateSchema;
50789
51355
  exports.lifecycleTaskSchema = lifecycleTaskSchema;
50790
51356
  exports.llmCapability = llmCapability;
50791
51357
  exports.llmRuntimeCapability = llmRuntimeCapability;
51358
+ exports.loadContributionCapability = loadContributionCapability;
50792
51359
  exports.localNetworkCapability = localNetworkCapability;
50793
51360
  exports.locationSimilarity = locationSimilarity;
50794
51361
  exports.lockControlCapability = lockControlCapability;
@@ -50885,12 +51452,14 @@ exports.rebootCapability = rebootCapability;
50885
51452
  exports.recordingCapability = recordingCapability;
50886
51453
  exports.recordingExportCapability = recordingExportCapability;
50887
51454
  exports.rectsToCells = rectsToCells;
51455
+ exports.reducePoints = reducePoints;
50888
51456
  exports.requiresPython = requiresPython;
50889
51457
  exports.resetPoolBaseline = resetPoolBaseline;
50890
51458
  exports.resolveAddonExecution = resolveAddonExecution;
50891
51459
  exports.resolveAddonGroup = resolveAddonGroup;
50892
51460
  exports.resolveAddonPlacement = resolveAddonPlacement;
50893
51461
  exports.resolveAddonRuntime = resolveAddonRuntime;
51462
+ exports.resolveBucketMs = resolveBucketMs;
50894
51463
  exports.resolveCapMount = require_sleep.resolveCapMount;
50895
51464
  exports.resolveClusterStepModelId = resolveClusterStepModelId;
50896
51465
  exports.resolveDetectionRuntime = resolveDetectionRuntime;