@xuda.io/ai_module 1.1.4738 → 1.1.4740

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 +9 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5546,14 +5546,7 @@ setTimeout(async () => {
5546
5546
  // 'Summary: This Chase email notifies you of an Insufficient Funds Notice posted for account ending in 1060. You can view the notice in Chase Mobile (Profile > Statements and documents) or on chase.com/statements under “Notices and letters.” If you’re not enrolled in Paperless Statements or believe this is an error, contact Chase at chase.com/CustomerService. The message notes that Chase Mobile is available on select devices, that alert delivery isn’t guaranteed, and you should verify status via the website or app. Do not reply with confidential information. For authenticity concerns, contact Customer Service. See the Security Center for privacy tips. JPMorgan Chase Bank, N.A. Member FDIC. © 2026 JPMorgan Chase & Co.',
5547
5547
  // account_profile_info,
5548
5548
  // );
5549
- // ret = await is_business_contact(
5550
- // uid,
5551
- // 'noreply@tm.openai.com',
5552
- // 'OpenAI',
5553
- // 'Please update your Plus payment method',
5554
- // 'Summary: Your ChatGPT Plus payment failed, but your access remains active for now. Please update your payment method to continue enjoying Plus benefits, including extended limits on messaging, file uploads, and voice mode; more image and video generation; and extended access to deep research and reasoning models. If you have questions, contact support@openai.com. Best regards, The ChatGPT Team.',
5555
- // account_profile_info,
5556
- // );
5549
+ ret = await is_business_contact(uid, 'bsdgarage@gmail.com', 'Bsdgarage', '', '', account_profile_info);
5557
5550
  // ret = await delete_depended_chats(uid);
5558
5551
  // ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'table_builder', { name: 'test2', prompt: 'build items table', save: true });
5559
5552
  // ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'folder_builder', { name: 'test', prompt: 'build boaz folder', save: true, parentId: 'programs' });
@@ -5594,7 +5587,7 @@ setTimeout(async () => {
5594
5587
  // account_profile_info,
5595
5588
  // );
5596
5589
 
5597
- ret = await get_business_info(uid, '', 'bsdgarage@gmail.com', account_profile_info);
5590
+ // ret = await get_business_info(uid, '', 'bsdgarage@gmail.com', account_profile_info);
5598
5591
  // ret = await get_business_info(uid, '', 'eden.ioshka@gmail.com', account_profile_info);
5599
5592
  // ret = await get_person_info(uid, 'lidan ben shlush', 'dan@locksmith-star.com', account_profile_info);
5600
5593
  // debugger;
@@ -6847,9 +6840,15 @@ export const is_spam_email = async function (uid, email, subject, account_profil
6847
6840
  };
6848
6841
 
6849
6842
  export const is_business_contact = async function (uid, email, name, subject, body, account_profile_info) {
6843
+ let prompt = `detect if the email "${email}", subject "${subject}", name "${name}", or body "${body}" is business or personal. Return true if it is a business , false otherwise.`;
6844
+
6845
+ if (!subject) {
6846
+ prompt = `detect if the email "${email}" and name "${name}" is business or personal. Return true if it is a business , false otherwise.`;
6847
+ }
6848
+
6850
6849
  const is_business_ret = await submit_chat_gpt_prompt({
6851
6850
  uid,
6852
- prompt: `detect if the email "${email}", subject "${subject}", name "${name}", or body "${body}" is business or personal. Return true if it is a business , false otherwise.`,
6851
+ prompt,
6853
6852
  // prompt: `Determine if the contact with email "${email}", subject "${subject}", name "${name}", or body "${body}" belongs to a business account. Return true if it is a business contact, false otherwise.`,
6854
6853
  model: 'gpt-5-nano',
6855
6854
  response_format: z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4738",
3
+ "version": "1.1.4740",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",