@camstack/addon-tailscale 1.2.39 → 1.2.42

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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-DXDI20wF.js");
27
+ const require_dist = require("../dist-XsZAD0zE.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-CNu9kGot.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-D1h1qkz3.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -13635,6 +13635,50 @@ var NodeProcessSchema = object({
13635
13635
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13636
13636
  uptimeSec: number()
13637
13637
  });
13638
+ /**
13639
+ * One retained container-memory reading.
13640
+ *
13641
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13642
+ * a second clock: that is what makes "processes sum to X, container says Y"
13643
+ * subtractable per point rather than an eyeballed comparison of two series
13644
+ * sampled at different instants.
13645
+ *
13646
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13647
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13648
+ * never coexisted, and a mean would smear away the peak this exists to find.
13649
+ */
13650
+ var ContainerMemoryPointSchema = object({
13651
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13652
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13653
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13654
+ currentBytes: number(),
13655
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13656
+ limitBytes: number().nullable(),
13657
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13658
+ anonBytes: number().nullable(),
13659
+ /** Page cache. Charged to the cgroup, owned by no process. */
13660
+ fileBytes: number().nullable(),
13661
+ /**
13662
+ * Shared memory — and the field that explained the largest single surprise.
13663
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13664
+ * hardware-decode session holding DRM objects is charged HERE and appears
13665
+ * nowhere in a `ps` scan.
13666
+ */
13667
+ shmemBytes: number().nullable(),
13668
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13669
+ slabBytes: number().nullable(),
13670
+ /**
13671
+ * Shrinkable i915 GEM object bytes, from debugfs.
13672
+ *
13673
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13674
+ * component of `currentBytes` and must not be subtracted from it; it says
13675
+ * what put the shmem there, where `shmemBytes` only says how much.
13676
+ *
13677
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13678
+ * container today — and on any node with no Intel GPU.
13679
+ */
13680
+ gpuShmemBytes: number().nullable()
13681
+ }).extend({ atMs: number() });
13638
13682
  var DumpHeapSnapshotInputSchema = object({
13639
13683
  /** The addon whose runner should dump a heap snapshot. */
13640
13684
  addonId: string() });
