ide-assi 0.208.0 → 0.211.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 +63 -7
- package/dist/bundle.esm.js +63 -7
- package/dist/components/ideAi.js +8 -9
- package/package.json +1 -1
- package/src/components/ideAi.js +8 -9
package/dist/bundle.cjs.js
CHANGED
|
@@ -193681,6 +193681,9 @@ class IdeAi
|
|
|
193681
193681
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193682
193682
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193683
193683
|
|
|
193684
|
+
console.log(this.#parent.config);
|
|
193685
|
+
|
|
193686
|
+
const beBasePath = "ide-assi-be";
|
|
193684
193687
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193685
193688
|
|
|
193686
193689
|
return {
|
|
@@ -193688,10 +193691,10 @@ class IdeAi
|
|
|
193688
193691
|
namespace: namespace,
|
|
193689
193692
|
baseClass: fileName,
|
|
193690
193693
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193691
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193692
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193693
|
-
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193694
|
-
javascript: `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193694
|
+
controller: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193695
|
+
service: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193696
|
+
mybatis: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193697
|
+
javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193695
193698
|
};
|
|
193696
193699
|
/***
|
|
193697
193700
|
return {
|
|
@@ -193706,9 +193709,62 @@ class IdeAi
|
|
|
193706
193709
|
|
|
193707
193710
|
generateSourceClient = async (userPrompt) => {
|
|
193708
193711
|
|
|
193709
|
-
|
|
193710
|
-
|
|
193711
|
-
|
|
193712
|
+
this.#createModel();
|
|
193713
|
+
|
|
193714
|
+
await this.#what(userPrompt);
|
|
193715
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193716
|
+
|
|
193717
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193718
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193719
|
+
|
|
193720
|
+
console.log(where);
|
|
193721
|
+
|
|
193722
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193723
|
+
|
|
193724
|
+
console.log(srcPath);
|
|
193725
|
+
|
|
193726
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193727
|
+
|
|
193728
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193729
|
+
userPrompt: userPrompt,
|
|
193730
|
+
resultType: srcPath.resultType,
|
|
193731
|
+
namespace: srcPath.namespace,
|
|
193732
|
+
tableDefinitions: columnInfo
|
|
193733
|
+
});
|
|
193734
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193735
|
+
|
|
193736
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193737
|
+
userPrompt: userPrompt,
|
|
193738
|
+
baseClass: srcPath.baseClass,
|
|
193739
|
+
myBatisPath: srcPath.mybatis,
|
|
193740
|
+
namespace: srcPath.namespace,
|
|
193741
|
+
package: srcPath.package + ".service",
|
|
193742
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193743
|
+
});
|
|
193744
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193745
|
+
|
|
193746
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193747
|
+
userPrompt: userPrompt,
|
|
193748
|
+
baseClass: srcPath.baseClass,
|
|
193749
|
+
menuUrl: where.menu.url,
|
|
193750
|
+
package: srcPath.package + ".controller",
|
|
193751
|
+
serviceSource: serviceSrc,
|
|
193752
|
+
});
|
|
193753
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193754
|
+
|
|
193755
|
+
await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193756
|
+
userPrompt: userPrompt,
|
|
193757
|
+
menuUrl: where.menu.url,
|
|
193758
|
+
menuName: where.menu.name,
|
|
193759
|
+
baseClass: srcPath.baseClass,
|
|
193760
|
+
controllerSource: controllerSrc,
|
|
193761
|
+
tableDefinitions: columnInfo,
|
|
193762
|
+
});
|
|
193763
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193764
|
+
|
|
193765
|
+
//await this.#generateRealFile(srcPath);
|
|
193766
|
+
|
|
193767
|
+
return "OK";
|
|
193712
193768
|
}
|
|
193713
193769
|
}
|
|
193714
193770
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193677,6 +193677,9 @@ class IdeAi
|
|
|
193677
193677
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193678
193678
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193679
193679
|
|
|
193680
|
+
console.log(this.#parent.config);
|
|
193681
|
+
|
|
193682
|
+
const beBasePath = "ide-assi-be";
|
|
193680
193683
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193681
193684
|
|
|
193682
193685
|
return {
|
|
@@ -193684,10 +193687,10 @@ class IdeAi
|
|
|
193684
193687
|
namespace: namespace,
|
|
193685
193688
|
baseClass: fileName,
|
|
193686
193689
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193687
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193688
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193689
|
-
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193690
|
-
javascript: `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193690
|
+
controller: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193691
|
+
service: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193692
|
+
mybatis: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193693
|
+
javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193691
193694
|
};
|
|
193692
193695
|
/***
|
|
193693
193696
|
return {
|
|
@@ -193702,9 +193705,62 @@ class IdeAi
|
|
|
193702
193705
|
|
|
193703
193706
|
generateSourceClient = async (userPrompt) => {
|
|
193704
193707
|
|
|
193705
|
-
|
|
193706
|
-
|
|
193707
|
-
|
|
193708
|
+
this.#createModel();
|
|
193709
|
+
|
|
193710
|
+
await this.#what(userPrompt);
|
|
193711
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193712
|
+
|
|
193713
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193714
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193715
|
+
|
|
193716
|
+
console.log(where);
|
|
193717
|
+
|
|
193718
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193719
|
+
|
|
193720
|
+
console.log(srcPath);
|
|
193721
|
+
|
|
193722
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193723
|
+
|
|
193724
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193725
|
+
userPrompt: userPrompt,
|
|
193726
|
+
resultType: srcPath.resultType,
|
|
193727
|
+
namespace: srcPath.namespace,
|
|
193728
|
+
tableDefinitions: columnInfo
|
|
193729
|
+
});
|
|
193730
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193731
|
+
|
|
193732
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193733
|
+
userPrompt: userPrompt,
|
|
193734
|
+
baseClass: srcPath.baseClass,
|
|
193735
|
+
myBatisPath: srcPath.mybatis,
|
|
193736
|
+
namespace: srcPath.namespace,
|
|
193737
|
+
package: srcPath.package + ".service",
|
|
193738
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193739
|
+
});
|
|
193740
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193741
|
+
|
|
193742
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193743
|
+
userPrompt: userPrompt,
|
|
193744
|
+
baseClass: srcPath.baseClass,
|
|
193745
|
+
menuUrl: where.menu.url,
|
|
193746
|
+
package: srcPath.package + ".controller",
|
|
193747
|
+
serviceSource: serviceSrc,
|
|
193748
|
+
});
|
|
193749
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193750
|
+
|
|
193751
|
+
await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193752
|
+
userPrompt: userPrompt,
|
|
193753
|
+
menuUrl: where.menu.url,
|
|
193754
|
+
menuName: where.menu.name,
|
|
193755
|
+
baseClass: srcPath.baseClass,
|
|
193756
|
+
controllerSource: controllerSrc,
|
|
193757
|
+
tableDefinitions: columnInfo,
|
|
193758
|
+
});
|
|
193759
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193760
|
+
|
|
193761
|
+
//await this.#generateRealFile(srcPath);
|
|
193762
|
+
|
|
193763
|
+
return "OK";
|
|
193708
193764
|
}
|
|
193709
193765
|
}
|
|
193710
193766
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -265,6 +265,9 @@ export class IdeAi
|
|
|
265
265
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
266
266
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
267
267
|
|
|
268
|
+
console.log(this.#parent.config);
|
|
269
|
+
|
|
270
|
+
const beBasePath = "ide-assi-be";
|
|
268
271
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
269
272
|
|
|
270
273
|
return {
|
|
@@ -272,10 +275,10 @@ export class IdeAi
|
|
|
272
275
|
namespace: namespace,
|
|
273
276
|
baseClass: fileName,
|
|
274
277
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
275
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
276
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
277
|
-
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
278
|
-
javascript: `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
278
|
+
controller: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
279
|
+
service: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
280
|
+
mybatis: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
281
|
+
javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
279
282
|
};
|
|
280
283
|
/***
|
|
281
284
|
return {
|
|
@@ -290,10 +293,6 @@ export class IdeAi
|
|
|
290
293
|
|
|
291
294
|
generateSourceClient = async (userPrompt) => {
|
|
292
295
|
|
|
293
|
-
console.log(this.#parent.config);
|
|
294
|
-
console.log(this.#parent.settings.projectName);
|
|
295
|
-
return;
|
|
296
|
-
|
|
297
296
|
this.#createModel();
|
|
298
297
|
|
|
299
298
|
const what = await this.#what(userPrompt);
|
|
@@ -347,7 +346,7 @@ export class IdeAi
|
|
|
347
346
|
});
|
|
348
347
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
349
348
|
|
|
350
|
-
await this.#generateRealFile(srcPath);
|
|
349
|
+
//await this.#generateRealFile(srcPath);
|
|
351
350
|
|
|
352
351
|
return "OK";
|
|
353
352
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -265,6 +265,9 @@ export class IdeAi
|
|
|
265
265
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
266
266
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
267
267
|
|
|
268
|
+
console.log(this.#parent.config);
|
|
269
|
+
|
|
270
|
+
const beBasePath = "ide-assi-be";
|
|
268
271
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
269
272
|
|
|
270
273
|
return {
|
|
@@ -272,10 +275,10 @@ export class IdeAi
|
|
|
272
275
|
namespace: namespace,
|
|
273
276
|
baseClass: fileName,
|
|
274
277
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
275
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
276
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
277
|
-
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
278
|
-
javascript: `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
278
|
+
controller: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
279
|
+
service: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
280
|
+
mybatis: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
281
|
+
javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
279
282
|
};
|
|
280
283
|
/***
|
|
281
284
|
return {
|
|
@@ -290,10 +293,6 @@ export class IdeAi
|
|
|
290
293
|
|
|
291
294
|
generateSourceClient = async (userPrompt) => {
|
|
292
295
|
|
|
293
|
-
console.log(this.#parent.config);
|
|
294
|
-
console.log(this.#parent.settings.projectName);
|
|
295
|
-
return;
|
|
296
|
-
|
|
297
296
|
this.#createModel();
|
|
298
297
|
|
|
299
298
|
const what = await this.#what(userPrompt);
|
|
@@ -347,7 +346,7 @@ export class IdeAi
|
|
|
347
346
|
});
|
|
348
347
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
349
348
|
|
|
350
|
-
await this.#generateRealFile(srcPath);
|
|
349
|
+
//await this.#generateRealFile(srcPath);
|
|
351
350
|
|
|
352
351
|
return "OK";
|
|
353
352
|
}
|