@semiont/jobs 0.2.35-build.99 → 0.2.36
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 +5 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JobId, UserId, ResourceId, EntityType, AnnotationId,
|
|
1
|
+
import { JobId, UserId, ResourceId, EntityType, AnnotationId, YieldContext, Logger, EventBus } from '@semiont/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Job Queue Type Definitions - Discriminated Union Design
|
|
@@ -44,7 +44,7 @@ interface GenerationParams {
|
|
|
44
44
|
title?: string;
|
|
45
45
|
entityTypes?: EntityType[];
|
|
46
46
|
language?: string;
|
|
47
|
-
context?:
|
|
47
|
+
context?: YieldContext;
|
|
48
48
|
temperature?: number;
|
|
49
49
|
maxTokens?: number;
|
|
50
50
|
}
|
|
@@ -103,7 +103,7 @@ interface DetectionResult {
|
|
|
103
103
|
/**
|
|
104
104
|
* Generation job progress
|
|
105
105
|
*/
|
|
106
|
-
interface
|
|
106
|
+
interface YieldProgress {
|
|
107
107
|
stage: 'fetching' | 'generating' | 'creating' | 'linking';
|
|
108
108
|
percentage: number;
|
|
109
109
|
message?: string;
|
|
@@ -234,7 +234,7 @@ interface CancelledJob<P> {
|
|
|
234
234
|
*/
|
|
235
235
|
type Job<P, PG, R> = PendingJob<P> | RunningJob<P, PG> | CompleteJob<P, R> | FailedJob<P> | CancelledJob<P>;
|
|
236
236
|
type DetectionJob = Job<DetectionParams, DetectionProgress, DetectionResult>;
|
|
237
|
-
type GenerationJob = Job<GenerationParams,
|
|
237
|
+
type GenerationJob = Job<GenerationParams, YieldProgress, GenerationResult>;
|
|
238
238
|
type HighlightDetectionJob = Job<HighlightDetectionParams, HighlightDetectionProgress, HighlightDetectionResult>;
|
|
239
239
|
type AssessmentDetectionJob = Job<AssessmentDetectionParams, AssessmentDetectionProgress, AssessmentDetectionResult>;
|
|
240
240
|
type CommentDetectionJob = Job<CommentDetectionParams, CommentDetectionProgress, CommentDetectionResult>;
|
|
@@ -402,4 +402,4 @@ declare abstract class JobWorker {
|
|
|
402
402
|
protected abstract executeJob(job: AnyJob): Promise<any>;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
export { type AnyJob, type AssessmentDetectionJob, type AssessmentDetectionParams, type AssessmentDetectionProgress, type AssessmentDetectionResult, type CancelledJob, type CommentDetectionJob, type CommentDetectionParams, type CommentDetectionProgress, type CommentDetectionResult, type CompleteJob, type DetectionJob, type DetectionParams, type DetectionProgress, type DetectionResult, type FailedJob, type GenerationJob, type GenerationParams, type
|
|
405
|
+
export { type AnyJob, type AssessmentDetectionJob, type AssessmentDetectionParams, type AssessmentDetectionProgress, type AssessmentDetectionResult, type CancelledJob, type CommentDetectionJob, type CommentDetectionParams, type CommentDetectionProgress, type CommentDetectionResult, type CompleteJob, type DetectionJob, type DetectionParams, type DetectionProgress, type DetectionResult, type FailedJob, type GenerationJob, type GenerationParams, type GenerationResult, type HighlightDetectionJob, type HighlightDetectionParams, type HighlightDetectionProgress, type HighlightDetectionResult, type JobMetadata, type JobQueryFilters, JobQueue, type JobQueueConfig, type JobStatus, type JobType, JobWorker, type PendingJob, type RunningJob, type TagDetectionJob, type TagDetectionParams, type TagDetectionProgress, type TagDetectionResult, type YieldProgress, getJobQueue, initializeJobQueue, isCancelledJob, isCompleteJob, isFailedJob, isPendingJob, isRunningJob };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semiont/jobs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Filesystem-based job queue and worker infrastructure",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@semiont/core": "*"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@vitest/coverage-v8": "^2.
|
|
29
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
30
30
|
"tsup": "^8.0.1",
|
|
31
31
|
"typescript": "^5.6.3",
|
|
32
|
-
"vitest": "^2.
|
|
32
|
+
"vitest": "^3.2.4"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|