ide-assi 0.55.0 → 0.57.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.
@@ -151580,7 +151580,7 @@ function createToolConfig(genAITools, extra) {
151580
151580
  *
151581
151581
  * <br />
151582
151582
  */
151583
- let ChatGoogleGenerativeAI$1 = class ChatGoogleGenerativeAI extends BaseChatModel {
151583
+ class ChatGoogleGenerativeAI extends BaseChatModel {
151584
151584
  static lc_name() {
151585
151585
  return "ChatGoogleGenerativeAI";
151586
151586
  }
@@ -152034,7 +152034,7 @@ let ChatGoogleGenerativeAI$1 = class ChatGoogleGenerativeAI extends BaseChatMode
152034
152034
  runName: "StructuredOutputRunnable",
152035
152035
  });
152036
152036
  }
152037
- };
152037
+ }
152038
152038
 
152039
152039
  /**
152040
152040
  * An abstract class that provides methods for embedding documents and
@@ -152915,7 +152915,7 @@ var __publicField = (obj, key, value) => {
152915
152915
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
152916
152916
  return value;
152917
152917
  };
152918
- let Ollama$1$1 = class Ollama {
152918
+ let Ollama$1 = class Ollama {
152919
152919
  constructor(config) {
152920
152920
  __publicField(this, "config");
152921
152921
  __publicField(this, "fetch");
@@ -153154,7 +153154,7 @@ let Ollama$1$1 = class Ollama {
153154
153154
  return await response.json();
153155
153155
  }
153156
153156
  };
153157
- new Ollama$1$1();
153157
+ new Ollama$1();
153158
153158
 
153159
153159
  class OllamaEmbeddings extends Embeddings$1 {
153160
153160
  constructor(fields) {
@@ -153195,7 +153195,7 @@ class OllamaEmbeddings extends Embeddings$1 {
153195
153195
  writable: true,
153196
153196
  value: false
153197
153197
  });
153198
- this.client = new Ollama$1$1({
153198
+ this.client = new Ollama$1({
153199
153199
  fetch: fields?.fetch,
153200
153200
  host: fields?.baseUrl,
153201
153201
  headers: fields?.headers ? new Headers(fields.headers) : undefined,
@@ -153669,7 +153669,7 @@ class LLM extends BaseLLM {
153669
153669
  * console.log(chunks.join(""));
153670
153670
  * ```
153671
153671
  */
