@classytic/arc 2.45.1 → 2.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +1 -1
  2. package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
  3. package/dist/{EventTransport-4b0noGwa.mjs → EventTransport-DNgD9NP4.mjs} +3 -4
  4. package/dist/{HookSystem-4pABQnGn.mjs → HookSystem-DRbPzEcP.mjs} +3 -4
  5. package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
  6. package/dist/{ResourceRegistry-BBaN_Ne-.mjs → ResourceRegistry-Douk51fa.mjs} +15 -4
  7. package/dist/{acquire-kiZzy5bX.mjs → acquire-RbtvDg9s.mjs} +2 -3
  8. package/dist/{actionPermissions-BLnbDA6g.mjs → actionPermissions-De0AJ7hm.mjs} +37 -42
  9. package/dist/audit/index.d.mts +2 -10
  10. package/dist/audit/index.mjs +8 -12
  11. package/dist/auth/audit.d.mts +0 -2
  12. package/dist/auth/audit.mjs +2 -3
  13. package/dist/auth/index.d.mts +9 -17
  14. package/dist/auth/index.mjs +26 -29
  15. package/dist/auth/redis-session.d.mts +2 -4
  16. package/dist/auth/redis-session.mjs +2 -3
  17. package/dist/{authorizationDecision-CVlaTjAX.mjs → authorizationDecision-DeZMrHcm.mjs} +5 -6
  18. package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
  19. package/dist/{boundedMap-DSy7KkeX.mjs → boundedMap-2WBh3gM9.mjs} +2 -3
  20. package/dist/{buildHandler-B4IhILv9.mjs → buildHandler-DxVOOBpw.mjs} +5 -6
  21. package/dist/cache/index.d.mts +4 -10
  22. package/dist/cache/index.mjs +5 -6
  23. package/dist/{caching-DqakP2vY.mjs → caching-BYRwYrUo.mjs} +3 -4
  24. package/dist/{claimed-XoiVrWZ2.mjs → claimed-DYlELdnm.mjs} +2 -3
  25. package/dist/cleanup/index.d.mts +9 -18
  26. package/dist/cleanup/index.mjs +12 -20
  27. package/dist/cli/commands/describe.d.mts +1 -3
  28. package/dist/cli/commands/describe.mjs +4 -5
  29. package/dist/cli/commands/docs.d.mts +1 -3
  30. package/dist/cli/commands/docs.mjs +4 -5
  31. package/dist/cli/commands/doctor.d.mts +1 -3
  32. package/dist/cli/commands/doctor.mjs +2 -3
  33. package/dist/cli/commands/generate.d.mts +1 -1
  34. package/dist/cli/commands/generate.mjs +2 -2
  35. package/dist/cli/commands/init.d.mts +1 -1
  36. package/dist/cli/commands/init.mjs +2 -2
  37. package/dist/cli/commands/introspect.d.mts +1 -3
  38. package/dist/cli/commands/introspect.mjs +3 -4
  39. package/dist/cli/index.d.mts +2 -2
  40. package/dist/cli/index.mjs +3 -3
  41. package/dist/{constants-CtWkmWn3.mjs → constants-CHZMUwBW.mjs} +2 -3
  42. package/dist/context/index.d.mts +0 -8
  43. package/dist/context/index.mjs +6 -7
  44. package/dist/core/index.d.mts +3 -3
  45. package/dist/core/index.mjs +8 -8
  46. package/dist/{core-Cro2v5a7.mjs → core-D9rS2BxO.mjs} +9 -12
  47. package/dist/{createActionRouter-k-gwiPv6.mjs → createActionRouter-0qkCRzTL.mjs} +7 -8
  48. package/dist/{createAggregationRouter-BqWqhAPG.mjs → createAggregationRouter-CUf5Esd9.mjs} +9 -10
  49. package/dist/{createApp-Dw7L72Hz.mjs → createApp-DZIXfDKD.mjs} +49 -62
  50. package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DeVpqQF-.d.mts} +1 -3
  51. package/dist/{defineAggregation-pxbd7BBK.mjs → defineAggregation-bmKQ4NmC.mjs} +2 -3
  52. package/dist/{defineResource-DwgEjLCO.mjs → defineResource-CGmdmGwh.mjs} +78 -29
  53. package/dist/discovery/index.d.mts +1 -3
  54. package/dist/discovery/index.mjs +2 -3
  55. package/dist/docs/index.d.mts +8 -8
  56. package/dist/docs/index.mjs +4 -5
  57. package/dist/{elevation-B9wF2Z1F.mjs → elevation-CzhqAyVN.mjs} +9 -10
  58. package/dist/{elevation-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
  59. package/dist/encryption/index.d.mts +1 -7
  60. package/dist/encryption/index.mjs +8 -13
  61. package/dist/{errorHandler--4rSMMvq.d.mts → errorHandler-B9r88jZV.d.mts} +8 -3
  62. package/dist/{errorHandler-Dr2nG0Ui.mjs → errorHandler-dFyGOEoB.mjs} +16 -6
  63. package/dist/{errors-BtHzrSA6.mjs → errors-BY8vzlP4.mjs} +2 -3
  64. package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
  65. package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
  66. package/dist/{eventPlugin-Dvs7OBw8.mjs → eventPlugin-eMhAPtQA.mjs} +10 -12
  67. package/dist/{eventTypes-BVoCTG5c.mjs → eventTypes-Do2KYeJx.mjs} +5 -8
  68. package/dist/events/index.d.mts +4 -16
  69. package/dist/events/index.mjs +8 -9
  70. package/dist/events/transports/redis-stream-entry.d.mts +1 -1
  71. package/dist/events/transports/redis-stream-entry.mjs +5 -6
  72. package/dist/events/transports/redis.d.mts +2 -4
  73. package/dist/events/transports/redis.mjs +3 -4
  74. package/dist/{externalPaths-CmGOxOtD.d.mts → externalPaths-BOqdq5wr.d.mts} +0 -2
  75. package/dist/factory/index.d.mts +4 -14
  76. package/dist/factory/index.mjs +12 -18
  77. package/dist/{fastify-augmentation-DRlCIWE9.d.mts → fastify-augmentation-Dtn0IIRn.d.mts} +4 -10
  78. package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
  79. package/dist/{fields-C1e_7Fwi.mjs → fields-LnbCcvsw.mjs} +2 -3
  80. package/dist/{filter-merge-xaiEKtz8.mjs → filter-merge-BAWi019Q.mjs} +2 -3
  81. package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
  82. package/dist/{generate-DJiJMaXN.mjs → generate-oXoDnpJf.mjs} +7 -12
  83. package/dist/{headers-Dr-wt6Tr.mjs → headers-DBd3Qheo.mjs} +3 -4
  84. package/dist/{health-DkkWbJtQ.mjs → health-BlJu9GXS.mjs} +2 -3
  85. package/dist/{health-BLYn_Hds.mjs → health-Dp-3EC9o.mjs} +4 -7
  86. package/dist/hooks/index.d.mts +1 -1
  87. package/dist/hooks/index.mjs +2 -2
  88. package/dist/idempotency/index.d.mts +3 -9
  89. package/dist/idempotency/index.mjs +10 -13
  90. package/dist/idempotency/redis.d.mts +1 -1
  91. package/dist/idempotency/redis.mjs +3 -4
  92. package/dist/{index-Bxriq3so.d.mts → index-B5i9-vuP.d.mts} +4 -26
  93. package/dist/{index-Chgz3d0i.d.mts → index-BAXDo5eE.d.mts} +1 -7
  94. package/dist/{index-Beg3aNnK.d.mts → index-BTxzJ_MN.d.mts} +67 -25
  95. package/dist/{index-CUJvoyw3.d.mts → index-Bqfo8hLz.d.mts} +2 -24
  96. package/dist/{index-uhkUA5-U.d.mts → index-CUdaoCYt.d.mts} +13 -23
  97. package/dist/{index-WH7xgvxS.d.mts → index-DyJFTJLA.d.mts} +31 -92
  98. package/dist/index.d.mts +7 -9
  99. package/dist/index.mjs +12 -13
  100. package/dist/{init-CW3kJqNW.mjs → init-BOaNkLYb.mjs} +18 -35
  101. package/dist/{init-Cscs4lab.d.mts → init-CV2_Fw3H.d.mts} +0 -4
  102. package/dist/integrations/event-gateway.d.mts +3 -5
  103. package/dist/integrations/event-gateway.mjs +3 -4
  104. package/dist/integrations/index.d.mts +3 -3
  105. package/dist/integrations/index.mjs +1 -1
  106. package/dist/integrations/jobs/index.d.mts +1 -1
  107. package/dist/integrations/jobs/index.mjs +7 -11
  108. package/dist/integrations/mcp/index.d.mts +7 -39
  109. package/dist/integrations/mcp/index.mjs +8 -14
  110. package/dist/integrations/mcp/testing.d.mts +3 -5
  111. package/dist/integrations/mcp/testing.mjs +3 -4
  112. package/dist/integrations/streamline.d.mts +1 -3
  113. package/dist/integrations/streamline.mjs +4 -5
  114. package/dist/integrations/webhooks.d.mts +2 -4
  115. package/dist/integrations/webhooks.mjs +4 -5
  116. package/dist/integrations/websocket-pushref-redis.d.mts +2 -4
  117. package/dist/integrations/websocket-pushref-redis.mjs +2 -3
  118. package/dist/integrations/websocket-redis.d.mts +2 -4
  119. package/dist/integrations/websocket-redis.mjs +2 -3
  120. package/dist/integrations/websocket.d.mts +2 -2
  121. package/dist/integrations/websocket.mjs +13 -24
  122. package/dist/{interface-JJzwH4Ro.d.mts → interface-BmExzQRD.d.mts} +0 -2
  123. package/dist/{interface-BOk3YnTz.d.mts → interface-WR1U0K7t.d.mts} +0 -2
  124. package/dist/{jsonBody-DPU8yYwA.mjs → jsonBody-DpRpKR_K.mjs} +3 -4
  125. package/dist/{keys-Dgn6OYhl.mjs → keys-FBz6Ull-.mjs} +2 -3
  126. package/dist/{loadResources-BtKj6P1P.mjs → loadResources-Bx1sKPnF.mjs} +4 -5
  127. package/dist/{loadResourcesFromEntry-Bmq6TnB7.mjs → loadResourcesFromEntry-b_jcqbxh.mjs} +3 -4
  128. package/dist/logger/index.d.mts +1 -3
  129. package/dist/logger/index.mjs +2 -2
  130. package/dist/{logger-qQNLlOAU.mjs → logger-CbFcIEBZ.mjs} +3 -5
  131. package/dist/{mcpPlugin-DDfe8jAP.mjs → mcpPlugin-yix548XX.mjs} +41 -60
  132. package/dist/{memory-C0Blueoh.mjs → memory-Bgw5dn8N.mjs} +4 -5
  133. package/dist/{metrics-DYka72iN.mjs → metrics-CZDQWVjS.mjs} +4 -5
  134. package/dist/middleware/index.d.mts +1 -5
  135. package/dist/middleware/index.mjs +4 -5
  136. package/dist/migrations/index.d.mts +0 -2
  137. package/dist/migrations/index.mjs +3 -4
  138. package/dist/{module-BszSyWbd.mjs → module-Dsc_nKL5.mjs} +2 -3
  139. package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-XCxAUlru.d.mts} +1 -5
  140. package/dist/{multipartBody-RHvIkNmc.mjs → multipartBody-B85ek8Kj.mjs} +2 -3
  141. package/dist/observeSend-BK-JN1jK.mjs +20 -0
  142. package/dist/{openapi-BrFPc3Ny.mjs → openapi-Co7hl073.mjs} +18 -28
  143. package/dist/outbox-admin/index.d.mts +2 -4
  144. package/dist/outbox-admin/index.mjs +6 -7
  145. package/dist/{outbox-module-gZCHoE4H.d.mts → outbox-module-XvUThpqn.d.mts} +2 -8
  146. package/dist/{outbox-module-DF4Bu_Qa.mjs → outbox-module-mg9kDYkd.mjs} +13 -17
  147. package/dist/permissions/index.d.mts +4 -4
  148. package/dist/permissions/index.mjs +7 -7
  149. package/dist/{permissions-DN1CWH56.mjs → permissions-A1oKtpiC.mjs} +19 -29
  150. package/dist/{pipe-B8uq865o.mjs → pipe-Czpw9U2n.mjs} +3 -4
  151. package/dist/pipeline/index.d.mts +1 -9
  152. package/dist/pipeline/index.mjs +5 -8
  153. package/dist/{plan-DUGfynNg.mjs → plan-KVseuBCL.mjs} +5 -9
  154. package/dist/{plugin-ByU3h-bR.mjs → plugin-DTWt_8C3.mjs} +130 -62
  155. package/dist/plugins/index.d.mts +8 -16
  156. package/dist/plugins/index.mjs +22 -26
  157. package/dist/plugins/response-cache.d.mts +2 -4
  158. package/dist/plugins/response-cache.mjs +10 -10
  159. package/dist/plugins/tracing-entry.d.mts +1 -1
  160. package/dist/plugins/tracing-entry.mjs +3 -4
  161. package/dist/{pluralize-Cdya8zYt.mjs → pluralize-msB9X3yw.mjs} +2 -3
  162. package/dist/presets/filesUpload.d.mts +4 -6
  163. package/dist/presets/filesUpload.mjs +6 -7
  164. package/dist/presets/index.d.mts +3 -19
  165. package/dist/presets/index.mjs +2 -2
  166. package/dist/presets/multiTenant.d.mts +1 -1
  167. package/dist/presets/multiTenant.mjs +7 -7
  168. package/dist/presets/search.d.mts +3 -5
  169. package/dist/presets/search.mjs +3 -4
  170. package/dist/{presets-CCOlKTZw.mjs → presets-qKCehiJM.mjs} +11 -18
  171. package/dist/{projection-BGty6ie4.mjs → projection-ClBqtsIw.mjs} +3 -4
  172. package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
  173. package/dist/{queryCachePlugin-B7itTkWu.mjs → queryCachePlugin-3gJj5Rbz.mjs} +8 -10
  174. package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
  175. package/dist/{rateLimitKey-DBWO59H9.mjs → rateLimitKey-Kro---xl.mjs} +2 -3
  176. package/dist/{realtime-_59Rlje8.mjs → realtime-Ber8uJN2.mjs} +17 -19
  177. package/dist/{redis-BDgv9Glw.d.mts → redis-RpDMemdm.d.mts} +2 -4
  178. package/dist/{redis-stream-BMk-bpQS.d.mts → redis-stream-CS1N9dwM.d.mts} +1 -3
  179. package/dist/{redisShapes-CQksY67q.d.mts → redisShapes-CqBXTn_s.d.mts} +0 -2
  180. package/dist/registry/index.d.mts +2 -12
  181. package/dist/registry/index.mjs +3 -3
  182. package/dist/{registry-uG4wr541.mjs → registry-BA-_vFYk.mjs} +7 -12
  183. package/dist/{renewingLease-CiU3ZynH.mjs → renewingLease-CMY8YOcc.mjs} +2 -3
  184. package/dist/{replyHelpers-Dr2pnXZg.mjs → replyHelpers-DK9P_XSz.mjs} +3 -4
  185. package/dist/{requestContext-DBKIdmDi.mjs → requestContext-GYO_0gEw.mjs} +2 -3
  186. package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
  187. package/dist/{requirement-DxOaghWD.mjs → requirement-DeNjZIH3.mjs} +2 -3
  188. package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
  189. package/dist/{resourceRateLimit-BBdj5yRq.mjs → resourceRateLimit-tHLbrtWc.mjs} +3 -4
  190. package/dist/{rolldown-runtime-DpVPUeXF.mjs → rolldown-runtime-Kv1fZdLg.mjs} +2 -3
  191. package/dist/{routeValidator-BNTqM1Eh.mjs → routeValidator-C_H5NanI.mjs} +2 -3
  192. package/dist/{runtimeCapabilities-D_3eUO6V.mjs → runtimeCapabilities-DWqbxkyw.mjs} +2 -3
  193. package/dist/{schedules-CVS7c1nv.mjs → schedules-eO_RzhCU.mjs} +132 -9
  194. package/dist/{schemaConverter-BQbg7loK.mjs → schemaConverter-DBJrPZN4.mjs} +3 -4
  195. package/dist/{schemaIR-CUI3hPQR.mjs → schemaIR-CEScKT2v.mjs} +3 -4
  196. package/dist/schemas/index.d.mts +0 -2
  197. package/dist/schemas/index.mjs +2 -3
  198. package/dist/scim/index.d.mts +0 -12
  199. package/dist/scim/index.mjs +10 -18
  200. package/dist/scope/index.d.mts +2 -6
  201. package/dist/scope/index.mjs +5 -5
  202. package/dist/{scope-DFXngazv.mjs → scope-B-Sm9m_E.mjs} +5 -6
  203. package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
  204. package/dist/{shutdown-BCXCwghd.mjs → shutdown-DzLFbe27.mjs} +2 -3
  205. package/dist/{simpleEqualityMatcher-5jOzYQ_L.mjs → simpleEqualityMatcher-DOJhwQ8g.mjs} +2 -3
  206. package/dist/{sse-BilBz766.mjs → sse-2972pVwV.mjs} +8 -9
  207. package/dist/{sseStream-BG_uJL6J.mjs → sseStream-AWLEeNV-.mjs} +3 -4
  208. package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
  209. package/dist/{store-helpers-CzLZdVa1.mjs → store-helpers-VzjgVTkM.mjs} +2 -3
  210. package/dist/{streaming-DgUvMWlv.mjs → streaming-DvraWW6x.mjs} +2 -3
  211. package/dist/{subscriberIdentity-EWnIZ-U8.mjs → subscriberIdentity-Bya56jsg.mjs} +2 -3
  212. package/dist/{tenancy-CVMvO5DH.mjs → tenancy-DSa_0hhw.mjs} +3 -4
  213. package/dist/{tenantPreparation-DIH-GX4g.mjs → tenantPreparation-BrpkQre3.mjs} +5 -6
  214. package/dist/testing/cleanupStoreContract.d.mts +2 -4
  215. package/dist/testing/cleanupStoreContract.mjs +2 -3
  216. package/dist/testing/index.d.mts +6 -32
  217. package/dist/testing/index.mjs +24 -37
  218. package/dist/testing/outboxStoreContract.d.mts +1 -3
  219. package/dist/testing/outboxStoreContract.mjs +3 -4
  220. package/dist/testing/requiredPorts.d.mts +2 -4
  221. package/dist/testing/requiredPorts.mjs +3 -4
  222. package/dist/testing/storageContract.d.mts +2 -4
  223. package/dist/testing/storageContract.mjs +2 -3
  224. package/dist/{timing-q9NITK04.mjs → timing-6rQTuCwg.mjs} +3 -5
  225. package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
  226. package/dist/{transactionContext-NHmhDIOF.mjs → transactionContext-DaxYUEgH.mjs} +2 -3
  227. package/dist/{typeGuards-CPYR9RCg.mjs → typeGuards-UKnX8wPX.mjs} +2 -3
  228. package/dist/types/index.d.mts +4 -4
  229. package/dist/types/index.mjs +1 -1
  230. package/dist/types/storage.d.mts +1 -1
  231. package/dist/types/storage.mjs +1 -1
  232. package/dist/{types-ByHn9rEO.d.mts → types-0Dqlbgn8.d.mts} +0 -2
  233. package/dist/{types-D3Ixsh00.d.mts → types-BYEb_dLW.d.mts} +2 -4
  234. package/dist/{types-BJ-2XqVF.d.mts → types-BeEJm-DV.d.mts} +114 -14
  235. package/dist/{types-DVLddu2q.d.mts → types-C0YJAiL0.d.mts} +0 -2
  236. package/dist/{types-BI4sbUJ3.mjs → types-CuGjhn83.mjs} +5 -6
  237. package/dist/{types-Ddl9OjmE.d.mts → types-DnkIALZ8.d.mts} +0 -4
  238. package/dist/usage/index.d.mts +2 -10
  239. package/dist/usage/index.mjs +8 -12
  240. package/dist/{userHelpers-oBTU3a_k.mjs → userHelpers-oX5_mOVs.mjs} +2 -3
  241. package/dist/utils/index.d.mts +5 -39
  242. package/dist/utils/index.mjs +12 -12
  243. package/dist/{utils-BmE8zRrh.mjs → utils-CjjGOT4E.mjs} +20 -30
  244. package/dist/{validate-Dby08LhR.mjs → validate-4RlTKOJb.mjs} +5 -7
  245. package/dist/{versioning-P6JMNcJr.mjs → versioning-Dk2-19La.mjs} +4 -5
  246. package/dist/{versioning-Bqm_57Qt.d.mts → versioning-S18y2-0C.d.mts} +1 -15
  247. package/dist/{websocket-Cs4awVyD.d.mts → websocket-BGuc-WVZ.d.mts} +1 -15
  248. package/dist/{workScope-BcMLKa3G.mjs → workScope-DoBsoVo4.mjs} +3 -4
  249. package/llms.txt +37 -30
  250. package/package.json +9 -8
  251. package/skills/arc/SKILL.md +65 -844
  252. package/skills/arc/references/agent-auth.md +82 -193
  253. package/skills/arc/references/api-reference.md +41 -245
  254. package/skills/arc/references/auth-api-keys.md +99 -0
  255. package/skills/arc/references/auth-better-auth-overlay.md +87 -0
  256. package/skills/arc/references/auth-better-auth.md +78 -0
  257. package/skills/arc/references/auth-permissions.md +100 -0
  258. package/skills/arc/references/auth-strategies.md +122 -0
  259. package/skills/arc/references/boot.md +80 -0
  260. package/skills/arc/references/enterprise-auth.md +65 -81
  261. package/skills/arc/references/events-outbox.md +90 -0
  262. package/skills/arc/references/events.md +75 -440
  263. package/skills/arc/references/integrations-jobs.md +74 -0
  264. package/skills/arc/references/integrations-realtime.md +84 -0
  265. package/skills/arc/references/integrations-webhooks.md +71 -0
  266. package/skills/arc/references/integrations-workflows.md +47 -0
  267. package/skills/arc/references/mcp-auth.md +83 -0
  268. package/skills/arc/references/mcp-custom-tools.md +125 -0
  269. package/skills/arc/references/mcp-setup.md +115 -0
  270. package/skills/arc/references/mcp-testing.md +63 -0
  271. package/skills/arc/references/multi-tenancy.md +56 -230
  272. package/skills/arc/references/permissions-scope.md +81 -0
  273. package/skills/arc/references/production-api.md +119 -0
  274. package/skills/arc/references/production-audit.md +101 -0
  275. package/skills/arc/references/production-boot.md +91 -0
  276. package/skills/arc/references/production-caching.md +63 -0
  277. package/skills/arc/references/production-distributed.md +75 -0
  278. package/skills/arc/references/production-idempotency.md +83 -0
  279. package/skills/arc/references/production-observability.md +83 -0
  280. package/skills/arc/references/production-realtime.md +70 -0
  281. package/skills/arc/references/production-reliability.md +100 -0
  282. package/skills/arc/references/production-shutdown.md +43 -0
  283. package/skills/arc/references/querying.md +76 -0
  284. package/skills/arc/references/resources.md +97 -0
  285. package/skills/arc/references/schedules.md +79 -0
  286. package/skills/arc/references/scim.md +61 -208
  287. package/skills/arc/references/tenancy-scope-install.md +82 -0
  288. package/skills/arc/references/testing.md +101 -144
  289. package/skills/arc/references/usage-cleanup-capabilities.md +45 -0
  290. package/skills/arc/references/validation.md +91 -0
  291. package/skills/arc/references/writes-hooks-errors.md +80 -0
  292. package/skills/arc-code-review/SKILL.md +67 -114
  293. package/skills/arc-code-review/references/arc-cheatsheet.md +68 -167
  294. package/skills/arc-code-review/references/mongokit-repositories.md +104 -0
  295. package/skills/arc-code-review/references/recipe-events-cache-jobs.md +112 -0
  296. package/skills/arc-code-review/references/recipe-resource.md +100 -0
  297. package/skills/arc-code-review/references/recipe-schemas-fields.md +93 -0
  298. package/skills/arc-code-review/references/recipe-scope-permissions.md +82 -0
  299. package/skills/arc-code-review/references/scaffolding.md +61 -198
  300. package/skills/arc-code-review/references/severity.md +49 -102
  301. package/skills/arc-code-review/references/smells-auth-scope.md +80 -0
  302. package/skills/arc-code-review/references/smells-data-events.md +66 -0
  303. package/skills/arc-code-review/references/smells-imports-style.md +59 -0
  304. package/skills/arc-code-review/references/smells-platform.md +89 -0
  305. package/skills/arc-code-review/references/smells-routes-schemas.md +66 -0
  306. package/skills/arc-module-publishing/SKILL.md +82 -208
  307. package/skills/arc-module-publishing/references/action-presets-and-plugins.md +87 -0
  308. package/skills/arc-module-publishing/references/build-and-types.md +73 -0
  309. package/skills/arc-module-publishing/references/module-lifecycle.md +101 -0
  310. package/skills/arc-module-publishing/references/package-manifest.md +34 -122
  311. package/skills/arc-module-publishing/references/publishing-workflow.md +44 -140
  312. package/skills/arc-module-publishing/references/resource-assembly.md +102 -0
  313. package/skills/arc-module-publishing/references/testing-packages.md +82 -0
  314. package/skills/arc/references/auth.md +0 -729
  315. package/skills/arc/references/integrations.md +0 -452
  316. package/skills/arc/references/mcp.md +0 -691
  317. package/skills/arc/references/production.md +0 -835
  318. package/skills/arc-code-review/references/anti-patterns.md +0 -1008
  319. package/skills/arc-code-review/references/migration-recipes.md +0 -649
  320. package/skills/arc-code-review/references/mongokit-migration.md +0 -360
  321. package/skills/arc-module-publishing/references/authoring-modules.md +0 -327
