@xuda.io/ai_module 1.1.5304 → 1.1.5306
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 +5 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5000,6 +5000,7 @@ setTimeout(async () => {
|
|
|
5000
5000
|
// );
|
|
5001
5001
|
// ret = await is_business_contact(uid, 'bsdgarage@gmail.com', 'Bsdgarage', '', '', account_profile_info);
|
|
5002
5002
|
// ret = await delete_depended_chats(uid);
|
|
5003
|
+
ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'convert_html_to_component', { prompt: '<div>Test</div>' });
|
|
5003
5004
|
// 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 });
|
|
5004
5005
|
// 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' });
|
|
5005
5006
|
// ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'alert_builder', { name: 'hero', prompt: 'build warning alert', save: true, parentId: 'programs', alert_display: 'modal', alert_type: 'warning', alert_title: 'hey' });
|
|
@@ -5324,10 +5325,12 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
|
|
|
5324
5325
|
try {
|
|
5325
5326
|
let ret_exec = await execute_server_script(req, app_id, server, method, params, setup_doc);
|
|
5326
5327
|
console.log(ret_exec);
|
|
5327
|
-
resolve(ret_exec);
|
|
5328
|
+
// resolve(ret_exec);
|
|
5329
|
+
return ret_exec;
|
|
5328
5330
|
} catch (err) {
|
|
5329
5331
|
console.error(err);
|
|
5330
|
-
reject(err.message);
|
|
5332
|
+
// reject(err.message);
|
|
5333
|
+
return ret_exec;
|
|
5331
5334
|
}
|
|
5332
5335
|
},
|
|
5333
5336
|
});
|