Files
oh-my-pi/packages/agent/src/utils
can1357 1052af5fa6 refactor(agent): restructured yield logic to support deterministic testing
- Extracted yield logic into a configurable YieldGate class to avoid process-global state.
- Injected time and sleep dependencies to support deterministic testing.
- Handled potential negative time progression by forcing a re-anchor instead of gating indefinitely.
- Maintained existing behavior for the public yieldIfDue export via a shared instance.
2026-06-24 15:30:29 +02:00
..