@agenticmail/enterprise 0.5.123 → 0.5.124

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli-agent.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.123",
3
+ "version": "0.5.124",
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
@@ -548,8 +548,9 @@ async function startEmailPolling(
548
548
  // Determine trust level
549
549
  const managerEmail = (config as any).managerEmail || ((config as any).manager?.type === 'external' ? (config as any).manager.email : null);
550
550
  const isFromManager = managerEmail && senderEmail.toLowerCase() === managerEmail.toLowerCase();
551
- const personality = config.identity?.personality ? `\n\nYour personality:\n${config.identity.personality.slice(0, 800)}` : '';
552
- const identityBlock = identity ? [
551
+ const identity = config.identity || {};
552
+ const personality = identity.personality ? `\n\nYour personality:\n${identity.personality.slice(0, 800)}` : '';
553
+ const identityBlock = [
553
554
  identity.gender ? `Gender: ${identity.gender}` : '',
554
555
  identity.age ? `Age: ${identity.age}` : '',
555
556
  identity.culturalBackground ? `Background: ${identity.culturalBackground}` : '',