@classytic/arc 2.45.2 → 2.47.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 (333) hide show
  1. package/README.md +1 -1
  2. package/dist/{EventTransport-DHb1tpu-.mjs → EventTransport-BHKy4_Bi.mjs} +5 -6
  3. package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
  4. package/dist/{HookSystem-C1u0EUnt.mjs → HookSystem-CAIDVoKC.mjs} +3 -4
  5. package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
  6. package/dist/{ResourceRegistry-D2jXWVN_.mjs → ResourceRegistry-23Ml6FNe.mjs} +15 -4
  7. package/dist/{acquire-DTkA8Lme.mjs → acquire-DoFX06fm.mjs} +2 -3
  8. package/dist/{actionPermissions-DRVk6m7x.mjs → actionPermissions-DXrlWHHK.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-D48fUJv1.mjs → authorizationDecision-DYiubkYw.mjs} +5 -6
  18. package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
  19. package/dist/{boundedMap-DkKiPifd.mjs → boundedMap-CtdzpJ3X.mjs} +2 -3
  20. package/dist/{buildHandler-BiZ4VATS.mjs → buildHandler-CARdmPNo.mjs} +5 -6
  21. package/dist/cache/index.d.mts +4 -10
  22. package/dist/cache/index.mjs +5 -6
  23. package/dist/{caching-Cj0as-P1.mjs → caching-QRiryDLs.mjs} +3 -4
  24. package/dist/{claimed-ChI13rUR.mjs → claimed-BLecr1j3.mjs} +2 -3
  25. package/dist/cleanup/index.d.mts +4 -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-D_aiew34.mjs → constants-Cx7BcnHT.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-QIZ2560Y.mjs → core-0WyMuo0f.mjs} +9 -12
  47. package/dist/{createActionRouter-CvH84dyx.mjs → createActionRouter-mLAGbpDV.mjs} +7 -8
  48. package/dist/{createAggregationRouter-DGyK2Hp6.mjs → createAggregationRouter-BEAjn3dA.mjs} +9 -10
  49. package/dist/{createApp-CKjZpmq9.mjs → createApp-QDP4vYWH.mjs} +49 -62
  50. package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DzXHX0SO.d.mts} +1 -3
  51. package/dist/{defineAggregation-BLza7Ca4.mjs → defineAggregation-CFNfvz-C.mjs} +2 -3
  52. package/dist/{defineResource-CEo0gDCb.mjs → defineResource-BROJmhzJ.mjs} +80 -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-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
  58. package/dist/{elevation-BJTsSnke.mjs → elevation-DrXeEWWk.mjs} +9 -10
  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-2p4SL5zm.mjs → errorHandler-BiBXtxj4.mjs} +16 -6
  63. package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
  64. package/dist/{errors-grZkIA8N.mjs → errors-DnrUChAy.mjs} +2 -3
  65. package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
  66. package/dist/{eventPlugin-ItcYBGUs.mjs → eventPlugin-BhKLUe7H.mjs} +10 -12
  67. package/dist/{eventTypes-Ck6fD3ne.mjs → eventTypes-CCIRGakw.mjs} +5 -8
  68. package/dist/events/index.d.mts +5 -17
  69. package/dist/events/index.mjs +9 -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-bzkWPt1f.d.mts} +4 -10
  78. package/dist/{fields-BRX0Krcj.mjs → fields-CYdpcV73.mjs} +2 -3
  79. package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
  80. package/dist/{filter-merge-CDc7YMwX.mjs → filter-merge-6kasezRH.mjs} +2 -3
  81. package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
  82. package/dist/{generate-hvg7V2g1.mjs → generate-DUkcbc4r.mjs} +7 -12
  83. package/dist/{headers-Cqkg4LzI.mjs → headers-KxhrKevA.mjs} +3 -4
  84. package/dist/{health-PVt0VjOx.mjs → health-CRJg3IIq.mjs} +2 -3
  85. package/dist/{health-DyeP3mTW.mjs → health-jkYNdobJ.mjs} +4 -7
  86. package/dist/hooks/index.d.mts +1 -1
  87. package/dist/hooks/index.mjs +2 -2
  88. package/dist/http-cache/index.d.mts +211 -0
  89. package/dist/http-cache/index.mjs +605 -0
  90. package/dist/http-cache/purgers/cloudflare.d.mts +13 -0
  91. package/dist/http-cache/purgers/cloudflare.mjs +46 -0
  92. package/dist/http-cache/purgers/fastly.d.mts +12 -0
  93. package/dist/http-cache/purgers/fastly.mjs +47 -0
  94. package/dist/http-cache/testing/index.d.mts +68 -0
  95. package/dist/http-cache/testing/index.mjs +168 -0
  96. package/dist/idempotency/index.d.mts +3 -9
  97. package/dist/idempotency/index.mjs +11 -14
  98. package/dist/idempotency/redis.d.mts +1 -1
  99. package/dist/idempotency/redis.mjs +3 -4
  100. package/dist/{index-Bxriq3so.d.mts → index-B5i9-vuP.d.mts} +4 -26
  101. package/dist/{index-Chgz3d0i.d.mts → index-BAXDo5eE.d.mts} +1 -7
  102. package/dist/{index-Beg3aNnK.d.mts → index-BxZS-8So.d.mts} +67 -25
  103. package/dist/{index-WH7xgvxS.d.mts → index-Cy2-QffW.d.mts} +40 -92
  104. package/dist/{index-uhkUA5-U.d.mts → index-D1X_C_qz.d.mts} +13 -23
  105. package/dist/{index-CUJvoyw3.d.mts → index-DFCCQ9AE.d.mts} +2 -24
  106. package/dist/index.d.mts +7 -9
  107. package/dist/index.mjs +12 -13
  108. package/dist/{init-jC3rMPzb.mjs → init-CACwpktI.mjs} +18 -35
  109. package/dist/{init-Cscs4lab.d.mts → init-CV2_Fw3H.d.mts} +0 -4
  110. package/dist/integrations/event-gateway.d.mts +3 -5
  111. package/dist/integrations/event-gateway.mjs +3 -4
  112. package/dist/integrations/index.d.mts +3 -3
  113. package/dist/integrations/index.mjs +1 -1
  114. package/dist/integrations/jobs/index.d.mts +1 -1
  115. package/dist/integrations/jobs/index.mjs +7 -11
  116. package/dist/integrations/mcp/index.d.mts +7 -39
  117. package/dist/integrations/mcp/index.mjs +8 -14
  118. package/dist/integrations/mcp/testing.d.mts +3 -5
  119. package/dist/integrations/mcp/testing.mjs +3 -4
  120. package/dist/integrations/streamline.d.mts +1 -3
  121. package/dist/integrations/streamline.mjs +4 -5
  122. package/dist/integrations/webhooks.d.mts +2 -4
  123. package/dist/integrations/webhooks.mjs +5 -5
  124. package/dist/integrations/websocket-pushref-redis.d.mts +2 -4
  125. package/dist/integrations/websocket-pushref-redis.mjs +2 -3
  126. package/dist/integrations/websocket-redis.d.mts +2 -4
  127. package/dist/integrations/websocket-redis.mjs +2 -3
  128. package/dist/integrations/websocket.d.mts +2 -2
  129. package/dist/integrations/websocket.mjs +13 -24
  130. package/dist/{interface-JJzwH4Ro.d.mts → interface-BmExzQRD.d.mts} +0 -2
  131. package/dist/{interface-BOk3YnTz.d.mts → interface-WR1U0K7t.d.mts} +0 -2
  132. package/dist/{jsonBody-ptwyzZQ-.mjs → jsonBody-CzDBkCme.mjs} +3 -4
  133. package/dist/{keys-C1vFuSbv.mjs → keys-Cbwf6r1B.mjs} +2 -3
  134. package/dist/{loadResources-CHPDyIPn.mjs → loadResources-Kr6vuljv.mjs} +4 -5
  135. package/dist/{loadResourcesFromEntry-BkHHTu_B.mjs → loadResourcesFromEntry-D2e0qoDR.mjs} +3 -4
  136. package/dist/logger/index.d.mts +1 -3
  137. package/dist/logger/index.mjs +2 -2
  138. package/dist/{logger-C5bvCiAK.mjs → logger-C110X5Yz.mjs} +3 -5
  139. package/dist/{mcpPlugin-C9qohJCF.mjs → mcpPlugin-4lIPr9OJ.mjs} +41 -60
  140. package/dist/{memory-CxiTwT0j.mjs → memory-D9qkhXiB.mjs} +4 -5
  141. package/dist/{metrics-Ckp2zRy-.mjs → metrics-B-qrrWfI.mjs} +4 -5
  142. package/dist/middleware/index.d.mts +1 -5
  143. package/dist/middleware/index.mjs +4 -5
  144. package/dist/migrations/index.d.mts +0 -2
  145. package/dist/migrations/index.mjs +3 -4
  146. package/dist/{module-CfnKuIuH.mjs → module-BD8xHgrz.mjs} +2 -3
  147. package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-KZj8j1uJ.d.mts} +1 -5
  148. package/dist/{multipartBody-BFasGtP9.mjs → multipartBody-qU7KCn1l.mjs} +2 -3
  149. package/dist/observeSend-BnPtTotW.mjs +20 -0
  150. package/dist/{openapi-DAPxjYHX.mjs → openapi-DoVa5SVP.mjs} +18 -28
  151. package/dist/outbox-admin/index.d.mts +2 -4
  152. package/dist/outbox-admin/index.mjs +6 -7
  153. package/dist/{outbox-module-gZCHoE4H.d.mts → outbox-module-5Mnwcycy.d.mts} +3 -9
  154. package/dist/outbox-module-DyITEIop.mjs +297 -0
  155. package/dist/permissions/index.d.mts +4 -4
  156. package/dist/permissions/index.mjs +7 -7
  157. package/dist/{permissions-B14c3OMp.mjs → permissions-BBy4bOGi.mjs} +19 -29
  158. package/dist/{pipe-CQv7PsAK.mjs → pipe-BOm2o4UA.mjs} +3 -4
  159. package/dist/pipeline/index.d.mts +1 -9
  160. package/dist/pipeline/index.mjs +5 -8
  161. package/dist/{plan-CpnTykjb.mjs → plan-DDIGwuxr.mjs} +5 -9
  162. package/dist/{plugin-DXTjVg_Q.mjs → plugin-Bn4D_0XK.mjs} +156 -64
  163. package/dist/plugins/index.d.mts +8 -16
  164. package/dist/plugins/index.mjs +22 -26
  165. package/dist/plugins/response-cache.d.mts +2 -4
  166. package/dist/plugins/response-cache.mjs +10 -10
  167. package/dist/plugins/tracing-entry.d.mts +1 -1
  168. package/dist/plugins/tracing-entry.mjs +3 -4
  169. package/dist/{pluralize-C3VJKRGp.mjs → pluralize-ClEjcKlG.mjs} +2 -3
  170. package/dist/policy.types-DPqToKG1.d.mts +50 -0
  171. package/dist/presets/filesUpload.d.mts +4 -6
  172. package/dist/presets/filesUpload.mjs +6 -7
  173. package/dist/presets/index.d.mts +3 -19
  174. package/dist/presets/index.mjs +2 -2
  175. package/dist/presets/multiTenant.d.mts +1 -1
  176. package/dist/presets/multiTenant.mjs +7 -7
  177. package/dist/presets/search.d.mts +3 -5
  178. package/dist/presets/search.mjs +3 -4
  179. package/dist/{presets-CquqYJPy.mjs → presets-DK2jh5YR.mjs} +11 -18
  180. package/dist/{projection-CgfSLOSM.mjs → projection-BHH-sXyS.mjs} +3 -4
  181. package/dist/purger.types-2wNJK_89.mjs +24 -0
  182. package/dist/purger.types-DvPp4-yd.d.mts +26 -0
  183. package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
  184. package/dist/{queryCachePlugin-D0HUISHJ.mjs → queryCachePlugin-Ckqe98AM.mjs} +8 -10
  185. package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
  186. package/dist/{rateLimitKey-AvkBOMkl.mjs → rateLimitKey-CWAjlqcN.mjs} +2 -3
  187. package/dist/{realtime-CbWtVbqK.mjs → realtime-BIJi9USY.mjs} +17 -19
  188. package/dist/{redis-BDgv9Glw.d.mts → redis-RpDMemdm.d.mts} +2 -4
  189. package/dist/{redis-stream-BMk-bpQS.d.mts → redis-stream-CS1N9dwM.d.mts} +1 -3
  190. package/dist/{redisShapes-CQksY67q.d.mts → redisShapes-CqBXTn_s.d.mts} +0 -2
  191. package/dist/registry/index.d.mts +2 -12
  192. package/dist/registry/index.mjs +3 -3
  193. package/dist/{registry-BVwpAuFI.mjs → registry-y9ZA-R_J.mjs} +7 -12
  194. package/dist/{outbox-module-B4FAkx3A.mjs → relay-BNrC1CEP.mjs} +8 -306
  195. package/dist/{renewingLease-CykpeNcQ.mjs → renewingLease-CS43br5E.mjs} +2 -3
  196. package/dist/{replyHelpers-DA51IZio.mjs → replyHelpers-oZDzakGb.mjs} +3 -4
  197. package/dist/{requestContext-DIWHKDtQ.mjs → requestContext-fWb_YaV2.mjs} +2 -3
  198. package/dist/{requirement-Cp_fsMDL.mjs → requirement--2hWyyHi.mjs} +2 -3
  199. package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
  200. package/dist/{resourceRateLimit-BFuluodF.mjs → resourceRateLimit-1WbcyMZY.mjs} +3 -4
  201. package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
  202. package/dist/{rolldown-runtime-D_lMdYOd.mjs → rolldown-runtime-yH2lHMo_.mjs} +2 -3
  203. package/dist/{routeValidator-DuLonYwr.mjs → routeValidator-BSlRIA5c.mjs} +2 -3
  204. package/dist/{runtimeCapabilities-CydRfm0i.mjs → runtimeCapabilities-CYCEtU1W.mjs} +2 -3
  205. package/dist/{schedules-B693KXxa.mjs → schedules-B5WGlYIT.mjs} +132 -9
  206. package/dist/{schemaConverter-DNvZWTV6.mjs → schemaConverter-DtNvts-6.mjs} +3 -4
  207. package/dist/{schemaIR-REV2y7Wd.mjs → schemaIR-uS_RHqa3.mjs} +3 -4
  208. package/dist/schemas/index.d.mts +0 -2
  209. package/dist/schemas/index.mjs +2 -3
  210. package/dist/scim/index.d.mts +0 -12
  211. package/dist/scim/index.mjs +10 -18
  212. package/dist/scope/index.d.mts +2 -6
  213. package/dist/scope/index.mjs +5 -5
  214. package/dist/{scope-Bevxy_ST.mjs → scope-BwVLSyNG.mjs} +5 -6
  215. package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
  216. package/dist/{shutdown-CfrqPR7A.mjs → shutdown-BJiJN7FT.mjs} +2 -3
  217. package/dist/{simpleEqualityMatcher-BJwfuRKP.mjs → simpleEqualityMatcher-DGRLq-1k.mjs} +2 -3
  218. package/dist/{sse-CuNNWr2z.mjs → sse-B_50llZu.mjs} +8 -9
  219. package/dist/{sseStream-C_2ujAVY.mjs → sseStream-BjSo9Ult.mjs} +3 -4
  220. package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
  221. package/dist/{store-helpers-C8uBGCbb.mjs → store-helpers-D-n5cwy5.mjs} +2 -3
  222. package/dist/{streaming-Bdq_M4d5.mjs → streaming-Dcgqa-hH.mjs} +2 -3
  223. package/dist/{subscriberIdentity-B-KpZkdl.mjs → subscriberIdentity-C9KhIXTF.mjs} +2 -3
  224. package/dist/{tenancy-C5PCvm1h.mjs → tenancy-COrhjPRZ.mjs} +3 -4
  225. package/dist/{tenantPreparation-dYvWrgNa.mjs → tenantPreparation-BElWHytd.mjs} +5 -6
  226. package/dist/testing/cleanupStoreContract.d.mts +2 -4
  227. package/dist/testing/cleanupStoreContract.mjs +2 -3
  228. package/dist/testing/index.d.mts +6 -32
  229. package/dist/testing/index.mjs +24 -37
  230. package/dist/testing/outboxStoreContract.d.mts +1 -3
  231. package/dist/testing/outboxStoreContract.mjs +3 -4
  232. package/dist/testing/requiredPorts.d.mts +2 -4
  233. package/dist/testing/requiredPorts.mjs +3 -4
  234. package/dist/testing/storageContract.d.mts +2 -4
  235. package/dist/testing/storageContract.mjs +2 -3
  236. package/dist/{timing-DCqsezX8.mjs → timing-CaxKbRk_.mjs} +3 -5
  237. package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
  238. package/dist/{transactionContext-DrcNyjpv.mjs → transactionContext-8qKON0Nk.mjs} +2 -3
  239. package/dist/{typeGuards-CEl10KPy.mjs → typeGuards-DVjVSsXO.mjs} +2 -3
  240. package/dist/types/index.d.mts +4 -4
  241. package/dist/types/index.mjs +1 -1
  242. package/dist/types/storage.d.mts +1 -1
  243. package/dist/types/storage.mjs +1 -1
  244. package/dist/{types-ByHn9rEO.d.mts → types-0Dqlbgn8.d.mts} +0 -2
  245. package/dist/{types-BJ-2XqVF.d.mts → types-BeEJm-DV.d.mts} +114 -14
  246. package/dist/{types-DVLddu2q.d.mts → types-C0YJAiL0.d.mts} +0 -2
  247. package/dist/{types-D9NWjpYc.mjs → types-DZHqOuJE.mjs} +5 -6
  248. package/dist/{types-D3Ixsh00.d.mts → types-DeLiuaNv.d.mts} +2 -4
  249. package/dist/{types-Ddl9OjmE.d.mts → types-DnkIALZ8.d.mts} +0 -4
  250. package/dist/usage/index.d.mts +2 -10
  251. package/dist/usage/index.mjs +8 -12
  252. package/dist/{userHelpers-BHig1kHq.mjs → userHelpers-_eGj6kf0.mjs} +2 -3
  253. package/dist/utils/index.d.mts +5 -39
  254. package/dist/utils/index.mjs +12 -12
  255. package/dist/{utils-BG5P7_Vb.mjs → utils-Dd6MWpye.mjs} +20 -30
  256. package/dist/{validate-D_mdOCir.mjs → validate-BaF5wd0x.mjs} +5 -7
  257. package/dist/{versioning-DBGHjPh7.mjs → versioning-DyV7mwtK.mjs} +4 -5
  258. package/dist/{versioning-Bqm_57Qt.d.mts → versioning-S18y2-0C.d.mts} +1 -15
  259. package/dist/{websocket-Cs4awVyD.d.mts → websocket-BGuc-WVZ.d.mts} +1 -15
  260. package/dist/{workScope-DPPfM4m6.mjs → workScope-CmCBUmPR.mjs} +3 -4
  261. package/llms.txt +37 -30
  262. package/package.json +51 -22
  263. package/skills/arc/SKILL.md +65 -844
  264. package/skills/arc/references/agent-auth.md +82 -193
  265. package/skills/arc/references/api-reference.md +41 -245
  266. package/skills/arc/references/auth-api-keys.md +99 -0
  267. package/skills/arc/references/auth-better-auth-overlay.md +87 -0
  268. package/skills/arc/references/auth-better-auth.md +78 -0
  269. package/skills/arc/references/auth-permissions.md +100 -0
  270. package/skills/arc/references/auth-strategies.md +122 -0
  271. package/skills/arc/references/boot.md +80 -0
  272. package/skills/arc/references/enterprise-auth.md +65 -81
  273. package/skills/arc/references/events-outbox.md +90 -0
  274. package/skills/arc/references/events.md +75 -440
  275. package/skills/arc/references/integrations-jobs.md +74 -0
  276. package/skills/arc/references/integrations-realtime.md +84 -0
  277. package/skills/arc/references/integrations-webhooks.md +71 -0
  278. package/skills/arc/references/integrations-workflows.md +47 -0
  279. package/skills/arc/references/mcp-auth.md +83 -0
  280. package/skills/arc/references/mcp-custom-tools.md +125 -0
  281. package/skills/arc/references/mcp-setup.md +115 -0
  282. package/skills/arc/references/mcp-testing.md +63 -0
  283. package/skills/arc/references/multi-tenancy.md +56 -230
  284. package/skills/arc/references/permissions-scope.md +81 -0
  285. package/skills/arc/references/production-api.md +119 -0
  286. package/skills/arc/references/production-audit.md +101 -0
  287. package/skills/arc/references/production-boot.md +91 -0
  288. package/skills/arc/references/production-caching.md +63 -0
  289. package/skills/arc/references/production-distributed.md +75 -0
  290. package/skills/arc/references/production-idempotency.md +83 -0
  291. package/skills/arc/references/production-observability.md +83 -0
  292. package/skills/arc/references/production-realtime.md +70 -0
  293. package/skills/arc/references/production-reliability.md +100 -0
  294. package/skills/arc/references/production-shutdown.md +43 -0
  295. package/skills/arc/references/querying.md +76 -0
  296. package/skills/arc/references/resources.md +97 -0
  297. package/skills/arc/references/schedules.md +79 -0
  298. package/skills/arc/references/scim.md +61 -208
  299. package/skills/arc/references/tenancy-scope-install.md +82 -0
  300. package/skills/arc/references/testing.md +101 -144
  301. package/skills/arc/references/usage-cleanup-capabilities.md +45 -0
  302. package/skills/arc/references/validation.md +91 -0
  303. package/skills/arc/references/writes-hooks-errors.md +80 -0
  304. package/skills/arc-code-review/SKILL.md +67 -114
  305. package/skills/arc-code-review/references/arc-cheatsheet.md +68 -167
  306. package/skills/arc-code-review/references/mongokit-repositories.md +104 -0
  307. package/skills/arc-code-review/references/recipe-events-cache-jobs.md +112 -0
  308. package/skills/arc-code-review/references/recipe-resource.md +100 -0
  309. package/skills/arc-code-review/references/recipe-schemas-fields.md +93 -0
  310. package/skills/arc-code-review/references/recipe-scope-permissions.md +82 -0
  311. package/skills/arc-code-review/references/scaffolding.md +61 -198
  312. package/skills/arc-code-review/references/severity.md +49 -102
  313. package/skills/arc-code-review/references/smells-auth-scope.md +80 -0
  314. package/skills/arc-code-review/references/smells-data-events.md +66 -0
  315. package/skills/arc-code-review/references/smells-imports-style.md +59 -0
  316. package/skills/arc-code-review/references/smells-platform.md +89 -0
  317. package/skills/arc-code-review/references/smells-routes-schemas.md +66 -0
  318. package/skills/arc-module-publishing/SKILL.md +82 -208
  319. package/skills/arc-module-publishing/references/action-presets-and-plugins.md +87 -0
  320. package/skills/arc-module-publishing/references/build-and-types.md +73 -0
  321. package/skills/arc-module-publishing/references/module-lifecycle.md +101 -0
  322. package/skills/arc-module-publishing/references/package-manifest.md +34 -122
  323. package/skills/arc-module-publishing/references/publishing-workflow.md +44 -140
  324. package/skills/arc-module-publishing/references/resource-assembly.md +102 -0
  325. package/skills/arc-module-publishing/references/testing-packages.md +82 -0
  326. package/skills/arc/references/auth.md +0 -729
  327. package/skills/arc/references/integrations.md +0 -452
  328. package/skills/arc/references/mcp.md +0 -691
  329. package/skills/arc/references/production.md +0 -835
  330. package/skills/arc-code-review/references/anti-patterns.md +0 -1008
  331. package/skills/arc-code-review/references/migration-recipes.md +0 -649
  332. package/skills/arc-code-review/references/mongokit-migration.md +0 -360
  333. package/skills/arc-module-publishing/references/authoring-modules.md +0 -327
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
3
- //#region src/testing/cleanupStoreContract.ts
3
+ // src/testing/cleanupStoreContract.ts
4
4
  /**
5
5
  * Cleanup Run-Store Contract Suite
6
6
  *
@@ -378,5 +378,4 @@ function runCleanupRunStoreContract(name, setup) {
378
378
  });
379
379
  });
380
380
  }
381
- //#endregion
382
381
  export { runCleanupRunStoreContract };
@@ -1,15 +1,14 @@
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 { F as ResourceDefinition } from "../index-WH7xgvxS.mjs";
5
- import { h as ModuleSetupContext, m as ModuleDisposer, o as ArcPorts, p as PortName, r as ArcModuleInput, u as ModuleName } from "../types-BJ-2XqVF.mjs";
6
- import "../index-CUJvoyw3.mjs";
7
- import { n as CreateAppOptions } from "../index-uhkUA5-U.mjs";
2
+ import { i as RequestScope } from "../types-DnkIALZ8.mjs";
3
+ import { l as PermissionCheck, t as AnyRecord } from "../base-HXNgPQww.mjs";
4
+ import { F as ResourceDefinition } from "../index-Cy2-QffW.mjs";
5
+ import { h as ModuleSetupContext, m as ModuleDisposer, o as ArcPorts, p as PortName, r as ArcModuleInput, u as ModuleName } from "../types-BeEJm-DV.mjs";
6
+ import "../index-DFCCQ9AE.mjs";
7
+ import { n as CreateAppOptions } from "../index-D1X_C_qz.mjs";
8
8
  import { StorageContractSetup, StorageContractSetupResult, runStorageContract } from "./storageContract.mjs";
9
9
  import { StandardRepo } from "@classytic/repo-core/repository";
10
10
  import { FastifyInstance, FastifyServerOptions } from "fastify";
11
11
  import { Mock } from "vitest";
12
- //#region src/testing/assertions.d.ts
13
12
  /**
14
13
  * expectArc — Arc-specific response assertions
15
14
  *
@@ -73,8 +72,6 @@ interface ArcAssertion {
73
72
  hasMeta(key: string, value?: unknown): ArcAssertion;
74
73
  }
75
74
  export declare function expectArc(response: ArcResponseLike): ArcAssertion;
76
- //#endregion
77
- //#region src/testing/testActor.d.ts
78
75
  /** The header the testing harness uses to carry a request's actor. */
