@exulu/backend 1.39.2 → 1.40.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/CHANGELOG.md +7 -2
- package/changelog-backend-10.11.2025_03.12.2025.md +1 -1
- package/dist/index.cjs +308 -184
- package/dist/index.d.cts +24 -14
- package/dist/index.d.ts +24 -14
- package/dist/index.js +308 -184
- package/package.json +1 -1
- package/types/models/context.ts +8 -0
package/dist/index.d.cts
CHANGED
|
@@ -311,7 +311,10 @@ type ExuluQueueConfig = {
|
|
|
311
311
|
queue: Queue;
|
|
312
312
|
ratelimit: number;
|
|
313
313
|
timeoutInSeconds?: number;
|
|
314
|
-
concurrency:
|
|
314
|
+
concurrency: {
|
|
315
|
+
worker: number;
|
|
316
|
+
queue: number;
|
|
317
|
+
};
|
|
315
318
|
retries?: number;
|
|
316
319
|
backoff?: {
|
|
317
320
|
type: 'exponential' | 'linear';
|
|
@@ -542,14 +545,9 @@ type ExuluContextFieldProcessor = {
|
|
|
542
545
|
role?: string;
|
|
543
546
|
utils: {
|
|
544
547
|
storage: ExuluStorage;
|
|
545
|
-
items: {
|
|
546
|
-
update: ExuluContext['updateItem'];
|
|
547
|
-
create: ExuluContext['createItem'];
|
|
548
|
-
delete: ExuluContext['deleteItem'];
|
|
549
|
-
};
|
|
550
548
|
};
|
|
551
549
|
exuluConfig: ExuluConfig;
|
|
552
|
-
}) => Promise<
|
|
550
|
+
}) => Promise<Item>;
|
|
553
551
|
config?: {
|
|
554
552
|
queue?: Promise<ExuluQueueConfig>;
|
|
555
553
|
timeoutInSeconds?: number;
|
|
@@ -576,7 +574,7 @@ declare class ExuluStorage {
|
|
|
576
574
|
config: ExuluConfig;
|
|
577
575
|
});
|
|
578
576
|
getPresignedUrl: (key: string) => Promise<string>;
|
|
579
|
-
uploadFile: (file: Buffer | Uint8Array,
|
|
577
|
+
uploadFile: (file: Buffer | Uint8Array, fileName: string, type: string, user?: number, metadata?: Record<string, string>, customBucket?: string) => Promise<string>;
|
|
580
578
|
}
|
|
581
579
|
type ExuluContextSource = {
|
|
582
580
|
id: string;
|
|
@@ -638,7 +636,7 @@ declare class ExuluContext {
|
|
|
638
636
|
processField: (trigger: STATISTICS_LABELS, item: Item & {
|
|
639
637
|
field: string;
|
|
640
638
|
}, exuluConfig: ExuluConfig, user?: number, role?: string) => Promise<{
|
|
641
|
-
result:
|
|
639
|
+
result: Item;
|
|
642
640
|
job?: string;
|
|
643
641
|
}>;
|
|
644
642
|
search: (options: {
|
|
@@ -713,7 +711,7 @@ declare class ExuluContext {
|
|
|
713
711
|
createChunksTable: () => Promise<void>;
|
|
714
712
|
tool: () => ExuluTool;
|
|
715
713
|
}
|
|
716
|
-
type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user";
|
|
714
|
+
type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user" | "processor";
|
|
717
715
|
type ExuluStatistic = {
|
|
718
716
|
name: string;
|
|
719
717
|
label: string;
|
|
@@ -739,21 +737,33 @@ declare class ExuluQueues {
|
|
|
739
737
|
queues: {
|
|
740
738
|
queue: Queue;
|
|
741
739
|
ratelimit: number;
|
|
742
|
-
concurrency:
|
|
740
|
+
concurrency: {
|
|
741
|
+
worker: number;
|
|
742
|
+
queue: number;
|
|
743
|
+
};
|
|
743
744
|
}[];
|
|
744
745
|
constructor();
|
|
745
746
|
list: Map<string, {
|
|
746
747
|
name: string;
|
|
747
|
-
concurrency:
|
|
748
|
+
concurrency: {
|
|
749
|
+
worker: number;
|
|
750
|
+
queue: number;
|
|
751
|
+
};
|
|
748
752
|
ratelimit: number;
|
|
749
753
|
use: () => Promise<ExuluQueueConfig>;
|
|
750
754
|
}>;
|
|
751
755
|
queue(name: string): {
|
|
752
756
|
queue: Queue;
|
|
753
757
|
ratelimit: number;
|
|
754
|
-
concurrency:
|
|
758
|
+
concurrency: {
|
|
759
|
+
worker: number;
|
|
760
|
+
queue: number;
|
|
761
|
+
};
|
|
755
762
|
} | undefined;
|
|
756
|
-
register: (name: string, concurrency
|
|
763
|
+
register: (name: string, concurrency: {
|
|
764
|
+
worker: number;
|
|
765
|
+
queue: number;
|
|
766
|
+
}, ratelimit?: number) => {
|
|
757
767
|
use: () => Promise<ExuluQueueConfig>;
|
|
758
768
|
};
|
|
759
769
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -311,7 +311,10 @@ type ExuluQueueConfig = {
|
|
|
311
311
|
queue: Queue;
|
|
312
312
|
ratelimit: number;
|
|
313
313
|
timeoutInSeconds?: number;
|
|
314
|
-
concurrency:
|
|
314
|
+
concurrency: {
|
|
315
|
+
worker: number;
|
|
316
|
+
queue: number;
|
|
317
|
+
};
|
|
315
318
|
retries?: number;
|
|
316
319
|
backoff?: {
|
|
317
320
|
type: 'exponential' | 'linear';
|
|
@@ -542,14 +545,9 @@ type ExuluContextFieldProcessor = {
|
|
|
542
545
|
role?: string;
|
|
543
546
|
utils: {
|
|
544
547
|
storage: ExuluStorage;
|
|
545
|
-
items: {
|
|
546
|
-
update: ExuluContext['updateItem'];
|
|
547
|
-
create: ExuluContext['createItem'];
|
|
548
|
-
delete: ExuluContext['deleteItem'];
|
|
549
|
-
};
|
|
550
548
|
};
|
|
551
549
|
exuluConfig: ExuluConfig;
|
|
552
|
-
}) => Promise<
|
|
550
|
+
}) => Promise<Item>;
|
|
553
551
|
config?: {
|
|
554
552
|
queue?: Promise<ExuluQueueConfig>;
|
|
555
553
|
timeoutInSeconds?: number;
|
|
@@ -576,7 +574,7 @@ declare class ExuluStorage {
|
|
|
576
574
|
config: ExuluConfig;
|
|
577
575
|
});
|
|
578
576
|
getPresignedUrl: (key: string) => Promise<string>;
|
|
579
|
-
uploadFile: (file: Buffer | Uint8Array,
|
|
577
|
+
uploadFile: (file: Buffer | Uint8Array, fileName: string, type: string, user?: number, metadata?: Record<string, string>, customBucket?: string) => Promise<string>;
|
|
580
578
|
}
|
|
581
579
|
type ExuluContextSource = {
|
|
582
580
|
id: string;
|
|
@@ -638,7 +636,7 @@ declare class ExuluContext {
|
|
|
638
636
|
processField: (trigger: STATISTICS_LABELS, item: Item & {
|
|
639
637
|
field: string;
|
|
640
638
|
}, exuluConfig: ExuluConfig, user?: number, role?: string) => Promise<{
|
|
641
|
-
result:
|
|
639
|
+
result: Item;
|
|
642
640
|
job?: string;
|
|
643
641
|
}>;
|
|
644
642
|
search: (options: {
|
|
@@ -713,7 +711,7 @@ declare class ExuluContext {
|
|
|
713
711
|
createChunksTable: () => Promise<void>;
|
|
714
712
|
tool: () => ExuluTool;
|
|
715
713
|
}
|
|
716
|
-
type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user";
|
|
714
|
+
type STATISTICS_LABELS = "tool" | "agent" | "flow" | "api" | "claude-code" | "user" | "processor";
|
|
717
715
|
type ExuluStatistic = {
|
|
718
716
|
name: string;
|
|
719
717
|
label: string;
|
|
@@ -739,21 +737,33 @@ declare class ExuluQueues {
|
|
|
739
737
|
queues: {
|
|
740
738
|
queue: Queue;
|
|
741
739
|
ratelimit: number;
|
|
742
|
-
concurrency:
|
|
740
|
+
concurrency: {
|
|
741
|
+
worker: number;
|
|
742
|
+
queue: number;
|
|
743
|
+
};
|
|
743
744
|
}[];
|
|
744
745
|
constructor();
|
|
745
746
|
list: Map<string, {
|
|
746
747
|
name: string;
|
|
747
|
-
concurrency:
|
|
748
|
+
concurrency: {
|
|
749
|
+
worker: number;
|
|
750
|
+
queue: number;
|
|
751
|
+
};
|
|
748
752
|
ratelimit: number;
|
|
749
753
|
use: () => Promise<ExuluQueueConfig>;
|
|
750
754
|
}>;
|
|
751
755
|
queue(name: string): {
|
|
752
756
|
queue: Queue;
|
|
753
757
|
ratelimit: number;
|
|
754
|
-
concurrency:
|
|
758
|
+
concurrency: {
|
|
759
|
+
worker: number;
|
|
760
|
+
queue: number;
|
|
761
|
+
};
|
|
755
762
|
} | undefined;
|
|
756
|
-
register: (name: string, concurrency
|
|
763
|
+
register: (name: string, concurrency: {
|
|
764
|
+
worker: number;
|
|
765
|
+
queue: number;
|
|
766
|
+
}, ratelimit?: number) => {
|
|
757
767
|
use: () => Promise<ExuluQueueConfig>;
|
|
758
768
|
};
|
|
759
769
|
}
|