@camstack/addon-provider-rademacher 0.2.23 → 0.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/addon.js +76 -6
- package/dist/addon.mjs +76 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -984,7 +984,7 @@ var Rademacher = class {
|
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
986
|
//#endregion
|
|
987
|
-
//#region ../types/dist/event-category-
|
|
987
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
988
988
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
989
989
|
EventCategory["SystemBoot"] = "system.boot";
|
|
990
990
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1000,6 +1000,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1000
1000
|
*/
|
|
1001
1001
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
1002
1002
|
/**
|
|
1003
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
1004
|
+
* Emitted only when the material on disk actually changed, so an
|
|
1005
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
1006
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
1007
|
+
*
|
|
1008
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
1009
|
+
*/
|
|
1010
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
1011
|
+
/**
|
|
1003
1012
|
* A newer addon or server-root package version was found by the
|
|
1004
1013
|
* authoritative registry check. Emitted once when any observed
|
|
1005
1014
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -19966,6 +19975,12 @@ var CameraStatusSchema = object({
|
|
|
19966
19975
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19967
19976
|
fetchedAt: number()
|
|
19968
19977
|
});
|
|
19978
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19979
|
+
"disabled",
|
|
19980
|
+
"unavailable",
|
|
19981
|
+
"cannot-host-camera-root",
|
|
19982
|
+
"accelerator-preferred"
|
|
19983
|
+
]);
|
|
19969
19984
|
var NodeInferenceDeviceSchema = object({
|
|
19970
19985
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19971
19986
|
key: string(),
|
|
@@ -19996,7 +20011,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19996
20011
|
* available per format; this is the stored selection that becomes the
|
|
19997
20012
|
* default for EVERY camera landing on this accelerator.
|
|
19998
20013
|
*/
|
|
19999
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
20014
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
20015
|
+
/**
|
|
20016
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
20017
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
20018
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
20019
|
+
* never disagree with the election — deriving it in the UI from
|
|
20020
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
20021
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
20022
|
+
* "an accelerator is serving" predicate).
|
|
20023
|
+
*/
|
|
20024
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
20000
20025
|
});
|
|
20001
20026
|
var NodeInferenceDevicesSchema = object({
|
|
20002
20027
|
nodeId: string(),
|
|
@@ -24847,7 +24872,12 @@ var ListResultSchema = object({
|
|
|
24847
24872
|
probedAt: number()
|
|
24848
24873
|
});
|
|
24849
24874
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24850
|
-
|
|
24875
|
+
/**
|
|
24876
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24877
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24878
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24879
|
+
*/
|
|
24880
|
+
var ConnectionEndpointSchema = object({
|
|
24851
24881
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24852
24882
|
label: string(),
|
|
24853
24883
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24890,7 +24920,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24890
24920
|
* ordering between polls.
|
|
24891
24921
|
*/
|
|
24892
24922
|
priority: number()
|
|
24893
|
-
})
|
|
24923
|
+
});
|
|
24924
|
+
/**
|
|
24925
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24926
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24927
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24928
|
+
*/
|
|
24929
|
+
var LocalPortSourceEnum = _enum([
|
|
24930
|
+
"server-config",
|
|
24931
|
+
"server-env",
|
|
24932
|
+
"caller-hint",
|
|
24933
|
+
"default"
|
|
24934
|
+
]);
|
|
24935
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24936
|
+
var AdvertisedLocalPortSchema = object({
|
|
24937
|
+
port: number().int().min(1).max(65535),
|
|
24938
|
+
source: LocalPortSourceEnum
|
|
24939
|
+
});
|
|
24940
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24941
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24942
|
+
/**
|
|
24943
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24944
|
+
* came from.
|
|
24945
|
+
*
|
|
24946
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24947
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24948
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24949
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24950
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24951
|
+
* `caller-hint` is the hub's own socket.
|
|
24952
|
+
*
|
|
24953
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24954
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24955
|
+
* `caller-hint`.
|
|
24956
|
+
*/
|
|
24957
|
+
localPort: AdvertisedLocalPortSchema
|
|
24958
|
+
});
|
|
24894
24959
|
/**
|
|
24895
24960
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24896
24961
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24911,8 +24976,13 @@ var AllowedAddressesSchema = object({
|
|
|
24911
24976
|
*/
|
|
24912
24977
|
addresses: array(string()).readonly() });
|
|
24913
24978
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24914
|
-
/**
|
|
24915
|
-
|
|
24979
|
+
/**
|
|
24980
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24981
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24982
|
+
* only when it cannot read its own port, and says so via
|
|
24983
|
+
* `localPort.source === 'caller-hint'`.
|
|
24984
|
+
*/
|
|
24985
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24916
24986
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24917
24987
|
* candidate. Default `true`. */
|
|
24918
24988
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -983,7 +983,7 @@ var Rademacher = class {
|
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
985
|
//#endregion
|
|
986
|
-
//#region ../types/dist/event-category-
|
|
986
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
987
987
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
988
988
|
EventCategory["SystemBoot"] = "system.boot";
|
|
989
989
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -999,6 +999,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
999
999
|
*/
|
|
1000
1000
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
1001
1001
|
/**
|
|
1002
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
1003
|
+
* Emitted only when the material on disk actually changed, so an
|
|
1004
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
1005
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
1006
|
+
*
|
|
1007
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
1008
|
+
*/
|
|
1009
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
1010
|
+
/**
|
|
1002
1011
|
* A newer addon or server-root package version was found by the
|
|
1003
1012
|
* authoritative registry check. Emitted once when any observed
|
|
1004
1013
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -19965,6 +19974,12 @@ var CameraStatusSchema = object({
|
|
|
19965
19974
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19966
19975
|
fetchedAt: number()
|
|
19967
19976
|
});
|
|
19977
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19978
|
+
"disabled",
|
|
19979
|
+
"unavailable",
|
|
19980
|
+
"cannot-host-camera-root",
|
|
19981
|
+
"accelerator-preferred"
|
|
19982
|
+
]);
|
|
19968
19983
|
var NodeInferenceDeviceSchema = object({
|
|
19969
19984
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19970
19985
|
key: string(),
|
|
@@ -19995,7 +20010,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19995
20010
|
* available per format; this is the stored selection that becomes the
|
|
19996
20011
|
* default for EVERY camera landing on this accelerator.
|
|
19997
20012
|
*/
|
|
19998
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
20013
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
20014
|
+
/**
|
|
20015
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
20016
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
20017
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
20018
|
+
* never disagree with the election — deriving it in the UI from
|
|
20019
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
20020
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
20021
|
+
* "an accelerator is serving" predicate).
|
|
20022
|
+
*/
|
|
20023
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19999
20024
|
});
|
|
20000
20025
|
var NodeInferenceDevicesSchema = object({
|
|
20001
20026
|
nodeId: string(),
|
|
@@ -24846,7 +24871,12 @@ var ListResultSchema = object({
|
|
|
24846
24871
|
probedAt: number()
|
|
24847
24872
|
});
|
|
24848
24873
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24849
|
-
|
|
24874
|
+
/**
|
|
24875
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24876
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24877
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24878
|
+
*/
|
|
24879
|
+
var ConnectionEndpointSchema = object({
|
|
24850
24880
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24851
24881
|
label: string(),
|
|
24852
24882
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24889,7 +24919,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24889
24919
|
* ordering between polls.
|
|
24890
24920
|
*/
|
|
24891
24921
|
priority: number()
|
|
24892
|
-
})
|
|
24922
|
+
});
|
|
24923
|
+
/**
|
|
24924
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24925
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24926
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24927
|
+
*/
|
|
24928
|
+
var LocalPortSourceEnum = _enum([
|
|
24929
|
+
"server-config",
|
|
24930
|
+
"server-env",
|
|
24931
|
+
"caller-hint",
|
|
24932
|
+
"default"
|
|
24933
|
+
]);
|
|
24934
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24935
|
+
var AdvertisedLocalPortSchema = object({
|
|
24936
|
+
port: number().int().min(1).max(65535),
|
|
24937
|
+
source: LocalPortSourceEnum
|
|
24938
|
+
});
|
|
24939
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24940
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24941
|
+
/**
|
|
24942
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24943
|
+
* came from.
|
|
24944
|
+
*
|
|
24945
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24946
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24947
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24948
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24949
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24950
|
+
* `caller-hint` is the hub's own socket.
|
|
24951
|
+
*
|
|
24952
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24953
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24954
|
+
* `caller-hint`.
|
|
24955
|
+
*/
|
|
24956
|
+
localPort: AdvertisedLocalPortSchema
|
|
24957
|
+
});
|
|
24893
24958
|
/**
|
|
24894
24959
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24895
24960
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24910,8 +24975,13 @@ var AllowedAddressesSchema = object({
|
|
|
24910
24975
|
*/
|
|
24911
24976
|
addresses: array(string()).readonly() });
|
|
24912
24977
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24913
|
-
/**
|
|
24914
|
-
|
|
24978
|
+
/**
|
|
24979
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24980
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24981
|
+
* only when it cannot read its own port, and says so via
|
|
24982
|
+
* `localPort.source === 'caller-hint'`.
|
|
24983
|
+
*/
|
|
24984
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24915
24985
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24916
24986
|
* candidate. Default `true`. */
|
|
24917
24987
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|