@venizia/ignis-atlas 0.1.0-1

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 (436) hide show
  1. package/LICENSE.md +104 -0
  2. package/README.md +144 -0
  3. package/dist/cjs/cli/modes.d.ts +29 -0
  4. package/dist/cjs/cli/modes.d.ts.map +1 -0
  5. package/dist/cjs/cli/modes.js +70 -0
  6. package/dist/cjs/cli/modes.js.map +1 -0
  7. package/dist/cjs/cli.d.ts +3 -0
  8. package/dist/cjs/cli.d.ts.map +1 -0
  9. package/dist/cjs/cli.js +60 -0
  10. package/dist/cjs/cli.js.map +1 -0
  11. package/dist/cjs/common/constants.d.ts +22 -0
  12. package/dist/cjs/common/constants.d.ts.map +1 -0
  13. package/dist/cjs/common/constants.js +32 -0
  14. package/dist/cjs/common/constants.js.map +1 -0
  15. package/dist/cjs/common/index.d.ts +3 -0
  16. package/dist/cjs/common/index.d.ts.map +1 -0
  17. package/dist/cjs/common/index.js +19 -0
  18. package/dist/cjs/common/index.js.map +1 -0
  19. package/dist/cjs/common/logger.d.ts +21 -0
  20. package/dist/cjs/common/logger.d.ts.map +1 -0
  21. package/dist/cjs/common/logger.js +50 -0
  22. package/dist/cjs/common/logger.js.map +1 -0
  23. package/dist/cjs/common/types.d.ts +5 -0
  24. package/dist/cjs/common/types.d.ts.map +1 -0
  25. package/dist/cjs/common/types.js +3 -0
  26. package/dist/cjs/common/types.js.map +1 -0
  27. package/dist/cjs/corpus/chunker.d.ts +12 -0
  28. package/dist/cjs/corpus/chunker.d.ts.map +1 -0
  29. package/dist/cjs/corpus/chunker.js +298 -0
  30. package/dist/cjs/corpus/chunker.js.map +1 -0
  31. package/dist/cjs/corpus/common/index.d.ts +2 -0
  32. package/dist/cjs/corpus/common/index.d.ts.map +1 -0
  33. package/dist/cjs/corpus/common/index.js +18 -0
  34. package/dist/cjs/corpus/common/index.js.map +1 -0
  35. package/dist/cjs/corpus/common/types.d.ts +37 -0
  36. package/dist/cjs/corpus/common/types.d.ts.map +1 -0
  37. package/dist/cjs/corpus/common/types.js +3 -0
  38. package/dist/cjs/corpus/common/types.js.map +1 -0
  39. package/dist/cjs/corpus/frontmatter.d.ts +13 -0
  40. package/dist/cjs/corpus/frontmatter.d.ts.map +1 -0
  41. package/dist/cjs/corpus/frontmatter.js +31 -0
  42. package/dist/cjs/corpus/frontmatter.js.map +1 -0
  43. package/dist/cjs/corpus/index.d.ts +6 -0
  44. package/dist/cjs/corpus/index.d.ts.map +1 -0
  45. package/dist/cjs/corpus/index.js +22 -0
  46. package/dist/cjs/corpus/index.js.map +1 -0
  47. package/dist/cjs/corpus/loader.d.ts +16 -0
  48. package/dist/cjs/corpus/loader.d.ts.map +1 -0
  49. package/dist/cjs/corpus/loader.js +72 -0
  50. package/dist/cjs/corpus/loader.js.map +1 -0
  51. package/dist/cjs/corpus/roots.d.ts +9 -0
  52. package/dist/cjs/corpus/roots.d.ts.map +1 -0
  53. package/dist/cjs/corpus/roots.js +30 -0
  54. package/dist/cjs/corpus/roots.js.map +1 -0
  55. package/dist/cjs/index.d.ts +2 -0
  56. package/dist/cjs/index.d.ts.map +1 -0
  57. package/dist/cjs/index.js +18 -0
  58. package/dist/cjs/index.js.map +1 -0
  59. package/dist/cjs/protocol/common/constants.d.ts +9 -0
  60. package/dist/cjs/protocol/common/constants.d.ts.map +1 -0
  61. package/dist/cjs/protocol/common/constants.js +13 -0
  62. package/dist/cjs/protocol/common/constants.js.map +1 -0
  63. package/dist/cjs/protocol/common/index.d.ts +4 -0
  64. package/dist/cjs/protocol/common/index.d.ts.map +1 -0
  65. package/dist/cjs/protocol/common/index.js +20 -0
  66. package/dist/cjs/protocol/common/index.js.map +1 -0
  67. package/dist/cjs/protocol/common/rpc-error.d.ts +9 -0
  68. package/dist/cjs/protocol/common/rpc-error.d.ts.map +1 -0
  69. package/dist/cjs/protocol/common/rpc-error.js +12 -0
  70. package/dist/cjs/protocol/common/rpc-error.js.map +1 -0
  71. package/dist/cjs/protocol/common/types.d.ts +32 -0
  72. package/dist/cjs/protocol/common/types.d.ts.map +1 -0
  73. package/dist/cjs/protocol/common/types.js +3 -0
  74. package/dist/cjs/protocol/common/types.js.map +1 -0
  75. package/dist/cjs/protocol/index.d.ts +3 -0
  76. package/dist/cjs/protocol/index.d.ts.map +1 -0
  77. package/dist/cjs/protocol/index.js +19 -0
  78. package/dist/cjs/protocol/index.js.map +1 -0
  79. package/dist/cjs/protocol/transport.d.ts +28 -0
  80. package/dist/cjs/protocol/transport.d.ts.map +1 -0
  81. package/dist/cjs/protocol/transport.js +155 -0
  82. package/dist/cjs/protocol/transport.js.map +1 -0
  83. package/dist/cjs/search/common/constants.d.ts +23 -0
  84. package/dist/cjs/search/common/constants.d.ts.map +1 -0
  85. package/dist/cjs/search/common/constants.js +56 -0
  86. package/dist/cjs/search/common/constants.js.map +1 -0
  87. package/dist/cjs/search/common/index.d.ts +3 -0
  88. package/dist/cjs/search/common/index.d.ts.map +1 -0
  89. package/dist/cjs/search/common/index.js +19 -0
  90. package/dist/cjs/search/common/index.js.map +1 -0
  91. package/dist/cjs/search/common/types.d.ts +18 -0
  92. package/dist/cjs/search/common/types.d.ts.map +1 -0
  93. package/dist/cjs/search/common/types.js +3 -0
  94. package/dist/cjs/search/common/types.js.map +1 -0
  95. package/dist/cjs/search/index.d.ts +4 -0
  96. package/dist/cjs/search/index.d.ts.map +1 -0
  97. package/dist/cjs/search/index.js +20 -0
  98. package/dist/cjs/search/index.js.map +1 -0
  99. package/dist/cjs/search/planner.d.ts +13 -0
  100. package/dist/cjs/search/planner.d.ts.map +1 -0
  101. package/dist/cjs/search/planner.js +58 -0
  102. package/dist/cjs/search/planner.js.map +1 -0
  103. package/dist/cjs/search/store.d.ts +37 -0
  104. package/dist/cjs/search/store.d.ts.map +1 -0
  105. package/dist/cjs/search/store.js +141 -0
  106. package/dist/cjs/search/store.js.map +1 -0
  107. package/dist/cjs/server/freshness.d.ts +40 -0
  108. package/dist/cjs/server/freshness.d.ts.map +1 -0
  109. package/dist/cjs/server/freshness.js +85 -0
  110. package/dist/cjs/server/freshness.js.map +1 -0
  111. package/dist/cjs/server.d.ts +12 -0
  112. package/dist/cjs/server.d.ts.map +1 -0
  113. package/dist/cjs/server.js +65 -0
  114. package/dist/cjs/server.js.map +1 -0
  115. package/dist/cjs/tools/common/index.d.ts +2 -0
  116. package/dist/cjs/tools/common/index.d.ts.map +1 -0
  117. package/dist/cjs/tools/common/index.js +18 -0
  118. package/dist/cjs/tools/common/index.js.map +1 -0
  119. package/dist/cjs/tools/common/schemas.d.ts +23 -0
  120. package/dist/cjs/tools/common/schemas.d.ts.map +1 -0
  121. package/dist/cjs/tools/common/schemas.js +37 -0
  122. package/dist/cjs/tools/common/schemas.js.map +1 -0
  123. package/dist/cjs/tools/get.tool.d.ts +6 -0
  124. package/dist/cjs/tools/get.tool.d.ts.map +1 -0
  125. package/dist/cjs/tools/get.tool.js +115 -0
  126. package/dist/cjs/tools/get.tool.js.map +1 -0
  127. package/dist/cjs/tools/index.d.ts +4 -0
  128. package/dist/cjs/tools/index.d.ts.map +1 -0
  129. package/dist/cjs/tools/index.js +20 -0
  130. package/dist/cjs/tools/index.js.map +1 -0
  131. package/dist/cjs/tools/search.tool.d.ts +6 -0
  132. package/dist/cjs/tools/search.tool.d.ts.map +1 -0
  133. package/dist/cjs/tools/search.tool.js +58 -0
  134. package/dist/cjs/tools/search.tool.js.map +1 -0
  135. package/dist/corpus/changelogs/2025-12-16-initial-architecture.md +145 -0
  136. package/dist/corpus/changelogs/2025-12-16-model-repo-datasource-refactor.md +300 -0
  137. package/dist/corpus/changelogs/2025-12-17-refactor.md +90 -0
  138. package/dist/corpus/changelogs/2025-12-18-performance-optimizations.md +130 -0
  139. package/dist/corpus/changelogs/2025-12-18-repository-validation-security.md +255 -0
  140. package/dist/corpus/changelogs/2025-12-26-nested-relations-and-generics.md +86 -0
  141. package/dist/corpus/changelogs/2025-12-26-transaction-support.md +57 -0
  142. package/dist/corpus/changelogs/2025-12-29-dynamic-binding-registration.md +104 -0
  143. package/dist/corpus/changelogs/2025-12-29-snowflake-uid-helper.md +100 -0
  144. package/dist/corpus/changelogs/2025-12-30-repository-enhancements.md +214 -0
  145. package/dist/corpus/changelogs/2025-12-31-json-path-filtering-array-operators.md +214 -0
  146. package/dist/corpus/changelogs/2025-12-31-string-id-custom-generator.md +137 -0
  147. package/dist/corpus/changelogs/2026-01-02-default-filter-and-repository-mixins.md +421 -0
  148. package/dist/corpus/changelogs/2026-01-05-range-queries-content-range.md +184 -0
  149. package/dist/corpus/changelogs/2026-01-06-basic-authentication.md +103 -0
  150. package/dist/corpus/changelogs/2026-01-07-controller-route-customization.md +190 -0
  151. package/dist/corpus/changelogs/2026-01-11-logger-optimization-hf-logger.md +254 -0
  152. package/dist/corpus/changelogs/2026-02-06-socket-io-integration-fix.md +541 -0
  153. package/dist/corpus/changelogs/2026-02-10-websocket-heartbeat-payload.md +173 -0
  154. package/dist/corpus/changelogs/2026-02-11-crypto-refactor-ecdh.md +217 -0
  155. package/dist/corpus/changelogs/2026-02-11-websocket-encrypted-delivery.md +209 -0
  156. package/dist/corpus/changelogs/2026-02-11-websocket-generic-types.md +134 -0
  157. package/dist/corpus/changelogs/2026-02-16-authorization-system.md +378 -0
  158. package/dist/corpus/changelogs/2026-02-26-core-helpers-decoupling.md +145 -0
  159. package/dist/corpus/changelogs/2026-02-27-jwks-authentication.md +391 -0
  160. package/dist/corpus/changelogs/2026-03-02-model-authorize-settings.md +155 -0
  161. package/dist/corpus/changelogs/2026-03-04-jwt-payload-field-codecs.md +219 -0
  162. package/dist/corpus/changelogs/2026-03-06-filter-offset-skip-fix.md +88 -0
  163. package/dist/corpus/changelogs/2026-03-10-kafka-helpers-refactor.md +225 -0
  164. package/dist/corpus/changelogs/2026-03-12-kafka-helpers-enhancement.md +169 -0
  165. package/dist/corpus/changelogs/2026-03-15-grpc-controller-system.md +281 -0
  166. package/dist/corpus/changelogs/2026-03-30-row-level-locking.md +134 -0
  167. package/dist/corpus/changelogs/2026-03-31-typescript-6-and-toolchain.md +100 -0
  168. package/dist/corpus/changelogs/2026-04-23-error-response-extra-fields.md +131 -0
  169. package/dist/corpus/changelogs/2026-05-05-refresh-token-endpoint.md +116 -0
  170. package/dist/corpus/changelogs/2026-05-08-crud-route-toggles-and-typed-responses.md +136 -0
  171. package/dist/corpus/changelogs/2026-05-20-relation-scope-default-limit.md +133 -0
  172. package/dist/corpus/changelogs/2026-05-21-mass-mutation-guards.md +102 -0
  173. package/dist/corpus/changelogs/2026-05-22-casbin-adapter-schema-qualification.md +72 -0
  174. package/dist/corpus/changelogs/2026-05-25-per-model-default-limit.md +68 -0
  175. package/dist/corpus/changelogs/2026-05-27-casbin-domain-matching-function.md +90 -0
  176. package/dist/corpus/changelogs/2026-06-02-authorize-scoped-rbac.md +105 -0
  177. package/dist/corpus/changelogs/2026-06-14-validation-codes-and-error-hardening.md +124 -0
  178. package/dist/corpus/changelogs/2026-06-18-auth-user-information-endpoint.md +69 -0
  179. package/dist/corpus/changelogs/2026-06-25-redis-helpers-refactor.md +199 -0
  180. package/dist/corpus/changelogs/2026-07-05-unified-repository-connectors.md +206 -0
  181. package/dist/corpus/changelogs/2026-07-08-typesense-advanced-search.md +72 -0
  182. package/dist/corpus/changelogs/2026-07-11-connectors-consistency-hardening.md +192 -0
  183. package/dist/corpus/changelogs/2026-07-11-postgres-driver-seam-supabase.md +146 -0
  184. package/dist/corpus/changelogs/2026-07-12-core-consolidation-dedup.md +127 -0
  185. package/dist/corpus/changelogs/2026-07-13-hardening-round.md +99 -0
  186. package/dist/corpus/changelogs/2026-07-14-driver-class-bundling.md +100 -0
  187. package/dist/corpus/changelogs/2026-07-16-error-catalog-and-structured-message.md +64 -0
  188. package/dist/corpus/changelogs/2026-07-16-secrets-vault-integration.md +72 -0
  189. package/dist/corpus/changelogs/2026-07-17-error-module-redesign.md +202 -0
  190. package/dist/corpus/changelogs/2026-07-17-logger-correctness-pass.md +46 -0
  191. package/dist/corpus/changelogs/2026-07-17-secrets-bundler-invisible-peers.md +30 -0
  192. package/dist/corpus/changelogs/2026-07-18-dependency-refresh.md +55 -0
  193. package/dist/corpus/changelogs/2026-07-18-logger-overhaul.md +104 -0
  194. package/dist/corpus/changelogs/2026-07-18-repository-read-retry.md +74 -0
  195. package/dist/corpus/changelogs/2026-07-20-casbin-custom-grants.md +72 -0
  196. package/dist/corpus/changelogs/2026-07-20-casbin-single-wave-extraction.md +58 -0
  197. package/dist/corpus/changelogs/2026-07-20-error-from-error-client.md +66 -0
  198. package/dist/corpus/changelogs/2026-07-21-casbin-connector-resolution-fix.md +36 -0
  199. package/dist/corpus/changelogs/2026-07-25-error-logging.md +129 -0
  200. package/dist/corpus/changelogs/2026-07-25-ignis-filter-package.md +75 -0
  201. package/dist/corpus/changelogs/2026-07-26-search-and-mail-error-codes.md +58 -0
  202. package/dist/corpus/changelogs/2026-08-01-relational-connector-lift.md +403 -0
  203. package/dist/corpus/changelogs/2026-08-02-sqlite-and-pglite-connectors.md +177 -0
  204. package/dist/corpus/changelogs/2026-08-05-search-dialect-relational-parity.md +90 -0
  205. package/dist/corpus/changelogs/2026-08-06-aes-pbkdf2-and-key-rotation.md +131 -0
  206. package/dist/corpus/changelogs/2026-08-07-default-query-by.md +62 -0
  207. package/dist/corpus/changelogs/2026-08-07-nested-fields-and-order-validation.md +75 -0
  208. package/dist/corpus/changelogs/2026-08-07-typesense-multi-search-transport.md +97 -0
  209. package/dist/corpus/changelogs/2026-08-12-json-log-arguments.md +69 -0
  210. package/dist/corpus/changelogs/2026-08-13-browser-pure-kernel.md +130 -0
  211. package/dist/corpus/changelogs/2026-08-18-esm-builds-and-one-default-stack.md +104 -0
  212. package/dist/corpus/changelogs/2026-08-18-opaque-uid-helper.md +43 -0
  213. package/dist/corpus/changelogs/2026-08-19-browser-bff-multi-tab.md +88 -0
  214. package/dist/corpus/changelogs/2026-08-19-service-authentication-phase-1.md +157 -0
  215. package/dist/corpus/changelogs/2026-08-21-service-authentication-strategy.md +127 -0
  216. package/dist/corpus/changelogs/2026-08-22-logger-color-off-outside-development.md +48 -0
  217. package/dist/corpus/changelogs/2026-08-24-query-wrapper-schemas.md +77 -0
  218. package/dist/corpus/changelogs/2026-08-29-casbin-domain-hierarchy.md +66 -0
  219. package/dist/corpus/changelogs/2026-08-30-authorize-no-enforcer-fails-closed.md +60 -0
  220. package/dist/corpus/changelogs/2026-08-30-crypto-hashing.md +158 -0
  221. package/dist/corpus/changelogs/2026-08-30-policy-definition-extra-variants.md +62 -0
  222. package/dist/corpus/changelogs/2026-08-30-row-scope-filter.md +221 -0
  223. package/dist/corpus/changelogs/2026-08-30-search-connector-health-and-import-contract.md +46 -0
  224. package/dist/corpus/changelogs/2026-08-30-tree-and-recursive-sql.md +188 -0
  225. package/dist/corpus/changelogs/2026-08-30-typed-where-clauses.md +114 -0
  226. package/dist/corpus/changelogs/2026-08-31-entity-id-brand.md +70 -0
  227. package/dist/corpus/changelogs/2026-08-31-event-bus-retry.md +143 -0
  228. package/dist/corpus/changelogs/2026-08-31-policy-domain-split-release-b.md +54 -0
  229. package/dist/corpus/changelogs/2026-08-31-policy-domain-split.md +175 -0
  230. package/dist/corpus/changelogs/2026-08-31-scope-filter-boot-checks.md +77 -0
  231. package/dist/corpus/changelogs/2026-09-02-bundle-safe-helpers.md +71 -0
  232. package/dist/corpus/changelogs/2026-09-02-decorator-artifact-registration.md +119 -0
  233. package/dist/corpus/changelogs/2026-09-03-deprecated-boot-api-removed.md +133 -0
  234. package/dist/corpus/changelogs/2026-09-04-dependency-floors-raised.md +61 -0
  235. package/dist/corpus/changelogs/2026-09-05-boot-checks.md +57 -0
  236. package/dist/corpus/changelogs/2026-09-05-core-drops-boot-dependency.md +44 -0
  237. package/dist/corpus/changelogs/2026-09-05-list-response-contract.md +74 -0
  238. package/dist/corpus/changelogs/2026-09-06-bun-serve-options.md +51 -0
  239. package/dist/corpus/changelogs/2026-09-06-ignis-atlas.md +54 -0
  240. package/dist/corpus/changelogs/2026-09-06-repository-inheritance-and-quiet-cli.md +46 -0
  241. package/dist/corpus/changelogs/2026-09-06-shared-singletons-across-module-copies.md +43 -0
  242. package/dist/corpus/changelogs/index.md +135 -0
  243. package/dist/corpus/changelogs/planned-schema-migrator.md +553 -0
  244. package/dist/corpus/changelogs/template.md +64 -0
  245. package/dist/corpus/wiki/best-practices/api-usage-examples.md +617 -0
  246. package/dist/corpus/wiki/best-practices/architectural-patterns.md +437 -0
  247. package/dist/corpus/wiki/best-practices/architecture-decisions.md +524 -0
  248. package/dist/corpus/wiki/best-practices/code-style-standards/advanced-patterns.md +283 -0
  249. package/dist/corpus/wiki/best-practices/code-style-standards/constants-configuration.md +240 -0
  250. package/dist/corpus/wiki/best-practices/code-style-standards/control-flow.md +280 -0
  251. package/dist/corpus/wiki/best-practices/code-style-standards/documentation.md +241 -0
  252. package/dist/corpus/wiki/best-practices/code-style-standards/function-patterns.md +178 -0
  253. package/dist/corpus/wiki/best-practices/code-style-standards/index.md +114 -0
  254. package/dist/corpus/wiki/best-practices/code-style-standards/naming-conventions.md +200 -0
  255. package/dist/corpus/wiki/best-practices/code-style-standards/route-definitions.md +205 -0
  256. package/dist/corpus/wiki/best-practices/code-style-standards/tooling.md +168 -0
  257. package/dist/corpus/wiki/best-practices/code-style-standards/type-safety.md +199 -0
  258. package/dist/corpus/wiki/best-practices/common-pitfalls.md +447 -0
  259. package/dist/corpus/wiki/best-practices/contribution-workflow.md +211 -0
  260. package/dist/corpus/wiki/best-practices/data-modeling.md +548 -0
  261. package/dist/corpus/wiki/best-practices/deployment-strategies.md +736 -0
  262. package/dist/corpus/wiki/best-practices/error-handling.md +604 -0
  263. package/dist/corpus/wiki/best-practices/index.md +206 -0
  264. package/dist/corpus/wiki/best-practices/performance-optimization.md +437 -0
  265. package/dist/corpus/wiki/best-practices/security-guidelines.md +523 -0
  266. package/dist/corpus/wiki/best-practices/testing-strategies.md +639 -0
  267. package/dist/corpus/wiki/best-practices/troubleshooting-tips.md +227 -0
  268. package/dist/corpus/wiki/extensions/atlas/index.md +65 -0
  269. package/dist/corpus/wiki/extensions/components/api-reference.md +268 -0
  270. package/dist/corpus/wiki/extensions/components/authentication/api.md +643 -0
  271. package/dist/corpus/wiki/extensions/components/authentication/errors.md +211 -0
  272. package/dist/corpus/wiki/extensions/components/authentication/index.md +171 -0
  273. package/dist/corpus/wiki/extensions/components/authentication/usage.md +464 -0
  274. package/dist/corpus/wiki/extensions/components/authorization/api.md +1509 -0
  275. package/dist/corpus/wiki/extensions/components/authorization/errors.md +397 -0
  276. package/dist/corpus/wiki/extensions/components/authorization/getting-started.md +227 -0
  277. package/dist/corpus/wiki/extensions/components/authorization/index.md +155 -0
  278. package/dist/corpus/wiki/extensions/components/authorization/usage.md +587 -0
  279. package/dist/corpus/wiki/extensions/components/health-check.md +227 -0
  280. package/dist/corpus/wiki/extensions/components/index.md +26 -0
  281. package/dist/corpus/wiki/extensions/components/mail/api.md +773 -0
  282. package/dist/corpus/wiki/extensions/components/mail/errors.md +190 -0
  283. package/dist/corpus/wiki/extensions/components/mail/index.md +182 -0
  284. package/dist/corpus/wiki/extensions/components/mail/usage.md +370 -0
  285. package/dist/corpus/wiki/extensions/components/request-tracker.md +152 -0
  286. package/dist/corpus/wiki/extensions/components/socket-io/api.md +728 -0
  287. package/dist/corpus/wiki/extensions/components/socket-io/errors.md +119 -0
  288. package/dist/corpus/wiki/extensions/components/socket-io/index.md +116 -0
  289. package/dist/corpus/wiki/extensions/components/socket-io/usage.md +429 -0
  290. package/dist/corpus/wiki/extensions/components/static-asset/api.md +593 -0
  291. package/dist/corpus/wiki/extensions/components/static-asset/errors.md +159 -0
  292. package/dist/corpus/wiki/extensions/components/static-asset/index.md +160 -0
  293. package/dist/corpus/wiki/extensions/components/static-asset/usage.md +253 -0
  294. package/dist/corpus/wiki/extensions/components/template/api-page.md +125 -0
  295. package/dist/corpus/wiki/extensions/components/template/errors-page.md +100 -0
  296. package/dist/corpus/wiki/extensions/components/template/index.md +104 -0
  297. package/dist/corpus/wiki/extensions/components/template/setup-page.md +134 -0
  298. package/dist/corpus/wiki/extensions/components/template/single-page.md +132 -0
  299. package/dist/corpus/wiki/extensions/components/template/usage-page.md +127 -0
  300. package/dist/corpus/wiki/extensions/components/websocket/api.md +416 -0
  301. package/dist/corpus/wiki/extensions/components/websocket/errors.md +128 -0
  302. package/dist/corpus/wiki/extensions/components/websocket/index.md +127 -0
  303. package/dist/corpus/wiki/extensions/components/websocket/usage.md +257 -0
  304. package/dist/corpus/wiki/extensions/helpers/cron/index.md +116 -0
  305. package/dist/corpus/wiki/extensions/helpers/crypto/index.md +136 -0
  306. package/dist/corpus/wiki/extensions/helpers/crypto/reference.md +544 -0
  307. package/dist/corpus/wiki/extensions/helpers/env/index.md +119 -0
  308. package/dist/corpus/wiki/extensions/helpers/error/index.md +373 -0
  309. package/dist/corpus/wiki/extensions/helpers/index.md +63 -0
  310. package/dist/corpus/wiki/extensions/helpers/inversion/index.md +142 -0
  311. package/dist/corpus/wiki/extensions/helpers/inversion/reference.md +531 -0
  312. package/dist/corpus/wiki/extensions/helpers/kafka/admin.md +210 -0
  313. package/dist/corpus/wiki/extensions/helpers/kafka/compile-binary.md +125 -0
  314. package/dist/corpus/wiki/extensions/helpers/kafka/consumer.md +422 -0
  315. package/dist/corpus/wiki/extensions/helpers/kafka/examples.md +154 -0
  316. package/dist/corpus/wiki/extensions/helpers/kafka/index.md +84 -0
  317. package/dist/corpus/wiki/extensions/helpers/kafka/producer.md +408 -0
  318. package/dist/corpus/wiki/extensions/helpers/kafka/schema-registry.md +194 -0
  319. package/dist/corpus/wiki/extensions/helpers/logger/hf-logger.md +220 -0
  320. package/dist/corpus/wiki/extensions/helpers/logger/index.md +156 -0
  321. package/dist/corpus/wiki/extensions/helpers/logger/pino.md +107 -0
  322. package/dist/corpus/wiki/extensions/helpers/logger/reference.md +938 -0
  323. package/dist/corpus/wiki/extensions/helpers/network/api.md +1067 -0
  324. package/dist/corpus/wiki/extensions/helpers/network/index.md +189 -0
  325. package/dist/corpus/wiki/extensions/helpers/queue/index.md +165 -0
  326. package/dist/corpus/wiki/extensions/helpers/queue/reference.md +490 -0
  327. package/dist/corpus/wiki/extensions/helpers/redis/index.md +159 -0
  328. package/dist/corpus/wiki/extensions/helpers/redis/reference.md +784 -0
  329. package/dist/corpus/wiki/extensions/helpers/secrets/index.md +136 -0
  330. package/dist/corpus/wiki/extensions/helpers/socket-io/api.md +618 -0
  331. package/dist/corpus/wiki/extensions/helpers/socket-io/index.md +167 -0
  332. package/dist/corpus/wiki/extensions/helpers/storage/api.md +1021 -0
  333. package/dist/corpus/wiki/extensions/helpers/storage/index.md +162 -0
  334. package/dist/corpus/wiki/extensions/helpers/template/index.md +69 -0
  335. package/dist/corpus/wiki/extensions/helpers/template/single-page.md +126 -0
  336. package/dist/corpus/wiki/extensions/helpers/types/index.md +143 -0
  337. package/dist/corpus/wiki/extensions/helpers/types/reference.md +708 -0
  338. package/dist/corpus/wiki/extensions/helpers/uid/index.md +259 -0
  339. package/dist/corpus/wiki/extensions/helpers/websocket/api.md +888 -0
  340. package/dist/corpus/wiki/extensions/helpers/websocket/index.md +139 -0
  341. package/dist/corpus/wiki/extensions/helpers/worker-thread/index.md +142 -0
  342. package/dist/corpus/wiki/extensions/helpers/worker-thread/reference.md +434 -0
  343. package/dist/corpus/wiki/extensions/index.md +46 -0
  344. package/dist/corpus/wiki/guides/core-concepts/application/bootstrapping.md +274 -0
  345. package/dist/corpus/wiki/guides/core-concepts/application/index.md +239 -0
  346. package/dist/corpus/wiki/guides/core-concepts/components-guide.md +513 -0
  347. package/dist/corpus/wiki/guides/core-concepts/components.md +155 -0
  348. package/dist/corpus/wiki/guides/core-concepts/dependency-injection.md +336 -0
  349. package/dist/corpus/wiki/guides/core-concepts/grpc-controllers.md +296 -0
  350. package/dist/corpus/wiki/guides/core-concepts/persistent/datasources.md +195 -0
  351. package/dist/corpus/wiki/guides/core-concepts/persistent/index.md +132 -0
  352. package/dist/corpus/wiki/guides/core-concepts/persistent/models.md +331 -0
  353. package/dist/corpus/wiki/guides/core-concepts/persistent/pglite.md +218 -0
  354. package/dist/corpus/wiki/guides/core-concepts/persistent/postgres-drivers.md +207 -0
  355. package/dist/corpus/wiki/guides/core-concepts/persistent/repositories.md +311 -0
  356. package/dist/corpus/wiki/guides/core-concepts/persistent/search-meilisearch.md +195 -0
  357. package/dist/corpus/wiki/guides/core-concepts/persistent/search-typesense.md +443 -0
  358. package/dist/corpus/wiki/guides/core-concepts/persistent/sqlite.md +296 -0
  359. package/dist/corpus/wiki/guides/core-concepts/persistent/transactions.md +238 -0
  360. package/dist/corpus/wiki/guides/core-concepts/rest-controllers.md +465 -0
  361. package/dist/corpus/wiki/guides/core-concepts/secrets-vault.md +177 -0
  362. package/dist/corpus/wiki/guides/core-concepts/services.md +389 -0
  363. package/dist/corpus/wiki/guides/get-started/5-minute-quickstart.md +163 -0
  364. package/dist/corpus/wiki/guides/get-started/philosophy.md +135 -0
  365. package/dist/corpus/wiki/guides/get-started/setup.md +136 -0
  366. package/dist/corpus/wiki/guides/index.md +82 -0
  367. package/dist/corpus/wiki/guides/migrations/boot-api-removal-migration.md +79 -0
  368. package/dist/corpus/wiki/guides/migrations/redis-helpers-migration.md +178 -0
  369. package/dist/corpus/wiki/guides/migrations/scoped-rbac-migration.md +300 -0
  370. package/dist/corpus/wiki/guides/migrations/unified-connectors-migration.md +114 -0
  371. package/dist/corpus/wiki/guides/reference/glossary.md +250 -0
  372. package/dist/corpus/wiki/guides/tutorials/building-a-crud-api.md +704 -0
  373. package/dist/corpus/wiki/guides/tutorials/complete-installation.md +440 -0
  374. package/dist/corpus/wiki/guides/tutorials/ecommerce-api.md +1442 -0
  375. package/dist/corpus/wiki/guides/tutorials/realtime-chat.md +1571 -0
  376. package/dist/corpus/wiki/guides/tutorials/testing.md +264 -0
  377. package/dist/corpus/wiki/index.md +5 -0
  378. package/dist/corpus/wiki/public/apple-touch-icon.png +0 -0
  379. package/dist/corpus/wiki/public/logo.svg +1 -0
  380. package/dist/corpus/wiki/public/og-image.png +0 -0
  381. package/dist/corpus/wiki/public/site.webmanifest +11 -0
  382. package/dist/corpus/wiki/references/base/application.md +482 -0
  383. package/dist/corpus/wiki/references/base/bootstrapping.md +351 -0
  384. package/dist/corpus/wiki/references/base/components.md +883 -0
  385. package/dist/corpus/wiki/references/base/connectors.md +121 -0
  386. package/dist/corpus/wiki/references/base/controllers.md +1022 -0
  387. package/dist/corpus/wiki/references/base/datasources-reference.md +598 -0
  388. package/dist/corpus/wiki/references/base/datasources.md +165 -0
  389. package/dist/corpus/wiki/references/base/dependency-injection.md +423 -0
  390. package/dist/corpus/wiki/references/base/filter-system/application-usage.md +215 -0
  391. package/dist/corpus/wiki/references/base/filter-system/array-operators.md +135 -0
  392. package/dist/corpus/wiki/references/base/filter-system/comparison-operators.md +110 -0
  393. package/dist/corpus/wiki/references/base/filter-system/default-filter.md +267 -0
  394. package/dist/corpus/wiki/references/base/filter-system/fields-order-pagination.md +244 -0
  395. package/dist/corpus/wiki/references/base/filter-system/index.md +149 -0
  396. package/dist/corpus/wiki/references/base/filter-system/json-filtering.md +122 -0
  397. package/dist/corpus/wiki/references/base/filter-system/list-operators.md +56 -0
  398. package/dist/corpus/wiki/references/base/filter-system/logical-operators.md +148 -0
  399. package/dist/corpus/wiki/references/base/filter-system/null-operators.md +80 -0
  400. package/dist/corpus/wiki/references/base/filter-system/pattern-matching.md +105 -0
  401. package/dist/corpus/wiki/references/base/filter-system/quick-reference.md +172 -0
  402. package/dist/corpus/wiki/references/base/filter-system/range-operators.md +53 -0
  403. package/dist/corpus/wiki/references/base/filter-system/tips.md +154 -0
  404. package/dist/corpus/wiki/references/base/filter-system/use-cases.md +394 -0
  405. package/dist/corpus/wiki/references/base/grpc-controllers.md +1020 -0
  406. package/dist/corpus/wiki/references/base/index.md +112 -0
  407. package/dist/corpus/wiki/references/base/middlewares.md +543 -0
  408. package/dist/corpus/wiki/references/base/models-reference.md +886 -0
  409. package/dist/corpus/wiki/references/base/models.md +154 -0
  410. package/dist/corpus/wiki/references/base/providers.md +728 -0
  411. package/dist/corpus/wiki/references/base/repositories/advanced.md +627 -0
  412. package/dist/corpus/wiki/references/base/repositories/index.md +152 -0
  413. package/dist/corpus/wiki/references/base/repositories/mixins.md +103 -0
  414. package/dist/corpus/wiki/references/base/repositories/relations.md +379 -0
  415. package/dist/corpus/wiki/references/base/repositories/soft-deletable.md +307 -0
  416. package/dist/corpus/wiki/references/base/secrets.md +267 -0
  417. package/dist/corpus/wiki/references/base/services.md +417 -0
  418. package/dist/corpus/wiki/references/configuration/environment-variables.md +498 -0
  419. package/dist/corpus/wiki/references/configuration/index.md +132 -0
  420. package/dist/corpus/wiki/references/index.md +172 -0
  421. package/dist/corpus/wiki/references/quick-reference.md +594 -0
  422. package/dist/corpus/wiki/references/utilities/date.md +50 -0
  423. package/dist/corpus/wiki/references/utilities/duration.md +85 -0
  424. package/dist/corpus/wiki/references/utilities/index.md +81 -0
  425. package/dist/corpus/wiki/references/utilities/jsx-reference.md +298 -0
  426. package/dist/corpus/wiki/references/utilities/jsx.md +131 -0
  427. package/dist/corpus/wiki/references/utilities/module.md +110 -0
  428. package/dist/corpus/wiki/references/utilities/parse.md +55 -0
  429. package/dist/corpus/wiki/references/utilities/performance.md +54 -0
  430. package/dist/corpus/wiki/references/utilities/promise.md +54 -0
  431. package/dist/corpus/wiki/references/utilities/request.md +85 -0
  432. package/dist/corpus/wiki/references/utilities/retry.md +148 -0
  433. package/dist/corpus/wiki/references/utilities/schema.md +69 -0
  434. package/dist/corpus/wiki/references/utilities/statuses-reference.md +360 -0
  435. package/dist/corpus/wiki/references/utilities/statuses.md +122 -0
  436. package/package.json +74 -0
