test(skill): add bb mail lifecycle and preflight coverage

This commit is contained in:
ZenchantLive 2026-03-03 19:23:53 -08:00
parent a9566059ba
commit 003aba3179
58 changed files with 402 additions and 2142 deletions

View file

@ -134,11 +134,11 @@ function requiresAck(category: MessageCategory): boolean {
return category === 'HANDOFF' || category === 'BLOCKED';
}
function defaultMessageId(nowIso: string): string {
const seed = Math.random().toString(16).slice(2, 6);
const compact = nowIso.replace(/[-:]/g, '').replace('.000Z', '').replace('T', '_');
return `msg_${compact}_${seed}`;
}
function defaultMessageId(nowIso: string): string {
const seed = Math.random().toString(16).slice(2, 6);
const compact = nowIso.replace(/[.:-]/g, '').replace('T', '_').replace('Z', '');
return `msg_${compact}_${seed}`;
}
async function appendInboxMessage(agentId: string, message: AgentMessage): Promise<void> {
const filePath = inboxFilePath(agentId);