@camstack/addon-tailscale 1.2.74 → 1.2.76
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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-BxbhH1L5.mjs → dist-COuidsyV.mjs} +47 -34
- package/dist/{dist-CRZZaJqB.js → dist-DL2hMfTT.js} +47 -34
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
27
|
+
const require_dist = require("../dist-DL2hMfTT.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-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-COuidsyV.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";
|
|
@@ -7866,17 +7866,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7866
7866
|
/**
|
|
7867
7867
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7868
7868
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7869
|
-
* - `off`
|
|
7870
|
-
* - `events`
|
|
7871
|
-
* - `continuous`
|
|
7872
|
-
*
|
|
7873
|
-
*
|
|
7874
|
-
*
|
|
7869
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7870
|
+
* - `events` — every band records around triggers only.
|
|
7871
|
+
* - `continuous` — at least one band records continuously.
|
|
7872
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7873
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7874
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7875
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7876
|
+
*
|
|
7877
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7878
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7879
|
+
* has no effect.
|
|
7880
|
+
*
|
|
7881
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7882
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7883
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7884
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7885
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7875
7886
|
*/
|
|
7876
7887
|
var RecordingStorageModeSchema = _enum([
|
|
7877
7888
|
"off",
|
|
7878
7889
|
"events",
|
|
7879
|
-
"continuous"
|
|
7890
|
+
"continuous",
|
|
7891
|
+
"on-device-decision"
|
|
7880
7892
|
]);
|
|
7881
7893
|
/**
|
|
7882
7894
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7926,22 +7938,7 @@ var RecordingTriggersSchema = object({
|
|
|
7926
7938
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7927
7939
|
* registrare.
|
|
7928
7940
|
*/
|
|
7929
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7930
|
-
/**
|
|
7931
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7932
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7933
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7934
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7935
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7936
|
-
*
|
|
7937
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7938
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7939
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7940
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7941
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7942
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7943
|
-
*/
|
|
7944
|
-
deviceSignal: boolean().optional()
|
|
7941
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7945
7942
|
});
|
|
7946
7943
|
/**
|
|
7947
7944
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8025,8 +8022,29 @@ var RecordingConfigSchema = object({
|
|
|
8025
8022
|
* "off" is the absence of a covering band, never a band value.
|
|
8026
8023
|
*/
|
|
8027
8024
|
bands: array(RecordingBandSchema).default([]),
|
|
8025
|
+
/**
|
|
8026
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8027
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8028
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8029
|
+
* recording intent that is not a band.
|
|
8030
|
+
*
|
|
8031
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8032
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8033
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8034
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8035
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8036
|
+
* job however long it is, and closes one pad after the fall.
|
|
8037
|
+
*
|
|
8038
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8039
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8040
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8041
|
+
*/
|
|
8042
|
+
deviceDecision: boolean().optional(),
|
|
8028
8043
|
retention: RecordingRetentionSchema.optional()
|
|
8029
|
-
}).strict()
|
|
8044
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8045
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8046
|
+
path: ["bands"]
|
|
8047
|
+
});
|
|
8030
8048
|
/**
|
|
8031
8049
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8032
8050
|
*
|
|
@@ -20691,11 +20709,7 @@ var CameraAudioStatusSchema = object({
|
|
|
20691
20709
|
});
|
|
20692
20710
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20693
20711
|
var CameraRecordingStatusSchema = object({
|
|
20694
|
-
mode:
|
|
20695
|
-
"off",
|
|
20696
|
-
"continuous",
|
|
20697
|
-
"events"
|
|
20698
|
-
]),
|
|
20712
|
+
mode: RecordingStorageModeSchema,
|
|
20699
20713
|
active: boolean(),
|
|
20700
20714
|
storageBytes: number()
|
|
20701
20715
|
});
|
|
@@ -27162,11 +27176,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27162
27176
|
var RecordingStatusSchema = object({
|
|
27163
27177
|
deviceId: number(),
|
|
27164
27178
|
enabled: boolean(),
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
]),
|
|
27179
|
+
/** THE derived storage mode, from the one definition
|
|
27180
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
27181
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
27182
|
+
activeMode: RecordingStorageModeSchema,
|
|
27170
27183
|
nodeId: string(),
|
|
27171
27184
|
storageBytes: number()
|
|
27172
27185
|
});
|
|
@@ -7866,17 +7866,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7866
7866
|
/**
|
|
7867
7867
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7868
7868
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7869
|
-
* - `off`
|
|
7870
|
-
* - `events`
|
|
7871
|
-
* - `continuous`
|
|
7872
|
-
*
|
|
7873
|
-
*
|
|
7874
|
-
*
|
|
7869
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7870
|
+
* - `events` — every band records around triggers only.
|
|
7871
|
+
* - `continuous` — at least one band records continuously.
|
|
7872
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7873
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7874
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7875
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7876
|
+
*
|
|
7877
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7878
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7879
|
+
* has no effect.
|
|
7880
|
+
*
|
|
7881
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7882
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7883
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7884
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7885
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7875
7886
|
*/
|
|
7876
7887
|
var RecordingStorageModeSchema = _enum([
|
|
7877
7888
|
"off",
|
|
7878
7889
|
"events",
|
|
7879
|
-
"continuous"
|
|
7890
|
+
"continuous",
|
|
7891
|
+
"on-device-decision"
|
|
7880
7892
|
]);
|
|
7881
7893
|
/**
|
|
7882
7894
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7926,22 +7938,7 @@ var RecordingTriggersSchema = object({
|
|
|
7926
7938
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7927
7939
|
* registrare.
|
|
7928
7940
|
*/
|
|
7929
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7930
|
-
/**
|
|
7931
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7932
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7933
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7934
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7935
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7936
|
-
*
|
|
7937
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7938
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7939
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7940
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7941
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7942
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7943
|
-
*/
|
|
7944
|
-
deviceSignal: boolean().optional()
|
|
7941
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7945
7942
|
});
|
|
7946
7943
|
/**
|
|
7947
7944
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8025,8 +8022,29 @@ var RecordingConfigSchema = object({
|
|
|
8025
8022
|
* "off" is the absence of a covering band, never a band value.
|
|
8026
8023
|
*/
|
|
8027
8024
|
bands: array(RecordingBandSchema).default([]),
|
|
8025
|
+
/**
|
|
8026
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8027
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8028
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8029
|
+
* recording intent that is not a band.
|
|
8030
|
+
*
|
|
8031
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8032
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8033
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8034
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8035
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8036
|
+
* job however long it is, and closes one pad after the fall.
|
|
8037
|
+
*
|
|
8038
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8039
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8040
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8041
|
+
*/
|
|
8042
|
+
deviceDecision: boolean().optional(),
|
|
8028
8043
|
retention: RecordingRetentionSchema.optional()
|
|
8029
|
-
}).strict()
|
|
8044
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8045
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8046
|
+
path: ["bands"]
|
|
8047
|
+
});
|
|
8030
8048
|
/**
|
|
8031
8049
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8032
8050
|
*
|
|
@@ -20691,11 +20709,7 @@ var CameraAudioStatusSchema = object({
|
|
|
20691
20709
|
});
|
|
20692
20710
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20693
20711
|
var CameraRecordingStatusSchema = object({
|
|
20694
|
-
mode:
|
|
20695
|
-
"off",
|
|
20696
|
-
"continuous",
|
|
20697
|
-
"events"
|
|
20698
|
-
]),
|
|
20712
|
+
mode: RecordingStorageModeSchema,
|
|
20699
20713
|
active: boolean(),
|
|
20700
20714
|
storageBytes: number()
|
|
20701
20715
|
});
|
|
@@ -27162,11 +27176,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27162
27176
|
var RecordingStatusSchema = object({
|
|
27163
27177
|
deviceId: number(),
|
|
27164
27178
|
enabled: boolean(),
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
]),
|
|
27179
|
+
/** THE derived storage mode, from the one definition
|
|
27180
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
27181
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
27182
|
+
activeMode: RecordingStorageModeSchema,
|
|
27170
27183
|
nodeId: string(),
|
|
27171
27184
|
storageBytes: number()
|
|
27172
27185
|
});
|
|
@@ -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-
|
|
5
|
+
const require_dist = require("../dist-DL2hMfTT.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-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-COuidsyV.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.
|
|
3
|
+
"version": "1.2.76",
|
|
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",
|