git-coco 0.8.1 → 0.8.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/dist/index.d.ts +3 -2
- package/package.json +9 -7
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,10 @@ import { OpenAI } from 'langchain/llms/openai';
|
|
|
8
8
|
import { Ollama } from 'langchain/llms/ollama';
|
|
9
9
|
import { SimpleGit } from 'simple-git';
|
|
10
10
|
import { Color } from 'chalk';
|
|
11
|
+
import { TiktokenModel as TiktokenModel$1 } from 'tiktoken';
|
|
11
12
|
|
|
12
13
|
type LLMProvider = 'openai' | 'ollama';
|
|
13
|
-
type OllamaModel = 'neural-chat' | '
|
|
14
|
+
type OllamaModel = 'neural-chat' | 'aya:8b' | 'aya:35b' | 'mistral' | 'llama2' | 'codellama' | 'codellama:7b' | 'codellama:13b' | 'codellama:34b' | 'codellama:70b' | 'llama2-uncensored' | 'llama2:13b' | 'llama2:70b' | 'llama3' | 'llama3:latest' | 'llama3:text' | 'llama3:70b' | 'llama3:70b-text' | 'orca2' | 'orca2:13b' | 'orca-mini' | 'orca-mini:latest' | 'orca-mini:13b' | 'orca-mini:70b' | 'phi3' | 'phi3:mini' | 'phi3:medium' | 'phi3:medium-128k' | 'qwen2' | 'qwen2:72b' | 'qwen2:72b-text' | 'qwen2:1.5b' | 'qwen2:0.5b' | 'gemma' | 'gemma:7b`' | 'gemma:2b' | 'codegemma' | 'codegemma:7b-code' | 'codegemma:2b';
|
|
14
15
|
type LLMModel = TiktokenModel | OllamaModel;
|
|
15
16
|
interface BaseLLMService {
|
|
16
17
|
provider: LLMProvider;
|
|
@@ -298,7 +299,7 @@ type TokenCounter = Awaited<ReturnType<typeof getTokenCounter>>;
|
|
|
298
299
|
* @param {TikTokenModel} modelName - The name of the Tiktoken model.
|
|
299
300
|
* @returns A promise that resolves to a function that calculates the number of tokens in a given text.
|
|
300
301
|
*/
|
|
301
|
-
declare const getTokenCounter: (modelName: TiktokenModel) => Promise<(text: string) => number>;
|
|
302
|
+
declare const getTokenCounter: (modelName: TiktokenModel$1) => Promise<(text: string) => number>;
|
|
302
303
|
|
|
303
304
|
type FileChangeStatus = 'modified' | 'renamed' | 'added' | 'deleted' | 'untracked' | 'unknown';
|
|
304
305
|
interface FileChange {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-coco",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "zero-effort git commits with coco.",
|
|
5
5
|
"author": "gfargo <ghfargo@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"start": "npm run dev",
|
|
27
27
|
"dev": "tsx watch src/index.ts",
|
|
28
28
|
"build": "rollup -c",
|
|
29
|
+
"build:schema": "node bin/generateSchema.js",
|
|
29
30
|
"build:watch": "rollup -c -w",
|
|
30
31
|
"clean": "rimraf dist && rimraf coverage",
|
|
31
32
|
"lint": "eslint src",
|
|
@@ -47,16 +48,16 @@
|
|
|
47
48
|
"@rollup/plugin-json": "^6.0.0",
|
|
48
49
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
49
50
|
"@types/async": "^3.2.20",
|
|
50
|
-
"@types/axios": "^0.14.0",
|
|
51
51
|
"@types/chunk-text": "^1.0.0",
|
|
52
52
|
"@types/common-tags": "^1.8.1",
|
|
53
53
|
"@types/diff": "^5.0.3",
|
|
54
54
|
"@types/ini": "^1.3.31",
|
|
55
55
|
"@types/inquirer": "^9.0.3",
|
|
56
56
|
"@types/jest": "^29.5.10",
|
|
57
|
-
"@types/
|
|
58
|
-
"@
|
|
59
|
-
"@typescript-eslint/
|
|
57
|
+
"@types/node": "^20.14.4",
|
|
58
|
+
"@types/yargs": "^17.0.32",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
60
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
60
61
|
"eslint": "^8.54.0",
|
|
61
62
|
"eslint-formatter-pretty": "^6.0.0",
|
|
62
63
|
"jest": "^29.5.0",
|
|
@@ -76,10 +77,11 @@
|
|
|
76
77
|
"ts-node": "^10.9.1",
|
|
77
78
|
"tslib": "^2.5.3",
|
|
78
79
|
"tsx": "^3.12.7",
|
|
79
|
-
"typescript": "^5.
|
|
80
|
+
"typescript": "^5.4.5"
|
|
80
81
|
},
|
|
81
82
|
"dependencies": {
|
|
82
83
|
"@inquirer/prompts": "3.3.0",
|
|
84
|
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
83
85
|
"chalk": "4.1.2",
|
|
84
86
|
"diff": "5.2.0",
|
|
85
87
|
"ini": "4.1.1",
|
|
@@ -90,7 +92,7 @@
|
|
|
90
92
|
"performance-now": "2.1.0",
|
|
91
93
|
"pretty-ms": "7.0.1",
|
|
92
94
|
"simple-git": "3.23.0",
|
|
93
|
-
"tiktoken": "1.0.
|
|
95
|
+
"tiktoken": "^1.0.15",
|
|
94
96
|
"yargs": "17.7.2"
|
|
95
97
|
}
|
|
96
98
|
}
|