git-coco 0.18.1 → 0.18.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 CHANGED
@@ -16,6 +16,9 @@ type AnthropicModel = 'claude-sonnet-4-0' | 'claude-3-7-sonnet-latest' | 'claude
16
16
  type OllamaModel = 'deepseek-r1:1.5b' | 'deepseek-r1:8b' | 'deepseek-r1:32b' | 'codegemma:2b' | 'codegemma:7b-code' | 'codegemma' | 'codellama:13b' | 'codellama:34b' | 'codellama:70b' | 'codellama:7b' | 'codellama:instruct' | 'codellama:latest' | 'codellama' | 'gemma:2b' | 'gemma:7b' | 'gemma:latest' | 'gemma' | 'llama2:13b' | 'llama2:70b' | 'llama2:chat' | 'llama2:latest' | 'llama2:text' | 'llama2' | 'llama3:70b-text' | 'llama3:70b' | 'llama3:latest' | 'llama3:text' | 'llama3.1:70b' | 'llama3.1:8b' | 'llama3.1:latest' | 'llama3.2' | 'llama3.2:latest' | 'llama3.2:1b' | 'llama3.2:3b' | 'llama3' | 'llava-llama3:latest' | 'dolphin-llama3:latest' | 'dolphin-llama3:8b' | 'dolphin-llama3:70b' | 'mistral:7b' | 'mistral:latest' | 'mistral:text' | 'mistral' | 'phi3:14b' | 'phi3:3.8b' | 'phi3:instruct' | 'phi3:medium-128k' | 'phi3:medium-4k' | 'phi3:medium' | 'phi3' | 'qwen2:0.5b' | 'qwen2:1.5b' | 'qwen2:72b-text' | 'qwen2:72b' | 'qwen2' | 'qwen2.5-coder:latest' | 'qwen2.5-coder:0.5b' | 'qwen2.5-coder:1.5b' | 'qwen2.5-coder:3b' | 'qwen2.5-coder:7b' | 'qwen2.5-coder:14b' | 'qwen2.5-coder:32b';
17
17
  type LLMModel = OpenAIModel | OllamaModel | AnthropicModel;
18
18
  type BaseLLMService = {
19
+ /**
20
+ * @additionalProperties true
21
+ */
19
22
  provider: LLMProvider;
20
23
  model: LLMModel;
21
24
  /**
@@ -46,7 +46,7 @@ import * as readline from 'readline';
46
46
  /**
47
47
  * Current build version from package.json
48
48
  */
49
- const BUILD_VERSION = "0.18.1";
49
+ const BUILD_VERSION = "0.18.2";
50
50
 
51
51
  const isInteractive = (config) => {
52
52
  return config?.mode === 'interactive' || !!config?.interactive;
@@ -639,8 +639,17 @@ function loadGitConfig(config) {
639
639
  }
640
640
  config = {
641
641
  ...config,
642
- ...gitConfigParsed.coco,
643
642
  service: service,
643
+ prompt: gitConfigParsed.coco?.prompt || config.prompt,
644
+ mode: gitConfigParsed.coco?.mode || config.mode,
645
+ summarizePrompt: gitConfigParsed.coco?.summarizePrompt || config.summarizePrompt,
646
+ ignoredFiles: gitConfigParsed.coco?.ignoredFiles || config.ignoredFiles,
647
+ ignoredExtensions: gitConfigParsed.coco?.ignoredExtensions || config.ignoredExtensions,
648
+ defaultBranch: gitConfigParsed.coco?.defaultBranch || config.defaultBranch,
649
+ verbose: gitConfigParsed.coco?.verbose || config.verbose,
650
+ conventionalCommits: gitConfigParsed.coco?.conventionalCommits || config.conventionalCommits,
651
+ openInEditor: gitConfigParsed.coco?.openInEditor || config.openInEditor,
652
+ includeBranchName: gitConfigParsed.coco?.includeBranchName || config.includeBranchName,
644
653
  };
645
654
  }
646
655
  return removeUndefined(config);
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ var readline__namespace = /*#__PURE__*/_interopNamespaceDefault(readline$1);
68
68
  /**
69
69
  * Current build version from package.json
70
70
  */
71
- const BUILD_VERSION = "0.18.1";
71
+ const BUILD_VERSION = "0.18.2";
72
72
 
73
73
  const isInteractive = (config) => {
74
74
  return config?.mode === 'interactive' || !!config?.interactive;
@@ -661,8 +661,17 @@ function loadGitConfig(config) {
661
661
  }
662
662
  config = {
663
663
  ...config,
664
- ...gitConfigParsed.coco,
665
664
  service: service,
665
+ prompt: gitConfigParsed.coco?.prompt || config.prompt,
666
+ mode: gitConfigParsed.coco?.mode || config.mode,
667
+ summarizePrompt: gitConfigParsed.coco?.summarizePrompt || config.summarizePrompt,
668
+ ignoredFiles: gitConfigParsed.coco?.ignoredFiles || config.ignoredFiles,
669
+ ignoredExtensions: gitConfigParsed.coco?.ignoredExtensions || config.ignoredExtensions,
670
+ defaultBranch: gitConfigParsed.coco?.defaultBranch || config.defaultBranch,
671
+ verbose: gitConfigParsed.coco?.verbose || config.verbose,
672
+ conventionalCommits: gitConfigParsed.coco?.conventionalCommits || config.conventionalCommits,
673
+ openInEditor: gitConfigParsed.coco?.openInEditor || config.openInEditor,
674
+ includeBranchName: gitConfigParsed.coco?.includeBranchName || config.includeBranchName,
666
675
  };
667
676
  }
668
677
  return removeUndefined(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-coco",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "zero-effort git commits with coco.",
5
5
  "author": "gfargo <ghfargo@gmail.com>",
6
6
  "license": "MIT",