gaunt-sloth-assistant 0.7.1 → 0.7.2

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.
Files changed (45) hide show
  1. package/.gsloth.config_.json +7 -0
  2. package/.gsloth.config_.mjs +15 -0
  3. package/README.md +162 -153
  4. package/assets/release-notes/v0_7_2.md +14 -0
  5. package/dist/config.d.ts +1 -1
  6. package/dist/config.js +3 -3
  7. package/dist/config.js.map +1 -1
  8. package/dist/{configs → presets}/anthropic.js +2 -1
  9. package/dist/{configs → presets}/anthropic.js.map +1 -1
  10. package/dist/presets/deepseek.d.ts +4 -0
  11. package/dist/presets/deepseek.js +33 -0
  12. package/dist/presets/deepseek.js.map +1 -0
  13. package/dist/{configs → presets}/fake.js.map +1 -1
  14. package/dist/{configs → presets}/groq.js +4 -5
  15. package/dist/presets/groq.js.map +1 -0
  16. package/dist/{configs → presets}/vertexai.js +2 -3
  17. package/dist/presets/vertexai.js.map +1 -0
  18. package/docs/CONFIGURATION.md +468 -437
  19. package/it.js +15 -0
  20. package/package.json +13 -14
  21. package/src/config.ts +3 -3
  22. package/src/{configs → presets}/anthropic.ts +4 -1
  23. package/src/presets/deepseek.ts +46 -0
  24. package/src/{configs → presets}/groq.ts +5 -6
  25. package/src/{configs → presets}/vertexai.ts +2 -3
  26. package/vitest-it.config.ts +1 -1
  27. package/dist/configs/groq.js.map +0 -1
  28. package/dist/configs/vertexai.js.map +0 -1
  29. package/dist/core/AgentInterface.d.ts +0 -36
  30. package/dist/core/AgentInterface.js +0 -2
  31. package/dist/core/AgentInterface.js.map +0 -1
  32. package/dist/core/HuggingFaceAgentWrapper.d.ts +0 -20
  33. package/dist/core/HuggingFaceAgentWrapper.js +0 -148
  34. package/dist/core/HuggingFaceAgentWrapper.js.map +0 -1
  35. package/dist/core/LangChainAgentWrapper.d.ts +0 -17
  36. package/dist/core/LangChainAgentWrapper.js +0 -70
  37. package/dist/core/LangChainAgentWrapper.js.map +0 -1
  38. package/examples/huggingface/gth_2025-06-29_01-11-51_ASK.md +0 -1
  39. package/examples/huggingface/gth_2025-06-29_01-17-11_CHAT.md +0 -16
  40. /package/dist/{configs → presets}/anthropic.d.ts +0 -0
  41. /package/dist/{configs → presets}/fake.d.ts +0 -0
  42. /package/dist/{configs → presets}/fake.js +0 -0
  43. /package/dist/{configs → presets}/groq.d.ts +0 -0
  44. /package/dist/{configs → presets}/vertexai.d.ts +0 -0
  45. /package/src/{configs → presets}/fake.ts +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "llm": {
3
+ "type": "vertexai",
4
+ "model": "gemini-2.5-pro",
5
+ "temperature": 0
6
+ }
7
+ }
@@ -0,0 +1,15 @@
1
+ import { statusUpdate } from './dist/tools/statusUpdate.js';
2
+ import GthFileSystemToolkit from './dist/tools/GthFileSystemToolkit.js';
3
+
4
+ export async function configure() {
5
+ const deepseek = await import('@langchain/deepseek');
6
+ return {
7
+ llm: new deepseek.ChatDeepSeek({
8
+ model: 'deepseek-reasoner',
9
+ }),
10
+ tools: [
11
+ statusUpdate,
12
+ new GthFileSystemToolkit()
13
+ ]
14
+ };
15
+ }
package/README.md CHANGED
@@ -1,153 +1,162 @@
1
- # Gaunt Sloth Assistant
2
- [![Tests and Lint](https://github.com/andruhon/gaunt-sloth-assistant/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/andruhon/gaunt-sloth-assistant/actions/workflows/ci.yml)
3
-
4
- Gaunt GSloth Assistant is a lightweight **command line AI assistant**
5
- built with TypeScript (JavaScript) and distributed via NPM with minimum dependencies.
6
-
7
- ![GSloth Banner](assets/gaunt-sloth-logo.png)
8
-
9
- Based on [LangChain.js](https://github.com/langchain-ai/langchainjs)
10
-
11
- ## Why?
12
-
13
- There are many Open Source command line AI assistants available, such as Aider and Goose;
14
- there are great non-open source options such as Claude Code.
15
-
16
- Gaunt Sloth does not intend to be your "Daily Driver" and is not aiming to replace your Cursor.
17
- What it promises is that it is small, extendable, cross-platform and can itself be a dependency in your project.
18
-
19
- The GSloth was initially built as a code review tool, fetching PR contents and Jira contents before feeding them to
20
- the LLM, but we ourselves found many more use cases which we initially did not anticipate; for example,
21
- we may have it as a dependency in an MCP project, allowing us to quickly spin it up to simulate or test some use cases.
22
-
23
- The promise of Gaunt Sloth:
24
-
25
- - **Minimum dependencies**. Ideally, we aim to only have CommanderJS and some packages from LangChainJS and LangGraphJS.
26
- - **Extensibility**. Feel free to write some JS and create your Tool, Provider or connect to the MCP server of your choice.
27
- - **No vendor lock-in**. Just BYO API keys.
28
- - **Easy installation via NPM**.
29
- - **All prompts are editable** via markdown files.
30
- - **No UI**. Command Line only, with intent to be used as a dependency, potentially in your build pipeline.
31
- Of course, you can use Gaunt Sloth as a dependency and hook your own UI.
32
-
33
- ## What GSloth does:
34
-
35
- - Reviews code;
36
- - Suggests bug fixes;
37
- - Explains provided code
38
- - Reviews Diffs provided with pipe (|);
39
- - You can ask GSloth to review your own code before committing (`git --no-pager diff | gsloth review`).
40
- - Reviews Pull Requests (PRs) (`gsloth pr 42`);
41
- - Fetches descriptions (requirements) from Github issue or Jira (`gsloth pr 42 12`);;
42
- - Answers questions about provided code;
43
- - Writes code;
44
- - Connects to MCP server;
45
- - Saves all responses in .md file in the project directory;
46
- - Anything else you need, when combined with other command line tools.
47
-
48
- ### To make GSloth work, you need an **API key** from some AI provider, such as:
49
-
50
- - Google Vertex AI;
51
- - Anthropic;
52
- - Groq.
53
-
54
- `*` Any other provider supported by LangChain.JS should also work with [JS config](./docs/CONFIGURATION.md#JavaScript-Configuration).
55
-
56
- ## Commands Overview
57
-
58
- `gth` and `gsloth` commands are used interchangeably, both `gsloth pr 42` and `gth pr 42` do the same thing.
59
-
60
- For detailed information about all commands, see [docs/COMMANDS.md](./docs/COMMANDS.md).
61
-
62
- ### Available Commands:
63
-
64
- - **`init`** - Initialize Gaunt Sloth in your project with a specific AI provider
65
- - **`pr`** - ⚠️ This feature requires GitHub CLI to be installed. Review pull requests with optional requirement integration (GitHub issues or Jira).
66
- - **`review`** - Review any diff or content from various sources
67
- - **`ask`** - Ask questions about code or programming topics
68
- - **`chat`** - Start an interactive chat session
69
- - **`code`** - Write code interactively with full project context
70
-
71
- ### Quick Examples:
72
-
73
- **Initialize project:**
74
- ```shell
75
- gsloth init anthropic
76
- ```
77
-
78
- **Review PR with requirements:**
79
- ```shell
80
- gsloth pr 42 23 # Review PR #42 with GitHub issue #23
81
- ```
82
-
83
- **Review local changes:**
84
- ```shell
85
- git --no-pager diff | gsloth review
86
- ```
87
-
88
- **Ask questions:**
89
- ```shell
90
- gsloth ask "What does this function do?" -f utils.js
91
- ```
92
-
93
- **Interactive sessions:**
94
- ```shell
95
- gsloth chat # Start chat session
96
- gsloth code # Start coding session
97
- ```
98
-
99
- ## Installation
100
-
101
- Tested with Node 22 LTS.
102
-
103
- ### NPM
104
- ```shell
105
- npm install gaunt-sloth-assistant -g
106
- ```
107
-
108
- ## Configuration
109
-
110
- > Gaunt Sloth currently only functions from the directory which has a configuration file (`.gsloth.config.js`, `.gsloth.config.json`, or `.gsloth.config.mjs`) and `.gsloth.guidelines.md`.
111
- > Global configuration to invoke gsloth anywhere is in [ROADMAP](ROADMAP.md).
112
-
113
- Configuration can be created with `gsloth init [vendor]` command.
114
- Currently, vertexai, anthropic and groq can be configured with `gsloth init [vendor]`.
115
-
116
- More detailed information on configuration can be found in [CONFIGURATION.md](./docs/CONFIGURATION.md)
117
-
118
- ### Google Vertex AI
119
- ```shell
120
- cd ./your-project
121
- gsloth init vertexai
122
- gcloud auth login
123
- gcloud auth application-default login
124
- ```
125
-
126
- ### Anthropic
127
-
128
- ```shell
129
- cd ./your-project
130
- gsloth init anthropic
131
- ```
132
-
133
- Make sure you either define `ANTHROPIC_API_KEY` environment variable or edit your configuration file and set up your key.
134
-
135
- ### Groq
136
- ```shell
137
- cd ./your-project
138
- gsloth init groq
139
- ```
140
- Make sure you either define `GROQ_API_KEY` environment variable or edit your configuration file and set up your key.
141
-
142
- ### Other AI providers
143
- Any other AI provider supported by Langchain.js can be configured with js [Config](./docs/CONFIGURATION.md).
144
-
145
- ## Contributing
146
- Contributors are needed! Feel free to create a PR.
147
- If you are not sure where to start, look for issues with a "good first issue" label.
148
-
149
- ## Building from repo
150
- See [DEVELOPMENT.md](./docs/DEVELOPMENT.md)
151
-
152
- ## License
153
- License is [MIT](https://opensource.org/license/mit). See [LICENSE](LICENSE)
1
+ # Gaunt Sloth Assistant
2
+ [![Tests and Lint](https://github.com/andruhon/gaunt-sloth-assistant/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/andruhon/gaunt-sloth-assistant/actions/workflows/ci.yml)
3
+
4
+ Gaunt GSloth Assistant is a lightweight **command line AI assistant**
5
+ built with TypeScript (JavaScript) and distributed via NPM with minimum dependencies.
6
+
7
+ ![GSloth Banner](assets/gaunt-sloth-logo.png)
8
+
9
+ Based on [LangChain.js](https://github.com/langchain-ai/langchainjs)
10
+
11
+ ## Why?
12
+
13
+ There are many Open Source command line AI assistants available, such as Aider and Goose;
14
+ there are great non-open source options such as Claude Code.
15
+
16
+ Gaunt Sloth does not intend to be your "Daily Driver" and is not aiming to replace your Cursor.
17
+ What it promises is that it is small, extendable, cross-platform and can itself be a dependency in your project.
18
+
19
+ The GSloth was initially built as a code review tool, fetching PR contents and Jira contents before feeding them to
20
+ the LLM, but we ourselves found many more use cases which we initially did not anticipate; for example,
21
+ we may have it as a dependency in an MCP project, allowing us to quickly spin it up to simulate or test some use cases.
22
+
23
+ The promise of Gaunt Sloth:
24
+
25
+ - **Minimum dependencies**. Ideally, we aim to only have CommanderJS and some packages from LangChainJS and LangGraphJS.
26
+ - **Extensibility**. Feel free to write some JS and create your Tool, Provider or connect to the MCP server of your choice.
27
+ - **No vendor lock-in**. Just BYO API keys.
28
+ - **Easy installation via NPM**.
29
+ - **All prompts are editable** via markdown files.
30
+ - **No UI**. Command Line only, with intent to be used as a dependency, potentially in your build pipeline.
31
+ Of course, you can use Gaunt Sloth as a dependency and hook your own UI.
32
+
33
+ ## What GSloth does:
34
+
35
+ - Reviews code;
36
+ - Suggests bug fixes;
37
+ - Explains provided code
38
+ - Reviews Diffs provided with pipe (|);
39
+ - You can ask GSloth to review your own code before committing (`git --no-pager diff | gsloth review`).
40
+ - Reviews Pull Requests (PRs) (`gsloth pr 42`);
41
+ - Fetches descriptions (requirements) from Github issue or Jira (`gsloth pr 42 12`);;
42
+ - Answers questions about provided code;
43
+ - Writes code;
44
+ - Connects to MCP server;
45
+ - Saves all responses in .md file in the project directory;
46
+ - Anything else you need, when combined with other command line tools.
47
+
48
+ ### To make GSloth work, you need an **API key** from some AI provider, such as:
49
+
50
+ - Google Vertex AI;
51
+ - Anthropic;
52
+ - Groq;
53
+ - DeepSeek.
54
+
55
+ `*` Any other provider supported by LangChain.JS should also work with [JS config](./docs/CONFIGURATION.md#JavaScript-Configuration).
56
+
57
+ ## Commands Overview
58
+
59
+ `gth` and `gsloth` commands are used interchangeably, both `gsloth pr 42` and `gth pr 42` do the same thing.
60
+
61
+ For detailed information about all commands, see [docs/COMMANDS.md](./docs/COMMANDS.md).
62
+
63
+ ### Available Commands:
64
+
65
+ - **`init`** - Initialize Gaunt Sloth in your project with a specific AI provider
66
+ - **`pr`** - ⚠️ This feature requires GitHub CLI to be installed. Review pull requests with optional requirement integration (GitHub issues or Jira).
67
+ - **`review`** - Review any diff or content from various sources
68
+ - **`ask`** - Ask questions about code or programming topics
69
+ - **`chat`** - Start an interactive chat session
70
+ - **`code`** - Write code interactively with full project context
71
+
72
+ ### Quick Examples:
73
+
74
+ **Initialize project:**
75
+ ```shell
76
+ gsloth init anthropic
77
+ ```
78
+
79
+ **Review PR with requirements:**
80
+ ```shell
81
+ gsloth pr 42 23 # Review PR #42 with GitHub issue #23
82
+ ```
83
+
84
+ **Review local changes:**
85
+ ```shell
86
+ git --no-pager diff | gsloth review
87
+ ```
88
+
89
+ **Ask questions:**
90
+ ```shell
91
+ gsloth ask "What does this function do?" -f utils.js
92
+ ```
93
+
94
+ **Interactive sessions:**
95
+ ```shell
96
+ gsloth chat # Start chat session
97
+ gsloth code # Start coding session
98
+ ```
99
+
100
+ ## Installation
101
+
102
+ Tested with Node 22 LTS.
103
+
104
+ ### NPM
105
+ ```shell
106
+ npm install gaunt-sloth-assistant -g
107
+ ```
108
+
109
+ ## Configuration
110
+
111
+ > Gaunt Sloth currently only functions from the directory which has a configuration file (`.gsloth.config.js`, `.gsloth.config.json`, or `.gsloth.config.mjs`) and `.gsloth.guidelines.md`.
112
+ > Global configuration to invoke gsloth anywhere is in [ROADMAP](ROADMAP.md).
113
+
114
+ Configuration can be created with `gsloth init [vendor]` command.
115
+ Currently, vertexai, anthropic, groq and deepseek can be configured with `gsloth init [vendor]`.
116
+
117
+ More detailed information on configuration can be found in [CONFIGURATION.md](./docs/CONFIGURATION.md)
118
+
119
+ ### Google Vertex AI
120
+ ```shell
121
+ cd ./your-project
122
+ gsloth init vertexai
123
+ gcloud auth login
124
+ gcloud auth application-default login
125
+ ```
126
+
127
+ ### Anthropic
128
+
129
+ ```shell
130
+ cd ./your-project
131
+ gsloth init anthropic
132
+ ```
133
+
134
+ Make sure you either define `ANTHROPIC_API_KEY` environment variable or edit your configuration file and set up your key.
135
+
136
+ ### Groq
137
+ ```shell
138
+ cd ./your-project
139
+ gsloth init groq
140
+ ```
141
+ Make sure you either define `GROQ_API_KEY` environment variable or edit your configuration file and set up your key.
142
+
143
+ ### DeepSeek
144
+ ```shell
145
+ cd ./your-project
146
+ gsloth init deepseek
147
+ ```
148
+ Make sure you either define `DEEPSEEK_API_KEY` environment variable or edit your configuration file and set up your key.
149
+ It is recommended to obtain API key from DeepSeek official website rather than from a reseller.
150
+
151
+ ### Other AI providers
152
+ Any other AI provider supported by Langchain.js can be configured with js [Config](./docs/CONFIGURATION.md).
153
+
154
+ ## Contributing
155
+ Contributors are needed! Feel free to create a PR.
156
+ If you are not sure where to start, look for issues with a "good first issue" label.
157
+
158
+ ## Building from repo
159
+ See [DEVELOPMENT.md](./docs/DEVELOPMENT.md)
160
+
161
+ ## License
162
+ License is [MIT](https://opensource.org/license/mit). See [LICENSE](LICENSE)
@@ -0,0 +1,14 @@
1
+ # v0.7.2 DeepSeek Preset
2
+
3
+ ## New Features
4
+
5
+ ### DeepSeek Support
6
+ - Added DeepSeek model preset and necessary dependencies
7
+
8
+ ## Dependency Updates
9
+ - Updated LangChain, LangGraph and other dependencies
10
+
11
+ ## Other Changes
12
+ - Updated documentation to include DeepSeek preset
13
+
14
+ > *Note: This release note was generated by DeepSeek Reasoner. For more details, see the [discussion thread](https://github.com/andruhon/gaunt-sloth-assistant/discussions/80).*
package/dist/config.d.ts CHANGED
@@ -57,7 +57,7 @@ export interface LLMConfig extends Record<string, unknown> {
57
57
  type: string;
58
58
  model: string;
59
59
  }
60
- export declare const availableDefaultConfigs: readonly ["vertexai", "anthropic", "groq"];
60
+ export declare const availableDefaultConfigs: readonly ["vertexai", "anthropic", "groq", "deepseek"];
61
61
  export type ConfigType = (typeof availableDefaultConfigs)[number];
62
62
  export declare const DEFAULT_CONFIG: Partial<SlothConfig>;
63
63
  /**
package/dist/config.js CHANGED
@@ -6,7 +6,7 @@ import { getGslothConfigReadPath, getGslothConfigWritePath } from '#src/filePath
6
6
  import { PROJECT_GUIDELINES, PROJECT_REVIEW_INSTRUCTIONS, USER_PROJECT_CONFIG_JS, USER_PROJECT_CONFIG_JSON, USER_PROJECT_CONFIG_MJS, } from '#src/constants.js';
7
7
  import { getCurrentDir } from '#src/systemUtils.js';
8
8
  import GthFileSystemToolkit from '#src/tools/GthFileSystemToolkit.js';
9
- export const availableDefaultConfigs = ['vertexai', 'anthropic', 'groq'];
9
+ export const availableDefaultConfigs = ['vertexai', 'anthropic', 'groq', 'deepseek'];
10
10
  export const DEFAULT_CONFIG = {
11
11
  llm: undefined,
12
12
  contentProvider: 'file',
@@ -124,7 +124,7 @@ export async function tryJsonConfig(jsonConfig) {
124
124
  // Get the configuration for the specific LLM type
125
125
  const llmConfig = jsonConfig.llm;
126
126
  // Import the appropriate config module
127
- const configModule = await import(`./configs/${llmType}.js`);
127
+ const configModule = await import(`./presets/${llmType}.js`);
128
128
  if (configModule.processJsonConfig) {
129
129
  const llm = (await configModule.processJsonConfig(llmConfig));
130
130
  return mergeRawConfig(jsonConfig, llm);
@@ -161,7 +161,7 @@ export async function createProjectConfig(configType) {
161
161
  writeProjectReviewPreamble();
162
162
  displayWarning(`Make sure you add as much detail as possible to your ${PROJECT_GUIDELINES}.\n`);
163
163
  displayInfo(`Creating project config for ${configType}`);
164
- const vendorConfig = await import(`./configs/${configType}.js`);
164
+ const vendorConfig = await import(`./presets/${configType}.js`);
165
165
  vendorConfig.init(getGslothConfigWritePath(USER_PROJECT_CONFIG_JSON));
166
166
  }
167
167
  export function writeProjectReviewPreamble() {
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAG1F,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,oBAAoB,MAAM,oCAAoC,CAAC;AA8DtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,MAAM,CAAU,CAAC;AAGlF,MAAM,CAAC,MAAM,cAAc,GAAyB;IAClD,GAAG,EAAE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,EAAE,CAAC;IAC5B,CAAC;IAED,yDAAyD;IACzD,MAAM,YAAY,GAA8B,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC;QAC/E,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC,CAAC,EAAE,CAAC;IAEP,iCAAiC;IACjC,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAC9B,gBAAgB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,KAAK,CAAC,CACrE,CAAC;IACF,MAAM,kBAAkB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5D,OAAO,IAAI,CAAC,IAAI,IAAI,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,0BAA0B;IAC1B,MAAM,eAAe,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,kBAAkB,CAAC,CAAC;IACjE,OAAO,eAAe,CAAC,MAAM,CAC3B,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,CAC3E,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,mBAAuD,MAAM;IAE7D,OAAO,CAAC,GAAG,qBAAqB,CAAC,IAAI,oBAAoB,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACnG,CAAC"}
@@ -27,6 +27,7 @@ export function init(configFileName) {
27
27
  throw new Error('Only JSON config is supported.');
28
28
  }
29
29
  writeFileIfNotExistsWithMessages(configFileName, jsonContent);
30
- displayWarning(`You need to update your ${configFileName} to add your Anthropic API key.`);
30
+ displayWarning(`You need to update your ${configFileName} to add your Anthropic API key, ` +
31
+ 'or define ANTHROPIC_API_KEY environment variable.');
31
32
  }
32
33
  //# sourceMappingURL=anthropic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic.js","sourceRoot":"","sources":["../../src/configs/anthropic.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAC;AAOjE,oEAAoE;AACpE,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,SAA+C;IAE/C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACvD,wEAAwE;IACxE,MAAM,eAAe,GAAG,GAAG,CAAC,iBAAiB,IAAI,SAAS,CAAC,MAAM,CAAC;IAClE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC;QACjC,GAAG,SAAS;QACZ,MAAM,EAAE,eAAe;QACvB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,0BAA0B;KACrD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,WAAW,GAAG;;;;;EAKlB,CAAC;AAEH,MAAM,UAAU,IAAI,CAAC,cAAsB;IACzC,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAEtC,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,CAAC,2BAA2B,cAAc,iCAAiC,CAAC,CAAC;AAC7F,CAAC"}
1
+ {"version":3,"file":"anthropic.js","sourceRoot":"","sources":["../../src/presets/anthropic.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAC;AAOjE,oEAAoE;AACpE,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,SAA+C;IAE/C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACvD,wEAAwE;IACxE,MAAM,eAAe,GAAG,GAAG,CAAC,iBAAiB,IAAI,SAAS,CAAC,MAAM,CAAC;IAClE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC;QACjC,GAAG,SAAS;QACZ,MAAM,EAAE,eAAe;QACvB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,0BAA0B;KACrD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,WAAW,GAAG;;;;;EAKlB,CAAC;AAEH,MAAM,UAAU,IAAI,CAAC,cAAsB;IACzC,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAEtC,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,2BAA2B,cAAc,kCAAkC;QACzE,mDAAmD,CACtD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BaseChatModel, BaseChatModelParams } from '@langchain/core/language_models/chat_models';
2
+ import { ChatDeepSeekInput } from '@langchain/deepseek';
3
+ export declare function processJsonConfig(llmConfig: ChatDeepSeekInput & BaseChatModelParams): Promise<BaseChatModel>;
4
+ export declare function init(configFileName: string): void;
@@ -0,0 +1,33 @@
1
+ import path from 'node:path';
2
+ import { displayWarning } from '#src/consoleUtils.js';
3
+ import { env, getCurrentDir } from '#src/systemUtils.js';
4
+ import { writeFileIfNotExistsWithMessages } from '#src/utils.js';
5
+ // Function to process JSON config and create DeepSeek LLM instance
6
+ export async function processJsonConfig(llmConfig) {
7
+ const deepseek = await import('@langchain/deepseek');
8
+ // Use environment variable if available, otherwise use the config value
9
+ const deepseekApiKey = env.DEEPSEEK_API_KEY || llmConfig.apiKey;
10
+ return new deepseek.ChatDeepSeek({
11
+ ...llmConfig,
12
+ apiKey: deepseekApiKey,
13
+ model: llmConfig.model || 'deepseek-reasoner',
14
+ });
15
+ }
16
+ const jsonContent = `{
17
+ "llm": {
18
+ "type": "deepseek",
19
+ "model": "deepseek-reasoner"
20
+ }
21
+ }`;
22
+ export function init(configFileName) {
23
+ const currentDir = getCurrentDir();
24
+ path.join(currentDir, configFileName);
25
+ // Determine which content to use based on file extension
26
+ if (!configFileName.endsWith('.json')) {
27
+ throw new Error('Only JSON config is supported.');
28
+ }
29
+ writeFileIfNotExistsWithMessages(configFileName, jsonContent);
30
+ displayWarning(`You need to update your ${configFileName} to add your DeepSeek API key, ` +
31
+ 'or define DEEPSEEK_API_KEY environment variable.');
32
+ }
33
+ //# sourceMappingURL=deepseek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../src/presets/deepseek.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAC;AAOjE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,CAAC,+CAA+C,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,qEAAqE"}
1
+ {"version":3,"file":"fake.js","sourceRoot":"","sources":["../../src/presets/fake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,2EAA2E;AAC3E,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,SAAwB;IAC9D,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC,CAAC;QAC3D,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC/C,CAAC;IACD,cAAc,CAAC,+CAA+C,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,qEAAqE"}
@@ -1,5 +1,5 @@
1
1
  import path from 'node:path';
2
- import { displayInfo, displayWarning } from '#src/consoleUtils.js';
2
+ import { displayWarning } from '#src/consoleUtils.js';
3
3
  import { env, getCurrentDir } from '#src/systemUtils.js';
4
4
  import { writeFileIfNotExistsWithMessages } from '#src/utils.js';
5
5
  // Function to process JSON config and create Groq LLM instance
@@ -16,8 +16,7 @@ export async function processJsonConfig(llmConfig) {
16
16
  const jsonContent = `{
17
17
  "llm": {
18
18
  "type": "groq",
19
- "model": "deepseek-r1-distill-llama-70b",
20
- "apiKey": "your-api-key-here"
19
+ "model": "deepseek-r1-distill-llama-70b"
21
20
  }
22
21
  }`;
23
22
  export function init(configFileName) {
@@ -28,7 +27,7 @@ export function init(configFileName) {
28
27
  throw new Error('Only JSON config is supported.');
29
28
  }
30
29
  writeFileIfNotExistsWithMessages(configFileName, jsonContent);
31
- displayInfo(`You can define GROQ_API_KEY environment variable with your Groq API key and it will work with default model.`);
32
- displayWarning(`You need to edit your ${configFileName} to configure model.`);
30
+ displayWarning(`You need to edit your ${configFileName} to configure model, ` +
31
+ 'or define GROQ_API_KEY environment variable.');
33
32
  }
34
33
  //# sourceMappingURL=groq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groq.js","sourceRoot":"","sources":["../../src/presets/groq.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAC;AAIjE,+DAA+D;AAC/D,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,SAAwB;IAC9D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC7C,wEAAwE;IACxE,MAAM,UAAU,GAAG,GAAG,CAAC,YAAY,IAAI,SAAS,CAAC,MAAM,CAAC;IACxD,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC;QACvB,GAAG,SAAS;QACZ,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,+BAA+B;KAC1D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,WAAW,GAAG;;;;;EAKlB,CAAC;AAEH,MAAM,UAAU,IAAI,CAAC,cAAsB;IACzC,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAEtC,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,yBAAyB,cAAc,uBAAuB;QAC5D,8CAA8C,CACjD,CAAC;AACJ,CAAC"}
@@ -5,8 +5,7 @@ import { writeFileIfNotExistsWithMessages } from '#src/utils.js';
5
5
  const jsonContent = `{
6
6
  "llm": {
7
7
  "type": "vertexai",
8
- "model": "gemini-2.5-pro-preview-05-06",
9
- "temperature": 0
8
+ "model": "gemini-2.5-pro"
10
9
  }
11
10
  }`;
12
11
  export function init(configFileName) {
@@ -24,7 +23,7 @@ export async function processJsonConfig(llmConfig) {
24
23
  const vertexAi = await import('@langchain/google-vertexai');
25
24
  return new vertexAi.ChatVertexAI({
26
25
  ...llmConfig,
27
- model: llmConfig.model || 'gemini-2.5-pro-preview-05-06',
26
+ model: llmConfig.model || 'gemini-2.5-pro',
28
27
  });
29
28
  }
30
29
  //# sourceMappingURL=vertexai.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertexai.js","sourceRoot":"","sources":["../../src/presets/vertexai.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAC;AAIjE,MAAM,WAAW,GAAG;;;;;EAKlB,CAAC;AAEH,MAAM,UAAU,IAAI,CAAC,cAAsB;IACzC,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAEtC,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"}