You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(codex-fleet): extract shared bash helpers into lib/ (#157)
Move duplicated helpers out of fleet-tick.sh, cap-swap-daemon.sh, and
cap-probe.sh into two sourced libraries:
- scripts/codex-fleet/lib/agents.sh: derive_aid (and email_to_id alias),
the canonical email -> agent-id derivation. Replaces the inline bash
copy in fleet-tick.sh and the two python3 copies in cap-swap-daemon.sh
and cap-probe.sh. Functionally identical (verified against
alice@gmail.com, bob@magnoliavilag.hu, carol@gitguardex.com,
dave@pipacsclub.org, eve+x@example.co.uk). Documents the cross-language
sync requirement with rust/fleet-data/src/fleet.rs::derive_agent_id.
- scripts/codex-fleet/lib/ui-helpers.sh: strip_ansi, ios_visible_len,
pct_color, ios_status_chip_label. Pulled out of fleet-tick.sh.
Both libs use a __CODEX_FLEET_LIB_*_SH guard so double-sourcing is a
no-op and are set -u safe. Functions only, no top-level side effects.
Scripts source them via "$(dirname "${BASH_SOURCE[0]}")/lib/..." so
invocation from any cwd resolves correctly.
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments