@xuda.io/ai_module 1.1.5602 → 1.1.5603

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1387,6 +1387,7 @@ Execute shell commands on the remote machine through SSH, for example:
1387
1387
  ssh -o BatchMode=yes -o StrictHostKeyChecking=no ${get_codex_remote_host(ip)} "<command>"
1388
1388
 
1389
1389
  Do not assume the current local filesystem is the remote machine. Use SSH for inspection, edits, installs, and command execution unless the user explicitly asks for local work.
1390
+ For generated websites or other large file payloads, create the files first on the local Xuda server in a temporary working directory, validate them locally, then copy them to the remote machine with scp and use SSH only for remote placement, permissions, service reloads, and verification. Avoid embedding long HTML, CSS, JavaScript, JSON, or scripts inside nested ssh heredocs because shell quoting can corrupt the generated files.
1390
1391
 
1391
1392
  User request:
1392
1393
  ${prompt}`;
@@ -4388,7 +4389,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
4388
4389
  }
4389
4390
 
4390
4391
  case 'dashboard': {
4391
- ret = conversation_doc.conversation_type === 'ai_chat' ? await ai_chat_conversation(req, job_id, headers) : await dashboard_chat(req, job_id, headers);
4392
+ ret = await dashboard_chat(req, job_id, headers);
4392
4393
  break;
4393
4394
  }
4394
4395
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5602",
3
+ "version": "1.1.5603",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",