@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
package/LICENSE.md ADDED
@@ -0,0 +1,104 @@
1
+ # Ignis Framework License
2
+
3
+ Ignis is a TypeScript Server Infrastructure framework built on [Hono](https://hono.dev/).
4
+
5
+ ## MIT License
6
+
7
+ Copyright (c) 2025 VENIZIA Ltd. Co.
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ ---
28
+
29
+ ## Packages
30
+
31
+ This monorepo contains the following packages, all licensed under MIT:
32
+
33
+ | Package | Description |
34
+ |---------|-------------|
35
+ | `@venizia/ignis` | Core framework - controllers, services, decorators |
36
+ | `@venizia/ignis-boot` | Application bootstrapping & artifact auto-discovery |
37
+ | `@venizia/ignis-helpers` | Utility helpers - logging, cron, Redis, queues, storage |
38
+ | `@venizia/ignis-inversion` | Dependency Injection & IoC container |
39
+ | `@venizia/dev-configs` | Shared ESLint, Prettier, TypeScript configurations |
40
+ | `@venizia/ignis-docs` | Documentation and MCP Server |
41
+
42
+ ---
43
+
44
+ ## Third-Party Dependencies
45
+
46
+ Ignis uses the following open-source libraries. We are grateful to the authors and contributors of these projects.
47
+
48
+ ### Core Dependencies
49
+
50
+ | Library | License | Description |
51
+ |---------|---------|-------------|
52
+ | [Hono](https://github.com/honojs/hono) | MIT | Ultrafast web framework |
53
+ | [Zod](https://github.com/colinhacks/zod) | MIT | TypeScript-first schema validation |
54
+ | [Drizzle ORM](https://github.com/drizzle-team/drizzle-orm) | Apache-2.0 | TypeScript ORM |
55
+ | [Jose](https://github.com/panva/jose) | MIT | JavaScript Object Signing and Encryption |
56
+
57
+ ### Helpers Dependencies
58
+
59
+ | Library | License | Description |
60
+ |---------|---------|-------------|
61
+ | [Winston](https://github.com/winstonjs/winston) | MIT | Universal logging library |
62
+ | [BullMQ](https://github.com/taskforcesh/bullmq) | MIT | Message queue and job scheduling |
63
+ | [IORedis](https://github.com/redis/ioredis) | MIT | Redis client for Node.js |
64
+ | [MinIO](https://github.com/minio/minio-js) | Apache-2.0 | S3-compatible object storage client |
65
+ | [Axios](https://github.com/axios/axios) | MIT | HTTP client |
66
+ | [Day.js](https://github.com/iamkun/dayjs) | MIT | Date manipulation library |
67
+ | [Cron](https://github.com/kelektiv/node-cron) | MIT | Cron job scheduler |
68
+ | [Socket.IO](https://github.com/socketio/socket.io) | MIT | Real-time bidirectional communication |
69
+ | [MQTT.js](https://github.com/mqttjs/MQTT.js) | MIT | MQTT client |
70
+
71
+ ### Utility Dependencies
72
+
73
+ | Library | License | Description |
74
+ |---------|---------|-------------|
75
+ | [Lodash](https://github.com/lodash/lodash) | MIT | Utility library |
76
+ | [reflect-metadata](https://github.com/rbuckton/reflect-metadata) | Apache-2.0 | Metadata reflection API |
77
+ | [glob](https://github.com/isaacs/node-glob) | ISC | File pattern matching (used by boot) |
78
+
79
+ ### Documentation Dependencies
80
+
81
+ | Library | License | Description |
82
+ |---------|---------|-------------|
83
+ | [VitePress](https://github.com/vuejs/vitepress) | MIT | Static site generator |
84
+ | [Fuse.js](https://github.com/krisk/fuse) | Apache-2.0 | Fuzzy search library |
85
+ | [gray-matter](https://github.com/jonschlinkert/gray-matter) | MIT | Front-matter parser |
86
+
87
+ ---
88
+
89
+ ## Acknowledgments
90
+
91
+ Ignis Framework is inspired by and built upon the work of many open-source projects:
92
+
93
+ - **[Hono](https://hono.dev/)** by Yusuke Wada - The ultrafast web framework that powers Ignis
94
+ - **[LoopBack 4](https://loopback.io/)** by IBM/StrongLoop - Inspiration for the enterprise architecture patterns
95
+ - **[NestJS](https://nestjs.com/)** by Kamil Mysliwiec - Inspiration for decorator-based controllers
96
+ - **[InversifyJS](https://inversify.io/)** - Inspiration for the IoC container design
97
+
98
+ We thank all the maintainers and contributors of these projects for their excellent work.
99
+
100
+ ---
101
+
102
+ ## Contributing
103
+
104
+ By contributing to Ignis, you agree that your contributions will be licensed under the MIT License.
package/README.md ADDED
@@ -0,0 +1,144 @@
1
+ <div align="center">
2
+
3
+ <br />
4
+
5
+ # :fire: IGNIS - `@venizia/ignis-atlas`
6
+
7
+ **MCP server for IGNIS: search and read the wiki, changelogs and knowledge bundle by section.**
8
+
9
+ [![Docs](https://img.shields.io/badge/Docs-ignis.venizia.ai-2563EB.svg?style=flat-square)](https://ignis.venizia.ai/extensions/atlas)
10
+ [![npm](https://img.shields.io/npm/v/@venizia/ignis-atlas.svg?style=flat-square&color=cb3837&label=@venizia/ignis-atlas)](https://www.npmjs.com/package/@venizia/ignis-atlas)
11
+ [![License: MIT](https://img.shields.io/badge/License-MIT-3DA639.svg?style=flat-square)](LICENSE.md)
12
+
13
+ [Atlas on the wiki](https://ignis.venizia.ai/extensions/atlas) &#8226;
14
+ [Changelog](https://ignis.venizia.ai/changelogs/2026-09-06-ignis-atlas)
15
+
16
+ </div>
17
+
18
+ ---
19
+
20
+ `@venizia/ignis-atlas` answers "what does the manual say" over three corpora - the wiki, the
21
+ changelogs and the agent-facing knowledge bundle - with a citation on every hit, over stdio
22
+ JSON-RPC.
23
+
24
+ **Bun-only.** The index runs on `bun:sqlite` FTS5, so a Node host cannot start this server.
25
+
26
+ ## Add it to an MCP client
27
+
28
+ For a published release, run it with `bunx`:
29
+
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "ignis-atlas": {
34
+ "command": "bunx",
35
+ "args": ["@venizia/ignis-atlas", "mcp"]
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ This reads the wiki and the changelogs packaged with the release you installed, not your working
42
+ tree.
43
+
44
+ Working inside the IGNIS monorepo, point `command` at the checkout instead:
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "ignis-atlas": {
50
+ "command": "bun",
51
+ "args": ["packages/atlas/src/cli.ts", "mcp"]
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ A checkout also indexes the knowledge bundle, and re-checks the corpus for changes before every
58
+ call.
59
+
60
+ ## Tools
61
+
62
+ ### `search`
63
+
64
+ Search for chunks matching a keyword query, ranked by relevance.
65
+
66
+ ```
67
+ search({ query: "hidden fields on write" })
68
+ ```
69
+
70
+ ```json
71
+ {
72
+ "total": 395,
73
+ "returned": 3,
74
+ "hits": [
75
+ {
76
+ "id": "okf:architecture/search-typesense.md#hidden-fields-on-the-write-path",
77
+ "corpus": "knowledge",
78
+ "title": "Hidden fields on the write path",
79
+ "headingPath": "Typesense search connector > Hidden fields on the write path",
80
+ "anchor": "hidden-fields-on-the-write-path",
81
+ "snippet": "... Search [write] responses therefore used to leak [hidden] properties ...",
82
+ "score": -16.03
83
+ }
84
+ ]
85
+ }
86
+ ```
87
+
88
+ | Input | Type | Default |
89
+ | :--- | :--- | :--- |
90
+ | `query` | string, 2+ characters | required |
91
+ | `corpus` | `all`, `wiki`, `changelog`, `knowledge` | `all` |
92
+ | `limit` | integer, 1-50 | `10` |
93
+ | `offset` | integer, 0+ | `0` |
94
+
95
+ The reply-size budget can return fewer hits than `limit`. Page with `offset: nextOffset`, not
96
+ `offset + limit` - a page the budget trimmed would otherwise be skipped.
97
+
98
+ ### `get`
99
+
100
+ Read one chunk's body by an id a search hit returned, or a whole document with its `#anchor`
101
+ dropped.
102
+
103
+ ```
104
+ get({ id: "okf:architecture/search-typesense.md#hidden-fields-on-the-write-path" })
105
+ ```
106
+
107
+ ```json
108
+ {
109
+ "id": "okf:architecture/search-typesense.md#hidden-fields-on-the-write-path",
110
+ "title": "Hidden fields on the write path",
111
+ "headingPath": "Typesense search connector > Hidden fields on the write path",
112
+ "body": "This is the non-derivable one. Reads exclude `@model({ settings: { hiddenProperties } })` at query time via the engine's exclude-fields parameter - but a write response comes back from the write itself and never passes through that filter. ..."
113
+ }
114
+ ```
115
+
116
+ | Input | Type | Default |
117
+ | :--- | :--- | :--- |
118
+ | `id` | string, from a search hit | required |
119
+ | `maxChars` | integer, 500-50000 | `8000` |
120
+ | `cursor` | string, from a previous reply's `next` | start of the body |
121
+
122
+ A body longer than `maxChars` returns `next`; pass it back as `cursor` for the following page.
123
+
124
+ ## `--root`
125
+
126
+ `--root <dir>` points the server at an IGNIS checkout, or a directory holding a packaged snapshot.
127
+ It defaults to the current working directory.
128
+
129
+ ## Exit codes
130
+
131
+ | Code | Meaning |
132
+ | :--- | :--- |
133
+ | `0` | The client closed the connection. |
134
+ | `1` | An error during startup, or while running a tool call. |
135
+ | `2` | Bad arguments, or neither a checkout nor a packaged snapshot was found. |
136
+
137
+ ## Links
138
+
139
+ [Documentation](https://ignis.venizia.ai) &#8226;
140
+ [Atlas on the wiki](https://ignis.venizia.ai/extensions/atlas) &#8226;
141
+ [Changelog](https://ignis.venizia.ai/changelogs/2026-09-06-ignis-atlas)
142
+
143
+ MIT licensed - see [LICENSE.md](LICENSE.md).
144
+ Questions: [GitHub Issues](https://github.com/VENIZIA-AI/ignis/issues) &#8226; developer@venizia.ai
@@ -0,0 +1,29 @@
1
+ import type { TAtlasMode } from '../common';
2
+ /** A `root`/`packageDirectory` pair that satisfies neither repo mode nor snapshot mode. */
3
+ export declare class ModeUsageError extends Error {
4
+ }
5
+ export interface IResolvedMode {
6
+ mode: TAtlasMode;
7
+ root: string;
8
+ }
9
+ /** The located package's own `version` - read fresh so a release bump is never stale in the running server. */
10
+ export declare const readPackageVersion: (opts: {
11
+ directory: string;
12
+ }) => string | undefined;
13
+ /**
14
+ * Walks up from `startDirectory` (source runs from `src/`, the built CLI from `dist/cjs/` - a
15
+ * fixed number of `..` segments is wrong for one of the two) until it finds the directory whose
16
+ * `package.json` names this package. Never guesses from path shape; always reads and compares.
17
+ */
18
+ export declare const findPackageDirectory: (opts: {
19
+ startDirectory: string;
20
+ }) => string;
21
+ /**
22
+ * Repo mode wins when `root` is a checkout; otherwise the packaged snapshot next to
23
+ * `packageDirectory`; otherwise a `ModeUsageError` naming both paths it checked.
24
+ */
25
+ export declare const resolveMode: (opts: {
26
+ root: string;
27
+ packageDirectory: string;
28
+ }) => IResolvedMode;
29
+ //# sourceMappingURL=modes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modes.d.ts","sourceRoot":"","sources":["../../../src/cli/modes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAa3C,2FAA2F;AAC3F,qBAAa,cAAe,SAAQ,KAAK;CAAG;AAE5C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAmBD,+GAA+G;AAC/G,eAAO,MAAM,kBAAkB,GAAI,MAAM;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,KAAG,MAAM,GAAG,SAC7C,CAAC;AAc9B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,KAAG,MAYvE,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,KAAG,aAc9E,CAAC"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveMode = exports.findPackageDirectory = exports.readPackageVersion = exports.ModeUsageError = void 0;
4
+ const common_1 = require("../common");
5
+ const core_1 = require("@venizia/ignis-helpers/core");
6
+ const node_fs_1 = require("node:fs");
7
+ const node_path_1 = require("node:path");
8
+ // The npm package name, not `AtlasConstants.SERVER_NAME` (`ignis-atlas`, the bin/MCP server name) -
9
+ // this is what identifies the package directory itself, from its own `package.json`.
10
+ const PACKAGE_NAME = '@venizia/ignis-atlas';
11
+ const REPOSITORY_WIKI_MARKER = 'docs/wiki/content';
12
+ const REPOSITORY_KNOWLEDGE_MARKER = '.agents/knowledge';
13
+ const SNAPSHOT_DIRECTORY = 'dist/corpus';
14
+ /** A `root`/`packageDirectory` pair that satisfies neither repo mode nor snapshot mode. */
15
+ class ModeUsageError extends Error {
16
+ }
17
+ exports.ModeUsageError = ModeUsageError;
18
+ const readManifest = (opts) => {
19
+ const manifestPath = (0, node_path_1.join)(opts.directory, 'package.json');
20
+ if (!(0, node_fs_1.existsSync)(manifestPath)) {
21
+ return undefined;
22
+ }
23
+ return JSON.parse((0, node_fs_1.readFileSync)(manifestPath, 'utf8'));
24
+ };
25
+ const readPackageName = (opts) => readManifest(opts)?.name;
26
+ /** The located package's own `version` - read fresh so a release bump is never stale in the running server. */
27
+ const readPackageVersion = (opts) => readManifest(opts)?.version;
28
+ exports.readPackageVersion = readPackageVersion;
29
+ /** `startDirectory` and every directory above it, up to and including the filesystem root. */
30
+ const ancestorsOf = (opts) => {
31
+ const { root } = (0, node_path_1.parse)(opts.startDirectory);
32
+ const chain = [opts.startDirectory];
33
+ while (chain[chain.length - 1] !== root) {
34
+ chain.push((0, node_path_1.dirname)(chain[chain.length - 1]));
35
+ }
36
+ return chain;
37
+ };
38
+ /**
39
+ * Walks up from `startDirectory` (source runs from `src/`, the built CLI from `dist/cjs/` - a
40
+ * fixed number of `..` segments is wrong for one of the two) until it finds the directory whose
41
+ * `package.json` names this package. Never guesses from path shape; always reads and compares.
42
+ */
43
+ const findPackageDirectory = (opts) => {
44
+ const found = ancestorsOf({ startDirectory: opts.startDirectory }).find(directory => readPackageName({ directory }) === PACKAGE_NAME);
45
+ if (!found) {
46
+ throw (0, core_1.getError)({
47
+ message: `[findPackageDirectory] no ${PACKAGE_NAME} package.json found | started at: ${opts.startDirectory}`,
48
+ });
49
+ }
50
+ return found;
51
+ };
52
+ exports.findPackageDirectory = findPackageDirectory;
53
+ const isRepositoryCheckout = (opts) => (0, node_fs_1.existsSync)((0, node_path_1.join)(opts.root, REPOSITORY_WIKI_MARKER)) &&
54
+ (0, node_fs_1.existsSync)((0, node_path_1.join)(opts.root, REPOSITORY_KNOWLEDGE_MARKER));
55
+ /**
56
+ * Repo mode wins when `root` is a checkout; otherwise the packaged snapshot next to
57
+ * `packageDirectory`; otherwise a `ModeUsageError` naming both paths it checked.
58
+ */
59
+ const resolveMode = (opts) => {
60
+ const { root, packageDirectory } = opts;
61
+ if (isRepositoryCheckout({ root })) {
62
+ return { mode: common_1.AtlasModes.REPOSITORY, root };
63
+ }
64
+ if ((0, node_fs_1.existsSync)((0, node_path_1.join)(packageDirectory, SNAPSHOT_DIRECTORY))) {
65
+ return { mode: common_1.AtlasModes.SNAPSHOT, root: (0, node_path_1.join)(packageDirectory, 'dist') };
66
+ }
67
+ throw new ModeUsageError(`no IGNIS checkout at ${root} and no packaged snapshot under ${packageDirectory} - pass --root <dir> pointing at a checkout`);
68
+ };
69
+ exports.resolveMode = resolveMode;
70
+ //# sourceMappingURL=modes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modes.js","sourceRoot":"","sources":["../../../src/cli/modes.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bun
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env bun
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const ignis_helpers_1 = require("@venizia/ignis-helpers");
5
+ const common_1 = require("./common");
6
+ const modes_1 = require("./cli/modes");
7
+ const logger_1 = require("./common/logger");
8
+ const server_1 = require("./server");
9
+ // Must run before any code that could log: this is the only place a provider is ever registered.
10
+ ignis_helpers_1.LoggerFactory.use({ provider: logger_1.StderrLogger });
11
+ const USAGE = `usage: ${common_1.AtlasConstants.SERVER_NAME} [mcp] [--root <dir>]`;
12
+ const messageOf = (error) => error instanceof Error ? error.message : String(error);
13
+ const usageError = (message) => {
14
+ console.error(`${common_1.AtlasConstants.SERVER_NAME}: ${message}\n${USAGE}`);
15
+ process.exit(2);
16
+ };
17
+ const readSubcommand = (opts) => {
18
+ const [first] = opts.argv;
19
+ return first === undefined || first.startsWith('--') ? 'mcp' : first;
20
+ };
21
+ const readRoot = (opts) => {
22
+ const index = opts.argv.indexOf('--root');
23
+ return index === -1 ? process.cwd() : (opts.argv[index + 1] ?? process.cwd());
24
+ };
25
+ // package.json has no version yet only in a manifest hand-edited before its first publish.
26
+ const FALLBACK_VERSION = '0.0.0';
27
+ /** Resolves `{ mode, root, version }` from `argv`, or prints usage and exits 2 - never throws. */
28
+ const resolveServerOptions = (opts) => {
29
+ try {
30
+ const packageDirectory = (0, modes_1.findPackageDirectory)({ startDirectory: __dirname });
31
+ const { mode, root } = (0, modes_1.resolveMode)({ root: readRoot({ argv: opts.argv }), packageDirectory });
32
+ const version = (0, modes_1.readPackageVersion)({ directory: packageDirectory }) ?? FALLBACK_VERSION;
33
+ return { mode, root, version };
34
+ }
35
+ catch (error) {
36
+ if (error instanceof modes_1.ModeUsageError) {
37
+ return usageError(error.message);
38
+ }
39
+ throw error;
40
+ }
41
+ };
42
+ const argv = process.argv.slice(2);
43
+ const subcommand = readSubcommand({ argv });
44
+ if (subcommand !== 'mcp') {
45
+ usageError(`unknown subcommand: ${subcommand}`);
46
+ }
47
+ const { mode, root, version } = resolveServerOptions({ argv });
48
+ try {
49
+ (0, server_1.buildServer)({ mode, root, version })
50
+ .run()
51
+ .catch((error) => {
52
+ console.error(`${common_1.AtlasConstants.SERVER_NAME}: ${messageOf(error)}`);
53
+ process.exit(1);
54
+ });
55
+ }
56
+ catch (error) {
57
+ console.error(`${common_1.AtlasConstants.SERVER_NAME}: ${messageOf(error)}`);
58
+ process.exit(1);
59
+ }
60
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,22 @@
1
+ export declare class AtlasConstants {
2
+ static readonly SERVER_NAME = "ignis-atlas";
3
+ static readonly PROTOCOL_VERSION = "2025-06-18";
4
+ static readonly SEARCH_BUDGET_CHARS = 2000;
5
+ static readonly GET_BUDGET_CHARS = 8000;
6
+ static readonly SNIPPET_MAX_CHARS = 300;
7
+ static readonly SEARCH_DEFAULT_LIMIT = 10;
8
+ }
9
+ export declare class AtlasModes {
10
+ static readonly REPOSITORY = "repo";
11
+ static readonly SNAPSHOT = "snapshot";
12
+ static readonly SCHEME_SET: Set<string>;
13
+ static isValid(value: string): boolean;
14
+ }
15
+ export declare class Corpora {
16
+ static readonly WIKI = "wiki";
17
+ static readonly CHANGELOG = "changelog";
18
+ static readonly KNOWLEDGE = "knowledge";
19
+ static readonly SCHEME_SET: Set<string>;
20
+ static isValid(value: string): boolean;
21
+ }
22
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAiB;IAC5C,MAAM,CAAC,QAAQ,CAAC,gBAAgB,gBAAgB;IAChD,MAAM,CAAC,QAAQ,CAAC,mBAAmB,QAAQ;IAC3C,MAAM,CAAC,QAAQ,CAAC,gBAAgB,QAAQ;IACxC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,OAAO;IACxC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,MAAM;CAC3C;AAED,qBAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CAAC,UAAU,UAAU;IACpC,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IACtC,MAAM,CAAC,QAAQ,CAAC,UAAU,cAAqD;IAC/E,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAGvC;AAED,qBAAa,OAAO;IAClB,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAU;IAC9B,MAAM,CAAC,QAAQ,CAAC,SAAS,eAAe;IACxC,MAAM,CAAC,QAAQ,CAAC,SAAS,eAAe;IACxC,MAAM,CAAC,QAAQ,CAAC,UAAU,cAAgE;IAC1F,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAGvC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Corpora = exports.AtlasModes = exports.AtlasConstants = void 0;
4
+ class AtlasConstants {
5
+ static { this.SERVER_NAME = 'ignis-atlas'; }
6
+ static { this.PROTOCOL_VERSION = '2025-06-18'; }
7
+ static { this.SEARCH_BUDGET_CHARS = 2000; }
8
+ static { this.GET_BUDGET_CHARS = 8000; }
9
+ static { this.SNIPPET_MAX_CHARS = 300; }
10
+ static { this.SEARCH_DEFAULT_LIMIT = 10; }
11
+ }
12
+ exports.AtlasConstants = AtlasConstants;
13
+ class AtlasModes {
14
+ static { this.REPOSITORY = 'repo'; }
15
+ static { this.SNAPSHOT = 'snapshot'; }
16
+ static { this.SCHEME_SET = new Set([this.REPOSITORY, this.SNAPSHOT]); }
17
+ static isValid(value) {
18
+ return this.SCHEME_SET.has(value);
19
+ }
20
+ }
21
+ exports.AtlasModes = AtlasModes;
22
+ class Corpora {
23
+ static { this.WIKI = 'wiki'; }
24
+ static { this.CHANGELOG = 'changelog'; }
25
+ static { this.KNOWLEDGE = 'knowledge'; }
26
+ static { this.SCHEME_SET = new Set([this.WIKI, this.CHANGELOG, this.KNOWLEDGE]); }
27
+ static isValid(value) {
28
+ return this.SCHEME_SET.has(value);
29
+ }
30
+ }
31
+ exports.Corpora = Corpora;
32
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;aACT,gBAAW,GAAG,aAAa,CAAC;aAC5B,qBAAgB,GAAG,YAAY,CAAC;aAChC,wBAAmB,GAAG,IAAI,CAAC;aAC3B,qBAAgB,GAAG,IAAI,CAAC;aACxB,sBAAiB,GAAG,GAAG,CAAC;aACxB,yBAAoB,GAAG,EAAE,CAAC;;AAN5C,wCAOC;AAED,MAAa,UAAU;aACL,eAAU,GAAG,MAAM,CAAC;aACpB,aAAQ,GAAG,UAAU,CAAC;aACtB,eAAU,GAAG,IAAI,GAAG,CAAS,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;;AANH,gCAOC;AAED,MAAa,OAAO;aACF,SAAI,GAAG,MAAM,CAAC;aACd,cAAS,GAAG,WAAW,CAAC;aACxB,cAAS,GAAG,WAAW,CAAC;aACxB,eAAU,GAAG,IAAI,GAAG,CAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1F,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;;AAPH,0BAQC"}
@@ -0,0 +1,3 @@
1
+ export * from './constants';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./constants"), exports);
18
+ __exportStar(require("./types"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB"}
@@ -0,0 +1,21 @@
1
+ import type { ILogger, TLogLevel } from '@venizia/ignis-helpers/core';
2
+ /**
3
+ * Registered via `LoggerFactory.use({ provider: StderrLogger })` at the CLI entrypoint, before any
4
+ * other import runs. Every level lands on `console.error` - stdout must carry only JSON-RPC frames.
5
+ */
6
+ export declare class StderrLogger implements ILogger {
7
+ private readonly scope;
8
+ private static readonly cache;
9
+ private readonly prefix;
10
+ private constructor();
11
+ static get(scope: string): ILogger;
12
+ private write;
13
+ debug(message: string, ...args: unknown[]): void;
14
+ info(message: string, ...args: unknown[]): void;
15
+ warn(message: string, ...args: unknown[]): void;
16
+ error(message: string, ...args: unknown[]): void;
17
+ emerg(message: string, ...args: unknown[]): void;
18
+ log(_level: TLogLevel, message: string, ...args: unknown[]): void;
19
+ for(methodName: string): ILogger;
20
+ }
21
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/common/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;GAGG;AACH,qBAAa,YAAa,YAAW,OAAO;IAItB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAH1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAmC;IAChE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC,OAAO;IAIP,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAWlC,OAAO,CAAC,KAAK;IAIb,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI/C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI/C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIjE,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;CAIjC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StderrLogger = void 0;
4
+ /**
5
+ * Registered via `LoggerFactory.use({ provider: StderrLogger })` at the CLI entrypoint, before any
6
+ * other import runs. Every level lands on `console.error` - stdout must carry only JSON-RPC frames.
7
+ */
8
+ class StderrLogger {
9
+ static { this.cache = new Map(); }
10
+ constructor(scope) {
11
+ this.scope = scope;
12
+ this.prefix = scope !== '' ? `[${scope}] ` : '';
13
+ }
14
+ static get(scope) {
15
+ const cached = this.cache.get(scope);
16
+ if (cached) {
17
+ return cached;
18
+ }
19
+ const created = new StderrLogger(scope);
20
+ this.cache.set(scope, created);
21
+ return created;
22
+ }
23
+ write(opts) {
24
+ console.error(`${this.prefix}${opts.message}`, ...opts.args);
25
+ }
26
+ debug(message, ...args) {
27
+ this.write({ message, args });
28
+ }
29
+ info(message, ...args) {
30
+ this.write({ message, args });
31
+ }
32
+ warn(message, ...args) {
33
+ this.write({ message, args });
34
+ }
35
+ error(message, ...args) {
36
+ this.write({ message, args });
37
+ }
38
+ emerg(message, ...args) {
39
+ this.write({ message, args });
40
+ }
41
+ log(_level, message, ...args) {
42
+ this.write({ message, args });
43
+ }
44
+ for(methodName) {
45
+ const childScope = this.scope !== '' ? `${this.scope}-${methodName}` : methodName;
46
+ return StderrLogger.get(childScope);
47
+ }
48
+ }
49
+ exports.StderrLogger = StderrLogger;
50
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/common/logger.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,YAAY;aACC,UAAK,GAAG,IAAI,GAAG,EAAwB,CAAC;IAGhE,YAAqC,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;QAChD,IAAI,CAAC,MAAM,GAAG,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,KAAa;QACtB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC/B,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,KAAK,CAAC,IAA0C;QACtD,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,OAAe,EAAE,GAAG,IAAe;QACvC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,CAAC,OAAe,EAAE,GAAG,IAAe;QACtC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,CAAC,OAAe,EAAE,GAAG,IAAe;QACtC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,OAAe,EAAE,GAAG,IAAe;QACvC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,OAAe,EAAE,GAAG,IAAe;QACvC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChC,CAAC;IAED,GAAG,CAAC,MAAiB,EAAE,OAAe,EAAE,GAAG,IAAe;QACxD,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChC,CAAC;IAED,GAAG,CAAC,UAAkB;QACpB,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;QAClF,OAAO,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;;AAlDH,oCAmDC"}
@@ -0,0 +1,5 @@
1
+ import type { TConstValue } from '@venizia/ignis-helpers/common';
2
+ import type { AtlasModes, Corpora } from './constants';
3
+ export type TAtlasMode = TConstValue<typeof AtlasModes>;
4
+ export type TCorpus = TConstValue<typeof Corpora>;
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;AACxD,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/common/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { BaseHelper } from '@venizia/ignis-helpers/core';
2
+ import type { IChunk, IDocument } from './common';
3
+ /** Splits a document into H2/H3 sections: never inside a fence, tiny siblings merged, oversized ones paged. */
4
+ export declare class Chunker extends BaseHelper {
5
+ private static instance?;
6
+ private constructor();
7
+ static getInstance(): Chunker;
8
+ chunk(opts: {
9
+ document: IDocument;
10
+ }): IChunk[];
11
+ }
12
+ //# sourceMappingURL=chunker.d.ts.map