ide-assi 0.223.0 → 0.224.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.
- package/dist/bundle.cjs.js +24 -2
- package/dist/bundle.esm.js +24 -2
- package/dist/components/ideAi.js +8 -5
- package/package.json +1 -1
- package/src/components/ideAi.js +8 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -193786,12 +193786,34 @@ class IdeAi
|
|
|
193786
193786
|
console.log(src);
|
|
193787
193787
|
|
|
193788
193788
|
const response = await fetch(srcPath.javascript);
|
|
193789
|
-
|
|
193789
|
+
src.javascript = await response.text();
|
|
193790
193790
|
|
|
193791
|
-
console.log(
|
|
193791
|
+
console.log(src);
|
|
193792
193792
|
|
|
193793
193793
|
//const template = await fetch(path).then(res => res.text());
|
|
193794
193794
|
|
|
193795
|
+
|
|
193796
|
+
|
|
193797
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193798
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193799
|
+
|
|
193800
|
+
console.log(where);
|
|
193801
|
+
|
|
193802
|
+
//const srcPath = this.#getSourcePath(where.menu.url);
|
|
193803
|
+
|
|
193804
|
+
console.log(srcPath);
|
|
193805
|
+
|
|
193806
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193807
|
+
|
|
193808
|
+
await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193809
|
+
userPrompt: userPrompt,
|
|
193810
|
+
originSrc: src.mybatis,
|
|
193811
|
+
resultType: srcPath.resultType,
|
|
193812
|
+
namespace: srcPath.namespace,
|
|
193813
|
+
tableDefinitions: columnInfo,
|
|
193814
|
+
});
|
|
193815
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193816
|
+
|
|
193795
193817
|
return;
|
|
193796
193818
|
};
|
|
193797
193819
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193782,12 +193782,34 @@ class IdeAi
|
|
|
193782
193782
|
console.log(src);
|
|
193783
193783
|
|
|
193784
193784
|
const response = await fetch(srcPath.javascript);
|
|
193785
|
-
|
|
193785
|
+
src.javascript = await response.text();
|
|
193786
193786
|
|
|
193787
|
-
console.log(
|
|
193787
|
+
console.log(src);
|
|
193788
193788
|
|
|
193789
193789
|
//const template = await fetch(path).then(res => res.text());
|
|
193790
193790
|
|
|
193791
|
+
|
|
193792
|
+
|
|
193793
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193794
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193795
|
+
|
|
193796
|
+
console.log(where);
|
|
193797
|
+
|
|
193798
|
+
//const srcPath = this.#getSourcePath(where.menu.url);
|
|
193799
|
+
|
|
193800
|
+
console.log(srcPath);
|
|
193801
|
+
|
|
193802
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193803
|
+
|
|
193804
|
+
await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193805
|
+
userPrompt: userPrompt,
|
|
193806
|
+
originSrc: src.mybatis,
|
|
193807
|
+
resultType: srcPath.resultType,
|
|
193808
|
+
namespace: srcPath.namespace,
|
|
193809
|
+
tableDefinitions: columnInfo,
|
|
193810
|
+
});
|
|
193811
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193812
|
+
|
|
193791
193813
|
return;
|
|
193792
193814
|
};
|
|
193793
193815
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -370,13 +370,13 @@ export class IdeAi
|
|
|
370
370
|
console.log(src);
|
|
371
371
|
|
|
372
372
|
const response = await fetch(srcPath.javascript);
|
|
373
|
-
|
|
373
|
+
src.javascript = await response.text();
|
|
374
374
|
|
|
375
|
-
console.log(
|
|
375
|
+
console.log(src);
|
|
376
376
|
|
|
377
377
|
//const template = await fetch(path).then(res => res.text());
|
|
378
378
|
|
|
379
|
-
|
|
379
|
+
|
|
380
380
|
|
|
381
381
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
382
382
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
@@ -389,14 +389,17 @@ export class IdeAi
|
|
|
389
389
|
|
|
390
390
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
391
391
|
|
|
392
|
-
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
392
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
393
393
|
userPrompt: userPrompt,
|
|
394
|
+
originSrc: src.mybatis,
|
|
394
395
|
resultType: srcPath.resultType,
|
|
395
396
|
namespace: srcPath.namespace,
|
|
396
|
-
tableDefinitions: columnInfo
|
|
397
|
+
tableDefinitions: columnInfo,
|
|
397
398
|
});
|
|
398
399
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
399
400
|
|
|
401
|
+
return;
|
|
402
|
+
|
|
400
403
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
401
404
|
userPrompt: userPrompt,
|
|
402
405
|
baseClass: srcPath.baseClass,
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -370,13 +370,13 @@ export class IdeAi
|
|
|
370
370
|
console.log(src);
|
|
371
371
|
|
|
372
372
|
const response = await fetch(srcPath.javascript);
|
|
373
|
-
|
|
373
|
+
src.javascript = await response.text();
|
|
374
374
|
|
|
375
|
-
console.log(
|
|
375
|
+
console.log(src);
|
|
376
376
|
|
|
377
377
|
//const template = await fetch(path).then(res => res.text());
|
|
378
378
|
|
|
379
|
-
|
|
379
|
+
|
|
380
380
|
|
|
381
381
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
382
382
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
@@ -389,14 +389,17 @@ export class IdeAi
|
|
|
389
389
|
|
|
390
390
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
391
391
|
|
|
392
|
-
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
392
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/U.BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
393
393
|
userPrompt: userPrompt,
|
|
394
|
+
originSrc: src.mybatis,
|
|
394
395
|
resultType: srcPath.resultType,
|
|
395
396
|
namespace: srcPath.namespace,
|
|
396
|
-
tableDefinitions: columnInfo
|
|
397
|
+
tableDefinitions: columnInfo,
|
|
397
398
|
});
|
|
398
399
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
399
400
|
|
|
401
|
+
return;
|
|
402
|
+
|
|
400
403
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
401
404
|
userPrompt: userPrompt,
|
|
402
405
|
baseClass: srcPath.baseClass,
|