@camstack/addon-tailscale 1.2.107 → 1.2.108
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-CMdlcAV-.js → dist-BBBDJ4_e.js} +54 -2
- package/dist/{dist-Del4sKyD.mjs → dist-CW2jdX_8.mjs} +54 -2
- 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-BBBDJ4_e.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-CW2jdX_8.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";
|
|
@@ -12280,7 +12280,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12280
12280
|
* This is what lets one picker serve both the bypass and the full source
|
|
12281
12281
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12282
12282
|
*/
|
|
12283
|
-
allowTranscode: boolean().optional()
|
|
12283
|
+
allowTranscode: boolean().optional(),
|
|
12284
|
+
/**
|
|
12285
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12286
|
+
*
|
|
12287
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12288
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12289
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12290
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12291
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12292
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12293
|
+
*
|
|
12294
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12295
|
+
* here when it decides which source to BIND to a slot
|
|
12296
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12297
|
+
* could never bind them.
|
|
12298
|
+
*/
|
|
12299
|
+
requireProfileBound: boolean().optional()
|
|
12284
12300
|
}).readonly();
|
|
12285
12301
|
var PickStreamPreferencesSchema = object({
|
|
12286
12302
|
/**
|
|
@@ -12321,7 +12337,43 @@ var PickedCamStreamSchema = object({
|
|
|
12321
12337
|
*/
|
|
12322
12338
|
transcodes: boolean(),
|
|
12323
12339
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12324
|
-
reason: string()
|
|
12340
|
+
reason: string(),
|
|
12341
|
+
/**
|
|
12342
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12343
|
+
*
|
|
12344
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12345
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12346
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12347
|
+
* the same function a second time.
|
|
12348
|
+
*
|
|
12349
|
+
* Absent when the source has no slot, which a caller passing
|
|
12350
|
+
* `requireProfileBound` can never see.
|
|
12351
|
+
*/
|
|
12352
|
+
profile: CamProfileSchema.optional(),
|
|
12353
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12354
|
+
brokerId: string().optional(),
|
|
12355
|
+
/**
|
|
12356
|
+
* The broker restream URL to dial for this stream.
|
|
12357
|
+
*
|
|
12358
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12359
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12360
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12361
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12362
|
+
*/
|
|
12363
|
+
url: string().optional(),
|
|
12364
|
+
/**
|
|
12365
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12366
|
+
* from.
|
|
12367
|
+
*
|
|
12368
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12369
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12370
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12371
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12372
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12373
|
+
* are not interchangeable.
|
|
12374
|
+
*/
|
|
12375
|
+
fps: number().positive().optional(),
|
|
12376
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12325
12377
|
});
|
|
12326
12378
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12327
12379
|
deviceId: number().int().nonnegative(),
|
|
@@ -12280,7 +12280,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12280
12280
|
* This is what lets one picker serve both the bypass and the full source
|
|
12281
12281
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12282
12282
|
*/
|
|
12283
|
-
allowTranscode: boolean().optional()
|
|
12283
|
+
allowTranscode: boolean().optional(),
|
|
12284
|
+
/**
|
|
12285
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12286
|
+
*
|
|
12287
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12288
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12289
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12290
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12291
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12292
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12293
|
+
*
|
|
12294
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12295
|
+
* here when it decides which source to BIND to a slot
|
|
12296
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12297
|
+
* could never bind them.
|
|
12298
|
+
*/
|
|
12299
|
+
requireProfileBound: boolean().optional()
|
|
12284
12300
|
}).readonly();
|
|
12285
12301
|
var PickStreamPreferencesSchema = object({
|
|
12286
12302
|
/**
|
|
@@ -12321,7 +12337,43 @@ var PickedCamStreamSchema = object({
|
|
|
12321
12337
|
*/
|
|
12322
12338
|
transcodes: boolean(),
|
|
12323
12339
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12324
|
-
reason: string()
|
|
12340
|
+
reason: string(),
|
|
12341
|
+
/**
|
|
12342
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12343
|
+
*
|
|
12344
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12345
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12346
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12347
|
+
* the same function a second time.
|
|
12348
|
+
*
|
|
12349
|
+
* Absent when the source has no slot, which a caller passing
|
|
12350
|
+
* `requireProfileBound` can never see.
|
|
12351
|
+
*/
|
|
12352
|
+
profile: CamProfileSchema.optional(),
|
|
12353
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12354
|
+
brokerId: string().optional(),
|
|
12355
|
+
/**
|
|
12356
|
+
* The broker restream URL to dial for this stream.
|
|
12357
|
+
*
|
|
12358
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12359
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12360
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12361
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12362
|
+
*/
|
|
12363
|
+
url: string().optional(),
|
|
12364
|
+
/**
|
|
12365
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12366
|
+
* from.
|
|
12367
|
+
*
|
|
12368
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12369
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12370
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12371
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12372
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12373
|
+
* are not interchangeable.
|
|
12374
|
+
*/
|
|
12375
|
+
fps: number().positive().optional(),
|
|
12376
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12325
12377
|
});
|
|
12326
12378
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12327
12379
|
deviceId: number().int().nonnegative(),
|
|
@@ -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-BBBDJ4_e.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-CW2jdX_8.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.108",
|
|
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",
|