@zudojs/core 1.2.3 → 1.3.0

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.
Files changed (282) hide show
  1. package/README.md +13 -2
  2. package/dist/application/application.d.ts +29 -1
  3. package/dist/application/application.js +70 -1
  4. package/dist/application/applicationContext.context.d.ts +0 -1
  5. package/dist/application/applicationContext.context.js +0 -1
  6. package/dist/application/applicationState.state.d.ts +0 -1
  7. package/dist/application/applicationState.state.js +0 -1
  8. package/dist/application/createApplication.d.ts +0 -1
  9. package/dist/application/createApplication.js +0 -1
  10. package/dist/application/index.d.ts +0 -1
  11. package/dist/application/index.js +0 -1
  12. package/dist/configuration/configurationManager.manager.d.ts +0 -1
  13. package/dist/configuration/configurationManager.manager.js +0 -1
  14. package/dist/configuration/core/configuration.d.ts +0 -1
  15. package/dist/configuration/core/configuration.js +0 -1
  16. package/dist/configuration/core/configurationKey.key.d.ts +0 -1
  17. package/dist/configuration/core/configurationKey.key.js +0 -1
  18. package/dist/configuration/core/configurationPath.path.d.ts +0 -1
  19. package/dist/configuration/core/configurationPath.path.js +0 -1
  20. package/dist/configuration/core/configurationSource.source.d.ts +0 -1
  21. package/dist/configuration/core/configurationSource.source.js +0 -1
  22. package/dist/configuration/core/index.d.ts +0 -1
  23. package/dist/configuration/core/index.js +0 -1
  24. package/dist/configuration/error/configurationError.error.d.ts +0 -1
  25. package/dist/configuration/error/configurationError.error.js +0 -1
  26. package/dist/configuration/error/configurationRedactor.redactor.d.ts +0 -1
  27. package/dist/configuration/error/configurationRedactor.redactor.js +0 -1
  28. package/dist/configuration/error/index.d.ts +0 -1
  29. package/dist/configuration/error/index.js +0 -1
  30. package/dist/configuration/events/configurationEvents.events.d.ts +0 -1
  31. package/dist/configuration/events/configurationEvents.events.js +0 -1
  32. package/dist/configuration/events/index.d.ts +0 -1
  33. package/dist/configuration/events/index.js +0 -1
  34. package/dist/configuration/index.d.ts +0 -1
  35. package/dist/configuration/index.js +0 -1
  36. package/dist/configuration/loader/configurationLoader.loader.d.ts +0 -1
  37. package/dist/configuration/loader/configurationLoader.loader.js +0 -1
  38. package/dist/configuration/loader/index.d.ts +0 -1
  39. package/dist/configuration/loader/index.js +0 -1
  40. package/dist/configuration/registry/configurationProvider.provider.d.ts +0 -1
  41. package/dist/configuration/registry/configurationProvider.provider.js +0 -1
  42. package/dist/configuration/registry/configurationRegistry.registry.d.ts +0 -1
  43. package/dist/configuration/registry/configurationRegistry.registry.js +0 -1
  44. package/dist/configuration/registry/index.d.ts +0 -1
  45. package/dist/configuration/registry/index.js +0 -1
  46. package/dist/configuration/schema/configurationSchema.schema.d.ts +0 -1
  47. package/dist/configuration/schema/configurationSchema.schema.js +0 -1
  48. package/dist/configuration/schema/configurationValidation.validator.d.ts +0 -1
  49. package/dist/configuration/schema/configurationValidation.validator.js +0 -1
  50. package/dist/configuration/schema/index.d.ts +0 -1
  51. package/dist/configuration/schema/index.js +0 -1
  52. package/dist/container/container.d.ts +0 -1
  53. package/dist/container/container.js +0 -1
  54. package/dist/container/container.lifetime.d.ts +0 -1
  55. package/dist/container/container.lifetime.js +0 -1
  56. package/dist/container/index.d.ts +0 -1
  57. package/dist/container/index.js +0 -1
  58. package/dist/container/provider.d.ts +0 -1
  59. package/dist/container/provider.js +0 -1
  60. package/dist/container/scope.d.ts +0 -1
  61. package/dist/container/scope.js +0 -1
  62. package/dist/container/token.d.ts +0 -1
  63. package/dist/container/token.js +0 -1
  64. package/dist/context/core/contextAliases.deprecated.d.ts +0 -1
  65. package/dist/context/core/contextAliases.deprecated.js +0 -1
  66. package/dist/context/core/contextKey.key.d.ts +0 -1
  67. package/dist/context/core/contextKey.key.js +4 -3
  68. package/dist/context/core/executionContext.context.d.ts +0 -1
  69. package/dist/context/core/executionContext.context.js +0 -1
  70. package/dist/context/core/index.d.ts +0 -1
  71. package/dist/context/core/index.js +0 -1
  72. package/dist/context/index.d.ts +0 -1
  73. package/dist/context/index.js +0 -1
  74. package/dist/context/provider/contextProvider.provider.d.ts +0 -1
  75. package/dist/context/provider/contextProvider.provider.js +0 -1
  76. package/dist/context/provider/contextStorage.storage.d.ts +0 -1
  77. package/dist/context/provider/contextStorage.storage.js +0 -1
  78. package/dist/context/provider/defaultContextStorage.storage.d.ts +0 -1
  79. package/dist/context/provider/defaultContextStorage.storage.js +0 -1
  80. package/dist/context/provider/index.d.ts +0 -1
  81. package/dist/context/provider/index.js +0 -1
  82. package/dist/context/snapshot/contextSnapshot.snapshot.d.ts +0 -1
  83. package/dist/context/snapshot/contextSnapshot.snapshot.js +0 -1
  84. package/dist/context/snapshot/index.d.ts +0 -1
  85. package/dist/context/snapshot/index.js +0 -1
  86. package/dist/context/values/contextValues.values.d.ts +0 -1
  87. package/dist/context/values/contextValues.values.js +0 -1
  88. package/dist/context/values/index.d.ts +0 -1
  89. package/dist/context/values/index.js +0 -1
  90. package/dist/contracts/adapter.d.ts +0 -1
  91. package/dist/contracts/adapter.js +0 -1
  92. package/dist/contracts/disposable.d.ts +0 -1
  93. package/dist/contracts/disposable.js +0 -1
  94. package/dist/contracts/handler.d.ts +0 -1
  95. package/dist/contracts/handler.js +0 -1
  96. package/dist/contracts/index.d.ts +0 -1
  97. package/dist/contracts/index.js +0 -1
  98. package/dist/errors/contextValueNotFound.error.d.ts +15 -0
  99. package/dist/errors/contextValueNotFound.error.js +23 -0
  100. package/dist/errors/errorCode.code.d.ts +1 -1
  101. package/dist/errors/errorCode.code.js +1 -1
  102. package/dist/errors/exceptions.d.ts +0 -1
  103. package/dist/errors/exceptions.js +0 -1
  104. package/dist/errors/frameworkError.error.d.ts +0 -1
  105. package/dist/errors/frameworkError.error.js +0 -1
  106. package/dist/errors/index.d.ts +1 -1
  107. package/dist/errors/index.js +1 -1
  108. package/dist/index.d.ts +4 -1
  109. package/dist/index.js +16 -1
  110. package/dist/lifecycle/core/index.d.ts +0 -1
  111. package/dist/lifecycle/core/index.js +0 -1
  112. package/dist/lifecycle/core/lifecycle.d.ts +12 -2
  113. package/dist/lifecycle/core/lifecycle.js +12 -2
  114. package/dist/lifecycle/core/lifecycle.rollback.d.ts +0 -1
  115. package/dist/lifecycle/core/lifecycle.rollback.js +0 -1
  116. package/dist/lifecycle/core/lifecycleHook.hook.d.ts +0 -1
  117. package/dist/lifecycle/core/lifecycleHook.hook.js +0 -1
  118. package/dist/lifecycle/core/lifecycleRegistry.registry.d.ts +0 -1
  119. package/dist/lifecycle/core/lifecycleRegistry.registry.js +0 -1
  120. package/dist/lifecycle/index.d.ts +0 -1
  121. package/dist/lifecycle/index.js +0 -1
  122. package/dist/lifecycle/manager/index.d.ts +0 -1
  123. package/dist/lifecycle/manager/index.js +0 -1
  124. package/dist/lifecycle/manager/lifecycleManager.manager.d.ts +0 -1
  125. package/dist/lifecycle/manager/lifecycleManager.manager.js +0 -1
  126. package/dist/lifecycle/scope/index.d.ts +0 -1
  127. package/dist/lifecycle/scope/index.js +0 -1
  128. package/dist/lifecycle/scope/lifecycleScope.scope.d.ts +0 -1
  129. package/dist/lifecycle/scope/lifecycleScope.scope.js +0 -1
  130. package/dist/logging/console/consoleLogger.logger.d.ts +0 -1
  131. package/dist/logging/console/consoleLogger.logger.js +6 -2
  132. package/dist/logging/console/index.d.ts +0 -1
  133. package/dist/logging/console/index.js +0 -1
  134. package/dist/logging/console/loggerFactory.factory.d.ts +0 -1
  135. package/dist/logging/console/loggerFactory.factory.js +0 -1
  136. package/dist/logging/core/index.d.ts +0 -1
  137. package/dist/logging/core/index.js +0 -1
  138. package/dist/logging/core/logEntry.entry.d.ts +0 -1
  139. package/dist/logging/core/logEntry.entry.js +0 -1
  140. package/dist/logging/core/logLevel.level.d.ts +0 -1
  141. package/dist/logging/core/logLevel.level.js +0 -1
  142. package/dist/logging/core/logRedaction.redaction.d.ts +0 -1
  143. package/dist/logging/core/logRedaction.redaction.js +0 -1
  144. package/dist/logging/core/logger.d.ts +7 -2
  145. package/dist/logging/core/logger.js +22 -3
  146. package/dist/logging/core/loggerContext.context.d.ts +0 -1
  147. package/dist/logging/core/loggerContext.context.js +0 -1
  148. package/dist/logging/core/loggerOptions.options.d.ts +6 -3
  149. package/dist/logging/core/loggerOptions.options.js +0 -1
  150. package/dist/logging/index.d.ts +0 -1
  151. package/dist/logging/index.js +0 -1
  152. package/dist/modules/index.d.ts +0 -1
  153. package/dist/modules/index.js +0 -1
  154. package/dist/modules/module.d.ts +0 -1
  155. package/dist/modules/module.js +0 -1
  156. package/dist/modules/moduleContext.context.d.ts +0 -1
  157. package/dist/modules/moduleContext.context.js +0 -1
  158. package/dist/modules/moduleDefinition.definition.d.ts +0 -1
  159. package/dist/modules/moduleDefinition.definition.js +0 -1
  160. package/dist/modules/moduleDependency/index.d.ts +0 -1
  161. package/dist/modules/moduleDependency/index.js +0 -1
  162. package/dist/modules/moduleDependency/moduleDependency.graph.d.ts +0 -1
  163. package/dist/modules/moduleDependency/moduleDependency.graph.js +0 -1
  164. package/dist/modules/moduleDependency/moduleDependency.ordering.d.ts +0 -1
  165. package/dist/modules/moduleDependency/moduleDependency.ordering.js +0 -1
  166. package/dist/modules/moduleDependency/moduleDependency.type.d.ts +0 -1
  167. package/dist/modules/moduleDependency/moduleDependency.type.js +0 -1
  168. package/dist/modules/moduleError/index.d.ts +0 -1
  169. package/dist/modules/moduleError/index.js +0 -1
  170. package/dist/modules/moduleError/moduleError.base.d.ts +0 -1
  171. package/dist/modules/moduleError/moduleError.base.js +0 -1
  172. package/dist/modules/moduleError/moduleError.dependency.d.ts +19 -3
  173. package/dist/modules/moduleError/moduleError.dependency.js +16 -4
  174. package/dist/modules/moduleError/moduleError.helpers.d.ts +0 -1
  175. package/dist/modules/moduleError/moduleError.helpers.js +0 -1
  176. package/dist/modules/moduleError/moduleError.lifecycle.d.ts +0 -1
  177. package/dist/modules/moduleError/moduleError.lifecycle.js +0 -1
  178. package/dist/modules/moduleError/moduleError.registration.d.ts +0 -1
  179. package/dist/modules/moduleError/moduleError.registration.js +0 -1
  180. package/dist/modules/moduleLifecycle/index.d.ts +0 -1
  181. package/dist/modules/moduleLifecycle/index.js +0 -1
  182. package/dist/modules/moduleLifecycle/moduleLifecycle.exclusive.d.ts +25 -0
  183. package/dist/modules/moduleLifecycle/moduleLifecycle.exclusive.js +63 -0
  184. package/dist/modules/moduleLifecycle/moduleLifecycle.lifecycle.d.ts +20 -2
  185. package/dist/modules/moduleLifecycle/moduleLifecycle.lifecycle.js +52 -20
  186. package/dist/modules/moduleLifecycle/moduleLifecycle.stateMachine.d.ts +0 -1
  187. package/dist/modules/moduleLifecycle/moduleLifecycle.stateMachine.js +4 -3
  188. package/dist/modules/moduleLifecycle/moduleLifecycle.type.d.ts +0 -1
  189. package/dist/modules/moduleLifecycle/moduleLifecycle.type.js +0 -1
  190. package/dist/modules/moduleLoader/index.d.ts +0 -1
  191. package/dist/modules/moduleLoader/index.js +0 -1
  192. package/dist/modules/moduleLoader/moduleLoader.loader.d.ts +0 -1
  193. package/dist/modules/moduleLoader/moduleLoader.loader.js +0 -1
  194. package/dist/modules/moduleLoader/moduleLoader.type.d.ts +0 -1
  195. package/dist/modules/moduleLoader/moduleLoader.type.js +0 -1
  196. package/dist/modules/moduleMetadata.metadata.d.ts +0 -1
  197. package/dist/modules/moduleMetadata.metadata.js +0 -1
  198. package/dist/modules/moduleRegistry/index.d.ts +0 -1
  199. package/dist/modules/moduleRegistry/index.js +0 -1
  200. package/dist/modules/moduleRegistry/moduleRegistry.registry.d.ts +0 -1
  201. package/dist/modules/moduleRegistry/moduleRegistry.registry.js +0 -1
  202. package/dist/modules/moduleRegistry/moduleRegistry.type.d.ts +0 -1
  203. package/dist/modules/moduleRegistry/moduleRegistry.type.js +0 -1
  204. package/dist/runtime/index.d.ts +1 -2
  205. package/dist/runtime/index.js +0 -1
  206. package/dist/runtime/runtime.d.ts +18 -2
  207. package/dist/runtime/runtime.js +23 -1
  208. package/dist/runtime/runtimeBootstrap/index.d.ts +0 -1
  209. package/dist/runtime/runtimeBootstrap/index.js +0 -1
  210. package/dist/runtime/runtimeBootstrap/pipeline/index.d.ts +0 -1
  211. package/dist/runtime/runtimeBootstrap/pipeline/index.js +0 -1
  212. package/dist/runtime/runtimeBootstrap/pipeline/runtimeBootstrap.pipeline.d.ts +0 -1
  213. package/dist/runtime/runtimeBootstrap/pipeline/runtimeBootstrap.pipeline.js +0 -1
  214. package/dist/runtime/runtimeBootstrap/runtimeBootstrap.core.d.ts +0 -1
  215. package/dist/runtime/runtimeBootstrap/runtimeBootstrap.core.js +8 -2
  216. package/dist/runtime/runtimeBootstrap/runtimeBootstrap.type.d.ts +0 -1
  217. package/dist/runtime/runtimeBootstrap/runtimeBootstrap.type.js +0 -1
  218. package/dist/runtime/runtimeContext/index.d.ts +0 -1
  219. package/dist/runtime/runtimeContext/index.js +0 -1
  220. package/dist/runtime/runtimeContext/runtimeContext.factory.d.ts +0 -1
  221. package/dist/runtime/runtimeContext/runtimeContext.factory.js +0 -1
  222. package/dist/runtime/runtimeContext/runtimeContext.type.d.ts +0 -1
  223. package/dist/runtime/runtimeContext/runtimeContext.type.js +0 -1
  224. package/dist/runtime/runtimeEnvironment/detection/index.d.ts +0 -1
  225. package/dist/runtime/runtimeEnvironment/detection/index.js +0 -1
  226. package/dist/runtime/runtimeEnvironment/detection/runtimeEnvironment.detection.d.ts +0 -1
  227. package/dist/runtime/runtimeEnvironment/detection/runtimeEnvironment.detection.js +0 -1
  228. package/dist/runtime/runtimeEnvironment/detection/runtimeEnvironment.env.d.ts +0 -1
  229. package/dist/runtime/runtimeEnvironment/detection/runtimeEnvironment.env.js +0 -1
  230. package/dist/runtime/runtimeEnvironment/detection/runtimeEnvironment.os.d.ts +0 -1
  231. package/dist/runtime/runtimeEnvironment/detection/runtimeEnvironment.os.js +0 -1
  232. package/dist/runtime/runtimeEnvironment/index.d.ts +0 -1
  233. package/dist/runtime/runtimeEnvironment/index.js +0 -1
  234. package/dist/runtime/runtimeEnvironment/runtimeEnvironment.core.d.ts +0 -1
  235. package/dist/runtime/runtimeEnvironment/runtimeEnvironment.core.js +0 -1
  236. package/dist/runtime/runtimeEnvironment/runtimeEnvironment.type.d.ts +0 -1
  237. package/dist/runtime/runtimeEnvironment/runtimeEnvironment.type.js +0 -1
  238. package/dist/runtime/runtimeError/index.d.ts +0 -1
  239. package/dist/runtime/runtimeError/index.js +0 -1
  240. package/dist/runtime/runtimeError/runtimeError.base.d.ts +0 -1
  241. package/dist/runtime/runtimeError/runtimeError.base.js +0 -1
  242. package/dist/runtime/runtimeError/runtimeError.lifecycle.d.ts +0 -1
  243. package/dist/runtime/runtimeError/runtimeError.lifecycle.js +0 -1
  244. package/dist/runtime/runtimeError/runtimeError.specialized.d.ts +0 -1
  245. package/dist/runtime/runtimeError/runtimeError.specialized.js +0 -1
  246. package/dist/runtime/runtimeError/runtimeError.type.d.ts +0 -1
  247. package/dist/runtime/runtimeError/runtimeError.type.js +0 -1
  248. package/dist/runtime/runtimeLogger.d.ts +0 -1
  249. package/dist/runtime/runtimeLogger.js +5 -2
  250. package/dist/runtime/runtimeOptions/index.d.ts +0 -1
  251. package/dist/runtime/runtimeOptions/index.js +0 -1
  252. package/dist/runtime/runtimeOptions/runtimeOptions.defaults.d.ts +0 -1
  253. package/dist/runtime/runtimeOptions/runtimeOptions.defaults.js +0 -1
  254. package/dist/runtime/runtimeOptions/runtimeOptions.mode.d.ts +0 -1
  255. package/dist/runtime/runtimeOptions/runtimeOptions.mode.js +0 -1
  256. package/dist/runtime/runtimeOptions/runtimeOptions.resolver.d.ts +0 -1
  257. package/dist/runtime/runtimeOptions/runtimeOptions.resolver.js +0 -1
  258. package/dist/runtime/runtimeOptions/runtimeOptions.type.d.ts +0 -1
  259. package/dist/runtime/runtimeOptions/runtimeOptions.type.js +0 -1
  260. package/dist/runtime/runtimeOptions/runtimeOptions.validation.d.ts +0 -1
  261. package/dist/runtime/runtimeOptions/runtimeOptions.validation.js +0 -1
  262. package/dist/runtime/runtimeShutdown/index.d.ts +0 -1
  263. package/dist/runtime/runtimeShutdown/index.js +0 -1
  264. package/dist/runtime/runtimeShutdown/pipeline/index.d.ts +0 -1
  265. package/dist/runtime/runtimeShutdown/pipeline/index.js +0 -1
  266. package/dist/runtime/runtimeShutdown/pipeline/runtimeShutdown.pipeline.d.ts +0 -1
  267. package/dist/runtime/runtimeShutdown/pipeline/runtimeShutdown.pipeline.js +0 -1
  268. package/dist/runtime/runtimeShutdown/runtimeShutdown.core.d.ts +0 -1
  269. package/dist/runtime/runtimeShutdown/runtimeShutdown.core.js +4 -2
  270. package/dist/runtime/runtimeShutdown/runtimeShutdown.type.d.ts +0 -1
  271. package/dist/runtime/runtimeShutdown/runtimeShutdown.type.js +0 -1
  272. package/dist/runtime/runtimeSignals/index.d.ts +0 -1
  273. package/dist/runtime/runtimeSignals/index.js +0 -1
  274. package/dist/runtime/runtimeSignals/runtimeSignals.d.ts +7 -3
  275. package/dist/runtime/runtimeSignals/runtimeSignals.fatal.d.ts +0 -1
  276. package/dist/runtime/runtimeSignals/runtimeSignals.fatal.js +0 -1
  277. package/dist/runtime/runtimeSignals/runtimeSignals.js +4 -5
  278. package/dist/runtime/runtimeState.state.d.ts +0 -1
  279. package/dist/runtime/runtimeState.state.js +0 -1
  280. package/dist/runtime/runtimeTimeout.d.ts +0 -1
  281. package/dist/runtime/runtimeTimeout.js +0 -1
  282. package/package.json +3 -3