@@ -1,13 +1,12 @@
1
1
 
2
- import { i as RequestScope } from "./types-Ddl9OjmE.mjs";
3
- import { l as PermissionCheck, t as AnyRecord } from "./base-CZyixEQR.mjs";
4
- import { A as RequestWithExtras, Dt as RouteMcpConfig, F as ResourceDefinition, Hn as IRequestContext, I as CrudController, L as ResourceConfig, O as FastifyWithDecorators, St as ActionDefinition, Vn as IControllerResponse, X as RouteSchemaOptions, Z as ArcFieldRule, g as RequestContext, ot as AggregationConfig, v as CrudRouterOptions } from "./index-WH7xgvxS.mjs";
5
- import "./fastify-augmentation-DRlCIWE9.mjs";
2
+ import { i as RequestScope } from "./types-DnkIALZ8.mjs";
3
+ import { l as PermissionCheck, t as AnyRecord } from "./base-HXNgPQww.mjs";
4
+ import { A as RequestWithExtras, Dt as RouteMcpConfig, F as ResourceDefinition, Hn as IRequestContext, I as CrudController, L as ResourceConfig, O as FastifyWithDecorators, St as ActionDefinition, Vn as IControllerResponse, X as RouteSchemaOptions, Z as ArcFieldRule, g as RequestContext, k as MiddlewareHandler, ot as AggregationConfig, v as CrudRouterOptions } from "./index-DyJFTJLA.mjs";
5
+ import "./fastify-augmentation-Dtn0IIRn.mjs";
6
6
  import { Filter } from "@classytic/repo-core/filter";
