Changelog - 2026-10-17
Slice an artifact group by kind
New FeatureIn one line. An application that splits configs.artifacts by run mode can now slice AutoArtifacts or a borrowed group with ArtifactGroup.pick instead of reading its kinds.
What changed
ArtifactGroup.pick({ group, kinds })returns a group carrying onlykinds. Its source is resolved when artifacts are registered, then filtered; a slice with no class is an empty index, not an error.ArtifactGroup.resolveContent({ group })returns a group's classes in the one order the kernel uses: inlinedcontent, the group's ownresolve(), the installed resolver.
Who is affected
- Applications that slice
configs.artifactsby kind (a worker without controllers, a migration run without services). Replace the kind read on a group withArtifactGroup.pick; a group passed through untouched would otherwise register in every slice. - Everyone else. No action needed.
Files: packages/kernel/src/base/applications/artifact-group.ts