@camstack/server 1.2.775 → 1.2.776

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.
@@ -66,5 +66,11 @@ export declare function getWorkerNativeCapProvider(capName: string, deviceId: nu
66
66
  * worker `broker.createService` and the hub's Moleculer registry INFO packet.
67
67
  */
68
68
  export declare function buildNativeCapProxy(broker: ServiceBroker, addonId: string, capName: string, deviceId: number): Record<string, (input: unknown) => Promise<unknown>>;
69
- export declare function buildDeviceOpsProvider(device: IDevice): InferProvider<typeof deviceOpsCapability>;
69
+ /**
70
+ * `afterRemove` is the worker's local teardown (registry entry, native caps,
71
+ * children). The hub's `remove` reaches a forked worker ONLY through this
72
+ * provider, so the lifecycle call alone would leave a zombie instance in the
73
+ * worker (timers running, still listed as adopted). It is idempotent.
74
+ */
75
+ export declare function buildDeviceOpsProvider(device: IDevice, afterRemove?: (deviceId: number) => Promise<void>): InferProvider<typeof deviceOpsCapability>;
70
76
  export declare function createBrokerDeviceManagerApi(opts: WorkerDeviceManagerOptions): DeviceManagerApi;