mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
8c1076fbca
Move the session evidence commands (bootstrap, rehydrate) out of package main into internal/commands/session, delegating filesystem effects to the new internal/sessionapp seam. The session parent command now lives in the module; the optional `ao session handoff` writer stays in package main and is attached to the module-built parent by newSessionCommand. sessionBootstrapJSON and rehydrateJSON package globals die; flag state is constructor-scoped in the module. The combined TestHandoffAndRehydratePreserveCallerTextWithoutLifecycleState is split: the handoff-writer assertions stay in cmd/ao as TestHandoffPreservesCallerTextWithoutLifecycleState; the rehydrate read side moves to the module as TestRehydrateReadsCallerAuthoredBrief plus the preserved TestRehydrateJSONEmptyStateEmitsEmptyObject and TestSessionBootstrapOnlyReportsLocalOrientation. Test-Removal-Reason: TestHandoffAndRehydratePreserveCallerTextWithoutLifecycleState removed; its handoff-writer coverage is preserved in cmd/ao and its rehydrate coverage relocated to the session module (net +2 tests).