@camstack/addon-provider-petkit 0.2.24 → 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 +66 -5
- package/dist/addon.mjs +66 -5
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -20100,6 +20100,12 @@ var CameraStatusSchema = object({
|
|
|
20100
20100
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
20101
20101
|
fetchedAt: number()
|
|
20102
20102
|
});
|
|
20103
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
20104
|
+
"disabled",
|
|
20105
|
+
"unavailable",
|
|
20106
|
+
"cannot-host-camera-root",
|
|
20107
|
+
"accelerator-preferred"
|
|
20108
|
+
]);
|
|
20103
20109
|
var NodeInferenceDeviceSchema = object({
|
|
20104
20110
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
20105
20111
|
key: string(),
|
|
@@ -20130,7 +20136,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
20130
20136
|
* available per format; this is the stored selection that becomes the
|
|
20131
20137
|
* default for EVERY camera landing on this accelerator.
|
|
20132
20138
|
*/
|
|
20133
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
20139
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
20140
|
+
/**
|
|
20141
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
20142
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
20143
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
20144
|
+
* never disagree with the election — deriving it in the UI from
|
|
20145
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
20146
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
20147
|
+
* "an accelerator is serving" predicate).
|
|
20148
|
+
*/
|
|
20149
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
20134
20150
|
});
|
|
20135
20151
|
var NodeInferenceDevicesSchema = object({
|
|
20136
20152
|
nodeId: string(),
|
|
@@ -24989,7 +25005,12 @@ var ListResultSchema = object({
|
|
|
24989
25005
|
probedAt: number()
|
|
24990
25006
|
});
|
|
24991
25007
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24992
|
-
|
|
25008
|
+
/**
|
|
25009
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
25010
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
25011
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
25012
|
+
*/
|
|
25013
|
+
var ConnectionEndpointSchema = object({
|
|
24993
25014
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24994
25015
|
label: string(),
|
|
24995
25016
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -25032,7 +25053,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
25032
25053
|
* ordering between polls.
|
|
25033
25054
|
*/
|
|
25034
25055
|
priority: number()
|
|
25035
|
-
})
|
|
25056
|
+
});
|
|
25057
|
+
/**
|
|
25058
|
+
* Where the advertised local port came from. Ordered most → least
|
|
25059
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
25060
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
25061
|
+
*/
|
|
25062
|
+
var LocalPortSourceEnum = _enum([
|
|
25063
|
+
"server-config",
|
|
25064
|
+
"server-env",
|
|
25065
|
+
"caller-hint",
|
|
25066
|
+
"default"
|
|
25067
|
+
]);
|
|
25068
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
25069
|
+
var AdvertisedLocalPortSchema = object({
|
|
25070
|
+
port: number().int().min(1).max(65535),
|
|
25071
|
+
source: LocalPortSourceEnum
|
|
25072
|
+
});
|
|
25073
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
25074
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
25075
|
+
/**
|
|
25076
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
25077
|
+
* came from.
|
|
25078
|
+
*
|
|
25079
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
25080
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
25081
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
25082
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
25083
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
25084
|
+
* `caller-hint` is the hub's own socket.
|
|
25085
|
+
*
|
|
25086
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
25087
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
25088
|
+
* `caller-hint`.
|
|
25089
|
+
*/
|
|
25090
|
+
localPort: AdvertisedLocalPortSchema
|
|
25091
|
+
});
|
|
25036
25092
|
/**
|
|
25037
25093
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
25038
25094
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -25053,8 +25109,13 @@ var AllowedAddressesSchema = object({
|
|
|
25053
25109
|
*/
|
|
25054
25110
|
addresses: array(string()).readonly() });
|
|
25055
25111
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
25056
|
-
/**
|
|
25057
|
-
|
|
25112
|
+
/**
|
|
25113
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
25114
|
+
* written against the echoing contract keep working; the hub uses it
|
|
25115
|
+
* only when it cannot read its own port, and says so via
|
|
25116
|
+
* `localPort.source === 'caller-hint'`.
|
|
25117
|
+
*/
|
|
25118
|
+
port: number().int().min(1).max(65535).optional(),
|
|
25058
25119
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
25059
25120
|
* candidate. Default `true`. */
|
|
25060
25121
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -20099,6 +20099,12 @@ var CameraStatusSchema = object({
|
|
|
20099
20099
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
20100
20100
|
fetchedAt: number()
|
|
20101
20101
|
});
|
|
20102
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
20103
|
+
"disabled",
|
|
20104
|
+
"unavailable",
|
|
20105
|
+
"cannot-host-camera-root",
|
|
20106
|
+
"accelerator-preferred"
|
|
20107
|
+
]);
|
|
20102
20108
|
var NodeInferenceDeviceSchema = object({
|
|
20103
20109
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
20104
20110
|
key: string(),
|
|
@@ -20129,7 +20135,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
20129
20135
|
* available per format; this is the stored selection that becomes the
|
|
20130
20136
|
* default for EVERY camera landing on this accelerator.
|
|
20131
20137
|
*/
|
|
20132
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
20138
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
20139
|
+
/**
|
|
20140
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
20141
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
20142
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
20143
|
+
* never disagree with the election — deriving it in the UI from
|
|
20144
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
20145
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
20146
|
+
* "an accelerator is serving" predicate).
|
|
20147
|
+
*/
|
|
20148
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
20133
20149
|
});
|
|
20134
20150
|
var NodeInferenceDevicesSchema = object({
|
|
20135
20151
|
nodeId: string(),
|
|
@@ -24988,7 +25004,12 @@ var ListResultSchema = object({
|
|
|
24988
25004
|
probedAt: number()
|
|
24989
25005
|
});
|
|
24990
25006
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24991
|
-
|
|
25007
|
+
/**
|
|
25008
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
25009
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
25010
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
25011
|
+
*/
|
|
25012
|
+
var ConnectionEndpointSchema = object({
|
|
24992
25013
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24993
25014
|
label: string(),
|
|
24994
25015
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -25031,7 +25052,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
25031
25052
|
* ordering between polls.
|
|
25032
25053
|
*/
|
|
25033
25054
|
priority: number()
|
|
25034
|
-
})
|
|
25055
|
+
});
|
|
25056
|
+
/**
|
|
25057
|
+
* Where the advertised local port came from. Ordered most → least
|
|
25058
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
25059
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
25060
|
+
*/
|
|
25061
|
+
var LocalPortSourceEnum = _enum([
|
|
25062
|
+
"server-config",
|
|
25063
|
+
"server-env",
|
|
25064
|
+
"caller-hint",
|
|
25065
|
+
"default"
|
|
25066
|
+
]);
|
|
25067
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
25068
|
+
var AdvertisedLocalPortSchema = object({
|
|
25069
|
+
port: number().int().min(1).max(65535),
|
|
25070
|
+
source: LocalPortSourceEnum
|
|
25071
|
+
});
|
|
25072
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
25073
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
25074
|
+
/**
|
|
25075
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
25076
|
+
* came from.
|
|
25077
|
+
*
|
|
25078
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
25079
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
25080
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
25081
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
25082
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
25083
|
+
* `caller-hint` is the hub's own socket.
|
|
25084
|
+
*
|
|
25085
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
25086
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
25087
|
+
* `caller-hint`.
|
|
25088
|
+
*/
|
|
25089
|
+
localPort: AdvertisedLocalPortSchema
|
|
25090
|
+
});
|
|
25035
25091
|
/**
|
|
25036
25092
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
25037
25093
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -25052,8 +25108,13 @@ var AllowedAddressesSchema = object({
|
|
|
25052
25108
|
*/
|
|
25053
25109
|
addresses: array(string()).readonly() });
|
|
25054
25110
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
25055
|
-
/**
|
|
25056
|
-
|
|
25111
|
+
/**
|
|
25112
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
25113
|
+
* written against the echoing contract keep working; the hub uses it
|
|
25114
|
+
* only when it cannot read its own port, and says so via
|
|
25115
|
+
* `localPort.source === 'caller-hint'`.
|
|
25116
|
+
*/
|
|
25117
|
+
port: number().int().min(1).max(65535).optional(),
|
|
25057
25118
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
25058
25119
|
* candidate. Default `true`. */
|
|
25059
25120
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED