@xuda.io/ai_module 1.1.3606 → 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 -15
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2391,25 +2391,25 @@ export const get_ai_agents = async function (req, job_id, headers) {
2391
2391
  ////// FROM - IN
2392
2392
  let requests_from = { docs: [] };
2393
2393
 
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);
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);
2396
2396
 
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 };
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 };
2399
2399
 
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
- }
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
+ // }
2404
2404
 
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;
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;
2410
2410
 
2411
- requests_from.docs.push(doc);
2412
- }
2411
+ // requests_from.docs.push(doc);
2412
+ // }
2413
2413
 
2414
2414
  //////////////////////
2415
2415
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3606",
3
+ "version": "1.1.3607",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",