Skip to content

Commit e2c24aa

Browse files
authored
Update cagent version and replace 'run --tui=false' with 'exec' (#11)
Merged: 2025-11-12 16:55:54
1 parent 51e57e8 commit e2c24aa

3 files changed

Lines changed: 11 additions & 17 deletions

File tree

.github/workflows/manual-test-pirate-agent.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
permissions:
1313
contents: read
1414
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
17+
1518
- name: Ask pirate agent about shipments
16-
uses: docker/cagent-action@v1.0.0
19+
uses: ./
1720
with:
1821
agent: agentcatalog/pirate
1922
prompt: "What do we ship today?"

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,10 @@ jobs:
116116
with:
117117
agent: docker/code-analyzer
118118
prompt: "Analyze this codebase"
119-
cagent-version: v1.6.6
119+
cagent-version: v1.9.11
120120
mcp-gateway: true # Set to true to install mcp-gateway
121121
mcp-gateway-version: v0.22.0
122122
yolo: false # Require manual approval
123-
tui: true # Enable terminal UI
124123
timeout: 600 # 10 minute timeout
125124
debug: true # Enable debug logging
126125
working-directory: ./src
@@ -172,15 +171,14 @@ jobs:
172171
| `timeout` | Timeout in seconds for agent execution (0 for no timeout) | No | `0` |
173172
| `debug` | Enable debug mode with verbose logging (`true`/`false`) | No | `false` |
174173
| `working-directory` | Working directory to run the agent in | No | `.` |
175-
| `tui` | Enable TUI mode (`true`/`false`) | No | `false` |
176174
| `yolo` | Auto-approve all prompts (`true`/`false`) | No | `true` |
177-
| `extra-args` | Additional arguments to pass to `cagent run` | No | - |
175+
| `extra-args` | Additional arguments to pass to `cagent exec` | No | - |
178176

179177
## Outputs
180178

181179
| Output | Description |
182180
|--------|-------------|
183-
| `exit-code` | Exit code from the cagent run |
181+
| `exit-code` | Exit code from the cagent exec |
184182
| `output-file` | Path to the output log file |
185183
| `cagent-version` | Version of cagent that was used |
186184
| `mcp-gateway-installed` | Whether mcp-gateway was installed (`true`/`false`) |

action.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
cagent-version:
1616
description: "Version of cagent to use"
1717
required: false
18-
default: "v1.6.6"
18+
default: "v1.9.11"
1919
mcp-gateway:
2020
description: "Install mcp-gateway (true/false)"
2121
required: false
@@ -48,22 +48,18 @@ inputs:
4848
description: "Working directory to run the agent in"
4949
required: false
5050
default: "."
51-
tui:
52-
description: "Enable TUI mode (true/false)"
53-
required: false
54-
default: "false"
5551
yolo:
5652
description: "Enable yolo mode - auto-approve all prompts (true/false)"
5753
required: false
5854
default: "true"
5955
extra-args:
60-
description: "Additional arguments to pass to cagent run"
56+
description: "Additional arguments to pass to cagent exec"
6157
required: false
6258
default: ""
6359

6460
outputs:
6561
exit-code:
66-
description: "Exit code from cagent run"
62+
description: "Exit code from cagent exec"
6763
value: ${{ steps.run-agent.outputs.exit-code }}
6864
output-file:
6965
description: "Path to the output log file"
@@ -266,7 +262,6 @@ runs:
266262
DEBUG: ${{ inputs.debug }}
267263
YOLO: ${{ inputs.yolo }}
268264
EXTRA_ARGS: ${{ inputs.extra-args }}
269-
TUI: ${{ inputs.tui }}
270265
TIMEOUT: ${{ inputs.timeout }}
271266
WORKING_DIR: ${{ inputs.working-directory }}
272267
CAGENT_VERSION: ${{ inputs.cagent-version }}
@@ -290,15 +285,13 @@ runs:
290285
echo "Output file: $OUTPUT_FILE"
291286
292287
# Build command arguments array (SECURE: no eval!)
293-
ARGS=("run")
288+
ARGS=("exec")
294289
295290
# Add flags
296291
if [ "$YOLO" = "true" ]; then
297292
ARGS+=("--yolo")
298293
fi
299294
300-
ARGS+=("--tui=$TUI")
301-
302295
# Add extra args if provided
303296
# Note: This uses simple word splitting. Quoted arguments with spaces are not supported.
304297
# Using eval would be a security risk with user-provided input.

0 commit comments

Comments
 (0)