ide-assi 0.208.0 → 0.210.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.
@@ -193691,7 +193691,7 @@ class IdeAi
193691
193691
  controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
193692
193692
  service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
193693
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
+ javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
193695
193695
  };
193696
193696
  /***
193697
193697
  return {
@@ -193706,9 +193706,62 @@ class IdeAi
193706
193706
 
193707
193707
  generateSourceClient = async (userPrompt) => {
193708
193708
 
193709
- console.log(this.#parent.config);
193710
- console.log(this.#parent.settings.projectName);
193711
- return;
193709
+ this.#createModel();
193710
+
193711
+ await this.#what(userPrompt);
193712
+ this.#parent.addMessage("명령을 이해했습니다.");
193713
+
193714
+ const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
193715
+ this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193716
+
193717
+ console.log(where);
193718
+
193719
+ const srcPath = this.#getSourcePath(where.menu.url);
193720
+
193721
+ console.log(srcPath);
193722
+
193723
+ const columnInfo = await this.#getColumnInfo(where.table);
193724
+
193725
+ const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
193726
+ userPrompt: userPrompt,
193727
+ resultType: srcPath.resultType,
193728
+ namespace: srcPath.namespace,
193729
+ tableDefinitions: columnInfo
193730
+ });
193731
+ this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193732
+
193733
+ const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193734
+ userPrompt: userPrompt,
193735
+ baseClass: srcPath.baseClass,
193736
+ myBatisPath: srcPath.mybatis,
193737
+ namespace: srcPath.namespace,
193738
+ package: srcPath.package + ".service",
193739
+ mybatisXmlSource: mybatisXmlSource,
193740
+ });
193741
+ this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
193742
+
193743
+ const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
193744
+ userPrompt: userPrompt,
193745
+ baseClass: srcPath.baseClass,
193746
+ menuUrl: where.menu.url,
193747
+ package: srcPath.package + ".controller",
193748
+ serviceSource: serviceSrc,
193749
+ });
193750
+ this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193751
+
193752
+ await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193753
+ userPrompt: userPrompt,
193754
+ menuUrl: where.menu.url,
193755
+ menuName: where.menu.name,
193756
+ baseClass: srcPath.baseClass,
193757
+ controllerSource: controllerSrc,
193758
+ tableDefinitions: columnInfo,
193759
+ });
193760
+ this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193761
+
193762
+ //await this.#generateRealFile(srcPath);
193763
+
193764
+ return "OK";
193712
193765
  }
193713
193766
  }
193714
193767
 
@@ -193687,7 +193687,7 @@ class IdeAi
193687
193687
  controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
193688
193688
  service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
193689
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
+ javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
193691
193691
  };
193692
193692
  /***
193693
193693
  return {
@@ -193702,9 +193702,62 @@ class IdeAi
193702
193702
 
193703
193703
  generateSourceClient = async (userPrompt) => {
193704
193704
 
193705
- console.log(this.#parent.config);
193706
- console.log(this.#parent.settings.projectName);
193707
- return;
193705
+ this.#createModel();
193706
+
193707
+ await this.#what(userPrompt);
193708
+ this.#parent.addMessage("명령을 이해했습니다.");
193709
+
193710
+ const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
193711
+ this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193712
+
193713
+ console.log(where);
193714
+
193715
+ const srcPath = this.#getSourcePath(where.menu.url);
193716
+
193717
+ console.log(srcPath);
193718
+
193719
+ const columnInfo = await this.#getColumnInfo(where.table);
193720
+
193721
+ const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
193722
+ userPrompt: userPrompt,
193723
+ resultType: srcPath.resultType,
193724
+ namespace: srcPath.namespace,
193725
+ tableDefinitions: columnInfo
193726
+ });
193727
+ this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193728
+
193729
+ const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193730
+ userPrompt: userPrompt,
193731
+ baseClass: srcPath.baseClass,
193732
+ myBatisPath: srcPath.mybatis,
193733
+ namespace: srcPath.namespace,
193734
+ package: srcPath.package + ".service",
193735
+ mybatisXmlSource: mybatisXmlSource,
193736
+ });
193737
+ this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
193738
+
193739
+ const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
193740
+ userPrompt: userPrompt,
193741
+ baseClass: srcPath.baseClass,
193742
+ menuUrl: where.menu.url,
193743
+ package: srcPath.package + ".controller",
193744
+ serviceSource: serviceSrc,
193745
+ });
193746
+ this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193747
+
193748
+ await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193749
+ userPrompt: userPrompt,
193750
+ menuUrl: where.menu.url,
193751
+ menuName: where.menu.name,
193752
+ baseClass: srcPath.baseClass,
193753
+ controllerSource: controllerSrc,
193754
+ tableDefinitions: columnInfo,
193755
+ });
193756
+ this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193757
+
193758
+ //await this.#generateRealFile(srcPath);
193759
+
193760
+ return "OK";
193708
193761
  }
193709
193762
  }
193710
193763
 
@@ -275,7 +275,7 @@ export class IdeAi
275
275
  controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
276
276
  service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
277
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
+ javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
279
279
  };
280
280
  /***
281
281
  return {
@@ -290,10 +290,6 @@ export class IdeAi
290
290
 
291
291
  generateSourceClient = async (userPrompt) => {
292
292
 
293
- console.log(this.#parent.config);
294
- console.log(this.#parent.settings.projectName);
295
- return;
296
-
297
293
  this.#createModel();
298
294
 
299
295
  const what = await this.#what(userPrompt);
@@ -347,7 +343,7 @@ export class IdeAi
347
343
  });
348
344
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
349
345
 
350
- await this.#generateRealFile(srcPath);
346
+ //await this.#generateRealFile(srcPath);
351
347
 
352
348
  return "OK";
353
349
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.208.0",
4
+ "version": "0.210.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -275,7 +275,7 @@ export class IdeAi
275
275
  controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
276
276
  service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
277
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
+ javascript: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
279
279
  };
280
280
  /***
281
281
  return {
@@ -290,10 +290,6 @@ export class IdeAi
290
290
 
291
291
  generateSourceClient = async (userPrompt) => {
292
292
 
293
- console.log(this.#parent.config);
294
- console.log(this.#parent.settings.projectName);
295
- return;
296
-
297
293
  this.#createModel();
298
294
 
299
295
  const what = await this.#what(userPrompt);
@@ -347,7 +343,7 @@ export class IdeAi
347
343
  });
348
344
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
349
345
 
350
- await this.#generateRealFile(srcPath);
346
+ //await this.#generateRealFile(srcPath);
351
347
 
352
348
  return "OK";
353
349
  }