@xuda.io/ai_module 1.1.4950 → 1.1.4952

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 +16 -14
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2,7 +2,7 @@ console.log('AI Module loaded...');
2
2
 
3
3
  import { z } from 'zod';
4
4
  import fs from 'fs';
5
- import * as path from 'path';
5
+ import path from 'node:path';
6
6
  import { zodToJsonSchema } from 'zod-to-json-schema';
7
7
  import sharp from 'sharp';
8
8
 
@@ -18,6 +18,8 @@ import _ from 'lodash';
18
18
  import { NodeVM, VMScript } from 'vm2';
19
19
  import admin from 'firebase-admin';
20
20
 
21
+ import { get_active_account_profile_info } from './var/xuda/common/cache_cpi.mjs ';
22
+
21
23
  puppeteer.use(StealthPlugin());
22
24
  import process from 'process';
23
25
  import { File } from 'node:buffer'; // Node 20+
@@ -10708,18 +10710,18 @@ export const get_person_info = async function (uid, name, email, account_profile
10708
10710
 
10709
10711
  export const open_ai_alive_check = async function () {};
10710
10712
 
10711
- const get_active_account_profile_info = async function (uid) {
10712
- const key = `active_account_profile_info_${uid}`;
10713
+ // const get_active_account_profile_info = async function (uid) {
10714
+ // const key = `active_account_profile_info_${uid}`;
10713
10715
 
10714
- let account_profile_info;
10715
- try {
10716
- account_profile_info = await db_module.get_memcached_doc(key);
10717
- } catch (error) {
10718
- try {
10719
- account_profile_info = await account_ms.get_active_account_profile_info(uid);
10720
- db_module.set_memcached_doc(key, account_profile_info);
10721
- } catch (error) {}
10722
- }
10716
+ // let account_profile_info;
10717
+ // try {
10718
+ // account_profile_info = await db_module.get_memcached_doc(key);
10719
+ // } catch (error) {
10720
+ // try {
10721
+ // account_profile_info = await account_ms.get_active_account_profile_info(uid);
10722
+ // db_module.set_memcached_doc(key, account_profile_info);
10723
+ // } catch (error) {}
10724
+ // }
10723
10725
 
10724
- return account_profile_info;
10725
- };
10726
+ // return account_profile_info;
10727
+ // };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4950",
3
+ "version": "1.1.4952",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",