@camstack/addon-agent-ui 1.2.40 → 1.2.43
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/addon.js +70 -11
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13621,6 +13621,50 @@ var NodeProcessSchema = object({
|
|
|
13621
13621
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13622
13622
|
uptimeSec: number()
|
|
13623
13623
|
});
|
|
13624
|
+
/**
|
|
13625
|
+
* One retained container-memory reading.
|
|
13626
|
+
*
|
|
13627
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13628
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13629
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13630
|
+
* sampled at different instants.
|
|
13631
|
+
*
|
|
13632
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13633
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13634
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13635
|
+
*/
|
|
13636
|
+
var ContainerMemoryPointSchema = object({
|
|
13637
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13638
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13639
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13640
|
+
currentBytes: number(),
|
|
13641
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13642
|
+
limitBytes: number().nullable(),
|
|
13643
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13644
|
+
anonBytes: number().nullable(),
|
|
13645
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13646
|
+
fileBytes: number().nullable(),
|
|
13647
|
+
/**
|
|
13648
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13649
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13650
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13651
|
+
* nowhere in a `ps` scan.
|
|
13652
|
+
*/
|
|
13653
|
+
shmemBytes: number().nullable(),
|
|
13654
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13655
|
+
slabBytes: number().nullable(),
|
|
13656
|
+
/**
|
|
13657
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13658
|
+
*
|
|
13659
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13660
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13661
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13662
|
+
*
|
|
13663
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13664
|
+
* container today — and on any node with no Intel GPU.
|
|
13665
|
+
*/
|
|
13666
|
+
gpuShmemBytes: number().nullable()
|
|
13667
|
+
}).extend({ atMs: number() });
|
|
13624
13668
|
var DumpHeapSnapshotInputSchema = object({
|
|
13625
13669
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13626
13670
|
addonId: string() });
|
|
@@ -13684,6 +13728,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13684
13728
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13685
13729
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13686
13730
|
/**
|
|
13731
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13732
|
+
*
|
|
13733
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13734
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13735
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13736
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13737
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13738
|
+
*
|
|
13739
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13740
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13741
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13742
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13743
|
+
*/
|
|
13744
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13745
|
+
/**
|
|
13687
13746
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13688
13747
|
* reduction was needed — so a caller can always say what one point covers
|
|
13689
13748
|
* without having to know whether it was reduced.
|
|
@@ -23562,23 +23621,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
|
|
|
23562
23621
|
sdpOffer: string()
|
|
23563
23622
|
}), {
|
|
23564
23623
|
kind: "mutation",
|
|
23565
|
-
auth: "
|
|
23624
|
+
auth: "protected"
|
|
23566
23625
|
}), method(object({
|
|
23567
23626
|
deviceId: number(),
|
|
23568
23627
|
sessionId: string(),
|
|
23569
23628
|
sdpAnswer: string()
|
|
23570
23629
|
}), _void(), {
|
|
23571
23630
|
kind: "mutation",
|
|
23572
|
-
auth: "
|
|
23631
|
+
auth: "protected"
|
|
23573
23632
|
}), method(object({
|
|
23574
23633
|
deviceId: number(),
|
|
23575
23634
|
sessionId: string()
|
|
23576
23635
|
}), _void(), {
|
|
23577
23636
|
kind: "mutation",
|
|
23578
|
-
auth: "
|
|
23637
|
+
auth: "protected"
|
|
23579
23638
|
}), method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
23580
23639
|
kind: "mutation",
|
|
23581
|
-
auth: "
|
|
23640
|
+
auth: "protected"
|
|
23582
23641
|
}), method(object({
|
|
23583
23642
|
deviceId: number(),
|
|
23584
23643
|
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
@@ -23597,10 +23656,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
|
|
|
23597
23656
|
sequenceNumber: number().int()
|
|
23598
23657
|
}), object({ accepted: boolean() }), {
|
|
23599
23658
|
kind: "mutation",
|
|
23600
|
-
auth: "
|
|
23659
|
+
auth: "protected"
|
|
23601
23660
|
}), method(object({ deviceId: number() }), _void(), {
|
|
23602
23661
|
kind: "mutation",
|
|
23603
|
-
auth: "
|
|
23662
|
+
auth: "protected"
|
|
23604
23663
|
}), object({
|
|
23605
23664
|
deviceId: number(),
|
|
23606
23665
|
status: IntercomStatusSchema
|
|
@@ -25613,10 +25672,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25613
25672
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25614
25673
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25615
25674
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25616
|
-
* rows)
|
|
25617
|
-
*
|
|
25618
|
-
*
|
|
25619
|
-
* (`interfaces/recording-config.ts`).
|
|
25675
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25676
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25677
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25678
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25620
25679
|
*/
|
|
25621
25680
|
var RecordingStatusSchema = object({
|
|
25622
25681
|
deviceId: number(),
|
|
@@ -35938,7 +35997,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
35938
35997
|
capability: adminUiCapability,
|
|
35939
35998
|
provider: {
|
|
35940
35999
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
35941
|
-
getVersion: async () => ({ version: "1.2.
|
|
36000
|
+
getVersion: async () => ({ version: "1.2.43" })
|
|
35942
36001
|
}
|
|
35943
36002
|
}];
|
|
35944
36003
|
}
|