diff --git a/.tegami/2026-11-05-sdk-035.md b/.tegami/2026-11-05-sdk-035.md deleted file mode 100644 index 5a33fa9..0000000 --- a/.tegami/2026-11-05-sdk-035.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -packages: - "@samva/better-auth": minor - "@samva/email-sdk": minor ---- - -## Require Samva SDK 0.35 - -Both adapters now require `samva@^0.35.0` and validate against SDK 0.35.0. -Only the current SDK minor is supported; upgrade Samva alongside the adapter. diff --git a/.tegami/2026-11-08-sdk-037.md b/.tegami/2026-11-08-sdk-037.md deleted file mode 100644 index ef714cf..0000000 --- a/.tegami/2026-11-08-sdk-037.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -packages: - "@samva/better-auth": minor - "@samva/email-sdk": minor ---- - -## Require Samva SDK 0.37 - -Both adapters now require `samva@^0.37.0` and validate against SDK 0.37.0. -Only the current SDK minor is supported; upgrade Samva alongside the adapter. - -The adapter surface is unchanged. `@samva/email-sdk` builds a flat email payload, -calls `email.send`, and reads `id` from the response. `@samva/better-auth` builds -`{ to, channel: "email", email }`, calls `messages.send`, and ignores the -response. Both contracts survived 0.36 and 0.37. What changed around them: - -- Mailbox keys and extension installations carry decision policies instead of - `sendMode`. A held send returns `approvalRequired` with a `decision`; a person - approves with that decision's `reviewRound`, and a stale round returns 409. - Replacing a policy requires the version you read as `ifVersion`. -- `samva` 0.37 removes the RSA `v2` helpers from the webhooks package. - Verify a delivery with `verify` or `verifyRequest` from `samva/webhooks` and - the endpoint signing secret. -- Template responses and create/update payloads no longer expose `isActive`. - `templates.delete` and `templates.deleteProject` delete permanently and refuse - a referenced template with `TemplateInUseError` (409). -- Scheduled sends, analytics, and conversations accept `namespaceId`, and an - agent's knowledge sources must belong to its namespace. diff --git a/.tegami/publish-lock.yaml b/.tegami/publish-lock.yaml index 6c60d42..7569c1b 100644 --- a/.tegami/publish-lock.yaml +++ b/.tegami/publish-lock.yaml @@ -1,60 +1,60 @@ core:changelogs: - - content: "---\npackages:\n \"@samva/better-auth\":\n type: minor\n \"@samva/email-sdk\":\n type: minor\n---\n\n## Require Samva SDK 0.33\n\nUpgrade `samva` to `^0.33.0` alongside either adapter. Only the current 0.x SDK\nminor is supported; adapter development and tests now use `0.33.0`.\n\nBoth adapters pick up the default-on retry the SDK gained in 0.30: reads and\nidempotent mutations are retried up to four attempts, and an explicit\n`{ idempotencyKey }` in the second argument is the only way to pin a key across\ncalls.\n" - filename: 2026-11-02-require-samva-0-33.md + - content: "---\npackages:\n \"@samva/better-auth\":\n type: minor\n \"@samva/email-sdk\":\n type: minor\n---\n\n## Require Samva SDK 0.37\n\nBoth adapters now require `samva@^0.37.0` and validate against SDK 0.37.0.\nOnly the current SDK minor is supported; upgrade Samva alongside the adapter.\n\nThe adapter surface is unchanged. `@samva/email-sdk` builds a flat email payload,\ncalls `email.send`, and reads `id` from the response. `@samva/better-auth` builds\n`{ to, channel: \"email\", email }`, calls `messages.send`, and ignores the\nresponse. Both contracts survived 0.36 and 0.37. What changed around them:\n\n- Mailbox keys and extension installations carry decision policies instead of\n `sendMode`. A held send returns `approvalRequired` with a `decision`; a person\n approves with that decision's `reviewRound`, and a stale round returns 409.\n Replacing a policy requires the version you read as `ifVersion`.\n- `samva` 0.37 removes the RSA `v2` helpers from the webhooks package.\n Verify a delivery with `verify` or `verifyRequest` from `samva/webhooks` and\n the endpoint signing secret.\n- Template responses and create/update payloads no longer expose `isActive`.\n `templates.delete` and `templates.deleteProject` delete permanently and refuse\n a referenced template with `TemplateInUseError` (409).\n- Scheduled sends, analytics, and conversations accept `namespaceId`, and an\n agent's knowledge sources must belong to its namespace.\n" + filename: 2026-11-08-sdk-037.md v: 0.0.0 - - content: "---\npackages:\n \"@samva/better-auth\":\n type: minor\n \"@samva/email-sdk\":\n type: minor\n---\n\n## Require Samva SDK 0.34\n\nUpgrade `samva` to `^0.34.0` alongside either adapter. Only the current 0.x SDK\nminor is supported; adapter development and tests now use `0.34.0`.\n\n0.34 adds a `kind: \"replay\"` webhook delivery attempt with\n`classification: \"skipped\"` and a `queueMessageId` for replays of terminal\ndeliveries. Those receipts make no HTTP request and do not advance the\nautomatic retry lifecycle, so attempt counts that assume every entry is a\nrequest need to filter on `kind` first.\n" - filename: 2026-11-03-require-samva-0-34.md + - content: "---\npackages:\n \"@samva/better-auth\":\n type: minor\n \"@samva/email-sdk\":\n type: minor\n---\n\n## Require Samva SDK 0.35\n\nBoth adapters now require `samva@^0.35.0` and validate against SDK 0.35.0.\nOnly the current SDK minor is supported; upgrade Samva alongside the adapter.\n" + filename: 2026-11-05-sdk-035.md v: 0.0.0 core:packages: - changelogIds: - - 2026-11-02-require-samva-0-33.md - - 2026-11-03-require-samva-0-34.md + - 2026-11-08-sdk-037.md + - 2026-11-05-sdk-035.md id: npm:@samva/email-sdk updated: true + - id: npm:better-auth-nextjs-samva + updated: false - changelogIds: - - 2026-11-02-require-samva-0-33.md - - 2026-11-03-require-samva-0-34.md + - 2026-11-08-sdk-037.md + - 2026-11-05-sdk-035.md id: npm:@samva/better-auth updated: true - - id: npm:effect-sdk-example - updated: false - id: npm:mailbox-agent-samva updated: false - - id: npm:tanstack-start-transactional-samva - updated: false - - id: npm:supabase-auth-hook-samva + - id: npm:tsx-template-samva updated: false - - id: npm:astro-email-samva + - id: npm:effect-sdk-example updated: false - - id: npm:tsx-template-samva + - id: npm:clerk-webhook-samva updated: false - id: npm:react-email-samva updated: false + - id: npm:tanstack-start-transactional-samva + updated: false - id: npm:nextjs-transactional-samva updated: false - - id: npm:clerk-webhook-samva + - id: npm:supabase-auth-hook-samva updated: false - - id: npm:better-auth-nextjs-samva + - id: npm:astro-email-samva + updated: false + - id: npm:hono-cloudflare-workers-samva updated: false - id: npm:sveltekit-transactional-samva updated: false - id: npm:inbound-email-replies-samva updated: false - - id: npm:hono-cloudflare-workers-samva - updated: false npm:packages: - id: npm:@samva/email-sdk + - id: npm:better-auth-nextjs-samva - id: npm:@samva/better-auth - - id: npm:effect-sdk-example - id: npm:mailbox-agent-samva - - id: npm:tanstack-start-transactional-samva - - id: npm:supabase-auth-hook-samva - - id: npm:astro-email-samva - id: npm:tsx-template-samva + - id: npm:effect-sdk-example + - id: npm:clerk-webhook-samva - id: npm:react-email-samva + - id: npm:tanstack-start-transactional-samva - id: npm:nextjs-transactional-samva - - id: npm:clerk-webhook-samva - - id: npm:better-auth-nextjs-samva + - id: npm:supabase-auth-hook-samva + - id: npm:astro-email-samva + - id: npm:hono-cloudflare-workers-samva - id: npm:sveltekit-transactional-samva - id: npm:inbound-email-replies-samva - - id: npm:hono-cloudflare-workers-samva diff --git a/bun.lock b/bun.lock index 70a4d8b..6ac5f51 100644 --- a/bun.lock +++ b/bun.lock @@ -232,7 +232,7 @@ }, "packages/better-auth": { "name": "@samva/better-auth", - "version": "0.11.0", + "version": "0.12.0", "devDependencies": { "@react-email/render": "^2.2.0", "better-auth": "^1.7.17", @@ -249,7 +249,7 @@ }, "packages/email-sdk": { "name": "@samva/email-sdk", - "version": "0.12.0", + "version": "0.13.0", "devDependencies": { "@opencoredev/email-sdk": "^3.0.1", "samva": "^0.37.0", diff --git a/packages/better-auth/CHANGELOG.md b/packages/better-auth/CHANGELOG.md index a9696cc..ed1969a 100644 --- a/packages/better-auth/CHANGELOG.md +++ b/packages/better-auth/CHANGELOG.md @@ -1,3 +1,33 @@ +## @samva/better-auth@0.12.0 + +### Require Samva SDK 0.37 + +Both adapters now require `samva@^0.37.0` and validate against SDK 0.37.0. +Only the current SDK minor is supported; upgrade Samva alongside the adapter. + +The adapter surface is unchanged. `@samva/email-sdk` builds a flat email payload, +calls `email.send`, and reads `id` from the response. `@samva/better-auth` builds +`{ to, channel: "email", email }`, calls `messages.send`, and ignores the +response. Both contracts survived 0.36 and 0.37. What changed around them: + +- Mailbox keys and extension installations carry decision policies instead of + `sendMode`. A held send returns `approvalRequired` with a `decision`; a person + approves with that decision's `reviewRound`, and a stale round returns 409. + Replacing a policy requires the version you read as `ifVersion`. +- `samva` 0.37 removes the RSA `v2` helpers from the webhooks package. + Verify a delivery with `verify` or `verifyRequest` from `samva/webhooks` and + the endpoint signing secret. +- Template responses and create/update payloads no longer expose `isActive`. + `templates.delete` and `templates.deleteProject` delete permanently and refuse + a referenced template with `TemplateInUseError` (409). +- Scheduled sends, analytics, and conversations accept `namespaceId`, and an + agent's knowledge sources must belong to its namespace. + +### Require Samva SDK 0.35 + +Both adapters now require `samva@^0.35.0` and validate against SDK 0.35.0. +Only the current SDK minor is supported; upgrade Samva alongside the adapter. + ## @samva/better-auth@0.11.0 ### Require Samva SDK 0.33 diff --git a/packages/better-auth/package.json b/packages/better-auth/package.json index 0609dbc..2acb77d 100644 --- a/packages/better-auth/package.json +++ b/packages/better-auth/package.json @@ -1,6 +1,6 @@ { "name": "@samva/better-auth", - "version": "0.11.0", + "version": "0.12.0", "description": "Better Auth email callbacks powered by Samva.", "keywords": [ "auth", diff --git a/packages/email-sdk/CHANGELOG.md b/packages/email-sdk/CHANGELOG.md index 21d702b..63394e6 100644 --- a/packages/email-sdk/CHANGELOG.md +++ b/packages/email-sdk/CHANGELOG.md @@ -1,3 +1,33 @@ +## @samva/email-sdk@0.13.0 + +### Require Samva SDK 0.37 + +Both adapters now require `samva@^0.37.0` and validate against SDK 0.37.0. +Only the current SDK minor is supported; upgrade Samva alongside the adapter. + +The adapter surface is unchanged. `@samva/email-sdk` builds a flat email payload, +calls `email.send`, and reads `id` from the response. `@samva/better-auth` builds +`{ to, channel: "email", email }`, calls `messages.send`, and ignores the +response. Both contracts survived 0.36 and 0.37. What changed around them: + +- Mailbox keys and extension installations carry decision policies instead of + `sendMode`. A held send returns `approvalRequired` with a `decision`; a person + approves with that decision's `reviewRound`, and a stale round returns 409. + Replacing a policy requires the version you read as `ifVersion`. +- `samva` 0.37 removes the RSA `v2` helpers from the webhooks package. + Verify a delivery with `verify` or `verifyRequest` from `samva/webhooks` and + the endpoint signing secret. +- Template responses and create/update payloads no longer expose `isActive`. + `templates.delete` and `templates.deleteProject` delete permanently and refuse + a referenced template with `TemplateInUseError` (409). +- Scheduled sends, analytics, and conversations accept `namespaceId`, and an + agent's knowledge sources must belong to its namespace. + +### Require Samva SDK 0.35 + +Both adapters now require `samva@^0.35.0` and validate against SDK 0.35.0. +Only the current SDK minor is supported; upgrade Samva alongside the adapter. + ## @samva/email-sdk@0.12.0 ### Require Samva SDK 0.33 diff --git a/packages/email-sdk/package.json b/packages/email-sdk/package.json index cd6d8fc..45936d0 100644 --- a/packages/email-sdk/package.json +++ b/packages/email-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@samva/email-sdk", - "version": "0.12.0", + "version": "0.13.0", "description": "Samva community adapter for Email SDK.", "keywords": [ "email",