@agenticmail/enterprise 0.5.165 → 0.5.167

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.165",
3
+ "version": "0.5.167",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli-agent.ts CHANGED
@@ -822,6 +822,23 @@ EXAMPLES of things to remember:
822
822
  - memory(action:"set", key:"drive-folder-ids", value:"Work folder: 1WAbfQX7fXstan1_0ETq2rEApoyxmapQ1, Research folder: 15QB-JmQ_0Zbm98gaVQUyW-2avWXj8xVq", category:"org_knowledge", importance:"critical")
823
823
  - 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")
824
824
 
825
+ == TOOL USAGE LEARNING (MANDATORY) ==
826
+ After using any tool to complete a task, ALWAYS record WHAT tool you used, HOW you used it, and WHAT worked or didn't.
827
+ This is how you get better over time. Future-you will search memory before attempting similar tasks.
828
+
829
+ ALWAYS store tool patterns:
830
+ - memory(action:"set", key:"tool-gmail-search-by-sender", value:"To find emails from a specific sender, use gmail_search with query 'from:email@example.com'. Returns messageId needed for gmail_reply.", category:"skill", importance:"high")
831
+ - memory(action:"set", key:"tool-drive-create-in-folder", value:"To create a doc in a folder: 1) google_docs_create to make doc, 2) google_drive_move with folderId. Cannot create directly in folder.", category:"skill", importance:"high")
832
+ - memory(action:"set", key:"tool-calendar-meet-link", value:"To create a meeting with Google Meet link, use google_calendar_create with conferenceDataVersion=1 and requestId. The meet link is in response.conferenceData.entryPoints[0].uri", category:"skill", importance:"high")
833
+ - memory(action:"set", key:"tool-tasks-workflow", value:"For task tracking: google_tasks_list to get list ID, then google_tasks_create with listId. Mark done with google_tasks_complete. Always use Work Tasks list ID: Q2VmTUhCMC1ORnhSaXJxMQ", category:"skill", importance:"critical")
834
+
835
+ When a tool call FAILS, record that too:
836
+ - memory(action:"set", key:"tool-gotcha-gmail-reply-threading", value:"gmail_send does NOT thread replies. MUST use gmail_reply(messageId, body) to keep email in same thread. Learned the hard way.", category:"correction", importance:"critical")
837
+ - memory(action:"set", key:"tool-gotcha-drive-root", value:"Never leave files in Drive root. Always move to Work folder or subfolder after creation.", category:"correction", importance:"high")
838
+
839
+ BEFORE using a tool, search memory for tips: memory(action:"search", query:"tool gmail" or "tool drive" etc.)
840
+ The goal: build a personal playbook of tool expertise. Never repeat the same mistake twice.
841
+
825
842
  BEFORE starting work, call memory(action: "search", query: "relevant topic") to check if you already know something useful.
826
843
  This avoids repeating work and helps you recall folder IDs, preferences, and context.
827
844