ide-assi 0.204.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,10 +193741,6 @@ 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
193745
  userPrompt: userPrompt,
193753
193746
  resultType: srcPath.resultType,
@@ -193775,17 +193768,18 @@ class IdeAi
193775
193768
  });
193776
193769
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193777
193770
 
193778
- return "OKKKK";
193779
-
193780
193771
  const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193781
193772
  userPrompt: userPrompt,
193782
193773
  menuUrl: where.menu.url,
193783
193774
  menuName: where.menu.name,
193775
+ baseClass: srcPath.baseClass,
193784
193776
  controllerSource: controllerSrc,
193785
193777
  tableDefinitions: columnInfo,
193786
193778
  });
193787
193779
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193788
193780
 
193781
+ return "OKKKK";
193782
+
193789
193783
  await this.#generateRealFile(where);
193790
193784
  }
193791
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,10 +193737,6 @@ 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
193741
  userPrompt: userPrompt,
193749
193742
  resultType: srcPath.resultType,
@@ -193771,17 +193764,18 @@ class IdeAi
193771
193764
  });
193772
193765
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193773
193766
 
193774
- return "OKKKK";
193775
-
193776
193767
  const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193777
193768
  userPrompt: userPrompt,
193778
193769
  menuUrl: where.menu.url,
193779
193770
  menuName: where.menu.name,
193771
+ baseClass: srcPath.baseClass,
193780
193772
  controllerSource: controllerSrc,
193781
193773
  tableDefinitions: columnInfo,
193782
193774
  });
193783
193775
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193784
193776
 
193777
+ return "OKKKK";
193778
+
193785
193779
  await this.#generateRealFile(where);
193786
193780
  }
193787
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,10 +339,6 @@ 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
343
  userPrompt: userPrompt,
351
344
  resultType: srcPath.resultType,
@@ -373,17 +366,18 @@ export class IdeAi
373
366
  });
374
367
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
375
368
 
376
- return "OKKKK";
377
-
378
369
  const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
379
370
  userPrompt: userPrompt,
380
371
  menuUrl: where.menu.url,
381
372
  menuName: where.menu.name,
373
+ baseClass: srcPath.baseClass,
382
374
  controllerSource: controllerSrc,
383
375
  tableDefinitions: columnInfo,
384
376
  });
385
377
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
386
378
 
379
+ return "OKKKK";
380
+
387
381
  await this.#generateRealFile(where);
388
382
  }
389
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.204.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,10 +339,6 @@ 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
343
  userPrompt: userPrompt,
351
344
  resultType: srcPath.resultType,
@@ -373,17 +366,18 @@ export class IdeAi
373
366
  });
374
367
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
375
368
 
376
- return "OKKKK";
377
-
378
369
  const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
379
370
  userPrompt: userPrompt,
380
371
  menuUrl: where.menu.url,
381
372
  menuName: where.menu.name,
373
+ baseClass: srcPath.baseClass,
382
374
  controllerSource: controllerSrc,
383
375
  tableDefinitions: columnInfo,
384
376
  });
385
377
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
386
378
 
379
+ return "OKKKK";
380
+
387
381
  await this.#generateRealFile(where);
388
382
  }
389
383
  catch (error) {