@semiont/jobs 0.5.21 → 0.5.23

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") {
@@ -11087,7 +11091,7 @@ var envConfig = createTomlConfigLoader(
11087
11091
  tomlReader,
11088
11092
  configPath,
11089
11093
  process.env
11090
- )(null, "local");
11094
+ )(null);
11091
11095
  var workerInferenceMap = envConfig._metadata?.workers;
11092
11096
  if (!workerInferenceMap || Object.keys(workerInferenceMap).length === 0) {
11093
11097
  throw new Error(