@leitwerk-dev/server 0.1.3 → 0.1.4

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.
@@ -9245,11 +9245,12 @@ function createWorkerAdoptionCoordinator(deps) {
9245
9245
  for (const descriptor of descriptors) {
9246
9246
  const lease = deps.safeGetLeaseByInstance(descriptor.instanceId);
9247
9247
  const process2 = deps.safeGetProcessById(descriptor.instanceId);
9248
+ const canAdoptCurrentWorker = descriptor.observedState !== "terminal" && process2?.currentExecution?.kind === "worker_start";
9248
9249
  const classification = classifyWorkerDescriptor({
9249
9250
  descriptor,
9250
9251
  process: process2,
9251
9252
  lease,
9252
- expectedModelPolicyFingerprint: process2 ? deps.modelPolicyFingerprintForProcess(process2) : "",
9253
+ expectedModelPolicyFingerprint: canAdoptCurrentWorker ? deps.modelPolicyFingerprintForProcess(process2) : "",
9253
9254
  alreadyAttached: deps.workers.has(descriptor.instanceId),
9254
9255
  attachedDescriptorKey: attachedWorkerDescriptorKey(
9255
9256
  deps.workers.get(descriptor.instanceId)
@@ -18159,4 +18160,4 @@ export {
18159
18160
  createApp,
18160
18161
  createAppContext
18161
18162
  };
18162
- //# sourceMappingURL=chunk-P7YDIR2I.js.map
18163
+ //# sourceMappingURL=chunk-Y7MYAKGS.js.map