feat: allow hour durations

This commit is contained in:
Peter Steinberger
2025-12-26 01:34:46 +01:00
parent 9f7b1f0942
commit 19f87f0a89
5 changed files with 16 additions and 7 deletions

View File

@@ -148,7 +148,7 @@ If you omit the provider, CLAWDIS currently assumes `anthropic` as a temporary
deprecation fallback.
`agent.heartbeat` configures periodic heartbeat runs:
- `every`: duration string (`ms`, `s`, `m`); default unit minutes. Omit or set
- `every`: duration string (`ms`, `s`, `m`, `h`); default unit minutes. Omit or set
`0m` to disable.
- `model`: optional override model for heartbeat runs (`provider/model`).

View File

@@ -13,7 +13,7 @@ Goal: add a simple heartbeat poll for the embedded agent that only notifies user
## Config & defaults
- New config key: `agent.heartbeat` with:
- `every`: duration string (`ms`, `s`, `m`; default unit minutes). `0m` disables.
- `every`: duration string (`ms`, `s`, `m`, `h`; default unit minutes). `0m` disables.
- `model`: optional override model (`provider/model`) for heartbeat runs.
- Default: disabled unless `agent.heartbeat.every` is set.
- New optional idle override for heartbeats: `session.heartbeatIdleMinutes` (defaults to `idleMinutes`). Heartbeat skips do **not** update the session `updatedAt` so idle expiry still works.