7
7
  import { FastifyReply, FastifyRequest, RouteHandlerMethod } from "fastify";
8
8
  import { z } from "zod";
9
9
  import { DataAdapter } from "@classytic/repo-core/adapter";
10
- //#region src/constants.d.ts
11
10
  /**
12
11
  * Arc Framework Constants — Single Source of Truth
13
12
  *
@@ -63,8 +62,6 @@ declare const MAX_FILTER_DEPTH: 10;
63
62
  * merges `q.filter[*]` back into the top-level filter map.
64
63
  */
65
64
  declare const RESERVED_QUERY_PARAMS: Readonly<Set<string>>;
66
- //#endregion
67
- //#region src/core/aggregation/defineAggregation.d.ts
68
65
  /**
69
66
  * Declare a single resource aggregation. Exported configs flow into
70
67
  * `defineResource({ aggregations: { ... } })` either as named keys or
@@ -84,8 +81,6 @@ declare const RESERVED_QUERY_PARAMS: Readonly<Set<string>>;
84
81
  * ```
85
82
  */
86
83
  declare function defineAggregation(config: AggregationConfig): AggregationConfig;
87
- //#endregion
88
- //#region src/core/createCrudRouter.d.ts
89
84
  /**
90
85
  * Create CRUD routes for a controller.
91
86
  *
@@ -101,8 +96,6 @@ declare function createCrudRouter<TDoc = unknown>(fastify: FastifyWithDecorators
101
96
  * registered outside the resource system.
102
97
  */
