@camstack/types 1.2.595 → 1.2.597
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/CHANGELOG.md +18 -0
- package/dist/addon/record-integration-instances.d.ts +12 -1
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/integration-instances.cap.d.ts +26 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +230 -1
- package/dist/capabilities/pipeline-runner.cap.d.ts +3 -0
- package/dist/client.js +4 -0
- package/dist/client.mjs +4 -0
- package/dist/device/device-context.d.ts +5 -1
- package/dist/device/hero/hero-fragment.d.ts +1 -1
- package/dist/device/index.d.ts +1 -1
- package/dist/generated/addon-api.d.ts +28 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +238 -17
- package/dist/index.mjs +234 -18
- package/dist/interfaces/addon.d.ts +6 -2
- package/dist/pipeline/second-pass/motion-crop-plan.d.ts +2 -3
- package/dist/{runtime-capabilities-wOKNm9iz.js → runtime-capabilities-DWgr8hrq.js} +19 -0
- package/dist/{runtime-capabilities-Bgt5QBvO.mjs → runtime-capabilities-qX7BpOYT.mjs} +14 -1
- package/dist/types/agent-pipeline-settings.d.ts +14 -0
- package/package.json +1 -1
|
@@ -8099,6 +8099,34 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
8099
8099
|
output: z.infer<typeof pipelineOrchestratorCapability.methods.setNodeStepSettings.output>;
|
|
8100
8100
|
meta: object;
|
|
8101
8101
|
}>;
|
|
8102
|
+
setClusterStepMode: TRPCMutationProcedure<{
|
|
8103
|
+
input: {
|
|
8104
|
+
[x: string]: unknown;
|
|
8105
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.setClusterStepMode.input>;
|
|
8106
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.setClusterStepMode.output>;
|
|
8107
|
+
meta: object;
|
|
8108
|
+
}>;
|
|
8109
|
+
setNodeStepEnabled: TRPCMutationProcedure<{
|
|
8110
|
+
input: {
|
|
8111
|
+
[x: string]: unknown;
|
|
8112
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.setNodeStepEnabled.input>;
|
|
8113
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.setNodeStepEnabled.output>;
|
|
8114
|
+
meta: object;
|
|
8115
|
+
}>;
|
|
8116
|
+
setDeviceStepEnabled: TRPCMutationProcedure<{
|
|
8117
|
+
input: {
|
|
8118
|
+
[x: string]: unknown;
|
|
8119
|
+
} & z.input<typeof pipelineOrchestratorCapability.methods.setDeviceStepEnabled.input>;
|
|
8120
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.setDeviceStepEnabled.output>;
|
|
8121
|
+
meta: object;
|
|
8122
|
+
}>;
|
|
8123
|
+
getStepSwitches: TRPCQueryProcedure<{
|
|
8124
|
+
input: {
|
|
8125
|
+
nodeId?: string | undefined;
|
|
8126
|
+
} | undefined;
|
|
8127
|
+
output: z.infer<typeof pipelineOrchestratorCapability.methods.getStepSwitches.output>;
|
|
8128
|
+
meta: object;
|
|
8129
|
+
}>;
|
|
8102
8130
|
getNodeInferenceDevices: TRPCQueryProcedure<{
|
|
8103
8131
|
input: {
|
|
8104
8132
|
[x: string]: unknown;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1533 method paths across 214 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -116,7 +116,7 @@ export interface SystemProxy {
|
|
|
116
116
|
readonly notificationRules: Pick<InferProvider<typeof notificationRulesCapability>, 'listRules' | 'getRule' | 'createRule' | 'updateRule' | 'deleteRule' | 'setRuleEnabled' | 'listRuleTags' | 'setRuleTags' | 'getClipRetentionAsks' | 'listDeviceMutes' | 'testRule' | 'previewStateSummary' | 'getConditionCatalog' | 'getTemplateCatalog' | 'previewTemplate' | 'getHistory' | 'getRuleLastRuns' | 'resolveArtifactUrl' | 'listSnoozes' | 'createSnooze' | 'cancelSnooze' | 'getAlarmConfig' | 'setAlarmConfig' | 'createAlarmProfile' | 'renameAlarmProfile' | 'deleteAlarmProfile' | 'activateAlarmProfile' | 'getAlarmSensors'>;
|
|
117
117
|
readonly osdManager: Pick<InferProvider<typeof osdManagerCapability>, 'getConditionSupport' | 'copyDeviceConfiguration' | 'listTemplates' | 'upsertTemplate' | 'deleteTemplate'>;
|
|
118
118
|
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'getInferenceDeviceHealth' | 'rearmInferenceDevice' | 'getSchema' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
|
|
119
|
-
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'setNodeStepSettings' | 'getNodeInferenceDevices' | 'forgetInferenceDevice' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'getHealthDigest' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getNodeBenchmarkPreflight' | 'startNodeBenchmark' | 'getNodeBenchmarkStatus' | 'abortNodeBenchmark' | 'getNodeBenchmarkCandidates' | 'listNodeBenchmarkResults' | 'deleteNodeBenchmarkResult' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
|
|
119
|
+
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'setNodeStepSettings' | 'setClusterStepMode' | 'setNodeStepEnabled' | 'setDeviceStepEnabled' | 'getStepSwitches' | 'getNodeInferenceDevices' | 'forgetInferenceDevice' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'getHealthDigest' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getNodeBenchmarkPreflight' | 'startNodeBenchmark' | 'getNodeBenchmarkStatus' | 'abortNodeBenchmark' | 'getNodeBenchmarkCandidates' | 'listNodeBenchmarkResults' | 'deleteNodeBenchmarkResult' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
|
|
120
120
|
readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep' | 'startNodeBench' | 'getNodeBenchStatus' | 'abortNodeBench'>;
|
|
121
121
|
readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'moveVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
|
|
122
122
|
readonly platformProbe: Pick<InferProvider<typeof platformProbeCapability>, 'getCapabilities' | 'getHardware' | 'resolveInferenceConfig' | 'resolveHwAccel' | 'rescanAccelerators'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { buildSessionLostAlert, DEFAULT_SESSION_LOST_DEBOUNCE_MS, IntegrationSes
|
|
|
20
20
|
export type { InstanceChange, RecordIntegrationInstancesHooks, ResolvedInstance, ResolvedSecretsState, } from './addon/record-integration-instances.js';
|
|
21
21
|
export { CONNECTION_TEST_TIMEOUT_MS } from './addon/connection-probe.js';
|
|
22
22
|
export type { ConnectionTestOutcome, IConnectionProbe } from './addon/connection-probe.js';
|
|
23
|
-
export { RecordIntegrationInstances, isInstanceEnabled, } from './addon/record-integration-instances.js';
|
|
23
|
+
export { RecordIntegrationInstances, defaultAddDeviceMode, isInstanceEnabled, } from './addon/record-integration-instances.js';
|
|
24
24
|
export { composeInstanceKinds, UnknownInstanceError, UnknownInstanceKindError, } from './addon/compose-instance-kinds.js';
|
|
25
25
|
export type { InstanceKindPart } from './addon/compose-instance-kinds.js';
|
|
26
26
|
export * from './addon/notification-targets.js';
|
|
@@ -266,7 +266,7 @@ export { exposeBlockDevices, reconcileBlockDevices } from './device/block-declar
|
|
|
266
266
|
export type { IDevice } from './device/device.js';
|
|
267
267
|
export type { DeviceBinding, DeviceBindingEntry } from './device/device-binding.js';
|
|
268
268
|
export { DeviceConfig } from './device/device-config.js';
|
|
269
|
-
export type { DeviceConstructor, DeviceContext, DeviceManagerApi, DeviceNameWrite, DevicePersistConfigOptions, IDeviceRegistry, IDeviceRegistryReader, } from './device/device-context.js';
|
|
269
|
+
export type { DeviceConstructor, DeviceContext, DeviceManagerApi, DeviceNameWrite, DevicePersistConfigOptions, FetchDeviceOptions, IDeviceRegistry, IDeviceRegistryReader, } from './device/device-context.js';
|
|
270
270
|
export { widenDeviceConstructor } from './device/device-context.js';
|
|
271
271
|
export type { AccessoryControlInput, AccessoryControlKind, AccessoryControlPick, DeviceControlKind, SensorMapping, } from './device/device-control-resolution.js';
|
|
272
272
|
export { DEVICE_TYPE_CONTROL_KIND, hasMotionTrigger, isNode, MOTION_TRIGGER_FEATURE, pickAccessoryControl, resolveDeviceControlKind, resolveMutate, SENSOR_FEATURES, SENSOR_MAP, } from './device/device-control-resolution.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime_capabilities = require("./runtime-capabilities-
|
|
2
|
+
const require_runtime_capabilities = require("./runtime-capabilities-DWgr8hrq.js");
|
|
3
3
|
const require_event_category = require("./event-category-CMA0-jGW.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
|
|
5
5
|
const require_implemented_methods = require("./implemented-methods-DnfgAfI6.js");
|
|
@@ -67265,6 +67265,16 @@ var IntegrationInstanceStatusSchema = zod.z.object({
|
|
|
67265
67265
|
/** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
|
|
67266
67266
|
label: zod.z.string().optional()
|
|
67267
67267
|
});
|
|
67268
|
+
/**
|
|
67269
|
+
* What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
|
|
67270
|
+
* LAN scan finds devices this instance holds; `children`: only the instance's own children, via
|
|
67271
|
+
* adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
|
|
67272
|
+
*/
|
|
67273
|
+
var IntegrationInstanceAddDeviceSchema = zod.z.enum([
|
|
67274
|
+
"scan",
|
|
67275
|
+
"children",
|
|
67276
|
+
"none"
|
|
67277
|
+
]);
|
|
67268
67278
|
var IntegrationInstanceSchema = zod.z.object({
|
|
67269
67279
|
id: IntegrationInstanceIdSchema,
|
|
67270
67280
|
name: zod.z.string(),
|
|
@@ -67282,7 +67292,9 @@ var IntegrationInstanceSchema = zod.z.object({
|
|
|
67282
67292
|
formValues: zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
67283
67293
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
67284
67294
|
/** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
|
|
67285
|
-
lastCheckedAt: zod.z.number().optional()
|
|
67295
|
+
lastCheckedAt: zod.z.number().optional(),
|
|
67296
|
+
/** What "Add device" inside this instance offers; see {@link IntegrationInstanceAddDeviceSchema}. Absent means the caller derives it from `describe().discovery` with `defaultAddDeviceMode` (lan → scan, account → children, else none). */
|
|
67297
|
+
addDevice: IntegrationInstanceAddDeviceSchema.optional()
|
|
67286
67298
|
});
|
|
67287
67299
|
var IntegrationInstancePatchSchema = zod.z.object({
|
|
67288
67300
|
id: IntegrationInstanceIdSchema,
|
|
@@ -78284,7 +78296,15 @@ var RunnerInferenceDeviceSchema = zod.z.object({
|
|
|
78284
78296
|
* Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
|
|
78285
78297
|
* the elected device's provisioning, as before.
|
|
78286
78298
|
*/
|
|
78287
|
-
steps: zod.z.record(zod.z.string(), RunnerJumpStepProvisioningSchema).optional()
|
|
78299
|
+
steps: zod.z.record(zod.z.string(), RunnerJumpStepProvisioningSchema).optional(),
|
|
78300
|
+
/**
|
|
78301
|
+
* Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
|
|
78302
|
+
* .enabled === false`). The runner never runs a subtree containing one of
|
|
78303
|
+
* them here: it auto-jumps it to an allowed device, and when none can take
|
|
78304
|
+
* it the subtree is skipped (`disabled-on-device`), never run here anyway.
|
|
78305
|
+
* Absent ⇒ none (an orchestrator that predates D1065).
|
|
78306
|
+
*/
|
|
78307
|
+
disabledSteps: zod.z.array(zod.z.string()).readonly().optional()
|
|
78288
78308
|
});
|
|
78289
78309
|
/**
|
|
78290
78310
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
@@ -87143,7 +87163,15 @@ var DeviceStepConfigSchema = zod.z.object({
|
|
|
87143
87163
|
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
87144
87164
|
* auto-jumps only when the effective device's format cannot run the step.
|
|
87145
87165
|
*/
|
|
87146
|
-
jumpDeviceKey: zod.z.string().optional()
|
|
87166
|
+
jumpDeviceKey: zod.z.string().optional(),
|
|
87167
|
+
/**
|
|
87168
|
+
* DEVICE switch for this step (D1065). `false` = the step is never
|
|
87169
|
+
* provisioned on this accelerator: a detail step jumps to another enabled
|
|
87170
|
+
* device of the node where it is allowed, else it is skipped with reason
|
|
87171
|
+
* `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
|
|
87172
|
+
* `setDeviceStepEnabled`.
|
|
87173
|
+
*/
|
|
87174
|
+
enabled: zod.z.boolean().optional()
|
|
87147
87175
|
});
|
|
87148
87176
|
var AgentPipelineSettingsSchema = zod.z.object({
|
|
87149
87177
|
maxCameras: zod.z.number().int().nonnegative().nullable().default(null),
|
|
@@ -87187,6 +87215,12 @@ var AgentPipelineSettingsSchema = zod.z.object({
|
|
|
87187
87215
|
*/
|
|
87188
87216
|
stepSettings: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown()).readonly()).optional(),
|
|
87189
87217
|
/**
|
|
87218
|
+
* NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
|
|
87219
|
+
* runs on a camera whose pipeline runs on this node (skip reason
|
|
87220
|
+
* `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
|
|
87221
|
+
*/
|
|
87222
|
+
stepEnabled: zod.z.record(zod.z.string(), zod.z.boolean()).optional(),
|
|
87223
|
+
/**
|
|
87190
87224
|
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
87191
87225
|
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
87192
87226
|
* accelerator (safe default); two+ enabled ⇒ the dispatcher balances
|
|
@@ -87549,7 +87583,8 @@ var INFERENCE_DEVICE_EXCLUSION_REASONS = [
|
|
|
87549
87583
|
"disabled",
|
|
87550
87584
|
"unavailable",
|
|
87551
87585
|
"cannot-host-camera-root",
|
|
87552
|
-
"accelerator-preferred"
|
|
87586
|
+
"accelerator-preferred",
|
|
87587
|
+
"root-switched-off"
|
|
87553
87588
|
];
|
|
87554
87589
|
var InferenceDeviceExclusionReasonSchema = zod.z.enum(INFERENCE_DEVICE_EXCLUSION_REASONS);
|
|
87555
87590
|
var NodeInferenceDeviceSchema = zod.z.object({
|
|
@@ -87636,6 +87671,76 @@ var NodeInferenceDevicesSchema = zod.z.object({
|
|
|
87636
87671
|
devices: zod.z.array(NodeInferenceDeviceSchema).readonly()
|
|
87637
87672
|
});
|
|
87638
87673
|
/**
|
|
87674
|
+
* The CLUSTER switch of one pipeline step (D1065):
|
|
87675
|
+
* - `off` — hard off: no camera, node or device can turn it on;
|
|
87676
|
+
* - `on` — on by default; a camera may turn it off (`stepToggles`);
|
|
87677
|
+
* - `opt-in` — off by default; a camera turns it on (`stepToggles`).
|
|
87678
|
+
* Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
|
|
87679
|
+
*/
|
|
87680
|
+
var StepClusterModeSchema = zod.z.enum([
|
|
87681
|
+
"off",
|
|
87682
|
+
"on",
|
|
87683
|
+
"opt-in"
|
|
87684
|
+
]);
|
|
87685
|
+
/**
|
|
87686
|
+
* What one step does on one (node, device) — computed by the orchestrator with
|
|
87687
|
+
* the SAME placement function the attach path runs (`pipeline-resolver.ts`),
|
|
87688
|
+
* so a client never re-derives it. Precedence: cluster off > camera toggle
|
|
87689
|
+
* (else the cluster default) > node off > device off / jump.
|
|
87690
|
+
*/
|
|
87691
|
+
var StepSwitchCellSchema = zod.z.discriminatedUnion("kind", [
|
|
87692
|
+
zod.z.object({ kind: zod.z.literal("on") }),
|
|
87693
|
+
zod.z.object({ kind: zod.z.literal("off-cluster") }),
|
|
87694
|
+
zod.z.object({ kind: zod.z.literal("off-node") }),
|
|
87695
|
+
zod.z.object({ kind: zod.z.literal("off-device") }),
|
|
87696
|
+
zod.z.object({
|
|
87697
|
+
kind: zod.z.literal("jump"),
|
|
87698
|
+
toDeviceKey: zod.z.string()
|
|
87699
|
+
}),
|
|
87700
|
+
zod.z.object({
|
|
87701
|
+
kind: zod.z.literal("skip"),
|
|
87702
|
+
reason: zod.z.enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
|
|
87703
|
+
}),
|
|
87704
|
+
zod.z.object({ kind: zod.z.literal("zone-driven") }),
|
|
87705
|
+
zod.z.object({
|
|
87706
|
+
kind: zod.z.literal("supplied-by-root"),
|
|
87707
|
+
rootModelId: zod.z.string()
|
|
87708
|
+
}),
|
|
87709
|
+
zod.z.object({ kind: zod.z.literal("opt-in-unused") })
|
|
87710
|
+
]);
|
|
87711
|
+
var StepSwitchDeviceSchema = zod.z.object({
|
|
87712
|
+
deviceKey: zod.z.string(),
|
|
87713
|
+
format: zod.z.enum(require_runtime_capabilities.MODEL_FORMATS),
|
|
87714
|
+
/** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
|
|
87715
|
+
stepEnabled: zod.z.boolean().nullable(),
|
|
87716
|
+
/** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
|
|
87717
|
+
eligible: zod.z.boolean(),
|
|
87718
|
+
cell: StepSwitchCellSchema
|
|
87719
|
+
});
|
|
87720
|
+
var StepSwitchNodeSchema = zod.z.object({
|
|
87721
|
+
nodeId: zod.z.string(),
|
|
87722
|
+
/** False when the node's catalog or device probe did not answer — no cells are claimed. */
|
|
87723
|
+
reachable: zod.z.boolean(),
|
|
87724
|
+
/** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
|
|
87725
|
+
stepEnabled: zod.z.boolean().nullable(),
|
|
87726
|
+
devices: zod.z.array(StepSwitchDeviceSchema).readonly()
|
|
87727
|
+
});
|
|
87728
|
+
var StepSwitchRowSchema = zod.z.object({
|
|
87729
|
+
stepId: zod.z.string(),
|
|
87730
|
+
name: zod.z.string(),
|
|
87731
|
+
slot: zod.z.string(),
|
|
87732
|
+
/** The stored cluster mode; `null` = the catalog default applies. */
|
|
87733
|
+
clusterMode: StepClusterModeSchema.nullable(),
|
|
87734
|
+
/** The mode in force (stored, else derived from `enabledByDefault`). */
|
|
87735
|
+
effectiveMode: StepClusterModeSchema,
|
|
87736
|
+
/** Cameras whose `stepToggles[step]` is `true`. */
|
|
87737
|
+
camerasEnabling: zod.z.number().int().nonnegative(),
|
|
87738
|
+
/** Cameras whose `stepToggles[step]` is `false`. */
|
|
87739
|
+
camerasDisabling: zod.z.number().int().nonnegative(),
|
|
87740
|
+
nodes: zod.z.array(StepSwitchNodeSchema).readonly()
|
|
87741
|
+
});
|
|
87742
|
+
var StepSwitchMatrixSchema = zod.z.object({ steps: zod.z.array(StepSwitchRowSchema).readonly() });
|
|
87743
|
+
/**
|
|
87639
87744
|
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
87640
87745
|
*
|
|
87641
87746
|
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
@@ -88012,6 +88117,51 @@ var pipelineOrchestratorCapability = {
|
|
|
88012
88117
|
auth: "admin"
|
|
88013
88118
|
}),
|
|
88014
88119
|
/**
|
|
88120
|
+
* Set one step's CLUSTER switch (D1065): `off` | `on` | `opt-in`, or
|
|
88121
|
+
* `null` to return to the catalog default. Re-resolves every placed
|
|
88122
|
+
* camera's pipeline.
|
|
88123
|
+
*/
|
|
88124
|
+
setClusterStepMode: require_runtime_capabilities.method(zod.z.object({
|
|
88125
|
+
stepId: zod.z.string(),
|
|
88126
|
+
mode: StepClusterModeSchema.nullable()
|
|
88127
|
+
}), zod.z.object({ success: zod.z.literal(true) }), {
|
|
88128
|
+
kind: "mutation",
|
|
88129
|
+
auth: "admin"
|
|
88130
|
+
}),
|
|
88131
|
+
/**
|
|
88132
|
+
* Set one step's NODE switch (D1065): `false` = the step never runs on a
|
|
88133
|
+
* camera whose pipeline runs on that node; `null` = inherit.
|
|
88134
|
+
*/
|
|
88135
|
+
setNodeStepEnabled: require_runtime_capabilities.method(zod.z.object({
|
|
88136
|
+
agentNodeId: zod.z.string(),
|
|
88137
|
+
stepId: zod.z.string(),
|
|
88138
|
+
enabled: zod.z.boolean().nullable()
|
|
88139
|
+
}), zod.z.object({ success: zod.z.literal(true) }), {
|
|
88140
|
+
kind: "mutation",
|
|
88141
|
+
auth: "admin"
|
|
88142
|
+
}),
|
|
88143
|
+
/**
|
|
88144
|
+
* Set one step's DEVICE switch (D1065) on `(node, deviceKey)`: `false` =
|
|
88145
|
+
* the step is not provisioned there (a detail step jumps to an allowed
|
|
88146
|
+
* sibling, else is skipped); `null` = inherit.
|
|
88147
|
+
*/
|
|
88148
|
+
setDeviceStepEnabled: require_runtime_capabilities.method(zod.z.object({
|
|
88149
|
+
agentNodeId: zod.z.string(),
|
|
88150
|
+
deviceKey: zod.z.string(),
|
|
88151
|
+
stepId: zod.z.string(),
|
|
88152
|
+
enabled: zod.z.boolean().nullable()
|
|
88153
|
+
}), zod.z.object({ success: zod.z.literal(true) }), {
|
|
88154
|
+
kind: "mutation",
|
|
88155
|
+
auth: "admin"
|
|
88156
|
+
}),
|
|
88157
|
+
/**
|
|
88158
|
+
* The step switch matrix (D1065): per step, the cluster mode, how many
|
|
88159
|
+
* cameras turn it on / off, and per node and device the effective cell —
|
|
88160
|
+
* computed by the same placement function the attach path runs. The
|
|
88161
|
+
* inspector renders this; it never derives a cell itself.
|
|
88162
|
+
*/
|
|
88163
|
+
getStepSwitches: require_runtime_capabilities.method(zod.z.void(), StepSwitchMatrixSchema),
|
|
88164
|
+
/**
|
|
88015
88165
|
* DEVICE-AWARE merged view of ONE node's inference accelerators. Joins each
|
|
88016
88166
|
* physical device the node HAS — probed live via a node-pinned
|
|
88017
88167
|
* `platformProbe.getCapabilities` (the platform-probe singleton is targeted
|
|
@@ -117173,23 +117323,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
|
|
|
117173
117323
|
};
|
|
117174
117324
|
});
|
|
117175
117325
|
var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
|
|
117326
|
+
var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
|
|
117327
|
+
const enabled = slice?.enabled ?? null;
|
|
117328
|
+
const cycle = slice?.onTime != null && slice.offTime != null ? require_runtime_capabilities.t(`${minutesOf(slice.onTime)} min on · ${minutesOf(slice.offTime)} min off`, `${minutesOf(slice.onTime)} min acceso · ${minutesOf(slice.offTime)} min spento`) : null;
|
|
117329
|
+
return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([require_runtime_capabilities.t("Cycling", "A cicli"), cycle]) : require_runtime_capabilities.t("Runs continuously", "Sempre attiva"), [{
|
|
117330
|
+
kind: "toggle",
|
|
117331
|
+
id: "pump-cycle.enabled",
|
|
117332
|
+
label: require_runtime_capabilities.t("Pump cycle", "Ciclo pompa"),
|
|
117333
|
+
on: enabled,
|
|
117334
|
+
turnOn: action("pump-cycle.on", require_runtime_capabilities.t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
117335
|
+
turnOff: action("pump-cycle.off", require_runtime_capabilities.t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
117336
|
+
}])] };
|
|
117337
|
+
});
|
|
117338
|
+
var WORKLOAD_WORDS = {
|
|
117339
|
+
running: {
|
|
117340
|
+
state: "on",
|
|
117341
|
+
title: require_runtime_capabilities.t("Running", "In esecuzione")
|
|
117342
|
+
},
|
|
117343
|
+
paused: {
|
|
117344
|
+
state: "standby",
|
|
117345
|
+
title: require_runtime_capabilities.t("Paused", "In pausa")
|
|
117346
|
+
},
|
|
117347
|
+
stopped: {
|
|
117348
|
+
state: "off",
|
|
117349
|
+
title: require_runtime_capabilities.t("Stopped", "Fermo")
|
|
117350
|
+
},
|
|
117351
|
+
starting: {
|
|
117352
|
+
state: "running",
|
|
117353
|
+
title: require_runtime_capabilities.t("Starting", "In avvio")
|
|
117354
|
+
},
|
|
117355
|
+
stopping: {
|
|
117356
|
+
state: "running",
|
|
117357
|
+
title: require_runtime_capabilities.t("Stopping", "In arresto")
|
|
117358
|
+
},
|
|
117359
|
+
crashed: {
|
|
117360
|
+
state: "alert",
|
|
117361
|
+
title: require_runtime_capabilities.t("Crashed", "Andato in errore")
|
|
117362
|
+
}
|
|
117363
|
+
};
|
|
117176
117364
|
var DEVICES_FAMILY_CONTRIBUTIONS = {
|
|
117177
117365
|
"fan-control": fanContribution,
|
|
117178
117366
|
"vacuum-control": vacuumContribution,
|
|
117179
117367
|
"lawn-mower-control": mowerContribution,
|
|
117180
117368
|
"pet-feeder": feederContribution,
|
|
117181
117369
|
"pet-fountain": fountainContribution,
|
|
117182
|
-
"pump-cycle":
|
|
117183
|
-
|
|
117184
|
-
const
|
|
117185
|
-
|
|
117186
|
-
|
|
117187
|
-
|
|
117188
|
-
label: require_runtime_capabilities.t("Pump cycle", "Ciclo pompa"),
|
|
117189
|
-
on: enabled,
|
|
117190
|
-
turnOn: action("pump-cycle.on", require_runtime_capabilities.t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
117191
|
-
turnOff: action("pump-cycle.off", require_runtime_capabilities.t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
117192
|
-
}])] };
|
|
117370
|
+
"pump-cycle": pumpCycleContribution,
|
|
117371
|
+
workload: contribution("workload", WorkloadStatusSchema, (slice) => {
|
|
117372
|
+
const state = slice?.state ?? null;
|
|
117373
|
+
if (state === null) return { reading: reading("workload", "unknown") };
|
|
117374
|
+
const words = WORKLOAD_WORDS[state];
|
|
117375
|
+
return { reading: reading("workload", words.state, false, words.title) };
|
|
117193
117376
|
})
|
|
117194
117377
|
};
|
|
117195
117378
|
//#endregion
|
|
@@ -120316,6 +120499,7 @@ var STATE_SOURCE_ORDER = [
|
|
|
120316
120499
|
"script-runner",
|
|
120317
120500
|
"event-emitter",
|
|
120318
120501
|
"running-state",
|
|
120502
|
+
"workload",
|
|
120319
120503
|
"switch",
|
|
120320
120504
|
"contact",
|
|
120321
120505
|
"group-active",
|
|
@@ -120673,7 +120857,7 @@ var HERO_CAP_COVERAGE = {
|
|
|
120673
120857
|
weather: "contributes",
|
|
120674
120858
|
"weather-station": "contributes",
|
|
120675
120859
|
"webrtc-session": { none: NOT_A_HERO_FACT },
|
|
120676
|
-
workload:
|
|
120860
|
+
workload: "contributes",
|
|
120677
120861
|
"zone-analytics": { none: NOT_A_HERO_FACT },
|
|
120678
120862
|
"zone-rules": { none: NOT_A_HERO_FACT },
|
|
120679
120863
|
zones: { none: NOT_A_HERO_FACT }
|
|
@@ -127696,6 +127880,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
127696
127880
|
access: "view",
|
|
127697
127881
|
role: "admin"
|
|
127698
127882
|
},
|
|
127883
|
+
"pipelineOrchestrator.getStepSwitches": {
|
|
127884
|
+
capName: "pipeline-orchestrator",
|
|
127885
|
+
capScope: "system",
|
|
127886
|
+
addonId: null,
|
|
127887
|
+
access: "view",
|
|
127888
|
+
role: "admin"
|
|
127889
|
+
},
|
|
127699
127890
|
"pipelineOrchestrator.listAgentSettings": {
|
|
127700
127891
|
capName: "pipeline-orchestrator",
|
|
127701
127892
|
capScope: "system",
|
|
@@ -127850,6 +128041,20 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
127850
128041
|
access: "create",
|
|
127851
128042
|
role: "admin"
|
|
127852
128043
|
},
|
|
128044
|
+
"pipelineOrchestrator.setClusterStepMode": {
|
|
128045
|
+
capName: "pipeline-orchestrator",
|
|
128046
|
+
capScope: "system",
|
|
128047
|
+
addonId: null,
|
|
128048
|
+
access: "create",
|
|
128049
|
+
role: "admin"
|
|
128050
|
+
},
|
|
128051
|
+
"pipelineOrchestrator.setDeviceStepEnabled": {
|
|
128052
|
+
capName: "pipeline-orchestrator",
|
|
128053
|
+
capScope: "system",
|
|
128054
|
+
addonId: null,
|
|
128055
|
+
access: "create",
|
|
128056
|
+
role: "admin"
|
|
128057
|
+
},
|
|
127853
128058
|
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
127854
128059
|
capName: "pipeline-orchestrator",
|
|
127855
128060
|
capScope: "system",
|
|
@@ -127857,6 +128062,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
127857
128062
|
access: "create",
|
|
127858
128063
|
role: "admin"
|
|
127859
128064
|
},
|
|
128065
|
+
"pipelineOrchestrator.setNodeStepEnabled": {
|
|
128066
|
+
capName: "pipeline-orchestrator",
|
|
128067
|
+
capScope: "system",
|
|
128068
|
+
addonId: null,
|
|
128069
|
+
access: "create",
|
|
128070
|
+
role: "admin"
|
|
128071
|
+
},
|
|
127860
128072
|
"pipelineOrchestrator.setNodeStepSettings": {
|
|
127861
128073
|
capName: "pipeline-orchestrator",
|
|
127862
128074
|
capScope: "system",
|
|
@@ -138950,6 +139162,10 @@ function createSystemProxy(api) {
|
|
|
138950
139162
|
setAgentReachableHost: (input) => dispatch("pipelineOrchestrator", "setAgentReachableHost", "mutation", input),
|
|
138951
139163
|
setAgentInferenceDevices: (input) => dispatch("pipelineOrchestrator", "setAgentInferenceDevices", "mutation", input),
|
|
138952
139164
|
setNodeStepSettings: (input) => dispatch("pipelineOrchestrator", "setNodeStepSettings", "mutation", input),
|
|
139165
|
+
setClusterStepMode: (input) => dispatch("pipelineOrchestrator", "setClusterStepMode", "mutation", input),
|
|
139166
|
+
setNodeStepEnabled: (input) => dispatch("pipelineOrchestrator", "setNodeStepEnabled", "mutation", input),
|
|
139167
|
+
setDeviceStepEnabled: (input) => dispatch("pipelineOrchestrator", "setDeviceStepEnabled", "mutation", input),
|
|
139168
|
+
getStepSwitches: (input) => dispatch("pipelineOrchestrator", "getStepSwitches", "query", input),
|
|
138953
139169
|
getNodeInferenceDevices: (input) => dispatch("pipelineOrchestrator", "getNodeInferenceDevices", "query", input),
|
|
138954
139170
|
forgetInferenceDevice: (input) => dispatch("pipelineOrchestrator", "forgetInferenceDevice", "mutation", input),
|
|
138955
139171
|
resetNodePipelineDefaults: (input) => dispatch("pipelineOrchestrator", "resetNodePipelineDefaults", "mutation", input),
|
|
@@ -152319,6 +152535,7 @@ exports.InstallDesktopUpdateResultSchema = InstallDesktopUpdateResultSchema;
|
|
|
152319
152535
|
exports.InstalledPackageSchema = InstalledPackageSchema;
|
|
152320
152536
|
exports.InstanceInUseError = InstanceInUseError;
|
|
152321
152537
|
exports.IntegralHelperSpecSchema = require_implemented_methods.IntegralHelperSpecSchema;
|
|
152538
|
+
exports.IntegrationInstanceAddDeviceSchema = IntegrationInstanceAddDeviceSchema;
|
|
152322
152539
|
exports.IntegrationInstanceDescriptionSchema = IntegrationInstanceDescriptionSchema;
|
|
152323
152540
|
exports.IntegrationInstanceDiscoverySchema = IntegrationInstanceDiscoverySchema;
|
|
152324
152541
|
exports.IntegrationInstanceIdSchema = IntegrationInstanceIdSchema;
|
|
@@ -153567,7 +153784,10 @@ exports.StationaryObjectSchema = StationaryObjectSchema;
|
|
|
153567
153784
|
exports.StationarySubjectSchema = StationarySubjectSchema;
|
|
153568
153785
|
exports.StatisticHelperSpecSchema = require_implemented_methods.StatisticHelperSpecSchema;
|
|
153569
153786
|
exports.StatisticWindowSchema = require_implemented_methods.StatisticWindowSchema;
|
|
153787
|
+
exports.StepClusterModeSchema = StepClusterModeSchema;
|
|
153570
153788
|
exports.StepDeviceTraceSchema = StepDeviceTraceSchema;
|
|
153789
|
+
exports.StepSwitchCellSchema = StepSwitchCellSchema;
|
|
153790
|
+
exports.StepSwitchMatrixSchema = StepSwitchMatrixSchema;
|
|
153571
153791
|
exports.StepTemplateError = StepTemplateError;
|
|
153572
153792
|
exports.StorageAbortUploadInputSchema = AbortUploadInputSchema;
|
|
153573
153793
|
exports.StorageAccessSchema = StorageAccessSchema;
|
|
@@ -154249,6 +154469,7 @@ exports.decodeScalarOverride = decodeScalarOverride;
|
|
|
154249
154469
|
exports.decodeTuya = decodeTuya;
|
|
154250
154470
|
exports.decodeVectorBase64 = decodeVectorBase64;
|
|
154251
154471
|
exports.decoderCapability = decoderCapability;
|
|
154472
|
+
exports.defaultAddDeviceMode = require_runtime_capabilities.defaultAddDeviceMode;
|
|
154252
154473
|
exports.defaultDeliveryForSection = defaultDeliveryForSection;
|
|
154253
154474
|
exports.defaultDeviceFor = require_runtime_capabilities.defaultDeviceFor;
|
|
154254
154475
|
exports.defaultIntegrationApiOver = defaultIntegrationApiOver;
|