Commit c08b4fb
feat: Add headless configuration (#37)
## Summary
This PR adds headless browser configuration support and updates project
dependencies to their latest versions.
### Key Changes
**Browser Configuration:**
- ✅ Add `BROWSER_HEADLESS` environment variable support (default:
`true`)
- ✅ Fix hardcoded headless value in `NewBrowserConfigFromConfig`
function (internal/playwright/playwright.go:92)
- ✅ Allow users to disable headless mode for debugging and development
by setting `BROWSER_HEADLESS=false`
- ✅ Update README with `BROWSER_HEADLESS` configuration documentation
**Dependency Updates:**
- ✅ Upgrade ADL CLI from v0.23.7 to v0.23.8 in generated workflow and
configuration files
- ✅ Upgrade ADK dependency from v0.15.1 to v0.15.2 in go.mod
- ✅ Upgrade Claude Code from 2.0.11 to 2.0.15 in Flox manifest
**Refactoring:**
- ✅ Streamline artifact server creation in main.go
### Configuration Usage
Users can now control headless mode via environment variable:
```bash
# Run in headless mode (default)
BROWSER_HEADLESS=true go run .
# Run with visible browser for debugging
BROWSER_HEADLESS=false go run .
```
### Testing
- ✅ All unit tests pass
- ✅ Linter checks pass (0 issues)
- ✅ Headless configuration properly reads from environment
### Files Changed
- `agent.yaml` - Added headless configuration
- `config/config.go` - Added Headless field to BrowserConfig struct
- `internal/playwright/playwright.go` - Fixed hardcoded headless value
to use config
- `README.md` - Documented BROWSER_HEADLESS variable
- `main.go` - Refactored artifact server creation
- `.flox/env/manifest.toml` - Updated Claude Code version
- `.github/workflows/ci.yml` - Updated ADL CLI version
- `go.mod` / `go.sum` - Updated ADK dependency
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Signed-off-by: Eden Reich <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent 7d0a388 commit c08b4fb
File tree
15 files changed
+294
-275
lines changed- .flox/env
- .github/workflows
- config
- internal
- logger
- playwright
15 files changed
+294
-275
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments