@xuda.io/ai_module 1.1.4205 → 1.1.4207

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 +3 -1
  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
  };
@@ -6344,11 +6345,12 @@ export const create_mini_app = async function (req, job_id, headers) {
6344
6345
  try {
6345
6346
  const { account_project_id: app_id, account_info } = await account_module.get_default_project_account_doc(uid);
6346
6347
  const account_profile_info = await account_module.get_active_account_profile_info(uid);
6348
+ const { account_profile } = account_profile_info;
6347
6349
 
6348
6350
  const param = { uid, properties: { menuName: prompt, menuTitle: prompt, menuType: 'component' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'programs' };
6349
6351
  let component_doc = createDoc(param);
6350
6352
  component_doc.studio_meta.miniApp = true;
6351
-
6353
+ component_doc.studio_meta.account_profiles[account_profile];
6352
6354
  const name = await submit_chat_gpt_prompt({ uid, prompt: `create title for the prompt return 5 words result maximum text only without options : ${prompt}`, model: 'gpt-5-nano', metadata: { prog_id: component_doc._id, func: 'create_mini_app' } }, account_profile_info);
6353
6355
  component_doc.properties.menuName = name.data;
6354
6356
  component_doc.properties.menuTitle = name.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4205",
3
+ "version": "1.1.4207",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",