@camstack/addon-provider-rademacher 0.2.23 → 0.2.24
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 +66 -5
- package/dist/addon.mjs +66 -5
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -19966,6 +19966,12 @@ var CameraStatusSchema = object({
|
|
|
19966
19966
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19967
19967
|
fetchedAt: number()
|
|
19968
19968
|
});
|
|
19969
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19970
|
+
"disabled",
|
|
19971
|
+
"unavailable",
|
|
19972
|
+
"cannot-host-camera-root",
|
|
19973
|
+
"accelerator-preferred"
|
|
19974
|
+
]);
|
|
19969
19975
|
var NodeInferenceDeviceSchema = object({
|
|
19970
19976
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19971
19977
|
key: string(),
|
|
@@ -19996,7 +20002,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19996
20002
|
* available per format; this is the stored selection that becomes the
|
|
19997
20003
|
* default for EVERY camera landing on this accelerator.
|
|
19998
20004
|
*/
|
|
19999
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
20005
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
20006
|
+
/**
|
|
20007
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
20008
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
20009
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
20010
|
+
* never disagree with the election — deriving it in the UI from
|
|
20011
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
20012
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
20013
|
+
* "an accelerator is serving" predicate).
|
|
20014
|
+
*/
|
|
20015
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
20000
20016
|
});
|
|
20001
20017
|
var NodeInferenceDevicesSchema = object({
|
|
20002
20018
|
nodeId: string(),
|
|
@@ -24847,7 +24863,12 @@ var ListResultSchema = object({
|
|
|
24847
24863
|
probedAt: number()
|
|
24848
24864
|
});
|
|
24849
24865
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24850
|
-
|
|
24866
|
+
/**
|
|
24867
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24868
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24869
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24870
|
+
*/
|
|
24871
|
+
var ConnectionEndpointSchema = object({
|
|
24851
24872
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24852
24873
|
label: string(),
|
|
24853
24874
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24890,7 +24911,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24890
24911
|
* ordering between polls.
|
|
24891
24912
|
*/
|
|
24892
24913
|
priority: number()
|
|
24893
|
-
})
|
|
24914
|
+
});
|
|
24915
|
+
/**
|
|
24916
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24917
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24918
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24919
|
+
*/
|
|
24920
|
+
var LocalPortSourceEnum = _enum([
|
|
24921
|
+
"server-config",
|
|
24922
|
+
"server-env",
|
|
24923
|
+
"caller-hint",
|
|
24924
|
+
"default"
|
|
24925
|
+
]);
|
|
24926
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24927
|
+
var AdvertisedLocalPortSchema = object({
|
|
24928
|
+
port: number().int().min(1).max(65535),
|
|
24929
|
+
source: LocalPortSourceEnum
|
|
24930
|
+
});
|
|
24931
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24932
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24933
|
+
/**
|
|
24934
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24935
|
+
* came from.
|
|
24936
|
+
*
|
|
24937
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24938
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24939
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24940
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24941
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24942
|
+
* `caller-hint` is the hub's own socket.
|
|
24943
|
+
*
|
|
24944
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24945
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24946
|
+
* `caller-hint`.
|
|
24947
|
+
*/
|
|
24948
|
+
localPort: AdvertisedLocalPortSchema
|
|
24949
|
+
});
|
|
24894
24950
|
/**
|
|
24895
24951
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24896
24952
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24911,8 +24967,13 @@ var AllowedAddressesSchema = object({
|
|
|
24911
24967
|
*/
|
|
24912
24968
|
addresses: array(string()).readonly() });
|
|
24913
24969
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24914
|
-
/**
|
|
24915
|
-
|
|
24970
|
+
/**
|
|
24971
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24972
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24973
|
+
* only when it cannot read its own port, and says so via
|
|
24974
|
+
* `localPort.source === 'caller-hint'`.
|
|
24975
|
+
*/
|
|
24976
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24916
24977
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24917
24978
|
* candidate. Default `true`. */
|
|
24918
24979
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -19965,6 +19965,12 @@ var CameraStatusSchema = object({
|
|
|
19965
19965
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19966
19966
|
fetchedAt: number()
|
|
19967
19967
|
});
|
|
19968
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19969
|
+
"disabled",
|
|
19970
|
+
"unavailable",
|
|
19971
|
+
"cannot-host-camera-root",
|
|
19972
|
+
"accelerator-preferred"
|
|
19973
|
+
]);
|
|
19968
19974
|
var NodeInferenceDeviceSchema = object({
|
|
19969
19975
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19970
19976
|
key: string(),
|
|
@@ -19995,7 +20001,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19995
20001
|
* available per format; this is the stored selection that becomes the
|
|
19996
20002
|
* default for EVERY camera landing on this accelerator.
|
|
19997
20003
|
*/
|
|
19998
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
20004
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
20005
|
+
/**
|
|
20006
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
20007
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
20008
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
20009
|
+
* never disagree with the election — deriving it in the UI from
|
|
20010
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
20011
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
20012
|
+
* "an accelerator is serving" predicate).
|
|
20013
|
+
*/
|
|
20014
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19999
20015
|
});
|
|
20000
20016
|
var NodeInferenceDevicesSchema = object({
|
|
20001
20017
|
nodeId: string(),
|
|
@@ -24846,7 +24862,12 @@ var ListResultSchema = object({
|
|
|
24846
24862
|
probedAt: number()
|
|
24847
24863
|
});
|
|
24848
24864
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24849
|
-
|
|
24865
|
+
/**
|
|
24866
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24867
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24868
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24869
|
+
*/
|
|
24870
|
+
var ConnectionEndpointSchema = object({
|
|
24850
24871
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24851
24872
|
label: string(),
|
|
24852
24873
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24889,7 +24910,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24889
24910
|
* ordering between polls.
|
|
24890
24911
|
*/
|
|
24891
24912
|
priority: number()
|
|
24892
|
-
})
|
|
24913
|
+
});
|
|
24914
|
+
/**
|
|
24915
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24916
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24917
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24918
|
+
*/
|
|
24919
|
+
var LocalPortSourceEnum = _enum([
|
|
24920
|
+
"server-config",
|
|
24921
|
+
"server-env",
|
|
24922
|
+
"caller-hint",
|
|
24923
|
+
"default"
|
|
24924
|
+
]);
|
|
24925
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24926
|
+
var AdvertisedLocalPortSchema = object({
|
|
24927
|
+
port: number().int().min(1).max(65535),
|
|
24928
|
+
source: LocalPortSourceEnum
|
|
24929
|
+
});
|
|
24930
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24931
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24932
|
+
/**
|
|
24933
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24934
|
+
* came from.
|
|
24935
|
+
*
|
|
24936
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24937
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24938
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24939
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24940
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24941
|
+
* `caller-hint` is the hub's own socket.
|
|
24942
|
+
*
|
|
24943
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24944
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24945
|
+
* `caller-hint`.
|
|
24946
|
+
*/
|
|
24947
|
+
localPort: AdvertisedLocalPortSchema
|
|
24948
|
+
});
|
|
24893
24949
|
/**
|
|
24894
24950
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24895
24951
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24910,8 +24966,13 @@ var AllowedAddressesSchema = object({
|
|
|
24910
24966
|
*/
|
|
24911
24967
|
addresses: array(string()).readonly() });
|
|
24912
24968
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24913
|
-
/**
|
|
24914
|
-
|
|
24969
|
+
/**
|
|
24970
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24971
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24972
|
+
* only when it cannot read its own port, and says so via
|
|
24973
|
+
* `localPort.source === 'caller-hint'`.
|
|
24974
|
+
*/
|
|
24975
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24915
24976
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24916
24977
|
* candidate. Default `true`. */
|
|
24917
24978
|
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.24",
|
|
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",
|