@camstack/addon-ai 0.4.14 → 0.4.15
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
|
@@ -18926,6 +18926,12 @@ var CameraStatusSchema = object({
|
|
|
18926
18926
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18927
18927
|
fetchedAt: number$1()
|
|
18928
18928
|
});
|
|
18929
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18930
|
+
"disabled",
|
|
18931
|
+
"unavailable",
|
|
18932
|
+
"cannot-host-camera-root",
|
|
18933
|
+
"accelerator-preferred"
|
|
18934
|
+
]);
|
|
18929
18935
|
var NodeInferenceDeviceSchema = object({
|
|
18930
18936
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18931
18937
|
key: string(),
|
|
@@ -18956,7 +18962,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18956
18962
|
* available per format; this is the stored selection that becomes the
|
|
18957
18963
|
* default for EVERY camera landing on this accelerator.
|
|
18958
18964
|
*/
|
|
18959
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18965
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18966
|
+
/**
|
|
18967
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18968
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18969
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18970
|
+
* never disagree with the election — deriving it in the UI from
|
|
18971
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18972
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18973
|
+
* "an accelerator is serving" predicate).
|
|
18974
|
+
*/
|
|
18975
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18960
18976
|
});
|
|
18961
18977
|
var NodeInferenceDevicesSchema = object({
|
|
18962
18978
|
nodeId: string(),
|
|
@@ -22714,7 +22730,12 @@ var ListResultSchema = object({
|
|
|
22714
22730
|
probedAt: number$1()
|
|
22715
22731
|
});
|
|
22716
22732
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22717
|
-
|
|
22733
|
+
/**
|
|
22734
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22735
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22736
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22737
|
+
*/
|
|
22738
|
+
var ConnectionEndpointSchema = object({
|
|
22718
22739
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22719
22740
|
label: string(),
|
|
22720
22741
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22757,7 +22778,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22757
22778
|
* ordering between polls.
|
|
22758
22779
|
*/
|
|
22759
22780
|
priority: number$1()
|
|
22760
|
-
})
|
|
22781
|
+
});
|
|
22782
|
+
/**
|
|
22783
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22784
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22785
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22786
|
+
*/
|
|
22787
|
+
var LocalPortSourceEnum = _enum([
|
|
22788
|
+
"server-config",
|
|
22789
|
+
"server-env",
|
|
22790
|
+
"caller-hint",
|
|
22791
|
+
"default"
|
|
22792
|
+
]);
|
|
22793
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22794
|
+
var AdvertisedLocalPortSchema = object({
|
|
22795
|
+
port: number$1().int().min(1).max(65535),
|
|
22796
|
+
source: LocalPortSourceEnum
|
|
22797
|
+
});
|
|
22798
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22799
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22800
|
+
/**
|
|
22801
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22802
|
+
* came from.
|
|
22803
|
+
*
|
|
22804
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22805
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22806
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22807
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22808
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22809
|
+
* `caller-hint` is the hub's own socket.
|
|
22810
|
+
*
|
|
22811
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22812
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22813
|
+
* `caller-hint`.
|
|
22814
|
+
*/
|
|
22815
|
+
localPort: AdvertisedLocalPortSchema
|
|
22816
|
+
});
|
|
22761
22817
|
/**
|
|
22762
22818
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22763
22819
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22778,8 +22834,13 @@ var AllowedAddressesSchema = object({
|
|
|
22778
22834
|
*/
|
|
22779
22835
|
addresses: array(string()).readonly() });
|
|
22780
22836
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22781
|
-
/**
|
|
22782
|
-
|
|
22837
|
+
/**
|
|
22838
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22839
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22840
|
+
* only when it cannot read its own port, and says so via
|
|
22841
|
+
* `localPort.source === 'caller-hint'`.
|
|
22842
|
+
*/
|
|
22843
|
+
port: number$1().int().min(1).max(65535).optional(),
|
|
22783
22844
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22784
22845
|
* candidate. Default `true`. */
|
|
22785
22846
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -18952,6 +18952,12 @@ var CameraStatusSchema = object({
|
|
|
18952
18952
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18953
18953
|
fetchedAt: number$1()
|
|
18954
18954
|
});
|
|
18955
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18956
|
+
"disabled",
|
|
18957
|
+
"unavailable",
|
|
18958
|
+
"cannot-host-camera-root",
|
|
18959
|
+
"accelerator-preferred"
|
|
18960
|
+
]);
|
|
18955
18961
|
var NodeInferenceDeviceSchema = object({
|
|
18956
18962
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18957
18963
|
key: string(),
|
|
@@ -18982,7 +18988,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18982
18988
|
* available per format; this is the stored selection that becomes the
|
|
18983
18989
|
* default for EVERY camera landing on this accelerator.
|
|
18984
18990
|
*/
|
|
18985
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18991
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18992
|
+
/**
|
|
18993
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18994
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18995
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18996
|
+
* never disagree with the election — deriving it in the UI from
|
|
18997
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18998
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18999
|
+
* "an accelerator is serving" predicate).
|
|
19000
|
+
*/
|
|
19001
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18986
19002
|
});
|
|
18987
19003
|
var NodeInferenceDevicesSchema = object({
|
|
18988
19004
|
nodeId: string(),
|
|
@@ -22740,7 +22756,12 @@ var ListResultSchema = object({
|
|
|
22740
22756
|
probedAt: number$1()
|
|
22741
22757
|
});
|
|
22742
22758
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22743
|
-
|
|
22759
|
+
/**
|
|
22760
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22761
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22762
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22763
|
+
*/
|
|
22764
|
+
var ConnectionEndpointSchema = object({
|
|
22744
22765
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22745
22766
|
label: string(),
|
|
22746
22767
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22783,7 +22804,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22783
22804
|
* ordering between polls.
|
|
22784
22805
|
*/
|
|
22785
22806
|
priority: number$1()
|
|
22786
|
-
})
|
|
22807
|
+
});
|
|
22808
|
+
/**
|
|
22809
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22810
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22811
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22812
|
+
*/
|
|
22813
|
+
var LocalPortSourceEnum = _enum([
|
|
22814
|
+
"server-config",
|
|
22815
|
+
"server-env",
|
|
22816
|
+
"caller-hint",
|
|
22817
|
+
"default"
|
|
22818
|
+
]);
|
|
22819
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22820
|
+
var AdvertisedLocalPortSchema = object({
|
|
22821
|
+
port: number$1().int().min(1).max(65535),
|
|
22822
|
+
source: LocalPortSourceEnum
|
|
22823
|
+
});
|
|
22824
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22825
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22826
|
+
/**
|
|
22827
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22828
|
+
* came from.
|
|
22829
|
+
*
|
|
22830
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22831
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22832
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22833
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22834
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22835
|
+
* `caller-hint` is the hub's own socket.
|
|
22836
|
+
*
|
|
22837
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22838
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22839
|
+
* `caller-hint`.
|
|
22840
|
+
*/
|
|
22841
|
+
localPort: AdvertisedLocalPortSchema
|
|
22842
|
+
});
|
|
22787
22843
|
/**
|
|
22788
22844
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22789
22845
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22804,8 +22860,13 @@ var AllowedAddressesSchema = object({
|
|
|
22804
22860
|
*/
|
|
22805
22861
|
addresses: array(string()).readonly() });
|
|
22806
22862
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22807
|
-
/**
|
|
22808
|
-
|
|
22863
|
+
/**
|
|
22864
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22865
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22866
|
+
* only when it cannot read its own port, and says so via
|
|
22867
|
+
* `localPort.source === 'caller-hint'`.
|
|
22868
|
+
*/
|
|
22869
|
+
port: number$1().int().min(1).max(65535).optional(),
|
|
22809
22870
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22810
22871
|
* candidate. Default `true`. */
|
|
22811
22872
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.15",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|