@exulu/backend 1.10.0 → 1.11.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 +2 -3
- package/dist/index.cjs +14 -7
- package/dist/index.js +14 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
# [1.
|
|
1
|
+
# [1.11.0](https://github.com/Qventu/exulu-backend/compare/v1.10.0...v1.11.0) (2025-08-14)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* added new role based access logic ([e098a03](https://github.com/Qventu/exulu-backend/commit/e098a0369b169e0dbcf3c6f1bc7480a8e343f082))
|
|
6
|
+
* changed playground to chat and added role to agent sessions ([b2ff1c9](https://github.com/Qventu/exulu-backend/commit/b2ff1c9dfea7f5aa6fe31a19a41f4bfddbc1bb67))
|
|
8
7
|
|
|
9
8
|
# [1.1.0](https://github.com/Qventu/exulu-backend/compare/v1.0.1...v1.1.0) (2025-07-30)
|
|
10
9
|
|
package/dist/index.cjs
CHANGED
|
@@ -2752,6 +2752,10 @@ var agentSessionsSchema = {
|
|
|
2752
2752
|
// next auth stores users with id type SERIAL, so we need to use number
|
|
2753
2753
|
type: "number"
|
|
2754
2754
|
},
|
|
2755
|
+
{
|
|
2756
|
+
name: "role",
|
|
2757
|
+
type: "uuid"
|
|
2758
|
+
},
|
|
2755
2759
|
{
|
|
2756
2760
|
name: "title",
|
|
2757
2761
|
type: "text"
|
|
@@ -2855,7 +2859,7 @@ var rolesSchema = {
|
|
|
2855
2859
|
}
|
|
2856
2860
|
]
|
|
2857
2861
|
};
|
|
2858
|
-
var
|
|
2862
|
+
var statisticsSchema2 = {
|
|
2859
2863
|
name: {
|
|
2860
2864
|
plural: "statistics",
|
|
2861
2865
|
singular: "statistic"
|
|
@@ -3193,7 +3197,7 @@ var coreSchemas = {
|
|
|
3193
3197
|
agentSessionsSchema: () => addRBACfields(agentSessionsSchema),
|
|
3194
3198
|
usersSchema: () => addRBACfields(usersSchema),
|
|
3195
3199
|
rolesSchema: () => addRBACfields(rolesSchema),
|
|
3196
|
-
statisticsSchema: () => addRBACfields(
|
|
3200
|
+
statisticsSchema: () => addRBACfields(statisticsSchema2),
|
|
3197
3201
|
workflowSchema: () => addRBACfields(workflowSchema),
|
|
3198
3202
|
evalResultsSchema: () => addRBACfields(evalResultsSchema),
|
|
3199
3203
|
jobsSchema: () => addRBACfields(jobsSchema),
|
|
@@ -3751,6 +3755,7 @@ var createExpressRoutes = async (app, agents, tools, workflows, contexts) => {
|
|
|
3751
3755
|
agentMessagesSchema2(),
|
|
3752
3756
|
variablesSchema2(),
|
|
3753
3757
|
workflowTemplatesSchema2(),
|
|
3758
|
+
statisticsSchema(),
|
|
3754
3759
|
rbacSchema2()
|
|
3755
3760
|
]
|
|
3756
3761
|
);
|
|
@@ -4728,9 +4733,11 @@ var createExpressRoutes = async (app, agents, tools, workflows, contexts) => {
|
|
|
4728
4733
|
return;
|
|
4729
4734
|
}
|
|
4730
4735
|
const { db: db3 } = await postgresClient();
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4736
|
+
let query = db3("agents");
|
|
4737
|
+
query.select("*");
|
|
4738
|
+
query = applyAccessControl(agentsSchema2(), authenticationResult.user, query);
|
|
4739
|
+
query.where({ id: req.params.id });
|
|
4740
|
+
const agent = await query.first();
|
|
4734
4741
|
if (!agent) {
|
|
4735
4742
|
const arrayBuffer = createCustomAnthropicStreamingMessage(`
|
|
4736
4743
|
\x1B[41m -- Agent ${req.params.id} not found or you do not have access to it. --
|
|
@@ -6647,7 +6654,7 @@ var generateApiKey = async (name, email) => {
|
|
|
6647
6654
|
};
|
|
6648
6655
|
|
|
6649
6656
|
// src/postgres/init-db.ts
|
|
6650
|
-
var { agentsSchema: agentsSchema3, evalResultsSchema: evalResultsSchema3, jobsSchema: jobsSchema3, agentSessionsSchema: agentSessionsSchema3, agentMessagesSchema: agentMessagesSchema3, rolesSchema: rolesSchema3, usersSchema: usersSchema3, statisticsSchema:
|
|
6657
|
+
var { agentsSchema: agentsSchema3, evalResultsSchema: evalResultsSchema3, jobsSchema: jobsSchema3, agentSessionsSchema: agentSessionsSchema3, agentMessagesSchema: agentMessagesSchema3, rolesSchema: rolesSchema3, usersSchema: usersSchema3, statisticsSchema: statisticsSchema3, variablesSchema: variablesSchema3, workflowTemplatesSchema: workflowTemplatesSchema3, rbacSchema: rbacSchema3 } = coreSchemas.get();
|
|
6651
6658
|
var addMissingFields = async (knex, tableName, fields, skipFields = []) => {
|
|
6652
6659
|
for (const field of fields) {
|
|
6653
6660
|
const { type, name, default: defaultValue, unique } = field;
|
|
@@ -6675,7 +6682,7 @@ var up = async function(knex) {
|
|
|
6675
6682
|
agentMessagesSchema3(),
|
|
6676
6683
|
rolesSchema3(),
|
|
6677
6684
|
evalResultsSchema3(),
|
|
6678
|
-
|
|
6685
|
+
statisticsSchema3(),
|
|
6679
6686
|
jobsSchema3(),
|
|
6680
6687
|
rbacSchema3(),
|
|
6681
6688
|
agentsSchema3(),
|
package/dist/index.js
CHANGED
|
@@ -2709,6 +2709,10 @@ var agentSessionsSchema = {
|
|
|
2709
2709
|
// next auth stores users with id type SERIAL, so we need to use number
|
|
2710
2710
|
type: "number"
|
|
2711
2711
|
},
|
|
2712
|
+
{
|
|
2713
|
+
name: "role",
|
|
2714
|
+
type: "uuid"
|
|
2715
|
+
},
|
|
2712
2716
|
{
|
|
2713
2717
|
name: "title",
|
|
2714
2718
|
type: "text"
|
|
@@ -2812,7 +2816,7 @@ var rolesSchema = {
|
|
|
2812
2816
|
}
|
|
2813
2817
|
]
|
|
2814
2818
|
};
|
|
2815
|
-
var
|
|
2819
|
+
var statisticsSchema2 = {
|
|
2816
2820
|
name: {
|
|
2817
2821
|
plural: "statistics",
|
|
2818
2822
|
singular: "statistic"
|
|
@@ -3150,7 +3154,7 @@ var coreSchemas = {
|
|
|
3150
3154
|
agentSessionsSchema: () => addRBACfields(agentSessionsSchema),
|
|
3151
3155
|
usersSchema: () => addRBACfields(usersSchema),
|
|
3152
3156
|
rolesSchema: () => addRBACfields(rolesSchema),
|
|
3153
|
-
statisticsSchema: () => addRBACfields(
|
|
3157
|
+
statisticsSchema: () => addRBACfields(statisticsSchema2),
|
|
3154
3158
|
workflowSchema: () => addRBACfields(workflowSchema),
|
|
3155
3159
|
evalResultsSchema: () => addRBACfields(evalResultsSchema),
|
|
3156
3160
|
jobsSchema: () => addRBACfields(jobsSchema),
|
|
@@ -3708,6 +3712,7 @@ var createExpressRoutes = async (app, agents, tools, workflows, contexts) => {
|
|
|
3708
3712
|
agentMessagesSchema2(),
|
|
3709
3713
|
variablesSchema2(),
|
|
3710
3714
|
workflowTemplatesSchema2(),
|
|
3715
|
+
statisticsSchema(),
|
|
3711
3716
|
rbacSchema2()
|
|
3712
3717
|
]
|
|
3713
3718
|
);
|
|
@@ -4685,9 +4690,11 @@ var createExpressRoutes = async (app, agents, tools, workflows, contexts) => {
|
|
|
4685
4690
|
return;
|
|
4686
4691
|
}
|
|
4687
4692
|
const { db: db3 } = await postgresClient();
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4693
|
+
let query = db3("agents");
|
|
4694
|
+
query.select("*");
|
|
4695
|
+
query = applyAccessControl(agentsSchema2(), authenticationResult.user, query);
|
|
4696
|
+
query.where({ id: req.params.id });
|
|
4697
|
+
const agent = await query.first();
|
|
4691
4698
|
if (!agent) {
|
|
4692
4699
|
const arrayBuffer = createCustomAnthropicStreamingMessage(`
|
|
4693
4700
|
\x1B[41m -- Agent ${req.params.id} not found or you do not have access to it. --
|
|
@@ -6604,7 +6611,7 @@ var generateApiKey = async (name, email) => {
|
|
|
6604
6611
|
};
|
|
6605
6612
|
|
|
6606
6613
|
// src/postgres/init-db.ts
|
|
6607
|
-
var { agentsSchema: agentsSchema3, evalResultsSchema: evalResultsSchema3, jobsSchema: jobsSchema3, agentSessionsSchema: agentSessionsSchema3, agentMessagesSchema: agentMessagesSchema3, rolesSchema: rolesSchema3, usersSchema: usersSchema3, statisticsSchema:
|
|
6614
|
+
var { agentsSchema: agentsSchema3, evalResultsSchema: evalResultsSchema3, jobsSchema: jobsSchema3, agentSessionsSchema: agentSessionsSchema3, agentMessagesSchema: agentMessagesSchema3, rolesSchema: rolesSchema3, usersSchema: usersSchema3, statisticsSchema: statisticsSchema3, variablesSchema: variablesSchema3, workflowTemplatesSchema: workflowTemplatesSchema3, rbacSchema: rbacSchema3 } = coreSchemas.get();
|
|
6608
6615
|
var addMissingFields = async (knex, tableName, fields, skipFields = []) => {
|
|
6609
6616
|
for (const field of fields) {
|
|
6610
6617
|
const { type, name, default: defaultValue, unique } = field;
|
|
@@ -6632,7 +6639,7 @@ var up = async function(knex) {
|
|
|
6632
6639
|
agentMessagesSchema3(),
|
|
6633
6640
|
rolesSchema3(),
|
|
6634
6641
|
evalResultsSchema3(),
|
|
6635
|
-
|
|
6642
|
+
statisticsSchema3(),
|
|
6636
6643
|
jobsSchema3(),
|
|
6637
6644
|
rbacSchema3(),
|
|
6638
6645
|
agentsSchema3(),
|