ide-assi 0.135.0 → 0.136.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 +6 -8
- package/dist/bundle.esm.js +6 -8
- package/dist/components/ideAi.js +5 -7
- package/package.json +1 -1
- package/src/components/ideAi.js +5 -7
package/dist/bundle.cjs.js
CHANGED
|
@@ -193510,19 +193510,17 @@ class IdeAi
|
|
|
193510
193510
|
return o;
|
|
193511
193511
|
};
|
|
193512
193512
|
|
|
193513
|
-
#generateRealFile = async (
|
|
193513
|
+
#generateRealFile = async (where) => {
|
|
193514
193514
|
|
|
193515
193515
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
193516
193516
|
|
|
193517
193517
|
const params = await Promise.all(
|
|
193518
193518
|
files.map(async (file) => ({
|
|
193519
|
-
path:
|
|
193519
|
+
path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
|
|
193520
193520
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
193521
193521
|
}))
|
|
193522
193522
|
);
|
|
193523
193523
|
|
|
193524
|
-
console.log(JSON.stringify({list:params}));
|
|
193525
|
-
|
|
193526
193524
|
await fetch(`/api/source/generateRealFile`, {
|
|
193527
193525
|
method: "POST",
|
|
193528
193526
|
headers: { "Content-Type": "application/json" },
|
|
@@ -193558,7 +193556,7 @@ class IdeAi
|
|
|
193558
193556
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193559
193557
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193560
193558
|
console.log(where);
|
|
193561
|
-
|
|
193559
|
+
/**
|
|
193562
193560
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193563
193561
|
|
|
193564
193562
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
@@ -193587,14 +193585,14 @@ class IdeAi
|
|
|
193587
193585
|
});
|
|
193588
193586
|
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193589
193587
|
|
|
193590
|
-
await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193588
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193591
193589
|
userPrompt: userPrompt,
|
|
193592
193590
|
menuUrl: where.menu.url,
|
|
193593
193591
|
controllerSource: controllerSrc,
|
|
193594
193592
|
});
|
|
193595
193593
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193596
|
-
|
|
193597
|
-
await this.#generateRealFile();
|
|
193594
|
+
*/
|
|
193595
|
+
await this.#generateRealFile(where);
|
|
193598
193596
|
|
|
193599
193597
|
return "OK";
|
|
193600
193598
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193506,19 +193506,17 @@ class IdeAi
|
|
|
193506
193506
|
return o;
|
|
193507
193507
|
};
|
|
193508
193508
|
|
|
193509
|
-
#generateRealFile = async (
|
|
193509
|
+
#generateRealFile = async (where) => {
|
|
193510
193510
|
|
|
193511
193511
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
193512
193512
|
|
|
193513
193513
|
const params = await Promise.all(
|
|
193514
193514
|
files.map(async (file) => ({
|
|
193515
|
-
path:
|
|
193515
|
+
path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
|
|
193516
193516
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
193517
193517
|
}))
|
|
193518
193518
|
);
|
|
193519
193519
|
|
|
193520
|
-
console.log(JSON.stringify({list:params}));
|
|
193521
|
-
|
|
193522
193520
|
await fetch(`/api/source/generateRealFile`, {
|
|
193523
193521
|
method: "POST",
|
|
193524
193522
|
headers: { "Content-Type": "application/json" },
|
|
@@ -193554,7 +193552,7 @@ class IdeAi
|
|
|
193554
193552
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193555
193553
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193556
193554
|
console.log(where);
|
|
193557
|
-
|
|
193555
|
+
/**
|
|
193558
193556
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193559
193557
|
|
|
193560
193558
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
@@ -193583,14 +193581,14 @@ class IdeAi
|
|
|
193583
193581
|
});
|
|
193584
193582
|
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
193585
193583
|
|
|
193586
|
-
await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193584
|
+
const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
|
|
193587
193585
|
userPrompt: userPrompt,
|
|
193588
193586
|
menuUrl: where.menu.url,
|
|
193589
193587
|
controllerSource: controllerSrc,
|
|
193590
193588
|
});
|
|
193591
193589
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193592
|
-
|
|
193593
|
-
await this.#generateRealFile();
|
|
193590
|
+
*/
|
|
193591
|
+
await this.#generateRealFile(where);
|
|
193594
193592
|
|
|
193595
193593
|
return "OK";
|
|
193596
193594
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -216,19 +216,17 @@ export class IdeAi
|
|
|
216
216
|
return o;
|
|
217
217
|
};
|
|
218
218
|
|
|
219
|
-
#generateRealFile = async (
|
|
219
|
+
#generateRealFile = async (where) => {
|
|
220
220
|
|
|
221
221
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
222
222
|
|
|
223
223
|
const params = await Promise.all(
|
|
224
224
|
files.map(async (file) => ({
|
|
225
|
-
path:
|
|
225
|
+
path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
|
|
226
226
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
227
227
|
}))
|
|
228
228
|
);
|
|
229
229
|
|
|
230
|
-
console.log(JSON.stringify({list:params}));
|
|
231
|
-
|
|
232
230
|
await fetch(`/api/source/generateRealFile`, {
|
|
233
231
|
method: "POST",
|
|
234
232
|
headers: { "Content-Type": "application/json" },
|
|
@@ -278,7 +276,7 @@ export class IdeAi
|
|
|
278
276
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
279
277
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
280
278
|
console.log(where);
|
|
281
|
-
|
|
279
|
+
/**
|
|
282
280
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
283
281
|
|
|
284
282
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
@@ -313,8 +311,8 @@ export class IdeAi
|
|
|
313
311
|
controllerSource: controllerSrc,
|
|
314
312
|
});
|
|
315
313
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
316
|
-
|
|
317
|
-
await this.#generateRealFile();
|
|
314
|
+
*/
|
|
315
|
+
await this.#generateRealFile(where);
|
|
318
316
|
|
|
319
317
|
return "OK";
|
|
320
318
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -216,19 +216,17 @@ export class IdeAi
|
|
|
216
216
|
return o;
|
|
217
217
|
};
|
|
218
218
|
|
|
219
|
-
#generateRealFile = async (
|
|
219
|
+
#generateRealFile = async (where) => {
|
|
220
220
|
|
|
221
221
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
222
222
|
|
|
223
223
|
const params = await Promise.all(
|
|
224
224
|
files.map(async (file) => ({
|
|
225
|
-
path:
|
|
225
|
+
path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
|
|
226
226
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
227
227
|
}))
|
|
228
228
|
);
|
|
229
229
|
|
|
230
|
-
console.log(JSON.stringify({list:params}));
|
|
231
|
-
|
|
232
230
|
await fetch(`/api/source/generateRealFile`, {
|
|
233
231
|
method: "POST",
|
|
234
232
|
headers: { "Content-Type": "application/json" },
|
|
@@ -278,7 +276,7 @@ export class IdeAi
|
|
|
278
276
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
279
277
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
280
278
|
console.log(where);
|
|
281
|
-
|
|
279
|
+
/**
|
|
282
280
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
283
281
|
|
|
284
282
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
@@ -313,8 +311,8 @@ export class IdeAi
|
|
|
313
311
|
controllerSource: controllerSrc,
|
|
314
312
|
});
|
|
315
313
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
316
|
-
|
|
317
|
-
await this.#generateRealFile();
|
|
314
|
+
*/
|
|
315
|
+
await this.#generateRealFile(where);
|
|
318
316
|
|
|
319
317
|
return "OK";
|
|
320
318
|
}
|