@exulu/backend 1.52.0 → 1.53.1

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/ee/workers.ts CHANGED
@@ -358,7 +358,33 @@ export const createWorkers = async (
358
358
 
359
359
  const exuluStorage = new ExuluStorage({ config });
360
360
 
361
- console.log("[EXULU] POS 2 -- EXULU CONTEXT PROCESS FIELD");
361
+ if (context.processor.filter) {
362
+ const result = await context.processor.filter({
363
+ item: data.inputs,
364
+ user: data.user,
365
+ role: data.role,
366
+ utils: {
367
+ storage: exuluStorage,
368
+ },
369
+ exuluConfig: config,
370
+ });
371
+
372
+ if (!result) {
373
+ console.log("[EXULU] Item filtered out by processor, skipping processing execution...");
374
+ return {
375
+ result: "Item filtered out by processor, skipping processing execution...", // last message
376
+ metadata: {
377
+ item: {
378
+ name: data.inputs?.name,
379
+ id: data.inputs?.id,
380
+ external_id: data.inputs?.external_id
381
+ }
382
+ },
383
+ };
384
+ }
385
+ }
386
+
387
+ console.log("[EXULU] POS 2 -- EXULU CONTEXT PROCESS FIELD", data.inputs);
362
388
  let processorResult = await context.processor.execute({
363
389
  item: data.inputs,
364
390
  user: data.user,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.52.0",
4
+ "version": "1.53.1",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {
@@ -90,6 +90,7 @@
90
90
  "@ai-sdk/cerebras": "^2.0.29",
91
91
  "@ai-sdk/google-vertex": "^4.0.28",
92
92
  "@ai-sdk/openai": "^3.0.18",
93
+ "@ai-sdk/openai-compatible": "^2.0.37",
93
94
  "@anthropic-ai/sdk": "^0.56.0",
94
95
  "@apollo/server": "^5.4.0",
95
96
  "@as-integrations/express5": "^1.0.0",