@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.
Files changed (2) hide show
  1. package/index.mjs +6 -13
  2. 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
- global[`_ai_module_ch`].sendToQueue(
5998
- 'ws_dashboard_module',
5999
- Buffer.from(
6000
- JSON.stringify({
6001
- method: 'emit_message_to_dashboard',
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4922",
3
+ "version": "1.1.4924",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",