ide-assi 0.203.0 → 0.205.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.
@@ -193731,12 +193731,9 @@ class IdeAi
193731
193731
  const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
193732
193732
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193733
193733
 
193734
-
193735
193734
  console.log(where);
193736
193735
 
193737
- //packageName
193738
193736
  const srcPath = this.#getSourcePath(where.menu.url);
193739
- //srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
193740
193737
 
193741
193738
  console.log(srcPath);
193742
193739
 
@@ -193744,25 +193741,17 @@ class IdeAi
193744
193741
 
193745
193742
  const columnInfo = await this.#getColumnInfo(where.table);
193746
193743
 
193747
- //const namespace = where.package;
193748
- const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
193749
-
193750
- //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
193751
193744
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
193752
- //baseClass: srcPath.baseClass,
193753
- resultType: srcPath.resultType,
193754
193745
  userPrompt: userPrompt,
193746
+ resultType: srcPath.resultType,
193755
193747
  namespace: srcPath.namespace,
193756
193748
  tableDefinitions: columnInfo
193757
193749
  });
193758
193750
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193759
193751
 
193760
-
193761
-
193762
193752
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193763
- baseClass: srcPath.baseClass,
193764
193753
  userPrompt: userPrompt,
193765
- //menuUrl: where.menu.url,
193754
+ baseClass: srcPath.baseClass,
193766
193755
  myBatisPath: srcPath.mybatis,
193767
193756
  namespace: srcPath.namespace,
193768
193757
  package: srcPath.package + ".service",
@@ -193770,13 +193759,11 @@ class IdeAi
193770
193759
  });
193771
193760
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
193772
193761
 
193773
- return "OKKKK";
193774
-
193775
193762
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
193776
193763
  userPrompt: userPrompt,
193764
+ baseClass: srcPath.baseClass,
193777
193765
  menuUrl: where.menu.url,
193778
- package: classPackage + ".controller",
193779
- namespace: namespace,
193766
+ package: srcPath.package + ".controller",
193780
193767
  serviceSource: serviceSrc,
193781
193768
  });
193782
193769
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
@@ -193785,11 +193772,14 @@ class IdeAi
193785
193772
  userPrompt: userPrompt,
193786
193773
  menuUrl: where.menu.url,
193787
193774
  menuName: where.menu.name,
193775
+ baseClass: srcPath.baseClass,
193788
193776
  controllerSource: controllerSrc,
193789
193777
  tableDefinitions: columnInfo,
193790
193778
  });
193791
193779
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193792
193780
 
193781
+ return "OKKKK";
193782
+
193793
193783
  await this.#generateRealFile(where);
193794
193784
  }
193795
193785
  catch (error) {
@@ -193727,12 +193727,9 @@ class IdeAi
193727
193727
  const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
193728
193728
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193729
193729
 
193730
-
193731
193730
  console.log(where);
193732
193731
 
193733
- //packageName
193734
193732
  const srcPath = this.#getSourcePath(where.menu.url);
193735
- //srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
193736
193733
 
193737
193734
  console.log(srcPath);
193738
193735
 
@@ -193740,25 +193737,17 @@ class IdeAi
193740
193737
 
193741
193738
  const columnInfo = await this.#getColumnInfo(where.table);
193742
193739
 
193743
- //const namespace = where.package;
193744
- const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
193745
-
193746
- //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
193747
193740
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
193748
- //baseClass: srcPath.baseClass,
193749
- resultType: srcPath.resultType,
193750
193741
  userPrompt: userPrompt,
193742
+ resultType: srcPath.resultType,
193751
193743
  namespace: srcPath.namespace,
193752
193744
  tableDefinitions: columnInfo
193753
193745
  });
193754
193746
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193755
193747
 
193756
-
193757
-
193758
193748
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193759
- baseClass: srcPath.baseClass,
193760
193749
  userPrompt: userPrompt,
193761
- //menuUrl: where.menu.url,
193750
+ baseClass: srcPath.baseClass,
193762
193751
  myBatisPath: srcPath.mybatis,
193763
193752
  namespace: srcPath.namespace,
193764
193753
  package: srcPath.package + ".service",
@@ -193766,13 +193755,11 @@ class IdeAi
193766
193755
  });
193767
193756
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
193768
193757
 
193769
- return "OKKKK";
193770
-
193771
193758
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
193772
193759
  userPrompt: userPrompt,
193760
+ baseClass: srcPath.baseClass,
193773
193761
  menuUrl: where.menu.url,
193774
- package: classPackage + ".controller",
193775
- namespace: namespace,
193762
+ package: srcPath.package + ".controller",
193776
193763
  serviceSource: serviceSrc,
193777
193764
  });
193778
193765
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
@@ -193781,11 +193768,14 @@ class IdeAi
193781
193768
  userPrompt: userPrompt,
193782
193769
  menuUrl: where.menu.url,
193783
193770
  menuName: where.menu.name,
193771
+ baseClass: srcPath.baseClass,
193784
193772
  controllerSource: controllerSrc,
