@camstack/addon-agent-ui 1.2.185 → 1.2.186
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 +215 -172
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5380,7 +5380,7 @@ var ZodIssueCode = {
|
|
|
5380
5380
|
var ZodFirstPartyTypeKind;
|
|
5381
5381
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5382
5382
|
//#endregion
|
|
5383
|
-
//#region ../types/dist/sleep-
|
|
5383
|
+
//#region ../types/dist/sleep-DAJ9Er57.mjs
|
|
5384
5384
|
/**
|
|
5385
5385
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5386
5386
|
* window to float samples (D455).
|
|
@@ -23659,148 +23659,17 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23659
23659
|
settings: record(string(), unknown()).optional()
|
|
23660
23660
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
23661
23661
|
/**
|
|
23662
|
-
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
23663
|
-
* policy, the atomic share write, the observed placement statistics, the
|
|
23664
|
-
* hardware share suggestion and the stale device pins.
|
|
23665
|
-
*/
|
|
23666
|
-
/**
|
|
23667
|
-
* How a new detection session picks its node and device.
|
|
23668
|
-
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
23669
|
-
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
23670
|
-
* weight only bites once a node already holds a session.
|
|
23671
|
-
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
23672
|
-
* full or drowning node yields to a free one (D748).
|
|
23673
|
-
*/
|
|
23674
|
-
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
23675
|
-
var LoadBalancingSharesInputSchema = object({
|
|
23676
|
-
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
23677
|
-
nodes: record(string(), number().positive()).default({}),
|
|
23678
|
-
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
23679
|
-
devices: record(string(), record(string(), number().positive())).default({})
|
|
23680
|
-
});
|
|
23681
|
-
var PlacementStatsInputSchema = object({
|
|
23682
|
-
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
23683
|
-
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
23684
|
-
var PlacementDeviceStatsSchema = object({
|
|
23685
|
-
deviceKey: string(),
|
|
23686
|
-
/** Sessions running on this device now. */
|
|
23687
|
-
sessionsNow: number(),
|
|
23688
|
-
/** Sessions started on this device inside the window. */
|
|
23689
|
-
sessionsStarted: number(),
|
|
23690
|
-
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
23691
|
-
observedShare: number().nullable()
|
|
23692
|
-
});
|
|
23693
|
-
var PlacementNodeStatsSchema = object({
|
|
23694
|
-
nodeId: string(),
|
|
23695
|
-
sessionsNow: number(),
|
|
23696
|
-
sessionsStarted: number(),
|
|
23697
|
-
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
23698
|
-
observedShare: number().nullable(),
|
|
23699
|
-
/** Most sessions this node ran at once inside the window. */
|
|
23700
|
-
peakSessions: number(),
|
|
23701
|
-
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
23702
|
-
yieldsAway: number(),
|
|
23703
|
-
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
23704
|
-
});
|
|
23705
|
-
/** A camera's device pin that the session path cannot honour. */
|
|
23706
|
-
var StaleDevicePinSchema = object({
|
|
23707
|
-
deviceId: number(),
|
|
23708
|
-
deviceKey: string(),
|
|
23709
|
-
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
23710
|
-
reason: _enum(["disabled", "absent"])
|
|
23711
|
-
});
|
|
23712
|
-
var PlacementStatsSchema = object({
|
|
23713
|
-
policy: SessionPlacementPolicySchema,
|
|
23714
|
-
windowMs: number(),
|
|
23715
|
-
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
23716
|
-
observedForMs: number(),
|
|
23717
|
-
sessionsNow: number(),
|
|
23718
|
-
/** Most parallel sessions across the cluster inside the window. */
|
|
23719
|
-
clusterPeakSessions: number(),
|
|
23720
|
-
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
23721
|
-
stalePins: array(StaleDevicePinSchema).readonly()
|
|
23722
|
-
});
|
|
23723
|
-
var SuggestSharesInputSchema = object({ headroom: number().min(.3).max(.5).default(.4) });
|
|
23724
|
-
var SuggestedDeviceShareSchema = object({
|
|
23725
|
-
deviceKey: string(),
|
|
23726
|
-
/** Share of the node (0–100, rounded). */
|
|
23727
|
-
share: number(),
|
|
23728
|
-
modelId: string().nullable(),
|
|
23729
|
-
/** Inferences per second at that model, from the measured table. */
|
|
23730
|
-
fps: number().nullable(),
|
|
23731
|
-
measured: boolean(),
|
|
23732
|
-
/** Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋. Never enforced. */
|
|
23733
|
-
suggestedMaxSessions: number().nullable()
|
|
23734
|
-
});
|
|
23735
|
-
var SuggestedNodeShareSchema = object({
|
|
23736
|
-
nodeId: string(),
|
|
23737
|
-
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
23738
|
-
share: number().nullable(),
|
|
23739
|
-
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
23740
|
-
capacitySessions: number(),
|
|
23741
|
-
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
23742
|
-
skippedReason: string().nullable()
|
|
23743
|
-
});
|
|
23744
|
-
var SuggestSharesResultSchema = object({
|
|
23745
|
-
headroom: number(),
|
|
23746
|
-
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
23747
|
-
cameraFps: number(),
|
|
23748
|
-
/** How many share → model → capacity rounds ran before the shares stopped moving (≤ 3). */
|
|
23749
|
-
iterations: number(),
|
|
23750
|
-
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
23751
|
-
});
|
|
23752
|
-
/**
|
|
23753
|
-
* Where the node and device shares come from (D750).
|
|
23754
|
-
* - `auto` — computed by the system from the cluster's measured capacity at
|
|
23755
|
-
* the Auto tune models, and recomputed whenever a node or device joins,
|
|
23756
|
-
* leaves, is switched on or off, or changes model.
|
|
23757
|
-
* - `manual` — the operator's stored sliders. A node or device that cannot
|
|
23758
|
-
* take sessions gives its share to the others in proportion; the stored
|
|
23759
|
-
* values are never rewritten for that.
|
|
23760
|
-
*/
|
|
23761
|
-
var ShareSourceSchema = _enum(["auto", "manual"]);
|
|
23762
|
-
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
23763
|
-
object({
|
|
23764
|
-
nodes: record(string(), number()),
|
|
23765
|
-
devices: record(string(), record(string(), number()))
|
|
23766
|
-
});
|
|
23767
|
-
var EffectiveDeviceShareSchema = object({
|
|
23768
|
-
deviceKey: string(),
|
|
23769
|
-
/** Can take sessions now (enabled, available, can run the root). */
|
|
23770
|
-
eligible: boolean(),
|
|
23771
|
-
/** The share the source assigns, as a percentage of the node's devices. */
|
|
23772
|
-
configuredPct: number(),
|
|
23773
|
-
/** The share actually used, after an ineligible device's share went to the others. */
|
|
23774
|
-
effectivePct: number()
|
|
23775
|
-
});
|
|
23776
|
-
var EffectiveNodeShareSchema = object({
|
|
23777
|
-
nodeId: string(),
|
|
23778
|
-
eligible: boolean(),
|
|
23779
|
-
configuredPct: number(),
|
|
23780
|
-
effectivePct: number(),
|
|
23781
|
-
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
23782
|
-
});
|
|
23783
|
-
var EffectiveSharesSchema = object({
|
|
23784
|
-
source: ShareSourceSchema,
|
|
23785
|
-
policy: SessionPlacementPolicySchema,
|
|
23786
|
-
/** `auto` with no computed answer yet: the stored sliders are used meanwhile. */
|
|
23787
|
-
autoPending: boolean(),
|
|
23788
|
-
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
23789
|
-
computedAt: number().nullable(),
|
|
23790
|
-
/** What made the system recompute them last. */
|
|
23791
|
-
trigger: string().nullable(),
|
|
23792
|
-
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
23793
|
-
/** The relative weights the election reads (before eligibility). */
|
|
23794
|
-
nodeWeights: record(string(), number()),
|
|
23795
|
-
deviceWeights: record(string(), record(string(), number()))
|
|
23796
|
-
});
|
|
23797
|
-
/**
|
|
23798
23662
|
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
23799
23663
|
* `pipeline-orchestrator` cap. The recommender's own types
|
|
23800
|
-
* (`recommend.ts
|
|
23664
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
23801
23665
|
* schemas are what crosses the cap boundary.
|
|
23802
23666
|
*/
|
|
23803
23667
|
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
23668
|
+
/** The operator's range for it. */
|
|
23669
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
23670
|
+
min: 1,
|
|
23671
|
+
max: 8
|
|
23672
|
+
};
|
|
23804
23673
|
var HardwareClassIdSchema = _enum([
|
|
23805
23674
|
"intel-core-ultra",
|
|
23806
23675
|
"intel-n-series",
|
|
@@ -23818,8 +23687,9 @@ var AcceleratorKindSchema = _enum([
|
|
|
23818
23687
|
]);
|
|
23819
23688
|
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
23820
23689
|
object({
|
|
23821
|
-
kind: literal("
|
|
23822
|
-
|
|
23690
|
+
kind: literal("capacity"),
|
|
23691
|
+
sessions: number(),
|
|
23692
|
+
minSessions: number()
|
|
23823
23693
|
}),
|
|
23824
23694
|
object({
|
|
23825
23695
|
kind: literal("tie-faster"),
|
|
@@ -23834,16 +23704,13 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
23834
23704
|
}),
|
|
23835
23705
|
object({
|
|
23836
23706
|
kind: literal("no-fit-lightest"),
|
|
23837
|
-
|
|
23707
|
+
sessions: number(),
|
|
23708
|
+
minSessions: number()
|
|
23838
23709
|
}),
|
|
23839
23710
|
object({
|
|
23840
23711
|
kind: literal("derived-latency"),
|
|
23841
23712
|
modelId: string()
|
|
23842
23713
|
}),
|
|
23843
|
-
object({
|
|
23844
|
-
kind: literal("estimated-load"),
|
|
23845
|
-
observedForMs: number().nullable()
|
|
23846
|
-
}),
|
|
23847
23714
|
object({ kind: literal("cpu-device") }),
|
|
23848
23715
|
object({ kind: literal("coral-untouched") }),
|
|
23849
23716
|
object({ kind: literal("device-disabled") }),
|
|
@@ -23859,28 +23726,13 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
23859
23726
|
format: ModelFormatSchema$1
|
|
23860
23727
|
})
|
|
23861
23728
|
]);
|
|
23862
|
-
var DeviceDemandSchema = object({
|
|
23863
|
-
nodeId: string(),
|
|
23864
|
-
deviceKey: string(),
|
|
23865
|
-
demandFps: number(),
|
|
23866
|
-
maxCameraFps: number(),
|
|
23867
|
-
alwaysOnCameras: number(),
|
|
23868
|
-
onMotionSessions: number(),
|
|
23869
|
-
onMotionSource: _enum([
|
|
23870
|
-
"observed-24h",
|
|
23871
|
-
"estimate",
|
|
23872
|
-
"none"
|
|
23873
|
-
]),
|
|
23874
|
-
observedForMs: number().nullable(),
|
|
23875
|
-
/** How on-motion sessions were charged: per-device observation, or split by share (D748). */
|
|
23876
|
-
placement: SessionPlacementPolicySchema
|
|
23877
|
-
});
|
|
23878
23729
|
var DeviceModelChoiceSchema = object({
|
|
23879
23730
|
modelId: string(),
|
|
23880
23731
|
p50Ms: number(),
|
|
23881
23732
|
fps: number(),
|
|
23882
23733
|
measured: boolean(),
|
|
23883
|
-
|
|
23734
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
23735
|
+
capacitySessions: number(),
|
|
23884
23736
|
personRecall: number()
|
|
23885
23737
|
});
|
|
23886
23738
|
var DeviceRecommendationSchema = object({
|
|
@@ -23888,7 +23740,6 @@ var DeviceRecommendationSchema = object({
|
|
|
23888
23740
|
accelerator: AcceleratorKindSchema.nullable(),
|
|
23889
23741
|
enabled: boolean(),
|
|
23890
23742
|
available: boolean(),
|
|
23891
|
-
demand: DeviceDemandSchema.nullable(),
|
|
23892
23743
|
chosen: DeviceModelChoiceSchema.nullable(),
|
|
23893
23744
|
reasons: array(RecommendationReasonSchema).readonly()
|
|
23894
23745
|
});
|
|
@@ -23949,20 +23800,20 @@ var AutoTuneOptionsSchema = object({
|
|
|
23949
23800
|
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
23950
23801
|
headroom: number().min(.3).max(.5).default(.4),
|
|
23951
23802
|
/**
|
|
23952
|
-
*
|
|
23953
|
-
*
|
|
23954
|
-
*
|
|
23955
|
-
* is stored.
|
|
23803
|
+
* The least number of parallel sessions every device must sustain at the
|
|
23804
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
23805
|
+
* that reaches it wins.
|
|
23956
23806
|
*/
|
|
23957
|
-
|
|
23807
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
23958
23808
|
});
|
|
23959
23809
|
var AutoTunePlanSchema = object({
|
|
23960
23810
|
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
23961
23811
|
planHash: string(),
|
|
23962
23812
|
family: literal("yolov9"),
|
|
23963
23813
|
headroom: number(),
|
|
23964
|
-
|
|
23965
|
-
|
|
23814
|
+
minSessionsPerDevice: number(),
|
|
23815
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
23816
|
+
cameraFps: number(),
|
|
23966
23817
|
generatedAt: number(),
|
|
23967
23818
|
nodes: array(NodeRecommendationSchema).readonly(),
|
|
23968
23819
|
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
@@ -23972,7 +23823,8 @@ var AutoTunePlanSchema = object({
|
|
|
23972
23823
|
});
|
|
23973
23824
|
var AutoTuneApplyInputSchema = object({
|
|
23974
23825
|
planHash: string(),
|
|
23975
|
-
headroom: number().min(.3).max(.5).default(.4)
|
|
23826
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
23827
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
23976
23828
|
});
|
|
23977
23829
|
var AutoTunePhaseResultSchema = object({
|
|
23978
23830
|
phase: _enum([
|
|
@@ -24004,6 +23856,177 @@ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
|
24004
23856
|
reason: _enum(["apply-in-progress"])
|
|
24005
23857
|
})
|
|
24006
23858
|
]);
|
|
23859
|
+
/**
|
|
23860
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
23861
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
23862
|
+
* hardware share suggestion and the stale device pins.
|
|
23863
|
+
*/
|
|
23864
|
+
/**
|
|
23865
|
+
* How a new detection session picks its node and device.
|
|
23866
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
23867
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
23868
|
+
* weight only bites once a node already holds a session.
|
|
23869
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
23870
|
+
* full or drowning node yields to a free one (D748).
|
|
23871
|
+
*/
|
|
23872
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
23873
|
+
var LoadBalancingSharesInputSchema = object({
|
|
23874
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
23875
|
+
nodes: record(string(), number().positive()).default({}),
|
|
23876
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
23877
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
23878
|
+
});
|
|
23879
|
+
var PlacementStatsInputSchema = object({
|
|
23880
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
23881
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
23882
|
+
var PlacementDeviceStatsSchema = object({
|
|
23883
|
+
deviceKey: string(),
|
|
23884
|
+
/** Sessions running on this device now. */
|
|
23885
|
+
sessionsNow: number(),
|
|
23886
|
+
/** Sessions started on this device inside the window. */
|
|
23887
|
+
sessionsStarted: number(),
|
|
23888
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
23889
|
+
observedShare: number().nullable()
|
|
23890
|
+
});
|
|
23891
|
+
var PlacementNodeStatsSchema = object({
|
|
23892
|
+
nodeId: string(),
|
|
23893
|
+
sessionsNow: number(),
|
|
23894
|
+
sessionsStarted: number(),
|
|
23895
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
23896
|
+
observedShare: number().nullable(),
|
|
23897
|
+
/** Most sessions this node ran at once inside the window. */
|
|
23898
|
+
peakSessions: number(),
|
|
23899
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
23900
|
+
yieldsAway: number(),
|
|
23901
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
23902
|
+
});
|
|
23903
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
23904
|
+
var StaleDevicePinSchema = object({
|
|
23905
|
+
deviceId: number(),
|
|
23906
|
+
deviceKey: string(),
|
|
23907
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
23908
|
+
reason: _enum(["disabled", "absent"])
|
|
23909
|
+
});
|
|
23910
|
+
var PlacementStatsSchema = object({
|
|
23911
|
+
policy: SessionPlacementPolicySchema,
|
|
23912
|
+
windowMs: number(),
|
|
23913
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
23914
|
+
observedForMs: number(),
|
|
23915
|
+
sessionsNow: number(),
|
|
23916
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
23917
|
+
clusterPeakSessions: number(),
|
|
23918
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
23919
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
23920
|
+
});
|
|
23921
|
+
/**
|
|
23922
|
+
* Where an automatic share's capacity comes from (D755).
|
|
23923
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
23924
|
+
* the measured latency table for the node's hardware class.
|
|
23925
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
23926
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
23927
|
+
*/
|
|
23928
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
23929
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
23930
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
23931
|
+
var SuggestSharesInputSchema = object({
|
|
23932
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
23933
|
+
/** Default `hardware`. */
|
|
23934
|
+
source: CapacitySourceSchema.default("hardware")
|
|
23935
|
+
});
|
|
23936
|
+
var SuggestedDeviceShareSchema = object({
|
|
23937
|
+
deviceKey: string(),
|
|
23938
|
+
/** Share of the node (0–100, rounded). */
|
|
23939
|
+
share: number(),
|
|
23940
|
+
modelId: string().nullable(),
|
|
23941
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
23942
|
+
fps: number().nullable(),
|
|
23943
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
23944
|
+
measured: boolean(),
|
|
23945
|
+
/**
|
|
23946
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
23947
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
23948
|
+
*/
|
|
23949
|
+
suggestedMaxSessions: number().nullable()
|
|
23950
|
+
});
|
|
23951
|
+
var SuggestedNodeShareSchema = object({
|
|
23952
|
+
nodeId: string(),
|
|
23953
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
23954
|
+
share: number().nullable(),
|
|
23955
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
23956
|
+
capacitySessions: number(),
|
|
23957
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
23958
|
+
skippedReason: string().nullable(),
|
|
23959
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
23960
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
23961
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
23962
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
23963
|
+
});
|
|
23964
|
+
var SuggestSharesResultSchema = object({
|
|
23965
|
+
headroom: number(),
|
|
23966
|
+
/** The source asked for; each node says what it actually used. */
|
|
23967
|
+
source: CapacitySourceSchema,
|
|
23968
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
23969
|
+
cameraFps: number(),
|
|
23970
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
23971
|
+
minSessionsPerDevice: number(),
|
|
23972
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
23973
|
+
});
|
|
23974
|
+
/**
|
|
23975
|
+
* Where the node and device shares come from (D750, D755).
|
|
23976
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
23977
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
23978
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
23979
|
+
* switched on or off, or changes model. No load input.
|
|
23980
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
23981
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
23982
|
+
* - `manual` — the operator's stored sliders.
|
|
23983
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
23984
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
23985
|
+
*/
|
|
23986
|
+
var ShareSourceSchema = _enum([
|
|
23987
|
+
"hardware",
|
|
23988
|
+
"benchmark",
|
|
23989
|
+
"manual"
|
|
23990
|
+
]);
|
|
23991
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
23992
|
+
object({
|
|
23993
|
+
nodes: record(string(), number()),
|
|
23994
|
+
devices: record(string(), record(string(), number()))
|
|
23995
|
+
});
|
|
23996
|
+
var EffectiveDeviceShareSchema = object({
|
|
23997
|
+
deviceKey: string(),
|
|
23998
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
23999
|
+
eligible: boolean(),
|
|
24000
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
24001
|
+
configuredPct: number(),
|
|
24002
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
24003
|
+
effectivePct: number()
|
|
24004
|
+
});
|
|
24005
|
+
var EffectiveNodeShareSchema = object({
|
|
24006
|
+
nodeId: string(),
|
|
24007
|
+
eligible: boolean(),
|
|
24008
|
+
configuredPct: number(),
|
|
24009
|
+
effectivePct: number(),
|
|
24010
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
24011
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24012
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
24013
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
24014
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
24015
|
+
});
|
|
24016
|
+
var EffectiveSharesSchema = object({
|
|
24017
|
+
source: ShareSourceSchema,
|
|
24018
|
+
policy: SessionPlacementPolicySchema,
|
|
24019
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
24020
|
+
autoPending: boolean(),
|
|
24021
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
24022
|
+
computedAt: number().nullable(),
|
|
24023
|
+
/** What made the system recompute them last. */
|
|
24024
|
+
trigger: string().nullable(),
|
|
24025
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
24026
|
+
/** The relative weights the election reads (before eligibility). */
|
|
24027
|
+
nodeWeights: record(string(), number()),
|
|
24028
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
24029
|
+
});
|
|
24007
24030
|
object({
|
|
24008
24031
|
activeCameras: number(),
|
|
24009
24032
|
throttledCameras: number(),
|
|
@@ -25183,8 +25206,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25183
25206
|
modelId: string().optional(),
|
|
25184
25207
|
settings: record(string(), unknown()).readonly().optional()
|
|
25185
25208
|
});
|
|
25209
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25186
25210
|
var CameraPipelineSettingsSchema = object({
|
|
25187
25211
|
stepToggles: record(string(), boolean()).optional(),
|
|
25212
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25188
25213
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25189
25214
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25190
25215
|
});
|
|
@@ -25748,6 +25773,13 @@ method(object({
|
|
|
25748
25773
|
}), object({ success: literal(true) }), {
|
|
25749
25774
|
kind: "mutation",
|
|
25750
25775
|
auth: "admin"
|
|
25776
|
+
}), method(object({
|
|
25777
|
+
deviceId: number(),
|
|
25778
|
+
addonId: string(),
|
|
25779
|
+
settings: record(string(), unknown()).nullable()
|
|
25780
|
+
}), object({ success: literal(true) }), {
|
|
25781
|
+
kind: "mutation",
|
|
25782
|
+
auth: "admin"
|
|
25751
25783
|
}), method(object({
|
|
25752
25784
|
deviceId: number(),
|
|
25753
25785
|
agentNodeId: string(),
|
|
@@ -41823,6 +41855,12 @@ Object.freeze({
|
|
|
41823
41855
|
addonId: null,
|
|
41824
41856
|
access: "create"
|
|
41825
41857
|
},
|
|
41858
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
41859
|
+
capName: "pipeline-orchestrator",
|
|
41860
|
+
capScope: "system",
|
|
41861
|
+
addonId: null,
|
|
41862
|
+
access: "create"
|
|
41863
|
+
},
|
|
41826
41864
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
41827
41865
|
capName: "pipeline-orchestrator",
|
|
41828
41866
|
capScope: "system",
|
|
@@ -47271,6 +47309,11 @@ Object.freeze({
|
|
|
47271
47309
|
form: "single",
|
|
47272
47310
|
optional: false
|
|
47273
47311
|
}],
|
|
47312
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
47313
|
+
name: "deviceId",
|
|
47314
|
+
form: "single",
|
|
47315
|
+
optional: false
|
|
47316
|
+
}],
|
|
47274
47317
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
47275
47318
|
name: "deviceId",
|
|
47276
47319
|
form: "single",
|
|
@@ -49207,7 +49250,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
49207
49250
|
capability: adminUiCapability,
|
|
49208
49251
|
provider: {
|
|
49209
49252
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
49210
|
-
getVersion: async () => ({ version: "1.2.
|
|
49253
|
+
getVersion: async () => ({ version: "1.2.186" })
|
|
49211
49254
|
}
|
|
49212
49255
|
}];
|
|
49213
49256
|
}
|