@camstack/addon-provider-bosch 0.1.18 → 0.1.19

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.
@@ -1,4 +1,4 @@
1
- import { x as errMsg } from "./dist-Cj3fyC1J.mjs";
1
+ import { x as errMsg } from "./dist-LGjOHvFG.mjs";
2
2
  //#region src/shared/oauth-callback.ts
3
3
  /** A code on its own: no scheme, no query, no separators. */
4
4
  var BARE_CODE = /^[A-Za-z0-9._~-]+$/;
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-8MDf5Iki.js");
1
+ const require_dist = require("./dist-C5fLGNXK.js");
2
2
  //#region src/shared/oauth-callback.ts
3
3
  /** A code on its own: no scheme, no query, no separators. */
4
4
  var BARE_CODE = /^[A-Za-z0-9._~-]+$/;
@@ -50287,6 +50287,19 @@ var NodeInferenceDeviceSchema = object({
50287
50287
  /** Whether the node's live probe reports the device as usable right now. */
50288
50288
  available: boolean(),
50289
50289
  /**
50290
+ * Is the device on the node at all (D919)? `present` — the live probe
50291
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
50292
+ * its stored settings remain (unplugged, moved to another node): never
50293
+ * eligible, whatever its stored `enabled`, and forgettable with
50294
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
50295
+ * claimed (D315). Optional only for an orchestrator older than the field.
50296
+ */
50297
+ presence: _enum([
50298
+ "present",
50299
+ "absent",
50300
+ "unknown"
50301
+ ]).optional(),
50302
+ /**
50290
50303
  * Whether this device participates in dispatch. AUTO default (spec C2):
50291
50304
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
50292
50305
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50512,7 +50525,13 @@ method(object({
50512
50525
  }), object({ success: literal(true) }), {
50513
50526
  kind: "mutation",
50514
50527
  auth: "admin"
50515
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
50528
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
50529
+ agentNodeId: string(),
50530
+ deviceKey: string()
50531
+ }), object({ success: literal(true) }), {
50532
+ kind: "mutation",
50533
+ auth: "admin"
50534
+ }), method(object({ agentNodeId: string() }), object({
50516
50535
  success: literal(true),
50517
50536
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50518
50537
  effectiveModelId: string().nullable(),
@@ -58763,7 +58782,7 @@ var motionTriggerCapability = {
58763
58782
  enabled: boolean()
58764
58783
  }), _void(), {
58765
58784
  kind: "mutation",
58766
- auth: "admin"
58785
+ auth: "protected"
58767
58786
  }) },
58768
58787
  events: { onMotionTriggerChanged: { data: object({
58769
58788
  deviceId: number(),
@@ -59493,6 +59512,13 @@ var TopologyNodeSchema = object({
59493
59512
  cpuModel: string().nullable(),
59494
59513
  cpuCores: number(),
59495
59514
  memoryMB: number(),
59515
+ /**
59516
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
59517
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
59518
+ * about whether its hardware is there (a Coral delegate stays installed
59519
+ * after the stick leaves, D919); the live device set is
59520
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
59521
+ */
59496
59522
  engines: array(string()).readonly(),
59497
59523
  isHub: boolean(),
59498
59524
  isOnline: boolean(),
@@ -60610,7 +60636,28 @@ var ResolvedInferenceConfigSchema = object({
60610
60636
  format: ModelFormatSchema,
60611
60637
  reason: string()
60612
60638
  });
60613
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
60639
+ /**
60640
+ * The answer of an accelerator rescan (D919): the node's device list after
60641
+ * the re-probe, what changed, and the evidence that decided the Coral answer
60642
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
60643
+ * bus, the installed-delegate fallback, or nothing).
60644
+ */
60645
+ var AcceleratorRescanSchema = object({
60646
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
60647
+ appeared: array(string()).readonly(),
60648
+ disappeared: array(string()).readonly(),
60649
+ usbBus: _enum(["observed", "unobservable"]),
60650
+ decidedBy: _enum([
60651
+ "usb-ids",
60652
+ "pci",
60653
+ "delegate-fallback",
60654
+ "none"
60655
+ ])
60656
+ });
60657
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
60658
+ kind: "mutation",
60659
+ auth: "admin"
60660
+ });
60614
60661
  /**
60615
60662
  * Multi-metric electrical meter. One slice can carry any combination
60616
60663
  * of instantaneous power (W), cumulative energy (kWh), voltage (V),
@@ -72838,6 +72885,12 @@ Object.freeze({
72838
72885
  addonId: null,
72839
72886
  access: "delete"
72840
72887
  },
72888
+ "pipelineOrchestrator.forgetInferenceDevice": {
72889
+ capName: "pipeline-orchestrator",
72890
+ capScope: "system",
72891
+ addonId: null,
72892
+ access: "delete"
72893
+ },
72841
72894
  "pipelineOrchestrator.getAgentLoad": {
72842
72895
  capName: "pipeline-orchestrator",
72843
72896
  capScope: "system",
@@ -73414,6 +73467,12 @@ Object.freeze({
73414
73467
  addonId: null,
73415
73468
  access: "view"
73416
73469
  },
73470
+ "platformProbe.rescanAccelerators": {
73471
+ capName: "platform-probe",
73472
+ capScope: "system",
73473
+ addonId: null,
73474
+ access: "create"
73475
+ },
73417
73476
  "platformProbe.resolveHwAccel": {
73418
73477
  capName: "platform-probe",
73419
73478
  capScope: "system",
@@ -50287,6 +50287,19 @@ var NodeInferenceDeviceSchema = object({
50287
50287
  /** Whether the node's live probe reports the device as usable right now. */