193785
193773
  tableDefinitions: columnInfo,
193786
193774
  });
193787
193775
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193788
193776
 
193777
+ return "OKKKK";
193778
+
193789
193779
  await this.#generateRealFile(where);
193790
193780
  }
193791
193781
  catch (error) {
@@ -329,12 +329,9 @@ export class IdeAi
329
329
  const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
330
330
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
331
331
 
332
-
333
332
  console.log(where);
334
333
 
335
- //packageName
336
334
  const srcPath = this.#getSourcePath(where.menu.url);
337
- //srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
338
335
 
339
336
  console.log(srcPath);
340
337
 
@@ -342,25 +339,17 @@ export class IdeAi
342
339
 
343
340
  const columnInfo = await this.#getColumnInfo(where.table);
344
341
 
345
- //const namespace = where.package;
346
- const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
347
-
348
- //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
349
342
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
350
- //baseClass: srcPath.baseClass,
351
- resultType: srcPath.resultType,
352
343
  userPrompt: userPrompt,
344
+ resultType: srcPath.resultType,
353
345
  namespace: srcPath.namespace,
354
346
  tableDefinitions: columnInfo
355
347
  });
356
348
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
357
349
 
358
-
359
-
360
350
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
361
- baseClass: srcPath.baseClass,
362
351
  userPrompt: userPrompt,
363
- //menuUrl: where.menu.url,
352
+ baseClass: srcPath.baseClass,
364
353
  myBatisPath: srcPath.mybatis,
365
354
  namespace: srcPath.namespace,
366
355
  package: srcPath.package + ".service",
@@ -368,13 +357,11 @@ export class IdeAi
368
357
  });
369
358
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
370
359
 
371
- return "OKKKK";
372
-
373
360
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
374
361
  userPrompt: userPrompt,
362
+ baseClass: srcPath.baseClass,
375
363
  menuUrl: where.menu.url,
376
- package: classPackage + ".controller",
377
- namespace: namespace,
364
+ package: srcPath.package + ".controller",
378
365
  serviceSource: serviceSrc,
379
366
  });
380
367
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
@@ -383,11 +370,14 @@ export class IdeAi
383
370
  userPrompt: userPrompt,
384
371
  menuUrl: where.menu.url,
385
372
  menuName: where.menu.name,
373
+ baseClass: srcPath.baseClass,
386
374
  controllerSource: controllerSrc,
387
375
  tableDefinitions: columnInfo,
388
376
  });
389
377
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
390
378
 
379
+ return "OKKKK";
380
+
391
381
  await this.#generateRealFile(where);
392
382
  }
393
383
  catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.203.0",
4
+ "version": "0.205.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -329,12 +329,9 @@ export class IdeAi
329
329
  const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
330
330
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
331
331
 
332
-
333
332
  console.log(where);
334
333
 
335
- //packageName
336
334
  const srcPath = this.#getSourcePath(where.menu.url);
337
- //srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
338
335
 
339
336
  console.log(srcPath);
340
337
 
@@ -342,25 +339,17 @@ export class IdeAi
342
339
 
343
340
  const columnInfo = await this.#getColumnInfo(where.table);
344
341
 
345
- //const namespace = where.package;
346
- const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
347
-
348
- //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
349
342
  const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
350
- //baseClass: srcPath.baseClass,
351
- resultType: srcPath.resultType,
352
343
  userPrompt: userPrompt,
344
+ resultType: srcPath.resultType,
353
345
  namespace: srcPath.namespace,
354
346
  tableDefinitions: columnInfo
355
347
  });
356
348
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
357
349
 
358
-
359
-
360
350
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
361
- baseClass: srcPath.baseClass,
362
351
  userPrompt: userPrompt,
363
- //menuUrl: where.menu.url,
352
+ baseClass: srcPath.baseClass,
364
353
  myBatisPath: srcPath.mybatis,
365
354
  namespace: srcPath.namespace,
366
355
  package: srcPath.package + ".service",
@@ -368,13 +357,11 @@ export class IdeAi
368
357
  });
369
358
  this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
370
359
 
371
- return "OKKKK";
372
-
373
360
  const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
374
361
  userPrompt: userPrompt,
362
+ baseClass: srcPath.baseClass,
375
363
  menuUrl: where.menu.url,
376
- package: classPackage + ".controller",
377
- namespace: namespace,
364
+ package: srcPath.package + ".controller",
378
365
  serviceSource: serviceSrc,
379
366
  });
380
367
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
@@ -383,11 +370,14 @@ export class IdeAi
383
370
  userPrompt: userPrompt,
384
371
  menuUrl: where.menu.url,
385
372
  menuName: where.menu.name,
373
+ baseClass: srcPath.baseClass,
386
374
  controllerSource: controllerSrc,
387
375
  tableDefinitions: columnInfo,
388
376
  });
389
377
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
390
378
 
379
+ return "OKKKK";
380
+
391
381
  await this.#generateRealFile(where);
392
382
  }
393
383
  catch (error) {