@xuda.io/ai_module 1.1.3745 → 1.1.3747
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/index.mjs +11 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1798,6 +1798,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1798
1798
|
if (reference_id) {
|
|
1799
1799
|
opt.selector.reference_id = reference_id;
|
|
1800
1800
|
}
|
|
1801
|
+
|
|
1801
1802
|
if (conversation_id) {
|
|
1802
1803
|
opt._id = conversation_id;
|
|
1803
1804
|
}
|
|
@@ -2375,7 +2376,7 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
|
|
|
2375
2376
|
};
|
|
2376
2377
|
|
|
2377
2378
|
export const get_ai_agents = async function (req, job_id, headers) {
|
|
2378
|
-
let { uid, _id, search, filter_type = 'all', limit, skip } = req;
|
|
2379
|
+
let { uid, _id, search, filter_type = 'all', limit, skip, ai_agent_id } = req;
|
|
2379
2380
|
|
|
2380
2381
|
try {
|
|
2381
2382
|
if (_id) {
|
|
@@ -2439,6 +2440,10 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2439
2440
|
],
|
|
2440
2441
|
};
|
|
2441
2442
|
}
|
|
2443
|
+
|
|
2444
|
+
if (ai_agent_id) {
|
|
2445
|
+
opt._id = ai_agent_id;
|
|
2446
|
+
}
|
|
2442
2447
|
//////////////
|
|
2443
2448
|
|
|
2444
2449
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
@@ -2720,7 +2725,7 @@ export const install_ai_agent = async function (req) {
|
|
|
2720
2725
|
};
|
|
2721
2726
|
|
|
2722
2727
|
export const get_apps = async function (req, job_id, headers) {
|
|
2723
|
-
let { uid, _id, search, filter_type = 'all', limit, skip } = req;
|
|
2728
|
+
let { uid, _id, search, filter_type = 'all', limit, skip, mini_app_id } = req;
|
|
2724
2729
|
|
|
2725
2730
|
try {
|
|
2726
2731
|
if (_id) return await get_ai_doc({ _id, uid });
|
|
@@ -2778,6 +2783,10 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2778
2783
|
],
|
|
2779
2784
|
};
|
|
2780
2785
|
}
|
|
2786
|
+
|
|
2787
|
+
if (mini_app_id) {
|
|
2788
|
+
opt._id = mini_app_id;
|
|
2789
|
+
}
|
|
2781
2790
|
//////////////
|
|
2782
2791
|
|
|
2783
2792
|
const app_id = await account_module.get_account_default_project_id(uid);
|