ide-assi 0.107.0 → 0.108.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.
@@ -193512,11 +193512,24 @@ class IdeAi
193512
193512
 
193513
193513
  #mybatis = async (userPrompt, namespace, tableDefinitions) => {
193514
193514
 
193515
- return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
193515
+ const src = await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
193516
193516
  "userPrompt": userPrompt,
193517
193517
  "namespace": namespace,
193518
193518
  "tableDefinitions": tableDefinitions
193519
193519
  });
193520
+
193521
+ const response3 = await fetch(`/api/source/tmpl/generateFile`, {
193522
+ method: "POST",
193523
+ headers: { "Content-Type": "application/json" },
193524
+ body: JSON.stringify({
193525
+ fileNm: "mybatis.xml",
193526
+ contents: src,
193527
+ })
193528
+ });
193529
+
193530
+ console.log(response3);
193531
+
193532
+ return "";
193520
193533
  };
193521
193534
 
193522
193535
  generateSourceClient = async (userPrompt) => {
@@ -193508,11 +193508,24 @@ class IdeAi
193508
193508
 
193509
193509
  #mybatis = async (userPrompt, namespace, tableDefinitions) => {
193510
193510
 
193511
- return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
193511
+ const src = await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
193512
193512
  "userPrompt": userPrompt,
193513
193513
  "namespace": namespace,
193514
193514
  "tableDefinitions": tableDefinitions
193515
193515
  });
193516
+
193517
+ const response3 = await fetch(`/api/source/tmpl/generateFile`, {
193518
+ method: "POST",
193519
+ headers: { "Content-Type": "application/json" },
193520
+ body: JSON.stringify({
193521
+ fileNm: "mybatis.xml",
193522
+ contents: src,
193523
+ })
193524
+ });
193525
+
193526
+ console.log(response3);
193527
+
193528
+ return "";
193516
193529
  };
193517
193530
 
193518
193531
  generateSourceClient = async (userPrompt) => {
@@ -217,11 +217,24 @@ export class IdeAi
217
217
 
218
218
  #mybatis = async (userPrompt, namespace, tableDefinitions) => {
219
219
 
220
- return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
220
+ const src = await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
221
221
  "userPrompt": userPrompt,
222
222
  "namespace": namespace,
223
223
  "tableDefinitions": tableDefinitions
224
224
  });
225
+
226
+ const response3 = await fetch(`/api/source/tmpl/generateFile`, {
227
+ method: "POST",
228
+ headers: { "Content-Type": "application/json" },
229
+ body: JSON.stringify({
230
+ fileNm: "mybatis.xml",
231
+ contents: src,
232
+ })
233
+ });
234
+
235
+ console.log(response3);
236
+
237
+ return "";
225
238
  };
226
239
 
227
240
  generateSourceClient = async (userPrompt) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.107.0",
4
+ "version": "0.108.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -217,11 +217,24 @@ export class IdeAi
217
217
 
218
218
  #mybatis = async (userPrompt, namespace, tableDefinitions) => {
219
219
 
220
- return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
220
+ const src = await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
221
221
  "userPrompt": userPrompt,
222
222
  "namespace": namespace,
223
223
  "tableDefinitions": tableDefinitions
224
224
  });
225
+
226
+ const response3 = await fetch(`/api/source/tmpl/generateFile`, {
227
+ method: "POST",
228
+ headers: { "Content-Type": "application/json" },
229
+ body: JSON.stringify({
230
+ fileNm: "mybatis.xml",
231
+ contents: src,
232
+ })
233
+ });
234
+
235
+ console.log(response3);
236
+
237
+ return "";
225
238
  };
226
239
 
227
240
  generateSourceClient = async (userPrompt) => {