@@ -13698,6 +13742,21 @@ var NodeLoadSeriesSchema = object({
13698
13742
  /** One entry per function seen in the window, heaviest-first. */
13699
13743
  series: array(LoadFunctionSeriesSchema).readonly(),
13700
13744
  /**
13745
+ * The CONTAINER's memory over the same window, oldest-first.
13746
+ *
13747
+ * Sits next to `series` rather than in a method of its own because the whole
13748
+ * question is a subtraction: the per-process rows in `series` sum to one
13749
+ * number and this one is another, and an operator who has to issue two calls
13750
+ * to compare them will compare two different instants. Same reader, same
13751
+ * `sinceMs`, same `bucketMs`, same timestamps.
13752
+ *
13753
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13754
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13755
+ * points at all. A zero here would be indistinguishable from a healthy
13756
+ * container and is precisely the lie this field exists to avoid.
13757
+ */
13758
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13759
+ /**
13701
13760
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13702
13761
  * reduction was needed — so a caller can always say what one point covers
13703
13762
  * without having to know whether it was reduced.
@@ -23593,23 +23652,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23593
23652
  sdpOffer: string()
23594
23653
  }), {
23595
23654
  kind: "mutation",
23596
- auth: "admin"
23655
+ auth: "protected"
23597
23656
  }), method(object({
23598
23657
  deviceId: number(),
23599
23658
  sessionId: string(),
23600
23659
  sdpAnswer: string()
23601
23660
  }), _void(), {
23602
23661
  kind: "mutation",
23603
- auth: "admin"
23662
+ auth: "protected"
23604
23663
  }), method(object({
23605
23664
  deviceId: number(),
23606
23665
  sessionId: string()
23607
23666
  }), _void(), {
23608
23667
  kind: "mutation",
23609
- auth: "admin"
23668
+ auth: "protected"
23610
23669
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23611
23670
  kind: "mutation",
23612
- auth: "admin"
23671
+ auth: "protected"
23613
23672
  }), method(object({
23614
23673
  deviceId: number(),
23615
23674
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -23628,10 +23687,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23628
23687
  sequenceNumber: number().int()
23629
23688
  }), object({ accepted: boolean() }), {
23630
23689
  kind: "mutation",
23631
- auth: "admin"
23690
+ auth: "protected"
23632
23691
  }), method(object({ deviceId: number() }), _void(), {
23633
23692
  kind: "mutation",
23634
- auth: "admin"
23693
+ auth: "protected"
23635
23694
  }), object({
23636
23695
  deviceId: number(),
23637
23696
  status: IntercomStatusSchema
@@ -25705,10 +25764,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25705
25764
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25706
25765
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25707
25766
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25708
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25709
- * annotations that are not exposed here and must not be treated as an event
25710
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25711
- * (`interfaces/recording-config.ts`).
25767
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
25768
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25769
+ * ever read them. Event<->footage joins are by time, padded with the shared
25770
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25712
25771
  */
25713
25772
  var RecordingStatusSchema = object({
25714
25773
  deviceId: number(),
@@ -13635,6 +13635,50 @@ var NodeProcessSchema = object({
13635
13635
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13636
13636
  uptimeSec: number()
13637
13637
  });
13638
+ /**
13639
+ * One retained container-memory reading.
13640
+ *
13641
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13642
+ * a second clock: that is what makes "processes sum to X, container says Y"
13643
+ * subtractable per point rather than an eyeballed comparison of two series
13644
+ * sampled at different instants.
13645
+ *
13646
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13647
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13648
+ * never coexisted, and a mean would smear away the peak this exists to find.
13649
+ */
13650
+ var ContainerMemoryPointSchema = object({
13651
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13652
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13653
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13654
+ currentBytes: number(),
13655
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13656
+ limitBytes: number().nullable(),
13657
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13658
+ anonBytes: number().nullable(),
13659
+ /** Page cache. Charged to the cgroup, owned by no process. */
13660
+ fileBytes: number().nullable(),
13661
+ /**
13662
+ * Shared memory — and the field that explained the largest single surprise.
13663
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13664
+ * hardware-decode session holding DRM objects is charged HERE and appears
13665
+ * nowhere in a `ps` scan.
13666
+ */
13667
+ shmemBytes: number().nullable(),
13668
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13669
+ slabBytes: number().nullable(),
13670
+ /**
13671
+ * Shrinkable i915 GEM object bytes, from debugfs.
13672
+ *
13673
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13674
+ * component of `currentBytes` and must not be subtracted from it; it says
13675
+ * what put the shmem there, where `shmemBytes` only says how much.
13676
+ *
13677
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13678
+ * container today — and on any node with no Intel GPU.
13679
+ */
13680
+ gpuShmemBytes: number().nullable()
13681
+ }).extend({ atMs: number() });
13638
13682
  var DumpHeapSnapshotInputSchema = object({
13639
13683
  /** The addon whose runner should dump a heap snapshot. */
13640
13684
  addonId: string() });
@@ -13698,6 +13742,21 @@ var NodeLoadSeriesSchema = object({
13698
13742
  /** One entry per function seen in the window, heaviest-first. */
13699
13743
  series: array(LoadFunctionSeriesSchema).readonly(),
13700
13744
  /**
13745
+ * The CONTAINER's memory over the same window, oldest-first.
13746
+ *
13747
+ * Sits next to `series` rather than in a method of its own because the whole
13748
+ * question is a subtraction: the per-process rows in `series` sum to one
13749
+ * number and this one is another, and an operator who has to issue two calls
13750
+ * to compare them will compare two different instants. Same reader, same
13751
+ * `sinceMs`, same `bucketMs`, same timestamps.
13752
+ *
13753
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13754
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13755
+ * points at all. A zero here would be indistinguishable from a healthy
13756
+ * container and is precisely the lie this field exists to avoid.
13757
+ */
13758
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13759
+ /**
13701
13760
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13702
13761
  * reduction was needed — so a caller can always say what one point covers
13703
13762
  * without having to know whether it was reduced.
@@ -23593,23 +23652,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23593
23652
  sdpOffer: string()
23594
23653
  }), {
23595
23654
  kind: "mutation",
23596
- auth: "admin"
23655
+ auth: "protected"
23597
23656
  }), method(object({
23598
23657
  deviceId: number(),
23599
23658
  sessionId: string(),
23600
23659
  sdpAnswer: string()
23601
23660
  }), _void(), {
23602
23661
  kind: "mutation",
23603
- auth: "admin"
23662
+ auth: "protected"
23604
23663
  }), method(object({
23605
23664
  deviceId: number(),
23606
23665
  sessionId: string()
23607
23666
  }), _void(), {
23608
23667
  kind: "mutation",
23609
- auth: "admin"
23668
+ auth: "protected"
23610
23669
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23611
23670
  kind: "mutation",
23612
- auth: "admin"
23671
+ auth: "protected"
23613
23672
  }), method(object({
23614
23673
  deviceId: number(),
23615
23674
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -23628,10 +23687,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23628
23687
  sequenceNumber: number().int()
23629
23688
  }), object({ accepted: boolean() }), {
23630
23689
  kind: "mutation",
23631
- auth: "admin"
23690
+ auth: "protected"
23632
23691
  }), method(object({ deviceId: number() }), _void(), {
23633
23692
  kind: "mutation",
23634
- auth: "admin"
23693
+ auth: "protected"
23635
23694
  }), object({
23636
23695
  deviceId: number(),
23637
23696
  status: IntercomStatusSchema
@@ -25705,10 +25764,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25705
25764
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25706
25765
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25707
25766
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25708
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25709
- * annotations that are not exposed here and must not be treated as an event
25710
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25711
- * (`interfaces/recording-config.ts`).
25767
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
25768
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25769
+ * ever read them. Event<->footage joins are by time, padded with the shared
25770
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25712
25771
  */
25713
25772
  var RecordingStatusSchema = object({
25714
25773
  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_dist = require("../dist-DXDI20wF.js");
5
+ const require_dist = require("../dist-XsZAD0zE.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/ingress/tailscale-cli.ts
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-CNu9kGot.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-D1h1qkz3.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { execFile } from "node:child_process";
4
4
  import { promisify } from "node:util";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.2.39",
3
+ "version": "1.2.42",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",