package/README.md CHANGED
@@ -76,6 +76,10 @@ const app = await Application.create({
76
76
 
77
77
  A failed `lifecycle.start()` stops, in reverse order, every participant whose `start()` completed, so a retry starts from the first one again. `dispose()` only reaches participants whose `initialize()` ran.
78
78
 
79
+ ### Names shared with sibling packages
80
+
81
+ `LifecycleState`, `Lifecycle`, `LifecycleManager`, `createRuntime`, `Container` and `ConfigurationManager` are also exported — with different meanings — by `@zudojs/constants`, `@zudojs/lifecycle`, `@zudojs/runtime`, `@zudojs/container` and `@zudojs/config`. This package's `LifecycleState` (`created … running … stopped`) is the state of the core `Lifecycle` participant machine; `@zudojs/constants`' is the component state used by `@zudojs/lifecycle` (`idle … ready … disposed`); `@zudojs/runtime` has its own `RuntimeState`. When two of these packages meet in one file, import the aliases `CoreLifecycleState`, `CoreLifecycle`, `CoreLifecycleManager`, `createCoreRuntime`, `CoreContainer` and `CoreConfigurationManager` instead of renaming at the import.
82
+
79
83
  ## Runtime
80
84
 
81
85
  `createRuntime(dependencies, options)` returns a single-use runtime:
@@ -87,7 +91,8 @@ FAILED is reachable from every non-terminal state via fail() or a failure.
87
91
 
88
92
  - `start()` loads, initializes, and starts modules through the bootstrap pipeline; `getStatus().bootstrap` reports counts, errors, and duration.
89
93
  - `stop()` stops and destroys modules through the shutdown pipeline; `getStatus().shutdown` reports the same.
90
- - `startup.timeoutMs` / `shutdown.timeoutMs` abort the pipeline with a `RuntimeTimeoutError`; the abandoned pipeline can never surface an unhandled rejection. A timed-out bootstrap starts no further phase or module hook; the hook still running finishes, and the runtime then stops and destroys whatever it brought up. `stop()` waits for that teardown.
94
+ - `startup.timeoutMs` / `shutdown.timeoutMs` abort the pipeline with a `RuntimeTimeoutError`; the abandoned pipeline can never surface an unhandled rejection. `startup.timeoutMs` defaults to `0` (no deadline) — set one in production. A timed-out bootstrap starts no further phase or module hook. `stop()` does not wait behind the hook that is still running: it tears down every module that came up and returns; the stuck module stays in its active phase, and if its hook settles later it is stopped and destroyed then (best-effort, recorded on its lifecycle state).
95
+ - Rollback and shutdown only call `onDestroy` on modules whose `onInitialize` was invoked; a module that was never reached (a dependent of the one that failed) is left untouched.
91
96
  - `continueOnInitializeError` / `continueOnStartError` (and the stop/destroy equivalents) make the runtime finish with `success: false` and the failures listed instead of throwing.
92
97
  - Every error the runtime throws extends `RuntimeError` (which itself extends `RuntimeError` from `@zudojs/errors`), so `isRuntimeError()` from either package recognises it.
93
98
  - `runtime.context` is the runtime's immutable `RuntimeExecutionContext` (`executionId` = runtime id, `service` = runtime name, `metadata.runtimeId/runtimeName/runtimeMode/runtimeRole` plus `RuntimeOptions.metadata`); `runtime.timing` holds the state-transition timestamps; `runtime.contextStorage` is the `ContextStorage` the context is established in (`RuntimeDependencies.contextStorage`, default `getDefaultContextStorage()`).
@@ -96,6 +101,10 @@ FAILED is reachable from every non-terminal state via fail() or a failure.
96
101
 
97
102
  When `signals.handleSigint` / `handleSigterm` / `handleSighup` are on (SIGINT and SIGTERM default to on), the runtime registers handlers on start and removes them on stop, failure, or dispose. The first signal triggers a graceful `stop()`. A second signal during shutdown exits the process with `signals.forceExitCode` (default 1); set `signals.forceExitOnSecondSignal: false` to log and ignore it instead. `handleUncaughtException` / `handleUnhandledRejection` mark the runtime failed, stop it, and then exit the process with code 1, because the installed handler suppresses Node's own crash and the process would otherwise end with code 0. `signals.fatalExitTimeout` (default 10000 ms) bounds a shutdown that hangs; set `signals.exitOnFatalError: false` to stop the runtime and keep the process running. The runtime never calls `process.exit()` otherwise.
98
103
 
104
+ An `Application` follows a stop its runtime started on its own (`runtime.onStateChange(listener)` reports every transition): after a signal it moves through `stopping` to `stopped` and stops its lifecycle participants; after a fatal error it ends `failed`. `Application.stop()` is single-flight, so a concurrent call joins the run in progress. `signalTarget` accepts `process` or any `EventEmitter` without a cast.
105
+
106
+ Diagnostics log entries carry `environment` (the runtime mode: development/test/production), `engine` (the JavaScript engine) and, for the start entries, the phase about to run.
107
+
99
108
  ## Modules
100
109
 
101
110
  Modules implement the `Module` contract and are driven by `ModuleLifecycleManager` in dependency order:
@@ -125,8 +134,10 @@ onInitialize → onReady → onShutdown → onDestroy
125
134
  - `logger.child({ moduleId })` merges the context into every entry it emits; `LoggerOptions.context` is attached to every entry.
126
135
  - `LoggerOptions.contextStorage` makes the logger merge `executionId`, `correlationId`, `traceId`, `spanId`, and `runtimeId` from the active execution context beneath its own context (explicit values win). `createApplication` sets it on the logger it creates.
127
136
  - An unknown `level` throws `InvalidArgumentError` at construction rather than silently disabling logging.
128
- - Error causes are serialised recursively with a depth limit; `redact` (see `createLogRedactor()`) is applied to context and error details.
137
+ - Error causes are serialised recursively with a depth limit. Sensitive keys (`password`, `secret`, `token`, `apiKey`, `authorization`, ...) in context and error details are redacted **by default** (`createLogRedactor()`); pass `redact: false` to log them in clear, or your own hook to replace the default. Child loggers inherit the setting.
138
+ - `logger.error(message, error, context?)` also accepts the `@zudojs/logger` convention `logger.error(message, context)`: a plain object in the second position with no third argument is logged as context. To log a plain object as the error, pass a third argument.
129
139
  - `trace` output goes through `console.debug`, so the structured-output invariant holds.
140
+ - `ContextValues.require(key)` throws `ContextValueNotFoundError` (`CORE_CONTEXT_VALUE_NOT_FOUND`) rather than a bare `Error`.
130
141
 
131
142
  ## Execution context
132
143
 
@@ -28,12 +28,21 @@ export interface ApplicationOptions {
28
28
  * inside the runtime's execution context (`runtime.contextStorage`
29
29
  * / `runtime.context`), so lifecycle participants observe the same
30
30
  * context as module hooks.
31
+ *
32
+ * A stop the runtime starts on its own — a SIGTERM handled by its
33
+ * signal manager, or a fatal error — is followed: the application
34
+ * moves through `stopping` to `stopped` (or `failed`) and its
35
+ * participants are stopped too. Previously the runtime reported
36
+ * `stopped` while the application stayed `running` with its
37
+ * participants still up.
31
38
  */
32
39
  export declare class Application {
33
40
  private readonly context?;
34
41
  private readonly lifecycle?;
35
42
  private readonly runtimeFactory?;
36
43
  private runtime?;
44
+ private unobserveRuntime?;
45
+ private stopPromise?;
37
46
  private _state;
38
47
  private constructor();
39
48
  static create(options?: ApplicationOptions): Promise<Application>;
@@ -46,7 +55,14 @@ export declare class Application {
46
55
  get applicationRuntime(): Runtime | undefined;
47
56
  initialize(): Promise<void>;
48
57
  start(): Promise<void>;
58
+ /**
59
+ * Stops the runtime, then the lifecycle participants.
60
+ *
61
+ * Single-flight: a second call while stopping joins the first
62
+ * instead of throwing `InvalidStateError`.
63
+ */
49
64
  stop(): Promise<void>;
65
+ private performStop;
50
66
  /**
51
67
  * Stops the application and releases lifecycle resources. The
52
68
  * application cannot be restarted afterwards.
@@ -62,5 +78,17 @@ export declare class Application {
62
78
  * unused, or a new one from the factory after a stop/failure.
63
79
  */
64
80
  private ensureRuntime;
81
+ /**
82
+ * Follows state transitions of the runtime being started.
83
+ */
84
+ private observe;
85
+ /**
86
+ * Reacts to a stop or failure the runtime started on its own while
87
+ * the application was running. Deferred to a microtask: the runtime
88
+ * records its in-flight stop promise only after the synchronous part
89
+ * of `stop()` returns, so calling `stop()` from inside the listener
90
+ * would start a second, overlapping shutdown.
91
+ */
92
+ private onRuntimeTransition;
93
+ private followRuntime;
65
94
  }
66
- //# sourceMappingURL=application.d.ts.map
@@ -11,12 +11,21 @@ import { InvalidStateError } from "../errors/exceptions.js";
11
11
  * inside the runtime's execution context (`runtime.contextStorage`
12
12
  * / `runtime.context`), so lifecycle participants observe the same
13
13
  * context as module hooks.
14
+ *
15
+ * A stop the runtime starts on its own — a SIGTERM handled by its
16
+ * signal manager, or a fatal error — is followed: the application
17
+ * moves through `stopping` to `stopped` (or `failed`) and its
18
+ * participants are stopped too. Previously the runtime reported
19
+ * `stopped` while the application stayed `running` with its
20
+ * participants still up.
14
21
  */
15
22
  export class Application {
16
23
  context;
17
24
  lifecycle;
18
25
  runtimeFactory;
19
26
  runtime;
27
+ unobserveRuntime;
28
+ stopPromise;
20
29
  _state;
21
30
  constructor(options = {}) {
22
31
  this.context = options.context;
@@ -74,6 +83,7 @@ export class Application {
74
83
  // Resolve the runtime first so a refused restart leaves the
75
84
  // application untouched.
76
85
  const runtime = this.ensureRuntime();
86
+ this.observe(runtime);
77
87
  this._state = "starting";
78
88
  try {
79
89
  await this.inRuntimeContext(runtime, async () => {
@@ -87,15 +97,33 @@ export class Application {
87
97
  throw error;
88
98
  }
89
99
  }
100
+ /**
101
+ * Stops the runtime, then the lifecycle participants.
102
+ *
103
+ * Single-flight: a second call while stopping joins the first
104
+ * instead of throwing `InvalidStateError`.
105
+ */
90
106
  async stop() {
91
107
  if (this._state === "stopped" ||
92
108
  this._state === "created" ||
93
109
  this._state === "initialized") {
94
110
  return;
95
111
  }
112
+ if (this._state === "stopping" && this.stopPromise) {
113
+ return this.stopPromise;
114
+ }
96
115
  if (this._state !== "running" && this._state !== "failed") {
97
116
  throw new InvalidStateError(`Application cannot stop from state "${this._state}".`, { state: this._state });
98
117
  }
118
+ this.stopPromise = this.performStop();
119
+ try {
120
+ await this.stopPromise;
121
+ }
122
+ finally {
123
+ this.stopPromise = undefined;
124
+ }
125
+ }
126
+ async performStop() {
99
127
  this._state = "stopping";
100
128
  const errors = [];
101
129
  const runtime = this.runtime;
@@ -180,5 +208,46 @@ export class Application {
180
208
  return undefined;
181
209
  throw new InvalidStateError(`Application runtime is "${current.state}" and cannot be restarted; supply a runtime factory to enable restart.`, { runtimeState: current.state });
182
210
  }
211
+ /**
212
+ * Follows state transitions of the runtime being started.
213
+ */
214
+ observe(runtime) {
215
+ this.unobserveRuntime?.();
216
+ this.unobserveRuntime = runtime?.onStateChange?.((transition) => {
217
+ this.onRuntimeTransition(transition);
218
+ });
219
+ }
220
+ /**
221
+ * Reacts to a stop or failure the runtime started on its own while
222
+ * the application was running. Deferred to a microtask: the runtime
223
+ * records its in-flight stop promise only after the synchronous part
224
+ * of `stop()` returns, so calling `stop()` from inside the listener
225
+ * would start a second, overlapping shutdown.
226
+ */
227
+ onRuntimeTransition(transition) {
228
+ if (this._state !== "running")
229
+ return;
230
+ if (transition.to !== RuntimeState.STOPPING &&
231
+ transition.to !== RuntimeState.FAILED) {
232
+ return;
233
+ }
234
+ queueMicrotask(() => {
235
+ void this.followRuntime(transition.to);
236
+ });
237
+ }
238
+ async followRuntime(target) {
239
+ if (this._state !== "running")
240
+ return;
241
+ try {
242
+ await this.stop();
243
+ }
244
+ catch {
245
+ /* stop() has already recorded the failure in the state. */
246
+ }
247
+ // Read through the getter: the guard above narrowed `this._state`
248
+ // to "running" and stop() has changed it since.
249
+ if (target === RuntimeState.FAILED && this.state === "stopped") {
250
+ this._state = "failed";
251
+ }
252
+ }
183
253
  }
184
- //# sourceMappingURL=application.js.map
@@ -63,4 +63,3 @@ export declare class ApplicationContext {
63
63
  */
64
64
  getContextStorage(): ContextStorage;
65
65
  }
66
- //# sourceMappingURL=applicationContext.context.d.ts.map
@@ -60,4 +60,3 @@ export class ApplicationContext {
60
60
  return this.contextStorage;
61
61
  }
62
62
  }
63
- //# sourceMappingURL=applicationContext.context.js.map
@@ -2,4 +2,3 @@
2
2
  * Represents the lifecycle state of a Zudojs application.
3
3
  */
4
4
  export type ApplicationState = "created" | "initializing" | "initialized" | "starting" | "running" | "stopping" | "stopped" | "failed";
5
- //# sourceMappingURL=applicationState.state.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=applicationState.state.js.map
@@ -75,4 +75,3 @@ export interface CreateApplicationOptions {
75
75
  * restarted (stop() then start()) with a fresh runtime each time.
76
76
  */
77
77
  export declare function createApplication(options?: CreateApplicationOptions): Promise<Application>;
78
- //# sourceMappingURL=createApplication.d.ts.map
@@ -106,4 +106,3 @@ export async function createApplication(options = {}) {
106
106
  }
107
107
  return application;
108
108
  }
109
- //# sourceMappingURL=createApplication.js.map
@@ -8,4 +8,3 @@ export * from "./application.js";
8
8
  export * from "./applicationContext.context.js";
9
9
  export * from "./applicationState.state.js";
10
10
  export * from "./createApplication.js";
11
- //# sourceMappingURL=index.d.ts.map
@@ -8,4 +8,3 @@ export * from "./application.js";
8
8
  export * from "./applicationContext.context.js";
9
9
  export * from "./applicationState.state.js";
10
10
  export * from "./createApplication.js";
11
- //# sourceMappingURL=index.js.map
@@ -107,4 +107,3 @@ export declare class ConfigurationManager {
107
107
  }
108
108
  /** Creates a ConfigurationManager. */
109
109
  export declare function createConfigurationManager(options?: ConfigurationManagerOptions): ConfigurationManager;
110
- //# sourceMappingURL=configurationManager.manager.d.ts.map
@@ -251,4 +251,3 @@ export class ConfigurationManager {
251
251
  export function createConfigurationManager(options = {}) {
252
252
  return new ConfigurationManager(options);
253
253
  }
254
- //# sourceMappingURL=configurationManager.manager.js.map
@@ -95,4 +95,3 @@ export declare class Configuration {
95
95
  }
96
96
  /** Creates a Configuration instance. */
97
97
  export declare function createConfiguration(options?: ConfigurationOptions): Configuration;
98
- //# sourceMappingURL=configuration.d.ts.map
@@ -400,4 +400,3 @@ export class Configuration {
400
400
  export function createConfiguration(options = {}) {
401
401
  return new Configuration(options);
402
402
  }
403
- //# sourceMappingURL=configuration.js.map
@@ -42,4 +42,3 @@ export interface ConfigurationKey<T> {
42
42
  * type the caller expects it to have.
43
43
  */
44
44
  export declare function createConfigurationKey<T>(path: string): ConfigurationKey<T>;
45
- //# sourceMappingURL=configurationKey.key.d.ts.map
@@ -13,4 +13,3 @@ export function createConfigurationKey(path) {
13
13
  id: Symbol(normalizedPath),
14
14
  });
15
15
  }
16
- //# sourceMappingURL=configurationKey.key.js.map
@@ -14,4 +14,3 @@ export declare function normalizeConfigurationPath(path: string): string;
14
14
  * Normalizes a configuration path and rejects empty results.
15
15
  */
16
16
  export declare function requireConfigurationPath(path: string): string;
17
- //# sourceMappingURL=configurationPath.path.d.ts.map
@@ -30,4 +30,3 @@ export function requireConfigurationPath(path) {
30
30
  }
31
31
  return normalized;
32
32
  }
33
- //# sourceMappingURL=configurationPath.path.js.map
@@ -111,4 +111,3 @@ export declare function createConfigurationSource(options: ConfigurationSourceOp
111
111
  * take precedence when values are merged.
112
112
  */
113
113
  export declare function sortConfigurationSources(sources: readonly ConfigurationSource[]): ConfigurationSource[];
114
- //# sourceMappingURL=configurationSource.source.d.ts.map
@@ -52,4 +52,3 @@ export function createConfigurationSource(options) {
52
52
  export function sortConfigurationSources(sources) {
53
53
  return [...sources].sort((a, b) => a.priority - b.priority);
54
54
  }
55
- //# sourceMappingURL=configurationSource.source.js.map
@@ -15,4 +15,3 @@ export type { ConfigurationKey } from "./configurationKey.key.js";
15
15
  export { normalizeConfigurationPath, requireConfigurationPath, } from "./configurationPath.path.js";
16
16
  export { BaseConfigurationSource, createConfigurationSource, sortConfigurationSources, } from "./configurationSource.source.js";
17
17
  export type { ConfigurationSource, ConfigurationSourceType, ConfigurationSourceEntry, ConfigurationSourceOptions, } from "./configurationSource.source.js";
18
- //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,3 @@ export { Configuration, createConfiguration } from "./configuration.js";
7
7
  export { createConfigurationKey } from "./configurationKey.key.js";
8
8
  export { normalizeConfigurationPath, requireConfigurationPath, } from "./configurationPath.path.js";
9
9
  export { BaseConfigurationSource, createConfigurationSource, sortConfigurationSources, } from "./configurationSource.source.js";
10
- //# sourceMappingURL=index.js.map
@@ -116,4 +116,3 @@ export declare class ConfigurationConflictError extends ConfigurationError {
116
116
  readonly sources: readonly string[];
117
117
  constructor(path: string, sources: readonly string[]);
118
118
  }
119
- //# sourceMappingURL=configurationError.error.d.ts.map
@@ -193,4 +193,3 @@ function createSchemaErrorMessage(path, issues) {
193
193
  .join("; ");
194
194
  return `Configuration "${path}" failed schema validation: ${details}`;
195
195
  }
196
- //# sourceMappingURL=configurationError.error.js.map
@@ -124,4 +124,3 @@ export declare function createConfigurationRedactor(options?: ConfigurationRedac
124
124
  * Redacts configuration using the default redaction rules.
125
125
  */
126
126
  export declare function redactConfiguration(configuration: Configuration): RedactedConfiguration;
127
- //# sourceMappingURL=configurationRedactor.redactor.d.ts.map
@@ -251,4 +251,3 @@ function normalizePath(path) {
251
251
  function normalizePattern(pattern) {
252
252
  return pattern.trim().replace(/\s+/g, "").toLowerCase();
253
253
  }
254
- //# sourceMappingURL=configurationRedactor.redactor.js.map
@@ -8,4 +8,3 @@ export { describeConfigurationCause } from "./configurationError.error.js";
8
8
  export type { ConfigurationErrorIssue } from "./configurationError.error.js";
9
9
  export { ConfigurationRedactor, createConfigurationRedactor, redactConfiguration, DEFAULT_SENSITIVE_PATTERNS, DEFAULT_REDACTION_VALUE, } from "./configurationRedactor.redactor.js";
10
10
  export type { ConfigurationRedactorOptions, ConfigurationSensitivity, RedactedConfiguration, } from "./configurationRedactor.redactor.js";
11
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@
6
6
  export { ConfigurationError, ConfigurationSourceError, ConfigurationMissingError, ConfigurationPathError, ConfigurationTypeError, ConfigurationSchemaError, ConfigurationConflictError, } from "./configurationError.error.js";
7
7
  export { describeConfigurationCause } from "./configurationError.error.js";
8
8
  export { ConfigurationRedactor, createConfigurationRedactor, redactConfiguration, DEFAULT_SENSITIVE_PATTERNS, DEFAULT_REDACTION_VALUE, } from "./configurationRedactor.redactor.js";
9
- //# sourceMappingURL=index.js.map
@@ -171,4 +171,3 @@ export declare function createConfigurationReloadingEvent(state: ConfigurationMa
171
171
  * Creates a configuration reloaded event.
172
172
  */
173
173
  export declare function createConfigurationReloadedEvent(state: ConfigurationManagerState, previousConfiguration: Configuration, configuration: Configuration, load: ConfigurationLoadResult, validation: ConfigurationValidationReport): ConfigurationReloadedEvent;
174
- //# sourceMappingURL=configurationEvents.events.d.ts.map
@@ -96,4 +96,3 @@ export function createConfigurationReloadedEvent(state, previousConfiguration, c
96
96
  validation,
97
97
  };
98
98
  }
99
- //# sourceMappingURL=configurationEvents.events.js.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  export { ConfigurationEventType, createConfigurationEventBase, createConfigurationInitializingEvent, createConfigurationLoadedEvent, createConfigurationValidatedEvent, createConfigurationReadyEvent, createConfigurationFailedEvent, createConfigurationReloadingEvent, createConfigurationReloadedEvent, } from "./configurationEvents.events.js";
7
7
  export type { ConfigurationEvent, ConfigurationInitializingEvent, ConfigurationLoadedEvent, ConfigurationValidatedEvent, ConfigurationReadyEvent, ConfigurationFailedEvent, ConfigurationReloadingEvent, ConfigurationReloadedEvent, ConfigurationLifecycleEvent, ConfigurationEventTypeValue, ConfigurationEventListener, } from "./configurationEvents.events.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Configuration lifecycle events.
5
5
  */
6
6
  export { ConfigurationEventType, createConfigurationEventBase, createConfigurationInitializingEvent, createConfigurationLoadedEvent, createConfigurationValidatedEvent, createConfigurationReadyEvent, createConfigurationFailedEvent, createConfigurationReloadingEvent, createConfigurationReloadedEvent, } from "./configurationEvents.events.js";
7
- //# sourceMappingURL=index.js.map
@@ -27,4 +27,3 @@ export type { ConfigurationManagerOptions, ConfigurationManagerResult, Configura
27
27
  * Configuration lifecycle events.
28
28
  */
29
29
  export * from "./events/index.js";
30
- //# sourceMappingURL=index.d.ts.map
@@ -26,4 +26,3 @@ export { ConfigurationManager, ConfigurationManagerState, createConfigurationMan
26
26
  * Configuration lifecycle events.
27
27
  */
28
28
  export * from "./events/index.js";
29
- //# sourceMappingURL=index.js.map
@@ -148,4 +148,3 @@ export declare class ConfigurationLoadError extends ConfigurationSourceError {
148
148
  * Creates a ConfigurationLoader.
149
149
  */
150
150
  export declare function createConfigurationLoader(options?: ConfigurationLoaderOptions): ConfigurationLoader;
151
- //# sourceMappingURL=configurationLoader.loader.d.ts.map
@@ -233,4 +233,3 @@ export class ConfigurationLoadError extends ConfigurationSourceError {
233
233
  export function createConfigurationLoader(options = {}) {
234
234
  return new ConfigurationLoader(options);
235
235
  }
236
- //# sourceMappingURL=configurationLoader.loader.js.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  export { ConfigurationLoader, ConfigurationLoadError, createConfigurationLoader, applyConfigurationSourceEntries, } from "./configurationLoader.loader.js";
7
7
  export type { ConfigurationLoaderOptions, ConfigurationLoadResult, } from "./configurationLoader.loader.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Configuration loading pipeline.
5
5
  */
6
6
  export { ConfigurationLoader, ConfigurationLoadError, createConfigurationLoader, applyConfigurationSourceEntries, } from "./configurationLoader.loader.js";
7
- //# sourceMappingURL=index.js.map
@@ -152,4 +152,3 @@ export declare class DefaultConfigurationProvider implements ConfigurationProvid
152
152
  * Creates the default configuration provider.
153
153
  */
154
154
  export declare function createConfigurationProvider(options?: ConfigurationProviderOptions): ConfigurationProvider;
155
- //# sourceMappingURL=configurationProvider.provider.d.ts.map
@@ -136,4 +136,3 @@ export class DefaultConfigurationProvider {
136
136
  export function createConfigurationProvider(options = {}) {
137
137
  return new DefaultConfigurationProvider(options);
138
138
  }
139
- //# sourceMappingURL=configurationProvider.provider.js.map
@@ -140,4 +140,3 @@ export declare class ConfigurationRegistry {
140
140
  * Creates a new ConfigurationRegistry.
141
141
  */
142
142
  export declare function createConfigurationRegistry(): ConfigurationRegistry;
143
- //# sourceMappingURL=configurationRegistry.registry.d.ts.map
@@ -155,4 +155,3 @@ export class ConfigurationRegistry {
155
155
  export function createConfigurationRegistry() {
156
156
  return new ConfigurationRegistry();
157
157
  }
158
- //# sourceMappingURL=configurationRegistry.registry.js.map
@@ -7,4 +7,3 @@ export { ConfigurationRegistry, createConfigurationRegistry, } from "./configura
7
7
  export type { ConfigurationSection, ConfigurationSectionOptions, } from "./configurationRegistry.registry.js";
8
8
  export { DefaultConfigurationProvider, createConfigurationProvider, } from "./configurationProvider.provider.js";
9
9
  export type { ConfigurationProvider, ConfigurationProviderOptions, } from "./configurationProvider.provider.js";
10
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  export { ConfigurationRegistry, createConfigurationRegistry, } from "./configurationRegistry.registry.js";
7
7
  export { DefaultConfigurationProvider, createConfigurationProvider, } from "./configurationProvider.provider.js";
8
- //# sourceMappingURL=index.js.map
@@ -152,4 +152,3 @@ export declare class ConfigurationSchemaRegistry {
152
152
  * Creates a schema registry.
153
153
  */
154
154
  export declare function createConfigurationSchemaRegistry(): ConfigurationSchemaRegistry;
155
- //# sourceMappingURL=configurationSchema.schema.d.ts.map
@@ -131,4 +131,3 @@ export class ConfigurationSchemaRegistry {
131
131
  export function createConfigurationSchemaRegistry() {
132
132
  return new ConfigurationSchemaRegistry();
133
133
  }
134
- //# sourceMappingURL=configurationSchema.schema.js.map
@@ -91,4 +91,3 @@ export declare function applyConfigurationSchemaDefaults(configuration: Configur
91
91
  * Validates one configuration schema.
92
92
  */
93
93
  export declare function validateSchema<T>(configuration: Configuration, schema: ConfigurationSchema<T>): Promise<ConfigurationValidationResult<T>>;
94
- //# sourceMappingURL=configurationValidation.validator.d.ts.map
@@ -155,4 +155,3 @@ function createValidationErrorMessage(issues) {
155
155
  .join("; ");
156
156
  return `Configuration validation failed: ${formatted}`;
157
157
  }
158
- //# sourceMappingURL=configurationValidation.validator.js.map
@@ -7,4 +7,3 @@ export { createConfigurationSchema, ConfigurationSchemaRegistry, createConfigura
7
7
  export type { ConfigurationValidationResult, ConfigurationValidationIssue, ConfigurationValidationContext, ConfigurationValidator, ConfigurationSchema, ConfigurationSchemaOptions, } from "./configurationSchema.schema.js";
8
8
  export { ConfigurationValidationError, validateConfiguration, validateConfigurationOrThrow, validateSchema, applyConfigurationSchemaDefaults, } from "./configurationValidation.validator.js";
9
9
  export type { ConfigurationValidationReport, ConfigurationValidationOptions, } from "./configurationValidation.validator.js";
10
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  export { createConfigurationSchema, ConfigurationSchemaRegistry, createConfigurationSchemaRegistry, } from "./configurationSchema.schema.js";
7
7
  export { ConfigurationValidationError, validateConfiguration, validateConfigurationOrThrow, validateSchema, applyConfigurationSchemaDefaults, } from "./configurationValidation.validator.js";
8
- //# sourceMappingURL=index.js.map
@@ -88,4 +88,3 @@ export declare class ContainerScope {
88
88
  resolve<T>(token: Token<T>): T;
89
89
  has<T>(token: Token<T>): boolean;
90
90
  }
91
- //# sourceMappingURL=container.d.ts.map
@@ -170,4 +170,3 @@ function isProvider(value) {
170
170
  return typeof value.useClass === "function";
171
171
  return false;
172
172
  }
173
- //# sourceMappingURL=container.js.map
@@ -18,4 +18,3 @@ import type { Token } from "./token.js";
18
18
  * @throws DependencyResolutionError when either rule is broken.
19
19
  */
20
20
  export declare function assertScopedResolvable(token: Token<unknown>, captor: Token<unknown> | undefined, scopeKey: object | undefined, chain: readonly Token<unknown>[]): void;
21
- //# sourceMappingURL=container.lifetime.d.ts.map
@@ -36,4 +36,3 @@ function describe(token) {
36
36
  return token.description ?? token.toString();
37
37
  return String(token);
38
38
  }
39
- //# sourceMappingURL=container.lifetime.js.map
@@ -5,4 +5,3 @@ export { Container, ContainerScope, type ContainerOptions, } from "./container.j
5
5
  export { createToken, type Token, type ConstructorToken } from "./token.js";
6
6
  export { type Provider, type ClassProvider, type FactoryProvider, type ValueProvider, type Constructor, } from "./provider.js";
7
7
  export { type Scope } from "./scope.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@ export { Container, ContainerScope, } from "./container.js";
5
5
  export { createToken } from "./token.js";
6
6
  export {} from "./provider.js";
7
7
  export {} from "./scope.js";
8
- //# sourceMappingURL=index.js.map
@@ -25,4 +25,3 @@ export type Constructor<T> = new (...args: never[]) => T;
25
25
  * A dependency provider understood by the Zudojs container.
26
26
  */
27
27
  export type Provider<T> = ClassProvider<T> | FactoryProvider<T> | ValueProvider<T>;
28
- //# sourceMappingURL=provider.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=provider.js.map
@@ -24,4 +24,3 @@ export type Scope =
24
24
  * A new instance every time the dependency is resolved.
25
25
  */
26
26
  | "transient";
27
- //# sourceMappingURL=scope.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=scope.js.map
@@ -15,4 +15,3 @@ export type ConstructorToken<T> = new (...args: unknown[]) => T;
15
15
  * exist at runtime.
16
16
  */
17
17
  export declare function createToken<T = unknown>(description: string): Token<T>;
18
- //# sourceMappingURL=token.d.ts.map
@@ -7,4 +7,3 @@
7
7
  export function createToken(description) {
8
8
  return Symbol(description);
9
9
  }
10
- //# sourceMappingURL=token.js.map
@@ -29,4 +29,3 @@ export type CreateContextOptions = CreateExecutionContextInput;
29
29
  * @deprecated Use createExecutionContext.
30
30
  */
31
31
  export declare const createContext: typeof createExecutionContext;
32
- //# sourceMappingURL=contextAliases.deprecated.d.ts.map
@@ -3,4 +3,3 @@ import { createExecutionContext } from "./executionContext.context.js";
3
3
  * @deprecated Use createExecutionContext.
4
4
  */
5
5
  export const createContext = createExecutionContext;
6
- //# sourceMappingURL=contextAliases.deprecated.js.map
@@ -57,4 +57,3 @@ export declare function hasContextValue<T>(store: ContextValueStore, key: Contex
57
57
  * Removes a context value.
58
58
  */
59
59
  export declare function deleteContextValue<T>(store: ContextValueStore, key: ContextKey<T>): boolean;
60
- //# sourceMappingURL=contextKey.key.d.ts.map