mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
After two hours of work with the agents and no break, Mochi shows the tired look he already has for a low battery: heavy eyes and the odd yawn while he waits (never while an agent works or asks). A break is twenty minutes with no agent activity or away from the keyboard and mouse; then he is fresh again. No timer, no notice, no setting: it follows "Mochi feels the Mac". Only the times of the hook events are kept, in memory; the island hidden costs nothing. The battery line under the island now shows only for a low battery. Checked by scripts/test-work-streak.sh, in CI.
8 lines
299 B
Bash
Executable File
8 lines
299 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-work-streak.XXXXXX")"
|
|
trap 'rm -rf "$TEST_DIR"' EXIT
|
|
swiftc NotchBuddy/Sources/App/WorkStreak.swift tests/WorkStreakTests.swift -o "$TEST_DIR/work-streak-tests"
|
|
"$TEST_DIR/work-streak-tests"
|