Repository navigation
chore(release): prepare integration packages - #108
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
github-actions
Bot
force-pushed
the
tegami/version-packages
branch
2 times, most recently
from
November 7, 2026 17:53
ca27b06 to
405432a
Compare
aryasaatvik
added a commit
that referenced
this pull request
Nov 8, 2026
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> Propagate `samva` 0.37.0 and `@samva/cli` 0.31.0 into the maintained integrations. Both published adapters require only the current SDK minor and receive minor Tegami notes for the peer-range change. Source releases: [`samva@0.36.0`](https://github.com/SamvaHQ/samva-typescript/releases/tag/samva%400.36.0), [`samva@0.37.0`](https://github.com/SamvaHQ/samva-typescript/releases/tag/samva%400.37.0), [`@samva/webhooks@0.37.0`](https://github.com/SamvaHQ/samva-typescript/releases/tag/%40samva%2Fwebhooks%400.37.0), and [`@samva/cli@0.31.0`](https://github.com/SamvaHQ/samva-cli/releases/tag/%40samva%2Fcli%400.31.0). Reviewed the producer's SDK, webhooks, and CLI changelogs plus the published package declarations (`samva` 0.35.0 and 0.37.0, `@samva/webhooks` 0.36.0 and 0.37.0, `@samva/cli` 0.30.0 and 0.31.0). Producer checkouts were read only. | Repository surface | Impact and evidence | Disposition | | --- | --- | --- | | Both adapters; all 14 example manifests; Supabase Deno map | SDK dev/peer/dependency ranges move to ^0.37.0, including `examples/mailbox-agent`, which #109 had left on ^0.36.0. External Deno import pins 0.37.0. TSX template example uses CLI ^0.31.0. Bun 1.4.4 lock regenerated from npm and resolves one `samva@0.37.0` with `@samva/webhooks@0.37.0`. | affected | | TSX example and TSX cookbook authoring toolchain | `@samva/cli` 0.31 drives authoring 0.23.x and refuses a 0.22.x project (`this project has @samva/markup 0.22.1, but this CLI drives 0.23.x`). `@samva/markup` and `@samva/vite` move to ^0.23.0. 0.23.0 is a compatibility re-release: `dist` and `package.json` differ from 0.22.1 only by the version string, and both templates build and check unchanged. | affected | | Root README, adapter READMEs, TSX example README, Effect/mailbox/Supabase/TSX cookbooks | Current-minor references updated to 0.37.0 and CLI 0.31.0. No older-line support matrix. | affected | | Plugin distribution guidance | README names the current SDK/CLI minors and explains decision policies, HMAC webhook verification, permanent template deletion, and namespace-scoped reads. Canonical skill/instructions and all seven references reviewed; immutable skill bytes and `provenance.json` untouched. | affected | | Mailbox-agent extension comment | Still told readers to install with `--send-mode approval`, which 0.36 removed. Now points at a `--policy` whose `write` rules hold for a person, matching #109. | affected | | Adapter send paths and request bodies; every cookbook and plugin SDK/CLI snippet | `@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. `EmailSendMessagePayload`, `ReplyMailboxEmailPayload`, and `SendMailboxEmailPayload` are byte-identical between 0.35.0 and 0.37.0. Neither adapter reads a response into a request. Webhook calls already use `eventTypes`, and no undeclared caller fields were found. | unaffected | | Webhook verification | 0.37 removes `verifyWebhookAtWithPublicKeys`, `WebhookSignatureVersion`, `webhookSignedContent`, and `encodeWebhookSignature` from `@samva/webhooks/protocol`. Every integration uses `verifyRequest` or `createWebhookHandler` with the endpoint signing secret, and no direct `@samva/webhooks` dependency exists to bump. | unaffected | | Decision policies and held actions | 0.36 replaces mailbox grant and API key `sendMode` and agent/integration `mode` with `policy`/`decision`. Adapters send through `email.send` or `messages.send` and never touch grants, agents, or approvals. `MailboxSendReceipt.state` still enumerates `approvalRequired`, and `decision` is nullable there. Guidance updated in #109 and carried forward here. | unaffected | | Template `isActive`, `templates.delete`, `TemplateInUseError` | Template reads and create/update payloads no longer expose `isActive`. No integration reads or writes the field, and none deletes a template. `TemplateInUseError` (409) is added to the SDK error set only. | unaffected | | Namespaced scheduled sends, analytics, conversations, knowledge sources | New optional `namespaceId` inputs on both clients. No integration calls scheduled messages, analytics, or conversations; `templates.createFromWebsite` already passes an optional `namespaceId`. | unaffected | | Effect client | Adds the `Policies` module and `namespaceId` filters; existing `Client`, `Email`, and mailbox entrypoints are unchanged. No analytics callers, so the 0.35 `Date` filter change stays inert. | unaffected | ## What changed in 0.36 and 0.37 that matters here - **0.36 — decision rules.** Mailbox actions carry a decision (`allow`, `hold`, or `refuse`); policies replace `sendMode` and agent `mode`. Policy reads return `version`, replacement requires `ifVersion`, and a stale write is `409`. Approval and denial require the observed `decision.reviewRound`. Templates and projects can be permanently deleted. Namespace keys reach scheduled sends, analytics, conversations, and brands, and an agent's knowledge sources must belong to its namespace. - **0.37 — HMAC only.** The RSA `v2` webhook helpers left the protocol entrypoint; HMAC `v1` signing and verification are unchanged, and Samva never sent `v2`. ## Validation Bun 1.4.4, Node 22.23.4, Deno 2.9.5 (matches the CI pin): - `bun install`, then `bun install --frozen-lockfile`: passed, no changes. - `bun run build --continue`: 12/12 tasks. `bun run typecheck --continue`: 18/18 tasks. `bun run test`: 7 files, 139 tests. - `bun run lint`: warnings only, all in unchanged code. `bun run format:check`: 229 files clean. - `bun run validate:agent-plugin`, `bun --filter tsx-template-samva check`, the Supabase Deno `deno check`, and `git diff --check`: passed. - No live email sends, publishing, or deploys. ## Local testing checklist 1. `bun install && bun install --frozen-lockfile` 2. `bun run build --continue && bun run typecheck --continue && bun run test` 3. `bun run validate:agent-plugin && bun --filter tsx-template-samva check` 4. `cd examples/supabase-auth-hook && deno check --node-modules-dir=none --no-lock --min-dep-age=0 supabase/functions/send-email/index.ts` ## Review Greptile's one finding was correct: the 0.37 release note described both adapters as using the same send call. Fixed in `937918a`, and this table now states each path separately. ## Release Merging this PR does not publish anything by itself. Its Tegami minor notes are picked up by the `tegami/version-packages` PR, and that PR publishes `@samva/email-sdk` and `@samva/better-auth` when it merges. This PR is intentionally not labelled `release`, and #108 (`tegami/version-packages`) is untouched. <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-87270b0f-af3f-568f-b436-9942afd2918d?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-87270b0f-af3f-568f-b436-9942afd2918d&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
github-actions
Bot
force-pushed
the
tegami/version-packages
branch
from
November 8, 2026 18:08
405432a to
12fa89f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
All bumped packages.
@samva/email-sdk0.12.00.13.0@samva/better-auth0.11.00.12.0Changelogs
2026-11-08-sdk-037.mdShow Bumped Packages (2)
npm:@samva/email-sdknpm:@samva/better-authRequire Samva SDK 0.37
Both adapters now require
samva@^0.37.0and 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-sdkbuilds a flat email payload,calls
email.send, and readsidfrom the response.@samva/better-authbuilds{ to, channel: "email", email }, callsmessages.send, and ignores theresponse. Both contracts survived 0.36 and 0.37. What changed around them:
sendMode. A held send returnsapprovalRequiredwith adecision; a personapproves with that decision's
reviewRound, and a stale round returns 409.Replacing a policy requires the version you read as
ifVersion.samva0.37 removes the RSAv2helpers from the webhooks package.Verify a delivery with
verifyorverifyRequestfromsamva/webhooksandthe endpoint signing secret.
isActive.templates.deleteandtemplates.deleteProjectdelete permanently and refusea referenced template with
TemplateInUseError(409).namespaceId, and anagent's knowledge sources must belong to its namespace.
2026-11-05-sdk-035.mdShow Bumped Packages (2)
npm:@samva/email-sdknpm:@samva/better-authRequire Samva SDK 0.35
Both adapters now require
samva@^0.35.0and validate against SDK 0.35.0.Only the current SDK minor is supported; upgrade Samva alongside the adapter.
Publish
The following packages will be published if merged:
@samva/email-sdk0.13.0npm@samva/better-auth0.12.0npm