79
76
  export declare const TEST_ACTOR_HEADER = "x-test-actor";
80
77
  /**
@@ -148,8 +145,6 @@ export declare function testActorAuth(defaultActor?: TestActor): {
148
145
  type: "authenticator";
149
146
  authenticate: (request: unknown) => Promise<void>;
150
147
  };
151
- //#endregion
152
- //#region src/testing/bootModuleApp.d.ts
153
148
  /** Handed to a modules factory — the in-memory DB is live at call time. */
154
149
  /**
155
150
  * A provisioned test database — what the `database` seam yields. Arc
@@ -234,8 +229,6 @@ export declare function mongoMemoryDatabase(opts: {
234
229
  replset?: boolean;
235
230
  }): Promise<TestDatabase<unknown>>;
236
231
  export declare function bootModuleApp<TConn = unknown>(modules: BootModulesInput<TConn>, options?: BootModuleAppOptions<TConn>): Promise<ModuleTestApp<TConn>>;
237
- //#endregion
238
- //#region src/testing/assertModuleBootsAlone.d.ts
239
232
  interface ModuleBootsAloneOptions<TConn = unknown> extends BootModuleAppOptions<TConn> {
240
233
  /** Runs against the booted closure before it closes — drive the module's cross-module ports. */
241
234
  probe?: (t: ModuleTestApp<TConn>) => void | Promise<void>;
