@agenticmail/core 0.7.3 → 0.7.4

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/README.md CHANGED
@@ -10,7 +10,12 @@ This is the foundation layer that everything else builds on. If the API server,
10
10
 
11
11
  Every other AgenticMail package depends on this one.
12
12
 
13
- ## ✨ What's new in 0.7.2
13
+ ## ✨ What's new in 0.7.4
14
+
15
+ - **⭐ `MailReceiver.setStarred(uid, starred, mailbox?)`** — toggles IMAP's `\Flagged` flag via `messageFlagsAdd` / `messageFlagsRemove`. Same on-disk bit Gmail's star uses. Underpins the new `POST /mail/messages/:uid/star` route in `@agenticmail/api`.
16
+ - **📐 Task `output_schema` column** — migration `014_task_output_schema.sql` adds an optional `output_schema TEXT` column to `agent_tasks`. Stores the assigner-supplied JSON Schema for typed task contracts. `NULL` means "no schema, accept anything", fully back-compat with the v0.8.x task model.
17
+
18
+ ## ✨ Earlier — 0.7.2
14
19
 
15
20
  - **`list_inbox` / `inbox_digest` consistency fix** — `MailReceiver.listEnvelopes` no longer trusts the stale cached `mailbox.exists` count and early-returns empty when an internal mail just landed. `getMailboxInfo` now issues an IMAP `NOOP` to refresh state before reading `client.mailbox`. `SEARCH` is the authoritative source; `list_inbox` and `inbox_digest` now agree.
16
21
  - **Custom outgoing headers** — the `headers` field on `SendMailOptions` is fully plumbed through to nodemailer, so callers (the API, the MCP server) can set `X-AgenticMail-Wake` and other custom headers for downstream consumers to read.
package/dist/index.cjs CHANGED
@@ -3488,6 +3488,17 @@ CREATE INDEX IF NOT EXISTS idx_pending_outbound_agent ON pending_outbound(agent_
3488
3488
  "013_pending_notification_id.sql": `
3489
3489
  ALTER TABLE pending_outbound ADD COLUMN notification_message_id TEXT;
3490
3490
  CREATE INDEX IF NOT EXISTS idx_pending_notification ON pending_outbound(notification_message_id);
3491
+ `,
3492
+ "014_task_output_schema.sql": `
3493
+ -- Typed task contracts: when an assigner cares about the shape of the
3494
+ -- deliverable, they can attach a JSON Schema describing what
3495
+ -- submit_result must look like. The API validates against it before
3496
+ -- accepting the result, so workers can't return free-form prose when
3497
+ -- a structured object was requested.
3498
+ --
3499
+ -- Column is optional; NULL means "no schema, accept anything" (the
3500
+ -- v0.8.x behaviour, fully back-compat).
3501
+ ALTER TABLE agent_tasks ADD COLUMN output_schema TEXT;
3491
3502
  `
3492
3503
  };
3493
3504
  function runMigrations(database) {
package/dist/index.js CHANGED
@@ -2730,6 +2730,17 @@ CREATE INDEX IF NOT EXISTS idx_pending_outbound_agent ON pending_outbound(agent_
2730
2730
  "013_pending_notification_id.sql": `
2731
2731
  ALTER TABLE pending_outbound ADD COLUMN notification_message_id TEXT;
2732
2732
  CREATE INDEX IF NOT EXISTS idx_pending_notification ON pending_outbound(notification_message_id);
2733
+ `,
2734
+ "014_task_output_schema.sql": `
2735
+ -- Typed task contracts: when an assigner cares about the shape of the
2736
+ -- deliverable, they can attach a JSON Schema describing what
2737
+ -- submit_result must look like. The API validates against it before
2738
+ -- accepting the result, so workers can't return free-form prose when
2739
+ -- a structured object was requested.
2740
+ --
2741
+ -- Column is optional; NULL means "no schema, accept anything" (the
2742
+ -- v0.8.x behaviour, fully back-compat).
2743
+ ALTER TABLE agent_tasks ADD COLUMN output_schema TEXT;
2733
2744
  `
2734
2745
  };
2735
2746
  function runMigrations(database) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/core",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Core SDK for AgenticMail — email, SMS, and phone number access for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",