Skip to content

Commit 53f98fb

Browse files
committed
fix(spec): object_extension declares the *.extension.ts file pattern its code files follow
Every registry entry declares at least one file pattern (metadata-plugin registry pin); an empty list also reads as "no pattern" to the file-system loader. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0c1efc5 commit 53f98fb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎packages/spec/src/kernel/metadata-plugin.zod.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,16 +814,18 @@ export const DEFAULT_METADATA_TYPE_REGISTRY: MetadataTypeRegistryEntryParsed[] =
814814
// rollback and delete are the doors every item uses, and the package's
815815
// export carries the item as an `objectExtensions` entry.
816816
//
817-
// `filePatterns: []`: no loader file holds one on its own. A code package
818-
// declares its extensions in `objectExtensions`, which the artifact loader
819-
// already stores under this type name. `supportsOverlay` /
817+
// `filePatterns`: the `*.extension.ts` convention a code package's
818+
// `defineObjectExtension` files follow (`examples/app-showcase/src/data/
819+
// extensions/`). A code package declares its extensions in
820+
// `objectExtensions`, which the artifact loader already stores under this
821+
// type name. `supportsOverlay` /
820822
// `allowEnvironmentOverlay: false`: an extension is never overlaid; a
821823
// package changes its own item, and a second package writes a second item.
822824
// The body is judged by the metadata-protocol doors with
823825
// `ObjectExtensionSchema` itself; this type has no entry in
824826
// `BUILTIN_METADATA_TYPE_SCHEMAS` (the ADR-0010 envelope there would change
825827
// the schema a manifest's `objectExtensions` parses with).
826-
{ type: 'object_extension', label: 'Object Extension', description: 'Fields and rules a package adds to an object another package defines', filePatterns: [], supportsOverlay: false, allowEnvironmentOverlay: false, allowRuntimeCreate: true, supportsVersioning: true, executionPinned: false, loadOrder: 11, domain: 'data' },
828+
{ type: 'object_extension', label: 'Object Extension', description: 'Fields and rules a package adds to an object another package defines', filePatterns: ['**/*.extension.ts'], supportsOverlay: false, allowEnvironmentOverlay: false, allowRuntimeCreate: true, supportsVersioning: true, executionPinned: false, loadOrder: 11, domain: 'data' },
827829
// [#7893] `field` — the STANDALONE runtime-create door is RETIRED
828830
// (`allowRuntimeCreate: false`), maintainer ruling 2026-08-12.
829831
//

0 commit comments

Comments
 (0)