git-coco 0.13.2 → 0.14.1

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 CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as yargs from 'yargs';
2
2
  import { Arguments } from 'yargs';
3
+ import { AnthropicInput, ChatAnthropic } from '@langchain/anthropic';
3
4
  import { OllamaInput } from '@langchain/community/llms/ollama';
4
5
  import { BaseLLMParams } from '@langchain/core/language_models/llms';
5
6
  import * as _langchain_openai from '@langchain/openai';
@@ -9,9 +10,10 @@ 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;
@@ -59,6 +61,7 @@ type Authentication = {
59
61
  };
60
62
  type OpenAIFields = Partial<OpenAIInput> & BaseLLMParams;
61
63
  type OllamaFields = Partial<OllamaInput> & BaseLLMParams;
64
+ type AnthropicFields = Partial<AnthropicInput> & BaseLLMParams;
62
65
  type OpenAILLMService = BaseLLMService & {
63
66
  provider: 'openai';
64
67
  model: TiktokenModel;
@@ -70,7 +73,12 @@ type OllamaLLMService = BaseLLMService & {
70
73
  endpoint: string;
71
74
  fields?: OllamaFields;
72
75
  };
73
- type LLMService = OpenAILLMService | OllamaLLMService;
76
+ type AnthropicLLMService = BaseLLMService & {
77
+ provider: 'anthropic';
78
+ model: string;
79
+ fields?: AnthropicFields;
80
+ };
81
+ type LLMService = OpenAILLMService | OllamaLLMService | AnthropicLLMService;
74
82
 
75
83
  type BaseConfig = {
76
84
  /**
@@ -146,7 +154,7 @@ type ChangelogArgv = Arguments<ChangelogOptions>;
146
154
  declare const _default$3: {
147
155
  command: string;
148
156
  desc: string;
149
- builder: (yargsInstance: ReturnType<typeof yargs>) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
157
+ builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
150
158
  handler: (argv: ChangelogArgv) => Promise<void>;
151
159
  options: Record<string, yargs.Options>;
152
160
  };
@@ -162,7 +170,7 @@ type CommitArgv = Arguments<CommitOptions>;
162
170
  declare const _default$2: {
163
171
  command: string;
164
172
  desc: string;
165
- builder: (yargsInstance: ReturnType<typeof yargs>) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
173
+ builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
166
174
  handler: (argv: CommitArgv) => Promise<void>;
167
175
  options: Record<string, yargs.Options>;
168
176
  };
@@ -204,7 +212,7 @@ type RecapArgv = Arguments<RecapOptions>;
204
212
  declare const _default: {
205
213
  command: string;
206
214
  desc: string;
207
- builder: (yargsInstance: ReturnType<typeof yargs>) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
215
+ builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
208
216
  handler: (argv: RecapArgv) => Promise<void>;
209
217
  options: Record<string, yargs.Options>;
210
218
  };
@@ -216,7 +224,7 @@ declare const _default: {
216
224
  * @param configuration
217
225
  * @returns LLM Model
218
226
  */
219
- declare function getLlm(provider: LLMProvider, model: LLMModel, config: Config$1): ChatOllama | ChatOpenAI<_langchain_openai.ChatOpenAICallOptions>;
227
+ declare function getLlm(provider: LLMProvider, model: LLMModel, config: Config$1): ChatAnthropic | ChatOllama | ChatOpenAI<_langchain_openai.ChatOpenAICallOptions>;
220
228
 
221
229
  interface LoggerOptions {
222
230
  color?: typeof Color;