@semiont/jobs 0.5.11 → 0.5.12
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 +2 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/worker-main.js +2 -3
- package/dist/worker-main.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -202,7 +202,8 @@ interface DetectionResult {
|
|
|
202
202
|
* Generation job progress
|
|
203
203
|
*/
|
|
204
204
|
interface YieldProgress {
|
|
205
|
-
|
|
205
|
+
/** The two real generation transitions — LLM call running, then persisting. */
|
|
206
|
+
stage: 'generating' | 'creating';
|
|
206
207
|
percentage: number;
|
|
207
208
|
message?: string;
|
|
208
209
|
}
|
package/dist/index.js
CHANGED
|
@@ -1623,10 +1623,9 @@ async function processGenerationJob(inferenceClient, params, onProgress, logger)
|
|
|
1623
1623
|
`Unsupported outputMediaType for generation: ${outputMediaType}. Generation produces ${GENERATABLE_MEDIA_TYPES.join(" or ")}.`
|
|
1624
1624
|
);
|
|
1625
1625
|
}
|
|
1626
|
-
onProgress(20, "Fetching context...", "fetching");
|
|
1627
1626
|
const title = params.title ?? "Untitled";
|
|
1628
1627
|
const entityTypes = (params.entityTypes ?? []).map(String);
|
|
1629
|
-
onProgress(
|
|
1628
|
+
onProgress(5, "Generating resource...", "generating");
|
|
1630
1629
|
const generated = await generateResourceFromTopic(
|
|
1631
1630
|
title,
|
|
1632
1631
|
entityTypes,
|
|
@@ -1650,7 +1649,7 @@ async function processGenerationJob(inferenceClient, params, onProgress, logger)
|
|
|
1650
1649
|
content = resolved.content;
|
|
1651
1650
|
citations = resolved.citations;
|
|
1652
1651
|
}
|
|
1653
|
-
onProgress(
|
|
1652
|
+
onProgress(95, "Creating resource...", "creating");
|
|
1654
1653
|
return {
|
|
1655
1654
|
content,
|
|
1656
1655
|
title: generated.title ?? title,
|