@xuda.io/ai_module 1.1.4922 → 1.1.4924
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 +6 -13
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -68,6 +68,7 @@ const drive_ms = await import(`${module_path}/drive_module/index_ms.mjs`);
|
|
|
68
68
|
const jobs_ms = await import(`${module_path}/jobs_module/index_ms.mjs`);
|
|
69
69
|
const team_ms = await import(`${module_path}/team_module/index_ms.mjs`);
|
|
70
70
|
const email_ms = await import(`${module_path}/email_module/index_ms.mjs`);
|
|
71
|
+
const ws_dashboard_ms = await import(`${module_path}/ws_dashboard_module/index_ms.mjs`);
|
|
71
72
|
|
|
72
73
|
var open_ai_status = {};
|
|
73
74
|
const report_ai_status = function (model, err) {
|
|
@@ -5994,19 +5995,11 @@ export const unpin_ai_agent = async function (req, job_id, headers) {
|
|
|
5994
5995
|
|
|
5995
5996
|
const save_ret = await db_module.save_app_couch_doc(app_id, ai_agent_doc);
|
|
5996
5997
|
|
|
5997
|
-
|
|
5998
|
-
'
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
data: {
|
|
6003
|
-
service: 'ai_agent_unpinned',
|
|
6004
|
-
to: [uid],
|
|
6005
|
-
data: await get_ai_agent_info(uid, job_id, headers, ai_agent_doc),
|
|
6006
|
-
},
|
|
6007
|
-
}),
|
|
6008
|
-
),
|
|
6009
|
-
);
|
|
5998
|
+
ws_dashboard_ms.emit_message_to_dashboard({
|
|
5999
|
+
service: 'ai_agent_unpinned',
|
|
6000
|
+
to: [uid],
|
|
6001
|
+
data: await get_ai_agent_info(uid, job_id, headers, ai_agent_doc),
|
|
6002
|
+
});
|
|
6010
6003
|
|
|
6011
6004
|
return save_ret;
|
|
6012
6005
|
} catch (err) {
|