153672
- let Ollama$1 = class Ollama extends LLM {
153672
+ class Ollama extends LLM {
153673
153673
  static lc_name() {
153674
153674
  return "Ollama";
153675
153675
  }
@@ -153883,7 +153883,7 @@ let Ollama$1 = class Ollama extends LLM {
153883
153883
  this.baseUrl = fields?.baseUrl?.endsWith("/")
153884
153884
  ? fields?.baseUrl.slice(0, -1)
153885
153885
  : fields?.baseUrl ?? this.baseUrl;
153886
- this.client = new Ollama$1$1({
153886
+ this.client = new Ollama$1({
153887
153887
  fetch: fields?.fetch,
153888
153888
  host: this.baseUrl,
153889
153889
  headers: fields?.headers,
@@ -154004,7 +154004,7 @@ let Ollama$1 = class Ollama extends LLM {
154004
154004
  }
154005
154005
  return chunks.join("");
154006
154006
  }
154007
- };
154007
+ }
154008
154008
 
154009
154009
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
154010
154010
  if (typeof state === "function" ? receiver !== state || true : !state.has(receiver))
@@ -163599,7 +163599,7 @@ function isReasoningModel(model) {
163599
163599
  *
163600
163600
  * <br />
163601
163601
  */
163602
- let ChatOpenAI$1 = class ChatOpenAI extends BaseChatModel {
163602
+ class ChatOpenAI extends BaseChatModel {
163603
163603
  static lc_name() {
163604
163604
  return "ChatOpenAI";
163605
163605
  }
@@ -164956,7 +164956,7 @@ let ChatOpenAI$1 = class ChatOpenAI extends BaseChatModel {
164956
164956
  });
164957
164957
  return RunnableSequence.from([{ raw: llm }, parsedWithFallback]);
164958
164958
  }
164959
- };
164959
+ }
164960
164960
  function isStructuredOutputMethodParams(x
164961
164961
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
164962
164962
  ) {
@@ -192721,14 +192721,14 @@ class aiContainer extends HTMLElement
192721
192721
  switch (this.settings.server) {
192722
192722
  case "gemini":
192723
192723
  console.log(this.settings.geminiApiKey);
192724
- this.#model = new ChatGoogleGenerativeAI$1({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
192724
+ this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
192725
192725
  break;
192726
192726
  case "openai":
192727
192727
  console.log(this.settings.openaiApiKey);
192728
- this.#model = new ChatOpenAI$1({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
192728
+ this.#model = new ChatOpenAI({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
192729
192729
  break;
192730
192730
  case "ollama":
192731
- this.#model = new Ollama$1({
192731
+ this.#model = new Ollama({
192732
192732
  model: this.settings.model,
192733
192733
  host: this.settings.ollamaUrl,
192734
192734
  });
@@ -151576,7 +151576,7 @@ function createToolConfig(genAITools, extra) {
151576
151576
  *
151577
151577
  * <br />
151578
151578
  */
151579
- let ChatGoogleGenerativeAI$1 = class ChatGoogleGenerativeAI extends BaseChatModel {
151579
+ class ChatGoogleGenerativeAI extends BaseChatModel {
151580
151580
  static lc_name() {
151581
151581
  return "ChatGoogleGenerativeAI";
151582
151582
  }
@@ -152030,7 +152030,7 @@ let ChatGoogleGenerativeAI$1 = class ChatGoogleGenerativeAI extends BaseChatMode
152030
152030
  runName: "StructuredOutputRunnable",
152031
152031
  });
152032
152032
  }
152033
- };
152033
+ }
152034
152034
 
152035
152035
  /**
152036
152036
  * An abstract class that provides methods for embedding documents and
@@ -152911,7 +152911,7 @@ var __publicField = (obj, key, value) => {
152911
152911
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
152912
152912
  return value;
152913
152913
  };
152914
- let Ollama$1$1 = class Ollama {
152914
+ let Ollama$1 = class Ollama {
152915
152915
  constructor(config) {
152916
152916
  __publicField(this, "config");
152917
152917
  __publicField(this, "fetch");
@@ -153150,7 +153150,7 @@ let Ollama$1$1 = class Ollama {
153150
153150
  return await response.json();
153151
153151
  }
153152
153152
  };
153153
- new Ollama$1$1();
153153
+ new Ollama$1();
153154
153154
 
153155
153155
  class OllamaEmbeddings extends Embeddings$1 {
153156
153156
  constructor(fields) {
@@ -153191,7 +153191,7 @@ class OllamaEmbeddings extends Embeddings$1 {
153191
153191
  writable: true,
153192
153192
  value: false
153193
153193
  });
153194
- this.client = new Ollama$1$1({
153194
+ this.client = new Ollama$1({
153195
153195
  fetch: fields?.fetch,
153196
153196
  host: fields?.baseUrl,
153197
153197
  headers: fields?.headers ? new Headers(fields.headers) : undefined,
@@ -153665,7 +153665,7 @@ class LLM extends BaseLLM {
153665
153665
  * console.log(chunks.join(""));
153666
153666
  * ```
153667
153667
  */
153668
- let Ollama$1 = class Ollama extends LLM {
153668
+ class Ollama extends LLM {
153669
153669
  static lc_name() {
153670
153670
  return "Ollama";
153671
153671
  }
@@ -153879,7 +153879,7 @@ let Ollama$1 = class Ollama extends LLM {
153879
153879
  this.baseUrl = fields?.baseUrl?.endsWith("/")
153880
153880
  ? fields?.baseUrl.slice(0, -1)
153881
153881
  : fields?.baseUrl ?? this.baseUrl;
153882
- this.client = new Ollama$1$1({
153882
+ this.client = new Ollama$1({
153883
153883
  fetch: fields?.fetch,
153884
153884
  host: this.baseUrl,
153885
153885
  headers: fields?.headers,
@@ -154000,7 +154000,7 @@ let Ollama$1 = class Ollama extends LLM {
154000
154000
  }
154001
154001
  return chunks.join("");
154002
154002
  }
154003
- };
154003
+ }
154004
154004
 
154005
154005
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
154006
154006
  if (typeof state === "function" ? receiver !== state || true : !state.has(receiver))
@@ -163595,7 +163595,7 @@ function isReasoningModel(model) {
163595
163595
  *
163596
163596
  * <br />
163597
163597
  */
163598
- let ChatOpenAI$1 = class ChatOpenAI extends BaseChatModel {
163598
+ class ChatOpenAI extends BaseChatModel {
163599
163599
  static lc_name() {
163600
163600
  return "ChatOpenAI";
163601
163601
  }
@@ -164952,7 +164952,7 @@ let ChatOpenAI$1 = class ChatOpenAI extends BaseChatModel {
164952
164952
  });
164953
164953
  return RunnableSequence.from([{ raw: llm }, parsedWithFallback]);
164954
164954
  }
164955
- };
164955
+ }
164956
164956
  function isStructuredOutputMethodParams(x
164957
164957
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
164958
164958
  ) {
@@ -192717,14 +192717,14 @@ class aiContainer extends HTMLElement
192717
192717
  switch (this.settings.server) {
192718
192718
  case "gemini":
192719
192719
  console.log(this.settings.geminiApiKey);
192720
- this.#model = new ChatGoogleGenerativeAI$1({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
192720
+ this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
192721
192721
  break;
192722
192722
  case "openai":
192723
192723
  console.log(this.settings.openaiApiKey);
192724
- this.#model = new ChatOpenAI$1({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
192724
+ this.#model = new ChatOpenAI({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
192725
192725
  break;
192726
192726
  case "ollama":
192727
- this.#model = new Ollama$1({
192727
+ this.#model = new Ollama({
192728
192728
  model: this.settings.model,
192729
192729
  host: this.settings.ollamaUrl,
192730
192730
  });
@@ -1,5 +1,8 @@
1
1
  import ninegrid from "ninegrid2";
2
2
  import { IdeAi } from "./ideAi.js";
3
+ import { ChatGoogleGenerativeAI } from "@langchain/google-genai";
4
+ import { Ollama } from "@langchain/ollama";
5
+ import { ChatOpenAI } from '@langchain/openai';
3
6
 
4
7
  export class IdeAssi extends HTMLElement
5
8
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.55.0",
4
+ "version": "0.57.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -1,5 +1,8 @@
1
1
  import ninegrid from "ninegrid2";
2
2
  import { IdeAi } from "./ideAi.js";
3
+ import { ChatGoogleGenerativeAI } from "@langchain/google-genai";
4
+ import { Ollama } from "@langchain/ollama";
5
+ import { ChatOpenAI } from '@langchain/openai';
3
6
 
4
7
  export class IdeAssi extends HTMLElement
5
8
  {