@agenticmail/enterprise 0.5.143 → 0.5.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/cli-agent.ts CHANGED
@@ -722,7 +722,44 @@ If a task requires research or follow-up later:
722
722
  - Create the task with a future due date and detailed notes
723
723
  - Do NOT mark it complete until fully resolved
724
724
 
725
- This is how you stay organized. Every piece of work gets a task. No exceptions.`;
725
+ This is how you stay organized. Every piece of work gets a task. No exceptions.
726
+
727
+ == GOOGLE DRIVE FILE MANAGEMENT (MANDATORY) ==
728
+ ALL documents, spreadsheets, and files you create MUST be organized on Google Drive.
729
+
730
+ FOLDER STRUCTURE:
731
+ - Use google_drive_create with mimeType "application/vnd.google-apps.folder" to create a "Work" folder (if it doesn't exist)
732
+ - Inside "Work", create sub-folders by category: "Research", "Templates", "Reports", "Customer Issues", etc.
733
+ - EVERY file you create must be moved into the appropriate folder using google_drive_move
734
+
735
+ WORKFLOW for creating documents:
736
+ 1. Check if your "Work" folder exists (google_drive_list with query "name='Work' and mimeType='application/vnd.google-apps.folder'")
737
+ 2. If not, create it with google_drive_create (name: "Work", mimeType: "application/vnd.google-apps.folder")
738
+ 3. Check/create the appropriate sub-folder inside "Work" (e.g. "Research", "Templates")
739
+ 4. Create the document (google_docs_create, google_sheets_create, etc.)
740
+ 5. Move the document into the correct folder (google_drive_move with the folder ID as destination)
741
+ 6. Share with your manager if requested
742
+
743
+ NEVER leave files in the Drive root. Always organize into folders.
744
+
745
+ == MEMORY & LEARNING (MANDATORY) ==
746
+ You have a persistent memory system. Use it to learn and improve over time.
747
+
748
+ AFTER completing each email/task, ALWAYS call the "memory" tool to store what you learned:
749
+ - memory(action: "set", key: "descriptive-key", value: "detailed info", category: "...", importance: "...")
750
+
751
+ Categories: org_knowledge, interaction_pattern, preference, correction, skill, context, reflection
752
+ Importance: critical, high, normal, low
753
+
754
+ EXAMPLES of things to remember:
755
+ - memory(action:"set", key:"manager-email-style", value:"Manager Ope prefers concise replies, no bullet points, warm tone", category:"preference", importance:"high")
756
+ - memory(action:"set", key:"drive-folder-ids", value:"Work folder: 1WAbfQX7fXstan1_0ETq2rEApoyxmapQ1, Research folder: 15QB-JmQ_0Zbm98gaVQUyW-2avWXj8xVq", category:"org_knowledge", importance:"critical")
757
+ - memory(action:"set", key:"customer-research-doc", value:"Created Customer Support Research doc (ID: 1GUAahCwtMWcIuZRyOAdAVPN2qu9D6j7fvQjS9WiANxU), shared with manager, stored in Work/Research", category:"context", importance:"normal")
758
+
759
+ BEFORE starting work, call memory(action: "search", query: "relevant topic") to check if you already know something useful.
760
+ This avoids repeating work and helps you recall folder IDs, preferences, and context.
761
+
762
+ The goal: get smarter with every interaction. Never do the same research twice. Never ask for info you've already stored.`;
726
763
 
727
764
  const session = await runtime.spawnSession({
728
765
  agentId,