@nine-lab/nine-mu 0.1.265 → 0.1.267

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.265",
3
+ "version": "0.1.267",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -40,6 +40,7 @@ export class NineChat extends HTMLElement {
40
40
  const res = await api.post("/nine-mu/config/get", {});
41
41
 
42
42
  this.#config = res;
43
+ this.#config.packageName = this.#packageName;
43
44
  this.#routesPath = res?.userDir + "/" + this.#packageName + "/public/prompts/data/routes.json";
44
45
 
45
46
 
@@ -154,6 +154,16 @@ export class NineChatManager {
154
154
 
155
155
  handleChatSubmit = async userInput => {
156
156
 
157
+ trace.log(window.location.pathname, this.#owner.config.packageName);
158
+
159
+ const src = await api.post("/nine-mu/source/read", {
160
+ menuUrl: window.location.pathname,
161
+ feProjectName: this.#owner.config.packageName
162
+ });
163
+ console.log(src);
164
+
165
+ return;
166
+
157
167
  /**
158
168
  if (!this.#mcpClient) {
159
169
  this.#updateStatus("⏳ 연결 대기 중...");
@@ -171,6 +181,8 @@ export class NineChatManager {
171
181
  const routes = await this.getRoutes();
172
182
  const unmappedRoutes = await this.getUnmappedRoutes(routes);
173
183
 
184
+ //trace.log()
185
+
174
186
  // 2. AI 호출 시 history를 함께 실어서 보냅니다.
175
187
  return await this.#callTool("system-brain", {
176
188
  base_package: this.#owner.config.basePackage, // nine.edu