@xuda.io/ai_module 1.1.3605 → 1.1.3607

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 +15 -16
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2317,7 +2317,6 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
2317
2317
  };
2318
2318
 
2319
2319
  export const get_ai_agents = async function (req, job_id, headers) {
2320
- debugger;
2321
2320
  let { uid, _id, search, filter_type = 'all', limit, skip } = req;
2322
2321
 
2323
2322
  try {
@@ -2392,25 +2391,25 @@ export const get_ai_agents = async function (req, job_id, headers) {
2392
2391
  ////// FROM - IN
2393
2392
  let requests_from = { docs: [] };
2394
2393
 
2395
- const from_opt = { selector: { docType: 'team_request', access_type: 'ai_agent', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2396
- const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2394
+ // const from_opt = { selector: { docType: 'team_request', access_type: 'ai_agent', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2395
+ // const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2397
2396
 
2398
- for await (let e of requests_from_res.docs) {
2399
- let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
2397
+ // for await (let e of requests_from_res.docs) {
2398
+ // let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
2400
2399
 
2401
- if (e.team_req_from_uid) {
2402
- doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
2403
- doc.icon_pattern = doc.user_contact.profile_avatar;
2404
- }
2400
+ // if (e.team_req_from_uid) {
2401
+ // doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
2402
+ // doc.icon_pattern = doc.user_contact.profile_avatar;
2403
+ // }
2405
2404
 
2406
- //share_item_id
2407
- const app_id = await account_module.get_account_default_project_id(e.team_req_from_uid);
2408
- const miniapp_ret = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
2409
- doc.properties.menuName = miniapp_ret.properties.menuName;
2410
- doc.studio_meta.agent_image = miniapp_ret.studio_meta.agent_image;
2405
+ // //share_item_id
2406
+ // const app_id = await account_module.get_account_default_project_id(e.team_req_from_uid);
2407
+ // const miniapp_ret = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
2408
+ // doc.properties.menuName = miniapp_ret.properties.menuName;
2409
+ // doc.studio_meta.agent_image = miniapp_ret.studio_meta.agent_image;
2411
2410
 
2412
- requests_from.docs.push(doc);
2413
- }
2411
+ // requests_from.docs.push(doc);
2412
+ // }
2414
2413
 
2415
2414
  //////////////////////
2416
2415
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3605",
3
+ "version": "1.1.3607",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",