@semiont/jobs 0.4.21 → 0.5.0

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Readable } from 'stream';
2
2
  import * as _semiont_core from '@semiont/core';
3
- import { ResourceId, JobId, UserId, EntityType, AnnotationId, components, GatheredContext, Logger, EventBus } from '@semiont/core';
3
+ import { ResourceId, JobId, UserId, EntityType, AnnotationId, Annotation, GatheredContext, Logger, EventBus, components } from '@semiont/core';
4
4
  import { SemiontProject } from '@semiont/core/node';
5
5
  import { InferenceClient } from '@semiont/inference';
6
6
 
@@ -17,7 +17,6 @@ import { InferenceClient } from '@semiont/inference';
17
17
  * - State machine is explicit and type-safe
18
18
  */
19
19
 
20
- type Annotation = components['schemas']['Annotation'];
21
20
  /**
22
21
  * Content fetcher - turns a ResourceId into a readable stream.
23
22
  * Workers use this to access resource content on demand.
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { promises, watch } from 'fs';
2
2
  import * as path from 'path';
3
- import { validateAndCorrectOffsets, getLocaleEnglishName } from '@semiont/api-client';
3
+ import { validateAndCorrectOffsets, getLocaleEnglishName, didToAgent } from '@semiont/core';
4
4
  import { generateAnnotationId } from '@semiont/event-sourcing';
5
- import { didToAgent } from '@semiont/core';
6
5
 
7
6
  // src/fs-job-queue.ts
8
7
  var FsJobQueue = class {
@@ -98,7 +97,8 @@ var FsJobQueue = class {
98
97
  this.eventBus.get("job:queued").next({
99
98
  jobId: job.metadata.id,
100
99
  jobType: job.metadata.type,
101
- resourceId: job.params.resourceId
100
+ resourceId: job.params.resourceId,
101
+ userId: job.metadata.userId
102
102
  });
103
103
  }
104
104
  }