@xuda.io/ai_module 1.1.4741 → 1.1.4743
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.
- package/index.mjs +17 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5546,7 +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(uid, 'bsdgarage@gmail.com', 'Bsdgarage', '', '', account_profile_info);
|
|
5549
|
+
// ret = await is_business_contact(uid, 'bsdgarage@gmail.com', 'Bsdgarage', '', '', account_profile_info);
|
|
5550
5550
|
// ret = await delete_depended_chats(uid);
|
|
5551
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 });
|
|
5552
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' });
|
|
@@ -6840,11 +6840,22 @@ export const is_spam_email = async function (uid, email, subject, account_profil
|
|
|
6840
6840
|
};
|
|
6841
6841
|
|
|
6842
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
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
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
|
+
Determine whether the following email and name represent a BUSINESS
|
|
6846
|
+
(including small/local businesses and sole proprietors, even if they use Gmail).
|
|
6847
|
+
|
|
6848
|
+
Return true if the identifier appears brand-like, service-oriented, or commercial.
|
|
6849
|
+
Return false only if it clearly represents an individual person.
|
|
6850
|
+
|
|
6851
|
+
|
|
6852
|
+
`;
|
|
6853
|
+
// debugger;
|
|
6854
|
+
// if (!subject) {
|
|
6855
|
+
// prompt = `detect if the email "${email}" and name "${name}" is business or personal. Return true if it is a business , false otherwise.
|
|
6856
|
+
|
|
6857
|
+
// `;
|
|
6858
|
+
// }
|
|
6848
6859
|
|
|
6849
6860
|
const is_business_ret = await submit_chat_gpt_prompt({
|
|
6850
6861
|
uid,
|