50288
50288
  available: boolean(),
50289
50289
  /**
50290
+ * Is the device on the node at all (D919)? `present` — the live probe
50291
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
50292
+ * its stored settings remain (unplugged, moved to another node): never
50293
+ * eligible, whatever its stored `enabled`, and forgettable with
50294
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
50295
+ * claimed (D315). Optional only for an orchestrator older than the field.
50296
+ */
50297
+ presence: _enum([
50298
+ "present",
50299
+ "absent",
50300
+ "unknown"
50301
+ ]).optional(),
50302
+ /**
50290
50303
  * Whether this device participates in dispatch. AUTO default (spec C2):
50291
50304
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
50292
50305
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50512,7 +50525,13 @@ method(object({
50512
50525
  }), object({ success: literal(true) }), {
50513
50526
  kind: "mutation",
50514
50527
  auth: "admin"
50515
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
50528
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
50529
+ agentNodeId: string(),
50530
+ deviceKey: string()
50531
+ }), object({ success: literal(true) }), {
50532
+ kind: "mutation",
50533
+ auth: "admin"
50534
+ }), method(object({ agentNodeId: string() }), object({
50516
50535
  success: literal(true),
50517
50536
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50518
50537
  effectiveModelId: string().nullable(),
@@ -58763,7 +58782,7 @@ var motionTriggerCapability = {
58763
58782
  enabled: boolean()
58764
58783
  }), _void(), {
58765
58784
  kind: "mutation",
58766
- auth: "admin"
58785
+ auth: "protected"
58767
58786
  }) },
58768
58787
  events: { onMotionTriggerChanged: { data: object({
58769
58788
  deviceId: number(),
@@ -59493,6 +59512,13 @@ var TopologyNodeSchema = object({
59493
59512
  cpuModel: string().nullable(),
59494
59513
  cpuCores: number(),
59495
59514
  memoryMB: number(),
59515
+ /**
59516
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
59517
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
59518
+ * about whether its hardware is there (a Coral delegate stays installed
59519
+ * after the stick leaves, D919); the live device set is
59520
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
59521
+ */
59496
59522
  engines: array(string()).readonly(),
59497
59523
  isHub: boolean(),
