@gringow/gringow 0.0.7 → 0.0.8
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/config.d.mts +23 -3
- package/dist/config.mjs +1 -1
- package/dist/config.test.d.mts +2 -0
- package/dist/config.test.mjs +18651 -0
- package/dist/{default-config.d.mts → constants/default-config.d.mts} +1 -1
- package/dist/{default-config.mjs → constants/default-config.mjs} +1 -1
- package/dist/data/check-cache.d.mts +1 -1
- package/dist/data/check-cache.mjs +37 -15
- package/dist/data/clear-cache.d.mts +9 -0
- package/dist/data/clear-cache.mjs +1 -1
- package/dist/data/create-cache-dir.mjs +1 -1
- package/dist/data/delete-cache-item.d.mts +1 -1
- package/dist/data/delete-cache-item.mjs +1 -1
- package/dist/data/get-cache.d.mts +10 -0
- package/dist/data/get-cache.mjs +1 -1
- package/dist/data/get-or-create-cache.d.mts +1 -1
- package/dist/data/get-or-create-cache.mjs +1 -1
- package/dist/data/save-cache.d.mts +7 -1
- package/dist/data/save-cache.mjs +1 -1
- package/dist/data/write-cache-to-disk.d.mts +1 -1
- package/dist/data/write-cache-to-disk.mjs +1 -1
- package/dist/flat-template-string.test.mjs +1 -1
- package/dist/gringow.d.mts +1 -1
- package/dist/gringow.mjs +42 -20
- package/dist/index.d.mts +25 -3
- package/dist/index.mjs +42 -20
- package/dist/io/anthropic/ask.d.mts +6 -0
- package/dist/io/anthropic/ask.mjs +1 -1
- package/dist/io/anthropic/commit-response.d.mts +7 -1
- package/dist/io/anthropic/index.d.mts +1 -1
- package/dist/io/anthropic/index.mjs +1 -1
- package/dist/io/anthropic/parse.d.mts +7 -1
- package/dist/io/ask-llm.d.mts +7 -1
- package/dist/io/ask-llm.mjs +6 -6
- package/dist/io/gemini/ask.d.mts +6 -0
- package/dist/io/gemini/ask.mjs +1 -1
- package/dist/io/gemini/commit-response.d.mts +6 -0
- package/dist/io/gemini/index.d.mts +1 -1
- package/dist/io/gemini/index.mjs +1 -1
- package/dist/io/gemini/parse.d.mts +7 -1
- package/dist/io/huggingface/ask.d.mts +1 -1
- package/dist/io/huggingface/ask.mjs +1 -1
- package/dist/io/huggingface/commit-response.d.mts +13 -1
- package/dist/io/huggingface/index.d.mts +1 -1
- package/dist/io/huggingface/index.mjs +1 -1
- package/dist/io/huggingface/languagesMap.d.mts +5 -0
- package/dist/io/huggingface/parse.d.mts +7 -1
- package/dist/logger.d.mts +6 -20
- package/dist/logger.mjs +36 -14
- package/dist/logger.test.d.mts +2 -0
- package/dist/logger.test.mjs +18683 -0
- package/dist/schemas/config.shcema.d.mts +12 -12
- package/dist/types/index.d.mts +1 -1
- package/package.json +9 -10
|
@@ -53,10 +53,10 @@ declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
54
|
choice: "gemini" | "anthropic" | "huggingface";
|
|
55
55
|
model: string | null;
|
|
56
|
-
temperature?: number | undefined;
|
|
57
|
-
sleep?: number | undefined;
|
|
58
56
|
prePrompt?: string | undefined;
|
|
59
57
|
postPrompt?: string | undefined;
|
|
58
|
+
temperature?: number | undefined;
|
|
59
|
+
sleep?: number | undefined;
|
|
60
60
|
prePromptReplace?: string | undefined;
|
|
61
61
|
postPromptReplace?: string | undefined;
|
|
62
62
|
prePromptAppend?: string | undefined;
|
|
@@ -64,10 +64,10 @@ declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
64
64
|
}, {
|
|
65
65
|
choice: "gemini" | "anthropic" | "huggingface";
|
|
66
66
|
model: string | null;
|
|
67
|
-
temperature?: number | undefined;
|
|
68
|
-
sleep?: number | undefined;
|
|
69
67
|
prePrompt?: string | undefined;
|
|
70
68
|
postPrompt?: string | undefined;
|
|
69
|
+
temperature?: number | undefined;
|
|
70
|
+
sleep?: number | undefined;
|
|
71
71
|
prePromptReplace?: string | undefined;
|
|
72
72
|
postPromptReplace?: string | undefined;
|
|
73
73
|
prePromptAppend?: string | undefined;
|
|
@@ -93,10 +93,10 @@ declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
93
|
llm: {
|
|
94
94
|
choice: "gemini" | "anthropic" | "huggingface";
|
|
95
95
|
model: string | null;
|
|
96
|
-
temperature?: number | undefined;
|
|
97
|
-
sleep?: number | undefined;
|
|
98
96
|
prePrompt?: string | undefined;
|
|
99
97
|
postPrompt?: string | undefined;
|
|
98
|
+
temperature?: number | undefined;
|
|
99
|
+
sleep?: number | undefined;
|
|
100
100
|
prePromptReplace?: string | undefined;
|
|
101
101
|
postPromptReplace?: string | undefined;
|
|
102
102
|
prePromptAppend?: string | undefined;
|
|
@@ -123,10 +123,10 @@ declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
123
123
|
llm: {
|
|
124
124
|
choice: "gemini" | "anthropic" | "huggingface";
|
|
125
125
|
model: string | null;
|
|
126
|
-
temperature?: number | undefined;
|
|
127
|
-
sleep?: number | undefined;
|
|
128
126
|
prePrompt?: string | undefined;
|
|
129
127
|
postPrompt?: string | undefined;
|
|
128
|
+
temperature?: number | undefined;
|
|
129
|
+
sleep?: number | undefined;
|
|
130
130
|
prePromptReplace?: string | undefined;
|
|
131
131
|
postPromptReplace?: string | undefined;
|
|
132
132
|
prePromptAppend?: string | undefined;
|
|
@@ -153,10 +153,10 @@ declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
153
153
|
llm: {
|
|
154
154
|
choice: "gemini" | "anthropic" | "huggingface";
|
|
155
155
|
model: string | null;
|
|
156
|
-
temperature?: number | undefined;
|
|
157
|
-
sleep?: number | undefined;
|
|
158
156
|
prePrompt?: string | undefined;
|
|
159
157
|
postPrompt?: string | undefined;
|
|
158
|
+
temperature?: number | undefined;
|
|
159
|
+
sleep?: number | undefined;
|
|
160
160
|
prePromptReplace?: string | undefined;
|
|
161
161
|
postPromptReplace?: string | undefined;
|
|
162
162
|
prePromptAppend?: string | undefined;
|
|
@@ -183,10 +183,10 @@ declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
183
183
|
llm: {
|
|
184
184
|
choice: "gemini" | "anthropic" | "huggingface";
|
|
185
185
|
model: string | null;
|
|
186
|
-
temperature?: number | undefined;
|
|
187
|
-
sleep?: number | undefined;
|
|
188
186
|
prePrompt?: string | undefined;
|
|
189
187
|
postPrompt?: string | undefined;
|
|
188
|
+
temperature?: number | undefined;
|
|
189
|
+
sleep?: number | undefined;
|
|
190
190
|
prePromptReplace?: string | undefined;
|
|
191
191
|
postPromptReplace?: string | undefined;
|
|
192
192
|
prePromptAppend?: string | undefined;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { GringowTranslation, GringowCacheItem } from '../index.mjs';
|
|
3
3
|
import { llmOptionsSchema } from '../schemas/config.shcema.mjs';
|
|
4
4
|
import '../config.mjs';
|
|
5
|
-
import '../default-config.mjs';
|
|
5
|
+
import '../constants/default-config.mjs';
|
|
6
6
|
import '../data/clear-cache.mjs';
|
|
7
7
|
import '../data/create-cache-id.mjs';
|
|
8
8
|
import '../data/get-cache.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gringow/gringow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,13 +21,6 @@
|
|
|
21
21
|
"import": "./dist/browser.mjs"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "rm -rf ./dist/* ./tsconfig.tsbuildinfo && tsup",
|
|
26
|
-
"watch": "pnpm run build && tsup --watch --config ../tsup.config.ts",
|
|
27
|
-
"__postinstall": "pnpm run build",
|
|
28
|
-
"test": "vitest",
|
|
29
|
-
"test:run": "vitest run"
|
|
30
|
-
},
|
|
31
24
|
"author": "Renato Gaspar <renato.gaspar@gmail.com>",
|
|
32
25
|
"contributors": [
|
|
33
26
|
{
|
|
@@ -80,5 +73,11 @@
|
|
|
80
73
|
"onnxruntime-node": "1.22.0-rev",
|
|
81
74
|
"zod": "^3.25.76"
|
|
82
75
|
},
|
|
83
|
-
"
|
|
84
|
-
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build": "rm -rf ./dist/* ./tsconfig.tsbuildinfo && tsup",
|
|
78
|
+
"watch": "pnpm run build && tsup --watch --config ../tsup.config.ts",
|
|
79
|
+
"__postinstall": "pnpm run build",
|
|
80
|
+
"test": "vitest run",
|
|
81
|
+
"test:watch": "vitest --watch"
|
|
82
|
+
}
|
|
83
|
+
}
|