@xuda.io/ai_module 1.1.5541 → 1.1.5543

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 +5 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5079,19 +5079,20 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5079
5079
 
5080
5080
  switch (conversation_type) {
5081
5081
  case 'note':
5082
- text += `: ${body}`;
5082
+ text += `:${body}`;
5083
5083
  break;
5084
5084
 
5085
5085
  case 'email':
5086
- text += `: ${body}`;
5086
+ // direction, from_mailbox
5087
+ text += `:${body} ${metadata.direction === 'in' ? ' | Received' : ' | Sent'}`;
5087
5088
  break;
5088
5089
 
5089
5090
  case 'chat':
5090
- text += `: ${body}`;
5091
+ text += `:${body}`;
5091
5092
  break;
5092
5093
 
5093
5094
  case 'attachment':
5094
- text += `: ${body}`;
5095
+ text += `:${body}`;
5095
5096
  break;
5096
5097
 
5097
5098
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5541",
3
+ "version": "1.1.5543",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",