ide-assi 0.156.0 → 0.158.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 +49 -43
- package/dist/bundle.esm.js +49 -43
- package/dist/components/ideAi.js +49 -43
- package/package.json +1 -1
- package/src/components/ideAi.js +49 -43
package/dist/bundle.cjs.js
CHANGED
|
@@ -193610,57 +193610,63 @@ class IdeAi
|
|
|
193610
193610
|
|
|
193611
193611
|
generateSourceClient = async (userPrompt) => {
|
|
193612
193612
|
|
|
193613
|
-
|
|
193613
|
+
try {
|
|
193614
|
+
this.#createModel();
|
|
193614
193615
|
|
|
193615
|
-
|
|
193616
|
-
|
|
193616
|
+
const what = await this.#what(userPrompt);
|
|
193617
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193617
193618
|
|
|
193618
|
-
|
|
193619
|
-
|
|
193620
|
-
|
|
193619
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193620
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193621
|
+
console.log(where);
|
|
193621
193622
|
|
|
193622
|
-
|
|
193623
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193623
193624
|
|
|
193624
|
-
|
|
193625
|
-
|
|
193625
|
+
const namespace = where.package;
|
|
193626
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
193626
193627
|
|
|
193627
|
-
|
|
193628
|
-
|
|
193629
|
-
|
|
193630
|
-
|
|
193631
|
-
|
|
193632
|
-
|
|
193633
|
-
|
|
193628
|
+
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
193629
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193630
|
+
"userPrompt": userPrompt,
|
|
193631
|
+
"namespace": namespace,
|
|
193632
|
+
"tableDefinitions": columnInfo
|
|
193633
|
+
});
|
|
193634
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193634
193635
|
|
|
193635
193636
|
|
|
193636
|
-
|
|
193637
|
-
|
|
193638
|
-
|
|
193639
|
-
|
|
193640
|
-
|
|
193641
|
-
|
|
193642
|
-
|
|
193643
|
-
|
|
193644
|
-
|
|
193645
|
-
|
|
193646
|
-
|
|
193647
|
-
|
|
193648
|
-
|
|
193649
|
-
|
|
193650
|
-
|
|
193651
|
-
|
|
193652
|
-
|
|
193653
|
-
|
|
193654
|
-
|
|
193655
|
-
|
|
193656
|
-
|
|
193657
|
-
|
|
193658
|
-
|
|
193659
|
-
|
|
193660
|
-
|
|
193661
|
-
|
|
193637
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193638
|
+
userPrompt: userPrompt,
|
|
193639
|
+
menuUrl: where.menu.url,
|
|
193640
|
+
classPackage: classPackage + ".service",
|
|
193641
|
+
namespace: namespace,
|
|
193642
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193643
|
+
});
|
|
193644
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193645
|
+
|
|
193646
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193647
|
+
userPrompt: userPrompt,
|
|
193648
|
+
menuUrl: where.menu.url,
|
|
193649
|
+
classPackage: classPackage + ".controller",
|
|
193650
|
+
namespace: namespace,
|
|
193651
|
+
serviceSource: serviceSrc,
|
|
193652
|
+
});
|
|
193653
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193654
|
+
|
|
193655
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193656
|
+
userPrompt: userPrompt,
|
|
193657
|
+
menuUrl: where.menu.url,
|
|
193658
|
+
menuName: where.menu.name,
|
|
193659
|
+
controllerSource: controllerSrc,
|
|
193660
|
+
tableDefinitions: columnInfo,
|
|
193661
|
+
});
|
|
193662
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193663
|
+
|
|
193664
|
+
await this.#generateRealFile(where);
|
|
193665
|
+
}
|
|
193666
|
+
catch (error) {
|
|
193667
|
+
console.log("========================");
|
|
193668
|
+
}
|
|
193662
193669
|
|
|
193663
|
-
await this.#generateRealFile(where);
|
|
193664
193670
|
|
|
193665
193671
|
return "OK";
|
|
193666
193672
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193606,57 +193606,63 @@ class IdeAi
|
|
|
193606
193606
|
|
|
193607
193607
|
generateSourceClient = async (userPrompt) => {
|
|
193608
193608
|
|
|
193609
|
-
|
|
193609
|
+
try {
|
|
193610
|
+
this.#createModel();
|
|
193610
193611
|
|
|
193611
|
-
|
|
193612
|
-
|
|
193612
|
+
const what = await this.#what(userPrompt);
|
|
193613
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193613
193614
|
|
|
193614
|
-
|
|
193615
|
-
|
|
193616
|
-
|
|
193615
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193616
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193617
|
+
console.log(where);
|
|
193617
193618
|
|
|
193618
|
-
|
|
193619
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193619
193620
|
|
|
193620
|
-
|
|
193621
|
-
|
|
193621
|
+
const namespace = where.package;
|
|
193622
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
193622
193623
|
|
|
193623
|
-
|
|
193624
|
-
|
|
193625
|
-
|
|
193626
|
-
|
|
193627
|
-
|
|
193628
|
-
|
|
193629
|
-
|
|
193624
|
+
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
193625
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193626
|
+
"userPrompt": userPrompt,
|
|
193627
|
+
"namespace": namespace,
|
|
193628
|
+
"tableDefinitions": columnInfo
|
|
193629
|
+
});
|
|
193630
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193630
193631
|
|
|
193631
193632
|
|
|
193632
|
-
|
|
193633
|
-
|
|
193634
|
-
|
|
193635
|
-
|
|
193636
|
-
|
|
193637
|
-
|
|
193638
|
-
|
|
193639
|
-
|
|
193640
|
-
|
|
193641
|
-
|
|
193642
|
-
|
|
193643
|
-
|
|
193644
|
-
|
|
193645
|
-
|
|
193646
|
-
|
|
193647
|
-
|
|
193648
|
-
|
|
193649
|
-
|
|
193650
|
-
|
|
193651
|
-
|
|
193652
|
-
|
|
193653
|
-
|
|
193654
|
-
|
|
193655
|
-
|
|
193656
|
-
|
|
193657
|
-
|
|
193633
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193634
|
+
userPrompt: userPrompt,
|
|
193635
|
+
menuUrl: where.menu.url,
|
|
193636
|
+
classPackage: classPackage + ".service",
|
|
193637
|
+
namespace: namespace,
|
|
193638
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193639
|
+
});
|
|
193640
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193641
|
+
|
|
193642
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193643
|
+
userPrompt: userPrompt,
|
|
193644
|
+
menuUrl: where.menu.url,
|
|
193645
|
+
classPackage: classPackage + ".controller",
|
|
193646
|
+
namespace: namespace,
|
|
193647
|
+
serviceSource: serviceSrc,
|
|
193648
|
+
});
|
|
193649
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193650
|
+
|
|
193651
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193652
|
+
userPrompt: userPrompt,
|
|
193653
|
+
menuUrl: where.menu.url,
|
|
193654
|
+
menuName: where.menu.name,
|
|
193655
|
+
controllerSource: controllerSrc,
|
|
193656
|
+
tableDefinitions: columnInfo,
|
|
193657
|
+
});
|
|
193658
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193659
|
+
|
|
193660
|
+
await this.#generateRealFile(where);
|
|
193661
|
+
}
|
|
193662
|
+
catch (error) {
|
|
193663
|
+
console.log("========================");
|
|
193664
|
+
}
|
|
193658
193665
|
|
|
193659
|
-
await this.#generateRealFile(where);
|
|
193660
193666
|
|
|
193661
193667
|
return "OK";
|
|
193662
193668
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -268,57 +268,63 @@ export class IdeAi
|
|
|
268
268
|
|
|
269
269
|
generateSourceClient = async (userPrompt) => {
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
try {
|
|
272
|
+
this.#createModel();
|
|
272
273
|
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
const what = await this.#what(userPrompt);
|
|
275
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
275
276
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
278
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
279
|
+
console.log(where);
|
|
279
280
|
|
|
280
|
-
|
|
281
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
281
282
|
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
const namespace = where.package;
|
|
284
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
284
285
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
286
|
+
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
287
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
288
|
+
"userPrompt": userPrompt,
|
|
289
|
+
"namespace": namespace,
|
|
290
|
+
"tableDefinitions": columnInfo
|
|
291
|
+
});
|
|
292
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
292
293
|
|
|
293
294
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
295
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
296
|
+
userPrompt: userPrompt,
|
|
297
|
+
menuUrl: where.menu.url,
|
|
298
|
+
classPackage: classPackage + ".service",
|
|
299
|
+
namespace: namespace,
|
|
300
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
301
|
+
});
|
|
302
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
303
|
+
|
|
304
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
305
|
+
userPrompt: userPrompt,
|
|
306
|
+
menuUrl: where.menu.url,
|
|
307
|
+
classPackage: classPackage + ".controller",
|
|
308
|
+
namespace: namespace,
|
|
309
|
+
serviceSource: serviceSrc,
|
|
310
|
+
});
|
|
311
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
312
|
+
|
|
313
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
314
|
+
userPrompt: userPrompt,
|
|
315
|
+
menuUrl: where.menu.url,
|
|
316
|
+
menuName: where.menu.name,
|
|
317
|
+
controllerSource: controllerSrc,
|
|
318
|
+
tableDefinitions: columnInfo,
|
|
319
|
+
});
|
|
320
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
321
|
+
|
|
322
|
+
await this.#generateRealFile(where);
|
|
323
|
+
}
|
|
324
|
+
catch (error) {
|
|
325
|
+
console.log("========================");
|
|
326
|
+
}
|
|
320
327
|
|
|
321
|
-
await this.#generateRealFile(where);
|
|
322
328
|
|
|
323
329
|
return "OK";
|
|
324
330
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -268,57 +268,63 @@ export class IdeAi
|
|
|
268
268
|
|
|
269
269
|
generateSourceClient = async (userPrompt) => {
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
try {
|
|
272
|
+
this.#createModel();
|
|
272
273
|
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
const what = await this.#what(userPrompt);
|
|
275
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
275
276
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
278
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
279
|
+
console.log(where);
|
|
279
280
|
|
|
280
|
-
|
|
281
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
281
282
|
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
const namespace = where.package;
|
|
284
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
284
285
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
286
|
+
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
287
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
288
|
+
"userPrompt": userPrompt,
|
|
289
|
+
"namespace": namespace,
|
|
290
|
+
"tableDefinitions": columnInfo
|
|
291
|
+
});
|
|
292
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
292
293
|
|
|
293
294
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
295
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
296
|
+
userPrompt: userPrompt,
|
|
297
|
+
menuUrl: where.menu.url,
|
|
298
|
+
classPackage: classPackage + ".service",
|
|
299
|
+
namespace: namespace,
|
|
300
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
301
|
+
});
|
|
302
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
303
|
+
|
|
304
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
305
|
+
userPrompt: userPrompt,
|
|
306
|
+
menuUrl: where.menu.url,
|
|
307
|
+
classPackage: classPackage + ".controller",
|
|
308
|
+
namespace: namespace,
|
|
309
|
+
serviceSource: serviceSrc,
|
|
310
|
+
});
|
|
311
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
312
|
+
|
|
313
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
314
|
+
userPrompt: userPrompt,
|
|
315
|
+
menuUrl: where.menu.url,
|
|
316
|
+
menuName: where.menu.name,
|
|
317
|
+
controllerSource: controllerSrc,
|
|
318
|
+
tableDefinitions: columnInfo,
|
|
319
|
+
});
|
|
320
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
321
|
+
|
|
322
|
+
await this.#generateRealFile(where);
|
|
323
|
+
}
|
|
324
|
+
catch (error) {
|
|
325
|
+
console.log("========================");
|
|
326
|
+
}
|
|
320
327
|
|
|
321
|
-
await this.#generateRealFile(where);
|
|
322
328
|
|
|
323
329
|
return "OK";
|
|
324
330
|
}
|