103
98
  declare function createPermissionMiddleware(permission: PermissionCheck, resourceName: string, action: string): RouteHandlerMethod | null;
104
- //#endregion
105
- //#region src/core/defineAction.d.ts
106
99
  /**
107
100
  * Config for `defineAction()`. `TSchema` is the literal Zod schema type
108
101
  * captured from the call site; `TData` is its `z.infer` projection.
@@ -112,6 +105,8 @@ declare function createPermissionMiddleware(permission: PermissionCheck, resourc
112
105
  interface DefineActionConfig<TSchema extends z.ZodTypeAny | undefined = undefined, TData = TSchema extends z.ZodTypeAny ? z.infer<TSchema> : Record<string, unknown>> {
113
106
  /** Per-action body schema (Zod v4). Drives both AJV validation and the typed `data` param. */
114
107
  schema?: TSchema;
108
+ /** Parse the body with `schema` before the handler runs (trim/defaults/refine). See `ActionDefinition.parse`. */
109
+ parse?: boolean;
115
110
  /** Per-action permission gate. Falls back to resource-level if omitted. */
116
111
  permissions?: PermissionCheck;
117
112
  /** OpenAPI / MCP description. */
@@ -147,8 +142,6 @@ interface DefineActionConfig<TSchema extends z.ZodTypeAny | undefined = undefine
147
142
  * The runtime shape is unchanged; only the type-level inference is new.
