ide-assi 0.283.0 → 0.285.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.
@@ -193607,7 +193607,7 @@ class IdeAi
193607
193607
 
193608
193608
  #invoke = async (path, params) => {
193609
193609
  const prompt = await IdeUtils.generatePrompt(path, params);
193610
-
193610
+ console.log(prompt);
193611
193611
  try {
193612
193612
  const response = await this.#model.invoke([
193613
193613
  //new SystemMessage(systemMessage),
@@ -193735,7 +193735,6 @@ class IdeAi
193735
193735
  console.log(where);
193736
193736
 
193737
193737
  const srcPath = this.#getSourcePath(where.menu.url);
193738
-
193739
193738
  console.log(srcPath);
193740
193739
 
193741
193740
  const columnInfo = await this.#getColumnInfo(where.table);
@@ -193832,7 +193831,7 @@ class IdeAi
193832
193831
 
193833
193832
  const columnInfo = await this.#getColumnInfo(where.table);
193834
193833
 
193835
- const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
193834
+ await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
193836
193835
  userPrompt: userPrompt,
193837
193836
  originSrc: src.mybatis,
193838
193837
  resultType: srcPath.resultType,
@@ -193841,43 +193840,7 @@ class IdeAi
193841
193840
  });
193842
193841
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193843
193842
 
193844
- const serviceSrc = await this.#generateTmplFile("/prompts/meta/U.BuildService.txt", "service.java", {
193845
- userPrompt: userPrompt,
193846
- originSrc: src.service,
193847
- baseClass: srcPath.baseClass,
193848
- myBatisPath: srcPath.mybatis,
193849
- namespace: srcPath.namespace,
193850
- package: srcPath.package + ".service",
193851
- mybatisXmlSource: mybatisXmlSource,
193852
- });
193853
- this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
193854
-
193855
-
193856
- const controllerSrc = await this.#generateTmplFile("/prompts/meta/U.BuildController.txt", "controller.java", {
193857
- userPrompt: userPrompt,
193858
- originSrc: src.controller,
193859
- baseClass: srcPath.baseClass,
193860
- menuUrl: where.menu.url,
193861
- package: srcPath.package + ".controller",
193862
- serviceSource: serviceSrc,
193863
- });
193864
- this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193865
-
193866
-
193867
- await this.#generateTmplFile("/prompts/meta/U.BuildReactJsx.txt", "react.jsx", {
193868
- userPrompt: userPrompt,
193869
- originSrc: src.javascript,
193870
- menuUrl: where.menu.url,
193871
- menuName: where.menu.name,
193872
- baseClass: srcPath.baseClass,
193873
- controllerSource: controllerSrc,
193874
- tableDefinitions: columnInfo,
193875
- });
193876
- this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193877
-
193878
- console.log(src.javascript);
193879
-
193880
- await this.#generateRealFile(srcPath);
193843
+ return;
193881
193844
  };
193882
193845
 
193883
193846
  generateSourceClient = async (userPrompt) => {
@@ -193603,7 +193603,7 @@ class IdeAi
193603
193603
 
193604
193604
  #invoke = async (path, params) => {
193605
193605
  const prompt = await IdeUtils.generatePrompt(path, params);
193606
-
193606
+ console.log(prompt);
193607
193607
  try {
193608
193608
  const response = await this.#model.invoke([
193609
193609
  //new SystemMessage(systemMessage),
@@ -193731,7 +193731,6 @@ class IdeAi
193731
193731
  console.log(where);
193732
193732
 
193733
193733
  const srcPath = this.#getSourcePath(where.menu.url);
193734
-
193735
193734
  console.log(srcPath);
193736
193735
 
193737
193736
  const columnInfo = await this.#getColumnInfo(where.table);
@@ -193828,7 +193827,7 @@ class IdeAi
193828
193827
 
193829
193828
  const columnInfo = await this.#getColumnInfo(where.table);
193830
193829
 
193831
- const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
193830
+ await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
193832
193831
  userPrompt: userPrompt,
193833
193832
  originSrc: src.mybatis,
193834
193833
  resultType: srcPath.resultType,
@@ -193837,43 +193836,7 @@ class IdeAi
193837
193836
  });
