Saxonberg Server API
    Preparing search index...

    CodeNamingFields — the single source of truth for the direct code-naming fields on a content template: the data/top-level fields that resolve to an executable module export at clone / hydrate / behavior-fire time. Writing one of these is, transitively, "name code to run", so they are wizard-only-writable (see the code-field gate in TemplateLogic.saveTemplate and the wizard/protowizard partition in access.md).

    The transitive reference fields (adornments[].template, exits[].destination, populates[], container, …) are NOT listed here: they name another template, which must itself have passed this same gate on its own class, so they are closed by construction.

    This vocabulary is also consumed by the drift-guard (__tests__/codeNamingDriftGuard.test.ts), which fails if a new module-resolving call site appears without being classified against this set.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    FIELDS: readonly ["class", "hydratorClass", "behaviors[].brain"] = ...

    The direct code-naming fields, by their dotted access path on a template. behaviors[].brain denotes the brain string on each data.behaviors[] entry.

    Methods

    • Extract the brain strings from a template data blob, tolerant of missing/odd shapes. Reads data.behaviors[].brain, skipping entries without a non-empty string brain.

      Parameters

      • data: unknown

      Returns string[]

    • True iff candidate is a sub-multiset of reference — every value in candidate appears in reference at least as many times. Reordering or dropping brains preserves the subset relation; introducing a brain not already present breaks it.

      Parameters

      • candidate: readonly string[]
      • reference: readonly string[]

      Returns boolean