chore: update dependencies and add OpenCode commit command
- Update llama.cpp from b7789 to b7867 - Update llama-swap from v182 to v186 - Add OpenCode conventional commit command configuration - Add moonshotai Kimi-K2.5 model to llama-swap
This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
description: Create a conventional commit from git changes
|
||||||
|
agent: build
|
||||||
|
---
|
||||||
|
|
||||||
|
Run git commands to ensure all changes are staged, then generate a conventional commit message based on the diff and create the commit.
|
||||||
|
|
||||||
|
Steps:
|
||||||
|
|
||||||
|
1. Add all files (including untracked) using `git add -A`
|
||||||
|
2. Show the current diff with `git diff --cached` and `git diff --staged`
|
||||||
|
3. Analyze the changes and create a conventional commit message following the format:
|
||||||
|
- Type (feat, fix, docs, style, refactor, test, chore, etc.)
|
||||||
|
- Scope (optional, e.g., "runtime", "functions")
|
||||||
|
- Subject (brief description, imperative mood)
|
||||||
|
- Body (detailed explanation, optional)
|
||||||
|
4. Execute `git commit -m "message"` with the generated message
|
||||||
|
5. Show the commit result with `git log -1 --stat`
|
||||||
|
|
||||||
|
Conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>(<scope>): <subject>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
```
|
||||||
|
|
||||||
|
Common types:
|
||||||
|
|
||||||
|
- feat: New feature
|
||||||
|
- fix: Bug fix
|
||||||
|
- docs: Documentation changes
|
||||||
|
- style: Code style changes (formatting, semicolons, etc.)
|
||||||
|
- refactor: Code refactoring (neither bug fix nor feature)
|
||||||
|
- test: Adding or updating tests
|
||||||
|
- chore: Maintenance tasks
|
||||||
|
- perf: Performance improvements
|
||||||
|
- ci: CI/CD changes
|
||||||
|
- build: Build system or dependencies
|
||||||
|
- revert: Revert a previous commit
|
||||||
@@ -31,6 +31,9 @@ in
|
|||||||
reviewer = ./config/agents/reviewer.md;
|
reviewer = ./config/agents/reviewer.md;
|
||||||
agent-creator = ./config/agents/agent-creator.md;
|
agent-creator = ./config/agents/agent-creator.md;
|
||||||
};
|
};
|
||||||
|
commands = {
|
||||||
|
commit = ./config/commands/commit.md;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define OpenCode Configuration
|
# Define OpenCode Configuration
|
||||||
|
|||||||
@@ -463,6 +463,7 @@ in
|
|||||||
"hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8"
|
"hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8"
|
||||||
"hf:MiniMaxAI/MiniMax-M2"
|
"hf:MiniMaxAI/MiniMax-M2"
|
||||||
"hf:MiniMaxAI/MiniMax-M2.1"
|
"hf:MiniMaxAI/MiniMax-M2.1"
|
||||||
|
"hf:moonshotai/Kimi-K2.5"
|
||||||
"hf:moonshotai/Kimi-K2-Instruct-0905"
|
"hf:moonshotai/Kimi-K2-Instruct-0905"
|
||||||
"hf:moonshotai/Kimi-K2-Thinking"
|
"hf:moonshotai/Kimi-K2-Thinking"
|
||||||
"hf:openai/gpt-oss-120b"
|
"hf:openai/gpt-oss-120b"
|
||||||
|
|||||||
@@ -7,12 +7,12 @@
|
|||||||
vulkanSupport = true;
|
vulkanSupport = true;
|
||||||
}).overrideAttrs
|
}).overrideAttrs
|
||||||
(oldAttrs: rec {
|
(oldAttrs: rec {
|
||||||
version = "7789";
|
version = "7867";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "ggml-org";
|
owner = "ggml-org";
|
||||||
repo = "llama.cpp";
|
repo = "llama.cpp";
|
||||||
tag = "b${version}";
|
tag = "b${version}";
|
||||||
hash = "sha256-mARfNYK4fbyzIAhe6wwhiKAVwAq8otiezIdQ2kFtoVc=";
|
hash = "sha256-uAsIObuU6BboNatK58XL/YDVLmJsgU3Z6gI2vvFG+pw=";
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
git -C "$out" rev-parse --short HEAD > $out/COMMIT
|
git -C "$out" rev-parse --short HEAD > $out/COMMIT
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ let
|
|||||||
in
|
in
|
||||||
buildGoModule (finalAttrs: {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "llama-swap";
|
pname = "llama-swap";
|
||||||
version = "182";
|
version = "186";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mostlygeek";
|
owner = "mostlygeek";
|
||||||
repo = "llama-swap";
|
repo = "llama-swap";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-w/VQS8uCpgniwLiJsH/8IG/AGasRxjCv7fADTfpvWLw=";
|
hash = "sha256-3D+fQ9Lu0OfON694hWlv5QcuGS/zAlkOW+Q9AMq+RWQ=";
|
||||||
# populate values that require us to use git. By doing this in postFetch we
|
# populate values that require us to use git. By doing this in postFetch we
|
||||||
# can delete .git afterwards and maintain better reproducibility of the src.
|
# can delete .git afterwards and maintain better reproducibility of the src.
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
@@ -35,7 +35,7 @@ buildGoModule (finalAttrs: {
|
|||||||
vendorHash = "sha256-XiDYlw/byu8CWvg4KSPC7m8PGCZXtp08Y1velx4BR8U=";
|
vendorHash = "sha256-XiDYlw/byu8CWvg4KSPC7m8PGCZXtp08Y1velx4BR8U=";
|
||||||
|
|
||||||
passthru.ui = callPackage ./ui.nix { llama-swap = finalAttrs.finalPackage; };
|
passthru.ui = callPackage ./ui.nix { llama-swap = finalAttrs.finalPackage; };
|
||||||
passthru.npmDepsHash = "sha256-RKPcMwJ0qVOgbTxoGryrLn7AW0Bfmv9WasoY+gw4B30=";
|
passthru.npmDepsHash = "sha256-xz4z/Bxlbw7uuzRP0aWPRKSfhPAB++iToYnymu4RVSE=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
versionCheckHook
|
versionCheckHook
|
||||||
|
|||||||
Reference in New Issue
Block a user