mirror of
https://github.com/block/buzz.git
synced 2026-11-16 06:11:34 +00:00
- Add LocalAgentSummary struct to OwnedAgentInstance (pubkey, name, personaId) and merge local managed-agent records once by normalized pubkey in get_owned_agent_inventory; local-only instances (no relay row) are included in the merged model. - InstancesSheet: relay-only badge keys on local === null (not personaId === null), badge stays visible when archived (drop && !isArchived gate). Add usePresenceQuery over all instance pubkeys (persona + unknown). Render unknown-persona section from relay inventory (not ManagedAgent[]). - Absent archive snapshot → (false, empty); add HashSet::<String> type annotations to fix unit test inference errors. - e2eBridge: mutable mockOwnedInventory with deep-clone reset; archive/unarchive handlers mutate exact-target instance and record payload via __BUZZ_E2E_COMMAND_PAYLOADS__; Object.values multi-line format fix. - agent-instances-sheet.spec.ts: 9 tests covering local+relay merge, exact-target Archive/Unarchive/refetch flow, relay-only badge per row, unknown-persona section, and negative-control persona isolation. - tests/helpers/bridge.ts: updated ownedAgentInventory type to byPersonaId/unknown shape with local field. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>