gaunt-sloth-assistant 1.0.5 → 1.0.7

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.
package/README.md CHANGED
@@ -50,6 +50,7 @@ The promise of Gaunt Sloth:
50
50
  - Google AI Studio and Google Vertex AI;
51
51
  - Anthropic;
52
52
  - OpenAI (and other providers using OpenAI format, such as Inception);
53
+ - Local AI: LM Studio, Ollama, llama.cpp (Via OpenAI compatibitlity)
53
54
  - Ollama with JS config (some of the models, see https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/discussions/107)
54
55
  - xAI;
55
56
 
@@ -224,6 +225,19 @@ gsloth init openai
224
225
  ```
225
226
  Make sure you either define `OPENAI_API_KEY` environment variable or edit your configuration file and set up your key.
226
227
 
228
+ ### LM Studio
229
+ LM Studio provides a local OpenAI-compatible server for running models on your machine:
230
+ ```bash
231
+ cd ./your-project
232
+ gsloth init openai
233
+ ```
234
+ Then edit your configuration file to point to LM Studio (default: `http://127.0.0.1:1234/v1`).
235
+ Use any string for the API key (e.g., `"none"`) - LM Studio doesn't validate it.
236
+
237
+ **Important:** The model must support tool calling. Tested models include gpt-oss, granite, nemotron, seed, and qwen3.
238
+
239
+ See [CONFIGURATION.md](./docs/CONFIGURATION.md#lm-studio) for detailed setup.
240
+
227
241
  ### OpenAI-compatible providers (Inception, etc.)
228
242
  For providers using OpenAI-compatible APIs:
229
243
  ```bash
@@ -1,3 +1,15 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Google VertexAI preset.
4
+ * This preset requires `gcloud auth login` and `gcloud auth application-default login`.
5
+ * <p>
6
+ * Caveats:
7
+ * This preset does not support discriminatedUnion, anyOf, oneOf in tool signatures,
8
+ * Gaunt Sloth converts those tools to flat calls, and generally they work fine,
9
+ * but sometimes this may lead to some quirks.
10
+ * <p>
11
+ * Hopefully this issue will go away when LangChain switches to the new GenAI dependency.
12
+ */
1
13
  import { displayWarning } from '#src/utils/consoleUtils.js';
2
14
  import { writeFileIfNotExistsWithMessages } from '#src/utils/fileUtils.js';
3
15
  const jsonContent = `{
@@ -1 +1 @@
1
- {"version":3,"file":"vertexai.js","sourceRoot":"","sources":["../../src/presets/vertexai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAC;AAE3E,MAAM,WAAW,GAAG;;;;;EAKlB,CAAC;AAEH,MAAM,UAAU,IAAI,CAAC,cAAsB;IACzC,yDAAyD;IACzD,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACpD,CAAC;IAED,gCAAgC,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IAC9D,cAAc,CACZ,+GAA+G,CAChH,CAAC;AACJ,CAAC;AAED,mEAAmE;AACnE,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,SAA4B;IAClE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC;IAC5D,OAAO,IAAI,QAAQ,CAAC,YAAY,CAAC;QAC/B,GAAG,SAAS;QACZ,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,gBAAgB;KAC3C,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"vertexai.js","sourceRoot":"","sources":["../../src/presets/vertexai.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAC;AAE3E,MAAM,WAAW,GAAG;;;;;EAKlB,CAAC;AAEH,MAAM,UAAU,IAAI,CAAC,cAAsB;IACzC,yDAAyD;IACzD,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACpD,CAAC;IAED,gCAAgC,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IAC9D,cAAc,CACZ,+GAA+G,CAChH,CAAC;AACJ,CAAC;AAED,mEAAmE;AACnE,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,SAA4B;IAClE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC;IAC5D,OAAO,IAAI,QAAQ,CAAC,YAAY,CAAC;QAC/B,GAAG,SAAS;QACZ,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,gBAAgB;KAC3C,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaunt-sloth-assistant",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "Andrew Kondratev",
@@ -41,29 +41,29 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@a2a-js/sdk": "^0.3.7",
44
- "@langchain/anthropic": "^1.3.2",
45
- "@langchain/core": "^1.1.0",
44
+ "@langchain/anthropic": "^1.3.3",
45
+ "@langchain/core": "^1.1.8",
46
46
  "@langchain/deepseek": "^1.0.3",
47
- "@langchain/google-genai": "^2.1.2",
48
- "@langchain/google-vertexai": "^2.1.2",
47
+ "@langchain/google-genai": "^2.1.3",
48
+ "@langchain/google-vertexai": "^2.1.3",
49
49
  "@langchain/groq": "^1.0.2",
50
50
  "@langchain/langgraph": "^1.0.7",
51
51
  "@langchain/mcp-adapters": "^1.1.1",
52
- "@langchain/openai": "^1.1.2",
52
+ "@langchain/openai": "^1.2.0",
53
53
  "@langchain/xai": "^1.1.0",
54
54
  "@modelcontextprotocol/sdk": "^1.25.1",
55
55
  "commander": "^14.0.2",
56
56
  "diff": "^8.0.2",
57
57
  "express": "^5.2.1",
58
- "langchain": "^1.2.2",
58
+ "langchain": "^1.2.3",
59
59
  "minimatch": "^10.1.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@eslint/js": "^9.34.0",
63
63
  "@types/express": "^5.0.6",
64
64
  "@types/node": "^24.10.4",
65
- "@typescript-eslint/eslint-plugin": "^8.50.0",
66
- "@typescript-eslint/parser": "^8.50.0",
65
+ "@typescript-eslint/eslint-plugin": "^8.50.1",
66
+ "@typescript-eslint/parser": "^8.50.1",
67
67
  "eslint": "^9.39.2",
68
68
  "eslint-config-prettier": "^10.1.8",
69
69
  "eslint-plugin-prettier": "^5.5.4",