Repository navigation
feat(Assemble): capabilitiesOnIncluded to stamp primary data only - #582
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: ecfe336 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This was referenced Nov 12, 2026
thomasfosterau
force-pushed
the
issue-567-capabilities-included
branch
4 times, most recently
from
November 12, 2026 05:01
77242c5 to
d9a71ee
Compare
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY
…test (#567) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY
thomasfosterau
force-pushed
the
issue-567-capabilities-included
branch
from
November 12, 2026 05:21
d9a71ee to
ecfe336
Compare
This was referenced Nov 12, 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.
Summary
Adds
capabilitiesOnIncluded?: boolean(defaulttrue, today's behaviour) toAssemble.OptionsandAssemble.RelationshipInput, and to theResourceHandlersread-only, writable and related configs.falsestamps thecapabilitieshook's result on primary data only;includedmembers carry no capabilitymeta. Owner decision of 2026-11-11 (a boolean option rather than a hook-role argument). From gardeneria#1263 O5.Implementation: the single
onResourcetransform shapes both slots, so withfalsethe stamp is skipped for any resource whose(type, id)is not in the primary data. A resource that is both primary and included is shaped once, for the primary slot. In a relationship document the primary data is linkage (nometa), sofalsethere stamps nothing. Members are spelledreadonly capabilitiesOnIncluded?: booleanand threaded withdefinedMember, soexactOptionalPropertyTypesneeded no widening.Closes #567
Verification
pnpm install --frozen-lockfile: passvp run build: passvp check: pass (0 errors; no new warnings in the changed files)vp run check: passvp run -r test:unit: passvp run docgen: passvp run test:coverage, thenvp exec fallow audit --base origin/trunk: pass (verdictpass)Changeset
.changeset/capabilities-on-included.md,minor(additive)..changeset/for every change to published behaviourNotes
New public members on
Assemble.Options,Assemble.RelationshipInputand theResourceHandlersconfigs;@since 0.22.0(package is 0.21.0). Tests cover default and explicittruestamping both, andfalsestamping primary only, for single-resource, paginated and unpaginated collection documents with includes, and throughResourceHandlers.list.Generated by Claude Code