@camstack/server 1.2.903 → 1.2.905
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 +12 -0
- package/dist/api/trpc/generated-cap-routers.js +32 -0
- package/package.json +11 -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-BsGVKjld.js → capture-engine-RBUMGWAQ.js} +1 -1
- package/system/dist/{capture-engine-D0FpnENM.mjs → capture-engine-p8TvutWs.mjs} +1 -1
- package/system/dist/{composition-sources-75AgWPIR.js → composition-sources-BpNYHsYV.js} +1 -1
- package/system/dist/{composition-sources-B3anVC1t.mjs → composition-sources-D-Mx9l1R.mjs} +1 -1
- package/system/dist/{constants-BhN1jHcJ.js → constants-CoI9jLDM.js} +1 -1
- package/system/dist/{constants-CjGZCAun.mjs → constants-DudYA1Gy.mjs} +1 -1
- package/system/dist/{device-ca-D0-IU1v8.js → device-ca-C-sTmnS2.js} +1 -1
- package/system/dist/{device-ca-rg3jkL9j.mjs → device-ca-D_JhEpTM.mjs} +1 -1
- package/system/dist/{dist-DFRmPXTo.mjs → dist-7xGEQgKD.mjs} +249 -17
- package/system/dist/{dist-Cadmv3rL.js → dist-GBdQRV6O.js} +249 -17
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-CYU8a0Hk.js → hub-identity-CoOhdm4U.js} +1 -1
- package/system/dist/{hub-identity-D5hgkkLm.mjs → hub-identity-DEUmUjoR.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-BkD9s5Bz.mjs → hub-mdns-ciao-B1uGf5o7.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-CDCn7uUo.js → hub-mdns-ciao-Z0s6r3Mn.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-C_l9jAFJ.js → legacy-integration-rows-door-CJhsrOOx.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-mF8pNWEV.mjs → legacy-integration-rows-door-DvlJaQhO.mjs} +1 -1
- package/system/dist/{rename-composition-block-lHaoyeuW.js → rename-composition-block-vfxR6GJk.js} +1 -1
- package/system/dist/{rename-composition-block-CyULF94b.mjs → rename-composition-block-yU70pD-l.mjs} +1 -1
- package/system/dist/{restore-archive-IDxQg4bp.js → restore-archive-DfuHu5em.js} +1 -1
- package/system/dist/{restore-archive-BZhn64U7.mjs → restore-archive-NZV-Tsd2.mjs} +1 -1
- package/system/dist/{wal-maintenance-BFe0hYbV.mjs → wal-maintenance-BY1F-5Y1.mjs} +0 -0
- package/system/dist/{wal-maintenance-Cj1dmAUb.js → wal-maintenance-TS2C4a-E.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 = z.object({
|
|
|
81723
81736
|
/** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
|
|
81724
81737
|
label: 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 = z.enum([
|
|
81745
|
+
"scan",
|
|
81746
|
+
"children",
|
|
81747
|
+
"none"
|
|
81748
|
+
]);
|
|
81726
81749
|
var IntegrationInstanceSchema = z.object({
|
|
81727
81750
|
id: IntegrationInstanceIdSchema,
|
|
81728
81751
|
name: z.string(),
|
|
@@ -81740,7 +81763,9 @@ var IntegrationInstanceSchema = z.object({
|
|
|
81740
81763
|
formValues: z.record(z.string(), 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: z.number().optional()
|
|
81766
|
+
lastCheckedAt: 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 = z.object({
|
|
81746
81771
|
id: IntegrationInstanceIdSchema,
|
|
@@ -90811,7 +90836,13 @@ var pipelineExecutorCapability = {
|
|
|
90811
90836
|
/** Pool deaths inside the current window. */
|
|
90812
90837
|
deaths: z.number(),
|
|
90813
90838
|
/** The last death's message. */
|
|
90814
|
-
lastError: z.string()
|
|
90839
|
+
lastError: z.string(),
|
|
90840
|
+
/**
|
|
90841
|
+
* Present when the device is ABSENT rather than dead: the runtime
|
|
90842
|
+
* itself enumerates no such device (`no-gpu-device` — OpenVINO sees
|
|
90843
|
+
* no supported GPU; driver/runtime does not support this iGPU).
|
|
90844
|
+
*/
|
|
90845
|
+
absentReason: z.enum(["no-gpu-device"]).optional()
|
|
90815
90846
|
})).readonly() })),
|
|
90816
90847
|
/**
|
|
90817
90848
|
* Re-arm a terminally `failed` inference device on `nodeId`: forget its
|
|
@@ -92133,7 +92164,15 @@ var RunnerInferenceDeviceSchema = z.object({
|
|
|
92133
92164
|
* Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
|
|
92134
92165
|
* the elected device's provisioning, as before.
|
|
92135
92166
|
*/
|
|
92136
|
-
steps: z.record(z.string(), RunnerJumpStepProvisioningSchema).optional()
|
|
92167
|
+
steps: z.record(z.string(), RunnerJumpStepProvisioningSchema).optional(),
|
|
92168
|
+
/**
|
|
92169
|
+
* Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
|
|
92170
|
+
* .enabled === false`). The runner never runs a subtree containing one of
|
|
92171
|
+
* them here: it auto-jumps it to an allowed device, and when none can take
|
|
92172
|
+
* it the subtree is skipped (`disabled-on-device`), never run here anyway.
|
|
92173
|
+
* Absent ⇒ none (an orchestrator that predates D1065).
|
|
92174
|
+
*/
|
|
92175
|
+
disabledSteps: z.array(z.string()).readonly().optional()
|
|
92137
92176
|
});
|
|
92138
92177
|
/**
|
|
92139
92178
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
@@ -99604,7 +99643,15 @@ var DeviceStepConfigSchema = z.object({
|
|
|
99604
99643
|
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
99605
99644
|
* auto-jumps only when the effective device's format cannot run the step.
|
|
99606
99645
|
*/
|
|
99607
|
-
jumpDeviceKey: z.string().optional()
|
|
99646
|
+
jumpDeviceKey: z.string().optional(),
|
|
99647
|
+
/**
|
|
99648
|
+
* DEVICE switch for this step (D1065). `false` = the step is never
|
|
99649
|
+
* provisioned on this accelerator: a detail step jumps to another enabled
|
|
99650
|
+
* device of the node where it is allowed, else it is skipped with reason
|
|
99651
|
+
* `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
|
|
99652
|
+
* `setDeviceStepEnabled`.
|
|
99653
|
+
*/
|
|
99654
|
+
enabled: z.boolean().optional()
|
|
99608
99655
|
});
|
|
99609
99656
|
var AgentPipelineSettingsSchema = z.object({
|
|
99610
99657
|
maxCameras: z.number().int().nonnegative().nullable().default(null),
|
|
@@ -99648,6 +99695,12 @@ var AgentPipelineSettingsSchema = z.object({
|
|
|
99648
99695
|
*/
|
|
99649
99696
|
stepSettings: z.record(z.string(), z.record(z.string(), z.unknown()).readonly()).optional(),
|
|
99650
99697
|
/**
|
|
99698
|
+
* NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
|
|
99699
|
+
* runs on a camera whose pipeline runs on this node (skip reason
|
|
99700
|
+
* `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
|
|
99701
|
+
*/
|
|
99702
|
+
stepEnabled: z.record(z.string(), z.boolean()).optional(),
|
|
99703
|
+
/**
|
|
99651
99704
|
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
99652
99705
|
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
99653
99706
|
* accelerator (safe default); two+ enabled ⇒ the dispatcher balances
|
|
@@ -99999,7 +100052,9 @@ var InferenceDeviceExclusionReasonSchema = z.enum([
|
|
|
99999
100052
|
"disabled",
|
|
100000
100053
|
"unavailable",
|
|
100001
100054
|
"cannot-host-camera-root",
|
|
100002
|
-
"accelerator-preferred"
|
|
100055
|
+
"accelerator-preferred",
|
|
100056
|
+
"root-switched-off",
|
|
100057
|
+
"no-gpu-device"
|
|
100003
100058
|
]);
|
|
100004
100059
|
var NodeInferenceDeviceSchema = z.object({
|
|
100005
100060
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
@@ -100085,6 +100140,76 @@ var NodeInferenceDevicesSchema = z.object({
|
|
|
100085
100140
|
devices: z.array(NodeInferenceDeviceSchema).readonly()
|
|
100086
100141
|
});
|
|
100087
100142
|
/**
|
|
100143
|
+
* The CLUSTER switch of one pipeline step (D1065):
|
|
100144
|
+
* - `off` — hard off: no camera, node or device can turn it on;
|
|
100145
|
+
* - `on` — on by default; a camera may turn it off (`stepToggles`);
|
|
100146
|
+
* - `opt-in` — off by default; a camera turns it on (`stepToggles`).
|
|
100147
|
+
* Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
|
|
100148
|
+
*/
|
|
100149
|
+
var StepClusterModeSchema = z.enum([
|
|
100150
|
+
"off",
|
|
100151
|
+
"on",
|
|
100152
|
+
"opt-in"
|
|
100153
|
+
]);
|
|
100154
|
+
/**
|
|
100155
|
+
* What one step does on one (node, device) — computed by the orchestrator with
|
|
100156
|
+
* the SAME placement function the attach path runs (`pipeline-resolver.ts`),
|
|
100157
|
+
* so a client never re-derives it. Precedence: cluster off > camera toggle
|
|
100158
|
+
* (else the cluster default) > node off > device off / jump.
|
|
100159
|
+
*/
|
|
100160
|
+
var StepSwitchCellSchema = z.discriminatedUnion("kind", [
|
|
100161
|
+
z.object({ kind: z.literal("on") }),
|
|
100162
|
+
z.object({ kind: z.literal("off-cluster") }),
|
|
100163
|
+
z.object({ kind: z.literal("off-node") }),
|
|
100164
|
+
z.object({ kind: z.literal("off-device") }),
|
|
100165
|
+
z.object({
|
|
100166
|
+
kind: z.literal("jump"),
|
|
100167
|
+
toDeviceKey: z.string()
|
|
100168
|
+
}),
|
|
100169
|
+
z.object({
|
|
100170
|
+
kind: z.literal("skip"),
|
|
100171
|
+
reason: z.enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
|
|
100172
|
+
}),
|
|
100173
|
+
z.object({ kind: z.literal("zone-driven") }),
|
|
100174
|
+
z.object({
|
|
100175
|
+
kind: z.literal("supplied-by-root"),
|
|
100176
|
+
rootModelId: z.string()
|
|
100177
|
+
}),
|
|
100178
|
+
z.object({ kind: z.literal("opt-in-unused") })
|
|
100179
|
+
]);
|
|
100180
|
+
var StepSwitchDeviceSchema = z.object({
|
|
100181
|
+
deviceKey: z.string(),
|
|
100182
|
+
format: z.enum(MODEL_FORMATS),
|
|
100183
|
+
/** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
|
|
100184
|
+
stepEnabled: z.boolean().nullable(),
|
|
100185
|
+
/** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
|
|
100186
|
+
eligible: z.boolean(),
|
|
100187
|
+
cell: StepSwitchCellSchema
|
|
100188
|
+
});
|
|
100189
|
+
var StepSwitchNodeSchema = z.object({
|
|
100190
|
+
nodeId: z.string(),
|
|
100191
|
+
/** False when the node's catalog or device probe did not answer — no cells are claimed. */
|
|
100192
|
+
reachable: z.boolean(),
|
|
100193
|
+
/** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
|
|
100194
|
+
stepEnabled: z.boolean().nullable(),
|
|
100195
|
+
devices: z.array(StepSwitchDeviceSchema).readonly()
|
|
100196
|
+
});
|
|
100197
|
+
var StepSwitchRowSchema = z.object({
|
|
100198
|
+
stepId: z.string(),
|
|
100199
|
+
name: z.string(),
|
|
100200
|
+
slot: z.string(),
|
|
100201
|
+
/** The stored cluster mode; `null` = the catalog default applies. */
|
|
100202
|
+
clusterMode: StepClusterModeSchema.nullable(),
|
|
100203
|
+
/** The mode in force (stored, else derived from `enabledByDefault`). */
|
|
100204
|
+
effectiveMode: StepClusterModeSchema,
|
|
100205
|
+
/** Cameras whose `stepToggles[step]` is `true`. */
|
|
100206
|
+
camerasEnabling: z.number().int().nonnegative(),
|
|
100207
|
+
/** Cameras whose `stepToggles[step]` is `false`. */
|
|
100208
|
+
camerasDisabling: z.number().int().nonnegative(),
|
|
100209
|
+
nodes: z.array(StepSwitchNodeSchema).readonly()
|
|
100210
|
+
});
|
|
100211
|
+
var StepSwitchMatrixSchema = z.object({ steps: z.array(StepSwitchRowSchema).readonly() });
|
|
100212
|
+
/**
|
|
100088
100213
|
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
100089
100214
|
*
|
|
100090
100215
|
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
@@ -100457,6 +100582,51 @@ var pipelineOrchestratorCapability = {
|
|
|
100457
100582
|
auth: "admin"
|
|
100458
100583
|
}),
|
|
100459
100584
|
/**
|
|
100585
|
+
* Set one step's CLUSTER switch (D1065): `off` | `on` | `opt-in`, or
|
|
100586
|
+
* `null` to return to the catalog default. Re-resolves every placed
|
|
100587
|
+
* camera's pipeline.
|
|
100588
|
+
*/
|
|
100589
|
+
setClusterStepMode: method(z.object({
|
|
100590
|
+
stepId: z.string(),
|
|
100591
|
+
mode: StepClusterModeSchema.nullable()
|
|
100592
|
+
}), z.object({ success: z.literal(true) }), {
|
|
100593
|
+
kind: "mutation",
|
|
100594
|
+
auth: "admin"
|
|
100595
|
+
}),
|
|
100596
|
+
/**
|
|
100597
|
+
* Set one step's NODE switch (D1065): `false` = the step never runs on a
|
|
100598
|
+
* camera whose pipeline runs on that node; `null` = inherit.
|
|
100599
|
+
*/
|
|
100600
|
+
setNodeStepEnabled: method(z.object({
|
|
100601
|
+
agentNodeId: z.string(),
|
|
100602
|
+
stepId: z.string(),
|
|
100603
|
+
enabled: z.boolean().nullable()
|
|
100604
|
+
}), z.object({ success: z.literal(true) }), {
|
|
100605
|
+
kind: "mutation",
|
|
100606
|
+
auth: "admin"
|
|
100607
|
+
}),
|
|
100608
|
+
/**
|
|
100609
|
+
* Set one step's DEVICE switch (D1065) on `(node, deviceKey)`: `false` =
|
|
100610
|
+
* the step is not provisioned there (a detail step jumps to an allowed
|
|
100611
|
+
* sibling, else is skipped); `null` = inherit.
|
|
100612
|
+
*/
|
|
100613
|
+
setDeviceStepEnabled: method(z.object({
|
|
100614
|
+
agentNodeId: z.string(),
|
|
100615
|
+
deviceKey: z.string(),
|
|
100616
|
+
stepId: z.string(),
|
|
100617
|
+
enabled: z.boolean().nullable()
|
|
100618
|
+
}), z.object({ success: z.literal(true) }), {
|
|
100619
|
+
kind: "mutation",
|
|
100620
|
+
auth: "admin"
|
|
100621
|
+
}),
|
|
100622
|
+
/**
|
|
100623
|
+
* The step switch matrix (D1065): per step, the cluster mode, how many
|
|
100624
|
+
* cameras turn it on / off, and per node and device the effective cell —
|
|
100625
|
+
* computed by the same placement function the attach path runs. The
|
|
100626
|
+
* inspector renders this; it never derives a cell itself.
|
|
100627
|
+
*/
|
|
100628
|
+
getStepSwitches: method(z.void(), StepSwitchMatrixSchema),
|
|
100629
|
+
/**
|
|
100460
100630
|
* DEVICE-AWARE merged view of ONE node's inference accelerators. Joins each
|
|
100461
100631
|
* physical device the node HAS — probed live via a node-pinned
|
|
100462
100632
|
* `platformProbe.getCapabilities` (the platform-probe singleton is targeted
|
|
@@ -120525,23 +120695,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
|
|
|
120525
120695
|
};
|
|
120526
120696
|
});
|
|
120527
120697
|
var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
|
|
120698
|
+
var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
|
|
120699
|
+
const enabled = slice?.enabled ?? null;
|
|
120700
|
+
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;
|
|
120701
|
+
return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
|
|
120702
|
+
kind: "toggle",
|
|
120703
|
+
id: "pump-cycle.enabled",
|
|
120704
|
+
label: t("Pump cycle", "Ciclo pompa"),
|
|
120705
|
+
on: enabled,
|
|
120706
|
+
turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
120707
|
+
turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
120708
|
+
}])] };
|
|
120709
|
+
});
|
|
120710
|
+
var WORKLOAD_WORDS = {
|
|
120711
|
+
running: {
|
|
120712
|
+
state: "on",
|
|
120713
|
+
title: t("Running", "In esecuzione")
|
|
120714
|
+
},
|
|
120715
|
+
paused: {
|
|
120716
|
+
state: "standby",
|
|
120717
|
+
title: t("Paused", "In pausa")
|
|
120718
|
+
},
|
|
120719
|
+
stopped: {
|
|
120720
|
+
state: "off",
|
|
120721
|
+
title: t("Stopped", "Fermo")
|
|
120722
|
+
},
|
|
120723
|
+
starting: {
|
|
120724
|
+
state: "running",
|
|
120725
|
+
title: t("Starting", "In avvio")
|
|
120726
|
+
},
|
|
120727
|
+
stopping: {
|
|
120728
|
+
state: "running",
|
|
120729
|
+
title: t("Stopping", "In arresto")
|
|
120730
|
+
},
|
|
120731
|
+
crashed: {
|
|
120732
|
+
state: "alert",
|
|
120733
|
+
title: t("Crashed", "Andato in errore")
|
|
120734
|
+
}
|
|
120735
|
+
};
|
|
120528
120736
|
var DEVICES_FAMILY_CONTRIBUTIONS = {
|
|
120529
120737
|
"fan-control": fanContribution,
|
|
120530
120738
|
"vacuum-control": vacuumContribution,
|
|
120531
120739
|
"lawn-mower-control": mowerContribution,
|
|
120532
120740
|
"pet-feeder": feederContribution,
|
|
120533
120741
|
"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
|
-
}])] };
|
|
120742
|
+
"pump-cycle": pumpCycleContribution,
|
|
120743
|
+
workload: contribution("workload", WorkloadStatusSchema, (slice) => {
|
|
120744
|
+
const state = slice?.state ?? null;
|
|
120745
|
+
if (state === null) return { reading: reading("workload", "unknown") };
|
|
120746
|
+
const words = WORKLOAD_WORDS[state];
|
|
120747
|
+
return { reading: reading("workload", words.state, false, words.title) };
|
|
120545
120748
|
})
|
|
120546
120749
|
};
|
|
120547
120750
|
/**
|
|
@@ -123623,6 +123826,7 @@ var STATE_SOURCE_ORDER = [
|
|
|
123623
123826
|
"script-runner",
|
|
123624
123827
|
"event-emitter",
|
|
123625
123828
|
"running-state",
|
|
123829
|
+
"workload",
|
|
123626
123830
|
"switch",
|
|
123627
123831
|
"contact",
|
|
123628
123832
|
"group-active",
|
|
@@ -130864,6 +131068,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
130864
131068
|
access: "view",
|
|
130865
131069
|
role: "admin"
|
|
130866
131070
|
},
|
|
131071
|
+
"pipelineOrchestrator.getStepSwitches": {
|
|
131072
|
+
capName: "pipeline-orchestrator",
|
|
131073
|
+
capScope: "system",
|
|
131074
|
+
addonId: null,
|
|
131075
|
+
access: "view",
|
|
131076
|
+
role: "admin"
|
|
131077
|
+
},
|
|
130867
131078
|
"pipelineOrchestrator.listAgentSettings": {
|
|
130868
131079
|
capName: "pipeline-orchestrator",
|
|
130869
131080
|
capScope: "system",
|
|
@@ -131018,6 +131229,20 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
131018
131229
|
access: "create",
|
|
131019
131230
|
role: "admin"
|
|
131020
131231
|
},
|
|
131232
|
+
"pipelineOrchestrator.setClusterStepMode": {
|
|
131233
|
+
capName: "pipeline-orchestrator",
|
|
131234
|
+
capScope: "system",
|
|
131235
|
+
addonId: null,
|
|
131236
|
+
access: "create",
|
|
131237
|
+
role: "admin"
|
|
131238
|
+
},
|
|
131239
|
+
"pipelineOrchestrator.setDeviceStepEnabled": {
|
|
131240
|
+
capName: "pipeline-orchestrator",
|
|
131241
|
+
capScope: "system",
|
|
131242
|
+
addonId: null,
|
|
131243
|
+
access: "create",
|
|
131244
|
+
role: "admin"
|
|
131245
|
+
},
|
|
131021
131246
|
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
131022
131247
|
capName: "pipeline-orchestrator",
|
|
131023
131248
|
capScope: "system",
|
|
@@ -131025,6 +131250,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
131025
131250
|
access: "create",
|
|
131026
131251
|
role: "admin"
|
|
131027
131252
|
},
|
|
131253
|
+
"pipelineOrchestrator.setNodeStepEnabled": {
|
|
131254
|
+
capName: "pipeline-orchestrator",
|
|
131255
|
+
capScope: "system",
|
|
131256
|
+
addonId: null,
|
|
131257
|
+
access: "create",
|
|
131258
|
+
role: "admin"
|
|
131259
|
+
},
|
|
131028
131260
|
"pipelineOrchestrator.setNodeStepSettings": {
|
|
131029
131261
|
capName: "pipeline-orchestrator",
|
|
131030
131262
|
capScope: "system",
|