@@ -247,8 +240,6 @@ interface ModuleBootsAloneResult {
247
240
  export declare function assertModuleBootsAlone<TConn = unknown>(modules: BootModulesInput<TConn>,
248
241
  /** The module — or several roots booted together, when a deployment rule pairs them. */
249
242
  name: ModuleName | readonly ModuleName[], options?: ModuleBootsAloneOptions<TConn>): Promise<ModuleBootsAloneResult>;
250
- //#endregion
251
- //#region src/testing/authorizationConformance.d.ts
252
243
  /** One surface's observed enforcement: the HTTP status + the filter arc passed the repo. */
253
244
  interface SurfaceObservation {
254
245
  /** HTTP status the surface returned (200 = allowed, 401/403 = denied). */
@@ -287,8 +278,6 @@ export declare function runAuthorizationConformance(opts: {
287
278
  /** Rows the mock repo returns for list (aggregation returns a count). */
288
279
  rows?: AnyRecord[];
289
280
  }): Promise<AuthorizationConformance>;
290
- //#endregion
291
- //#region src/testing/authSession.d.ts
292
281
  /**
293
282
  * A concrete auth session — headers ready to drop into `app.inject`.
294
283
  *
@@ -357,8 +346,6 @@ export declare function createBetterAuthProvider(opts?: {
357
346
  export declare function createCustomAuthProvider(mintToken: (role: string, config: RoleConfig) => string, opts?: {
358
347
  defaultOrgId?: string;
359
348
  }): TestAuthProvider;
360
- //#endregion
361
- //#region src/testing/betterAuth.d.ts
362
349
  interface BetterAuthTestHelpersOptions {
363
350
  /** Base path where Better Auth is mounted (default: '/api/auth'). */
364
351
  basePath?: string;
@@ -514,8 +501,6 @@ export declare function createBetterAuthTestHelpers(options?: BetterAuthTestHelp
514
501
  * runtime one).
515
502
  */
516
503
  export declare function setupBetterAuthTestApp(input: SetupBetterAuthTestAppInput): Promise<SetupBetterAuthTestAppResult>;
517
- //#endregion
518
- //#region src/testing/fixtures.d.ts
519
504
  type FixtureFactory<T extends object = AnyRecord> = (data: Partial<T>) => Promise<T>;
520
505
  /** Delete hook invoked by `clear()` for records that were created through a factory. */
521
506
  type FixtureDestroyer<T extends object = AnyRecord> = (record: T) => Promise<void>;
@@ -544,8 +529,6 @@ interface TestFixtures {
544
529
  readonly names: readonly string[];
545
530
  }
546
531
  export declare function createTestFixtures(): TestFixtures;
547
- //#endregion
548
- //#region src/testing/HttpTestHarness.d.ts
549
532
  interface HttpTestHarnessOptions<T = unknown> {
550
533
  /** Fastify app (must be ready). */
551
534
  app: FastifyInstance;
@@ -582,8 +565,6 @@ export declare class HttpTestHarness<T = unknown> {
582
565
  * (for eager app setup) or a getter function (for async `beforeAll` apps).
583
566
  */
584
567
  export declare function createHttpTestHarness<T = unknown>(resource: ResourceDefinition<unknown>, optionsOrGetter: HttpTestHarnessOptions<T> | (() => HttpTestHarnessOptions<T>)): HttpTestHarness<T>;
585
- //#endregion
586
- //#region src/testing/mocks.d.ts
587
568
  /**
588
569
  * Extended repository interface for testing (includes optional preset methods)
589
570
  */
@@ -706,8 +687,6 @@ export declare function createTestTimer(): {
706
687
  set: (timestamp: number) => void;
707
688
  reset: () => void;
708
689
  };
709
- //#endregion
710
- //#region src/testing/moduleSetup.d.ts
711
690
  interface TestModuleSetup {
712
691
  /** Pass this as the second argument to `bootstrap` / `plugins` / `afterResources`. */
713
692
  readonly context: ModuleSetupContext<PortName, PortName>;
@@ -731,8 +710,6 @@ export declare function createTestModuleSetup(options?: {
731
710
  /** The `context.ports` the phases see — supply what the module declares. */
732
711
  readonly ports?: ArcPorts;
733
712
  }): TestModuleSetup;
734
- //#endregion
735
- //#region src/testing/scopeRoleGate.d.ts
736
713
  /**
737
714
  * Grants iff the caller is an org member holding one of `allowed` as an ORG role.
738
715
  *
@@ -756,8 +733,6 @@ export declare function createTestModuleSetup(options?: {
756
733
  * green test reads another org's rows.
757
734
  */
758
735
  export declare function scopeRoleGate(...allowed: string[]): PermissionCheck;
759
- //#endregion
760
- //#region src/testing/testApp.d.ts
761
736
  type DbMode = "in-memory" | {
762
737
  uri: string;
763
738
  } | false;
@@ -833,5 +808,4 @@ export declare function createTestApp(options?: CreateTestAppOptions): Promise<T
833
808
  * dependencies).
834
809
  */
835
810
  export declare function createMinimalTestApp(options?: FastifyServerOptions): FastifyInstance;
836
- //#endregion
837
811
  export { type ArcAssertion, type ArcResponseLike, type AuthMode, type AuthResponse, type AuthorizationConformance, type BetterAuthTestHelpers, type BetterAuthTestHelpersOptions, type BetterAuthTestUser, type BootModuleAppOptions, type BootModulesInput, type CreateOrgInput, type CreateTestAppOptions, type DbMode, type FixtureDestroyer, type FixtureFactory, type FixtureRegistration, type HttpTestHarnessOptions, type MockRepository, type ModuleBootsAloneOptions, type ModuleBootsAloneResult, type ModuleTestApp, type OrgResponse, type RoleConfig, type SetupBetterAuthTestAppInput, type SetupBetterAuthTestAppResult, type SignInInput, type SignUpInput, type StorageContractSetup, type StorageContractSetupResult, type SurfaceObservation, type TestActor, type TestAppContext, type TestAuthProvider, type TestAuthSession, type TestDatabase, type TestDatabaseFactory, type TestFixtures, type TestModuleSetup, type TestkitContext, runStorageContract };
@@ -1,17 +1,17 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "../constants-D_aiew34.mjs";
3
- import { c as BaseController } from "../plugin-DXTjVg_Q.mjs";
4
- import { g as getUserId } from "../types-D9NWjpYc.mjs";
5
- import { t as defineAggregation } from "../defineAggregation-BLza7Ca4.mjs";
6
- import { t as defineResource } from "../defineResource-CEo0gDCb.mjs";
7
- import { E as requireOrgRole } from "../permissions-B14c3OMp.mjs";
8
- import { h as asModulePorts, r as createApp } from "../createApp-CKjZpmq9.mjs";
9
- import { d as resolveModule, l as isLazyBridge, o as resolveModuleClosure } from "../plan-CpnTykjb.mjs";
10
- import { n as getModuleExports } from "../module-CfnKuIuH.mjs";
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "../constants-Cx7BcnHT.mjs";
3
+ import { f as BaseController } from "../plugin-Bn4D_0XK.mjs";
4
+ import { g as getUserId } from "../types-DZHqOuJE.mjs";
5
+ import { t as defineAggregation } from "../defineAggregation-CFNfvz-C.mjs";
6
+ import { t as defineResource } from "../defineResource-BROJmhzJ.mjs";
7
+ import { E as requireOrgRole } from "../permissions-BBy4bOGi.mjs";
8
+ import { h as asModulePorts, r as createApp } from "../createApp-QDP4vYWH.mjs";
9
+ import { d as resolveModule, l as isLazyBridge, o as resolveModuleClosure } from "../plan-DDIGwuxr.mjs";
10
+ import { n as getModuleExports } from "../module-BD8xHgrz.mjs";
11
11
  import { runStorageContract } from "./storageContract.mjs";
12
12
  import Fastify from "fastify";
13
13
  import { afterAll, describe, expect, it, vi } from "vitest";
14
- //#region src/testing/assertions.ts
14
+ // src/testing/assertions.ts
15
15
  /**
16
16
  * expectArc — Arc-specific response assertions
17
17
  *
@@ -134,8 +134,7 @@ function expectArc(response) {
134
134
  };
135
135
  return assertion;
136
136
  }
137
- //#endregion
138
- //#region src/testing/testActor.ts
137
+ // src/testing/testActor.ts
139
138
  /**
140
139
  * Test-only actor installation — how a package's HTTP tests say "run this
141
140
  * request as a manager in org X".
@@ -255,8 +254,7 @@ function testActorAuth(defaultActor) {
255
254
  authenticate
256
255
  };
257
256
  }
258
- //#endregion
259
- //#region src/testing/bootModuleApp.ts
257
+ // src/testing/bootModuleApp.ts
260
258
  /**
261
259
  * The built-in DB factory: in-memory MongoDB via lazy devDep imports.
262
260
  * Everything Mongo-specific about the harness lives HERE — the harness
@@ -331,8 +329,7 @@ async function bootModuleApp(modules, options = {}) {
331
329
  }
332
330
  };
333
331
  }
334
- //#endregion
335
- //#region src/testing/assertModuleBootsAlone.ts
332
+ // src/testing/assertModuleBootsAlone.ts
336
333
  /**
337
334
  * Boot a module inside its closure — `resolveModuleClosure` (its `dependsOn` and
338
335
  * `requires.modules`, transitively, plus every platform module) and every bridge in the list,
@@ -371,8 +368,7 @@ async function assertModuleBootsAlone(modules, name, options = {}) {
371
368
  function isInputList(value) {
372
369
  return Array.isArray(value);
373
370
  }
374
- //#endregion
375
- //#region src/testing/mocks.ts
371
+ // src/testing/mocks.ts
376
372
  /**
377
373
  * Create a mock repository for testing
378
374
  *
@@ -603,8 +599,7 @@ function createTestTimer() {
603
599
  }
604
600
  };
605
601
  }
606
- //#endregion
607
- //#region src/testing/authorizationConformance.ts
602
+ // src/testing/authorizationConformance.ts
608
603
  /**
609
604
  * Cross-surface authorization conformance (arc 2.30).
610
605
  *
@@ -731,8 +726,7 @@ async function runAuthorizationConformance(opts) {
731
726
  close: () => app.close()
732
727
  };
733
728
  }
734
- //#endregion
735
- //#region src/testing/authSession.ts
729
+ // src/testing/authSession.ts
736
730
  function buildHeaders(token, orgId, extra) {
737
731
  const headers = { authorization: `Bearer ${token}` };
738
732
  if (orgId) headers["x-organization-id"] = orgId;
@@ -849,8 +843,7 @@ function createCustomAuthProvider(mintToken, opts = {}) {
849
843
  mintToken
850
844
  });
851
845
  }
852
- //#endregion
853
- //#region src/testing/betterAuth.ts
846
+ // src/testing/betterAuth.ts
854
847
  const DEFAULT_BASE_PATH = "/api/auth";
855
848
  /**
856
849
  * Parse a JSON body safely. Returns null when empty or malformed — Better
@@ -1070,8 +1063,7 @@ async function setupBetterAuthTestApp(input) {
1070
1063
  }
1071
1064
  };
1072
1065
  }
1073
- //#endregion
1074
- //#region src/testing/fixtures.ts
1066
+ // src/testing/fixtures.ts
1075
1067
  function createTestFixtures() {
1076
1068
  const registry = /* @__PURE__ */ new Map();
1077
1069
  const tracked = [];
@@ -1116,8 +1108,7 @@ function createTestFixtures() {
1116
1108
  }
1117
1109
  };
1118
1110
  }
1119
- //#endregion
1120
- //#region src/testing/HttpTestHarness.ts
1111
+ // src/testing/HttpTestHarness.ts
1121
1112
  /**
1122
1113
  * An op is "protected" (should 401 without a token) unless the resource
1123
1114
  * explicitly wired `allowPublic()` — that's the same rule arc's router uses
@@ -1396,8 +1387,7 @@ var HttpTestHarness = class {
1396
1387
  function createHttpTestHarness(resource, optionsOrGetter) {
1397
1388
  return new HttpTestHarness(resource, optionsOrGetter);
1398
1389
  }
1399
- //#endregion
1400
- //#region src/testing/moduleSetup.ts
1390
+ // src/testing/moduleSetup.ts
1401
1391
  /**
1402
1392
  * A real `ModuleSetupContext` for tests that invoke a module's setup phases
1403
1393
  * DIRECTLY — `mod.bootstrap(app, ctx)`, `mod.plugins(app, ctx)` — instead of
@@ -1455,8 +1445,7 @@ function createTestModuleSetup(options = {}) {
1455
1445
  }
1456
1446
  };
1457
1447
  }
1458
- //#endregion
1459
- //#region src/testing/scopeRoleGate.ts
1448
+ // src/testing/scopeRoleGate.ts
1460
1449
  /**
1461
1450
  * `scopeRoleGate` — the ONE role gate for package tests.
1462
1451
  *
@@ -1512,8 +1501,7 @@ function createTestModuleSetup(options = {}) {
1512
1501
  function scopeRoleGate(...allowed) {
1513
1502
  return requireOrgRole(...allowed);
1514
1503
  }
1515
- //#endregion
1516
- //#region src/testing/testApp.ts
1504
+ // src/testing/testApp.ts
1517
1505
  /**
1518
1506
  * createTestApp — test app factory for arc
1519
1507
  *
@@ -1578,7 +1566,7 @@ function pickDefaultAuth(authMode, callerAuth) {
1578
1566
  };
1579
1567
  }
1580
1568
  async function createTestApp(options = {}) {
1581
- const { createApp } = await import("../createApp-CKjZpmq9.mjs").then((n) => n.i);
1569
+ const { createApp } = await import("../createApp-QDP4vYWH.mjs").then((n) => n.i);
1582
1570
  const { resources = [], db = "in-memory", connectMongoose = false, authMode = "jwt", defaultOrgId, plugins, auth: callerAuth, ...appOptions } = options;
1583
1571
  let dbHandle;
1584
1572
  let dbUri;
@@ -1647,5 +1635,4 @@ function createMinimalTestApp(options = {}) {
1647
1635
  ...options
1648
1636
  });
1649
1637
  }
1650
- //#endregion
1651
1638
  export { HttpTestHarness, TEST_ACTOR_HEADER, assertModuleBootsAlone, bootModuleApp, createBetterAuthProvider, createBetterAuthTestHelpers, createCustomAuthProvider, createDataFactory, createHttpTestHarness, createJwtAuthProvider, createMinimalTestApp, createMockController, createMockReply, createMockRepository, createMockRequest, createMockUser, createSpy, createTestApp, createTestFixtures, createTestModuleSetup, createTestTimer, expectArc, mongoMemoryDatabase, runAuthorizationConformance, runStorageContract, safeParseBody, scopeFromTestActor, scopeRoleGate, setupBetterAuthTestApp, testActorAuth, testActorHeaders, waitFor };
@@ -1,6 +1,5 @@
1
1
 
2
2
  import { OutboxStore } from "@classytic/primitives/outbox";
3
- //#region src/testing/outboxStoreContract.d.ts
4
3
  export interface OutboxStoreContractSetupResult {
5
4
  store: OutboxStore;
6
5
  /** Called once after the suite. */
@@ -18,5 +17,4 @@ export interface OutboxStoreContractSetupResult {
18
17
  reset: () => Promise<void>;
19
18
  }
20
19
  export type OutboxStoreContractSetup = () => Promise<OutboxStoreContractSetupResult>;
21
- export declare function runOutboxStoreContract(name: string, setup: OutboxStoreContractSetup): void;
22
- //#endregion
20
+ export declare function runOutboxStoreContract(name: string, setup: OutboxStoreContractSetup): void;
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { t as claimedAttempts } from "../claimed-ChI13rUR.mjs";
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
+ import { t as claimedAttempts } from "../claimed-BLecr1j3.mjs";
3
3
  import { OutboxConflictError, OutboxOwnershipError } from "@classytic/primitives/outbox";
4
4
  import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
5
- //#region src/testing/outboxStoreContract.ts
5
+ // src/testing/outboxStoreContract.ts
6
6
  let seq = 0;
7
7
  /**
8
8
  * A minimal well-formed event. Ids are unique per call.
@@ -479,5 +479,4 @@ function runOutboxStoreContract(name, setup) {
479
479
  });
480
480
  });
481
481
  }
482
- //#endregion
483
482
  export { runOutboxStoreContract };
@@ -1,6 +1,5 @@
1
1
 
2
- import { r as ArcModuleInput } from "../types-BJ-2XqVF.mjs";
3
- //#region src/testing/requiredPorts.d.ts
2
+ import { r as ArcModuleInput } from "../types-BeEJm-DV.mjs";
4
3
  export interface RequiredPortsOptions {
5
4
  /** Modules composed alongside — the peers the module `dependsOn` or `requires.modules`. */
6
5
  readonly with?: readonly ArcModuleInput[];
@@ -12,5 +11,4 @@ export interface RequiredPortsResult {
12
11
  /** The required ports, in declared order. */
13
12
  readonly ports: readonly string[];
14
13
  }
15
- export declare function assertRequiresPorts(module: ArcModuleInput, ports: readonly string[], options?: RequiredPortsOptions): Promise<RequiredPortsResult>;
16
- //#endregion
14
+ export declare function assertRequiresPorts(module: ArcModuleInput, ports: readonly string[], options?: RequiredPortsOptions): Promise<RequiredPortsResult>;
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-CpnTykjb.mjs";
3
- //#region src/testing/requiredPorts.ts
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
+ import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-DDIGwuxr.mjs";
3
+ // src/testing/requiredPorts.ts
4
4
  /**
5
5
  * Assert a module declares EXACTLY `ports` as required, and that composing it without any one of
6
6
  * them fails naming the module and that port — alone, and all together in one error. `[]` asserts
@@ -61,5 +61,4 @@ async function assertRequiresPorts(module, ports, options = {}) {
61
61
  function sameList(a, b) {
62
62
  return a.length === b.length && a.every((x, i) => x === b[i]);
63
63
  }
64
- //#endregion
65
64
  export { assertRequiresPorts };
@@ -1,6 +1,5 @@
1
1
 
2
- import { t as Storage } from "../storage-Cx9Sz3Ou.mjs";
3
- //#region src/testing/storageContract.d.ts
2
+ import { t as Storage } from "../storage-odC5MNKN.mjs";
4
3
  export interface StorageContractSetupResult {
5
4
  storage: Storage;
6
5
  teardown: () => Promise<void>;
@@ -21,5 +20,4 @@ export type StorageContractSetup = () => Promise<StorageContractSetupResult>;
21
20
  * 9. Both `kind: "stream"` and `kind: "buffer"` read results deliver correct bytes
22
21
  * 10. Ranged reads (if adapter supports them) slice correctly
23
22
  */
24
- export declare function runStorageContract(name: string, setup: StorageContractSetup): void;
25
- //#endregion
23
+ export declare function runStorageContract(name: string, setup: StorageContractSetup): void;
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
3
- //#region src/testing/storageContract.ts
3
+ // src/testing/storageContract.ts
4
4
  /**
5
5
  * Storage Contract Suite
6
6
  *
@@ -218,5 +218,4 @@ function runStorageContract(name, setup) {
218
218
  });
219
219
  });
220
220
  }
221
- //#endregion
222
221
  export { runStorageContract };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  import { createHash } from "node:crypto";
3
- //#region src/utils/operationIdentity.ts
3
+ // src/utils/operationIdentity.ts
4
4
  /** Security context included in idempotency identities across transports. */
5
5
  function operationIdentity(operation, scope, fallbackPrincipal, namespace) {
6
6
  const principal = scope?.kind === "service" ? scope.clientId : scope?.kind === "public" ? fallbackPrincipal : scope?.userId ?? fallbackPrincipal;
@@ -18,8 +18,7 @@ function operationIdentity(operation, scope, fallbackPrincipal, namespace) {
18
18
  ]);
19
19
  return createHash("sha256").update(identity).digest("hex");
20
20
  }
21
- //#endregion
22
- //#region src/idempotency/stores/interface.ts
21
+ // src/idempotency/stores/interface.ts
23
22
  /**
24
23
  * Helper to create a result object
25
24
  */
@@ -42,5 +41,4 @@ function resolveIdempotencyTiming(ttlMs, lockTimeoutMs) {
42
41
  for (const [name, value] of Object.entries(timing)) if (!Number.isFinite(value) || value <= 0) throw new Error(`[arc idempotency] ${name} must be a positive finite duration in milliseconds.`);
43
42
  return timing;
44
43
  }
45
- //#endregion
46
44
  export { createIdempotencyResult as n, operationIdentity as r, resolveIdempotencyTiming as t };
@@ -1,7 +1,6 @@
1
1
 
2
2
  import { FastifyInstance, FastifyRequest } from "fastify";
3
3
  import { Span, Tracer } from "@opentelemetry/api";
4
- //#region src/plugins/tracing.d.ts
5
4
  interface TracingOptions {
6
5
  /**
7
6
  * Service name for traces
@@ -76,5 +75,4 @@ declare function traced(spanName?: string): (target: {
76
75
  */
77
76
  declare function isTracingAvailable(): boolean;
78
77
  declare const _default: typeof tracingPlugin;
79
- //#endregion
80
78
  export { traced as a, isTracingAvailable as i, _default as n, createSpan as r, TracingOptions as t };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
- //#region src/context/transactionContext.ts
3
+ // src/context/transactionContext.ts
4
4
  /**
5
5
  * Transaction Context via AsyncLocalStorage
6
6
  *
@@ -61,5 +61,4 @@ const transactionContext = {
61
61
  /** The underlying AsyncLocalStorage instance. Exposed for advanced integrations. */
62
62
  storage
63
63
  };
64
- //#endregion
65
64
  export { transactionContext as t };
@@ -1,9 +1,8 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- //#region src/utils/typeGuards.ts
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
+ // src/utils/typeGuards.ts
3
3
  /** Check if fastify has the events plugin registered */
4
4
  function hasEvents(instance) {
5
5
  const inst = instance;
6
6
  return inst.events != null && typeof inst.events.publish === "function";
7
7
  }
8
- //#endregion
9
8
  export { hasEvents as t };
@@ -1,6 +1,6 @@
1
1
 
2
- import { i as RequestScope } from "../types-Ddl9OjmE.mjs";
3
- import { a as UserLike, c as DataPolicy, d as UserBase, i as ObjectId, l as PermissionCheck, n as ArcRequest, o as UserOrganization, r as JWTPayload, s as AuthorizationDecision, t as AnyRecord, u as PermissionContext } from "../base-CZyixEQR.mjs";
4
- import { $ as ResourceHookContext, A as RequestWithExtras, At as AuthHelpers, B as OnTenantDeleteConfig, Bn as IController, C as RequestIdOptions, Ct as ActionEntry, D as FastifyWithAuth, Dt as RouteMcpConfig, E as FastifyRequestExtras, En as BaseControllerOptions, Et as RouteDefinition, Fn as WriteContext, Ft as TokenPair, G as CrudRouteKey, H as PresetFunction, Hn as IRequestContext, I as CrudController, In as WriteVerbKey, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Ln as ControllerHandler, Mt as Authenticator, Nn as MutationWriteContext, Nt as AuthenticatorContext, O as FastifyWithDecorators, Ot as RouteMethod, Pn as ResourceWrites, Pt as JwtContext, Q as FieldRule, R as ResourceIdempotencyConfig, Rn as ControllerLike, S as IntrospectionPluginOptions, St as ActionDefinition, T as EventsDecorator, Tt as ActionsMap, U as PresetHook, Un as RawRouteHandler, V as ResolvedTenantPurge, Vn as IControllerResponse, W as PresetResult, Wn as RouteHandler, X as RouteSchemaOptions, Y as OpenApiSchemas, Z as ArcFieldRule, _ as ServiceContext, a as IntrospectionData, b as HealthCheck, c as ResourceMetadata, d as LookupOption, et as ResourceHooks, f as OwnershipCheck, g as RequestContext, h as QueryParserInterface, i as PaginationResult, jt as AuthPluginOptions, k as MiddlewareHandler, kt as RateLimitConfig, l as ArcInternalMetadata, m as PopulateOption, n as InferDocType, nt as EventDefinition, o as RegistryEntry, p as ParsedQuery, q as LookupPolicy, r as InferResourceDoc, s as RegistryStats, t as InferAdapterDoc, tt as ResourceExtensions, u as ControllerQueryOptions, v as CrudRouterOptions, w as ArcDecorator, wt as ActionHandlerFn, x as HealthOptions, xt as ResourceCacheConfig, y as GracefulShutdownOptions, z as ResourcePermissions, zn as FastifyHandler } from "../index-WH7xgvxS.mjs";
5
- import { n as ElevationOptions, t as ElevationEvent } from "../elevation-BW2J3tNj.mjs";
2
+ import { i as RequestScope } from "../types-DnkIALZ8.mjs";
3
+ import { a as UserLike, c as DataPolicy, d as UserBase, i as ObjectId, l as PermissionCheck, n as ArcRequest, o as UserOrganization, r as JWTPayload, s as AuthorizationDecision, t as AnyRecord, u as PermissionContext } from "../base-HXNgPQww.mjs";
4
+ import { $ as ResourceHookContext, A as RequestWithExtras, At as AuthHelpers, B as OnTenantDeleteConfig, Bn as IController, C as RequestIdOptions, Ct as ActionEntry, D as FastifyWithAuth, Dt as RouteMcpConfig, E as FastifyRequestExtras, En as BaseControllerOptions, Et as RouteDefinition, Fn as WriteContext, Ft as TokenPair, G as CrudRouteKey, H as PresetFunction, Hn as IRequestContext, I as CrudController, In as WriteVerbKey, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Ln as ControllerHandler, Mt as Authenticator, Nn as MutationWriteContext, Nt as AuthenticatorContext, O as FastifyWithDecorators, Ot as RouteMethod, Pn as ResourceWrites, Pt as JwtContext, Q as FieldRule, R as ResourceIdempotencyConfig, Rn as ControllerLike, S as IntrospectionPluginOptions, St as ActionDefinition, T as EventsDecorator, Tt as ActionsMap, U as PresetHook, Un as RawRouteHandler, V as ResolvedTenantPurge, Vn as IControllerResponse, W as PresetResult, Wn as RouteHandler, X as RouteSchemaOptions, Y as OpenApiSchemas, Z as ArcFieldRule, _ as ServiceContext, a as IntrospectionData, b as HealthCheck, c as ResourceMetadata, d as LookupOption, et as ResourceHooks, f as OwnershipCheck, g as RequestContext, h as QueryParserInterface, i as PaginationResult, jt as AuthPluginOptions, k as MiddlewareHandler, kt as RateLimitConfig, l as ArcInternalMetadata, m as PopulateOption, n as InferDocType, nt as EventDefinition, o as RegistryEntry, p as ParsedQuery, q as LookupPolicy, r as InferResourceDoc, s as RegistryStats, t as InferAdapterDoc, tt as ResourceExtensions, u as ControllerQueryOptions, v as CrudRouterOptions, w as ArcDecorator, wt as ActionHandlerFn, x as HealthOptions, xt as ResourceCacheConfig, y as GracefulShutdownOptions, z as ResourcePermissions, zn as FastifyHandler } from "../index-Cy2-QffW.mjs";
5
+ import { n as ElevationOptions, t as ElevationEvent } from "../elevation-DPD0hcU-.mjs";
6
6
  export type { ActionDefinition, ActionEntry, ActionHandlerFn, ActionsMap, AnyRecord, ArcDecorator, ArcFieldRule, ArcInternalMetadata, ArcRequest, AuthHelpers, AuthPluginOptions, Authenticator, AuthenticatorContext, AuthorizationDecision, BaseControllerOptions, ControllerHandler, ControllerLike, ControllerQueryOptions, CrudController, CrudRouteKey, CrudRouterOptions, CrudSchemas, DataPolicy, ElevationEvent, ElevationOptions, EventDefinition, EventsDecorator, FastifyHandler, FastifyRequestExtras, FastifyWithAuth, FastifyWithDecorators, FieldRule, GracefulShutdownOptions, HealthCheck, HealthOptions, IController, IControllerResponse, IRequestContext, InferAdapterDoc, InferDocType, InferResourceDoc, IntrospectionData, IntrospectionPluginOptions, JWTPayload, JwtContext, LookupOption, LookupPolicy, MiddlewareConfig, MiddlewareHandler, MutationWriteContext, ObjectId, OnTenantDeleteConfig, OpenApiSchemas, OwnershipCheck, PaginationResult, ParsedQuery, PermissionCheck, PermissionContext, PopulateOption, PresetFunction, PresetHook, PresetResult, QueryParserInterface, RateLimitConfig, RawRouteHandler, RegistryEntry, RegistryStats, RequestContext, RequestIdOptions, RequestScope, RequestWithExtras, ResolvedTenantPurge, ResourceCacheConfig, ResourceConfig, ResourceExtensions, ResourceHookContext, ResourceHooks, ResourceIdempotencyConfig, ResourceMetadata, ResourcePermissions, ResourceWrites, RouteDefinition, RouteHandler, RouteMcpConfig, RouteMethod, RouteSchemaOptions, ServiceContext, TokenPair, UserBase, UserLike, UserOrganization, WriteContext, WriteVerbKey };
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,3 +1,3 @@
1
1
 
2
- import { a as StorageReadResult, i as StorageReadRange, n as StorageContext, o as StorageUploadInput, r as StorageFile, t as Storage } from "../storage-Cx9Sz3Ou.mjs";
2
+ import { a as StorageReadResult, i as StorageReadRange, n as StorageContext, o as StorageUploadInput, r as StorageFile, t as Storage } from "../storage-odC5MNKN.mjs";
3
3
  export { Storage, StorageContext, StorageFile, StorageReadRange, StorageReadResult, StorageUploadInput };
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,6 +1,5 @@
1
1
 
2
2
  import { FastifyRequest } from "fastify";
3
- //#region src/encryption/types.d.ts
4
3
  /** JWE key-management algorithm — the protected-header `alg`. */
5
4
  type JweAlg = "RSA-OAEP-256" | "RSA-OAEP-384" | "RSA-OAEP-512" | "ECDH-ES" | "ECDH-ES+A256KW" | "A256GCMKW" | "dir";
6
5
  /** JWE content-encryption algorithm — the protected-header `enc`. AEAD only. */
@@ -129,5 +128,4 @@ declare module "fastify" {
129
128
  responseEncrypted?: boolean;
130
129
  }
131
130
  }
132
- //#endregion
133
131
  export { JweAlg as a, KeyMaterial as c, EncryptionOptions as i, KeyProvider as l, EncryptionDirective as n, JweEnc as o, EncryptionMode as r, KeyContext as s, ActiveKey as t };