@xuda.io/ai_module 1.1.4720 → 1.1.4722

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 +10 -10
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5535,14 +5535,14 @@ setTimeout(async () => {
5535
5535
  // ret = await is_spam_email(uid, 'dsgr8-2994400420@gigs.craigslist.org', 'To: You, From: Us - 70% Off Stickers & Labels Today Only');
5536
5536
  // ret = await is_spam_email(uid, 'noreply@tm.openai.com', 'Please update your Plus payment method', account_profile_info);
5537
5537
  // ret = await is_business_contact_has_person(uid, 'Eden Avrahami', 'eden.ioshka@gmail.com', 'Re: Account Accesses - Donwell Garage Doors', 'Hey Yosi,We didn’t get an update, please wait for my updates- you will be the first to know Thanks,Eden', account_profile_info);
5538
- ret = await is_business_contact_has_person(
5539
- uid,
5540
- 'Chase',
5541
- 'no.reply.alerts@chase.com',
5542
- 'We posted a new notice for your account',
5543
- '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.',
5544
- account_profile_info,
5545
- );
5538
+ // ret = await is_business_contact_has_person(
5539
+ // uid,
5540
+ // 'Chase',
5541
+ // 'no.reply.alerts@chase.com',
5542
+ // 'We posted a new notice for your account',
5543
+ // '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.',
5544
+ // account_profile_info,
5545
+ // );
5546
5546
  // ret = await is_business_contact(
5547
5547
  // uid,
5548
5548
  // 'noreply@tm.openai.com',
@@ -6869,7 +6869,7 @@ export const is_business_contact_has_person = async function (uid, email, name,
6869
6869
 
6870
6870
  model: 'gpt-5-nano',
6871
6871
  response_format: z.object({
6872
- has_person: z.boolean().describe('true if the email has person, false otherwise'),
6872
+ business_has_person: z.boolean().describe('true if the email has person, false otherwise'),
6873
6873
  }),
6874
6874
  metadata: { func: 'is_business_contact_has_person' },
6875
6875
  account_profile_info,
@@ -6877,7 +6877,7 @@ export const is_business_contact_has_person = async function (uid, email, name,
6877
6877
  try {
6878
6878
  if (has_person_ret.code > -1) {
6879
6879
  const data = JSON.parse(has_person_ret.data);
6880
- return data.has_person;
6880
+ return data.business_has_person;
6881
6881
  }
6882
6882
  } catch (error) {}
6883
6883
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4720",
3
+ "version": "1.1.4722",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",