@camstack/server 1.2.903 → 1.2.904
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 +6 -0
- package/dist/api/trpc/generated-cap-routers.js +32 -0
- package/package.json +27 -11
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-D0FpnENM.mjs → capture-engine-Chj5CJCQ.mjs} +1 -1
- package/system/dist/{capture-engine-BsGVKjld.js → capture-engine-sOTiL6qr.js} +1 -1
- package/system/dist/{composition-sources-75AgWPIR.js → composition-sources-BWsgzQba.js} +1 -1
- package/system/dist/{composition-sources-B3anVC1t.mjs → composition-sources-Bkl2bxCV.mjs} +1 -1
- package/system/dist/{constants-BhN1jHcJ.js → constants-DaJmyttJ.js} +1 -1
- package/system/dist/{constants-CjGZCAun.mjs → constants-HUiTwHBq.mjs} +1 -1
- package/system/dist/{device-ca-D0-IU1v8.js → device-ca-DR0bjBj7.js} +1 -1
- package/system/dist/{device-ca-rg3jkL9j.mjs → device-ca-mQ4_cfnB.mjs} +1 -1
- package/system/dist/{dist-Cadmv3rL.js → dist-C5G7A3bD.js} +241 -16
- package/system/dist/{dist-DFRmPXTo.mjs → dist-Cp3ed-hU.mjs} +241 -16
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-D5hgkkLm.mjs → hub-identity-4WeWN9G9.mjs} +1 -1
- package/system/dist/{hub-identity-CYU8a0Hk.js → hub-identity-COlwG1YQ.js} +1 -1
- package/system/dist/{hub-mdns-ciao-CDCn7uUo.js → hub-mdns-ciao-BDW7FOsm.js} +2 -2
- package/system/dist/{hub-mdns-ciao-BkD9s5Bz.mjs → hub-mdns-ciao-HjodZJ76.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-mF8pNWEV.mjs → legacy-integration-rows-door-Bbafqhvi.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-C_l9jAFJ.js → legacy-integration-rows-door-DwTD3_2q.js} +1 -1
- package/system/dist/{rename-composition-block-CyULF94b.mjs → rename-composition-block-BZc9quml.mjs} +1 -1
- package/system/dist/{rename-composition-block-lHaoyeuW.js → rename-composition-block-CYZ6ohED.js} +1 -1
- package/system/dist/{restore-archive-BZhn64U7.mjs → restore-archive-CR4QiMSz.mjs} +1 -1
- package/system/dist/{restore-archive-IDxQg4bp.js → restore-archive-DBMtf0Nk.js} +1 -1
- package/system/dist/{wal-maintenance-BFe0hYbV.mjs → wal-maintenance-jZHZOyK5.mjs} +0 -0
- package/system/dist/{wal-maintenance-Cj1dmAUb.js → wal-maintenance-mWjPWNHK.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1315,7 +1315,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1315
1315
|
*/
|
|
1316
1316
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
1317
1317
|
//#endregion
|
|
1318
|
-
//#region ../types/dist/runtime-capabilities-
|
|
1318
|
+
//#region ../types/dist/runtime-capabilities-qX7BpOYT.mjs
|
|
1319
1319
|
/**
|
|
1320
1320
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1321
1321
|
* window to float samples (D455).
|
|
@@ -2682,6 +2682,18 @@ function isInstanceEnabled(body) {
|
|
|
2682
2682
|
}
|
|
2683
2683
|
/** The body key of the switch; only {@link RecordIntegrationInstances.setInstanceEnabled} writes it. */
|
|
2684
2684
|
var SWITCH_KEY = "enabled";
|
|
2685
|
+
/**
|
|
2686
|
+
* The "Add device" mode an instance gets when its provider states none, from how the provider's
|
|
2687
|
+
* devices are found: `lan` scans, `account` adopts the account's children, anything else is manual.
|
|
2688
|
+
* The one place this default lives.
|
|
2689
|
+
*/
|
|
2690
|
+
function defaultAddDeviceMode(description) {
|
|
2691
|
+
switch (description.discovery?.mode) {
|
|
2692
|
+
case "lan": return "scan";
|
|
2693
|
+
case "account": return "children";
|
|
2694
|
+
default: return "none";
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2685
2697
|
/** The keys of the kind's secret fields that sit at the top level of the body. */
|
|
2686
2698
|
function topLevelSecretKeys(paths) {
|
|
2687
2699
|
return new Set(paths.filter((p) => !p.includes(".") && !p.includes("[") && !p.includes("{")));
|
|
@@ -2784,6 +2796,7 @@ var RecordIntegrationInstances = class {
|
|
|
2784
2796
|
enabled: isInstanceEnabled(record.data),
|
|
2785
2797
|
formValues: shown,
|
|
2786
2798
|
kind,
|
|
2799
|
+
addDevice: this.hooks.addDevice?.(record.data) ?? defaultAddDeviceMode(this.hooks.description),
|
|
2787
2800
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
2788
2801
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
2789
2802
|
};
|
|
@@ -81723,6 +81736,16 @@ var IntegrationInstanceStatusSchema = zod.z.object({
|
|
|
81723
81736
|
/** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
|
|
81724
81737
|
label: zod.z.string().optional()
|
|
81725
81738
|
});
|
|
81739
|
+
/**
|
|
81740
|
+
* What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
|
|
81741
|
+
* LAN scan finds devices this instance holds; `children`: only the instance's own children, via
|
|
81742
|
+
* adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
|
|
81743
|
+
*/
|
|
81744
|
+
var IntegrationInstanceAddDeviceSchema = zod.z.enum([
|
|
81745
|
+
"scan",
|
|
81746
|
+
"children",
|
|
81747
|
+
"none"
|
|
81748
|
+
]);
|
|
81726
81749
|
var IntegrationInstanceSchema = zod.z.object({
|
|
81727
81750
|
id: IntegrationInstanceIdSchema,
|
|
81728
81751
|
name: zod.z.string(),
|
|
@@ -81740,7 +81763,9 @@ var IntegrationInstanceSchema = zod.z.object({
|
|
|
81740
81763
|
formValues: zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
81741
81764
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
81742
81765
|
/** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
|
|
81743
|
-
lastCheckedAt: zod.z.number().optional()
|
|
81766
|
+
lastCheckedAt: zod.z.number().optional(),
|
|
81767
|
+
/** 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). */
|
|
81768
|
+
addDevice: IntegrationInstanceAddDeviceSchema.optional()
|
|
81744
81769
|
});
|
|
81745
81770
|
var IntegrationInstancePatchSchema = zod.z.object({
|
|
81746
81771
|
id: IntegrationInstanceIdSchema,
|
|
@@ -92133,7 +92158,15 @@ var RunnerInferenceDeviceSchema = zod.z.object({
|
|
|
92133
92158
|
* Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
|
|
92134
92159
|
* the elected device's provisioning, as before.
|
|
92135
92160
|
*/
|
|
92136
|
-
steps: zod.z.record(zod.z.string(), RunnerJumpStepProvisioningSchema).optional()
|
|
92161
|
+
steps: zod.z.record(zod.z.string(), RunnerJumpStepProvisioningSchema).optional(),
|
|
92162
|
+
/**
|
|
92163
|
+
* Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
|
|
92164
|
+
* .enabled === false`). The runner never runs a subtree containing one of
|
|
92165
|
+
* them here: it auto-jumps it to an allowed device, and when none can take
|
|
92166
|
+
* it the subtree is skipped (`disabled-on-device`), never run here anyway.
|
|
92167
|
+
* Absent ⇒ none (an orchestrator that predates D1065).
|
|
92168
|
+
*/
|
|
92169
|
+
disabledSteps: zod.z.array(zod.z.string()).readonly().optional()
|
|
92137
92170
|
});
|
|
92138
92171
|
/**
|
|
92139
92172
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
@@ -99604,7 +99637,15 @@ var DeviceStepConfigSchema = zod.z.object({
|
|
|
99604
99637
|
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
99605
99638
|
* auto-jumps only when the effective device's format cannot run the step.
|
|
99606
99639
|
*/
|
|
99607
|
-
jumpDeviceKey: zod.z.string().optional()
|
|
99640
|
+
jumpDeviceKey: zod.z.string().optional(),
|
|
99641
|
+
/**
|
|
99642
|
+
* DEVICE switch for this step (D1065). `false` = the step is never
|
|
99643
|
+
* provisioned on this accelerator: a detail step jumps to another enabled
|
|
99644
|
+
* device of the node where it is allowed, else it is skipped with reason
|
|
99645
|
+
* `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
|
|
99646
|
+
* `setDeviceStepEnabled`.
|
|
99647
|
+
*/
|
|
99648
|
+
enabled: zod.z.boolean().optional()
|
|
99608
99649
|
});
|
|
99609
99650
|
var AgentPipelineSettingsSchema = zod.z.object({
|
|
99610
99651
|
maxCameras: zod.z.number().int().nonnegative().nullable().default(null),
|
|
@@ -99648,6 +99689,12 @@ var AgentPipelineSettingsSchema = zod.z.object({
|
|
|
99648
99689
|
*/
|
|
99649
99690
|
stepSettings: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown()).readonly()).optional(),
|
|
99650
99691
|
/**
|
|
99692
|
+
* NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
|
|
99693
|
+
* runs on a camera whose pipeline runs on this node (skip reason
|
|
99694
|
+
* `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
|
|
99695
|
+
*/
|
|
99696
|
+
stepEnabled: zod.z.record(zod.z.string(), zod.z.boolean()).optional(),
|
|
99697
|
+
/**
|
|
99651
99698
|
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
99652
99699
|
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
99653
99700
|
* accelerator (safe default); two+ enabled ⇒ the dispatcher balances
|
|
@@ -99999,7 +100046,8 @@ var InferenceDeviceExclusionReasonSchema = zod.z.enum([
|
|
|
99999
100046
|
"disabled",
|
|
100000
100047
|
"unavailable",
|
|
100001
100048
|
"cannot-host-camera-root",
|
|
100002
|
-
"accelerator-preferred"
|
|
100049
|
+
"accelerator-preferred",
|
|
100050
|
+
"root-switched-off"
|
|
100003
100051
|
]);
|
|
100004
100052
|
var NodeInferenceDeviceSchema = zod.z.object({
|
|
100005
100053
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
@@ -100085,6 +100133,76 @@ var NodeInferenceDevicesSchema = zod.z.object({
|
|
|
100085
100133
|
devices: zod.z.array(NodeInferenceDeviceSchema).readonly()
|
|
100086
100134
|
});
|
|
100087
100135
|
/**
|
|
100136
|
+
* The CLUSTER switch of one pipeline step (D1065):
|
|
100137
|
+
* - `off` — hard off: no camera, node or device can turn it on;
|
|
100138
|
+
* - `on` — on by default; a camera may turn it off (`stepToggles`);
|
|
100139
|
+
* - `opt-in` — off by default; a camera turns it on (`stepToggles`).
|
|
100140
|
+
* Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
|
|
100141
|
+
*/
|
|
100142
|
+
var StepClusterModeSchema = zod.z.enum([
|
|
100143
|
+
"off",
|
|
100144
|
+
"on",
|
|
100145
|
+
"opt-in"
|
|
100146
|
+
]);
|
|
100147
|
+
/**
|
|
100148
|
+
* What one step does on one (node, device) — computed by the orchestrator with
|
|
100149
|
+
* the SAME placement function the attach path runs (`pipeline-resolver.ts`),
|
|
100150
|
+
* so a client never re-derives it. Precedence: cluster off > camera toggle
|
|
100151
|
+
* (else the cluster default) > node off > device off / jump.
|
|
100152
|
+
*/
|
|
100153
|
+
var StepSwitchCellSchema = zod.z.discriminatedUnion("kind", [
|
|
100154
|
+
zod.z.object({ kind: zod.z.literal("on") }),
|
|
100155
|
+
zod.z.object({ kind: zod.z.literal("off-cluster") }),
|
|
100156
|
+
zod.z.object({ kind: zod.z.literal("off-node") }),
|
|
100157
|
+
zod.z.object({ kind: zod.z.literal("off-device") }),
|
|
100158
|
+
zod.z.object({
|
|
100159
|
+
kind: zod.z.literal("jump"),
|
|
100160
|
+
toDeviceKey: zod.z.string()
|
|
100161
|
+
}),
|
|
100162
|
+
zod.z.object({
|
|
100163
|
+
kind: zod.z.literal("skip"),
|
|
100164
|
+
reason: zod.z.enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
|
|
100165
|
+
}),
|
|
100166
|
+
zod.z.object({ kind: zod.z.literal("zone-driven") }),
|
|
100167
|
+
zod.z.object({
|
|
100168
|
+
kind: zod.z.literal("supplied-by-root"),
|
|
100169
|
+
rootModelId: zod.z.string()
|
|
100170
|
+
}),
|
|
100171
|
+
zod.z.object({ kind: zod.z.literal("opt-in-unused") })
|
|
100172
|
+
]);
|
|
100173
|
+
var StepSwitchDeviceSchema = zod.z.object({
|
|
100174
|
+
deviceKey: zod.z.string(),
|
|
100175
|
+
format: zod.z.enum(MODEL_FORMATS),
|
|
100176
|
+
/** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
|
|
100177
|
+
stepEnabled: zod.z.boolean().nullable(),
|
|
100178
|
+
/** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
|
|
100179
|
+
eligible: zod.z.boolean(),
|
|
100180
|
+
cell: StepSwitchCellSchema
|
|
100181
|
+
});
|
|
100182
|
+
var StepSwitchNodeSchema = zod.z.object({
|
|
100183
|
+
nodeId: zod.z.string(),
|
|
100184
|
+
/** False when the node's catalog or device probe did not answer — no cells are claimed. */
|
|
100185
|
+
reachable: zod.z.boolean(),
|
|
100186
|
+
/** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
|
|
100187
|
+
stepEnabled: zod.z.boolean().nullable(),
|
|
100188
|
+
devices: zod.z.array(StepSwitchDeviceSchema).readonly()
|
|
100189
|
+
});
|
|
100190
|
+
var StepSwitchRowSchema = zod.z.object({
|
|
100191
|
+
stepId: zod.z.string(),
|
|
100192
|
+
name: zod.z.string(),
|
|
100193
|
+
slot: zod.z.string(),
|
|
100194
|
+
/** The stored cluster mode; `null` = the catalog default applies. */
|
|
100195
|
+
clusterMode: StepClusterModeSchema.nullable(),
|
|
100196
|
+
/** The mode in force (stored, else derived from `enabledByDefault`). */
|
|
100197
|
+
effectiveMode: StepClusterModeSchema,
|
|
100198
|
+
/** Cameras whose `stepToggles[step]` is `true`. */
|
|
100199
|
+
camerasEnabling: zod.z.number().int().nonnegative(),
|
|
100200
|
+
/** Cameras whose `stepToggles[step]` is `false`. */
|
|
100201
|
+
camerasDisabling: zod.z.number().int().nonnegative(),
|
|
100202
|
+
nodes: zod.z.array(StepSwitchNodeSchema).readonly()
|
|
100203
|
+
});
|
|
100204
|
+
var StepSwitchMatrixSchema = zod.z.object({ steps: zod.z.array(StepSwitchRowSchema).readonly() });
|
|
100205
|
+
/**
|
|
100088
100206
|
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
100089
100207
|
*
|
|
100090
100208
|
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
@@ -100457,6 +100575,51 @@ var pipelineOrchestratorCapability = {
|
|
|
100457
100575
|
auth: "admin"
|
|
100458
100576
|
}),
|
|
100459
100577
|
/**
|
|
100578
|
+
* Set one step's CLUSTER switch (D1065): `off` | `on` | `opt-in`, or
|
|
100579
|
+
* `null` to return to the catalog default. Re-resolves every placed
|
|
100580
|
+
* camera's pipeline.
|
|
100581
|
+
*/
|
|
100582
|
+
setClusterStepMode: method(zod.z.object({
|
|
100583
|
+
stepId: zod.z.string(),
|
|
100584
|
+
mode: StepClusterModeSchema.nullable()
|
|
100585
|
+
}), zod.z.object({ success: zod.z.literal(true) }), {
|
|
100586
|
+
kind: "mutation",
|
|
100587
|
+
auth: "admin"
|
|
100588
|
+
}),
|
|
100589
|
+
/**
|
|
100590
|
+
* Set one step's NODE switch (D1065): `false` = the step never runs on a
|
|
100591
|
+
* camera whose pipeline runs on that node; `null` = inherit.
|
|
100592
|
+
*/
|
|
100593
|
+
setNodeStepEnabled: method(zod.z.object({
|
|
100594
|
+
agentNodeId: zod.z.string(),
|
|
100595
|
+
stepId: zod.z.string(),
|
|
100596
|
+
enabled: zod.z.boolean().nullable()
|
|
100597
|
+
}), zod.z.object({ success: zod.z.literal(true) }), {
|
|
100598
|
+
kind: "mutation",
|
|
100599
|
+
auth: "admin"
|
|
100600
|
+
}),
|
|
100601
|
+
/**
|
|
100602
|
+
* Set one step's DEVICE switch (D1065) on `(node, deviceKey)`: `false` =
|
|
100603
|
+
* the step is not provisioned there (a detail step jumps to an allowed
|
|
100604
|
+
* sibling, else is skipped); `null` = inherit.
|
|
100605
|
+
*/
|
|
100606
|
+
setDeviceStepEnabled: method(zod.z.object({
|
|
100607
|
+
agentNodeId: zod.z.string(),
|
|
100608
|
+
deviceKey: zod.z.string(),
|
|
100609
|
+
stepId: zod.z.string(),
|
|
100610
|
+
enabled: zod.z.boolean().nullable()
|
|
100611
|
+
}), zod.z.object({ success: zod.z.literal(true) }), {
|
|
100612
|
+
kind: "mutation",
|
|
100613
|
+
auth: "admin"
|
|
100614
|
+
}),
|
|
100615
|
+
/**
|
|
100616
|
+
* The step switch matrix (D1065): per step, the cluster mode, how many
|
|
100617
|
+
* cameras turn it on / off, and per node and device the effective cell —
|
|
100618
|
+
* computed by the same placement function the attach path runs. The
|
|
100619
|
+
* inspector renders this; it never derives a cell itself.
|
|
100620
|
+
*/
|
|
100621
|
+
getStepSwitches: method(zod.z.void(), StepSwitchMatrixSchema),
|
|
100622
|
+
/**
|
|
100460
100623
|
* DEVICE-AWARE merged view of ONE node's inference accelerators. Joins each
|
|
100461
100624
|
* physical device the node HAS — probed live via a node-pinned
|
|
100462
100625
|
* `platformProbe.getCapabilities` (the platform-probe singleton is targeted
|
|
@@ -120525,23 +120688,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
|
|
|
120525
120688
|
};
|
|
120526
120689
|
});
|
|
120527
120690
|
var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
|
|
120691
|
+
var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
|
|
120692
|
+
const enabled = slice?.enabled ?? null;
|
|
120693
|
+
const cycle = slice?.onTime != null && slice.offTime != null ? t(`${minutesOf(slice.onTime)} min on · ${minutesOf(slice.offTime)} min off`, `${minutesOf(slice.onTime)} min acceso · ${minutesOf(slice.offTime)} min spento`) : null;
|
|
120694
|
+
return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
|
|
120695
|
+
kind: "toggle",
|
|
120696
|
+
id: "pump-cycle.enabled",
|
|
120697
|
+
label: t("Pump cycle", "Ciclo pompa"),
|
|
120698
|
+
on: enabled,
|
|
120699
|
+
turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
120700
|
+
turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
120701
|
+
}])] };
|
|
120702
|
+
});
|
|
120703
|
+
var WORKLOAD_WORDS = {
|
|
120704
|
+
running: {
|
|
120705
|
+
state: "on",
|
|
120706
|
+
title: t("Running", "In esecuzione")
|
|
120707
|
+
},
|
|
120708
|
+
paused: {
|
|
120709
|
+
state: "standby",
|
|
120710
|
+
title: t("Paused", "In pausa")
|
|
120711
|
+
},
|
|
120712
|
+
stopped: {
|
|
120713
|
+
state: "off",
|
|
120714
|
+
title: t("Stopped", "Fermo")
|
|
120715
|
+
},
|
|
120716
|
+
starting: {
|
|
120717
|
+
state: "running",
|
|
120718
|
+
title: t("Starting", "In avvio")
|
|
120719
|
+
},
|
|
120720
|
+
stopping: {
|
|
120721
|
+
state: "running",
|
|
120722
|
+
title: t("Stopping", "In arresto")
|
|
120723
|
+
},
|
|
120724
|
+
crashed: {
|
|
120725
|
+
state: "alert",
|
|
120726
|
+
title: t("Crashed", "Andato in errore")
|
|
120727
|
+
}
|
|
120728
|
+
};
|
|
120528
120729
|
var DEVICES_FAMILY_CONTRIBUTIONS = {
|
|
120529
120730
|
"fan-control": fanContribution,
|
|
120530
120731
|
"vacuum-control": vacuumContribution,
|
|
120531
120732
|
"lawn-mower-control": mowerContribution,
|
|
120532
120733
|
"pet-feeder": feederContribution,
|
|
120533
120734
|
"pet-fountain": fountainContribution,
|
|
120534
|
-
"pump-cycle":
|
|
120535
|
-
|
|
120536
|
-
const
|
|
120537
|
-
|
|
120538
|
-
|
|
120539
|
-
|
|
120540
|
-
label: t("Pump cycle", "Ciclo pompa"),
|
|
120541
|
-
on: enabled,
|
|
120542
|
-
turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
120543
|
-
turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
120544
|
-
}])] };
|
|
120735
|
+
"pump-cycle": pumpCycleContribution,
|
|
120736
|
+
workload: contribution("workload", WorkloadStatusSchema, (slice) => {
|
|
120737
|
+
const state = slice?.state ?? null;
|
|
120738
|
+
if (state === null) return { reading: reading("workload", "unknown") };
|
|
120739
|
+
const words = WORKLOAD_WORDS[state];
|
|
120740
|
+
return { reading: reading("workload", words.state, false, words.title) };
|
|
120545
120741
|
})
|
|
120546
120742
|
};
|
|
120547
120743
|
/**
|
|
@@ -123623,6 +123819,7 @@ var STATE_SOURCE_ORDER = [
|
|
|
123623
123819
|
"script-runner",
|
|
123624
123820
|
"event-emitter",
|
|
123625
123821
|
"running-state",
|
|
123822
|
+
"workload",
|
|
123626
123823
|
"switch",
|
|
123627
123824
|
"contact",
|
|
123628
123825
|
"group-active",
|
|
@@ -130864,6 +131061,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
130864
131061
|
access: "view",
|
|
130865
131062
|
role: "admin"
|
|
130866
131063
|
},
|
|
131064
|
+
"pipelineOrchestrator.getStepSwitches": {
|
|
131065
|
+
capName: "pipeline-orchestrator",
|
|
131066
|
+
capScope: "system",
|
|
131067
|
+
addonId: null,
|
|
131068
|
+
access: "view",
|
|
131069
|
+
role: "admin"
|
|
131070
|
+
},
|
|
130867
131071
|
"pipelineOrchestrator.listAgentSettings": {
|
|
130868
131072
|
capName: "pipeline-orchestrator",
|
|
130869
131073
|
capScope: "system",
|
|
@@ -131018,6 +131222,20 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
131018
131222
|
access: "create",
|
|
131019
131223
|
role: "admin"
|
|
131020
131224
|
},
|
|
131225
|
+
"pipelineOrchestrator.setClusterStepMode": {
|
|
131226
|
+
capName: "pipeline-orchestrator",
|
|
131227
|
+
capScope: "system",
|
|
131228
|
+
addonId: null,
|
|
131229
|
+
access: "create",
|
|
131230
|
+
role: "admin"
|
|
131231
|
+
},
|
|
131232
|
+
"pipelineOrchestrator.setDeviceStepEnabled": {
|
|
131233
|
+
capName: "pipeline-orchestrator",
|
|
131234
|
+
capScope: "system",
|
|
131235
|
+
addonId: null,
|
|
131236
|
+
access: "create",
|
|
131237
|
+
role: "admin"
|
|
131238
|
+
},
|
|
131021
131239
|
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
131022
131240
|
capName: "pipeline-orchestrator",
|
|
131023
131241
|
capScope: "system",
|
|
@@ -131025,6 +131243,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
131025
131243
|
access: "create",
|
|
131026
131244
|
role: "admin"
|
|
131027
131245
|
},
|
|
131246
|
+
"pipelineOrchestrator.setNodeStepEnabled": {
|
|
131247
|
+
capName: "pipeline-orchestrator",
|
|
131248
|
+
capScope: "system",
|
|
131249
|
+
addonId: null,
|
|
131250
|
+
access: "create",
|
|
131251
|
+
role: "admin"
|
|
131252
|
+
},
|
|
131028
131253
|
"pipelineOrchestrator.setNodeStepSettings": {
|
|
131029
131254
|
capName: "pipeline-orchestrator",
|
|
131030
131255
|
capScope: "system",
|