@camstack/addon-provider-unraid 0.2.24 → 0.2.26
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/addon.js +76 -6
- package/dist/addon.mjs +76 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -15,6 +15,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
15
15
|
*/
|
|
16
16
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
17
17
|
/**
|
|
18
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
19
|
+
* Emitted only when the material on disk actually changed, so an
|
|
20
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
21
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
22
|
+
*
|
|
23
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
24
|
+
*/
|
|
25
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
26
|
+
/**
|
|
18
27
|
* A newer addon or server-root package version was found by the
|
|
19
28
|
* authoritative registry check. Emitted once when any observed
|
|
20
29
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -18981,6 +18990,12 @@ var CameraStatusSchema = object({
|
|
|
18981
18990
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18982
18991
|
fetchedAt: number()
|
|
18983
18992
|
});
|
|
18993
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18994
|
+
"disabled",
|
|
18995
|
+
"unavailable",
|
|
18996
|
+
"cannot-host-camera-root",
|
|
18997
|
+
"accelerator-preferred"
|
|
18998
|
+
]);
|
|
18984
18999
|
var NodeInferenceDeviceSchema = object({
|
|
18985
19000
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18986
19001
|
key: string(),
|
|
@@ -19011,7 +19026,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19011
19026
|
* available per format; this is the stored selection that becomes the
|
|
19012
19027
|
* default for EVERY camera landing on this accelerator.
|
|
19013
19028
|
*/
|
|
19014
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19029
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19030
|
+
/**
|
|
19031
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19032
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19033
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19034
|
+
* never disagree with the election — deriving it in the UI from
|
|
19035
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19036
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19037
|
+
* "an accelerator is serving" predicate).
|
|
19038
|
+
*/
|
|
19039
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19015
19040
|
});
|
|
19016
19041
|
var NodeInferenceDevicesSchema = object({
|
|
19017
19042
|
nodeId: string(),
|
|
@@ -23879,7 +23904,12 @@ var ListResultSchema = object({
|
|
|
23879
23904
|
probedAt: number()
|
|
23880
23905
|
});
|
|
23881
23906
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23882
|
-
|
|
23907
|
+
/**
|
|
23908
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23909
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23910
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23911
|
+
*/
|
|
23912
|
+
var ConnectionEndpointSchema = object({
|
|
23883
23913
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23884
23914
|
label: string(),
|
|
23885
23915
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23922,7 +23952,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23922
23952
|
* ordering between polls.
|
|
23923
23953
|
*/
|
|
23924
23954
|
priority: number()
|
|
23925
|
-
})
|
|
23955
|
+
});
|
|
23956
|
+
/**
|
|
23957
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23958
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23959
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23960
|
+
*/
|
|
23961
|
+
var LocalPortSourceEnum = _enum([
|
|
23962
|
+
"server-config",
|
|
23963
|
+
"server-env",
|
|
23964
|
+
"caller-hint",
|
|
23965
|
+
"default"
|
|
23966
|
+
]);
|
|
23967
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23968
|
+
var AdvertisedLocalPortSchema = object({
|
|
23969
|
+
port: number().int().min(1).max(65535),
|
|
23970
|
+
source: LocalPortSourceEnum
|
|
23971
|
+
});
|
|
23972
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23973
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23974
|
+
/**
|
|
23975
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23976
|
+
* came from.
|
|
23977
|
+
*
|
|
23978
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23979
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23980
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23981
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23982
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23983
|
+
* `caller-hint` is the hub's own socket.
|
|
23984
|
+
*
|
|
23985
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23986
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23987
|
+
* `caller-hint`.
|
|
23988
|
+
*/
|
|
23989
|
+
localPort: AdvertisedLocalPortSchema
|
|
23990
|
+
});
|
|
23926
23991
|
/**
|
|
23927
23992
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23928
23993
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23943,8 +24008,13 @@ var AllowedAddressesSchema = object({
|
|
|
23943
24008
|
*/
|
|
23944
24009
|
addresses: array(string()).readonly() });
|
|
23945
24010
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23946
|
-
/**
|
|
23947
|
-
|
|
24011
|
+
/**
|
|
24012
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24013
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24014
|
+
* only when it cannot read its own port, and says so via
|
|
24015
|
+
* `localPort.source === 'caller-hint'`.
|
|
24016
|
+
*/
|
|
24017
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23948
24018
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23949
24019
|
* candidate. Default `true`. */
|
|
23950
24020
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -14,6 +14,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
14
14
|
*/
|
|
15
15
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
16
16
|
/**
|
|
17
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
18
|
+
* Emitted only when the material on disk actually changed, so an
|
|
19
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
20
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
21
|
+
*
|
|
22
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
23
|
+
*/
|
|
24
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
25
|
+
/**
|
|
17
26
|
* A newer addon or server-root package version was found by the
|
|
18
27
|
* authoritative registry check. Emitted once when any observed
|
|
19
28
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -18980,6 +18989,12 @@ var CameraStatusSchema = object({
|
|
|
18980
18989
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18981
18990
|
fetchedAt: number()
|
|
18982
18991
|
});
|
|
18992
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18993
|
+
"disabled",
|
|
18994
|
+
"unavailable",
|
|
18995
|
+
"cannot-host-camera-root",
|
|
18996
|
+
"accelerator-preferred"
|
|
18997
|
+
]);
|
|
18983
18998
|
var NodeInferenceDeviceSchema = object({
|
|
18984
18999
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18985
19000
|
key: string(),
|
|
@@ -19010,7 +19025,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19010
19025
|
* available per format; this is the stored selection that becomes the
|
|
19011
19026
|
* default for EVERY camera landing on this accelerator.
|
|
19012
19027
|
*/
|
|
19013
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19028
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19029
|
+
/**
|
|
19030
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19031
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19032
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19033
|
+
* never disagree with the election — deriving it in the UI from
|
|
19034
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19035
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19036
|
+
* "an accelerator is serving" predicate).
|
|
19037
|
+
*/
|
|
19038
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19014
19039
|
});
|
|
19015
19040
|
var NodeInferenceDevicesSchema = object({
|
|
19016
19041
|
nodeId: string(),
|
|
@@ -23878,7 +23903,12 @@ var ListResultSchema = object({
|
|
|
23878
23903
|
probedAt: number()
|
|
23879
23904
|
});
|
|
23880
23905
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23881
|
-
|
|
23906
|
+
/**
|
|
23907
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23908
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23909
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23910
|
+
*/
|
|
23911
|
+
var ConnectionEndpointSchema = object({
|
|
23882
23912
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23883
23913
|
label: string(),
|
|
23884
23914
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23921,7 +23951,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23921
23951
|
* ordering between polls.
|
|
23922
23952
|
*/
|
|
23923
23953
|
priority: number()
|
|
23924
|
-
})
|
|
23954
|
+
});
|
|
23955
|
+
/**
|
|
23956
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23957
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23958
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23959
|
+
*/
|
|
23960
|
+
var LocalPortSourceEnum = _enum([
|
|
23961
|
+
"server-config",
|
|
23962
|
+
"server-env",
|
|
23963
|
+
"caller-hint",
|
|
23964
|
+
"default"
|
|
23965
|
+
]);
|
|
23966
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23967
|
+
var AdvertisedLocalPortSchema = object({
|
|
23968
|
+
port: number().int().min(1).max(65535),
|
|
23969
|
+
source: LocalPortSourceEnum
|
|
23970
|
+
});
|
|
23971
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23972
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23973
|
+
/**
|
|
23974
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23975
|
+
* came from.
|
|
23976
|
+
*
|
|
23977
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23978
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23979
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23980
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23981
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23982
|
+
* `caller-hint` is the hub's own socket.
|
|
23983
|
+
*
|
|
23984
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23985
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23986
|
+
* `caller-hint`.
|
|
23987
|
+
*/
|
|
23988
|
+
localPort: AdvertisedLocalPortSchema
|
|
23989
|
+
});
|
|
23925
23990
|
/**
|
|
23926
23991
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23927
23992
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23942,8 +24007,13 @@ var AllowedAddressesSchema = object({
|
|
|
23942
24007
|
*/
|
|
23943
24008
|
addresses: array(string()).readonly() });
|
|
23944
24009
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23945
|
-
/**
|
|
23946
|
-
|
|
24010
|
+
/**
|
|
24011
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24012
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24013
|
+
* only when it cannot read its own port, and says so via
|
|
24014
|
+
* `localPort.source === 'caller-hint'`.
|
|
24015
|
+
*/
|
|
24016
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23947
24017
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23948
24018
|
* candidate. Default `true`. */
|
|
23949
24019
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unraid",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "Unraid device-provider addon for CamStack — one Container per Unraid instance fanning out array, disk, docker and notification entities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|