193838
193837
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193839
193838
 
193840
- const serviceSrc = await this.#generateTmplFile("/prompts/meta/U.BuildService.txt", "service.java", {
193841
- userPrompt: userPrompt,
193842
- originSrc: src.service,
193843
- baseClass: srcPath.baseClass,
193844
- myBatisPath: srcPath.mybatis,
193845
- namespace: srcPath.namespace,
193846
- package: srcPath.package + ".service",
193847
- mybatisXmlSource: mybatisXmlSource,
193848
- });
193849
- this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
193850
-
193851
-
193852
- const controllerSrc = await this.#generateTmplFile("/prompts/meta/U.BuildController.txt", "controller.java", {
193853
- userPrompt: userPrompt,
193854
- originSrc: src.controller,
193855
- baseClass: srcPath.baseClass,
193856
- menuUrl: where.menu.url,
193857
- package: srcPath.package + ".controller",
193858
- serviceSource: serviceSrc,
193859
- });
193860
- this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193861
-
193862
-
193863
- await this.#generateTmplFile("/prompts/meta/U.BuildReactJsx.txt", "react.jsx", {
193864
- userPrompt: userPrompt,
193865
- originSrc: src.javascript,
193866
- menuUrl: where.menu.url,
193867
- menuName: where.menu.name,
193868
- baseClass: srcPath.baseClass,
193869
- controllerSource: controllerSrc,
193870
- tableDefinitions: columnInfo,
193871
- });
193872
- this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193873
-
193874
- console.log(src.javascript);
193875
-
193876
- await this.#generateRealFile(srcPath);
193839
+ return;
193877
193840
  };
193878
193841
 
193879
193842
  generateSourceClient = async (userPrompt) => {
@@ -188,7 +188,7 @@ export class IdeAi
188
188
 
189
189
  #invoke = async (path, params) => {
190
190
  const prompt = await IdeUtils.generatePrompt(path, params);
191
-
191
+ console.log(prompt);
192
192
  try {
193
193
  const response = await this.#model.invoke([
194
194
  //new SystemMessage(systemMessage),
@@ -316,7 +316,6 @@ export class IdeAi
316
316
  console.log(where);
317
317
 
318
318
  const srcPath = this.#getSourcePath(where.menu.url);
319
-
320
319
  console.log(srcPath);
321
320
 
322
321
  const columnInfo = await this.#getColumnInfo(where.table);
@@ -422,6 +421,8 @@ export class IdeAi
422
421
  });
423
422
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
424
423
 
424
+ return;
425
+
425
426
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/U.BuildService.txt", "service.java", {
426
427
  userPrompt: userPrompt,
427
428
  originSrc: src.service,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.283.0",
4
+ "version": "0.285.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -188,7 +188,7 @@ export class IdeAi
188
188
 
189
189
  #invoke = async (path, params) => {
190
190
  const prompt = await IdeUtils.generatePrompt(path, params);
191
-
191
+ console.log(prompt);
192
192
  try {
193
193
  const response = await this.#model.invoke([
194
194
  //new SystemMessage(systemMessage),
@@ -316,7 +316,6 @@ export class IdeAi
316
316
  console.log(where);
317
317
 
318
318
  const srcPath = this.#getSourcePath(where.menu.url);
319
-
320
319
  console.log(srcPath);
321
320
 
322
321
  const columnInfo = await this.#getColumnInfo(where.table);
@@ -422,6 +421,8 @@ export class IdeAi
422
421
  });
423
422
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
424
423
 
424
+ return;
425
+
425
426
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/U.BuildService.txt", "service.java", {
426
427
  userPrompt: userPrompt,
427
428
  originSrc: src.service,