@nine-lab/nine-mu 0.1.176 → 0.1.178

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": "@nine-lab/nine-mu",
3
- "version": "0.1.176",
3
+ "version": "0.1.178",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -129,11 +129,9 @@ export class NineChatManager {
129
129
 
130
130
  async #getRoutes(toolName, args = {}) {
131
131
 
132
- console.log(this.#routeUrl);
133
-
134
132
  const res = await fetch(this.#routeUrl);
135
133
  if (!res.ok) {
136
- throw new Error(`HTTP error! status: ${r.status}`);
134
+ throw new Error(`HTTP error! status: ${res.status}`);
137
135
  }
138
136
 
139
137
  return await res.json();
@@ -143,7 +141,9 @@ export class NineChatManager {
143
141
 
144
142
  handleChatSubmit = async el => {
145
143
 
146
- const routes = this.#getRoutes();
144
+ const routes = await this.#getRoutes();
145
+
146
+ trace.log(routes);
147
147
 
148
148
  return await this.#callTool("system-brain", {
149
149
  user_input : el.value.trim(),