@camstack/addon-osd-manager 0.1.28 → 0.1.30
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-_DSVj2zS.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-Bp4jWnFG.mjs → PrivacyMaskSettings-CgvKFmKQ.mjs} +4 -4
- package/dist/{SceneMonitorEditor-VaKlqiGB.mjs → SceneMonitorEditor-DJUpb3Ti.mjs} +3 -3
- package/dist/_stub.js +13 -13
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CYEXeVe1.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-B1-6X3ty.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js--IWy5JTL.mjs +26 -0
- package/dist/{hostInit-xnyukVLn.mjs → hostInit-BJM9-t1E.mjs} +3 -3
- package/dist/index.js +341 -35
- package/dist/index.mjs +341 -35
- package/dist/{player-overlays-DgLOOYci.mjs → player-overlays-CwE6Ngj5.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-C-8_bIDl.mjs → responsive-Bu5aY8Ga.mjs} +1 -1
- package/dist/{square-CavMCLRh.mjs → square-C3lpKi0o.mjs} +1 -1
- package/dist/{trash-2-DCAcPlaj.mjs → trash-2-Be1MSI7M.mjs} +1 -1
- package/dist/{use-device-snapshot-Ji1nLnaC.mjs → use-device-snapshot-BOZ1NIb1.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-S9zJQxV0.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-BcIVFz88.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.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-BZL-fdNj.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -439,7 +439,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
439
439
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
440
440
|
/**
|
|
441
441
|
* Periodic per-node process-tree snapshot (camstack-related pids
|
|
442
|
-
* with
|
|
442
|
+
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
443
443
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
444
444
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
445
445
|
*/
|
|
@@ -11974,6 +11974,19 @@ var SettingsRecordSchema = object({
|
|
|
11974
11974
|
data: record(string(), unknown())
|
|
11975
11975
|
});
|
|
11976
11976
|
/**
|
|
11977
|
+
* One record of a BULK insert — {@link SettingsRecordSchema} with the id made
|
|
11978
|
+
* optional.
|
|
11979
|
+
*
|
|
11980
|
+
* A separate schema rather than loosening the shared one: every other method
|
|
11981
|
+
* on this cap addresses a row BY its id, and making that field optional
|
|
11982
|
+
* everywhere would turn a forgotten key into a silently generated one on
|
|
11983
|
+
* `update` and `delete` as well.
|
|
11984
|
+
*/
|
|
11985
|
+
var BulkRecordSchema = object({
|
|
11986
|
+
id: string().optional(),
|
|
11987
|
+
data: record(string(), unknown())
|
|
11988
|
+
});
|
|
11989
|
+
/**
|
|
11977
11990
|
* Column declaration for a structured (SQL-backed) collection.
|
|
11978
11991
|
*
|
|
11979
11992
|
* Logical types — the backend translates each to the matching SQLite
|
|
@@ -12086,6 +12099,34 @@ var settingsStoreCapability = {
|
|
|
12086
12099
|
collection: string(),
|
|
12087
12100
|
record: SettingsRecordSchema
|
|
12088
12101
|
}), _void(), { kind: "mutation" }),
|
|
12102
|
+
/**
|
|
12103
|
+
* Insert MANY records in ONE transaction, returning how many landed.
|
|
12104
|
+
*
|
|
12105
|
+
* The write-side twin of {@link deleteWhere}, and it exists for the same
|
|
12106
|
+
* reason: without it, appending a batch is N round trips and N COMMITs on
|
|
12107
|
+
* the single shared connection that also serves every cluster-wide
|
|
12108
|
+
* configuration read. The durable load series writes one process row per
|
|
12109
|
+
* process per sample — 76 rows every 10 s on the live fleet — and the
|
|
12110
|
+
* operator's rule for it is *one transaction per sample, never one per
|
|
12111
|
+
* row*. `insert` cannot express that; nothing else could.
|
|
12112
|
+
*
|
|
12113
|
+
* **All or nothing.** A batch that fails on its fifth row leaves none of
|
|
12114
|
+
* the five behind. A half-written sample is worse than a missing one: the
|
|
12115
|
+
* missing one reads as "nobody reported", which is true, while the half
|
|
12116
|
+
* one reads as "these were the only processes running", which is not.
|
|
12117
|
+
*
|
|
12118
|
+
* `id` is OPTIONAL per record, and that is the difference from
|
|
12119
|
+
* {@link insert}. A collection whose primary key is an `INTEGER` rowid
|
|
12120
|
+
* alias has no id to supply — SQLite assigns it, for free, and inventing a
|
|
12121
|
+
* `randomUUID()` for such a column would write a 36-character string into
|
|
12122
|
+
* an integer key. Omitted on a TEXT key, a uuid is generated exactly as
|
|
12123
|
+
* `insert` does.
|
|
12124
|
+
*/
|
|
12125
|
+
insertMany: method(object({
|
|
12126
|
+
namespace: string().optional(),
|
|
12127
|
+
collection: string(),
|
|
12128
|
+
records: array(BulkRecordSchema).readonly()
|
|
12129
|
+
}), object({ inserted: number().int() }), { kind: "mutation" }),
|
|
12089
12130
|
/** Update an existing record by ID. */
|
|
12090
12131
|
update: method(object({
|
|
12091
12132
|
namespace: string().optional(),
|
|
@@ -12323,6 +12364,15 @@ var dataStoreProviderCapability = {
|
|
|
12323
12364
|
kind: "mutation",
|
|
12324
12365
|
auth: "admin"
|
|
12325
12366
|
}),
|
|
12367
|
+
/** Insert many records in ONE transaction. All or nothing. */
|
|
12368
|
+
insertMany: method(object({
|
|
12369
|
+
namespace: string().optional(),
|
|
12370
|
+
collection: string(),
|
|
12371
|
+
records: array(BulkRecordSchema).readonly()
|
|
12372
|
+
}), object({ inserted: number().int() }), {
|
|
12373
|
+
kind: "mutation",
|
|
12374
|
+
auth: "admin"
|
|
12375
|
+
}),
|
|
12326
12376
|
/** Update an existing record by ID. */
|
|
12327
12377
|
update: method(object({
|
|
12328
12378
|
namespace: string().optional(),
|
|
@@ -14951,6 +15001,82 @@ var logDestinationCapability = {
|
|
|
14951
15001
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
14952
15002
|
mount: { kind: "skip" }
|
|
14953
15003
|
};
|
|
15004
|
+
var LoadContributionSchema = object({
|
|
15005
|
+
role: _enum([
|
|
15006
|
+
"decode",
|
|
15007
|
+
"transcode",
|
|
15008
|
+
"recording",
|
|
15009
|
+
"streaming",
|
|
15010
|
+
"detection"
|
|
15011
|
+
]),
|
|
15012
|
+
/**
|
|
15013
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
15014
|
+
* `tags.deviceId`. `null` means this cost genuinely belongs to no single
|
|
15015
|
+
* camera (a shared pool), NOT that the contributor forgot to look it up: a
|
|
15016
|
+
* contributor that cannot name its camera must not emit the entry at all,
|
|
15017
|
+
* because an unnamed per-camera entry is indistinguishable from a shared one
|
|
15018
|
+
* and would quietly turn one camera's cost into everybody's.
|
|
15019
|
+
*/
|
|
15020
|
+
deviceId: number().int().positive().nullable(),
|
|
15021
|
+
attribution: _enum([
|
|
15022
|
+
"measured",
|
|
15023
|
+
"accounted",
|
|
15024
|
+
"unattributable"
|
|
15025
|
+
]),
|
|
15026
|
+
/**
|
|
15027
|
+
* What ONE entry is, in the contributor's own words — `615/high`,
|
|
15028
|
+
* `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
|
|
15029
|
+
* family and inventing a common one would lose the only information that
|
|
15030
|
+
* makes two entries for the same camera distinguishable.
|
|
15031
|
+
*/
|
|
15032
|
+
unit: string(),
|
|
15033
|
+
/**
|
|
15034
|
+
* The OS process this cost lives in, when there is one. Present so a
|
|
15035
|
+
* consumer can (a) tell two generations of the same unit apart across a
|
|
15036
|
+
* restart, and (b) subtract claimed processes from the node's process
|
|
15037
|
+
* snapshot to see what NOBODY claimed. Absent for an entry that owns no
|
|
15038
|
+
* process of its own.
|
|
15039
|
+
*/
|
|
15040
|
+
pid: number().int().positive().optional(),
|
|
15041
|
+
/**
|
|
15042
|
+
* When this generation started. The pid's incarnation marker: a consumer
|
|
15043
|
+
* differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
|
|
15044
|
+
* window when this changes, because the counter restarted from zero in a new
|
|
15045
|
+
* process.
|
|
15046
|
+
*/
|
|
15047
|
+
startedAtMs: number().optional(),
|
|
15048
|
+
/**
|
|
15049
|
+
* CUMULATIVE CPU seconds this unit has consumed since it started — user +
|
|
15050
|
+
* system, read from the child's own `/proc/<pid>/stat` at the moment the
|
|
15051
|
+
* contribution is asked for.
|
|
15052
|
+
*
|
|
15053
|
+
* Cumulative and not a rate on purpose: a rate needs a window, a window
|
|
15054
|
+
* needs a sampler, and a new per-node sampler is the defect half of
|
|
15055
|
+
* `docs/architecture/load-ledger.md` documents. A counter can be differenced
|
|
15056
|
+
* by whoever already keeps a history; a rate cannot be un-averaged.
|
|
15057
|
+
*
|
|
15058
|
+
* Absent — never zero — on a node with no `/proc`, on a read failure, and on
|
|
15059
|
+
* an entry with no process.
|
|
15060
|
+
*/
|
|
15061
|
+
cpuSeconds: number().optional(),
|
|
15062
|
+
/** Resident bytes of this unit's process, same source and same rules. */
|
|
15063
|
+
rssBytes: number().optional()
|
|
15064
|
+
});
|
|
15065
|
+
var loadContributionCapability = {
|
|
15066
|
+
name: "load-contribution",
|
|
15067
|
+
scope: "system",
|
|
15068
|
+
mode: "collection",
|
|
15069
|
+
internal: true,
|
|
15070
|
+
methods: {
|
|
15071
|
+
/**
|
|
15072
|
+
* This addon's own cost entries, computed live from state it already
|
|
15073
|
+
* holds. Inert: no persistence, no sampling, no timer. It is answered on
|
|
15074
|
+
* whatever beat the caller already has.
|
|
15075
|
+
*/
|
|
15076
|
+
list: method(_void(), array(LoadContributionSchema).readonly()) },
|
|
15077
|
+
/** In-process only — enumerated through `addons.listCapabilityProviders`. */
|
|
15078
|
+
mount: { kind: "skip" }
|
|
15079
|
+
};
|
|
14954
15080
|
/**
|
|
14955
15081
|
* `login-method` — collection cap through which auth addons contribute
|
|
14956
15082
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -15162,8 +15288,7 @@ var NodeProcessSchema = object({
|
|
|
15162
15288
|
classification: _enum([
|
|
15163
15289
|
"root",
|
|
15164
15290
|
"managed",
|
|
15165
|
-
"system"
|
|
15166
|
-
"ghost"
|
|
15291
|
+
"system"
|
|
15167
15292
|
]),
|
|
15168
15293
|
/** `$process` addon binding when `managed`, else null. */
|
|
15169
15294
|
addonId: string().nullable(),
|
|
@@ -15171,22 +15296,39 @@ var NodeProcessSchema = object({
|
|
|
15171
15296
|
nodeId: string().nullable(),
|
|
15172
15297
|
/** Truncated command line. */
|
|
15173
15298
|
command: string(),
|
|
15299
|
+
/**
|
|
15300
|
+
* `ps pcpu` — CPU averaged over the process's WHOLE LIFETIME, not a rate.
|
|
15301
|
+
* On a runner up for days it barely moves. Fine as a column, useless as a
|
|
15302
|
+
* series: use `cpuMainPercent + cpuGcPercent` for anything time-varying.
|
|
15303
|
+
*/
|
|
15174
15304
|
cpuPercent: number(),
|
|
15175
15305
|
memoryRssBytes: number(),
|
|
15306
|
+
/**
|
|
15307
|
+
* Instantaneous CPU% of the process's own threads over the last
|
|
15308
|
+
* process-snapshot window, from a `/proc/<pid>/task/*` tick delta.
|
|
15309
|
+
*
|
|
15310
|
+
* `null` = UNKNOWN, never zero: no previous sample yet (first tick after
|
|
15311
|
+
* boot), the pid was recycled, or this node is not Linux.
|
|
15312
|
+
*/
|
|
15313
|
+
cpuMainPercent: number().nullable(),
|
|
15314
|
+
/**
|
|
15315
|
+
* Instantaneous CPU% of V8's `V8Worker` platform pool over the same window.
|
|
15316
|
+
*
|
|
15317
|
+
* This is the number that rewrote the 2026-08-27 diagnosis — hub-main 73%,
|
|
15318
|
+
* `stream-broker` 61% (`docs/architecture/load-ledger.md`). A CPU chart that
|
|
15319
|
+
* does not separate it from `cpuMainPercent` shows "busy" where the truth is
|
|
15320
|
+
* "allocating too much".
|
|
15321
|
+
*
|
|
15322
|
+
* Concurrent GC is the dominant tenant of that pool but not the only one
|
|
15323
|
+
* (background compilation runs there too), so it is reported as
|
|
15324
|
+
* "GC / V8 helpers" rather than as pure collection time. `null` has the same
|
|
15325
|
+
* meaning as on `cpuMainPercent`.
|
|
15326
|
+
*/
|
|
15327
|
+
cpuGcPercent: number().nullable(),
|
|
15328
|
+
/** Threads seen in the tick scan. `null` under the same conditions. */
|
|
15329
|
+
threadCount: number().nullable(),
|
|
15176
15330
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
15177
|
-
uptimeSec: number()
|
|
15178
|
-
/** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
|
|
15179
|
-
orphaned: boolean()
|
|
15180
|
-
});
|
|
15181
|
-
var KillProcessInputSchema = object({
|
|
15182
|
-
pid: number(),
|
|
15183
|
-
/** Force = SIGKILL. Default is SIGTERM. */
|
|
15184
|
-
force: boolean().optional()
|
|
15185
|
-
});
|
|
15186
|
-
var KillProcessResultSchema = object({
|
|
15187
|
-
success: boolean(),
|
|
15188
|
-
reason: string().optional(),
|
|
15189
|
-
signal: _enum(["SIGTERM", "SIGKILL"]).optional()
|
|
15331
|
+
uptimeSec: number()
|
|
15190
15332
|
});
|
|
15191
15333
|
var DumpHeapSnapshotInputSchema = object({
|
|
15192
15334
|
/** The addon whose runner should dump a heap snapshot. */
|
|
@@ -15199,6 +15341,104 @@ var DumpHeapSnapshotResultSchema = object({
|
|
|
15199
15341
|
pid: number().optional(),
|
|
15200
15342
|
reason: string().optional()
|
|
15201
15343
|
});
|
|
15344
|
+
/**
|
|
15345
|
+
* One point of one function's series.
|
|
15346
|
+
*
|
|
15347
|
+
* The unsuffixed fields are the bucket's **MAXIMUM**, and that choice is the
|
|
15348
|
+
* point of the whole surface. The two obvious reductions both lie: a mean per
|
|
15349
|
+
* bucket smears a spike away, and taking every Nth sample skips it outright.
|
|
15350
|
+
* Either would give us a tool built to find peaks that does not show peaks.
|
|
15351
|
+
* `...Min` carries the other end, `samples` says how many raw snapshots folded
|
|
15352
|
+
* into the bucket, and a mean stays derivable where it is wanted.
|
|
15353
|
+
*
|
|
15354
|
+
* An UNREDUCED point is a one-sample bucket: `samples === 1` and each `...Min`
|
|
15355
|
+
* equals its unsuffixed twin. Reduced and unreduced are the same shape, so a
|
|
15356
|
+
* caller cannot tell which it received — which is what "one reader" means.
|
|
15357
|
+
*/
|
|
15358
|
+
var LoadPointSchema = object({
|
|
15359
|
+
/** Bucket START, or the snapshot's own timestamp when unreduced. */
|
|
15360
|
+
atMs: number(),
|
|
15361
|
+
/** Raw snapshots in this bucket. Never 0 — AN EMPTY BUCKET IS ABSENT. */
|
|
15362
|
+
samples: number().int(),
|
|
15363
|
+
/**
|
|
15364
|
+
* `null` = UNKNOWN and it PROPAGATES: a bucket is null unless every process
|
|
15365
|
+
* of every snapshot in it reported a thread split. A partial sum is a
|
|
15366
|
+
* smaller number that looks exactly as real as a complete one.
|
|
15367
|
+
*/
|
|
15368
|
+
cpuMainPercent: number().nullable(),
|
|
15369
|
+
cpuMainPercentMin: number().nullable(),
|
|
15370
|
+
cpuGcPercent: number().nullable(),
|
|
15371
|
+
cpuGcPercentMin: number().nullable(),
|
|
15372
|
+
/** Lifetime-average CPU%, summed. Always known — and never a rate. */
|
|
15373
|
+
cpuLifetimePercent: number(),
|
|
15374
|
+
cpuLifetimePercentMin: number(),
|
|
15375
|
+
memoryRssBytes: number(),
|
|
15376
|
+
memoryRssBytesMin: number(),
|
|
15377
|
+
processCount: number().int(),
|
|
15378
|
+
processCountMin: number().int()
|
|
15379
|
+
});
|
|
15380
|
+
/** One function's series. `key` is an addonId, `__root__` or `__unattributed__`. */
|
|
15381
|
+
var LoadFunctionSeriesSchema = object({
|
|
15382
|
+
key: string(),
|
|
15383
|
+
kind: _enum([
|
|
15384
|
+
"addon",
|
|
15385
|
+
"root",
|
|
15386
|
+
"unattributed"
|
|
15387
|
+
]),
|
|
15388
|
+
/** Oldest-first. A missing interval is MISSING — never zero-filled. */
|
|
15389
|
+
points: array(LoadPointSchema).readonly()
|
|
15390
|
+
});
|
|
15391
|
+
var NodeLoadSeriesSchema = object({
|
|
15392
|
+
nodeId: string(),
|
|
15393
|
+
/** One entry per function seen in the window, heaviest-first. */
|
|
15394
|
+
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
15395
|
+
/**
|
|
15396
|
+
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
15397
|
+
* reduction was needed — so a caller can always say what one point covers
|
|
15398
|
+
* without having to know whether it was reduced.
|
|
15399
|
+
*/
|
|
15400
|
+
bucketMs: number(),
|
|
15401
|
+
/** Raw snapshots that went into this answer, across both tiers. */
|
|
15402
|
+
retainedSamples: number(),
|
|
15403
|
+
/** Oldest snapshot represented, or `null` when nothing is retained. */
|
|
15404
|
+
oldestAtMs: number().nullable(),
|
|
15405
|
+
/** The fixed sampling cadence in force on the cluster, in ms. */
|
|
15406
|
+
cadenceMs: number(),
|
|
15407
|
+
/**
|
|
15408
|
+
* Did the DURABLE tier contribute? `false` means the answer is the hot ring
|
|
15409
|
+
* alone — an agent (which holds no table), or a store that refused.
|
|
15410
|
+
* Reported because "the last hour" and "the last six hours" are different
|
|
15411
|
+
* questions and an operator must not have to guess which was answered.
|
|
15412
|
+
*/
|
|
15413
|
+
durable: boolean()
|
|
15414
|
+
});
|
|
15415
|
+
var GetLoadSeriesInputSchema = object({
|
|
15416
|
+
/**
|
|
15417
|
+
* The node whose series is wanted.
|
|
15418
|
+
*
|
|
15419
|
+
* NOT named `nodeId`: the generated cap router strips a top-level
|
|
15420
|
+
* `nodeId` from every method input and uses it to ROUTE the call to
|
|
15421
|
+
* that node's provider (`generated-cap-routers.ts`). A series target
|
|
15422
|
+
* called `nodeId` would silently become a routing pin and never reach
|
|
15423
|
+
* the provider. The hub holds every node it hears from, so the
|
|
15424
|
+
* ordinary call is unpinned — answered by the hub, for any node.
|
|
15425
|
+
*/
|
|
15426
|
+
forNodeId: string(),
|
|
15427
|
+
/**
|
|
15428
|
+
* EXCLUSIVE lower bound. A caller passes the newest `atMs` it already
|
|
15429
|
+
* holds and receives only what it is missing, so seeding a live chart
|
|
15430
|
+
* from this method cannot double a point already drawn.
|
|
15431
|
+
*/
|
|
15432
|
+
sinceMs: number().optional(),
|
|
15433
|
+
/**
|
|
15434
|
+
* Most points the caller wants PER FUNCTION. The window is reduced to fit,
|
|
15435
|
+
* preserving min and max per bucket.
|
|
15436
|
+
*
|
|
15437
|
+
* Absent means NO reduction — legitimate for a short window and a trap for a
|
|
15438
|
+
* long one, which is why a chart passes its own pixel width.
|
|
15439
|
+
*/
|
|
15440
|
+
maxPoints: number().int().positive().optional()
|
|
15441
|
+
});
|
|
15202
15442
|
var SystemMetricsSchema = object({
|
|
15203
15443
|
cpuPercent: number(),
|
|
15204
15444
|
memoryPercent: number(),
|
|
@@ -15244,28 +15484,44 @@ var metricsProviderCapability = {
|
|
|
15244
15484
|
getAddonStats: method(object({ addonId: string() }), PidResourceStatsSchema.nullable()),
|
|
15245
15485
|
/**
|
|
15246
15486
|
* Snapshot of every camstack-related process on this node with a
|
|
15247
|
-
*
|
|
15248
|
-
* Processes tab: cross-references `$process.list` against a `ps` scan
|
|
15249
|
-
*
|
|
15250
|
-
*
|
|
15487
|
+
* root/managed/system classification. Powers the Cluster → Agent →
|
|
15488
|
+
* Processes tab: cross-references `$process.list` against a `ps` scan so
|
|
15489
|
+
* per-addon CPU and RSS can be attributed, and so a process the cluster
|
|
15490
|
+
* does not manage is still visible.
|
|
15491
|
+
*
|
|
15492
|
+
* **Read-only, by design.** This cap once carried a `killProcess`
|
|
15493
|
+
* mutation; it was deleted on 2026-08-27. A runner's lifecycle belongs to
|
|
15494
|
+
* `CrashSupervisor` and is driven through `addons.restartAddon` /
|
|
15495
|
+
* `$process.restart` — signalling a raw pid went around the supervisor
|
|
15496
|
+
* (D6), and the one class it was willing to signal turned out to be the
|
|
15497
|
+
* container's own init and the operator's desktop app.
|
|
15251
15498
|
*/
|
|
15252
15499
|
listNodeProcesses: method(_void(), array(NodeProcessSchema).readonly()),
|
|
15253
15500
|
/**
|
|
15254
|
-
*
|
|
15255
|
-
*
|
|
15256
|
-
*
|
|
15257
|
-
*
|
|
15501
|
+
* The retained per-node load series — the ONE reader over BOTH tiers.
|
|
15502
|
+
*
|
|
15503
|
+
* The in-memory ring is the HOT window (the last 180 snapshots, held by
|
|
15504
|
+
* every node's `native-metrics`); the hub's `metrics:node-load-samples`
|
|
15505
|
+
* table is the COLD one (the operator's retention, six hours by default).
|
|
15506
|
+
* This method merges them and DEDUPES on `atMs`, so a snapshot present in
|
|
15507
|
+
* both contributes once and the caller never learns which tier a point
|
|
15508
|
+
* came from. There is deliberately no second read surface: two readers is
|
|
15509
|
+
* how two charts start disagreeing about the same node.
|
|
15510
|
+
*
|
|
15511
|
+
* Reads only; nothing is sampled to answer it. Normally called UNPINNED —
|
|
15512
|
+
* the hub hears every node's snapshot and holds every node's rows — and
|
|
15513
|
+
* answers for any `forNodeId`. Pinned to an agent it answers from that
|
|
15514
|
+
* agent's ring alone (`durable: false`). Empty is a legitimate answer: a
|
|
15515
|
+
* node nobody has heard from has no series, and saying so is the truth.
|
|
15258
15516
|
*/
|
|
15259
|
-
|
|
15260
|
-
kind: "mutation",
|
|
15261
|
-
auth: "admin"
|
|
15262
|
-
}),
|
|
15517
|
+
getLoadSeries: method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema),
|
|
15263
15518
|
/**
|
|
15264
15519
|
* Tell the addon's forked runner to write a V8 heap snapshot to disk (via
|
|
15265
15520
|
* SIGUSR2 — the runner's diagnostic handler). Also logs its
|
|
15266
|
-
* `process.memoryUsage()` + heap-space breakdown.
|
|
15267
|
-
*
|
|
15268
|
-
* attribution; copy the returned path off the
|
|
15521
|
+
* `process.memoryUsage()` + heap-space breakdown. Resolves the pid from
|
|
15522
|
+
* `$process.list`, so it can only reach a runner this node spawned. Use
|
|
15523
|
+
* for deep per-addon memory attribution; copy the returned path off the
|
|
15524
|
+
* node to analyze.
|
|
15269
15525
|
*/
|
|
15270
15526
|
dumpHeapSnapshot: method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
15271
15527
|
kind: "mutation",
|
|
@@ -33777,6 +34033,15 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33777
34033
|
* authority over the whole hierarchy and answers for every layer, so the
|
|
33778
34034
|
* layer selector needs a name the transport does not already own.
|
|
33779
34035
|
*/
|
|
34036
|
+
/**
|
|
34037
|
+
* One contribution, plus WHO reported it.
|
|
34038
|
+
*
|
|
34039
|
+
* The addon and node are added by the hub as it enumerates providers, never by
|
|
34040
|
+
* the contributor: an addon reporting its own identity could report somebody
|
|
34041
|
+
* else's, and the whole point of this surface is that no claim is made by
|
|
34042
|
+
* anyone but its owner.
|
|
34043
|
+
*/
|
|
34044
|
+
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
33780
34045
|
var GetLoggingSettingsInputSchema = object({
|
|
33781
34046
|
scopeNodeId: string().optional(),
|
|
33782
34047
|
/**
|
|
@@ -33879,6 +34144,22 @@ var systemCapability = {
|
|
|
33879
34144
|
*/
|
|
33880
34145
|
getRequestCensus: method(_void(), RequestCensusStatusSchema, { auth: "admin" }),
|
|
33881
34146
|
/**
|
|
34147
|
+
* Every `load-contribution` an addon on this cluster reports — each
|
|
34148
|
+
* addon's OWN cost, already attributed by the addon that owns it.
|
|
34149
|
+
*
|
|
34150
|
+
* There is no central list of what costs what: an addon that spawns a
|
|
34151
|
+
* per-camera child declares it, and one that cannot attribute its cost
|
|
34152
|
+
* (the shared inference pool) declares THAT. So a new cost family appears
|
|
34153
|
+
* here the moment its addon is redeployed, with nobody editing anything.
|
|
34154
|
+
*
|
|
34155
|
+
* What this does NOT do is measure the node. `metrics.node-processes-
|
|
34156
|
+
* snapshot` still does that, and the difference between the two is the
|
|
34157
|
+
* finding: a process no contribution claims is either a leak or a family
|
|
34158
|
+
* nobody has taught to report. Both belong in the unattributed bucket, and
|
|
34159
|
+
* neither may be folded into a camera.
|
|
34160
|
+
*/
|
|
34161
|
+
getLoadContributions: method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }),
|
|
34162
|
+
/**
|
|
33882
34163
|
* The logging settings document — levels and armed diagnostics — resolved
|
|
33883
34164
|
* for `nodeId`, or for the cluster when `nodeId` is absent.
|
|
33884
34165
|
*
|
|
@@ -35127,6 +35408,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
35127
35408
|
lawnMowerControlCapability,
|
|
35128
35409
|
llmCapability,
|
|
35129
35410
|
llmRuntimeCapability,
|
|
35411
|
+
loadContributionCapability,
|
|
35130
35412
|
localNetworkCapability,
|
|
35131
35413
|
lockControlCapability,
|
|
35132
35414
|
logChannelsCapability,
|
|
@@ -36150,6 +36432,12 @@ Object.freeze({
|
|
|
36150
36432
|
addonId: null,
|
|
36151
36433
|
access: "create"
|
|
36152
36434
|
},
|
|
36435
|
+
"dataStoreProvider.insertMany": {
|
|
36436
|
+
capName: "data-store-provider",
|
|
36437
|
+
capScope: "system",
|
|
36438
|
+
addonId: null,
|
|
36439
|
+
access: "create"
|
|
36440
|
+
},
|
|
36153
36441
|
"dataStoreProvider.isEmpty": {
|
|
36154
36442
|
capName: "data-store-provider",
|
|
36155
36443
|
capScope: "system",
|
|
@@ -37464,6 +37752,12 @@ Object.freeze({
|
|
|
37464
37752
|
addonId: null,
|
|
37465
37753
|
access: "create"
|
|
37466
37754
|
},
|
|
37755
|
+
"loadContribution.list": {
|
|
37756
|
+
capName: "load-contribution",
|
|
37757
|
+
capScope: "system",
|
|
37758
|
+
addonId: null,
|
|
37759
|
+
access: "view"
|
|
37760
|
+
},
|
|
37467
37761
|
"localNetwork.downloadCa": {
|
|
37468
37762
|
capName: "local-network",
|
|
37469
37763
|
capScope: "system",
|
|
@@ -37764,17 +38058,17 @@ Object.freeze({
|
|
|
37764
38058
|
addonId: null,
|
|
37765
38059
|
access: "view"
|
|
37766
38060
|
},
|
|
37767
|
-
"metricsProvider.
|
|
38061
|
+
"metricsProvider.getLoadSeries": {
|
|
37768
38062
|
capName: "metrics-provider",
|
|
37769
38063
|
capScope: "system",
|
|
37770
38064
|
addonId: null,
|
|
37771
38065
|
access: "view"
|
|
37772
38066
|
},
|
|
37773
|
-
"metricsProvider.
|
|
38067
|
+
"metricsProvider.getProcessStats": {
|
|
37774
38068
|
capName: "metrics-provider",
|
|
37775
38069
|
capScope: "system",
|
|
37776
38070
|
addonId: null,
|
|
37777
|
-
access: "
|
|
38071
|
+
access: "view"
|
|
37778
38072
|
},
|
|
37779
38073
|
"metricsProvider.listAddonInstances": {
|
|
37780
38074
|
capName: "metrics-provider",
|
|
@@ -39786,6 +40080,12 @@ Object.freeze({
|
|
|
39786
40080
|
addonId: null,
|
|
39787
40081
|
access: "create"
|
|
39788
40082
|
},
|
|
40083
|
+
"settingsStore.insertMany": {
|
|
40084
|
+
capName: "settings-store",
|
|
40085
|
+
capScope: "system",
|
|
40086
|
+
addonId: null,
|
|
40087
|
+
access: "create"
|
|
40088
|
+
},
|
|
39789
40089
|
"settingsStore.isEmpty": {
|
|
39790
40090
|
capName: "settings-store",
|
|
39791
40091
|
capScope: "system",
|
|
@@ -40398,6 +40698,12 @@ Object.freeze({
|
|
|
40398
40698
|
addonId: null,
|
|
40399
40699
|
access: "create"
|
|
40400
40700
|
},
|
|
40701
|
+
"system.getLoadContributions": {
|
|
40702
|
+
capName: "system",
|
|
40703
|
+
capScope: "system",
|
|
40704
|
+
addonId: null,
|
|
40705
|
+
access: "view"
|
|
40706
|
+
},
|
|
40401
40707
|
"system.getLoggingSettings": {
|
|
40402
40708
|
capName: "system",
|
|
40403
40709
|
capScope: "system",
|