@camstack/addon-tailscale 1.2.92 → 1.2.94

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-CQfYIy9j.js");
27
+ const require_dist = require("../dist-zVDTQPmu.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-Cv5sAvrW.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-Cp75afkR.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";
@@ -16176,6 +16176,7 @@ var NcSystemEventKindSchema = _enum([
16176
16176
  "addon-crash-loop",
16177
16177
  "addon-update-available",
16178
16178
  "server-update-available",
16179
+ "wrapper-update-available",
16179
16180
  "alarm-triggered",
16180
16181
  "alarm-armed",
16181
16182
  "alarm-disarmed",
@@ -19581,7 +19582,17 @@ var EventDensityBucketSchema = object({
19581
19582
  bucketStart: number(),
19582
19583
  motion: number().int(),
19583
19584
  object: number().int(),
19584
- audio: number().int()
19585
+ audio: number().int(),
19586
+ /**
19587
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19588
+ * as opposed to `audio`, which is their COUNT (D431).
19589
+ *
19590
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19591
+ * measured", which is not the same claim as silence, and a lane that cannot
19592
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19593
+ * the count-on-a-level-meter did.
19594
+ */
19595
+ audioDbfs: number().optional()
19585
19596
  });
19586
19597
  /**
19587
19598
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21682,6 +21693,53 @@ var ImageContractSchema = object({
21682
21693
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21683
21694
  message: string()
21684
21695
  });
21696
+ /**
21697
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21698
+ * produced it.
21699
+ *
21700
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21701
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21702
+ * for a `docker` shell and says the app restarts into the new build for
21703
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21704
+ * nothing reads is the defect this repo keeps paying for.
21705
+ */
21706
+ var WrapperIdentitySchema = object({
21707
+ kind: _enum([
21708
+ "docker",
21709
+ "electron",
21710
+ "native",
21711
+ "contradictory",
21712
+ "unknown"
21713
+ ]),
21714
+ /** Every probe that ran, in a stable order. Never empty. */
21715
+ evidence: array(object({
21716
+ /** Which probe this row reports. */
21717
+ fact: _enum([
21718
+ "dockerenv-file",
21719
+ "proc-1-cgroup",
21720
+ "platform",
21721
+ "electron-app-version-env"
21722
+ ]),
21723
+ /**
21724
+ * `observed` — this process read it itself. `declared` — the shell told the
21725
+ * process and nothing here can check it. Only the Electron app version is
21726
+ * ever `declared`, and only because a child cannot see its parent.
21727
+ */
21728
+ mode: _enum(["observed", "declared"]),
21729
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21730
+ holds: boolean(),
21731
+ /** What was actually read, verbatim enough for an operator to argue with. */
21732
+ detail: string()
21733
+ })),
21734
+ /**
21735
+ * The version of the SHELL, when the shell has one it can state: the
21736
+ * Electron app version it declared, or the baked seed closure that
21737
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21738
+ * `unknown` — which version belongs to the shell is precisely what is not
21739
+ * known there.
21740
+ */
21741
+ currentVersion: string().nullable()
21742
+ });
21685
21743
  var ServerRollbackInfoSchema = object({
21686
21744
  /** The version that failed (or was manually rolled back). */
21687
21745
  fromVersion: string(),
@@ -21723,7 +21781,13 @@ var ServerPackageStatusSchema = object({
21723
21781
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21724
21782
  * version skew: an older provider's payload simply omits it.
21725
21783
  */
21726
- imageContract: ImageContractSchema.optional()
21784
+ imageContract: ImageContractSchema.optional(),
21785
+ /**
21786
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21787
+ * for version skew: an older provider's payload simply omits it, and an
21788
+ * absent wrapper is unknown — never `native`.
21789
+ */
21790
+ wrapper: WrapperIdentitySchema.optional()
21727
21791
  });
21728
21792
  var ServerUpdateCheckResultSchema = object({
21729
21793
  packageName: string(),
@@ -27809,7 +27873,23 @@ var RecordingRangeSchema = object({
27809
27873
  });
27810
27874
  var RecordingAvailabilitySchema = object({
27811
27875
  deviceId: number(),
27812
- ranges: array(RecordingRangeSchema)
27876
+ ranges: array(RecordingRangeSchema),
27877
+ /**
27878
+ * Every profile this camera has footage in — not only the one `ranges`
27879
+ * describes (D433).
27880
+ *
27881
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27882
+ * and enumerating all of them triples the directory reads for a bar that
27883
+ * would look identical. But the answer used to say nothing about that, so a
27884
+ * caller asking "what can I export?" read the single preferred profile as
27885
+ * the only one that exists — on this deployment every camera records `high`
27886
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27887
+ * UI could not see it.
27888
+ *
27889
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27890
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27891
+ */
27892
+ profilesWithFootage: array(string())
27813
27893
  });
27814
27894
  var RecordingDaysSchema = object({
27815
27895
  deviceId: number(),
@@ -27835,7 +27915,11 @@ var RecordingDaysSchema = object({
27835
27915
  var RecordingAvailabilityForDeviceSchema = object({
27836
27916
  deviceId: number(),
27837
27917
  read: _enum(["read", "unreadable"]),
27838
- ranges: array(RecordingRangeSchema).readonly()
27918
+ ranges: array(RecordingRangeSchema).readonly(),
27919
+ /** Same field, same meaning, as the singular answer (D433). A row that
27920
+ * dropped it would tell a grid caller the archive holds one profile.
27921
+ * Empty on an `'unreadable'` row: nobody looked. */
27922
+ profilesWithFootage: array(string()).readonly()
27839
27923
  });
27840
27924
  /**
27841
27925
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28125,7 +28209,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28125
28209
  method(object({
28126
28210
  deviceId: number(),
28127
28211
  fromMs: number(),
28128
- toMs: number()
28212
+ toMs: number(),
28213
+ /**
28214
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28215
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28216
+ * reads. `profilesWithFootage` on the answer says what may be asked
28217
+ * for.
28218
+ */
28219
+ profile: string().optional()
28129
28220
  }), RecordingAvailabilitySchema, {
28130
28221
  kind: "query",
28131
28222
  auth: "protected"
@@ -16176,6 +16176,7 @@ var NcSystemEventKindSchema = _enum([
16176
16176
  "addon-crash-loop",
16177
16177
  "addon-update-available",
16178
16178
  "server-update-available",
16179
+ "wrapper-update-available",
16179
16180
  "alarm-triggered",
16180
16181
  "alarm-armed",
16181
16182
  "alarm-disarmed",
@@ -19581,7 +19582,17 @@ var EventDensityBucketSchema = object({
19581
19582
  bucketStart: number(),
19582
19583
  motion: number().int(),
19583
19584
  object: number().int(),
19584
- audio: number().int()
19585
+ audio: number().int(),
19586
+ /**
19587
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19588
+ * as opposed to `audio`, which is their COUNT (D431).
19589
+ *
19590
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19591
+ * measured", which is not the same claim as silence, and a lane that cannot
19592
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19593
+ * the count-on-a-level-meter did.
19594
+ */
19595
+ audioDbfs: number().optional()
19585
19596
  });
19586
19597
  /**
19587
19598
  * One camera's row in a `getEventDensityBatch` answer.
@@ -21682,6 +21693,53 @@ var ImageContractSchema = object({
21682
21693
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21683
21694
  message: string()
21684
21695
  });
21696
+ /**
21697
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21698
+ * produced it.
21699
+ *
21700
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21701
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21702
+ * for a `docker` shell and says the app restarts into the new build for
21703
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21704
+ * nothing reads is the defect this repo keeps paying for.
21705
+ */
21706
+ var WrapperIdentitySchema = object({
21707
+ kind: _enum([
21708
+ "docker",
21709
+ "electron",
21710
+ "native",
21711
+ "contradictory",
21712
+ "unknown"
21713
+ ]),
21714
+ /** Every probe that ran, in a stable order. Never empty. */
21715
+ evidence: array(object({
21716
+ /** Which probe this row reports. */
21717
+ fact: _enum([
21718
+ "dockerenv-file",
21719
+ "proc-1-cgroup",
21720
+ "platform",
21721
+ "electron-app-version-env"
21722
+ ]),
21723
+ /**
21724
+ * `observed` — this process read it itself. `declared` — the shell told the
21725
+ * process and nothing here can check it. Only the Electron app version is
21726
+ * ever `declared`, and only because a child cannot see its parent.
21727
+ */
21728
+ mode: _enum(["observed", "declared"]),
21729
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21730
+ holds: boolean(),
21731
+ /** What was actually read, verbatim enough for an operator to argue with. */
21732
+ detail: string()
21733
+ })),
21734
+ /**
21735
+ * The version of the SHELL, when the shell has one it can state: the
21736
+ * Electron app version it declared, or the baked seed closure that
21737
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21738
+ * `unknown` — which version belongs to the shell is precisely what is not
21739
+ * known there.
21740
+ */
21741
+ currentVersion: string().nullable()
21742
+ });
21685
21743
  var ServerRollbackInfoSchema = object({
21686
21744
  /** The version that failed (or was manually rolled back). */
21687
21745
  fromVersion: string(),
@@ -21723,7 +21781,13 @@ var ServerPackageStatusSchema = object({
21723
21781
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21724
21782
  * version skew: an older provider's payload simply omits it.
21725
21783
  */
21726
- imageContract: ImageContractSchema.optional()
21784
+ imageContract: ImageContractSchema.optional(),
21785
+ /**
21786
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21787
+ * for version skew: an older provider's payload simply omits it, and an
21788
+ * absent wrapper is unknown — never `native`.
21789
+ */
21790
+ wrapper: WrapperIdentitySchema.optional()
21727
21791
  });
21728
21792
  var ServerUpdateCheckResultSchema = object({
21729
21793
  packageName: string(),
@@ -27809,7 +27873,23 @@ var RecordingRangeSchema = object({
27809
27873
  });
27810
27874
  var RecordingAvailabilitySchema = object({
27811
27875
  deviceId: number(),
27812
- ranges: array(RecordingRangeSchema)
27876
+ ranges: array(RecordingRangeSchema),
27877
+ /**
27878
+ * Every profile this camera has footage in — not only the one `ranges`
27879
+ * describes (D433).
27880
+ *
27881
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27882
+ * and enumerating all of them triples the directory reads for a bar that
27883
+ * would look identical. But the answer used to say nothing about that, so a
27884
+ * caller asking "what can I export?" read the single preferred profile as
27885
+ * the only one that exists — on this deployment every camera records `high`
27886
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27887
+ * UI could not see it.
27888
+ *
27889
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27890
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27891
+ */
27892
+ profilesWithFootage: array(string())
27813
27893
  });
27814
27894
  var RecordingDaysSchema = object({
27815
27895
  deviceId: number(),
@@ -27835,7 +27915,11 @@ var RecordingDaysSchema = object({
27835
27915
  var RecordingAvailabilityForDeviceSchema = object({
27836
27916
  deviceId: number(),
27837
27917
  read: _enum(["read", "unreadable"]),
27838
- ranges: array(RecordingRangeSchema).readonly()
27918
+ ranges: array(RecordingRangeSchema).readonly(),
27919
+ /** Same field, same meaning, as the singular answer (D433). A row that
27920
+ * dropped it would tell a grid caller the archive holds one profile.
27921
+ * Empty on an `'unreadable'` row: nobody looked. */
27922
+ profilesWithFootage: array(string()).readonly()
27839
27923
  });
27840
27924
  /**
27841
27925
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28125,7 +28209,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28125
28209
  method(object({
28126
28210
  deviceId: number(),
28127
28211
  fromMs: number(),
28128
- toMs: number()
28212
+ toMs: number(),
28213
+ /**
28214
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28215
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28216
+ * reads. `profilesWithFootage` on the answer says what may be asked
28217
+ * for.
28218
+ */
28219
+ profile: string().optional()
28129
28220
  }), RecordingAvailabilitySchema, {
28130
28221
  kind: "query",
28131
28222
  auth: "protected"
@@ -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-CQfYIy9j.js");
5
+ const require_dist = require("../dist-zVDTQPmu.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-Cv5sAvrW.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-Cp75afkR.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.92",
3
+ "version": "1.2.94",
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",