Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 118 additions & 28 deletions README.md

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 45 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "diff-commit",
"displayName": "Diff Commit",
"version": "0.3.9",
"description": "Generate detailed Git commit messages following the conventional commit specification using Anthropic's AI models like Claude 4 Sonnet.",
"description": "Generate detailed Git commit messages following the conventional commit specification using AI models. Choose between Anthropic's cloud-based models like Claude 4 Sonnet or local Ollama models for offline usage.",
"categories": [
"AI",
"SCM Providers"
Expand All @@ -15,6 +15,9 @@
"Anthropic",
"Claude Sonnet",
"Sonnet",
"Ollama",
"Local AI",
"Offline AI",
"Diff Commit",
"tpsTech",
"tsdevau"
Expand Down Expand Up @@ -55,11 +58,34 @@
"command": "diffCommit.deleteAPIKey",
"title": "DiffCommit: Delete stored API Key",
"icon": "$(trash)"
},
{
"command": "diffCommit.configureOllamaModel",
"title": "DiffCommit: Configure Ollama Model",
"icon": "$(server-environment)"
},
{
"command": "diffCommit.changeOllamaModel",
"title": "DiffCommit: Change Ollama Model",
"icon": "$(settings-gear)"
}
],
"configuration": {
"title": "Diff Commit",
"properties": {
"diffCommit.provider": {
"type": "string",
"default": "anthropic",
"enum": [
"anthropic",
"ollama"
],
"enumDescriptions": [
"Use Anthropic's Claude models (requires API key)",
"Use local Ollama models (requires Ollama server to be running)"
],
"description": "Choose the AI provider for generating commit messages."
},
"diffCommit.model": {
"type": "string",
"default": "claude-sonnet-4-0",
Expand All @@ -71,7 +97,17 @@
"claude-opus-4-0",
"claude-3-opus-latest"
],
"description": "The Anthropic AI model to use for generating commit messages."
"description": "The Anthropic AI model to use for generating commit messages. This value is only used when provider is set as 'anthropic'."
},
"diffCommit.ollamaHostname": {
"type": "string",
"default": "http://localhost:11434",
"description": "The URL of the local Ollama server (eg http://localhost:11434). This value is only used when provider is set as 'ollama'."
},
"diffCommit.ollamaModel": {
"type": "string",
"default": "",
"description": "The Ollama model to use for generating commit messages. Use the 'Configure Ollama Model' command to configure this. This value is only used when provider is set as 'ollama'."
},
"diffCommit.maxTokens": {
"type": "number",
Expand All @@ -98,15 +134,15 @@
"type": "string"
},
"default": [
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"chore",
"docs",
"style",
"test",
"perf",
"ci"
"test"
],
"description": "List of allowed commit types. If provided, this replaces the default options. So you need to ensure all required commit types are included in the list."
}
Expand Down Expand Up @@ -141,7 +177,8 @@
}
},
"dependencies": {
"@anthropic-ai/sdk": "^0.39.0"
"@anthropic-ai/sdk": "^0.39.0",
"ollama": "^0.5.16"
},
"devDependencies": {
"@types/jest": "^29.5.14",
Expand Down
Loading