ide-assi 0.199.0 → 0.201.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 +13 -6
- package/dist/bundle.esm.js +13 -6
- package/dist/components/ideAi.js +13 -6
- package/package.json +1 -1
- package/src/components/ideAi.js +13 -6
package/dist/bundle.cjs.js
CHANGED
|
@@ -193687,9 +193687,14 @@ class IdeAi
|
|
|
193687
193687
|
#getSourcePath = (menuUrl) => {
|
|
193688
193688
|
const path = menuUrl.replace(/^\/+/, '');
|
|
193689
193689
|
|
|
193690
|
-
const
|
|
193690
|
+
const raw = path.split("/").join(".").toLowerCase();
|
|
193691
|
+
const cleaned = raw.replace(/[^a-z0-9.]/g, "");
|
|
193692
|
+
const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
|
|
193693
|
+
|
|
193694
|
+
const packageName = namespace.split(".").slice(0, -1).join(".");
|
|
193695
|
+
|
|
193691
193696
|
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193692
|
-
const
|
|
193697
|
+
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193693
193698
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193694
193699
|
|
|
193695
193700
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
@@ -193697,7 +193702,7 @@ class IdeAi
|
|
|
193697
193702
|
return {
|
|
193698
193703
|
package: packageName,
|
|
193699
193704
|
namespace: namespace,
|
|
193700
|
-
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.CamelCaseMap",
|
|
193705
|
+
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193701
193706
|
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193702
193707
|
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193703
193708
|
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
@@ -193750,17 +193755,19 @@ class IdeAi
|
|
|
193750
193755
|
});
|
|
193751
193756
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193752
193757
|
|
|
193753
|
-
|
|
193758
|
+
|
|
193754
193759
|
|
|
193755
193760
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193756
193761
|
userPrompt: userPrompt,
|
|
193757
193762
|
menuUrl: where.menu.url,
|
|
193758
|
-
|
|
193759
|
-
|
|
193763
|
+
namespace: srcPath.namespace,
|
|
193764
|
+
classPackage: srcPath.package + ".service",
|
|
193760
193765
|
mybatisXmlSource: mybatisXmlSource,
|
|
193761
193766
|
});
|
|
193762
193767
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193763
193768
|
|
|
193769
|
+
return "OKKKK";
|
|
193770
|
+
|
|
193764
193771
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193765
193772
|
userPrompt: userPrompt,
|
|
193766
193773
|
menuUrl: where.menu.url,
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193683,9 +193683,14 @@ class IdeAi
|
|
|
193683
193683
|
#getSourcePath = (menuUrl) => {
|
|
193684
193684
|
const path = menuUrl.replace(/^\/+/, '');
|
|
193685
193685
|
|
|
193686
|
-
const
|
|
193686
|
+
const raw = path.split("/").join(".").toLowerCase();
|
|
193687
|
+
const cleaned = raw.replace(/[^a-z0-9.]/g, "");
|
|
193688
|
+
const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
|
|
193689
|
+
|
|
193690
|
+
const packageName = namespace.split(".").slice(0, -1).join(".");
|
|
193691
|
+
|
|
193687
193692
|
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193688
|
-
const
|
|
193693
|
+
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193689
193694
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193690
193695
|
|
|
193691
193696
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
@@ -193693,7 +193698,7 @@ class IdeAi
|
|
|
193693
193698
|
return {
|
|
193694
193699
|
package: packageName,
|
|
193695
193700
|
namespace: namespace,
|
|
193696
|
-
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.CamelCaseMap",
|
|
193701
|
+
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193697
193702
|
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193698
193703
|
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193699
193704
|
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
@@ -193746,17 +193751,19 @@ class IdeAi
|
|
|
193746
193751
|
});
|
|
193747
193752
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193748
193753
|
|
|
193749
|
-
|
|
193754
|
+
|
|
193750
193755
|
|
|
193751
193756
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193752
193757
|
userPrompt: userPrompt,
|
|
193753
193758
|
menuUrl: where.menu.url,
|
|
193754
|
-
|
|
193755
|
-
|
|
193759
|
+
namespace: srcPath.namespace,
|
|
193760
|
+
classPackage: srcPath.package + ".service",
|
|
193756
193761
|
mybatisXmlSource: mybatisXmlSource,
|
|
193757
193762
|
});
|
|
193758
193763
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193759
193764
|
|
|
193765
|
+
return "OKKKK";
|
|
193766
|
+
|
|
193760
193767
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193761
193768
|
userPrompt: userPrompt,
|
|
193762
193769
|
menuUrl: where.menu.url,
|
package/dist/components/ideAi.js
CHANGED
|
@@ -285,9 +285,14 @@ export class IdeAi
|
|
|
285
285
|
#getSourcePath = (menuUrl) => {
|
|
286
286
|
const path = menuUrl.replace(/^\/+/, '');
|
|
287
287
|
|
|
288
|
-
const
|
|
288
|
+
const raw = path.split("/").join(".").toLowerCase();
|
|
289
|
+
const cleaned = raw.replace(/[^a-z0-9.]/g, "");
|
|
290
|
+
const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
|
|
291
|
+
|
|
292
|
+
const packageName = namespace.split(".").slice(0, -1).join(".");
|
|
293
|
+
|
|
289
294
|
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
290
|
-
const
|
|
295
|
+
//const packageName = path.split("/").join(".").toLowerCase();
|
|
291
296
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
292
297
|
|
|
293
298
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
@@ -295,7 +300,7 @@ export class IdeAi
|
|
|
295
300
|
return {
|
|
296
301
|
package: packageName,
|
|
297
302
|
namespace: namespace,
|
|
298
|
-
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.CamelCaseMap",
|
|
303
|
+
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
299
304
|
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
300
305
|
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
301
306
|
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
@@ -348,17 +353,19 @@ export class IdeAi
|
|
|
348
353
|
});
|
|
349
354
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
350
355
|
|
|
351
|
-
|
|
356
|
+
|
|
352
357
|
|
|
353
358
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
354
359
|
userPrompt: userPrompt,
|
|
355
360
|
menuUrl: where.menu.url,
|
|
356
|
-
|
|
357
|
-
|
|
361
|
+
namespace: srcPath.namespace,
|
|
362
|
+
classPackage: srcPath.package + ".service",
|
|
358
363
|
mybatisXmlSource: mybatisXmlSource,
|
|
359
364
|
});
|
|
360
365
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
361
366
|
|
|
367
|
+
return "OKKKK";
|
|
368
|
+
|
|
362
369
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
363
370
|
userPrompt: userPrompt,
|
|
364
371
|
menuUrl: where.menu.url,
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -285,9 +285,14 @@ export class IdeAi
|
|
|
285
285
|
#getSourcePath = (menuUrl) => {
|
|
286
286
|
const path = menuUrl.replace(/^\/+/, '');
|
|
287
287
|
|
|
288
|
-
const
|
|
288
|
+
const raw = path.split("/").join(".").toLowerCase();
|
|
289
|
+
const cleaned = raw.replace(/[^a-z0-9.]/g, "");
|
|
290
|
+
const namespace = `${this.#parent.config.basePackage}.${cleaned}`;
|
|
291
|
+
|
|
292
|
+
const packageName = namespace.split(".").slice(0, -1).join(".");
|
|
293
|
+
|
|
289
294
|
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
290
|
-
const
|
|
295
|
+
//const packageName = path.split("/").join(".").toLowerCase();
|
|
291
296
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
292
297
|
|
|
293
298
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
@@ -295,7 +300,7 @@ export class IdeAi
|
|
|
295
300
|
return {
|
|
296
301
|
package: packageName,
|
|
297
302
|
namespace: namespace,
|
|
298
|
-
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.CamelCaseMap",
|
|
303
|
+
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
299
304
|
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
300
305
|
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
301
306
|
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
@@ -348,17 +353,19 @@ export class IdeAi
|
|
|
348
353
|
});
|
|
349
354
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
350
355
|
|
|
351
|
-
|
|
356
|
+
|
|
352
357
|
|
|
353
358
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
354
359
|
userPrompt: userPrompt,
|
|
355
360
|
menuUrl: where.menu.url,
|
|
356
|
-
|
|
357
|
-
|
|
361
|
+
namespace: srcPath.namespace,
|
|
362
|
+
classPackage: srcPath.package + ".service",
|
|
358
363
|
mybatisXmlSource: mybatisXmlSource,
|
|
359
364
|
});
|
|
360
365
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
361
366
|
|
|
367
|
+
return "OKKKK";
|
|
368
|
+
|
|
362
369
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
363
370
|
userPrompt: userPrompt,
|
|
364
371
|
menuUrl: where.menu.url,
|