@xuda.io/ai_module 1.1.5468 → 1.1.5470

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5285,6 +5285,9 @@ const run_plugin = async function (app_id, uid, plugin_name, method, prop_data,
5285
5285
  };
5286
5286
 
5287
5287
  const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_data, dev = true, req = {}, agent_info = {}) {
5288
+ const account_profile_info = await get_active_account_profile_info(uid);
5289
+ const { account_profile_obj } = account_profile_info;
5290
+
5288
5291
  const db_module = await import(`${module_path}/db_module/index.mjs`);
5289
5292
 
5290
5293
  init(undefined, undefined, _, true, undefined, undefined, undefined, undefined, undefined, true, z);
@@ -5361,7 +5364,7 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
5361
5364
 
5362
5365
  const fields = await get_fields_data(_method.fields, prop_data);
5363
5366
  const params = fields;
5364
- const env = { couch, app_id, uid, userName, agent_info };
5367
+ const env = { couch, app_id, uid, userName, agent_info, account_profile_obj };
5365
5368
  const setup_doc = plugin_doc.setup || { OPENAI_API_KEY: _conf.OPENAI_API_KEY };
5366
5369
 
5367
5370
  ///////////////////////
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5468",
3
+ "version": "1.1.5470",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",