ide-assi 0.120.0 → 0.122.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,17 +193515,20 @@ 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
- //const path = "/api/templates/mybatis.xml";
193525
- // const template = await fetch(path).then(res => res.text());
193526
193523
 
193527
193524
  console.log(params);
193528
193525
 
193526
+ await fetch(`/api/source/generateRealFile`, {
193527
+ method: "POST",
193528
+ headers: { "Content-Type": "application/json" },
193529
+ body: params
193530
+ });
193531
+
193529
193532
  return;
193530
193533
  };
193531
193534
 
@@ -193511,17 +193511,20 @@ 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
- //const path = "/api/templates/mybatis.xml";
193521
- // const template = await fetch(path).then(res => res.text());
193522
193519
 
193523
193520
  console.log(params);
193524
193521
 
193522
+ await fetch(`/api/source/generateRealFile`, {
193523
+ method: "POST",
193524
+ headers: { "Content-Type": "application/json" },
193525
+ body: params
193526
+ });
193527
+
193525
193528
  return;
193526
193529
  };
193527
193530
 
@@ -221,17 +221,20 @@ 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
- //const path = "/api/templates/mybatis.xml";
231
- // const template = await fetch(path).then(res => res.text());
232
229
 
233
230
  console.log(params);
234
231
 
232
+ await fetch(`/api/source/generateRealFile`, {
233
+ method: "POST",
234
+ headers: { "Content-Type": "application/json" },
235
+ body: params
236
+ });
237
+
235
238
  return;
236
239
 
237
240
  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.122.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -221,17 +221,20 @@ 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
- //const path = "/api/templates/mybatis.xml";
231
- // const template = await fetch(path).then(res => res.text());
232
229
 
233
230
  console.log(params);
234
231
 
232
+ await fetch(`/api/source/generateRealFile`, {
233
+ method: "POST",
234
+ headers: { "Content-Type": "application/json" },
235
+ body: params
236
+ });
237
+
235
238
  return;
236
239
 
237
240
  return await new PromptTemplate({