59498
59524
  isOnline: boolean(),
@@ -60610,7 +60636,28 @@ var ResolvedInferenceConfigSchema = object({
60610
60636
  format: ModelFormatSchema,
60611
60637
  reason: string()
60612
60638
  });
60613
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
60639
+ /**
60640
+ * The answer of an accelerator rescan (D919): the node's device list after
60641
+ * the re-probe, what changed, and the evidence that decided the Coral answer
60642
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
60643
+ * bus, the installed-delegate fallback, or nothing).
60644
+ */
60645
+ var AcceleratorRescanSchema = object({
60646
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
60647
+ appeared: array(string()).readonly(),
60648
+ disappeared: array(string()).readonly(),
60649
+ usbBus: _enum(["observed", "unobservable"]),
60650
+ decidedBy: _enum([
60651
+ "usb-ids",
60652
+ "pci",
60653
+ "delegate-fallback",
60654
+ "none"
60655
+ ])
60656
+ });
60657
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
60658
+ kind: "mutation",
60659
+ auth: "admin"
60660
+ });
60614
60661
  /**
60615
60662
  * Multi-metric electrical meter. One slice can carry any combination
60616
60663
  * of instantaneous power (W), cumulative energy (kWh), voltage (V),
@@ -72838,6 +72885,12 @@ Object.freeze({
72838
72885
  addonId: null,
72839
72886
  access: "delete"
72840
72887
  },
72888
+ "pipelineOrchestrator.forgetInferenceDevice": {
72889
+ capName: "pipeline-orchestrator",
72890
+ capScope: "system",
72891
+ addonId: null,
72892
+ access: "delete"
72893
+ },
72841
72894
  "pipelineOrchestrator.getAgentLoad": {
72842
72895
  capName: "pipeline-orchestrator",
72843
72896
  capScope: "system",
@@ -73414,6 +73467,12 @@ Object.freeze({
73414
73467
  addonId: null,
73415
73468
  access: "view"
73416
73469
  },
73470
+ "platformProbe.rescanAccelerators": {
73471
+ capName: "platform-probe",
73472
+ capScope: "system",
73473
+ addonId: null,
73474
+ access: "create"
73475
+ },
73417
73476
  "platformProbe.resolveHwAccel": {
73418
73477
  capName: "platform-probe",
73419
73478
  capScope: "system",
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-8MDf5Iki.js");
3
- const require_account_integration_offline = require("../account-integration-offline-CZ4N26Oy.js");
2
+ const require_dist = require("../dist-C5fLGNXK.js");
3
+ const require_account_integration_offline = require("../account-integration-offline-D5EEH5Xn.js");
4
4
  let node_crypto = require("node:crypto");
5
5
  let node_tls = require("node:tls");
6
6
  let node_zlib = require("node:zlib");
@@ -1,5 +1,5 @@
1
- import { C as customAction, D as _enum, E as isSecretMarkerLike, F as unknown, I as EventCategory, M as record, N as string, O as array, P as union, S as createEvent, T as isSecretMarker, a as binaryCapability, b as DeviceType, c as consumablesCapability, d as enumSensorCapability, f as eventEmitterCapability, h as powerMeterCapability, j as object, k as literal, l as deviceAdoptionCapability, m as numericSensorCapability, n as BaseDeviceProvider, r as DishwasherOperationStateSchema, s as connectionTestCapability, t as BaseDevice, u as dishwasherCapability, w as defineCustomActions, x as errMsg, y as DeviceRole } from "../dist-Cj3fyC1J.mjs";
2
- import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-vL6b7aqA.mjs";
1
+ import { C as customAction, D as _enum, E as isSecretMarkerLike, F as unknown, I as EventCategory, M as record, N as string, O as array, P as union, S as createEvent, T as isSecretMarker, a as binaryCapability, b as DeviceType, c as consumablesCapability, d as enumSensorCapability, f as eventEmitterCapability, h as powerMeterCapability, j as object, k as literal, l as deviceAdoptionCapability, m as numericSensorCapability, n as BaseDeviceProvider, r as DishwasherOperationStateSchema, s as connectionTestCapability, t as BaseDevice, u as dishwasherCapability, w as defineCustomActions, x as errMsg, y as DeviceRole } from "../dist-LGjOHvFG.mjs";
2
+ import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-B9spxppg.mjs";
3
3
  import { createHash, randomBytes } from "node:crypto";
4
4
  import { connect } from "node:tls";
5
5
  import { inflateRawSync } from "node:zlib";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-8MDf5Iki.js");
3
- const require_account_integration_offline = require("../account-integration-offline-CZ4N26Oy.js");
2
+ const require_dist = require("../dist-C5fLGNXK.js");
3
+ const require_account_integration_offline = require("../account-integration-offline-D5EEH5Xn.js");
4
4
  let node_crypto = require("node:crypto");
5
5
  //#region src/homecom/custom-actions.ts
6
6
  var homeComActions = require_dist.defineCustomActions({
@@ -1,5 +1,5 @@
1
- import { C as customAction, D as _enum, E as isSecretMarkerLike, I as EventCategory, N as string, T as isSecretMarker, b as DeviceType, j as object, k as literal, l as deviceAdoptionCapability, n as BaseDeviceProvider, o as climateControlCapability, s as connectionTestCapability, t as BaseDevice, v as waterHeaterCapability, w as defineCustomActions, x as errMsg } from "../dist-Cj3fyC1J.mjs";
2
- import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-vL6b7aqA.mjs";
1
+ import { C as customAction, D as _enum, E as isSecretMarkerLike, I as EventCategory, N as string, T as isSecretMarker, b as DeviceType, j as object, k as literal, l as deviceAdoptionCapability, n as BaseDeviceProvider, o as climateControlCapability, s as connectionTestCapability, t as BaseDevice, v as waterHeaterCapability, w as defineCustomActions, x as errMsg } from "../dist-LGjOHvFG.mjs";
2
+ import { n as cascadeRemoveDevicesForIntegration, r as parseOAuthCallback, t as setIntegrationDevicesOnline } from "../account-integration-offline-B9spxppg.mjs";
3
3
  import { createHash, randomBytes } from "node:crypto";
4
4
  //#region src/homecom/custom-actions.ts
5
5
  var homeComActions = defineCustomActions({
package/dist/shc/addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region \0rolldown/runtime.js
3
3
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
4
4
  //#endregion
5
- const require_dist = require("../dist-8MDf5Iki.js");
5
+ const require_dist = require("../dist-C5fLGNXK.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_https = require("node:https");
8
8
  let node_child_process = require("node:child_process");
@@ -1,4 +1,4 @@
1
- import { A as number, C as customAction, D as _enum, I as EventCategory, N as string, O as array, _ as temperatureSensorCapability, b as DeviceType, g as switchCapability, i as batteryCapability, j as object, k as literal, l as deviceAdoptionCapability, n as BaseDeviceProvider, o as climateControlCapability, p as heatingValveCapability, s as connectionTestCapability, t as BaseDevice, w as defineCustomActions, x as errMsg } from "../dist-Cj3fyC1J.mjs";
1
+ import { A as number, C as customAction, D as _enum, I as EventCategory, N as string, O as array, _ as temperatureSensorCapability, b as DeviceType, g as switchCapability, i as batteryCapability, j as object, k as literal, l as deviceAdoptionCapability, n as BaseDeviceProvider, o as climateControlCapability, p as heatingValveCapability, s as connectionTestCapability, t as BaseDevice, w as defineCustomActions, x as errMsg } from "../dist-LGjOHvFG.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { request } from "node:https";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-bosch",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Bosch smart-home device-provider addons for CamStack — SHC, Home Connect, and HomeCom cloud integrations (scaffold)",
5
5
  "keywords": [
6
6
  "camstack",