Commit 176b448
feat: add sys-init macos step (#67)
* feat: add hidden sys-init macos command for system diagnostics
Add a hidden 'sys-init macos' command that collects macOS system information including current user, console user, Finder process status, and startup disk name. This diagnostic command is useful for troubleshooting macOS-specific runner initialization issues.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* build for testing
* refactor: convert sys-init to package with --with-sysinit flag
Refactor the hidden sys-init command into a proper package that runs automatically during bootup when the --with-sysinit flag is present.
Changes:
- Create pkg/sysinit package with OS detection
- Remove hidden sys-init command
- Add --with-sysinit flag to agentd
- Automatically detect OS and run appropriate diagnostics
- Gracefully skip on unsupported platforms
- Add documentation in pkg/sysinit/README.md
The sysinit package now provides a clean SysInit() API that:
1. Detects the current OS using runtime.GOOS
2. Runs macOS-specific diagnostics on darwin
3. Silently skips on other platforms
Usage: agentd --with-sysinit --settings=settings.json
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor: use existing log package in sysinit
Move sysinit call from root.go to app.NewApp() after logger initialization, and use the existing pkg/log package directly instead of reimplementing logging.
Changes:
- Remove custom Logger interface from sysinit package
- Use pkg/log directly via log.Logger()
- Move sysinit call to NewApp() after logger is initialized
- Pass WithSysInit flag through ApplicationOptions
- Simplify output formatting using log.Logger().Infof/Errorf
This ensures sysinit runs after the logger is properly initialized in NewApp(), before waiting for the settings file, and uses the standard logging infrastructure.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: add --with-sysinit flag to macOS agent launcher
Update the warpbuild-agentd-launcher.sh script to include the --with-sysinit flag, enabling macOS system initialization diagnostics on agent startup.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* remove unintentional commit
* add comment
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 086d69c commit 176b448
File tree
5 files changed
+88
-1
lines changed- .github/workflows
- cmd/agentd/cmd
- pkg
- app
- sysinit
5 files changed
+88
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| 94 | + | |
92 | 95 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
169 | 179 | | |
170 | 180 | | |
171 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments