lua-cli 2.0.0 → 2.0.2

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.
@@ -483,8 +483,8 @@ function createChatServer(apiKey, agentId, skillId, sandboxId, port = 3000) {
483
483
  return;
484
484
  }
485
485
  if (req.method === 'GET' && req.url === '/') {
486
- // Read the React app HTML template
487
- const htmlTemplate = fs.readFileSync(path.join(__dirname, '..', '..', 'src', 'web', 'index.html'), 'utf8');
486
+ // Read the React app HTML template from dist directory
487
+ const htmlTemplate = fs.readFileSync(path.join(__dirname, '..', 'web', 'index.html'), 'utf8');
488
488
  // Replace placeholders with actual values
489
489
  const html = htmlTemplate
490
490
  .replace('{{API_KEY}}', apiKey)
@@ -498,7 +498,7 @@ function createChatServer(apiKey, agentId, skillId, sandboxId, port = 3000) {
498
498
  // Serve the React app bundle
499
499
  if (req.method === 'GET' && req.url === '/app.js') {
500
500
  try {
501
- const appJs = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'web', 'app.js'), 'utf8');
501
+ const appJs = fs.readFileSync(path.join(__dirname, '..', 'web', 'app.js'), 'utf8');
502
502
  res.writeHead(200, { 'Content-Type': 'application/javascript' });
503
503
  res.end(appJs);
504
504
  }
@@ -511,7 +511,7 @@ function createChatServer(apiKey, agentId, skillId, sandboxId, port = 3000) {
511
511
  // Serve the CSS files
512
512
  if (req.method === 'GET' && req.url === '/app.css') {
513
513
  try {
514
- const appCss = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'web', 'app.css'), 'utf8');
514
+ const appCss = fs.readFileSync(path.join(__dirname, '..', 'web', 'app.css'), 'utf8');
515
515
  res.writeHead(200, { 'Content-Type': 'text/css' });
516
516
  res.end(appCss);
517
517
  }
@@ -523,7 +523,7 @@ function createChatServer(apiKey, agentId, skillId, sandboxId, port = 3000) {
523
523
  }
524
524
  if (req.method === 'GET' && req.url === '/tools-page.css') {
525
525
  try {
526
- const toolsPageCss = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'web', 'tools-page.css'), 'utf8');
526
+ const toolsPageCss = fs.readFileSync(path.join(__dirname, '..', 'web', 'tools-page.css'), 'utf8');
527
527
  res.writeHead(200, { 'Content-Type': 'text/css' });
528
528
  res.end(toolsPageCss);
529
529
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lua-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Command-line interface for Lua AI platform - develop, test, and deploy LuaSkills with custom tools",
5
5
  "readmeFilename": "README.md",
6
6
  "main": "dist/index.js",
@@ -60,11 +60,13 @@
60
60
  "commander": "^14.0.1",
61
61
  "esbuild": "^0.25.10",
62
62
  "inquirer": "^12.9.6",
63
+ "js-yaml": "^4.1.0",
63
64
  "keytar": "^7.9.0",
64
65
  "node-fetch": "^3.3.2",
65
66
  "open": "^10.1.0",
66
67
  "react": "^18.2.0",
67
68
  "react-dom": "^18.2.0",
69
+ "react-markdown": "^9.0.1",
68
70
  "socket.io-client": "^4.7.2",
69
71
  "ts-morph": "^27.0.0",
70
72
  "ws": "^8.18.3",
@@ -19,7 +19,7 @@
19
19
  "axios": "^1.6.0",
20
20
  "inquirer": "^12.9.6",
21
21
  "js-yaml": "^4.1.0",
22
- "lua-cli": "2.0.0",
22
+ "lua-cli": "2.0.2",
23
23
  "openai": "^5.23.0",
24
24
  "zod": "^4.1.9"
25
25
  },