@xuda.io/ai_module 1.1.3638 → 1.1.3640

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 +40 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5772,6 +5772,46 @@ const create_ai_agent_image = async function (req, job_id, headers) {
5772
5772
 
5773
5773
  const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
5774
5774
  const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
5775
+
5776
+ if (account_doc.account_info.account_type === 'business') {
5777
+ const prompt = `
5778
+ Create a futuristic, faceless humanoid profile portrait with a transparent background.
5779
+
5780
+ Center the character facing forward, with subtle top spacing, showing only the head and shoulders.
5781
+ The humanoid must remain completely faceless.
5782
+
5783
+ Style the humanoid with functional, minimal attire integrated into its form
5784
+ (such as collars, layered panels, shoulder structures, or fabric-like surfaces),
5785
+ avoiding human fashion tropes.
5786
+
5787
+ Select exactly ONE accessory category per generation (do not combine):
5788
+ - Head-mounted element (visor, band, halo ring)
5789
+ - Chest or collar element (badge, glyph, embedded tag)
5790
+ - Floating or projected element (holographic symbol, light node)
5791
+ - Structural or partially visible object that reinforces the role
5792
+
5793
+ Accessories must directly reinforce the identity of
5794
+ "${ai_agent_doc.properties.menuName} - ${ai_agent_doc.studio_meta.agent_assistant_name}".
5795
+
5796
+ Use a consistent, fixed color palette across all generations.
5797
+ Do not introduce new colors.
5798
+ All variation must come from geometry, materials, texture, and lighting.
5799
+
5800
+ Vary at least two of the following:
5801
+ - Head geometry
5802
+ - Surface structure
5803
+ - Material finish
5804
+ - Light interaction
5805
+
5806
+ Use advanced or reflective materials to convey intelligence and sophistication.
5807
+ The overall composition should symbolize the fusion of human creativity and machine intelligence.
5808
+
5809
+ `;
5810
+ //and a hat
5811
+ const images_arr = await create_and_upload_image_to_drive('studio', 'Progs Thumbnails', doc._id, prompt, 1, uid, app_id, job_id, headers, false, tags);
5812
+ return images_arr;
5813
+ }
5814
+
5775
5815
  let url = account_doc.account_info.profile_avatar;
5776
5816
 
5777
5817
  try {
@@ -5817,7 +5857,6 @@ const create_ai_agent_image = async function (req, job_id, headers) {
5817
5857
  );
5818
5858
 
5819
5859
  let imageBase64;
5820
- let avatar_source = '';
5821
5860
 
5822
5861
  //////////////////
5823
5862
  imageBase64 = Buffer.from(await images[0].image_blob.arrayBuffer()).toString('base64');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3638",
3
+ "version": "1.1.3640",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",