Coverage improvements: - pkg/build: 89.4% - pkg/release: 86.7% (from 36.7%) - pkg/container: 85.7% - pkg/php: 62.1% (from 26%) - pkg/devops: 56.7% (from 33.1%) - pkg/release/publishers: 54.7% Also: - Add GEMINI.md for Gemini agent guidance - Update .gitignore to exclude coverage files - Remove stray core.go at root - Add core go cov command for coverage reports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.2 KiB
2.2 KiB
GEMINI.md
This file provides guidance for agentic interactions within this repository, specifically for Gemini and other MCP-compliant agents.
Agentic Context & MCP
This project is built with an Agentic design philosophy. It is not exclusive to any single LLM provider (like Claude).
- MCP Support: The system is designed to leverage the Model Context Protocol (MCP) to provide rich context and tools to agents.
- Developer Image: You are running within a standardized developer image (
host-uk/coredev environment), ensuring consistent tooling and configuration.
Core CLI (Agent Interface)
The core command is the primary interface for agents to manage the project. Agents should always prefer core commands over raw shell commands (like go test, php artisan, etc.).
Key Commands for Agents
| Task | Command | Notes |
|---|---|---|
| Health Check | core doctor |
Verify tools and environment |
| Repo Status | core dev health |
Quick summary of all repos |
| Work Status | core dev work --status |
Detailed dirty/ahead status |
| Run Tests | core go test |
Run Go tests with correct flags |
| Coverage | core go cov |
Generate coverage report |
| Build | core build |
Build the project safely |
| Search Code | core pkg search |
Find packages/repos |
Project Architecture
Core is a Web3 Framework written in Go using Wails v3.
Core Framework
- Services: Managed via dependency injection (
ServiceFor[T]()). - Lifecycle:
OnStartupandOnShutdownhooks. - IPC: Message-passing system for service communication.
Development Workflow
- Check State:
core dev work --status - Make Changes: Modify code, add tests.
- Verify:
core go test(orcore php testfor PHP components). - Commit:
core dev commit(or standard git if automated). - Push:
core dev push(handles multiple repos).
Testing Standards
- Suffix Pattern:
_Good: Happy path_Bad: Expected errors_Ugly: Edge cases/panics
Go Workspace
The project uses Go workspaces (go.work). Always run core go work sync after modifying modules.