@exulu/backend 1.47.0 → 1.48.2
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/.mcp.json +7 -0
- package/CHANGELOG.md +4 -15
- package/README.md +2 -2
- package/dist/index.cjs +54 -51
- package/dist/index.d.cts +347 -347
- package/dist/index.d.ts +347 -347
- package/dist/index.js +53 -51
- package/ee/entitlements.ts +1 -1
- package/ee/schemas.ts +4 -3
- package/mintlify-docs/changelog.mdx +96 -2
- package/package.json +4 -3
- package/old-documentation/logging.md +0 -122
- package/old-documentation/otel.md +0 -145
- /package/{old-documentation → devops/documentation}/patch-older-releases.md +0 -0
package/.mcp.json
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
"headers": {
|
|
14
14
|
"Authorization": "Bearer ${EXULU_TOKEN}"
|
|
15
15
|
}
|
|
16
|
+
},
|
|
17
|
+
"exulu-mcp-server-coding-agent": {
|
|
18
|
+
"type": "http",
|
|
19
|
+
"url": "https://backend.exulu.com/mcp/d721c4cb-5db0-4dc1-9500-cc16aeff5403",
|
|
20
|
+
"headers": {
|
|
21
|
+
"Authorization": "Bearer ${EXULU_TOKEN}"
|
|
22
|
+
}
|
|
16
23
|
}
|
|
17
24
|
}
|
|
18
25
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
## [1.48.2](https://github.com/Qventu/exulu-backend/compare/v1.48.1...v1.48.2) (2026-03-15)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* linting errors ([0d8bce8](https://github.com/Qventu/exulu-backend/commit/0d8bce8122fb914055ca21ad3190185febc4b8f3))
|
|
10
|
-
* npm audit vulnerabilities ([95707bc](https://github.com/Qventu/exulu-backend/commit/95707bc909e1c1776ab470d691747dc56e2455ed))
|
|
11
|
-
* prettier ([8e15404](https://github.com/Qventu/exulu-backend/commit/8e154041b9de4b82cf36ef80980329e4a2fae49d))
|
|
12
|
-
* refactor classes.ts into individual modules ([7a71269](https://github.com/Qventu/exulu-backend/commit/7a71269139d59efce4d0ffbd70808e60c3cb26d6))
|
|
13
|
-
* src import references ([e349c30](https://github.com/Qventu/exulu-backend/commit/e349c309bbbb6bab90ead175db4968ea2b20f4aa))
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
* enterprise edition split and document processing system ([dd39da3](https://github.com/Qventu/exulu-backend/commit/dd39da3eaf3169d5b0906aab5cd65c7cf212f361))
|
|
19
|
-
* licensing and docs update ([1cec6ba](https://github.com/Qventu/exulu-backend/commit/1cec6ba817327ff8dd2090da31660c075b802963))
|
|
6
|
+
* add missing dependency for p-limit and export new ExuluProvider type to npm package ([4cebdac](https://github.com/Qventu/exulu-backend/commit/4cebdacecf8d89f9bd14751dc0abe9f364c45bb7))
|
|
7
|
+
* styling of header in main readme.md so we don't see html artifacts on npm preview ([279c257](https://github.com/Qventu/exulu-backend/commit/279c257109da469098db0e73490de9798febbf5e))
|
|
8
|
+
* switch github workflow to publish npm publicly ([4fd3319](https://github.com/Qventu/exulu-backend/commit/4fd3319a30657d850b95ce3d1dc24abd20991de7))
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
**Exulu IMP** (Intelligence Management Platform) is an open-source TypeScript framework for building production-ready AI agent applications. It provides the backend infrastructure for managing agents, semantic search contexts, background job processing, and tool integrations.
|
|
2
|
+
|
|
1
3
|
<a href="https://exulu.com/"><img width="100%" src="https://mintlify.s3.us-west-1.amazonaws.com/exulu/images/create_agents.png" alt="Exulu IMP - Create, deploy and manage AI agents" /></a>
|
|
2
4
|
|
|
3
5
|
<br />
|
|
@@ -26,8 +28,6 @@
|
|
|
26
28
|
> [!IMPORTANT]
|
|
27
29
|
> ⭐ Star this repo to follow development and updates
|
|
28
30
|
|
|
29
|
-
**Exulu IMP** (Intelligence Management Platform) is an open-source TypeScript framework for building production-ready AI agent applications. It provides the backend infrastructure for managing agents, semantic search contexts, background job processing, and tool integrations.
|
|
30
|
-
|
|
31
31
|
<h3>✨ Why Exulu IMP?</h3>
|
|
32
32
|
|
|
33
33
|
<ul>
|
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
EXULU_JOB_STATUS_ENUM: () => JOB_STATUS_ENUM,
|
|
34
|
-
EXULU_STATISTICS_TYPE_ENUM: () =>
|
|
34
|
+
EXULU_STATISTICS_TYPE_ENUM: () => STATISTICS_TYPE_ENUM,
|
|
35
35
|
ExuluApp: () => ExuluApp2,
|
|
36
36
|
ExuluAuthentication: () => ExuluAuthentication,
|
|
37
37
|
ExuluChunkers: () => ExuluChunkers,
|
|
@@ -43,6 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
ExuluEval: () => ExuluEval,
|
|
44
44
|
ExuluJobs: () => ExuluJobs,
|
|
45
45
|
ExuluOtel: () => ExuluOtel,
|
|
46
|
+
ExuluProvider: () => ExuluProvider,
|
|
46
47
|
ExuluQueues: () => queues,
|
|
47
48
|
ExuluReranker: () => ExuluReranker,
|
|
48
49
|
ExuluTool: () => ExuluTool,
|
|
@@ -523,7 +524,7 @@ var requestValidators = {
|
|
|
523
524
|
};
|
|
524
525
|
|
|
525
526
|
// types/enums/statistics.ts
|
|
526
|
-
var
|
|
527
|
+
var STATISTICS_TYPE_ENUM = {
|
|
527
528
|
CONTEXT_RETRIEVE: "CONTEXT_RETRIEVE",
|
|
528
529
|
SOURCE_UPDATE: "SOURCE_UPDATE",
|
|
529
530
|
EMBEDDER_UPSERT: "EMBEDDER_UPSERT",
|
|
@@ -1811,7 +1812,7 @@ var rolesSchema = {
|
|
|
1811
1812
|
type: "text"
|
|
1812
1813
|
},
|
|
1813
1814
|
{
|
|
1814
|
-
name:
|
|
1815
|
+
name: "agents",
|
|
1815
1816
|
type: "text"
|
|
1816
1817
|
// write | read access to agents
|
|
1817
1818
|
},
|
|
@@ -1825,12 +1826,12 @@ var rolesSchema = {
|
|
|
1825
1826
|
// write | read access to workflows
|
|
1826
1827
|
},
|
|
1827
1828
|
{
|
|
1828
|
-
name:
|
|
1829
|
+
name: "variables",
|
|
1829
1830
|
type: "text"
|
|
1830
1831
|
// write | read access to variables
|
|
1831
1832
|
},
|
|
1832
1833
|
{
|
|
1833
|
-
name:
|
|
1834
|
+
name: "users",
|
|
1834
1835
|
type: "text"
|
|
1835
1836
|
// write | read access to users
|
|
1836
1837
|
},
|
|
@@ -2178,7 +2179,7 @@ var agentSessionsSchema = {
|
|
|
2178
2179
|
}
|
|
2179
2180
|
]
|
|
2180
2181
|
};
|
|
2181
|
-
var
|
|
2182
|
+
var variablesSchema = {
|
|
2182
2183
|
type: "variables",
|
|
2183
2184
|
name: {
|
|
2184
2185
|
plural: "variables",
|
|
@@ -2234,7 +2235,7 @@ var projectsSchema = {
|
|
|
2234
2235
|
}
|
|
2235
2236
|
]
|
|
2236
2237
|
};
|
|
2237
|
-
var
|
|
2238
|
+
var agentsSchema = {
|
|
2238
2239
|
type: "agents",
|
|
2239
2240
|
name: {
|
|
2240
2241
|
plural: "agents",
|
|
@@ -2302,7 +2303,7 @@ var agentsSchema2 = {
|
|
|
2302
2303
|
}
|
|
2303
2304
|
]
|
|
2304
2305
|
};
|
|
2305
|
-
var
|
|
2306
|
+
var usersSchema = {
|
|
2306
2307
|
type: "users",
|
|
2307
2308
|
name: {
|
|
2308
2309
|
plural: "users",
|
|
@@ -2480,6 +2481,10 @@ var promptLibrarySchema = {
|
|
|
2480
2481
|
{
|
|
2481
2482
|
name: "assigned_agents",
|
|
2482
2483
|
type: "json"
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
name: "history",
|
|
2487
|
+
type: "json"
|
|
2483
2488
|
}
|
|
2484
2489
|
]
|
|
2485
2490
|
};
|
|
@@ -2542,13 +2547,13 @@ var coreSchemas = {
|
|
|
2542
2547
|
get: () => {
|
|
2543
2548
|
const license = checkLicense();
|
|
2544
2549
|
const schemas = {
|
|
2545
|
-
agentsSchema: () => addCoreFields(
|
|
2550
|
+
agentsSchema: () => addCoreFields(agentsSchema),
|
|
2546
2551
|
agentMessagesSchema: () => addCoreFields(agentMessagesSchema),
|
|
2547
2552
|
agentSessionsSchema: () => addCoreFields(agentSessionsSchema),
|
|
2548
2553
|
projectsSchema: () => addCoreFields(projectsSchema),
|
|
2549
|
-
usersSchema: () => addCoreFields(
|
|
2554
|
+
usersSchema: () => addCoreFields(usersSchema),
|
|
2550
2555
|
statisticsSchema: () => addCoreFields(statisticsSchema),
|
|
2551
|
-
variablesSchema: () => addCoreFields(
|
|
2556
|
+
variablesSchema: () => addCoreFields(variablesSchema),
|
|
2552
2557
|
platformConfigurationsSchema: () => addCoreFields(platformConfigurationsSchema),
|
|
2553
2558
|
promptLibrarySchema: () => addCoreFields(promptLibrarySchema),
|
|
2554
2559
|
embedderSettingsSchema: () => addCoreFields(embedderSettingsSchema),
|
|
@@ -3093,7 +3098,7 @@ var vectorSearch = async ({
|
|
|
3093
3098
|
await updateStatistic({
|
|
3094
3099
|
name: "count",
|
|
3095
3100
|
label: table.name.singular,
|
|
3096
|
-
type:
|
|
3101
|
+
type: STATISTICS_TYPE_ENUM.CONTEXT_RETRIEVE,
|
|
3097
3102
|
trigger,
|
|
3098
3103
|
user: user?.id,
|
|
3099
3104
|
role
|
|
@@ -3702,7 +3707,7 @@ var convertExuluToolsToAiSdkTools = async (currentTools, approvedTools, allExulu
|
|
|
3702
3707
|
await updateStatistic({
|
|
3703
3708
|
name: "count",
|
|
3704
3709
|
label: cur.name,
|
|
3705
|
-
type:
|
|
3710
|
+
type: STATISTICS_TYPE_ENUM.TOOL_CALL,
|
|
3706
3711
|
trigger: "agent",
|
|
3707
3712
|
count: 1,
|
|
3708
3713
|
user: user?.id,
|
|
@@ -4599,7 +4604,7 @@ var ExuluContext2 = class {
|
|
|
4599
4604
|
await updateStatistic({
|
|
4600
4605
|
name: "count",
|
|
4601
4606
|
label: this.name,
|
|
4602
|
-
type:
|
|
4607
|
+
type: STATISTICS_TYPE_ENUM.TOOL_CALL,
|
|
4603
4608
|
trigger: "tool",
|
|
4604
4609
|
count: 1,
|
|
4605
4610
|
user: user?.id,
|
|
@@ -5709,9 +5714,6 @@ var finalizeRequestedFields = async ({
|
|
|
5709
5714
|
});
|
|
5710
5715
|
});
|
|
5711
5716
|
} else {
|
|
5712
|
-
console.log("[EXULU] table name singular", table.name.singular);
|
|
5713
|
-
console.log("[EXULU] requestedFields", requestedFields);
|
|
5714
|
-
console.log("[EXULU] result", result);
|
|
5715
5717
|
if (table.name.singular === "workflow_template") {
|
|
5716
5718
|
if (requestedFields.includes("variables")) {
|
|
5717
5719
|
const variables = [];
|
|
@@ -6944,7 +6946,7 @@ function createMutations(table, providers, contexts, rerankers, tools, config) {
|
|
|
6944
6946
|
await updateStatistic({
|
|
6945
6947
|
name: "count",
|
|
6946
6948
|
label: source.id,
|
|
6947
|
-
type:
|
|
6949
|
+
type: STATISTICS_TYPE_ENUM.SOURCE_UPDATE,
|
|
6948
6950
|
trigger: "api",
|
|
6949
6951
|
count: 1,
|
|
6950
6952
|
user: context?.user?.id,
|
|
@@ -7696,7 +7698,7 @@ var createWorkers = async (providers, queues2, config, contexts, rerankers, eval
|
|
|
7696
7698
|
await updateStatistic({
|
|
7697
7699
|
name: "count",
|
|
7698
7700
|
label: source.id,
|
|
7699
|
-
type:
|
|
7701
|
+
type: STATISTICS_TYPE_ENUM.SOURCE_UPDATE,
|
|
7700
7702
|
trigger: "api",
|
|
7701
7703
|
count: 1,
|
|
7702
7704
|
user: data?.user,
|
|
@@ -8079,7 +8081,7 @@ var processUiMessagesFlow = async ({
|
|
|
8079
8081
|
updateStatistic({
|
|
8080
8082
|
name: "count",
|
|
8081
8083
|
label: statistics.label,
|
|
8082
|
-
type:
|
|
8084
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
8083
8085
|
trigger: statistics.trigger,
|
|
8084
8086
|
count: 1,
|
|
8085
8087
|
user: user.id,
|
|
@@ -8089,7 +8091,7 @@ var processUiMessagesFlow = async ({
|
|
|
8089
8091
|
updateStatistic({
|
|
8090
8092
|
name: "inputTokens",
|
|
8091
8093
|
label: statistics.label,
|
|
8092
|
-
type:
|
|
8094
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
8093
8095
|
trigger: statistics.trigger,
|
|
8094
8096
|
count: metadata?.inputTokens,
|
|
8095
8097
|
user: user.id,
|
|
@@ -8100,7 +8102,7 @@ var processUiMessagesFlow = async ({
|
|
|
8100
8102
|
updateStatistic({
|
|
8101
8103
|
name: "outputTokens",
|
|
8102
8104
|
label: statistics.label,
|
|
8103
|
-
type:
|
|
8105
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
8104
8106
|
trigger: statistics.trigger,
|
|
8105
8107
|
count: metadata?.outputTokens
|
|
8106
8108
|
})
|
|
@@ -9978,7 +9980,7 @@ var ExuluProvider = class {
|
|
|
9978
9980
|
await updateStatistic({
|
|
9979
9981
|
name: "count",
|
|
9980
9982
|
label: agent.name,
|
|
9981
|
-
type:
|
|
9983
|
+
type: STATISTICS_TYPE_ENUM.TOOL_CALL,
|
|
9982
9984
|
trigger: "tool",
|
|
9983
9985
|
count: 1,
|
|
9984
9986
|
user: user?.id,
|
|
@@ -10210,7 +10212,7 @@ var ExuluProvider = class {
|
|
|
10210
10212
|
updateStatistic({
|
|
10211
10213
|
name: "count",
|
|
10212
10214
|
label: statistics.label,
|
|
10213
|
-
type:
|
|
10215
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
10214
10216
|
trigger: statistics.trigger,
|
|
10215
10217
|
count: 1,
|
|
10216
10218
|
user: user?.id,
|
|
@@ -10220,7 +10222,7 @@ var ExuluProvider = class {
|
|
|
10220
10222
|
updateStatistic({
|
|
10221
10223
|
name: "inputTokens",
|
|
10222
10224
|
label: statistics.label,
|
|
10223
|
-
type:
|
|
10225
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
10224
10226
|
trigger: statistics.trigger,
|
|
10225
10227
|
count: inputTokens
|
|
10226
10228
|
})
|
|
@@ -10229,7 +10231,7 @@ var ExuluProvider = class {
|
|
|
10229
10231
|
updateStatistic({
|
|
10230
10232
|
name: "outputTokens",
|
|
10231
10233
|
label: statistics.label,
|
|
10232
|
-
type:
|
|
10234
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
10233
10235
|
trigger: statistics.trigger,
|
|
10234
10236
|
count: outputTokens
|
|
10235
10237
|
})
|
|
@@ -10275,7 +10277,7 @@ var ExuluProvider = class {
|
|
|
10275
10277
|
updateStatistic({
|
|
10276
10278
|
name: "count",
|
|
10277
10279
|
label: statistics.label,
|
|
10278
|
-
type:
|
|
10280
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
10279
10281
|
trigger: statistics.trigger,
|
|
10280
10282
|
count: 1,
|
|
10281
10283
|
user: user?.id,
|
|
@@ -10285,7 +10287,7 @@ var ExuluProvider = class {
|
|
|
10285
10287
|
updateStatistic({
|
|
10286
10288
|
name: "inputTokens",
|
|
10287
10289
|
label: statistics.label,
|
|
10288
|
-
type:
|
|
10290
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
10289
10291
|
trigger: statistics.trigger,
|
|
10290
10292
|
count: totalUsage?.inputTokens,
|
|
10291
10293
|
user: user?.id,
|
|
@@ -10296,7 +10298,7 @@ var ExuluProvider = class {
|
|
|
10296
10298
|
updateStatistic({
|
|
10297
10299
|
name: "outputTokens",
|
|
10298
10300
|
label: statistics.label,
|
|
10299
|
-
type:
|
|
10301
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
10300
10302
|
trigger: statistics.trigger,
|
|
10301
10303
|
count: totalUsage?.outputTokens
|
|
10302
10304
|
})
|
|
@@ -10691,7 +10693,7 @@ var global_queues = {
|
|
|
10691
10693
|
eval_runs: "eval_runs"
|
|
10692
10694
|
};
|
|
10693
10695
|
var {
|
|
10694
|
-
agentsSchema:
|
|
10696
|
+
agentsSchema: agentsSchema2,
|
|
10695
10697
|
feedbackSchema: feedbackSchema2,
|
|
10696
10698
|
projectsSchema: projectsSchema2,
|
|
10697
10699
|
jobResultsSchema: jobResultsSchema2,
|
|
@@ -10702,8 +10704,8 @@ var {
|
|
|
10702
10704
|
agentSessionsSchema: agentSessionsSchema2,
|
|
10703
10705
|
agentMessagesSchema: agentMessagesSchema2,
|
|
10704
10706
|
rolesSchema: rolesSchema2,
|
|
10705
|
-
usersSchema:
|
|
10706
|
-
variablesSchema:
|
|
10707
|
+
usersSchema: usersSchema2,
|
|
10708
|
+
variablesSchema: variablesSchema2,
|
|
10707
10709
|
workflowTemplatesSchema: workflowTemplatesSchema2,
|
|
10708
10710
|
rbacSchema: rbacSchema2,
|
|
10709
10711
|
promptLibrarySchema: promptLibrarySchema2,
|
|
@@ -10746,9 +10748,9 @@ var createExpressRoutes = async (app, providers, tools, contexts, config, evals,
|
|
|
10746
10748
|
`);
|
|
10747
10749
|
const schema = createSDL(
|
|
10748
10750
|
[
|
|
10749
|
-
|
|
10751
|
+
usersSchema2(),
|
|
10750
10752
|
rolesSchema2(),
|
|
10751
|
-
|
|
10753
|
+
agentsSchema2(),
|
|
10752
10754
|
feedbackSchema2(),
|
|
10753
10755
|
projectsSchema2(),
|
|
10754
10756
|
jobResultsSchema2(),
|
|
@@ -10761,7 +10763,7 @@ var createExpressRoutes = async (app, providers, tools, contexts, config, evals,
|
|
|
10761
10763
|
testCasesSchema2(),
|
|
10762
10764
|
agentSessionsSchema2(),
|
|
10763
10765
|
agentMessagesSchema2(),
|
|
10764
|
-
|
|
10766
|
+
variablesSchema2(),
|
|
10765
10767
|
workflowTemplatesSchema2(),
|
|
10766
10768
|
statisticsSchema2(),
|
|
10767
10769
|
rbacSchema2()
|
|
@@ -11205,7 +11207,7 @@ Mood: friendly and intelligent.
|
|
|
11205
11207
|
updateStatistic({
|
|
11206
11208
|
name: "count",
|
|
11207
11209
|
label: statistics.label,
|
|
11208
|
-
type:
|
|
11210
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
11209
11211
|
trigger: statistics.trigger,
|
|
11210
11212
|
count: 1,
|
|
11211
11213
|
user: user?.id,
|
|
@@ -11215,7 +11217,7 @@ Mood: friendly and intelligent.
|
|
|
11215
11217
|
updateStatistic({
|
|
11216
11218
|
name: "inputTokens",
|
|
11217
11219
|
label: statistics.label,
|
|
11218
|
-
type:
|
|
11220
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
11219
11221
|
trigger: statistics.trigger,
|
|
11220
11222
|
count: metadata?.inputTokens,
|
|
11221
11223
|
user: user?.id,
|
|
@@ -11226,7 +11228,7 @@ Mood: friendly and intelligent.
|
|
|
11226
11228
|
updateStatistic({
|
|
11227
11229
|
name: "outputTokens",
|
|
11228
11230
|
label: statistics.label,
|
|
11229
|
-
type:
|
|
11231
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
11230
11232
|
trigger: statistics.trigger,
|
|
11231
11233
|
count: metadata?.outputTokens
|
|
11232
11234
|
})
|
|
@@ -11296,7 +11298,7 @@ Mood: friendly and intelligent.
|
|
|
11296
11298
|
const user = authenticationResult.user;
|
|
11297
11299
|
let agentQuery = db2("agents");
|
|
11298
11300
|
agentQuery.select("*");
|
|
11299
|
-
agentQuery = applyAccessControl(
|
|
11301
|
+
agentQuery = applyAccessControl(agentsSchema2(), agentQuery, authenticationResult.user);
|
|
11300
11302
|
agentQuery.where({ id: req.params.agent });
|
|
11301
11303
|
const agent = await agentQuery.first();
|
|
11302
11304
|
if (!agent) {
|
|
@@ -11493,7 +11495,7 @@ data: ${JSON.stringify(event)}
|
|
|
11493
11495
|
updateStatistic({
|
|
11494
11496
|
name: "count",
|
|
11495
11497
|
label: statistics.label,
|
|
11496
|
-
type:
|
|
11498
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
11497
11499
|
trigger: statistics.trigger,
|
|
11498
11500
|
count: 1,
|
|
11499
11501
|
user: user.id,
|
|
@@ -11504,7 +11506,7 @@ data: ${JSON.stringify(event)}
|
|
|
11504
11506
|
updateStatistic({
|
|
11505
11507
|
name: "inputTokens",
|
|
11506
11508
|
label: statistics.label,
|
|
11507
|
-
type:
|
|
11509
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
11508
11510
|
trigger: statistics.trigger,
|
|
11509
11511
|
count: totalInputTokens,
|
|
11510
11512
|
user: user.id,
|
|
@@ -11516,7 +11518,7 @@ data: ${JSON.stringify(event)}
|
|
|
11516
11518
|
updateStatistic({
|
|
11517
11519
|
name: "outputTokens",
|
|
11518
11520
|
label: statistics.label,
|
|
11519
|
-
type:
|
|
11521
|
+
type: STATISTICS_TYPE_ENUM.AGENT_RUN,
|
|
11520
11522
|
trigger: statistics.trigger,
|
|
11521
11523
|
count: totalInputTokens,
|
|
11522
11524
|
user: user.id,
|
|
@@ -14595,7 +14597,7 @@ var ExuluEmbedder = class {
|
|
|
14595
14597
|
await updateStatistic({
|
|
14596
14598
|
name: "count",
|
|
14597
14599
|
label: statistics.label,
|
|
14598
|
-
type:
|
|
14600
|
+
type: STATISTICS_TYPE_ENUM.EMBEDDER_GENERATE,
|
|
14599
14601
|
trigger: statistics.trigger,
|
|
14600
14602
|
count: 1,
|
|
14601
14603
|
user,
|
|
@@ -14623,7 +14625,7 @@ var ExuluEmbedder = class {
|
|
|
14623
14625
|
await updateStatistic({
|
|
14624
14626
|
name: "count",
|
|
14625
14627
|
label: statistics.label,
|
|
14626
|
-
type:
|
|
14628
|
+
type: STATISTICS_TYPE_ENUM.EMBEDDER_GENERATE,
|
|
14627
14629
|
trigger: statistics.trigger,
|
|
14628
14630
|
count: 1,
|
|
14629
14631
|
user,
|
|
@@ -15044,7 +15046,7 @@ var SentenceChunker = class _SentenceChunker extends BaseChunker {
|
|
|
15044
15046
|
|
|
15045
15047
|
// src/postgres/init-db.ts
|
|
15046
15048
|
var {
|
|
15047
|
-
agentsSchema:
|
|
15049
|
+
agentsSchema: agentsSchema3,
|
|
15048
15050
|
feedbackSchema: feedbackSchema3,
|
|
15049
15051
|
testCasesSchema: testCasesSchema3,
|
|
15050
15052
|
evalSetsSchema: evalSetsSchema3,
|
|
@@ -15053,9 +15055,9 @@ var {
|
|
|
15053
15055
|
platformConfigurationsSchema: platformConfigurationsSchema3,
|
|
15054
15056
|
agentMessagesSchema: agentMessagesSchema3,
|
|
15055
15057
|
rolesSchema: rolesSchema3,
|
|
15056
|
-
usersSchema:
|
|
15058
|
+
usersSchema: usersSchema3,
|
|
15057
15059
|
statisticsSchema: statisticsSchema3,
|
|
15058
|
-
variablesSchema:
|
|
15060
|
+
variablesSchema: variablesSchema3,
|
|
15059
15061
|
workflowTemplatesSchema: workflowTemplatesSchema3,
|
|
15060
15062
|
rbacSchema: rbacSchema3,
|
|
15061
15063
|
projectsSchema: projectsSchema3,
|
|
@@ -15101,9 +15103,9 @@ var up = async function(knex) {
|
|
|
15101
15103
|
embedderSettingsSchema3(),
|
|
15102
15104
|
promptFavoritesSchema3(),
|
|
15103
15105
|
rbacSchema3(),
|
|
15104
|
-
|
|
15106
|
+
agentsSchema3(),
|
|
15105
15107
|
feedbackSchema3(),
|
|
15106
|
-
|
|
15108
|
+
variablesSchema3(),
|
|
15107
15109
|
workflowTemplatesSchema3()
|
|
15108
15110
|
];
|
|
15109
15111
|
const createTable = async (schema) => {
|
|
@@ -15150,7 +15152,7 @@ var up = async function(knex) {
|
|
|
15150
15152
|
table.string("email", 255);
|
|
15151
15153
|
table.timestamp("emailVerified", { useTz: true });
|
|
15152
15154
|
table.text("image");
|
|
15153
|
-
for (const field of
|
|
15155
|
+
for (const field of usersSchema3().fields) {
|
|
15154
15156
|
console.log("[EXULU] field", field);
|
|
15155
15157
|
const { type, name, default: defaultValue, unique } = field;
|
|
15156
15158
|
if (name === "id" || name === "name" || name === "email" || name === "emailVerified" || name === "image" || name === "password") {
|
|
@@ -15163,7 +15165,7 @@ var up = async function(knex) {
|
|
|
15163
15165
|
}
|
|
15164
15166
|
});
|
|
15165
15167
|
} else {
|
|
15166
|
-
await addMissingFields(knex, "users",
|
|
15168
|
+
await addMissingFields(knex, "users", usersSchema3().fields, [
|
|
15167
15169
|
"id",
|
|
15168
15170
|
"name",
|
|
15169
15171
|
"email",
|
|
@@ -16253,6 +16255,7 @@ var ExuluChunkers = {
|
|
|
16253
16255
|
ExuluEval,
|
|
16254
16256
|
ExuluJobs,
|
|
16255
16257
|
ExuluOtel,
|
|
16258
|
+
ExuluProvider,
|
|
16256
16259
|
ExuluQueues,
|
|
16257
16260
|
ExuluReranker,
|
|
16258
16261
|
ExuluTool,
|