a tool to help your Letta AI agents navigate bluesky

Add total notification count to logging output

+2 -1
tasks/logTasks.ts
··· 86 86 } 87 87 88 88 const message = actions.join(", "); 89 + 89 90 console.log( 90 - `🔹 ${message}. uptime: ${uptimeFormatted}. next log in ${nextCheckMinutes} minutes`, 91 + `🔹 ${message}. total notifications: ${agentContext.notifCount}. uptime: ${uptimeFormatted}. next log in ${nextCheckMinutes} minutes`, 91 92 ); 92 93 } 93 94
+1
utils/agentContext.ts
··· 562 562 mentionCount: 0, 563 563 replyCount: 0, 564 564 quoteCount: 0, 565 + notifCount: 0, 565 566 // required with manual variables 566 567 lettaProjectIdentifier: getLettaProjectID(), 567 568 agentBskyHandle: getAgentBskyHandle(),
+1
utils/processNotification.ts
··· 63 63 ); 64 64 } finally { 65 65 (agentContext as any)[handler.counter]++; 66 + agentContext.notifCount++; 66 67 } 67 68 };
+8 -2
utils/types.ts
··· 8 8 } from "./const.ts"; 9 9 import type { 10 10 AutomationLevel, 11 - ResponsiblePartyType, 12 11 AutonomyDeclaration, 13 12 ResponsibleParty, 13 + ResponsiblePartyType, 14 14 } from "@voyager/autonomy-lexicon"; 15 15 16 16 export type Notification = AppBskyNotificationListNotifications.Notification; 17 17 18 18 // Re-export types from autonomy-lexicon package 19 - export type { AutomationLevel, ResponsiblePartyType, AutonomyDeclaration, ResponsibleParty }; 19 + export type { 20 + AutomationLevel, 21 + AutonomyDeclaration, 22 + ResponsibleParty, 23 + ResponsiblePartyType, 24 + }; 20 25 21 26 export type notifType = typeof validNotifTypes[number]; 22 27 ··· 38 43 mentionCount: number; 39 44 replyCount: number; 40 45 quoteCount: number; 46 + notifCount: number; 41 47 // required manual variables 42 48 lettaProjectIdentifier: string; 43 49 agentBskyHandle: string;