ide-assi 0.274.0 → 0.275.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 +30 -7
- package/dist/bundle.esm.js +30 -7
- package/dist/components/ideAi.js +30 -7
- package/package.json +1 -1
- package/src/components/ideAi.js +30 -7
package/dist/bundle.cjs.js
CHANGED
|
@@ -193639,7 +193639,7 @@ class IdeAi
|
|
|
193639
193639
|
|
|
193640
193640
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
193641
193641
|
|
|
193642
|
-
const o = await this.#invoke('/prompts/meta
|
|
193642
|
+
const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
|
|
193643
193643
|
"userPrompt": userPrompt,
|
|
193644
193644
|
"menuList": menuList,
|
|
193645
193645
|
"tableDefinitions": tableDefinitions,
|
|
@@ -193658,6 +193658,27 @@ class IdeAi
|
|
|
193658
193658
|
return o;
|
|
193659
193659
|
};
|
|
193660
193660
|
|
|
193661
|
+
#where2 = async (userPrompt, menuNm, tableDefinitions) => {
|
|
193662
|
+
|
|
193663
|
+
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
193664
|
+
"userPrompt": userPrompt,
|
|
193665
|
+
"menuNm": menuNm,
|
|
193666
|
+
"tableDefinitions": tableDefinitions,
|
|
193667
|
+
});
|
|
193668
|
+
|
|
193669
|
+
console.log(o);
|
|
193670
|
+
|
|
193671
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193672
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193673
|
+
}
|
|
193674
|
+
else {
|
|
193675
|
+
throw new Error(o);
|
|
193676
|
+
}
|
|
193677
|
+
|
|
193678
|
+
|
|
193679
|
+
return o;
|
|
193680
|
+
};
|
|
193681
|
+
|
|
193661
193682
|
#generateRealFile = async (srcPath) => {
|
|
193662
193683
|
|
|
193663
193684
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
@@ -193780,7 +193801,7 @@ class IdeAi
|
|
|
193780
193801
|
if (!el) throw new Error("관련 메뉴를 찾을 수 없습니다.");
|
|
193781
193802
|
|
|
193782
193803
|
const href = el.getAttribute("href");
|
|
193783
|
-
el.getAttribute("title");
|
|
193804
|
+
const title = el.getAttribute("title");
|
|
193784
193805
|
|
|
193785
193806
|
const srcPath = this.#getSourcePath(href);
|
|
193786
193807
|
console.log(srcPath);
|
|
@@ -193806,14 +193827,16 @@ class IdeAi
|
|
|
193806
193827
|
const response = await fetch(srcPath.javascript);
|
|
193807
193828
|
src.javascript = await response.text();*/
|
|
193808
193829
|
|
|
193809
|
-
|
|
193810
193830
|
//console.log(src);
|
|
193811
|
-
|
|
193812
193831
|
//const template = await fetch(path).then(res => res.text());
|
|
193832
|
+
/*
|
|
193833
|
+
arr.push({
|
|
193834
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
193835
|
+
url: elem.getAttribute("href"),
|
|
193836
|
+
title: elem.getAttribute("title"),
|
|
193837
|
+
})*/
|
|
193813
193838
|
|
|
193814
|
-
|
|
193815
|
-
|
|
193816
|
-
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193839
|
+
const where = await this.#where2(userPrompt, title, await this.#getTableList());
|
|
193817
193840
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193818
193841
|
|
|
193819
193842
|
console.log(where);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193635,7 +193635,7 @@ class IdeAi
|
|
|
193635
193635
|
|
|
193636
193636
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
193637
193637
|
|
|
193638
|
-
const o = await this.#invoke('/prompts/meta
|
|
193638
|
+
const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
|
|
193639
193639
|
"userPrompt": userPrompt,
|
|
193640
193640
|
"menuList": menuList,
|
|
193641
193641
|
"tableDefinitions": tableDefinitions,
|
|
@@ -193654,6 +193654,27 @@ class IdeAi
|
|
|
193654
193654
|
return o;
|
|
193655
193655
|
};
|
|
193656
193656
|
|
|
193657
|
+
#where2 = async (userPrompt, menuNm, tableDefinitions) => {
|
|
193658
|
+
|
|
193659
|
+
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
193660
|
+
"userPrompt": userPrompt,
|
|
193661
|
+
"menuNm": menuNm,
|
|
193662
|
+
"tableDefinitions": tableDefinitions,
|
|
193663
|
+
});
|
|
193664
|
+
|
|
193665
|
+
console.log(o);
|
|
193666
|
+
|
|
193667
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193668
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193669
|
+
}
|
|
193670
|
+
else {
|
|
193671
|
+
throw new Error(o);
|
|
193672
|
+
}
|
|
193673
|
+
|
|
193674
|
+
|
|
193675
|
+
return o;
|
|
193676
|
+
};
|
|
193677
|
+
|
|
193657
193678
|
#generateRealFile = async (srcPath) => {
|
|
193658
193679
|
|
|
193659
193680
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
@@ -193776,7 +193797,7 @@ class IdeAi
|
|
|
193776
193797
|
if (!el) throw new Error("관련 메뉴를 찾을 수 없습니다.");
|
|
193777
193798
|
|
|
193778
193799
|
const href = el.getAttribute("href");
|
|
193779
|
-
el.getAttribute("title");
|
|
193800
|
+
const title = el.getAttribute("title");
|
|
193780
193801
|
|
|
193781
193802
|
const srcPath = this.#getSourcePath(href);
|
|
193782
193803
|
console.log(srcPath);
|
|
@@ -193802,14 +193823,16 @@ class IdeAi
|
|
|
193802
193823
|
const response = await fetch(srcPath.javascript);
|
|
193803
193824
|
src.javascript = await response.text();*/
|
|
193804
193825
|
|
|
193805
|
-
|
|
193806
193826
|
//console.log(src);
|
|
193807
|
-
|
|
193808
193827
|
//const template = await fetch(path).then(res => res.text());
|
|
193828
|
+
/*
|
|
193829
|
+
arr.push({
|
|
193830
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
193831
|
+
url: elem.getAttribute("href"),
|
|
193832
|
+
title: elem.getAttribute("title"),
|
|
193833
|
+
})*/
|
|
193809
193834
|
|
|
193810
|
-
|
|
193811
|
-
|
|
193812
|
-
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193835
|
+
const where = await this.#where2(userPrompt, title, await this.#getTableList());
|
|
193813
193836
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193814
193837
|
|
|
193815
193838
|
console.log(where);
|
package/dist/components/ideAi.js
CHANGED
|
@@ -220,7 +220,7 @@ export class IdeAi
|
|
|
220
220
|
|
|
221
221
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
222
222
|
|
|
223
|
-
const o = await this.#invoke('/prompts/meta
|
|
223
|
+
const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
|
|
224
224
|
"userPrompt": userPrompt,
|
|
225
225
|
"menuList": menuList,
|
|
226
226
|
"tableDefinitions": tableDefinitions,
|
|
@@ -239,6 +239,27 @@ export class IdeAi
|
|
|
239
239
|
return o;
|
|
240
240
|
};
|
|
241
241
|
|
|
242
|
+
#where2 = async (userPrompt, menuNm, tableDefinitions) => {
|
|
243
|
+
|
|
244
|
+
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
245
|
+
"userPrompt": userPrompt,
|
|
246
|
+
"menuNm": menuNm,
|
|
247
|
+
"tableDefinitions": tableDefinitions,
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
console.log(o);
|
|
251
|
+
|
|
252
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
253
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
throw new Error(o);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
return o;
|
|
261
|
+
};
|
|
262
|
+
|
|
242
263
|
#generateRealFile = async (srcPath) => {
|
|
243
264
|
|
|
244
265
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
@@ -387,14 +408,16 @@ export class IdeAi
|
|
|
387
408
|
const response = await fetch(srcPath.javascript);
|
|
388
409
|
src.javascript = await response.text();*/
|
|
389
410
|
|
|
390
|
-
|
|
391
411
|
//console.log(src);
|
|
392
|
-
|
|
393
412
|
//const template = await fetch(path).then(res => res.text());
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
413
|
+
/*
|
|
414
|
+
arr.push({
|
|
415
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
416
|
+
url: elem.getAttribute("href"),
|
|
417
|
+
title: elem.getAttribute("title"),
|
|
418
|
+
})*/
|
|
419
|
+
|
|
420
|
+
const where = await this.#where2(userPrompt, title, await this.#getTableList());
|
|
398
421
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
399
422
|
|
|
400
423
|
console.log(where);
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -220,7 +220,7 @@ export class IdeAi
|
|
|
220
220
|
|
|
221
221
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
222
222
|
|
|
223
|
-
const o = await this.#invoke('/prompts/meta
|
|
223
|
+
const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
|
|
224
224
|
"userPrompt": userPrompt,
|
|
225
225
|
"menuList": menuList,
|
|
226
226
|
"tableDefinitions": tableDefinitions,
|
|
@@ -239,6 +239,27 @@ export class IdeAi
|
|
|
239
239
|
return o;
|
|
240
240
|
};
|
|
241
241
|
|
|
242
|
+
#where2 = async (userPrompt, menuNm, tableDefinitions) => {
|
|
243
|
+
|
|
244
|
+
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
245
|
+
"userPrompt": userPrompt,
|
|
246
|
+
"menuNm": menuNm,
|
|
247
|
+
"tableDefinitions": tableDefinitions,
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
console.log(o);
|
|
251
|
+
|
|
252
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
253
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
throw new Error(o);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
return o;
|
|
261
|
+
};
|
|
262
|
+
|
|
242
263
|
#generateRealFile = async (srcPath) => {
|
|
243
264
|
|
|
244
265
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
@@ -387,14 +408,16 @@ export class IdeAi
|
|
|
387
408
|
const response = await fetch(srcPath.javascript);
|
|
388
409
|
src.javascript = await response.text();*/
|
|
389
410
|
|
|
390
|
-
|
|
391
411
|
//console.log(src);
|
|
392
|
-
|
|
393
412
|
//const template = await fetch(path).then(res => res.text());
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
413
|
+
/*
|
|
414
|
+
arr.push({
|
|
415
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
416
|
+
url: elem.getAttribute("href"),
|
|
417
|
+
title: elem.getAttribute("title"),
|
|
418
|
+
})*/
|
|
419
|
+
|
|
420
|
+
const where = await this.#where2(userPrompt, title, await this.#getTableList());
|
|
398
421
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
399
422
|
|
|
400
423
|
console.log(where);
|