ide-assi 0.588.0 → 0.590.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 +8 -10
- package/dist/bundle.esm.js +8 -10
- package/dist/components/ideAi.js +8 -1
- package/package.json +1 -1
- package/src/components/ideAi.js +8 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -202077,7 +202077,9 @@ class IdeAi
|
|
|
202077
202077
|
}
|
|
202078
202078
|
|
|
202079
202079
|
#what = async (userPrompt) => {
|
|
202080
|
-
const o = await this.#invoke('/prompts/meta
|
|
202080
|
+
const o = await this.#invoke('/prompts/meta/1.what.txt', { "userPrompt": userPrompt });
|
|
202081
|
+
|
|
202082
|
+
console.log(o);
|
|
202081
202083
|
|
|
202082
202084
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
202083
202085
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -202086,6 +202088,8 @@ class IdeAi
|
|
|
202086
202088
|
throw new Error(o);
|
|
202087
202089
|
}
|
|
202088
202090
|
|
|
202091
|
+
console.log(o);
|
|
202092
|
+
|
|
202089
202093
|
return o.result;
|
|
202090
202094
|
};
|
|
202091
202095
|
|
|
@@ -202382,6 +202386,7 @@ console.log(el, href, title);
|
|
|
202382
202386
|
menuUrl: where.menu.url,
|
|
202383
202387
|
menuName: where.menu.name,
|
|
202384
202388
|
baseClass: srcPath.baseClass,
|
|
202389
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
202385
202390
|
controllerSource: controllerSrc,
|
|
202386
202391
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
202387
202392
|
});
|
|
@@ -202482,18 +202487,11 @@ console.log(el, href, title);
|
|
|
202482
202487
|
}, 9000);
|
|
202483
202488
|
*/
|
|
202484
202489
|
|
|
202485
|
-
|
|
202490
|
+
await this.#what(userPrompt);
|
|
202486
202491
|
//this.#parent.addMessage("명령을 이해했습니다.");
|
|
202487
202492
|
progressMessageInstance.updateProgress('prepare1', 'completed');
|
|
202488
202493
|
|
|
202489
|
-
|
|
202490
|
-
if (!apply.mybatis || !apply.service || !apply.controller || !apply.javascript) ;
|
|
202491
|
-
//await this.#createSource(userPrompt, apply);
|
|
202492
|
-
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
202493
|
-
}
|
|
202494
|
-
else if (what === "2") {
|
|
202495
|
-
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
202496
|
-
}
|
|
202494
|
+
return;
|
|
202497
202495
|
}
|
|
202498
202496
|
|
|
202499
202497
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -202073,7 +202073,9 @@ class IdeAi
|
|
|
202073
202073
|
}
|
|
202074
202074
|
|
|
202075
202075
|
#what = async (userPrompt) => {
|
|
202076
|
-
const o = await this.#invoke('/prompts/meta
|
|
202076
|
+
const o = await this.#invoke('/prompts/meta/1.what.txt', { "userPrompt": userPrompt });
|
|
202077
|
+
|
|
202078
|
+
console.log(o);
|
|
202077
202079
|
|
|
202078
202080
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
202079
202081
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -202082,6 +202084,8 @@ class IdeAi
|
|
|
202082
202084
|
throw new Error(o);
|
|
202083
202085
|
}
|
|
202084
202086
|
|
|
202087
|
+
console.log(o);
|
|
202088
|
+
|
|
202085
202089
|
return o.result;
|
|
202086
202090
|
};
|
|
202087
202091
|
|
|
@@ -202378,6 +202382,7 @@ console.log(el, href, title);
|
|
|
202378
202382
|
menuUrl: where.menu.url,
|
|
202379
202383
|
menuName: where.menu.name,
|
|
202380
202384
|
baseClass: srcPath.baseClass,
|
|
202385
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
202381
202386
|
controllerSource: controllerSrc,
|
|
202382
202387
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
202383
202388
|
});
|
|
@@ -202478,18 +202483,11 @@ console.log(el, href, title);
|
|
|
202478
202483
|
}, 9000);
|
|
202479
202484
|
*/
|
|
202480
202485
|
|
|
202481
|
-
|
|
202486
|
+
await this.#what(userPrompt);
|
|
202482
202487
|
//this.#parent.addMessage("명령을 이해했습니다.");
|
|
202483
202488
|
progressMessageInstance.updateProgress('prepare1', 'completed');
|
|
202484
202489
|
|
|
202485
|
-
|
|
202486
|
-
if (!apply.mybatis || !apply.service || !apply.controller || !apply.javascript) ;
|
|
202487
|
-
//await this.#createSource(userPrompt, apply);
|
|
202488
|
-
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
202489
|
-
}
|
|
202490
|
-
else if (what === "2") {
|
|
202491
|
-
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
202492
|
-
}
|
|
202490
|
+
return;
|
|
202493
202491
|
}
|
|
202494
202492
|
|
|
202495
202493
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -207,7 +207,9 @@ export class IdeAi
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
#what = async (userPrompt) => {
|
|
210
|
-
const o = await this.#invoke('/prompts/meta
|
|
210
|
+
const o = await this.#invoke('/prompts/meta/1.what.txt', { "userPrompt": userPrompt });
|
|
211
|
+
|
|
212
|
+
console.log(o);
|
|
211
213
|
|
|
212
214
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
213
215
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -216,6 +218,8 @@ export class IdeAi
|
|
|
216
218
|
throw new Error(o);
|
|
217
219
|
}
|
|
218
220
|
|
|
221
|
+
console.log(o);
|
|
222
|
+
|
|
219
223
|
return o.result;
|
|
220
224
|
};
|
|
221
225
|
|
|
@@ -512,6 +516,7 @@ console.log(el, href, title);
|
|
|
512
516
|
menuUrl: where.menu.url,
|
|
513
517
|
menuName: where.menu.name,
|
|
514
518
|
baseClass: srcPath.baseClass,
|
|
519
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
515
520
|
controllerSource: controllerSrc,
|
|
516
521
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
517
522
|
});
|
|
@@ -616,6 +621,8 @@ console.log(el, href, title);
|
|
|
616
621
|
//this.#parent.addMessage("명령을 이해했습니다.");
|
|
617
622
|
progressMessageInstance.updateProgress('prepare1', 'completed');
|
|
618
623
|
|
|
624
|
+
return;
|
|
625
|
+
|
|
619
626
|
if (what === "1") {
|
|
620
627
|
if (!apply.mybatis || !apply.service || !apply.controller || !apply.javascript) {
|
|
621
628
|
//return "소스 생성하실려면 변경대상 소스를 모두 선택하세요.";
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -207,7 +207,9 @@ export class IdeAi
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
#what = async (userPrompt) => {
|
|
210
|
-
const o = await this.#invoke('/prompts/meta
|
|
210
|
+
const o = await this.#invoke('/prompts/meta/1.what.txt', { "userPrompt": userPrompt });
|
|
211
|
+
|
|
212
|
+
console.log(o);
|
|
211
213
|
|
|
212
214
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
213
215
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -216,6 +218,8 @@ export class IdeAi
|
|
|
216
218
|
throw new Error(o);
|
|
217
219
|
}
|
|
218
220
|
|
|
221
|
+
console.log(o);
|
|
222
|
+
|
|
219
223
|
return o.result;
|
|
220
224
|
};
|
|
221
225
|
|
|
@@ -512,6 +516,7 @@ console.log(el, href, title);
|
|
|
512
516
|
menuUrl: where.menu.url,
|
|
513
517
|
menuName: where.menu.name,
|
|
514
518
|
baseClass: srcPath.baseClass,
|
|
519
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
515
520
|
controllerSource: controllerSrc,
|
|
516
521
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
517
522
|
});
|
|
@@ -616,6 +621,8 @@ console.log(el, href, title);
|
|
|
616
621
|
//this.#parent.addMessage("명령을 이해했습니다.");
|
|
617
622
|
progressMessageInstance.updateProgress('prepare1', 'completed');
|
|
618
623
|
|
|
624
|
+
return;
|
|
625
|
+
|
|
619
626
|
if (what === "1") {
|
|
620
627
|
if (!apply.mybatis || !apply.service || !apply.controller || !apply.javascript) {
|
|
621
628
|
//return "소스 생성하실려면 변경대상 소스를 모두 선택하세요.";
|