@xuda.io/ai_module 1.1.4995 → 1.1.4996
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 +5 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -67,7 +67,8 @@ const drive_ms = await import(`${module_path}/drive_module/index_ms.mjs`);
|
|
|
67
67
|
const jobs_ms = await import(`${module_path}/jobs_module/index_ms.mjs`);
|
|
68
68
|
const team_ms = await import(`${module_path}/team_module/index_ms.mjs`);
|
|
69
69
|
const email_ms = await import(`${module_path}/email_module/index_ms.mjs`);
|
|
70
|
-
|
|
70
|
+
|
|
71
|
+
const ws_dashboard_msa = await import(`${module_path}/ws_dashboard_module/index_msa.mjs`);
|
|
71
72
|
|
|
72
73
|
var open_ai_status = {};
|
|
73
74
|
const report_ai_status = function (model, err) {
|
|
@@ -3983,7 +3984,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
3983
3984
|
// const { account_profile_info } = conversation_doc;
|
|
3984
3985
|
const emitToDashboard = (type, content) => {
|
|
3985
3986
|
// console.log(type, content);
|
|
3986
|
-
|
|
3987
|
+
ws_dashboard_msa.emit_message_to_dashboard({
|
|
3987
3988
|
service: type,
|
|
3988
3989
|
to: uid,
|
|
3989
3990
|
data: {
|
|
@@ -6016,7 +6017,7 @@ export const pin_ai_agent = async function (req, job_id, headers) {
|
|
|
6016
6017
|
|
|
6017
6018
|
const save_ret = await db_module.save_app_couch_doc(app_id, ai_agent_doc);
|
|
6018
6019
|
|
|
6019
|
-
|
|
6020
|
+
ws_dashboard_msa.emit_message_to_dashboard({
|
|
6020
6021
|
service: 'ai_agent_pinned',
|
|
6021
6022
|
to: [uid],
|
|
6022
6023
|
data: await get_ai_agent_info(uid, job_id, headers, ai_agent_doc),
|
|
@@ -6040,7 +6041,7 @@ export const unpin_ai_agent = async function (req, job_id, headers) {
|
|
|
6040
6041
|
|
|
6041
6042
|
const save_ret = await db_module.save_app_couch_doc(app_id, ai_agent_doc);
|
|
6042
6043
|
|
|
6043
|
-
|
|
6044
|
+
ws_dashboard_msa.emit_message_to_dashboard({
|
|
6044
6045
|
service: 'ai_agent_unpinned',
|
|
6045
6046
|
to: [uid],
|
|
6046
6047
|
data: await get_ai_agent_info(uid, job_id, headers, ai_agent_doc),
|