@semiont/jobs 0.5.22 → 0.5.24

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.
@@ -9214,7 +9214,11 @@ function workerBusAsPrimitive(bus) {
9214
9214
  },
9215
9215
  stream(channel) {
9216
9216
  return bus.on$(channel);
9217
- }
9217
+ },
9218
+ // Pass the real connection state through: a worker's first `job:claim`
9219
+ // fires right after connect — exactly the attach-window emit the gate
9220
+ // exists for (.plans/BUS-ATTACH-GATE.md).
9221
+ state$: bus.state$
9218
9222
  };
9219
9223
  }
9220
9224
  function createJobClaimAdapter(options) {
@@ -10737,7 +10741,7 @@ async function handleJobInner(adapter, config, job) {
10737
10741
  }
10738
10742
  let source = null;
10739
10743
  if (jobType !== "generation") {
10740
- const descriptor = await session.client.browse.resource(resourceId);
10744
+ const descriptor = await session.client.browse.resource(resourceId).fresh();
10741
10745
  const mediaType = getPrimaryMediaType(descriptor);
10742
10746
  const strategy = mediaType ? textExtractionOf(mediaType) : "none";
10743
10747
  if (strategy === "none") {