chore: version packages - #64
Merged
Merged
Conversation
presmihaylov
approved these changes
Sep 7, 2026
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@team-plain/webhooks@1.9.0
Minor Changes
1f854d5: Update the webhook schema to
2026-09-02. AddsworkspaceFilesto the message ondiscussion.message_created, so a handler can see the files a custom agent attached to the message it just sent.Each entry carries
id,fileName,fileExtension,fileMimeTypeandfileSizeBytes, all required on an entry. The array itself is optional and the parser does not fill it in. The schema declaresdefault: [], butparsePlainWebhookbuilds Ajv withoutuseDefaults, so an absent array stays absent and the generated type isworkspaceFiles?. Read it asmessage.workspaceFiles ?? [].The package bundles one schema version at a time, so this release only parses payloads whose
webhookMetadata.webhookTargetVersionis the version below. Move your webhook target forward when you upgrade, orparsePlainWebhookreturnsPlainWebhookVersionMismatchError.1f854d5: Update the webhook schema to
2026-09-06, which carries the custom-agent tool call approval flow. Two new events, and one new field on the discussion that every discussion event already reports. Nothing was removed.discussion.tool_call_approval_requestedfires when an agent asks a human to gate a tool call:approvalId,toolCallId,justification,requestedAt,requestedBy, plus thediscussion.discussion.tool_call_approval_resolvedfires on the decision and addsstatus,resolvedAt,resolvedByandreviewerNote.statusisAPPROVED,DENIEDor the forward-compatibleUNKNOWN_APPROVAL_STATUS.reviewerNoteis required but nullable, so the key is always present and isnullwhen the reviewer left no note; do not test for its absence. Their types are exported asDiscussionToolCallApprovalRequestedPublicEventPayloadandDiscussionToolCallApprovalResolvedPublicEventPayload.The field worth reading carefully is
discussion.agentStatus, because all four discussion events carry it, not only the new two. It isUNKNOWN,IDLE,IN_PROGRESS,TOOL_CALL_APPROVAL_PENDINGorUNKNOWN_DISCUSSION_AGENT_STATUS. It is optional and the parser does not fill it in: the schema declaresdefault: "UNKNOWN", but Ajv is built withoutuseDefaults, so treat an absent value asUNKNOWNyourself rather than expecting the string.On the resolved event
agentStatusreports the status after the decision settled, so an approved call readsIN_PROGRESSand not the pending state that the decision just cleared.The package bundles one schema version at a time, so this release only parses payloads whose
webhookMetadata.webhookTargetVersionis2026-09-06. Move your webhook target to2026-09-06when you upgrade, orparsePlainWebhookreturnsPlainWebhookVersionMismatchError.Note
Low Risk
Release-only metadata (version, changelog, changeset cleanup); no code changes in the diff.
Overview
Automated Changesets release that publishes
@team-plain/webhooks1.9.0: bumpspackage.json, folds two consumed changesets intoCHANGELOG.md, and deletes the.changesetentries. No runtime or schema files change in this diff.What 1.9.0 documents for integrators (already implemented on
main): webhook target2026-09-06with optionalmessage.workspaceFilesondiscussion.message_created(usemessage.workspaceFiles ?? []because Ajv does not apply defaults), plusdiscussion.tool_call_approval_requested/discussion.tool_call_approval_resolvedand optionaldiscussion.agentStatuson discussion events (treat missingagentStatusasUNKNOWN). Upgrading the package without moving the Plain webhook target forward yieldsPlainWebhookVersionMismatchError.Reviewed by Cursor Bugbot for commit 5d31dfa. Bugbot is set up for automated code reviews on this repo. Configure here.