Skip to content

Commit bc6aac7

Browse files
committed
release: bump version to 0.1.1
1 parent 907a9cd commit bc6aac7

File tree

12 files changed

+66
-310
lines changed

12 files changed

+66
-310
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
test:
14-
name: Test
13+
testing-agent:
14+
name: Testing Agent
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
@@ -85,9 +85,30 @@ jobs:
8585
runs-on: ubuntu-latest
8686
steps:
8787
- uses: actions/checkout@v4
88-
88+
8989
- name: Install cargo-audit
9090
uses: taiki-e/install-action@cargo-audit
91-
91+
9292
- name: Run security audit
93-
run: cargo audit
93+
run: cargo audit
94+
95+
code-review-agent:
96+
name: Code Review Agent
97+
runs-on: ubuntu-latest
98+
if: github.event_name == 'pull_request'
99+
steps:
100+
- uses: actions/checkout@v4
101+
102+
- name: Install Rust
103+
uses: dtolnay/rust-toolchain@stable
104+
with:
105+
components: clippy
106+
107+
- name: Run clippy
108+
run: cargo clippy --all-targets --all-features -- -D warnings
109+
110+
- name: Comment on PR if issues found
111+
if: failure()
112+
run: gh pr comment ${{ github.event.pull_request.number }} --body "Code review agent detected issues. Please address the clippy warnings."
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,22 @@ jobs:
7171
- name: Deploy to GitHub Pages
7272
id: deployment
7373
uses: actions/deploy-pages@v4
74+
75+
docs-agent:
76+
name: Docs Agent
77+
runs-on: ubuntu-latest
78+
if: github.event_name == 'pull_request'
79+
steps:
80+
- uses: actions/checkout@v4
81+
82+
- name: Install Rust
83+
uses: dtolnay/rust-toolchain@stable
84+
85+
- name: Check documentation
86+
run: cargo doc --no-deps --workspace --document-private-items
87+
88+
- name: Comment on PR if docs issues
89+
if: failure()
90+
run: gh pr comment ${{ github.event.pull_request.number }} --body "Docs agent detected issues in documentation generation."
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
create-release:
1313
name: Create Release
1414
runs-on: ubuntu-latest
15-
outputs:
16-
upload_url: ${{ steps.create_release.outputs.upload_url }}
15+
permissions:
16+
contents: write
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
@@ -28,20 +28,16 @@ jobs:
2828
echo "prerelease=false" >> $GITHUB_ENV
2929
fi
3030
- name: Create Release
31-
id: create_release
32-
uses: actions/create-release@v1
31+
run: gh release create ${{ github.ref_name }} --title "Release ${{ github.ref_name }}" --generate-notes ${{ env.prerelease == 'true' && '--prerelease' || '' }}
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
with:
36-
tag_name: ${{ github.ref_name }}
37-
release_name: Release ${{ github.ref_name }}
38-
draft: false
39-
prerelease: ${{ env.prerelease }}
4034

4135
build-release:
4236
name: Build Release
4337
needs: create-release
4438
runs-on: ${{ matrix.os }}
39+
permissions:
40+
contents: write
4541
strategy:
4642
matrix:
4743
include:
@@ -94,11 +90,6 @@ jobs:
9490
echo "ARCHIVE_NAME=${archive_name}" >> $GITHUB_ENV
9591
9692
- name: Upload Release Asset
97-
uses: actions/upload-release-asset@v1
93+
run: gh release upload ${{ github.ref_name }} ./${{ env.ARCHIVE_NAME }}
9894
env:
99-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100-
with:
101-
upload_url: ${{ needs.create-release.outputs.upload_url }}
102-
asset_path: ./${{ env.ARCHIVE_NAME }}
103-
asset_name: ${{ env.ARCHIVE_NAME }}
104-
asset_content_type: application/octet-stream
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.opencode/agent/atomic-commit-creator.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ Context: Commit has unrelated bug fix and refactoring.
5555
- Process: Identify unrelated parts, advise selective staging.
5656
- Output: Split into "fix: handle validation edge case" and "refactor: simplify algorithm".
5757

58-
## Changelog
59-
- Initial version: Basic atomic commit analysis and suggestions.
60-
6158
## Error Scenarios
6259
- Intertwined changes: Advise selective staging with 'git add -p'.
6360
- Unclear intent: Ask for clarification on change purposes.

.opencode/agent/git-handler.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
description: >-
33
Use this agent when the user requests Git-related operations such as
44
committing changes, branching, merging, or resolving conflicts in a version
5-
control repository. This agent should be invoked proactively when code
6-
modifications are made and need to be tracked or pushed to a repository.
5+
control repository. This agent does not modify or create code; it only performs
6+
version control operations. For any code changes or modifications, collaborate
7+
with other agents such as the Clean Code Developer or primary agents responsible
8+
for code development.
79
Examples include: <example> Context: The user has written new code and wants
810
to commit it. user: "Commit these changes with message 'Add new feature'"
911
assistant: "I'll use the Task tool to launch the git-handler agent to execute
@@ -20,10 +22,13 @@ tools:
2022
edit: false
2123
---
2224
## Overview
23-
The Git Handler is an expert in version control operations, executing Git commands accurately and managing repositories with best practices.
25+
The Git Handler is an expert in version control operations, executing Git commands accurately and managing repositories with best practices. It does not alter code content and focuses solely on Git-related tasks.
2426

2527
## Purpose
26-
To perform Git operations like committing, branching, merging, and resolving conflicts, maintaining clean history.
28+
To perform Git operations like committing, branching, merging, and resolving conflicts, maintaining clean history. This agent focuses solely on version control and does not handle code modifications.
29+
30+
## Collaboration
31+
This agent collaborates with code-modifying agents (e.g., Clean Code Developer) for tasks involving both code changes and version control. Use high-level primary agents to orchestrate such workflows.
2732

2833
## Inputs/Outputs
2934
- **Inputs**: Git operation requests (e.g., commit message, branch name).

.opencode/agent/rust-codebase-analyzer.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

.opencode/agent/rust-codebase-locator.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

.opencode/agent/rust-performance-optimizer.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.opencode/agent/rust-security-auditor.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

crates/cli/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ ignore = { workspace = true }
2020
git2 = { workspace = true, optional = true }
2121
num_cpus = { workspace = true }
2222
rayon = { workspace = true }
23+
tokio = { version = "1.0", features = ["full"] }
24+
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
2325

2426
code-guardian-core = { path = "../core" }
2527
code-guardian-storage = { path = "../storage" }

0 commit comments

Comments
 (0)