git-coco 0.14.1 → 0.14.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.
package/README.md CHANGED
@@ -16,8 +16,12 @@
16
16
 
17
17
  - **`recap`**: summarize changes from working-tree, or yesterday, or in the last month, or since the last tag!
18
18
 
19
+ - **`review`**: perform a code review on the changes in the working directory.
20
+
19
21
  - **`init`**: step by step wizard to set up `coco` globally or for a project.
20
22
 
23
+ - **`help`**: display help for `coco` commands.
24
+
21
25
  ## Getting Started
22
26
 
23
27
  **`coco init`** is the first step to getting started with `coco`. It will guide you through the installation process, including setting up your OpenAI API key and configuring `coco` to your preferences.
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as yargs from 'yargs';
2
2
  import { Arguments } from 'yargs';
3
- import { AnthropicInput, ChatAnthropic } from '@langchain/anthropic';
4
3
  import { OllamaInput } from '@langchain/community/llms/ollama';
5
4
  import { BaseLLMParams } from '@langchain/core/language_models/llms';
6
5
  import * as _langchain_openai from '@langchain/openai';
7
6
  import { TiktokenModel, OpenAIInput, ChatOpenAI } from '@langchain/openai';
8
7
  import { SimpleGit } from 'simple-git';
8
+ import { ChatAnthropic } from '@langchain/anthropic';
9
9
  import { ChatOllama } from '@langchain/ollama';
10
10
  import { Color } from 'chalk';
11
11
  import { TiktokenModel as TiktokenModel$1 } from 'tiktoken';
@@ -20,7 +20,7 @@ type BaseLLMService = {
20
20
  /**
21
21
  * The maximum number of tokens per request.
22
22
  *
23
- * @default 1024
23
+ * @default 2048
24
24
  */
25
25
  tokenLimit?: number;
26
26
  /**
@@ -41,7 +41,6 @@ type BaseLLMService = {
41
41
  timeout?: number;
42
42
  maxRetries?: number;
43
43
  };
44
- fields?: OpenAIFields | OllamaFields;
45
44
  };
46
45
  type Authentication = {
47
46
  type: 'None';
@@ -61,7 +60,6 @@ type Authentication = {
61
60
  };
62
61
  type OpenAIFields = Partial<OpenAIInput> & BaseLLMParams;
63
62
  type OllamaFields = Partial<OllamaInput> & BaseLLMParams;
64
- type AnthropicFields = Partial<AnthropicInput> & BaseLLMParams;
65
63
  type OpenAILLMService = BaseLLMService & {
66
64
  provider: 'openai';
67
65
  model: TiktokenModel;
@@ -75,8 +73,11 @@ type OllamaLLMService = BaseLLMService & {
75
73
  };
76
74
  type AnthropicLLMService = BaseLLMService & {
77
75
  provider: 'anthropic';
78
- model: string;
79
- fields?: AnthropicFields;
76
+ model: AnthropicModel;
77
+ fields?: {
78
+ temperature?: number;
79
+ maxTokens?: number;
80
+ };
80
81
  };
81
82
  type LLMService = OpenAILLMService | OllamaLLMService | AnthropicLLMService;
82
83
 
@@ -140,6 +141,7 @@ type Config$1 = ConfigWithServiceObject;
140
141
  interface BaseArgvOptions {
141
142
  interactive: boolean;
142
143
  verbose: boolean;
144
+ version: boolean;
143
145
  help: boolean;
144
146
  }
145
147
  interface BaseCommandOptions extends BaseArgvOptions {
@@ -186,6 +188,7 @@ declare const _default$1: {
186
188
  scope?: InstallationScope | undefined;
187
189
  interactive: boolean;
188
190
  verbose: boolean;
191
+ version: boolean;
189
192
  help: boolean;
190
193
  _: (string | number)[];
191
194
  $0: string;
@@ -194,6 +197,7 @@ declare const _default$1: {
194
197
  scope?: InstallationScope | undefined;
195
198
  interactive: boolean;
196
199
  verbose: boolean;
200
+ version: boolean;
197
201
  help: boolean;
198
202
  _: (string | number)[];
199
203
  $0: string;