ide-assi 0.135.0 → 0.137.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.
@@ -193510,19 +193510,19 @@ class IdeAi
193510
193510
  return o;
193511
193511
  };
193512
193512
 
193513
- #generateRealFile = async (filePath, src) => {
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
+
193519
+
193518
193520
  files.map(async (file) => ({
193519
- path: `/tmpl/${file}`,
193521
+ path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
193520
193522
  contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
193521
193523
  }))
193522
193524
  );
193523
193525
 
193524
- console.log(JSON.stringify({list:params}));
193525
-
193526
193526
  await fetch(`/api/source/generateRealFile`, {
193527
193527
  method: "POST",
193528
193528
  headers: { "Content-Type": "application/json" },
@@ -193559,6 +193559,11 @@ class IdeAi
193559
193559
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193560
193560
  console.log(where);
193561
193561
 
193562
+ console.log(ninegrid.decode("mybatis.xml", "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript));
193563
+
193564
+
193565
+
193566
+ /**
193562
193567
  const columnInfo = await this.#getColumnInfo(where.table);
193563
193568
 
193564
193569
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
@@ -193587,14 +193592,14 @@ class IdeAi
193587
193592
  });
193588
193593
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193589
193594
 
193590
- await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193595
+ const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193591
193596
  userPrompt: userPrompt,
193592
193597
  menuUrl: where.menu.url,
193593
193598
  controllerSource: controllerSrc,
193594
193599
  });
193595
193600
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193596
-
193597
- await this.#generateRealFile();
193601
+ */
193602
+ await this.#generateRealFile(where);
193598
193603
 
193599
193604
  return "OK";
193600
193605
  }
@@ -193506,19 +193506,19 @@ class IdeAi
193506
193506
  return o;
193507
193507
  };
193508
193508
 
193509
- #generateRealFile = async (filePath, src) => {
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
+
193515
+
193514
193516
  files.map(async (file) => ({
193515
- path: `/tmpl/${file}`,
193517
+ path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
193516
193518
  contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
193517
193519
  }))
193518
193520
  );
193519
193521
 
193520
- console.log(JSON.stringify({list:params}));
193521
-
193522
193522
  await fetch(`/api/source/generateRealFile`, {
193523
193523
  method: "POST",
193524
193524
  headers: { "Content-Type": "application/json" },
@@ -193555,6 +193555,11 @@ class IdeAi
193555
193555
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193556
193556
  console.log(where);
193557
193557
 
193558
+ console.log(ninegrid.decode("mybatis.xml", "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript));
193559
+
193560
+
193561
+
193562
+ /**
193558
193563
  const columnInfo = await this.#getColumnInfo(where.table);
193559
193564
 
193560
193565
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
@@ -193583,14 +193588,14 @@ class IdeAi
193583
193588
  });
193584
193589
  this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
193585
193590
 
193586
- await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193591
+ const jsSrc = await this.#generateTmplFile("/prompts/meta/BuildReactJsx.txt", "react.jsx", {
193587
193592
  userPrompt: userPrompt,
193588
193593
  menuUrl: where.menu.url,
193589
193594
  controllerSource: controllerSrc,
193590
193595
  });
193591
193596
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
193592
-
193593
- await this.#generateRealFile();
193597
+ */
193598
+ await this.#generateRealFile(where);
193594
193599
 
193595
193600
  return "OK";
193596
193601
  }
@@ -216,19 +216,19 @@ export class IdeAi
216
216
  return o;
217
217
  };
218
218
 
219
- #generateRealFile = async (filePath, src) => {
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
+
225
+
224
226
  files.map(async (file) => ({
225
- path: `/tmpl/${file}`,
227
+ path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
226
228
  contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
227
229
  }))
228
230
  );
229
231
 
230
- console.log(JSON.stringify({list:params}));
231
-
232
232
  await fetch(`/api/source/generateRealFile`, {
233
233
  method: "POST",
234
234
  headers: { "Content-Type": "application/json" },
@@ -279,6 +279,11 @@ export class IdeAi
279
279
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
280
280
  console.log(where);
281
281
 
282
+ console.log(ninegrid.decode("mybatis.xml", "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript));
283
+
284
+
285
+
286
+ /**
282
287
  const columnInfo = await this.#getColumnInfo(where.table);
283
288
 
284
289
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
@@ -313,8 +318,8 @@ export class IdeAi
313
318
  controllerSource: controllerSrc,
314
319
  });
315
320
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
316
-
317
- await this.#generateRealFile();
321
+ */
322
+ await this.#generateRealFile(where);
318
323
 
319
324
  return "OK";
320
325
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.135.0",
4
+ "version": "0.137.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -216,19 +216,19 @@ export class IdeAi
216
216
  return o;
217
217
  };
218
218
 
219
- #generateRealFile = async (filePath, src) => {
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
+
225
+
224
226
  files.map(async (file) => ({
225
- path: `/tmpl/${file}`,
227
+ path: ninegrid.decode(file, "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript),
226
228
  contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
227
229
  }))
228
230
  );
229
231
 
230
- console.log(JSON.stringify({list:params}));
231
-
232
232
  await fetch(`/api/source/generateRealFile`, {
233
233
  method: "POST",
234
234
  headers: { "Content-Type": "application/json" },
@@ -279,6 +279,11 @@ export class IdeAi
279
279
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
280
280
  console.log(where);
281
281
 
282
+ console.log(ninegrid.decode("mybatis.xml", "mybatis.xml", where.mybatis, "service.java", where.service, "controller.java", where.controller, "react.jsx", where.javascript));
283
+
284
+
285
+
286
+ /**
282
287
  const columnInfo = await this.#getColumnInfo(where.table);
283
288
 
284
289
  //const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
@@ -313,8 +318,8 @@ export class IdeAi
313
318
  controllerSource: controllerSrc,
314
319
  });
315
320
  this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
316
-
317
- await this.#generateRealFile();
321
+ */
322
+ await this.#generateRealFile(where);
318
323
 
319
324
  return "OK";
320
325
  }