148
143
  */
149
144
  declare function defineAction<TSchema extends z.ZodTypeAny | undefined = undefined>(config: DefineActionConfig<TSchema>): ActionDefinition;
150
- //#endregion
151
- //#region src/core/defineResource/seams.d.ts
152
145
  /**
153
146
  * Structural adapter boundary — the `ControllerLike` pattern
154
147
  * applied to adapters. `DataAdapter<T>` is invariant in `T`, so a
@@ -227,8 +220,6 @@ type SeamedResourceConfig<TDoc = AnyRecord> = {
227
220
  * author ever writes one (mirrors mongokit's one-cast-at-the-boundary rule).
228
221
  */
229
222
  declare function mergeResourceConfig<TDoc = AnyRecord>(base: SeamedResourceConfig<TDoc>, ...seams: ReadonlyArray<ResourceSeams<TDoc> | undefined>): ResourceConfig<TDoc>;
230
- //#endregion
231
- //#region src/core/defineResourceVariants.d.ts
232
223
  /**
233
224
  * Required identity fields for each variant. The user MUST provide a unique
234
225
  * `name` (registry collision prevention) and a unique `prefix` (route
@@ -270,8 +261,6 @@ type VariantsResult<TDoc, V extends VariantsMap<TDoc>> = { [K in keyof V]: Resou
270
261
  * `ResourceDefinition` ready for `.toPlugin()` registration.
271
262
  */
272
263
  declare function defineResourceVariants<TDoc extends object = AnyRecord, V extends VariantsMap<TDoc> = VariantsMap<TDoc>>(base: Omit<ResourceConfig<TDoc>, "name" | "prefix">, variants: V): VariantsResult<TDoc, V>;
273
- //#endregion
274
- //#region src/core/fastifyAdapter.d.ts
275
264
  /**
276
265
  * Project `FastifyRequest` into the `IRequestContext` controllers receive,
277
266
  * lifting scope, context, and a server accessor onto a flat, typed surface.
@@ -305,8 +294,6 @@ declare function sendControllerResponse<T>(reply: FastifyReply, response: IContr
305
294
  * ```
306
295
  */
307
296
  declare function createFastifyHandler<T>(controllerMethod: (req: IRequestContext) => Promise<IControllerResponse<T>>): (req: FastifyRequest, reply: FastifyReply) => Promise<FastifyReply>;
308
- //#endregion
309
- //#region src/core/fieldRulePredicates.d.ts
310
297
  /**
311
298
  * True when the field is allowed to appear in client-readable surfaces
312
299
  * (response payloads, `select=` whitelists, `_distinct` queries).
@@ -323,8 +310,6 @@ declare function isFieldReadable(rule: ArcFieldRule | undefined): boolean;
323
310
  * so call-sites can early-out without creating empty allocations.
324
311
  */
325
312
  declare function collectReadBlockedFields(schemaOptions: RouteSchemaOptions | undefined): Set<string> | null;
326
- //#endregion
327
- //#region src/core/repositoryFilter.d.ts
328
313
  declare const NATIVE_FILTER_DIALECT: unique symbol;
