ide-assi 0.147.0 → 0.151.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.
@@ -193613,19 +193613,23 @@ class IdeAi
193613
193613
 
193614
193614
  const columnInfo = await this.#getColumnInfo(where.table);
193615
193615
 
193616
+ const namespace = where.package;
193617
+ const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
193618
+
193616
193619
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
193617
193620
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
193618
193621
  "userPrompt": userPrompt,
193619
- "namespace": where.package,
193622
+ "namespace": namespace,
193620
193623
  "tableDefinitions": columnInfo
193621
193624
  });
193622
193625
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193623
193626
 
193627
+
193624
193628
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193625
193629
  userPrompt: userPrompt,
193626
193630
  menuUrl: where.menu.url,
193627
- classPackage: "ide.assi.be." + where.package + ".service",
193628
- namespace: where.package,
193631
+ classPackage: classPackage + ".service",
193632
+ namespace: namespace,
193629
193633
  mybatisXmlSource: mybatisXmlSource,
193630
193634
  });
193631
193635
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
@@ -193633,8 +193637,8 @@ class IdeAi
193633
193637
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
193634
193638
  userPrompt: userPrompt,
193635
193639
  menuUrl: where.menu.url,
193636
- classPackage: "ide.assi.be." + where.package + ".controller",
193637
- namespace: where.package,
193640
+ classPackage: classPackage + ".controller",
193641
+ namespace: namespace,
193638
193642
  serviceSource: serviceSrc,
193639
193643
  });
193640
193644
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
@@ -193609,19 +193609,23 @@ class IdeAi
193609
193609
 
193610
193610
  const columnInfo = await this.#getColumnInfo(where.table);
193611
193611
 
193612
+ const namespace = where.package;
193613
+ const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
193614
+
193612
193615
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
193613
193616
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
193614
193617
  "userPrompt": userPrompt,
193615
- "namespace": where.package,
193618
+ "namespace": namespace,
193616
193619
  "tableDefinitions": columnInfo
193617
193620
  });
193618
193621
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193619
193622
 
193623
+
193620
193624
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193621
193625
  userPrompt: userPrompt,
193622
193626
  menuUrl: where.menu.url,
193623
- classPackage: "ide.assi.be." + where.package + ".service",
193624
- namespace: where.package,
193627
+ classPackage: classPackage + ".service",
193628
+ namespace: namespace,
193625
193629
  mybatisXmlSource: mybatisXmlSource,
193626
193630
  });
193627
193631
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
@@ -193629,8 +193633,8 @@ class IdeAi
193629
193633
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
193630
193634
  userPrompt: userPrompt,
193631
193635
  menuUrl: where.menu.url,
193632
- classPackage: "ide.assi.be." + where.package + ".controller",
193633
- namespace: where.package,
193636
+ classPackage: classPackage + ".controller",
193637
+ namespace: namespace,
193634
193638
  serviceSource: serviceSrc,
193635
193639
  });
193636
193640
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
@@ -279,19 +279,23 @@ export class IdeAi
279
279
 
280
280
  const columnInfo = await this.#getColumnInfo(where.table);
281
281
 
282
+ const namespace = where.package;
283
+ const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
284
+
282
285
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
283
286
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
284
287
  "userPrompt": userPrompt,
285
- "namespace": where.package,
288
+ "namespace": namespace,
286
289
  "tableDefinitions": columnInfo
287
290
  });
288
291
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
289
292
 
293
+
290
294
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
291
295
  userPrompt: userPrompt,
292
296
  menuUrl: where.menu.url,
293
- classPackage: "ide.assi.be." + where.package + ".service",
294
- namespace: where.package,
297
+ classPackage: classPackage + ".service",
298
+ namespace: namespace,
295
299
  mybatisXmlSource: mybatisXmlSource,
296
300
  });
297
301
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
@@ -299,8 +303,8 @@ export class IdeAi
299
303
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
300
304
  userPrompt: userPrompt,
301
305
  menuUrl: where.menu.url,
302
- classPackage: "ide.assi.be." + where.package + ".controller",
303
- namespace: where.package,
306
+ classPackage: classPackage + ".controller",
307
+ namespace: namespace,
304
308
  serviceSource: serviceSrc,
305
309
  });
306
310
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.147.0",
4
+ "version": "0.151.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -279,19 +279,23 @@ export class IdeAi
279
279
 
280
280
  const columnInfo = await this.#getColumnInfo(where.table);
281
281
 
282
+ const namespace = where.package;
283
+ const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
284
+
282
285
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
283
286
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
284
287
  "userPrompt": userPrompt,
285
- "namespace": where.package,
288
+ "namespace": namespace,
286
289
  "tableDefinitions": columnInfo
287
290
  });
288
291
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
289
292
 
293
+
290
294
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
291
295
  userPrompt: userPrompt,
292
296
  menuUrl: where.menu.url,
293
- classPackage: "ide.assi.be." + where.package + ".service",
294
- namespace: where.package,
297
+ classPackage: classPackage + ".service",
298
+ namespace: namespace,
295
299
  mybatisXmlSource: mybatisXmlSource,
296
300
  });
297
301
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
@@ -299,8 +303,8 @@ export class IdeAi
299
303
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
300
304
  userPrompt: userPrompt,
301
305
  menuUrl: where.menu.url,
302
- classPackage: "ide.assi.be." + where.package + ".controller",
303
- namespace: where.package,
306
+ classPackage: classPackage + ".controller",
307
+ namespace: namespace,
304
308
  serviceSource: serviceSrc,
305
309
  });
306
310
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");