ide-assi 0.214.0 → 0.217.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 +70 -4
- package/dist/bundle.esm.js +70 -4
- package/dist/components/ideAi.js +70 -4
- package/package.json +1 -1
- package/src/components/ideAi.js +70 -4
package/dist/bundle.cjs.js
CHANGED
|
@@ -193704,12 +193704,61 @@ class IdeAi
|
|
|
193704
193704
|
};*/
|
|
193705
193705
|
};
|
|
193706
193706
|
|
|
193707
|
-
|
|
193707
|
+
#createSource = async (userPrompt) => {
|
|
193708
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193709
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193708
193710
|
|
|
193709
|
-
|
|
193711
|
+
console.log(where);
|
|
193710
193712
|
|
|
193711
|
-
|
|
193712
|
-
|
|
193713
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193714
|
+
|
|
193715
|
+
console.log(srcPath);
|
|
193716
|
+
|
|
193717
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193718
|
+
|
|
193719
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193720
|
+
userPrompt: userPrompt,
|
|
193721
|
+
resultType: srcPath.resultType,
|
|
193722
|
+
namespace: srcPath.namespace,
|
|
193723
|
+
tableDefinitions: columnInfo
|
|
193724
|
+
});
|
|
193725
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193726
|
+
|
|
193727
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193728
|
+
userPrompt: userPrompt,
|
|
193729
|
+
baseClass: srcPath.baseClass,
|
|
193730
|
+
myBatisPath: srcPath.mybatis,
|
|
193731
|
+
namespace: srcPath.namespace,
|
|
193732
|
+
package: srcPath.package + ".service",
|
|
193733
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193734
|
+
});
|
|
193735
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193736
|
+
|
|
193737
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193738
|
+
userPrompt: userPrompt,
|
|
193739
|
+
baseClass: srcPath.baseClass,
|
|
193740
|
+
menuUrl: where.menu.url,
|
|
193741
|
+
package: srcPath.package + ".controller",
|
|
193742
|
+
serviceSource: serviceSrc,
|
|
193743
|
+
});
|
|
193744
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193745
|
+
|
|
193746
|
+
await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193747
|
+
userPrompt: userPrompt,
|
|
193748
|
+
menuUrl: where.menu.url,
|
|
193749
|
+
menuName: where.menu.name,
|
|
193750
|
+
baseClass: srcPath.baseClass,
|
|
193751
|
+
controllerSource: controllerSrc,
|
|
193752
|
+
tableDefinitions: columnInfo,
|
|
193753
|
+
});
|
|
193754
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193755
|
+
|
|
193756
|
+
await this.#generateRealFile(srcPath);
|
|
193757
|
+
};
|
|
193758
|
+
|
|
193759
|
+
#modifySource = async (userPrompt) => {
|
|
193760
|
+
|
|
193761
|
+
console.log("modifySource");
|
|
193713
193762
|
|
|
193714
193763
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193715
193764
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
@@ -193760,6 +193809,23 @@ class IdeAi
|
|
|
193760
193809
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193761
193810
|
|
|
193762
193811
|
await this.#generateRealFile(srcPath);
|
|
193812
|
+
};
|
|
193813
|
+
|
|
193814
|
+
generateSourceClient = async (userPrompt) => {
|
|
193815
|
+
|
|
193816
|
+
this.#createModel();
|
|
193817
|
+
|
|
193818
|
+
const what = await this.#what(userPrompt);
|
|
193819
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193820
|
+
|
|
193821
|
+
console.log(what);
|
|
193822
|
+
|
|
193823
|
+
if (what === "1") {
|
|
193824
|
+
this.#createSource(userPrompt);
|
|
193825
|
+
}
|
|
193826
|
+
else if (what === "2") {
|
|
193827
|
+
this.#modifySource(userPrompt);
|
|
193828
|
+
}
|
|
193763
193829
|
|
|
193764
193830
|
return "OK";
|
|
193765
193831
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193700,12 +193700,61 @@ class IdeAi
|
|
|
193700
193700
|
};*/
|
|
193701
193701
|
};
|
|
193702
193702
|
|
|
193703
|
-
|
|
193703
|
+
#createSource = async (userPrompt) => {
|
|
193704
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193705
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193704
193706
|
|
|
193705
|
-
|
|
193707
|
+
console.log(where);
|
|
193706
193708
|
|
|
193707
|
-
|
|
193708
|
-
|
|
193709
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193710
|
+
|
|
193711
|
+
console.log(srcPath);
|
|
193712
|
+
|
|
193713
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193714
|
+
|
|
193715
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193716
|
+
userPrompt: userPrompt,
|
|
193717
|
+
resultType: srcPath.resultType,
|
|
193718
|
+
namespace: srcPath.namespace,
|
|
193719
|
+
tableDefinitions: columnInfo
|
|
193720
|
+
});
|
|
193721
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193722
|
+
|
|
193723
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193724
|
+
userPrompt: userPrompt,
|
|
193725
|
+
baseClass: srcPath.baseClass,
|
|
193726
|
+
myBatisPath: srcPath.mybatis,
|
|
193727
|
+
namespace: srcPath.namespace,
|
|
193728
|
+
package: srcPath.package + ".service",
|
|
193729
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193730
|
+
});
|
|
193731
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193732
|
+
|
|
193733
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193734
|
+
userPrompt: userPrompt,
|
|
193735
|
+
baseClass: srcPath.baseClass,
|
|
193736
|
+
menuUrl: where.menu.url,
|
|
193737
|
+
package: srcPath.package + ".controller",
|
|
193738
|
+
serviceSource: serviceSrc,
|
|
193739
|
+
});
|
|
193740
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193741
|
+
|
|
193742
|
+
await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193743
|
+
userPrompt: userPrompt,
|
|
193744
|
+
menuUrl: where.menu.url,
|
|
193745
|
+
menuName: where.menu.name,
|
|
193746
|
+
baseClass: srcPath.baseClass,
|
|
193747
|
+
controllerSource: controllerSrc,
|
|
193748
|
+
tableDefinitions: columnInfo,
|
|
193749
|
+
});
|
|
193750
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193751
|
+
|
|
193752
|
+
await this.#generateRealFile(srcPath);
|
|
193753
|
+
};
|
|
193754
|
+
|
|
193755
|
+
#modifySource = async (userPrompt) => {
|
|
193756
|
+
|
|
193757
|
+
console.log("modifySource");
|
|
193709
193758
|
|
|
193710
193759
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193711
193760
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
@@ -193756,6 +193805,23 @@ class IdeAi
|
|
|
193756
193805
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193757
193806
|
|
|
193758
193807
|
await this.#generateRealFile(srcPath);
|
|
193808
|
+
};
|
|
193809
|
+
|
|
193810
|
+
generateSourceClient = async (userPrompt) => {
|
|
193811
|
+
|
|
193812
|
+
this.#createModel();
|
|
193813
|
+
|
|
193814
|
+
const what = await this.#what(userPrompt);
|
|
193815
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
193816
|
+
|
|
193817
|
+
console.log(what);
|
|
193818
|
+
|
|
193819
|
+
if (what === "1") {
|
|
193820
|
+
this.#createSource(userPrompt);
|
|
193821
|
+
}
|
|
193822
|
+
else if (what === "2") {
|
|
193823
|
+
this.#modifySource(userPrompt);
|
|
193824
|
+
}
|
|
193759
193825
|
|
|
193760
193826
|
return "OK";
|
|
193761
193827
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -288,12 +288,61 @@ export class IdeAi
|
|
|
288
288
|
};*/
|
|
289
289
|
};
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
#createSource = async (userPrompt) => {
|
|
292
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
293
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
292
294
|
|
|
293
|
-
|
|
295
|
+
console.log(where);
|
|
294
296
|
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
298
|
+
|
|
299
|
+
console.log(srcPath);
|
|
300
|
+
|
|
301
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
302
|
+
|
|
303
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
304
|
+
userPrompt: userPrompt,
|
|
305
|
+
resultType: srcPath.resultType,
|
|
306
|
+
namespace: srcPath.namespace,
|
|
307
|
+
tableDefinitions: columnInfo
|
|
308
|
+
});
|
|
309
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
310
|
+
|
|
311
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
312
|
+
userPrompt: userPrompt,
|
|
313
|
+
baseClass: srcPath.baseClass,
|
|
314
|
+
myBatisPath: srcPath.mybatis,
|
|
315
|
+
namespace: srcPath.namespace,
|
|
316
|
+
package: srcPath.package + ".service",
|
|
317
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
318
|
+
});
|
|
319
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
320
|
+
|
|
321
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
322
|
+
userPrompt: userPrompt,
|
|
323
|
+
baseClass: srcPath.baseClass,
|
|
324
|
+
menuUrl: where.menu.url,
|
|
325
|
+
package: srcPath.package + ".controller",
|
|
326
|
+
serviceSource: serviceSrc,
|
|
327
|
+
});
|
|
328
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
329
|
+
|
|
330
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
331
|
+
userPrompt: userPrompt,
|
|
332
|
+
menuUrl: where.menu.url,
|
|
333
|
+
menuName: where.menu.name,
|
|
334
|
+
baseClass: srcPath.baseClass,
|
|
335
|
+
controllerSource: controllerSrc,
|
|
336
|
+
tableDefinitions: columnInfo,
|
|
337
|
+
});
|
|
338
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
339
|
+
|
|
340
|
+
await this.#generateRealFile(srcPath);
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
#modifySource = async (userPrompt) => {
|
|
344
|
+
|
|
345
|
+
console.log("modifySource");
|
|
297
346
|
|
|
298
347
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
299
348
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
@@ -344,6 +393,23 @@ export class IdeAi
|
|
|
344
393
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
345
394
|
|
|
346
395
|
await this.#generateRealFile(srcPath);
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
generateSourceClient = async (userPrompt) => {
|
|
399
|
+
|
|
400
|
+
this.#createModel();
|
|
401
|
+
|
|
402
|
+
const what = await this.#what(userPrompt);
|
|
403
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
404
|
+
|
|
405
|
+
console.log(what);
|
|
406
|
+
|
|
407
|
+
if (what === "1") {
|
|
408
|
+
this.#createSource(userPrompt);
|
|
409
|
+
}
|
|
410
|
+
else if (what === "2") {
|
|
411
|
+
this.#modifySource(userPrompt);
|
|
412
|
+
}
|
|
347
413
|
|
|
348
414
|
return "OK";
|
|
349
415
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -288,12 +288,61 @@ export class IdeAi
|
|
|
288
288
|
};*/
|
|
289
289
|
};
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
#createSource = async (userPrompt) => {
|
|
292
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
293
|
+
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
292
294
|
|
|
293
|
-
|
|
295
|
+
console.log(where);
|
|
294
296
|
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
298
|
+
|
|
299
|
+
console.log(srcPath);
|
|
300
|
+
|
|
301
|
+
const columnInfo = await this.#getColumnInfo(where.table);
|
|
302
|
+
|
|
303
|
+
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
304
|
+
userPrompt: userPrompt,
|
|
305
|
+
resultType: srcPath.resultType,
|
|
306
|
+
namespace: srcPath.namespace,
|
|
307
|
+
tableDefinitions: columnInfo
|
|
308
|
+
});
|
|
309
|
+
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
310
|
+
|
|
311
|
+
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
312
|
+
userPrompt: userPrompt,
|
|
313
|
+
baseClass: srcPath.baseClass,
|
|
314
|
+
myBatisPath: srcPath.mybatis,
|
|
315
|
+
namespace: srcPath.namespace,
|
|
316
|
+
package: srcPath.package + ".service",
|
|
317
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
318
|
+
});
|
|
319
|
+
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
320
|
+
|
|
321
|
+
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
322
|
+
userPrompt: userPrompt,
|
|
323
|
+
baseClass: srcPath.baseClass,
|
|
324
|
+
menuUrl: where.menu.url,
|
|
325
|
+
package: srcPath.package + ".controller",
|
|
326
|
+
serviceSource: serviceSrc,
|
|
327
|
+
});
|
|
328
|
+
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
329
|
+
|
|
330
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
331
|
+
userPrompt: userPrompt,
|
|
332
|
+
menuUrl: where.menu.url,
|
|
333
|
+
menuName: where.menu.name,
|
|
334
|
+
baseClass: srcPath.baseClass,
|
|
335
|
+
controllerSource: controllerSrc,
|
|
336
|
+
tableDefinitions: columnInfo,
|
|
337
|
+
});
|
|
338
|
+
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
339
|
+
|
|
340
|
+
await this.#generateRealFile(srcPath);
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
#modifySource = async (userPrompt) => {
|
|
344
|
+
|
|
345
|
+
console.log("modifySource");
|
|
297
346
|
|
|
298
347
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
299
348
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
@@ -344,6 +393,23 @@ export class IdeAi
|
|
|
344
393
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
345
394
|
|
|
346
395
|
await this.#generateRealFile(srcPath);
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
generateSourceClient = async (userPrompt) => {
|
|
399
|
+
|
|
400
|
+
this.#createModel();
|
|
401
|
+
|
|
402
|
+
const what = await this.#what(userPrompt);
|
|
403
|
+
this.#parent.addMessage("명령을 이해했습니다.");
|
|
404
|
+
|
|
405
|
+
console.log(what);
|
|
406
|
+
|
|
407
|
+
if (what === "1") {
|
|
408
|
+
this.#createSource(userPrompt);
|
|
409
|
+
}
|
|
410
|
+
else if (what === "2") {
|
|
411
|
+
this.#modifySource(userPrompt);
|
|
412
|
+
}
|
|
347
413
|
|
|
348
414
|
return "OK";
|
|
349
415
|
}
|