@@ -0,0 +1,143 @@
1
+ ---
2
+ title: EventBus Retry Gets Jitter, a Bounded Per-Registration Window, and a Tagged Handler Reference
3
+ description: EventBus retries now jitter every backoff delay, let each registration tune its own bounded retry window, and take handler as a tagged binding-key-or-function reference instead of a bare handlerBindingKey string.
4
+ ---
5
+
6
+ # Changelog - 2026-08-31
7
+
8
+ ## EventBus retry and handler reference
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="tip" text="Enhancement" /> <Badge type="warning" text="Breaking Change" />
11
+
12
+ **In one line.** `EventBus` retries now jitter, each `register()` call can set its own bounded retry window, and `handler` replaces `handlerBindingKey` with a tagged reference that also accepts a plain function.
13
+
14
+ ## What changed
15
+
16
+ - **Every retry delay is jittered.** `RetryJitterModes.FULL` is applied to every dispatch retry, with no way to turn it off.
17
+ - **Retry timing is now per registration.** `register()` takes an optional `retry: { maxAttempts, baseDelayMs }`. Omit it and behavior is unchanged from before, aside from the jitter.
18
+ - **Both retry numbers are bounded, and a value over the bound throws at `register()`.** There is no silent clamp.
19
+ - **`handler` replaces `handlerBindingKey`.** It is a tagged reference: a container binding key, or a plain function.
20
+ - **A handler may now return `void` synchronously**, not only a `Promise<void>`.
21
+
22
+ ## Why the jitter
23
+
24
+ Picture 23 handlers all retrying the same lock. Fixed backoff makes every one of them wake up at exactly 100ms, then exactly 300ms - colliding on the shared row lock a second time, at the same instant, right after the first collision. Each round makes the contention worse, not better.
25
+
26
+ `RetryJitterModes.FULL` picks a uniform random delay in `[0, delay)` instead of using `delay` itself. Twenty-three handlers racing the same lock now wake up spread across a window instead of in lockstep, so the herd stops re-forming. `EQUAL` (`delay/2` plus jitter) was the other option, but it still guarantees a delay floor, which keeps some of the pileup. `FULL` decorrelates it hardest, so it is the only mode used, and it's on for every dispatch - there is no setting to turn it off, because it has no downside against a shared resource.
27
+
28
+ ## Why a bounded per-registration window
29
+
30
+ The old fixed 3 attempts / 100ms base was invented, not measured, and it does not fit every handler. A handler retrying a transient lock might need 5 attempts over several seconds. A handler doing something less recoverable might want 1.
31
+
32
+ But `EventBus` is fire-and-forget: nothing awaits a dispatch, so an unbounded retry window can hold a handler - and whatever it holds open, like a database connection - for minutes with nobody watching. `register()` now enforces two ceilings and rejects a value beyond either, loudly, at startup:
33
+
34
+ | Ceiling | Value | Why |
35
+ |---|---|---|
36
+ | `maxAttempts` | 10 | Twice the highest attempt count any known caller has asked for, enough room to tune without permitting an attempt storm. |
37
+ | Total backoff window | 30,000ms | Matches `RetryHelper`'s own default cap on a single delay - a dispatch holding a handler's resources for longer than that is the case this bound exists to catch. |
38
+
39
+ The total window is the sum of every inter-attempt delay the exponential backoff would produce, computed without jitter (jitter only ever shrinks a delay, so this is the true worst case). `maxAttempts: 6` with `baseDelayMs: 2000` is a legal attempt count on its own, but its window sums past 30 seconds and is rejected - the two ceilings are checked independently.
40
+
41
+ ## What each handler shape means for a rebind
42
+
43
+ `handler` is now a tagged union instead of a bare string. The tag makes the caller's choice explicit at the call site instead of implicit in whichever field is present, so pairing the wrong field with a `type` - `BINDING_KEY` with `fn`, or `FUNCTION` with `key` - is a compile error there, rather than a runtime surprise later inside a `queueMicrotask` where nobody is watching.
44
+
45
+ ```typescript
46
+ type: EventHandlerTypes.BINDING_KEY, key: string
47
+ type: EventHandlerTypes.FUNCTION, fn: (opts: { event }) => ValueOrPromise<void>
48
+ ```
49
+
50
+ The two forms behave differently on a rebind, and that difference is the reason to pick one over the other:
51
+
52
+ - **`BINDING_KEY`** resolves `key` from the container on every retry attempt. Rebind the key mid-dispatch and the very next attempt - even one already in flight - uses the new binding.
53
+ - **`FUNCTION`** captures `fn` as a closure at `register()` time. There is nothing to rebind: every attempt in the retry window calls the exact function registered at startup.
54
+
55
+ ## Breaking changes
56
+
57
+ > [!WARNING]
58
+ > `register()`'s `handlerBindingKey` field is removed, not aliased. Update every call site.
59
+
60
+ **Before:**
61
+
62
+ ```typescript
63
+ eventBus.register({
64
+ name: 'orderPlaced',
65
+ handlerBindingKey: 'services.OrderPlacedHandler',
66
+ });
67
+ ```
68
+
69
+ **After:**
70
+
71
+ ```typescript
72
+ eventBus.register({
73
+ name: 'orderPlaced',
74
+ handler: { type: EventHandlerTypes.BINDING_KEY, key: 'services.OrderPlacedHandler' },
75
+ });
76
+ ```
77
+
78
+ A handler with no dependencies can skip the container entirely:
79
+
80
+ ```typescript
81
+ eventBus.register({
82
+ name: 'orderPlaced',
83
+ handler: {
84
+ type: EventHandlerTypes.FUNCTION,
85
+ fn: async ({ event }) => logger.info('Order placed: %s', event.payload.orderId),
86
+ },
87
+ });
88
+ ```
89
+
90
+ ## Who is affected
91
+
92
+ - **Any caller of `EventBus.register()`.** Wrap the existing binding key in `{ type: EventHandlerTypes.BINDING_KEY, key }`. No other behavior changes for that shape, aside from jitter.
93
+ - **A handler that relies on a fixed 300ms total retry window.** The window is unchanged by default, but is now overridable - set `retry` explicitly if the timing itself was load-bearing.
94
+ - **`IEventHandler` implementers.** `handle` may now return `void` synchronously as well as `Promise<void>` - every existing `async handle()` implementation still satisfies the interface unchanged.
95
+
96
+ ## A trap in the payload map, worth reading before you trust the types
97
+
98
+ `EventBus`'s only type safety is `K extends keyof TPayloadMap & string` - it is exactly as strong as
99
+ the map you hand it. A map built from computed keys off a **plain object literal** silently degrades
100
+ to an index signature:
101
+
102
+ ```typescript
103
+ const EVENT_NAMES = { ORDER_PLACED: 'order.placed' }; // no `as const`
104
+
105
+ interface IPayloadMap {
106
+ [EVENT_NAMES.ORDER_PLACED]: IOrderPlacedPayload;
107
+ }
108
+ ```
109
+
110
+ Without `as const`, `EVENT_NAMES.ORDER_PLACED` has type `string`, not the literal
111
+ `'order.placed'`. A computed key of type `string` produces an **index signature**, so `IPayloadMap`
112
+ accepts every event name and `keyof IPayloadMap` is `string`. `register()` and `publish()` then
113
+ take any name at all.
114
+
115
+ > [!WARNING]
116
+ > This compiles cleanly and looks type-safe at every call site. Nothing reports it - not `tsc`, not
117
+ > lint, not a test. The bus appears to be checking names and is not.
118
+
119
+ **The fix is `as const`.** A `static readonly` on a class keeps its literal type too, which is why
120
+ one map in a codebase can be sound while its neighbour silently is not, for a reason invisible where
121
+ they are used.
122
+
123
+ **How to check yours** - a control line, because the defect is the absence of an error:
124
+
125
+ ```typescript
126
+ // @ts-expect-error a name nobody declared must not resolve
127
+ type Control = IPayloadMap['nothing.declares.this'];
128
+ ```
129
+
130
+ If `tsc` reports that directive as **unused**, the map has degraded - the bogus key resolved. If it
131
+ reports nothing, the map is sound. Pinned in `kernel/src/__tests__/events/payload-map-typing.test.ts`.
132
+
133
+ ## Details
134
+
135
+ - A synchronous handler that throws is retried exactly like an asynchronous one: `dispatch`'s own `execution` callback is `async`, so a synchronous throw inside it becomes a rejected promise the same way `RetryHelper.executeWithRetry` already handles.
136
+ - The exhaustion log line now names the handler shape (`binding-key:<key>` or `function:<name>`) instead of always assuming a binding key.
137
+ - The class doc comment no longer claims a fixed retry window makes "'published' guarantee the same thing at every call site" - that stopped being true once retry became configurable. What the bus guarantees instead is a bounded maximum time a single dispatch can occupy, enforced by the two ceilings above.
138
+
139
+ | File | Package |
140
+ |------|---------|
141
+ | `src/base/events/event-bus.ts` | kernel |
142
+ | `src/base/events/common/types.ts` | kernel |
143
+ | `src/base/events/common/constants.ts` | kernel |
@@ -0,0 +1,54 @@
1
+ ---
2
+ title: PolicyDefinition Reads the Domain Pair and the domain Column Is Gone (Release B)
3
+ description: The adapter now builds the casbin domain token in SQL from domain_type and domain_id, the builder no longer writes the concatenated column, and domain is dropped.
4
+ ---
5
+
6
+ # Changelog - 2026-08-31
7
+
8
+ ## PolicyDefinition domain split - Release B
9
+
10
+ <Badge type="warning" text="Breaking Change" /> <Badge type="tip" text="Migration Required" />
11
+
12
+ **In one line.** `domain_type` + `domain_id` are now the only stored form; the concatenated token survives only as the casbin wire format, built in SQL.
13
+
14
+ > [!WARNING]
15
+ > **Ship Release A first, deploy every consumer, verify the backfill, then ship this.** Release B removes the column Release A was still reading.
16
+
17
+ ## What changed
18
+
19
+ - **`ScopedCasbinAdapter` builds the token in SQL.** One expression, `domainTokenSelection`, used by every SELECT so they cannot drift.
20
+ - **`AuthorizationPolicyBuilder` no longer emits `domain`.** `grant`, `customGrant` and `assignRole` write only `domainType` / `domainId`; `serializeDomain` is gone.
21
+ - **`extraPolicyDefinitionColumns` no longer declares `domain`.**
22
+
23
+ Nothing downstream of the query changed: the row still carries `domain` as a `<Type>_<id>` token, because that is what the matcher compares. Only where it comes from changed.
24
+
25
+ ## Migration
26
+
27
+ ```sql
28
+ ALTER TABLE policy_definitions DROP COLUMN domain;
29
+ ```
30
+
31
+ Run it **after** every consumer is on this release. Until then the old code still selects the column.
32
+
33
+ > [!CAUTION]
34
+ > **Do not verify a backfill with a `SELECT` that follows the `UPDATE`.** On any infrastructure with a pooler or a read replica, the read can land on a node that has not caught up and report zero rows changed while the write succeeded - a migration marked failed over correct data. Count from the write itself with `RETURNING`.
35
+ >
36
+ > This is not hypothetical: it happened to a consumer running exactly this backfill. With a `DROP COLUMN` in the same migration, a self-check that lies is considerably worse than one that merely fails.
37
+
38
+ ## Who is affected
39
+
40
+ - **Anyone reading the `domain` column directly.** Read `domain_type` / `domain_id`, or build the token the way the adapter does.
41
+ - **Anyone inserting rows built by `AuthorizationPolicyBuilder`.** The `domain` field is gone from the row; `domainType` / `domainId` were already there from Release A.
42
+ - **Anyone who has not run the Release A backfill.** Do not deploy this - the pair is the only source now.
43
+
44
+ ## Details
45
+
46
+ - The alias inside `domainTokenSelection` is emitted **raw**, not through `sql.identifier`. A quoted alias preserves case while the unquoted `FROM` alias folds to lower case, so the reference does not resolve - `missing FROM-clause entry for table "policyDefinition"`. The same reason `softDeleteClause` already emitted its alias raw.
47
+ - That bug shipped in the first draft of this change and **every existing adapter test still passed**, because they stub `execute` and return row literals. It was caught by `scoped-adapter-domain-sql-e2e.test.ts`, which runs the adapter's own statements against a real Postgres.
48
+ - `null` is still `ANY_MEMBER`: the CASE yields NULL for a null `domain_type`, and `buildGrantLines` defaults it exactly as it did for a null `domain`.
49
+
50
+ | File | Package |
51
+ |------|---------|
52
+ | `src/base/auth/authorize/builders/policy.builder.ts` | kernel |
53
+ | `src/components/auth/authorize/adapters/scoped-casbin.adapter.ts` | core-server |
54
+ | `src/components/auth/models/entities/policy-definition.model.ts` | core-server |
@@ -0,0 +1,175 @@
1
+ ---
2
+ title: PolicyDefinition Gets domain_type and domain_id (Release A - Both Forms Written)
3
+ description: The concatenated domain token becomes a typed column pair, matching what subject and target already do. Release A adds and backfills the columns while domain stays the read source.
4
+ ---
5
+
6
+ # Changelog - 2026-08-31
7
+
8
+ ## PolicyDefinition domain split - Release A
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="tip" text="Migration Required" />
11
+
12
+ **In one line.** `PolicyDefinition` gains `domain_type` + `domain_id`, every write fills them alongside `domain`, and `domain` remains the only column read - so this release changes nothing about enforcement.
13
+
14
+ > [!IMPORTANT]
15
+ > This is the first of two releases. **Release B** switches the read source and **drops `domain`**. Ship A, deploy every consumer, verify, then ship B. Doing both at once breaks any instance that has not deployed yet.
16
+
17
+ ## Why the column existed in the other shape
18
+
19
+ The table already stores two typed references as **column pairs**:
20
+
21
+ ```
22
+ subject_type + subject_id
23
+ target_type + target_id
24
+ domain = 'Merchant_<id>' <- the odd one out
25
+ ```
26
+
27
+ And the split form is not new to `domain` either - it is what the domain-closure CTE already joins on:
28
+
29
+ ```sql
30
+ JOIN domain_closure ON policyDefinition.subject_type = domain_closure.dom_type
31
+ AND policyDefinition.subject_id = domain_closure.dom_id
32
+ ```
33
+
34
+ So one concept was stored two ways in one table: `join_domain` and `domain_inherits` rows keep the domain as a **typed pair**, while `grant` and `assign_role` rows keep it as a **concatenated token**. The two must agree character for character or the closure misses, and nothing but a string convention in two separate files guaranteed that.
35
+
36
+ The missing index is real too - no index touches `domain` - but it is the smaller reason.
37
+
38
+ ## The three domain states, and how each is stored now
39
+
40
+ | State | `domain_type` | `domain_id` |
41
+ |---|---|---|
42
+ | Any domain the subject belongs to | `NULL` | `NULL` |
43
+ | System-wide (bypasses membership) | `'SYSTEM_WIDE'` | `NULL` |
44
+ | One typed domain | `'Merchant'` | `'<id>'` |
45
+
46
+ > [!WARNING]
47
+ > **`NULL` *is* `ANY_MEMBER`, not "unknown".** The adapter has always defaulted a null domain to `ANY_MEMBER`, and that stays true. Writing the literal `'ANY_MEMBER'` into `domain_type` is refused by the CHECK below - one state reachable two ways is exactly the ambiguity this split removes.
48
+
49
+ ## The one place the two columns deliberately disagree
50
+
51
+ `AuthorizationPolicyBuilder` normalises an explicit `ANY_MEMBER` to null in the **new** columns only:
52
+
53
+ ```typescript
54
+ AuthorizationPolicyBuilder.grant({ ..., domain: AuthorizationDomainScopes.ANY_MEMBER })
55
+ // domain: 'ANY_MEMBER' <- unchanged, still the read source
56
+ // domainType: null <- normalised
57
+ // domainId: null
58
+ ```
59
+
60
+ **A backfill check comparing the two columns by equality will report these rows.** That is not drift - do not "fix" it.
61
+
62
+ ## Migration
63
+
64
+ Release A needs three statements. `policyDefinitionDomainShapeCheck()` returns the predicate text, so the constraint cannot drift from the framework's own scope constants.
65
+
66
+ ```sql
67
+ ALTER TABLE policy_definitions
68
+ ADD COLUMN domain_type text,
69
+ ADD COLUMN domain_id text; -- or integer, matching your subject_id/target_id
70
+
71
+ UPDATE policy_definitions
72
+ SET domain_type = CASE
73
+ WHEN domain IS NULL THEN NULL
74
+ WHEN domain = 'ANY_MEMBER' THEN NULL
75
+ WHEN domain = 'SYSTEM_WIDE' THEN 'SYSTEM_WIDE'
76
+ ELSE split_part(domain, '_', 1)
77
+ END,
78
+ domain_id = CASE
79
+ WHEN domain IS NULL THEN NULL
80
+ WHEN domain IN ('ANY_MEMBER', 'SYSTEM_WIDE') THEN NULL
81
+ ELSE substring(domain FROM position('_' IN domain) + 1)
82
+ END;
83
+
84
+ ALTER TABLE policy_definitions
85
+ ADD CONSTRAINT policy_definition_domain_shape
86
+ CHECK ( <policyDefinitionDomainShapeCheck()> );
87
+ ```
88
+
89
+ > [!WARNING]
90
+ > **The backfill splits on the FIRST underscore, so it is wrong for any domain type whose own name contains one** (`Sale_Channel_42` would backfill as type `Sale`, id `Channel_42`). Check your distinct types before running it. That ambiguity is unfixable in the concatenated form and is a reason the split is worth doing, not a flaw in the migration.
91
+
92
+ Verify before adding the constraint:
93
+
94
+ ```sql
95
+ SELECT domain, domain_type, domain_id, count(*)
96
+ FROM policy_definitions
97
+ WHERE domain IS DISTINCT FROM (
98
+ CASE WHEN domain_type IS NULL THEN NULL
99
+ WHEN domain_id IS NULL THEN domain_type
100
+ ELSE domain_type || '_' || domain_id END)
101
+ GROUP BY 1, 2, 3;
102
+ ```
103
+
104
+ Rows where `domain = 'ANY_MEMBER'` and `domain_type IS NULL` are the expected divergence above. Anything else is a real backfill miss.
105
+
106
+ ## The CHECK is two-way, and one clause looks redundant but is not
107
+
108
+ ```typescript
109
+ import { policyDefinitionDomainShapeCheck } from '@venizia/ignis';
110
+ ```
111
+
112
+ Half a constraint admits half the broken rows, so both directions are enforced: an absent or sentinel type **requires** a null id, and a typed domain **requires** a non-null one.
113
+
114
+ The last branch carries an `IS NOT NULL` guard that appears redundant beside its `NOT IN`:
115
+
116
+ ```sql
117
+ OR (
118
+ domain_type IS NOT NULL
119
+ AND domain_type NOT IN ('ANY_MEMBER', 'SYSTEM_WIDE')
120
+ AND domain_id IS NOT NULL
121
+ )
122
+ ```
123
+
124
+ Remove it and **a row with an id but no type passes**. A NULL `domain_type` makes `NOT IN` evaluate to NULL rather than false, and a CHECK rejects only on FALSE. The first draft of this predicate had that hole; it was found by running it against a real Postgres, not by reading it.
125
+
126
+ ## Who is affected
127
+
128
+ - **Anyone inserting rows built by `AuthorizationPolicyBuilder`.** The row now carries `domainType` and `domainId`. Like `subjectId`/`targetId`, `domainId` is typed `IdType` on the builder and narrowed by your column - **narrow it at the insert site** the same way you already narrow the other two.
129
+ - **Anyone reading `domain` directly.** Unchanged in Release A. Release B removes the column; move reads to the pair before then.
130
+ - **Applications sharing this table via `extraVariants`.** Nothing changes - the new columns are nullable and the CHECK admits all-null.
131
+ - **Anyone writing a non-`{ ops }` shape into `metadata`.** It was `unknown` and is now typed - supply your shape as the `Metadata` type parameter, or map a different column via `entities.policyDefinition.metadata.columnName`.
132
+
133
+ ## `metadata` is typed now, and extensible
134
+
135
+ `metadata` was `jsonb('metadata')` with no `$type<>()`, so it read back as `unknown` - every consumer
136
+ narrowed it by hand, and a wrong shape on the way in compiled fine.
137
+
138
+ It now carries `TSubsetGrantMetadata` (`{ ops: string[] }`), the shape IGNIS itself writes with
139
+ `customGrant` and reads back with `parseCustomGrantMetadata`:
140
+
141
+ ```typescript
142
+ await repository.create({ data: { ..., metadata: { notOps: 1 } } }); // now a compile error
143
+ ```
144
+
145
+ **A fixed shape would have been the wrong trade**, so it is a type parameter, defaulted:
146
+
147
+ ```typescript
148
+ // default - nothing to write
149
+ extraPolicyDefinitionColumns({ idType: 'string' })
150
+
151
+ // an application storing its own metadata on this column
152
+ type IMerchantPolicyMetadata = { ops: string[]; issuedBy: string };
153
+
154
+ extraPolicyDefinitionColumns<{ idType: 'string' }, IMerchantPolicyMetadata>({ idType: 'string' })
155
+ ```
156
+
157
+ `Metadata` is a **type parameter rather than a field on `opts`** because, unlike `extraVariants`,
158
+ there is no runtime value to infer a shape from. The cost: a caller who supplies it must spell
159
+ `Opts` too, since TypeScript has no partial type-argument inference. That cost falls only on callers
160
+ who opt in.
161
+
162
+ > [!TIP]
163
+ > Keep `ops` in a custom shape if the application also issues subset grants - `customGrant` writes it.
164
+ > An incompatible shape then surfaces as a type error at the insert site instead of a null at read time.
165
+
166
+ ## Details
167
+
168
+ - `AuthorizationPolicyBuilder.splitDomain` is the counterpart to `serializeDomain`; the three domain-carrying emitters (`grant`, `customGrant`, `assignRole`) call both. `joinDomain`, `roleInherits` and `domainInherits` never carried a `domain` - they already used typed pairs.
169
+ - The CHECK helper returns **text**, not a Drizzle `SQL` object: a column reference inside a `sql` template renders schema-qualified (`"table"."column"`), which is not valid inside a table-level CHECK.
170
+ - No enforcement path changed. The adapter still reads `domain`, and `ScopedCasbinAdapter`'s whitelist rule (`variant = <known value>`, never `NOT IN`) is untouched.
171
+
172
+ | File | Package |
173
+ |------|---------|
174
+ | `src/base/auth/authorize/builders/policy.builder.ts` | kernel |
175
+ | `src/components/auth/models/entities/policy-definition.model.ts` | core-server |
@@ -0,0 +1,77 @@
1
+ ---
2
+ title: An Application Refuses to Start When scopeFilter Cannot Take Effect
3
+ description: Two boot checks turn the two silent failure modes of settings.scopeFilter - a search-backed model returning more rows, a context-less one returning none - into a startup error that names the model.
4
+ ---
5
+
6
+ # Changelog - 2026-08-31
7
+
8
+ ## scopeFilter boot checks
9
+
10
+ <Badge type="tip" text="Security" /> <Badge type="warning" text="Behavior Change" />
11
+
12
+ **In one line.** Declaring `settings.scopeFilter` where it cannot be honoured now stops the application at boot, naming the model, instead of failing silently on every query.
13
+
14
+ ## The two ways it was silent
15
+
16
+ `scopeFilter` is honoured by relational repositories, reading the ambient request context. Two configurations break that, and until now both were quiet:
17
+
18
+ | Configuration | What actually happened | Which direction it fails |
19
+ |---|---|---|
20
+ | The model is search-backed | The setting is never read; no scope is applied | **More rows** than intended |
21
+ | `asyncContext.enable` is `false` | `resolve()` sees no context, `onMissing` denies | **Zero rows**, on every query |
22
+
23
+ Neither threw. Neither logged. The first is the more dangerous of the two: on the relational path a missing scope **denies**, so a mistake shows up as an empty list somebody investigates - on the search path the same mistake shows up as a **wider** result, which looks like it worked.
24
+
25
+ The second is quieter than it sounds. Every query on the model matches nothing, and no error anywhere names `asyncContext.enable` as the cause - so the search for the bug starts in the resolver, which is correct.
26
+
27
+ ## What happens now
28
+
29
+ Both are checked once, at the end of application startup, after components have contributed their models:
30
+
31
+ ```
32
+ [assertScopeFilterSupported] settings.scopeFilter on a search-backed model | models: ProductDocument
33
+ | Search repositories never read this setting, so no row scope is applied.
34
+ | Unlike the relational path, a missing scope here returns MORE rows rather than none - nothing
35
+ fails, the result is just wider.
36
+ | Scope the search query in the application, and remove settings.scopeFilter from the model.
37
+ ```
38
+
39
+ ```
40
+ [assertScopeFilterSupported] settings.scopeFilter declared while asyncContext.enable is false
41
+ | models: Order, Invoice
42
+ | scopeFilter.resolve() takes no arguments, so the ambient request context is its only input.
43
+ | With no context store every resolve() returns undefined, onMissing denies by default, and EVERY
44
+ query on these models matches zero rows - with nothing naming the flag as the cause.
45
+ | Set asyncContext.enable to true, or remove settings.scopeFilter.
46
+ ```
47
+
48
+ The search case is reported first when both apply: it needs a code change, while the other may be one line of config.
49
+
50
+ ## Who is affected
51
+
52
+ - **Applications that already work.** Nothing changes. `asyncContext.enable` defaults to **`true`** for any server application, so a model with `scopeFilter` on a relational repository was already in the supported configuration.
53
+ - **Anyone who set `asyncContext: { enable: false }` explicitly** and also declares `scopeFilter`. That combination never worked - every query on those models returned nothing - and now says so at boot.
54
+ - **Anyone who put `scopeFilter` on a search-backed model** expecting it to apply. It never did.
55
+
56
+ ## Booting outside the standard application
57
+
58
+ The check is a plain function, so a custom host can call it directly:
59
+
60
+ ```typescript
61
+ import { assertScopeFilterSupported } from '@venizia/ignis-connectors';
62
+
63
+ assertScopeFilterSupported({ asyncContextEnabled: true });
64
+ ```
65
+
66
+ It lives in `connectors` rather than the server layer because that is the package that both **applies** `scopeFilter` (relational) and **ignores** it (search). The caller passes `asyncContextEnabled`, so no application config type reaches into the connector tier.
67
+
68
+ ## Details
69
+
70
+ - The scan reads `MetadataRegistry.getAllModels()`, so a model contributed by a component is covered - the call sits after `postConfigure()` for exactly that reason.
71
+ - A model is treated as search-backed by its class, not its datasource: `BaseSearchEntity` in the prototype chain. A model with no `scopeFilter` is skipped before any of this.
72
+ - This does not make `scopeFilter` work on search. It makes the gap loud. Scoping a search query is still the application's job - see the row-scope changelog for why that boundary is where it is.
73
+
74
+ | File | Package |
75
+ |------|---------|
76
+ | `src/common/scope-filter.ts` | connectors |
77
+ | `src/base/applications/base.ts` | core-server |
@@ -0,0 +1,71 @@
1
+ ---
2
+ title: Bundled and Compiled Apps - Helpers Exports Stay Defined, NODE_ENV Stays a Runtime Read, One Logger Provider Across Copies
3
+ description: bun build no longer leaves Environment, applicationEnvironment and LoggerFactory undefined; NODE_ENV is read at run time through Environment.ambient; a compiled binary shares one logger provider between its two helpers copies
4
+ ---
5
+
6
+ # Changelog - 2026-09-02
7
+
8
+ ## Bundle-safe helpers
9
+
10
+ <Badge type="info" text="Bug Fix" /> <Badge type="tip" text="Enhancement" />
11
+
12
+ **In one line.** An IGNIS application built with `bun build` - and a binary built with `bun build --compile` - now starts, reads `NODE_ENV` at run time, and logs through the provider you registered.
13
+
14
+ ## The problem it solves
15
+
16
+ A bundle of one line, `import { Environment } from '@venizia/ignis-helpers'`, printed `undefined`. Every compiled example crashed at import. Three separate causes, all fixed:
17
+
18
+ | Cause | Symptom | Fix |
19
+ |---|---|---|
20
+ | A dynamic `import('./x')` of our own module in the secrets factory | bun wrapped `env`, `logger` and `BaseHelper` in lazy initializers the barrel never ran | Static imports; the optional peers stay behind `ModuleUtility.load` |
21
+ | `bun build` folds `process.env.NODE_ENV` into the build machine's value | A binary built on a laptop believed it was in `development` forever | `Environment.ambient`, a read the bundler cannot fold; compile with `--env=disable` |
22
+ | A bundle carries helpers twice (your ESM import, core's CJS require) | `LoggerFactory.use()` in your entrypoint was invisible to the framework's copy | The provider lives in one `globalThis` slot shared by both copies |
23
+
24
+ ## What changed
25
+
26
+ - **`Environment.ambient`** (new): `NODE_ENV` exactly as the process has it, `undefined` when unset. `Environment.current` now derives from it. The error middleware's production check, the request spy and the logger debug gate read it.
27
+ - **`LoggerFactory.use({ provider })`** publishes the provider to `globalThis[Symbol.for('ignis:logger-provider')]`; `currentProvider()` reads it before loading the winston default.
28
+ - **Secrets factory** imports `HashiCorpVaultHelper` and `DotenvVaultHelper` statically. `node-vault` and `@dotenvx/dotenvx` are still loaded only when a provider is instantiated.
29
+ - **Examples** compile with `--minify-whitespace --minify-syntax --env=disable`, register `WinstonLogger` at the entrypoint, and build every binding key from `Class.name`.
30
+
31
+ ## Who is affected
32
+
33
+ - **Applications that run `tsc` output or source directly.** No behavior change. `Environment.current` returns the same values as before.
34
+ - **Applications bundled with `bun build`, with or without `--compile`.** They work now. Add `--env=disable` to your build, register a logger provider at the entrypoint, and replace any literal binding key (`'services.UserService'`) with `BindingKeys.build({ namespace, key: UserService.name })` - see below.
35
+ - **Code that read `process.env.NODE_ENV` for a security decision.** Switch to `Environment.ambient`; the dot form is a compile-time constant in a bundle.
36
+
37
+ ## Compiling to a binary
38
+
39
+ bun renames every decorated class expression it bundles (`UserService` becomes `UserService2`, or `UserService_1` under `--minify-syntax`), and `--keep-names` does not restore it. Keys and log scopes built from `Class.name` stay consistent with each other; a string literal does not match them.
40
+
41
+ ```json
42
+ {
43
+ "scripts": {
44
+ "compile:linux": "bun build --compile --minify-whitespace --minify-syntax --sourcemap --env=disable --target=bun-linux-x64 ./src/index.ts --outfile ./dist/app"
45
+ }
46
+ }
47
+ ```
48
+
49
+ ```typescript
50
+ // src/index.ts
51
+ import { LoggerFactory } from '@venizia/ignis-helpers';
52
+ import { WinstonLogger } from '@venizia/ignis-helpers/winston';
53
+
54
+ LoggerFactory.use({ provider: WinstonLogger });
55
+ ```
56
+
57
+ Never `--minify` alone: it minifies identifiers and every class name becomes two letters.
58
+
59
+ ## Details
60
+
61
+ | Symbol | Change | Package |
62
+ |---|---|---|
63
+ | `Environment.ambient` | New | `helpers` |
64
+ | `Environment.current`, `ApplicationEnvironment.isDevelopment()` | Read through `ambient` | `helpers` |
65
+ | `LoggerFactory.use()`, `LoggerFactory.currentProvider()` | Shared `globalThis` slot | `helpers` |
66
+ | `createSecretsHelper` | Static provider imports | `helpers` |
67
+ | `SHOULD_LOG_DEBUG` | Reads `Environment.ambient` | `helpers` |
68
+ | `AppErrorMiddleware`, `RequestSpyMiddleware` | Read `Environment.ambient` | `core-server` |
69
+
70
+ - Guards: `packages/helpers/src/__tests__/env/bundle-safe-reads.test.ts`, `packages/helpers/src/__tests__/logger/provider-slot.test.ts`.
71
+ - Reference: [Logger](/extensions/helpers/logger/reference). Worked example: `examples/vert`.
@@ -0,0 +1,119 @@
1
+ ---
2
+ title: Artifacts Register From a Generated Index, and the Runtime Boot System Is Retired
3
+ description: Decorate a class, generate one index at build time, pass it in the config - application.ts lists nothing; Bootstrapper, booters and boot() are gone
4
+ ---
5
+
6
+ # Changelog - 2026-09-02
7
+
8
+ ## Decorator-driven artifact registration
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="warning" text="Breaking Change" />
11
+
12
+ **In one line.** A class says what it is with a decorator, a build-time generator lists every such class in one file, and the application registers that file - so `application.ts` stops naming controllers, services, repositories, datasources and components one by one.
13
+
14
+ ## The problem it solves
15
+
16
+ Registration by hand grows with the codebase: one production `application.ts` reached 286 lines and 99 `this.controller(...)`-style calls, and every forgotten call was a runtime 404. The runtime boot system that was meant to replace it globbed the file system, which a compiled binary (`bun build --compile`) cannot do. The generated index is plain imports the bundler sees.
17
+
18
+ ```typescript
19
+ @service()
20
+ export class PricingService extends BaseService {}
21
+
22
+ export const configs: IApplicationConfigs = {
23
+ path: { base: '/api', isStrict: true },
24
+ artifacts: [GeneratedArtifacts, { components: [HealthCheckComponent] }],
25
+ };
26
+ ```
27
+
28
+ ## What changed
29
+
30
+ - **Stereotypes.** `@injectable({ type })` is the root; `@service()` and `@component()` are new; `@controller`, `@repository`, `@datasource`, `@model` now record the same metadata. All accept `binding`, `allowOverride`, `scope`, `order` and `when` (a sync or async condition).
31
+ - **`@provide({ key, scope? })`.** A component method becomes the lazy provider of a binding key - the place for the options a framework component reads, instead of `this.bind(...).toValue(...)` before `this.component(...)`.
32
+ - **`configs.artifacts` and a boot step.** `registerArtifacts` runs between `staticConfigure` and `preConfigure`, registers datasources, components, repositories, services, controllers in that order, honours `when` and `order`, and binds `@provide` keys. Indexes compose: `artifacts: [LibraryArtifacts, GeneratedArtifacts]`.
33
+ - **`ignis-artifacts` CLI.** `@venizia/ignis-boot` is now a build-time generator over the TypeScript AST: `generate` writes `src/generated/artifacts.ts`, `check` fails lint when it is stale. Also available as `generateArtifactIndex` / `checkArtifactIndex` from `@venizia/ignis-boot/generator`.
34
+ - **`controller()` binds `SINGLETON`.** The REST component mounts the one instance it resolves; a second resolution now returns that instance.
35
+ - **Boot sequence as data.** Step names are const classes (`BootSteps`, `ServerBootSteps`), each step logs `Boot step n/14 <name>`, and `BootSequence.insertAfter` refuses an unknown or ambiguous target.
36
+ - **`@venizia/ignis-inversion` no longer ships compiled tests** in `dist`; `bun test` reports 38 tests instead of three times that.
37
+
38
+ ## Who is affected
39
+
40
+ - **Applications that register by hand in `preConfigure()`.** Nothing breaks; the six methods keep working and now read decorator defaults. Migrate when convenient - see the [guide](/guides/core-concepts/application/bootstrapping).
41
+ - **Applications that call `application.boot()` in `index.ts`.** It compiles and warns once; the call does nothing. Replace the chain with one `await application.start()`.
42
+ - **Applications with `bootOptions` in the config or an `override boot()`.** Both still type-check and are ignored. Delete them.
43
+ - **Applications that call `this.booter()`, `registerBooters()`, or import `Bootstrapper`, a booter class or `BootMixin`.** These are removed - action required, below.
44
+ - **Applications that passed `TMixinOpts.args`.** Removed; no framework method ever read it.
45
+ - **Code that relied on a fresh controller instance per `get`.** `controller()` is `SINGLETON` now.
46
+
47
+ ## Breaking changes
48
+
49
+ > [!WARNING]
50
+ > The runtime boot system is gone. Anything that imported it from `@venizia/ignis-boot` or called `booter()` no longer compiles.
51
+
52
+ **Before:**
53
+
54
+ ```typescript
55
+ // index.ts
56
+ application.boot().then(() => application.start());
57
+
58
+ // application.ts
59
+ export const configs: IApplicationConfigs = {
60
+ path: { base: '/api', isStrict: true },
61
+ bootOptions: { controllers: { dirs: ['controllers'] }, services: { dirs: ['services'] } },
62
+ };
63
+
64
+ export class Application extends BaseApplication {
65
+ preConfigure() {
66
+ this.booter(CustomBooter);
67
+ this.bind({ key: HealthCheckBindingKeys.HEALTH_CHECK_OPTIONS }).toValue({ restOptions: { path: '/health' } });
68
+ this.component(HealthCheckComponent);
69
+ this.service(PricingService);
70
+ }
71
+ }
72
+ ```
73
+
74
+ **After:**
75
+
76
+ ```typescript
77
+ // index.ts
78
+ await application.start();
79
+
80
+ // application.ts
81
+ export const configs: IApplicationConfigs = {
82
+ path: { base: '/api', isStrict: true },
83
+ artifacts: [GeneratedArtifacts, { components: [HealthCheckComponent] }],
84
+ };
85
+
86
+ // components/platform.component.ts
87
+ @component()
88
+ export class PlatformComponent extends BaseComponent {
89
+ @provide({ key: HealthCheckBindingKeys.HEALTH_CHECK_OPTIONS })
90
+ healthCheckOptions(): IHealthCheckOptions {
91
+ return { restOptions: { path: '/health' } };
92
+ }
93
+ }
94
+ ```
95
+
96
+ Migration:
97
+
98
+ 1. Add `@venizia/ignis-boot` as a devDependency; add `generate:artifacts` and `check:artifacts` scripts.
99
+ 2. Put `@service()` on services and `@component()` on components.
100
+ 3. Run `bun run generate:artifacts`, commit `src/generated/artifacts.ts`, wire `check:artifacts` into lint.
101
+ 4. Set `configs.artifacts`; delete the registration calls, `bootOptions`, `override boot()` and the `.boot()` chain.
102
+ 5. Move option bindings into `@provide` methods; keep registry calls (`AuthenticationStrategyRegistry`, `AuthorizationEnforcerRegistry`) in `preConfigure()` / `postConfigure()`.
103
+
104
+ ## Details
105
+
106
+ | Symbol | Change | Package |
107
+ |---|---|---|
108
+ | `injectable`, `service`, `component`, `provide`, `pickRegistrationOptions` | New | `kernel` |
109
+ | `ArtifactTypes`, `IArtifactRegistrationOptions`, `IArtifactMetadata`, `IProvideMetadata`, `TArtifactCondition` | New | `kernel` |
110
+ | `IArtifactIndex`, `TArtifactIndexInput`, `IApplicationConfigs.artifacts` | New | `kernel` |
111
+ | `RestApplication.registerArtifacts()`, `registerConfiguredArtifacts()`, `BootSteps.REGISTER_ARTIFACTS` | New | `kernel` |
112
+ | `ServerBootSteps` | New | `core-server` |
113
+ | `BaseApplication.boot()` | Deprecated no-op | `core-server` |
114
+ | `BaseApplication.booter()`, `registerBooters()` | Removed | `core-server` |
115
+ | `Bootstrapper`, `BaseArtifactBooter`, the four booters, `BootMixin`, `discoverFiles`, `loadClasses`, `isClass` | Removed | `boot` |
116
+ | `ignis-artifacts`, `generateArtifactIndex`, `checkArtifactIndex`, `ArtifactScanner`, `ArtifactIndexEmitter` | New | `boot` |
117
+ | `TMixinOpts.args` | Removed | `kernel` |
118
+
119
+ - Reference: [Artifact Registration](/references/base/bootstrapping). Guide: [Registering artifacts](/guides/core-concepts/application/bootstrapping). Worked example: `examples/vert`.