ide-assi 0.157.0 → 0.159.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.
@@ -180246,11 +180246,11 @@ function requireHeaders () {
180246
180246
  return headers;
180247
180247
  }
180248
180248
 
180249
- var response;
180249
+ var response$1;
180250
180250
  var hasRequiredResponse;
180251
180251
 
180252
180252
  function requireResponse () {
180253
- if (hasRequiredResponse) return response;
180253
+ if (hasRequiredResponse) return response$1;
180254
180254
  hasRequiredResponse = 1;
180255
180255
 
180256
180256
  const { Headers, HeadersList, fill } = requireHeaders();
@@ -180814,7 +180814,7 @@ function requireResponse () {
180814
180814
  }
180815
180815
  ]);
180816
180816
 
180817
- response = {
180817
+ response$1 = {
180818
180818
  makeNetworkError,
180819
180819
  makeResponse,
180820
180820
  makeAppropriateNetworkError,
@@ -180822,7 +180822,7 @@ function requireResponse () {
180822
180822
  Response,
180823
180823
  cloneResponse
180824
180824
  };
180825
- return response;
180825
+ return response$1;
180826
180826
  }
180827
180827
 
180828
180828
  /* globals AbortController */
@@ -193533,10 +193533,16 @@ class IdeAi
193533
193533
  #invoke = async (path, params) => {
193534
193534
  const prompt = await IdeUtils.generatePrompt(path, params);
193535
193535
 
193536
- const response = await this.#model.invoke([
193537
- //new SystemMessage(systemMessage),
193538
- new HumanMessage(prompt),
193539
- ]);
193536
+ try {
193537
+ const response = await this.#model.invoke([
193538
+ //new SystemMessage(systemMessage),
193539
+ new HumanMessage(prompt),
193540
+ ]);
193541
+ }
193542
+ catch (error) {
193543
+ console.error("00000000");
193544
+ }
193545
+
193540
193546
 
193541
193547
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
193542
193548
  }
@@ -180242,11 +180242,11 @@ function requireHeaders () {
180242
180242
  return headers;
180243
180243
  }
180244
180244
 
180245
- var response;
180245
+ var response$1;
180246
180246
  var hasRequiredResponse;
180247
180247
 
180248
180248
  function requireResponse () {
180249
- if (hasRequiredResponse) return response;
180249
+ if (hasRequiredResponse) return response$1;
180250
180250
  hasRequiredResponse = 1;
180251
180251
 
180252
180252
  const { Headers, HeadersList, fill } = requireHeaders();
@@ -180810,7 +180810,7 @@ function requireResponse () {
180810
180810
  }
180811
180811
  ]);
180812
180812
 
180813
- response = {
180813
+ response$1 = {
180814
180814
  makeNetworkError,
180815
180815
  makeResponse,
180816
180816
  makeAppropriateNetworkError,
@@ -180818,7 +180818,7 @@ function requireResponse () {
180818
180818
  Response,
180819
180819
  cloneResponse
180820
180820
  };
180821
- return response;
180821
+ return response$1;
180822
180822
  }
180823
180823
 
180824
180824
  /* globals AbortController */
@@ -193529,10 +193529,16 @@ class IdeAi
193529
193529
  #invoke = async (path, params) => {
193530
193530
  const prompt = await IdeUtils.generatePrompt(path, params);
193531
193531
 
193532
- const response = await this.#model.invoke([
193533
- //new SystemMessage(systemMessage),
193534
- new HumanMessage(prompt),
193535
- ]);
193532
+ try {
193533
+ const response = await this.#model.invoke([
193534
+ //new SystemMessage(systemMessage),
193535
+ new HumanMessage(prompt),
193536
+ ]);
193537
+ }
193538
+ catch (error) {
193539
+ console.error("00000000");
193540
+ }
193541
+
193536
193542
 
193537
193543
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
193538
193544
  }
@@ -177,10 +177,16 @@ export class IdeAi
177
177
  #invoke = async (path, params) => {
178
178
  const prompt = await IdeUtils.generatePrompt(path, params);
179
179
 
180
- const response = await this.#model.invoke([
181
- //new SystemMessage(systemMessage),
182
- new HumanMessage(prompt),
183
- ]);
180
+ try {
181
+ const response = await this.#model.invoke([
182
+ //new SystemMessage(systemMessage),
183
+ new HumanMessage(prompt),
184
+ ]);
185
+ }
186
+ catch (error) {
187
+ console.error("00000000");
188
+ }
189
+
184
190
 
185
191
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
186
192
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.157.0",
4
+ "version": "0.159.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -177,10 +177,16 @@ export class IdeAi
177
177
  #invoke = async (path, params) => {
178
178
  const prompt = await IdeUtils.generatePrompt(path, params);
179
179
 
180
- const response = await this.#model.invoke([
181
- //new SystemMessage(systemMessage),
182
- new HumanMessage(prompt),
183
- ]);
180
+ try {
181
+ const response = await this.#model.invoke([
182
+ //new SystemMessage(systemMessage),
183
+ new HumanMessage(prompt),
184
+ ]);
185
+ }
186
+ catch (error) {
187
+ console.error("00000000");
188
+ }
189
+
184
190
 
185
191
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
186
192
  }