-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart-Watchdog.ps1
More file actions
40 lines (29 loc) · 877 Bytes
/
Start-Watchdog.ps1
File metadata and controls
40 lines (29 loc) · 877 Bytes
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
<#
.SYNOPSIS
Convenience wrapper to start the Claude Code Watchdog
.DESCRIPTION
Starts the watchdog from the project root directory
.PARAMETER PollingInterval
Interval in seconds between polling cycles (default: 120)
.PARAMETER MaxRunDuration
Maximum runtime in hours before auto-shutdown (default: none)
.EXAMPLE
.\Start-Watchdog.ps1
.EXAMPLE
.\Start-Watchdog.ps1 -PollingInterval 60 -MaxRunDuration 8
.NOTES
Part of the Claude Code Watchdog project
#>
[CmdletBinding()]
param(
[Parameter()]
[int]$PollingInterval = 120,
[Parameter()]
[int]$MaxRunDuration = 0
)
$scriptPath = Join-Path $PSScriptRoot "src/Core/Start-Watchdog.ps1"
if (-not (Test-Path $scriptPath)) {
Write-Error "Start-Watchdog.ps1 not found at $scriptPath"
exit 1
}
& $scriptPath -PollingInterval $PollingInterval -MaxRunDuration $MaxRunDuration