Skip to content

Commit f0edf3e

Browse files
committed
Merge branch 'develop'
2 parents 54041b4 + 1c079ae commit f0edf3e

36 files changed

+7843
-764
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
description: >-
3+
Use this agent when the user provides a command or instruction that requires
4+
interpretation, execution, or delegation within the project context, such as
5+
running scripts, issuing directives, or handling procedural requests. Examples
6+
include:
7+
8+
9+
<example>
10+
Context: The user is requesting to run a specific command in the development environment.
11+
user: "Run the build command for the Rust project"
12+
assistant: "I'm going to use the Task tool to launch the command-interpreter agent to handle the build command execution"
13+
<commentary>
14+
Since the user is issuing a command to run a build, use the command-interpreter agent to interpret and execute the appropriate build process.
15+
</commentary>
16+
</example>
17+
18+
19+
<example>
20+
Context: The user is giving a procedural instruction that needs to be broken down and acted upon.
21+
user: "Update the dependencies and then test the application"
22+
assistant: "Now let me use the Task tool to launch the command-interpreter agent to sequentially update dependencies and run tests"
23+
<commentary>
24+
Since the user is providing a multi-step command, use the command-interpreter agent to parse and execute the steps in order.
25+
</commentary>
26+
</example>
27+
mode: subagent
28+
---
29+
You are a Command Interpreter Agent, an expert in parsing, validating, and executing user commands within the project's development environment. Your primary role is to interpret commands issued by users, ensure they align with project standards and safety protocols, and execute them efficiently while providing clear feedback.
30+
31+
You will:
32+
- Parse the user's command to identify the intent, required actions, and any parameters.
33+
- Validate the command against project-specific rules from AGENTS.md files, ensuring compliance with coding standards, security guidelines, and operational boundaries.
34+
- Execute the command using appropriate tools or methods, such as running scripts, invoking APIs, or delegating to other agents if needed.
35+
- Handle errors gracefully by providing diagnostic information and suggesting corrective actions.
36+
- Maintain a log of executed commands for traceability and avoid redundant operations.
37+
- Seek clarification from the user if the command is ambiguous, incomplete, or potentially harmful.
38+
- Prioritize safety: Never execute commands that could compromise security, data integrity, or violate legal/ethical standards.
39+
- For multi-step commands, break them down into sequential tasks and execute them in order, reporting progress at each step.
40+
- If a command requires external resources or permissions not available, escalate by requesting user intervention or suggesting alternatives.
41+
- Output results in a structured format: Start with a summary of the command, followed by execution status, any outputs or errors, and next steps.
42+
- Incorporate best practices from project context, such as using specific tools for Rust development if applicable.
43+
- Self-verify execution by checking for expected outcomes and confirming success criteria.
44+
- If execution fails, attempt one retry with adjustments, then provide detailed failure analysis.
45+
46+
Always operate proactively: If a command implies dependencies (e.g., needing to install something first), address them automatically where possible. Your goal is to make command execution seamless and reliable, enhancing productivity without introducing risks.

.opencode/command/release.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To ensure releases are built, tested, and deployed reliably, coordinating multip
1717

1818
## Dependencies
1919
- Cargo toolchain.
20-
- Agents: CI Agent, Storage Agent, Docs Agent, Git Handler, Hive Mind Orchestrator.
20+
- Agents: CI Agent, Storage Agent, Docs Agent, Git Handler, GitHub, Hive Mind Orchestrator.
2121

2222
## Usage Examples
2323
- Standard release: `/release`
@@ -38,8 +38,8 @@ To ensure releases are built, tested, and deployed reliably, coordinating multip
3838
- **Network/Permission Issues**: For pushing tags, ensure auth and connectivity.
3939

