@camstack/addon-tailscale 1.2.24 → 1.2.25
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-Of54y7eC.js → dist-B3cBbqzz.js} +66 -5
- package/dist/{dist-9AnjWRPW.mjs → dist-cyVteDFT.mjs} +66 -5
- 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-B3cBbqzz.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-cyVteDFT.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";
|
|
@@ -18673,6 +18673,12 @@ var CameraStatusSchema = object({
|
|
|
18673
18673
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18674
18674
|
fetchedAt: number()
|
|
18675
18675
|
});
|
|
18676
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18677
|
+
"disabled",
|
|
18678
|
+
"unavailable",
|
|
18679
|
+
"cannot-host-camera-root",
|
|
18680
|
+
"accelerator-preferred"
|
|
18681
|
+
]);
|
|
18676
18682
|
var NodeInferenceDeviceSchema = object({
|
|
18677
18683
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18678
18684
|
key: string(),
|
|
@@ -18703,7 +18709,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18703
18709
|
* available per format; this is the stored selection that becomes the
|
|
18704
18710
|
* default for EVERY camera landing on this accelerator.
|
|
18705
18711
|
*/
|
|
18706
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18712
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18713
|
+
/**
|
|
18714
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18715
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18716
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18717
|
+
* never disagree with the election — deriving it in the UI from
|
|
18718
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18719
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18720
|
+
* "an accelerator is serving" predicate).
|
|
18721
|
+
*/
|
|
18722
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18707
18723
|
});
|
|
18708
18724
|
var NodeInferenceDevicesSchema = object({
|
|
18709
18725
|
nodeId: string(),
|
|
@@ -22461,7 +22477,12 @@ var ListResultSchema = object({
|
|
|
22461
22477
|
probedAt: number()
|
|
22462
22478
|
});
|
|
22463
22479
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22464
|
-
|
|
22480
|
+
/**
|
|
22481
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22482
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22483
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22484
|
+
*/
|
|
22485
|
+
var ConnectionEndpointSchema = object({
|
|
22465
22486
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22466
22487
|
label: string(),
|
|
22467
22488
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22504,7 +22525,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22504
22525
|
* ordering between polls.
|
|
22505
22526
|
*/
|
|
22506
22527
|
priority: number()
|
|
22507
|
-
})
|
|
22528
|
+
});
|
|
22529
|
+
/**
|
|
22530
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22531
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22532
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22533
|
+
*/
|
|
22534
|
+
var LocalPortSourceEnum = _enum([
|
|
22535
|
+
"server-config",
|
|
22536
|
+
"server-env",
|
|
22537
|
+
"caller-hint",
|
|
22538
|
+
"default"
|
|
22539
|
+
]);
|
|
22540
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22541
|
+
var AdvertisedLocalPortSchema = object({
|
|
22542
|
+
port: number().int().min(1).max(65535),
|
|
22543
|
+
source: LocalPortSourceEnum
|
|
22544
|
+
});
|
|
22545
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22546
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22547
|
+
/**
|
|
22548
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22549
|
+
* came from.
|
|
22550
|
+
*
|
|
22551
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22552
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22553
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22554
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22555
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22556
|
+
* `caller-hint` is the hub's own socket.
|
|
22557
|
+
*
|
|
22558
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22559
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22560
|
+
* `caller-hint`.
|
|
22561
|
+
*/
|
|
22562
|
+
localPort: AdvertisedLocalPortSchema
|
|
22563
|
+
});
|
|
22508
22564
|
/**
|
|
22509
22565
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22510
22566
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22525,8 +22581,13 @@ var AllowedAddressesSchema = object({
|
|
|
22525
22581
|
*/
|
|
22526
22582
|
addresses: array(string()).readonly() });
|
|
22527
22583
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22528
|
-
/**
|
|
22529
|
-
|
|
22584
|
+
/**
|
|
22585
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22586
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22587
|
+
* only when it cannot read its own port, and says so via
|
|
22588
|
+
* `localPort.source === 'caller-hint'`.
|
|
22589
|
+
*/
|
|
22590
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22530
22591
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22531
22592
|
* candidate. Default `true`. */
|
|
22532
22593
|
includeLoopback: boolean().optional(),
|
|
@@ -18673,6 +18673,12 @@ var CameraStatusSchema = object({
|
|
|
18673
18673
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18674
18674
|
fetchedAt: number()
|
|
18675
18675
|
});
|
|
18676
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18677
|
+
"disabled",
|
|
18678
|
+
"unavailable",
|
|
18679
|
+
"cannot-host-camera-root",
|
|
18680
|
+
"accelerator-preferred"
|
|
18681
|
+
]);
|
|
18676
18682
|
var NodeInferenceDeviceSchema = object({
|
|
18677
18683
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18678
18684
|
key: string(),
|
|
@@ -18703,7 +18709,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18703
18709
|
* available per format; this is the stored selection that becomes the
|
|
18704
18710
|
* default for EVERY camera landing on this accelerator.
|
|
18705
18711
|
*/
|
|
18706
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18712
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18713
|
+
/**
|
|
18714
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18715
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18716
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18717
|
+
* never disagree with the election — deriving it in the UI from
|
|
18718
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18719
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18720
|
+
* "an accelerator is serving" predicate).
|
|
18721
|
+
*/
|
|
18722
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18707
18723
|
});
|
|
18708
18724
|
var NodeInferenceDevicesSchema = object({
|
|
18709
18725
|
nodeId: string(),
|
|
@@ -22461,7 +22477,12 @@ var ListResultSchema = object({
|
|
|
22461
22477
|
probedAt: number()
|
|
22462
22478
|
});
|
|
22463
22479
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22464
|
-
|
|
22480
|
+
/**
|
|
22481
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22482
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22483
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22484
|
+
*/
|
|
22485
|
+
var ConnectionEndpointSchema = object({
|
|
22465
22486
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22466
22487
|
label: string(),
|
|
22467
22488
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22504,7 +22525,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22504
22525
|
* ordering between polls.
|
|
22505
22526
|
*/
|
|
22506
22527
|
priority: number()
|
|
22507
|
-
})
|
|
22528
|
+
});
|
|
22529
|
+
/**
|
|
22530
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22531
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22532
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22533
|
+
*/
|
|
22534
|
+
var LocalPortSourceEnum = _enum([
|
|
22535
|
+
"server-config",
|
|
22536
|
+
"server-env",
|
|
22537
|
+
"caller-hint",
|
|
22538
|
+
"default"
|
|
22539
|
+
]);
|
|
22540
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22541
|
+
var AdvertisedLocalPortSchema = object({
|
|
22542
|
+
port: number().int().min(1).max(65535),
|
|
22543
|
+
source: LocalPortSourceEnum
|
|
22544
|
+
});
|
|
22545
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22546
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22547
|
+
/**
|
|
22548
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22549
|
+
* came from.
|
|
22550
|
+
*
|
|
22551
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22552
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22553
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22554
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22555
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22556
|
+
* `caller-hint` is the hub's own socket.
|
|
22557
|
+
*
|
|
22558
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22559
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22560
|
+
* `caller-hint`.
|
|
22561
|
+
*/
|
|
22562
|
+
localPort: AdvertisedLocalPortSchema
|
|
22563
|
+
});
|
|
22508
22564
|
/**
|
|
22509
22565
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22510
22566
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22525,8 +22581,13 @@ var AllowedAddressesSchema = object({
|
|
|
22525
22581
|
*/
|
|
22526
22582
|
addresses: array(string()).readonly() });
|
|
22527
22583
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22528
|
-
/**
|
|
22529
|
-
|
|
22584
|
+
/**
|
|
22585
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22586
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22587
|
+
* only when it cannot read its own port, and says so via
|
|
22588
|
+
* `localPort.source === 'caller-hint'`.
|
|
22589
|
+
*/
|
|
22590
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22530
22591
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22531
22592
|
* candidate. Default `true`. */
|
|
22532
22593
|
includeLoopback: boolean().optional(),
|
|
@@ -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-B3cBbqzz.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-cyVteDFT.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.25",
|
|
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",
|