Skip to content

Commit 4263e6d

Browse files
authored
Remove ai-inference, opencode, genaiscript agentic engines for now (#10)
* Remove ai-inference agentic engine * Remove opencode and genaiscript agentic engine
1 parent 3b5c88e commit 4263e6d

14 files changed

+54
-1209
lines changed

.github/workflows/weekly-research.lock.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ You will see the changes reflected in the `.lock.yml` file, which is the actual
125125
By default Claude Code is used as the agentic processor. You can configure the agentic processor by editing the frontmatter of the markdown workflow files.
126126

127127
```markdown
128-
engine: codex # Optional: specify AI engine (claude, codex, ai-inference, gemini)
128+
engine: codex # Optional: specify AI engine (claude, codex, gemini)
129129
```
130130

131131
You can also specify this on the command line when adding or running workflows:

docs/frontmatter.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,13 @@ Specifies which AI engine to use. Defaults to `claude`.
147147
### Simple String Format
148148

149149
```yaml
150-
engine: claude # or codex, opencode, ai-inference
150+
engine: claude # or codex, gemini
151151
```
152152

153153
**Available engines:**
154154
- `claude` (default): Claude Code with full MCP tool support and allow-listing (see [MCP Guide](mcps.md))
155155
- `codex` (**experimental**): Codex with OpenAI endpoints
156-
- `opencode` (**experimental**): OpenCode AI coding assistant
157-
- `ai-inference`: GitHub Models via actions/ai-inference with GitHub MCP support (see [MCP Guide](mcps.md))
156+
- `gemini`: Google Gemini AI models
158157

159158
### Extended Object Format
160159

@@ -166,7 +165,7 @@ engine:
166165
```
167166

168167
**Fields:**
169-
- **`id`** (required): Engine identifier (`claude`, `codex`, `opencode`, `ai-inference`)
168+
- **`id`** (required): Engine identifier (`claude`, `codex`, `gemini`)
170169
- **`version`** (optional): Action version (`beta`, `stable`)
171170
- **`model`** (optional): Specific LLM model
172171

pkg/cli/templates/instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ The YAML frontmatter supports these fields:
6060
### Agentic Workflow Specific Fields
6161

6262
- **`engine:`** - AI processor configuration
63-
- String format: `"claude"` (default), `"codex"`, `"ai-inference"`, `"gemini"`
63+
- String format: `"claude"` (default), `"codex"`, `"gemini"`
6464
- Object format for extended configuration:
6565
```yaml
6666
engine:
67-
id: claude # Required: agent CLI identifier (claude, codex, ai-inference, gemini)
67+
id: claude # Required: agent CLI identifier (claude, codex, gemini)
6868
version: beta # Optional: version of the action
6969
model: claude-3-5-sonnet-20241022 # Optional: LLM model to use
7070
```
@@ -412,7 +412,7 @@ The workflow frontmatter is validated against JSON Schema during compilation. Co
412412

413413
- **Invalid field names** - Only fields in the schema are allowed
414414
- **Wrong field types** - e.g., `timeout_minutes` must be integer
415-
- **Invalid enum values** - e.g., `engine` must be "claude", "codex", "ai-inference", or "gemini"
415+
- **Invalid enum values** - e.g., `engine` must be "claude", "codex", or "gemini"
416416
- **Missing required fields** - Some triggers require specific configuration
417417

418418
Use `gh aw compile --verbose` to see detailed validation messages.

pkg/parser/schemas/main_workflow_schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,17 +254,17 @@
254254
"oneOf": [
255255
{
256256
"type": "string",
257-
"enum": ["claude", "codex", "opencode", "ai-inference", "gemini", "genaiscript"],
258-
"description": "Simple engine name (claude, codex, opencode, ai-inference, gemini, or genaiscript)"
257+
"enum": ["claude", "codex", "gemini"],
258+
"description": "Simple engine name (claude, codex, or gemini)"
259259
},
260260
{
261261
"type": "object",
262262
"description": "Extended engine configuration object",
263263
"properties": {
264264
"id": {
265265
"type": "string",
266-
"enum": ["claude", "codex", "opencode", "ai-inference", "gemini", "genaiscript"],
267-
"description": "Agent CLI identifier (claude, codex, opencode, ai-inference, gemini, or genaiscript)"
266+
"enum": ["claude", "codex", "gemini"],
267+
"description": "Agent CLI identifier (claude, codex, or gemini)"
268268
},
269269
"version": {
270270
"type": "string",

pkg/workflow/agentic_engine.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ func NewEngineRegistry() *EngineRegistry {
9797
registry.Register(NewClaudeEngine())
9898
registry.Register(NewCodexEngine())
9999
registry.Register(NewGeminiEngine())
100-
registry.Register(NewOpenCodeEngine())
101-
registry.Register(NewAIInferenceEngine())
102-
registry.Register(NewGenAIScriptEngine())
103100

104101
return registry
105102
}

pkg/workflow/agentic_engine_test.go

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ func TestEngineRegistry(t *testing.T) {
99

1010
// Test that built-in engines are registered
1111
supportedEngines := registry.GetSupportedEngines()
12-
if len(supportedEngines) != 6 {
13-
t.Errorf("Expected 6 supported engines, got %d", len(supportedEngines))
12+
if len(supportedEngines) != 3 {
13+
t.Errorf("Expected 3 supported engines, got %d", len(supportedEngines))
1414
}
1515

1616
// Test getting engines by ID
@@ -30,22 +30,6 @@ func TestEngineRegistry(t *testing.T) {
3030
t.Errorf("Expected codex engine ID, got '%s'", codexEngine.GetID())
3131
}
3232

33-
opencodeEngine, err := registry.GetEngine("opencode")
34-
if err != nil {
35-
t.Errorf("Expected to find opencode engine, got error: %v", err)
36-
}
37-
if opencodeEngine.GetID() != "opencode" {
38-
t.Errorf("Expected opencode engine ID, got '%s'", opencodeEngine.GetID())
39-
}
40-
41-
aiInferenceEngine, err := registry.GetEngine("ai-inference")
42-
if err != nil {
43-
t.Errorf("Expected to find ai-inference engine, got error: %v", err)
44-
}
45-
if aiInferenceEngine.GetID() != "ai-inference" {
46-
t.Errorf("Expected ai-inference engine ID, got '%s'", aiInferenceEngine.GetID())
47-
}
48-
4933
geminiEngine, err := registry.GetEngine("gemini")
5034
if err != nil {
5135
t.Errorf("Expected to find gemini engine, got error: %v", err)
@@ -69,10 +53,6 @@ func TestEngineRegistry(t *testing.T) {
6953
t.Error("Expected codex to be valid engine")
7054
}
7155

72-
if !registry.IsValidEngine("opencode") {
73-
t.Error("Expected opencode to be valid engine")
74-
}
75-
7656
if !registry.IsValidEngine("gemini") {
7757
t.Error("Expected gemini to be valid engine")
7858
}
@@ -136,7 +116,7 @@ func TestEngineRegistryCustomEngine(t *testing.T) {
136116

137117
// Test that supported engines list is updated
138118
supportedEngines := registry.GetSupportedEngines()
139-
if len(supportedEngines) != 7 {
140-
t.Errorf("Expected 7 supported engines after adding custom, got %d", len(supportedEngines))
119+
if len(supportedEngines) != 4 {
120+
t.Errorf("Expected 4 supported engines after adding custom, got %d", len(supportedEngines))
141121
}
142122
}

pkg/workflow/ai_inference_engine.go

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

0 commit comments

Comments
 (0)