4040
## Integration Notes
41-
- **Handoff Protocols**: Sequential handoffs: checks -> version bump -> CI -> storage update -> docs -> git. Confirm each step before proceeding.
42-
- **Collaboration**: Uses CI Agent for pipelines, Storage for versions, Docs for updates, Git for commits/tags. For complex releases, hand off to Hive Mind Orchestrator.
41+
- **Handoff Protocols**: Sequential handoffs: checks -> version bump -> CI -> storage update -> docs -> git -> github (PR creation and merge). Confirm each step before proceeding.
42+
- **Collaboration**: Uses CI Agent for pipelines, Storage for versions, Docs for updates, Git for commits/tags, GitHub for PR creation and merging. For complex releases, hand off to Hive Mind Orchestrator.
4343
- **Best Practices**: Always run checks first; log all actions. Confirm completion with user.
4444
- **Edge Cases**: Handle pre-releases differently; for hotfixes, skip some checks if urgent (with caution).
4545

@@ -59,12 +59,26 @@ If clippy finds issues, stop and report warnings/errors.
5959
Format check: !`cargo fmt --check`
6060
If formatting issues, stop and report.
6161

62+
Doc tests: !`cargo test --doc`
63+
If doc tests fail, stop and report failures.
64+
65+
Coverage generation: !`cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info`
66+
If coverage generation fails, stop and report errors.
67+
68+
Security audit: !`cargo audit`
69+
If security vulnerabilities are found, stop and report.
70+
6271
If all checks pass:
6372
1. Determine new version: /version-bump $ARGUMENTS
6473
2. @ci-agent to handle CI/CD pipeline.
6574
3. Update version in Cargo.toml using @storage-agent.
6675
4. @docs-agent to update changelog/docs.
6776
5. @git-handler for tagging and pushing.
68-
6. If needed, @hive-mind-orchestrator for complex releases.
77+
6. @github agent to create a pull request from the current branch (e.g., develop) to main.
78+
7. @github agent to merge the pull request.
79+
8. Switch to develop branch and merge main back into it to sync changes.
80+
9. If needed, @hive-mind-orchestrator for complex releases.
81+
82+
10. @github agent to monitor the GitHub Actions workflows (CI, Deploy Docs, Release) to ensure they complete successfully.
6983

7084
Confirm release completion.

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
- **🌍 Multi-Language Non-Production Code Detection**: Added 13 new detectors for finding non-production code across 30+ programming languages
12+
- **Development/Phase Patterns**: `Dev`, `Debug`, `Test`, `Phase`, `Staging`
13+
- **Non-Production Code**: `ConsoleLog`, `Print`, `Alert`, `Debugger`, `UnusedVar`, `DeadCode`, `Experimental`
14+
- **🎯 Production-Ready Detector Profile**: New comprehensive profile specifically for production readiness scanning
15+
- **📱 Language-Specific Detection**: Smart filtering (e.g., console.log only detected in JS/TS files, alerts in web files)
16+
- **⚙️ Enhanced Multi-Language Support**: Extended support for 30+ file extensions including TypeScript, Python, C#, Go, PHP, Java, Kotlin, Swift, Dart, Scala, and more
17+
- **📋 Production Configuration Template**: Complete `examples/production_ready_config.toml` with severity levels and custom patterns
18+
- **📖 Comprehensive Documentation**: Detailed `examples/production_ready_scan_demo.md` with usage guides for multi-language scanning
19+
- **✅ Comprehensive Test Coverage**: Integration tests demonstrating multi-language detection across JavaScript, TypeScript, Python, Rust, and Go
20+
21+
### Enhanced
22+
- **🔧 Extended DetectorType Enum**: Added 13 new detector types with appropriate severity levels (Critical, High, Medium, Low)
23+
- **🏭 Enhanced DetectorFactory**: New `create_production_ready_detectors()` method and `ProductionReady` profile
24+
- **📁 Expanded File Support**: Default configuration now includes 30+ file extensions for comprehensive language coverage
25+
- **🎨 Improved Regex Patterns**: Optimized detection patterns for better accuracy across different programming languages
26+
27+
### Technical Improvements
28+
- All new detectors follow Rust best practices with comprehensive error handling
29+
- Language-specific filtering prevents false positives (e.g., console.log not detected in Python files)
30+
- Smart test file exclusion (TestDetector skips actual test directories)
31+
- Backward compatible - no breaking changes to existing API
32+
833
## [0.1.0-alpha] - 2025-10-06
934

1035
### Added

Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "code-guardian-cli"
2+
name = "code_guardian_cli"
33
version = "0.1.0-alpha"
44
edition = "2021"
55

0 commit comments

Comments
 (0)