@soederpop/luca 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/container.ts CHANGED
@@ -10,6 +10,7 @@ import { pluralize, singularize } from 'inflect'
10
10
  import { z } from 'zod'
11
11
  import { ContainerStateSchema, describeZodShape } from './schemas/base'
12
12
  import { getContainerBuildTimeData, type ContainerIntrospection, type RegistryIntrospection, type IntrospectionSection } from './introspection/index'
13
+ import { ContainerDescriber } from './container-describer'
13
14
 
14
15
  export { z }
15
16
 
@@ -148,6 +149,16 @@ export class Container<Features extends AvailableFeatures = AvailableFeatures, C
148
149
  }
149
150
  }
150
151
 
152
+ private _describer?: ContainerDescriber
153
+
154
+ /** Lazy-initialized ContainerDescriber for introspecting registries, helpers, and members. */
155
+ get describer(): ContainerDescriber {
156
+ if (!this._describer) {
157
+ this._describer = new ContainerDescriber(this)
158
+ }
159
+ return this._describer
160
+ }
161
+
151
162
  /**
152
163
  * Add a value to the container's shared context, which is passed to all helper instances.
153
164
  * Accepts either a key and value, or an object of key-value pairs to add.