Agent registered: ag_01HXYZ...
Grant token received, grantId: grnt_01HXYZ...
Tools created: read_calendar, send_email
Audit logging attached
--- Invoking tools directly (no OPENAI_API_KEY set) ---
Calendar result: {"date":"today","events":[{"title":"Team standup","time":"9:00 AM"},{"title":"Design review","time":"2:00 PM"}]}
Email result: {"sent":true,"to":"alice@example.com","subject":"Today's events","bodyLength":49}
--- Testing scope enforcement ---
GrantexScopeError caught:
Required scope: storage:delete
Granted scopes: calendar:read, email:send
--- Audit trail ---
[success] read_calendar — 2026-02-28T12:00:00.000Z
[success] send_email — 2026-02-28T12:00:01.000Z
Done! Vercel AI integration demo complete.