ide-assi 0.120.0 → 0.121.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.
@@ -193515,10 +193515,9 @@ class IdeAi
193515
193515
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
193516
193516
  const params = [];
193517
193517
  files.forEach(async (file) => {
193518
- const path = `/api/templates/${file}`;
193519
193518
  params.push({
193520
- path: path,
193521
- contents: await fetch(path).then(res => res.text()),
193519
+ path: `/tmpl/${file}`,
193520
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
193522
193521
  });
193523
193522
  });
193524
193523
  //const path = "/api/templates/mybatis.xml";
@@ -193526,6 +193525,14 @@ class IdeAi
193526
193525
 
193527
193526
  console.log(params);
193528
193527
 
193528
+ await fetch(`/api/source/generateRealFile`, {
193529
+ method: "POST",
193530
+ headers: { "Content-Type": "application/json" },
193531
+ body: JSON.stringify({
193532
+ list: params,
193533
+ })
193534
+ });
193535
+
193529
193536
  return;
193530
193537
  };
193531
193538
 
@@ -193511,10 +193511,9 @@ class IdeAi
193511
193511
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
193512
193512
  const params = [];
193513
193513
  files.forEach(async (file) => {
193514
- const path = `/api/templates/${file}`;
193515
193514
  params.push({
193516
- path: path,
193517
- contents: await fetch(path).then(res => res.text()),
193515
+ path: `/tmpl/${file}`,
193516
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
193518
193517
  });
193519
193518
  });
193520
193519
  //const path = "/api/templates/mybatis.xml";
@@ -193522,6 +193521,14 @@ class IdeAi
193522
193521
 
193523
193522
  console.log(params);
193524
193523
 
193524
+ await fetch(`/api/source/generateRealFile`, {
193525
+ method: "POST",
193526
+ headers: { "Content-Type": "application/json" },
193527
+ body: JSON.stringify({
193528
+ list: params,
193529
+ })
193530
+ });
193531
+
193525
193532
  return;
193526
193533
  };
193527
193534
 
@@ -221,10 +221,9 @@ export class IdeAi
221
221
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
222
222
  const params = [];
223
223
  files.forEach(async (file) => {
224
- const path = `/api/templates/${file}`;
225
224
  params.push({
226
- path: path,
227
- contents: await fetch(path).then(res => res.text()),
225
+ path: `/tmpl/${file}`,
226
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
228
227
  });
229
228
  });
230
229
  //const path = "/api/templates/mybatis.xml";
@@ -232,6 +231,14 @@ export class IdeAi
232
231
 
233
232
  console.log(params);
234
233
 
234
+ await fetch(`/api/source/generateRealFile`, {
235
+ method: "POST",
236
+ headers: { "Content-Type": "application/json" },
237
+ body: JSON.stringify({
238
+ list: params,
239
+ })
240
+ });
241
+
235
242
  return;
236
243
 
237
244
  return await new PromptTemplate({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.120.0",
4
+ "version": "0.121.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -221,10 +221,9 @@ export class IdeAi
221
221
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
222
222
  const params = [];
223
223
  files.forEach(async (file) => {
224
- const path = `/api/templates/${file}`;
225
224
  params.push({
226
- path: path,
227
- contents: await fetch(path).then(res => res.text()),
225
+ path: `/tmpl/${file}`,
226
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
228
227
  });
229
228
  });
230
229
  //const path = "/api/templates/mybatis.xml";
@@ -232,6 +231,14 @@ export class IdeAi
232
231
 
233
232
  console.log(params);
234
233
 
234
+ await fetch(`/api/source/generateRealFile`, {
235
+ method: "POST",
236
+ headers: { "Content-Type": "application/json" },
237
+ body: JSON.stringify({
238
+ list: params,
239
+ })
240
+ });
241
+
235
242
  return;
236
243
 
237
244
  return await new PromptTemplate({