zapdev 0.10.0 → 0.11.0
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 +1 -1
- package/dist/cli.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ flowchart LR
|
|
|
33
33
|
| `OLLAMA_URL` | `http://localhost:11434` | No | Ollama base URL |
|
|
34
34
|
| `OLLAMA_MODEL` | `deepseek-v4-flash:cloud` | No | Model used to generate commit messages |
|
|
35
35
|
| `OLLAMA_BACKUP_MODEL` | - | No | Model used when generation with the primary model fails |
|
|
36
|
-
| `OLLAMA_EFFORT` |
|
|
36
|
+
| `OLLAMA_EFFORT` | `low` | No | Ollama thinking effort (`low`, `medium`, `high`, or `max`) |
|
|
37
37
|
|
|
38
38
|
## Setup
|
|
39
39
|
|
package/dist/cli.js
CHANGED
|
@@ -1718,7 +1718,7 @@ function _getBuiltinFlags(long, short, userNames, userAliases) {
|
|
|
1718
1718
|
// package.json
|
|
1719
1719
|
var package_default = {
|
|
1720
1720
|
name: "zapdev",
|
|
1721
|
-
version: "0.
|
|
1721
|
+
version: "0.11.0",
|
|
1722
1722
|
description: "Fast, performant and lightweight git chores and dev tools using your terminal and your own local LLM.",
|
|
1723
1723
|
type: "module",
|
|
1724
1724
|
bin: {
|
|
@@ -1814,12 +1814,13 @@ function sanitizeCommitMessage(raw) {
|
|
|
1814
1814
|
// src/lib/config.ts
|
|
1815
1815
|
var DEFAULT_OLLAMA_URL = "http://localhost:11434";
|
|
1816
1816
|
var DEFAULT_MODEL = "deepseek-v4-flash:cloud";
|
|
1817
|
+
var DEFAULT_EFFORT = "low";
|
|
1817
1818
|
function resolveConfig(env = process.env, overrides = {}) {
|
|
1818
1819
|
return {
|
|
1819
1820
|
ollamaUrl: normalizeBaseUrl(overrides.ollamaUrl ?? env.OLLAMA_URL ?? DEFAULT_OLLAMA_URL),
|
|
1820
1821
|
model: overrides.model ?? env.OLLAMA_MODEL ?? DEFAULT_MODEL,
|
|
1821
1822
|
backupModel: overrides.backupModel ?? optionalValue(env.OLLAMA_BACKUP_MODEL),
|
|
1822
|
-
effort: overrides.effort ?? optionalValue(env.OLLAMA_EFFORT)
|
|
1823
|
+
effort: overrides.effort ?? optionalValue(env.OLLAMA_EFFORT) ?? DEFAULT_EFFORT
|
|
1823
1824
|
};
|
|
1824
1825
|
}
|
|
1825
1826
|
function optionalValue(value) {
|