ide-assi 0.98.0 → 0.100.0
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/bundle.cjs.js
CHANGED
|
@@ -193480,7 +193480,7 @@ class IdeAi
|
|
|
193480
193480
|
|
|
193481
193481
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193482
193482
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193483
|
-
if (o.result
|
|
193483
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193484
193484
|
}
|
|
193485
193485
|
else {
|
|
193486
193486
|
throw new Error(o);
|
|
@@ -193507,7 +193507,10 @@ class IdeAi
|
|
|
193507
193507
|
|
|
193508
193508
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193509
193509
|
|
|
193510
|
-
if (Object.prototype.toString.call(o)
|
|
193510
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193511
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193512
|
+
}
|
|
193513
|
+
else {
|
|
193511
193514
|
throw new Error(o);
|
|
193512
193515
|
}
|
|
193513
193516
|
|
|
@@ -193519,12 +193522,10 @@ class IdeAi
|
|
|
193519
193522
|
this.#createModel();
|
|
193520
193523
|
|
|
193521
193524
|
await this.#what(userPrompt);
|
|
193525
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193522
193526
|
|
|
193523
|
-
|
|
193524
|
-
|
|
193525
|
-
const tableDefinitions = await this.#getTableList();
|
|
193526
|
-
|
|
193527
|
-
const where = await this.#where(userPrompt, menuList, tableDefinitions);
|
|
193527
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193528
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193528
193529
|
|
|
193529
193530
|
console.log(where);
|
|
193530
193531
|
|
|
@@ -193597,7 +193598,11 @@ class IdeAssi extends HTMLElement
|
|
|
193597
193598
|
};
|
|
193598
193599
|
|
|
193599
193600
|
|
|
193600
|
-
|
|
193601
|
+
addMessage = (message) => {
|
|
193602
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
193603
|
+
elAiChat.add("ai", message);
|
|
193604
|
+
elAiChat.add("ing", "...");
|
|
193605
|
+
}
|
|
193601
193606
|
|
|
193602
193607
|
#keydownHandler = async (e) => {
|
|
193603
193608
|
if (e.key !== "Enter") return;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193476,7 +193476,7 @@ class IdeAi
|
|
|
193476
193476
|
|
|
193477
193477
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193478
193478
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193479
|
-
if (o.result
|
|
193479
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193480
193480
|
}
|
|
193481
193481
|
else {
|
|
193482
193482
|
throw new Error(o);
|
|
@@ -193503,7 +193503,10 @@ class IdeAi
|
|
|
193503
193503
|
|
|
193504
193504
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193505
193505
|
|
|
193506
|
-
if (Object.prototype.toString.call(o)
|
|
193506
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193507
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193508
|
+
}
|
|
193509
|
+
else {
|
|
193507
193510
|
throw new Error(o);
|
|
193508
193511
|
}
|
|
193509
193512
|
|
|
@@ -193515,12 +193518,10 @@ class IdeAi
|
|
|
193515
193518
|
this.#createModel();
|
|
193516
193519
|
|
|
193517
193520
|
await this.#what(userPrompt);
|
|
193521
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193518
193522
|
|
|
193519
|
-
|
|
193520
|
-
|
|
193521
|
-
const tableDefinitions = await this.#getTableList();
|
|
193522
|
-
|
|
193523
|
-
const where = await this.#where(userPrompt, menuList, tableDefinitions);
|
|
193523
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193524
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193524
193525
|
|
|
193525
193526
|
console.log(where);
|
|
193526
193527
|
|
|
@@ -193593,7 +193594,11 @@ class IdeAssi extends HTMLElement
|
|
|
193593
193594
|
};
|
|
193594
193595
|
|
|
193595
193596
|
|
|
193596
|
-
|
|
193597
|
+
addMessage = (message) => {
|
|
193598
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
193599
|
+
elAiChat.add("ai", message);
|
|
193600
|
+
elAiChat.add("ing", "...");
|
|
193601
|
+
}
|
|
193597
193602
|
|
|
193598
193603
|
#keydownHandler = async (e) => {
|
|
193599
193604
|
if (e.key !== "Enter") return;
|
package/dist/components/ideAi.js
CHANGED
|
@@ -185,7 +185,7 @@ export class IdeAi
|
|
|
185
185
|
|
|
186
186
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
187
187
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
188
|
-
if (o.result
|
|
188
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
191
|
throw new Error(o);
|
|
@@ -212,7 +212,10 @@ export class IdeAi
|
|
|
212
212
|
|
|
213
213
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
214
214
|
|
|
215
|
-
if (Object.prototype.toString.call(o)
|
|
215
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
216
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
216
219
|
throw new Error(o);
|
|
217
220
|
}
|
|
218
221
|
|
|
@@ -223,13 +226,11 @@ export class IdeAi
|
|
|
223
226
|
|
|
224
227
|
this.#createModel();
|
|
225
228
|
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
const menuList = this.#getMenuInfo();
|
|
230
|
-
const tableDefinitions = await this.#getTableList();
|
|
229
|
+
const what = await this.#what(userPrompt);
|
|
230
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
231
231
|
|
|
232
|
-
const where = await this.#where(userPrompt,
|
|
232
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
233
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
233
234
|
|
|
234
235
|
console.log(where);
|
|
235
236
|
|
|
@@ -66,7 +66,11 @@ export class IdeAssi extends HTMLElement
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
addMessage = (message) => {
|
|
70
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
71
|
+
elAiChat.add("ai", message);
|
|
72
|
+
elAiChat.add("ing", "...");
|
|
73
|
+
}
|
|
70
74
|
|
|
71
75
|
#keydownHandler = async (e) => {
|
|
72
76
|
if (e.key !== "Enter") return;
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -185,7 +185,7 @@ export class IdeAi
|
|
|
185
185
|
|
|
186
186
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
187
187
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
188
|
-
if (o.result
|
|
188
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
191
|
throw new Error(o);
|
|
@@ -212,7 +212,10 @@ export class IdeAi
|
|
|
212
212
|
|
|
213
213
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
214
214
|
|
|
215
|
-
if (Object.prototype.toString.call(o)
|
|
215
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
216
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
216
219
|
throw new Error(o);
|
|
217
220
|
}
|
|
218
221
|
|
|
@@ -223,13 +226,11 @@ export class IdeAi
|
|
|
223
226
|
|
|
224
227
|
this.#createModel();
|
|
225
228
|
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
const menuList = this.#getMenuInfo();
|
|
230
|
-
const tableDefinitions = await this.#getTableList();
|
|
229
|
+
const what = await this.#what(userPrompt);
|
|
230
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
231
231
|
|
|
232
|
-
const where = await this.#where(userPrompt,
|
|
232
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
233
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
233
234
|
|
|
234
235
|
console.log(where);
|
|
235
236
|
|
|
@@ -66,7 +66,11 @@ export class IdeAssi extends HTMLElement
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
addMessage = (message) => {
|
|
70
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
71
|
+
elAiChat.add("ai", message);
|
|
72
|
+
elAiChat.add("ing", "...");
|
|
73
|
+
}
|
|
70
74
|
|
|
71
75
|
#keydownHandler = async (e) => {
|
|
72
76
|
if (e.key !== "Enter") return;
|