ide-assi 0.17.0 → 0.18.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.
@@ -193262,6 +193262,8 @@ class IdeAi
193262
193262
  #API_URL = "http://localhost:8091";
193263
193263
  #SCHEMA = "booxtory_250131";
193264
193264
 
193265
+ #ing = false;
193266
+
193265
193267
  constructor() {
193266
193268
  }
193267
193269
 
@@ -193309,6 +193311,10 @@ class IdeAi
193309
193311
  */
193310
193312
  generateSource = async (userPrompt) => {
193311
193313
 
193314
+ if (this.#ing) return;
193315
+
193316
+ this.#ing = true;
193317
+
193312
193318
  const menus = this.#getMenuInfo();
193313
193319
  const tables = await this.#getTableInfo();
193314
193320
 
@@ -193326,6 +193332,7 @@ class IdeAi
193326
193332
  });
193327
193333
 
193328
193334
  //console.log(await response.json());
193335
+ this.#ing = false;
193329
193336
 
193330
193337
  return await response.json();
193331
193338
  };
@@ -193258,6 +193258,8 @@ class IdeAi
193258
193258
  #API_URL = "http://localhost:8091";
193259
193259
  #SCHEMA = "booxtory_250131";
193260
193260
 
193261
+ #ing = false;
193262
+
193261
193263
  constructor() {
193262
193264
  }
193263
193265
 
@@ -193305,6 +193307,10 @@ class IdeAi
193305
193307
  */
193306
193308
  generateSource = async (userPrompt) => {
193307
193309
 
193310
+ if (this.#ing) return;
193311
+
193312
+ this.#ing = true;
193313
+
193308
193314
  const menus = this.#getMenuInfo();
193309
193315
  const tables = await this.#getTableInfo();
193310
193316
 
@@ -193322,6 +193328,7 @@ class IdeAi
193322
193328
  });
193323
193329
 
193324
193330
  //console.log(await response.json());
193331
+ this.#ing = false;
193325
193332
 
193326
193333
  return await response.json();
193327
193334
  };
@@ -5,6 +5,8 @@ export class IdeAi
5
5
  #API_URL = "http://localhost:8091";
6
6
  #SCHEMA = "booxtory_250131";
7
7
 
8
+ #ing = false;
9
+
8
10
  constructor() {
9
11
  }
10
12
 
@@ -52,6 +54,10 @@ export class IdeAi
52
54
  */
53
55
  generateSource = async (userPrompt) => {
54
56
 
57
+ if (this.#ing) return;
58
+
59
+ this.#ing = true;
60
+
55
61
  const menus = this.#getMenuInfo();
56
62
  const tables = await this.#getTableInfo();
57
63
 
@@ -69,6 +75,7 @@ export class IdeAi
69
75
  });
70
76
 
71
77
  //console.log(await response.json());
78
+ this.#ing = false;
72
79
 
73
80
  return await response.json();
74
81
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.17.0",
4
+ "version": "0.18.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -5,6 +5,8 @@ export class IdeAi
5
5
  #API_URL = "http://localhost:8091";
6
6
  #SCHEMA = "booxtory_250131";
7
7
 
8
+ #ing = false;
9
+
8
10
  constructor() {
9
11
  }
10
12
 
@@ -52,6 +54,10 @@ export class IdeAi
52
54
  */
53
55
  generateSource = async (userPrompt) => {
54
56
 
57
+ if (this.#ing) return;
58
+
59
+ this.#ing = true;
60
+
55
61
  const menus = this.#getMenuInfo();
56
62
  const tables = await this.#getTableInfo();
57
63
 
@@ -69,6 +75,7 @@ export class IdeAi
69
75
  });
70
76
 
71
77
  //console.log(await response.json());
78
+ this.#ing = false;
72
79
 
73
80
  return await response.json();
74
81
  };