@camstack/addon-provider-rademacher 0.2.38 → 0.2.41
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 +96 -10
- package/dist/addon.mjs +96 -10
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -14867,6 +14867,50 @@ var NodeProcessSchema = object({
|
|
|
14867
14867
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
14868
14868
|
uptimeSec: number()
|
|
14869
14869
|
});
|
|
14870
|
+
/**
|
|
14871
|
+
* One retained container-memory reading.
|
|
14872
|
+
*
|
|
14873
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
14874
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
14875
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
14876
|
+
* sampled at different instants.
|
|
14877
|
+
*
|
|
14878
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
14879
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
14880
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
14881
|
+
*/
|
|
14882
|
+
var ContainerMemoryPointSchema = object({
|
|
14883
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
14884
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
14885
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
14886
|
+
currentBytes: number(),
|
|
14887
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
14888
|
+
limitBytes: number().nullable(),
|
|
14889
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
14890
|
+
anonBytes: number().nullable(),
|
|
14891
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
14892
|
+
fileBytes: number().nullable(),
|
|
14893
|
+
/**
|
|
14894
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
14895
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
14896
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
14897
|
+
* nowhere in a `ps` scan.
|
|
14898
|
+
*/
|
|
14899
|
+
shmemBytes: number().nullable(),
|
|
14900
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
14901
|
+
slabBytes: number().nullable(),
|
|
14902
|
+
/**
|
|
14903
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
14904
|
+
*
|
|
14905
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
14906
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
14907
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
14908
|
+
*
|
|
14909
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
14910
|
+
* container today — and on any node with no Intel GPU.
|
|
14911
|
+
*/
|
|
14912
|
+
gpuShmemBytes: number().nullable()
|
|
14913
|
+
}).extend({ atMs: number() });
|
|
14870
14914
|
var DumpHeapSnapshotInputSchema = object({
|
|
14871
14915
|
/** The addon whose runner should dump a heap snapshot. */
|
|
14872
14916
|
addonId: string() });
|
|
@@ -14930,6 +14974,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
14930
14974
|
/** One entry per function seen in the window, heaviest-first. */
|
|
14931
14975
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
14932
14976
|
/**
|
|
14977
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14978
|
+
*
|
|
14979
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14980
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14981
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14982
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14983
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14984
|
+
*
|
|
14985
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14986
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14987
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14988
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14989
|
+
*/
|
|
14990
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14991
|
+
/**
|
|
14933
14992
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
14934
14993
|
* reduction was needed — so a caller can always say what one point covers
|
|
14935
14994
|
* without having to know whether it was reduced.
|
|
@@ -25868,6 +25927,33 @@ var intercomCapability = {
|
|
|
25868
25927
|
deviceNative: true,
|
|
25869
25928
|
mode: "singleton",
|
|
25870
25929
|
deviceTypes: [DeviceType.Camera],
|
|
25930
|
+
/**
|
|
25931
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25932
|
+
*
|
|
25933
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25934
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25935
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25936
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25937
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25938
|
+
* `admin` because they change what the device IS.
|
|
25939
|
+
*
|
|
25940
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25941
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25942
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25943
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25944
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25945
|
+
* camera 7.
|
|
25946
|
+
*
|
|
25947
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25948
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25949
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25950
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25951
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25952
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25953
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25954
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25955
|
+
* preset promises a cap no row of that preset can reach.
|
|
25956
|
+
*/
|
|
25871
25957
|
methods: {
|
|
25872
25958
|
/**
|
|
25873
25959
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25880,7 +25966,7 @@ var intercomCapability = {
|
|
|
25880
25966
|
sdpOffer: string()
|
|
25881
25967
|
}), {
|
|
25882
25968
|
kind: "mutation",
|
|
25883
|
-
auth: "
|
|
25969
|
+
auth: "protected"
|
|
25884
25970
|
}),
|
|
25885
25971
|
handleAnswer: method(object({
|
|
25886
25972
|
deviceId: number(),
|
|
@@ -25888,7 +25974,7 @@ var intercomCapability = {
|
|
|
25888
25974
|
sdpAnswer: string()
|
|
25889
25975
|
}), _void(), {
|
|
25890
25976
|
kind: "mutation",
|
|
25891
|
-
auth: "
|
|
25977
|
+
auth: "protected"
|
|
25892
25978
|
}),
|
|
25893
25979
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25894
25980
|
stopSession: method(object({
|
|
@@ -25896,7 +25982,7 @@ var intercomCapability = {
|
|
|
25896
25982
|
sessionId: string()
|
|
25897
25983
|
}), _void(), {
|
|
25898
25984
|
kind: "mutation",
|
|
25899
|
-
auth: "
|
|
25985
|
+
auth: "protected"
|
|
25900
25986
|
}),
|
|
25901
25987
|
/**
|
|
25902
25988
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25909,7 +25995,7 @@ var intercomCapability = {
|
|
|
25909
25995
|
*/
|
|
25910
25996
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25911
25997
|
kind: "mutation",
|
|
25912
|
-
auth: "
|
|
25998
|
+
auth: "protected"
|
|
25913
25999
|
}),
|
|
25914
26000
|
/**
|
|
25915
26001
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25944,12 +26030,12 @@ var intercomCapability = {
|
|
|
25944
26030
|
sequenceNumber: number().int()
|
|
25945
26031
|
}), object({ accepted: boolean() }), {
|
|
25946
26032
|
kind: "mutation",
|
|
25947
|
-
auth: "
|
|
26033
|
+
auth: "protected"
|
|
25948
26034
|
}),
|
|
25949
26035
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25950
26036
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25951
26037
|
kind: "mutation",
|
|
25952
|
-
auth: "
|
|
26038
|
+
auth: "protected"
|
|
25953
26039
|
})
|
|
25954
26040
|
},
|
|
25955
26041
|
events: { onStatusChanged: { data: object({
|
|
@@ -28625,10 +28711,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
28625
28711
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
28626
28712
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
28627
28713
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
28628
|
-
* rows)
|
|
28629
|
-
*
|
|
28630
|
-
*
|
|
28631
|
-
* (`interfaces/recording-config.ts`).
|
|
28714
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
28715
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
28716
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
28717
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
28632
28718
|
*/
|
|
28633
28719
|
var RecordingStatusSchema = object({
|
|
28634
28720
|
deviceId: number(),
|
package/dist/addon.mjs
CHANGED
|
@@ -14866,6 +14866,50 @@ var NodeProcessSchema = object({
|
|
|
14866
14866
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
14867
14867
|
uptimeSec: number()
|
|
14868
14868
|
});
|
|
14869
|
+
/**
|
|
14870
|
+
* One retained container-memory reading.
|
|
14871
|
+
*
|
|
14872
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
14873
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
14874
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
14875
|
+
* sampled at different instants.
|
|
14876
|
+
*
|
|
14877
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
14878
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
14879
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
14880
|
+
*/
|
|
14881
|
+
var ContainerMemoryPointSchema = object({
|
|
14882
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
14883
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
14884
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
14885
|
+
currentBytes: number(),
|
|
14886
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
14887
|
+
limitBytes: number().nullable(),
|
|
14888
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
14889
|
+
anonBytes: number().nullable(),
|
|
14890
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
14891
|
+
fileBytes: number().nullable(),
|
|
14892
|
+
/**
|
|
14893
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
14894
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
14895
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
14896
|
+
* nowhere in a `ps` scan.
|
|
14897
|
+
*/
|
|
14898
|
+
shmemBytes: number().nullable(),
|
|
14899
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
14900
|
+
slabBytes: number().nullable(),
|
|
14901
|
+
/**
|
|
14902
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
14903
|
+
*
|
|
14904
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
14905
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
14906
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
14907
|
+
*
|
|
14908
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
14909
|
+
* container today — and on any node with no Intel GPU.
|
|
14910
|
+
*/
|
|
14911
|
+
gpuShmemBytes: number().nullable()
|
|
14912
|
+
}).extend({ atMs: number() });
|
|
14869
14913
|
var DumpHeapSnapshotInputSchema = object({
|
|
14870
14914
|
/** The addon whose runner should dump a heap snapshot. */
|
|
14871
14915
|
addonId: string() });
|
|
@@ -14929,6 +14973,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
14929
14973
|
/** One entry per function seen in the window, heaviest-first. */
|
|
14930
14974
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
14931
14975
|
/**
|
|
14976
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14977
|
+
*
|
|
14978
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14979
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14980
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14981
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14982
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14983
|
+
*
|
|
14984
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14985
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14986
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14987
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14988
|
+
*/
|
|
14989
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14990
|
+
/**
|
|
14932
14991
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
14933
14992
|
* reduction was needed — so a caller can always say what one point covers
|
|
14934
14993
|
* without having to know whether it was reduced.
|
|
@@ -25867,6 +25926,33 @@ var intercomCapability = {
|
|
|
25867
25926
|
deviceNative: true,
|
|
25868
25927
|
mode: "singleton",
|
|
25869
25928
|
deviceTypes: [DeviceType.Camera],
|
|
25929
|
+
/**
|
|
25930
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25931
|
+
*
|
|
25932
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25933
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25934
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25935
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25936
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25937
|
+
* `admin` because they change what the device IS.
|
|
25938
|
+
*
|
|
25939
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25940
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25941
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25942
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25943
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25944
|
+
* camera 7.
|
|
25945
|
+
*
|
|
25946
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25947
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25948
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25949
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25950
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25951
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25952
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25953
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25954
|
+
* preset promises a cap no row of that preset can reach.
|
|
25955
|
+
*/
|
|
25870
25956
|
methods: {
|
|
25871
25957
|
/**
|
|
25872
25958
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25879,7 +25965,7 @@ var intercomCapability = {
|
|
|
25879
25965
|
sdpOffer: string()
|
|
25880
25966
|
}), {
|
|
25881
25967
|
kind: "mutation",
|
|
25882
|
-
auth: "
|
|
25968
|
+
auth: "protected"
|
|
25883
25969
|
}),
|
|
25884
25970
|
handleAnswer: method(object({
|
|
25885
25971
|
deviceId: number(),
|
|
@@ -25887,7 +25973,7 @@ var intercomCapability = {
|
|
|
25887
25973
|
sdpAnswer: string()
|
|
25888
25974
|
}), _void(), {
|
|
25889
25975
|
kind: "mutation",
|
|
25890
|
-
auth: "
|
|
25976
|
+
auth: "protected"
|
|
25891
25977
|
}),
|
|
25892
25978
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25893
25979
|
stopSession: method(object({
|
|
@@ -25895,7 +25981,7 @@ var intercomCapability = {
|
|
|
25895
25981
|
sessionId: string()
|
|
25896
25982
|
}), _void(), {
|
|
25897
25983
|
kind: "mutation",
|
|
25898
|
-
auth: "
|
|
25984
|
+
auth: "protected"
|
|
25899
25985
|
}),
|
|
25900
25986
|
/**
|
|
25901
25987
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25908,7 +25994,7 @@ var intercomCapability = {
|
|
|
25908
25994
|
*/
|
|
25909
25995
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25910
25996
|
kind: "mutation",
|
|
25911
|
-
auth: "
|
|
25997
|
+
auth: "protected"
|
|
25912
25998
|
}),
|
|
25913
25999
|
/**
|
|
25914
26000
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25943,12 +26029,12 @@ var intercomCapability = {
|
|
|
25943
26029
|
sequenceNumber: number().int()
|
|
25944
26030
|
}), object({ accepted: boolean() }), {
|
|
25945
26031
|
kind: "mutation",
|
|
25946
|
-
auth: "
|
|
26032
|
+
auth: "protected"
|
|
25947
26033
|
}),
|
|
25948
26034
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25949
26035
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25950
26036
|
kind: "mutation",
|
|
25951
|
-
auth: "
|
|
26037
|
+
auth: "protected"
|
|
25952
26038
|
})
|
|
25953
26039
|
},
|
|
25954
26040
|
events: { onStatusChanged: { data: object({
|
|
@@ -28624,10 +28710,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
28624
28710
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
28625
28711
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
28626
28712
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
28627
|
-
* rows)
|
|
28628
|
-
*
|
|
28629
|
-
*
|
|
28630
|
-
* (`interfaces/recording-config.ts`).
|
|
28713
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
28714
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
28715
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
28716
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
28631
28717
|
*/
|
|
28632
28718
|
var RecordingStatusSchema = object({
|
|
28633
28719
|
deviceId: number(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.41",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|