@camstack/addon-remote-storage 1.2.38 → 1.2.40

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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-B9LrdyaK.js");
5
+ const require_shared = require("./shared-kn1YUYmb.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-DgwL7dV-.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-CBMUP4jc.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-B9LrdyaK.js");
5
+ const require_shared = require("./shared-kn1YUYmb.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-DgwL7dV-.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CBMUP4jc.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -13603,6 +13603,50 @@ var NodeProcessSchema = object({
13603
13603
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13604
13604
  uptimeSec: number()
13605
13605
  });
13606
+ /**
13607
+ * One retained container-memory reading.
13608
+ *
13609
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13610
+ * a second clock: that is what makes "processes sum to X, container says Y"
13611
+ * subtractable per point rather than an eyeballed comparison of two series
13612
+ * sampled at different instants.
13613
+ *
13614
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13615
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13616
+ * never coexisted, and a mean would smear away the peak this exists to find.
13617
+ */
13618
+ var ContainerMemoryPointSchema = object({
13619
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13620
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13621
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13622
+ currentBytes: number(),
13623
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13624
+ limitBytes: number().nullable(),
13625
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13626
+ anonBytes: number().nullable(),
13627
+ /** Page cache. Charged to the cgroup, owned by no process. */
13628
+ fileBytes: number().nullable(),
13629
+ /**
13630
+ * Shared memory — and the field that explained the largest single surprise.
13631
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13632
+ * hardware-decode session holding DRM objects is charged HERE and appears
13633
+ * nowhere in a `ps` scan.
13634
+ */
13635
+ shmemBytes: number().nullable(),
13636
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13637
+ slabBytes: number().nullable(),
13638
+ /**
13639
+ * Shrinkable i915 GEM object bytes, from debugfs.
13640
+ *
13641
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13642
+ * component of `currentBytes` and must not be subtracted from it; it says
13643
+ * what put the shmem there, where `shmemBytes` only says how much.
13644
+ *
13645
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13646
+ * container today — and on any node with no Intel GPU.
13647
+ */
13648
+ gpuShmemBytes: number().nullable()
13649
+ }).extend({ atMs: number() });
13606
13650
  var DumpHeapSnapshotInputSchema = object({
13607
13651
  /** The addon whose runner should dump a heap snapshot. */
13608
13652
  addonId: string() });
@@ -13666,6 +13710,21 @@ var NodeLoadSeriesSchema = object({
13666
13710
  /** One entry per function seen in the window, heaviest-first. */
13667
13711
  series: array(LoadFunctionSeriesSchema).readonly(),
13668
13712
  /**
13713
+ * The CONTAINER's memory over the same window, oldest-first.
13714
+ *
13715
+ * Sits next to `series` rather than in a method of its own because the whole
13716
+ * question is a subtraction: the per-process rows in `series` sum to one
13717
+ * number and this one is another, and an operator who has to issue two calls
13718
+ * to compare them will compare two different instants. Same reader, same
13719
+ * `sinceMs`, same `bucketMs`, same timestamps.
13720
+ *
13721
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13722
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13723
+ * points at all. A zero here would be indistinguishable from a healthy
13724
+ * container and is precisely the lie this field exists to avoid.
13725
+ */
13726
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13727
+ /**
13669
13728
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13670
13729
  * reduction was needed — so a caller can always say what one point covers
13671
13730
  * without having to know whether it was reduced.
@@ -25655,10 +25714,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25655
25714
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25656
25715
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25657
25716
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25658
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25659
- * annotations that are not exposed here and must not be treated as an event
25660
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25661
- * (`interfaces/recording-config.ts`).
25717
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
25718
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25719
+ * ever read them. Event<->footage joins are by time, padded with the shared
25720
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25662
25721
  */
25663
25722
  var RecordingStatusSchema = object({
25664
25723
  deviceId: number(),
@@ -13626,6 +13626,50 @@ var NodeProcessSchema = object({
13626
13626
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13627
13627
  uptimeSec: number()
13628
13628
  });
13629
+ /**
13630
+ * One retained container-memory reading.
13631
+ *
13632
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13633
+ * a second clock: that is what makes "processes sum to X, container says Y"
13634
+ * subtractable per point rather than an eyeballed comparison of two series
13635
+ * sampled at different instants.
13636
+ *
13637
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13638
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13639
+ * never coexisted, and a mean would smear away the peak this exists to find.
13640
+ */
13641
+ var ContainerMemoryPointSchema = object({
13642
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13643
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13644
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13645
+ currentBytes: number(),
13646
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13647
+ limitBytes: number().nullable(),
13648
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13649
+ anonBytes: number().nullable(),
13650
+ /** Page cache. Charged to the cgroup, owned by no process. */
13651
+ fileBytes: number().nullable(),
13652
+ /**
13653
+ * Shared memory — and the field that explained the largest single surprise.
13654
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13655
+ * hardware-decode session holding DRM objects is charged HERE and appears
13656
+ * nowhere in a `ps` scan.
13657
+ */
13658
+ shmemBytes: number().nullable(),
13659
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13660
+ slabBytes: number().nullable(),
13661
+ /**
13662
+ * Shrinkable i915 GEM object bytes, from debugfs.
13663
+ *
13664
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13665
+ * component of `currentBytes` and must not be subtracted from it; it says
13666
+ * what put the shmem there, where `shmemBytes` only says how much.
13667
+ *
13668
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13669
+ * container today — and on any node with no Intel GPU.
13670
+ */
13671
+ gpuShmemBytes: number().nullable()
13672
+ }).extend({ atMs: number() });
13629
13673
  var DumpHeapSnapshotInputSchema = object({
13630
13674
  /** The addon whose runner should dump a heap snapshot. */
13631
13675
  addonId: string() });
@@ -13689,6 +13733,21 @@ var NodeLoadSeriesSchema = object({
13689
13733
  /** One entry per function seen in the window, heaviest-first. */
13690
13734
  series: array(LoadFunctionSeriesSchema).readonly(),
13691
13735
  /**
13736
+ * The CONTAINER's memory over the same window, oldest-first.
13737
+ *
13738
+ * Sits next to `series` rather than in a method of its own because the whole
13739
+ * question is a subtraction: the per-process rows in `series` sum to one
13740
+ * number and this one is another, and an operator who has to issue two calls
13741
+ * to compare them will compare two different instants. Same reader, same
13742
+ * `sinceMs`, same `bucketMs`, same timestamps.
13743
+ *
13744
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13745
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13746
+ * points at all. A zero here would be indistinguishable from a healthy
13747
+ * container and is precisely the lie this field exists to avoid.
13748
+ */
13749
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13750
+ /**
13692
13751
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13693
13752
  * reduction was needed — so a caller can always say what one point covers
13694
13753
  * without having to know whether it was reduced.
@@ -25678,10 +25737,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25678
25737
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25679
25738
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25680
25739
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25681
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25682
- * annotations that are not exposed here and must not be treated as an event
25683
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25684
- * (`interfaces/recording-config.ts`).
25740
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
25741
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25742
+ * ever read them. Event<->footage joins are by time, padded with the shared
25743
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25685
25744
  */
25686
25745
  var RecordingStatusSchema = object({
25687
25746
  deviceId: number(),
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-B9LrdyaK.js");
5
+ const require_shared = require("./shared-kn1YUYmb.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-DgwL7dV-.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CBMUP4jc.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",