ide-assi 0.221.0 → 0.223.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 +10 -53
- package/dist/bundle.esm.js +10 -53
- package/dist/components/ideAi.js +12 -5
- package/package.json +1 -1
- package/src/components/ideAi.js +12 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -193688,6 +193688,7 @@ class IdeAi
|
|
|
193688
193688
|
baseClass: fileName,
|
|
193689
193689
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193690
193690
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193691
|
+
javascript: `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193691
193692
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193692
193693
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193693
193694
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -193765,8 +193766,8 @@ class IdeAi
|
|
|
193765
193766
|
const href = el.getAttribute("href");
|
|
193766
193767
|
el.getAttribute("title");
|
|
193767
193768
|
|
|
193768
|
-
const
|
|
193769
|
-
console.log(
|
|
193769
|
+
const srcPath = this.#getSourcePath(href);
|
|
193770
|
+
console.log(srcPath);
|
|
193770
193771
|
|
|
193771
193772
|
/**
|
|
193772
193773
|
* {
|
|
@@ -193781,61 +193782,17 @@ class IdeAi
|
|
|
193781
193782
|
* "javascriptPullPath": "ide-assi-fe-vite-react-js/src/views/tmpla/doc-manager.jsx"
|
|
193782
193783
|
* }
|
|
193783
193784
|
*/
|
|
193784
|
-
const
|
|
193785
|
-
console.log(
|
|
193786
|
-
|
|
193787
|
-
//const template = await fetch(path).then(res => res.text());
|
|
193788
|
-
|
|
193789
|
-
|
|
193790
|
-
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193791
|
-
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193792
|
-
|
|
193793
|
-
console.log(where);
|
|
193794
|
-
|
|
193795
|
-
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193796
|
-
|
|
193797
|
-
console.log(srcPath);
|
|
193785
|
+
const src = await api.post("/api/source/read", srcPath);
|
|
193786
|
+
console.log(src);
|
|
193798
193787
|
|
|
193799
|
-
const
|
|
193800
|
-
|
|
193801
|
-
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193802
|
-
userPrompt: userPrompt,
|
|
193803
|
-
resultType: srcPath.resultType,
|
|
193804
|
-
namespace: srcPath.namespace,
|
|
193805
|
-
tableDefinitions: columnInfo
|
|
193806
|
-
});
|
|
193807
|
-
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193808
|
-
|
|
193809
|
-
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193810
|
-
userPrompt: userPrompt,
|
|
193811
|
-
baseClass: srcPath.baseClass,
|
|
193812
|
-
myBatisPath: srcPath.mybatis,
|
|
193813
|
-
namespace: srcPath.namespace,
|
|
193814
|
-
package: srcPath.package + ".service",
|
|
193815
|
-
mybatisXmlSource: mybatisXmlSource,
|
|
193816
|
-
});
|
|
193817
|
-
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193788
|
+
const response = await fetch(srcPath.javascript);
|
|
193789
|
+
const source = await response.text();
|
|
193818
193790
|
|
|
193819
|
-
|
|
193820
|
-
userPrompt: userPrompt,
|
|
193821
|
-
baseClass: srcPath.baseClass,
|
|
193822
|
-
menuUrl: where.menu.url,
|
|
193823
|
-
package: srcPath.package + ".controller",
|
|
193824
|
-
serviceSource: serviceSrc,
|
|
193825
|
-
});
|
|
193826
|
-
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193791
|
+
console.log(source);
|
|
193827
193792
|
|
|
193828
|
-
await
|
|
193829
|
-
userPrompt: userPrompt,
|
|
193830
|
-
menuUrl: where.menu.url,
|
|
193831
|
-
menuName: where.menu.name,
|
|
193832
|
-
baseClass: srcPath.baseClass,
|
|
193833
|
-
controllerSource: controllerSrc,
|
|
193834
|
-
tableDefinitions: columnInfo,
|
|
193835
|
-
});
|
|
193836
|
-
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193793
|
+
//const template = await fetch(path).then(res => res.text());
|
|
193837
193794
|
|
|
193838
|
-
|
|
193795
|
+
return;
|
|
193839
193796
|
};
|
|
193840
193797
|
|
|
193841
193798
|
generateSourceClient = async (userPrompt) => {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193684,6 +193684,7 @@ class IdeAi
|
|
|
193684
193684
|
baseClass: fileName,
|
|
193685
193685
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193686
193686
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193687
|
+
javascript: `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193687
193688
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193688
193689
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193689
193690
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -193761,8 +193762,8 @@ class IdeAi
|
|
|
193761
193762
|
const href = el.getAttribute("href");
|
|
193762
193763
|
el.getAttribute("title");
|
|
193763
193764
|
|
|
193764
|
-
const
|
|
193765
|
-
console.log(
|
|
193765
|
+
const srcPath = this.#getSourcePath(href);
|
|
193766
|
+
console.log(srcPath);
|
|
193766
193767
|
|
|
193767
193768
|
/**
|
|
193768
193769
|
* {
|
|
@@ -193777,61 +193778,17 @@ class IdeAi
|
|
|
193777
193778
|
* "javascriptPullPath": "ide-assi-fe-vite-react-js/src/views/tmpla/doc-manager.jsx"
|
|
193778
193779
|
* }
|
|
193779
193780
|
*/
|
|
193780
|
-
const
|
|
193781
|
-
console.log(
|
|
193782
|
-
|
|
193783
|
-
//const template = await fetch(path).then(res => res.text());
|
|
193784
|
-
|
|
193785
|
-
|
|
193786
|
-
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193787
|
-
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193788
|
-
|
|
193789
|
-
console.log(where);
|
|
193790
|
-
|
|
193791
|
-
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193792
|
-
|
|
193793
|
-
console.log(srcPath);
|
|
193781
|
+
const src = await api.post("/api/source/read", srcPath);
|
|
193782
|
+
console.log(src);
|
|
193794
193783
|
|
|
193795
|
-
const
|
|
193796
|
-
|
|
193797
|
-
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193798
|
-
userPrompt: userPrompt,
|
|
193799
|
-
resultType: srcPath.resultType,
|
|
193800
|
-
namespace: srcPath.namespace,
|
|
193801
|
-
tableDefinitions: columnInfo
|
|
193802
|
-
});
|
|
193803
|
-
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193804
|
-
|
|
193805
|
-
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193806
|
-
userPrompt: userPrompt,
|
|
193807
|
-
baseClass: srcPath.baseClass,
|
|
193808
|
-
myBatisPath: srcPath.mybatis,
|
|
193809
|
-
namespace: srcPath.namespace,
|
|
193810
|
-
package: srcPath.package + ".service",
|
|
193811
|
-
mybatisXmlSource: mybatisXmlSource,
|
|
193812
|
-
});
|
|
193813
|
-
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
193784
|
+
const response = await fetch(srcPath.javascript);
|
|
193785
|
+
const source = await response.text();
|
|
193814
193786
|
|
|
193815
|
-
|
|
193816
|
-
userPrompt: userPrompt,
|
|
193817
|
-
baseClass: srcPath.baseClass,
|
|
193818
|
-
menuUrl: where.menu.url,
|
|
193819
|
-
package: srcPath.package + ".controller",
|
|
193820
|
-
serviceSource: serviceSrc,
|
|
193821
|
-
});
|
|
193822
|
-
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193787
|
+
console.log(source);
|
|
193823
193788
|
|
|
193824
|
-
await
|
|
193825
|
-
userPrompt: userPrompt,
|
|
193826
|
-
menuUrl: where.menu.url,
|
|
193827
|
-
menuName: where.menu.name,
|
|
193828
|
-
baseClass: srcPath.baseClass,
|
|
193829
|
-
controllerSource: controllerSrc,
|
|
193830
|
-
tableDefinitions: columnInfo,
|
|
193831
|
-
});
|
|
193832
|
-
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193789
|
+
//const template = await fetch(path).then(res => res.text());
|
|
193833
193790
|
|
|
193834
|
-
|
|
193791
|
+
return;
|
|
193835
193792
|
};
|
|
193836
193793
|
|
|
193837
193794
|
generateSourceClient = async (userPrompt) => {
|
package/dist/components/ideAi.js
CHANGED
|
@@ -272,6 +272,7 @@ export class IdeAi
|
|
|
272
272
|
baseClass: fileName,
|
|
273
273
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
274
274
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
275
|
+
javascript: `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
275
276
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
276
277
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
277
278
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -349,8 +350,8 @@ export class IdeAi
|
|
|
349
350
|
const href = el.getAttribute("href");
|
|
350
351
|
const title = el.getAttribute("title");
|
|
351
352
|
|
|
352
|
-
const
|
|
353
|
-
console.log(
|
|
353
|
+
const srcPath = this.#getSourcePath(href);
|
|
354
|
+
console.log(srcPath);
|
|
354
355
|
|
|
355
356
|
/**
|
|
356
357
|
* {
|
|
@@ -365,18 +366,24 @@ export class IdeAi
|
|
|
365
366
|
* "javascriptPullPath": "ide-assi-fe-vite-react-js/src/views/tmpla/doc-manager.jsx"
|
|
366
367
|
* }
|
|
367
368
|
*/
|
|
368
|
-
const
|
|
369
|
-
console.log(
|
|
369
|
+
const src = await api.post("/api/source/read", srcPath);
|
|
370
|
+
console.log(src);
|
|
371
|
+
|
|
372
|
+
const response = await fetch(srcPath.javascript);
|
|
373
|
+
const source = await response.text();
|
|
374
|
+
|
|
375
|
+
console.log(source);
|
|
370
376
|
|
|
371
377
|
//const template = await fetch(path).then(res => res.text());
|
|
372
378
|
|
|
379
|
+
return;
|
|
373
380
|
|
|
374
381
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
375
382
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
376
383
|
|
|
377
384
|
console.log(where);
|
|
378
385
|
|
|
379
|
-
const srcPath = this.#getSourcePath(where.menu.url);
|
|
386
|
+
//const srcPath = this.#getSourcePath(where.menu.url);
|
|
380
387
|
|
|
381
388
|
console.log(srcPath);
|
|
382
389
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -272,6 +272,7 @@ export class IdeAi
|
|
|
272
272
|
baseClass: fileName,
|
|
273
273
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
274
274
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
275
|
+
javascript: `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
275
276
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
276
277
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
277
278
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -349,8 +350,8 @@ export class IdeAi
|
|
|
349
350
|
const href = el.getAttribute("href");
|
|
350
351
|
const title = el.getAttribute("title");
|
|
351
352
|
|
|
352
|
-
const
|
|
353
|
-
console.log(
|
|
353
|
+
const srcPath = this.#getSourcePath(href);
|
|
354
|
+
console.log(srcPath);
|
|
354
355
|
|
|
355
356
|
/**
|
|
356
357
|
* {
|
|
@@ -365,18 +366,24 @@ export class IdeAi
|
|
|
365
366
|
* "javascriptPullPath": "ide-assi-fe-vite-react-js/src/views/tmpla/doc-manager.jsx"
|
|
366
367
|
* }
|
|
367
368
|
*/
|
|
368
|
-
const
|
|
369
|
-
console.log(
|
|
369
|
+
const src = await api.post("/api/source/read", srcPath);
|
|
370
|
+
console.log(src);
|
|
371
|
+
|
|
372
|
+
const response = await fetch(srcPath.javascript);
|
|
373
|
+
const source = await response.text();
|
|
374
|
+
|
|
375
|
+
console.log(source);
|
|
370
376
|
|
|
371
377
|
//const template = await fetch(path).then(res => res.text());
|
|
372
378
|
|
|
379
|
+
return;
|
|
373
380
|
|
|
374
381
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
375
382
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
|
|
376
383
|
|
|
377
384
|
console.log(where);
|
|
378
385
|
|
|
379
|
-
const srcPath = this.#getSourcePath(where.menu.url);
|
|
386
|
+
//const srcPath = this.#getSourcePath(where.menu.url);
|
|
380
387
|
|
|
381
388
|
console.log(srcPath);
|
|
382
389
|
|