@xuda.io/ai_module 1.1.5191 → 1.1.5192

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 +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4655,7 +4655,9 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4655
4655
  });
4656
4656
  if (eligible_agent) {
4657
4657
  // allow read only agents if not ai_agent scope
4658
- init_agent_hooks(agent);
4658
+ if (!prompt_suggestion_activated) {
4659
+ init_agent_hooks(agent);
4660
+ }
4659
4661
  list.push(agent);
4660
4662
  }
4661
4663
  } catch (err) {
@@ -4711,7 +4713,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4711
4713
  await render_suggestions();
4712
4714
  await _utils.delay(10000);
4713
4715
  const job_info = await jobs_ms.get_job_info({ job_id });
4714
- debugger;
4716
+
4715
4717
  if (job_info.code < 0 || job_info.data.stat === 4) {
4716
4718
  return { code: 5, data: 'aborted' };
4717
4719
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5191",
3
+ "version": "1.1.5192",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",