git-coco 0.13.2 → 0.14.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.
- package/dist/index.d.ts +8 -6
- package/dist/index.esm.mjs +21479 -116
- package/dist/index.js +21481 -117
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,13 +5,15 @@ import { BaseLLMParams } from '@langchain/core/language_models/llms';
|
|
|
5
5
|
import * as _langchain_openai from '@langchain/openai';
|
|
6
6
|
import { TiktokenModel, OpenAIInput, ChatOpenAI } from '@langchain/openai';
|
|
7
7
|
import { SimpleGit } from 'simple-git';
|
|
8
|
+
import { ChatAnthropic } from '@langchain/anthropic';
|
|
8
9
|
import { ChatOllama } from '@langchain/ollama';
|
|
9
10
|
import { Color } from 'chalk';
|
|
10
11
|
import { TiktokenModel as TiktokenModel$1 } from 'tiktoken';
|
|
11
12
|
|
|
12
|
-
type LLMProvider = 'openai' | 'ollama';
|
|
13
|
+
type LLMProvider = 'openai' | 'ollama' | 'anthropic';
|
|
14
|
+
type AnthropicModel = 'claude-3-5-sonnet-20240620' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307' | 'claude-2.1' | 'claude-2.0';
|
|
13
15
|
type OllamaModel = 'codegemma:2b' | 'codegemma:7b-code' | 'codegemma' | 'codellama:13b' | 'codellama:34b' | 'codellama:70b' | 'codellama:7b' | 'codellama:instruct' | 'codellama:latest' | 'codellama' | 'gemma:2b' | 'gemma:7b' | 'gemma:latest' | 'gemma' | 'llama2:13b' | 'llama2:70b' | 'llama2:chat' | 'llama2:latest' | 'llama2:text' | 'llama2' | 'llama3:70b-text' | 'llama3:70b' | 'llama3:latest' | 'llama3:text' | 'llama3.1:70b' | 'llama3.1:8b' | 'llama3.1:latest' | 'llama3.2' | 'llama3.2:latest' | 'llama3.2:1b' | 'llama3.2:3b' | 'llama3.2:1b-instruct-fp16' | 'llama3.2:1b-instruct-q3_K_M' | 'llama3' | 'mistral:7b' | 'mistral:latest' | 'mistral:text' | 'mistral' | 'phi3:14b' | 'phi3:3.8b' | 'phi3:instruct' | 'phi3:medium-128k' | 'phi3:medium-4k' | 'phi3:medium' | 'phi3' | 'qwen2:0.5b' | 'qwen2:1.5b' | 'qwen2:72b-text' | 'qwen2:72b' | 'qwen2';
|
|
14
|
-
type LLMModel = TiktokenModel | OllamaModel;
|
|
16
|
+
type LLMModel = TiktokenModel | OllamaModel | AnthropicModel;
|
|
15
17
|
type BaseLLMService = {
|
|
16
18
|
provider: LLMProvider;
|
|
17
19
|
model: LLMModel;
|
|
@@ -146,7 +148,7 @@ type ChangelogArgv = Arguments<ChangelogOptions>;
|
|
|
146
148
|
declare const _default$3: {
|
|
147
149
|
command: string;
|
|
148
150
|
desc: string;
|
|
149
|
-
builder: (
|
|
151
|
+
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
150
152
|
handler: (argv: ChangelogArgv) => Promise<void>;
|
|
151
153
|
options: Record<string, yargs.Options>;
|
|
152
154
|
};
|
|
@@ -162,7 +164,7 @@ type CommitArgv = Arguments<CommitOptions>;
|
|
|
162
164
|
declare const _default$2: {
|
|
163
165
|
command: string;
|
|
164
166
|
desc: string;
|
|
165
|
-
builder: (
|
|
167
|
+
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
166
168
|
handler: (argv: CommitArgv) => Promise<void>;
|
|
167
169
|
options: Record<string, yargs.Options>;
|
|
168
170
|
};
|
|
@@ -204,7 +206,7 @@ type RecapArgv = Arguments<RecapOptions>;
|
|
|
204
206
|
declare const _default: {
|
|
205
207
|
command: string;
|
|
206
208
|
desc: string;
|
|
207
|
-
builder: (
|
|
209
|
+
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
208
210
|
handler: (argv: RecapArgv) => Promise<void>;
|
|
209
211
|
options: Record<string, yargs.Options>;
|
|
210
212
|
};
|
|
@@ -216,7 +218,7 @@ declare const _default: {
|
|
|
216
218
|
* @param configuration
|
|
217
219
|
* @returns LLM Model
|
|
218
220
|
*/
|
|
219
|
-
declare function getLlm(provider: LLMProvider, model: LLMModel, config: Config$1): ChatOllama | ChatOpenAI<_langchain_openai.ChatOpenAICallOptions>;
|
|
221
|
+
declare function getLlm(provider: LLMProvider, model: LLMModel, config: Config$1): ChatAnthropic | ChatOllama | ChatOpenAI<_langchain_openai.ChatOpenAICallOptions>;
|
|
220
222
|
|
|
221
223
|
interface LoggerOptions {
|
|
222
224
|
color?: typeof Color;
|