@gringow/gringow 0.5.0 → 0.6.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/README.md +11 -0
- package/dist/config.mjs +1 -1
- package/dist/data/check-cache.mjs +1 -1
- package/dist/data/clear-cache.mjs +1 -1
- package/dist/data/create-cache-dir.mjs +1 -1
- package/dist/data/delete-cache-item.mjs +1 -1
- package/dist/data/get-cache.mjs +1 -1
- package/dist/data/get-or-create-cache.mjs +1 -1
- package/dist/data/save-cache.mjs +1 -1
- package/dist/data/write-cache-to-disk.mjs +1 -1
- package/dist/gringow.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/io/ask-llm.mjs +1 -1
- package/dist/schemas/config.shcema.d.mts +1 -1
- package/dist/schemas/config.shcema.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -123,6 +123,17 @@ export default {
|
|
|
123
123
|
}
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
+
### Migration from `llm.choice`
|
|
127
|
+
|
|
128
|
+
`llm.choice` was removed in 0.6.0. Rename the field to `llm.provider` in every Gringow configuration file.
|
|
129
|
+
|
|
130
|
+
```diff
|
|
131
|
+
llm: {
|
|
132
|
+
- choice: 'openai',
|
|
133
|
+
+ provider: 'openai',
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
126
137
|
### Example: Using Gemini
|
|
127
138
|
|
|
128
139
|
```js
|
package/dist/config.mjs
CHANGED
|
@@ -71,7 +71,7 @@ var configSchema = z.object({
|
|
|
71
71
|
postPromptReplace: z.string().optional(),
|
|
72
72
|
prePromptAppend: z.string().optional(),
|
|
73
73
|
postPromptPrepend: z.string().optional()
|
|
74
|
-
}),
|
|
74
|
+
}).strict(),
|
|
75
75
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
76
76
|
}).refine(
|
|
77
77
|
(data) => {
|
|
@@ -74,7 +74,7 @@ var configSchema = z.object({
|
|
|
74
74
|
postPromptReplace: z.string().optional(),
|
|
75
75
|
prePromptAppend: z.string().optional(),
|
|
76
76
|
postPromptPrepend: z.string().optional()
|
|
77
|
-
}),
|
|
77
|
+
}).strict(),
|
|
78
78
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
79
79
|
}).refine(
|
|
80
80
|
(data) => {
|
|
@@ -74,7 +74,7 @@ var configSchema = z.object({
|
|
|
74
74
|
postPromptReplace: z.string().optional(),
|
|
75
75
|
prePromptAppend: z.string().optional(),
|
|
76
76
|
postPromptPrepend: z.string().optional()
|
|
77
|
-
}),
|
|
77
|
+
}).strict(),
|
|
78
78
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
79
79
|
}).refine(
|
|
80
80
|
(data) => {
|
|
@@ -278,7 +278,7 @@ var configSchema = z.object({
|
|
|
278
278
|
postPromptReplace: z.string().optional(),
|
|
279
279
|
prePromptAppend: z.string().optional(),
|
|
280
280
|
postPromptPrepend: z.string().optional()
|
|
281
|
-
}),
|
|
281
|
+
}).strict(),
|
|
282
282
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
283
283
|
}).refine(
|
|
284
284
|
(data) => {
|
|
@@ -74,7 +74,7 @@ var configSchema = z.object({
|
|
|
74
74
|
postPromptReplace: z.string().optional(),
|
|
75
75
|
prePromptAppend: z.string().optional(),
|
|
76
76
|
postPromptPrepend: z.string().optional()
|
|
77
|
-
}),
|
|
77
|
+
}).strict(),
|
|
78
78
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
79
79
|
}).refine(
|
|
80
80
|
(data) => {
|
package/dist/data/get-cache.mjs
CHANGED
|
@@ -74,7 +74,7 @@ var configSchema = z.object({
|
|
|
74
74
|
postPromptReplace: z.string().optional(),
|
|
75
75
|
prePromptAppend: z.string().optional(),
|
|
76
76
|
postPromptPrepend: z.string().optional()
|
|
77
|
-
}),
|
|
77
|
+
}).strict(),
|
|
78
78
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
79
79
|
}).refine(
|
|
80
80
|
(data) => {
|
|
@@ -74,7 +74,7 @@ var configSchema = z.object({
|
|
|
74
74
|
postPromptReplace: z.string().optional(),
|
|
75
75
|
prePromptAppend: z.string().optional(),
|
|
76
76
|
postPromptPrepend: z.string().optional()
|
|
77
|
-
}),
|
|
77
|
+
}).strict(),
|
|
78
78
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
79
79
|
}).refine(
|
|
80
80
|
(data) => {
|
package/dist/data/save-cache.mjs
CHANGED
|
@@ -74,7 +74,7 @@ var configSchema = z.object({
|
|
|
74
74
|
postPromptReplace: z.string().optional(),
|
|
75
75
|
prePromptAppend: z.string().optional(),
|
|
76
76
|
postPromptPrepend: z.string().optional()
|
|
77
|
-
}),
|
|
77
|
+
}).strict(),
|
|
78
78
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
79
79
|
}).refine(
|
|
80
80
|
(data) => {
|
|
@@ -74,7 +74,7 @@ var configSchema = z.object({
|
|
|
74
74
|
postPromptReplace: z.string().optional(),
|
|
75
75
|
prePromptAppend: z.string().optional(),
|
|
76
76
|
postPromptPrepend: z.string().optional()
|
|
77
|
-
}),
|
|
77
|
+
}).strict(),
|
|
78
78
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
79
79
|
}).refine(
|
|
80
80
|
(data) => {
|
package/dist/gringow.mjs
CHANGED
|
@@ -75,7 +75,7 @@ var configSchema = z.object({
|
|
|
75
75
|
postPromptReplace: z.string().optional(),
|
|
76
76
|
prePromptAppend: z.string().optional(),
|
|
77
77
|
postPromptPrepend: z.string().optional()
|
|
78
|
-
}),
|
|
78
|
+
}).strict(),
|
|
79
79
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
80
80
|
}).refine(
|
|
81
81
|
(data) => {
|
package/dist/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ var configSchema = z.object({
|
|
|
75
75
|
postPromptReplace: z.string().optional(),
|
|
76
76
|
prePromptAppend: z.string().optional(),
|
|
77
77
|
postPromptPrepend: z.string().optional()
|
|
78
|
-
}),
|
|
78
|
+
}).strict(),
|
|
79
79
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
80
80
|
}).refine(
|
|
81
81
|
(data) => {
|
package/dist/io/ask-llm.mjs
CHANGED
|
@@ -72,7 +72,7 @@ var configSchema = z.object({
|
|
|
72
72
|
postPromptReplace: z.string().optional(),
|
|
73
73
|
prePromptAppend: z.string().optional(),
|
|
74
74
|
postPromptPrepend: z.string().optional()
|
|
75
|
-
}),
|
|
75
|
+
}).strict(),
|
|
76
76
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
77
77
|
}).refine(
|
|
78
78
|
(data) => {
|
|
@@ -43,7 +43,7 @@ declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
43
43
|
postPromptReplace: z.ZodOptional<z.ZodString>;
|
|
44
44
|
prePromptAppend: z.ZodOptional<z.ZodString>;
|
|
45
45
|
postPromptPrepend: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, "
|
|
46
|
+
}, "strict", z.ZodTypeAny, {
|
|
47
47
|
provider: "anthropic" | "gemini" | "openai" | "groq" | "mistral" | "ollama" | "xai" | "deepseek" | "openrouter" | "cerebras" | "lmstudio" | "azure" | "meta";
|
|
48
48
|
model: string | null;
|
|
49
49
|
apiKey?: string | undefined;
|
|
@@ -44,7 +44,7 @@ var configSchema = z.object({
|
|
|
44
44
|
postPromptReplace: z.string().optional(),
|
|
45
45
|
prePromptAppend: z.string().optional(),
|
|
46
46
|
postPromptPrepend: z.string().optional()
|
|
47
|
-
}),
|
|
47
|
+
}).strict(),
|
|
48
48
|
globby: z.string().regex(/^\.\/.*/).optional()
|
|
49
49
|
}).refine(
|
|
50
50
|
(data) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gringow/gringow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"main": "./dist/index.mjs",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@types/md5": "^2.3.6",
|
|
71
71
|
"cosmiconfig": "^9.0.0",
|
|
72
72
|
"lodash.merge": "^4.6.2",
|
|
73
|
-
"multi-llm-ts": "^5.
|
|
73
|
+
"multi-llm-ts": "^5.1.1",
|
|
74
74
|
"zod": "^3.25.76"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|