ide-assi 0.90.0 → 0.92.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 +12 -12
- package/dist/bundle.esm.js +12 -12
- package/dist/components/ideAi.js +11 -3
- package/dist/components/ideAssi.js +1 -9
- package/package.json +1 -1
- package/src/components/ideAi.js +11 -3
- package/src/components/ideAssi.js +1 -9
package/dist/bundle.cjs.js
CHANGED
|
@@ -193473,8 +193473,9 @@ class IdeAi
|
|
|
193473
193473
|
this.#createModel();
|
|
193474
193474
|
|
|
193475
193475
|
const systemMessage = "You are a helpful assistant.";
|
|
193476
|
+
console.log("====================");
|
|
193476
193477
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193477
|
-
|
|
193478
|
+
console.log(prompt);
|
|
193478
193479
|
const response = await this.#model.invoke([
|
|
193479
193480
|
new SystemMessage(systemMessage),
|
|
193480
193481
|
new HumanMessage(prompt),
|
|
@@ -193483,13 +193484,20 @@ class IdeAi
|
|
|
193483
193484
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193484
193485
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193485
193486
|
if (o.result == "0") {
|
|
193486
|
-
return o.reason;
|
|
193487
|
+
//return o.reason;
|
|
193488
|
+
throw new Error(o.reason);
|
|
193487
193489
|
}
|
|
193488
193490
|
}
|
|
193489
193491
|
else {
|
|
193490
|
-
|
|
193492
|
+
throw new Error(o);
|
|
193491
193493
|
}
|
|
193492
193494
|
|
|
193495
|
+
const menus = this.#getMenuInfo();
|
|
193496
|
+
const tables = await this.#getTableList();
|
|
193497
|
+
|
|
193498
|
+
console.log(menus);
|
|
193499
|
+
console.log(tables);
|
|
193500
|
+
|
|
193493
193501
|
return "OK";
|
|
193494
193502
|
}
|
|
193495
193503
|
}
|
|
@@ -193586,16 +193594,8 @@ class IdeAssi extends HTMLElement
|
|
|
193586
193594
|
elAiChat.add("ing", "...");
|
|
193587
193595
|
|
|
193588
193596
|
try {
|
|
193589
|
-
//this.#createModel();
|
|
193590
|
-
|
|
193591
193597
|
const r = await this.#ai.generateSourceClient(userPrompt);
|
|
193592
|
-
elAiChat.add("ai", r);
|
|
193593
|
-
|
|
193594
|
-
/**
|
|
193595
|
-
const r = await this.#ai.generateSource(userPrompt);
|
|
193596
|
-
console.log(r);
|
|
193597
|
-
elAiChat.add("ai", r);
|
|
193598
|
-
*/
|
|
193598
|
+
//elAiChat.add("ai", r);
|
|
193599
193599
|
} catch (error) {
|
|
193600
193600
|
console.error(error);
|
|
193601
193601
|
elAiChat.add("ai", error);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193469,8 +193469,9 @@ class IdeAi
|
|
|
193469
193469
|
this.#createModel();
|
|
193470
193470
|
|
|
193471
193471
|
const systemMessage = "You are a helpful assistant.";
|
|
193472
|
+
console.log("====================");
|
|
193472
193473
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193473
|
-
|
|
193474
|
+
console.log(prompt);
|
|
193474
193475
|
const response = await this.#model.invoke([
|
|
193475
193476
|
new SystemMessage(systemMessage),
|
|
193476
193477
|
new HumanMessage(prompt),
|
|
@@ -193479,13 +193480,20 @@ class IdeAi
|
|
|
193479
193480
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193480
193481
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193481
193482
|
if (o.result == "0") {
|
|
193482
|
-
return o.reason;
|
|
193483
|
+
//return o.reason;
|
|
193484
|
+
throw new Error(o.reason);
|
|
193483
193485
|
}
|
|
193484
193486
|
}
|
|
193485
193487
|
else {
|
|
193486
|
-
|
|
193488
|
+
throw new Error(o);
|
|
193487
193489
|
}
|
|
193488
193490
|
|
|
193491
|
+
const menus = this.#getMenuInfo();
|
|
193492
|
+
const tables = await this.#getTableList();
|
|
193493
|
+
|
|
193494
|
+
console.log(menus);
|
|
193495
|
+
console.log(tables);
|
|
193496
|
+
|
|
193489
193497
|
return "OK";
|
|
193490
193498
|
}
|
|
193491
193499
|
}
|
|
@@ -193582,16 +193590,8 @@ class IdeAssi extends HTMLElement
|
|
|
193582
193590
|
elAiChat.add("ing", "...");
|
|
193583
193591
|
|
|
193584
193592
|
try {
|
|
193585
|
-
//this.#createModel();
|
|
193586
|
-
|
|
193587
193593
|
const r = await this.#ai.generateSourceClient(userPrompt);
|
|
193588
|
-
elAiChat.add("ai", r);
|
|
193589
|
-
|
|
193590
|
-
/**
|
|
193591
|
-
const r = await this.#ai.generateSource(userPrompt);
|
|
193592
|
-
console.log(r);
|
|
193593
|
-
elAiChat.add("ai", r);
|
|
193594
|
-
*/
|
|
193594
|
+
//elAiChat.add("ai", r);
|
|
193595
193595
|
} catch (error) {
|
|
193596
193596
|
console.error(error);
|
|
193597
193597
|
elAiChat.add("ai", error);
|
package/dist/components/ideAi.js
CHANGED
|
@@ -178,8 +178,9 @@ export class IdeAi
|
|
|
178
178
|
this.#createModel();
|
|
179
179
|
|
|
180
180
|
const systemMessage = "You are a helpful assistant.";
|
|
181
|
+
console.log("====================");
|
|
181
182
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
182
|
-
|
|
183
|
+
console.log(prompt);
|
|
183
184
|
const response = await this.#model.invoke([
|
|
184
185
|
new SystemMessage(systemMessage),
|
|
185
186
|
new HumanMessage(prompt),
|
|
@@ -188,13 +189,20 @@ export class IdeAi
|
|
|
188
189
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
189
190
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
190
191
|
if (o.result == "0") {
|
|
191
|
-
return o.reason;
|
|
192
|
+
//return o.reason;
|
|
193
|
+
throw new Error(o.reason);
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
196
|
else {
|
|
195
|
-
|
|
197
|
+
throw new Error(o);
|
|
196
198
|
}
|
|
197
199
|
|
|
200
|
+
const menus = this.#getMenuInfo();
|
|
201
|
+
const tables = await this.#getTableList();
|
|
202
|
+
|
|
203
|
+
console.log(menus);
|
|
204
|
+
console.log(tables);
|
|
205
|
+
|
|
198
206
|
return "OK";
|
|
199
207
|
}
|
|
200
208
|
}
|
|
@@ -93,16 +93,8 @@ export class IdeAssi extends HTMLElement
|
|
|
93
93
|
elAiChat.add("ing", "...");
|
|
94
94
|
|
|
95
95
|
try {
|
|
96
|
-
//this.#createModel();
|
|
97
|
-
|
|
98
96
|
const r = await this.#ai.generateSourceClient(userPrompt);
|
|
99
|
-
elAiChat.add("ai", r);
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
const r = await this.#ai.generateSource(userPrompt);
|
|
103
|
-
console.log(r);
|
|
104
|
-
elAiChat.add("ai", r);
|
|
105
|
-
*/
|
|
97
|
+
//elAiChat.add("ai", r);
|
|
106
98
|
} catch (error) {
|
|
107
99
|
console.error(error);
|
|
108
100
|
elAiChat.add("ai", error);
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -178,8 +178,9 @@ export class IdeAi
|
|
|
178
178
|
this.#createModel();
|
|
179
179
|
|
|
180
180
|
const systemMessage = "You are a helpful assistant.";
|
|
181
|
+
console.log("====================");
|
|
181
182
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
182
|
-
|
|
183
|
+
console.log(prompt);
|
|
183
184
|
const response = await this.#model.invoke([
|
|
184
185
|
new SystemMessage(systemMessage),
|
|
185
186
|
new HumanMessage(prompt),
|
|
@@ -188,13 +189,20 @@ export class IdeAi
|
|
|
188
189
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
189
190
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
190
191
|
if (o.result == "0") {
|
|
191
|
-
return o.reason;
|
|
192
|
+
//return o.reason;
|
|
193
|
+
throw new Error(o.reason);
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
196
|
else {
|
|
195
|
-
|
|
197
|
+
throw new Error(o);
|
|
196
198
|
}
|
|
197
199
|
|
|
200
|
+
const menus = this.#getMenuInfo();
|
|
201
|
+
const tables = await this.#getTableList();
|
|
202
|
+
|
|
203
|
+
console.log(menus);
|
|
204
|
+
console.log(tables);
|
|
205
|
+
|
|
198
206
|
return "OK";
|
|
199
207
|
}
|
|
200
208
|
}
|
|
@@ -93,16 +93,8 @@ export class IdeAssi extends HTMLElement
|
|
|
93
93
|
elAiChat.add("ing", "...");
|
|
94
94
|
|
|
95
95
|
try {
|
|
96
|
-
//this.#createModel();
|
|
97
|
-
|
|
98
96
|
const r = await this.#ai.generateSourceClient(userPrompt);
|
|
99
|
-
elAiChat.add("ai", r);
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
const r = await this.#ai.generateSource(userPrompt);
|
|
103
|
-
console.log(r);
|
|
104
|
-
elAiChat.add("ai", r);
|
|
105
|
-
*/
|
|
97
|
+
//elAiChat.add("ai", r);
|
|
106
98
|
} catch (error) {
|
|
107
99
|
console.error(error);
|
|
108
100
|
elAiChat.add("ai", error);
|