@vertesia/workflow 0.72.0 → 0.74.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/workflow",
3
- "version": "0.72.0",
3
+ "version": "0.74.0",
4
4
  "type": "module",
5
5
  "description": "Composable prompts workflow dsl",
6
6
  "main": "./lib/esm/index.js",
@@ -49,11 +49,11 @@
49
49
  "tmp": "^0.2.3",
50
50
  "tmp-promise": "^3.0.3",
51
51
  "yaml": "^2.6.0",
52
- "@llumiverse/common": "0.21.0",
53
- "@vertesia/api-fetch-client": "0.72.0",
54
- "@vertesia/client": "0.72.0",
55
- "@vertesia/memory": "0.44.0",
56
- "@vertesia/common": "0.72.0"
52
+ "@llumiverse/common": "0.22.0",
53
+ "@vertesia/common": "0.74.0",
54
+ "@vertesia/client": "0.74.0",
55
+ "@vertesia/memory": "0.46.0",
56
+ "@vertesia/api-fetch-client": "0.74.0"
57
57
  },
58
58
  "ts_dual_module": {
59
59
  "outDir": "lib",
@@ -55,11 +55,16 @@ export async function identifyTextSections(
55
55
  return;
56
56
  }
57
57
 
58
+ const existingMetadata = doc.metadata as DocumentMetadata | undefined;
59
+ const updatedMetadata: DocumentMetadata = {
60
+ type: "document",
61
+ ...existingMetadata,
62
+ generation_runs: existingMetadata?.generation_runs ?? [],
63
+ sections: parts
64
+ };
65
+
58
66
  await client.objects.update(doc.id, {
59
- metadata: {
60
- type: "document",
61
- sections: parts
62
- } as DocumentMetadata
67
+ metadata: updatedMetadata,
63
68
  });
64
69
 
65
70
  return { status: "completed" };