ide-assi 0.98.0 → 0.99.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.
@@ -193480,7 +193480,7 @@ class IdeAi
193480
193480
 
193481
193481
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
193482
193482
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193483
- if (o.result == "0") throw new Error(o.reason);
193483
+ if (o.result === "0") throw new Error(o.reason);
193484
193484
  }
193485
193485
  else {
193486
193486
  throw new Error(o);
@@ -193507,7 +193507,10 @@ class IdeAi
193507
193507
 
193508
193508
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
193509
193509
 
193510
- if (Object.prototype.toString.call(o) !== "[object Object]") {
193510
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193511
+ if (o.result === "0") throw new Error(o.reason);
193512
+ }
193513
+ else {
193511
193514
  throw new Error(o);
193512
193515
  }
193513
193516
 
@@ -193519,12 +193522,7 @@ class IdeAi
193519
193522
  this.#createModel();
193520
193523
 
193521
193524
  await this.#what(userPrompt);
193522
-
193523
-
193524
- const menuList = this.#getMenuInfo();
193525
- const tableDefinitions = await this.#getTableList();
193526
-
193527
- const where = await this.#where(userPrompt, menuList, tableDefinitions);
193525
+ const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
193528
193526
 
193529
193527
  console.log(where);
193530
193528
 
@@ -193476,7 +193476,7 @@ class IdeAi
193476
193476
 
193477
193477
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
193478
193478
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193479
- if (o.result == "0") throw new Error(o.reason);
193479
+ if (o.result === "0") throw new Error(o.reason);
193480
193480
  }
193481
193481
  else {
193482
193482
  throw new Error(o);
@@ -193503,7 +193503,10 @@ class IdeAi
193503
193503
 
193504
193504
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
193505
193505
 
193506
- if (Object.prototype.toString.call(o) !== "[object Object]") {
193506
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193507
+ if (o.result === "0") throw new Error(o.reason);
193508
+ }
193509
+ else {
193507
193510
  throw new Error(o);
193508
193511
  }
193509
193512
 
@@ -193515,12 +193518,7 @@ class IdeAi
193515
193518
  this.#createModel();
193516
193519
 
193517
193520
  await this.#what(userPrompt);
193518
-
193519
-
193520
- const menuList = this.#getMenuInfo();
193521
- const tableDefinitions = await this.#getTableList();
193522
-
193523
- const where = await this.#where(userPrompt, menuList, tableDefinitions);
193521
+ const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
193524
193522
 
193525
193523
  console.log(where);
193526
193524
 
@@ -185,7 +185,7 @@ export class IdeAi
185
185
 
186
186
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
187
187
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
188
- if (o.result == "0") throw new Error(o.reason);
188
+ if (o.result === "0") throw new Error(o.reason);
189
189
  }
190
190
  else {
191
191
  throw new Error(o);
@@ -212,7 +212,10 @@ export class IdeAi
212
212
 
213
213
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
214
214
 
215
- if (Object.prototype.toString.call(o) !== "[object Object]") {
215
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
216
+ if (o.result === "0") throw new Error(o.reason);
217
+ }
218
+ else {
216
219
  throw new Error(o);
217
220
  }
218
221
 
@@ -223,13 +226,8 @@ export class IdeAi
223
226
 
224
227
  this.#createModel();
225
228
 
226
- const action = await this.#what(userPrompt);
227
-
228
-
229
- const menuList = this.#getMenuInfo();
230
- const tableDefinitions = await this.#getTableList();
231
-
232
- const where = await this.#where(userPrompt, menuList, tableDefinitions);
229
+ const what = await this.#what(userPrompt);
230
+ const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
233
231
 
234
232
  console.log(where);
235
233
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.98.0",
4
+ "version": "0.99.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -185,7 +185,7 @@ export class IdeAi
185
185
 
186
186
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
187
187
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
188
- if (o.result == "0") throw new Error(o.reason);
188
+ if (o.result === "0") throw new Error(o.reason);
189
189
  }
190
190
  else {
191
191
  throw new Error(o);
@@ -212,7 +212,10 @@ export class IdeAi
212
212
 
213
213
  const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
214
214
 
215
- if (Object.prototype.toString.call(o) !== "[object Object]") {
215
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
216
+ if (o.result === "0") throw new Error(o.reason);
217
+ }
218
+ else {
216
219
  throw new Error(o);
217
220
  }
218
221
 
@@ -223,13 +226,8 @@ export class IdeAi
223
226
 
224
227
  this.#createModel();
225
228
 
226
- const action = await this.#what(userPrompt);
227
-
228
-
229
- const menuList = this.#getMenuInfo();
230
- const tableDefinitions = await this.#getTableList();
231
-
232
- const where = await this.#where(userPrompt, menuList, tableDefinitions);
229
+ const what = await this.#what(userPrompt);
230
+ const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
233
231
 
234
232
  console.log(where);
235
233