ide-assi 0.88.0 → 0.90.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,10 +193480,17 @@ class IdeAi
193480
193480
  new HumanMessage(prompt),
193481
193481
  ]);
193482
193482
 
193483
- const a = IdeUtils.extractResponse(response, this.#parent.settings.server);
193484
- console.log(a);
193485
-
193483
+ const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
193484
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193485
+ if (o.result == "0") {
193486
+ return o.reason;
193487
+ }
193488
+ }
193489
+ else {
193490
+ return o;
193491
+ }
193486
193492
 
193493
+ return "OK";
193487
193494
  }
193488
193495
  }
193489
193496
 
@@ -193476,10 +193476,17 @@ class IdeAi
193476
193476
  new HumanMessage(prompt),
193477
193477
  ]);
193478
193478
 
193479
- const a = IdeUtils.extractResponse(response, this.#parent.settings.server);
193480
- console.log(a);
193481
-
193479
+ const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
193480
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193481
+ if (o.result == "0") {
193482
+ return o.reason;
193483
+ }
193484
+ }
193485
+ else {
193486
+ return o;
193487
+ }
193482
193488
 
193489
+ return "OK";
193483
193490
  }
193484
193491
  }
193485
193492
 
@@ -185,10 +185,17 @@ export class IdeAi
185
185
  new HumanMessage(prompt),
186
186
  ]);
187
187
 
188
- const a = IdeUtils.extractResponse(response, this.#parent.settings.server);
189
- console.log(a);
190
-
188
+ const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
189
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
190
+ if (o.result == "0") {
191
+ return o.reason;
192
+ }
193
+ }
194
+ else {
195
+ return o;
196
+ }
191
197
 
198
+ return "OK";
192
199
  }
193
200
  }
194
201
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.88.0",
4
+ "version": "0.90.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -185,10 +185,17 @@ export class IdeAi
185
185
  new HumanMessage(prompt),
186
186
  ]);
187
187
 
188
- const a = IdeUtils.extractResponse(response, this.#parent.settings.server);
189
- console.log(a);
190
-
188
+ const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
189
+ if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
190
+ if (o.result == "0") {
191
+ return o.reason;
192
+ }
193
+ }
194
+ else {
195
+ return o;
196
+ }
191
197
 
198
+ return "OK";
192
199
  }
193
200
  }
194
201