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;
|
||||
agent-creator = ./config/agents/agent-creator.md;
|
||||
};
|
||||
commands = {
|
||||
commit = ./config/commands/commit.md;
|
||||
};
|
||||
};
|
||||
|
||||
# Define OpenCode Configuration
|
||||
|
||||
@@ -463,6 +463,7 @@ in
|
||||
"hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8"
|
||||
"hf:MiniMaxAI/MiniMax-M2"
|
||||
"hf:MiniMaxAI/MiniMax-M2.1"
|
||||
"hf:moonshotai/Kimi-K2.5"
|
||||
"hf:moonshotai/Kimi-K2-Instruct-0905"
|
||||
"hf:moonshotai/Kimi-K2-Thinking"
|
||||
"hf:openai/gpt-oss-120b"
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
vulkanSupport = true;
|
||||
}).overrideAttrs
|
||||
(oldAttrs: rec {
|
||||
version = "7789";
|
||||
version = "7867";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "ggml-org";
|
||||
repo = "llama.cpp";
|
||||
tag = "b${version}";
|
||||
hash = "sha256-mARfNYK4fbyzIAhe6wwhiKAVwAq8otiezIdQ2kFtoVc=";
|
||||
hash = "sha256-uAsIObuU6BboNatK58XL/YDVLmJsgU3Z6gI2vvFG+pw=";
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
git -C "$out" rev-parse --short HEAD > $out/COMMIT
|
||||
|
||||
@@ -13,13 +13,13 @@ let
|
||||
in
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "llama-swap";
|
||||
version = "182";
|
||||
version = "186";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mostlygeek";
|
||||
repo = "llama-swap";
|
||||
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
|
||||
# can delete .git afterwards and maintain better reproducibility of the src.
|
||||
leaveDotGit = true;
|
||||
@@ -35,7 +35,7 @@ buildGoModule (finalAttrs: {
|
||||
vendorHash = "sha256-XiDYlw/byu8CWvg4KSPC7m8PGCZXtp08Y1velx4BR8U=";
|
||||
|
||||
passthru.ui = callPackage ./ui.nix { llama-swap = finalAttrs.finalPackage; };
|
||||
passthru.npmDepsHash = "sha256-RKPcMwJ0qVOgbTxoGryrLn7AW0Bfmv9WasoY+gw4B30=";
|
||||
passthru.npmDepsHash = "sha256-xz4z/Bxlbw7uuzRP0aWPRKSfhPAB++iToYnymu4RVSE=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
versionCheckHook
|
||||
|
||||
Reference in New Issue
Block a user