@camstack/addon-ai 0.4.33 → 0.4.36
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 +69 -10
- package/dist/addon.mjs +69 -10
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13915,6 +13915,50 @@ var NodeProcessSchema = object({
|
|
|
13915
13915
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13916
13916
|
uptimeSec: number$1()
|
|
13917
13917
|
});
|
|
13918
|
+
/**
|
|
13919
|
+
* One retained container-memory reading.
|
|
13920
|
+
*
|
|
13921
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13922
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13923
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13924
|
+
* sampled at different instants.
|
|
13925
|
+
*
|
|
13926
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13927
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13928
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13929
|
+
*/
|
|
13930
|
+
var ContainerMemoryPointSchema = object({
|
|
13931
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13932
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13933
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13934
|
+
currentBytes: number$1(),
|
|
13935
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13936
|
+
limitBytes: number$1().nullable(),
|
|
13937
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13938
|
+
anonBytes: number$1().nullable(),
|
|
13939
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13940
|
+
fileBytes: number$1().nullable(),
|
|
13941
|
+
/**
|
|
13942
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13943
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13944
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13945
|
+
* nowhere in a `ps` scan.
|
|
13946
|
+
*/
|
|
13947
|
+
shmemBytes: number$1().nullable(),
|
|
13948
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13949
|
+
slabBytes: number$1().nullable(),
|
|
13950
|
+
/**
|
|
13951
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13952
|
+
*
|
|
13953
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13954
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13955
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13956
|
+
*
|
|
13957
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13958
|
+
* container today — and on any node with no Intel GPU.
|
|
13959
|
+
*/
|
|
13960
|
+
gpuShmemBytes: number$1().nullable()
|
|
13961
|
+
}).extend({ atMs: number$1() });
|
|
13918
13962
|
var DumpHeapSnapshotInputSchema = object({
|
|
13919
13963
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13920
13964
|
addonId: string() });
|
|
@@ -13978,6 +14022,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13978
14022
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13979
14023
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13980
14024
|
/**
|
|
14025
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14026
|
+
*
|
|
14027
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14028
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14029
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14030
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14031
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14032
|
+
*
|
|
14033
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14034
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14035
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14036
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14037
|
+
*/
|
|
14038
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14039
|
+
/**
|
|
13981
14040
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13982
14041
|
* reduction was needed — so a caller can always say what one point covers
|
|
13983
14042
|
* without having to know whether it was reduced.
|
|
@@ -23856,23 +23915,23 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), object({
|
|
|
23856
23915
|
sdpOffer: string()
|
|
23857
23916
|
}), {
|
|
23858
23917
|
kind: "mutation",
|
|
23859
|
-
auth: "
|
|
23918
|
+
auth: "protected"
|
|
23860
23919
|
}), method(object({
|
|
23861
23920
|
deviceId: number$1(),
|
|
23862
23921
|
sessionId: string(),
|
|
23863
23922
|
sdpAnswer: string()
|
|
23864
23923
|
}), _void(), {
|
|
23865
23924
|
kind: "mutation",
|
|
23866
|
-
auth: "
|
|
23925
|
+
auth: "protected"
|
|
23867
23926
|
}), method(object({
|
|
23868
23927
|
deviceId: number$1(),
|
|
23869
23928
|
sessionId: string()
|
|
23870
23929
|
}), _void(), {
|
|
23871
23930
|
kind: "mutation",
|
|
23872
|
-
auth: "
|
|
23931
|
+
auth: "protected"
|
|
23873
23932
|
}), method(object({ deviceId: number$1() }), object({ sessionId: string() }), {
|
|
23874
23933
|
kind: "mutation",
|
|
23875
|
-
auth: "
|
|
23934
|
+
auth: "protected"
|
|
23876
23935
|
}), method(object({
|
|
23877
23936
|
deviceId: number$1(),
|
|
23878
23937
|
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
@@ -23891,10 +23950,10 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), object({
|
|
|
23891
23950
|
sequenceNumber: number$1().int()
|
|
23892
23951
|
}), object({ accepted: boolean() }), {
|
|
23893
23952
|
kind: "mutation",
|
|
23894
|
-
auth: "
|
|
23953
|
+
auth: "protected"
|
|
23895
23954
|
}), method(object({ deviceId: number$1() }), _void(), {
|
|
23896
23955
|
kind: "mutation",
|
|
23897
|
-
auth: "
|
|
23956
|
+
auth: "protected"
|
|
23898
23957
|
}), object({
|
|
23899
23958
|
deviceId: number$1(),
|
|
23900
23959
|
status: IntercomStatusSchema
|
|
@@ -25907,10 +25966,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25907
25966
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25908
25967
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25909
25968
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25910
|
-
* rows)
|
|
25911
|
-
*
|
|
25912
|
-
*
|
|
25913
|
-
* (`interfaces/recording-config.ts`).
|
|
25969
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25970
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25971
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25972
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25914
25973
|
*/
|
|
25915
25974
|
var RecordingStatusSchema = object({
|
|
25916
25975
|
deviceId: number$1(),
|
package/dist/addon.mjs
CHANGED
|
@@ -13942,6 +13942,50 @@ var NodeProcessSchema = object({
|
|
|
13942
13942
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13943
13943
|
uptimeSec: number$1()
|
|
13944
13944
|
});
|
|
13945
|
+
/**
|
|
13946
|
+
* One retained container-memory reading.
|
|
13947
|
+
*
|
|
13948
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13949
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13950
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13951
|
+
* sampled at different instants.
|
|
13952
|
+
*
|
|
13953
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13954
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13955
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13956
|
+
*/
|
|
13957
|
+
var ContainerMemoryPointSchema = object({
|
|
13958
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13959
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13960
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13961
|
+
currentBytes: number$1(),
|
|
13962
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13963
|
+
limitBytes: number$1().nullable(),
|
|
13964
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13965
|
+
anonBytes: number$1().nullable(),
|
|
13966
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13967
|
+
fileBytes: number$1().nullable(),
|
|
13968
|
+
/**
|
|
13969
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13970
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13971
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13972
|
+
* nowhere in a `ps` scan.
|
|
13973
|
+
*/
|
|
13974
|
+
shmemBytes: number$1().nullable(),
|
|
13975
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13976
|
+
slabBytes: number$1().nullable(),
|
|
13977
|
+
/**
|
|
13978
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13979
|
+
*
|
|
13980
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13981
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13982
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13983
|
+
*
|
|
13984
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13985
|
+
* container today — and on any node with no Intel GPU.
|
|
13986
|
+
*/
|
|
13987
|
+
gpuShmemBytes: number$1().nullable()
|
|
13988
|
+
}).extend({ atMs: number$1() });
|
|
13945
13989
|
var DumpHeapSnapshotInputSchema = object({
|
|
13946
13990
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13947
13991
|
addonId: string() });
|
|
@@ -14005,6 +14049,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
14005
14049
|
/** One entry per function seen in the window, heaviest-first. */
|
|
14006
14050
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
14007
14051
|
/**
|
|
14052
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14053
|
+
*
|
|
14054
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14055
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14056
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14057
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14058
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14059
|
+
*
|
|
14060
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14061
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14062
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14063
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14064
|
+
*/
|
|
14065
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14066
|
+
/**
|
|
14008
14067
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
14009
14068
|
* reduction was needed — so a caller can always say what one point covers
|
|
14010
14069
|
* without having to know whether it was reduced.
|
|
@@ -23883,23 +23942,23 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), object({
|
|
|
23883
23942
|
sdpOffer: string()
|
|
23884
23943
|
}), {
|
|
23885
23944
|
kind: "mutation",
|
|
23886
|
-
auth: "
|
|
23945
|
+
auth: "protected"
|
|
23887
23946
|
}), method(object({
|
|
23888
23947
|
deviceId: number$1(),
|
|
23889
23948
|
sessionId: string(),
|
|
23890
23949
|
sdpAnswer: string()
|
|
23891
23950
|
}), _void(), {
|
|
23892
23951
|
kind: "mutation",
|
|
23893
|
-
auth: "
|
|
23952
|
+
auth: "protected"
|
|
23894
23953
|
}), method(object({
|
|
23895
23954
|
deviceId: number$1(),
|
|
23896
23955
|
sessionId: string()
|
|
23897
23956
|
}), _void(), {
|
|
23898
23957
|
kind: "mutation",
|
|
23899
|
-
auth: "
|
|
23958
|
+
auth: "protected"
|
|
23900
23959
|
}), method(object({ deviceId: number$1() }), object({ sessionId: string() }), {
|
|
23901
23960
|
kind: "mutation",
|
|
23902
|
-
auth: "
|
|
23961
|
+
auth: "protected"
|
|
23903
23962
|
}), method(object({
|
|
23904
23963
|
deviceId: number$1(),
|
|
23905
23964
|
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
@@ -23918,10 +23977,10 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), object({
|
|
|
23918
23977
|
sequenceNumber: number$1().int()
|
|
23919
23978
|
}), object({ accepted: boolean() }), {
|
|
23920
23979
|
kind: "mutation",
|
|
23921
|
-
auth: "
|
|
23980
|
+
auth: "protected"
|
|
23922
23981
|
}), method(object({ deviceId: number$1() }), _void(), {
|
|
23923
23982
|
kind: "mutation",
|
|
23924
|
-
auth: "
|
|
23983
|
+
auth: "protected"
|
|
23925
23984
|
}), object({
|
|
23926
23985
|
deviceId: number$1(),
|
|
23927
23986
|
status: IntercomStatusSchema
|
|
@@ -25934,10 +25993,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25934
25993
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25935
25994
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25936
25995
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25937
|
-
* rows)
|
|
25938
|
-
*
|
|
25939
|
-
*
|
|
25940
|
-
* (`interfaces/recording-config.ts`).
|
|
25996
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25997
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25998
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25999
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25941
26000
|
*/
|
|
25942
26001
|
var RecordingStatusSchema = object({
|
|
25943
26002
|
deviceId: number$1(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|