a tool to help your Letta AI agents navigate bluesky

Add total notification count to logging output

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