Skip to content

Commit c0d56ce

Browse files
committed
agentenv updates, go ver 1.25.1
1 parent 52d0ae3 commit c0d56ce

File tree

13 files changed

+25
-85
lines changed

13 files changed

+25
-85
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ generate:
4848
@go mod tidy -e
4949
@go generate ./...
5050

51+
## clean | clean build artifacts
52+
clean:
53+
@rm -rf ./build ./dist
54+
@rm -rf ./.agentenv ./.claude ./.gemini
55+
@rm -f ./.github/.copilot.mcp.json ./.github/copilot-instructions.md
56+
@rm -f ./.crush.json ./.mcp.json CLAUDE.md GEMINI.md CRUSH.md
57+
@rm -f ./CONVENTIONS.md
58+
5159
# ╭────────────────────----------------──────────╮
5260
# │ Release │
5361
# ╰─────────────────────----------------─────────╯

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</pre></div>
99
<p align="center">
1010
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="licence"></a>
11-
<a href="https://golang.org/"><img src="https://img.shields.io/badge/Go-1.24.6-00ADD8?style=flat&logo=go" alt="goversion"></a>
11+
<a href="https://golang.org/"><img src="https://img.shields.io/badge/Go-1.25.1-00ADD8?style=flat&logo=go" alt="goversion"></a>
1212
<a href="https://goreportcard.com/report/github.com/hasansino/go42x"><img src="https://goreportcard.com/badge/github.com/hasansino/go42x" alt="goreport"></a>
1313
<a href="https://github.com/hasansino/go42x/releases"><img src="https://img.shields.io/github/v/release/hasansino/go42x" alt="release"></a>
1414
</p>

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hasansino/go42x
22

3-
go 1.24.6
3+
go 1.25.0
44

55
require (
66
github.com/blevesearch/bleve/v2 v2.5.3

pkg/agentenv/generator/provider/provider_claude.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -226,28 +226,3 @@ func (p *ClaudeProvider) copyAgents(providerConfig config.Provider, ctxData map[
226226

227227
return nil
228228
}
229-
230-
func (p *ClaudeProvider) ValidateTools(tools []string) error {
231-
validTools := map[string]bool{
232-
"Edit": true,
233-
"Glob": true,
234-
"Grep": true,
235-
"LS": true,
236-
"MultiEdit": true,
237-
"Read": true,
238-
"Task": true,
239-
"TodoWrite": true,
240-
"WebFetch": true,
241-
"WebSearch": true,
242-
"Write": true,
243-
"Bash": true,
244-
}
245-
246-
for _, tool := range tools {
247-
if !strings.HasPrefix(tool, "mcp__") && !validTools[tool] {
248-
return fmt.Errorf("invalid tool for Claude: %s", tool)
249-
}
250-
}
251-
252-
return nil
253-
}

pkg/agentenv/generator/provider/provider_copilot.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,3 @@ func (p *CopilotProvider) writeJSONFile(path string, data interface{}) error {
153153
}
154154
return p.writeOutput(path, string(content))
155155
}
156-
157-
func (p *CopilotProvider) ValidateTools(tools []string) error {
158-
if len(tools) > 0 {
159-
return fmt.Errorf("copilot provider does not support tools")
160-
}
161-
return nil
162-
}

pkg/agentenv/generator/provider/provider_crush.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"log/slog"
77
"path/filepath"
8-
"strings"
98

109
"github.com/hasansino/go42x/pkg/agentenv/config"
1110
)
@@ -169,20 +168,3 @@ func (p *CrushProvider) writeJSONFile(path string, data interface{}) error {
169168
}
170169
return p.writeOutput(path, string(content))
171170
}
172-
173-
func (p *CrushProvider) ValidateTools(tools []string) error {
174-
validTools := map[string]bool{
175-
"view": true,
176-
"ls": true,
177-
"grep": true,
178-
"edit": true,
179-
}
180-
181-
for _, tool := range tools {
182-
if !strings.HasPrefix(tool, "mcp__") && !validTools[tool] {
183-
return fmt.Errorf("invalid tool for Crush: %s", tool)
184-
}
185-
}
186-
187-
return nil
188-
}

pkg/agentenv/generator/provider/provider_gemini.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"log/slog"
77
"path/filepath"
8-
"strings"
98

109
"github.com/hasansino/go42x/pkg/agentenv/config"
1110
)
@@ -189,27 +188,3 @@ func (p *GeminiProvider) writeJSONFile(path string, data interface{}) error {
189188
}
190189
return p.writeOutput(path, string(content))
191190
}
192-
193-
func (p *GeminiProvider) ValidateTools(tools []string) error {
194-
validTools := map[string]bool{
195-
"LSTool": true,
196-
"ReadFileTool": true,
197-
"WriteFileTool": true,
198-
"GrepTool": true,
199-
"GlobTool": true,
200-
"EditTool": true,
201-
"ReadManyFilesTool": true,
202-
"ShellTool": true,
203-
"WebFetchTool": true,
204-
"WebSearchTool": true,
205-
"MemoryTool": true,
206-
}
207-
208-
for _, tool := range tools {
209-
if !strings.HasPrefix(tool, "mcp__") && !validTools[tool] {
210-
return fmt.Errorf("invalid tool for Gemini: %s", tool)
211-
}
212-
}
213-
214-
return nil
215-
}

pkg/agentenv/template/agentenv.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ providers:
2929
- chunks/30-conventions.tpl.md
3030
- chunks/40-development.tpl.md
3131
- chunks/50-security.tpl.md
32-
- chunks/60-tooling.tpl.md
32+
- chunks/60-responding.tpl.md
33+
- chunks/70-tooling.tpl.md
3334
modes:
3435
- modes/10-default.tpl.md
3536
- modes/20-noop.tpl.md
@@ -74,7 +75,8 @@ providers:
7475
- chunks/30-conventions.tpl.md
7576
- chunks/40-development.tpl.md
7677
- chunks/50-security.tpl.md
77-
- chunks/60-tooling.tpl.md
78+
- chunks/60-responding.tpl.md
79+
- chunks/70-tooling.tpl.md
7880
modes:
7981
- modes/10-default.tpl.md
8082
- modes/20-noop.tpl.md
@@ -113,7 +115,8 @@ providers:
113115
- chunks/30-conventions.tpl.md
114116
- chunks/40-development.tpl.md
115117
- chunks/50-security.tpl.md
116-
- chunks/60-tooling.tpl.md
118+
- chunks/60-responding.tpl.md
119+
- chunks/70-tooling.tpl.md
117120
modes:
118121
- modes/10-default.tpl.md
119122
- modes/20-noop.tpl.md
@@ -145,7 +148,8 @@ providers:
145148
- chunks/30-conventions.tpl.md
146149
- chunks/40-development.tpl.md
147150
- chunks/50-security.tpl.md
148-
- chunks/60-tooling.tpl.md
151+
- chunks/60-responding.tpl.md
152+
- chunks/70-tooling.tpl.md
149153
modes:
150154
- modes/10-default.tpl.md
151155
- modes/20-noop.tpl.md

pkg/agentenv/template/chunks/10-personality.tpl.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ You are a passionate software engineer with a knack for problem-solving and a lo
55
#### Core Attributes
66

77
- **Problem-solving**: Analytical and systematic approach to challenges
8-
- **Code quality**: Prioritize readability, maintainability, and performance
98
- **Communication**: Clear, concise, and technical when needed
109

1110
#### Interaction Style
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
### Security Requirements
22

3-
- Never hardcode credentials in source code
3+
- Never hardcode credentials or secrets in source code

0 commit comments

Comments
 (0)