329
314
  type NativePolicyFilter<Dialect extends string = string> = AnyRecord & {
330
315
  readonly [NATIVE_FILTER_DIALECT]: Dialect;
@@ -335,8 +320,66 @@ type NativePolicyFilter<Dialect extends string = string> = AnyRecord & {
335
320
  * (for example MongoDB `$elemMatch`). Never apply it to client input.
336
321
  */
337
322
  declare function nativePolicyFilter<const Dialect extends string>(dialect: Dialect, record: AnyRecord): NativePolicyFilter<Dialect>;
338
- //#endregion
339
- //#region src/core/validateResourceConfig.d.ts
323
+ /** A zod schema (parsed by the preHandler) or plain JSON Schema (AJV only). */
324
+ type InputSchema = z.ZodType | Record<string, unknown>;
325
+ interface RouteInputSlots {
326
+ /** `RouteDefinition.schema` is an open record. */
327
+ [slot: string]: unknown;
328
+ body?: InputSchema | undefined;
329
+ querystring?: InputSchema | undefined;
330
+ params?: InputSchema | undefined;
331
+ /** Validated by AJV only; headers are not rewritten. */
332
+ headers?: InputSchema | undefined;
333
+ /** Serialization + docs. A `z.object` response strips fields it does not declare. */
334
+ response?: Record<number, InputSchema> | undefined;
335
+ }
336
+ /**
337
+ * Spread into a route entry: `{ method, path, permissions, ...routeInput({ body }), handler }`.
338
+ * `preHandler` is empty when no zod body/querystring/params slot is declared.
339
+ */
340
+ declare function routeInput<const S extends RouteInputSlots>(slots: S): {
341
+ schema: S;
342
+ preHandler: RouteHandlerMethod[];
343
+ };
344
+ /** The request part {@link routeInput} already parsed with `schema`: typed from it, not parsed again. */
345
+ declare function parsed<S extends z.ZodType>(_schema: S, value: unknown): z.output<S>;
346
+ /**
347
+ * A body that must be empty. As an action `schema` (or route `body`) AJV rejects any stray field,
348
+ * and the reference states that the verb takes nothing else. Plain JSON Schema, so no zod needed.
349
+ */
350
+ declare const noPayloadSchema: Readonly<Record<string, unknown>>;
351
+ /**
352
+ * Wire shape of a resource's own CRUD writes. Spread into `defineResource`:
353
+ * `customSchemas` is what AJV validates (and, for zod, converts input-direction: a `.default()`
354
+ * stays optional; `z.strictObject` refuses unknown keys); `openApiSchemas` makes the generated
355
+ * reference describe what the route accepts rather than the stored model.
356
+ *
357
+ * `parse: true` also adds a create/update middleware that replaces `request.body` with the zod
358
+ * OUTPUT (trim, defaults, refinements). It writes `middlewares.create` / `middlewares.update`, so
359
+ * merge your own: `middlewares: { create: [...mine, ...crud.middlewares.create] }`.
360
+ */
361
+ declare function crudInput(input: {
362
+ create?: InputSchema;
363
+ update?: InputSchema;
364
+ parse?: boolean;
365
+ }): {
366
+ customSchemas: {
367
+ create?: {
368
+ body: InputSchema;
369
+ } | undefined;
370
+ update?: {
371
+ body: InputSchema;
372
+ } | undefined;
373
+ };
374
+ openApiSchemas: {
375
+ createBody?: InputSchema | undefined;
376
+ updateBody?: InputSchema | undefined;
377
+ };
378
+ middlewares: {
379
+ create?: MiddlewareHandler[];
380
+ update?: MiddlewareHandler[];
381
+ };
382
+ };
340
383
  interface ConfigError {
341
384
  field: string;
342
385
  message: string;
@@ -367,5 +410,4 @@ declare function formatValidationErrors(resourceName: string, result: Validation
367
410
  * Validate and throw if invalid
368
411
  */
369
412
  declare function assertValidConfig(config: ResourceConfig, options?: ValidateOptions): void;
370
- //#endregion
371
- export { CrudOperation as A, HookOperation as B, mergeResourceConfig as C, createPermissionMiddleware as D, createCrudRouter as E, DEFAULT_TENANT_FIELD as F, MUTATION_OPERATIONS as G, MAX_FILTER_DEPTH as H, DEFAULT_UPDATE_METHOD as I, SYSTEM_FIELDS as J, MutationOperation as K, DEFAULT_VERSION_FIELD as L, DEFAULT_LIMIT as M, DEFAULT_MAX_LIMIT as N, defineAggregation as O, DEFAULT_SORT as P, HOOK_OPERATIONS as R, SeamedResourceConfig as S, defineAction as T, MAX_REGEX_LENGTH as U, HookPhase as V, MAX_SEARCH_LENGTH as W, VariantsMap as _, formatValidationErrors as a, AdapterLike as b, nativePolicyFilter as c, createFastifyHandler as d, createRequestContext as f, VariantOverride as g, sendControllerResponse as h, assertValidConfig as i, DEFAULT_ID_FIELD as j, CRUD_OPERATIONS as k, collectReadBlockedFields as l, getControllerScope as m, ValidateOptions as n, validateResourceConfig as o, getControllerContext as p, RESERVED_QUERY_PARAMS as q, ValidationResult as r, NativePolicyFilter as s, ConfigError as t, isFieldReadable as u, VariantsResult as v, DefineActionConfig as w, ResourceSeams as x, defineResourceVariants as y, HOOK_PHASES as z };
413
+ export { RESERVED_QUERY_PARAMS as $, DefineActionConfig as A, DEFAULT_SORT as B, VariantsMap as C, ResourceSeams as D, AdapterLike as E, CRUD_OPERATIONS as F, HOOK_PHASES as G, DEFAULT_UPDATE_METHOD as H, CrudOperation as I, MAX_FILTER_DEPTH as J, HookOperation as K, DEFAULT_ID_FIELD as L, createCrudRouter as M, createPermissionMiddleware as N, SeamedResourceConfig as O, defineAggregation as P, MutationOperation as Q, DEFAULT_LIMIT as R, VariantOverride as S, defineResourceVariants as T, DEFAULT_VERSION_FIELD as U, DEFAULT_TENANT_FIELD as V, HOOK_OPERATIONS as W, MAX_SEARCH_LENGTH as X, MAX_REGEX_LENGTH as Y, MUTATION_OPERATIONS as Z, createFastifyHandler as _, formatValidationErrors as a, getControllerScope as b, RouteInputSlots as c, parsed as d, SYSTEM_FIELDS as et, routeInput as f, isFieldReadable as g, collectReadBlockedFields as h, assertValidConfig as i, defineAction as j, mergeResourceConfig as k, crudInput as l, nativePolicyFilter as m, ValidateOptions as n, validateResourceConfig as o, NativePolicyFilter as p, HookPhase as q, ValidationResult as r, InputSchema as s, ConfigError as t, noPayloadSchema as u, createRequestContext as v, VariantsResult as w, sendControllerResponse as x, getControllerContext as y, DEFAULT_MAX_LIMIT as z };
@@ -1,8 +1,7 @@
1
1
 
2
- import { F as ResourceDefinition } from "./index-WH7xgvxS.mjs";
3
- import { h as ModuleSetupContext, i as ArcModuleRegistry, l as ModuleContribution, n as ArcModule, o as ArcPorts, p as PortName, r as ArcModuleInput, u as ModuleName } from "./types-BJ-2XqVF.mjs";
2
+ import { F as ResourceDefinition } from "./index-DyJFTJLA.mjs";
3
+ import { h as ModuleSetupContext, i as ArcModuleRegistry, l as ModuleContribution, n as ArcModule, o as ArcPorts, p as PortName, r as ArcModuleInput, u as ModuleName } from "./types-BeEJm-DV.mjs";
4
4
  import { FastifyInstance } from "fastify";
5
- //#region src/factory/module/graph.d.ts
6
5
  type ModuleKind = "domain" | "bridge" | "platform" | "aggregator";
7
6
  /** How strictly the event graph is checked at boot. */
8
7
  type ModuleGraphMode = "strict" | "warn" | "off";
@@ -125,8 +124,6 @@ declare function eventTopology(graph: ModuleGraph, analysis?: ModuleGraphAnalysi
125
124
  cycles: string[][];
126
125
  layers: string[][];
127
126
  };
128
- //#endregion
129
- //#region src/factory/module/asyncapi.d.ts
130
127
  /** The slice of an event registry's `catalog()` the export reads. */
131
128
  interface AsyncApiCatalogEntry {
132
129
  readonly name: string;
@@ -140,8 +137,6 @@ interface AsyncApiInfo {
140
137
  readonly description?: string;
141
138
  }
142
139
  declare function toAsyncApi(graph: ModuleGraph, catalog: readonly AsyncApiCatalogEntry[], info: AsyncApiInfo, analysis?: ModuleGraphAnalysis): Record<string, unknown>;
143
- //#endregion
144
- //#region src/factory/module/contributions.d.ts
145
140
  /**
146
141
  * Collect every module's `workflows`. Resolves factory contributions (so a
147
142
  * factory can close over a container the caller has already decorated on
@@ -152,8 +147,6 @@ declare function toAsyncApi(graph: ModuleGraph, catalog: readonly AsyncApiCatalo
152
147
  * container).
153
148
  */
154
149
  declare function collectModuleWorkflows(fastify: FastifyInstance, modules: readonly ArcModule[]): Promise<unknown[]>;
155
- //#endregion
156
- //#region src/factory/module/extend.d.ts
157
150
  /**
158
151
  * What a caller may add. Every mergeable arm of `ArcModule`, plus `bootstrap`
159
152
  * in wrapper form only.
@@ -214,8 +207,6 @@ interface ModuleExtension<TExports = unknown> {
214
207
  * ```
215
208
  */
216
209
  declare function extendModule<TExports = unknown>(mod: ArcModule<TExports>, extension: ModuleExtension<TExports>): ArcModule<TExports>;
217
- //#endregion
218
- //#region src/factory/module/lifecycle.d.ts
219
210
  /**
220
211
  * Subscribe every module's `eventHandlers` in dependency order (pass the
221
212
  * `orderModules`-sorted list). Returns the ordered list of unsubscribe
@@ -231,8 +222,6 @@ declare function subscribeModuleEventHandlers(fastify: FastifyInstance, modules:
231
222
  countsByModule?: Map<string, number>, consumedByModule?: Map<string, string[]>,
232
223
  /** Per-module handler facts for the durability check. */
233
224
  handlersByModule?: Map<string, HandlerDurabilityFact[]>): Promise<Array<() => void | Promise<void>>>;
234
- //#endregion
235
- //#region src/factory/module/order.d.ts
236
225
  /**
237
226
  * Order modules for composition — a STABLE topological sort. Every later phase
238
227
  * (bootstrap, resources, afterResources, reverse-order onClose) iterates the
@@ -247,8 +236,6 @@ handlersByModule?: Map<string, HandlerDurabilityFact[]>): Promise<Array<() => vo
247
236
  * or a cycle (reporting the concrete `a → b → … → a` path).
248
237
  */
249
238
  declare function orderModules(modules: readonly ArcModule[]): ArcModule[];
250
- //#endregion
251
- //#region src/factory/module/plan.d.ts
252
239
  /** One reason a module list cannot boot. `message` names the module, what is missing, and the fix. */
253
240
  interface CompositionProblem {
254
241
  readonly code: "duplicate-module" | "self-dependency" | "missing-dependency" | "missing-module" | "missing-port";
@@ -304,8 +291,6 @@ interface ClosureNode {
304
291
  * Throws on an unknown root, or an edge to a module that is not in `modules`.
305
292
  */
306
293
  declare function resolveModuleClosure<T extends ClosureNode>(modules: readonly T[], roots: readonly ModuleName[]): T[];
307
- //#endregion
308
- //#region src/factory/module/relay-nudge.d.ts
309
294
  /** What a module accepts as `relay`. */
310
295
  type RelayOption = {
311
296
  readonly requestDrain: () => void;
@@ -339,8 +324,6 @@ interface RelayNudge {
339
324
  }
340
325
  /** The one way a module wires `relay` — `{ fromModule }` included. */
341
326
  declare function createRelayNudge(label: string, relay: RelayOption | undefined): RelayNudge;
342
- //#endregion
343
- //#region src/factory/module/resolve.d.ts
344
327
  /**
345
328
  * Resolve any module-input form to a concrete `ArcModule`. A thunk is invoked
346
329
  * (this is where a dynamic `import()` fires); a promise (or plain module) is
@@ -349,8 +332,6 @@ declare function createRelayNudge(label: string, relay: RelayOption | undefined)
349
332
  declare function resolveModule(input: ArcModuleInput): Promise<ArcModule>;
350
333
  /** Resolve a `ModuleContribution` to a concrete array (array passthrough or factory call). */
351
334
  declare function resolveContribution<T>(contribution: ModuleContribution<T> | undefined, fastify: FastifyInstance): Promise<readonly T[]>;
352
- //#endregion
353
- //#region src/factory/module/state.d.ts
354
335
  type ModuleState = "resolved" | "bootstrapping" | "ready" | "closing" | "closed" | "failed";
355
336
  /**
356
337
  * Is `name` in the composed module graph? TRUE for resource-only modules and
@@ -372,8 +353,6 @@ declare function getModuleState(fastify: FastifyInstance, name: string): ModuleS
372
353
  * descriptors. A resource declaring `skipRegistry` is absent, as from every introspection surface.
373
354
  */
374
355
  declare function getModuleResources(fastify: FastifyInstance, name: string): ResourceDefinition<unknown>[];
375
- //#endregion
376
- //#region src/factory/module/index.d.ts
377
356
  /**
378
357
  * Identity helper for authoring a typed module — mirrors `defineResource`.
379
358
  * Gives inference + a single obvious construction site; does no work.
@@ -506,5 +485,4 @@ declare function lazyModuleExports<TExports = unknown>(fastify: FastifyInstance,
506
485
  */
507
486
  declare function lazyRequiredModuleExports<K extends keyof ArcModuleRegistry>(fastify: FastifyInstance, name: K): () => ArcModuleRegistry[K];
508
487
  declare function lazyRequiredModuleExports<TExports = unknown>(fastify: FastifyInstance, name: string): () => TExports;
509
- //#endregion
510
488
  export { verifyModuleGraph as $, AsyncApiCatalogEntry as A, ModuleGraphMode as B, planModules as C, ModuleExtension as D, subscribeModuleEventHandlers as E, DurabilityFacts as F, activateBridges as G, ModuleGraphOptions as H, HandlerDurabilityFact as I, crudEventsOf as J, analyzeModuleGraph as K, ModuleGraph as L, toAsyncApi as M, CrudSurface as N, extendModule as O, DerivedPublishes as P, verifyEventDurability as Q, ModuleGraphAnalysis as R, compositionProblems as S, orderModules as T, ModuleKind as U, ModuleGraphNode as V, SkippedBridge as W, eventTopology as X, dependentsOf as Y, renderModuleGraph as Z, ClosureNode as _, lazyModuleExports as a, PlanModulesOptions as b, getModuleResources as c, resolveContribution as d, resolveModule as f, withRelayNudge as g, createRelayNudge as h, hasModuleExports as i, AsyncApiInfo as j, collectModuleWorkflows as k, getModuleState as l, RelayOption as m, getModuleExports as n, lazyRequiredModuleExports as o, RelayNudge as p, buildModuleGraph as q, getOptionalModuleExports as r, ModuleState as s, defineModule as t, hasModule as u, CompositionProblem as v, resolveModuleClosure as w, assertComposable as x, ModulePlan as y, ModuleGraphIssue as z };
@@ -1,18 +1,17 @@
1
1
 
2
- import { Mt as Authenticator } from "./index-WH7xgvxS.mjs";
3
- import { r as CacheStore } from "./interface-BOk3YnTz.mjs";
4
- import { n as ElevationOptions } from "./elevation-BW2J3tNj.mjs";
5
- import { a as EventTransport } from "./EventTransport-CiicKz2Z.mjs";
6
- import { t as ExternalOpenApiPaths } from "./externalPaths-CmGOxOtD.mjs";
7
- import { r as QueryCachePluginOptions } from "./queryCachePlugin-C2lZjTxk.mjs";
8
- import { t as ErrorHandlerOptions } from "./errorHandler--4rSMMvq.mjs";
9
- import { S as SchedulesPluginOptions, T as HealthOptions, _ as ResourceLike, o as ArcPorts, r as ArcModuleInput } from "./types-BJ-2XqVF.mjs";
10
- import { H as ModuleGraphOptions } from "./index-CUJvoyw3.mjs";
11
- import { t as EventPluginOptions } from "./eventPlugin-BtmA4-3P.mjs";
12
- import { a as MetricsOptions, c as RealtimeOptions, g as GracefulShutdownOptions, p as CachingOptions, t as VersioningOptions, u as SSEOptions } from "./versioning-Bqm_57Qt.mjs";
13
- import { i as IdempotencyStore } from "./interface-JJzwH4Ro.mjs";
2
+ import { Mt as Authenticator } from "./index-DyJFTJLA.mjs";
3
+ import { r as CacheStore } from "./interface-WR1U0K7t.mjs";
4
+ import { n as ElevationOptions } from "./elevation-DPD0hcU-.mjs";
5
+ import { a as EventTransport } from "./EventTransport-CYEoCJGe.mjs";
6
+ import { t as ExternalOpenApiPaths } from "./externalPaths-BOqdq5wr.mjs";
7
+ import { r as QueryCachePluginOptions } from "./queryCachePlugin-DYQUyeJ9.mjs";
8
+ import { t as ErrorHandlerOptions } from "./errorHandler-B9r88jZV.mjs";
9
+ import { I as HealthOptions, _ as ResourceLike, o as ArcPorts, r as ArcModuleInput, w as SchedulesPluginOptions } from "./types-BeEJm-DV.mjs";
10
+ import { H as ModuleGraphOptions } from "./index-Bqfo8hLz.mjs";
11
+ import { t as EventPluginOptions } from "./eventPlugin-BY38F6yK.mjs";
12
+ import { a as MetricsOptions, c as RealtimeOptions, g as GracefulShutdownOptions, p as CachingOptions, t as VersioningOptions, u as SSEOptions } from "./versioning-S18y2-0C.mjs";
13
+ import { i as IdempotencyStore } from "./interface-BmExzQRD.mjs";
14
14
  import { FastifyInstance, FastifyPluginAsync, FastifyReply, FastifyRequest, FastifyServerOptions } from "fastify";
15
- //#region src/factory/types/assets.d.ts
16
15
  /**
17
16
  * How other origins may EMBED these bytes — the value of
18
17
  * `Cross-Origin-Resource-Policy` for this prefix.
@@ -96,8 +95,6 @@ interface AssetRoot {
96
95
  */
97
96
  readonly decorateReply?: boolean;
98
97
  }
99
- //#endregion
100
- //#region src/factory/types/auth.d.ts
101
98
  /**
102
99
  * Arc's built-in JWT auth
103
100
  *
@@ -272,7 +269,7 @@ interface CustomPluginAuthOption {
272
269
  interface CustomAuthenticatorOption {
273
270
  type: "authenticator";
274
271
  /** Authenticate function — decorates fastify.authenticate directly */
275
- authenticate: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
272
+ authenticate: (request: FastifyRequest, reply: FastifyReply) => Promise<void | FastifyReply>;
276
273
  /**
277
274
  * Optional authenticate function for public routes.
278
275
  * If not provided, Arc auto-generates one by wrapping `authenticate` and
@@ -291,8 +288,6 @@ interface CustomAuthenticatorOption {
291
288
  * - `CustomAuthenticatorOption` — A bare authenticate function (`type: 'authenticator'`)
292
289
  */
293
290
  type AuthOption = false | JwtAuthOption | BetterAuthOption | CustomPluginAuthOption | CustomAuthenticatorOption;
294
- //#endregion
295
- //#region src/factory/types/plugin-options.d.ts
296
291
  /**
297
292
  * Plugin-specific option shapes for `createApp()` — under-pressure,
298
293
  * multipart, and raw-body plugin configuration.
@@ -327,8 +322,6 @@ interface RawBodyOptions {
327
322
  /** Parse raw body before other parsers (default: false) */
328
323
  runFirst?: boolean;
329
324
  }
330
- //#endregion
331
- //#region src/factory/types/security.d.ts
332
325
  /**
333
326
  * Security-plugin option shapes — CORS / Helmet / rate-limit config for
334
327
  * `createApp()`, including plan-aware rate limiting.
@@ -397,8 +390,6 @@ interface RateLimitPlanConfig {
397
390
  /** Plan used when `resolve` returns undefined/unknown or throws. Default: fall back to the global `max`. */
398
391
  default?: string;
399
392
  }
400
- //#endregion
401
- //#region src/factory/types/app-options.d.ts
402
393
  /** Releases what `beforeBoot` acquired — see `CreateAppOptions.beforeBoot`. */
403
394
  type BootDisposer = () => void | Promise<void>;
404
395
  /**
@@ -1008,5 +999,4 @@ interface CreateAppOptions {
1008
999
  /** Hook called when the app is shutting down */
1009
1000
  onClose?: (fastify: FastifyInstance) => void | Promise<void>;
1010
1001
  }
1011
- //#endregion
1012
1002
  export { UnderPressureOptions as a, CustomAuthenticatorOption as c, RawBodyOptions as i, CustomPluginAuthOption as l, CreateAppOptions as n, AuthOption as o, MultipartOptions as r, BetterAuthOption as s, BootDisposer as t, JwtAuthOption as u };