@camstack/addon-model-studio 1.1.211 → 1.1.213

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.
Files changed (19) hide show
  1. package/dist/{MotionZonesSettings-B_oqRPy4.mjs → MotionZonesSettings-C7HEiRnq.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-D8qtXvxt.mjs → PrivacyMaskSettings-BSosgHnv.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-D87pvPnW.mjs → SceneMonitorEditor-DRtryprB.mjs} +3 -3
  4. package/dist/_stub.js +1737 -1737
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-D5p_VLWW.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BR9IJC7m.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BMZsjQzQ.mjs +26 -0
  7. package/dist/addon-model-studio.css +1 -1
  8. package/dist/{hostInit-C2sbjC2M.mjs → hostInit-B8Cs1GFO.mjs} +3 -3
  9. package/dist/model-studio.addon.js +214 -171
  10. package/dist/model-studio.addon.mjs +214 -171
  11. package/dist/{player-overlays-HkGtf6Z8.mjs → player-overlays-ClwdY6ON.mjs} +1 -1
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-MsnrmZeO.mjs → responsive-DpIGDl9c.mjs} +1 -1
  14. package/dist/{scene-monitor-copy-DUC8dxNl.mjs → scene-monitor-copy-CQT83BYQ.mjs} +1 -1
  15. package/dist/{square--tUmo3yW.mjs → square-D90TdUQE.mjs} +1 -1
  16. package/dist/{trash-2-m2KUou0G.mjs → trash-2-Cg4yxhps.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-O--sTiL_.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DvaBnD53.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C9x9vbel.mjs +0 -26
@@ -5773,7 +5773,7 @@ var ZodIssueCode = {
5773
5773
  var ZodFirstPartyTypeKind;
5774
5774
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5775
5775
  //#endregion
5776
- //#region ../types/dist/sleep-C16NCZR2.mjs
5776
+ //#region ../types/dist/sleep-DAJ9Er57.mjs
5777
5777
  /**
5778
5778
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5779
5779
  * window to float samples (D455).
@@ -24293,148 +24293,17 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24293
24293
  settings: record(string(), unknown()).optional()
24294
24294
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
24295
24295
  /**
24296
- * Wire shapes of the Load balancing surface (D748): the session placement
24297
- * policy, the atomic share write, the observed placement statistics, the
24298
- * hardware share suggestion and the stale device pins.
24299
- */
24300
- /**
24301
- * How a new detection session picks its node and device.
24302
- * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24303
- * constant node order at a tie (D37). An idle node always ties at 0, so a
24304
- * weight only bites once a node already holds a session.
24305
- * - `share` — the share of PARALLEL sessions is held to the weights, and a
24306
- * full or drowning node yields to a free one (D748).
24307
- */
24308
- var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24309
- var LoadBalancingSharesInputSchema = object({
24310
- /** nodeId → share (> 0). A node left out keeps its weight. */
24311
- nodes: record(string(), number().positive()).default({}),
24312
- /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24313
- devices: record(string(), record(string(), number().positive())).default({})
24314
- });
24315
- var PlacementStatsInputSchema = object({
24316
- /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24317
- windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24318
- var PlacementDeviceStatsSchema = object({
24319
- deviceKey: string(),
24320
- /** Sessions running on this device now. */
24321
- sessionsNow: number(),
24322
- /** Sessions started on this device inside the window. */
24323
- sessionsStarted: number(),
24324
- /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24325
- observedShare: number().nullable()
24326
- });
24327
- var PlacementNodeStatsSchema = object({
24328
- nodeId: string(),
24329
- sessionsNow: number(),
24330
- sessionsStarted: number(),
24331
- /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24332
- observedShare: number().nullable(),
24333
- /** Most sessions this node ran at once inside the window. */
24334
- peakSessions: number(),
24335
- /** Sessions a share election handed elsewhere because this node was full or drowning. */
24336
- yieldsAway: number(),
24337
- devices: array(PlacementDeviceStatsSchema).readonly()
24338
- });
24339
- /** A camera's device pin that the session path cannot honour. */
24340
- var StaleDevicePinSchema = object({
24341
- deviceId: number(),
24342
- deviceKey: string(),
24343
- /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24344
- reason: _enum(["disabled", "absent"])
24345
- });
24346
- var PlacementStatsSchema = object({
24347
- policy: SessionPlacementPolicySchema,
24348
- windowMs: number(),
24349
- /** How much of the window was actually observed (the hub keeps it in memory). */
24350
- observedForMs: number(),
24351
- sessionsNow: number(),
24352
- /** Most parallel sessions across the cluster inside the window. */
24353
- clusterPeakSessions: number(),
24354
- nodes: array(PlacementNodeStatsSchema).readonly(),
24355
- stalePins: array(StaleDevicePinSchema).readonly()
24356
- });
24357
- var SuggestSharesInputSchema = object({ headroom: number().min(.3).max(.5).default(.4) });
24358
- var SuggestedDeviceShareSchema = object({
24359
- deviceKey: string(),
24360
- /** Share of the node (0–100, rounded). */
24361
- share: number(),
24362
- modelId: string().nullable(),
24363
- /** Inferences per second at that model, from the measured table. */
24364
- fps: number().nullable(),
24365
- measured: boolean(),
24366
- /** Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋. Never enforced. */
24367
- suggestedMaxSessions: number().nullable()
24368
- });
24369
- var SuggestedNodeShareSchema = object({
24370
- nodeId: string(),
24371
- /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24372
- share: number().nullable(),
24373
- /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24374
- capacitySessions: number(),
24375
- devices: array(SuggestedDeviceShareSchema).readonly(),
24376
- skippedReason: string().nullable()
24377
- });
24378
- var SuggestSharesResultSchema = object({
24379
- headroom: number(),
24380
- /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24381
- cameraFps: number(),
24382
- /** How many share → model → capacity rounds ran before the shares stopped moving (≤ 3). */
24383
- iterations: number(),
24384
- nodes: array(SuggestedNodeShareSchema).readonly()
24385
- });
24386
- /**
24387
- * Where the node and device shares come from (D750).
24388
- * - `auto` — computed by the system from the cluster's measured capacity at
24389
- * the Auto tune models, and recomputed whenever a node or device joins,
24390
- * leaves, is switched on or off, or changes model.
24391
- * - `manual` — the operator's stored sliders. A node or device that cannot
24392
- * take sessions gives its share to the others in proportion; the stored
24393
- * values are never rewritten for that.
24394
- */
24395
- var ShareSourceSchema = _enum(["auto", "manual"]);
24396
- var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24397
- object({
24398
- nodes: record(string(), number()),
24399
- devices: record(string(), record(string(), number()))
24400
- });
24401
- var EffectiveDeviceShareSchema = object({
24402
- deviceKey: string(),
24403
- /** Can take sessions now (enabled, available, can run the root). */
24404
- eligible: boolean(),
24405
- /** The share the source assigns, as a percentage of the node's devices. */
24406
- configuredPct: number(),
24407
- /** The share actually used, after an ineligible device's share went to the others. */
24408
- effectivePct: number()
24409
- });
24410
- var EffectiveNodeShareSchema = object({
24411
- nodeId: string(),
24412
- eligible: boolean(),
24413
- configuredPct: number(),
24414
- effectivePct: number(),
24415
- devices: array(EffectiveDeviceShareSchema).readonly()
24416
- });
24417
- var EffectiveSharesSchema = object({
24418
- source: ShareSourceSchema,
24419
- policy: SessionPlacementPolicySchema,
24420
- /** `auto` with no computed answer yet: the stored sliders are used meanwhile. */
24421
- autoPending: boolean(),
24422
- /** When the automatic shares were last computed (ms epoch); null = never. */
24423
- computedAt: number().nullable(),
24424
- /** What made the system recompute them last. */
24425
- trigger: string().nullable(),
24426
- nodes: array(EffectiveNodeShareSchema).readonly(),
24427
- /** The relative weights the election reads (before eligibility). */
24428
- nodeWeights: record(string(), number()),
24429
- deviceWeights: record(string(), record(string(), number()))
24430
- });
24431
- /**
24432
24296
  * The wire shapes of the Auto tune plan and apply (D745), used by the
24433
24297
  * `pipeline-orchestrator` cap. The recommender's own types
24434
- * (`recommend.ts`, `demand.ts`) are the TS face of the same data; these
24298
+ * (`recommend.ts`) are the TS face of the same data; these
24435
24299
  * schemas are what crosses the cap boundary.
24436
24300
  */
24437
24301
  var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
24302
+ /** The operator's range for it. */
24303
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
24304
+ min: 1,
24305
+ max: 8
24306
+ };
24438
24307
  var HardwareClassIdSchema = _enum([
24439
24308
  "intel-core-ultra",
24440
24309
  "intel-n-series",
@@ -24452,8 +24321,9 @@ var AcceleratorKindSchema = _enum([
24452
24321
  ]);
24453
24322
  var RecommendationReasonSchema = discriminatedUnion("kind", [
24454
24323
  object({
24455
- kind: literal("fits"),
24456
- utilisation: number()
24324
+ kind: literal("capacity"),
24325
+ sessions: number(),
24326
+ minSessions: number()
24457
24327
  }),
24458
24328
  object({
24459
24329
  kind: literal("tie-faster"),
@@ -24468,16 +24338,13 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
24468
24338
  }),
24469
24339
  object({
24470
24340
  kind: literal("no-fit-lightest"),
24471
- utilisation: number()
24341
+ sessions: number(),
24342
+ minSessions: number()
24472
24343
  }),
24473
24344
  object({
24474
24345
  kind: literal("derived-latency"),
24475
24346
  modelId: string()
24476
24347
  }),
24477
- object({
24478
- kind: literal("estimated-load"),
24479
- observedForMs: number().nullable()
24480
- }),
24481
24348
  object({ kind: literal("cpu-device") }),
24482
24349
  object({ kind: literal("coral-untouched") }),
24483
24350
  object({ kind: literal("device-disabled") }),
@@ -24493,28 +24360,13 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
24493
24360
  format: ModelFormatSchema$1
24494
24361
  })
24495
24362
  ]);
24496
- var DeviceDemandSchema = object({
24497
- nodeId: string(),
24498
- deviceKey: string(),
24499
- demandFps: number(),
24500
- maxCameraFps: number(),
24501
- alwaysOnCameras: number(),
24502
- onMotionSessions: number(),
24503
- onMotionSource: _enum([
24504
- "observed-24h",
24505
- "estimate",
24506
- "none"
24507
- ]),
24508
- observedForMs: number().nullable(),
24509
- /** How on-motion sessions were charged: per-device observation, or split by share (D748). */
24510
- placement: SessionPlacementPolicySchema
24511
- });
24512
24363
  var DeviceModelChoiceSchema = object({
24513
24364
  modelId: string(),
24514
24365
  p50Ms: number(),
24515
24366
  fps: number(),
24516
24367
  measured: boolean(),
24517
- utilisation: number(),
24368
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24369
+ capacitySessions: number(),
24518
24370
  personRecall: number()
24519
24371
  });
24520
24372
  var DeviceRecommendationSchema = object({
@@ -24522,7 +24374,6 @@ var DeviceRecommendationSchema = object({
24522
24374
  accelerator: AcceleratorKindSchema.nullable(),
24523
24375
  enabled: boolean(),
24524
24376
  available: boolean(),
24525
- demand: DeviceDemandSchema.nullable(),
24526
24377
  chosen: DeviceModelChoiceSchema.nullable(),
24527
24378
  reasons: array(RecommendationReasonSchema).readonly()
24528
24379
  });
@@ -24583,20 +24434,20 @@ var AutoTuneOptionsSchema = object({
24583
24434
  /** Share of each accelerator's throughput kept free (0.3–0.5). */
24584
24435
  headroom: number().min(.3).max(.5).default(.4),
24585
24436
  /**
24586
- * What-if shares (D748): plan as if these node/device shares were stored
24587
- * and the policy were `share`. Absent = the stored shares under the stored
24588
- * policy. A what-if plan is for display; apply always re-plans from what
24589
- * is stored.
24437
+ * The least number of parallel sessions every device must sustain at the
24438
+ * camera rate with the headroom kept free (D755). The most accurate model
24439
+ * that reaches it wins.
24590
24440
  */
24591
- shares: LoadBalancingSharesInputSchema.optional()
24441
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24592
24442
  });
24593
24443
  var AutoTunePlanSchema = object({
24594
24444
  /** Hash of everything the apply will write — the apply refuses a different one. */
24595
24445
  planHash: string(),
24596
24446
  family: literal("yolov9"),
24597
24447
  headroom: number(),
24598
- /** Planned under what-if shares (D748): for display — apply refuses it as stale. */
24599
- whatIf: boolean(),
24448
+ minSessionsPerDevice: number(),
24449
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24450
+ cameraFps: number(),
24600
24451
  generatedAt: number(),
24601
24452
  nodes: array(NodeRecommendationSchema).readonly(),
24602
24453
  nodeChanges: array(NodeDeviceChangeSchema).readonly(),
@@ -24606,7 +24457,8 @@ var AutoTunePlanSchema = object({
24606
24457
  });
24607
24458
  var AutoTuneApplyInputSchema = object({
24608
24459
  planHash: string(),
24609
- headroom: number().min(.3).max(.5).default(.4)
24460
+ headroom: number().min(.3).max(.5).default(.4),
24461
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24610
24462
  });
24611
24463
  var AutoTunePhaseResultSchema = object({
24612
24464
  phase: _enum([
@@ -24638,6 +24490,177 @@ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24638
24490
  reason: _enum(["apply-in-progress"])
24639
24491
  })
24640
24492
  ]);
24493
+ /**
24494
+ * Wire shapes of the Load balancing surface (D748): the session placement
24495
+ * policy, the atomic share write, the observed placement statistics, the
24496
+ * hardware share suggestion and the stale device pins.
24497
+ */
24498
+ /**
24499
+ * How a new detection session picks its node and device.
24500
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24501
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24502
+ * weight only bites once a node already holds a session.
24503
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24504
+ * full or drowning node yields to a free one (D748).
24505
+ */
24506
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24507
+ var LoadBalancingSharesInputSchema = object({
24508
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24509
+ nodes: record(string(), number().positive()).default({}),
24510
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24511
+ devices: record(string(), record(string(), number().positive())).default({})
24512
+ });
24513
+ var PlacementStatsInputSchema = object({
24514
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24515
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24516
+ var PlacementDeviceStatsSchema = object({
24517
+ deviceKey: string(),
24518
+ /** Sessions running on this device now. */
24519
+ sessionsNow: number(),
24520
+ /** Sessions started on this device inside the window. */
24521
+ sessionsStarted: number(),
24522
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24523
+ observedShare: number().nullable()
24524
+ });
24525
+ var PlacementNodeStatsSchema = object({
24526
+ nodeId: string(),
24527
+ sessionsNow: number(),
24528
+ sessionsStarted: number(),
24529
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24530
+ observedShare: number().nullable(),
24531
+ /** Most sessions this node ran at once inside the window. */
24532
+ peakSessions: number(),
24533
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24534
+ yieldsAway: number(),
24535
+ devices: array(PlacementDeviceStatsSchema).readonly()
24536
+ });
24537
+ /** A camera's device pin that the session path cannot honour. */
24538
+ var StaleDevicePinSchema = object({
24539
+ deviceId: number(),
24540
+ deviceKey: string(),
24541
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24542
+ reason: _enum(["disabled", "absent"])
24543
+ });
24544
+ var PlacementStatsSchema = object({
24545
+ policy: SessionPlacementPolicySchema,
24546
+ windowMs: number(),
24547
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24548
+ observedForMs: number(),
24549
+ sessionsNow: number(),
24550
+ /** Most parallel sessions across the cluster inside the window. */
24551
+ clusterPeakSessions: number(),
24552
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24553
+ stalePins: array(StaleDevicePinSchema).readonly()
24554
+ });
24555
+ /**
24556
+ * Where an automatic share's capacity comes from (D755).
24557
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24558
+ * the measured latency table for the node's hardware class.
24559
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24560
+ * A node with no results falls back to `hardware`, and says so.
24561
+ */
24562
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24563
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24564
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24565
+ var SuggestSharesInputSchema = object({
24566
+ headroom: number().min(.3).max(.5).default(.4),
24567
+ /** Default `hardware`. */
24568
+ source: CapacitySourceSchema.default("hardware")
24569
+ });
24570
+ var SuggestedDeviceShareSchema = object({
24571
+ deviceKey: string(),
24572
+ /** Share of the node (0–100, rounded). */
24573
+ share: number(),
24574
+ modelId: string().nullable(),
24575
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24576
+ fps: number().nullable(),
24577
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24578
+ measured: boolean(),
24579
+ /**
24580
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24581
+ * or the benchmark's measured max sessions. Never enforced.
24582
+ */
24583
+ suggestedMaxSessions: number().nullable()
24584
+ });
24585
+ var SuggestedNodeShareSchema = object({
24586
+ nodeId: string(),
24587
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24588
+ share: number().nullable(),
24589
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24590
+ capacitySessions: number(),
24591
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24592
+ skippedReason: string().nullable(),
24593
+ /** What this node's capacity was read from; null when the node is skipped. */
24594
+ capacitySource: CapacitySourceSchema.nullable(),
24595
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24596
+ capacityFallback: CapacityFallbackSchema.nullable()
24597
+ });
24598
+ var SuggestSharesResultSchema = object({
24599
+ headroom: number(),
24600
+ /** The source asked for; each node says what it actually used. */
24601
+ source: CapacitySourceSchema,
24602
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24603
+ cameraFps: number(),
24604
+ /** The Auto tune capacity floor the models were picked at. */
24605
+ minSessionsPerDevice: number(),
24606
+ nodes: array(SuggestedNodeShareSchema).readonly()
24607
+ });
24608
+ /**
24609
+ * Where the node and device shares come from (D750, D755).
24610
+ * - `hardware` (default) — computed by the system from each node's static
24611
+ * capacity (its accelerators at their Auto tune models, from the measured
24612
+ * latency table), recomputed whenever a node or device joins, leaves, is
24613
+ * switched on or off, or changes model. No load input.
24614
+ * - `benchmark` — the same, from each node's measured capacity (node
24615
+ * benchmark results); a node without results falls back to `hardware`.
24616
+ * - `manual` — the operator's stored sliders.
24617
+ * Either way a node or device that cannot take sessions gives its share to
24618
+ * the others in proportion; the stored values are never rewritten for that.
24619
+ */
24620
+ var ShareSourceSchema = _enum([
24621
+ "hardware",
24622
+ "benchmark",
24623
+ "manual"
24624
+ ]);
24625
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24626
+ object({
24627
+ nodes: record(string(), number()),
24628
+ devices: record(string(), record(string(), number()))
24629
+ });
24630
+ var EffectiveDeviceShareSchema = object({
24631
+ deviceKey: string(),
24632
+ /** Can take sessions now (enabled, available, can run the root). */
24633
+ eligible: boolean(),
24634
+ /** The share the source assigns, as a percentage of the node's devices. */
24635
+ configuredPct: number(),
24636
+ /** The share actually used, after an ineligible device's share went to the others. */
24637
+ effectivePct: number()
24638
+ });
24639
+ var EffectiveNodeShareSchema = object({
24640
+ nodeId: string(),
24641
+ eligible: boolean(),
24642
+ configuredPct: number(),
24643
+ effectivePct: number(),
24644
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24645
+ capacitySource: CapacitySourceSchema.nullable(),
24646
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24647
+ capacityFallback: CapacityFallbackSchema.nullable(),
24648
+ devices: array(EffectiveDeviceShareSchema).readonly()
24649
+ });
24650
+ var EffectiveSharesSchema = object({
24651
+ source: ShareSourceSchema,
24652
+ policy: SessionPlacementPolicySchema,
24653
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24654
+ autoPending: boolean(),
24655
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24656
+ computedAt: number().nullable(),
24657
+ /** What made the system recompute them last. */
24658
+ trigger: string().nullable(),
24659
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24660
+ /** The relative weights the election reads (before eligibility). */
24661
+ nodeWeights: record(string(), number()),
24662
+ deviceWeights: record(string(), record(string(), number()))
24663
+ });
24641
24664
  object({
24642
24665
  activeCameras: number(),
24643
24666
  throttledCameras: number(),
@@ -25817,8 +25840,10 @@ var CameraStepOverridePatchSchema = object({
25817
25840
  modelId: string().optional(),
25818
25841
  settings: record(string(), unknown()).readonly().optional()
25819
25842
  });
25843
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25820
25844
  var CameraPipelineSettingsSchema = object({
25821
25845
  stepToggles: record(string(), boolean()).optional(),
25846
+ stepSettings: CameraStepSettingsSchema.optional(),
25822
25847
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25823
25848
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25824
25849
  });
@@ -26382,6 +26407,13 @@ method(object({
26382
26407
  }), object({ success: literal(true) }), {
26383
26408
  kind: "mutation",
26384
26409
  auth: "admin"
26410
+ }), method(object({
26411
+ deviceId: number(),
26412
+ addonId: string(),
26413
+ settings: record(string(), unknown()).nullable()
26414
+ }), object({ success: literal(true) }), {
26415
+ kind: "mutation",
26416
+ auth: "admin"
26385
26417
  }), method(object({
26386
26418
  deviceId: number(),
26387
26419
  agentNodeId: string(),
@@ -42555,6 +42587,12 @@ Object.freeze({
42555
42587
  addonId: null,
42556
42588
  access: "create"
42557
42589
  },
42590
+ "pipelineOrchestrator.setCameraStepSettings": {
42591
+ capName: "pipeline-orchestrator",
42592
+ capScope: "system",
42593
+ addonId: null,
42594
+ access: "create"
42595
+ },
42558
42596
  "pipelineOrchestrator.setCameraStepToggle": {
42559
42597
  capName: "pipeline-orchestrator",
42560
42598
  capScope: "system",
@@ -48003,6 +48041,11 @@ Object.freeze({
48003
48041
  form: "single",
48004
48042
  optional: false
48005
48043
  }],
48044
+ "pipelineOrchestrator.setCameraStepSettings": [{
48045
+ name: "deviceId",
48046
+ form: "single",
48047
+ optional: false
48048
+ }],
48006
48049
  "pipelineOrchestrator.setCameraStepToggle": [{
48007
48050
  name: "deviceId",
48008
48051
  form: "single",