@xuda.io/ai_module 1.1.4963 → 1.1.4965

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 +6 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -61,8 +61,6 @@ const { init, check, check_structure, get_zod_schema, get_fields_z_schema } = aw
61
61
 
62
62
  const { get_xuda_couch } = _common;
63
63
 
64
- const db_module = await import(`${module_path}/db_module/index.mjs`);
65
-
66
64
  const db_ms = await import(`${module_path}/db_module/index_ms.mjs`);
67
65
  const account_ms = await import(`${module_path}/account_module/index_ms.mjs`);
68
66
  const drive_ms = await import(`${module_path}/drive_module/index_ms.mjs`);
@@ -4758,6 +4756,8 @@ setTimeout(async () => {
4758
4756
  ///////////////////////
4759
4757
 
4760
4758
  const run_plugin = async function (app_id, uid, plugin_name, method, prop_data, dev = true, req = {}, testing = false) {
4759
+ const db_module = await import(`${module_path}/db_module/index.mjs`);
4760
+
4761
4761
  const get_path = function (resource) {
4762
4762
  if (dev) {
4763
4763
  return `../../plugins/${plugin_name}/${resource}`;
@@ -4805,7 +4805,7 @@ const run_plugin = async function (app_id, uid, plugin_name, method, prop_data,
4805
4805
 
4806
4806
  console.log('Testing plugin with:', { app_id, uid });
4807
4807
 
4808
- const couch_ret = await db_ms.get_app_couch_nano(app_id);
4808
+ const couch_ret = await db_module.get_app_couch_nano(app_id);
4809
4809
 
4810
4810
  const couch = couch_ret.data.couch;
4811
4811
  try {
@@ -4888,6 +4888,8 @@ const run_plugin = async function (app_id, uid, plugin_name, method, prop_data,
4888
4888
  };
4889
4889
 
4890
4890
  const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_data, dev = true, req = {}) {
4891
+ const db_module = await import(`${module_path}/db_module/index.mjs`);
4892
+
4891
4893
  init(undefined, undefined, _, true, undefined, undefined, undefined, undefined, undefined, true, z);
4892
4894
 
4893
4895
  const get_path = function (resource) {
@@ -4931,7 +4933,7 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
4931
4933
  return data_obj;
4932
4934
  };
4933
4935
 
4934
- const couch_ret = await db_ms.get_app_couch_nano(app_id);
4936
+ const couch_ret = await db_module.get_app_couch_nano(app_id);
4935
4937
 
4936
4938
  const couch = couch_ret.data.couch;
4937
4939
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4963",
3
+ "version": "1.1.4965",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",