@xuda.io/ai_module 1.1.4204 → 1.1.4206

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 +1 -13
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2547,6 +2547,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
2547
2547
 
2548
2548
  return { code: 8, data: { docs: [...requests_from.docs, ...docs], total_docs: user_agents.total_docs + requests_from.total_docs } };
2549
2549
  } catch (err) {
2550
+ debugger;
2550
2551
  return { code: -8, data: err.message };
2551
2552
  }
2552
2553
  };
@@ -3417,19 +3418,6 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
3417
3418
  };
3418
3419
 
3419
3420
  const get_drive_file_response = async function (drive_type, app_id, uid, file_path) {
3420
- // const filename = path.basename(file_path);
3421
- // const db = get_xuda_couch('xuda_drive');
3422
- // const ret = await db.find({
3423
- // selector: {
3424
- // docType: 'user_drive',
3425
- // type: 'file',
3426
- // file_path: path.dirname(file_path) === '.' ? '/' : path.dirname(file_path),
3427
- // originalname: filename,
3428
- // stat: 3,
3429
- // },
3430
- // });
3431
- // const doc = ret?.docs?.[0];
3432
-
3433
3421
  const check_existing_file_ret = await drive_module.check_drive_file({ drive_type, app_id, uid, file_path });
3434
3422
 
3435
3423
  if (!check_existing_file_ret?.duplicates) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4204",
3
+ "version": "1.1.4206",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",