@camstack/addon-osd-manager 0.1.27 → 0.1.29
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/{MotionZonesSettings-BaHVcJbF.mjs → MotionZonesSettings-DC8Uv0p9.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-Bp4jWnFG.mjs → PrivacyMaskSettings-VMzJkwbP.mjs} +4 -4
- package/dist/{SceneMonitorEditor-VaKlqiGB.mjs → SceneMonitorEditor-Czn1ASQI.mjs} +3 -3
- package/dist/_stub.js +13 -13
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Dsmn7JiI.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BEzDpDXi.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D2ZIsUQd.mjs +26 -0
- package/dist/{hostInit-BBu1Mgkm.mjs → hostInit-6oVnUoXT.mjs} +3 -3
- package/dist/index.js +341 -35
- package/dist/index.mjs +341 -35
- package/dist/{player-overlays-DgLOOYci.mjs → player-overlays-CsvXzxkt.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-C-8_bIDl.mjs → responsive-DrMb9OT-.mjs} +1 -1
- package/dist/{square-CavMCLRh.mjs → square-BLQjSjKx.mjs} +1 -1
- package/dist/{trash-2-DCAcPlaj.mjs → trash-2-DsBQxnon.mjs} +1 -1
- package/dist/{use-device-snapshot-Ji1nLnaC.mjs → use-device-snapshot-Ct9kwtM8.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CvAo2VBZ.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DUKe-V-S.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dcc73wc4.mjs +0 -26
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-BZL-fdNj.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -435,7 +435,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
435
435
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
436
436
|
/**
|
|
437
437
|
* Periodic per-node process-tree snapshot (camstack-related pids
|
|
438
|
-
* with
|
|
438
|
+
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
439
439
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
440
440
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
441
441
|
*/
|
|
@@ -11970,6 +11970,19 @@ var SettingsRecordSchema = object({
|
|
|
11970
11970
|
data: record(string(), unknown())
|
|
11971
11971
|
});
|
|
11972
11972
|
/**
|
|
11973
|
+
* One record of a BULK insert — {@link SettingsRecordSchema} with the id made
|
|
11974
|
+
* optional.
|
|
11975
|
+
*
|
|
11976
|
+
* A separate schema rather than loosening the shared one: every other method
|
|
11977
|
+
* on this cap addresses a row BY its id, and making that field optional
|
|
11978
|
+
* everywhere would turn a forgotten key into a silently generated one on
|
|
11979
|
+
* `update` and `delete` as well.
|
|
11980
|
+
*/
|
|
11981
|
+
var BulkRecordSchema = object({
|
|
11982
|
+
id: string().optional(),
|
|
11983
|
+
data: record(string(), unknown())
|
|
11984
|
+
});
|
|
11985
|
+
/**
|
|
11973
11986
|
* Column declaration for a structured (SQL-backed) collection.
|
|
11974
11987
|
*
|
|
11975
11988
|
* Logical types — the backend translates each to the matching SQLite
|
|
@@ -12082,6 +12095,34 @@ var settingsStoreCapability = {
|
|
|
12082
12095
|
collection: string(),
|
|
12083
12096
|
record: SettingsRecordSchema
|
|
12084
12097
|
}), _void(), { kind: "mutation" }),
|
|
12098
|
+
/**
|
|
12099
|
+
* Insert MANY records in ONE transaction, returning how many landed.
|
|
12100
|
+
*
|
|
12101
|
+
* The write-side twin of {@link deleteWhere}, and it exists for the same
|
|
12102
|
+
* reason: without it, appending a batch is N round trips and N COMMITs on
|
|
12103
|
+
* the single shared connection that also serves every cluster-wide
|
|
12104
|
+
* configuration read. The durable load series writes one process row per
|
|
12105
|
+
* process per sample — 76 rows every 10 s on the live fleet — and the
|
|
12106
|
+
* operator's rule for it is *one transaction per sample, never one per
|
|
12107
|
+
* row*. `insert` cannot express that; nothing else could.
|
|
12108
|
+
*
|
|
12109
|
+
* **All or nothing.** A batch that fails on its fifth row leaves none of
|
|
12110
|
+
* the five behind. A half-written sample is worse than a missing one: the
|
|
12111
|
+
* missing one reads as "nobody reported", which is true, while the half
|
|
12112
|
+
* one reads as "these were the only processes running", which is not.
|
|
12113
|
+
*
|
|
12114
|
+
* `id` is OPTIONAL per record, and that is the difference from
|
|
12115
|
+
* {@link insert}. A collection whose primary key is an `INTEGER` rowid
|
|
12116
|
+
* alias has no id to supply — SQLite assigns it, for free, and inventing a
|
|
12117
|
+
* `randomUUID()` for such a column would write a 36-character string into
|
|
12118
|
+
* an integer key. Omitted on a TEXT key, a uuid is generated exactly as
|
|
12119
|
+
* `insert` does.
|
|
12120
|
+
*/
|
|
12121
|
+
insertMany: method(object({
|
|
12122
|
+
namespace: string().optional(),
|
|
12123
|
+
collection: string(),
|
|
12124
|
+
records: array(BulkRecordSchema).readonly()
|
|
12125
|
+
}), object({ inserted: number().int() }), { kind: "mutation" }),
|
|
12085
12126
|
/** Update an existing record by ID. */
|
|
12086
12127
|
update: method(object({
|
|
12087
12128
|
namespace: string().optional(),
|
|
@@ -12319,6 +12360,15 @@ var dataStoreProviderCapability = {
|
|
|
12319
12360
|
kind: "mutation",
|
|
12320
12361
|
auth: "admin"
|
|
12321
12362
|
}),
|
|
12363
|
+
/** Insert many records in ONE transaction. All or nothing. */
|
|
12364
|
+
insertMany: method(object({
|
|
12365
|
+
namespace: string().optional(),
|
|
12366
|
+
collection: string(),
|
|
12367
|
+
records: array(BulkRecordSchema).readonly()
|
|
12368
|
+
}), object({ inserted: number().int() }), {
|
|
12369
|
+
kind: "mutation",
|
|
12370
|
+
auth: "admin"
|
|
12371
|
+
}),
|
|
12322
12372
|
/** Update an existing record by ID. */
|
|
12323
12373
|
update: method(object({
|
|
12324
12374
|
namespace: string().optional(),
|
|
@@ -14947,6 +14997,82 @@ var logDestinationCapability = {
|
|
|
14947
14997
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
14948
14998
|
mount: { kind: "skip" }
|
|
14949
14999
|
};
|
|
15000
|
+
var LoadContributionSchema = object({
|
|
15001
|
+
role: _enum([
|
|
15002
|
+
"decode",
|
|
15003
|
+
"transcode",
|
|
15004
|
+
"recording",
|
|
15005
|
+
"streaming",
|
|
15006
|
+
"detection"
|
|
15007
|
+
]),
|
|
15008
|
+
/**
|
|
15009
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
15010
|
+
* `tags.deviceId`. `null` means this cost genuinely belongs to no single
|
|
15011
|
+
* camera (a shared pool), NOT that the contributor forgot to look it up: a
|
|
15012
|
+
* contributor that cannot name its camera must not emit the entry at all,
|
|
15013
|
+
* because an unnamed per-camera entry is indistinguishable from a shared one
|
|
15014
|
+
* and would quietly turn one camera's cost into everybody's.
|
|
15015
|
+
*/
|
|
15016
|
+
deviceId: number().int().positive().nullable(),
|
|
15017
|
+
attribution: _enum([
|
|
15018
|
+
"measured",
|
|
15019
|
+
"accounted",
|
|
15020
|
+
"unattributable"
|
|
15021
|
+
]),
|
|
15022
|
+
/**
|
|
15023
|
+
* What ONE entry is, in the contributor's own words — `615/high`,
|
|
15024
|
+
* `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
|
|
15025
|
+
* family and inventing a common one would lose the only information that
|
|
15026
|
+
* makes two entries for the same camera distinguishable.
|
|
15027
|
+
*/
|
|
15028
|
+
unit: string(),
|
|
15029
|
+
/**
|
|
15030
|
+
* The OS process this cost lives in, when there is one. Present so a
|
|
15031
|
+
* consumer can (a) tell two generations of the same unit apart across a
|
|
15032
|
+
* restart, and (b) subtract claimed processes from the node's process
|
|
15033
|
+
* snapshot to see what NOBODY claimed. Absent for an entry that owns no
|
|
15034
|
+
* process of its own.
|
|
15035
|
+
*/
|
|
15036
|
+
pid: number().int().positive().optional(),
|
|
15037
|
+
/**
|
|
15038
|
+
* When this generation started. The pid's incarnation marker: a consumer
|
|
15039
|
+
* differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
|
|
15040
|
+
* window when this changes, because the counter restarted from zero in a new
|
|
15041
|
+
* process.
|
|
15042
|
+
*/
|
|
15043
|
+
startedAtMs: number().optional(),
|
|
15044
|
+
/**
|
|
15045
|
+
* CUMULATIVE CPU seconds this unit has consumed since it started — user +
|
|
15046
|
+
* system, read from the child's own `/proc/<pid>/stat` at the moment the
|
|
15047
|
+
* contribution is asked for.
|
|
15048
|
+
*
|
|
15049
|
+
* Cumulative and not a rate on purpose: a rate needs a window, a window
|
|
15050
|
+
* needs a sampler, and a new per-node sampler is the defect half of
|
|
15051
|
+
* `docs/architecture/load-ledger.md` documents. A counter can be differenced
|
|
15052
|
+
* by whoever already keeps a history; a rate cannot be un-averaged.
|
|
15053
|
+
*
|
|
15054
|
+
* Absent — never zero — on a node with no `/proc`, on a read failure, and on
|
|
15055
|
+
* an entry with no process.
|
|
15056
|
+
*/
|
|
15057
|
+
cpuSeconds: number().optional(),
|
|
15058
|
+
/** Resident bytes of this unit's process, same source and same rules. */
|
|
15059
|
+
rssBytes: number().optional()
|
|
15060
|
+
});
|
|
15061
|
+
var loadContributionCapability = {
|
|
15062
|
+
name: "load-contribution",
|
|
15063
|
+
scope: "system",
|
|
15064
|
+
mode: "collection",
|
|
15065
|
+
internal: true,
|
|
15066
|
+
methods: {
|
|
15067
|
+
/**
|
|
15068
|
+
* This addon's own cost entries, computed live from state it already
|
|
15069
|
+
* holds. Inert: no persistence, no sampling, no timer. It is answered on
|
|
15070
|
+
* whatever beat the caller already has.
|
|
15071
|
+
*/
|
|
15072
|
+
list: method(_void(), array(LoadContributionSchema).readonly()) },
|
|
15073
|
+
/** In-process only — enumerated through `addons.listCapabilityProviders`. */
|
|
15074
|
+
mount: { kind: "skip" }
|
|
15075
|
+
};
|
|
14950
15076
|
/**
|
|
14951
15077
|
* `login-method` — collection cap through which auth addons contribute
|
|
14952
15078
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -15158,8 +15284,7 @@ var NodeProcessSchema = object({
|
|
|
15158
15284
|
classification: _enum([
|
|
15159
15285
|
"root",
|
|
15160
15286
|
"managed",
|
|
15161
|
-
"system"
|
|
15162
|
-
"ghost"
|
|
15287
|
+
"system"
|
|
15163
15288
|
]),
|
|
15164
15289
|
/** `$process` addon binding when `managed`, else null. */
|
|
15165
15290
|
addonId: string().nullable(),
|
|
@@ -15167,22 +15292,39 @@ var NodeProcessSchema = object({
|
|
|
15167
15292
|
nodeId: string().nullable(),
|
|
15168
15293
|
/** Truncated command line. */
|
|
15169
15294
|
command: string(),
|
|
15295
|
+
/**
|
|
15296
|
+
* `ps pcpu` — CPU averaged over the process's WHOLE LIFETIME, not a rate.
|
|
15297
|
+
* On a runner up for days it barely moves. Fine as a column, useless as a
|
|
15298
|
+
* series: use `cpuMainPercent + cpuGcPercent` for anything time-varying.
|
|
15299
|
+
*/
|
|
15170
15300
|
cpuPercent: number(),
|
|
15171
15301
|
memoryRssBytes: number(),
|
|
15302
|
+
/**
|
|
15303
|
+
* Instantaneous CPU% of the process's own threads over the last
|
|
15304
|
+
* process-snapshot window, from a `/proc/<pid>/task/*` tick delta.
|
|
15305
|
+
*
|
|
15306
|
+
* `null` = UNKNOWN, never zero: no previous sample yet (first tick after
|
|
15307
|
+
* boot), the pid was recycled, or this node is not Linux.
|
|
15308
|
+
*/
|
|
15309
|
+
cpuMainPercent: number().nullable(),
|
|
15310
|
+
/**
|
|
15311
|
+
* Instantaneous CPU% of V8's `V8Worker` platform pool over the same window.
|
|
15312
|
+
*
|
|
15313
|
+
* This is the number that rewrote the 2026-08-27 diagnosis — hub-main 73%,
|
|
15314
|
+
* `stream-broker` 61% (`docs/architecture/load-ledger.md`). A CPU chart that
|
|
15315
|
+
* does not separate it from `cpuMainPercent` shows "busy" where the truth is
|
|
15316
|
+
* "allocating too much".
|
|
15317
|
+
*
|
|
15318
|
+
* Concurrent GC is the dominant tenant of that pool but not the only one
|
|
15319
|
+
* (background compilation runs there too), so it is reported as
|
|
15320
|
+
* "GC / V8 helpers" rather than as pure collection time. `null` has the same
|
|
15321
|
+
* meaning as on `cpuMainPercent`.
|
|
15322
|
+
*/
|
|
15323
|
+
cpuGcPercent: number().nullable(),
|
|
15324
|
+
/** Threads seen in the tick scan. `null` under the same conditions. */
|
|
15325
|
+
threadCount: number().nullable(),
|
|
15172
15326
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
15173
|
-
uptimeSec: number()
|
|
15174
|
-
/** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
|
|
15175
|
-
orphaned: boolean()
|
|
15176
|
-
});
|
|
15177
|
-
var KillProcessInputSchema = object({
|
|
15178
|
-
pid: number(),
|
|
15179
|
-
/** Force = SIGKILL. Default is SIGTERM. */
|
|
15180
|
-
force: boolean().optional()
|
|
15181
|
-
});
|
|
15182
|
-
var KillProcessResultSchema = object({
|
|
15183
|
-
success: boolean(),
|
|
15184
|
-
reason: string().optional(),
|
|
15185
|
-
signal: _enum(["SIGTERM", "SIGKILL"]).optional()
|
|
15327
|
+
uptimeSec: number()
|
|
15186
15328
|
});
|
|
15187
15329
|
var DumpHeapSnapshotInputSchema = object({
|
|
15188
15330
|
/** The addon whose runner should dump a heap snapshot. */
|
|
@@ -15195,6 +15337,104 @@ var DumpHeapSnapshotResultSchema = object({
|
|
|
15195
15337
|
pid: number().optional(),
|
|
15196
15338
|
reason: string().optional()
|
|
15197
15339
|
});
|
|
15340
|
+
/**
|
|
15341
|
+
* One point of one function's series.
|
|
15342
|
+
*
|
|
15343
|
+
* The unsuffixed fields are the bucket's **MAXIMUM**, and that choice is the
|
|
15344
|
+
* point of the whole surface. The two obvious reductions both lie: a mean per
|
|
15345
|
+
* bucket smears a spike away, and taking every Nth sample skips it outright.
|
|
15346
|
+
* Either would give us a tool built to find peaks that does not show peaks.
|
|
15347
|
+
* `...Min` carries the other end, `samples` says how many raw snapshots folded
|
|
15348
|
+
* into the bucket, and a mean stays derivable where it is wanted.
|
|
15349
|
+
*
|
|
15350
|
+
* An UNREDUCED point is a one-sample bucket: `samples === 1` and each `...Min`
|
|
15351
|
+
* equals its unsuffixed twin. Reduced and unreduced are the same shape, so a
|
|
15352
|
+
* caller cannot tell which it received — which is what "one reader" means.
|
|
15353
|
+
*/
|
|
15354
|
+
var LoadPointSchema = object({
|
|
15355
|
+
/** Bucket START, or the snapshot's own timestamp when unreduced. */
|
|
15356
|
+
atMs: number(),
|
|
15357
|
+
/** Raw snapshots in this bucket. Never 0 — AN EMPTY BUCKET IS ABSENT. */
|
|
15358
|
+
samples: number().int(),
|
|
15359
|
+
/**
|
|
15360
|
+
* `null` = UNKNOWN and it PROPAGATES: a bucket is null unless every process
|
|
15361
|
+
* of every snapshot in it reported a thread split. A partial sum is a
|
|
15362
|
+
* smaller number that looks exactly as real as a complete one.
|
|
15363
|
+
*/
|
|
15364
|
+
cpuMainPercent: number().nullable(),
|
|
15365
|
+
cpuMainPercentMin: number().nullable(),
|
|
15366
|
+
cpuGcPercent: number().nullable(),
|
|
15367
|
+
cpuGcPercentMin: number().nullable(),
|
|
15368
|
+
/** Lifetime-average CPU%, summed. Always known — and never a rate. */
|
|
15369
|
+
cpuLifetimePercent: number(),
|
|
15370
|
+
cpuLifetimePercentMin: number(),
|
|
15371
|
+
memoryRssBytes: number(),
|
|
15372
|
+
memoryRssBytesMin: number(),
|
|
15373
|
+
processCount: number().int(),
|
|
15374
|
+
processCountMin: number().int()
|
|
15375
|
+
});
|
|
15376
|
+
/** One function's series. `key` is an addonId, `__root__` or `__unattributed__`. */
|
|
15377
|
+
var LoadFunctionSeriesSchema = object({
|
|
15378
|
+
key: string(),
|
|
15379
|
+
kind: _enum([
|
|
15380
|
+
"addon",
|
|
15381
|
+
"root",
|
|
15382
|
+
"unattributed"
|
|
15383
|
+
]),
|
|
15384
|
+
/** Oldest-first. A missing interval is MISSING — never zero-filled. */
|
|
15385
|
+
points: array(LoadPointSchema).readonly()
|
|
15386
|
+
});
|
|
15387
|
+
var NodeLoadSeriesSchema = object({
|
|
15388
|
+
nodeId: string(),
|
|
15389
|
+
/** One entry per function seen in the window, heaviest-first. */
|
|
15390
|
+
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
15391
|
+
/**
|
|
15392
|
+
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
15393
|
+
* reduction was needed — so a caller can always say what one point covers
|
|
15394
|
+
* without having to know whether it was reduced.
|
|
15395
|
+
*/
|
|
15396
|
+
bucketMs: number(),
|
|
15397
|
+
/** Raw snapshots that went into this answer, across both tiers. */
|
|
15398
|
+
retainedSamples: number(),
|
|
15399
|
+
/** Oldest snapshot represented, or `null` when nothing is retained. */
|
|
15400
|
+
oldestAtMs: number().nullable(),
|
|
15401
|
+
/** The fixed sampling cadence in force on the cluster, in ms. */
|
|
15402
|
+
cadenceMs: number(),
|
|
15403
|
+
/**
|
|
15404
|
+
* Did the DURABLE tier contribute? `false` means the answer is the hot ring
|
|
15405
|
+
* alone — an agent (which holds no table), or a store that refused.
|
|
15406
|
+
* Reported because "the last hour" and "the last six hours" are different
|
|
15407
|
+
* questions and an operator must not have to guess which was answered.
|
|
15408
|
+
*/
|
|
15409
|
+
durable: boolean()
|
|
15410
|
+
});
|
|
15411
|
+
var GetLoadSeriesInputSchema = object({
|
|
15412
|
+
/**
|
|
15413
|
+
* The node whose series is wanted.
|
|
15414
|
+
*
|
|
15415
|
+
* NOT named `nodeId`: the generated cap router strips a top-level
|
|
15416
|
+
* `nodeId` from every method input and uses it to ROUTE the call to
|
|
15417
|
+
* that node's provider (`generated-cap-routers.ts`). A series target
|
|
15418
|
+
* called `nodeId` would silently become a routing pin and never reach
|
|
15419
|
+
* the provider. The hub holds every node it hears from, so the
|
|
15420
|
+
* ordinary call is unpinned — answered by the hub, for any node.
|
|
15421
|
+
*/
|
|
15422
|
+
forNodeId: string(),
|
|
15423
|
+
/**
|
|
15424
|
+
* EXCLUSIVE lower bound. A caller passes the newest `atMs` it already
|
|
15425
|
+
* holds and receives only what it is missing, so seeding a live chart
|
|
15426
|
+
* from this method cannot double a point already drawn.
|
|
15427
|
+
*/
|
|
15428
|
+
sinceMs: number().optional(),
|
|
15429
|
+
/**
|
|
15430
|
+
* Most points the caller wants PER FUNCTION. The window is reduced to fit,
|
|
15431
|
+
* preserving min and max per bucket.
|
|
15432
|
+
*
|
|
15433
|
+
* Absent means NO reduction — legitimate for a short window and a trap for a
|
|
15434
|
+
* long one, which is why a chart passes its own pixel width.
|
|
15435
|
+
*/
|
|
15436
|
+
maxPoints: number().int().positive().optional()
|
|
15437
|
+
});
|
|
15198
15438
|
var SystemMetricsSchema = object({
|
|
15199
15439
|
cpuPercent: number(),
|
|
15200
15440
|
memoryPercent: number(),
|
|
@@ -15240,28 +15480,44 @@ var metricsProviderCapability = {
|
|
|
15240
15480
|
getAddonStats: method(object({ addonId: string() }), PidResourceStatsSchema.nullable()),
|
|
15241
15481
|
/**
|
|
15242
15482
|
* Snapshot of every camstack-related process on this node with a
|
|
15243
|
-
*
|
|
15244
|
-
* Processes tab: cross-references `$process.list` against a `ps` scan
|
|
15245
|
-
*
|
|
15246
|
-
*
|
|
15483
|
+
* root/managed/system classification. Powers the Cluster → Agent →
|
|
15484
|
+
* Processes tab: cross-references `$process.list` against a `ps` scan so
|
|
15485
|
+
* per-addon CPU and RSS can be attributed, and so a process the cluster
|
|
15486
|
+
* does not manage is still visible.
|
|
15487
|
+
*
|
|
15488
|
+
* **Read-only, by design.** This cap once carried a `killProcess`
|
|
15489
|
+
* mutation; it was deleted on 2026-08-27. A runner's lifecycle belongs to
|
|
15490
|
+
* `CrashSupervisor` and is driven through `addons.restartAddon` /
|
|
15491
|
+
* `$process.restart` — signalling a raw pid went around the supervisor
|
|
15492
|
+
* (D6), and the one class it was willing to signal turned out to be the
|
|
15493
|
+
* container's own init and the operator's desktop app.
|
|
15247
15494
|
*/
|
|
15248
15495
|
listNodeProcesses: method(_void(), array(NodeProcessSchema).readonly()),
|
|
15249
15496
|
/**
|
|
15250
|
-
*
|
|
15251
|
-
*
|
|
15252
|
-
*
|
|
15253
|
-
*
|
|
15497
|
+
* The retained per-node load series — the ONE reader over BOTH tiers.
|
|
15498
|
+
*
|
|
15499
|
+
* The in-memory ring is the HOT window (the last 180 snapshots, held by
|
|
15500
|
+
* every node's `native-metrics`); the hub's `metrics:node-load-samples`
|
|
15501
|
+
* table is the COLD one (the operator's retention, six hours by default).
|
|
15502
|
+
* This method merges them and DEDUPES on `atMs`, so a snapshot present in
|
|
15503
|
+
* both contributes once and the caller never learns which tier a point
|
|
15504
|
+
* came from. There is deliberately no second read surface: two readers is
|
|
15505
|
+
* how two charts start disagreeing about the same node.
|
|
15506
|
+
*
|
|
15507
|
+
* Reads only; nothing is sampled to answer it. Normally called UNPINNED —
|
|
15508
|
+
* the hub hears every node's snapshot and holds every node's rows — and
|
|
15509
|
+
* answers for any `forNodeId`. Pinned to an agent it answers from that
|
|
15510
|
+
* agent's ring alone (`durable: false`). Empty is a legitimate answer: a
|
|
15511
|
+
* node nobody has heard from has no series, and saying so is the truth.
|
|
15254
15512
|
*/
|
|
15255
|
-
|
|
15256
|
-
kind: "mutation",
|
|
15257
|
-
auth: "admin"
|
|
15258
|
-
}),
|
|
15513
|
+
getLoadSeries: method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema),
|
|
15259
15514
|
/**
|
|
15260
15515
|
* Tell the addon's forked runner to write a V8 heap snapshot to disk (via
|
|
15261
15516
|
* SIGUSR2 — the runner's diagnostic handler). Also logs its
|
|
15262
|
-
* `process.memoryUsage()` + heap-space breakdown.
|
|
15263
|
-
*
|
|
15264
|
-
* attribution; copy the returned path off the
|
|
15517
|
+
* `process.memoryUsage()` + heap-space breakdown. Resolves the pid from
|
|
15518
|
+
* `$process.list`, so it can only reach a runner this node spawned. Use
|
|
15519
|
+
* for deep per-addon memory attribution; copy the returned path off the
|
|
15520
|
+
* node to analyze.
|
|
15265
15521
|
*/
|
|
15266
15522
|
dumpHeapSnapshot: method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
15267
15523
|
kind: "mutation",
|
|
@@ -33773,6 +34029,15 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33773
34029
|
* authority over the whole hierarchy and answers for every layer, so the
|
|
33774
34030
|
* layer selector needs a name the transport does not already own.
|
|
33775
34031
|
*/
|
|
34032
|
+
/**
|
|
34033
|
+
* One contribution, plus WHO reported it.
|
|
34034
|
+
*
|
|
34035
|
+
* The addon and node are added by the hub as it enumerates providers, never by
|
|
34036
|
+
* the contributor: an addon reporting its own identity could report somebody
|
|
34037
|
+
* else's, and the whole point of this surface is that no claim is made by
|
|
34038
|
+
* anyone but its owner.
|
|
34039
|
+
*/
|
|
34040
|
+
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
33776
34041
|
var GetLoggingSettingsInputSchema = object({
|
|
33777
34042
|
scopeNodeId: string().optional(),
|
|
33778
34043
|
/**
|
|
@@ -33875,6 +34140,22 @@ var systemCapability = {
|
|
|
33875
34140
|
*/
|
|
33876
34141
|
getRequestCensus: method(_void(), RequestCensusStatusSchema, { auth: "admin" }),
|
|
33877
34142
|
/**
|
|
34143
|
+
* Every `load-contribution` an addon on this cluster reports — each
|
|
34144
|
+
* addon's OWN cost, already attributed by the addon that owns it.
|
|
34145
|
+
*
|
|
34146
|
+
* There is no central list of what costs what: an addon that spawns a
|
|
34147
|
+
* per-camera child declares it, and one that cannot attribute its cost
|
|
34148
|
+
* (the shared inference pool) declares THAT. So a new cost family appears
|
|
34149
|
+
* here the moment its addon is redeployed, with nobody editing anything.
|
|
34150
|
+
*
|
|
34151
|
+
* What this does NOT do is measure the node. `metrics.node-processes-
|
|
34152
|
+
* snapshot` still does that, and the difference between the two is the
|
|
34153
|
+
* finding: a process no contribution claims is either a leak or a family
|
|
34154
|
+
* nobody has taught to report. Both belong in the unattributed bucket, and
|
|
34155
|
+
* neither may be folded into a camera.
|
|
34156
|
+
*/
|
|
34157
|
+
getLoadContributions: method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }),
|
|
34158
|
+
/**
|
|
33878
34159
|
* The logging settings document — levels and armed diagnostics — resolved
|
|
33879
34160
|
* for `nodeId`, or for the cluster when `nodeId` is absent.
|
|
33880
34161
|
*
|
|
@@ -35123,6 +35404,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
35123
35404
|
lawnMowerControlCapability,
|
|
35124
35405
|
llmCapability,
|
|
35125
35406
|
llmRuntimeCapability,
|
|
35407
|
+
loadContributionCapability,
|
|
35126
35408
|
localNetworkCapability,
|
|
35127
35409
|
lockControlCapability,
|
|
35128
35410
|
logChannelsCapability,
|
|
@@ -36146,6 +36428,12 @@ Object.freeze({
|
|
|
36146
36428
|
addonId: null,
|
|
36147
36429
|
access: "create"
|
|
36148
36430
|
},
|
|
36431
|
+
"dataStoreProvider.insertMany": {
|
|
36432
|
+
capName: "data-store-provider",
|
|
36433
|
+
capScope: "system",
|
|
36434
|
+
addonId: null,
|
|
36435
|
+
access: "create"
|
|
36436
|
+
},
|
|
36149
36437
|
"dataStoreProvider.isEmpty": {
|
|
36150
36438
|
capName: "data-store-provider",
|
|
36151
36439
|
capScope: "system",
|
|
@@ -37460,6 +37748,12 @@ Object.freeze({
|
|
|
37460
37748
|
addonId: null,
|
|
37461
37749
|
access: "create"
|
|
37462
37750
|
},
|
|
37751
|
+
"loadContribution.list": {
|
|
37752
|
+
capName: "load-contribution",
|
|
37753
|
+
capScope: "system",
|
|
37754
|
+
addonId: null,
|
|
37755
|
+
access: "view"
|
|
37756
|
+
},
|
|
37463
37757
|
"localNetwork.downloadCa": {
|
|
37464
37758
|
capName: "local-network",
|
|
37465
37759
|
capScope: "system",
|
|
@@ -37760,17 +38054,17 @@ Object.freeze({
|
|
|
37760
38054
|
addonId: null,
|
|
37761
38055
|
access: "view"
|
|
37762
38056
|
},
|
|
37763
|
-
"metricsProvider.
|
|
38057
|
+
"metricsProvider.getLoadSeries": {
|
|
37764
38058
|
capName: "metrics-provider",
|
|
37765
38059
|
capScope: "system",
|
|
37766
38060
|
addonId: null,
|
|
37767
38061
|
access: "view"
|
|
37768
38062
|
},
|
|
37769
|
-
"metricsProvider.
|
|
38063
|
+
"metricsProvider.getProcessStats": {
|
|
37770
38064
|
capName: "metrics-provider",
|
|
37771
38065
|
capScope: "system",
|
|
37772
38066
|
addonId: null,
|
|
37773
|
-
access: "
|
|
38067
|
+
access: "view"
|
|
37774
38068
|
},
|
|
37775
38069
|
"metricsProvider.listAddonInstances": {
|
|
37776
38070
|
capName: "metrics-provider",
|
|
@@ -39782,6 +40076,12 @@ Object.freeze({
|
|
|
39782
40076
|
addonId: null,
|
|
39783
40077
|
access: "create"
|
|
39784
40078
|
},
|
|
40079
|
+
"settingsStore.insertMany": {
|
|
40080
|
+
capName: "settings-store",
|
|
40081
|
+
capScope: "system",
|
|
40082
|
+
addonId: null,
|
|
40083
|
+
access: "create"
|
|
40084
|
+
},
|
|
39785
40085
|
"settingsStore.isEmpty": {
|
|
39786
40086
|
capName: "settings-store",
|
|
39787
40087
|
capScope: "system",
|
|
@@ -40394,6 +40694,12 @@ Object.freeze({
|
|
|
40394
40694
|
addonId: null,
|
|
40395
40695
|
access: "create"
|
|
40396
40696
|
},
|
|
40697
|
+
"system.getLoadContributions": {
|
|
40698
|
+
capName: "system",
|
|
40699
|
+
capScope: "system",
|
|
40700
|
+
addonId: null,
|
|
40701
|
+
access: "view"
|
|
40702
|
+
},
|
|
40397
40703
|
"system.getLoggingSettings": {
|
|
40398
40704
|
capName: "system",
|
|
40399
40705
|
capScope: "system",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
|
-
import { o as i, s as a } from "./responsive-
|
|
2
|
+
import { o as i, s as a } from "./responsive-DrMb9OT-.mjs";
|
|
3
3
|
import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
4
4
|
var l = a("chevron-down", [["path", {
|
|
5
5
|
d: "m6 9 6 6 6-6",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DUKe-V-S.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
2
|
import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
3
|
-
import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D2ZIsUQd.mjs";
|
|
4
4
|
//#region ../ui-library/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
5
5
|
l();
|
|
6
6
|
var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
|
-
import { s as i } from "./responsive-
|
|
2
|
+
import { s as i } from "./responsive-DrMb9OT-.mjs";
|
|
3
3
|
var a = i("camera", [["path", {
|
|
4
4
|
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
5
5
|
key: "18u6gg"
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BEzDpDXi.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|