natureco-cli 1.0.16 → 1.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "main": "bin/natureco.js",
6
6
  "bin": {
@@ -72,6 +72,8 @@ function startDashboard() {
72
72
  apiKey: config.apiKey,
73
73
  defaultBot: config.defaultBot,
74
74
  defaultBotId: config.defaultBotId,
75
+ skills: config.skills || { enabled: true, list: [] },
76
+ mcpServers: config.mcpServers || {},
75
77
  }));
76
78
  } else {
77
79
  res.writeHead(404);
@@ -602,16 +604,18 @@ function getHTML(config) {
602
604
  document.getElementById('send-btn').disabled = true;
603
605
 
604
606
  try {
605
- const response = await fetch(API_BASE + '/api/v1/chat', {
607
+ const response = await fetch('https://api.natureco.me/api/agent/chat', {
606
608
  method: 'POST',
607
609
  headers: {
608
610
  'Authorization': 'Bearer ' + apiKey,
609
611
  'Content-Type': 'application/json',
612
+ 'X-User-ID': 'dashboard-user',
610
613
  },
611
614
  body: JSON.stringify({
612
- bot_id: currentBotId,
615
+ agent_id: currentBotId,
613
616
  message: message,
614
- session_id: sessionId,
617
+ platform: 'dashboard',
618
+ user_id: 'dashboard-user',
615
619
  }),
616
620
  });
617
621
 
@@ -660,9 +664,16 @@ function getHTML(config) {
660
664
  // Load skills count
661
665
  try {
662
666
  const config = await fetch('/config').then(r => r.json());
663
- // This would need to be implemented properly
664
- document.getElementById('skills-count').textContent = 'Skills: 0';
665
- document.getElementById('mcp-count').textContent = 'MCP: 0';
667
+
668
+ // Skills count
669
+ const skillsCount = config.skills && config.skills.list ? config.skills.list.length : 0;
670
+ document.getElementById('skills-count').textContent = 'Skills: ' + skillsCount;
671
+
672
+ // MCP count
673
+ const mcpCount = config.mcpServers ? Object.keys(config.mcpServers).length : 0;
674
+ document.getElementById('mcp-count').textContent = 'MCP: ' + mcpCount;
675
+
676
+ // Sessions count (placeholder)
666
677
  document.getElementById('sessions-count').textContent = 'Sessions: 0';
667
678
  } catch (err) {
668
679
  console.error('Failed to load stats:', err);