@nine-lab/nine-mu 0.1.234 → 0.1.236
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/dist/nine-mu.js +20 -10
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +10 -4
- package/src/components/NineChatManager.js +6 -1
package/package.json
CHANGED
|
@@ -119,10 +119,16 @@ export class NineChat extends HTMLElement {
|
|
|
119
119
|
const asis = await this.#manager.getRoutes();
|
|
120
120
|
|
|
121
121
|
if (parsed?.selected_tool === "source-missing") {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
const hasCreated = parsed?.data.some(item => item.action === 'CREATE');
|
|
123
|
+
const hasUpdated = parsed?.data.some(item => item.action === 'UPDATE');
|
|
124
|
+
|
|
125
|
+
if (hasUpdated || hasCreated) {
|
|
126
|
+
// 진짜 메뉴명 변경이나 이동만 요청한 경우
|
|
127
|
+
nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then(res => {
|
|
128
|
+
const tobe = (parsed?.data || []).map(({ isNew, action, ...rest }) => rest);
|
|
129
|
+
this.#showDiff(asis, tobe, "json");
|
|
130
|
+
});
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
133
|
|
|
128
134
|
|
|
@@ -108,7 +108,12 @@ export class NineChatManager {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
async #callTool(toolName, args = {}) {
|
|
111
|
-
|
|
111
|
+
// return this.#mcpClient.callTool({ name: toolName, arguments: args });
|
|
112
|
+
return this.#mcpClient.callTool(
|
|
113
|
+
{ name: toolName, arguments: args },
|
|
114
|
+
undefined, // 필요 시 extra 변수 자리 (기본값 undefined)
|
|
115
|
+
{ timeout: 300000 } // 💡 개별 요청 타임아웃을 5분으로 확장
|
|
116
|
+
);
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
async getRoutes(toolName, args = {}) {
|