@camstack/addon-pipeline 1.2.136 → 1.2.138
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/audio-analyzer/index.js +7 -7
- package/dist/audio-analyzer/index.mjs +4 -4
- package/dist/detection-pipeline/index.js +61 -23
- package/dist/detection-pipeline/index.mjs +53 -15
- package/dist/{dist-BzLiQ8Ue.js → dist-BuIP0499.js} +315 -25
- package/dist/{dist-C1dXLLQq.mjs → dist-CmEYRK7G.mjs} +304 -26
- package/dist/{event-loop-stall-monitor-DjV4Bow7.js → event-loop-stall-monitor-Bef2jXMX.js} +1 -1
- package/dist/{event-loop-stall-monitor-CU-xxX5c.mjs → event-loop-stall-monitor-JGTFb0Uv.mjs} +1 -1
- package/dist/{lazy-sharp-DxWmhTqk.js → lazy-sharp-DH2eVehm.js} +3 -3
- package/dist/motion-wasm/index.js +3 -3
- package/dist/motion-wasm/index.mjs +3 -3
- package/dist/node-ChdX9lv7.js +721 -0
- package/dist/node-J07GBWT3.mjs +690 -0
- package/dist/pipeline-runner/index.js +87 -18
- package/dist/pipeline-runner/index.mjs +87 -18
- package/dist/{process-memory-CZK3D3kM.js → process-memory-CJoZemF4.js} +2 -2
- package/dist/{process-memory-CaEwi5Cd.mjs → process-memory-DAKxUb9d.mjs} +2 -2
- package/dist/recorder/index.js +39 -7
- package/dist/recorder/index.mjs +36 -4
- package/dist/{segment-demux-js-BbpqygHL.js → segment-demux-js-BgXbXZnp.js} +1 -1
- package/dist/{segment-demux-js-njRO85gd.mjs → segment-demux-js-Ck9ly4bX.mjs} +1 -1
- package/dist/session-decode/decode-worker-child.js +115 -5
- package/dist/session-decode/decode-worker-child.mjs +115 -5
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CLtMmF1E.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Cad8960O.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-xdmO8wYp.mjs +26 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BrTM_tsb.mjs +26 -0
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-CP7Xhd8J.mjs → hostInit-Gd3OcDIa.mjs} +3 -3
- package/dist/stream-broker/index.js +245 -535
- package/dist/stream-broker/index.mjs +242 -530
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/{worker-protocol-DvTZBvh2.js → worker-protocol-Bpz62eyB.js} +2 -1
- package/dist/{worker-protocol-DxsVx0G7.mjs → worker-protocol-wMS29PG9.mjs} +2 -1
- package/package.json +17 -3
- package/dist/addon-utils-CKf8kbwh.js +0 -625
- package/dist/addon-utils-CgBCF-mE.mjs +0 -583
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DqplWP1i.mjs +0 -26
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DKMXG57X.mjs +0 -26
- package/dist/{lazy-sharp-BtT5x-qP.mjs → lazy-sharp-DXsqwpph.mjs} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-BZL-fdNj.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -436,7 +436,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
436
436
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
437
437
|
/**
|
|
438
438
|
* Periodic per-node process-tree snapshot (camstack-related pids
|
|
439
|
-
* with
|
|
439
|
+
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
440
440
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
441
441
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
442
442
|
*/
|
|
@@ -7173,6 +7173,40 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
|
|
|
7173
7173
|
input: unknown()
|
|
7174
7174
|
}), unknown(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
|
|
7175
7175
|
/**
|
|
7176
|
+
* The ONE retry schedule for work that can fail simply because the node was
|
|
7177
|
+
* still booting.
|
|
7178
|
+
*
|
|
7179
|
+
* The measured failure (docs/design/boot-to-usable-camera.md, item E): a hub
|
|
7180
|
+
* boot that serialised its addon graph starved every driver dial on it. Fifteen
|
|
7181
|
+
* Hikvision devices logged `Initial probe did not complete — scheduling retry
|
|
7182
|
+
* chain {firstRetryMs=300000}` and then sat unprobed for five minutes, long
|
|
7183
|
+
* after the condition that caused the failure had gone. The Tailscale addon's
|
|
7184
|
+
* auto-rejoin carried a byte-identical schedule, armed from `initialize()`, for
|
|
7185
|
+
* the same reason.
|
|
7186
|
+
*
|
|
7187
|
+
* The shape that fixes it: **two cheap attempts first, then the long tail.**
|
|
7188
|
+
*
|
|
7189
|
+
* - 15 s / 60 s — the boot window. Anything that failed because the node was
|
|
7190
|
+
* busy is recovered here, before an operator can open the UI and see a
|
|
7191
|
+
* camera that is wrong about itself.
|
|
7192
|
+
* - 5 m → 90 m — the genuinely-offline case. A battery cam that is asleep, a
|
|
7193
|
+
* VLAN that is down, a peer that has not come back. Unchanged in intent from
|
|
7194
|
+
* the schedule this replaces (~3 h 30 m of coverage): here ~3 h 21 m, then
|
|
7195
|
+
* the chain ends and manual re-arm (reprobe / restart) is the only path.
|
|
7196
|
+
*
|
|
7197
|
+
* Bounded on purpose — see D6. A chain that never gives up is a busy loop with
|
|
7198
|
+
* extra steps.
|
|
7199
|
+
*/
|
|
7200
|
+
var BOOT_RECOVERY_BACKOFF_MS = [
|
|
7201
|
+
15e3,
|
|
7202
|
+
6e4,
|
|
7203
|
+
5 * 6e4,
|
|
7204
|
+
15 * 6e4,
|
|
7205
|
+
30 * 6e4,
|
|
7206
|
+
60 * 6e4,
|
|
7207
|
+
90 * 6e4
|
|
7208
|
+
];
|
|
7209
|
+
/**
|
|
7176
7210
|
* Type-safe JSON parsing helpers.
|
|
7177
7211
|
*
|
|
7178
7212
|
* `JSON.parse` is typed as `any` in lib.es5.d.ts, which triggers
|
|
@@ -12868,6 +12902,19 @@ var SettingsRecordSchema = object({
|
|
|
12868
12902
|
data: record(string(), unknown())
|
|
12869
12903
|
});
|
|
12870
12904
|
/**
|
|
12905
|
+
* One record of a BULK insert — {@link SettingsRecordSchema} with the id made
|
|
12906
|
+
* optional.
|
|
12907
|
+
*
|
|
12908
|
+
* A separate schema rather than loosening the shared one: every other method
|
|
12909
|
+
* on this cap addresses a row BY its id, and making that field optional
|
|
12910
|
+
* everywhere would turn a forgotten key into a silently generated one on
|
|
12911
|
+
* `update` and `delete` as well.
|
|
12912
|
+
*/
|
|
12913
|
+
var BulkRecordSchema = object({
|
|
12914
|
+
id: string().optional(),
|
|
12915
|
+
data: record(string(), unknown())
|
|
12916
|
+
});
|
|
12917
|
+
/**
|
|
12871
12918
|
* Column declaration for a structured (SQL-backed) collection.
|
|
12872
12919
|
*
|
|
12873
12920
|
* Logical types — the backend translates each to the matching SQLite
|
|
@@ -12924,6 +12971,10 @@ method(object({
|
|
|
12924
12971
|
collection: string(),
|
|
12925
12972
|
record: SettingsRecordSchema
|
|
12926
12973
|
}), _void(), { kind: "mutation" }), method(object({
|
|
12974
|
+
namespace: string().optional(),
|
|
12975
|
+
collection: string(),
|
|
12976
|
+
records: array(BulkRecordSchema).readonly()
|
|
12977
|
+
}), object({ inserted: number().int() }), { kind: "mutation" }), method(object({
|
|
12927
12978
|
namespace: string().optional(),
|
|
12928
12979
|
collection: string(),
|
|
12929
12980
|
id: string(),
|
|
@@ -13032,6 +13083,13 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
13032
13083
|
}), _void(), {
|
|
13033
13084
|
kind: "mutation",
|
|
13034
13085
|
auth: "admin"
|
|
13086
|
+
}), method(object({
|
|
13087
|
+
namespace: string().optional(),
|
|
13088
|
+
collection: string(),
|
|
13089
|
+
records: array(BulkRecordSchema).readonly()
|
|
13090
|
+
}), object({ inserted: number().int() }), {
|
|
13091
|
+
kind: "mutation",
|
|
13092
|
+
auth: "admin"
|
|
13035
13093
|
}), method(object({
|
|
13036
13094
|
namespace: string().optional(),
|
|
13037
13095
|
collection: string(),
|
|
@@ -14852,6 +14910,82 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
14852
14910
|
limit: number().optional(),
|
|
14853
14911
|
tags: record(string(), string()).optional()
|
|
14854
14912
|
}), array(LogEntrySchema).readonly());
|
|
14913
|
+
var LoadContributionSchema = object({
|
|
14914
|
+
role: _enum([
|
|
14915
|
+
"decode",
|
|
14916
|
+
"transcode",
|
|
14917
|
+
"recording",
|
|
14918
|
+
"streaming",
|
|
14919
|
+
"detection"
|
|
14920
|
+
]),
|
|
14921
|
+
/**
|
|
14922
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
14923
|
+
* `tags.deviceId`. `null` means this cost genuinely belongs to no single
|
|
14924
|
+
* camera (a shared pool), NOT that the contributor forgot to look it up: a
|
|
14925
|
+
* contributor that cannot name its camera must not emit the entry at all,
|
|
14926
|
+
* because an unnamed per-camera entry is indistinguishable from a shared one
|
|
14927
|
+
* and would quietly turn one camera's cost into everybody's.
|
|
14928
|
+
*/
|
|
14929
|
+
deviceId: number().int().positive().nullable(),
|
|
14930
|
+
attribution: _enum([
|
|
14931
|
+
"measured",
|
|
14932
|
+
"accounted",
|
|
14933
|
+
"unattributable"
|
|
14934
|
+
]),
|
|
14935
|
+
/**
|
|
14936
|
+
* What ONE entry is, in the contributor's own words — `615/high`,
|
|
14937
|
+
* `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
|
|
14938
|
+
* family and inventing a common one would lose the only information that
|
|
14939
|
+
* makes two entries for the same camera distinguishable.
|
|
14940
|
+
*/
|
|
14941
|
+
unit: string(),
|
|
14942
|
+
/**
|
|
14943
|
+
* The OS process this cost lives in, when there is one. Present so a
|
|
14944
|
+
* consumer can (a) tell two generations of the same unit apart across a
|
|
14945
|
+
* restart, and (b) subtract claimed processes from the node's process
|
|
14946
|
+
* snapshot to see what NOBODY claimed. Absent for an entry that owns no
|
|
14947
|
+
* process of its own.
|
|
14948
|
+
*/
|
|
14949
|
+
pid: number().int().positive().optional(),
|
|
14950
|
+
/**
|
|
14951
|
+
* When this generation started. The pid's incarnation marker: a consumer
|
|
14952
|
+
* differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
|
|
14953
|
+
* window when this changes, because the counter restarted from zero in a new
|
|
14954
|
+
* process.
|
|
14955
|
+
*/
|
|
14956
|
+
startedAtMs: number().optional(),
|
|
14957
|
+
/**
|
|
14958
|
+
* CUMULATIVE CPU seconds this unit has consumed since it started — user +
|
|
14959
|
+
* system, read from the child's own `/proc/<pid>/stat` at the moment the
|
|
14960
|
+
* contribution is asked for.
|
|
14961
|
+
*
|
|
14962
|
+
* Cumulative and not a rate on purpose: a rate needs a window, a window
|
|
14963
|
+
* needs a sampler, and a new per-node sampler is the defect half of
|
|
14964
|
+
* `docs/architecture/load-ledger.md` documents. A counter can be differenced
|
|
14965
|
+
* by whoever already keeps a history; a rate cannot be un-averaged.
|
|
14966
|
+
*
|
|
14967
|
+
* Absent — never zero — on a node with no `/proc`, on a read failure, and on
|
|
14968
|
+
* an entry with no process.
|
|
14969
|
+
*/
|
|
14970
|
+
cpuSeconds: number().optional(),
|
|
14971
|
+
/** Resident bytes of this unit's process, same source and same rules. */
|
|
14972
|
+
rssBytes: number().optional()
|
|
14973
|
+
});
|
|
14974
|
+
var loadContributionCapability = {
|
|
14975
|
+
name: "load-contribution",
|
|
14976
|
+
scope: "system",
|
|
14977
|
+
mode: "collection",
|
|
14978
|
+
internal: true,
|
|
14979
|
+
methods: {
|
|
14980
|
+
/**
|
|
14981
|
+
* This addon's own cost entries, computed live from state it already
|
|
14982
|
+
* holds. Inert: no persistence, no sampling, no timer. It is answered on
|
|
14983
|
+
* whatever beat the caller already has.
|
|
14984
|
+
*/
|
|
14985
|
+
list: method(_void(), array(LoadContributionSchema).readonly()) },
|
|
14986
|
+
/** In-process only — enumerated through `addons.listCapabilityProviders`. */
|
|
14987
|
+
mount: { kind: "skip" }
|
|
14988
|
+
};
|
|
14855
14989
|
/**
|
|
14856
14990
|
* `login-method` — collection cap through which auth addons contribute
|
|
14857
14991
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -15055,8 +15189,7 @@ var NodeProcessSchema = object({
|
|
|
15055
15189
|
classification: _enum([
|
|
15056
15190
|
"root",
|
|
15057
15191
|
"managed",
|
|
15058
|
-
"system"
|
|
15059
|
-
"ghost"
|
|
15192
|
+
"system"
|
|
15060
15193
|
]),
|
|
15061
15194
|
/** `$process` addon binding when `managed`, else null. */
|
|
15062
15195
|
addonId: string().nullable(),
|
|
@@ -15064,22 +15197,39 @@ var NodeProcessSchema = object({
|
|
|
15064
15197
|
nodeId: string().nullable(),
|
|
15065
15198
|
/** Truncated command line. */
|
|
15066
15199
|
command: string(),
|
|
15200
|
+
/**
|
|
15201
|
+
* `ps pcpu` — CPU averaged over the process's WHOLE LIFETIME, not a rate.
|
|
15202
|
+
* On a runner up for days it barely moves. Fine as a column, useless as a
|
|
15203
|
+
* series: use `cpuMainPercent + cpuGcPercent` for anything time-varying.
|
|
15204
|
+
*/
|
|
15067
15205
|
cpuPercent: number(),
|
|
15068
15206
|
memoryRssBytes: number(),
|
|
15207
|
+
/**
|
|
15208
|
+
* Instantaneous CPU% of the process's own threads over the last
|
|
15209
|
+
* process-snapshot window, from a `/proc/<pid>/task/*` tick delta.
|
|
15210
|
+
*
|
|
15211
|
+
* `null` = UNKNOWN, never zero: no previous sample yet (first tick after
|
|
15212
|
+
* boot), the pid was recycled, or this node is not Linux.
|
|
15213
|
+
*/
|
|
15214
|
+
cpuMainPercent: number().nullable(),
|
|
15215
|
+
/**
|
|
15216
|
+
* Instantaneous CPU% of V8's `V8Worker` platform pool over the same window.
|
|
15217
|
+
*
|
|
15218
|
+
* This is the number that rewrote the 2026-08-27 diagnosis — hub-main 73%,
|
|
15219
|
+
* `stream-broker` 61% (`docs/architecture/load-ledger.md`). A CPU chart that
|
|
15220
|
+
* does not separate it from `cpuMainPercent` shows "busy" where the truth is
|
|
15221
|
+
* "allocating too much".
|
|
15222
|
+
*
|
|
15223
|
+
* Concurrent GC is the dominant tenant of that pool but not the only one
|
|
15224
|
+
* (background compilation runs there too), so it is reported as
|
|
15225
|
+
* "GC / V8 helpers" rather than as pure collection time. `null` has the same
|
|
15226
|
+
* meaning as on `cpuMainPercent`.
|
|
15227
|
+
*/
|
|
15228
|
+
cpuGcPercent: number().nullable(),
|
|
15229
|
+
/** Threads seen in the tick scan. `null` under the same conditions. */
|
|
15230
|
+
threadCount: number().nullable(),
|
|
15069
15231
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
15070
|
-
uptimeSec: number()
|
|
15071
|
-
/** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
|
|
15072
|
-
orphaned: boolean()
|
|
15073
|
-
});
|
|
15074
|
-
var KillProcessInputSchema = object({
|
|
15075
|
-
pid: number(),
|
|
15076
|
-
/** Force = SIGKILL. Default is SIGTERM. */
|
|
15077
|
-
force: boolean().optional()
|
|
15078
|
-
});
|
|
15079
|
-
var KillProcessResultSchema = object({
|
|
15080
|
-
success: boolean(),
|
|
15081
|
-
reason: string().optional(),
|
|
15082
|
-
signal: _enum(["SIGTERM", "SIGKILL"]).optional()
|
|
15232
|
+
uptimeSec: number()
|
|
15083
15233
|
});
|
|
15084
15234
|
var DumpHeapSnapshotInputSchema = object({
|
|
15085
15235
|
/** The addon whose runner should dump a heap snapshot. */
|
|
@@ -15092,6 +15242,104 @@ var DumpHeapSnapshotResultSchema = object({
|
|
|
15092
15242
|
pid: number().optional(),
|
|
15093
15243
|
reason: string().optional()
|
|
15094
15244
|
});
|
|
15245
|
+
/**
|
|
15246
|
+
* One point of one function's series.
|
|
15247
|
+
*
|
|
15248
|
+
* The unsuffixed fields are the bucket's **MAXIMUM**, and that choice is the
|
|
15249
|
+
* point of the whole surface. The two obvious reductions both lie: a mean per
|
|
15250
|
+
* bucket smears a spike away, and taking every Nth sample skips it outright.
|
|
15251
|
+
* Either would give us a tool built to find peaks that does not show peaks.
|
|
15252
|
+
* `...Min` carries the other end, `samples` says how many raw snapshots folded
|
|
15253
|
+
* into the bucket, and a mean stays derivable where it is wanted.
|
|
15254
|
+
*
|
|
15255
|
+
* An UNREDUCED point is a one-sample bucket: `samples === 1` and each `...Min`
|
|
15256
|
+
* equals its unsuffixed twin. Reduced and unreduced are the same shape, so a
|
|
15257
|
+
* caller cannot tell which it received — which is what "one reader" means.
|
|
15258
|
+
*/
|
|
15259
|
+
var LoadPointSchema = object({
|
|
15260
|
+
/** Bucket START, or the snapshot's own timestamp when unreduced. */
|
|
15261
|
+
atMs: number(),
|
|
15262
|
+
/** Raw snapshots in this bucket. Never 0 — AN EMPTY BUCKET IS ABSENT. */
|
|
15263
|
+
samples: number().int(),
|
|
15264
|
+
/**
|
|
15265
|
+
* `null` = UNKNOWN and it PROPAGATES: a bucket is null unless every process
|
|
15266
|
+
* of every snapshot in it reported a thread split. A partial sum is a
|
|
15267
|
+
* smaller number that looks exactly as real as a complete one.
|
|
15268
|
+
*/
|
|
15269
|
+
cpuMainPercent: number().nullable(),
|
|
15270
|
+
cpuMainPercentMin: number().nullable(),
|
|
15271
|
+
cpuGcPercent: number().nullable(),
|
|
15272
|
+
cpuGcPercentMin: number().nullable(),
|
|
15273
|
+
/** Lifetime-average CPU%, summed. Always known — and never a rate. */
|
|
15274
|
+
cpuLifetimePercent: number(),
|
|
15275
|
+
cpuLifetimePercentMin: number(),
|
|
15276
|
+
memoryRssBytes: number(),
|
|
15277
|
+
memoryRssBytesMin: number(),
|
|
15278
|
+
processCount: number().int(),
|
|
15279
|
+
processCountMin: number().int()
|
|
15280
|
+
});
|
|
15281
|
+
/** One function's series. `key` is an addonId, `__root__` or `__unattributed__`. */
|
|
15282
|
+
var LoadFunctionSeriesSchema = object({
|
|
15283
|
+
key: string(),
|
|
15284
|
+
kind: _enum([
|
|
15285
|
+
"addon",
|
|
15286
|
+
"root",
|
|
15287
|
+
"unattributed"
|
|
15288
|
+
]),
|
|
15289
|
+
/** Oldest-first. A missing interval is MISSING — never zero-filled. */
|
|
15290
|
+
points: array(LoadPointSchema).readonly()
|
|
15291
|
+
});
|
|
15292
|
+
var NodeLoadSeriesSchema = object({
|
|
15293
|
+
nodeId: string(),
|
|
15294
|
+
/** One entry per function seen in the window, heaviest-first. */
|
|
15295
|
+
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
15296
|
+
/**
|
|
15297
|
+
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
15298
|
+
* reduction was needed — so a caller can always say what one point covers
|
|
15299
|
+
* without having to know whether it was reduced.
|
|
15300
|
+
*/
|
|
15301
|
+
bucketMs: number(),
|
|
15302
|
+
/** Raw snapshots that went into this answer, across both tiers. */
|
|
15303
|
+
retainedSamples: number(),
|
|
15304
|
+
/** Oldest snapshot represented, or `null` when nothing is retained. */
|
|
15305
|
+
oldestAtMs: number().nullable(),
|
|
15306
|
+
/** The fixed sampling cadence in force on the cluster, in ms. */
|
|
15307
|
+
cadenceMs: number(),
|
|
15308
|
+
/**
|
|
15309
|
+
* Did the DURABLE tier contribute? `false` means the answer is the hot ring
|
|
15310
|
+
* alone — an agent (which holds no table), or a store that refused.
|
|
15311
|
+
* Reported because "the last hour" and "the last six hours" are different
|
|
15312
|
+
* questions and an operator must not have to guess which was answered.
|
|
15313
|
+
*/
|
|
15314
|
+
durable: boolean()
|
|
15315
|
+
});
|
|
15316
|
+
var GetLoadSeriesInputSchema = object({
|
|
15317
|
+
/**
|
|
15318
|
+
* The node whose series is wanted.
|
|
15319
|
+
*
|
|
15320
|
+
* NOT named `nodeId`: the generated cap router strips a top-level
|
|
15321
|
+
* `nodeId` from every method input and uses it to ROUTE the call to
|
|
15322
|
+
* that node's provider (`generated-cap-routers.ts`). A series target
|
|
15323
|
+
* called `nodeId` would silently become a routing pin and never reach
|
|
15324
|
+
* the provider. The hub holds every node it hears from, so the
|
|
15325
|
+
* ordinary call is unpinned — answered by the hub, for any node.
|
|
15326
|
+
*/
|
|
15327
|
+
forNodeId: string(),
|
|
15328
|
+
/**
|
|
15329
|
+
* EXCLUSIVE lower bound. A caller passes the newest `atMs` it already
|
|
15330
|
+
* holds and receives only what it is missing, so seeding a live chart
|
|
15331
|
+
* from this method cannot double a point already drawn.
|
|
15332
|
+
*/
|
|
15333
|
+
sinceMs: number().optional(),
|
|
15334
|
+
/**
|
|
15335
|
+
* Most points the caller wants PER FUNCTION. The window is reduced to fit,
|
|
15336
|
+
* preserving min and max per bucket.
|
|
15337
|
+
*
|
|
15338
|
+
* Absent means NO reduction — legitimate for a short window and a trap for a
|
|
15339
|
+
* long one, which is why a chart passes its own pixel width.
|
|
15340
|
+
*/
|
|
15341
|
+
maxPoints: number().int().positive().optional()
|
|
15342
|
+
});
|
|
15095
15343
|
var SystemMetricsSchema = object({
|
|
15096
15344
|
cpuPercent: number(),
|
|
15097
15345
|
memoryPercent: number(),
|
|
@@ -15102,10 +15350,7 @@ var SystemMetricsSchema = object({
|
|
|
15102
15350
|
gpuPercent: number().optional(),
|
|
15103
15351
|
gpuMemoryPercent: number().optional()
|
|
15104
15352
|
});
|
|
15105
|
-
method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(
|
|
15106
|
-
kind: "mutation",
|
|
15107
|
-
auth: "admin"
|
|
15108
|
-
}), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
15353
|
+
method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
15109
15354
|
kind: "mutation",
|
|
15110
15355
|
auth: "admin"
|
|
15111
15356
|
});
|
|
@@ -29405,6 +29650,15 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29405
29650
|
* authority over the whole hierarchy and answers for every layer, so the
|
|
29406
29651
|
* layer selector needs a name the transport does not already own.
|
|
29407
29652
|
*/
|
|
29653
|
+
/**
|
|
29654
|
+
* One contribution, plus WHO reported it.
|
|
29655
|
+
*
|
|
29656
|
+
* The addon and node are added by the hub as it enumerates providers, never by
|
|
29657
|
+
* the contributor: an addon reporting its own identity could report somebody
|
|
29658
|
+
* else's, and the whole point of this surface is that no claim is made by
|
|
29659
|
+
* anyone but its owner.
|
|
29660
|
+
*/
|
|
29661
|
+
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
29408
29662
|
var GetLoggingSettingsInputSchema = object({
|
|
29409
29663
|
scopeNodeId: string().optional(),
|
|
29410
29664
|
/**
|
|
@@ -29463,7 +29717,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
29463
29717
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
29464
29718
|
kind: "mutation",
|
|
29465
29719
|
auth: "admin"
|
|
29466
|
-
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
29720
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
29467
29721
|
kind: "mutation",
|
|
29468
29722
|
auth: "admin"
|
|
29469
29723
|
});
|
|
@@ -31238,6 +31492,12 @@ Object.freeze({
|
|
|
31238
31492
|
addonId: null,
|
|
31239
31493
|
access: "create"
|
|
31240
31494
|
},
|
|
31495
|
+
"dataStoreProvider.insertMany": {
|
|
31496
|
+
capName: "data-store-provider",
|
|
31497
|
+
capScope: "system",
|
|
31498
|
+
addonId: null,
|
|
31499
|
+
access: "create"
|
|
31500
|
+
},
|
|
31241
31501
|
"dataStoreProvider.isEmpty": {
|
|
31242
31502
|
capName: "data-store-provider",
|
|
31243
31503
|
capScope: "system",
|
|
@@ -32552,6 +32812,12 @@ Object.freeze({
|
|
|
32552
32812
|
addonId: null,
|
|
32553
32813
|
access: "create"
|
|
32554
32814
|
},
|
|
32815
|
+
"loadContribution.list": {
|
|
32816
|
+
capName: "load-contribution",
|
|
32817
|
+
capScope: "system",
|
|
32818
|
+
addonId: null,
|
|
32819
|
+
access: "view"
|
|
32820
|
+
},
|
|
32555
32821
|
"localNetwork.downloadCa": {
|
|
32556
32822
|
capName: "local-network",
|
|
32557
32823
|
capScope: "system",
|
|
@@ -32852,17 +33118,17 @@ Object.freeze({
|
|
|
32852
33118
|
addonId: null,
|
|
32853
33119
|
access: "view"
|
|
32854
33120
|
},
|
|
32855
|
-
"metricsProvider.
|
|
33121
|
+
"metricsProvider.getLoadSeries": {
|
|
32856
33122
|
capName: "metrics-provider",
|
|
32857
33123
|
capScope: "system",
|
|
32858
33124
|
addonId: null,
|
|
32859
33125
|
access: "view"
|
|
32860
33126
|
},
|
|
32861
|
-
"metricsProvider.
|
|
33127
|
+
"metricsProvider.getProcessStats": {
|
|
32862
33128
|
capName: "metrics-provider",
|
|
32863
33129
|
capScope: "system",
|
|
32864
33130
|
addonId: null,
|
|
32865
|
-
access: "
|
|
33131
|
+
access: "view"
|
|
32866
33132
|
},
|
|
32867
33133
|
"metricsProvider.listAddonInstances": {
|
|
32868
33134
|
capName: "metrics-provider",
|
|
@@ -34874,6 +35140,12 @@ Object.freeze({
|
|
|
34874
35140
|
addonId: null,
|
|
34875
35141
|
access: "create"
|
|
34876
35142
|
},
|
|
35143
|
+
"settingsStore.insertMany": {
|
|
35144
|
+
capName: "settings-store",
|
|
35145
|
+
capScope: "system",
|
|
35146
|
+
addonId: null,
|
|
35147
|
+
access: "create"
|
|
35148
|
+
},
|
|
34877
35149
|
"settingsStore.isEmpty": {
|
|
34878
35150
|
capName: "settings-store",
|
|
34879
35151
|
capScope: "system",
|
|
@@ -35486,6 +35758,12 @@ Object.freeze({
|
|
|
35486
35758
|
addonId: null,
|
|
35487
35759
|
access: "create"
|
|
35488
35760
|
},
|
|
35761
|
+
"system.getLoadContributions": {
|
|
35762
|
+
capName: "system",
|
|
35763
|
+
capScope: "system",
|
|
35764
|
+
addonId: null,
|
|
35765
|
+
access: "view"
|
|
35766
|
+
},
|
|
35489
35767
|
"system.getLoggingSettings": {
|
|
35490
35768
|
capName: "system",
|
|
35491
35769
|
capScope: "system",
|
|
@@ -39467,4 +39745,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
39467
39745
|
return out;
|
|
39468
39746
|
}
|
|
39469
39747
|
//#endregion
|
|
39470
|
-
export {
|
|
39748
|
+
export { loadContributionCapability as $, string as $t, audioAnalysisCapability as A, BaseAddon as At, defineCustomActions as B, parseJsonUnknown as Bt, RATE_CONTROL_RELAXED as C, errMsg as Ct, RingBuffer as D, invocationFromEncodeProfile as Dt, RecordingConfigSchema as E, buildFfmpegArgs as Et, createHwAccelCache as F, hydrateSchema as Ft, egressTranscodeSharingKey as G, array as Gt, deriveDetailCropRect as H, selectAssignedProfileSlots as Ht, createLogChannelsProvider as I, isEvent as It, evaluateSensorEdge as J, lazy as Jt, egressTransportFromRequest as K, boolean as Kt, customAction as L, makeProfileBrokerId as Lt, audioKindId as M, DeviceFeature as Mt, batteryCapability as N, DeviceType as Nt, YAMNET_TO_MACRO as O, isSoftwareDecode as Ot, cameraStreamsCapability as P, createEvent as Pt, isFirstLevelMacroClass as Q, record as Qt, declareLogChannel as R, makeSourceBrokerId as Rt, PoolMemoryWatchdog as S, webrtcSessionCapability as St, RECORDING_EXPORT_MAX_READ_BYTES as T, Fmp4BoxSplitter as Tt, deriveRecordingMode as U, sleep as Ut, deriveBatteryPresence as V, parseProfileBrokerId as Vt, detectionPipelineCapability as W, _enum as Wt, hfModelUrl as X, number as Xt, evaluateZoneRules as Y, literal as Yt, inferModelProvider as Z, object as Zt, ExportRecordSchema as _, resolveRecordingProfiles as _t, COCO_80_LABELS as a, parseProcStatus as at, NativeLeaseSettingsSchema as b, streamBrokerCapability as bt, DEFAULT_CLUSTER_STEP_MODELS as c, pickDetailCropConvention as ct, DEFAULT_EVENTS_BAND_BUFFER_SEC as d, pipelineRunnerCapability as dt, union as en, logChannelsCapability as et, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as f, recordingCapability as ft, EncodeProfileSchema as g, resolvePoolMemoryPolicy as gt, EVENT_PAD_MS as h, resolveEgressDecodeHwAccel as ht, BatteryStatusSchema as i, overlayClusterStepSettings as it, audioAnalyzerCapability as j, CAM_PROFILE_ORDER as jt, addonWidgetsSourceCapability as k, BOOT_RECOVERY_BACKOFF_MS as kt, DEFAULT_CLUSTER_STEP_SETTINGS as l, pickNativeLeaseOverride as lt, DEVICE_BACKEND_TO_FORMAT as m, resolveClusterStepModelId as mt, AUDIO_BACKEND_CHOICES as n, maskUrlCredentials as nt, COCO_TO_MACRO as o, pickClusterStepModels as ot, DEFAULT_NATIVE_LEASE_SETTINGS as p, recordingExportCapability as pt, enumerateInferenceDevices as q, discriminatedUnion as qt, AUDIO_MACRO_LABELS as r, motionDetectionCapability as rt, DEFAULT_AUDIO_ANALYZER_CONFIG as s, pickClusterStepSettings as st, APPLE_SA_TO_MACRO as t, EventCategory as tn, mapAudioLabelToMacro as tt, DEFAULT_DETAIL_CROP_CONVENTION as u, pipelineExecutorCapability as ut, HF_BASE_URL as v, runtimeDevices as vt, RATE_CONTROL_TIGHT as w, AUDIO_PRESETS as wt, OpsLogEntrySchema as x, supportedRuntimes as xt, NativeLeaseAdmissionSchema as y, storageEvictableCapability as yt, defaultDeviceFor as z, nodePin as zt };
|
package/dist/{event-loop-stall-monitor-CU-xxX5c.mjs → event-loop-stall-monitor-JGTFb0Uv.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as audioKindId, X as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-
|
|
1
|
+
import { M as audioKindId, X as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-CmEYRK7G.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { PerformanceObserver } from "node:perf_hooks";
|
|
4
4
|
//#region src/detection-pipeline/registry/model-catalogs.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
2
|
-
let node_url = require("node:url");
|
|
3
|
-
let node_module = require("node:module");
|
|
1
|
+
const require_dist = require("./dist-BuIP0499.js");
|
|
4
2
|
let node_path = require("node:path");
|
|
5
3
|
node_path = require_dist.__toESM(node_path);
|
|
4
|
+
let node_url = require("node:url");
|
|
5
|
+
let node_module = require("node:module");
|
|
6
6
|
//#region src/shared/host-external-import.ts
|
|
7
7
|
/**
|
|
8
8
|
* Resolving a HOST-EXTERNAL package (`sharp`, `node-av`, …) from a process that
|
|
@@ -2,10 +2,10 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
7
|
-
let node_path = require("node:path");
|
|
5
|
+
const require_dist = require("../dist-BuIP0499.js");
|
|
6
|
+
const require_lazy_sharp = require("../lazy-sharp-DH2eVehm.js");
|
|
8
7
|
let node_fs = require("node:fs");
|
|
8
|
+
let node_path = require("node:path");
|
|
9
9
|
//#region src/motion-wasm/wasm-motion-detector.ts
|
|
10
10
|
/**
|
|
11
11
|
* WasmMotionDetector — loads the AssemblyScript WASM module and provides
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as getSharp } from "../lazy-sharp-
|
|
3
|
-
import { join } from "node:path";
|
|
1
|
+
import { At as BaseAddon, Ft as hydrateSchema, Nt as DeviceType, Y as evaluateZoneRules, rt as motionDetectionCapability } from "../dist-CmEYRK7G.mjs";
|
|
2
|
+
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
4
3
|
import { readFileSync } from "node:fs";
|
|
4
|
+
import { join } from "node:path";
|
|
5
5
|
//#region src/motion-wasm/wasm-motion-detector.ts
|
|
6
6
|
/**
|
|
7
7
|
* WasmMotionDetector — loads the AssemblyScript WASM module and provides
|